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 2.7 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.
17 # pragma clang diagnostic push
18 # pragma clang diagnostic ignored "-Wdeprecated-register"
19 #endif
20 
21 #include <Python.h>
22 
23 #ifdef __clang__
24 # pragma clang diagnostic pop
25 #endif
26 
27 /* Override SWIG's standard GIL locking machinery - we want to avoid the
28  * overhead of thread locking when the user's code isn't using threads,
29  * and to handle the GIL in a way which also works in sub-interpreters.
30  */
31 #define SWIG_PYTHON_NO_USE_GIL
32 
33 #ifdef THREAD_LOCAL
34 
35 static THREAD_LOCAL PyThreadState * swig_pythreadstate = NULL;
36 
swig_pythreadstate_ensure_init()37 inline void swig_pythreadstate_ensure_init() { }
38 
swig_pythreadstate_reset()39 inline PyThreadState * swig_pythreadstate_reset() {
40     PyThreadState * v = swig_pythreadstate;
41     if (v) swig_pythreadstate = NULL;
42     return v;
43 }
44 
swig_pythreadstate_set(PyThreadState * v)45 inline PyThreadState * swig_pythreadstate_set(PyThreadState * v) {
46     PyThreadState * old = swig_pythreadstate;
47     swig_pythreadstate = v;
48     return old;
49 }
50 
51 #else
52 
53 #include <pthread.h>
54 
55 static pthread_key_t swig_pythreadstate_key;
56 static pthread_once_t swig_pythreadstate_key_once = PTHREAD_ONCE_INIT;
57 
swig_pythreadstate_make_key()58 static void swig_pythreadstate_make_key()
59 {
60     if (pthread_key_create(&swig_pythreadstate_key, NULL) != 0)
61 	Py_FatalError("pthread_key_create failed");
62 }
63 
swig_pythreadstate_ensure_init()64 inline void swig_pythreadstate_ensure_init() {
65     pthread_once(&swig_pythreadstate_key_once, swig_pythreadstate_make_key);
66 }
67 
swig_pythreadstate_reset()68 inline PyThreadState * swig_pythreadstate_reset() {
69     PyThreadState * v = (PyThreadState*)pthread_getspecific(swig_pythreadstate_key);
70     if (v) pthread_setspecific(swig_pythreadstate_key, NULL);
71     return v;
72 }
73 
swig_pythreadstate_set(PyThreadState * v)74 inline PyThreadState* swig_pythreadstate_set(PyThreadState * v) {
75     PyThreadState * old = (PyThreadState*)pthread_getspecific(swig_pythreadstate_key);
76     pthread_setspecific(swig_pythreadstate_key, (void*)v);
77     return old;
78 }
79 
80 #endif
81 
82 class XapianSWIG_Python_Thread_Block {
83     bool status;
84   public:
XapianSWIG_Python_Thread_Block()85     XapianSWIG_Python_Thread_Block() : status(false) {
86 	if (PyEval_ThreadsInitialized()) {
87 	    swig_pythreadstate_ensure_init();
88 	    PyThreadState * ts = swig_pythreadstate_reset();
89 	    if (ts) {
90 		status = true;
91 		PyEval_RestoreThread(ts);
92 	    }
93 	}
94     }
end()95     void end() {
96 	if (status) {
97 	    if (swig_pythreadstate_set(PyEval_SaveThread()))
98 		Py_FatalError("swig_pythreadstate set in XapianSWIG_Python_Thread_Block::end()");
99 	    status = false;
100 	}
101     }
~XapianSWIG_Python_Thread_Block()102     ~XapianSWIG_Python_Thread_Block() { end(); }
103 };
104 
105 class XapianSWIG_Python_Thread_Allow {
106     bool status;
107   public:
XapianSWIG_Python_Thread_Allow()108     XapianSWIG_Python_Thread_Allow() : status(PyEval_ThreadsInitialized()) {
109 	if (status) {
110 	    swig_pythreadstate_ensure_init();
111 	    if (swig_pythreadstate_set(PyEval_SaveThread()))
112 		Py_FatalError("swig_pythreadstate set in XapianSWIG_Python_Thread_Allow ctor");
113 	}
114     }
end()115     void end() {
116 	if (status) {
117 	    PyThreadState * ts = swig_pythreadstate_reset();
118 	    if (!ts)
119 		Py_FatalError("swig_pythreadstate unset in XapianSWIG_Python_Thread_Block::end()");
120 	    PyEval_RestoreThread(ts);
121 	    status = false;
122 	}
123     }
~XapianSWIG_Python_Thread_Allow()124     ~XapianSWIG_Python_Thread_Allow() { end(); }
125 };
126 
127 #define SWIG_PYTHON_THREAD_BEGIN_BLOCK   XapianSWIG_Python_Thread_Block _xapian_swig_thread_block
128 #define SWIG_PYTHON_THREAD_END_BLOCK     _xapian_swig_thread_block.end()
129 #define SWIG_PYTHON_THREAD_BEGIN_ALLOW   XapianSWIG_Python_Thread_Allow _xapian_swig_thread_allow
130 #define SWIG_PYTHON_THREAD_END_ALLOW     _xapian_swig_thread_allow.end()
131 
132 
133 
134 #ifndef SWIGPYTHON
135 #define SWIGPYTHON
136 #endif
137 
138 #define SWIG_DIRECTORS
139 #define SWIG_PYTHON_THREADS
140 #define SWIG_PYTHON_NO_BUILD_NONE
141 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
142 
143 
144 #ifdef __cplusplus
145 /* SwigValueWrapper is described in swig.swg */
146 template<typename T> class SwigValueWrapper {
147   struct SwigMovePointer {
148     T *ptr;
SwigMovePointerSwigValueWrapper::SwigMovePointer149     SwigMovePointer(T *p) : ptr(p) { }
~SwigMovePointerSwigValueWrapper::SwigMovePointer150     ~SwigMovePointer() { delete ptr; }
operator =SwigValueWrapper::SwigMovePointer151     SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
152   } pointer;
153   SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
154   SwigValueWrapper(const SwigValueWrapper<T>& rhs);
155 public:
SwigValueWrapper()156   SwigValueWrapper() : pointer(0) { }
operator =(const T & t)157   SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
operator T&() const158   operator T&() const { return *pointer.ptr; }
operator &()159   T *operator&() { return pointer.ptr; }
160 };
161 
SwigValueInit()162 template <typename T> T SwigValueInit() {
163   return T();
164 }
165 #endif
166 
167 /* -----------------------------------------------------------------------------
168  *  This section contains generic SWIG labels for method/variable
169  *  declarations/attributes, and other compiler dependent labels.
170  * ----------------------------------------------------------------------------- */
171 
172 /* template workaround for compilers that cannot correctly implement the C++ standard */
173 #ifndef SWIGTEMPLATEDISAMBIGUATOR
174 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
175 #  define SWIGTEMPLATEDISAMBIGUATOR template
176 # elif defined(__HP_aCC)
177 /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
178 /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
179 #  define SWIGTEMPLATEDISAMBIGUATOR template
180 # else
181 #  define SWIGTEMPLATEDISAMBIGUATOR
182 # endif
183 #endif
184 
185 /* inline attribute */
186 #ifndef SWIGINLINE
187 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
188 #   define SWIGINLINE inline
189 # else
190 #   define SWIGINLINE
191 # endif
192 #endif
193 
194 /* attribute recognised by some compilers to avoid 'unused' warnings */
195 #ifndef SWIGUNUSED
196 # if defined(__GNUC__)
197 #   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
198 #     define SWIGUNUSED __attribute__ ((__unused__))
199 #   else
200 #     define SWIGUNUSED
201 #   endif
202 # elif defined(__ICC)
203 #   define SWIGUNUSED __attribute__ ((__unused__))
204 # else
205 #   define SWIGUNUSED
206 # endif
207 #endif
208 
209 #ifndef SWIG_MSC_UNSUPPRESS_4505
210 # if defined(_MSC_VER)
211 #   pragma warning(disable : 4505) /* unreferenced local function has been removed */
212 # endif
213 #endif
214 
215 #ifndef SWIGUNUSEDPARM
216 # ifdef __cplusplus
217 #   define SWIGUNUSEDPARM(p)
218 # else
219 #   define SWIGUNUSEDPARM(p) p SWIGUNUSED
220 # endif
221 #endif
222 
223 /* internal SWIG method */
224 #ifndef SWIGINTERN
225 # define SWIGINTERN static SWIGUNUSED
226 #endif
227 
228 /* internal inline SWIG method */
229 #ifndef SWIGINTERNINLINE
230 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
231 #endif
232 
233 /* exporting methods */
234 #if defined(__GNUC__)
235 #  if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
236 #    ifndef GCC_HASCLASSVISIBILITY
237 #      define GCC_HASCLASSVISIBILITY
238 #    endif
239 #  endif
240 #endif
241 
242 #ifndef SWIGEXPORT
243 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
244 #   if defined(STATIC_LINKED)
245 #     define SWIGEXPORT
246 #   else
247 #     define SWIGEXPORT __declspec(dllexport)
248 #   endif
249 # else
250 #   if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
251 #     define SWIGEXPORT __attribute__ ((visibility("default")))
252 #   else
253 #     define SWIGEXPORT
254 #   endif
255 # endif
256 #endif
257 
258 /* calling conventions for Windows */
259 #ifndef SWIGSTDCALL
260 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
261 #   define SWIGSTDCALL __stdcall
262 # else
263 #   define SWIGSTDCALL
264 # endif
265 #endif
266 
267 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
268 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
269 # define _CRT_SECURE_NO_DEPRECATE
270 #endif
271 
272 /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
273 #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
274 # define _SCL_SECURE_NO_DEPRECATE
275 #endif
276 
277 /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
278 #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
279 # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
280 #endif
281 
282 /* Intel's compiler complains if a variable which was never initialised is
283  * cast to void, which is a common idiom which we use to indicate that we
284  * are aware a variable isn't used.  So we just silence that warning.
285  * See: https://github.com/swig/swig/issues/192 for more discussion.
286  */
287 #ifdef __INTEL_COMPILER
288 # pragma warning disable 592
289 #endif
290 
291 
292 #if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG)
293 /* Use debug wrappers with the Python release dll */
294 # undef _DEBUG
295 # include <Python.h>
296 # define _DEBUG
297 #else
298 # include <Python.h>
299 #endif
300 
301 /* -----------------------------------------------------------------------------
302  * swigrun.swg
303  *
304  * This file contains generic C API SWIG runtime support for pointer
305  * type checking.
306  * ----------------------------------------------------------------------------- */
307 
308 /* This should only be incremented when either the layout of swig_type_info changes,
309    or for whatever reason, the runtime changes incompatibly */
310 #define SWIG_RUNTIME_VERSION "4"
311 
312 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
313 #ifdef SWIG_TYPE_TABLE
314 # define SWIG_QUOTE_STRING(x) #x
315 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
316 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
317 #else
318 # define SWIG_TYPE_TABLE_NAME
319 #endif
320 
321 /*
322   You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
323   creating a static or dynamic library from the SWIG runtime code.
324   In 99.9% of the cases, SWIG just needs to declare them as 'static'.
325 
326   But only do this if strictly necessary, ie, if you have problems
327   with your compiler or suchlike.
328 */
329 
330 #ifndef SWIGRUNTIME
331 # define SWIGRUNTIME SWIGINTERN
332 #endif
333 
334 #ifndef SWIGRUNTIMEINLINE
335 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
336 #endif
337 
338 /*  Generic buffer size */
339 #ifndef SWIG_BUFFER_SIZE
340 # define SWIG_BUFFER_SIZE 1024
341 #endif
342 
343 /* Flags for pointer conversions */
344 #define SWIG_POINTER_DISOWN        0x1
345 #define SWIG_CAST_NEW_MEMORY       0x2
346 
347 /* Flags for new pointer objects */
348 #define SWIG_POINTER_OWN           0x1
349 
350 
351 /*
352    Flags/methods for returning states.
353 
354    The SWIG conversion methods, as ConvertPtr, return an integer
355    that tells if the conversion was successful or not. And if not,
356    an error code can be returned (see swigerrors.swg for the codes).
357 
358    Use the following macros/flags to set or process the returning
359    states.
360 
361    In old versions of SWIG, code such as the following was usually written:
362 
363      if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
364        // success code
365      } else {
366        //fail code
367      }
368 
369    Now you can be more explicit:
370 
371     int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
372     if (SWIG_IsOK(res)) {
373       // success code
374     } else {
375       // fail code
376     }
377 
378    which is the same really, but now you can also do
379 
380     Type *ptr;
381     int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
382     if (SWIG_IsOK(res)) {
383       // success code
384       if (SWIG_IsNewObj(res) {
385         ...
386 	delete *ptr;
387       } else {
388         ...
389       }
390     } else {
391       // fail code
392     }
393 
394    I.e., now SWIG_ConvertPtr can return new objects and you can
395    identify the case and take care of the deallocation. Of course that
396    also requires SWIG_ConvertPtr to return new result values, such as
397 
398       int SWIG_ConvertPtr(obj, ptr,...) {
399         if (<obj is ok>) {
400           if (<need new object>) {
401             *ptr = <ptr to new allocated object>;
402             return SWIG_NEWOBJ;
403           } else {
404             *ptr = <ptr to old object>;
405             return SWIG_OLDOBJ;
406           }
407         } else {
408           return SWIG_BADOBJ;
409         }
410       }
411 
412    Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
413    more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
414    SWIG errors code.
415 
416    Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
417    allows to return the 'cast rank', for example, if you have this
418 
419        int food(double)
420        int fooi(int);
421 
422    and you call
423 
424       food(1)   // cast rank '1'  (1 -> 1.0)
425       fooi(1)   // cast rank '0'
426 
427    just use the SWIG_AddCast()/SWIG_CheckState()
428 */
429 
430 #define SWIG_OK                    (0)
431 #define SWIG_ERROR                 (-1)
432 #define SWIG_IsOK(r)               (r >= 0)
433 #define SWIG_ArgError(r)           ((r != SWIG_ERROR) ? r : SWIG_TypeError)
434 
435 /* The CastRankLimit says how many bits are used for the cast rank */
436 #define SWIG_CASTRANKLIMIT         (1 << 8)
437 /* The NewMask denotes the object was created (using new/malloc) */
438 #define SWIG_NEWOBJMASK            (SWIG_CASTRANKLIMIT  << 1)
439 /* The TmpMask is for in/out typemaps that use temporal objects */
440 #define SWIG_TMPOBJMASK            (SWIG_NEWOBJMASK << 1)
441 /* Simple returning values */
442 #define SWIG_BADOBJ                (SWIG_ERROR)
443 #define SWIG_OLDOBJ                (SWIG_OK)
444 #define SWIG_NEWOBJ                (SWIG_OK | SWIG_NEWOBJMASK)
445 #define SWIG_TMPOBJ                (SWIG_OK | SWIG_TMPOBJMASK)
446 /* Check, add and del mask methods */
447 #define SWIG_AddNewMask(r)         (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
448 #define SWIG_DelNewMask(r)         (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
449 #define SWIG_IsNewObj(r)           (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
450 #define SWIG_AddTmpMask(r)         (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
451 #define SWIG_DelTmpMask(r)         (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
452 #define SWIG_IsTmpObj(r)           (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
453 
454 /* Cast-Rank Mode */
455 #if defined(SWIG_CASTRANK_MODE)
456 #  ifndef SWIG_TypeRank
457 #    define SWIG_TypeRank             unsigned long
458 #  endif
459 #  ifndef SWIG_MAXCASTRANK            /* Default cast allowed */
460 #    define SWIG_MAXCASTRANK          (2)
461 #  endif
462 #  define SWIG_CASTRANKMASK          ((SWIG_CASTRANKLIMIT) -1)
463 #  define SWIG_CastRank(r)           (r & SWIG_CASTRANKMASK)
SWIG_AddCast(int r)464 SWIGINTERNINLINE int SWIG_AddCast(int r) {
465   return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
466 }
SWIG_CheckState(int r)467 SWIGINTERNINLINE int SWIG_CheckState(int r) {
468   return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
469 }
470 #else /* no cast-rank mode */
471 #  define SWIG_AddCast(r) (r)
472 #  define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
473 #endif
474 
475 
476 #include <string.h>
477 
478 #ifdef __cplusplus
479 extern "C" {
480 #endif
481 
482 typedef void *(*swig_converter_func)(void *, int *);
483 typedef struct swig_type_info *(*swig_dycast_func)(void **);
484 
485 /* Structure to store information on one type */
486 typedef struct swig_type_info {
487   const char             *name;			/* mangled name of this type */
488   const char             *str;			/* human readable name of this type */
489   swig_dycast_func        dcast;		/* dynamic cast function down a hierarchy */
490   struct swig_cast_info  *cast;			/* linked list of types that can cast into this type */
491   void                   *clientdata;		/* language specific type data */
492   int                    owndata;		/* flag if the structure owns the clientdata */
493 } swig_type_info;
494 
495 /* Structure to store a type and conversion function used for casting */
496 typedef struct swig_cast_info {
497   swig_type_info         *type;			/* pointer to type that is equivalent to this type */
498   swig_converter_func     converter;		/* function to cast the void pointers */
499   struct swig_cast_info  *next;			/* pointer to next cast in linked list */
500   struct swig_cast_info  *prev;			/* pointer to the previous cast */
501 } swig_cast_info;
502 
503 /* Structure used to store module information
504  * Each module generates one structure like this, and the runtime collects
505  * all of these structures and stores them in a circularly linked list.*/
506 typedef struct swig_module_info {
507   swig_type_info         **types;		/* Array of pointers to swig_type_info structures that are in this module */
508   size_t                 size;		        /* Number of types in this module */
509   struct swig_module_info *next;		/* Pointer to next element in circularly linked list */
510   swig_type_info         **type_initial;	/* Array of initially generated type structures */
511   swig_cast_info         **cast_initial;	/* Array of initially generated casting structures */
512   void                    *clientdata;		/* Language specific module data */
513 } swig_module_info;
514 
515 /*
516   Compare two type names skipping the space characters, therefore
517   "char*" == "char *" and "Class<int>" == "Class<int >", etc.
518 
519   Return 0 when the two name types are equivalent, as in
520   strncmp, but skipping ' '.
521 */
522 SWIGRUNTIME int
SWIG_TypeNameComp(const char * f1,const char * l1,const char * f2,const char * l2)523 SWIG_TypeNameComp(const char *f1, const char *l1,
524 		  const char *f2, const char *l2) {
525   for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
526     while ((*f1 == ' ') && (f1 != l1)) ++f1;
527     while ((*f2 == ' ') && (f2 != l2)) ++f2;
528     if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
529   }
530   return (int)((l1 - f1) - (l2 - f2));
531 }
532 
533 /*
534   Check type equivalence in a name list like <name1>|<name2>|...
535   Return 0 if equal, -1 if nb < tb, 1 if nb > tb
536 */
537 SWIGRUNTIME int
SWIG_TypeCmp(const char * nb,const char * tb)538 SWIG_TypeCmp(const char *nb, const char *tb) {
539   int equiv = 1;
540   const char* te = tb + strlen(tb);
541   const char* ne = nb;
542   while (equiv != 0 && *ne) {
543     for (nb = ne; *ne; ++ne) {
544       if (*ne == '|') break;
545     }
546     equiv = SWIG_TypeNameComp(nb, ne, tb, te);
547     if (*ne) ++ne;
548   }
549   return equiv;
550 }
551 
552 /*
553   Check type equivalence in a name list like <name1>|<name2>|...
554   Return 0 if not equal, 1 if equal
555 */
556 SWIGRUNTIME int
SWIG_TypeEquiv(const char * nb,const char * tb)557 SWIG_TypeEquiv(const char *nb, const char *tb) {
558   return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
559 }
560 
561 /*
562   Check the typename
563 */
564 SWIGRUNTIME swig_cast_info *
SWIG_TypeCheck(const char * c,swig_type_info * ty)565 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
566   if (ty) {
567     swig_cast_info *iter = ty->cast;
568     while (iter) {
569       if (strcmp(iter->type->name, c) == 0) {
570         if (iter == ty->cast)
571           return iter;
572         /* Move iter to the top of the linked list */
573         iter->prev->next = iter->next;
574         if (iter->next)
575           iter->next->prev = iter->prev;
576         iter->next = ty->cast;
577         iter->prev = 0;
578         if (ty->cast) ty->cast->prev = iter;
579         ty->cast = iter;
580         return iter;
581       }
582       iter = iter->next;
583     }
584   }
585   return 0;
586 }
587 
588 /*
589   Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
590 */
591 SWIGRUNTIME swig_cast_info *
SWIG_TypeCheckStruct(swig_type_info * from,swig_type_info * ty)592 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
593   if (ty) {
594     swig_cast_info *iter = ty->cast;
595     while (iter) {
596       if (iter->type == from) {
597         if (iter == ty->cast)
598           return iter;
599         /* Move iter to the top of the linked list */
600         iter->prev->next = iter->next;
601         if (iter->next)
602           iter->next->prev = iter->prev;
603         iter->next = ty->cast;
604         iter->prev = 0;
605         if (ty->cast) ty->cast->prev = iter;
606         ty->cast = iter;
607         return iter;
608       }
609       iter = iter->next;
610     }
611   }
612   return 0;
613 }
614 
615 /*
616   Cast a pointer up an inheritance hierarchy
617 */
618 SWIGRUNTIMEINLINE void *
SWIG_TypeCast(swig_cast_info * ty,void * ptr,int * newmemory)619 SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
620   return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
621 }
622 
623 /*
624    Dynamic pointer casting. Down an inheritance hierarchy
625 */
626 SWIGRUNTIME swig_type_info *
SWIG_TypeDynamicCast(swig_type_info * ty,void ** ptr)627 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
628   swig_type_info *lastty = ty;
629   if (!ty || !ty->dcast) return ty;
630   while (ty && (ty->dcast)) {
631     ty = (*ty->dcast)(ptr);
632     if (ty) lastty = ty;
633   }
634   return lastty;
635 }
636 
637 /*
638   Return the name associated with this type
639 */
640 SWIGRUNTIMEINLINE const char *
SWIG_TypeName(const swig_type_info * ty)641 SWIG_TypeName(const swig_type_info *ty) {
642   return ty->name;
643 }
644 
645 /*
646   Return the pretty name associated with this type,
647   that is an unmangled type name in a form presentable to the user.
648 */
649 SWIGRUNTIME const char *
SWIG_TypePrettyName(const swig_type_info * type)650 SWIG_TypePrettyName(const swig_type_info *type) {
651   /* The "str" field contains the equivalent pretty names of the
652      type, separated by vertical-bar characters.  We choose
653      to print the last name, as it is often (?) the most
654      specific. */
655   if (!type) return NULL;
656   if (type->str != NULL) {
657     const char *last_name = type->str;
658     const char *s;
659     for (s = type->str; *s; s++)
660       if (*s == '|') last_name = s+1;
661     return last_name;
662   }
663   else
664     return type->name;
665 }
666 
667 /*
668    Set the clientdata field for a type
669 */
670 SWIGRUNTIME void
SWIG_TypeClientData(swig_type_info * ti,void * clientdata)671 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
672   swig_cast_info *cast = ti->cast;
673   /* if (ti->clientdata == clientdata) return; */
674   ti->clientdata = clientdata;
675 
676   while (cast) {
677     if (!cast->converter) {
678       swig_type_info *tc = cast->type;
679       if (!tc->clientdata) {
680 	SWIG_TypeClientData(tc, clientdata);
681       }
682     }
683     cast = cast->next;
684   }
685 }
686 SWIGRUNTIME void
SWIG_TypeNewClientData(swig_type_info * ti,void * clientdata)687 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
688   SWIG_TypeClientData(ti, clientdata);
689   ti->owndata = 1;
690 }
691 
692 /*
693   Search for a swig_type_info structure only by mangled name
694   Search is a O(log #types)
695 
696   We start searching at module start, and finish searching when start == end.
697   Note: if start == end at the beginning of the function, we go all the way around
698   the circular list.
699 */
700 SWIGRUNTIME swig_type_info *
SWIG_MangledTypeQueryModule(swig_module_info * start,swig_module_info * end,const char * name)701 SWIG_MangledTypeQueryModule(swig_module_info *start,
702                             swig_module_info *end,
703 		            const char *name) {
704   swig_module_info *iter = start;
705   do {
706     if (iter->size) {
707       size_t l = 0;
708       size_t r = iter->size - 1;
709       do {
710 	/* since l+r >= 0, we can (>> 1) instead (/ 2) */
711 	size_t i = (l + r) >> 1;
712 	const char *iname = iter->types[i]->name;
713 	if (iname) {
714 	  int compare = strcmp(name, iname);
715 	  if (compare == 0) {
716 	    return iter->types[i];
717 	  } else if (compare < 0) {
718 	    if (i) {
719 	      r = i - 1;
720 	    } else {
721 	      break;
722 	    }
723 	  } else if (compare > 0) {
724 	    l = i + 1;
725 	  }
726 	} else {
727 	  break; /* should never happen */
728 	}
729       } while (l <= r);
730     }
731     iter = iter->next;
732   } while (iter != end);
733   return 0;
734 }
735 
736 /*
737   Search for a swig_type_info structure for either a mangled name or a human readable name.
738   It first searches the mangled names of the types, which is a O(log #types)
739   If a type is not found it then searches the human readable names, which is O(#types).
740 
741   We start searching at module start, and finish searching when start == end.
742   Note: if start == end at the beginning of the function, we go all the way around
743   the circular list.
744 */
745 SWIGRUNTIME swig_type_info *
SWIG_TypeQueryModule(swig_module_info * start,swig_module_info * end,const char * name)746 SWIG_TypeQueryModule(swig_module_info *start,
747                      swig_module_info *end,
748 		     const char *name) {
749   /* STEP 1: Search the name field using binary search */
750   swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
751   if (ret) {
752     return ret;
753   } else {
754     /* STEP 2: If the type hasn't been found, do a complete search
755        of the str field (the human readable name) */
756     swig_module_info *iter = start;
757     do {
758       size_t i = 0;
759       for (; i < iter->size; ++i) {
760 	if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
761 	  return iter->types[i];
762       }
763       iter = iter->next;
764     } while (iter != end);
765   }
766 
767   /* neither found a match */
768   return 0;
769 }
770 
771 /*
772    Pack binary data into a string
773 */
774 SWIGRUNTIME char *
SWIG_PackData(char * c,void * ptr,size_t sz)775 SWIG_PackData(char *c, void *ptr, size_t sz) {
776   static const char hex[17] = "0123456789abcdef";
777   const unsigned char *u = (unsigned char *) ptr;
778   const unsigned char *eu =  u + sz;
779   for (; u != eu; ++u) {
780     unsigned char uu = *u;
781     *(c++) = hex[(uu & 0xf0) >> 4];
782     *(c++) = hex[uu & 0xf];
783   }
784   return c;
785 }
786 
787 /*
788    Unpack binary data from a string
789 */
790 SWIGRUNTIME const char *
SWIG_UnpackData(const char * c,void * ptr,size_t sz)791 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
792   unsigned char *u = (unsigned char *) ptr;
793   const unsigned char *eu = u + sz;
794   for (; u != eu; ++u) {
795     char d = *(c++);
796     unsigned char uu;
797     if ((d >= '0') && (d <= '9'))
798       uu = (unsigned char)((d - '0') << 4);
799     else if ((d >= 'a') && (d <= 'f'))
800       uu = (unsigned char)((d - ('a'-10)) << 4);
801     else
802       return (char *) 0;
803     d = *(c++);
804     if ((d >= '0') && (d <= '9'))
805       uu |= (unsigned char)(d - '0');
806     else if ((d >= 'a') && (d <= 'f'))
807       uu |= (unsigned char)(d - ('a'-10));
808     else
809       return (char *) 0;
810     *u = uu;
811   }
812   return c;
813 }
814 
815 /*
816    Pack 'void *' into a string buffer.
817 */
818 SWIGRUNTIME char *
SWIG_PackVoidPtr(char * buff,void * ptr,const char * name,size_t bsz)819 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
820   char *r = buff;
821   if ((2*sizeof(void *) + 2) > bsz) return 0;
822   *(r++) = '_';
823   r = SWIG_PackData(r,&ptr,sizeof(void *));
824   if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
825   strcpy(r,name);
826   return buff;
827 }
828 
829 SWIGRUNTIME const char *
SWIG_UnpackVoidPtr(const char * c,void ** ptr,const char * name)830 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
831   if (*c != '_') {
832     if (strcmp(c,"NULL") == 0) {
833       *ptr = (void *) 0;
834       return name;
835     } else {
836       return 0;
837     }
838   }
839   return SWIG_UnpackData(++c,ptr,sizeof(void *));
840 }
841 
842 SWIGRUNTIME char *
SWIG_PackDataName(char * buff,void * ptr,size_t sz,const char * name,size_t bsz)843 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
844   char *r = buff;
845   size_t lname = (name ? strlen(name) : 0);
846   if ((2*sz + 2 + lname) > bsz) return 0;
847   *(r++) = '_';
848   r = SWIG_PackData(r,ptr,sz);
849   if (lname) {
850     strncpy(r,name,lname+1);
851   } else {
852     *r = 0;
853   }
854   return buff;
855 }
856 
857 SWIGRUNTIME const char *
SWIG_UnpackDataName(const char * c,void * ptr,size_t sz,const char * name)858 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
859   if (*c != '_') {
860     if (strcmp(c,"NULL") == 0) {
861       memset(ptr,0,sz);
862       return name;
863     } else {
864       return 0;
865     }
866   }
867   return SWIG_UnpackData(++c,ptr,sz);
868 }
869 
870 #ifdef __cplusplus
871 }
872 #endif
873 
874 /*  Errors in SWIG */
875 #define  SWIG_UnknownError    	   -1
876 #define  SWIG_IOError        	   -2
877 #define  SWIG_RuntimeError   	   -3
878 #define  SWIG_IndexError     	   -4
879 #define  SWIG_TypeError      	   -5
880 #define  SWIG_DivisionByZero 	   -6
881 #define  SWIG_OverflowError  	   -7
882 #define  SWIG_SyntaxError    	   -8
883 #define  SWIG_ValueError     	   -9
884 #define  SWIG_SystemError    	   -10
885 #define  SWIG_AttributeError 	   -11
886 #define  SWIG_MemoryError    	   -12
887 #define  SWIG_NullReferenceError   -13
888 
889 
890 
891 /* Compatibility macros for Python 3 */
892 #if PY_VERSION_HEX >= 0x03000000
893 
894 #define PyClass_Check(obj) PyObject_IsInstance(obj, (PyObject *)&PyType_Type)
895 #define PyInt_Check(x) PyLong_Check(x)
896 #define PyInt_AsLong(x) PyLong_AsLong(x)
897 #define PyInt_FromLong(x) PyLong_FromLong(x)
898 #define PyInt_FromSize_t(x) PyLong_FromSize_t(x)
899 #define PyString_Check(name) PyBytes_Check(name)
900 #define PyString_FromString(x) PyUnicode_FromString(x)
901 #define PyString_Format(fmt, args)  PyUnicode_Format(fmt, args)
902 #define PyString_AsString(str) PyBytes_AsString(str)
903 #define PyString_Size(str) PyBytes_Size(str)
904 #define PyString_InternFromString(key) PyUnicode_InternFromString(key)
905 #define Py_TPFLAGS_HAVE_CLASS Py_TPFLAGS_BASETYPE
906 #define PyString_AS_STRING(x) PyUnicode_AS_STRING(x)
907 #define _PyLong_FromSsize_t(x) PyLong_FromSsize_t(x)
908 
909 #endif
910 
911 #ifndef Py_TYPE
912 #  define Py_TYPE(op) ((op)->ob_type)
913 #endif
914 
915 /* SWIG APIs for compatibility of both Python 2 & 3 */
916 
917 #if PY_VERSION_HEX >= 0x03000000
918 #  define SWIG_Python_str_FromFormat PyUnicode_FromFormat
919 #else
920 #  define SWIG_Python_str_FromFormat PyString_FromFormat
921 #endif
922 
923 
924 /* Warning: This function will allocate a new string in Python 3,
925  * so please call SWIG_Python_str_DelForPy3(x) to free the space.
926  */
927 SWIGINTERN char*
SWIG_Python_str_AsChar(PyObject * str)928 SWIG_Python_str_AsChar(PyObject *str)
929 {
930 #if PY_VERSION_HEX >= 0x03000000
931   char *cstr;
932   char *newstr;
933   Py_ssize_t len;
934   str = PyUnicode_AsUTF8String(str);
935   PyBytes_AsStringAndSize(str, &cstr, &len);
936   newstr = (char *) malloc(len+1);
937   memcpy(newstr, cstr, len+1);
938   Py_XDECREF(str);
939   return newstr;
940 #else
941   return PyString_AsString(str);
942 #endif
943 }
944 
945 #if PY_VERSION_HEX >= 0x03000000
946 #  define SWIG_Python_str_DelForPy3(x) free( (void*) (x) )
947 #else
948 #  define SWIG_Python_str_DelForPy3(x)
949 #endif
950 
951 
952 SWIGINTERN PyObject*
SWIG_Python_str_FromChar(const char * c)953 SWIG_Python_str_FromChar(const char *c)
954 {
955 #if PY_VERSION_HEX >= 0x03000000
956   return PyUnicode_FromString(c);
957 #else
958   return PyString_FromString(c);
959 #endif
960 }
961 
962 /* Add PyOS_snprintf for old Pythons */
963 #if PY_VERSION_HEX < 0x02020000
964 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
965 #  define PyOS_snprintf _snprintf
966 # else
967 #  define PyOS_snprintf snprintf
968 # endif
969 #endif
970 
971 /* A crude PyString_FromFormat implementation for old Pythons */
972 #if PY_VERSION_HEX < 0x02020000
973 
974 #ifndef SWIG_PYBUFFER_SIZE
975 # define SWIG_PYBUFFER_SIZE 1024
976 #endif
977 
978 static PyObject *
PyString_FromFormat(const char * fmt,...)979 PyString_FromFormat(const char *fmt, ...) {
980   va_list ap;
981   char buf[SWIG_PYBUFFER_SIZE * 2];
982   int res;
983   va_start(ap, fmt);
984   res = vsnprintf(buf, sizeof(buf), fmt, ap);
985   va_end(ap);
986   return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
987 }
988 #endif
989 
990 #ifndef PyObject_DEL
991 # define PyObject_DEL PyObject_Del
992 #endif
993 
994 /* A crude PyExc_StopIteration exception for old Pythons */
995 #if PY_VERSION_HEX < 0x02020000
996 # ifndef PyExc_StopIteration
997 #  define PyExc_StopIteration PyExc_RuntimeError
998 # endif
999 # ifndef PyObject_GenericGetAttr
1000 #  define PyObject_GenericGetAttr 0
1001 # endif
1002 #endif
1003 
1004 /* Py_NotImplemented is defined in 2.1 and up. */
1005 #if PY_VERSION_HEX < 0x02010000
1006 # ifndef Py_NotImplemented
1007 #  define Py_NotImplemented PyExc_RuntimeError
1008 # endif
1009 #endif
1010 
1011 /* A crude PyString_AsStringAndSize implementation for old Pythons */
1012 #if PY_VERSION_HEX < 0x02010000
1013 # ifndef PyString_AsStringAndSize
1014 #  define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
1015 # endif
1016 #endif
1017 
1018 /* PySequence_Size for old Pythons */
1019 #if PY_VERSION_HEX < 0x02000000
1020 # ifndef PySequence_Size
1021 #  define PySequence_Size PySequence_Length
1022 # endif
1023 #endif
1024 
1025 /* PyBool_FromLong for old Pythons */
1026 #if PY_VERSION_HEX < 0x02030000
1027 static
PyBool_FromLong(long ok)1028 PyObject *PyBool_FromLong(long ok)
1029 {
1030   PyObject *result = ok ? Py_True : Py_False;
1031   Py_INCREF(result);
1032   return result;
1033 }
1034 #endif
1035 
1036 /* Py_ssize_t for old Pythons */
1037 /* This code is as recommended by: */
1038 /* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */
1039 #if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)
1040 typedef int Py_ssize_t;
1041 # define PY_SSIZE_T_MAX INT_MAX
1042 # define PY_SSIZE_T_MIN INT_MIN
1043 typedef inquiry lenfunc;
1044 typedef intargfunc ssizeargfunc;
1045 typedef intintargfunc ssizessizeargfunc;
1046 typedef intobjargproc ssizeobjargproc;
1047 typedef intintobjargproc ssizessizeobjargproc;
1048 typedef getreadbufferproc readbufferproc;
1049 typedef getwritebufferproc writebufferproc;
1050 typedef getsegcountproc segcountproc;
1051 typedef getcharbufferproc charbufferproc;
PyNumber_AsSsize_t(PyObject * x,void * SWIGUNUSEDPARM (exc))1052 static long PyNumber_AsSsize_t (PyObject *x, void *SWIGUNUSEDPARM(exc))
1053 {
1054   long result = 0;
1055   PyObject *i = PyNumber_Int(x);
1056   if (i) {
1057     result = PyInt_AsLong(i);
1058     Py_DECREF(i);
1059   }
1060   return result;
1061 }
1062 #endif
1063 
1064 #if PY_VERSION_HEX < 0x02050000
1065 #define PyInt_FromSize_t(x) PyInt_FromLong((long)x)
1066 #endif
1067 
1068 #if PY_VERSION_HEX < 0x02040000
1069 #define Py_VISIT(op)				\
1070   do { 						\
1071     if (op) {					\
1072       int vret = visit((op), arg);		\
1073       if (vret)					\
1074         return vret;				\
1075     }						\
1076   } while (0)
1077 #endif
1078 
1079 #if PY_VERSION_HEX < 0x02030000
1080 typedef struct {
1081   PyTypeObject type;
1082   PyNumberMethods as_number;
1083   PyMappingMethods as_mapping;
1084   PySequenceMethods as_sequence;
1085   PyBufferProcs as_buffer;
1086   PyObject *name, *slots;
1087 } PyHeapTypeObject;
1088 #endif
1089 
1090 #if PY_VERSION_HEX < 0x02030000
1091 typedef destructor freefunc;
1092 #endif
1093 
1094 #if ((PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION > 6) || \
1095      (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION > 0) || \
1096      (PY_MAJOR_VERSION > 3))
1097 # define SWIGPY_USE_CAPSULE
1098 # define SWIGPY_CAPSULE_NAME ((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME)
1099 #endif
1100 
1101 #if PY_VERSION_HEX < 0x03020000
1102 #define PyDescr_TYPE(x) (((PyDescrObject *)(x))->d_type)
1103 #define PyDescr_NAME(x) (((PyDescrObject *)(x))->d_name)
1104 #define Py_hash_t long
1105 #endif
1106 
1107 /* -----------------------------------------------------------------------------
1108  * error manipulation
1109  * ----------------------------------------------------------------------------- */
1110 
1111 SWIGRUNTIME PyObject*
SWIG_Python_ErrorType(int code)1112 SWIG_Python_ErrorType(int code) {
1113   PyObject* type = 0;
1114   switch(code) {
1115   case SWIG_MemoryError:
1116     type = PyExc_MemoryError;
1117     break;
1118   case SWIG_IOError:
1119     type = PyExc_IOError;
1120     break;
1121   case SWIG_RuntimeError:
1122     type = PyExc_RuntimeError;
1123     break;
1124   case SWIG_IndexError:
1125     type = PyExc_IndexError;
1126     break;
1127   case SWIG_TypeError:
1128     type = PyExc_TypeError;
1129     break;
1130   case SWIG_DivisionByZero:
1131     type = PyExc_ZeroDivisionError;
1132     break;
1133   case SWIG_OverflowError:
1134     type = PyExc_OverflowError;
1135     break;
1136   case SWIG_SyntaxError:
1137     type = PyExc_SyntaxError;
1138     break;
1139   case SWIG_ValueError:
1140     type = PyExc_ValueError;
1141     break;
1142   case SWIG_SystemError:
1143     type = PyExc_SystemError;
1144     break;
1145   case SWIG_AttributeError:
1146     type = PyExc_AttributeError;
1147     break;
1148   default:
1149     type = PyExc_RuntimeError;
1150   }
1151   return type;
1152 }
1153 
1154 
1155 SWIGRUNTIME void
SWIG_Python_AddErrorMsg(const char * mesg)1156 SWIG_Python_AddErrorMsg(const char* mesg)
1157 {
1158   PyObject *type = 0;
1159   PyObject *value = 0;
1160   PyObject *traceback = 0;
1161 
1162   if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
1163   if (value) {
1164     char *tmp;
1165     PyObject *old_str = PyObject_Str(value);
1166     PyErr_Clear();
1167     Py_XINCREF(type);
1168 
1169     PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
1170     SWIG_Python_str_DelForPy3(tmp);
1171     Py_DECREF(old_str);
1172     Py_DECREF(value);
1173   } else {
1174     PyErr_SetString(PyExc_RuntimeError, mesg);
1175   }
1176 }
1177 
1178 #if defined(SWIG_PYTHON_NO_THREADS)
1179 #  if defined(SWIG_PYTHON_THREADS)
1180 #    undef SWIG_PYTHON_THREADS
1181 #  endif
1182 #endif
1183 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
1184 #  if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
1185 #    if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
1186 #      define SWIG_PYTHON_USE_GIL
1187 #    endif
1188 #  endif
1189 #  if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
1190 #    ifndef SWIG_PYTHON_INITIALIZE_THREADS
1191 #     define SWIG_PYTHON_INITIALIZE_THREADS  PyEval_InitThreads()
1192 #    endif
1193 #    ifdef __cplusplus /* C++ code */
1194        class SWIG_Python_Thread_Block {
1195          bool status;
1196          PyGILState_STATE state;
1197        public:
end()1198          void end() { if (status) { PyGILState_Release(state); status = false;} }
SWIG_Python_Thread_Block()1199          SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
~SWIG_Python_Thread_Block()1200          ~SWIG_Python_Thread_Block() { end(); }
1201        };
1202        class SWIG_Python_Thread_Allow {
1203          bool status;
1204          PyThreadState *save;
1205        public:
end()1206          void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
SWIG_Python_Thread_Allow()1207          SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
~SWIG_Python_Thread_Allow()1208          ~SWIG_Python_Thread_Allow() { end(); }
1209        };
1210 #      define SWIG_PYTHON_THREAD_BEGIN_BLOCK   SWIG_Python_Thread_Block _swig_thread_block
1211 #      define SWIG_PYTHON_THREAD_END_BLOCK     _swig_thread_block.end()
1212 #      define SWIG_PYTHON_THREAD_BEGIN_ALLOW   SWIG_Python_Thread_Allow _swig_thread_allow
1213 #      define SWIG_PYTHON_THREAD_END_ALLOW     _swig_thread_allow.end()
1214 #    else /* C code */
1215 #      define SWIG_PYTHON_THREAD_BEGIN_BLOCK   PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
1216 #      define SWIG_PYTHON_THREAD_END_BLOCK     PyGILState_Release(_swig_thread_block)
1217 #      define SWIG_PYTHON_THREAD_BEGIN_ALLOW   PyThreadState *_swig_thread_allow = PyEval_SaveThread()
1218 #      define SWIG_PYTHON_THREAD_END_ALLOW     PyEval_RestoreThread(_swig_thread_allow)
1219 #    endif
1220 #  else /* Old thread way, not implemented, user must provide it */
1221 #    if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
1222 #      define SWIG_PYTHON_INITIALIZE_THREADS
1223 #    endif
1224 #    if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
1225 #      define SWIG_PYTHON_THREAD_BEGIN_BLOCK
1226 #    endif
1227 #    if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
1228 #      define SWIG_PYTHON_THREAD_END_BLOCK
1229 #    endif
1230 #    if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
1231 #      define SWIG_PYTHON_THREAD_BEGIN_ALLOW
1232 #    endif
1233 #    if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
1234 #      define SWIG_PYTHON_THREAD_END_ALLOW
1235 #    endif
1236 #  endif
1237 #else /* No thread support */
1238 #  define SWIG_PYTHON_INITIALIZE_THREADS
1239 #  define SWIG_PYTHON_THREAD_BEGIN_BLOCK
1240 #  define SWIG_PYTHON_THREAD_END_BLOCK
1241 #  define SWIG_PYTHON_THREAD_BEGIN_ALLOW
1242 #  define SWIG_PYTHON_THREAD_END_ALLOW
1243 #endif
1244 
1245 /* -----------------------------------------------------------------------------
1246  * Python API portion that goes into the runtime
1247  * ----------------------------------------------------------------------------- */
1248 
1249 #ifdef __cplusplus
1250 extern "C" {
1251 #endif
1252 
1253 /* -----------------------------------------------------------------------------
1254  * Constant declarations
1255  * ----------------------------------------------------------------------------- */
1256 
1257 /* Constant Types */
1258 #define SWIG_PY_POINTER 4
1259 #define SWIG_PY_BINARY  5
1260 
1261 /* Constant information structure */
1262 typedef struct swig_const_info {
1263   int type;
1264   char *name;
1265   long lvalue;
1266   double dvalue;
1267   void   *pvalue;
1268   swig_type_info **ptype;
1269 } swig_const_info;
1270 
1271 
1272 /* -----------------------------------------------------------------------------
1273  * Wrapper of PyInstanceMethod_New() used in Python 3
1274  * It is exported to the generated module, used for -fastproxy
1275  * ----------------------------------------------------------------------------- */
1276 #if PY_VERSION_HEX >= 0x03000000
SWIG_PyInstanceMethod_New(PyObject * SWIGUNUSEDPARM (self),PyObject * func)1277 SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func)
1278 {
1279   return PyInstanceMethod_New(func);
1280 }
1281 #else
SWIG_PyInstanceMethod_New(PyObject * SWIGUNUSEDPARM (self),PyObject * SWIGUNUSEDPARM (func))1282 SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *SWIGUNUSEDPARM(func))
1283 {
1284   return NULL;
1285 }
1286 #endif
1287 
1288 #ifdef __cplusplus
1289 }
1290 #endif
1291 
1292 
1293 /* -----------------------------------------------------------------------------
1294  * pyrun.swg
1295  *
1296  * This file contains the runtime support for Python modules
1297  * and includes code for managing global variables and pointer
1298  * type checking.
1299  *
1300  * ----------------------------------------------------------------------------- */
1301 
1302 /* Common SWIG API */
1303 
1304 /* for raw pointers */
1305 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags)  SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
1306 #define SWIG_ConvertPtr(obj, pptr, type, flags)         SWIG_Python_ConvertPtr(obj, pptr, type, flags)
1307 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own)  SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
1308 
1309 #ifdef SWIGPYTHON_BUILTIN
1310 #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(self, ptr, type, flags)
1311 #else
1312 #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
1313 #endif
1314 
1315 #define SWIG_InternalNewPointerObj(ptr, type, flags)	SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
1316 
1317 #define SWIG_CheckImplicit(ty)                          SWIG_Python_CheckImplicit(ty)
1318 #define SWIG_AcquirePtr(ptr, src)                       SWIG_Python_AcquirePtr(ptr, src)
1319 #define swig_owntype                                    int
1320 
1321 /* for raw packed data */
1322 #define SWIG_ConvertPacked(obj, ptr, sz, ty)            SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1323 #define SWIG_NewPackedObj(ptr, sz, type)                SWIG_Python_NewPackedObj(ptr, sz, type)
1324 
1325 /* for class or struct pointers */
1326 #define SWIG_ConvertInstance(obj, pptr, type, flags)    SWIG_ConvertPtr(obj, pptr, type, flags)
1327 #define SWIG_NewInstanceObj(ptr, type, flags)           SWIG_NewPointerObj(ptr, type, flags)
1328 
1329 /* for C or C++ function pointers */
1330 #define SWIG_ConvertFunctionPtr(obj, pptr, type)        SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1331 #define SWIG_NewFunctionPtrObj(ptr, type)               SWIG_Python_NewPointerObj(NULL, ptr, type, 0)
1332 
1333 /* for C++ member pointers, ie, member methods */
1334 #define SWIG_ConvertMember(obj, ptr, sz, ty)            SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1335 #define SWIG_NewMemberObj(ptr, sz, type)                SWIG_Python_NewPackedObj(ptr, sz, type)
1336 
1337 
1338 /* Runtime API */
1339 
1340 #define SWIG_GetModule(clientdata)                      SWIG_Python_GetModule(clientdata)
1341 #define SWIG_SetModule(clientdata, pointer)             SWIG_Python_SetModule(pointer)
1342 #define SWIG_NewClientData(obj)                         SwigPyClientData_New(obj)
1343 
1344 #define SWIG_SetErrorObj                                SWIG_Python_SetErrorObj
1345 #define SWIG_SetErrorMsg                        	SWIG_Python_SetErrorMsg
1346 #define SWIG_ErrorType(code)                    	SWIG_Python_ErrorType(code)
1347 #define SWIG_Error(code, msg)            		SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1348 #define SWIG_fail                        		goto fail
1349 
1350 
1351 /* Runtime API implementation */
1352 
1353 /* Error manipulation */
1354 
1355 SWIGINTERN void
SWIG_Python_SetErrorObj(PyObject * errtype,PyObject * obj)1356 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1357   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1358   PyErr_SetObject(errtype, obj);
1359   Py_DECREF(obj);
1360   SWIG_PYTHON_THREAD_END_BLOCK;
1361 }
1362 
1363 SWIGINTERN void
SWIG_Python_SetErrorMsg(PyObject * errtype,const char * msg)1364 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1365   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1366   PyErr_SetString(errtype, msg);
1367   SWIG_PYTHON_THREAD_END_BLOCK;
1368 }
1369 
1370 #define SWIG_Python_Raise(obj, type, desc)  SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1371 
1372 /* Set a constant value */
1373 
1374 #if defined(SWIGPYTHON_BUILTIN)
1375 
1376 SWIGINTERN void
SwigPyBuiltin_AddPublicSymbol(PyObject * seq,const char * key)1377 SwigPyBuiltin_AddPublicSymbol(PyObject *seq, const char *key) {
1378   PyObject *s = PyString_InternFromString(key);
1379   PyList_Append(seq, s);
1380   Py_DECREF(s);
1381 }
1382 
1383 SWIGINTERN void
SWIG_Python_SetConstant(PyObject * d,PyObject * public_interface,const char * name,PyObject * obj)1384 SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface, const char *name, PyObject *obj) {
1385 #if PY_VERSION_HEX < 0x02030000
1386   PyDict_SetItemString(d, (char *)name, obj);
1387 #else
1388   PyDict_SetItemString(d, name, obj);
1389 #endif
1390   Py_DECREF(obj);
1391   if (public_interface)
1392     SwigPyBuiltin_AddPublicSymbol(public_interface, name);
1393 }
1394 
1395 #else
1396 
1397 SWIGINTERN void
SWIG_Python_SetConstant(PyObject * d,const char * name,PyObject * obj)1398 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1399 #if PY_VERSION_HEX < 0x02030000
1400   PyDict_SetItemString(d, (char *)name, obj);
1401 #else
1402   PyDict_SetItemString(d, name, obj);
1403 #endif
1404   Py_DECREF(obj);
1405 }
1406 
1407 #endif
1408 
1409 /* Append a value to the result obj */
1410 
1411 SWIGINTERN PyObject*
SWIG_Python_AppendOutput(PyObject * result,PyObject * obj)1412 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1413 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1414   if (!result) {
1415     result = obj;
1416   } else if (result == Py_None) {
1417     Py_DECREF(result);
1418     result = obj;
1419   } else {
1420     if (!PyList_Check(result)) {
1421       PyObject *o2 = result;
1422       result = PyList_New(1);
1423       PyList_SetItem(result, 0, o2);
1424     }
1425     PyList_Append(result,obj);
1426     Py_DECREF(obj);
1427   }
1428   return result;
1429 #else
1430   PyObject*   o2;
1431   PyObject*   o3;
1432   if (!result) {
1433     result = obj;
1434   } else if (result == Py_None) {
1435     Py_DECREF(result);
1436     result = obj;
1437   } else {
1438     if (!PyTuple_Check(result)) {
1439       o2 = result;
1440       result = PyTuple_New(1);
1441       PyTuple_SET_ITEM(result, 0, o2);
1442     }
1443     o3 = PyTuple_New(1);
1444     PyTuple_SET_ITEM(o3, 0, obj);
1445     o2 = result;
1446     result = PySequence_Concat(o2, o3);
1447     Py_DECREF(o2);
1448     Py_DECREF(o3);
1449   }
1450   return result;
1451 #endif
1452 }
1453 
1454 /* Unpack the argument tuple */
1455 
1456 SWIGINTERN Py_ssize_t
SWIG_Python_UnpackTuple(PyObject * args,const char * name,Py_ssize_t min,Py_ssize_t max,PyObject ** objs)1457 SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs)
1458 {
1459   if (!args) {
1460     if (!min && !max) {
1461       return 1;
1462     } else {
1463       PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1464 		   name, (min == max ? "" : "at least "), (int)min);
1465       return 0;
1466     }
1467   }
1468   if (!PyTuple_Check(args)) {
1469     if (min <= 1 && max >= 1) {
1470       Py_ssize_t i;
1471       objs[0] = args;
1472       for (i = 1; i < max; ++i) {
1473 	objs[i] = 0;
1474       }
1475       return 2;
1476     }
1477     PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1478     return 0;
1479   } else {
1480     Py_ssize_t l = PyTuple_GET_SIZE(args);
1481     if (l < min) {
1482       PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1483 		   name, (min == max ? "" : "at least "), (int)min, (int)l);
1484       return 0;
1485     } else if (l > max) {
1486       PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1487 		   name, (min == max ? "" : "at most "), (int)max, (int)l);
1488       return 0;
1489     } else {
1490       Py_ssize_t i;
1491       for (i = 0; i < l; ++i) {
1492 	objs[i] = PyTuple_GET_ITEM(args, i);
1493       }
1494       for (; l < max; ++l) {
1495 	objs[l] = 0;
1496       }
1497       return i + 1;
1498     }
1499   }
1500 }
1501 
1502 /* A functor is a function object with one single object argument */
1503 #if PY_VERSION_HEX >= 0x02020000
1504 #define SWIG_Python_CallFunctor(functor, obj)	        PyObject_CallFunctionObjArgs(functor, obj, NULL);
1505 #else
1506 #define SWIG_Python_CallFunctor(functor, obj)	        PyObject_CallFunction(functor, "O", obj);
1507 #endif
1508 
1509 /*
1510   Helper for static pointer initialization for both C and C++ code, for example
1511   static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1512 */
1513 #ifdef __cplusplus
1514 #define SWIG_STATIC_POINTER(var)  var
1515 #else
1516 #define SWIG_STATIC_POINTER(var)  var = 0; if (!var) var
1517 #endif
1518 
1519 /* -----------------------------------------------------------------------------
1520  * Pointer declarations
1521  * ----------------------------------------------------------------------------- */
1522 
1523 /* Flags for new pointer objects */
1524 #define SWIG_POINTER_NOSHADOW       (SWIG_POINTER_OWN      << 1)
1525 #define SWIG_POINTER_NEW            (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1526 
1527 #define SWIG_POINTER_IMPLICIT_CONV  (SWIG_POINTER_DISOWN   << 1)
1528 
1529 #define SWIG_BUILTIN_TP_INIT	    (SWIG_POINTER_OWN << 2)
1530 #define SWIG_BUILTIN_INIT	    (SWIG_BUILTIN_TP_INIT | SWIG_POINTER_OWN)
1531 
1532 #ifdef __cplusplus
1533 extern "C" {
1534 #endif
1535 
1536 /*  How to access Py_None */
1537 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1538 #  ifndef SWIG_PYTHON_NO_BUILD_NONE
1539 #    ifndef SWIG_PYTHON_BUILD_NONE
1540 #      define SWIG_PYTHON_BUILD_NONE
1541 #    endif
1542 #  endif
1543 #endif
1544 
1545 #ifdef SWIG_PYTHON_BUILD_NONE
1546 #  ifdef Py_None
1547 #   undef Py_None
1548 #   define Py_None SWIG_Py_None()
1549 #  endif
1550 SWIGRUNTIMEINLINE PyObject *
_SWIG_Py_None(void)1551 _SWIG_Py_None(void)
1552 {
1553   PyObject *none = Py_BuildValue((char*)"");
1554   Py_DECREF(none);
1555   return none;
1556 }
1557 SWIGRUNTIME PyObject *
SWIG_Py_None(void)1558 SWIG_Py_None(void)
1559 {
1560   static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1561   return none;
1562 }
1563 #endif
1564 
1565 /* The python void return value */
1566 
1567 SWIGRUNTIMEINLINE PyObject *
SWIG_Py_Void(void)1568 SWIG_Py_Void(void)
1569 {
1570   PyObject *none = Py_None;
1571   Py_INCREF(none);
1572   return none;
1573 }
1574 
1575 /* SwigPyClientData */
1576 
1577 typedef struct {
1578   PyObject *klass;
1579   PyObject *newraw;
1580   PyObject *newargs;
1581   PyObject *destroy;
1582   int delargs;
1583   int implicitconv;
1584   PyTypeObject *pytype;
1585 } SwigPyClientData;
1586 
1587 SWIGRUNTIMEINLINE int
SWIG_Python_CheckImplicit(swig_type_info * ty)1588 SWIG_Python_CheckImplicit(swig_type_info *ty)
1589 {
1590   SwigPyClientData *data = (SwigPyClientData *)ty->clientdata;
1591   return data ? data->implicitconv : 0;
1592 }
1593 
1594 SWIGRUNTIMEINLINE PyObject *
SWIG_Python_ExceptionType(swig_type_info * desc)1595 SWIG_Python_ExceptionType(swig_type_info *desc) {
1596   SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0;
1597   PyObject *klass = data ? data->klass : 0;
1598   return (klass ? klass : PyExc_RuntimeError);
1599 }
1600 
1601 
1602 SWIGRUNTIME SwigPyClientData *
SwigPyClientData_New(PyObject * obj)1603 SwigPyClientData_New(PyObject* obj)
1604 {
1605   if (!obj) {
1606     return 0;
1607   } else {
1608     SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData));
1609     /* the klass element */
1610     data->klass = obj;
1611     Py_INCREF(data->klass);
1612     /* the newraw method and newargs arguments used to create a new raw instance */
1613     if (PyClass_Check(obj)) {
1614       data->newraw = 0;
1615       data->newargs = obj;
1616       Py_INCREF(obj);
1617     } else {
1618 #if (PY_VERSION_HEX < 0x02020000)
1619       data->newraw = 0;
1620 #else
1621       data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1622 #endif
1623       if (data->newraw) {
1624 	Py_INCREF(data->newraw);
1625 	data->newargs = PyTuple_New(1);
1626 	PyTuple_SetItem(data->newargs, 0, obj);
1627       } else {
1628 	data->newargs = obj;
1629       }
1630       Py_INCREF(data->newargs);
1631     }
1632     /* the destroy method, aka as the C++ delete method */
1633     data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1634     if (PyErr_Occurred()) {
1635       PyErr_Clear();
1636       data->destroy = 0;
1637     }
1638     if (data->destroy) {
1639       int flags;
1640       Py_INCREF(data->destroy);
1641       flags = PyCFunction_GET_FLAGS(data->destroy);
1642 #ifdef METH_O
1643       data->delargs = !(flags & (METH_O));
1644 #else
1645       data->delargs = 0;
1646 #endif
1647     } else {
1648       data->delargs = 0;
1649     }
1650     data->implicitconv = 0;
1651     data->pytype = 0;
1652     return data;
1653   }
1654 }
1655 
1656 SWIGRUNTIME void
SwigPyClientData_Del(SwigPyClientData * data)1657 SwigPyClientData_Del(SwigPyClientData *data) {
1658   Py_XDECREF(data->newraw);
1659   Py_XDECREF(data->newargs);
1660   Py_XDECREF(data->destroy);
1661 }
1662 
1663 /* =============== SwigPyObject =====================*/
1664 
1665 typedef struct {
1666   PyObject_HEAD
1667   void *ptr;
1668   swig_type_info *ty;
1669   int own;
1670   PyObject *next;
1671 #ifdef SWIGPYTHON_BUILTIN
1672   PyObject *dict;
1673 #endif
1674 } SwigPyObject;
1675 
1676 
1677 #ifdef SWIGPYTHON_BUILTIN
1678 
1679 SWIGRUNTIME PyObject *
SwigPyObject_get___dict__(PyObject * v,PyObject * SWIGUNUSEDPARM (args))1680 SwigPyObject_get___dict__(PyObject *v, PyObject *SWIGUNUSEDPARM(args))
1681 {
1682   SwigPyObject *sobj = (SwigPyObject *)v;
1683 
1684   if (!sobj->dict)
1685     sobj->dict = PyDict_New();
1686 
1687   Py_INCREF(sobj->dict);
1688   return sobj->dict;
1689 }
1690 
1691 #endif
1692 
1693 SWIGRUNTIME PyObject *
SwigPyObject_long(SwigPyObject * v)1694 SwigPyObject_long(SwigPyObject *v)
1695 {
1696   return PyLong_FromVoidPtr(v->ptr);
1697 }
1698 
1699 SWIGRUNTIME PyObject *
SwigPyObject_format(const char * fmt,SwigPyObject * v)1700 SwigPyObject_format(const char* fmt, SwigPyObject *v)
1701 {
1702   PyObject *res = NULL;
1703   PyObject *args = PyTuple_New(1);
1704   if (args) {
1705     if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) {
1706       PyObject *ofmt = SWIG_Python_str_FromChar(fmt);
1707       if (ofmt) {
1708 #if PY_VERSION_HEX >= 0x03000000
1709 	res = PyUnicode_Format(ofmt,args);
1710 #else
1711 	res = PyString_Format(ofmt,args);
1712 #endif
1713 	Py_DECREF(ofmt);
1714       }
1715       Py_DECREF(args);
1716     }
1717   }
1718   return res;
1719 }
1720 
1721 SWIGRUNTIME PyObject *
SwigPyObject_oct(SwigPyObject * v)1722 SwigPyObject_oct(SwigPyObject *v)
1723 {
1724   return SwigPyObject_format("%o",v);
1725 }
1726 
1727 SWIGRUNTIME PyObject *
SwigPyObject_hex(SwigPyObject * v)1728 SwigPyObject_hex(SwigPyObject *v)
1729 {
1730   return SwigPyObject_format("%x",v);
1731 }
1732 
1733 SWIGRUNTIME PyObject *
1734 #ifdef METH_NOARGS
SwigPyObject_repr(SwigPyObject * v)1735 SwigPyObject_repr(SwigPyObject *v)
1736 #else
1737 SwigPyObject_repr(SwigPyObject *v, PyObject *args)
1738 #endif
1739 {
1740   const char *name = SWIG_TypePrettyName(v->ty);
1741   PyObject *repr = SWIG_Python_str_FromFormat("<Swig Object of type '%s' at %p>", (name ? name : "unknown"), (void *)v);
1742   if (v->next) {
1743 # ifdef METH_NOARGS
1744     PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next);
1745 # else
1746     PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next, args);
1747 # endif
1748 # if PY_VERSION_HEX >= 0x03000000
1749     PyObject *joined = PyUnicode_Concat(repr, nrep);
1750     Py_DecRef(repr);
1751     Py_DecRef(nrep);
1752     repr = joined;
1753 # else
1754     PyString_ConcatAndDel(&repr,nrep);
1755 # endif
1756   }
1757   return repr;
1758 }
1759 
1760 SWIGRUNTIME int
SwigPyObject_compare(SwigPyObject * v,SwigPyObject * w)1761 SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w)
1762 {
1763   void *i = v->ptr;
1764   void *j = w->ptr;
1765   return (i < j) ? -1 : ((i > j) ? 1 : 0);
1766 }
1767 
1768 /* Added for Python 3.x, would it also be useful for Python 2.x? */
1769 SWIGRUNTIME PyObject*
SwigPyObject_richcompare(SwigPyObject * v,SwigPyObject * w,int op)1770 SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op)
1771 {
1772   PyObject* res;
1773   if( op != Py_EQ && op != Py_NE ) {
1774     Py_INCREF(Py_NotImplemented);
1775     return Py_NotImplemented;
1776   }
1777   res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ) ? 1 : 0);
1778   return res;
1779 }
1780 
1781 
1782 SWIGRUNTIME PyTypeObject* SwigPyObject_TypeOnce(void);
1783 
1784 #ifdef SWIGPYTHON_BUILTIN
1785 static swig_type_info *SwigPyObject_stype = 0;
1786 SWIGRUNTIME PyTypeObject*
SwigPyObject_type(void)1787 SwigPyObject_type(void) {
1788     SwigPyClientData *cd;
1789     assert(SwigPyObject_stype);
1790     cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
1791     assert(cd);
1792     assert(cd->pytype);
1793     return cd->pytype;
1794 }
1795 #else
1796 SWIGRUNTIME PyTypeObject*
SwigPyObject_type(void)1797 SwigPyObject_type(void) {
1798   static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyObject_TypeOnce();
1799   return type;
1800 }
1801 #endif
1802 
1803 SWIGRUNTIMEINLINE int
SwigPyObject_Check(PyObject * op)1804 SwigPyObject_Check(PyObject *op) {
1805 #ifdef SWIGPYTHON_BUILTIN
1806   PyTypeObject *target_tp = SwigPyObject_type();
1807   if (PyType_IsSubtype(op->ob_type, target_tp))
1808     return 1;
1809   return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0);
1810 #else
1811   return (Py_TYPE(op) == SwigPyObject_type())
1812     || (strcmp(Py_TYPE(op)->tp_name,"SwigPyObject") == 0);
1813 #endif
1814 }
1815 
1816 SWIGRUNTIME PyObject *
1817 SwigPyObject_New(void *ptr, swig_type_info *ty, int own);
1818 
1819 SWIGRUNTIME void
SwigPyObject_dealloc(PyObject * v)1820 SwigPyObject_dealloc(PyObject *v)
1821 {
1822   SwigPyObject *sobj = (SwigPyObject *) v;
1823   PyObject *next = sobj->next;
1824   if (sobj->own == SWIG_POINTER_OWN) {
1825     swig_type_info *ty = sobj->ty;
1826     SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
1827     PyObject *destroy = data ? data->destroy : 0;
1828     if (destroy) {
1829       /* destroy is always a VARARGS method */
1830       PyObject *res;
1831 
1832       /* PyObject_CallFunction() has the potential to silently drop
1833          the active active exception.  In cases of unnamed temporary
1834          variable or where we just finished iterating over a generator
1835          StopIteration will be active right now, and this needs to
1836          remain true upon return from SwigPyObject_dealloc.  So save
1837          and restore. */
1838 
1839       PyObject *val = NULL, *type = NULL, *tb = NULL;
1840       PyErr_Fetch(&val, &type, &tb);
1841 
1842       if (data->delargs) {
1843         /* we need to create a temporary object to carry the destroy operation */
1844         PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0);
1845         res = SWIG_Python_CallFunctor(destroy, tmp);
1846         Py_DECREF(tmp);
1847       } else {
1848         PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1849         PyObject *mself = PyCFunction_GET_SELF(destroy);
1850         res = ((*meth)(mself, v));
1851       }
1852       if (!res)
1853         PyErr_WriteUnraisable(destroy);
1854 
1855       PyErr_Restore(val, type, tb);
1856 
1857       Py_XDECREF(res);
1858     }
1859 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1860     else {
1861       const char *name = SWIG_TypePrettyName(ty);
1862       printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown"));
1863     }
1864 #endif
1865   }
1866   Py_XDECREF(next);
1867   PyObject_DEL(v);
1868 }
1869 
1870 SWIGRUNTIME PyObject*
SwigPyObject_append(PyObject * v,PyObject * next)1871 SwigPyObject_append(PyObject* v, PyObject* next)
1872 {
1873   SwigPyObject *sobj = (SwigPyObject *) v;
1874 #ifndef METH_O
1875   PyObject *tmp = 0;
1876   if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1877   next = tmp;
1878 #endif
1879   if (!SwigPyObject_Check(next)) {
1880     PyErr_SetString(PyExc_TypeError, "Attempt to append a non SwigPyObject");
1881     return NULL;
1882   }
1883   sobj->next = next;
1884   Py_INCREF(next);
1885   return SWIG_Py_Void();
1886 }
1887 
1888 SWIGRUNTIME PyObject*
1889 #ifdef METH_NOARGS
SwigPyObject_next(PyObject * v)1890 SwigPyObject_next(PyObject* v)
1891 #else
1892 SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1893 #endif
1894 {
1895   SwigPyObject *sobj = (SwigPyObject *) v;
1896   if (sobj->next) {
1897     Py_INCREF(sobj->next);
1898     return sobj->next;
1899   } else {
1900     return SWIG_Py_Void();
1901   }
1902 }
1903 
1904 SWIGINTERN PyObject*
1905 #ifdef METH_NOARGS
SwigPyObject_disown(PyObject * v)1906 SwigPyObject_disown(PyObject *v)
1907 #else
1908 SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1909 #endif
1910 {
1911   SwigPyObject *sobj = (SwigPyObject *)v;
1912   sobj->own = 0;
1913   return SWIG_Py_Void();
1914 }
1915 
1916 SWIGINTERN PyObject*
1917 #ifdef METH_NOARGS
SwigPyObject_acquire(PyObject * v)1918 SwigPyObject_acquire(PyObject *v)
1919 #else
1920 SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1921 #endif
1922 {
1923   SwigPyObject *sobj = (SwigPyObject *)v;
1924   sobj->own = SWIG_POINTER_OWN;
1925   return SWIG_Py_Void();
1926 }
1927 
1928 SWIGINTERN PyObject*
SwigPyObject_own(PyObject * v,PyObject * args)1929 SwigPyObject_own(PyObject *v, PyObject *args)
1930 {
1931   PyObject *val = 0;
1932 #if (PY_VERSION_HEX < 0x02020000)
1933   if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1934 #elif (PY_VERSION_HEX < 0x02050000)
1935   if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1936 #else
1937   if (!PyArg_UnpackTuple(args, "own", 0, 1, &val))
1938 #endif
1939     {
1940       return NULL;
1941     }
1942   else
1943     {
1944       SwigPyObject *sobj = (SwigPyObject *)v;
1945       PyObject *obj = PyBool_FromLong(sobj->own);
1946       if (val) {
1947 #ifdef METH_NOARGS
1948 	if (PyObject_IsTrue(val)) {
1949 	  SwigPyObject_acquire(v);
1950 	} else {
1951 	  SwigPyObject_disown(v);
1952 	}
1953 #else
1954 	if (PyObject_IsTrue(val)) {
1955 	  SwigPyObject_acquire(v,args);
1956 	} else {
1957 	  SwigPyObject_disown(v,args);
1958 	}
1959 #endif
1960       }
1961       return obj;
1962     }
1963 }
1964 
1965 #ifdef METH_O
1966 static PyMethodDef
1967 swigobject_methods[] = {
1968   {(char *)"disown",  (PyCFunction)SwigPyObject_disown,  METH_NOARGS,  (char *)"releases ownership of the pointer"},
1969   {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS,  (char *)"acquires ownership of the pointer"},
1970   {(char *)"own",     (PyCFunction)SwigPyObject_own,     METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1971   {(char *)"append",  (PyCFunction)SwigPyObject_append,  METH_O,       (char *)"appends another 'this' object"},
1972   {(char *)"next",    (PyCFunction)SwigPyObject_next,    METH_NOARGS,  (char *)"returns the next 'this' object"},
1973   {(char *)"__repr__",(PyCFunction)SwigPyObject_repr,    METH_NOARGS,  (char *)"returns object representation"},
1974   {0, 0, 0, 0}
1975 };
1976 #else
1977 static PyMethodDef
1978 swigobject_methods[] = {
1979   {(char *)"disown",  (PyCFunction)SwigPyObject_disown,  METH_VARARGS,  (char *)"releases ownership of the pointer"},
1980   {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS,  (char *)"acquires ownership of the pointer"},
1981   {(char *)"own",     (PyCFunction)SwigPyObject_own,     METH_VARARGS,  (char *)"returns/sets ownership of the pointer"},
1982   {(char *)"append",  (PyCFunction)SwigPyObject_append,  METH_VARARGS,  (char *)"appends another 'this' object"},
1983   {(char *)"next",    (PyCFunction)SwigPyObject_next,    METH_VARARGS,  (char *)"returns the next 'this' object"},
1984   {(char *)"__repr__",(PyCFunction)SwigPyObject_repr,   METH_VARARGS,  (char *)"returns object representation"},
1985   {0, 0, 0, 0}
1986 };
1987 #endif
1988 
1989 #if PY_VERSION_HEX < 0x02020000
1990 SWIGINTERN PyObject *
SwigPyObject_getattr(SwigPyObject * sobj,char * name)1991 SwigPyObject_getattr(SwigPyObject *sobj,char *name)
1992 {
1993   return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1994 }
1995 #endif
1996 
1997 SWIGRUNTIME PyTypeObject*
SwigPyObject_TypeOnce(void)1998 SwigPyObject_TypeOnce(void) {
1999   static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
2000 
2001   static PyNumberMethods SwigPyObject_as_number = {
2002     (binaryfunc)0, /*nb_add*/
2003     (binaryfunc)0, /*nb_subtract*/
2004     (binaryfunc)0, /*nb_multiply*/
2005     /* nb_divide removed in Python 3 */
2006 #if PY_VERSION_HEX < 0x03000000
2007     (binaryfunc)0, /*nb_divide*/
2008 #endif
2009     (binaryfunc)0, /*nb_remainder*/
2010     (binaryfunc)0, /*nb_divmod*/
2011     (ternaryfunc)0,/*nb_power*/
2012     (unaryfunc)0,  /*nb_negative*/
2013     (unaryfunc)0,  /*nb_positive*/
2014     (unaryfunc)0,  /*nb_absolute*/
2015     (inquiry)0,    /*nb_nonzero*/
2016     0,		   /*nb_invert*/
2017     0,		   /*nb_lshift*/
2018     0,		   /*nb_rshift*/
2019     0,		   /*nb_and*/
2020     0,		   /*nb_xor*/
2021     0,		   /*nb_or*/
2022 #if PY_VERSION_HEX < 0x03000000
2023     0,   /*nb_coerce*/
2024 #endif
2025     (unaryfunc)SwigPyObject_long, /*nb_int*/
2026 #if PY_VERSION_HEX < 0x03000000
2027     (unaryfunc)SwigPyObject_long, /*nb_long*/
2028 #else
2029     0, /*nb_reserved*/
2030 #endif
2031     (unaryfunc)0,                 /*nb_float*/
2032 #if PY_VERSION_HEX < 0x03000000
2033     (unaryfunc)SwigPyObject_oct,  /*nb_oct*/
2034     (unaryfunc)SwigPyObject_hex,  /*nb_hex*/
2035 #endif
2036 #if PY_VERSION_HEX >= 0x03050000 /* 3.5 */
2037     0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_matrix_multiply */
2038 #elif PY_VERSION_HEX >= 0x03000000 /* 3.0 */
2039     0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */
2040 #elif PY_VERSION_HEX >= 0x02050000 /* 2.5.0 */
2041     0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */
2042 #elif PY_VERSION_HEX >= 0x02020000 /* 2.2.0 */
2043     0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
2044 #elif PY_VERSION_HEX >= 0x02000000 /* 2.0.0 */
2045     0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
2046 #endif
2047   };
2048 
2049   static PyTypeObject swigpyobject_type;
2050   static int type_init = 0;
2051   if (!type_init) {
2052     const PyTypeObject tmp = {
2053 #if PY_VERSION_HEX >= 0x03000000
2054       PyVarObject_HEAD_INIT(NULL, 0)
2055 #else
2056       PyObject_HEAD_INIT(NULL)
2057       0,                                    /* ob_size */
2058 #endif
2059       (char *)"SwigPyObject",               /* tp_name */
2060       sizeof(SwigPyObject),                 /* tp_basicsize */
2061       0,                                    /* tp_itemsize */
2062       (destructor)SwigPyObject_dealloc,     /* tp_dealloc */
2063       0,                                    /* tp_print */
2064 #if PY_VERSION_HEX < 0x02020000
2065       (getattrfunc)SwigPyObject_getattr,    /* tp_getattr */
2066 #else
2067       (getattrfunc)0,                       /* tp_getattr */
2068 #endif
2069       (setattrfunc)0,                       /* tp_setattr */
2070 #if PY_VERSION_HEX >= 0x03000000
2071       0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */
2072 #else
2073       (cmpfunc)SwigPyObject_compare,        /* tp_compare */
2074 #endif
2075       (reprfunc)SwigPyObject_repr,          /* tp_repr */
2076       &SwigPyObject_as_number,              /* tp_as_number */
2077       0,                                    /* tp_as_sequence */
2078       0,                                    /* tp_as_mapping */
2079       (hashfunc)0,                          /* tp_hash */
2080       (ternaryfunc)0,                       /* tp_call */
2081       0,                                    /* tp_str */
2082       PyObject_GenericGetAttr,              /* tp_getattro */
2083       0,                                    /* tp_setattro */
2084       0,                                    /* tp_as_buffer */
2085       Py_TPFLAGS_DEFAULT,                   /* tp_flags */
2086       swigobject_doc,                       /* tp_doc */
2087       0,                                    /* tp_traverse */
2088       0,                                    /* tp_clear */
2089       (richcmpfunc)SwigPyObject_richcompare,/* tp_richcompare */
2090       0,                                    /* tp_weaklistoffset */
2091 #if PY_VERSION_HEX >= 0x02020000
2092       0,                                    /* tp_iter */
2093       0,                                    /* tp_iternext */
2094       swigobject_methods,                   /* tp_methods */
2095       0,                                    /* tp_members */
2096       0,                                    /* tp_getset */
2097       0,                                    /* tp_base */
2098       0,                                    /* tp_dict */
2099       0,                                    /* tp_descr_get */
2100       0,                                    /* tp_descr_set */
2101       0,                                    /* tp_dictoffset */
2102       0,                                    /* tp_init */
2103       0,                                    /* tp_alloc */
2104       0,                                    /* tp_new */
2105       0,                                    /* tp_free */
2106       0,                                    /* tp_is_gc */
2107       0,                                    /* tp_bases */
2108       0,                                    /* tp_mro */
2109       0,                                    /* tp_cache */
2110       0,                                    /* tp_subclasses */
2111       0,                                    /* tp_weaklist */
2112 #endif
2113 #if PY_VERSION_HEX >= 0x02030000
2114       0,                                    /* tp_del */
2115 #endif
2116 #if PY_VERSION_HEX >= 0x02060000
2117       0,                                    /* tp_version_tag */
2118 #endif
2119 #if PY_VERSION_HEX >= 0x03040000
2120       0,                                    /* tp_finalize */
2121 #endif
2122 #ifdef COUNT_ALLOCS
2123       0,                                    /* tp_allocs */
2124       0,                                    /* tp_frees */
2125       0,                                    /* tp_maxalloc */
2126 #if PY_VERSION_HEX >= 0x02050000
2127       0,                                    /* tp_prev */
2128 #endif
2129       0                                     /* tp_next */
2130 #endif
2131     };
2132     swigpyobject_type = tmp;
2133     type_init = 1;
2134 #if PY_VERSION_HEX < 0x02020000
2135     swigpyobject_type.ob_type = &PyType_Type;
2136 #else
2137     if (PyType_Ready(&swigpyobject_type) < 0)
2138       return NULL;
2139 #endif
2140   }
2141   return &swigpyobject_type;
2142 }
2143 
2144 SWIGRUNTIME PyObject *
SwigPyObject_New(void * ptr,swig_type_info * ty,int own)2145 SwigPyObject_New(void *ptr, swig_type_info *ty, int own)
2146 {
2147   SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type());
2148   if (sobj) {
2149     sobj->ptr  = ptr;
2150     sobj->ty   = ty;
2151     sobj->own  = own;
2152     sobj->next = 0;
2153   }
2154   return (PyObject *)sobj;
2155 }
2156 
2157 /* -----------------------------------------------------------------------------
2158  * Implements a simple Swig Packed type, and use it instead of string
2159  * ----------------------------------------------------------------------------- */
2160 
2161 typedef struct {
2162   PyObject_HEAD
2163   void *pack;
2164   swig_type_info *ty;
2165   size_t size;
2166 } SwigPyPacked;
2167 
2168 SWIGRUNTIME int
SwigPyPacked_print(SwigPyPacked * v,FILE * fp,int SWIGUNUSEDPARM (flags))2169 SwigPyPacked_print(SwigPyPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
2170 {
2171   char result[SWIG_BUFFER_SIZE];
2172   fputs("<Swig Packed ", fp);
2173   if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
2174     fputs("at ", fp);
2175     fputs(result, fp);
2176   }
2177   fputs(v->ty->name,fp);
2178   fputs(">", fp);
2179   return 0;
2180 }
2181 
2182 SWIGRUNTIME PyObject *
SwigPyPacked_repr(SwigPyPacked * v)2183 SwigPyPacked_repr(SwigPyPacked *v)
2184 {
2185   char result[SWIG_BUFFER_SIZE];
2186   if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
2187     return SWIG_Python_str_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
2188   } else {
2189     return SWIG_Python_str_FromFormat("<Swig Packed %s>", v->ty->name);
2190   }
2191 }
2192 
2193 SWIGRUNTIME PyObject *
SwigPyPacked_str(SwigPyPacked * v)2194 SwigPyPacked_str(SwigPyPacked *v)
2195 {
2196   char result[SWIG_BUFFER_SIZE];
2197   if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
2198     return SWIG_Python_str_FromFormat("%s%s", result, v->ty->name);
2199   } else {
2200     return SWIG_Python_str_FromChar(v->ty->name);
2201   }
2202 }
2203 
2204 SWIGRUNTIME int
SwigPyPacked_compare(SwigPyPacked * v,SwigPyPacked * w)2205 SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w)
2206 {
2207   size_t i = v->size;
2208   size_t j = w->size;
2209   int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
2210   return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
2211 }
2212 
2213 SWIGRUNTIME PyTypeObject* SwigPyPacked_TypeOnce(void);
2214 
2215 SWIGRUNTIME PyTypeObject*
SwigPyPacked_type(void)2216 SwigPyPacked_type(void) {
2217   static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyPacked_TypeOnce();
2218   return type;
2219 }
2220 
2221 SWIGRUNTIMEINLINE int
SwigPyPacked_Check(PyObject * op)2222 SwigPyPacked_Check(PyObject *op) {
2223   return ((op)->ob_type == SwigPyPacked_TypeOnce())
2224     || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0);
2225 }
2226 
2227 SWIGRUNTIME void
SwigPyPacked_dealloc(PyObject * v)2228 SwigPyPacked_dealloc(PyObject *v)
2229 {
2230   if (SwigPyPacked_Check(v)) {
2231     SwigPyPacked *sobj = (SwigPyPacked *) v;
2232     free(sobj->pack);
2233   }
2234   PyObject_DEL(v);
2235 }
2236 
2237 SWIGRUNTIME PyTypeObject*
SwigPyPacked_TypeOnce(void)2238 SwigPyPacked_TypeOnce(void) {
2239   static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
2240   static PyTypeObject swigpypacked_type;
2241   static int type_init = 0;
2242   if (!type_init) {
2243     const PyTypeObject tmp = {
2244 #if PY_VERSION_HEX>=0x03000000
2245       PyVarObject_HEAD_INIT(NULL, 0)
2246 #else
2247       PyObject_HEAD_INIT(NULL)
2248       0,                                    /* ob_size */
2249 #endif
2250       (char *)"SwigPyPacked",               /* tp_name */
2251       sizeof(SwigPyPacked),                 /* tp_basicsize */
2252       0,                                    /* tp_itemsize */
2253       (destructor)SwigPyPacked_dealloc,     /* tp_dealloc */
2254       (printfunc)SwigPyPacked_print,        /* tp_print */
2255       (getattrfunc)0,                       /* tp_getattr */
2256       (setattrfunc)0,                       /* tp_setattr */
2257 #if PY_VERSION_HEX>=0x03000000
2258       0, /* tp_reserved in 3.0.1 */
2259 #else
2260       (cmpfunc)SwigPyPacked_compare,        /* tp_compare */
2261 #endif
2262       (reprfunc)SwigPyPacked_repr,          /* tp_repr */
2263       0,                                    /* tp_as_number */
2264       0,                                    /* tp_as_sequence */
2265       0,                                    /* tp_as_mapping */
2266       (hashfunc)0,                          /* tp_hash */
2267       (ternaryfunc)0,                       /* tp_call */
2268       (reprfunc)SwigPyPacked_str,           /* tp_str */
2269       PyObject_GenericGetAttr,              /* tp_getattro */
2270       0,                                    /* tp_setattro */
2271       0,                                    /* tp_as_buffer */
2272       Py_TPFLAGS_DEFAULT,                   /* tp_flags */
2273       swigpacked_doc,                       /* tp_doc */
2274       0,                                    /* tp_traverse */
2275       0,                                    /* tp_clear */
2276       0,                                    /* tp_richcompare */
2277       0,                                    /* tp_weaklistoffset */
2278 #if PY_VERSION_HEX >= 0x02020000
2279       0,                                    /* tp_iter */
2280       0,                                    /* tp_iternext */
2281       0,                                    /* tp_methods */
2282       0,                                    /* tp_members */
2283       0,                                    /* tp_getset */
2284       0,                                    /* tp_base */
2285       0,                                    /* tp_dict */
2286       0,                                    /* tp_descr_get */
2287       0,                                    /* tp_descr_set */
2288       0,                                    /* tp_dictoffset */
2289       0,                                    /* tp_init */
2290       0,                                    /* tp_alloc */
2291       0,                                    /* tp_new */
2292       0,                                    /* tp_free */
2293       0,                                    /* tp_is_gc */
2294       0,                                    /* tp_bases */
2295       0,                                    /* tp_mro */
2296       0,                                    /* tp_cache */
2297       0,                                    /* tp_subclasses */
2298       0,                                    /* tp_weaklist */
2299 #endif
2300 #if PY_VERSION_HEX >= 0x02030000
2301       0,                                    /* tp_del */
2302 #endif
2303 #if PY_VERSION_HEX >= 0x02060000
2304       0,                                    /* tp_version_tag */
2305 #endif
2306 #if PY_VERSION_HEX >= 0x03040000
2307       0,                                    /* tp_finalize */
2308 #endif
2309 #ifdef COUNT_ALLOCS
2310       0,                                    /* tp_allocs */
2311       0,                                    /* tp_frees */
2312       0,                                    /* tp_maxalloc */
2313 #if PY_VERSION_HEX >= 0x02050000
2314       0,                                    /* tp_prev */
2315 #endif
2316       0                                     /* tp_next */
2317 #endif
2318     };
2319     swigpypacked_type = tmp;
2320     type_init = 1;
2321 #if PY_VERSION_HEX < 0x02020000
2322     swigpypacked_type.ob_type = &PyType_Type;
2323 #else
2324     if (PyType_Ready(&swigpypacked_type) < 0)
2325       return NULL;
2326 #endif
2327   }
2328   return &swigpypacked_type;
2329 }
2330 
2331 SWIGRUNTIME PyObject *
SwigPyPacked_New(void * ptr,size_t size,swig_type_info * ty)2332 SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty)
2333 {
2334   SwigPyPacked *sobj = PyObject_NEW(SwigPyPacked, SwigPyPacked_type());
2335   if (sobj) {
2336     void *pack = malloc(size);
2337     if (pack) {
2338       memcpy(pack, ptr, size);
2339       sobj->pack = pack;
2340       sobj->ty   = ty;
2341       sobj->size = size;
2342     } else {
2343       PyObject_DEL((PyObject *) sobj);
2344       sobj = 0;
2345     }
2346   }
2347   return (PyObject *) sobj;
2348 }
2349 
2350 SWIGRUNTIME swig_type_info *
SwigPyPacked_UnpackData(PyObject * obj,void * ptr,size_t size)2351 SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
2352 {
2353   if (SwigPyPacked_Check(obj)) {
2354     SwigPyPacked *sobj = (SwigPyPacked *)obj;
2355     if (sobj->size != size) return 0;
2356     memcpy(ptr, sobj->pack, size);
2357     return sobj->ty;
2358   } else {
2359     return 0;
2360   }
2361 }
2362 
2363 /* -----------------------------------------------------------------------------
2364  * pointers/data manipulation
2365  * ----------------------------------------------------------------------------- */
2366 
2367 SWIGRUNTIMEINLINE PyObject *
_SWIG_This(void)2368 _SWIG_This(void)
2369 {
2370     return SWIG_Python_str_FromChar("this");
2371 }
2372 
2373 static PyObject *swig_this = NULL;
2374 
2375 SWIGRUNTIME PyObject *
SWIG_This(void)2376 SWIG_This(void)
2377 {
2378   if (swig_this == NULL)
2379     swig_this = _SWIG_This();
2380   return swig_this;
2381 }
2382 
2383 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
2384 
2385 /* TODO: I don't know how to implement the fast getset in Python 3 right now */
2386 #if PY_VERSION_HEX>=0x03000000
2387 #define SWIG_PYTHON_SLOW_GETSET_THIS
2388 #endif
2389 
2390 SWIGRUNTIME SwigPyObject *
SWIG_Python_GetSwigThis(PyObject * pyobj)2391 SWIG_Python_GetSwigThis(PyObject *pyobj)
2392 {
2393   PyObject *obj;
2394 
2395   if (SwigPyObject_Check(pyobj))
2396     return (SwigPyObject *) pyobj;
2397 
2398 #ifdef SWIGPYTHON_BUILTIN
2399   (void)obj;
2400 # ifdef PyWeakref_CheckProxy
2401   if (PyWeakref_CheckProxy(pyobj)) {
2402     pyobj = PyWeakref_GET_OBJECT(pyobj);
2403     if (pyobj && SwigPyObject_Check(pyobj))
2404       return (SwigPyObject*) pyobj;
2405   }
2406 # endif
2407   return NULL;
2408 #else
2409 
2410   obj = 0;
2411 
2412 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
2413   if (PyInstance_Check(pyobj)) {
2414     obj = _PyInstance_Lookup(pyobj, SWIG_This());
2415   } else {
2416     PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
2417     if (dictptr != NULL) {
2418       PyObject *dict = *dictptr;
2419       obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
2420     } else {
2421 #ifdef PyWeakref_CheckProxy
2422       if (PyWeakref_CheckProxy(pyobj)) {
2423 	PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
2424 	return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
2425       }
2426 #endif
2427       obj = PyObject_GetAttr(pyobj,SWIG_This());
2428       if (obj) {
2429 	Py_DECREF(obj);
2430       } else {
2431 	if (PyErr_Occurred()) PyErr_Clear();
2432 	return 0;
2433       }
2434     }
2435   }
2436 #else
2437   obj = PyObject_GetAttr(pyobj,SWIG_This());
2438   if (obj) {
2439     Py_DECREF(obj);
2440   } else {
2441     if (PyErr_Occurred()) PyErr_Clear();
2442     return 0;
2443   }
2444 #endif
2445   if (obj && !SwigPyObject_Check(obj)) {
2446     /* a PyObject is called 'this', try to get the 'real this'
2447        SwigPyObject from it */
2448     return SWIG_Python_GetSwigThis(obj);
2449   }
2450   return (SwigPyObject *)obj;
2451 #endif
2452 }
2453 
2454 /* Acquire a pointer value */
2455 
2456 SWIGRUNTIME int
SWIG_Python_AcquirePtr(PyObject * obj,int own)2457 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
2458   if (own == SWIG_POINTER_OWN) {
2459     SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj);
2460     if (sobj) {
2461       int oldown = sobj->own;
2462       sobj->own = own;
2463       return oldown;
2464     }
2465   }
2466   return 0;
2467 }
2468 
2469 /* Convert a pointer value */
2470 
2471 SWIGRUNTIME int
SWIG_Python_ConvertPtrAndOwn(PyObject * obj,void ** ptr,swig_type_info * ty,int flags,int * own)2472 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
2473   int res;
2474   SwigPyObject *sobj;
2475   int implicit_conv = (flags & SWIG_POINTER_IMPLICIT_CONV) != 0;
2476 
2477   if (!obj)
2478     return SWIG_ERROR;
2479   if (obj == Py_None && !implicit_conv) {
2480     if (ptr)
2481       *ptr = 0;
2482     return SWIG_OK;
2483   }
2484 
2485   res = SWIG_ERROR;
2486 
2487   sobj = SWIG_Python_GetSwigThis(obj);
2488   if (own)
2489     *own = 0;
2490   while (sobj) {
2491     void *vptr = sobj->ptr;
2492     if (ty) {
2493       swig_type_info *to = sobj->ty;
2494       if (to == ty) {
2495         /* no type cast needed */
2496         if (ptr) *ptr = vptr;
2497         break;
2498       } else {
2499         swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2500         if (!tc) {
2501           sobj = (SwigPyObject *)sobj->next;
2502         } else {
2503           if (ptr) {
2504             int newmemory = 0;
2505             *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2506             if (newmemory == SWIG_CAST_NEW_MEMORY) {
2507               assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */
2508               if (own)
2509                 *own = *own | SWIG_CAST_NEW_MEMORY;
2510             }
2511           }
2512           break;
2513         }
2514       }
2515     } else {
2516       if (ptr) *ptr = vptr;
2517       break;
2518     }
2519   }
2520   if (sobj) {
2521     if (own)
2522       *own = *own | sobj->own;
2523     if (flags & SWIG_POINTER_DISOWN) {
2524       sobj->own = 0;
2525     }
2526     res = SWIG_OK;
2527   } else {
2528     if (implicit_conv) {
2529       SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
2530       if (data && !data->implicitconv) {
2531         PyObject *klass = data->klass;
2532         if (klass) {
2533           PyObject *impconv;
2534           data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2535           impconv = SWIG_Python_CallFunctor(klass, obj);
2536           data->implicitconv = 0;
2537           if (PyErr_Occurred()) {
2538             PyErr_Clear();
2539             impconv = 0;
2540           }
2541           if (impconv) {
2542             SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv);
2543             if (iobj) {
2544               void *vptr;
2545               res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2546               if (SWIG_IsOK(res)) {
2547                 if (ptr) {
2548                   *ptr = vptr;
2549                   /* transfer the ownership to 'ptr' */
2550                   iobj->own = 0;
2551                   res = SWIG_AddCast(res);
2552                   res = SWIG_AddNewMask(res);
2553                 } else {
2554                   res = SWIG_AddCast(res);
2555                 }
2556               }
2557             }
2558             Py_DECREF(impconv);
2559           }
2560         }
2561       }
2562     }
2563     if (!SWIG_IsOK(res) && obj == Py_None) {
2564       if (ptr)
2565         *ptr = 0;
2566       if (PyErr_Occurred())
2567         PyErr_Clear();
2568       res = SWIG_OK;
2569     }
2570   }
2571   return res;
2572 }
2573 
2574 /* Convert a function ptr value */
2575 
2576 SWIGRUNTIME int
SWIG_Python_ConvertFunctionPtr(PyObject * obj,void ** ptr,swig_type_info * ty)2577 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2578   if (!PyCFunction_Check(obj)) {
2579     return SWIG_ConvertPtr(obj, ptr, ty, 0);
2580   } else {
2581     void *vptr = 0;
2582     swig_cast_info *tc;
2583 
2584     /* here we get the method pointer for callbacks */
2585     const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2586     const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2587     if (desc)
2588       desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2589     if (!desc)
2590       return SWIG_ERROR;
2591     tc = SWIG_TypeCheck(desc,ty);
2592     if (tc) {
2593       int newmemory = 0;
2594       *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2595       assert(!newmemory); /* newmemory handling not yet implemented */
2596     } else {
2597       return SWIG_ERROR;
2598     }
2599     return SWIG_OK;
2600   }
2601 }
2602 
2603 /* Convert a packed value value */
2604 
2605 SWIGRUNTIME int
SWIG_Python_ConvertPacked(PyObject * obj,void * ptr,size_t sz,swig_type_info * ty)2606 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2607   swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz);
2608   if (!to) return SWIG_ERROR;
2609   if (ty) {
2610     if (to != ty) {
2611       /* check type cast? */
2612       swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2613       if (!tc) return SWIG_ERROR;
2614     }
2615   }
2616   return SWIG_OK;
2617 }
2618 
2619 /* -----------------------------------------------------------------------------
2620  * Create a new pointer object
2621  * ----------------------------------------------------------------------------- */
2622 
2623 /*
2624   Create a new instance object, without calling __init__, and set the
2625   'this' attribute.
2626 */
2627 
2628 SWIGRUNTIME PyObject*
SWIG_Python_NewShadowInstance(SwigPyClientData * data,PyObject * swig_this)2629 SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this)
2630 {
2631 #if (PY_VERSION_HEX >= 0x02020000)
2632   PyObject *inst = 0;
2633   PyObject *newraw = data->newraw;
2634   if (newraw) {
2635     inst = PyObject_Call(newraw, data->newargs, NULL);
2636     if (inst) {
2637 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2638       PyObject **dictptr = _PyObject_GetDictPtr(inst);
2639       if (dictptr != NULL) {
2640 	PyObject *dict = *dictptr;
2641 	if (dict == NULL) {
2642 	  dict = PyDict_New();
2643 	  *dictptr = dict;
2644 	  PyDict_SetItem(dict, SWIG_This(), swig_this);
2645 	}
2646       }
2647 #else
2648       PyObject *key = SWIG_This();
2649       PyObject_SetAttr(inst, key, swig_this);
2650 #endif
2651     }
2652   } else {
2653 #if PY_VERSION_HEX >= 0x03000000
2654     inst = ((PyTypeObject*) data->newargs)->tp_new((PyTypeObject*) data->newargs, Py_None, Py_None);
2655     if (inst) {
2656       PyObject_SetAttr(inst, SWIG_This(), swig_this);
2657       Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG;
2658     }
2659 #else
2660     PyObject *dict = PyDict_New();
2661     if (dict) {
2662       PyDict_SetItem(dict, SWIG_This(), swig_this);
2663       inst = PyInstance_NewRaw(data->newargs, dict);
2664       Py_DECREF(dict);
2665     }
2666 #endif
2667   }
2668   return inst;
2669 #else
2670 #if (PY_VERSION_HEX >= 0x02010000)
2671   PyObject *inst = 0;
2672   PyObject *dict = PyDict_New();
2673   if (dict) {
2674     PyDict_SetItem(dict, SWIG_This(), swig_this);
2675     inst = PyInstance_NewRaw(data->newargs, dict);
2676     Py_DECREF(dict);
2677   }
2678   return (PyObject *) inst;
2679 #else
2680   PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2681   if (inst == NULL) {
2682     return NULL;
2683   }
2684   inst->in_class = (PyClassObject *)data->newargs;
2685   Py_INCREF(inst->in_class);
2686   inst->in_dict = PyDict_New();
2687   if (inst->in_dict == NULL) {
2688     Py_DECREF(inst);
2689     return NULL;
2690   }
2691 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2692   inst->in_weakreflist = NULL;
2693 #endif
2694 #ifdef Py_TPFLAGS_GC
2695   PyObject_GC_Init(inst);
2696 #endif
2697   PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2698   return (PyObject *) inst;
2699 #endif
2700 #endif
2701 }
2702 
2703 SWIGRUNTIME void
SWIG_Python_SetSwigThis(PyObject * inst,PyObject * swig_this)2704 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2705 {
2706  PyObject *dict;
2707 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2708  PyObject **dictptr = _PyObject_GetDictPtr(inst);
2709  if (dictptr != NULL) {
2710    dict = *dictptr;
2711    if (dict == NULL) {
2712      dict = PyDict_New();
2713      *dictptr = dict;
2714    }
2715    PyDict_SetItem(dict, SWIG_This(), swig_this);
2716    return;
2717  }
2718 #endif
2719  dict = PyObject_GetAttrString(inst, (char*)"__dict__");
2720  PyDict_SetItem(dict, SWIG_This(), swig_this);
2721  Py_DECREF(dict);
2722 }
2723 
2724 
2725 SWIGINTERN PyObject *
SWIG_Python_InitShadowInstance(PyObject * args)2726 SWIG_Python_InitShadowInstance(PyObject *args) {
2727   PyObject *obj[2];
2728   if (!SWIG_Python_UnpackTuple(args, "swiginit", 2, 2, obj)) {
2729     return NULL;
2730   } else {
2731     SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2732     if (sthis) {
2733       SwigPyObject_append((PyObject*) sthis, obj[1]);
2734     } else {
2735       SWIG_Python_SetSwigThis(obj[0], obj[1]);
2736     }
2737     return SWIG_Py_Void();
2738   }
2739 }
2740 
2741 /* Create a new pointer object */
2742 
2743 SWIGRUNTIME PyObject *
SWIG_Python_NewPointerObj(PyObject * self,void * ptr,swig_type_info * type,int flags)2744 SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int flags) {
2745   SwigPyClientData *clientdata;
2746   PyObject * robj;
2747   int own;
2748 
2749   if (!ptr)
2750     return SWIG_Py_Void();
2751 
2752   clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0;
2753   own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2754   if (clientdata && clientdata->pytype) {
2755     SwigPyObject *newobj;
2756     if (flags & SWIG_BUILTIN_TP_INIT) {
2757       newobj = (SwigPyObject*) self;
2758       if (newobj->ptr) {
2759         PyObject *next_self = clientdata->pytype->tp_alloc(clientdata->pytype, 0);
2760         while (newobj->next)
2761 	  newobj = (SwigPyObject *) newobj->next;
2762         newobj->next = next_self;
2763         newobj = (SwigPyObject *)next_self;
2764 #ifdef SWIGPYTHON_BUILTIN
2765         newobj->dict = 0;
2766 #endif
2767       }
2768     } else {
2769       newobj = PyObject_New(SwigPyObject, clientdata->pytype);
2770 #ifdef SWIGPYTHON_BUILTIN
2771       newobj->dict = 0;
2772 #endif
2773     }
2774     if (newobj) {
2775       newobj->ptr = ptr;
2776       newobj->ty = type;
2777       newobj->own = own;
2778       newobj->next = 0;
2779       return (PyObject*) newobj;
2780     }
2781     return SWIG_Py_Void();
2782   }
2783 
2784   assert(!(flags & SWIG_BUILTIN_TP_INIT));
2785 
2786   robj = SwigPyObject_New(ptr, type, own);
2787   if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2788     PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2789     Py_DECREF(robj);
2790     robj = inst;
2791   }
2792   return robj;
2793 }
2794 
2795 /* Create a new packed object */
2796 
2797 SWIGRUNTIMEINLINE PyObject *
SWIG_Python_NewPackedObj(void * ptr,size_t sz,swig_type_info * type)2798 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2799   return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2800 }
2801 
2802 /* -----------------------------------------------------------------------------*
2803  *  Get type list
2804  * -----------------------------------------------------------------------------*/
2805 
2806 #ifdef SWIG_LINK_RUNTIME
2807 void *SWIG_ReturnGlobalTypeList(void *);
2808 #endif
2809 
2810 SWIGRUNTIME swig_module_info *
SWIG_Python_GetModule(void * SWIGUNUSEDPARM (clientdata))2811 SWIG_Python_GetModule(void *SWIGUNUSEDPARM(clientdata)) {
2812   static void *type_pointer = (void *)0;
2813   /* first check if module already created */
2814   if (!type_pointer) {
2815 #ifdef SWIG_LINK_RUNTIME
2816     type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2817 #else
2818 # ifdef SWIGPY_USE_CAPSULE
2819     type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME, 0);
2820 # else
2821     type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2822 				    (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2823 # endif
2824     if (PyErr_Occurred()) {
2825       PyErr_Clear();
2826       type_pointer = (void *)0;
2827     }
2828 #endif
2829   }
2830   return (swig_module_info *) type_pointer;
2831 }
2832 
2833 #if PY_MAJOR_VERSION < 2
2834 /* PyModule_AddObject function was introduced in Python 2.0.  The following function
2835    is copied out of Python/modsupport.c in python version 2.3.4 */
2836 SWIGINTERN int
PyModule_AddObject(PyObject * m,char * name,PyObject * o)2837 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2838 {
2839   PyObject *dict;
2840   if (!PyModule_Check(m)) {
2841     PyErr_SetString(PyExc_TypeError, "PyModule_AddObject() needs module as first arg");
2842     return SWIG_ERROR;
2843   }
2844   if (!o) {
2845     PyErr_SetString(PyExc_TypeError, "PyModule_AddObject() needs non-NULL value");
2846     return SWIG_ERROR;
2847   }
2848 
2849   dict = PyModule_GetDict(m);
2850   if (dict == NULL) {
2851     /* Internal error -- modules must have a dict! */
2852     PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2853 		 PyModule_GetName(m));
2854     return SWIG_ERROR;
2855   }
2856   if (PyDict_SetItemString(dict, name, o))
2857     return SWIG_ERROR;
2858   Py_DECREF(o);
2859   return SWIG_OK;
2860 }
2861 #endif
2862 
2863 SWIGRUNTIME void
2864 #ifdef SWIGPY_USE_CAPSULE
SWIG_Python_DestroyModule(PyObject * obj)2865 SWIG_Python_DestroyModule(PyObject *obj)
2866 #else
2867 SWIG_Python_DestroyModule(void *vptr)
2868 #endif
2869 {
2870 #ifdef SWIGPY_USE_CAPSULE
2871   swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME);
2872 #else
2873   swig_module_info *swig_module = (swig_module_info *) vptr;
2874 #endif
2875   swig_type_info **types = swig_module->types;
2876   size_t i;
2877   for (i =0; i < swig_module->size; ++i) {
2878     swig_type_info *ty = types[i];
2879     if (ty->owndata) {
2880       SwigPyClientData *data = (SwigPyClientData *) ty->clientdata;
2881       if (data) SwigPyClientData_Del(data);
2882     }
2883   }
2884   Py_DECREF(SWIG_This());
2885   swig_this = NULL;
2886 }
2887 
2888 SWIGRUNTIME void
SWIG_Python_SetModule(swig_module_info * swig_module)2889 SWIG_Python_SetModule(swig_module_info *swig_module) {
2890 #if PY_VERSION_HEX >= 0x03000000
2891  /* Add a dummy module object into sys.modules */
2892   PyObject *module = PyImport_AddModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION);
2893 #else
2894   static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} }; /* Sentinel */
2895   PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table);
2896 #endif
2897 #ifdef SWIGPY_USE_CAPSULE
2898   PyObject *pointer = PyCapsule_New((void *) swig_module, SWIGPY_CAPSULE_NAME, SWIG_Python_DestroyModule);
2899   if (pointer && module) {
2900     PyModule_AddObject(module, (char*)"type_pointer_capsule" SWIG_TYPE_TABLE_NAME, pointer);
2901   } else {
2902     Py_XDECREF(pointer);
2903   }
2904 #else
2905   PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2906   if (pointer && module) {
2907     PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2908   } else {
2909     Py_XDECREF(pointer);
2910   }
2911 #endif
2912 }
2913 
2914 /* The python cached type query */
2915 SWIGRUNTIME PyObject *
SWIG_Python_TypeCache(void)2916 SWIG_Python_TypeCache(void) {
2917   static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2918   return cache;
2919 }
2920 
2921 SWIGRUNTIME swig_type_info *
SWIG_Python_TypeQuery(const char * type)2922 SWIG_Python_TypeQuery(const char *type)
2923 {
2924   PyObject *cache = SWIG_Python_TypeCache();
2925   PyObject *key = SWIG_Python_str_FromChar(type);
2926   PyObject *obj = PyDict_GetItem(cache, key);
2927   swig_type_info *descriptor;
2928   if (obj) {
2929 #ifdef SWIGPY_USE_CAPSULE
2930     descriptor = (swig_type_info *) PyCapsule_GetPointer(obj, NULL);
2931 #else
2932     descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2933 #endif
2934   } else {
2935     swig_module_info *swig_module = SWIG_GetModule(0);
2936     descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2937     if (descriptor) {
2938 #ifdef SWIGPY_USE_CAPSULE
2939       obj = PyCapsule_New((void*) descriptor, NULL, NULL);
2940 #else
2941       obj = PyCObject_FromVoidPtr(descriptor, NULL);
2942 #endif
2943       PyDict_SetItem(cache, key, obj);
2944       Py_DECREF(obj);
2945     }
2946   }
2947   Py_DECREF(key);
2948   return descriptor;
2949 }
2950 
2951 /*
2952    For backward compatibility only
2953 */
2954 #define SWIG_POINTER_EXCEPTION  0
2955 #define SWIG_arg_fail(arg)      SWIG_Python_ArgFail(arg)
2956 #define SWIG_MustGetPtr(p, type, argnum, flags)  SWIG_Python_MustGetPtr(p, type, argnum, flags)
2957 
2958 SWIGRUNTIME int
SWIG_Python_AddErrMesg(const char * mesg,int infront)2959 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2960 {
2961   if (PyErr_Occurred()) {
2962     PyObject *type = 0;
2963     PyObject *value = 0;
2964     PyObject *traceback = 0;
2965     PyErr_Fetch(&type, &value, &traceback);
2966     if (value) {
2967       char *tmp;
2968       PyObject *old_str = PyObject_Str(value);
2969       Py_XINCREF(type);
2970       PyErr_Clear();
2971       if (infront) {
2972 	PyErr_Format(type, "%s %s", mesg, tmp = SWIG_Python_str_AsChar(old_str));
2973       } else {
2974 	PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
2975       }
2976       SWIG_Python_str_DelForPy3(tmp);
2977       Py_DECREF(old_str);
2978     }
2979     return 1;
2980   } else {
2981     return 0;
2982   }
2983 }
2984 
2985 SWIGRUNTIME int
SWIG_Python_ArgFail(int argnum)2986 SWIG_Python_ArgFail(int argnum)
2987 {
2988   if (PyErr_Occurred()) {
2989     /* add information about failing argument */
2990     char mesg[256];
2991     PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2992     return SWIG_Python_AddErrMesg(mesg, 1);
2993   } else {
2994     return 0;
2995   }
2996 }
2997 
2998 SWIGRUNTIMEINLINE const char *
SwigPyObject_GetDesc(PyObject * self)2999 SwigPyObject_GetDesc(PyObject *self)
3000 {
3001   SwigPyObject *v = (SwigPyObject *)self;
3002   swig_type_info *ty = v ? v->ty : 0;
3003   return ty ? ty->str : "";
3004 }
3005 
3006 SWIGRUNTIME void
SWIG_Python_TypeError(const char * type,PyObject * obj)3007 SWIG_Python_TypeError(const char *type, PyObject *obj)
3008 {
3009   if (type) {
3010 #if defined(SWIG_COBJECT_TYPES)
3011     if (obj && SwigPyObject_Check(obj)) {
3012       const char *otype = (const char *) SwigPyObject_GetDesc(obj);
3013       if (otype) {
3014 	PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'SwigPyObject(%s)' is received",
3015 		     type, otype);
3016 	return;
3017       }
3018     } else
3019 #endif
3020     {
3021       const char *otype = (obj ? obj->ob_type->tp_name : 0);
3022       if (otype) {
3023 	PyObject *str = PyObject_Str(obj);
3024 	const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0;
3025 	if (cstr) {
3026 	  PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
3027 		       type, otype, cstr);
3028           SWIG_Python_str_DelForPy3(cstr);
3029 	} else {
3030 	  PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
3031 		       type, otype);
3032 	}
3033 	Py_XDECREF(str);
3034 	return;
3035       }
3036     }
3037     PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
3038   } else {
3039     PyErr_Format(PyExc_TypeError, "unexpected type is received");
3040   }
3041 }
3042 
3043 
3044 /* Convert a pointer value, signal an exception on a type mismatch */
3045 SWIGRUNTIME void *
SWIG_Python_MustGetPtr(PyObject * obj,swig_type_info * ty,int SWIGUNUSEDPARM (argnum),int flags)3046 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum), int flags) {
3047   void *result;
3048   if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
3049     PyErr_Clear();
3050 #if SWIG_POINTER_EXCEPTION
3051     if (flags) {
3052       SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
3053       SWIG_Python_ArgFail(argnum);
3054     }
3055 #endif
3056   }
3057   return result;
3058 }
3059 
3060 #ifdef SWIGPYTHON_BUILTIN
3061 SWIGRUNTIME int
SWIG_Python_NonDynamicSetAttr(PyObject * obj,PyObject * name,PyObject * value)3062 SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) {
3063   PyTypeObject *tp = obj->ob_type;
3064   PyObject *descr;
3065   PyObject *encoded_name;
3066   descrsetfunc f;
3067   int res = -1;
3068 
3069 # ifdef Py_USING_UNICODE
3070   if (PyString_Check(name)) {
3071     name = PyUnicode_Decode(PyString_AsString(name), PyString_Size(name), NULL, NULL);
3072     if (!name)
3073       return -1;
3074   } else if (!PyUnicode_Check(name))
3075 # else
3076   if (!PyString_Check(name))
3077 # endif
3078   {
3079     PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%.200s'", name->ob_type->tp_name);
3080     return -1;
3081   } else {
3082     Py_INCREF(name);
3083   }
3084 
3085   if (!tp->tp_dict) {
3086     if (PyType_Ready(tp) < 0)
3087       goto done;
3088   }
3089 
3090   descr = _PyType_Lookup(tp, name);
3091   f = NULL;
3092   if (descr != NULL)
3093     f = descr->ob_type->tp_descr_set;
3094   if (!f) {
3095     if (PyString_Check(name)) {
3096       encoded_name = name;
3097       Py_INCREF(name);
3098     } else {
3099       encoded_name = PyUnicode_AsUTF8String(name);
3100     }
3101     PyErr_Format(PyExc_AttributeError, "'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name));
3102     Py_DECREF(encoded_name);
3103   } else {
3104     res = f(descr, obj, value);
3105   }
3106 
3107   done:
3108   Py_DECREF(name);
3109   return res;
3110 }
3111 #endif
3112 
3113 
3114 #ifdef __cplusplus
3115 }
3116 #endif
3117 
3118 
3119 
3120 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
3121 
3122 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
3123 
3124 
3125 
3126   #define SWIG_exception(code, msg) do { SWIG_Error(code, msg); SWIG_fail;; } while(0)
3127 
3128 /* -----------------------------------------------------------------------------
3129  * director_common.swg
3130  *
3131  * This file contains support for director classes which is common between
3132  * languages.
3133  * ----------------------------------------------------------------------------- */
3134 
3135 /*
3136   Use -DSWIG_DIRECTOR_STATIC if you prefer to avoid the use of the
3137   'Swig' namespace. This could be useful for multi-modules projects.
3138 */
3139 #ifdef SWIG_DIRECTOR_STATIC
3140 /* Force anonymous (static) namespace */
3141 #define Swig
3142 #endif
3143 /* -----------------------------------------------------------------------------
3144  * director.swg
3145  *
3146  * This file contains support for director classes so that Python proxy
3147  * methods can be called from C++.
3148  * ----------------------------------------------------------------------------- */
3149 
3150 #ifndef SWIG_DIRECTOR_PYTHON_HEADER_
3151 #define SWIG_DIRECTOR_PYTHON_HEADER_
3152 
3153 #include <string>
3154 #include <iostream>
3155 #include <exception>
3156 #include <vector>
3157 #include <map>
3158 
3159 
3160 /*
3161   Use -DSWIG_PYTHON_DIRECTOR_NO_VTABLE if you don't want to generate a 'virtual
3162   table', and avoid multiple GetAttr calls to retrieve the python
3163   methods.
3164 */
3165 
3166 #ifndef SWIG_PYTHON_DIRECTOR_NO_VTABLE
3167 #ifndef SWIG_PYTHON_DIRECTOR_VTABLE
3168 #define SWIG_PYTHON_DIRECTOR_VTABLE
3169 #endif
3170 #endif
3171 
3172 
3173 
3174 /*
3175   Use -DSWIG_DIRECTOR_NO_UEH if you prefer to avoid the use of the
3176   Undefined Exception Handler provided by swig.
3177 */
3178 #ifndef SWIG_DIRECTOR_NO_UEH
3179 #ifndef SWIG_DIRECTOR_UEH
3180 #define SWIG_DIRECTOR_UEH
3181 #endif
3182 #endif
3183 
3184 
3185 /*
3186   Use -DSWIG_DIRECTOR_NORTTI if you prefer to avoid the use of the
3187   native C++ RTTI and dynamic_cast<>. But be aware that directors
3188   could stop working when using this option.
3189 */
3190 #ifdef SWIG_DIRECTOR_NORTTI
3191 /*
3192    When we don't use the native C++ RTTI, we implement a minimal one
3193    only for Directors.
3194 */
3195 # ifndef SWIG_DIRECTOR_RTDIR
3196 # define SWIG_DIRECTOR_RTDIR
3197 
3198 namespace Swig {
3199   class Director;
get_rtdir_map()3200   SWIGINTERN std::map<void *, Director *>& get_rtdir_map() {
3201     static std::map<void *, Director *> rtdir_map;
3202     return rtdir_map;
3203   }
3204 
set_rtdir(void * vptr,Director * rtdir)3205   SWIGINTERNINLINE void set_rtdir(void *vptr, Director *rtdir) {
3206     get_rtdir_map()[vptr] = rtdir;
3207   }
3208 
get_rtdir(void * vptr)3209   SWIGINTERNINLINE Director *get_rtdir(void *vptr) {
3210     std::map<void *, Director *>::const_iterator pos = get_rtdir_map().find(vptr);
3211     Director *rtdir = (pos != get_rtdir_map().end()) ? pos->second : 0;
3212     return rtdir;
3213   }
3214 }
3215 # endif /* SWIG_DIRECTOR_RTDIR */
3216 
3217 # define SWIG_DIRECTOR_CAST(ARG) Swig::get_rtdir(static_cast<void *>(ARG))
3218 # define SWIG_DIRECTOR_RGTR(ARG1, ARG2) Swig::set_rtdir(static_cast<void *>(ARG1), ARG2)
3219 
3220 #else
3221 
3222 # define SWIG_DIRECTOR_CAST(ARG) dynamic_cast<Swig::Director *>(ARG)
3223 # define SWIG_DIRECTOR_RGTR(ARG1, ARG2)
3224 
3225 #endif /* SWIG_DIRECTOR_NORTTI */
3226 
3227 extern "C" {
3228   struct swig_type_info;
3229 }
3230 
3231 namespace Swig {
3232 
3233   /* memory handler */
3234   struct GCItem {
~GCItemSwig::GCItem3235     virtual ~GCItem() {}
3236 
get_ownSwig::GCItem3237     virtual int get_own() const {
3238       return 0;
3239     }
3240   };
3241 
3242   struct GCItem_var {
GCItem_varSwig::GCItem_var3243     GCItem_var(GCItem *item = 0) : _item(item) {
3244     }
3245 
operator =Swig::GCItem_var3246     GCItem_var& operator=(GCItem *item) {
3247       GCItem *tmp = _item;
3248       _item = item;
3249       delete tmp;
3250       return *this;
3251     }
3252 
~GCItem_varSwig::GCItem_var3253     ~GCItem_var() {
3254       delete _item;
3255     }
3256 
operator ->Swig::GCItem_var3257     GCItem * operator->() const {
3258       return _item;
3259     }
3260 
3261   private:
3262     GCItem *_item;
3263   };
3264 
3265   struct GCItem_Object : GCItem {
GCItem_ObjectSwig::GCItem_Object3266     GCItem_Object(int own) : _own(own) {
3267     }
3268 
~GCItem_ObjectSwig::GCItem_Object3269     virtual ~GCItem_Object() {
3270     }
3271 
get_ownSwig::GCItem_Object3272     int get_own() const {
3273       return _own;
3274     }
3275 
3276   private:
3277     int _own;
3278   };
3279 
3280   template <typename Type>
3281   struct GCItem_T : GCItem {
GCItem_TSwig::GCItem_T3282     GCItem_T(Type *ptr) : _ptr(ptr) {
3283     }
3284 
~GCItem_TSwig::GCItem_T3285     virtual ~GCItem_T() {
3286       delete _ptr;
3287     }
3288 
3289   private:
3290     Type *_ptr;
3291   };
3292 
3293   template <typename Type>
3294   struct GCArray_T : GCItem {
GCArray_TSwig::GCArray_T3295     GCArray_T(Type *ptr) : _ptr(ptr) {
3296     }
3297 
~GCArray_TSwig::GCArray_T3298     virtual ~GCArray_T() {
3299       delete[] _ptr;
3300     }
3301 
3302   private:
3303     Type *_ptr;
3304   };
3305 
3306   /* base class for director exceptions */
3307   class DirectorException : public std::exception {
3308   protected:
3309     std::string swig_msg;
3310   public:
DirectorException(PyObject * error,const char * hdr="",const char * msg="")3311     DirectorException(PyObject *error, const char *hdr ="", const char *msg ="") : swig_msg(hdr) {
3312       SWIG_PYTHON_THREAD_BEGIN_BLOCK;
3313       if (msg[0]) {
3314         swig_msg += " ";
3315         swig_msg += msg;
3316       }
3317       if (!PyErr_Occurred()) {
3318         PyErr_SetString(error, what());
3319       }
3320       SWIG_PYTHON_THREAD_END_BLOCK;
3321     }
3322 
~DirectorException()3323     virtual ~DirectorException() throw() {
3324     }
3325 
3326     /* Deprecated, use what() instead */
getMessage() const3327     const char *getMessage() const {
3328       return what();
3329     }
3330 
what() const3331     const char *what() const throw() {
3332       return swig_msg.c_str();
3333     }
3334 
raise(PyObject * error,const char * msg)3335     static void raise(PyObject *error, const char *msg) {
3336       throw DirectorException(error, msg);
3337     }
3338 
raise(const char * msg)3339     static void raise(const char *msg) {
3340       raise(PyExc_RuntimeError, msg);
3341     }
3342   };
3343 
3344   /* unknown exception handler  */
3345   class UnknownExceptionHandler {
3346 #ifdef SWIG_DIRECTOR_UEH
handler()3347     static void handler() {
3348       try {
3349         throw;
3350       } catch (DirectorException& e) {
3351         std::cerr << "SWIG Director exception caught:" << std::endl
3352                   << e.what() << std::endl;
3353       } catch (std::exception& e) {
3354         std::cerr << "std::exception caught: "<< e.what() << std::endl;
3355       } catch (...) {
3356         std::cerr << "Unknown exception caught." << std::endl;
3357       }
3358 
3359       std::cerr << std::endl
3360                 << "Python interpreter traceback:" << std::endl;
3361       PyErr_Print();
3362       std::cerr << std::endl;
3363 
3364       std::cerr << "This exception was caught by the SWIG unexpected exception handler." << std::endl
3365                 << "Try using %feature(\"director:except\") to avoid reaching this point." << std::endl
3366                 << std::endl
3367                 << "Exception is being re-thrown, program will likely abort/terminate." << std::endl;
3368       throw;
3369     }
3370 
3371   public:
3372 
3373     std::unexpected_handler old;
UnknownExceptionHandler(std::unexpected_handler nh=handler)3374     UnknownExceptionHandler(std::unexpected_handler nh = handler) {
3375       old = std::set_unexpected(nh);
3376     }
3377 
~UnknownExceptionHandler()3378     ~UnknownExceptionHandler() {
3379       std::set_unexpected(old);
3380     }
3381 #endif
3382   };
3383 
3384   /* type mismatch in the return value from a python method call */
3385   class DirectorTypeMismatchException : public DirectorException {
3386   public:
DirectorTypeMismatchException(PyObject * error,const char * msg="")3387     DirectorTypeMismatchException(PyObject *error, const char *msg="")
3388       : DirectorException(error, "SWIG director type mismatch", msg) {
3389     }
3390 
DirectorTypeMismatchException(const char * msg="")3391     DirectorTypeMismatchException(const char *msg="")
3392       : DirectorException(PyExc_TypeError, "SWIG director type mismatch", msg) {
3393     }
3394 
raise(PyObject * error,const char * msg)3395     static void raise(PyObject *error, const char *msg) {
3396       throw DirectorTypeMismatchException(error, msg);
3397     }
3398 
raise(const char * msg)3399     static void raise(const char *msg) {
3400       throw DirectorTypeMismatchException(msg);
3401     }
3402   };
3403 
3404   /* any python exception that occurs during a director method call */
3405   class DirectorMethodException : public DirectorException {
3406   public:
DirectorMethodException(const char * msg="")3407     DirectorMethodException(const char *msg = "")
3408       : DirectorException(PyExc_RuntimeError, "SWIG director method error.", msg) {
3409     }
3410 
raise(const char * msg)3411     static void raise(const char *msg) {
3412       throw DirectorMethodException(msg);
3413     }
3414   };
3415 
3416   /* attempt to call a pure virtual method via a director method */
3417   class DirectorPureVirtualException : public DirectorException {
3418   public:
DirectorPureVirtualException(const char * msg="")3419     DirectorPureVirtualException(const char *msg = "")
3420       : DirectorException(PyExc_RuntimeError, "SWIG director pure virtual method called", msg) {
3421     }
3422 
raise(const char * msg)3423     static void raise(const char *msg) {
3424       throw DirectorPureVirtualException(msg);
3425     }
3426   };
3427 
3428 
3429 #if defined(SWIG_PYTHON_THREADS)
3430 /*  __THREAD__ is the old macro to activate some thread support */
3431 # if !defined(__THREAD__)
3432 #   define __THREAD__ 1
3433 # endif
3434 #endif
3435 
3436 #ifdef __THREAD__
3437 # include "pythread.h"
3438   class Guard {
3439     PyThread_type_lock &mutex_;
3440 
3441   public:
Guard(PyThread_type_lock & mutex)3442     Guard(PyThread_type_lock & mutex) : mutex_(mutex) {
3443       PyThread_acquire_lock(mutex_, WAIT_LOCK);
3444     }
3445 
~Guard()3446     ~Guard() {
3447       PyThread_release_lock(mutex_);
3448     }
3449   };
3450 # define SWIG_GUARD(mutex) Guard _guard(mutex)
3451 #else
3452 # define SWIG_GUARD(mutex)
3453 #endif
3454 
3455   /* director base class */
3456   class Director {
3457   private:
3458     /* pointer to the wrapped python object */
3459     PyObject *swig_self;
3460     /* flag indicating whether the object is owned by python or c++ */
3461     mutable bool swig_disown_flag;
3462 
3463     /* decrement the reference count of the wrapped python object */
swig_decref() const3464     void swig_decref() const {
3465       if (swig_disown_flag) {
3466         SWIG_PYTHON_THREAD_BEGIN_BLOCK;
3467         Py_DECREF(swig_self);
3468         SWIG_PYTHON_THREAD_END_BLOCK;
3469       }
3470     }
3471 
3472   public:
3473     /* wrap a python object. */
Director(PyObject * self)3474     Director(PyObject *self) : swig_self(self), swig_disown_flag(false) {
3475     }
3476 
3477     /* discard our reference at destruction */
~Director()3478     virtual ~Director() {
3479       swig_decref();
3480     }
3481 
3482     /* return a pointer to the wrapped python object */
swig_get_self() const3483     PyObject *swig_get_self() const {
3484       return swig_self;
3485     }
3486 
3487     /* acquire ownership of the wrapped python object (the sense of "disown" is from python) */
swig_disown() const3488     void swig_disown() const {
3489       if (!swig_disown_flag) {
3490         swig_disown_flag=true;
3491         swig_incref();
3492       }
3493     }
3494 
3495     /* increase the reference count of the wrapped python object */
swig_incref() const3496     void swig_incref() const {
3497       if (swig_disown_flag) {
3498         Py_INCREF(swig_self);
3499       }
3500     }
3501 
3502     /* methods to implement pseudo protected director members */
swig_get_inner(const char *) const3503     virtual bool swig_get_inner(const char * /* swig_protected_method_name */) const {
3504       return true;
3505     }
3506 
swig_set_inner(const char *,bool) const3507     virtual void swig_set_inner(const char * /* swig_protected_method_name */, bool /* swig_val */) const {
3508     }
3509 
3510   /* ownership management */
3511   private:
3512     typedef std::map<void *, GCItem_var> swig_ownership_map;
3513     mutable swig_ownership_map swig_owner;
3514 #ifdef __THREAD__
3515     static PyThread_type_lock swig_mutex_own;
3516 #endif
3517 
3518   public:
3519     template <typename Type>
swig_acquire_ownership_array(Type * vptr) const3520     void swig_acquire_ownership_array(Type *vptr) const {
3521       if (vptr) {
3522         SWIG_GUARD(swig_mutex_own);
3523         swig_owner[vptr] = new GCArray_T<Type>(vptr);
3524       }
3525     }
3526 
3527     template <typename Type>
swig_acquire_ownership(Type * vptr) const3528     void swig_acquire_ownership(Type *vptr) const {
3529       if (vptr) {
3530         SWIG_GUARD(swig_mutex_own);
3531         swig_owner[vptr] = new GCItem_T<Type>(vptr);
3532       }
3533     }
3534 
swig_acquire_ownership_obj(void * vptr,int own) const3535     void swig_acquire_ownership_obj(void *vptr, int own) const {
3536       if (vptr && own) {
3537         SWIG_GUARD(swig_mutex_own);
3538         swig_owner[vptr] = new GCItem_Object(own);
3539       }
3540     }
3541 
swig_release_ownership(void * vptr) const3542     int swig_release_ownership(void *vptr) const {
3543       int own = 0;
3544       if (vptr) {
3545         SWIG_GUARD(swig_mutex_own);
3546         swig_ownership_map::iterator iter = swig_owner.find(vptr);
3547         if (iter != swig_owner.end()) {
3548           own = iter->second->get_own();
3549           swig_owner.erase(iter);
3550         }
3551       }
3552       return own;
3553     }
3554 
3555     template <typename Type>
swig_pyobj_disown(PyObject * pyobj,PyObject * SWIGUNUSEDPARM (args))3556     static PyObject *swig_pyobj_disown(PyObject *pyobj, PyObject *SWIGUNUSEDPARM(args)) {
3557       SwigPyObject *sobj = (SwigPyObject *)pyobj;
3558       sobj->own = 0;
3559       Director *d = SWIG_DIRECTOR_CAST(reinterpret_cast<Type *>(sobj->ptr));
3560       if (d)
3561         d->swig_disown();
3562       return PyWeakref_NewProxy(pyobj, NULL);
3563     }
3564   };
3565 
3566 #ifdef __THREAD__
3567   PyThread_type_lock Director::swig_mutex_own = PyThread_allocate_lock();
3568 #endif
3569 }
3570 
3571 #endif
3572 
3573 /* -------- TYPES TABLE (BEGIN) -------- */
3574 
3575 #define SWIGTYPE_p_Xapian__AssertionError swig_types[0]
3576 #define SWIGTYPE_p_Xapian__BB2Weight swig_types[1]
3577 #define SWIGTYPE_p_Xapian__BM25PlusWeight swig_types[2]
3578 #define SWIGTYPE_p_Xapian__BM25Weight swig_types[3]
3579 #define SWIGTYPE_p_Xapian__BoolWeight swig_types[4]
3580 #define SWIGTYPE_p_Xapian__Compactor swig_types[5]
3581 #define SWIGTYPE_p_Xapian__CoordWeight swig_types[6]
3582 #define SWIGTYPE_p_Xapian__DLHWeight swig_types[7]
3583 #define SWIGTYPE_p_Xapian__DPHWeight swig_types[8]
3584 #define SWIGTYPE_p_Xapian__Database swig_types[9]
3585 #define SWIGTYPE_p_Xapian__DatabaseClosedError swig_types[10]
3586 #define SWIGTYPE_p_Xapian__DatabaseCorruptError swig_types[11]
3587 #define SWIGTYPE_p_Xapian__DatabaseCreateError swig_types[12]
3588 #define SWIGTYPE_p_Xapian__DatabaseError swig_types[13]
3589 #define SWIGTYPE_p_Xapian__DatabaseLockError swig_types[14]
3590 #define SWIGTYPE_p_Xapian__DatabaseModifiedError swig_types[15]
3591 #define SWIGTYPE_p_Xapian__DatabaseNotFoundError swig_types[16]
3592 #define SWIGTYPE_p_Xapian__DatabaseOpeningError swig_types[17]
3593 #define SWIGTYPE_p_Xapian__DatabaseVersionError swig_types[18]
3594 #define SWIGTYPE_p_Xapian__DateRangeProcessor swig_types[19]
3595 #define SWIGTYPE_p_Xapian__DateValueRangeProcessor swig_types[20]
3596 #define SWIGTYPE_p_Xapian__DecreasingValueWeightPostingSource swig_types[21]
3597 #define SWIGTYPE_p_Xapian__DocNotFoundError swig_types[22]
3598 #define SWIGTYPE_p_Xapian__Document swig_types[23]
3599 #define SWIGTYPE_p_Xapian__ESet swig_types[24]
3600 #define SWIGTYPE_p_Xapian__ESetIterator swig_types[25]
3601 #define SWIGTYPE_p_Xapian__Enquire swig_types[26]
3602 #define SWIGTYPE_p_Xapian__Error swig_types[27]
3603 #define SWIGTYPE_p_Xapian__ExpandDecider swig_types[28]
3604 #define SWIGTYPE_p_Xapian__ExpandDeciderAnd swig_types[29]
3605 #define SWIGTYPE_p_Xapian__ExpandDeciderFilterPrefix swig_types[30]
3606 #define SWIGTYPE_p_Xapian__ExpandDeciderFilterTerms swig_types[31]
3607 #define SWIGTYPE_p_Xapian__FeatureUnavailableError swig_types[32]
3608 #define SWIGTYPE_p_Xapian__FieldProcessor swig_types[33]
3609 #define SWIGTYPE_p_Xapian__FixedWeightPostingSource swig_types[34]
3610 #define SWIGTYPE_p_Xapian__GreatCircleMetric swig_types[35]
3611 #define SWIGTYPE_p_Xapian__IfB2Weight swig_types[36]
3612 #define SWIGTYPE_p_Xapian__InL2Weight swig_types[37]
3613 #define SWIGTYPE_p_Xapian__IneB2Weight swig_types[38]
3614 #define SWIGTYPE_p_Xapian__InternalError swig_types[39]
3615 #define SWIGTYPE_p_Xapian__InvalidArgumentError swig_types[40]
3616 #define SWIGTYPE_p_Xapian__InvalidOperationError swig_types[41]
3617 #define SWIGTYPE_p_Xapian__KeyMaker swig_types[42]
3618 #define SWIGTYPE_p_Xapian__LMWeight swig_types[43]
3619 #define SWIGTYPE_p_Xapian__LatLongCoord swig_types[44]
3620 #define SWIGTYPE_p_Xapian__LatLongCoords swig_types[45]
3621 #define SWIGTYPE_p_Xapian__LatLongCoordsIterator swig_types[46]
3622 #define SWIGTYPE_p_Xapian__LatLongDistanceKeyMaker swig_types[47]
3623 #define SWIGTYPE_p_Xapian__LatLongDistancePostingSource swig_types[48]
3624 #define SWIGTYPE_p_Xapian__LatLongMetric swig_types[49]
3625 #define SWIGTYPE_p_Xapian__LogicError swig_types[50]
3626 #define SWIGTYPE_p_Xapian__MSet swig_types[51]
3627 #define SWIGTYPE_p_Xapian__MSetIterator swig_types[52]
3628 #define SWIGTYPE_p_Xapian__MatchDecider swig_types[53]
3629 #define SWIGTYPE_p_Xapian__MatchSpy swig_types[54]
3630 #define SWIGTYPE_p_Xapian__MultiValueKeyMaker swig_types[55]
3631 #define SWIGTYPE_p_Xapian__NetworkError swig_types[56]
3632 #define SWIGTYPE_p_Xapian__NetworkTimeoutError swig_types[57]
3633 #define SWIGTYPE_p_Xapian__NumberRangeProcessor swig_types[58]
3634 #define SWIGTYPE_p_Xapian__NumberValueRangeProcessor swig_types[59]
3635 #define SWIGTYPE_p_Xapian__PL2PlusWeight swig_types[60]
3636 #define SWIGTYPE_p_Xapian__PL2Weight swig_types[61]
3637 #define SWIGTYPE_p_Xapian__PositionIterator swig_types[62]
3638 #define SWIGTYPE_p_Xapian__PostingIterator swig_types[63]
3639 #define SWIGTYPE_p_Xapian__PostingSource swig_types[64]
3640 #define SWIGTYPE_p_Xapian__Query swig_types[65]
3641 #define SWIGTYPE_p_Xapian__QueryParser swig_types[66]
3642 #define SWIGTYPE_p_Xapian__QueryParserError swig_types[67]
3643 #define SWIGTYPE_p_Xapian__RSet swig_types[68]
3644 #define SWIGTYPE_p_Xapian__RangeError swig_types[69]
3645 #define SWIGTYPE_p_Xapian__RangeProcessor swig_types[70]
3646 #define SWIGTYPE_p_Xapian__Registry swig_types[71]
3647 #define SWIGTYPE_p_Xapian__RuntimeError swig_types[72]
3648 #define SWIGTYPE_p_Xapian__SerialisationError swig_types[73]
3649 #define SWIGTYPE_p_Xapian__SimpleStopper swig_types[74]
3650 #define SWIGTYPE_p_Xapian__Stem swig_types[75]
3651 #define SWIGTYPE_p_Xapian__StemImplementation swig_types[76]
3652 #define SWIGTYPE_p_Xapian__Stopper swig_types[77]
3653 #define SWIGTYPE_p_Xapian__StringValueRangeProcessor swig_types[78]
3654 #define SWIGTYPE_p_Xapian__TermGenerator swig_types[79]
3655 #define SWIGTYPE_p_Xapian__TermIterator swig_types[80]
3656 #define SWIGTYPE_p_Xapian__TfIdfWeight swig_types[81]
3657 #define SWIGTYPE_p_Xapian__TradWeight swig_types[82]
3658 #define SWIGTYPE_p_Xapian__UnimplementedError swig_types[83]
3659 #define SWIGTYPE_p_Xapian__ValueCountMatchSpy swig_types[84]
3660 #define SWIGTYPE_p_Xapian__ValueIterator swig_types[85]
3661 #define SWIGTYPE_p_Xapian__ValueMapPostingSource swig_types[86]
3662 #define SWIGTYPE_p_Xapian__ValuePostingSource swig_types[87]
3663 #define SWIGTYPE_p_Xapian__ValueRangeProcessor swig_types[88]
3664 #define SWIGTYPE_p_Xapian__ValueSetMatchDecider swig_types[89]
3665 #define SWIGTYPE_p_Xapian__ValueWeightPostingSource swig_types[90]
3666 #define SWIGTYPE_p_Xapian__Weight swig_types[91]
3667 #define SWIGTYPE_p_Xapian__WildcardError swig_types[92]
3668 #define SWIGTYPE_p_Xapian__WritableDatabase swig_types[93]
3669 #define SWIGTYPE_p_char swig_types[94]
3670 #define SWIGTYPE_p_compaction_level swig_types[95]
3671 #define SWIGTYPE_p_docid_order swig_types[96]
3672 #define SWIGTYPE_p_double swig_types[97]
3673 #define SWIGTYPE_p_feature_flag swig_types[98]
3674 #define SWIGTYPE_p_flags swig_types[99]
3675 #define SWIGTYPE_p_int swig_types[100]
3676 #define SWIGTYPE_p_std__invalid_argument swig_types[101]
3677 #define SWIGTYPE_p_std__ostream swig_types[102]
3678 #define SWIGTYPE_p_std__string swig_types[103]
3679 #define SWIGTYPE_p_stem_strategy swig_types[104]
3680 #define SWIGTYPE_p_stop_strategy swig_types[105]
3681 #define SWIGTYPE_p_swig__SwigPyIterator swig_types[106]
3682 #define SWIGTYPE_p_type_smoothing swig_types[107]
3683 #define SWIGTYPE_p_unsigned_int swig_types[108]
3684 #define SWIGTYPE_p_unsigned_long swig_types[109]
3685 static swig_type_info *swig_types[111];
3686 static swig_module_info swig_module = {swig_types, 110, 0, 0, 0, 0};
3687 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
3688 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
3689 
3690 /* -------- TYPES TABLE (END) -------- */
3691 
3692 #if (PY_VERSION_HEX <= 0x02000000)
3693 # if !defined(SWIG_PYTHON_CLASSIC)
3694 #  error "This python version requires swig to be run with the '-classic' option"
3695 # endif
3696 #endif
3697 #if (PY_VERSION_HEX <= 0x02020000)
3698 # error "This python version requires swig to be run with the '-nomodern' option"
3699 #endif
3700 #if (PY_VERSION_HEX <= 0x02020000)
3701 # error "This python version requires swig to be run with the '-nomodernargs' option"
3702 #endif
3703 #ifndef METH_O
3704 # error "This python version requires swig to be run with the '-nofastunpack' option"
3705 #endif
3706 #ifdef SWIG_TypeQuery
3707 # undef SWIG_TypeQuery
3708 #endif
3709 #define SWIG_TypeQuery SWIG_Python_TypeQuery
3710 
3711 /*-----------------------------------------------
3712               @(target):= _xapian.so
3713   ------------------------------------------------*/
3714 #if PY_VERSION_HEX >= 0x03000000
3715 #  define SWIG_init    PyInit__xapian
3716 
3717 #else
3718 #  define SWIG_init    init_xapian
3719 
3720 #endif
3721 #define SWIG_name    "_xapian"
3722 
3723 #define SWIGVERSION 0x030013
3724 #define SWIG_VERSION SWIGVERSION
3725 
3726 
3727 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
3728 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
3729 
3730 
3731 #include <stdexcept>
3732 
3733 
3734 namespace swig {
3735   class SwigPtr_PyObject {
3736   protected:
3737     PyObject *_obj;
3738 
3739   public:
SwigPtr_PyObject()3740     SwigPtr_PyObject() :_obj(0)
3741     {
3742     }
3743 
SwigPtr_PyObject(const SwigPtr_PyObject & item)3744     SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj)
3745     {
3746       SWIG_PYTHON_THREAD_BEGIN_BLOCK;
3747       Py_XINCREF(_obj);
3748       SWIG_PYTHON_THREAD_END_BLOCK;
3749     }
3750 
SwigPtr_PyObject(PyObject * obj,bool initial_ref=true)3751     SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj)
3752     {
3753       if (initial_ref) {
3754         SWIG_PYTHON_THREAD_BEGIN_BLOCK;
3755         Py_XINCREF(_obj);
3756         SWIG_PYTHON_THREAD_END_BLOCK;
3757       }
3758     }
3759 
operator =(const SwigPtr_PyObject & item)3760     SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item)
3761     {
3762       SWIG_PYTHON_THREAD_BEGIN_BLOCK;
3763       Py_XINCREF(item._obj);
3764       Py_XDECREF(_obj);
3765       _obj = item._obj;
3766       SWIG_PYTHON_THREAD_END_BLOCK;
3767       return *this;
3768     }
3769 
~SwigPtr_PyObject()3770     ~SwigPtr_PyObject()
3771     {
3772       SWIG_PYTHON_THREAD_BEGIN_BLOCK;
3773       Py_XDECREF(_obj);
3774       SWIG_PYTHON_THREAD_END_BLOCK;
3775     }
3776 
operator PyObject*() const3777     operator PyObject *() const
3778     {
3779       return _obj;
3780     }
3781 
operator ->() const3782     PyObject *operator->() const
3783     {
3784       return _obj;
3785     }
3786   };
3787 }
3788 
3789 
3790 namespace swig {
3791   struct SwigVar_PyObject : SwigPtr_PyObject {
SwigVar_PyObjectswig::SwigVar_PyObject3792     SwigVar_PyObject(PyObject* obj = 0) : SwigPtr_PyObject(obj, false) { }
3793 
operator =swig::SwigVar_PyObject3794     SwigVar_PyObject & operator = (PyObject* obj)
3795     {
3796       Py_XDECREF(_obj);
3797       _obj = obj;
3798       return *this;
3799     }
3800   };
3801 }
3802 
3803 
3804 /* python.i: SWIG interface file for the Python bindings
3805  *
3806  * Copyright (C) 2011,2012,2013,2015,2016,2018 Olly Betts
3807  *
3808  * This program is free software; you can redistribute it and/or
3809  * modify it under the terms of the GNU General Public License as
3810  * published by the Free Software Foundation; either version 2 of the
3811  * License, or (at your option) any later version.
3812  *
3813  * This program is distributed in the hope that it will be useful,
3814  * but WITHOUT ANY WARRANTY; without even the implied warranty of
3815  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
3816  * GNU General Public License for more details.
3817  *
3818  * You should have received a copy of the GNU General Public License
3819  * along with this program; if not, write to the Free Software
3820  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
3821  * USA
3822  */
3823 
3824 
3825 /** @file
3826  * @brief Set xapian.__version__ to the bindings version
3827  */
3828 /* Copyright (C) 2013 Olly Betts
3829  *
3830  * This program is free software; you can redistribute it and/or
3831  * modify it under the terms of the GNU General Public License as
3832  * published by the Free Software Foundation; either version 2 of the
3833  * License, or (at your option) any later version.
3834  *
3835  * This program is distributed in the hope that it will be useful,
3836  * but WITHOUT ANY WARRANTY; without even the implied warranty of
3837  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
3838  * GNU General Public License for more details.
3839  *
3840  * You should have received a copy of the GNU General Public License
3841  * along with this program; if not, write to the Free Software
3842  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
3843  * USA
3844  */
3845 
3846 
3847 /** @file
3848  * @brief Header for SWIG interface file for Xapian.
3849  */
3850 /* Copyright (C) 2005,2006,2007,2008,2009,2011,2012,2013,2014,2015,2016 Olly Betts
3851  *
3852  * This program is free software; you can redistribute it and/or
3853  * modify it under the terms of the GNU General Public License as
3854  * published by the Free Software Foundation; either version 2 of the
3855  * License, or (at your option) any later version.
3856  *
3857  * This program is distributed in the hope that it will be useful,
3858  * but WITHOUT ANY WARRANTY; without even the implied warranty of
3859  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
3860  * GNU General Public License for more details.
3861  *
3862  * You should have received a copy of the GNU General Public License
3863  * along with this program; if not, write to the Free Software
3864  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
3865  * USA
3866  */
3867 
3868 // Disable any deprecation warnings for Xapian methods/functions/classes.
3869 #define XAPIAN_DEPRECATED(D) D
3870 
3871 #include <xapian.h>
3872 
3873 #include <fstream>
3874 #include <iostream>
3875 #include <string>
3876 #include <vector>
3877 
3878 using namespace std;
3879 
3880 // If a backend has been disabled in xapian-core (manually or automatically) we
3881 // include a stub definition here so the bindings can still be built.
3882 namespace Xapian {
3883 
3884 
3885 
3886 #ifndef XAPIAN_HAS_CHERT_BACKEND
3887     namespace Chert {
open(const string &)3888 	static Database open(const string &) {
3889 	    throw FeatureUnavailableError("Chert backend not supported");
3890 	}
open(const string &,int,int=0)3891 	static WritableDatabase open(const string &, int, int = 0) {
3892 	    throw FeatureUnavailableError("Chert backend not supported");
3893 	}
3894     }
3895 #endif
3896 
3897 #ifndef XAPIAN_HAS_INMEMORY_BACKEND
3898     namespace InMemory {
open()3899 	static WritableDatabase open() {
3900 	    throw FeatureUnavailableError("InMemory backend not supported");
3901 	}
3902     }
3903 #endif
3904 
3905 
3906 
3907 
3908 #ifndef XAPIAN_HAS_REMOTE_BACKEND
3909     namespace Remote {
open(const string &,unsigned int,useconds_t=0,useconds_t=0)3910 	static Database open(const string &, unsigned int, useconds_t = 0, useconds_t = 0) {
3911 	    throw FeatureUnavailableError("Remote backend not supported");
3912 	}
3913 
open_writable(const string &,unsigned int,useconds_t=0,useconds_t=0,int=0)3914 	static WritableDatabase open_writable(const string &, unsigned int, useconds_t = 0, useconds_t = 0, int = 0) {
3915 	    throw FeatureUnavailableError("Remote backend not supported");
3916 	}
3917 
open(const string &,const string &,useconds_t=0)3918 	static Database open(const string &, const string &, useconds_t = 0) {
3919 	    throw FeatureUnavailableError("Remote backend not supported");
3920 	}
3921 
open_writable(const string &,const string &,useconds_t=0,int=0)3922 	static WritableDatabase open_writable(const string &, const string &, useconds_t = 0, int = 0) {
3923 	    throw FeatureUnavailableError("Remote backend not supported");
3924 	}
3925     }
3926 #endif
3927 
3928 }
3929 
3930 
3931 #include <typeinfo>
3932 #include <stdexcept>
3933 
3934 
3935 #if defined(__GNUC__)
3936 #  if __GNUC__ == 2 && __GNUC_MINOR <= 96
3937 #     define SWIG_STD_NOMODERN_STL
3938 #  endif
3939 #endif
3940 
3941 
3942 #include <string>
3943 
3944 
3945 #include <stddef.h>
3946 
3947 
3948 #include <iostream>
3949 
3950 #if PY_VERSION_HEX >= 0x03020000
3951 # define SWIGPY_SLICE_ARG(obj) ((PyObject*) (obj))
3952 #else
3953 # define SWIGPY_SLICE_ARG(obj) ((PySliceObject*) (obj))
3954 #endif
3955 
3956 
3957 namespace swig {
3958   struct stop_iteration {
3959   };
3960 
3961   struct SwigPyIterator {
3962   private:
3963     SwigPtr_PyObject _seq;
3964 
3965   protected:
SwigPyIteratorswig::SwigPyIterator3966     SwigPyIterator(PyObject *seq) : _seq(seq)
3967     {
3968     }
3969 
3970   public:
~SwigPyIteratorswig::SwigPyIterator3971     virtual ~SwigPyIterator() {}
3972 
3973     // Access iterator method, required by Python
3974     virtual PyObject *value() const = 0;
3975 
3976     // Forward iterator method, required by Python
3977     virtual SwigPyIterator *incr(size_t n = 1) = 0;
3978 
3979     // Backward iterator method, very common in C++, but not required in Python
decrswig::SwigPyIterator3980     virtual SwigPyIterator *decr(size_t /*n*/ = 1)
3981     {
3982       throw stop_iteration();
3983     }
3984 
3985     // Random access iterator methods, but not required in Python
distanceswig::SwigPyIterator3986     virtual ptrdiff_t distance(const SwigPyIterator &/*x*/) const
3987     {
3988       throw std::invalid_argument("operation not supported");
3989     }
3990 
equalswig::SwigPyIterator3991     virtual bool equal (const SwigPyIterator &/*x*/) const
3992     {
3993       throw std::invalid_argument("operation not supported");
3994     }
3995 
3996     // C++ common/needed methods
3997     virtual SwigPyIterator *copy() const = 0;
3998 
nextswig::SwigPyIterator3999     PyObject *next()
4000     {
4001       SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads
4002       PyObject *obj = value();
4003       incr();
4004       SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads
4005       return obj;
4006     }
4007 
4008     /* Make an alias for Python 3.x */
__next__swig::SwigPyIterator4009     PyObject *__next__()
4010     {
4011       return next();
4012     }
4013 
previousswig::SwigPyIterator4014     PyObject *previous()
4015     {
4016       SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads
4017       decr();
4018       PyObject *obj = value();
4019       SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads
4020       return obj;
4021     }
4022 
advanceswig::SwigPyIterator4023     SwigPyIterator *advance(ptrdiff_t n)
4024     {
4025       return  (n > 0) ?  incr(n) : decr(-n);
4026     }
4027 
operator ==swig::SwigPyIterator4028     bool operator == (const SwigPyIterator& x)  const
4029     {
4030       return equal(x);
4031     }
4032 
operator !=swig::SwigPyIterator4033     bool operator != (const SwigPyIterator& x) const
4034     {
4035       return ! operator==(x);
4036     }
4037 
operator +=swig::SwigPyIterator4038     SwigPyIterator& operator += (ptrdiff_t n)
4039     {
4040       return *advance(n);
4041     }
4042 
operator -=swig::SwigPyIterator4043     SwigPyIterator& operator -= (ptrdiff_t n)
4044     {
4045       return *advance(-n);
4046     }
4047 
operator +swig::SwigPyIterator4048     SwigPyIterator* operator + (ptrdiff_t n) const
4049     {
4050       return copy()->advance(n);
4051     }
4052 
operator -swig::SwigPyIterator4053     SwigPyIterator* operator - (ptrdiff_t n) const
4054     {
4055       return copy()->advance(-n);
4056     }
4057 
operator -swig::SwigPyIterator4058     ptrdiff_t operator - (const SwigPyIterator& x) const
4059     {
4060       return x.distance(*this);
4061     }
4062 
descriptorswig::SwigPyIterator4063     static swig_type_info* descriptor() {
4064       static int init = 0;
4065       static swig_type_info* desc = 0;
4066       if (!init) {
4067 	desc = SWIG_TypeQuery("swig::SwigPyIterator *");
4068 	init = 1;
4069       }
4070       return desc;
4071     }
4072   };
4073 
4074 #if defined(SWIGPYTHON_BUILTIN)
make_output_iterator_builtin(PyObject * pyself)4075   inline PyObject* make_output_iterator_builtin (PyObject *pyself)
4076   {
4077     Py_INCREF(pyself);
4078     return pyself;
4079   }
4080 #endif
4081 }
4082 
4083 
4084 SWIGINTERN int
SWIG_AsVal_double(PyObject * obj,double * val)4085 SWIG_AsVal_double (PyObject *obj, double *val)
4086 {
4087   int res = SWIG_TypeError;
4088   if (PyFloat_Check(obj)) {
4089     if (val) *val = PyFloat_AsDouble(obj);
4090     return SWIG_OK;
4091 #if PY_VERSION_HEX < 0x03000000
4092   } else if (PyInt_Check(obj)) {
4093     if (val) *val = (double) PyInt_AsLong(obj);
4094     return SWIG_OK;
4095 #endif
4096   } else if (PyLong_Check(obj)) {
4097     double v = PyLong_AsDouble(obj);
4098     if (!PyErr_Occurred()) {
4099       if (val) *val = v;
4100       return SWIG_OK;
4101     } else {
4102       PyErr_Clear();
4103     }
4104   }
4105 #ifdef SWIG_PYTHON_CAST_MODE
4106   {
4107     int dispatch = 0;
4108     double d = PyFloat_AsDouble(obj);
4109     if (!PyErr_Occurred()) {
4110       if (val) *val = d;
4111       return SWIG_AddCast(SWIG_OK);
4112     } else {
4113       PyErr_Clear();
4114     }
4115     if (!dispatch) {
4116       long v = PyLong_AsLong(obj);
4117       if (!PyErr_Occurred()) {
4118 	if (val) *val = v;
4119 	return SWIG_AddCast(SWIG_AddCast(SWIG_OK));
4120       } else {
4121 	PyErr_Clear();
4122       }
4123     }
4124   }
4125 #endif
4126   return res;
4127 }
4128 
4129 
4130 #include <float.h>
4131 
4132 
4133 #include <math.h>
4134 
4135 
4136 SWIGINTERNINLINE int
SWIG_CanCastAsInteger(double * d,double min,double max)4137 SWIG_CanCastAsInteger(double *d, double min, double max) {
4138   double x = *d;
4139   if ((min <= x && x <= max)) {
4140    double fx = floor(x);
4141    double cx = ceil(x);
4142    double rd =  ((x - fx) < 0.5) ? fx : cx; /* simple rint */
4143    if ((errno == EDOM) || (errno == ERANGE)) {
4144      errno = 0;
4145    } else {
4146      double summ, reps, diff;
4147      if (rd < x) {
4148        diff = x - rd;
4149      } else if (rd > x) {
4150        diff = rd - x;
4151      } else {
4152        return 1;
4153      }
4154      summ = rd + x;
4155      reps = diff/summ;
4156      if (reps < 8*DBL_EPSILON) {
4157        *d = rd;
4158        return 1;
4159      }
4160    }
4161   }
4162   return 0;
4163 }
4164 
4165 
4166 SWIGINTERN int
SWIG_AsVal_unsigned_SS_long(PyObject * obj,unsigned long * val)4167 SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val)
4168 {
4169 #if PY_VERSION_HEX < 0x03000000
4170   if (PyInt_Check(obj)) {
4171     long v = PyInt_AsLong(obj);
4172     if (v >= 0) {
4173       if (val) *val = v;
4174       return SWIG_OK;
4175     } else {
4176       return SWIG_OverflowError;
4177     }
4178   } else
4179 #endif
4180   if (PyLong_Check(obj)) {
4181     unsigned long v = PyLong_AsUnsignedLong(obj);
4182     if (!PyErr_Occurred()) {
4183       if (val) *val = v;
4184       return SWIG_OK;
4185     } else {
4186       PyErr_Clear();
4187       return SWIG_OverflowError;
4188     }
4189   }
4190 #ifdef SWIG_PYTHON_CAST_MODE
4191   {
4192     int dispatch = 0;
4193     unsigned long v = PyLong_AsUnsignedLong(obj);
4194     if (!PyErr_Occurred()) {
4195       if (val) *val = v;
4196       return SWIG_AddCast(SWIG_OK);
4197     } else {
4198       PyErr_Clear();
4199     }
4200     if (!dispatch) {
4201       double d;
4202       int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d));
4203       if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) {
4204 	if (val) *val = (unsigned long)(d);
4205 	return res;
4206       }
4207     }
4208   }
4209 #endif
4210   return SWIG_TypeError;
4211 }
4212 
4213 
4214 #include <limits.h>
4215 #if !defined(SWIG_NO_LLONG_MAX)
4216 # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
4217 #   define LLONG_MAX __LONG_LONG_MAX__
4218 #   define LLONG_MIN (-LLONG_MAX - 1LL)
4219 #   define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
4220 # endif
4221 #endif
4222 
4223 
4224 #if defined(LLONG_MAX) && !defined(SWIG_LONG_LONG_AVAILABLE)
4225 #  define SWIG_LONG_LONG_AVAILABLE
4226 #endif
4227 
4228 
4229 #ifdef SWIG_LONG_LONG_AVAILABLE
4230 SWIGINTERN int
SWIG_AsVal_unsigned_SS_long_SS_long(PyObject * obj,unsigned long long * val)4231 SWIG_AsVal_unsigned_SS_long_SS_long (PyObject *obj, unsigned long long *val)
4232 {
4233   int res = SWIG_TypeError;
4234   if (PyLong_Check(obj)) {
4235     unsigned long long v = PyLong_AsUnsignedLongLong(obj);
4236     if (!PyErr_Occurred()) {
4237       if (val) *val = v;
4238       return SWIG_OK;
4239     } else {
4240       PyErr_Clear();
4241       res = SWIG_OverflowError;
4242     }
4243   } else {
4244     unsigned long v;
4245     res = SWIG_AsVal_unsigned_SS_long (obj,&v);
4246     if (SWIG_IsOK(res)) {
4247       if (val) *val = v;
4248       return res;
4249     }
4250   }
4251 #ifdef SWIG_PYTHON_CAST_MODE
4252   {
4253     const double mant_max = 1LL << DBL_MANT_DIG;
4254     double d;
4255     res = SWIG_AsVal_double (obj,&d);
4256     if (SWIG_IsOK(res) && !SWIG_CanCastAsInteger(&d, 0, mant_max))
4257       return SWIG_OverflowError;
4258     if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, mant_max)) {
4259       if (val) *val = (unsigned long long)(d);
4260       return SWIG_AddCast(res);
4261     }
4262     res = SWIG_TypeError;
4263   }
4264 #endif
4265   return res;
4266 }
4267 #endif
4268 
4269 
4270 SWIGINTERNINLINE int
SWIG_AsVal_size_t(PyObject * obj,size_t * val)4271 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
4272 {
4273   int res = SWIG_TypeError;
4274 #ifdef SWIG_LONG_LONG_AVAILABLE
4275   if (sizeof(size_t) <= sizeof(unsigned long)) {
4276 #endif
4277     unsigned long v;
4278     res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
4279     if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
4280 #ifdef SWIG_LONG_LONG_AVAILABLE
4281   } else if (sizeof(size_t) <= sizeof(unsigned long long)) {
4282     unsigned long long v;
4283     res = SWIG_AsVal_unsigned_SS_long_SS_long (obj, val ? &v : 0);
4284     if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
4285   }
4286 #endif
4287   return res;
4288 }
4289 
4290 
4291   #define SWIG_From_long   PyInt_FromLong
4292 
4293 
4294 #ifdef SWIG_LONG_LONG_AVAILABLE
4295 SWIGINTERNINLINE PyObject*
SWIG_From_long_SS_long(long long value)4296 SWIG_From_long_SS_long  (long long value)
4297 {
4298   return ((value < LONG_MIN) || (value > LONG_MAX)) ?
4299     PyLong_FromLongLong(value) : PyInt_FromLong(static_cast< long >(value));
4300 }
4301 #endif
4302 
4303 
4304 SWIGINTERNINLINE PyObject *
SWIG_From_ptrdiff_t(ptrdiff_t value)4305 SWIG_From_ptrdiff_t  (ptrdiff_t value)
4306 {
4307 #ifdef SWIG_LONG_LONG_AVAILABLE
4308   if (sizeof(ptrdiff_t) <= sizeof(long)) {
4309 #endif
4310     return SWIG_From_long  (static_cast< long >(value));
4311 #ifdef SWIG_LONG_LONG_AVAILABLE
4312   } else {
4313     /* assume sizeof(ptrdiff_t) <= sizeof(long long) */
4314     return SWIG_From_long_SS_long  (static_cast< long long >(value));
4315   }
4316 #endif
4317 }
4318 
4319 
4320 SWIGINTERNINLINE PyObject*
SWIG_From_bool(bool value)4321   SWIG_From_bool  (bool value)
4322 {
4323   return PyBool_FromLong(value ? 1 : 0);
4324 }
4325 
4326 
4327 SWIGINTERN int
SWIG_AsVal_long(PyObject * obj,long * val)4328 SWIG_AsVal_long (PyObject *obj, long* val)
4329 {
4330 #if PY_VERSION_HEX < 0x03000000
4331   if (PyInt_Check(obj)) {
4332     if (val) *val = PyInt_AsLong(obj);
4333     return SWIG_OK;
4334   } else
4335 #endif
4336   if (PyLong_Check(obj)) {
4337     long v = PyLong_AsLong(obj);
4338     if (!PyErr_Occurred()) {
4339       if (val) *val = v;
4340       return SWIG_OK;
4341     } else {
4342       PyErr_Clear();
4343       return SWIG_OverflowError;
4344     }
4345   }
4346 #ifdef SWIG_PYTHON_CAST_MODE
4347   {
4348     int dispatch = 0;
4349     long v = PyInt_AsLong(obj);
4350     if (!PyErr_Occurred()) {
4351       if (val) *val = v;
4352       return SWIG_AddCast(SWIG_OK);
4353     } else {
4354       PyErr_Clear();
4355     }
4356     if (!dispatch) {
4357       double d;
4358       int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d));
4359       if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) {
4360 	if (val) *val = (long)(d);
4361 	return res;
4362       }
4363     }
4364   }
4365 #endif
4366   return SWIG_TypeError;
4367 }
4368 
4369 
4370 #ifdef SWIG_LONG_LONG_AVAILABLE
4371 SWIGINTERN int
SWIG_AsVal_long_SS_long(PyObject * obj,long long * val)4372 SWIG_AsVal_long_SS_long (PyObject *obj, long long *val)
4373 {
4374   int res = SWIG_TypeError;
4375   if (PyLong_Check(obj)) {
4376     long long v = PyLong_AsLongLong(obj);
4377     if (!PyErr_Occurred()) {
4378       if (val) *val = v;
4379       return SWIG_OK;
4380     } else {
4381       PyErr_Clear();
4382       res = SWIG_OverflowError;
4383     }
4384   } else {
4385     long v;
4386     res = SWIG_AsVal_long (obj,&v);
4387     if (SWIG_IsOK(res)) {
4388       if (val) *val = v;
4389       return res;
4390     }
4391   }
4392 #ifdef SWIG_PYTHON_CAST_MODE
4393   {
4394     const double mant_max = 1LL << DBL_MANT_DIG;
4395     const double mant_min = -mant_max;
4396     double d;
4397     res = SWIG_AsVal_double (obj,&d);
4398     if (SWIG_IsOK(res) && !SWIG_CanCastAsInteger(&d, mant_min, mant_max))
4399       return SWIG_OverflowError;
4400     if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, mant_min, mant_max)) {
4401       if (val) *val = (long long)(d);
4402       return SWIG_AddCast(res);
4403     }
4404     res = SWIG_TypeError;
4405   }
4406 #endif
4407   return res;
4408 }
4409 #endif
4410 
4411 
4412 SWIGINTERNINLINE int
SWIG_AsVal_ptrdiff_t(PyObject * obj,ptrdiff_t * val)4413 SWIG_AsVal_ptrdiff_t (PyObject * obj, ptrdiff_t *val)
4414 {
4415   int res = SWIG_TypeError;
4416 #ifdef SWIG_LONG_LONG_AVAILABLE
4417   if (sizeof(ptrdiff_t) <= sizeof(long)) {
4418 #endif
4419     long v;
4420     res = SWIG_AsVal_long (obj, val ? &v : 0);
4421     if (SWIG_IsOK(res) && val) *val = static_cast< ptrdiff_t >(v);
4422 #ifdef SWIG_LONG_LONG_AVAILABLE
4423   } else if (sizeof(ptrdiff_t) <= sizeof(long long)) {
4424     long long v;
4425     res = SWIG_AsVal_long_SS_long (obj, val ? &v : 0);
4426     if (SWIG_IsOK(res) && val) *val = static_cast< ptrdiff_t >(v);
4427   }
4428 #endif
4429   return res;
4430 }
4431 
4432 
4433 #include <algorithm>
4434 
4435 
4436 #include <vector>
4437 
4438 
4439 #include <utility>
4440 
4441 
4442 #include <map>
4443 
4444 
4445 #include <algorithm>
4446 
4447 
4448 /* python/extracomments.i: Custom written documentation comments.
4449  *
4450  * Copyright (C) 2007 Lemur Consulting Ltd
4451  *
4452  * This program is free software; you can redistribute it and/or
4453  * modify it under the terms of the GNU General Public License as
4454  * published by the Free Software Foundation; either version 2 of the
4455  * License, or (at your option) any later version.
4456  *
4457  * This program is distributed in the hope that it will be useful,
4458  * but WITHOUT ANY WARRANTY; without even the implied warranty of
4459  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4460  * GNU General Public License for more details.
4461  *
4462  * You should have received a copy of the GNU General Public License
4463  * along with this program; if not, write to the Free Software
4464  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
4465  * USA
4466  */
4467 
4468 
4469 /* python/util.i: custom Python typemaps for xapian-bindings
4470  *
4471  * Copyright (C) 1999,2000,2001 BrightStation PLC
4472  * Copyright (C) 2002 Ananova Ltd
4473  * Copyright (C) 2002,2003 James Aylett
4474  * Copyright (C) 2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2013,2017 Olly Betts
4475  * Copyright (C) 2007 Lemur Consulting Ltd
4476  *
4477  * This program is free software; you can redistribute it and/or
4478  * modify it under the terms of the GNU General Public License as
4479  * published by the Free Software Foundation; either version 2 of the
4480  * License, or (at your option) any later version.
4481  *
4482  * This program is distributed in the hope that it will be useful,
4483  * but WITHOUT ANY WARRANTY; without even the implied warranty of
4484  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4485  * GNU General Public License for more details.
4486  *
4487  * You should have received a copy of the GNU General Public License
4488  * along with this program; if not, write to the Free Software
4489  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
4490  * USA
4491  */
4492 
4493 
4494 namespace Xapian {
get_py_query(PyObject * obj)4495     Query *get_py_query(PyObject *obj) {
4496 	PyObject * mythis = PyObject_GetAttrString(obj, "this");
4497 	if (!mythis)
4498 	    return 0;
4499 
4500 	Query * retval = 0;
4501 	int res = SWIG_ConvertPtr(mythis, (void **)&retval,
4502 				  SWIGTYPE_p_Xapian__Query, 0);
4503 	if (!SWIG_IsOK(res)) {
4504 	    retval = 0;
4505 	}
4506 	Py_DECREF(mythis);
4507 	return retval;
4508     }
4509 }
4510 
4511 
4512 #define MSET_DID 0
4513 #define MSET_WT 1
4514 #define MSET_RANK 2
4515 #define MSET_PERCENT 3
4516 #define MSET_DOCUMENT 4
4517 
4518 #define ESET_TNAME 0
4519 #define ESET_WT 1
4520 
4521 
4522 SWIGINTERNINLINE PyObject*
SWIG_From_int(int value)4523   SWIG_From_int  (int value)
4524 {
4525   return PyInt_FromLong((long) value);
4526 }
4527 
4528 
4529 /* The GIL must be held when this is called. */
Xapian_MSet_items_get(Xapian::MSet * mset)4530 PyObject *Xapian_MSet_items_get(Xapian::MSet *mset)
4531 {
4532     PyObject *retval = PyList_New(mset->size());
4533     if (retval == 0) {
4534 	return NULL;
4535     }
4536 
4537     Py_ssize_t idx = 0;
4538     for (Xapian::MSetIterator i = mset->begin(); i != mset->end(); ++i) {
4539 	PyObject *t = PyTuple_New(4);
4540 	if (!t) {
4541 	    Py_DECREF(retval);
4542 	    return NULL;
4543 	}
4544 
4545 	PyList_SET_ITEM(retval, idx++, t);
4546 
4547 	PyTuple_SET_ITEM(t, MSET_DID, PyInt_FromLong(*i));
4548 	PyTuple_SET_ITEM(t, MSET_WT, PyFloat_FromDouble(i.get_weight()));
4549 	PyTuple_SET_ITEM(t, MSET_RANK, PyInt_FromLong(i.get_rank()));
4550 	PyTuple_SET_ITEM(t, MSET_PERCENT, PyInt_FromLong(i.get_percent()));
4551     }
4552     return retval;
4553 }
4554 
4555 
4556 /* The GIL must be held when this is called. */
Xapian_ESet_items_get(Xapian::ESet * eset)4557 PyObject *Xapian_ESet_items_get(Xapian::ESet *eset)
4558 {
4559     PyObject *retval = PyList_New(eset->size());
4560     if (retval == 0) {
4561 	return NULL;
4562     }
4563 
4564     Py_ssize_t idx = 0;
4565     for (Xapian::ESetIterator i = eset->begin(); i != eset->end(); ++i) {
4566 	PyObject *t = PyTuple_New(2);
4567 	if (!t) {
4568 	    Py_DECREF(retval);
4569 	    return NULL;
4570 	}
4571 
4572 	PyList_SET_ITEM(retval, idx++, t);
4573 
4574 	PyObject * str = PyString_FromStringAndSize((*i).data(), (*i).size());
4575 	if (str == 0) {
4576 	    Py_DECREF(retval);
4577 	    return NULL;
4578 	}
4579 
4580 	PyTuple_SET_ITEM(t, ESET_TNAME, str);
4581 	PyTuple_SET_ITEM(t, ESET_WT, PyFloat_FromDouble(i.get_weight()));
4582     }
4583     return retval;
4584 }
4585 
4586 
4587 class XapianSWIGQueryItor {
4588     mutable PyObject * seq;
4589 
4590     int i;
4591 
4592     /// str_obj must be a string object.
str_obj_to_query(PyObject * str_obj) const4593     Xapian::Query str_obj_to_query(PyObject * str_obj) const {
4594 	char * p;
4595 	Py_ssize_t len;
4596 	(void)PyString_AsStringAndSize(str_obj, &p, &len);
4597 	return Xapian::Query(string(p, len));
4598     }
4599 
4600   public:
4601     typedef std::random_access_iterator_tag iterator_category;
4602     typedef Xapian::Query value_type;
4603     typedef Xapian::termcount_diff difference_type;
4604     typedef Xapian::Query * pointer;
4605     typedef Xapian::Query & reference;
4606 
XapianSWIGQueryItor()4607     XapianSWIGQueryItor() : seq(NULL), i(0) { }
4608 
begin(PyObject * seq_)4609     void begin(PyObject * seq_) {
4610 	seq = seq_;
4611     }
4612 
end(PyObject * seq_)4613     void end(PyObject * seq_) {
4614 	i = PySequence_Fast_GET_SIZE(seq_);
4615     }
4616 
free_seq()4617     void free_seq() {
4618 	Py_CLEAR(seq);
4619     }
4620 
operator ++()4621     XapianSWIGQueryItor & operator++() {
4622 	++i;
4623 	return *this;
4624     }
4625 
operator *() const4626     Xapian::Query operator*() const {
4627 	PyObject * obj = PySequence_Fast_GET_ITEM(seq, i);
4628 
4629 	// Unicode object.
4630 	if (PyUnicode_Check(obj)) {
4631 	    PyObject *s = PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(obj),
4632 					       PyUnicode_GET_SIZE(obj),
4633 					       "ignore");
4634 	    if (!s) goto fail;
4635 	    Xapian::Query result = str_obj_to_query(s);
4636 	    Py_DECREF(s);
4637 	    return result;
4638 	}
4639 
4640 	// String.
4641 	if (PyString_Check(obj))
4642 	    return str_obj_to_query(obj);
4643 
4644 	// xapian.Query object (or unexpected object type).
4645 	{
4646 	    Xapian::Query * result_ptr = Xapian::get_py_query(obj);
4647 	    if (result_ptr) return *result_ptr;
4648 	}
4649 
4650     fail:
4651 	throw Xapian::InvalidArgumentError("Expected Query object or string");
4652     }
4653 
operator ==(const XapianSWIGQueryItor & o)4654     bool operator==(const XapianSWIGQueryItor & o) {
4655 	return i == o.i;
4656     }
4657 
operator !=(const XapianSWIGQueryItor & o)4658     bool operator!=(const XapianSWIGQueryItor & o) {
4659 	return !(*this == o);
4660     }
4661 
operator -(const XapianSWIGQueryItor & o) const4662     difference_type operator-(const XapianSWIGQueryItor &o) const {
4663 	return i - o.i;
4664     }
4665 };
4666 
4667 
4668 
4669 SWIGINTERN swig_type_info*
SWIG_pchar_descriptor(void)4670 SWIG_pchar_descriptor(void)
4671 {
4672   static int init = 0;
4673   static swig_type_info* info = 0;
4674   if (!init) {
4675     info = SWIG_TypeQuery("_p_char");
4676     init = 1;
4677   }
4678   return info;
4679 }
4680 
4681 
4682 SWIGINTERNINLINE PyObject *
SWIG_FromCharPtrAndSize(const char * carray,size_t size)4683 SWIG_FromCharPtrAndSize(const char* carray, size_t size)
4684 {
4685   if (carray) {
4686     if (size > INT_MAX) {
4687       swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
4688       return pchar_descriptor ?
4689 	SWIG_InternalNewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : SWIG_Py_Void();
4690     } else {
4691 #if PY_VERSION_HEX >= 0x03000000
4692 #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
4693       return PyBytes_FromStringAndSize(carray, static_cast< Py_ssize_t >(size));
4694 #else
4695 #if PY_VERSION_HEX >= 0x03010000
4696       return PyUnicode_DecodeUTF8(carray, static_cast< Py_ssize_t >(size), "surrogateescape");
4697 #else
4698       return PyUnicode_FromStringAndSize(carray, static_cast< Py_ssize_t >(size));
4699 #endif
4700 #endif
4701 #else
4702       return PyString_FromStringAndSize(carray, static_cast< Py_ssize_t >(size));
4703 #endif
4704     }
4705   } else {
4706     return SWIG_Py_Void();
4707   }
4708 }
4709 
4710 
4711 SWIGINTERNINLINE PyObject *
SWIG_FromCharPtr(const char * cptr)4712 SWIG_FromCharPtr(const char *cptr)
4713 {
4714   return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
4715 }
4716 
4717 
4718 SWIGINTERNINLINE PyObject *
SWIG_From_std_string(const std::string & s)4719 SWIG_From_std_string  (const std::string& s)
4720 {
4721   return SWIG_FromCharPtrAndSize(s.data(), s.size());
4722 }
4723 
Xapian_Error___str__(Xapian::Error const * self)4724 SWIGINTERN std::string Xapian_Error___str__(Xapian::Error const *self){
4725 	std::string desc(self->get_msg());
4726 	if (!self->get_context().empty()) {
4727 	    desc += " (context: ";
4728 	    desc += self->get_context();
4729 	    desc += ')';
4730 	}
4731 	if (self->get_error_string()) {
4732 	    desc += " (";
4733 	    desc += self->get_error_string();
4734 	    desc += ')';
4735 	}
4736 	return desc;
4737     }
4738 
4739 SWIGINTERN int
SWIG_AsCharPtrAndSize(PyObject * obj,char ** cptr,size_t * psize,int * alloc)4740 SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
4741 {
4742 #if PY_VERSION_HEX>=0x03000000
4743 #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
4744   if (PyBytes_Check(obj))
4745 #else
4746   if (PyUnicode_Check(obj))
4747 #endif
4748 #else
4749   if (PyString_Check(obj))
4750 #endif
4751   {
4752     char *cstr; Py_ssize_t len;
4753 #if PY_VERSION_HEX>=0x03000000
4754 #if !defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
4755     if (!alloc && cptr) {
4756         /* We can't allow converting without allocation, since the internal
4757            representation of string in Python 3 is UCS-2/UCS-4 but we require
4758            a UTF-8 representation.
4759            TODO(bhy) More detailed explanation */
4760         return SWIG_RuntimeError;
4761     }
4762     obj = PyUnicode_AsUTF8String(obj);
4763     if(alloc) *alloc = SWIG_NEWOBJ;
4764 #endif
4765     PyBytes_AsStringAndSize(obj, &cstr, &len);
4766 #else
4767     PyString_AsStringAndSize(obj, &cstr, &len);
4768 #endif
4769     if (cptr) {
4770       if (alloc) {
4771 	/*
4772 	   In python the user should not be able to modify the inner
4773 	   string representation. To warranty that, if you define
4774 	   SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string
4775 	   buffer is always returned.
4776 
4777 	   The default behavior is just to return the pointer value,
4778 	   so, be careful.
4779 	*/
4780 #if defined(SWIG_PYTHON_SAFE_CSTRINGS)
4781 	if (*alloc != SWIG_OLDOBJ)
4782 #else
4783 	if (*alloc == SWIG_NEWOBJ)
4784 #endif
4785 	{
4786 	  *cptr = reinterpret_cast< char* >(memcpy(new char[len + 1], cstr, sizeof(char)*(len + 1)));
4787 	  *alloc = SWIG_NEWOBJ;
4788 	} else {
4789 	  *cptr = cstr;
4790 	  *alloc = SWIG_OLDOBJ;
4791 	}
4792       } else {
4793 #if PY_VERSION_HEX>=0x03000000
4794 #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
4795 	*cptr = PyBytes_AsString(obj);
4796 #else
4797 	assert(0); /* Should never reach here with Unicode strings in Python 3 */
4798 #endif
4799 #else
4800 	*cptr = SWIG_Python_str_AsChar(obj);
4801 #endif
4802       }
4803     }
4804     if (psize) *psize = len + 1;
4805 #if PY_VERSION_HEX>=0x03000000 && !defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
4806     Py_XDECREF(obj);
4807 #endif
4808     return SWIG_OK;
4809   } else {
4810 #if defined(SWIG_PYTHON_2_UNICODE)
4811 #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
4812 #error "Cannot use both SWIG_PYTHON_2_UNICODE and SWIG_PYTHON_STRICT_BYTE_CHAR at once"
4813 #endif
4814 #if PY_VERSION_HEX<0x03000000
4815     if (PyUnicode_Check(obj)) {
4816       char *cstr; Py_ssize_t len;
4817       if (!alloc && cptr) {
4818         return SWIG_RuntimeError;
4819       }
4820       obj = PyUnicode_AsUTF8String(obj);
4821       if (PyString_AsStringAndSize(obj, &cstr, &len) != -1) {
4822         if (cptr) {
4823           if (alloc) *alloc = SWIG_NEWOBJ;
4824           *cptr = reinterpret_cast< char* >(memcpy(new char[len + 1], cstr, sizeof(char)*(len + 1)));
4825         }
4826         if (psize) *psize = len + 1;
4827 
4828         Py_XDECREF(obj);
4829         return SWIG_OK;
4830       } else {
4831         Py_XDECREF(obj);
4832       }
4833     }
4834 #endif
4835 #endif
4836 
4837     swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
4838     if (pchar_descriptor) {
4839       void* vptr = 0;
4840       if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
4841 	if (cptr) *cptr = (char *) vptr;
4842 	if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
4843 	if (alloc) *alloc = SWIG_OLDOBJ;
4844 	return SWIG_OK;
4845       }
4846     }
4847   }
4848   return SWIG_TypeError;
4849 }
4850 
4851 
4852 SWIGINTERN int
SWIG_AsPtr_std_string(PyObject * obj,std::string ** val)4853 SWIG_AsPtr_std_string (PyObject * obj, std::string **val)
4854 {
4855   char* buf = 0 ; size_t size = 0; int alloc = SWIG_OLDOBJ;
4856   if (SWIG_IsOK((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc)))) {
4857     if (buf) {
4858       if (val) *val = new std::string(buf, size - 1);
4859       if (alloc == SWIG_NEWOBJ) delete[] buf;
4860       return SWIG_NEWOBJ;
4861     } else {
4862       if (val) *val = 0;
4863       return SWIG_OLDOBJ;
4864     }
4865   } else {
4866     static int init = 0;
4867     static swig_type_info* descriptor = 0;
4868     if (!init) {
4869       descriptor = SWIG_TypeQuery("std::string" " *");
4870       init = 1;
4871     }
4872     if (descriptor) {
4873       std::string *vptr;
4874       int res = SWIG_ConvertPtr(obj, (void**)&vptr, descriptor, 0);
4875       if (SWIG_IsOK(res) && val) *val = vptr;
4876       return res;
4877     }
4878   }
4879   return SWIG_ERROR;
4880 }
4881 
4882 
4883 /* Utility function which works like SWIG_AsPtr_std_string, but
4884  * converts unicode strings to UTF-8 simple strings first. */
4885 static int
XapianSWIG_anystring_as_ptr(PyObject * obj,std::string ** val)4886 XapianSWIG_anystring_as_ptr(PyObject * obj, std::string **val)
4887 {
4888     if (PyUnicode_Check(obj)) {
4889 	PyObject * strobj = PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(obj), PyUnicode_GET_SIZE(obj), "ignore");
4890 	if (strobj == NULL) return SWIG_ERROR;
4891 	int res = SWIG_AsPtr_std_string(strobj, val);
4892 	Py_DECREF(strobj);
4893 	return res;
4894     } else {
4895 	return SWIG_AsPtr_std_string(obj, val);
4896     }
4897 }
4898 
4899 
4900 
4901 
4902 
4903 SWIGINTERN int
SWIG_AsVal_int(PyObject * obj,int * val)4904 SWIG_AsVal_int (PyObject * obj, int *val)
4905 {
4906   long v;
4907   int res = SWIG_AsVal_long (obj, &v);
4908   if (SWIG_IsOK(res)) {
4909     if ((v < INT_MIN || v > INT_MAX)) {
4910       return SWIG_OverflowError;
4911     } else {
4912       if (val) *val = static_cast< int >(v);
4913     }
4914   }
4915   return res;
4916 }
4917 
4918 
4919 namespace Xapian {
SetPythonException()4920 SWIGEXPORT void SetPythonException() {
4921     try {
4922 	throw;
4923     } catch (Swig::DirectorException &) {
4924 	/* This happens if a director raised an exception.  The standard SWIG
4925 	 * director exception handling code sets the Python error state if
4926 	 * necessary, so we don't need to do anything. */
4927     } catch (const Xapian::DatabaseClosedError &e) {
4928 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::DatabaseClosedError(e)),
4929 					     SWIGTYPE_p_Xapian__DatabaseClosedError,
4930 					     SWIG_POINTER_OWN),
4931 			  "Xapian::DatabaseClosedError",
4932 			  SWIGTYPE_p_Xapian__DatabaseClosedError);
4933     } catch (const Xapian::DatabaseNotFoundError &e) {
4934 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::DatabaseNotFoundError(e)),
4935 					     SWIGTYPE_p_Xapian__DatabaseNotFoundError,
4936 					     SWIG_POINTER_OWN),
4937 			  "Xapian::DatabaseNotFoundError",
4938 			  SWIGTYPE_p_Xapian__DatabaseNotFoundError);
4939     } catch (const Xapian::WildcardError &e) {
4940 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::WildcardError(e)),
4941 					     SWIGTYPE_p_Xapian__WildcardError,
4942 					     SWIG_POINTER_OWN),
4943 			  "Xapian::WildcardError",
4944 			  SWIGTYPE_p_Xapian__WildcardError);
4945     } catch (const Xapian::RangeError &e) {
4946 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::RangeError(e)),
4947 					     SWIGTYPE_p_Xapian__RangeError,
4948 					     SWIG_POINTER_OWN),
4949 			  "Xapian::RangeError",
4950 			  SWIGTYPE_p_Xapian__RangeError);
4951     } catch (const Xapian::SerialisationError &e) {
4952 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::SerialisationError(e)),
4953 					     SWIGTYPE_p_Xapian__SerialisationError,
4954 					     SWIG_POINTER_OWN),
4955 			  "Xapian::SerialisationError",
4956 			  SWIGTYPE_p_Xapian__SerialisationError);
4957     } catch (const Xapian::QueryParserError &e) {
4958 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::QueryParserError(e)),
4959 					     SWIGTYPE_p_Xapian__QueryParserError,
4960 					     SWIG_POINTER_OWN),
4961 			  "Xapian::QueryParserError",
4962 			  SWIGTYPE_p_Xapian__QueryParserError);
4963     } catch (const Xapian::NetworkTimeoutError &e) {
4964 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::NetworkTimeoutError(e)),
4965 					     SWIGTYPE_p_Xapian__NetworkTimeoutError,
4966 					     SWIG_POINTER_OWN),
4967 			  "Xapian::NetworkTimeoutError",
4968 			  SWIGTYPE_p_Xapian__NetworkTimeoutError);
4969     } catch (const Xapian::NetworkError &e) {
4970 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::NetworkError(e)),
4971 					     SWIGTYPE_p_Xapian__NetworkError,
4972 					     SWIG_POINTER_OWN),
4973 			  "Xapian::NetworkError",
4974 			  SWIGTYPE_p_Xapian__NetworkError);
4975     } catch (const Xapian::InternalError &e) {
4976 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::InternalError(e)),
4977 					     SWIGTYPE_p_Xapian__InternalError,
4978 					     SWIG_POINTER_OWN),
4979 			  "Xapian::InternalError",
4980 			  SWIGTYPE_p_Xapian__InternalError);
4981     } catch (const Xapian::FeatureUnavailableError &e) {
4982 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::FeatureUnavailableError(e)),
4983 					     SWIGTYPE_p_Xapian__FeatureUnavailableError,
4984 					     SWIG_POINTER_OWN),
4985 			  "Xapian::FeatureUnavailableError",
4986 			  SWIGTYPE_p_Xapian__FeatureUnavailableError);
4987     } catch (const Xapian::DocNotFoundError &e) {
4988 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::DocNotFoundError(e)),
4989 					     SWIGTYPE_p_Xapian__DocNotFoundError,
4990 					     SWIG_POINTER_OWN),
4991 			  "Xapian::DocNotFoundError",
4992 			  SWIGTYPE_p_Xapian__DocNotFoundError);
4993     } catch (const Xapian::DatabaseVersionError &e) {
4994 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::DatabaseVersionError(e)),
4995 					     SWIGTYPE_p_Xapian__DatabaseVersionError,
4996 					     SWIG_POINTER_OWN),
4997 			  "Xapian::DatabaseVersionError",
4998 			  SWIGTYPE_p_Xapian__DatabaseVersionError);
4999     } catch (const Xapian::DatabaseOpeningError &e) {
5000 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::DatabaseOpeningError(e)),
5001 					     SWIGTYPE_p_Xapian__DatabaseOpeningError,
5002 					     SWIG_POINTER_OWN),
5003 			  "Xapian::DatabaseOpeningError",
5004 			  SWIGTYPE_p_Xapian__DatabaseOpeningError);
5005     } catch (const Xapian::DatabaseModifiedError &e) {
5006 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::DatabaseModifiedError(e)),
5007 					     SWIGTYPE_p_Xapian__DatabaseModifiedError,
5008 					     SWIG_POINTER_OWN),
5009 			  "Xapian::DatabaseModifiedError",
5010 			  SWIGTYPE_p_Xapian__DatabaseModifiedError);
5011     } catch (const Xapian::DatabaseLockError &e) {
5012 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::DatabaseLockError(e)),
5013 					     SWIGTYPE_p_Xapian__DatabaseLockError,
5014 					     SWIG_POINTER_OWN),
5015 			  "Xapian::DatabaseLockError",
5016 			  SWIGTYPE_p_Xapian__DatabaseLockError);
5017     } catch (const Xapian::DatabaseCreateError &e) {
5018 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::DatabaseCreateError(e)),
5019 					     SWIGTYPE_p_Xapian__DatabaseCreateError,
5020 					     SWIG_POINTER_OWN),
5021 			  "Xapian::DatabaseCreateError",
5022 			  SWIGTYPE_p_Xapian__DatabaseCreateError);
5023     } catch (const Xapian::DatabaseCorruptError &e) {
5024 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::DatabaseCorruptError(e)),
5025 					     SWIGTYPE_p_Xapian__DatabaseCorruptError,
5026 					     SWIG_POINTER_OWN),
5027 			  "Xapian::DatabaseCorruptError",
5028 			  SWIGTYPE_p_Xapian__DatabaseCorruptError);
5029     } catch (const Xapian::DatabaseError &e) {
5030 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::DatabaseError(e)),
5031 					     SWIGTYPE_p_Xapian__DatabaseError,
5032 					     SWIG_POINTER_OWN),
5033 			  "Xapian::DatabaseError",
5034 			  SWIGTYPE_p_Xapian__DatabaseError);
5035     } catch (const Xapian::UnimplementedError &e) {
5036 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::UnimplementedError(e)),
5037 					     SWIGTYPE_p_Xapian__UnimplementedError,
5038 					     SWIG_POINTER_OWN),
5039 			  "Xapian::UnimplementedError",
5040 			  SWIGTYPE_p_Xapian__UnimplementedError);
5041     } catch (const Xapian::InvalidOperationError &e) {
5042 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::InvalidOperationError(e)),
5043 					     SWIGTYPE_p_Xapian__InvalidOperationError,
5044 					     SWIG_POINTER_OWN),
5045 			  "Xapian::InvalidOperationError",
5046 			  SWIGTYPE_p_Xapian__InvalidOperationError);
5047     } catch (const Xapian::InvalidArgumentError &e) {
5048 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::InvalidArgumentError(e)),
5049 					     SWIGTYPE_p_Xapian__InvalidArgumentError,
5050 					     SWIG_POINTER_OWN),
5051 			  "Xapian::InvalidArgumentError",
5052 			  SWIGTYPE_p_Xapian__InvalidArgumentError);
5053     } catch (const Xapian::AssertionError &e) {
5054 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::AssertionError(e)),
5055 					     SWIGTYPE_p_Xapian__AssertionError,
5056 					     SWIG_POINTER_OWN),
5057 			  "Xapian::AssertionError",
5058 			  SWIGTYPE_p_Xapian__AssertionError);
5059     } catch (const Xapian::RuntimeError &e) {
5060 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::RuntimeError(e)),
5061 					     SWIGTYPE_p_Xapian__RuntimeError,
5062 					     SWIG_POINTER_OWN),
5063 			  "Xapian::RuntimeError",
5064 			  SWIGTYPE_p_Xapian__RuntimeError);
5065     } catch (const Xapian::LogicError &e) {
5066 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::LogicError(e)),
5067 					     SWIGTYPE_p_Xapian__LogicError,
5068 					     SWIG_POINTER_OWN),
5069 			  "Xapian::LogicError",
5070 			  SWIGTYPE_p_Xapian__LogicError);
5071     } catch (const Xapian::Error &e) {
5072 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::Error(e)),
5073 					     SWIGTYPE_p_Xapian__Error,
5074 					     SWIG_POINTER_OWN),
5075 			  "Xapian::Error",
5076 			  SWIGTYPE_p_Xapian__Error);
5077     } catch (const std::exception& e) {
5078 	SWIG_Error(SWIG_RuntimeError, e.what());
5079     } catch (...) {
5080 	SWIG_Error(SWIG_UnknownError, "unknown error in Xapian");
5081     }
5082 }
5083 }
5084 
5085 
5086 /* xapian-headers.i: Getting SWIG to parse Xapian's C++ headers.
5087  *
5088  * Copyright 2004,2006,2011,2012,2013,2014,2015,2016,2019,2020 Olly Betts
5089  * Copyright 2014 Assem Chelli
5090  *
5091  * This program is free software; you can redistribute it and/or
5092  * modify it under the terms of the GNU General Public License as
5093  * published by the Free Software Foundation; either version 2 of the
5094  * License, or (at your option) any later version.
5095  *
5096  * This program is distributed in the hope that it will be useful,
5097  * but WITHOUT ANY WARRANTY; without even the implied warranty of
5098  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
5099  * GNU General Public License for more details.
5100  *
5101  * You should have received a copy of the GNU General Public License
5102  * along with this program; if not, write to the Free Software
5103  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
5104  * USA
5105  */
5106 
5107 
5108 SWIGINTERNINLINE PyObject*
SWIG_From_unsigned_SS_int(unsigned int value)5109   SWIG_From_unsigned_SS_int  (unsigned int value)
5110 {
5111   return PyInt_FromSize_t((size_t) value);
5112 }
5113 
5114 
5115 SWIGINTERN int
SWIG_AsVal_unsigned_SS_int(PyObject * obj,unsigned int * val)5116 SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
5117 {
5118   unsigned long v;
5119   int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
5120   if (SWIG_IsOK(res)) {
5121     if ((v > UINT_MAX)) {
5122       return SWIG_OverflowError;
5123     } else {
5124       if (val) *val = static_cast< unsigned int >(v);
5125     }
5126   }
5127   return res;
5128 }
5129 
Xapian_PositionIterator___eq__(Xapian::PositionIterator * self,Xapian::PositionIterator const & other)5130 SWIGINTERN bool Xapian_PositionIterator___eq__(Xapian::PositionIterator *self,Xapian::PositionIterator const &other){
5131 	    return (*self)==other;
5132 	}
Xapian_PositionIterator___ne__(Xapian::PositionIterator * self,Xapian::PositionIterator const & other)5133 SWIGINTERN bool Xapian_PositionIterator___ne__(Xapian::PositionIterator *self,Xapian::PositionIterator const &other){
5134 	    return (*self)!=other;
5135 	}
Xapian_PositionIterator_equals(Xapian::PositionIterator const * self,Xapian::PositionIterator const & o)5136 SWIGINTERN bool Xapian_PositionIterator_equals(Xapian::PositionIterator const *self,Xapian::PositionIterator const &o){ return *self == o; }
Xapian_PositionIterator_get_termpos(Xapian::PositionIterator const * self)5137 SWIGINTERN Xapian::termpos Xapian_PositionIterator_get_termpos(Xapian::PositionIterator const *self){ return **self; }
Xapian_PositionIterator_next(Xapian::PositionIterator * self)5138 SWIGINTERN void Xapian_PositionIterator_next(Xapian::PositionIterator *self){ ++(*self); }
Xapian_PostingIterator___eq__(Xapian::PostingIterator * self,Xapian::PostingIterator const & other)5139 SWIGINTERN bool Xapian_PostingIterator___eq__(Xapian::PostingIterator *self,Xapian::PostingIterator const &other){
5140 	    return (*self)==other;
5141 	}
Xapian_PostingIterator___ne__(Xapian::PostingIterator * self,Xapian::PostingIterator const & other)5142 SWIGINTERN bool Xapian_PostingIterator___ne__(Xapian::PostingIterator *self,Xapian::PostingIterator const &other){
5143 	    return (*self)!=other;
5144 	}
Xapian_PostingIterator_equals(Xapian::PostingIterator const * self,Xapian::PostingIterator const & o)5145 SWIGINTERN bool Xapian_PostingIterator_equals(Xapian::PostingIterator const *self,Xapian::PostingIterator const &o){ return *self == o; }
Xapian_PostingIterator_get_docid(Xapian::PostingIterator const * self)5146 SWIGINTERN Xapian::docid Xapian_PostingIterator_get_docid(Xapian::PostingIterator const *self){ return **self; }
Xapian_PostingIterator_next(Xapian::PostingIterator * self)5147 SWIGINTERN void Xapian_PostingIterator_next(Xapian::PostingIterator *self){ ++(*self); }
Xapian_TermIterator___eq__(Xapian::TermIterator * self,Xapian::TermIterator const & other)5148 SWIGINTERN bool Xapian_TermIterator___eq__(Xapian::TermIterator *self,Xapian::TermIterator const &other){
5149 	    return (*self)==other;
5150 	}
Xapian_TermIterator___ne__(Xapian::TermIterator * self,Xapian::TermIterator const & other)5151 SWIGINTERN bool Xapian_TermIterator___ne__(Xapian::TermIterator *self,Xapian::TermIterator const &other){
5152 	    return (*self)!=other;
5153 	}
Xapian_TermIterator_equals(Xapian::TermIterator const * self,Xapian::TermIterator const & o)5154 SWIGINTERN bool Xapian_TermIterator_equals(Xapian::TermIterator const *self,Xapian::TermIterator const &o){ return *self == o; }
Xapian_TermIterator_get_term(Xapian::TermIterator const * self)5155 SWIGINTERN std::string Xapian_TermIterator_get_term(Xapian::TermIterator const *self){ return **self; }
Xapian_TermIterator_next(Xapian::TermIterator * self)5156 SWIGINTERN void Xapian_TermIterator_next(Xapian::TermIterator *self){ ++(*self); }
Xapian_ValueIterator___eq__(Xapian::ValueIterator * self,Xapian::ValueIterator const & other)5157 SWIGINTERN bool Xapian_ValueIterator___eq__(Xapian::ValueIterator *self,Xapian::ValueIterator const &other){
5158 	    return (*self)==other;
5159 	}
Xapian_ValueIterator___ne__(Xapian::ValueIterator * self,Xapian::ValueIterator const & other)5160 SWIGINTERN bool Xapian_ValueIterator___ne__(Xapian::ValueIterator *self,Xapian::ValueIterator const &other){
5161 	    return (*self)!=other;
5162 	}
Xapian_ValueIterator_equals(Xapian::ValueIterator const * self,Xapian::ValueIterator const & o)5163 SWIGINTERN bool Xapian_ValueIterator_equals(Xapian::ValueIterator const *self,Xapian::ValueIterator const &o){ return *self == o; }
Xapian_ValueIterator_get_value(Xapian::ValueIterator const * self)5164 SWIGINTERN std::string Xapian_ValueIterator_get_value(Xapian::ValueIterator const *self){ return **self; }
Xapian_ValueIterator_next(Xapian::ValueIterator * self)5165 SWIGINTERN void Xapian_ValueIterator_next(Xapian::ValueIterator *self){ ++(*self); }
5166 
5167 SWIGINTERNINLINE PyObject*
SWIG_From_unsigned_SS_long(unsigned long value)5168 SWIG_From_unsigned_SS_long  (unsigned long value)
5169 {
5170   return (value > LONG_MAX) ?
5171     PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
5172 }
5173 
5174 
5175 #ifdef SWIG_LONG_LONG_AVAILABLE
5176 SWIGINTERNINLINE PyObject*
SWIG_From_unsigned_SS_long_SS_long(unsigned long long value)5177 SWIG_From_unsigned_SS_long_SS_long  (unsigned long long value)
5178 {
5179   return (value > LONG_MAX) ?
5180     PyLong_FromUnsignedLongLong(value) : PyInt_FromLong(static_cast< long >(value));
5181 }
5182 #endif
5183 
5184 
5185 SWIGINTERNINLINE PyObject *
SWIG_From_size_t(size_t value)5186 SWIG_From_size_t  (size_t value)
5187 {
5188 #ifdef SWIG_LONG_LONG_AVAILABLE
5189   if (sizeof(size_t) <= sizeof(unsigned long)) {
5190 #endif
5191     return SWIG_From_unsigned_SS_long  (static_cast< unsigned long >(value));
5192 #ifdef SWIG_LONG_LONG_AVAILABLE
5193   } else {
5194     /* assume sizeof(size_t) <= sizeof(unsigned long long) */
5195     return SWIG_From_unsigned_SS_long_SS_long  (static_cast< unsigned long long >(value));
5196   }
5197 #endif
5198 }
5199 
5200 
5201 SWIGINTERN int
SWIG_AsVal_bool(PyObject * obj,bool * val)5202 SWIG_AsVal_bool (PyObject *obj, bool *val)
5203 {
5204   int r = PyObject_IsTrue(obj);
5205   if (r == -1)
5206     return SWIG_ERROR;
5207   if (val) *val = r ? true : false;
5208   return SWIG_OK;
5209 }
5210 
5211 
5212   #define SWIG_From_double   PyFloat_FromDouble
5213 
Xapian_MSet___cmp__(Xapian::MSet * self,Xapian::MSet const & other)5214 SWIGINTERN int Xapian_MSet___cmp__(Xapian::MSet *self,Xapian::MSet const &other){
5215 	    if (self->get_max_possible() != other.get_max_possible()) {
5216 		return (self->get_max_possible() < other.get_max_possible())? -1 : 1;
5217 	    }
5218 	    if (self->size() != other.size()) {
5219 		return (self->size() < other.size())? -1 : 1;
5220 	    }
5221 
5222 	    for (size_t i=0; i<self->size(); ++i) {
5223 		if (*(*self)[i] != *other[i]) {
5224 		    return (*(*self)[i] < *other[i])? -1 : 1;
5225 		}
5226 		if ((*self)[i].get_weight() != other[i].get_weight()) {
5227 		    return ((*self)[i].get_weight() < other[i].get_weight())? -1 : 1;
5228 		}
5229 	    }
5230 	    return 0;
5231 	}
Xapian_MSet_get_docid(Xapian::MSet const * self,Xapian::doccount i)5232 SWIGINTERN Xapian::docid Xapian_MSet_get_docid(Xapian::MSet const *self,Xapian::doccount i){
5233 	return *(*self)[i];
5234     }
Xapian_MSet_get_document(Xapian::MSet const * self,Xapian::doccount i)5235 SWIGINTERN Xapian::Document Xapian_MSet_get_document(Xapian::MSet const *self,Xapian::doccount i){
5236 	return (*self)[i].get_document();
5237     }
Xapian_MSet_get_hit(Xapian::MSet const * self,Xapian::doccount i)5238 SWIGINTERN Xapian::MSetIterator Xapian_MSet_get_hit(Xapian::MSet const *self,Xapian::doccount i){
5239 	return (*self)[i];
5240     }
Xapian_MSet_get_document_percentage(Xapian::MSet const * self,Xapian::doccount i)5241 SWIGINTERN int Xapian_MSet_get_document_percentage(Xapian::MSet const *self,Xapian::doccount i){
5242 	return self->convert_to_percent((*self)[i]);
5243     }
Xapian_MSetIterator___eq__(Xapian::MSetIterator * self,Xapian::MSetIterator const & other)5244 SWIGINTERN bool Xapian_MSetIterator___eq__(Xapian::MSetIterator *self,Xapian::MSetIterator const &other){
5245 	    return (*self)==other;
5246 	}
Xapian_MSetIterator___ne__(Xapian::MSetIterator * self,Xapian::MSetIterator const & other)5247 SWIGINTERN bool Xapian_MSetIterator___ne__(Xapian::MSetIterator *self,Xapian::MSetIterator const &other){
5248 	    return (*self)!=other;
5249 	}
Xapian_MSetIterator_equals(Xapian::MSetIterator const * self,Xapian::MSetIterator const & o)5250 SWIGINTERN bool Xapian_MSetIterator_equals(Xapian::MSetIterator const *self,Xapian::MSetIterator const &o){ return *self == o; }
Xapian_MSetIterator_get_docid(Xapian::MSetIterator const * self)5251 SWIGINTERN Xapian::docid Xapian_MSetIterator_get_docid(Xapian::MSetIterator const *self){ return **self; }
Xapian_MSetIterator_next(Xapian::MSetIterator * self)5252 SWIGINTERN void Xapian_MSetIterator_next(Xapian::MSetIterator *self){ ++(*self); }
Xapian_MSetIterator_prev(Xapian::MSetIterator * self)5253 SWIGINTERN void Xapian_MSetIterator_prev(Xapian::MSetIterator *self){ --(*self); }
Xapian_ESetIterator___eq__(Xapian::ESetIterator * self,Xapian::ESetIterator const & other)5254 SWIGINTERN bool Xapian_ESetIterator___eq__(Xapian::ESetIterator *self,Xapian::ESetIterator const &other){
5255 	    return (*self)==other;
5256 	}
Xapian_ESetIterator___ne__(Xapian::ESetIterator * self,Xapian::ESetIterator const & other)5257 SWIGINTERN bool Xapian_ESetIterator___ne__(Xapian::ESetIterator *self,Xapian::ESetIterator const &other){
5258 	    return (*self)!=other;
5259 	}
Xapian_ESetIterator_equals(Xapian::ESetIterator const * self,Xapian::ESetIterator const & o)5260 SWIGINTERN bool Xapian_ESetIterator_equals(Xapian::ESetIterator const *self,Xapian::ESetIterator const &o){ return *self == o; }
Xapian_ESetIterator_get_term(Xapian::ESetIterator const * self)5261 SWIGINTERN std::string Xapian_ESetIterator_get_term(Xapian::ESetIterator const *self){ return **self; }
Xapian_ESetIterator_next(Xapian::ESetIterator * self)5262 SWIGINTERN void Xapian_ESetIterator_next(Xapian::ESetIterator *self){ ++(*self); }
Xapian_ESetIterator_prev(Xapian::ESetIterator * self)5263 SWIGINTERN void Xapian_ESetIterator_prev(Xapian::ESetIterator *self){ --(*self); }
new_Xapian_SimpleStopper__SWIG_2(std::string const & file)5264 SWIGINTERN Xapian::SimpleStopper *new_Xapian_SimpleStopper__SWIG_2(std::string const &file){
5265 	ifstream in_file(file.c_str());
5266 	if (!in_file.is_open())
5267 	    throw Xapian::InvalidArgumentError("Stopword file not found: " + file);
5268 	istream_iterator<std::string> in_iter(in_file);
5269 	istream_iterator<std::string> eof;
5270 	return new Xapian::SimpleStopper(in_iter, eof);
5271     }
Xapian_LatLongCoordsIterator_equals(Xapian::LatLongCoordsIterator const * self,Xapian::LatLongCoordsIterator const & o)5272 SWIGINTERN bool Xapian_LatLongCoordsIterator_equals(Xapian::LatLongCoordsIterator const *self,Xapian::LatLongCoordsIterator const &o){ return *self == o; }
Xapian_LatLongCoordsIterator_get_coord(Xapian::LatLongCoordsIterator const * self)5273 SWIGINTERN Xapian::LatLongCoord Xapian_LatLongCoordsIterator_get_coord(Xapian::LatLongCoordsIterator const *self){ return **self; }
Xapian_LatLongCoordsIterator_next(Xapian::LatLongCoordsIterator * self)5274 SWIGINTERN void Xapian_LatLongCoordsIterator_next(Xapian::LatLongCoordsIterator *self){ ++(*self); }
5275 
5276 /* python/extra.i: Xapian scripting python interface additional python code.
5277  *
5278  * Copyright (C) 2003,2004,2005 James Aylett
5279  * Copyright (C) 2005,2006,2007,2008,2009,2010,2011 Olly Betts
5280  * Copyright (C) 2007 Lemur Consulting Ltd
5281  * Copyright (C) 2010 Richard Boulton
5282  *
5283  * This program is free software; you can redistribute it and/or
5284  * modify it under the terms of the GNU General Public License as
5285  * published by the Free Software Foundation; either version 2 of the
5286  * License, or (at your option) any later version.
5287  *
5288  * This program is distributed in the hope that it will be useful,
5289  * but WITHOUT ANY WARRANTY; without even the implied warranty of
5290  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
5291  * GNU General Public License for more details.
5292  *
5293  * You should have received a copy of the GNU General Public License
5294  * along with this program; if not, write to the Free Software
5295  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
5296  * USA
5297  */
5298 
5299 
5300 
5301 /* ---------------------------------------------------
5302  * C++ director class methods
5303  * --------------------------------------------------- */
5304 
5305 #include "xapian_wrap.h"
5306 
SwigDirector_StemImplementation(PyObject * self)5307 SwigDirector_StemImplementation::SwigDirector_StemImplementation(PyObject *self): Xapian::StemImplementation(), Swig::Director(self) {
5308   SWIG_DIRECTOR_RGTR((Xapian::StemImplementation *)this, this);
5309 }
5310 
5311 
5312 
5313 
~SwigDirector_StemImplementation()5314 SwigDirector_StemImplementation::~SwigDirector_StemImplementation() {
5315 }
5316 
operator ()(std::string const & word)5317 std::string SwigDirector_StemImplementation::operator ()(std::string const &word) {
5318   std::string c_result;
5319   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
5320   {
5321     swig::SwigVar_PyObject obj0;
5322     obj0 = SWIG_From_std_string(static_cast< std::string >(word));
5323     if (!swig_get_self()) {
5324       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call StemImplementation.__init__.");
5325     }
5326 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5327     const size_t swig_method_index = 0;
5328     const char *const swig_method_name = "__call__";
5329     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5330     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0, NULL);
5331 #else
5332     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"__call__");
5333     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0, NULL);
5334 #endif
5335     if (!result) {
5336       PyObject *error = PyErr_Occurred();
5337       {
5338         if (error != NULL) {
5339           throw Swig::DirectorMethodException();
5340         }
5341       }
5342     }
5343     std::string *swig_optr = 0;
5344     int swig_ores;
5345     {
5346       PyObject * tmp = result;
5347       Py_INCREF(tmp);
5348       swig_ores = XapianSWIG_anystring_as_ptr(tmp, &swig_optr);
5349       Py_DECREF(tmp);
5350     }
5351     if (!SWIG_IsOK(swig_ores) || !swig_optr) {
5352       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((swig_optr ? swig_ores : SWIG_TypeError))), "in output value of type '""std::string""'");
5353     }
5354     c_result = *swig_optr;
5355     if (SWIG_IsNewObj(swig_ores)) delete swig_optr;
5356   }
5357   SWIG_PYTHON_THREAD_END_BLOCK;
5358   return (std::string) c_result;
5359 }
5360 
5361 
get_description() const5362 std::string SwigDirector_StemImplementation::get_description() const {
5363   std::string c_result;
5364   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
5365   {
5366     if (!swig_get_self()) {
5367       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call StemImplementation.__init__.");
5368     }
5369 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5370     const size_t swig_method_index = 1;
5371     const char *const swig_method_name = "__str__";
5372     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5373     swig::SwigVar_PyObject args = PyTuple_New(0);
5374     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
5375 #else
5376     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"__str__");
5377     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
5378 #endif
5379     if (!result) {
5380       PyObject *error = PyErr_Occurred();
5381       {
5382         if (error != NULL) {
5383           throw Swig::DirectorMethodException();
5384         }
5385       }
5386     }
5387     std::string *swig_optr = 0;
5388     int swig_ores;
5389     {
5390       PyObject * tmp = result;
5391       Py_INCREF(tmp);
5392       swig_ores = XapianSWIG_anystring_as_ptr(tmp, &swig_optr);
5393       Py_DECREF(tmp);
5394     }
5395     if (!SWIG_IsOK(swig_ores) || !swig_optr) {
5396       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((swig_optr ? swig_ores : SWIG_TypeError))), "in output value of type '""std::string""'");
5397     }
5398     c_result = *swig_optr;
5399     if (SWIG_IsNewObj(swig_ores)) delete swig_optr;
5400   }
5401   SWIG_PYTHON_THREAD_END_BLOCK;
5402   return (std::string) c_result;
5403 }
5404 
5405 
SwigDirector_MatchDecider(PyObject * self)5406 SwigDirector_MatchDecider::SwigDirector_MatchDecider(PyObject *self): Xapian::MatchDecider(), Swig::Director(self) {
5407   SWIG_DIRECTOR_RGTR((Xapian::MatchDecider *)this, this);
5408 }
5409 
5410 
5411 
5412 
operator ()(Xapian::Document const & doc) const5413 bool SwigDirector_MatchDecider::operator ()(Xapian::Document const &doc) const {
5414   bool c_result;
5415   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
5416   {
5417     swig::SwigVar_PyObject obj0;
5418     obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(&doc), SWIGTYPE_p_Xapian__Document,  0 );
5419     if (!swig_get_self()) {
5420       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call MatchDecider.__init__.");
5421     }
5422 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5423     const size_t swig_method_index = 0;
5424     const char *const swig_method_name = "__call__";
5425     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5426     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0, NULL);
5427 #else
5428     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"__call__");
5429     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0, NULL);
5430 #endif
5431     if (!result) {
5432       PyObject *error = PyErr_Occurred();
5433       {
5434         if (error != NULL) {
5435           throw Swig::DirectorMethodException();
5436         }
5437       }
5438     }
5439     bool swig_val;
5440     int swig_res = SWIG_AsVal_bool(result, &swig_val);
5441     if (!SWIG_IsOK(swig_res)) {
5442       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'");
5443     }
5444     c_result = static_cast< bool >(swig_val);
5445   }
5446   SWIG_PYTHON_THREAD_END_BLOCK;
5447   return (bool) c_result;
5448 }
5449 
5450 
~SwigDirector_MatchDecider()5451 SwigDirector_MatchDecider::~SwigDirector_MatchDecider() {
5452 }
5453 
SwigDirector_ExpandDecider(PyObject * self)5454 SwigDirector_ExpandDecider::SwigDirector_ExpandDecider(PyObject *self): Xapian::ExpandDecider(), Swig::Director(self) {
5455   SWIG_DIRECTOR_RGTR((Xapian::ExpandDecider *)this, this);
5456 }
5457 
5458 
5459 
5460 
operator ()(std::string const & term) const5461 bool SwigDirector_ExpandDecider::operator ()(std::string const &term) const {
5462   bool c_result;
5463   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
5464   {
5465     swig::SwigVar_PyObject obj0;
5466     obj0 = SWIG_From_std_string(static_cast< std::string >(term));
5467     if (!swig_get_self()) {
5468       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ExpandDecider.__init__.");
5469     }
5470 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5471     const size_t swig_method_index = 0;
5472     const char *const swig_method_name = "__call__";
5473     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5474     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0, NULL);
5475 #else
5476     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"__call__");
5477     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0, NULL);
5478 #endif
5479     if (!result) {
5480       PyObject *error = PyErr_Occurred();
5481       {
5482         if (error != NULL) {
5483           throw Swig::DirectorMethodException();
5484         }
5485       }
5486     }
5487     bool swig_val;
5488     int swig_res = SWIG_AsVal_bool(result, &swig_val);
5489     if (!SWIG_IsOK(swig_res)) {
5490       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'");
5491     }
5492     c_result = static_cast< bool >(swig_val);
5493   }
5494   SWIG_PYTHON_THREAD_END_BLOCK;
5495   return (bool) c_result;
5496 }
5497 
5498 
~SwigDirector_ExpandDecider()5499 SwigDirector_ExpandDecider::~SwigDirector_ExpandDecider() {
5500 }
5501 
SwigDirector_KeyMaker(PyObject * self)5502 SwigDirector_KeyMaker::SwigDirector_KeyMaker(PyObject *self): Xapian::KeyMaker(), Swig::Director(self) {
5503   SWIG_DIRECTOR_RGTR((Xapian::KeyMaker *)this, this);
5504 }
5505 
5506 
5507 
5508 
operator ()(Xapian::Document const & doc) const5509 std::string SwigDirector_KeyMaker::operator ()(Xapian::Document const &doc) const {
5510   std::string c_result;
5511   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
5512   {
5513     swig::SwigVar_PyObject obj0;
5514     obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(&doc), SWIGTYPE_p_Xapian__Document,  0 );
5515     if (!swig_get_self()) {
5516       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call KeyMaker.__init__.");
5517     }
5518 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5519     const size_t swig_method_index = 0;
5520     const char *const swig_method_name = "__call__";
5521     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5522     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0, NULL);
5523 #else
5524     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"__call__");
5525     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0, NULL);
5526 #endif
5527     if (!result) {
5528       PyObject *error = PyErr_Occurred();
5529       {
5530         if (error != NULL) {
5531           throw Swig::DirectorMethodException();
5532         }
5533       }
5534     }
5535     std::string *swig_optr = 0;
5536     int swig_ores;
5537     {
5538       PyObject * tmp = result;
5539       Py_INCREF(tmp);
5540       swig_ores = XapianSWIG_anystring_as_ptr(tmp, &swig_optr);
5541       Py_DECREF(tmp);
5542     }
5543     if (!SWIG_IsOK(swig_ores) || !swig_optr) {
5544       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((swig_optr ? swig_ores : SWIG_TypeError))), "in output value of type '""std::string""'");
5545     }
5546     c_result = *swig_optr;
5547     if (SWIG_IsNewObj(swig_ores)) delete swig_optr;
5548   }
5549   SWIG_PYTHON_THREAD_END_BLOCK;
5550   return (std::string) c_result;
5551 }
5552 
5553 
~SwigDirector_KeyMaker()5554 SwigDirector_KeyMaker::~SwigDirector_KeyMaker() {
5555 }
5556 
SwigDirector_Stopper(PyObject * self)5557 SwigDirector_Stopper::SwigDirector_Stopper(PyObject *self): Xapian::Stopper(), Swig::Director(self) {
5558   SWIG_DIRECTOR_RGTR((Xapian::Stopper *)this, this);
5559 }
5560 
5561 
5562 
5563 
operator ()(std::string const & term) const5564 bool SwigDirector_Stopper::operator ()(std::string const &term) const {
5565   bool c_result;
5566   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
5567   {
5568     swig::SwigVar_PyObject obj0;
5569     obj0 = SWIG_From_std_string(static_cast< std::string >(term));
5570     if (!swig_get_self()) {
5571       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call Stopper.__init__.");
5572     }
5573 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5574     const size_t swig_method_index = 0;
5575     const char *const swig_method_name = "__call__";
5576     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5577     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0, NULL);
5578 #else
5579     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"__call__");
5580     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0, NULL);
5581 #endif
5582     if (!result) {
5583       PyObject *error = PyErr_Occurred();
5584       {
5585         if (error != NULL) {
5586           throw Swig::DirectorMethodException();
5587         }
5588       }
5589     }
5590     bool swig_val;
5591     int swig_res = SWIG_AsVal_bool(result, &swig_val);
5592     if (!SWIG_IsOK(swig_res)) {
5593       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'");
5594     }
5595     c_result = static_cast< bool >(swig_val);
5596   }
5597   SWIG_PYTHON_THREAD_END_BLOCK;
5598   return (bool) c_result;
5599 }
5600 
5601 
~SwigDirector_Stopper()5602 SwigDirector_Stopper::~SwigDirector_Stopper() {
5603 }
5604 
get_description() const5605 std::string SwigDirector_Stopper::get_description() const {
5606   std::string c_result;
5607   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
5608   {
5609     if (!swig_get_self()) {
5610       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call Stopper.__init__.");
5611     }
5612 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5613     const size_t swig_method_index = 1;
5614     const char *const swig_method_name = "__str__";
5615     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5616     swig::SwigVar_PyObject args = PyTuple_New(0);
5617     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
5618 #else
5619     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"__str__");
5620     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
5621 #endif
5622     if (!result) {
5623       PyObject *error = PyErr_Occurred();
5624       {
5625         if (error != NULL) {
5626           throw Swig::DirectorMethodException();
5627         }
5628       }
5629     }
5630     std::string *swig_optr = 0;
5631     int swig_ores;
5632     {
5633       PyObject * tmp = result;
5634       Py_INCREF(tmp);
5635       swig_ores = XapianSWIG_anystring_as_ptr(tmp, &swig_optr);
5636       Py_DECREF(tmp);
5637     }
5638     if (!SWIG_IsOK(swig_ores) || !swig_optr) {
5639       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((swig_optr ? swig_ores : SWIG_TypeError))), "in output value of type '""std::string""'");
5640     }
5641     c_result = *swig_optr;
5642     if (SWIG_IsNewObj(swig_ores)) delete swig_optr;
5643   }
5644   SWIG_PYTHON_THREAD_END_BLOCK;
5645   return (std::string) c_result;
5646 }
5647 
5648 
SwigDirector_RangeProcessor(PyObject * self)5649 SwigDirector_RangeProcessor::SwigDirector_RangeProcessor(PyObject *self): Xapian::RangeProcessor(), Swig::Director(self) {
5650   SWIG_DIRECTOR_RGTR((Xapian::RangeProcessor *)this, this);
5651 }
5652 
5653 
5654 
5655 
SwigDirector_RangeProcessor(PyObject * self,Xapian::valueno slot_,std::string const & str_,unsigned int flags_)5656 SwigDirector_RangeProcessor::SwigDirector_RangeProcessor(PyObject *self, Xapian::valueno slot_, std::string const &str_, unsigned int flags_): Xapian::RangeProcessor(slot_, str_, flags_), Swig::Director(self) {
5657   SWIG_DIRECTOR_RGTR((Xapian::RangeProcessor *)this, this);
5658 }
5659 
5660 
5661 
5662 
~SwigDirector_RangeProcessor()5663 SwigDirector_RangeProcessor::~SwigDirector_RangeProcessor() {
5664 }
5665 
operator ()(std::string const & begin,std::string const & end)5666 Xapian::Query SwigDirector_RangeProcessor::operator ()(std::string const &begin, std::string const &end) {
5667   void *swig_argp ;
5668   int swig_res = 0 ;
5669 
5670   Xapian::Query c_result;
5671   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
5672   {
5673     swig::SwigVar_PyObject obj0;
5674     obj0 = SWIG_From_std_string(static_cast< std::string >(begin));
5675     swig::SwigVar_PyObject obj1;
5676     obj1 = SWIG_From_std_string(static_cast< std::string >(end));
5677     if (!swig_get_self()) {
5678       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call RangeProcessor.__init__.");
5679     }
5680 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5681     const size_t swig_method_index = 0;
5682     const char *const swig_method_name = "__call__";
5683     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5684     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, NULL);
5685 #else
5686     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"__call__");
5687     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0,(PyObject *)obj1, NULL);
5688 #endif
5689     if (!result) {
5690       PyObject *error = PyErr_Occurred();
5691       {
5692         if (error != NULL) {
5693           throw Swig::DirectorMethodException();
5694         }
5695       }
5696     }
5697     swig_res = SWIG_ConvertPtr(result,&swig_argp,SWIGTYPE_p_Xapian__Query,  0  | 0);
5698     if (!SWIG_IsOK(swig_res)) {
5699       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""Xapian::Query""'");
5700     }
5701     c_result = *(reinterpret_cast< Xapian::Query * >(swig_argp));
5702     if (SWIG_IsNewObj(swig_res)) delete reinterpret_cast< Xapian::Query * >(swig_argp);
5703   }
5704   SWIG_PYTHON_THREAD_END_BLOCK;
5705   return (Xapian::Query) c_result;
5706 }
5707 
5708 
SwigDirector_ValueRangeProcessor(PyObject * self)5709 SwigDirector_ValueRangeProcessor::SwigDirector_ValueRangeProcessor(PyObject *self): Xapian::ValueRangeProcessor(), Swig::Director(self) {
5710   SWIG_DIRECTOR_RGTR((Xapian::ValueRangeProcessor *)this, this);
5711 }
5712 
5713 
5714 
5715 
~SwigDirector_ValueRangeProcessor()5716 SwigDirector_ValueRangeProcessor::~SwigDirector_ValueRangeProcessor() {
5717 }
5718 
operator ()(std::string & begin,std::string & end)5719 Xapian::valueno SwigDirector_ValueRangeProcessor::operator ()(std::string &begin, std::string &end) {
5720   Xapian::valueno c_result;
5721   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
5722   {
5723     swig::SwigVar_PyObject obj0;
5724     obj0 = SWIG_From_std_string(static_cast< std::string >(begin));
5725     swig::SwigVar_PyObject obj1;
5726     obj1 = SWIG_From_std_string(static_cast< std::string >(end));
5727     if (!swig_get_self()) {
5728       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValueRangeProcessor.__init__.");
5729     }
5730 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5731     const size_t swig_method_index = 0;
5732     const char *const swig_method_name = "__call__";
5733     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5734     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, NULL);
5735 #else
5736     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"__call__");
5737     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0,(PyObject *)obj1, NULL);
5738 #endif
5739     if (!result) {
5740       PyObject *error = PyErr_Occurred();
5741       {
5742         if (error != NULL) {
5743           throw Swig::DirectorMethodException();
5744         }
5745       }
5746     }
5747     if (!PyTuple_Check(result)) {
5748       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(SWIG_TypeError)), "in output value of type '""(Xapian::valueno, std::string, std::string)""'");
5749     }
5750     if (PyTuple_Size(result) != 3) {
5751       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(SWIG_IndexError)), "in output value of type '""(Xapian::valueno, std::string, std::string)""'");
5752     }
5753 
5754     // Set the return value from the first item of the tuple.
5755     unsigned int swig_val;
5756     int swig_res = SWIG_AsVal_unsigned_SS_int(PyTuple_GET_ITEM((PyObject *)result, 0), &swig_val);
5757     if (!SWIG_IsOK(swig_res)) {
5758       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""(Xapian::valueno, std::string, std::string)""'");
5759     }
5760     c_result = static_cast< Xapian::valueno >(swig_val);
5761 
5762     // Set "begin" from the second item of the tuple.
5763     std::string *ptr = (std::string *)0;
5764     swig_res = SWIG_AsPtr_std_string(PyTuple_GET_ITEM((PyObject *)result, 1), &ptr);
5765     if (!SWIG_IsOK(swig_res) || !ptr) {
5766       delete ptr;
5767       ptr = (std::string *)0;
5768       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((ptr ? swig_res : SWIG_TypeError))), "in output value of type '""(Xapian::valueno, std::string, std::string)""'");
5769     }
5770     begin = *ptr;
5771     delete ptr;
5772     ptr = (std::string *)0;
5773 
5774     // Set "end" from the third item of the tuple.
5775     swig_res = SWIG_AsPtr_std_string(PyTuple_GET_ITEM((PyObject *)result, 2), &ptr);
5776     if (!SWIG_IsOK(swig_res) || !ptr) {
5777       delete ptr;
5778       ptr = (std::string *)0;
5779       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((ptr ? swig_res : SWIG_TypeError))), "in output value of type '""(Xapian::valueno, std::string, std::string)""'");
5780     }
5781     end = *ptr;
5782     delete ptr;
5783     ptr = (std::string *)0;
5784   }
5785   SWIG_PYTHON_THREAD_END_BLOCK;
5786   return (Xapian::valueno) c_result;
5787 }
5788 
5789 
SwigDirector_FieldProcessor(PyObject * self)5790 SwigDirector_FieldProcessor::SwigDirector_FieldProcessor(PyObject *self): Xapian::FieldProcessor(), Swig::Director(self) {
5791   SWIG_DIRECTOR_RGTR((Xapian::FieldProcessor *)this, this);
5792 }
5793 
5794 
5795 
5796 
~SwigDirector_FieldProcessor()5797 SwigDirector_FieldProcessor::~SwigDirector_FieldProcessor() {
5798 }
5799 
operator ()(std::string const & str)5800 Xapian::Query SwigDirector_FieldProcessor::operator ()(std::string const &str) {
5801   void *swig_argp ;
5802   int swig_res = 0 ;
5803 
5804   Xapian::Query c_result;
5805   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
5806   {
5807     swig::SwigVar_PyObject obj0;
5808     obj0 = SWIG_From_std_string(static_cast< std::string >(str));
5809     if (!swig_get_self()) {
5810       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call FieldProcessor.__init__.");
5811     }
5812 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5813     const size_t swig_method_index = 0;
5814     const char *const swig_method_name = "__call__";
5815     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5816     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0, NULL);
5817 #else
5818     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"__call__");
5819     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0, NULL);
5820 #endif
5821     if (!result) {
5822       PyObject *error = PyErr_Occurred();
5823       {
5824         if (error != NULL) {
5825           throw Swig::DirectorMethodException();
5826         }
5827       }
5828     }
5829     swig_res = SWIG_ConvertPtr(result,&swig_argp,SWIGTYPE_p_Xapian__Query,  0  | 0);
5830     if (!SWIG_IsOK(swig_res)) {
5831       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""Xapian::Query""'");
5832     }
5833     c_result = *(reinterpret_cast< Xapian::Query * >(swig_argp));
5834     if (SWIG_IsNewObj(swig_res)) delete reinterpret_cast< Xapian::Query * >(swig_argp);
5835   }
5836   SWIG_PYTHON_THREAD_END_BLOCK;
5837   return (Xapian::Query) c_result;
5838 }
5839 
5840 
SwigDirector_Compactor(PyObject * self)5841 SwigDirector_Compactor::SwigDirector_Compactor(PyObject *self): Xapian::Compactor(), Swig::Director(self) {
5842   SWIG_DIRECTOR_RGTR((Xapian::Compactor *)this, this);
5843 }
5844 
5845 
5846 
5847 
~SwigDirector_Compactor()5848 SwigDirector_Compactor::~SwigDirector_Compactor() {
5849 }
5850 
set_status(std::string const & table,std::string const & status)5851 void SwigDirector_Compactor::set_status(std::string const &table, std::string const &status) {
5852   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
5853   {
5854     swig::SwigVar_PyObject obj0;
5855     obj0 = SWIG_From_std_string(static_cast< std::string >(table));
5856     swig::SwigVar_PyObject obj1;
5857     obj1 = SWIG_From_std_string(static_cast< std::string >(status));
5858     if (!swig_get_self()) {
5859       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call Compactor.__init__.");
5860     }
5861 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5862     const size_t swig_method_index = 0;
5863     const char *const swig_method_name = "set_status";
5864     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5865     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, NULL);
5866 #else
5867     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"set_status");
5868     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0,(PyObject *)obj1, NULL);
5869 #endif
5870     if (!result) {
5871       PyObject *error = PyErr_Occurred();
5872       {
5873         if (error != NULL) {
5874           throw Swig::DirectorMethodException();
5875         }
5876       }
5877     }
5878   }
5879   SWIG_PYTHON_THREAD_END_BLOCK;
5880 }
5881 
5882 
resolve_duplicate_metadata(std::string const & key,size_t num_tags,std::string const tags[])5883 std::string SwigDirector_Compactor::resolve_duplicate_metadata(std::string const &key, size_t num_tags, std::string const tags[]) {
5884   std::string c_result;
5885   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
5886   {
5887     swig::SwigVar_PyObject obj0;
5888     obj0 = SWIG_From_std_string(static_cast< std::string >(key));
5889     swig::SwigVar_PyObject obj1;
5890     {
5891       PyObject * result = PyList_New(num_tags);
5892       if (result == 0) {
5893         return NULL;
5894       }
5895 
5896       for (size_t i = 0; i != num_tags; ++i) {
5897         PyObject * str = PyString_FromStringAndSize(tags[i].data(), tags[i].size());
5898         if (str == 0) {
5899           Py_DECREF(result);
5900           return NULL;
5901         }
5902 
5903         PyList_SET_ITEM(result, i, str);
5904       }
5905       obj1 = result;
5906     }
5907     if (!swig_get_self()) {
5908       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call Compactor.__init__.");
5909     }
5910 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5911     const size_t swig_method_index = 1;
5912     const char *const swig_method_name = "resolve_duplicate_metadata";
5913     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5914     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, NULL);
5915 #else
5916     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"resolve_duplicate_metadata");
5917     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0,(PyObject *)obj1, NULL);
5918 #endif
5919     if (!result) {
5920       PyObject *error = PyErr_Occurred();
5921       {
5922         if (error != NULL) {
5923           throw Swig::DirectorMethodException();
5924         }
5925       }
5926     }
5927     std::string *swig_optr = 0;
5928     int swig_ores;
5929     {
5930       PyObject * tmp = result;
5931       Py_INCREF(tmp);
5932       swig_ores = XapianSWIG_anystring_as_ptr(tmp, &swig_optr);
5933       Py_DECREF(tmp);
5934     }
5935     if (!SWIG_IsOK(swig_ores) || !swig_optr) {
5936       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((swig_optr ? swig_ores : SWIG_TypeError))), "in output value of type '""std::string""'");
5937     }
5938     c_result = *swig_optr;
5939     if (SWIG_IsNewObj(swig_ores)) delete swig_optr;
5940   }
5941   SWIG_PYTHON_THREAD_END_BLOCK;
5942   return (std::string) c_result;
5943 }
5944 
5945 
SwigDirector_PostingSource(PyObject * self)5946 SwigDirector_PostingSource::SwigDirector_PostingSource(PyObject *self): Xapian::PostingSource(), Swig::Director(self) {
5947   SWIG_DIRECTOR_RGTR((Xapian::PostingSource *)this, this);
5948 }
5949 
5950 
5951 
5952 
~SwigDirector_PostingSource()5953 SwigDirector_PostingSource::~SwigDirector_PostingSource() {
5954 }
5955 
get_termfreq_min() const5956 Xapian::doccount SwigDirector_PostingSource::get_termfreq_min() const {
5957   Xapian::doccount c_result;
5958   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
5959   {
5960     if (!swig_get_self()) {
5961       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call PostingSource.__init__.");
5962     }
5963 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5964     const size_t swig_method_index = 0;
5965     const char *const swig_method_name = "get_termfreq_min";
5966     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5967     swig::SwigVar_PyObject args = PyTuple_New(0);
5968     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
5969 #else
5970     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"get_termfreq_min");
5971     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
5972 #endif
5973     if (!result) {
5974       PyObject *error = PyErr_Occurred();
5975       {
5976         if (error != NULL) {
5977           throw Swig::DirectorMethodException();
5978         }
5979       }
5980     }
5981     unsigned int swig_val;
5982     int swig_res = SWIG_AsVal_unsigned_SS_int(result, &swig_val);
5983     if (!SWIG_IsOK(swig_res)) {
5984       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""Xapian::doccount""'");
5985     }
5986     c_result = static_cast< Xapian::doccount >(swig_val);
5987   }
5988   SWIG_PYTHON_THREAD_END_BLOCK;
5989   return (Xapian::doccount) c_result;
5990 }
5991 
5992 
get_termfreq_est() const5993 Xapian::doccount SwigDirector_PostingSource::get_termfreq_est() const {
5994   Xapian::doccount c_result;
5995   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
5996   {
5997     if (!swig_get_self()) {
5998       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call PostingSource.__init__.");
5999     }
6000 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6001     const size_t swig_method_index = 1;
6002     const char *const swig_method_name = "get_termfreq_est";
6003     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6004     swig::SwigVar_PyObject args = PyTuple_New(0);
6005     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6006 #else
6007     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"get_termfreq_est");
6008     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6009 #endif
6010     if (!result) {
6011       PyObject *error = PyErr_Occurred();
6012       {
6013         if (error != NULL) {
6014           throw Swig::DirectorMethodException();
6015         }
6016       }
6017     }
6018     unsigned int swig_val;
6019     int swig_res = SWIG_AsVal_unsigned_SS_int(result, &swig_val);
6020     if (!SWIG_IsOK(swig_res)) {
6021       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""Xapian::doccount""'");
6022     }
6023     c_result = static_cast< Xapian::doccount >(swig_val);
6024   }
6025   SWIG_PYTHON_THREAD_END_BLOCK;
6026   return (Xapian::doccount) c_result;
6027 }
6028 
6029 
get_termfreq_max() const6030 Xapian::doccount SwigDirector_PostingSource::get_termfreq_max() const {
6031   Xapian::doccount c_result;
6032   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6033   {
6034     if (!swig_get_self()) {
6035       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call PostingSource.__init__.");
6036     }
6037 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6038     const size_t swig_method_index = 2;
6039     const char *const swig_method_name = "get_termfreq_max";
6040     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6041     swig::SwigVar_PyObject args = PyTuple_New(0);
6042     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6043 #else
6044     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"get_termfreq_max");
6045     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6046 #endif
6047     if (!result) {
6048       PyObject *error = PyErr_Occurred();
6049       {
6050         if (error != NULL) {
6051           throw Swig::DirectorMethodException();
6052         }
6053       }
6054     }
6055     unsigned int swig_val;
6056     int swig_res = SWIG_AsVal_unsigned_SS_int(result, &swig_val);
6057     if (!SWIG_IsOK(swig_res)) {
6058       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""Xapian::doccount""'");
6059     }
6060     c_result = static_cast< Xapian::doccount >(swig_val);
6061   }
6062   SWIG_PYTHON_THREAD_END_BLOCK;
6063   return (Xapian::doccount) c_result;
6064 }
6065 
6066 
get_weight() const6067 double SwigDirector_PostingSource::get_weight() const {
6068   double c_result;
6069   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6070   {
6071     if (!swig_get_self()) {
6072       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call PostingSource.__init__.");
6073     }
6074 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6075     const size_t swig_method_index = 3;
6076     const char *const swig_method_name = "get_weight";
6077     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6078     swig::SwigVar_PyObject args = PyTuple_New(0);
6079     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6080 #else
6081     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"get_weight");
6082     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6083 #endif
6084     if (!result) {
6085       PyObject *error = PyErr_Occurred();
6086       {
6087         if (error != NULL) {
6088           throw Swig::DirectorMethodException();
6089         }
6090       }
6091     }
6092     double swig_val;
6093     int swig_res = SWIG_AsVal_double(result, &swig_val);
6094     if (!SWIG_IsOK(swig_res)) {
6095       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""double""'");
6096     }
6097     c_result = static_cast< double >(swig_val);
6098   }
6099   SWIG_PYTHON_THREAD_END_BLOCK;
6100   return (double) c_result;
6101 }
6102 
6103 
get_docid() const6104 Xapian::docid SwigDirector_PostingSource::get_docid() const {
6105   Xapian::docid c_result;
6106   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6107   {
6108     if (!swig_get_self()) {
6109       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call PostingSource.__init__.");
6110     }
6111 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6112     const size_t swig_method_index = 4;
6113     const char *const swig_method_name = "get_docid";
6114     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6115     swig::SwigVar_PyObject args = PyTuple_New(0);
6116     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6117 #else
6118     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"get_docid");
6119     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6120 #endif
6121     if (!result) {
6122       PyObject *error = PyErr_Occurred();
6123       {
6124         if (error != NULL) {
6125           throw Swig::DirectorMethodException();
6126         }
6127       }
6128     }
6129     unsigned int swig_val;
6130     int swig_res = SWIG_AsVal_unsigned_SS_int(result, &swig_val);
6131     if (!SWIG_IsOK(swig_res)) {
6132       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""Xapian::docid""'");
6133     }
6134     c_result = static_cast< Xapian::docid >(swig_val);
6135   }
6136   SWIG_PYTHON_THREAD_END_BLOCK;
6137   return (Xapian::docid) c_result;
6138 }
6139 
6140 
next(double min_wt)6141 void SwigDirector_PostingSource::next(double min_wt) {
6142   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6143   {
6144     swig::SwigVar_PyObject obj0;
6145     obj0 = SWIG_From_double(static_cast< double >(min_wt));
6146     if (!swig_get_self()) {
6147       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call PostingSource.__init__.");
6148     }
6149 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6150     const size_t swig_method_index = 5;
6151     const char *const swig_method_name = "next";
6152     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6153     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0, NULL);
6154 #else
6155     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"next");
6156     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0, NULL);
6157 #endif
6158     if (!result) {
6159       PyObject *error = PyErr_Occurred();
6160       {
6161         if (error != NULL) {
6162           throw Swig::DirectorMethodException();
6163         }
6164       }
6165     }
6166   }
6167   SWIG_PYTHON_THREAD_END_BLOCK;
6168 }
6169 
6170 
skip_to(Xapian::docid did,double min_wt)6171 void SwigDirector_PostingSource::skip_to(Xapian::docid did, double min_wt) {
6172   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6173   {
6174     swig::SwigVar_PyObject obj0;
6175     obj0 = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(did));
6176     swig::SwigVar_PyObject obj1;
6177     obj1 = SWIG_From_double(static_cast< double >(min_wt));
6178     if (!swig_get_self()) {
6179       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call PostingSource.__init__.");
6180     }
6181 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6182     const size_t swig_method_index = 6;
6183     const char *const swig_method_name = "skip_to";
6184     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6185     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, NULL);
6186 #else
6187     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"skip_to");
6188     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0,(PyObject *)obj1, NULL);
6189 #endif
6190     if (!result) {
6191       PyObject *error = PyErr_Occurred();
6192       {
6193         if (error != NULL) {
6194           throw Swig::DirectorMethodException();
6195         }
6196       }
6197     }
6198   }
6199   SWIG_PYTHON_THREAD_END_BLOCK;
6200 }
6201 
6202 
check(Xapian::docid did,double min_wt)6203 bool SwigDirector_PostingSource::check(Xapian::docid did, double min_wt) {
6204   bool c_result;
6205   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6206   {
6207     swig::SwigVar_PyObject obj0;
6208     obj0 = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(did));
6209     swig::SwigVar_PyObject obj1;
6210     obj1 = SWIG_From_double(static_cast< double >(min_wt));
6211     if (!swig_get_self()) {
6212       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call PostingSource.__init__.");
6213     }
6214 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6215     const size_t swig_method_index = 7;
6216     const char *const swig_method_name = "check";
6217     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6218     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, NULL);
6219 #else
6220     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"check");
6221     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0,(PyObject *)obj1, NULL);
6222 #endif
6223     if (!result) {
6224       PyObject *error = PyErr_Occurred();
6225       {
6226         if (error != NULL) {
6227           throw Swig::DirectorMethodException();
6228         }
6229       }
6230     }
6231     bool swig_val;
6232     int swig_res = SWIG_AsVal_bool(result, &swig_val);
6233     if (!SWIG_IsOK(swig_res)) {
6234       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'");
6235     }
6236     c_result = static_cast< bool >(swig_val);
6237   }
6238   SWIG_PYTHON_THREAD_END_BLOCK;
6239   return (bool) c_result;
6240 }
6241 
6242 
at_end() const6243 bool SwigDirector_PostingSource::at_end() const {
6244   bool c_result;
6245   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6246   {
6247     if (!swig_get_self()) {
6248       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call PostingSource.__init__.");
6249     }
6250 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6251     const size_t swig_method_index = 8;
6252     const char *const swig_method_name = "at_end";
6253     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6254     swig::SwigVar_PyObject args = PyTuple_New(0);
6255     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6256 #else
6257     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"at_end");
6258     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6259 #endif
6260     if (!result) {
6261       PyObject *error = PyErr_Occurred();
6262       {
6263         if (error != NULL) {
6264           throw Swig::DirectorMethodException();
6265         }
6266       }
6267     }
6268     bool swig_val;
6269     int swig_res = SWIG_AsVal_bool(result, &swig_val);
6270     if (!SWIG_IsOK(swig_res)) {
6271       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'");
6272     }
6273     c_result = static_cast< bool >(swig_val);
6274   }
6275   SWIG_PYTHON_THREAD_END_BLOCK;
6276   return (bool) c_result;
6277 }
6278 
6279 
clone() const6280 Xapian::PostingSource *SwigDirector_PostingSource::clone() const {
6281   return Xapian::PostingSource::clone();
6282 }
6283 
6284 
name() const6285 std::string SwigDirector_PostingSource::name() 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 = 9;
6294     const char *const swig_method_name = "name";
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 *)"name");
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 
serialise() const6329 std::string SwigDirector_PostingSource::serialise() const {
6330   return Xapian::PostingSource::serialise();
6331 }
6332 
6333 
unserialise(std::string const & serialised) const6334 Xapian::PostingSource *SwigDirector_PostingSource::unserialise(std::string const &serialised) const {
6335   return Xapian::PostingSource::unserialise(serialised);
6336 }
6337 
6338 
unserialise_with_registry(std::string const & serialised,Xapian::Registry const & registry) const6339 Xapian::PostingSource *SwigDirector_PostingSource::unserialise_with_registry(std::string const &serialised, Xapian::Registry const &registry) const {
6340   return Xapian::PostingSource::unserialise_with_registry(serialised,registry);
6341 }
6342 
6343 
init(Xapian::Database const & db)6344 void SwigDirector_PostingSource::init(Xapian::Database const &db) {
6345   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6346   {
6347     swig::SwigVar_PyObject obj0;
6348     obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(&db), SWIGTYPE_p_Xapian__Database,  0 );
6349     if (!swig_get_self()) {
6350       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call PostingSource.__init__.");
6351     }
6352 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6353     const size_t swig_method_index = 10;
6354     const char *const swig_method_name = "init";
6355     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6356     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0, NULL);
6357 #else
6358     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"init");
6359     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0, NULL);
6360 #endif
6361     if (!result) {
6362       PyObject *error = PyErr_Occurred();
6363       {
6364         if (error != NULL) {
6365           throw Swig::DirectorMethodException();
6366         }
6367       }
6368     }
6369   }
6370   SWIG_PYTHON_THREAD_END_BLOCK;
6371 }
6372 
6373 
get_description() const6374 std::string SwigDirector_PostingSource::get_description() const {
6375   std::string c_result;
6376   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6377   {
6378     if (!swig_get_self()) {
6379       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call PostingSource.__init__.");
6380     }
6381 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6382     const size_t swig_method_index = 11;
6383     const char *const swig_method_name = "__str__";
6384     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6385     swig::SwigVar_PyObject args = PyTuple_New(0);
6386     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6387 #else
6388     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"__str__");
6389     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6390 #endif
6391     if (!result) {
6392       PyObject *error = PyErr_Occurred();
6393       {
6394         if (error != NULL) {
6395           throw Swig::DirectorMethodException();
6396         }
6397       }
6398     }
6399     std::string *swig_optr = 0;
6400     int swig_ores;
6401     {
6402       PyObject * tmp = result;
6403       Py_INCREF(tmp);
6404       swig_ores = XapianSWIG_anystring_as_ptr(tmp, &swig_optr);
6405       Py_DECREF(tmp);
6406     }
6407     if (!SWIG_IsOK(swig_ores) || !swig_optr) {
6408       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((swig_optr ? swig_ores : SWIG_TypeError))), "in output value of type '""std::string""'");
6409     }
6410     c_result = *swig_optr;
6411     if (SWIG_IsNewObj(swig_ores)) delete swig_optr;
6412   }
6413   SWIG_PYTHON_THREAD_END_BLOCK;
6414   return (std::string) c_result;
6415 }
6416 
6417 
SwigDirector_ValuePostingSource(PyObject * self,Xapian::valueno slot_)6418 SwigDirector_ValuePostingSource::SwigDirector_ValuePostingSource(PyObject *self, Xapian::valueno slot_): Xapian::ValuePostingSource(slot_), Swig::Director(self) {
6419   SWIG_DIRECTOR_RGTR((Xapian::ValuePostingSource *)this, this);
6420 }
6421 
6422 
6423 
6424 
~SwigDirector_ValuePostingSource()6425 SwigDirector_ValuePostingSource::~SwigDirector_ValuePostingSource() {
6426 }
6427 
get_termfreq_min() const6428 Xapian::doccount SwigDirector_ValuePostingSource::get_termfreq_min() const {
6429   Xapian::doccount c_result;
6430   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6431   {
6432     if (!swig_get_self()) {
6433       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValuePostingSource.__init__.");
6434     }
6435 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6436     const size_t swig_method_index = 0;
6437     const char *const swig_method_name = "get_termfreq_min";
6438     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6439     swig::SwigVar_PyObject args = PyTuple_New(0);
6440     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6441 #else
6442     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"get_termfreq_min");
6443     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6444 #endif
6445     if (!result) {
6446       PyObject *error = PyErr_Occurred();
6447       {
6448         if (error != NULL) {
6449           throw Swig::DirectorMethodException();
6450         }
6451       }
6452     }
6453     unsigned int swig_val;
6454     int swig_res = SWIG_AsVal_unsigned_SS_int(result, &swig_val);
6455     if (!SWIG_IsOK(swig_res)) {
6456       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""Xapian::doccount""'");
6457     }
6458     c_result = static_cast< Xapian::doccount >(swig_val);
6459   }
6460   SWIG_PYTHON_THREAD_END_BLOCK;
6461   return (Xapian::doccount) c_result;
6462 }
6463 
6464 
get_termfreq_est() const6465 Xapian::doccount SwigDirector_ValuePostingSource::get_termfreq_est() const {
6466   Xapian::doccount c_result;
6467   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6468   {
6469     if (!swig_get_self()) {
6470       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValuePostingSource.__init__.");
6471     }
6472 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6473     const size_t swig_method_index = 1;
6474     const char *const swig_method_name = "get_termfreq_est";
6475     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6476     swig::SwigVar_PyObject args = PyTuple_New(0);
6477     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6478 #else
6479     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"get_termfreq_est");
6480     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6481 #endif
6482     if (!result) {
6483       PyObject *error = PyErr_Occurred();
6484       {
6485         if (error != NULL) {
6486           throw Swig::DirectorMethodException();
6487         }
6488       }
6489     }
6490     unsigned int swig_val;
6491     int swig_res = SWIG_AsVal_unsigned_SS_int(result, &swig_val);
6492     if (!SWIG_IsOK(swig_res)) {
6493       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""Xapian::doccount""'");
6494     }
6495     c_result = static_cast< Xapian::doccount >(swig_val);
6496   }
6497   SWIG_PYTHON_THREAD_END_BLOCK;
6498   return (Xapian::doccount) c_result;
6499 }
6500 
6501 
get_termfreq_max() const6502 Xapian::doccount SwigDirector_ValuePostingSource::get_termfreq_max() const {
6503   Xapian::doccount c_result;
6504   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6505   {
6506     if (!swig_get_self()) {
6507       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValuePostingSource.__init__.");
6508     }
6509 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6510     const size_t swig_method_index = 2;
6511     const char *const swig_method_name = "get_termfreq_max";
6512     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6513     swig::SwigVar_PyObject args = PyTuple_New(0);
6514     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6515 #else
6516     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"get_termfreq_max");
6517     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6518 #endif
6519     if (!result) {
6520       PyObject *error = PyErr_Occurred();
6521       {
6522         if (error != NULL) {
6523           throw Swig::DirectorMethodException();
6524         }
6525       }
6526     }
6527     unsigned int swig_val;
6528     int swig_res = SWIG_AsVal_unsigned_SS_int(result, &swig_val);
6529     if (!SWIG_IsOK(swig_res)) {
6530       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""Xapian::doccount""'");
6531     }
6532     c_result = static_cast< Xapian::doccount >(swig_val);
6533   }
6534   SWIG_PYTHON_THREAD_END_BLOCK;
6535   return (Xapian::doccount) c_result;
6536 }
6537 
6538 
get_weight() const6539 double SwigDirector_ValuePostingSource::get_weight() const {
6540   double c_result;
6541   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6542   {
6543     if (!swig_get_self()) {
6544       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValuePostingSource.__init__.");
6545     }
6546 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6547     const size_t swig_method_index = 3;
6548     const char *const swig_method_name = "get_weight";
6549     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6550     swig::SwigVar_PyObject args = PyTuple_New(0);
6551     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6552 #else
6553     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"get_weight");
6554     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6555 #endif
6556     if (!result) {
6557       PyObject *error = PyErr_Occurred();
6558       {
6559         if (error != NULL) {
6560           throw Swig::DirectorMethodException();
6561         }
6562       }
6563     }
6564     double swig_val;
6565     int swig_res = SWIG_AsVal_double(result, &swig_val);
6566     if (!SWIG_IsOK(swig_res)) {
6567       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""double""'");
6568     }
6569     c_result = static_cast< double >(swig_val);
6570   }
6571   SWIG_PYTHON_THREAD_END_BLOCK;
6572   return (double) c_result;
6573 }
6574 
6575 
get_docid() const6576 Xapian::docid SwigDirector_ValuePostingSource::get_docid() const {
6577   Xapian::docid c_result;
6578   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6579   {
6580     if (!swig_get_self()) {
6581       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValuePostingSource.__init__.");
6582     }
6583 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6584     const size_t swig_method_index = 4;
6585     const char *const swig_method_name = "get_docid";
6586     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6587     swig::SwigVar_PyObject args = PyTuple_New(0);
6588     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6589 #else
6590     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"get_docid");
6591     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6592 #endif
6593     if (!result) {
6594       PyObject *error = PyErr_Occurred();
6595       {
6596         if (error != NULL) {
6597           throw Swig::DirectorMethodException();
6598         }
6599       }
6600     }
6601     unsigned int swig_val;
6602     int swig_res = SWIG_AsVal_unsigned_SS_int(result, &swig_val);
6603     if (!SWIG_IsOK(swig_res)) {
6604       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""Xapian::docid""'");
6605     }
6606     c_result = static_cast< Xapian::docid >(swig_val);
6607   }
6608   SWIG_PYTHON_THREAD_END_BLOCK;
6609   return (Xapian::docid) c_result;
6610 }
6611 
6612 
next(double min_wt)6613 void SwigDirector_ValuePostingSource::next(double min_wt) {
6614   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6615   {
6616     swig::SwigVar_PyObject obj0;
6617     obj0 = SWIG_From_double(static_cast< double >(min_wt));
6618     if (!swig_get_self()) {
6619       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValuePostingSource.__init__.");
6620     }
6621 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6622     const size_t swig_method_index = 5;
6623     const char *const swig_method_name = "next";
6624     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6625     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0, NULL);
6626 #else
6627     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"next");
6628     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0, NULL);
6629 #endif
6630     if (!result) {
6631       PyObject *error = PyErr_Occurred();
6632       {
6633         if (error != NULL) {
6634           throw Swig::DirectorMethodException();
6635         }
6636       }
6637     }
6638   }
6639   SWIG_PYTHON_THREAD_END_BLOCK;
6640 }
6641 
6642 
skip_to(Xapian::docid min_docid,double min_wt)6643 void SwigDirector_ValuePostingSource::skip_to(Xapian::docid min_docid, double min_wt) {
6644   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6645   {
6646     swig::SwigVar_PyObject obj0;
6647     obj0 = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(min_docid));
6648     swig::SwigVar_PyObject obj1;
6649     obj1 = SWIG_From_double(static_cast< double >(min_wt));
6650     if (!swig_get_self()) {
6651       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValuePostingSource.__init__.");
6652     }
6653 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6654     const size_t swig_method_index = 6;
6655     const char *const swig_method_name = "skip_to";
6656     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6657     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, NULL);
6658 #else
6659     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"skip_to");
6660     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0,(PyObject *)obj1, NULL);
6661 #endif
6662     if (!result) {
6663       PyObject *error = PyErr_Occurred();
6664       {
6665         if (error != NULL) {
6666           throw Swig::DirectorMethodException();
6667         }
6668       }
6669     }
6670   }
6671   SWIG_PYTHON_THREAD_END_BLOCK;
6672 }
6673 
6674 
check(Xapian::docid min_docid,double min_wt)6675 bool SwigDirector_ValuePostingSource::check(Xapian::docid min_docid, double min_wt) {
6676   bool c_result;
6677   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6678   {
6679     swig::SwigVar_PyObject obj0;
6680     obj0 = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(min_docid));
6681     swig::SwigVar_PyObject obj1;
6682     obj1 = SWIG_From_double(static_cast< double >(min_wt));
6683     if (!swig_get_self()) {
6684       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValuePostingSource.__init__.");
6685     }
6686 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6687     const size_t swig_method_index = 7;
6688     const char *const swig_method_name = "check";
6689     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6690     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, NULL);
6691 #else
6692     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"check");
6693     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0,(PyObject *)obj1, NULL);
6694 #endif
6695     if (!result) {
6696       PyObject *error = PyErr_Occurred();
6697       {
6698         if (error != NULL) {
6699           throw Swig::DirectorMethodException();
6700         }
6701       }
6702     }
6703     bool swig_val;
6704     int swig_res = SWIG_AsVal_bool(result, &swig_val);
6705     if (!SWIG_IsOK(swig_res)) {
6706       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'");
6707     }
6708     c_result = static_cast< bool >(swig_val);
6709   }
6710   SWIG_PYTHON_THREAD_END_BLOCK;
6711   return (bool) c_result;
6712 }
6713 
6714 
at_end() const6715 bool SwigDirector_ValuePostingSource::at_end() const {
6716   bool c_result;
6717   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6718   {
6719     if (!swig_get_self()) {
6720       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValuePostingSource.__init__.");
6721     }
6722 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6723     const size_t swig_method_index = 8;
6724     const char *const swig_method_name = "at_end";
6725     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6726     swig::SwigVar_PyObject args = PyTuple_New(0);
6727     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6728 #else
6729     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"at_end");
6730     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6731 #endif
6732     if (!result) {
6733       PyObject *error = PyErr_Occurred();
6734       {
6735         if (error != NULL) {
6736           throw Swig::DirectorMethodException();
6737         }
6738       }
6739     }
6740     bool swig_val;
6741     int swig_res = SWIG_AsVal_bool(result, &swig_val);
6742     if (!SWIG_IsOK(swig_res)) {
6743       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'");
6744     }
6745     c_result = static_cast< bool >(swig_val);
6746   }
6747   SWIG_PYTHON_THREAD_END_BLOCK;
6748   return (bool) c_result;
6749 }
6750 
6751 
clone() const6752 Xapian::PostingSource *SwigDirector_ValuePostingSource::clone() const {
6753   return Xapian::PostingSource::clone();
6754 }
6755 
6756 
name() const6757 std::string SwigDirector_ValuePostingSource::name() 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 = 9;
6766     const char *const swig_method_name = "name";
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 *)"name");
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 
serialise() const6801 std::string SwigDirector_ValuePostingSource::serialise() const {
6802   return Xapian::PostingSource::serialise();
6803 }
6804 
6805 
unserialise(std::string const & serialised) const6806 Xapian::PostingSource *SwigDirector_ValuePostingSource::unserialise(std::string const &serialised) const {
6807   return Xapian::PostingSource::unserialise(serialised);
6808 }
6809 
6810 
unserialise_with_registry(std::string const & serialised,Xapian::Registry const & registry) const6811 Xapian::PostingSource *SwigDirector_ValuePostingSource::unserialise_with_registry(std::string const &serialised, Xapian::Registry const &registry) const {
6812   return Xapian::PostingSource::unserialise_with_registry(serialised,registry);
6813 }
6814 
6815 
init(Xapian::Database const & db_)6816 void SwigDirector_ValuePostingSource::init(Xapian::Database const &db_) {
6817   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6818   {
6819     swig::SwigVar_PyObject obj0;
6820     obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(&db_), SWIGTYPE_p_Xapian__Database,  0 );
6821     if (!swig_get_self()) {
6822       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValuePostingSource.__init__.");
6823     }
6824 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6825     const size_t swig_method_index = 10;
6826     const char *const swig_method_name = "init";
6827     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6828     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0, NULL);
6829 #else
6830     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"init");
6831     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0, NULL);
6832 #endif
6833     if (!result) {
6834       PyObject *error = PyErr_Occurred();
6835       {
6836         if (error != NULL) {
6837           throw Swig::DirectorMethodException();
6838         }
6839       }
6840     }
6841   }
6842   SWIG_PYTHON_THREAD_END_BLOCK;
6843 }
6844 
6845 
get_description() const6846 std::string SwigDirector_ValuePostingSource::get_description() const {
6847   std::string c_result;
6848   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6849   {
6850     if (!swig_get_self()) {
6851       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValuePostingSource.__init__.");
6852     }
6853 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6854     const size_t swig_method_index = 11;
6855     const char *const swig_method_name = "__str__";
6856     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6857     swig::SwigVar_PyObject args = PyTuple_New(0);
6858     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6859 #else
6860     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"__str__");
6861     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6862 #endif
6863     if (!result) {
6864       PyObject *error = PyErr_Occurred();
6865       {
6866         if (error != NULL) {
6867           throw Swig::DirectorMethodException();
6868         }
6869       }
6870     }
6871     std::string *swig_optr = 0;
6872     int swig_ores;
6873     {
6874       PyObject * tmp = result;
6875       Py_INCREF(tmp);
6876       swig_ores = XapianSWIG_anystring_as_ptr(tmp, &swig_optr);
6877       Py_DECREF(tmp);
6878     }
6879     if (!SWIG_IsOK(swig_ores) || !swig_optr) {
6880       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((swig_optr ? swig_ores : SWIG_TypeError))), "in output value of type '""std::string""'");
6881     }
6882     c_result = *swig_optr;
6883     if (SWIG_IsNewObj(swig_ores)) delete swig_optr;
6884   }
6885   SWIG_PYTHON_THREAD_END_BLOCK;
6886   return (std::string) c_result;
6887 }
6888 
6889 
SwigDirector_ValueWeightPostingSource(PyObject * self,Xapian::valueno slot_)6890 SwigDirector_ValueWeightPostingSource::SwigDirector_ValueWeightPostingSource(PyObject *self, Xapian::valueno slot_): Xapian::ValueWeightPostingSource(slot_), Swig::Director(self) {
6891   SWIG_DIRECTOR_RGTR((Xapian::ValueWeightPostingSource *)this, this);
6892 }
6893 
6894 
6895 
6896 
~SwigDirector_ValueWeightPostingSource()6897 SwigDirector_ValueWeightPostingSource::~SwigDirector_ValueWeightPostingSource() {
6898 }
6899 
get_termfreq_min() const6900 Xapian::doccount SwigDirector_ValueWeightPostingSource::get_termfreq_min() const {
6901   Xapian::doccount c_result;
6902   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6903   {
6904     if (!swig_get_self()) {
6905       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValueWeightPostingSource.__init__.");
6906     }
6907 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6908     const size_t swig_method_index = 0;
6909     const char *const swig_method_name = "get_termfreq_min";
6910     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6911     swig::SwigVar_PyObject args = PyTuple_New(0);
6912     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6913 #else
6914     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"get_termfreq_min");
6915     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6916 #endif
6917     if (!result) {
6918       PyObject *error = PyErr_Occurred();
6919       {
6920         if (error != NULL) {
6921           throw Swig::DirectorMethodException();
6922         }
6923       }
6924     }
6925     unsigned int swig_val;
6926     int swig_res = SWIG_AsVal_unsigned_SS_int(result, &swig_val);
6927     if (!SWIG_IsOK(swig_res)) {
6928       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""Xapian::doccount""'");
6929     }
6930     c_result = static_cast< Xapian::doccount >(swig_val);
6931   }
6932   SWIG_PYTHON_THREAD_END_BLOCK;
6933   return (Xapian::doccount) c_result;
6934 }
6935 
6936 
get_termfreq_est() const6937 Xapian::doccount SwigDirector_ValueWeightPostingSource::get_termfreq_est() const {
6938   Xapian::doccount c_result;
6939   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6940   {
6941     if (!swig_get_self()) {
6942       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValueWeightPostingSource.__init__.");
6943     }
6944 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6945     const size_t swig_method_index = 1;
6946     const char *const swig_method_name = "get_termfreq_est";
6947     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6948     swig::SwigVar_PyObject args = PyTuple_New(0);
6949     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6950 #else
6951     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"get_termfreq_est");
6952     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6953 #endif
6954     if (!result) {
6955       PyObject *error = PyErr_Occurred();
6956       {
6957         if (error != NULL) {
6958           throw Swig::DirectorMethodException();
6959         }
6960       }
6961     }
6962     unsigned int swig_val;
6963     int swig_res = SWIG_AsVal_unsigned_SS_int(result, &swig_val);
6964     if (!SWIG_IsOK(swig_res)) {
6965       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""Xapian::doccount""'");
6966     }
6967     c_result = static_cast< Xapian::doccount >(swig_val);
6968   }
6969   SWIG_PYTHON_THREAD_END_BLOCK;
6970   return (Xapian::doccount) c_result;
6971 }
6972 
6973 
get_termfreq_max() const6974 Xapian::doccount SwigDirector_ValueWeightPostingSource::get_termfreq_max() const {
6975   Xapian::doccount c_result;
6976   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6977   {
6978     if (!swig_get_self()) {
6979       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValueWeightPostingSource.__init__.");
6980     }
6981 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6982     const size_t swig_method_index = 2;
6983     const char *const swig_method_name = "get_termfreq_max";
6984     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6985     swig::SwigVar_PyObject args = PyTuple_New(0);
6986     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6987 #else
6988     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"get_termfreq_max");
6989     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6990 #endif
6991     if (!result) {
6992       PyObject *error = PyErr_Occurred();
6993       {
6994         if (error != NULL) {
6995           throw Swig::DirectorMethodException();
6996         }
6997       }
6998     }
6999     unsigned int swig_val;
7000     int swig_res = SWIG_AsVal_unsigned_SS_int(result, &swig_val);
7001     if (!SWIG_IsOK(swig_res)) {
7002       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""Xapian::doccount""'");
7003     }
7004     c_result = static_cast< Xapian::doccount >(swig_val);
7005   }
7006   SWIG_PYTHON_THREAD_END_BLOCK;
7007   return (Xapian::doccount) c_result;
7008 }
7009 
7010 
get_weight() const7011 double SwigDirector_ValueWeightPostingSource::get_weight() const {
7012   double c_result;
7013   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
7014   {
7015     if (!swig_get_self()) {
7016       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValueWeightPostingSource.__init__.");
7017     }
7018 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
7019     const size_t swig_method_index = 3;
7020     const char *const swig_method_name = "get_weight";
7021     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
7022     swig::SwigVar_PyObject args = PyTuple_New(0);
7023     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
7024 #else
7025     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"get_weight");
7026     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
7027 #endif
7028     if (!result) {
7029       PyObject *error = PyErr_Occurred();
7030       {
7031         if (error != NULL) {
7032           throw Swig::DirectorMethodException();
7033         }
7034       }
7035     }
7036     double swig_val;
7037     int swig_res = SWIG_AsVal_double(result, &swig_val);
7038     if (!SWIG_IsOK(swig_res)) {
7039       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""double""'");
7040     }
7041     c_result = static_cast< double >(swig_val);
7042   }
7043   SWIG_PYTHON_THREAD_END_BLOCK;
7044   return (double) c_result;
7045 }
7046 
7047 
get_docid() const7048 Xapian::docid SwigDirector_ValueWeightPostingSource::get_docid() const {
7049   Xapian::docid c_result;
7050   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
7051   {
7052     if (!swig_get_self()) {
7053       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValueWeightPostingSource.__init__.");
7054     }
7055 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
7056     const size_t swig_method_index = 4;
7057     const char *const swig_method_name = "get_docid";
7058     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
7059     swig::SwigVar_PyObject args = PyTuple_New(0);
7060     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
7061 #else
7062     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"get_docid");
7063     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
7064 #endif
7065     if (!result) {
7066       PyObject *error = PyErr_Occurred();
7067       {
7068         if (error != NULL) {
7069           throw Swig::DirectorMethodException();
7070         }
7071       }
7072     }
7073     unsigned int swig_val;
7074     int swig_res = SWIG_AsVal_unsigned_SS_int(result, &swig_val);
7075     if (!SWIG_IsOK(swig_res)) {
7076       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""Xapian::docid""'");
7077     }
7078     c_result = static_cast< Xapian::docid >(swig_val);
7079   }
7080   SWIG_PYTHON_THREAD_END_BLOCK;
7081   return (Xapian::docid) c_result;
7082 }
7083 
7084 
next(double min_wt)7085 void SwigDirector_ValueWeightPostingSource::next(double min_wt) {
7086   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
7087   {
7088     swig::SwigVar_PyObject obj0;
7089     obj0 = SWIG_From_double(static_cast< double >(min_wt));
7090     if (!swig_get_self()) {
7091       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValueWeightPostingSource.__init__.");
7092     }
7093 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
7094     const size_t swig_method_index = 5;
7095     const char *const swig_method_name = "next";
7096     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
7097     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0, NULL);
7098 #else
7099     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"next");
7100     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0, NULL);
7101 #endif
7102     if (!result) {
7103       PyObject *error = PyErr_Occurred();
7104       {
7105         if (error != NULL) {
7106           throw Swig::DirectorMethodException();
7107         }
7108       }
7109     }
7110   }
7111   SWIG_PYTHON_THREAD_END_BLOCK;
7112 }
7113 
7114 
skip_to(Xapian::docid min_docid,double min_wt)7115 void SwigDirector_ValueWeightPostingSource::skip_to(Xapian::docid min_docid, double min_wt) {
7116   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
7117   {
7118     swig::SwigVar_PyObject obj0;
7119     obj0 = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(min_docid));
7120     swig::SwigVar_PyObject obj1;
7121     obj1 = SWIG_From_double(static_cast< double >(min_wt));
7122     if (!swig_get_self()) {
7123       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValueWeightPostingSource.__init__.");
7124     }
7125 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
7126     const size_t swig_method_index = 6;
7127     const char *const swig_method_name = "skip_to";
7128     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
7129     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, NULL);
7130 #else
7131     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"skip_to");
7132     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0,(PyObject *)obj1, NULL);
7133 #endif
7134     if (!result) {
7135       PyObject *error = PyErr_Occurred();
7136       {
7137         if (error != NULL) {
7138           throw Swig::DirectorMethodException();
7139         }
7140       }
7141     }
7142   }
7143   SWIG_PYTHON_THREAD_END_BLOCK;
7144 }
7145 
7146 
check(Xapian::docid min_docid,double min_wt)7147 bool SwigDirector_ValueWeightPostingSource::check(Xapian::docid min_docid, double min_wt) {
7148   bool c_result;
7149   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
7150   {
7151     swig::SwigVar_PyObject obj0;
7152     obj0 = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(min_docid));
7153     swig::SwigVar_PyObject obj1;
7154     obj1 = SWIG_From_double(static_cast< double >(min_wt));
7155     if (!swig_get_self()) {
7156       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValueWeightPostingSource.__init__.");
7157     }
7158 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
7159     const size_t swig_method_index = 7;
7160     const char *const swig_method_name = "check";
7161     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
7162     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, NULL);
7163 #else
7164     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"check");
7165     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0,(PyObject *)obj1, NULL);
7166 #endif
7167     if (!result) {
7168       PyObject *error = PyErr_Occurred();
7169       {
7170         if (error != NULL) {
7171           throw Swig::DirectorMethodException();
7172         }
7173       }
7174     }
7175     bool swig_val;
7176     int swig_res = SWIG_AsVal_bool(result, &swig_val);
7177     if (!SWIG_IsOK(swig_res)) {
7178       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'");
7179     }
7180     c_result = static_cast< bool >(swig_val);
7181   }
7182   SWIG_PYTHON_THREAD_END_BLOCK;
7183   return (bool) c_result;
7184 }
7185 
7186 
at_end() const7187 bool SwigDirector_ValueWeightPostingSource::at_end() const {
7188   bool c_result;
7189   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
7190   {
7191     if (!swig_get_self()) {
7192       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValueWeightPostingSource.__init__.");
7193     }
7194 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
7195     const size_t swig_method_index = 8;
7196     const char *const swig_method_name = "at_end";
7197     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
7198     swig::SwigVar_PyObject args = PyTuple_New(0);
7199     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
7200 #else
7201     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"at_end");
7202     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
7203 #endif
7204     if (!result) {
7205       PyObject *error = PyErr_Occurred();
7206       {
7207         if (error != NULL) {
7208           throw Swig::DirectorMethodException();
7209         }
7210       }
7211     }
7212     bool swig_val;
7213     int swig_res = SWIG_AsVal_bool(result, &swig_val);
7214     if (!SWIG_IsOK(swig_res)) {
7215       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'");
7216     }
7217     c_result = static_cast< bool >(swig_val);
7218   }
7219   SWIG_PYTHON_THREAD_END_BLOCK;
7220   return (bool) c_result;
7221 }
7222 
7223 
clone() const7224 Xapian::ValueWeightPostingSource *SwigDirector_ValueWeightPostingSource::clone() const {
7225   return Xapian::ValueWeightPostingSource::clone();
7226 }
7227 
7228 
name() const7229 std::string SwigDirector_ValueWeightPostingSource::name() 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 = 9;
7238     const char *const swig_method_name = "name";
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 *)"name");
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 
serialise() const7273 std::string SwigDirector_ValueWeightPostingSource::serialise() const {
7274   return Xapian::ValueWeightPostingSource::serialise();
7275 }
7276 
7277 
unserialise(std::string const & serialised) const7278 Xapian::ValueWeightPostingSource *SwigDirector_ValueWeightPostingSource::unserialise(std::string const &serialised) const {
7279   return Xapian::ValueWeightPostingSource::unserialise(serialised);
7280 }
7281 
7282 
unserialise_with_registry(std::string const & serialised,Xapian::Registry const & registry) const7283 Xapian::PostingSource *SwigDirector_ValueWeightPostingSource::unserialise_with_registry(std::string const &serialised, Xapian::Registry const &registry) const {
7284   return Xapian::PostingSource::unserialise_with_registry(serialised,registry);
7285 }
7286 
7287 
init(Xapian::Database const & db_)7288 void SwigDirector_ValueWeightPostingSource::init(Xapian::Database const &db_) {
7289   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
7290   {
7291     swig::SwigVar_PyObject obj0;
7292     obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(&db_), SWIGTYPE_p_Xapian__Database,  0 );
7293     if (!swig_get_self()) {
7294       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValueWeightPostingSource.__init__.");
7295     }
7296 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
7297     const size_t swig_method_index = 10;
7298     const char *const swig_method_name = "init";
7299     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
7300     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0, NULL);
7301 #else
7302     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"init");
7303     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0, NULL);
7304 #endif
7305     if (!result) {
7306       PyObject *error = PyErr_Occurred();
7307       {
7308         if (error != NULL) {
7309           throw Swig::DirectorMethodException();
7310         }
7311       }
7312     }
7313   }
7314   SWIG_PYTHON_THREAD_END_BLOCK;
7315 }
7316 
7317 
get_description() const7318 std::string SwigDirector_ValueWeightPostingSource::get_description() const {
7319   std::string c_result;
7320   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
7321   {
7322     if (!swig_get_self()) {
7323       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValueWeightPostingSource.__init__.");
7324     }
7325 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
7326     const size_t swig_method_index = 11;
7327     const char *const swig_method_name = "__str__";
7328     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
7329     swig::SwigVar_PyObject args = PyTuple_New(0);
7330     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
7331 #else
7332     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"__str__");
7333     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
7334 #endif
7335     if (!result) {
7336       PyObject *error = PyErr_Occurred();
7337       {
7338         if (error != NULL) {
7339           throw Swig::DirectorMethodException();
7340         }
7341       }
7342     }
7343     std::string *swig_optr = 0;
7344     int swig_ores;
7345     {
7346       PyObject * tmp = result;
7347       Py_INCREF(tmp);
7348       swig_ores = XapianSWIG_anystring_as_ptr(tmp, &swig_optr);
7349       Py_DECREF(tmp);
7350     }
7351     if (!SWIG_IsOK(swig_ores) || !swig_optr) {
7352       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((swig_optr ? swig_ores : SWIG_TypeError))), "in output value of type '""std::string""'");
7353     }
7354     c_result = *swig_optr;
7355     if (SWIG_IsNewObj(swig_ores)) delete swig_optr;
7356   }
7357   SWIG_PYTHON_THREAD_END_BLOCK;
7358   return (std::string) c_result;
7359 }
7360 
7361 
SwigDirector_MatchSpy(PyObject * self)7362 SwigDirector_MatchSpy::SwigDirector_MatchSpy(PyObject *self): Xapian::MatchSpy(), Swig::Director(self) {
7363   SWIG_DIRECTOR_RGTR((Xapian::MatchSpy *)this, this);
7364 }
7365 
7366 
7367 
7368 
~SwigDirector_MatchSpy()7369 SwigDirector_MatchSpy::~SwigDirector_MatchSpy() {
7370 }
7371 
operator ()(Xapian::Document const & doc,double wt)7372 void SwigDirector_MatchSpy::operator ()(Xapian::Document const &doc, double wt) {
7373   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
7374   {
7375     swig::SwigVar_PyObject obj0;
7376     obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(&doc), SWIGTYPE_p_Xapian__Document,  0 );
7377     swig::SwigVar_PyObject obj1;
7378     obj1 = SWIG_From_double(static_cast< double >(wt));
7379     if (!swig_get_self()) {
7380       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call MatchSpy.__init__.");
7381     }
7382 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
7383     const size_t swig_method_index = 0;
7384     const char *const swig_method_name = "__call__";
7385     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
7386     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, NULL);
7387 #else
7388     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"__call__");
7389     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0,(PyObject *)obj1, NULL);
7390 #endif
7391     if (!result) {
7392       PyObject *error = PyErr_Occurred();
7393       {
7394         if (error != NULL) {
7395           throw Swig::DirectorMethodException();
7396         }
7397       }
7398     }
7399   }
7400   SWIG_PYTHON_THREAD_END_BLOCK;
7401 }
7402 
7403 
clone() const7404 Xapian::MatchSpy *SwigDirector_MatchSpy::clone() const {
7405   return Xapian::MatchSpy::clone();
7406 }
7407 
7408 
name() const7409 std::string SwigDirector_MatchSpy::name() const {
7410   std::string c_result;
7411   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
7412   {
7413     if (!swig_get_self()) {
7414       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call MatchSpy.__init__.");
7415     }
7416 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
7417     const size_t swig_method_index = 1;
7418     const char *const swig_method_name = "name";
7419     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
7420     swig::SwigVar_PyObject args = PyTuple_New(0);
7421     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
7422 #else
7423     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"name");
7424     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
7425 #endif
7426     if (!result) {
7427       PyObject *error = PyErr_Occurred();
7428       {
7429         if (error != NULL) {
7430           throw Swig::DirectorMethodException();
7431         }
7432       }
7433     }
7434     std::string *swig_optr = 0;
7435     int swig_ores;
7436     {
7437       PyObject * tmp = result;
7438       Py_INCREF(tmp);
7439       swig_ores = XapianSWIG_anystring_as_ptr(tmp, &swig_optr);
7440       Py_DECREF(tmp);
7441     }
7442     if (!SWIG_IsOK(swig_ores) || !swig_optr) {
7443       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((swig_optr ? swig_ores : SWIG_TypeError))), "in output value of type '""std::string""'");
7444     }
7445     c_result = *swig_optr;
7446     if (SWIG_IsNewObj(swig_ores)) delete swig_optr;
7447   }
7448   SWIG_PYTHON_THREAD_END_BLOCK;
7449   return (std::string) c_result;
7450 }
7451 
7452 
serialise() const7453 std::string SwigDirector_MatchSpy::serialise() const {
7454   return Xapian::MatchSpy::serialise();
7455 }
7456 
7457 
unserialise(std::string const & serialised,Xapian::Registry const & context) const7458 Xapian::MatchSpy *SwigDirector_MatchSpy::unserialise(std::string const &serialised, Xapian::Registry const &context) const {
7459   return Xapian::MatchSpy::unserialise(serialised,context);
7460 }
7461 
7462 
serialise_results() const7463 std::string SwigDirector_MatchSpy::serialise_results() const {
7464   return Xapian::MatchSpy::serialise_results();
7465 }
7466 
7467 
merge_results(std::string const & serialised)7468 void SwigDirector_MatchSpy::merge_results(std::string const &serialised) {
7469   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
7470   {
7471     swig::SwigVar_PyObject obj0;
7472     obj0 = SWIG_From_std_string(static_cast< std::string >(serialised));
7473     if (!swig_get_self()) {
7474       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call MatchSpy.__init__.");
7475     }
7476 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
7477     const size_t swig_method_index = 2;
7478     const char *const swig_method_name = "merge_results";
7479     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
7480     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0, NULL);
7481 #else
7482     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"merge_results");
7483     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0, NULL);
7484 #endif
7485     if (!result) {
7486       PyObject *error = PyErr_Occurred();
7487       {
7488         if (error != NULL) {
7489           throw Swig::DirectorMethodException();
7490         }
7491       }
7492     }
7493   }
7494   SWIG_PYTHON_THREAD_END_BLOCK;
7495 }
7496 
7497 
get_description() const7498 std::string SwigDirector_MatchSpy::get_description() const {
7499   std::string c_result;
7500   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
7501   {
7502     if (!swig_get_self()) {
7503       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call MatchSpy.__init__.");
7504     }
7505 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
7506     const size_t swig_method_index = 3;
7507     const char *const swig_method_name = "__str__";
7508     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
7509     swig::SwigVar_PyObject args = PyTuple_New(0);
7510     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
7511 #else
7512     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"__str__");
7513     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
7514 #endif
7515     if (!result) {
7516       PyObject *error = PyErr_Occurred();
7517       {
7518         if (error != NULL) {
7519           throw Swig::DirectorMethodException();
7520         }
7521       }
7522     }
7523     std::string *swig_optr = 0;
7524     int swig_ores;
7525     {
7526       PyObject * tmp = result;
7527       Py_INCREF(tmp);
7528       swig_ores = XapianSWIG_anystring_as_ptr(tmp, &swig_optr);
7529       Py_DECREF(tmp);
7530     }
7531     if (!SWIG_IsOK(swig_ores) || !swig_optr) {
7532       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((swig_optr ? swig_ores : SWIG_TypeError))), "in output value of type '""std::string""'");
7533     }
7534     c_result = *swig_optr;
7535     if (SWIG_IsNewObj(swig_ores)) delete swig_optr;
7536   }
7537   SWIG_PYTHON_THREAD_END_BLOCK;
7538   return (std::string) c_result;
7539 }
7540 
7541 
SwigDirector_LatLongMetric(PyObject * self)7542 SwigDirector_LatLongMetric::SwigDirector_LatLongMetric(PyObject *self): Xapian::LatLongMetric(), Swig::Director(self) {
7543   SWIG_DIRECTOR_RGTR((Xapian::LatLongMetric *)this, this);
7544 }
7545 
7546 
7547 
7548 
~SwigDirector_LatLongMetric()7549 SwigDirector_LatLongMetric::~SwigDirector_LatLongMetric() {
7550 }
7551 
pointwise_distance(Xapian::LatLongCoord const & a,Xapian::LatLongCoord const & b) const7552 double SwigDirector_LatLongMetric::pointwise_distance(Xapian::LatLongCoord const &a, Xapian::LatLongCoord const &b) const {
7553   double c_result;
7554   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
7555   {
7556     swig::SwigVar_PyObject obj0;
7557     obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(&a), SWIGTYPE_p_Xapian__LatLongCoord,  0 );
7558     swig::SwigVar_PyObject obj1;
7559     obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(&b), SWIGTYPE_p_Xapian__LatLongCoord,  0 );
7560     if (!swig_get_self()) {
7561       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call LatLongMetric.__init__.");
7562     }
7563 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
7564     const size_t swig_method_index = 0;
7565     const char *const swig_method_name = "pointwise_distance";
7566     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
7567     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, NULL);
7568 #else
7569     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"pointwise_distance");
7570     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0,(PyObject *)obj1, NULL);
7571 #endif
7572     if (!result) {
7573       PyObject *error = PyErr_Occurred();
7574       {
7575         if (error != NULL) {
7576           throw Swig::DirectorMethodException();
7577         }
7578       }
7579     }
7580     double swig_val;
7581     int swig_res = SWIG_AsVal_double(result, &swig_val);
7582     if (!SWIG_IsOK(swig_res)) {
7583       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""double""'");
7584     }
7585     c_result = static_cast< double >(swig_val);
7586   }
7587   SWIG_PYTHON_THREAD_END_BLOCK;
7588   return (double) c_result;
7589 }
7590 
7591 
clone() const7592 Xapian::LatLongMetric *SwigDirector_LatLongMetric::clone() const {
7593   Xapian::LatLongMetric *c_result;
7594   Swig::DirectorPureVirtualException::raise("Attempted to invoke pure virtual method Xapian::LatLongMetric::clone");
7595   return (Xapian::LatLongMetric *) c_result;
7596 }
7597 
7598 
name() const7599 std::string SwigDirector_LatLongMetric::name() const {
7600   std::string c_result;
7601   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
7602   {
7603     if (!swig_get_self()) {
7604       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call LatLongMetric.__init__.");
7605     }
7606 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
7607     const size_t swig_method_index = 1;
7608     const char *const swig_method_name = "name";
7609     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
7610     swig::SwigVar_PyObject args = PyTuple_New(0);
7611     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
7612 #else
7613     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"name");
7614     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
7615 #endif
7616     if (!result) {
7617       PyObject *error = PyErr_Occurred();
7618       {
7619         if (error != NULL) {
7620           throw Swig::DirectorMethodException();
7621         }
7622       }
7623     }
7624     std::string *swig_optr = 0;
7625     int swig_ores;
7626     {
7627       PyObject * tmp = result;
7628       Py_INCREF(tmp);
7629       swig_ores = XapianSWIG_anystring_as_ptr(tmp, &swig_optr);
7630       Py_DECREF(tmp);
7631     }
7632     if (!SWIG_IsOK(swig_ores) || !swig_optr) {
7633       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((swig_optr ? swig_ores : SWIG_TypeError))), "in output value of type '""std::string""'");
7634     }
7635     c_result = *swig_optr;
7636     if (SWIG_IsNewObj(swig_ores)) delete swig_optr;
7637   }
7638   SWIG_PYTHON_THREAD_END_BLOCK;
7639   return (std::string) c_result;
7640 }
7641 
7642 
serialise() const7643 std::string SwigDirector_LatLongMetric::serialise() const {
7644   std::string c_result;
7645   Swig::DirectorPureVirtualException::raise("Attempted to invoke pure virtual method Xapian::LatLongMetric::serialise");
7646   return (std::string) c_result;
7647 }
7648 
7649 
unserialise(std::string const & serialised) const7650 Xapian::LatLongMetric *SwigDirector_LatLongMetric::unserialise(std::string const &serialised) const {
7651   Xapian::LatLongMetric *c_result;
7652   Swig::DirectorPureVirtualException::raise("Attempted to invoke pure virtual method Xapian::LatLongMetric::unserialise");
7653   return (Xapian::LatLongMetric *) c_result;
7654 }
7655 
7656 
7657 #ifdef __cplusplus
7658 extern "C" {
7659 #endif
_wrap_delete_SwigPyIterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7660 SWIGINTERN PyObject *_wrap_delete_SwigPyIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7661   PyObject *resultobj = 0;
7662   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
7663   void *argp1 = 0 ;
7664   int res1 = 0 ;
7665   PyObject *swig_obj[1] ;
7666 
7667   if (!args) SWIG_fail;
7668   swig_obj[0] = args;
7669   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN |  0 );
7670   if (!SWIG_IsOK(res1)) {
7671     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SwigPyIterator" "', argument " "1"" of type '" "swig::SwigPyIterator *""'");
7672   }
7673   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
7674   {
7675     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
7676     delete arg1;
7677     SWIG_PYTHON_THREAD_END_ALLOW;
7678   }
7679   resultobj = SWIG_Py_Void();
7680   return resultobj;
7681 fail:
7682   return NULL;
7683 }
7684 
7685 
_wrap_SwigPyIterator_value(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7686 SWIGINTERN PyObject *_wrap_SwigPyIterator_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7687   PyObject *resultobj = 0;
7688   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
7689   void *argp1 = 0 ;
7690   int res1 = 0 ;
7691   PyObject *swig_obj[1] ;
7692   PyObject *result = 0 ;
7693 
7694   if (!args) SWIG_fail;
7695   swig_obj[0] = args;
7696   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
7697   if (!SWIG_IsOK(res1)) {
7698     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_value" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'");
7699   }
7700   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
7701   try {
7702     {
7703       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
7704       result = (PyObject *)((swig::SwigPyIterator const *)arg1)->value();
7705       SWIG_PYTHON_THREAD_END_ALLOW;
7706     }
7707   }
7708   catch(swig::stop_iteration &_e) {
7709     {
7710       (void)_e;
7711       SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
7712       SWIG_fail;
7713     }
7714   }
7715 
7716   resultobj = result;
7717   return resultobj;
7718 fail:
7719   return NULL;
7720 }
7721 
7722 
_wrap_SwigPyIterator_incr__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)7723 SWIGINTERN PyObject *_wrap_SwigPyIterator_incr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7724   PyObject *resultobj = 0;
7725   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
7726   size_t arg2 ;
7727   void *argp1 = 0 ;
7728   int res1 = 0 ;
7729   size_t val2 ;
7730   int ecode2 = 0 ;
7731   swig::SwigPyIterator *result = 0 ;
7732 
7733   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7734   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
7735   if (!SWIG_IsOK(res1)) {
7736     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_incr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'");
7737   }
7738   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
7739   ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
7740   if (!SWIG_IsOK(ecode2)) {
7741     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator_incr" "', argument " "2"" of type '" "size_t""'");
7742   }
7743   arg2 = static_cast< size_t >(val2);
7744   try {
7745     {
7746       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
7747       result = (swig::SwigPyIterator *)(arg1)->incr(arg2);
7748       SWIG_PYTHON_THREAD_END_ALLOW;
7749     }
7750   }
7751   catch(swig::stop_iteration &_e) {
7752     {
7753       (void)_e;
7754       SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
7755       SWIG_fail;
7756     }
7757   }
7758 
7759   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
7760   return resultobj;
7761 fail:
7762   return NULL;
7763 }
7764 
7765 
_wrap_SwigPyIterator_incr__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)7766 SWIGINTERN PyObject *_wrap_SwigPyIterator_incr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7767   PyObject *resultobj = 0;
7768   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
7769   void *argp1 = 0 ;
7770   int res1 = 0 ;
7771   swig::SwigPyIterator *result = 0 ;
7772 
7773   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7774   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
7775   if (!SWIG_IsOK(res1)) {
7776     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_incr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'");
7777   }
7778   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
7779   try {
7780     {
7781       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
7782       result = (swig::SwigPyIterator *)(arg1)->incr();
7783       SWIG_PYTHON_THREAD_END_ALLOW;
7784     }
7785   }
7786   catch(swig::stop_iteration &_e) {
7787     {
7788       (void)_e;
7789       SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
7790       SWIG_fail;
7791     }
7792   }
7793 
7794   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
7795   return resultobj;
7796 fail:
7797   return NULL;
7798 }
7799 
7800 
_wrap_SwigPyIterator_incr(PyObject * self,PyObject * args)7801 SWIGINTERN PyObject *_wrap_SwigPyIterator_incr(PyObject *self, PyObject *args) {
7802   Py_ssize_t argc;
7803   PyObject *argv[3] = {
7804     0
7805   };
7806 
7807   if (!(argc = SWIG_Python_UnpackTuple(args,"SwigPyIterator_incr",0,2,argv))) SWIG_fail;
7808   --argc;
7809   if (argc == 1) {
7810     return _wrap_SwigPyIterator_incr__SWIG_1(self, argc, argv);
7811   }
7812   if (argc == 2) {
7813     return _wrap_SwigPyIterator_incr__SWIG_0(self, argc, argv);
7814   }
7815 
7816 fail:
7817   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SwigPyIterator_incr'.\n"
7818     "  Possible C/C++ prototypes are:\n"
7819     "    swig::SwigPyIterator::incr(size_t)\n"
7820     "    swig::SwigPyIterator::incr()\n");
7821   return 0;
7822 }
7823 
7824 
_wrap_SwigPyIterator_decr__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)7825 SWIGINTERN PyObject *_wrap_SwigPyIterator_decr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7826   PyObject *resultobj = 0;
7827   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
7828   size_t arg2 ;
7829   void *argp1 = 0 ;
7830   int res1 = 0 ;
7831   size_t val2 ;
7832   int ecode2 = 0 ;
7833   swig::SwigPyIterator *result = 0 ;
7834 
7835   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7836   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
7837   if (!SWIG_IsOK(res1)) {
7838     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_decr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'");
7839   }
7840   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
7841   ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
7842   if (!SWIG_IsOK(ecode2)) {
7843     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator_decr" "', argument " "2"" of type '" "size_t""'");
7844   }
7845   arg2 = static_cast< size_t >(val2);
7846   try {
7847     {
7848       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
7849       result = (swig::SwigPyIterator *)(arg1)->decr(arg2);
7850       SWIG_PYTHON_THREAD_END_ALLOW;
7851     }
7852   }
7853   catch(swig::stop_iteration &_e) {
7854     {
7855       (void)_e;
7856       SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
7857       SWIG_fail;
7858     }
7859   }
7860 
7861   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
7862   return resultobj;
7863 fail:
7864   return NULL;
7865 }
7866 
7867 
_wrap_SwigPyIterator_decr__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)7868 SWIGINTERN PyObject *_wrap_SwigPyIterator_decr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7869   PyObject *resultobj = 0;
7870   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
7871   void *argp1 = 0 ;
7872   int res1 = 0 ;
7873   swig::SwigPyIterator *result = 0 ;
7874 
7875   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7876   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
7877   if (!SWIG_IsOK(res1)) {
7878     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_decr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'");
7879   }
7880   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
7881   try {
7882     {
7883       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
7884       result = (swig::SwigPyIterator *)(arg1)->decr();
7885       SWIG_PYTHON_THREAD_END_ALLOW;
7886     }
7887   }
7888   catch(swig::stop_iteration &_e) {
7889     {
7890       (void)_e;
7891       SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
7892       SWIG_fail;
7893     }
7894   }
7895 
7896   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
7897   return resultobj;
7898 fail:
7899   return NULL;
7900 }
7901 
7902 
_wrap_SwigPyIterator_decr(PyObject * self,PyObject * args)7903 SWIGINTERN PyObject *_wrap_SwigPyIterator_decr(PyObject *self, PyObject *args) {
7904   Py_ssize_t argc;
7905   PyObject *argv[3] = {
7906     0
7907   };
7908 
7909   if (!(argc = SWIG_Python_UnpackTuple(args,"SwigPyIterator_decr",0,2,argv))) SWIG_fail;
7910   --argc;
7911   if (argc == 1) {
7912     return _wrap_SwigPyIterator_decr__SWIG_1(self, argc, argv);
7913   }
7914   if (argc == 2) {
7915     return _wrap_SwigPyIterator_decr__SWIG_0(self, argc, argv);
7916   }
7917 
7918 fail:
7919   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SwigPyIterator_decr'.\n"
7920     "  Possible C/C++ prototypes are:\n"
7921     "    swig::SwigPyIterator::decr(size_t)\n"
7922     "    swig::SwigPyIterator::decr()\n");
7923   return 0;
7924 }
7925 
7926 
_wrap_SwigPyIterator_distance(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7927 SWIGINTERN PyObject *_wrap_SwigPyIterator_distance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7928   PyObject *resultobj = 0;
7929   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
7930   swig::SwigPyIterator *arg2 = 0 ;
7931   void *argp1 = 0 ;
7932   int res1 = 0 ;
7933   void *argp2 = 0 ;
7934   int res2 = 0 ;
7935   PyObject *swig_obj[2] ;
7936   ptrdiff_t result;
7937 
7938   if (!SWIG_Python_UnpackTuple(args,"SwigPyIterator_distance",2,2,swig_obj)) SWIG_fail;
7939   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
7940   if (!SWIG_IsOK(res1)) {
7941     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_distance" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'");
7942   }
7943   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
7944   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_swig__SwigPyIterator,  0  | 0);
7945   if (!SWIG_IsOK(res2)) {
7946     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator_distance" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'");
7947   }
7948   if (!argp2) {
7949     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator_distance" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'");
7950   }
7951   arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
7952   try {
7953     {
7954       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
7955       result = ((swig::SwigPyIterator const *)arg1)->distance((swig::SwigPyIterator const &)*arg2);
7956       SWIG_PYTHON_THREAD_END_ALLOW;
7957     }
7958   }
7959   catch(std::invalid_argument &_e) {
7960     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;
7961   }
7962 
7963   resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result));
7964   return resultobj;
7965 fail:
7966   return NULL;
7967 }
7968 
7969 
_wrap_SwigPyIterator_equal(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7970 SWIGINTERN PyObject *_wrap_SwigPyIterator_equal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7971   PyObject *resultobj = 0;
7972   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
7973   swig::SwigPyIterator *arg2 = 0 ;
7974   void *argp1 = 0 ;
7975   int res1 = 0 ;
7976   void *argp2 = 0 ;
7977   int res2 = 0 ;
7978   PyObject *swig_obj[2] ;
7979   bool result;
7980 
7981   if (!SWIG_Python_UnpackTuple(args,"SwigPyIterator_equal",2,2,swig_obj)) SWIG_fail;
7982   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
7983   if (!SWIG_IsOK(res1)) {
7984     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_equal" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'");
7985   }
7986   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
7987   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_swig__SwigPyIterator,  0  | 0);
7988   if (!SWIG_IsOK(res2)) {
7989     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator_equal" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'");
7990   }
7991   if (!argp2) {
7992     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator_equal" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'");
7993   }
7994   arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
7995   try {
7996     {
7997       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
7998       result = (bool)((swig::SwigPyIterator const *)arg1)->equal((swig::SwigPyIterator const &)*arg2);
7999       SWIG_PYTHON_THREAD_END_ALLOW;
8000     }
8001   }
8002   catch(std::invalid_argument &_e) {
8003     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;
8004   }
8005 
8006   resultobj = SWIG_From_bool(static_cast< bool >(result));
8007   return resultobj;
8008 fail:
8009   return NULL;
8010 }
8011 
8012 
_wrap_SwigPyIterator_copy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8013 SWIGINTERN PyObject *_wrap_SwigPyIterator_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8014   PyObject *resultobj = 0;
8015   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
8016   void *argp1 = 0 ;
8017   int res1 = 0 ;
8018   PyObject *swig_obj[1] ;
8019   swig::SwigPyIterator *result = 0 ;
8020 
8021   if (!args) SWIG_fail;
8022   swig_obj[0] = args;
8023   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
8024   if (!SWIG_IsOK(res1)) {
8025     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_copy" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'");
8026   }
8027   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
8028   {
8029     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8030     result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->copy();
8031     SWIG_PYTHON_THREAD_END_ALLOW;
8032   }
8033   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
8034   return resultobj;
8035 fail:
8036   return NULL;
8037 }
8038 
8039 
_wrap_SwigPyIterator_next(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8040 SWIGINTERN PyObject *_wrap_SwigPyIterator_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8041   PyObject *resultobj = 0;
8042   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
8043   void *argp1 = 0 ;
8044   int res1 = 0 ;
8045   PyObject *swig_obj[1] ;
8046   PyObject *result = 0 ;
8047 
8048   if (!args) SWIG_fail;
8049   swig_obj[0] = args;
8050   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
8051   if (!SWIG_IsOK(res1)) {
8052     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_next" "', argument " "1"" of type '" "swig::SwigPyIterator *""'");
8053   }
8054   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
8055   try {
8056     {
8057       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8058       result = (PyObject *)(arg1)->next();
8059       SWIG_PYTHON_THREAD_END_ALLOW;
8060     }
8061   }
8062   catch(swig::stop_iteration &_e) {
8063     {
8064       (void)_e;
8065       SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
8066       SWIG_fail;
8067     }
8068   }
8069 
8070   resultobj = result;
8071   return resultobj;
8072 fail:
8073   return NULL;
8074 }
8075 
8076 
_wrap_SwigPyIterator___next__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8077 SWIGINTERN PyObject *_wrap_SwigPyIterator___next__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8078   PyObject *resultobj = 0;
8079   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
8080   void *argp1 = 0 ;
8081   int res1 = 0 ;
8082   PyObject *swig_obj[1] ;
8083   PyObject *result = 0 ;
8084 
8085   if (!args) SWIG_fail;
8086   swig_obj[0] = args;
8087   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
8088   if (!SWIG_IsOK(res1)) {
8089     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___next__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'");
8090   }
8091   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
8092   try {
8093     {
8094       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8095       result = (PyObject *)(arg1)->__next__();
8096       SWIG_PYTHON_THREAD_END_ALLOW;
8097     }
8098   }
8099   catch(swig::stop_iteration &_e) {
8100     {
8101       (void)_e;
8102       SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
8103       SWIG_fail;
8104     }
8105   }
8106 
8107   resultobj = result;
8108   return resultobj;
8109 fail:
8110   return NULL;
8111 }
8112 
8113 
_wrap_SwigPyIterator_previous(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8114 SWIGINTERN PyObject *_wrap_SwigPyIterator_previous(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8115   PyObject *resultobj = 0;
8116   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
8117   void *argp1 = 0 ;
8118   int res1 = 0 ;
8119   PyObject *swig_obj[1] ;
8120   PyObject *result = 0 ;
8121 
8122   if (!args) SWIG_fail;
8123   swig_obj[0] = args;
8124   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
8125   if (!SWIG_IsOK(res1)) {
8126     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_previous" "', argument " "1"" of type '" "swig::SwigPyIterator *""'");
8127   }
8128   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
8129   try {
8130     {
8131       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8132       result = (PyObject *)(arg1)->previous();
8133       SWIG_PYTHON_THREAD_END_ALLOW;
8134     }
8135   }
8136   catch(swig::stop_iteration &_e) {
8137     {
8138       (void)_e;
8139       SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
8140       SWIG_fail;
8141     }
8142   }
8143 
8144   resultobj = result;
8145   return resultobj;
8146 fail:
8147   return NULL;
8148 }
8149 
8150 
_wrap_SwigPyIterator_advance(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8151 SWIGINTERN PyObject *_wrap_SwigPyIterator_advance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8152   PyObject *resultobj = 0;
8153   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
8154   ptrdiff_t arg2 ;
8155   void *argp1 = 0 ;
8156   int res1 = 0 ;
8157   ptrdiff_t val2 ;
8158   int ecode2 = 0 ;
8159   PyObject *swig_obj[2] ;
8160   swig::SwigPyIterator *result = 0 ;
8161 
8162   if (!SWIG_Python_UnpackTuple(args,"SwigPyIterator_advance",2,2,swig_obj)) SWIG_fail;
8163   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
8164   if (!SWIG_IsOK(res1)) {
8165     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_advance" "', argument " "1"" of type '" "swig::SwigPyIterator *""'");
8166   }
8167   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
8168   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
8169   if (!SWIG_IsOK(ecode2)) {
8170     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator_advance" "', argument " "2"" of type '" "ptrdiff_t""'");
8171   }
8172   arg2 = static_cast< ptrdiff_t >(val2);
8173   try {
8174     {
8175       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8176       result = (swig::SwigPyIterator *)(arg1)->advance(arg2);
8177       SWIG_PYTHON_THREAD_END_ALLOW;
8178     }
8179   }
8180   catch(swig::stop_iteration &_e) {
8181     {
8182       (void)_e;
8183       SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
8184       SWIG_fail;
8185     }
8186   }
8187 
8188   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
8189   return resultobj;
8190 fail:
8191   return NULL;
8192 }
8193 
8194 
_wrap_SwigPyIterator___eq__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8195 SWIGINTERN PyObject *_wrap_SwigPyIterator___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8196   PyObject *resultobj = 0;
8197   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
8198   swig::SwigPyIterator *arg2 = 0 ;
8199   void *argp1 = 0 ;
8200   int res1 = 0 ;
8201   void *argp2 = 0 ;
8202   int res2 = 0 ;
8203   PyObject *swig_obj[2] ;
8204   bool result;
8205 
8206   if (!SWIG_Python_UnpackTuple(args,"SwigPyIterator___eq__",2,2,swig_obj)) SWIG_fail;
8207   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
8208   if (!SWIG_IsOK(res1)) {
8209     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___eq__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'");
8210   }
8211   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
8212   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_swig__SwigPyIterator,  0  | 0);
8213   if (!SWIG_IsOK(res2)) {
8214     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator___eq__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'");
8215   }
8216   if (!argp2) {
8217     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator___eq__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'");
8218   }
8219   arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
8220   {
8221     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8222     result = (bool)((swig::SwigPyIterator const *)arg1)->operator ==((swig::SwigPyIterator const &)*arg2);
8223     SWIG_PYTHON_THREAD_END_ALLOW;
8224   }
8225   resultobj = SWIG_From_bool(static_cast< bool >(result));
8226   return resultobj;
8227 fail:
8228   return NULL;
8229 }
8230 
8231 
_wrap_SwigPyIterator___ne__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8232 SWIGINTERN PyObject *_wrap_SwigPyIterator___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8233   PyObject *resultobj = 0;
8234   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
8235   swig::SwigPyIterator *arg2 = 0 ;
8236   void *argp1 = 0 ;
8237   int res1 = 0 ;
8238   void *argp2 = 0 ;
8239   int res2 = 0 ;
8240   PyObject *swig_obj[2] ;
8241   bool result;
8242 
8243   if (!SWIG_Python_UnpackTuple(args,"SwigPyIterator___ne__",2,2,swig_obj)) SWIG_fail;
8244   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
8245   if (!SWIG_IsOK(res1)) {
8246     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___ne__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'");
8247   }
8248   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
8249   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_swig__SwigPyIterator,  0  | 0);
8250   if (!SWIG_IsOK(res2)) {
8251     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator___ne__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'");
8252   }
8253   if (!argp2) {
8254     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator___ne__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'");
8255   }
8256   arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
8257   {
8258     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8259     result = (bool)((swig::SwigPyIterator const *)arg1)->operator !=((swig::SwigPyIterator const &)*arg2);
8260     SWIG_PYTHON_THREAD_END_ALLOW;
8261   }
8262   resultobj = SWIG_From_bool(static_cast< bool >(result));
8263   return resultobj;
8264 fail:
8265   return NULL;
8266 }
8267 
8268 
_wrap_SwigPyIterator___iadd__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8269 SWIGINTERN PyObject *_wrap_SwigPyIterator___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8270   PyObject *resultobj = 0;
8271   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
8272   ptrdiff_t arg2 ;
8273   void *argp1 = 0 ;
8274   int res1 = 0 ;
8275   ptrdiff_t val2 ;
8276   int ecode2 = 0 ;
8277   PyObject *swig_obj[2] ;
8278   swig::SwigPyIterator *result = 0 ;
8279 
8280   if (!SWIG_Python_UnpackTuple(args,"SwigPyIterator___iadd__",2,2,swig_obj)) SWIG_fail;
8281   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN |  0 );
8282   if (!SWIG_IsOK(res1)) {
8283     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___iadd__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'");
8284   }
8285   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
8286   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
8287   if (!SWIG_IsOK(ecode2)) {
8288     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___iadd__" "', argument " "2"" of type '" "ptrdiff_t""'");
8289   }
8290   arg2 = static_cast< ptrdiff_t >(val2);
8291   try {
8292     {
8293       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8294       result = (swig::SwigPyIterator *) &(arg1)->operator +=(arg2);
8295       SWIG_PYTHON_THREAD_END_ALLOW;
8296     }
8297   }
8298   catch(swig::stop_iteration &_e) {
8299     {
8300       (void)_e;
8301       SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
8302       SWIG_fail;
8303     }
8304   }
8305 
8306   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
8307   return resultobj;
8308 fail:
8309   return NULL;
8310 }
8311 
8312 
_wrap_SwigPyIterator___isub__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8313 SWIGINTERN PyObject *_wrap_SwigPyIterator___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8314   PyObject *resultobj = 0;
8315   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
8316   ptrdiff_t arg2 ;
8317   void *argp1 = 0 ;
8318   int res1 = 0 ;
8319   ptrdiff_t val2 ;
8320   int ecode2 = 0 ;
8321   PyObject *swig_obj[2] ;
8322   swig::SwigPyIterator *result = 0 ;
8323 
8324   if (!SWIG_Python_UnpackTuple(args,"SwigPyIterator___isub__",2,2,swig_obj)) SWIG_fail;
8325   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN |  0 );
8326   if (!SWIG_IsOK(res1)) {
8327     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___isub__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'");
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___isub__" "', 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 *) &(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___add__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8357 SWIGINTERN PyObject *_wrap_SwigPyIterator___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8358   PyObject *resultobj = 0;
8359   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
8360   ptrdiff_t arg2 ;
8361   void *argp1 = 0 ;
8362   int res1 = 0 ;
8363   ptrdiff_t val2 ;
8364   int ecode2 = 0 ;
8365   PyObject *swig_obj[2] ;
8366   swig::SwigPyIterator *result = 0 ;
8367 
8368   if (!SWIG_Python_UnpackTuple(args,"SwigPyIterator___add__",2,2,swig_obj)) SWIG_fail;
8369   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
8370   if (!SWIG_IsOK(res1)) {
8371     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___add__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'");
8372   }
8373   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
8374   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
8375   if (!SWIG_IsOK(ecode2)) {
8376     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___add__" "', argument " "2"" of type '" "ptrdiff_t""'");
8377   }
8378   arg2 = static_cast< ptrdiff_t >(val2);
8379   try {
8380     {
8381       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8382       result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator +(arg2);
8383       SWIG_PYTHON_THREAD_END_ALLOW;
8384     }
8385   }
8386   catch(swig::stop_iteration &_e) {
8387     {
8388       (void)_e;
8389       SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
8390       SWIG_fail;
8391     }
8392   }
8393 
8394   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
8395   return resultobj;
8396 fail:
8397   return NULL;
8398 }
8399 
8400 
_wrap_SwigPyIterator___sub____SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)8401 SWIGINTERN PyObject *_wrap_SwigPyIterator___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8402   PyObject *resultobj = 0;
8403   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
8404   ptrdiff_t arg2 ;
8405   void *argp1 = 0 ;
8406   int res1 = 0 ;
8407   ptrdiff_t val2 ;
8408   int ecode2 = 0 ;
8409   swig::SwigPyIterator *result = 0 ;
8410 
8411   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8412   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
8413   if (!SWIG_IsOK(res1)) {
8414     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___sub__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'");
8415   }
8416   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
8417   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
8418   if (!SWIG_IsOK(ecode2)) {
8419     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "ptrdiff_t""'");
8420   }
8421   arg2 = static_cast< ptrdiff_t >(val2);
8422   try {
8423     {
8424       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8425       result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator -(arg2);
8426       SWIG_PYTHON_THREAD_END_ALLOW;
8427     }
8428   }
8429   catch(swig::stop_iteration &_e) {
8430     {
8431       (void)_e;
8432       SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
8433       SWIG_fail;
8434     }
8435   }
8436 
8437   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
8438   return resultobj;
8439 fail:
8440   return NULL;
8441 }
8442 
8443 
_wrap_SwigPyIterator___sub____SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)8444 SWIGINTERN PyObject *_wrap_SwigPyIterator___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8445   PyObject *resultobj = 0;
8446   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
8447   swig::SwigPyIterator *arg2 = 0 ;
8448   void *argp1 = 0 ;
8449   int res1 = 0 ;
8450   void *argp2 = 0 ;
8451   int res2 = 0 ;
8452   ptrdiff_t result;
8453 
8454   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8455   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
8456   if (!SWIG_IsOK(res1)) {
8457     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___sub__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'");
8458   }
8459   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
8460   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_swig__SwigPyIterator,  0  | 0);
8461   if (!SWIG_IsOK(res2)) {
8462     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'");
8463   }
8464   if (!argp2) {
8465     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'");
8466   }
8467   arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
8468   {
8469     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8470     result = ((swig::SwigPyIterator const *)arg1)->operator -((swig::SwigPyIterator const &)*arg2);
8471     SWIG_PYTHON_THREAD_END_ALLOW;
8472   }
8473   resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result));
8474   return resultobj;
8475 fail:
8476   return NULL;
8477 }
8478 
8479 
_wrap_SwigPyIterator___sub__(PyObject * self,PyObject * args)8480 SWIGINTERN PyObject *_wrap_SwigPyIterator___sub__(PyObject *self, PyObject *args) {
8481   Py_ssize_t argc;
8482   PyObject *argv[3] = {
8483     0
8484   };
8485 
8486   if (!(argc = SWIG_Python_UnpackTuple(args,"SwigPyIterator___sub__",0,2,argv))) SWIG_fail;
8487   --argc;
8488   if (argc == 2) {
8489     int _v = 0;
8490     {
8491       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_swig__SwigPyIterator, 0);
8492       _v = SWIG_CheckState(res);
8493     }
8494     if (!_v) goto check_1;
8495     return _wrap_SwigPyIterator___sub____SWIG_1(self, argc, argv);
8496   }
8497 check_1:
8498 
8499   if (argc == 2) {
8500     return _wrap_SwigPyIterator___sub____SWIG_0(self, argc, argv);
8501   }
8502 
8503 fail:
8504   Py_INCREF(Py_NotImplemented);
8505   return Py_NotImplemented;
8506 }
8507 
8508 
SwigPyIterator_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8509 SWIGINTERN PyObject *SwigPyIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8510   PyObject *obj;
8511   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
8512   SWIG_TypeNewClientData(SWIGTYPE_p_swig__SwigPyIterator, SWIG_NewClientData(obj));
8513   return SWIG_Py_Void();
8514 }
8515 
_wrap_Error_get_type(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8516 SWIGINTERN PyObject *_wrap_Error_get_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8517   PyObject *resultobj = 0;
8518   Xapian::Error *arg1 = (Xapian::Error *) 0 ;
8519   void *argp1 = 0 ;
8520   int res1 = 0 ;
8521   PyObject *swig_obj[1] ;
8522   char *result = 0 ;
8523 
8524   if (!args) SWIG_fail;
8525   swig_obj[0] = args;
8526   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Error, 0 |  0 );
8527   if (!SWIG_IsOK(res1)) {
8528     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Error_get_type" "', argument " "1"" of type '" "Xapian::Error const *""'");
8529   }
8530   arg1 = reinterpret_cast< Xapian::Error * >(argp1);
8531   {
8532     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8533     result = (char *)((Xapian::Error const *)arg1)->get_type();
8534     SWIG_PYTHON_THREAD_END_ALLOW;
8535   }
8536   resultobj = SWIG_FromCharPtr((const char *)result);
8537   return resultobj;
8538 fail:
8539   return NULL;
8540 }
8541 
8542 
_wrap_Error_get_msg(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8543 SWIGINTERN PyObject *_wrap_Error_get_msg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8544   PyObject *resultobj = 0;
8545   Xapian::Error *arg1 = (Xapian::Error *) 0 ;
8546   void *argp1 = 0 ;
8547   int res1 = 0 ;
8548   PyObject *swig_obj[1] ;
8549   std::string *result = 0 ;
8550 
8551   if (!args) SWIG_fail;
8552   swig_obj[0] = args;
8553   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Error, 0 |  0 );
8554   if (!SWIG_IsOK(res1)) {
8555     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Error_get_msg" "', argument " "1"" of type '" "Xapian::Error const *""'");
8556   }
8557   arg1 = reinterpret_cast< Xapian::Error * >(argp1);
8558   {
8559     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8560     result = (std::string *) &((Xapian::Error const *)arg1)->get_msg();
8561     SWIG_PYTHON_THREAD_END_ALLOW;
8562   }
8563   resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
8564   return resultobj;
8565 fail:
8566   return NULL;
8567 }
8568 
8569 
_wrap_Error_get_context(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8570 SWIGINTERN PyObject *_wrap_Error_get_context(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8571   PyObject *resultobj = 0;
8572   Xapian::Error *arg1 = (Xapian::Error *) 0 ;
8573   void *argp1 = 0 ;
8574   int res1 = 0 ;
8575   PyObject *swig_obj[1] ;
8576   std::string *result = 0 ;
8577 
8578   if (!args) SWIG_fail;
8579   swig_obj[0] = args;
8580   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Error, 0 |  0 );
8581   if (!SWIG_IsOK(res1)) {
8582     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Error_get_context" "', argument " "1"" of type '" "Xapian::Error const *""'");
8583   }
8584   arg1 = reinterpret_cast< Xapian::Error * >(argp1);
8585   {
8586     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8587     result = (std::string *) &((Xapian::Error const *)arg1)->get_context();
8588     SWIG_PYTHON_THREAD_END_ALLOW;
8589   }
8590   resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
8591   return resultobj;
8592 fail:
8593   return NULL;
8594 }
8595 
8596 
_wrap_Error_get_error_string(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8597 SWIGINTERN PyObject *_wrap_Error_get_error_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8598   PyObject *resultobj = 0;
8599   Xapian::Error *arg1 = (Xapian::Error *) 0 ;
8600   void *argp1 = 0 ;
8601   int res1 = 0 ;
8602   PyObject *swig_obj[1] ;
8603   char *result = 0 ;
8604 
8605   if (!args) SWIG_fail;
8606   swig_obj[0] = args;
8607   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Error, 0 |  0 );
8608   if (!SWIG_IsOK(res1)) {
8609     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Error_get_error_string" "', argument " "1"" of type '" "Xapian::Error const *""'");
8610   }
8611   arg1 = reinterpret_cast< Xapian::Error * >(argp1);
8612   {
8613     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8614     result = (char *)((Xapian::Error const *)arg1)->get_error_string();
8615     SWIG_PYTHON_THREAD_END_ALLOW;
8616   }
8617   resultobj = SWIG_FromCharPtr((const char *)result);
8618   return resultobj;
8619 fail:
8620   return NULL;
8621 }
8622 
8623 
_wrap_Error___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8624 SWIGINTERN PyObject *_wrap_Error___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8625   PyObject *resultobj = 0;
8626   Xapian::Error *arg1 = (Xapian::Error *) 0 ;
8627   void *argp1 = 0 ;
8628   int res1 = 0 ;
8629   PyObject *swig_obj[1] ;
8630   std::string result;
8631 
8632   if (!args) SWIG_fail;
8633   swig_obj[0] = args;
8634   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Error, 0 |  0 );
8635   if (!SWIG_IsOK(res1)) {
8636     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Error___str__" "', argument " "1"" of type '" "Xapian::Error const *""'");
8637   }
8638   arg1 = reinterpret_cast< Xapian::Error * >(argp1);
8639   {
8640     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8641     result = Xapian_Error___str__((Xapian::Error const *)arg1);
8642     SWIG_PYTHON_THREAD_END_ALLOW;
8643   }
8644   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
8645   return resultobj;
8646 fail:
8647   return NULL;
8648 }
8649 
8650 
_wrap_delete_Error(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8651 SWIGINTERN PyObject *_wrap_delete_Error(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8652   PyObject *resultobj = 0;
8653   Xapian::Error *arg1 = (Xapian::Error *) 0 ;
8654   void *argp1 = 0 ;
8655   int res1 = 0 ;
8656   PyObject *swig_obj[1] ;
8657 
8658   if (!args) SWIG_fail;
8659   swig_obj[0] = args;
8660   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Error, SWIG_POINTER_DISOWN |  0 );
8661   if (!SWIG_IsOK(res1)) {
8662     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Error" "', argument " "1"" of type '" "Xapian::Error *""'");
8663   }
8664   arg1 = reinterpret_cast< Xapian::Error * >(argp1);
8665   {
8666     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8667     delete arg1;
8668     SWIG_PYTHON_THREAD_END_ALLOW;
8669   }
8670   resultobj = SWIG_Py_Void();
8671   return resultobj;
8672 fail:
8673   return NULL;
8674 }
8675 
8676 
Error_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8677 SWIGINTERN PyObject *Error_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8678   PyObject *obj;
8679   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
8680   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__Error, SWIG_NewClientData(obj));
8681   return SWIG_Py_Void();
8682 }
8683 
_wrap_delete_LogicError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8684 SWIGINTERN PyObject *_wrap_delete_LogicError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8685   PyObject *resultobj = 0;
8686   Xapian::LogicError *arg1 = (Xapian::LogicError *) 0 ;
8687   void *argp1 = 0 ;
8688   int res1 = 0 ;
8689   PyObject *swig_obj[1] ;
8690 
8691   if (!args) SWIG_fail;
8692   swig_obj[0] = args;
8693   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LogicError, SWIG_POINTER_DISOWN |  0 );
8694   if (!SWIG_IsOK(res1)) {
8695     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LogicError" "', argument " "1"" of type '" "Xapian::LogicError *""'");
8696   }
8697   arg1 = reinterpret_cast< Xapian::LogicError * >(argp1);
8698   {
8699     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8700     delete arg1;
8701     SWIG_PYTHON_THREAD_END_ALLOW;
8702   }
8703   resultobj = SWIG_Py_Void();
8704   return resultobj;
8705 fail:
8706   return NULL;
8707 }
8708 
8709 
LogicError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8710 SWIGINTERN PyObject *LogicError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8711   PyObject *obj;
8712   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
8713   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__LogicError, SWIG_NewClientData(obj));
8714   return SWIG_Py_Void();
8715 }
8716 
_wrap_delete_RuntimeError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8717 SWIGINTERN PyObject *_wrap_delete_RuntimeError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8718   PyObject *resultobj = 0;
8719   Xapian::RuntimeError *arg1 = (Xapian::RuntimeError *) 0 ;
8720   void *argp1 = 0 ;
8721   int res1 = 0 ;
8722   PyObject *swig_obj[1] ;
8723 
8724   if (!args) SWIG_fail;
8725   swig_obj[0] = args;
8726   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__RuntimeError, SWIG_POINTER_DISOWN |  0 );
8727   if (!SWIG_IsOK(res1)) {
8728     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RuntimeError" "', argument " "1"" of type '" "Xapian::RuntimeError *""'");
8729   }
8730   arg1 = reinterpret_cast< Xapian::RuntimeError * >(argp1);
8731   {
8732     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8733     delete arg1;
8734     SWIG_PYTHON_THREAD_END_ALLOW;
8735   }
8736   resultobj = SWIG_Py_Void();
8737   return resultobj;
8738 fail:
8739   return NULL;
8740 }
8741 
8742 
RuntimeError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8743 SWIGINTERN PyObject *RuntimeError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8744   PyObject *obj;
8745   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
8746   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__RuntimeError, SWIG_NewClientData(obj));
8747   return SWIG_Py_Void();
8748 }
8749 
_wrap_new_AssertionError__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)8750 SWIGINTERN PyObject *_wrap_new_AssertionError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8751   PyObject *resultobj = 0;
8752   std::string *arg1 = 0 ;
8753   std::string *arg2 = 0 ;
8754   char *arg3 = (char *) 0 ;
8755   int res1 = SWIG_OLDOBJ ;
8756   int res2 = SWIG_OLDOBJ ;
8757   int res3 ;
8758   char *buf3 = 0 ;
8759   int alloc3 = 0 ;
8760   Xapian::AssertionError *result = 0 ;
8761 
8762   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8763   {
8764     std::string *ptr = (std::string *)0;
8765     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
8766     if (!SWIG_IsOK(res1)) {
8767       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AssertionError" "', argument " "1"" of type '" "std::string const &""'");
8768     }
8769     if (!ptr) {
8770       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AssertionError" "', argument " "1"" of type '" "std::string const &""'");
8771     }
8772     arg1 = ptr;
8773   }
8774   {
8775     std::string *ptr = (std::string *)0;
8776     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
8777     if (!SWIG_IsOK(res2)) {
8778       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AssertionError" "', argument " "2"" of type '" "std::string const &""'");
8779     }
8780     if (!ptr) {
8781       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AssertionError" "', argument " "2"" of type '" "std::string const &""'");
8782     }
8783     arg2 = ptr;
8784   }
8785   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
8786   if (!SWIG_IsOK(res3)) {
8787     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_AssertionError" "', argument " "3"" of type '" "char const *""'");
8788   }
8789   arg3 = reinterpret_cast< char * >(buf3);
8790   {
8791     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8792     result = (Xapian::AssertionError *)new Xapian::AssertionError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
8793     SWIG_PYTHON_THREAD_END_ALLOW;
8794   }
8795   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__AssertionError, SWIG_POINTER_NEW |  0 );
8796   if (SWIG_IsNewObj(res1)) delete arg1;
8797   if (SWIG_IsNewObj(res2)) delete arg2;
8798   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
8799   return resultobj;
8800 fail:
8801   if (SWIG_IsNewObj(res1)) delete arg1;
8802   if (SWIG_IsNewObj(res2)) delete arg2;
8803   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
8804   return NULL;
8805 }
8806 
8807 
_wrap_new_AssertionError__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)8808 SWIGINTERN PyObject *_wrap_new_AssertionError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8809   PyObject *resultobj = 0;
8810   std::string *arg1 = 0 ;
8811   std::string *arg2 = 0 ;
8812   int arg3 ;
8813   int res1 = SWIG_OLDOBJ ;
8814   int res2 = SWIG_OLDOBJ ;
8815   int val3 ;
8816   int ecode3 = 0 ;
8817   Xapian::AssertionError *result = 0 ;
8818 
8819   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8820   {
8821     std::string *ptr = (std::string *)0;
8822     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
8823     if (!SWIG_IsOK(res1)) {
8824       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AssertionError" "', argument " "1"" of type '" "std::string const &""'");
8825     }
8826     if (!ptr) {
8827       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AssertionError" "', argument " "1"" of type '" "std::string const &""'");
8828     }
8829     arg1 = ptr;
8830   }
8831   {
8832     std::string *ptr = (std::string *)0;
8833     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
8834     if (!SWIG_IsOK(res2)) {
8835       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AssertionError" "', argument " "2"" of type '" "std::string const &""'");
8836     }
8837     if (!ptr) {
8838       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AssertionError" "', argument " "2"" of type '" "std::string const &""'");
8839     }
8840     arg2 = ptr;
8841   }
8842   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
8843   if (!SWIG_IsOK(ecode3)) {
8844     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_AssertionError" "', argument " "3"" of type '" "int""'");
8845   }
8846   arg3 = static_cast< int >(val3);
8847   {
8848     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8849     result = (Xapian::AssertionError *)new Xapian::AssertionError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
8850     SWIG_PYTHON_THREAD_END_ALLOW;
8851   }
8852   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__AssertionError, SWIG_POINTER_NEW |  0 );
8853   if (SWIG_IsNewObj(res1)) delete arg1;
8854   if (SWIG_IsNewObj(res2)) delete arg2;
8855   return resultobj;
8856 fail:
8857   if (SWIG_IsNewObj(res1)) delete arg1;
8858   if (SWIG_IsNewObj(res2)) delete arg2;
8859   return NULL;
8860 }
8861 
8862 
_wrap_new_AssertionError__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)8863 SWIGINTERN PyObject *_wrap_new_AssertionError__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8864   PyObject *resultobj = 0;
8865   std::string *arg1 = 0 ;
8866   std::string *arg2 = 0 ;
8867   int res1 = SWIG_OLDOBJ ;
8868   int res2 = SWIG_OLDOBJ ;
8869   Xapian::AssertionError *result = 0 ;
8870 
8871   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8872   {
8873     std::string *ptr = (std::string *)0;
8874     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
8875     if (!SWIG_IsOK(res1)) {
8876       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AssertionError" "', argument " "1"" of type '" "std::string const &""'");
8877     }
8878     if (!ptr) {
8879       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AssertionError" "', argument " "1"" of type '" "std::string const &""'");
8880     }
8881     arg1 = ptr;
8882   }
8883   {
8884     std::string *ptr = (std::string *)0;
8885     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
8886     if (!SWIG_IsOK(res2)) {
8887       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AssertionError" "', argument " "2"" of type '" "std::string const &""'");
8888     }
8889     if (!ptr) {
8890       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AssertionError" "', argument " "2"" of type '" "std::string const &""'");
8891     }
8892     arg2 = ptr;
8893   }
8894   {
8895     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8896     result = (Xapian::AssertionError *)new Xapian::AssertionError((std::string const &)*arg1,(std::string const &)*arg2);
8897     SWIG_PYTHON_THREAD_END_ALLOW;
8898   }
8899   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__AssertionError, SWIG_POINTER_NEW |  0 );
8900   if (SWIG_IsNewObj(res1)) delete arg1;
8901   if (SWIG_IsNewObj(res2)) delete arg2;
8902   return resultobj;
8903 fail:
8904   if (SWIG_IsNewObj(res1)) delete arg1;
8905   if (SWIG_IsNewObj(res2)) delete arg2;
8906   return NULL;
8907 }
8908 
8909 
_wrap_new_AssertionError__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)8910 SWIGINTERN PyObject *_wrap_new_AssertionError__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8911   PyObject *resultobj = 0;
8912   std::string *arg1 = 0 ;
8913   int res1 = SWIG_OLDOBJ ;
8914   Xapian::AssertionError *result = 0 ;
8915 
8916   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8917   {
8918     std::string *ptr = (std::string *)0;
8919     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
8920     if (!SWIG_IsOK(res1)) {
8921       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AssertionError" "', argument " "1"" of type '" "std::string const &""'");
8922     }
8923     if (!ptr) {
8924       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AssertionError" "', argument " "1"" of type '" "std::string const &""'");
8925     }
8926     arg1 = ptr;
8927   }
8928   {
8929     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8930     result = (Xapian::AssertionError *)new Xapian::AssertionError((std::string const &)*arg1);
8931     SWIG_PYTHON_THREAD_END_ALLOW;
8932   }
8933   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__AssertionError, SWIG_POINTER_NEW |  0 );
8934   if (SWIG_IsNewObj(res1)) delete arg1;
8935   return resultobj;
8936 fail:
8937   if (SWIG_IsNewObj(res1)) delete arg1;
8938   return NULL;
8939 }
8940 
8941 
_wrap_new_AssertionError__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)8942 SWIGINTERN PyObject *_wrap_new_AssertionError__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8943   PyObject *resultobj = 0;
8944   std::string *arg1 = 0 ;
8945   int arg2 ;
8946   int res1 = SWIG_OLDOBJ ;
8947   int val2 ;
8948   int ecode2 = 0 ;
8949   Xapian::AssertionError *result = 0 ;
8950 
8951   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8952   {
8953     std::string *ptr = (std::string *)0;
8954     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
8955     if (!SWIG_IsOK(res1)) {
8956       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AssertionError" "', argument " "1"" of type '" "std::string const &""'");
8957     }
8958     if (!ptr) {
8959       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AssertionError" "', argument " "1"" of type '" "std::string const &""'");
8960     }
8961     arg1 = ptr;
8962   }
8963   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
8964   if (!SWIG_IsOK(ecode2)) {
8965     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_AssertionError" "', argument " "2"" of type '" "int""'");
8966   }
8967   arg2 = static_cast< int >(val2);
8968   {
8969     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8970     result = (Xapian::AssertionError *)new Xapian::AssertionError((std::string const &)*arg1,arg2);
8971     SWIG_PYTHON_THREAD_END_ALLOW;
8972   }
8973   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__AssertionError, SWIG_POINTER_NEW |  0 );
8974   if (SWIG_IsNewObj(res1)) delete arg1;
8975   return resultobj;
8976 fail:
8977   if (SWIG_IsNewObj(res1)) delete arg1;
8978   return NULL;
8979 }
8980 
8981 
_wrap_new_AssertionError(PyObject * self,PyObject * args)8982 SWIGINTERN PyObject *_wrap_new_AssertionError(PyObject *self, PyObject *args) {
8983   Py_ssize_t argc;
8984   PyObject *argv[4] = {
8985     0
8986   };
8987 
8988   if (!(argc = SWIG_Python_UnpackTuple(args,"new_AssertionError",0,3,argv))) SWIG_fail;
8989   --argc;
8990   if (argc == 1) {
8991     return _wrap_new_AssertionError__SWIG_3(self, argc, argv);
8992   }
8993   if (argc == 2) {
8994     int _v = 0;
8995     {
8996       {
8997         int res = SWIG_AsVal_int(argv[1], NULL);
8998         _v = SWIG_CheckState(res);
8999       }
9000     }
9001     if (!_v) goto check_2;
9002     return _wrap_new_AssertionError__SWIG_4(self, argc, argv);
9003   }
9004 check_2:
9005 
9006   if (argc == 2) {
9007     return _wrap_new_AssertionError__SWIG_2(self, argc, argv);
9008   }
9009   if (argc == 3) {
9010     int _v = 0;
9011     {
9012       {
9013         int res = SWIG_AsVal_int(argv[2], NULL);
9014         _v = SWIG_CheckState(res);
9015       }
9016     }
9017     if (!_v) goto check_4;
9018     return _wrap_new_AssertionError__SWIG_1(self, argc, argv);
9019   }
9020 check_4:
9021 
9022   if (argc == 3) {
9023     return _wrap_new_AssertionError__SWIG_0(self, argc, argv);
9024   }
9025 
9026 fail:
9027   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_AssertionError'.\n"
9028     "  Possible C/C++ prototypes are:\n"
9029     "    Xapian::AssertionError::AssertionError(std::string const &,std::string const &,char const *)\n"
9030     "    Xapian::AssertionError::AssertionError(std::string const &,std::string const &,int)\n"
9031     "    Xapian::AssertionError::AssertionError(std::string const &,std::string const &)\n"
9032     "    Xapian::AssertionError::AssertionError(std::string const &)\n"
9033     "    Xapian::AssertionError::AssertionError(std::string const &,int)\n");
9034   return 0;
9035 }
9036 
9037 
_wrap_delete_AssertionError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9038 SWIGINTERN PyObject *_wrap_delete_AssertionError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9039   PyObject *resultobj = 0;
9040   Xapian::AssertionError *arg1 = (Xapian::AssertionError *) 0 ;
9041   void *argp1 = 0 ;
9042   int res1 = 0 ;
9043   PyObject *swig_obj[1] ;
9044 
9045   if (!args) SWIG_fail;
9046   swig_obj[0] = args;
9047   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__AssertionError, SWIG_POINTER_DISOWN |  0 );
9048   if (!SWIG_IsOK(res1)) {
9049     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AssertionError" "', argument " "1"" of type '" "Xapian::AssertionError *""'");
9050   }
9051   arg1 = reinterpret_cast< Xapian::AssertionError * >(argp1);
9052   {
9053     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
9054     delete arg1;
9055     SWIG_PYTHON_THREAD_END_ALLOW;
9056   }
9057   resultobj = SWIG_Py_Void();
9058   return resultobj;
9059 fail:
9060   return NULL;
9061 }
9062 
9063 
AssertionError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9064 SWIGINTERN PyObject *AssertionError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9065   PyObject *obj;
9066   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
9067   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__AssertionError, SWIG_NewClientData(obj));
9068   return SWIG_Py_Void();
9069 }
9070 
AssertionError_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9071 SWIGINTERN PyObject *AssertionError_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9072   return SWIG_Python_InitShadowInstance(args);
9073 }
9074 
_wrap_new_InvalidArgumentError__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)9075 SWIGINTERN PyObject *_wrap_new_InvalidArgumentError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
9076   PyObject *resultobj = 0;
9077   std::string *arg1 = 0 ;
9078   std::string *arg2 = 0 ;
9079   char *arg3 = (char *) 0 ;
9080   int res1 = SWIG_OLDOBJ ;
9081   int res2 = SWIG_OLDOBJ ;
9082   int res3 ;
9083   char *buf3 = 0 ;
9084   int alloc3 = 0 ;
9085   Xapian::InvalidArgumentError *result = 0 ;
9086 
9087   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
9088   {
9089     std::string *ptr = (std::string *)0;
9090     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
9091     if (!SWIG_IsOK(res1)) {
9092       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InvalidArgumentError" "', argument " "1"" of type '" "std::string const &""'");
9093     }
9094     if (!ptr) {
9095       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InvalidArgumentError" "', argument " "1"" of type '" "std::string const &""'");
9096     }
9097     arg1 = ptr;
9098   }
9099   {
9100     std::string *ptr = (std::string *)0;
9101     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
9102     if (!SWIG_IsOK(res2)) {
9103       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_InvalidArgumentError" "', argument " "2"" of type '" "std::string const &""'");
9104     }
9105     if (!ptr) {
9106       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InvalidArgumentError" "', argument " "2"" of type '" "std::string const &""'");
9107     }
9108     arg2 = ptr;
9109   }
9110   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
9111   if (!SWIG_IsOK(res3)) {
9112     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_InvalidArgumentError" "', argument " "3"" of type '" "char const *""'");
9113   }
9114   arg3 = reinterpret_cast< char * >(buf3);
9115   {
9116     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
9117     result = (Xapian::InvalidArgumentError *)new Xapian::InvalidArgumentError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
9118     SWIG_PYTHON_THREAD_END_ALLOW;
9119   }
9120   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__InvalidArgumentError, SWIG_POINTER_NEW |  0 );
9121   if (SWIG_IsNewObj(res1)) delete arg1;
9122   if (SWIG_IsNewObj(res2)) delete arg2;
9123   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
9124   return resultobj;
9125 fail:
9126   if (SWIG_IsNewObj(res1)) delete arg1;
9127   if (SWIG_IsNewObj(res2)) delete arg2;
9128   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
9129   return NULL;
9130 }
9131 
9132 
_wrap_new_InvalidArgumentError__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)9133 SWIGINTERN PyObject *_wrap_new_InvalidArgumentError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
9134   PyObject *resultobj = 0;
9135   std::string *arg1 = 0 ;
9136   std::string *arg2 = 0 ;
9137   int arg3 ;
9138   int res1 = SWIG_OLDOBJ ;
9139   int res2 = SWIG_OLDOBJ ;
9140   int val3 ;
9141   int ecode3 = 0 ;
9142   Xapian::InvalidArgumentError *result = 0 ;
9143 
9144   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
9145   {
9146     std::string *ptr = (std::string *)0;
9147     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
9148     if (!SWIG_IsOK(res1)) {
9149       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InvalidArgumentError" "', argument " "1"" of type '" "std::string const &""'");
9150     }
9151     if (!ptr) {
9152       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InvalidArgumentError" "', argument " "1"" of type '" "std::string const &""'");
9153     }
9154     arg1 = ptr;
9155   }
9156   {
9157     std::string *ptr = (std::string *)0;
9158     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
9159     if (!SWIG_IsOK(res2)) {
9160       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_InvalidArgumentError" "', argument " "2"" of type '" "std::string const &""'");
9161     }
9162     if (!ptr) {
9163       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InvalidArgumentError" "', argument " "2"" of type '" "std::string const &""'");
9164     }
9165     arg2 = ptr;
9166   }
9167   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
9168   if (!SWIG_IsOK(ecode3)) {
9169     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_InvalidArgumentError" "', argument " "3"" of type '" "int""'");
9170   }
9171   arg3 = static_cast< int >(val3);
9172   {
9173     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
9174     result = (Xapian::InvalidArgumentError *)new Xapian::InvalidArgumentError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
9175     SWIG_PYTHON_THREAD_END_ALLOW;
9176   }
9177   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__InvalidArgumentError, SWIG_POINTER_NEW |  0 );
9178   if (SWIG_IsNewObj(res1)) delete arg1;
9179   if (SWIG_IsNewObj(res2)) delete arg2;
9180   return resultobj;
9181 fail:
9182   if (SWIG_IsNewObj(res1)) delete arg1;
9183   if (SWIG_IsNewObj(res2)) delete arg2;
9184   return NULL;
9185 }
9186 
9187 
_wrap_new_InvalidArgumentError__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)9188 SWIGINTERN PyObject *_wrap_new_InvalidArgumentError__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
9189   PyObject *resultobj = 0;
9190   std::string *arg1 = 0 ;
9191   std::string *arg2 = 0 ;
9192   int res1 = SWIG_OLDOBJ ;
9193   int res2 = SWIG_OLDOBJ ;
9194   Xapian::InvalidArgumentError *result = 0 ;
9195 
9196   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
9197   {
9198     std::string *ptr = (std::string *)0;
9199     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
9200     if (!SWIG_IsOK(res1)) {
9201       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InvalidArgumentError" "', argument " "1"" of type '" "std::string const &""'");
9202     }
9203     if (!ptr) {
9204       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InvalidArgumentError" "', argument " "1"" of type '" "std::string const &""'");
9205     }
9206     arg1 = ptr;
9207   }
9208   {
9209     std::string *ptr = (std::string *)0;
9210     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
9211     if (!SWIG_IsOK(res2)) {
9212       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_InvalidArgumentError" "', argument " "2"" of type '" "std::string const &""'");
9213     }
9214     if (!ptr) {
9215       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InvalidArgumentError" "', argument " "2"" of type '" "std::string const &""'");
9216     }
9217     arg2 = ptr;
9218   }
9219   {
9220     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
9221     result = (Xapian::InvalidArgumentError *)new Xapian::InvalidArgumentError((std::string const &)*arg1,(std::string const &)*arg2);
9222     SWIG_PYTHON_THREAD_END_ALLOW;
9223   }
9224   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__InvalidArgumentError, SWIG_POINTER_NEW |  0 );
9225   if (SWIG_IsNewObj(res1)) delete arg1;
9226   if (SWIG_IsNewObj(res2)) delete arg2;
9227   return resultobj;
9228 fail:
9229   if (SWIG_IsNewObj(res1)) delete arg1;
9230   if (SWIG_IsNewObj(res2)) delete arg2;
9231   return NULL;
9232 }
9233 
9234 
_wrap_new_InvalidArgumentError__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)9235 SWIGINTERN PyObject *_wrap_new_InvalidArgumentError__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
9236   PyObject *resultobj = 0;
9237   std::string *arg1 = 0 ;
9238   int res1 = SWIG_OLDOBJ ;
9239   Xapian::InvalidArgumentError *result = 0 ;
9240 
9241   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
9242   {
9243     std::string *ptr = (std::string *)0;
9244     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
9245     if (!SWIG_IsOK(res1)) {
9246       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InvalidArgumentError" "', argument " "1"" of type '" "std::string const &""'");
9247     }
9248     if (!ptr) {
9249       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InvalidArgumentError" "', argument " "1"" of type '" "std::string const &""'");
9250     }
9251     arg1 = ptr;
9252   }
9253   {
9254     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
9255     result = (Xapian::InvalidArgumentError *)new Xapian::InvalidArgumentError((std::string const &)*arg1);
9256     SWIG_PYTHON_THREAD_END_ALLOW;
9257   }
9258   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__InvalidArgumentError, SWIG_POINTER_NEW |  0 );
9259   if (SWIG_IsNewObj(res1)) delete arg1;
9260   return resultobj;
9261 fail:
9262   if (SWIG_IsNewObj(res1)) delete arg1;
9263   return NULL;
9264 }
9265 
9266 
_wrap_new_InvalidArgumentError__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)9267 SWIGINTERN PyObject *_wrap_new_InvalidArgumentError__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
9268   PyObject *resultobj = 0;
9269   std::string *arg1 = 0 ;
9270   int arg2 ;
9271   int res1 = SWIG_OLDOBJ ;
9272   int val2 ;
9273   int ecode2 = 0 ;
9274   Xapian::InvalidArgumentError *result = 0 ;
9275 
9276   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
9277   {
9278     std::string *ptr = (std::string *)0;
9279     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
9280     if (!SWIG_IsOK(res1)) {
9281       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InvalidArgumentError" "', argument " "1"" of type '" "std::string const &""'");
9282     }
9283     if (!ptr) {
9284       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InvalidArgumentError" "', argument " "1"" of type '" "std::string const &""'");
9285     }
9286     arg1 = ptr;
9287   }
9288   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
9289   if (!SWIG_IsOK(ecode2)) {
9290     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_InvalidArgumentError" "', argument " "2"" of type '" "int""'");
9291   }
9292   arg2 = static_cast< int >(val2);
9293   {
9294     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
9295     result = (Xapian::InvalidArgumentError *)new Xapian::InvalidArgumentError((std::string const &)*arg1,arg2);
9296     SWIG_PYTHON_THREAD_END_ALLOW;
9297   }
9298   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__InvalidArgumentError, SWIG_POINTER_NEW |  0 );
9299   if (SWIG_IsNewObj(res1)) delete arg1;
9300   return resultobj;
9301 fail:
9302   if (SWIG_IsNewObj(res1)) delete arg1;
9303   return NULL;
9304 }
9305 
9306 
_wrap_new_InvalidArgumentError(PyObject * self,PyObject * args)9307 SWIGINTERN PyObject *_wrap_new_InvalidArgumentError(PyObject *self, PyObject *args) {
9308   Py_ssize_t argc;
9309   PyObject *argv[4] = {
9310     0
9311   };
9312 
9313   if (!(argc = SWIG_Python_UnpackTuple(args,"new_InvalidArgumentError",0,3,argv))) SWIG_fail;
9314   --argc;
9315   if (argc == 1) {
9316     return _wrap_new_InvalidArgumentError__SWIG_3(self, argc, argv);
9317   }
9318   if (argc == 2) {
9319     int _v = 0;
9320     {
9321       {
9322         int res = SWIG_AsVal_int(argv[1], NULL);
9323         _v = SWIG_CheckState(res);
9324       }
9325     }
9326     if (!_v) goto check_2;
9327     return _wrap_new_InvalidArgumentError__SWIG_4(self, argc, argv);
9328   }
9329 check_2:
9330 
9331   if (argc == 2) {
9332     return _wrap_new_InvalidArgumentError__SWIG_2(self, argc, argv);
9333   }
9334   if (argc == 3) {
9335     int _v = 0;
9336     {
9337       {
9338         int res = SWIG_AsVal_int(argv[2], NULL);
9339         _v = SWIG_CheckState(res);
9340       }
9341     }
9342     if (!_v) goto check_4;
9343     return _wrap_new_InvalidArgumentError__SWIG_1(self, argc, argv);
9344   }
9345 check_4:
9346 
9347   if (argc == 3) {
9348     return _wrap_new_InvalidArgumentError__SWIG_0(self, argc, argv);
9349   }
9350 
9351 fail:
9352   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_InvalidArgumentError'.\n"
9353     "  Possible C/C++ prototypes are:\n"
9354     "    Xapian::InvalidArgumentError::InvalidArgumentError(std::string const &,std::string const &,char const *)\n"
9355     "    Xapian::InvalidArgumentError::InvalidArgumentError(std::string const &,std::string const &,int)\n"
9356     "    Xapian::InvalidArgumentError::InvalidArgumentError(std::string const &,std::string const &)\n"
9357     "    Xapian::InvalidArgumentError::InvalidArgumentError(std::string const &)\n"
9358     "    Xapian::InvalidArgumentError::InvalidArgumentError(std::string const &,int)\n");
9359   return 0;
9360 }
9361 
9362 
_wrap_delete_InvalidArgumentError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9363 SWIGINTERN PyObject *_wrap_delete_InvalidArgumentError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9364   PyObject *resultobj = 0;
9365   Xapian::InvalidArgumentError *arg1 = (Xapian::InvalidArgumentError *) 0 ;
9366   void *argp1 = 0 ;
9367   int res1 = 0 ;
9368   PyObject *swig_obj[1] ;
9369 
9370   if (!args) SWIG_fail;
9371   swig_obj[0] = args;
9372   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__InvalidArgumentError, SWIG_POINTER_DISOWN |  0 );
9373   if (!SWIG_IsOK(res1)) {
9374     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_InvalidArgumentError" "', argument " "1"" of type '" "Xapian::InvalidArgumentError *""'");
9375   }
9376   arg1 = reinterpret_cast< Xapian::InvalidArgumentError * >(argp1);
9377   {
9378     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
9379     delete arg1;
9380     SWIG_PYTHON_THREAD_END_ALLOW;
9381   }
9382   resultobj = SWIG_Py_Void();
9383   return resultobj;
9384 fail:
9385   return NULL;
9386 }
9387 
9388 
InvalidArgumentError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9389 SWIGINTERN PyObject *InvalidArgumentError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9390   PyObject *obj;
9391   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
9392   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__InvalidArgumentError, SWIG_NewClientData(obj));
9393   return SWIG_Py_Void();
9394 }
9395 
InvalidArgumentError_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9396 SWIGINTERN PyObject *InvalidArgumentError_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9397   return SWIG_Python_InitShadowInstance(args);
9398 }
9399 
_wrap_new_InvalidOperationError__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)9400 SWIGINTERN PyObject *_wrap_new_InvalidOperationError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
9401   PyObject *resultobj = 0;
9402   std::string *arg1 = 0 ;
9403   std::string *arg2 = 0 ;
9404   char *arg3 = (char *) 0 ;
9405   int res1 = SWIG_OLDOBJ ;
9406   int res2 = SWIG_OLDOBJ ;
9407   int res3 ;
9408   char *buf3 = 0 ;
9409   int alloc3 = 0 ;
9410   Xapian::InvalidOperationError *result = 0 ;
9411 
9412   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
9413   {
9414     std::string *ptr = (std::string *)0;
9415     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
9416     if (!SWIG_IsOK(res1)) {
9417       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InvalidOperationError" "', argument " "1"" of type '" "std::string const &""'");
9418     }
9419     if (!ptr) {
9420       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InvalidOperationError" "', argument " "1"" of type '" "std::string const &""'");
9421     }
9422     arg1 = ptr;
9423   }
9424   {
9425     std::string *ptr = (std::string *)0;
9426     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
9427     if (!SWIG_IsOK(res2)) {
9428       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_InvalidOperationError" "', argument " "2"" of type '" "std::string const &""'");
9429     }
9430     if (!ptr) {
9431       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InvalidOperationError" "', argument " "2"" of type '" "std::string const &""'");
9432     }
9433     arg2 = ptr;
9434   }
9435   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
9436   if (!SWIG_IsOK(res3)) {
9437     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_InvalidOperationError" "', argument " "3"" of type '" "char const *""'");
9438   }
9439   arg3 = reinterpret_cast< char * >(buf3);
9440   {
9441     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
9442     result = (Xapian::InvalidOperationError *)new Xapian::InvalidOperationError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
9443     SWIG_PYTHON_THREAD_END_ALLOW;
9444   }
9445   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__InvalidOperationError, SWIG_POINTER_NEW |  0 );
9446   if (SWIG_IsNewObj(res1)) delete arg1;
9447   if (SWIG_IsNewObj(res2)) delete arg2;
9448   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
9449   return resultobj;
9450 fail:
9451   if (SWIG_IsNewObj(res1)) delete arg1;
9452   if (SWIG_IsNewObj(res2)) delete arg2;
9453   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
9454   return NULL;
9455 }
9456 
9457 
_wrap_new_InvalidOperationError__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)9458 SWIGINTERN PyObject *_wrap_new_InvalidOperationError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
9459   PyObject *resultobj = 0;
9460   std::string *arg1 = 0 ;
9461   std::string *arg2 = 0 ;
9462   int arg3 ;
9463   int res1 = SWIG_OLDOBJ ;
9464   int res2 = SWIG_OLDOBJ ;
9465   int val3 ;
9466   int ecode3 = 0 ;
9467   Xapian::InvalidOperationError *result = 0 ;
9468 
9469   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
9470   {
9471     std::string *ptr = (std::string *)0;
9472     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
9473     if (!SWIG_IsOK(res1)) {
9474       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InvalidOperationError" "', argument " "1"" of type '" "std::string const &""'");
9475     }
9476     if (!ptr) {
9477       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InvalidOperationError" "', argument " "1"" of type '" "std::string const &""'");
9478     }
9479     arg1 = ptr;
9480   }
9481   {
9482     std::string *ptr = (std::string *)0;
9483     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
9484     if (!SWIG_IsOK(res2)) {
9485       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_InvalidOperationError" "', argument " "2"" of type '" "std::string const &""'");
9486     }
9487     if (!ptr) {
9488       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InvalidOperationError" "', argument " "2"" of type '" "std::string const &""'");
9489     }
9490     arg2 = ptr;
9491   }
9492   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
9493   if (!SWIG_IsOK(ecode3)) {
9494     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_InvalidOperationError" "', argument " "3"" of type '" "int""'");
9495   }
9496   arg3 = static_cast< int >(val3);
9497   {
9498     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
9499     result = (Xapian::InvalidOperationError *)new Xapian::InvalidOperationError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
9500     SWIG_PYTHON_THREAD_END_ALLOW;
9501   }
9502   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__InvalidOperationError, SWIG_POINTER_NEW |  0 );
9503   if (SWIG_IsNewObj(res1)) delete arg1;
9504   if (SWIG_IsNewObj(res2)) delete arg2;
9505   return resultobj;
9506 fail:
9507   if (SWIG_IsNewObj(res1)) delete arg1;
9508   if (SWIG_IsNewObj(res2)) delete arg2;
9509   return NULL;
9510 }
9511 
9512 
_wrap_new_InvalidOperationError__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)9513 SWIGINTERN PyObject *_wrap_new_InvalidOperationError__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
9514   PyObject *resultobj = 0;
9515   std::string *arg1 = 0 ;
9516   std::string *arg2 = 0 ;
9517   int res1 = SWIG_OLDOBJ ;
9518   int res2 = SWIG_OLDOBJ ;
9519   Xapian::InvalidOperationError *result = 0 ;
9520 
9521   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
9522   {
9523     std::string *ptr = (std::string *)0;
9524     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
9525     if (!SWIG_IsOK(res1)) {
9526       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InvalidOperationError" "', argument " "1"" of type '" "std::string const &""'");
9527     }
9528     if (!ptr) {
9529       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InvalidOperationError" "', argument " "1"" of type '" "std::string const &""'");
9530     }
9531     arg1 = ptr;
9532   }
9533   {
9534     std::string *ptr = (std::string *)0;
9535     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
9536     if (!SWIG_IsOK(res2)) {
9537       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_InvalidOperationError" "', argument " "2"" of type '" "std::string const &""'");
9538     }
9539     if (!ptr) {
9540       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InvalidOperationError" "', argument " "2"" of type '" "std::string const &""'");
9541     }
9542     arg2 = ptr;
9543   }
9544   {
9545     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
9546     result = (Xapian::InvalidOperationError *)new Xapian::InvalidOperationError((std::string const &)*arg1,(std::string const &)*arg2);
9547     SWIG_PYTHON_THREAD_END_ALLOW;
9548   }
9549   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__InvalidOperationError, SWIG_POINTER_NEW |  0 );
9550   if (SWIG_IsNewObj(res1)) delete arg1;
9551   if (SWIG_IsNewObj(res2)) delete arg2;
9552   return resultobj;
9553 fail:
9554   if (SWIG_IsNewObj(res1)) delete arg1;
9555   if (SWIG_IsNewObj(res2)) delete arg2;
9556   return NULL;
9557 }
9558 
9559 
_wrap_new_InvalidOperationError__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)9560 SWIGINTERN PyObject *_wrap_new_InvalidOperationError__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
9561   PyObject *resultobj = 0;
9562   std::string *arg1 = 0 ;
9563   int res1 = SWIG_OLDOBJ ;
9564   Xapian::InvalidOperationError *result = 0 ;
9565 
9566   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
9567   {
9568     std::string *ptr = (std::string *)0;
9569     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
9570     if (!SWIG_IsOK(res1)) {
9571       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InvalidOperationError" "', argument " "1"" of type '" "std::string const &""'");
9572     }
9573     if (!ptr) {
9574       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InvalidOperationError" "', argument " "1"" of type '" "std::string const &""'");
9575     }
9576     arg1 = ptr;
9577   }
9578   {
9579     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
9580     result = (Xapian::InvalidOperationError *)new Xapian::InvalidOperationError((std::string const &)*arg1);
9581     SWIG_PYTHON_THREAD_END_ALLOW;
9582   }
9583   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__InvalidOperationError, SWIG_POINTER_NEW |  0 );
9584   if (SWIG_IsNewObj(res1)) delete arg1;
9585   return resultobj;
9586 fail:
9587   if (SWIG_IsNewObj(res1)) delete arg1;
9588   return NULL;
9589 }
9590 
9591 
_wrap_new_InvalidOperationError__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)9592 SWIGINTERN PyObject *_wrap_new_InvalidOperationError__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
9593   PyObject *resultobj = 0;
9594   std::string *arg1 = 0 ;
9595   int arg2 ;
9596   int res1 = SWIG_OLDOBJ ;
9597   int val2 ;
9598   int ecode2 = 0 ;
9599   Xapian::InvalidOperationError *result = 0 ;
9600 
9601   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
9602   {
9603     std::string *ptr = (std::string *)0;
9604     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
9605     if (!SWIG_IsOK(res1)) {
9606       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InvalidOperationError" "', argument " "1"" of type '" "std::string const &""'");
9607     }
9608     if (!ptr) {
9609       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InvalidOperationError" "', argument " "1"" of type '" "std::string const &""'");
9610     }
9611     arg1 = ptr;
9612   }
9613   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
9614   if (!SWIG_IsOK(ecode2)) {
9615     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_InvalidOperationError" "', argument " "2"" of type '" "int""'");
9616   }
9617   arg2 = static_cast< int >(val2);
9618   {
9619     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
9620     result = (Xapian::InvalidOperationError *)new Xapian::InvalidOperationError((std::string const &)*arg1,arg2);
9621     SWIG_PYTHON_THREAD_END_ALLOW;
9622   }
9623   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__InvalidOperationError, SWIG_POINTER_NEW |  0 );
9624   if (SWIG_IsNewObj(res1)) delete arg1;
9625   return resultobj;
9626 fail:
9627   if (SWIG_IsNewObj(res1)) delete arg1;
9628   return NULL;
9629 }
9630 
9631 
_wrap_new_InvalidOperationError(PyObject * self,PyObject * args)9632 SWIGINTERN PyObject *_wrap_new_InvalidOperationError(PyObject *self, PyObject *args) {
9633   Py_ssize_t argc;
9634   PyObject *argv[4] = {
9635     0
9636   };
9637 
9638   if (!(argc = SWIG_Python_UnpackTuple(args,"new_InvalidOperationError",0,3,argv))) SWIG_fail;
9639   --argc;
9640   if (argc == 1) {
9641     return _wrap_new_InvalidOperationError__SWIG_3(self, argc, argv);
9642   }
9643   if (argc == 2) {
9644     int _v = 0;
9645     {
9646       {
9647         int res = SWIG_AsVal_int(argv[1], NULL);
9648         _v = SWIG_CheckState(res);
9649       }
9650     }
9651     if (!_v) goto check_2;
9652     return _wrap_new_InvalidOperationError__SWIG_4(self, argc, argv);
9653   }
9654 check_2:
9655 
9656   if (argc == 2) {
9657     return _wrap_new_InvalidOperationError__SWIG_2(self, argc, argv);
9658   }
9659   if (argc == 3) {
9660     int _v = 0;
9661     {
9662       {
9663         int res = SWIG_AsVal_int(argv[2], NULL);
9664         _v = SWIG_CheckState(res);
9665       }
9666     }
9667     if (!_v) goto check_4;
9668     return _wrap_new_InvalidOperationError__SWIG_1(self, argc, argv);
9669   }
9670 check_4:
9671 
9672   if (argc == 3) {
9673     return _wrap_new_InvalidOperationError__SWIG_0(self, argc, argv);
9674   }
9675 
9676 fail:
9677   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_InvalidOperationError'.\n"
9678     "  Possible C/C++ prototypes are:\n"
9679     "    Xapian::InvalidOperationError::InvalidOperationError(std::string const &,std::string const &,char const *)\n"
9680     "    Xapian::InvalidOperationError::InvalidOperationError(std::string const &,std::string const &,int)\n"
9681     "    Xapian::InvalidOperationError::InvalidOperationError(std::string const &,std::string const &)\n"
9682     "    Xapian::InvalidOperationError::InvalidOperationError(std::string const &)\n"
9683     "    Xapian::InvalidOperationError::InvalidOperationError(std::string const &,int)\n");
9684   return 0;
9685 }
9686 
9687 
_wrap_delete_InvalidOperationError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9688 SWIGINTERN PyObject *_wrap_delete_InvalidOperationError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9689   PyObject *resultobj = 0;
9690   Xapian::InvalidOperationError *arg1 = (Xapian::InvalidOperationError *) 0 ;
9691   void *argp1 = 0 ;
9692   int res1 = 0 ;
9693   PyObject *swig_obj[1] ;
9694 
9695   if (!args) SWIG_fail;
9696   swig_obj[0] = args;
9697   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__InvalidOperationError, SWIG_POINTER_DISOWN |  0 );
9698   if (!SWIG_IsOK(res1)) {
9699     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_InvalidOperationError" "', argument " "1"" of type '" "Xapian::InvalidOperationError *""'");
9700   }
9701   arg1 = reinterpret_cast< Xapian::InvalidOperationError * >(argp1);
9702   {
9703     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
9704     delete arg1;
9705     SWIG_PYTHON_THREAD_END_ALLOW;
9706   }
9707   resultobj = SWIG_Py_Void();
9708   return resultobj;
9709 fail:
9710   return NULL;
9711 }
9712 
9713 
InvalidOperationError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9714 SWIGINTERN PyObject *InvalidOperationError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9715   PyObject *obj;
9716   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
9717   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__InvalidOperationError, SWIG_NewClientData(obj));
9718   return SWIG_Py_Void();
9719 }
9720 
InvalidOperationError_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9721 SWIGINTERN PyObject *InvalidOperationError_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9722   return SWIG_Python_InitShadowInstance(args);
9723 }
9724 
_wrap_new_UnimplementedError__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)9725 SWIGINTERN PyObject *_wrap_new_UnimplementedError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
9726   PyObject *resultobj = 0;
9727   std::string *arg1 = 0 ;
9728   std::string *arg2 = 0 ;
9729   char *arg3 = (char *) 0 ;
9730   int res1 = SWIG_OLDOBJ ;
9731   int res2 = SWIG_OLDOBJ ;
9732   int res3 ;
9733   char *buf3 = 0 ;
9734   int alloc3 = 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       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_UnimplementedError" "', argument " "1"" of type '" "std::string const &""'");
9743     }
9744     if (!ptr) {
9745       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UnimplementedError" "', argument " "1"" of type '" "std::string const &""'");
9746     }
9747     arg1 = ptr;
9748   }
9749   {
9750     std::string *ptr = (std::string *)0;
9751     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
9752     if (!SWIG_IsOK(res2)) {
9753       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_UnimplementedError" "', argument " "2"" of type '" "std::string const &""'");
9754     }
9755     if (!ptr) {
9756       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UnimplementedError" "', argument " "2"" of type '" "std::string const &""'");
9757     }
9758     arg2 = ptr;
9759   }
9760   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
9761   if (!SWIG_IsOK(res3)) {
9762     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_UnimplementedError" "', argument " "3"" of type '" "char const *""'");
9763   }
9764   arg3 = reinterpret_cast< char * >(buf3);
9765   {
9766     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
9767     result = (Xapian::UnimplementedError *)new Xapian::UnimplementedError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
9768     SWIG_PYTHON_THREAD_END_ALLOW;
9769   }
9770   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__UnimplementedError, SWIG_POINTER_NEW |  0 );
9771   if (SWIG_IsNewObj(res1)) delete arg1;
9772   if (SWIG_IsNewObj(res2)) delete arg2;
9773   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
9774   return resultobj;
9775 fail:
9776   if (SWIG_IsNewObj(res1)) delete arg1;
9777   if (SWIG_IsNewObj(res2)) delete arg2;
9778   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
9779   return NULL;
9780 }
9781 
9782 
_wrap_new_UnimplementedError__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)9783 SWIGINTERN PyObject *_wrap_new_UnimplementedError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
9784   PyObject *resultobj = 0;
9785   std::string *arg1 = 0 ;
9786   std::string *arg2 = 0 ;
9787   int arg3 ;
9788   int res1 = SWIG_OLDOBJ ;
9789   int res2 = SWIG_OLDOBJ ;
9790   int val3 ;
9791   int ecode3 = 0 ;
9792   Xapian::UnimplementedError *result = 0 ;
9793 
9794   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
9795   {
9796     std::string *ptr = (std::string *)0;
9797     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
9798     if (!SWIG_IsOK(res1)) {
9799       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_UnimplementedError" "', argument " "1"" of type '" "std::string const &""'");
9800     }
9801     if (!ptr) {
9802       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UnimplementedError" "', argument " "1"" of type '" "std::string const &""'");
9803     }
9804     arg1 = ptr;
9805   }
9806   {
9807     std::string *ptr = (std::string *)0;
9808     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
9809     if (!SWIG_IsOK(res2)) {
9810       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_UnimplementedError" "', argument " "2"" of type '" "std::string const &""'");
9811     }
9812     if (!ptr) {
9813       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UnimplementedError" "', argument " "2"" of type '" "std::string const &""'");
9814     }
9815     arg2 = ptr;
9816   }
9817   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
9818   if (!SWIG_IsOK(ecode3)) {
9819     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_UnimplementedError" "', argument " "3"" of type '" "int""'");
9820   }
9821   arg3 = static_cast< int >(val3);
9822   {
9823     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
9824     result = (Xapian::UnimplementedError *)new Xapian::UnimplementedError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
9825     SWIG_PYTHON_THREAD_END_ALLOW;
9826   }
9827   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__UnimplementedError, SWIG_POINTER_NEW |  0 );
9828   if (SWIG_IsNewObj(res1)) delete arg1;
9829   if (SWIG_IsNewObj(res2)) delete arg2;
9830   return resultobj;
9831 fail:
9832   if (SWIG_IsNewObj(res1)) delete arg1;
9833   if (SWIG_IsNewObj(res2)) delete arg2;
9834   return NULL;
9835 }
9836 
9837 
_wrap_new_UnimplementedError__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)9838 SWIGINTERN PyObject *_wrap_new_UnimplementedError__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
9839   PyObject *resultobj = 0;
9840   std::string *arg1 = 0 ;
9841   std::string *arg2 = 0 ;
9842   int res1 = SWIG_OLDOBJ ;
9843   int res2 = SWIG_OLDOBJ ;
9844   Xapian::UnimplementedError *result = 0 ;
9845 
9846   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
9847   {
9848     std::string *ptr = (std::string *)0;
9849     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
9850     if (!SWIG_IsOK(res1)) {
9851       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_UnimplementedError" "', argument " "1"" of type '" "std::string const &""'");
9852     }
9853     if (!ptr) {
9854       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UnimplementedError" "', argument " "1"" of type '" "std::string const &""'");
9855     }
9856     arg1 = ptr;
9857   }
9858   {
9859     std::string *ptr = (std::string *)0;
9860     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
9861     if (!SWIG_IsOK(res2)) {
9862       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_UnimplementedError" "', argument " "2"" of type '" "std::string const &""'");
9863     }
9864     if (!ptr) {
9865       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UnimplementedError" "', argument " "2"" of type '" "std::string const &""'");
9866     }
9867     arg2 = ptr;
9868   }
9869   {
9870     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
9871     result = (Xapian::UnimplementedError *)new Xapian::UnimplementedError((std::string const &)*arg1,(std::string const &)*arg2);
9872     SWIG_PYTHON_THREAD_END_ALLOW;
9873   }
9874   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__UnimplementedError, SWIG_POINTER_NEW |  0 );
9875   if (SWIG_IsNewObj(res1)) delete arg1;
9876   if (SWIG_IsNewObj(res2)) delete arg2;
9877   return resultobj;
9878 fail:
9879   if (SWIG_IsNewObj(res1)) delete arg1;
9880   if (SWIG_IsNewObj(res2)) delete arg2;
9881   return NULL;
9882 }
9883 
9884 
_wrap_new_UnimplementedError__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)9885 SWIGINTERN PyObject *_wrap_new_UnimplementedError__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
9886   PyObject *resultobj = 0;
9887   std::string *arg1 = 0 ;
9888   int res1 = SWIG_OLDOBJ ;
9889   Xapian::UnimplementedError *result = 0 ;
9890 
9891   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
9892   {
9893     std::string *ptr = (std::string *)0;
9894     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
9895     if (!SWIG_IsOK(res1)) {
9896       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_UnimplementedError" "', argument " "1"" of type '" "std::string const &""'");
9897     }
9898     if (!ptr) {
9899       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UnimplementedError" "', argument " "1"" of type '" "std::string const &""'");
9900     }
9901     arg1 = ptr;
9902   }
9903   {
9904     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
9905     result = (Xapian::UnimplementedError *)new Xapian::UnimplementedError((std::string const &)*arg1);
9906     SWIG_PYTHON_THREAD_END_ALLOW;
9907   }
9908   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__UnimplementedError, SWIG_POINTER_NEW |  0 );
9909   if (SWIG_IsNewObj(res1)) delete arg1;
9910   return resultobj;
9911 fail:
9912   if (SWIG_IsNewObj(res1)) delete arg1;
9913   return NULL;
9914 }
9915 
9916 
_wrap_new_UnimplementedError__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)9917 SWIGINTERN PyObject *_wrap_new_UnimplementedError__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
9918   PyObject *resultobj = 0;
9919   std::string *arg1 = 0 ;
9920   int arg2 ;
9921   int res1 = SWIG_OLDOBJ ;
9922   int val2 ;
9923   int ecode2 = 0 ;
9924   Xapian::UnimplementedError *result = 0 ;
9925 
9926   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
9927   {
9928     std::string *ptr = (std::string *)0;
9929     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
9930     if (!SWIG_IsOK(res1)) {
9931       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_UnimplementedError" "', argument " "1"" of type '" "std::string const &""'");
9932     }
9933     if (!ptr) {
9934       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UnimplementedError" "', argument " "1"" of type '" "std::string const &""'");
9935     }
9936     arg1 = ptr;
9937   }
9938   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
9939   if (!SWIG_IsOK(ecode2)) {
9940     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_UnimplementedError" "', argument " "2"" of type '" "int""'");
9941   }
9942   arg2 = static_cast< int >(val2);
9943   {
9944     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
9945     result = (Xapian::UnimplementedError *)new Xapian::UnimplementedError((std::string const &)*arg1,arg2);
9946     SWIG_PYTHON_THREAD_END_ALLOW;
9947   }
9948   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__UnimplementedError, SWIG_POINTER_NEW |  0 );
9949   if (SWIG_IsNewObj(res1)) delete arg1;
9950   return resultobj;
9951 fail:
9952   if (SWIG_IsNewObj(res1)) delete arg1;
9953   return NULL;
9954 }
9955 
9956 
_wrap_new_UnimplementedError(PyObject * self,PyObject * args)9957 SWIGINTERN PyObject *_wrap_new_UnimplementedError(PyObject *self, PyObject *args) {
9958   Py_ssize_t argc;
9959   PyObject *argv[4] = {
9960     0
9961   };
9962 
9963   if (!(argc = SWIG_Python_UnpackTuple(args,"new_UnimplementedError",0,3,argv))) SWIG_fail;
9964   --argc;
9965   if (argc == 1) {
9966     return _wrap_new_UnimplementedError__SWIG_3(self, argc, argv);
9967   }
9968   if (argc == 2) {
9969     int _v = 0;
9970     {
9971       {
9972         int res = SWIG_AsVal_int(argv[1], NULL);
9973         _v = SWIG_CheckState(res);
9974       }
9975     }
9976     if (!_v) goto check_2;
9977     return _wrap_new_UnimplementedError__SWIG_4(self, argc, argv);
9978   }
9979 check_2:
9980 
9981   if (argc == 2) {
9982     return _wrap_new_UnimplementedError__SWIG_2(self, argc, argv);
9983   }
9984   if (argc == 3) {
9985     int _v = 0;
9986     {
9987       {
9988         int res = SWIG_AsVal_int(argv[2], NULL);
9989         _v = SWIG_CheckState(res);
9990       }
9991     }
9992     if (!_v) goto check_4;
9993     return _wrap_new_UnimplementedError__SWIG_1(self, argc, argv);
9994   }
9995 check_4:
9996 
9997   if (argc == 3) {
9998     return _wrap_new_UnimplementedError__SWIG_0(self, argc, argv);
9999   }
10000 
10001 fail:
10002   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_UnimplementedError'.\n"
10003     "  Possible C/C++ prototypes are:\n"
10004     "    Xapian::UnimplementedError::UnimplementedError(std::string const &,std::string const &,char const *)\n"
10005     "    Xapian::UnimplementedError::UnimplementedError(std::string const &,std::string const &,int)\n"
10006     "    Xapian::UnimplementedError::UnimplementedError(std::string const &,std::string const &)\n"
10007     "    Xapian::UnimplementedError::UnimplementedError(std::string const &)\n"
10008     "    Xapian::UnimplementedError::UnimplementedError(std::string const &,int)\n");
10009   return 0;
10010 }
10011 
10012 
_wrap_delete_UnimplementedError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10013 SWIGINTERN PyObject *_wrap_delete_UnimplementedError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10014   PyObject *resultobj = 0;
10015   Xapian::UnimplementedError *arg1 = (Xapian::UnimplementedError *) 0 ;
10016   void *argp1 = 0 ;
10017   int res1 = 0 ;
10018   PyObject *swig_obj[1] ;
10019 
10020   if (!args) SWIG_fail;
10021   swig_obj[0] = args;
10022   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__UnimplementedError, SWIG_POINTER_DISOWN |  0 );
10023   if (!SWIG_IsOK(res1)) {
10024     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_UnimplementedError" "', argument " "1"" of type '" "Xapian::UnimplementedError *""'");
10025   }
10026   arg1 = reinterpret_cast< Xapian::UnimplementedError * >(argp1);
10027   {
10028     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
10029     delete arg1;
10030     SWIG_PYTHON_THREAD_END_ALLOW;
10031   }
10032   resultobj = SWIG_Py_Void();
10033   return resultobj;
10034 fail:
10035   return NULL;
10036 }
10037 
10038 
UnimplementedError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10039 SWIGINTERN PyObject *UnimplementedError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10040   PyObject *obj;
10041   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
10042   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__UnimplementedError, SWIG_NewClientData(obj));
10043   return SWIG_Py_Void();
10044 }
10045 
UnimplementedError_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10046 SWIGINTERN PyObject *UnimplementedError_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10047   return SWIG_Python_InitShadowInstance(args);
10048 }
10049 
_wrap_new_DatabaseError__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)10050 SWIGINTERN PyObject *_wrap_new_DatabaseError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
10051   PyObject *resultobj = 0;
10052   std::string *arg1 = 0 ;
10053   std::string *arg2 = 0 ;
10054   char *arg3 = (char *) 0 ;
10055   int res1 = SWIG_OLDOBJ ;
10056   int res2 = SWIG_OLDOBJ ;
10057   int res3 ;
10058   char *buf3 = 0 ;
10059   int alloc3 = 0 ;
10060   Xapian::DatabaseError *result = 0 ;
10061 
10062   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
10063   {
10064     std::string *ptr = (std::string *)0;
10065     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
10066     if (!SWIG_IsOK(res1)) {
10067       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseError" "', argument " "1"" of type '" "std::string const &""'");
10068     }
10069     if (!ptr) {
10070       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseError" "', argument " "1"" of type '" "std::string const &""'");
10071     }
10072     arg1 = ptr;
10073   }
10074   {
10075     std::string *ptr = (std::string *)0;
10076     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
10077     if (!SWIG_IsOK(res2)) {
10078       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseError" "', argument " "2"" of type '" "std::string const &""'");
10079     }
10080     if (!ptr) {
10081       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseError" "', argument " "2"" of type '" "std::string const &""'");
10082     }
10083     arg2 = ptr;
10084   }
10085   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
10086   if (!SWIG_IsOK(res3)) {
10087     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatabaseError" "', argument " "3"" of type '" "char const *""'");
10088   }
10089   arg3 = reinterpret_cast< char * >(buf3);
10090   {
10091     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
10092     result = (Xapian::DatabaseError *)new Xapian::DatabaseError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
10093     SWIG_PYTHON_THREAD_END_ALLOW;
10094   }
10095   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseError, SWIG_POINTER_NEW |  0 );
10096   if (SWIG_IsNewObj(res1)) delete arg1;
10097   if (SWIG_IsNewObj(res2)) delete arg2;
10098   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
10099   return resultobj;
10100 fail:
10101   if (SWIG_IsNewObj(res1)) delete arg1;
10102   if (SWIG_IsNewObj(res2)) delete arg2;
10103   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
10104   return NULL;
10105 }
10106 
10107 
_wrap_new_DatabaseError__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)10108 SWIGINTERN PyObject *_wrap_new_DatabaseError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
10109   PyObject *resultobj = 0;
10110   std::string *arg1 = 0 ;
10111   std::string *arg2 = 0 ;
10112   int arg3 ;
10113   int res1 = SWIG_OLDOBJ ;
10114   int res2 = SWIG_OLDOBJ ;
10115   int val3 ;
10116   int ecode3 = 0 ;
10117   Xapian::DatabaseError *result = 0 ;
10118 
10119   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
10120   {
10121     std::string *ptr = (std::string *)0;
10122     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
10123     if (!SWIG_IsOK(res1)) {
10124       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseError" "', argument " "1"" of type '" "std::string const &""'");
10125     }
10126     if (!ptr) {
10127       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseError" "', argument " "1"" of type '" "std::string const &""'");
10128     }
10129     arg1 = ptr;
10130   }
10131   {
10132     std::string *ptr = (std::string *)0;
10133     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
10134     if (!SWIG_IsOK(res2)) {
10135       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseError" "', argument " "2"" of type '" "std::string const &""'");
10136     }
10137     if (!ptr) {
10138       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseError" "', argument " "2"" of type '" "std::string const &""'");
10139     }
10140     arg2 = ptr;
10141   }
10142   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
10143   if (!SWIG_IsOK(ecode3)) {
10144     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DatabaseError" "', argument " "3"" of type '" "int""'");
10145   }
10146   arg3 = static_cast< int >(val3);
10147   {
10148     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
10149     result = (Xapian::DatabaseError *)new Xapian::DatabaseError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
10150     SWIG_PYTHON_THREAD_END_ALLOW;
10151   }
10152   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseError, SWIG_POINTER_NEW |  0 );
10153   if (SWIG_IsNewObj(res1)) delete arg1;
10154   if (SWIG_IsNewObj(res2)) delete arg2;
10155   return resultobj;
10156 fail:
10157   if (SWIG_IsNewObj(res1)) delete arg1;
10158   if (SWIG_IsNewObj(res2)) delete arg2;
10159   return NULL;
10160 }
10161 
10162 
_wrap_new_DatabaseError__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)10163 SWIGINTERN PyObject *_wrap_new_DatabaseError__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
10164   PyObject *resultobj = 0;
10165   std::string *arg1 = 0 ;
10166   std::string *arg2 = 0 ;
10167   int res1 = SWIG_OLDOBJ ;
10168   int res2 = SWIG_OLDOBJ ;
10169   Xapian::DatabaseError *result = 0 ;
10170 
10171   if ((nobjs < 2) || (nobjs > 2)) 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       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseError" "', argument " "1"" of type '" "std::string const &""'");
10177     }
10178     if (!ptr) {
10179       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseError" "', argument " "1"" of type '" "std::string const &""'");
10180     }
10181     arg1 = ptr;
10182   }
10183   {
10184     std::string *ptr = (std::string *)0;
10185     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
10186     if (!SWIG_IsOK(res2)) {
10187       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseError" "', argument " "2"" of type '" "std::string const &""'");
10188     }
10189     if (!ptr) {
10190       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseError" "', argument " "2"" of type '" "std::string const &""'");
10191     }
10192     arg2 = ptr;
10193   }
10194   {
10195     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
10196     result = (Xapian::DatabaseError *)new Xapian::DatabaseError((std::string const &)*arg1,(std::string const &)*arg2);
10197     SWIG_PYTHON_THREAD_END_ALLOW;
10198   }
10199   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseError, SWIG_POINTER_NEW |  0 );
10200   if (SWIG_IsNewObj(res1)) delete arg1;
10201   if (SWIG_IsNewObj(res2)) delete arg2;
10202   return resultobj;
10203 fail:
10204   if (SWIG_IsNewObj(res1)) delete arg1;
10205   if (SWIG_IsNewObj(res2)) delete arg2;
10206   return NULL;
10207 }
10208 
10209 
_wrap_new_DatabaseError__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)10210 SWIGINTERN PyObject *_wrap_new_DatabaseError__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
10211   PyObject *resultobj = 0;
10212   std::string *arg1 = 0 ;
10213   int res1 = SWIG_OLDOBJ ;
10214   Xapian::DatabaseError *result = 0 ;
10215 
10216   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
10217   {
10218     std::string *ptr = (std::string *)0;
10219     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
10220     if (!SWIG_IsOK(res1)) {
10221       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseError" "', argument " "1"" of type '" "std::string const &""'");
10222     }
10223     if (!ptr) {
10224       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseError" "', argument " "1"" of type '" "std::string const &""'");
10225     }
10226     arg1 = ptr;
10227   }
10228   {
10229     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
10230     result = (Xapian::DatabaseError *)new Xapian::DatabaseError((std::string const &)*arg1);
10231     SWIG_PYTHON_THREAD_END_ALLOW;
10232   }
10233   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseError, SWIG_POINTER_NEW |  0 );
10234   if (SWIG_IsNewObj(res1)) delete arg1;
10235   return resultobj;
10236 fail:
10237   if (SWIG_IsNewObj(res1)) delete arg1;
10238   return NULL;
10239 }
10240 
10241 
_wrap_new_DatabaseError__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)10242 SWIGINTERN PyObject *_wrap_new_DatabaseError__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
10243   PyObject *resultobj = 0;
10244   std::string *arg1 = 0 ;
10245   int arg2 ;
10246   int res1 = SWIG_OLDOBJ ;
10247   int val2 ;
10248   int ecode2 = 0 ;
10249   Xapian::DatabaseError *result = 0 ;
10250 
10251   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
10252   {
10253     std::string *ptr = (std::string *)0;
10254     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
10255     if (!SWIG_IsOK(res1)) {
10256       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseError" "', argument " "1"" of type '" "std::string const &""'");
10257     }
10258     if (!ptr) {
10259       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseError" "', argument " "1"" of type '" "std::string const &""'");
10260     }
10261     arg1 = ptr;
10262   }
10263   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
10264   if (!SWIG_IsOK(ecode2)) {
10265     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatabaseError" "', argument " "2"" of type '" "int""'");
10266   }
10267   arg2 = static_cast< int >(val2);
10268   {
10269     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
10270     result = (Xapian::DatabaseError *)new Xapian::DatabaseError((std::string const &)*arg1,arg2);
10271     SWIG_PYTHON_THREAD_END_ALLOW;
10272   }
10273   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseError, SWIG_POINTER_NEW |  0 );
10274   if (SWIG_IsNewObj(res1)) delete arg1;
10275   return resultobj;
10276 fail:
10277   if (SWIG_IsNewObj(res1)) delete arg1;
10278   return NULL;
10279 }
10280 
10281 
_wrap_new_DatabaseError(PyObject * self,PyObject * args)10282 SWIGINTERN PyObject *_wrap_new_DatabaseError(PyObject *self, PyObject *args) {
10283   Py_ssize_t argc;
10284   PyObject *argv[4] = {
10285     0
10286   };
10287 
10288   if (!(argc = SWIG_Python_UnpackTuple(args,"new_DatabaseError",0,3,argv))) SWIG_fail;
10289   --argc;
10290   if (argc == 1) {
10291     return _wrap_new_DatabaseError__SWIG_3(self, argc, argv);
10292   }
10293   if (argc == 2) {
10294     int _v = 0;
10295     {
10296       {
10297         int res = SWIG_AsVal_int(argv[1], NULL);
10298         _v = SWIG_CheckState(res);
10299       }
10300     }
10301     if (!_v) goto check_2;
10302     return _wrap_new_DatabaseError__SWIG_4(self, argc, argv);
10303   }
10304 check_2:
10305 
10306   if (argc == 2) {
10307     return _wrap_new_DatabaseError__SWIG_2(self, argc, argv);
10308   }
10309   if (argc == 3) {
10310     int _v = 0;
10311     {
10312       {
10313         int res = SWIG_AsVal_int(argv[2], NULL);
10314         _v = SWIG_CheckState(res);
10315       }
10316     }
10317     if (!_v) goto check_4;
10318     return _wrap_new_DatabaseError__SWIG_1(self, argc, argv);
10319   }
10320 check_4:
10321 
10322   if (argc == 3) {
10323     return _wrap_new_DatabaseError__SWIG_0(self, argc, argv);
10324   }
10325 
10326 fail:
10327   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_DatabaseError'.\n"
10328     "  Possible C/C++ prototypes are:\n"
10329     "    Xapian::DatabaseError::DatabaseError(std::string const &,std::string const &,char const *)\n"
10330     "    Xapian::DatabaseError::DatabaseError(std::string const &,std::string const &,int)\n"
10331     "    Xapian::DatabaseError::DatabaseError(std::string const &,std::string const &)\n"
10332     "    Xapian::DatabaseError::DatabaseError(std::string const &)\n"
10333     "    Xapian::DatabaseError::DatabaseError(std::string const &,int)\n");
10334   return 0;
10335 }
10336 
10337 
_wrap_delete_DatabaseError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10338 SWIGINTERN PyObject *_wrap_delete_DatabaseError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10339   PyObject *resultobj = 0;
10340   Xapian::DatabaseError *arg1 = (Xapian::DatabaseError *) 0 ;
10341   void *argp1 = 0 ;
10342   int res1 = 0 ;
10343   PyObject *swig_obj[1] ;
10344 
10345   if (!args) SWIG_fail;
10346   swig_obj[0] = args;
10347   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__DatabaseError, SWIG_POINTER_DISOWN |  0 );
10348   if (!SWIG_IsOK(res1)) {
10349     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DatabaseError" "', argument " "1"" of type '" "Xapian::DatabaseError *""'");
10350   }
10351   arg1 = reinterpret_cast< Xapian::DatabaseError * >(argp1);
10352   {
10353     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
10354     delete arg1;
10355     SWIG_PYTHON_THREAD_END_ALLOW;
10356   }
10357   resultobj = SWIG_Py_Void();
10358   return resultobj;
10359 fail:
10360   return NULL;
10361 }
10362 
10363 
DatabaseError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10364 SWIGINTERN PyObject *DatabaseError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10365   PyObject *obj;
10366   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
10367   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__DatabaseError, SWIG_NewClientData(obj));
10368   return SWIG_Py_Void();
10369 }
10370 
DatabaseError_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10371 SWIGINTERN PyObject *DatabaseError_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10372   return SWIG_Python_InitShadowInstance(args);
10373 }
10374 
_wrap_new_DatabaseCorruptError__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)10375 SWIGINTERN PyObject *_wrap_new_DatabaseCorruptError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
10376   PyObject *resultobj = 0;
10377   std::string *arg1 = 0 ;
10378   std::string *arg2 = 0 ;
10379   char *arg3 = (char *) 0 ;
10380   int res1 = SWIG_OLDOBJ ;
10381   int res2 = SWIG_OLDOBJ ;
10382   int res3 ;
10383   char *buf3 = 0 ;
10384   int alloc3 = 0 ;
10385   Xapian::DatabaseCorruptError *result = 0 ;
10386 
10387   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
10388   {
10389     std::string *ptr = (std::string *)0;
10390     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
10391     if (!SWIG_IsOK(res1)) {
10392       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseCorruptError" "', argument " "1"" of type '" "std::string const &""'");
10393     }
10394     if (!ptr) {
10395       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseCorruptError" "', argument " "1"" of type '" "std::string const &""'");
10396     }
10397     arg1 = ptr;
10398   }
10399   {
10400     std::string *ptr = (std::string *)0;
10401     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
10402     if (!SWIG_IsOK(res2)) {
10403       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseCorruptError" "', argument " "2"" of type '" "std::string const &""'");
10404     }
10405     if (!ptr) {
10406       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseCorruptError" "', argument " "2"" of type '" "std::string const &""'");
10407     }
10408     arg2 = ptr;
10409   }
10410   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
10411   if (!SWIG_IsOK(res3)) {
10412     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatabaseCorruptError" "', argument " "3"" of type '" "char const *""'");
10413   }
10414   arg3 = reinterpret_cast< char * >(buf3);
10415   {
10416     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
10417     result = (Xapian::DatabaseCorruptError *)new Xapian::DatabaseCorruptError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
10418     SWIG_PYTHON_THREAD_END_ALLOW;
10419   }
10420   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseCorruptError, SWIG_POINTER_NEW |  0 );
10421   if (SWIG_IsNewObj(res1)) delete arg1;
10422   if (SWIG_IsNewObj(res2)) delete arg2;
10423   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
10424   return resultobj;
10425 fail:
10426   if (SWIG_IsNewObj(res1)) delete arg1;
10427   if (SWIG_IsNewObj(res2)) delete arg2;
10428   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
10429   return NULL;
10430 }
10431 
10432 
_wrap_new_DatabaseCorruptError__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)10433 SWIGINTERN PyObject *_wrap_new_DatabaseCorruptError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
10434   PyObject *resultobj = 0;
10435   std::string *arg1 = 0 ;
10436   std::string *arg2 = 0 ;
10437   int arg3 ;
10438   int res1 = SWIG_OLDOBJ ;
10439   int res2 = SWIG_OLDOBJ ;
10440   int val3 ;
10441   int ecode3 = 0 ;
10442   Xapian::DatabaseCorruptError *result = 0 ;
10443 
10444   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
10445   {
10446     std::string *ptr = (std::string *)0;
10447     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
10448     if (!SWIG_IsOK(res1)) {
10449       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseCorruptError" "', argument " "1"" of type '" "std::string const &""'");
10450     }
10451     if (!ptr) {
10452       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseCorruptError" "', argument " "1"" of type '" "std::string const &""'");
10453     }
10454     arg1 = ptr;
10455   }
10456   {
10457     std::string *ptr = (std::string *)0;
10458     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
10459     if (!SWIG_IsOK(res2)) {
10460       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseCorruptError" "', argument " "2"" of type '" "std::string const &""'");
10461     }
10462     if (!ptr) {
10463       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseCorruptError" "', argument " "2"" of type '" "std::string const &""'");
10464     }
10465     arg2 = ptr;
10466   }
10467   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
10468   if (!SWIG_IsOK(ecode3)) {
10469     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DatabaseCorruptError" "', argument " "3"" of type '" "int""'");
10470   }
10471   arg3 = static_cast< int >(val3);
10472   {
10473     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
10474     result = (Xapian::DatabaseCorruptError *)new Xapian::DatabaseCorruptError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
10475     SWIG_PYTHON_THREAD_END_ALLOW;
10476   }
10477   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseCorruptError, SWIG_POINTER_NEW |  0 );
10478   if (SWIG_IsNewObj(res1)) delete arg1;
10479   if (SWIG_IsNewObj(res2)) delete arg2;
10480   return resultobj;
10481 fail:
10482   if (SWIG_IsNewObj(res1)) delete arg1;
10483   if (SWIG_IsNewObj(res2)) delete arg2;
10484   return NULL;
10485 }
10486 
10487 
_wrap_new_DatabaseCorruptError__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)10488 SWIGINTERN PyObject *_wrap_new_DatabaseCorruptError__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
10489   PyObject *resultobj = 0;
10490   std::string *arg1 = 0 ;
10491   std::string *arg2 = 0 ;
10492   int res1 = SWIG_OLDOBJ ;
10493   int res2 = SWIG_OLDOBJ ;
10494   Xapian::DatabaseCorruptError *result = 0 ;
10495 
10496   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
10497   {
10498     std::string *ptr = (std::string *)0;
10499     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
10500     if (!SWIG_IsOK(res1)) {
10501       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseCorruptError" "', argument " "1"" of type '" "std::string const &""'");
10502     }
10503     if (!ptr) {
10504       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseCorruptError" "', argument " "1"" of type '" "std::string const &""'");
10505     }
10506     arg1 = ptr;
10507   }
10508   {
10509     std::string *ptr = (std::string *)0;
10510     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
10511     if (!SWIG_IsOK(res2)) {
10512       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseCorruptError" "', argument " "2"" of type '" "std::string const &""'");
10513     }
10514     if (!ptr) {
10515       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseCorruptError" "', argument " "2"" of type '" "std::string const &""'");
10516     }
10517     arg2 = ptr;
10518   }
10519   {
10520     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
10521     result = (Xapian::DatabaseCorruptError *)new Xapian::DatabaseCorruptError((std::string const &)*arg1,(std::string const &)*arg2);
10522     SWIG_PYTHON_THREAD_END_ALLOW;
10523   }
10524   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseCorruptError, SWIG_POINTER_NEW |  0 );
10525   if (SWIG_IsNewObj(res1)) delete arg1;
10526   if (SWIG_IsNewObj(res2)) delete arg2;
10527   return resultobj;
10528 fail:
10529   if (SWIG_IsNewObj(res1)) delete arg1;
10530   if (SWIG_IsNewObj(res2)) delete arg2;
10531   return NULL;
10532 }
10533 
10534 
_wrap_new_DatabaseCorruptError__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)10535 SWIGINTERN PyObject *_wrap_new_DatabaseCorruptError__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
10536   PyObject *resultobj = 0;
10537   std::string *arg1 = 0 ;
10538   int res1 = SWIG_OLDOBJ ;
10539   Xapian::DatabaseCorruptError *result = 0 ;
10540 
10541   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
10542   {
10543     std::string *ptr = (std::string *)0;
10544     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
10545     if (!SWIG_IsOK(res1)) {
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   {
10554     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
10555     result = (Xapian::DatabaseCorruptError *)new Xapian::DatabaseCorruptError((std::string const &)*arg1);
10556     SWIG_PYTHON_THREAD_END_ALLOW;
10557   }
10558   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseCorruptError, SWIG_POINTER_NEW |  0 );
10559   if (SWIG_IsNewObj(res1)) delete arg1;
10560   return resultobj;
10561 fail:
10562   if (SWIG_IsNewObj(res1)) delete arg1;
10563   return NULL;
10564 }
10565 
10566 
_wrap_new_DatabaseCorruptError__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)10567 SWIGINTERN PyObject *_wrap_new_DatabaseCorruptError__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
10568   PyObject *resultobj = 0;
10569   std::string *arg1 = 0 ;
10570   int arg2 ;
10571   int res1 = SWIG_OLDOBJ ;
10572   int val2 ;
10573   int ecode2 = 0 ;
10574   Xapian::DatabaseCorruptError *result = 0 ;
10575 
10576   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
10577   {
10578     std::string *ptr = (std::string *)0;
10579     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
10580     if (!SWIG_IsOK(res1)) {
10581       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseCorruptError" "', argument " "1"" of type '" "std::string const &""'");
10582     }
10583     if (!ptr) {
10584       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseCorruptError" "', argument " "1"" of type '" "std::string const &""'");
10585     }
10586     arg1 = ptr;
10587   }
10588   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
10589   if (!SWIG_IsOK(ecode2)) {
10590     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatabaseCorruptError" "', argument " "2"" of type '" "int""'");
10591   }
10592   arg2 = static_cast< int >(val2);
10593   {
10594     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
10595     result = (Xapian::DatabaseCorruptError *)new Xapian::DatabaseCorruptError((std::string const &)*arg1,arg2);
10596     SWIG_PYTHON_THREAD_END_ALLOW;
10597   }
10598   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseCorruptError, SWIG_POINTER_NEW |  0 );
10599   if (SWIG_IsNewObj(res1)) delete arg1;
10600   return resultobj;
10601 fail:
10602   if (SWIG_IsNewObj(res1)) delete arg1;
10603   return NULL;
10604 }
10605 
10606 
_wrap_new_DatabaseCorruptError(PyObject * self,PyObject * args)10607 SWIGINTERN PyObject *_wrap_new_DatabaseCorruptError(PyObject *self, PyObject *args) {
10608   Py_ssize_t argc;
10609   PyObject *argv[4] = {
10610     0
10611   };
10612 
10613   if (!(argc = SWIG_Python_UnpackTuple(args,"new_DatabaseCorruptError",0,3,argv))) SWIG_fail;
10614   --argc;
10615   if (argc == 1) {
10616     return _wrap_new_DatabaseCorruptError__SWIG_3(self, argc, argv);
10617   }
10618   if (argc == 2) {
10619     int _v = 0;
10620     {
10621       {
10622         int res = SWIG_AsVal_int(argv[1], NULL);
10623         _v = SWIG_CheckState(res);
10624       }
10625     }
10626     if (!_v) goto check_2;
10627     return _wrap_new_DatabaseCorruptError__SWIG_4(self, argc, argv);
10628   }
10629 check_2:
10630 
10631   if (argc == 2) {
10632     return _wrap_new_DatabaseCorruptError__SWIG_2(self, argc, argv);
10633   }
10634   if (argc == 3) {
10635     int _v = 0;
10636     {
10637       {
10638         int res = SWIG_AsVal_int(argv[2], NULL);
10639         _v = SWIG_CheckState(res);
10640       }
10641     }
10642     if (!_v) goto check_4;
10643     return _wrap_new_DatabaseCorruptError__SWIG_1(self, argc, argv);
10644   }
10645 check_4:
10646 
10647   if (argc == 3) {
10648     return _wrap_new_DatabaseCorruptError__SWIG_0(self, argc, argv);
10649   }
10650 
10651 fail:
10652   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_DatabaseCorruptError'.\n"
10653     "  Possible C/C++ prototypes are:\n"
10654     "    Xapian::DatabaseCorruptError::DatabaseCorruptError(std::string const &,std::string const &,char const *)\n"
10655     "    Xapian::DatabaseCorruptError::DatabaseCorruptError(std::string const &,std::string const &,int)\n"
10656     "    Xapian::DatabaseCorruptError::DatabaseCorruptError(std::string const &,std::string const &)\n"
10657     "    Xapian::DatabaseCorruptError::DatabaseCorruptError(std::string const &)\n"
10658     "    Xapian::DatabaseCorruptError::DatabaseCorruptError(std::string const &,int)\n");
10659   return 0;
10660 }
10661 
10662 
_wrap_delete_DatabaseCorruptError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10663 SWIGINTERN PyObject *_wrap_delete_DatabaseCorruptError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10664   PyObject *resultobj = 0;
10665   Xapian::DatabaseCorruptError *arg1 = (Xapian::DatabaseCorruptError *) 0 ;
10666   void *argp1 = 0 ;
10667   int res1 = 0 ;
10668   PyObject *swig_obj[1] ;
10669 
10670   if (!args) SWIG_fail;
10671   swig_obj[0] = args;
10672   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__DatabaseCorruptError, SWIG_POINTER_DISOWN |  0 );
10673   if (!SWIG_IsOK(res1)) {
10674     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DatabaseCorruptError" "', argument " "1"" of type '" "Xapian::DatabaseCorruptError *""'");
10675   }
10676   arg1 = reinterpret_cast< Xapian::DatabaseCorruptError * >(argp1);
10677   {
10678     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
10679     delete arg1;
10680     SWIG_PYTHON_THREAD_END_ALLOW;
10681   }
10682   resultobj = SWIG_Py_Void();
10683   return resultobj;
10684 fail:
10685   return NULL;
10686 }
10687 
10688 
DatabaseCorruptError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10689 SWIGINTERN PyObject *DatabaseCorruptError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10690   PyObject *obj;
10691   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
10692   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__DatabaseCorruptError, SWIG_NewClientData(obj));
10693   return SWIG_Py_Void();
10694 }
10695 
DatabaseCorruptError_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10696 SWIGINTERN PyObject *DatabaseCorruptError_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10697   return SWIG_Python_InitShadowInstance(args);
10698 }
10699 
_wrap_new_DatabaseCreateError__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)10700 SWIGINTERN PyObject *_wrap_new_DatabaseCreateError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
10701   PyObject *resultobj = 0;
10702   std::string *arg1 = 0 ;
10703   std::string *arg2 = 0 ;
10704   char *arg3 = (char *) 0 ;
10705   int res1 = SWIG_OLDOBJ ;
10706   int res2 = SWIG_OLDOBJ ;
10707   int res3 ;
10708   char *buf3 = 0 ;
10709   int alloc3 = 0 ;
10710   Xapian::DatabaseCreateError *result = 0 ;
10711 
10712   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
10713   {
10714     std::string *ptr = (std::string *)0;
10715     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
10716     if (!SWIG_IsOK(res1)) {
10717       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseCreateError" "', argument " "1"" of type '" "std::string const &""'");
10718     }
10719     if (!ptr) {
10720       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseCreateError" "', argument " "1"" of type '" "std::string const &""'");
10721     }
10722     arg1 = ptr;
10723   }
10724   {
10725     std::string *ptr = (std::string *)0;
10726     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
10727     if (!SWIG_IsOK(res2)) {
10728       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseCreateError" "', argument " "2"" of type '" "std::string const &""'");
10729     }
10730     if (!ptr) {
10731       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseCreateError" "', argument " "2"" of type '" "std::string const &""'");
10732     }
10733     arg2 = ptr;
10734   }
10735   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
10736   if (!SWIG_IsOK(res3)) {
10737     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatabaseCreateError" "', argument " "3"" of type '" "char const *""'");
10738   }
10739   arg3 = reinterpret_cast< char * >(buf3);
10740   {
10741     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
10742     result = (Xapian::DatabaseCreateError *)new Xapian::DatabaseCreateError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
10743     SWIG_PYTHON_THREAD_END_ALLOW;
10744   }
10745   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseCreateError, SWIG_POINTER_NEW |  0 );
10746   if (SWIG_IsNewObj(res1)) delete arg1;
10747   if (SWIG_IsNewObj(res2)) delete arg2;
10748   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
10749   return resultobj;
10750 fail:
10751   if (SWIG_IsNewObj(res1)) delete arg1;
10752   if (SWIG_IsNewObj(res2)) delete arg2;
10753   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
10754   return NULL;
10755 }
10756 
10757 
_wrap_new_DatabaseCreateError__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)10758 SWIGINTERN PyObject *_wrap_new_DatabaseCreateError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
10759   PyObject *resultobj = 0;
10760   std::string *arg1 = 0 ;
10761   std::string *arg2 = 0 ;
10762   int arg3 ;
10763   int res1 = SWIG_OLDOBJ ;
10764   int res2 = SWIG_OLDOBJ ;
10765   int val3 ;
10766   int ecode3 = 0 ;
10767   Xapian::DatabaseCreateError *result = 0 ;
10768 
10769   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
10770   {
10771     std::string *ptr = (std::string *)0;
10772     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
10773     if (!SWIG_IsOK(res1)) {
10774       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseCreateError" "', argument " "1"" of type '" "std::string const &""'");
10775     }
10776     if (!ptr) {
10777       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseCreateError" "', argument " "1"" of type '" "std::string const &""'");
10778     }
10779     arg1 = ptr;
10780   }
10781   {
10782     std::string *ptr = (std::string *)0;
10783     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
10784     if (!SWIG_IsOK(res2)) {
10785       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseCreateError" "', argument " "2"" of type '" "std::string const &""'");
10786     }
10787     if (!ptr) {
10788       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseCreateError" "', argument " "2"" of type '" "std::string const &""'");
10789     }
10790     arg2 = ptr;
10791   }
10792   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
10793   if (!SWIG_IsOK(ecode3)) {
10794     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DatabaseCreateError" "', argument " "3"" of type '" "int""'");
10795   }
10796   arg3 = static_cast< int >(val3);
10797   {
10798     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
10799     result = (Xapian::DatabaseCreateError *)new Xapian::DatabaseCreateError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
10800     SWIG_PYTHON_THREAD_END_ALLOW;
10801   }
10802   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseCreateError, SWIG_POINTER_NEW |  0 );
10803   if (SWIG_IsNewObj(res1)) delete arg1;
10804   if (SWIG_IsNewObj(res2)) delete arg2;
10805   return resultobj;
10806 fail:
10807   if (SWIG_IsNewObj(res1)) delete arg1;
10808   if (SWIG_IsNewObj(res2)) delete arg2;
10809   return NULL;
10810 }
10811 
10812 
_wrap_new_DatabaseCreateError__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)10813 SWIGINTERN PyObject *_wrap_new_DatabaseCreateError__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
10814   PyObject *resultobj = 0;
10815   std::string *arg1 = 0 ;
10816   std::string *arg2 = 0 ;
10817   int res1 = SWIG_OLDOBJ ;
10818   int res2 = SWIG_OLDOBJ ;
10819   Xapian::DatabaseCreateError *result = 0 ;
10820 
10821   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
10822   {
10823     std::string *ptr = (std::string *)0;
10824     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
10825     if (!SWIG_IsOK(res1)) {
10826       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseCreateError" "', argument " "1"" of type '" "std::string const &""'");
10827     }
10828     if (!ptr) {
10829       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseCreateError" "', argument " "1"" of type '" "std::string const &""'");
10830     }
10831     arg1 = ptr;
10832   }
10833   {
10834     std::string *ptr = (std::string *)0;
10835     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
10836     if (!SWIG_IsOK(res2)) {
10837       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseCreateError" "', argument " "2"" of type '" "std::string const &""'");
10838     }
10839     if (!ptr) {
10840       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseCreateError" "', argument " "2"" of type '" "std::string const &""'");
10841     }
10842     arg2 = ptr;
10843   }
10844   {
10845     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
10846     result = (Xapian::DatabaseCreateError *)new Xapian::DatabaseCreateError((std::string const &)*arg1,(std::string const &)*arg2);
10847     SWIG_PYTHON_THREAD_END_ALLOW;
10848   }
10849   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseCreateError, SWIG_POINTER_NEW |  0 );
10850   if (SWIG_IsNewObj(res1)) delete arg1;
10851   if (SWIG_IsNewObj(res2)) delete arg2;
10852   return resultobj;
10853 fail:
10854   if (SWIG_IsNewObj(res1)) delete arg1;
10855   if (SWIG_IsNewObj(res2)) delete arg2;
10856   return NULL;
10857 }
10858 
10859 
_wrap_new_DatabaseCreateError__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)10860 SWIGINTERN PyObject *_wrap_new_DatabaseCreateError__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
10861   PyObject *resultobj = 0;
10862   std::string *arg1 = 0 ;
10863   int res1 = SWIG_OLDOBJ ;
10864   Xapian::DatabaseCreateError *result = 0 ;
10865 
10866   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
10867   {
10868     std::string *ptr = (std::string *)0;
10869     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
10870     if (!SWIG_IsOK(res1)) {
10871       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseCreateError" "', argument " "1"" of type '" "std::string const &""'");
10872     }
10873     if (!ptr) {
10874       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseCreateError" "', argument " "1"" of type '" "std::string const &""'");
10875     }
10876     arg1 = ptr;
10877   }
10878   {
10879     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
10880     result = (Xapian::DatabaseCreateError *)new Xapian::DatabaseCreateError((std::string const &)*arg1);
10881     SWIG_PYTHON_THREAD_END_ALLOW;
10882   }
10883   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseCreateError, SWIG_POINTER_NEW |  0 );
10884   if (SWIG_IsNewObj(res1)) delete arg1;
10885   return resultobj;
10886 fail:
10887   if (SWIG_IsNewObj(res1)) delete arg1;
10888   return NULL;
10889 }
10890 
10891 
_wrap_new_DatabaseCreateError__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)10892 SWIGINTERN PyObject *_wrap_new_DatabaseCreateError__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
10893   PyObject *resultobj = 0;
10894   std::string *arg1 = 0 ;
10895   int arg2 ;
10896   int res1 = SWIG_OLDOBJ ;
10897   int val2 ;
10898   int ecode2 = 0 ;
10899   Xapian::DatabaseCreateError *result = 0 ;
10900 
10901   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
10902   {
10903     std::string *ptr = (std::string *)0;
10904     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
10905     if (!SWIG_IsOK(res1)) {
10906       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseCreateError" "', argument " "1"" of type '" "std::string const &""'");
10907     }
10908     if (!ptr) {
10909       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseCreateError" "', argument " "1"" of type '" "std::string const &""'");
10910     }
10911     arg1 = ptr;
10912   }
10913   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
10914   if (!SWIG_IsOK(ecode2)) {
10915     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatabaseCreateError" "', argument " "2"" of type '" "int""'");
10916   }
10917   arg2 = static_cast< int >(val2);
10918   {
10919     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
10920     result = (Xapian::DatabaseCreateError *)new Xapian::DatabaseCreateError((std::string const &)*arg1,arg2);
10921     SWIG_PYTHON_THREAD_END_ALLOW;
10922   }
10923   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseCreateError, SWIG_POINTER_NEW |  0 );
10924   if (SWIG_IsNewObj(res1)) delete arg1;
10925   return resultobj;
10926 fail:
10927   if (SWIG_IsNewObj(res1)) delete arg1;
10928   return NULL;
10929 }
10930 
10931 
_wrap_new_DatabaseCreateError(PyObject * self,PyObject * args)10932 SWIGINTERN PyObject *_wrap_new_DatabaseCreateError(PyObject *self, PyObject *args) {
10933   Py_ssize_t argc;
10934   PyObject *argv[4] = {
10935     0
10936   };
10937 
10938   if (!(argc = SWIG_Python_UnpackTuple(args,"new_DatabaseCreateError",0,3,argv))) SWIG_fail;
10939   --argc;
10940   if (argc == 1) {
10941     return _wrap_new_DatabaseCreateError__SWIG_3(self, argc, argv);
10942   }
10943   if (argc == 2) {
10944     int _v = 0;
10945     {
10946       {
10947         int res = SWIG_AsVal_int(argv[1], NULL);
10948         _v = SWIG_CheckState(res);
10949       }
10950     }
10951     if (!_v) goto check_2;
10952     return _wrap_new_DatabaseCreateError__SWIG_4(self, argc, argv);
10953   }
10954 check_2:
10955 
10956   if (argc == 2) {
10957     return _wrap_new_DatabaseCreateError__SWIG_2(self, argc, argv);
10958   }
10959   if (argc == 3) {
10960     int _v = 0;
10961     {
10962       {
10963         int res = SWIG_AsVal_int(argv[2], NULL);
10964         _v = SWIG_CheckState(res);
10965       }
10966     }
10967     if (!_v) goto check_4;
10968     return _wrap_new_DatabaseCreateError__SWIG_1(self, argc, argv);
10969   }
10970 check_4:
10971 
10972   if (argc == 3) {
10973     return _wrap_new_DatabaseCreateError__SWIG_0(self, argc, argv);
10974   }
10975 
10976 fail:
10977   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_DatabaseCreateError'.\n"
10978     "  Possible C/C++ prototypes are:\n"
10979     "    Xapian::DatabaseCreateError::DatabaseCreateError(std::string const &,std::string const &,char const *)\n"
10980     "    Xapian::DatabaseCreateError::DatabaseCreateError(std::string const &,std::string const &,int)\n"
10981     "    Xapian::DatabaseCreateError::DatabaseCreateError(std::string const &,std::string const &)\n"
10982     "    Xapian::DatabaseCreateError::DatabaseCreateError(std::string const &)\n"
10983     "    Xapian::DatabaseCreateError::DatabaseCreateError(std::string const &,int)\n");
10984   return 0;
10985 }
10986 
10987 
_wrap_delete_DatabaseCreateError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10988 SWIGINTERN PyObject *_wrap_delete_DatabaseCreateError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10989   PyObject *resultobj = 0;
10990   Xapian::DatabaseCreateError *arg1 = (Xapian::DatabaseCreateError *) 0 ;
10991   void *argp1 = 0 ;
10992   int res1 = 0 ;
10993   PyObject *swig_obj[1] ;
10994 
10995   if (!args) SWIG_fail;
10996   swig_obj[0] = args;
10997   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__DatabaseCreateError, SWIG_POINTER_DISOWN |  0 );
10998   if (!SWIG_IsOK(res1)) {
10999     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DatabaseCreateError" "', argument " "1"" of type '" "Xapian::DatabaseCreateError *""'");
11000   }
11001   arg1 = reinterpret_cast< Xapian::DatabaseCreateError * >(argp1);
11002   {
11003     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
11004     delete arg1;
11005     SWIG_PYTHON_THREAD_END_ALLOW;
11006   }
11007   resultobj = SWIG_Py_Void();
11008   return resultobj;
11009 fail:
11010   return NULL;
11011 }
11012 
11013 
DatabaseCreateError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11014 SWIGINTERN PyObject *DatabaseCreateError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11015   PyObject *obj;
11016   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
11017   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__DatabaseCreateError, SWIG_NewClientData(obj));
11018   return SWIG_Py_Void();
11019 }
11020 
DatabaseCreateError_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11021 SWIGINTERN PyObject *DatabaseCreateError_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11022   return SWIG_Python_InitShadowInstance(args);
11023 }
11024 
_wrap_new_DatabaseLockError__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)11025 SWIGINTERN PyObject *_wrap_new_DatabaseLockError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
11026   PyObject *resultobj = 0;
11027   std::string *arg1 = 0 ;
11028   std::string *arg2 = 0 ;
11029   char *arg3 = (char *) 0 ;
11030   int res1 = SWIG_OLDOBJ ;
11031   int res2 = SWIG_OLDOBJ ;
11032   int res3 ;
11033   char *buf3 = 0 ;
11034   int alloc3 = 0 ;
11035   Xapian::DatabaseLockError *result = 0 ;
11036 
11037   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
11038   {
11039     std::string *ptr = (std::string *)0;
11040     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
11041     if (!SWIG_IsOK(res1)) {
11042       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseLockError" "', argument " "1"" of type '" "std::string const &""'");
11043     }
11044     if (!ptr) {
11045       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseLockError" "', argument " "1"" of type '" "std::string const &""'");
11046     }
11047     arg1 = ptr;
11048   }
11049   {
11050     std::string *ptr = (std::string *)0;
11051     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
11052     if (!SWIG_IsOK(res2)) {
11053       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseLockError" "', argument " "2"" of type '" "std::string const &""'");
11054     }
11055     if (!ptr) {
11056       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseLockError" "', argument " "2"" of type '" "std::string const &""'");
11057     }
11058     arg2 = ptr;
11059   }
11060   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
11061   if (!SWIG_IsOK(res3)) {
11062     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatabaseLockError" "', argument " "3"" of type '" "char const *""'");
11063   }
11064   arg3 = reinterpret_cast< char * >(buf3);
11065   {
11066     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
11067     result = (Xapian::DatabaseLockError *)new Xapian::DatabaseLockError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
11068     SWIG_PYTHON_THREAD_END_ALLOW;
11069   }
11070   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseLockError, SWIG_POINTER_NEW |  0 );
11071   if (SWIG_IsNewObj(res1)) delete arg1;
11072   if (SWIG_IsNewObj(res2)) delete arg2;
11073   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
11074   return resultobj;
11075 fail:
11076   if (SWIG_IsNewObj(res1)) delete arg1;
11077   if (SWIG_IsNewObj(res2)) delete arg2;
11078   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
11079   return NULL;
11080 }
11081 
11082 
_wrap_new_DatabaseLockError__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)11083 SWIGINTERN PyObject *_wrap_new_DatabaseLockError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
11084   PyObject *resultobj = 0;
11085   std::string *arg1 = 0 ;
11086   std::string *arg2 = 0 ;
11087   int arg3 ;
11088   int res1 = SWIG_OLDOBJ ;
11089   int res2 = SWIG_OLDOBJ ;
11090   int val3 ;
11091   int ecode3 = 0 ;
11092   Xapian::DatabaseLockError *result = 0 ;
11093 
11094   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
11095   {
11096     std::string *ptr = (std::string *)0;
11097     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
11098     if (!SWIG_IsOK(res1)) {
11099       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseLockError" "', argument " "1"" of type '" "std::string const &""'");
11100     }
11101     if (!ptr) {
11102       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseLockError" "', argument " "1"" of type '" "std::string const &""'");
11103     }
11104     arg1 = ptr;
11105   }
11106   {
11107     std::string *ptr = (std::string *)0;
11108     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
11109     if (!SWIG_IsOK(res2)) {
11110       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseLockError" "', argument " "2"" of type '" "std::string const &""'");
11111     }
11112     if (!ptr) {
11113       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseLockError" "', argument " "2"" of type '" "std::string const &""'");
11114     }
11115     arg2 = ptr;
11116   }
11117   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
11118   if (!SWIG_IsOK(ecode3)) {
11119     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DatabaseLockError" "', argument " "3"" of type '" "int""'");
11120   }
11121   arg3 = static_cast< int >(val3);
11122   {
11123     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
11124     result = (Xapian::DatabaseLockError *)new Xapian::DatabaseLockError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
11125     SWIG_PYTHON_THREAD_END_ALLOW;
11126   }
11127   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseLockError, SWIG_POINTER_NEW |  0 );
11128   if (SWIG_IsNewObj(res1)) delete arg1;
11129   if (SWIG_IsNewObj(res2)) delete arg2;
11130   return resultobj;
11131 fail:
11132   if (SWIG_IsNewObj(res1)) delete arg1;
11133   if (SWIG_IsNewObj(res2)) delete arg2;
11134   return NULL;
11135 }
11136 
11137 
_wrap_new_DatabaseLockError__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)11138 SWIGINTERN PyObject *_wrap_new_DatabaseLockError__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
11139   PyObject *resultobj = 0;
11140   std::string *arg1 = 0 ;
11141   std::string *arg2 = 0 ;
11142   int res1 = SWIG_OLDOBJ ;
11143   int res2 = SWIG_OLDOBJ ;
11144   Xapian::DatabaseLockError *result = 0 ;
11145 
11146   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
11147   {
11148     std::string *ptr = (std::string *)0;
11149     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
11150     if (!SWIG_IsOK(res1)) {
11151       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseLockError" "', argument " "1"" of type '" "std::string const &""'");
11152     }
11153     if (!ptr) {
11154       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseLockError" "', argument " "1"" of type '" "std::string const &""'");
11155     }
11156     arg1 = ptr;
11157   }
11158   {
11159     std::string *ptr = (std::string *)0;
11160     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
11161     if (!SWIG_IsOK(res2)) {
11162       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseLockError" "', argument " "2"" of type '" "std::string const &""'");
11163     }
11164     if (!ptr) {
11165       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseLockError" "', argument " "2"" of type '" "std::string const &""'");
11166     }
11167     arg2 = ptr;
11168   }
11169   {
11170     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
11171     result = (Xapian::DatabaseLockError *)new Xapian::DatabaseLockError((std::string const &)*arg1,(std::string const &)*arg2);
11172     SWIG_PYTHON_THREAD_END_ALLOW;
11173   }
11174   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseLockError, SWIG_POINTER_NEW |  0 );
11175   if (SWIG_IsNewObj(res1)) delete arg1;
11176   if (SWIG_IsNewObj(res2)) delete arg2;
11177   return resultobj;
11178 fail:
11179   if (SWIG_IsNewObj(res1)) delete arg1;
11180   if (SWIG_IsNewObj(res2)) delete arg2;
11181   return NULL;
11182 }
11183 
11184 
_wrap_new_DatabaseLockError__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)11185 SWIGINTERN PyObject *_wrap_new_DatabaseLockError__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
11186   PyObject *resultobj = 0;
11187   std::string *arg1 = 0 ;
11188   int res1 = SWIG_OLDOBJ ;
11189   Xapian::DatabaseLockError *result = 0 ;
11190 
11191   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
11192   {
11193     std::string *ptr = (std::string *)0;
11194     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
11195     if (!SWIG_IsOK(res1)) {
11196       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseLockError" "', argument " "1"" of type '" "std::string const &""'");
11197     }
11198     if (!ptr) {
11199       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseLockError" "', argument " "1"" of type '" "std::string const &""'");
11200     }
11201     arg1 = ptr;
11202   }
11203   {
11204     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
11205     result = (Xapian::DatabaseLockError *)new Xapian::DatabaseLockError((std::string const &)*arg1);
11206     SWIG_PYTHON_THREAD_END_ALLOW;
11207   }
11208   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseLockError, SWIG_POINTER_NEW |  0 );
11209   if (SWIG_IsNewObj(res1)) delete arg1;
11210   return resultobj;
11211 fail:
11212   if (SWIG_IsNewObj(res1)) delete arg1;
11213   return NULL;
11214 }
11215 
11216 
_wrap_new_DatabaseLockError__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)11217 SWIGINTERN PyObject *_wrap_new_DatabaseLockError__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
11218   PyObject *resultobj = 0;
11219   std::string *arg1 = 0 ;
11220   int arg2 ;
11221   int res1 = SWIG_OLDOBJ ;
11222   int val2 ;
11223   int ecode2 = 0 ;
11224   Xapian::DatabaseLockError *result = 0 ;
11225 
11226   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
11227   {
11228     std::string *ptr = (std::string *)0;
11229     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
11230     if (!SWIG_IsOK(res1)) {
11231       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseLockError" "', argument " "1"" of type '" "std::string const &""'");
11232     }
11233     if (!ptr) {
11234       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseLockError" "', argument " "1"" of type '" "std::string const &""'");
11235     }
11236     arg1 = ptr;
11237   }
11238   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
11239   if (!SWIG_IsOK(ecode2)) {
11240     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatabaseLockError" "', argument " "2"" of type '" "int""'");
11241   }
11242   arg2 = static_cast< int >(val2);
11243   {
11244     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
11245     result = (Xapian::DatabaseLockError *)new Xapian::DatabaseLockError((std::string const &)*arg1,arg2);
11246     SWIG_PYTHON_THREAD_END_ALLOW;
11247   }
11248   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseLockError, SWIG_POINTER_NEW |  0 );
11249   if (SWIG_IsNewObj(res1)) delete arg1;
11250   return resultobj;
11251 fail:
11252   if (SWIG_IsNewObj(res1)) delete arg1;
11253   return NULL;
11254 }
11255 
11256 
_wrap_new_DatabaseLockError(PyObject * self,PyObject * args)11257 SWIGINTERN PyObject *_wrap_new_DatabaseLockError(PyObject *self, PyObject *args) {
11258   Py_ssize_t argc;
11259   PyObject *argv[4] = {
11260     0
11261   };
11262 
11263   if (!(argc = SWIG_Python_UnpackTuple(args,"new_DatabaseLockError",0,3,argv))) SWIG_fail;
11264   --argc;
11265   if (argc == 1) {
11266     return _wrap_new_DatabaseLockError__SWIG_3(self, argc, argv);
11267   }
11268   if (argc == 2) {
11269     int _v = 0;
11270     {
11271       {
11272         int res = SWIG_AsVal_int(argv[1], NULL);
11273         _v = SWIG_CheckState(res);
11274       }
11275     }
11276     if (!_v) goto check_2;
11277     return _wrap_new_DatabaseLockError__SWIG_4(self, argc, argv);
11278   }
11279 check_2:
11280 
11281   if (argc == 2) {
11282     return _wrap_new_DatabaseLockError__SWIG_2(self, argc, argv);
11283   }
11284   if (argc == 3) {
11285     int _v = 0;
11286     {
11287       {
11288         int res = SWIG_AsVal_int(argv[2], NULL);
11289         _v = SWIG_CheckState(res);
11290       }
11291     }
11292     if (!_v) goto check_4;
11293     return _wrap_new_DatabaseLockError__SWIG_1(self, argc, argv);
11294   }
11295 check_4:
11296 
11297   if (argc == 3) {
11298     return _wrap_new_DatabaseLockError__SWIG_0(self, argc, argv);
11299   }
11300 
11301 fail:
11302   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_DatabaseLockError'.\n"
11303     "  Possible C/C++ prototypes are:\n"
11304     "    Xapian::DatabaseLockError::DatabaseLockError(std::string const &,std::string const &,char const *)\n"
11305     "    Xapian::DatabaseLockError::DatabaseLockError(std::string const &,std::string const &,int)\n"
11306     "    Xapian::DatabaseLockError::DatabaseLockError(std::string const &,std::string const &)\n"
11307     "    Xapian::DatabaseLockError::DatabaseLockError(std::string const &)\n"
11308     "    Xapian::DatabaseLockError::DatabaseLockError(std::string const &,int)\n");
11309   return 0;
11310 }
11311 
11312 
_wrap_delete_DatabaseLockError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11313 SWIGINTERN PyObject *_wrap_delete_DatabaseLockError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11314   PyObject *resultobj = 0;
11315   Xapian::DatabaseLockError *arg1 = (Xapian::DatabaseLockError *) 0 ;
11316   void *argp1 = 0 ;
11317   int res1 = 0 ;
11318   PyObject *swig_obj[1] ;
11319 
11320   if (!args) SWIG_fail;
11321   swig_obj[0] = args;
11322   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__DatabaseLockError, SWIG_POINTER_DISOWN |  0 );
11323   if (!SWIG_IsOK(res1)) {
11324     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DatabaseLockError" "', argument " "1"" of type '" "Xapian::DatabaseLockError *""'");
11325   }
11326   arg1 = reinterpret_cast< Xapian::DatabaseLockError * >(argp1);
11327   {
11328     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
11329     delete arg1;
11330     SWIG_PYTHON_THREAD_END_ALLOW;
11331   }
11332   resultobj = SWIG_Py_Void();
11333   return resultobj;
11334 fail:
11335   return NULL;
11336 }
11337 
11338 
DatabaseLockError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11339 SWIGINTERN PyObject *DatabaseLockError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11340   PyObject *obj;
11341   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
11342   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__DatabaseLockError, SWIG_NewClientData(obj));
11343   return SWIG_Py_Void();
11344 }
11345 
DatabaseLockError_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11346 SWIGINTERN PyObject *DatabaseLockError_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11347   return SWIG_Python_InitShadowInstance(args);
11348 }
11349 
_wrap_new_DatabaseModifiedError__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)11350 SWIGINTERN PyObject *_wrap_new_DatabaseModifiedError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
11351   PyObject *resultobj = 0;
11352   std::string *arg1 = 0 ;
11353   std::string *arg2 = 0 ;
11354   char *arg3 = (char *) 0 ;
11355   int res1 = SWIG_OLDOBJ ;
11356   int res2 = SWIG_OLDOBJ ;
11357   int res3 ;
11358   char *buf3 = 0 ;
11359   int alloc3 = 0 ;
11360   Xapian::DatabaseModifiedError *result = 0 ;
11361 
11362   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
11363   {
11364     std::string *ptr = (std::string *)0;
11365     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
11366     if (!SWIG_IsOK(res1)) {
11367       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseModifiedError" "', argument " "1"" of type '" "std::string const &""'");
11368     }
11369     if (!ptr) {
11370       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseModifiedError" "', argument " "1"" of type '" "std::string const &""'");
11371     }
11372     arg1 = ptr;
11373   }
11374   {
11375     std::string *ptr = (std::string *)0;
11376     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
11377     if (!SWIG_IsOK(res2)) {
11378       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseModifiedError" "', argument " "2"" of type '" "std::string const &""'");
11379     }
11380     if (!ptr) {
11381       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseModifiedError" "', argument " "2"" of type '" "std::string const &""'");
11382     }
11383     arg2 = ptr;
11384   }
11385   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
11386   if (!SWIG_IsOK(res3)) {
11387     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatabaseModifiedError" "', argument " "3"" of type '" "char const *""'");
11388   }
11389   arg3 = reinterpret_cast< char * >(buf3);
11390   {
11391     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
11392     result = (Xapian::DatabaseModifiedError *)new Xapian::DatabaseModifiedError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
11393     SWIG_PYTHON_THREAD_END_ALLOW;
11394   }
11395   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseModifiedError, SWIG_POINTER_NEW |  0 );
11396   if (SWIG_IsNewObj(res1)) delete arg1;
11397   if (SWIG_IsNewObj(res2)) delete arg2;
11398   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
11399   return resultobj;
11400 fail:
11401   if (SWIG_IsNewObj(res1)) delete arg1;
11402   if (SWIG_IsNewObj(res2)) delete arg2;
11403   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
11404   return NULL;
11405 }
11406 
11407 
_wrap_new_DatabaseModifiedError__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)11408 SWIGINTERN PyObject *_wrap_new_DatabaseModifiedError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
11409   PyObject *resultobj = 0;
11410   std::string *arg1 = 0 ;
11411   std::string *arg2 = 0 ;
11412   int arg3 ;
11413   int res1 = SWIG_OLDOBJ ;
11414   int res2 = SWIG_OLDOBJ ;
11415   int val3 ;
11416   int ecode3 = 0 ;
11417   Xapian::DatabaseModifiedError *result = 0 ;
11418 
11419   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
11420   {
11421     std::string *ptr = (std::string *)0;
11422     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
11423     if (!SWIG_IsOK(res1)) {
11424       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseModifiedError" "', argument " "1"" of type '" "std::string const &""'");
11425     }
11426     if (!ptr) {
11427       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseModifiedError" "', argument " "1"" of type '" "std::string const &""'");
11428     }
11429     arg1 = ptr;
11430   }
11431   {
11432     std::string *ptr = (std::string *)0;
11433     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
11434     if (!SWIG_IsOK(res2)) {
11435       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseModifiedError" "', argument " "2"" of type '" "std::string const &""'");
11436     }
11437     if (!ptr) {
11438       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseModifiedError" "', argument " "2"" of type '" "std::string const &""'");
11439     }
11440     arg2 = ptr;
11441   }
11442   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
11443   if (!SWIG_IsOK(ecode3)) {
11444     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DatabaseModifiedError" "', argument " "3"" of type '" "int""'");
11445   }
11446   arg3 = static_cast< int >(val3);
11447   {
11448     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
11449     result = (Xapian::DatabaseModifiedError *)new Xapian::DatabaseModifiedError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
11450     SWIG_PYTHON_THREAD_END_ALLOW;
11451   }
11452   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseModifiedError, SWIG_POINTER_NEW |  0 );
11453   if (SWIG_IsNewObj(res1)) delete arg1;
11454   if (SWIG_IsNewObj(res2)) delete arg2;
11455   return resultobj;
11456 fail:
11457   if (SWIG_IsNewObj(res1)) delete arg1;
11458   if (SWIG_IsNewObj(res2)) delete arg2;
11459   return NULL;
11460 }
11461 
11462 
_wrap_new_DatabaseModifiedError__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)11463 SWIGINTERN PyObject *_wrap_new_DatabaseModifiedError__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
11464   PyObject *resultobj = 0;
11465   std::string *arg1 = 0 ;
11466   std::string *arg2 = 0 ;
11467   int res1 = SWIG_OLDOBJ ;
11468   int res2 = SWIG_OLDOBJ ;
11469   Xapian::DatabaseModifiedError *result = 0 ;
11470 
11471   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
11472   {
11473     std::string *ptr = (std::string *)0;
11474     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
11475     if (!SWIG_IsOK(res1)) {
11476       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseModifiedError" "', argument " "1"" of type '" "std::string const &""'");
11477     }
11478     if (!ptr) {
11479       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseModifiedError" "', argument " "1"" of type '" "std::string const &""'");
11480     }
11481     arg1 = ptr;
11482   }
11483   {
11484     std::string *ptr = (std::string *)0;
11485     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
11486     if (!SWIG_IsOK(res2)) {
11487       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseModifiedError" "', argument " "2"" of type '" "std::string const &""'");
11488     }
11489     if (!ptr) {
11490       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseModifiedError" "', argument " "2"" of type '" "std::string const &""'");
11491     }
11492     arg2 = ptr;
11493   }
11494   {
11495     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
11496     result = (Xapian::DatabaseModifiedError *)new Xapian::DatabaseModifiedError((std::string const &)*arg1,(std::string const &)*arg2);
11497     SWIG_PYTHON_THREAD_END_ALLOW;
11498   }
11499   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseModifiedError, SWIG_POINTER_NEW |  0 );
11500   if (SWIG_IsNewObj(res1)) delete arg1;
11501   if (SWIG_IsNewObj(res2)) delete arg2;
11502   return resultobj;
11503 fail:
11504   if (SWIG_IsNewObj(res1)) delete arg1;
11505   if (SWIG_IsNewObj(res2)) delete arg2;
11506   return NULL;
11507 }
11508 
11509 
_wrap_new_DatabaseModifiedError__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)11510 SWIGINTERN PyObject *_wrap_new_DatabaseModifiedError__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
11511   PyObject *resultobj = 0;
11512   std::string *arg1 = 0 ;
11513   int res1 = SWIG_OLDOBJ ;
11514   Xapian::DatabaseModifiedError *result = 0 ;
11515 
11516   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
11517   {
11518     std::string *ptr = (std::string *)0;
11519     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
11520     if (!SWIG_IsOK(res1)) {
11521       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseModifiedError" "', argument " "1"" of type '" "std::string const &""'");
11522     }
11523     if (!ptr) {
11524       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseModifiedError" "', argument " "1"" of type '" "std::string const &""'");
11525     }
11526     arg1 = ptr;
11527   }
11528   {
11529     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
11530     result = (Xapian::DatabaseModifiedError *)new Xapian::DatabaseModifiedError((std::string const &)*arg1);
11531     SWIG_PYTHON_THREAD_END_ALLOW;
11532   }
11533   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseModifiedError, SWIG_POINTER_NEW |  0 );
11534   if (SWIG_IsNewObj(res1)) delete arg1;
11535   return resultobj;
11536 fail:
11537   if (SWIG_IsNewObj(res1)) delete arg1;
11538   return NULL;
11539 }
11540 
11541 
_wrap_new_DatabaseModifiedError__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)11542 SWIGINTERN PyObject *_wrap_new_DatabaseModifiedError__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
11543   PyObject *resultobj = 0;
11544   std::string *arg1 = 0 ;
11545   int arg2 ;
11546   int res1 = SWIG_OLDOBJ ;
11547   int val2 ;
11548   int ecode2 = 0 ;
11549   Xapian::DatabaseModifiedError *result = 0 ;
11550 
11551   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
11552   {
11553     std::string *ptr = (std::string *)0;
11554     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
11555     if (!SWIG_IsOK(res1)) {
11556       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseModifiedError" "', argument " "1"" of type '" "std::string const &""'");
11557     }
11558     if (!ptr) {
11559       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseModifiedError" "', argument " "1"" of type '" "std::string const &""'");
11560     }
11561     arg1 = ptr;
11562   }
11563   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
11564   if (!SWIG_IsOK(ecode2)) {
11565     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatabaseModifiedError" "', argument " "2"" of type '" "int""'");
11566   }
11567   arg2 = static_cast< int >(val2);
11568   {
11569     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
11570     result = (Xapian::DatabaseModifiedError *)new Xapian::DatabaseModifiedError((std::string const &)*arg1,arg2);
11571     SWIG_PYTHON_THREAD_END_ALLOW;
11572   }
11573   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseModifiedError, SWIG_POINTER_NEW |  0 );
11574   if (SWIG_IsNewObj(res1)) delete arg1;
11575   return resultobj;
11576 fail:
11577   if (SWIG_IsNewObj(res1)) delete arg1;
11578   return NULL;
11579 }
11580 
11581 
_wrap_new_DatabaseModifiedError(PyObject * self,PyObject * args)11582 SWIGINTERN PyObject *_wrap_new_DatabaseModifiedError(PyObject *self, PyObject *args) {
11583   Py_ssize_t argc;
11584   PyObject *argv[4] = {
11585     0
11586   };
11587 
11588   if (!(argc = SWIG_Python_UnpackTuple(args,"new_DatabaseModifiedError",0,3,argv))) SWIG_fail;
11589   --argc;
11590   if (argc == 1) {
11591     return _wrap_new_DatabaseModifiedError__SWIG_3(self, argc, argv);
11592   }
11593   if (argc == 2) {
11594     int _v = 0;
11595     {
11596       {
11597         int res = SWIG_AsVal_int(argv[1], NULL);
11598         _v = SWIG_CheckState(res);
11599       }
11600     }
11601     if (!_v) goto check_2;
11602     return _wrap_new_DatabaseModifiedError__SWIG_4(self, argc, argv);
11603   }
11604 check_2:
11605 
11606   if (argc == 2) {
11607     return _wrap_new_DatabaseModifiedError__SWIG_2(self, argc, argv);
11608   }
11609   if (argc == 3) {
11610     int _v = 0;
11611     {
11612       {
11613         int res = SWIG_AsVal_int(argv[2], NULL);
11614         _v = SWIG_CheckState(res);
11615       }
11616     }
11617     if (!_v) goto check_4;
11618     return _wrap_new_DatabaseModifiedError__SWIG_1(self, argc, argv);
11619   }
11620 check_4:
11621 
11622   if (argc == 3) {
11623     return _wrap_new_DatabaseModifiedError__SWIG_0(self, argc, argv);
11624   }
11625 
11626 fail:
11627   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_DatabaseModifiedError'.\n"
11628     "  Possible C/C++ prototypes are:\n"
11629     "    Xapian::DatabaseModifiedError::DatabaseModifiedError(std::string const &,std::string const &,char const *)\n"
11630     "    Xapian::DatabaseModifiedError::DatabaseModifiedError(std::string const &,std::string const &,int)\n"
11631     "    Xapian::DatabaseModifiedError::DatabaseModifiedError(std::string const &,std::string const &)\n"
11632     "    Xapian::DatabaseModifiedError::DatabaseModifiedError(std::string const &)\n"
11633     "    Xapian::DatabaseModifiedError::DatabaseModifiedError(std::string const &,int)\n");
11634   return 0;
11635 }
11636 
11637 
_wrap_delete_DatabaseModifiedError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11638 SWIGINTERN PyObject *_wrap_delete_DatabaseModifiedError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11639   PyObject *resultobj = 0;
11640   Xapian::DatabaseModifiedError *arg1 = (Xapian::DatabaseModifiedError *) 0 ;
11641   void *argp1 = 0 ;
11642   int res1 = 0 ;
11643   PyObject *swig_obj[1] ;
11644 
11645   if (!args) SWIG_fail;
11646   swig_obj[0] = args;
11647   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__DatabaseModifiedError, SWIG_POINTER_DISOWN |  0 );
11648   if (!SWIG_IsOK(res1)) {
11649     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DatabaseModifiedError" "', argument " "1"" of type '" "Xapian::DatabaseModifiedError *""'");
11650   }
11651   arg1 = reinterpret_cast< Xapian::DatabaseModifiedError * >(argp1);
11652   {
11653     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
11654     delete arg1;
11655     SWIG_PYTHON_THREAD_END_ALLOW;
11656   }
11657   resultobj = SWIG_Py_Void();
11658   return resultobj;
11659 fail:
11660   return NULL;
11661 }
11662 
11663 
DatabaseModifiedError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11664 SWIGINTERN PyObject *DatabaseModifiedError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11665   PyObject *obj;
11666   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
11667   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__DatabaseModifiedError, SWIG_NewClientData(obj));
11668   return SWIG_Py_Void();
11669 }
11670 
DatabaseModifiedError_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11671 SWIGINTERN PyObject *DatabaseModifiedError_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11672   return SWIG_Python_InitShadowInstance(args);
11673 }
11674 
_wrap_new_DatabaseOpeningError__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)11675 SWIGINTERN PyObject *_wrap_new_DatabaseOpeningError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
11676   PyObject *resultobj = 0;
11677   std::string *arg1 = 0 ;
11678   std::string *arg2 = 0 ;
11679   char *arg3 = (char *) 0 ;
11680   int res1 = SWIG_OLDOBJ ;
11681   int res2 = SWIG_OLDOBJ ;
11682   int res3 ;
11683   char *buf3 = 0 ;
11684   int alloc3 = 0 ;
11685   Xapian::DatabaseOpeningError *result = 0 ;
11686 
11687   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
11688   {
11689     std::string *ptr = (std::string *)0;
11690     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
11691     if (!SWIG_IsOK(res1)) {
11692       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseOpeningError" "', argument " "1"" of type '" "std::string const &""'");
11693     }
11694     if (!ptr) {
11695       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseOpeningError" "', argument " "1"" of type '" "std::string const &""'");
11696     }
11697     arg1 = ptr;
11698   }
11699   {
11700     std::string *ptr = (std::string *)0;
11701     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
11702     if (!SWIG_IsOK(res2)) {
11703       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseOpeningError" "', argument " "2"" of type '" "std::string const &""'");
11704     }
11705     if (!ptr) {
11706       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseOpeningError" "', argument " "2"" of type '" "std::string const &""'");
11707     }
11708     arg2 = ptr;
11709   }
11710   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
11711   if (!SWIG_IsOK(res3)) {
11712     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatabaseOpeningError" "', argument " "3"" of type '" "char const *""'");
11713   }
11714   arg3 = reinterpret_cast< char * >(buf3);
11715   {
11716     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
11717     result = (Xapian::DatabaseOpeningError *)new Xapian::DatabaseOpeningError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
11718     SWIG_PYTHON_THREAD_END_ALLOW;
11719   }
11720   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseOpeningError, SWIG_POINTER_NEW |  0 );
11721   if (SWIG_IsNewObj(res1)) delete arg1;
11722   if (SWIG_IsNewObj(res2)) delete arg2;
11723   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
11724   return resultobj;
11725 fail:
11726   if (SWIG_IsNewObj(res1)) delete arg1;
11727   if (SWIG_IsNewObj(res2)) delete arg2;
11728   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
11729   return NULL;
11730 }
11731 
11732 
_wrap_new_DatabaseOpeningError__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)11733 SWIGINTERN PyObject *_wrap_new_DatabaseOpeningError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
11734   PyObject *resultobj = 0;
11735   std::string *arg1 = 0 ;
11736   std::string *arg2 = 0 ;
11737   int arg3 ;
11738   int res1 = SWIG_OLDOBJ ;
11739   int res2 = SWIG_OLDOBJ ;
11740   int val3 ;
11741   int ecode3 = 0 ;
11742   Xapian::DatabaseOpeningError *result = 0 ;
11743 
11744   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
11745   {
11746     std::string *ptr = (std::string *)0;
11747     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
11748     if (!SWIG_IsOK(res1)) {
11749       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseOpeningError" "', argument " "1"" of type '" "std::string const &""'");
11750     }
11751     if (!ptr) {
11752       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseOpeningError" "', argument " "1"" of type '" "std::string const &""'");
11753     }
11754     arg1 = ptr;
11755   }
11756   {
11757     std::string *ptr = (std::string *)0;
11758     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
11759     if (!SWIG_IsOK(res2)) {
11760       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseOpeningError" "', argument " "2"" of type '" "std::string const &""'");
11761     }
11762     if (!ptr) {
11763       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseOpeningError" "', argument " "2"" of type '" "std::string const &""'");
11764     }
11765     arg2 = ptr;
11766   }
11767   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
11768   if (!SWIG_IsOK(ecode3)) {
11769     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DatabaseOpeningError" "', argument " "3"" of type '" "int""'");
11770   }
11771   arg3 = static_cast< int >(val3);
11772   {
11773     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
11774     result = (Xapian::DatabaseOpeningError *)new Xapian::DatabaseOpeningError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
11775     SWIG_PYTHON_THREAD_END_ALLOW;
11776   }
11777   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseOpeningError, SWIG_POINTER_NEW |  0 );
11778   if (SWIG_IsNewObj(res1)) delete arg1;
11779   if (SWIG_IsNewObj(res2)) delete arg2;
11780   return resultobj;
11781 fail:
11782   if (SWIG_IsNewObj(res1)) delete arg1;
11783   if (SWIG_IsNewObj(res2)) delete arg2;
11784   return NULL;
11785 }
11786 
11787 
_wrap_new_DatabaseOpeningError__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)11788 SWIGINTERN PyObject *_wrap_new_DatabaseOpeningError__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
11789   PyObject *resultobj = 0;
11790   std::string *arg1 = 0 ;
11791   std::string *arg2 = 0 ;
11792   int res1 = SWIG_OLDOBJ ;
11793   int res2 = SWIG_OLDOBJ ;
11794   Xapian::DatabaseOpeningError *result = 0 ;
11795 
11796   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
11797   {
11798     std::string *ptr = (std::string *)0;
11799     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
11800     if (!SWIG_IsOK(res1)) {
11801       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseOpeningError" "', argument " "1"" of type '" "std::string const &""'");
11802     }
11803     if (!ptr) {
11804       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseOpeningError" "', argument " "1"" of type '" "std::string const &""'");
11805     }
11806     arg1 = ptr;
11807   }
11808   {
11809     std::string *ptr = (std::string *)0;
11810     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
11811     if (!SWIG_IsOK(res2)) {
11812       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseOpeningError" "', argument " "2"" of type '" "std::string const &""'");
11813     }
11814     if (!ptr) {
11815       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseOpeningError" "', argument " "2"" of type '" "std::string const &""'");
11816     }
11817     arg2 = ptr;
11818   }
11819   {
11820     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
11821     result = (Xapian::DatabaseOpeningError *)new Xapian::DatabaseOpeningError((std::string const &)*arg1,(std::string const &)*arg2);
11822     SWIG_PYTHON_THREAD_END_ALLOW;
11823   }
11824   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseOpeningError, SWIG_POINTER_NEW |  0 );
11825   if (SWIG_IsNewObj(res1)) delete arg1;
11826   if (SWIG_IsNewObj(res2)) delete arg2;
11827   return resultobj;
11828 fail:
11829   if (SWIG_IsNewObj(res1)) delete arg1;
11830   if (SWIG_IsNewObj(res2)) delete arg2;
11831   return NULL;
11832 }
11833 
11834 
_wrap_new_DatabaseOpeningError__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)11835 SWIGINTERN PyObject *_wrap_new_DatabaseOpeningError__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
11836   PyObject *resultobj = 0;
11837   std::string *arg1 = 0 ;
11838   int res1 = SWIG_OLDOBJ ;
11839   Xapian::DatabaseOpeningError *result = 0 ;
11840 
11841   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
11842   {
11843     std::string *ptr = (std::string *)0;
11844     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
11845     if (!SWIG_IsOK(res1)) {
11846       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseOpeningError" "', argument " "1"" of type '" "std::string const &""'");
11847     }
11848     if (!ptr) {
11849       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseOpeningError" "', argument " "1"" of type '" "std::string const &""'");
11850     }
11851     arg1 = ptr;
11852   }
11853   {
11854     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
11855     result = (Xapian::DatabaseOpeningError *)new Xapian::DatabaseOpeningError((std::string const &)*arg1);
11856     SWIG_PYTHON_THREAD_END_ALLOW;
11857   }
11858   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseOpeningError, SWIG_POINTER_NEW |  0 );
11859   if (SWIG_IsNewObj(res1)) delete arg1;
11860   return resultobj;
11861 fail:
11862   if (SWIG_IsNewObj(res1)) delete arg1;
11863   return NULL;
11864 }
11865 
11866 
_wrap_new_DatabaseOpeningError__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)11867 SWIGINTERN PyObject *_wrap_new_DatabaseOpeningError__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
11868   PyObject *resultobj = 0;
11869   std::string *arg1 = 0 ;
11870   int arg2 ;
11871   int res1 = SWIG_OLDOBJ ;
11872   int val2 ;
11873   int ecode2 = 0 ;
11874   Xapian::DatabaseOpeningError *result = 0 ;
11875 
11876   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
11877   {
11878     std::string *ptr = (std::string *)0;
11879     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
11880     if (!SWIG_IsOK(res1)) {
11881       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseOpeningError" "', argument " "1"" of type '" "std::string const &""'");
11882     }
11883     if (!ptr) {
11884       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseOpeningError" "', argument " "1"" of type '" "std::string const &""'");
11885     }
11886     arg1 = ptr;
11887   }
11888   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
11889   if (!SWIG_IsOK(ecode2)) {
11890     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatabaseOpeningError" "', argument " "2"" of type '" "int""'");
11891   }
11892   arg2 = static_cast< int >(val2);
11893   {
11894     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
11895     result = (Xapian::DatabaseOpeningError *)new Xapian::DatabaseOpeningError((std::string const &)*arg1,arg2);
11896     SWIG_PYTHON_THREAD_END_ALLOW;
11897   }
11898   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseOpeningError, SWIG_POINTER_NEW |  0 );
11899   if (SWIG_IsNewObj(res1)) delete arg1;
11900   return resultobj;
11901 fail:
11902   if (SWIG_IsNewObj(res1)) delete arg1;
11903   return NULL;
11904 }
11905 
11906 
_wrap_new_DatabaseOpeningError(PyObject * self,PyObject * args)11907 SWIGINTERN PyObject *_wrap_new_DatabaseOpeningError(PyObject *self, PyObject *args) {
11908   Py_ssize_t argc;
11909   PyObject *argv[4] = {
11910     0
11911   };
11912 
11913   if (!(argc = SWIG_Python_UnpackTuple(args,"new_DatabaseOpeningError",0,3,argv))) SWIG_fail;
11914   --argc;
11915   if (argc == 1) {
11916     return _wrap_new_DatabaseOpeningError__SWIG_3(self, argc, argv);
11917   }
11918   if (argc == 2) {
11919     int _v = 0;
11920     {
11921       {
11922         int res = SWIG_AsVal_int(argv[1], NULL);
11923         _v = SWIG_CheckState(res);
11924       }
11925     }
11926     if (!_v) goto check_2;
11927     return _wrap_new_DatabaseOpeningError__SWIG_4(self, argc, argv);
11928   }
11929 check_2:
11930 
11931   if (argc == 2) {
11932     return _wrap_new_DatabaseOpeningError__SWIG_2(self, argc, argv);
11933   }
11934   if (argc == 3) {
11935     int _v = 0;
11936     {
11937       {
11938         int res = SWIG_AsVal_int(argv[2], NULL);
11939         _v = SWIG_CheckState(res);
11940       }
11941     }
11942     if (!_v) goto check_4;
11943     return _wrap_new_DatabaseOpeningError__SWIG_1(self, argc, argv);
11944   }
11945 check_4:
11946 
11947   if (argc == 3) {
11948     return _wrap_new_DatabaseOpeningError__SWIG_0(self, argc, argv);
11949   }
11950 
11951 fail:
11952   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_DatabaseOpeningError'.\n"
11953     "  Possible C/C++ prototypes are:\n"
11954     "    Xapian::DatabaseOpeningError::DatabaseOpeningError(std::string const &,std::string const &,char const *)\n"
11955     "    Xapian::DatabaseOpeningError::DatabaseOpeningError(std::string const &,std::string const &,int)\n"
11956     "    Xapian::DatabaseOpeningError::DatabaseOpeningError(std::string const &,std::string const &)\n"
11957     "    Xapian::DatabaseOpeningError::DatabaseOpeningError(std::string const &)\n"
11958     "    Xapian::DatabaseOpeningError::DatabaseOpeningError(std::string const &,int)\n");
11959   return 0;
11960 }
11961 
11962 
_wrap_delete_DatabaseOpeningError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11963 SWIGINTERN PyObject *_wrap_delete_DatabaseOpeningError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11964   PyObject *resultobj = 0;
11965   Xapian::DatabaseOpeningError *arg1 = (Xapian::DatabaseOpeningError *) 0 ;
11966   void *argp1 = 0 ;
11967   int res1 = 0 ;
11968   PyObject *swig_obj[1] ;
11969 
11970   if (!args) SWIG_fail;
11971   swig_obj[0] = args;
11972   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__DatabaseOpeningError, SWIG_POINTER_DISOWN |  0 );
11973   if (!SWIG_IsOK(res1)) {
11974     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DatabaseOpeningError" "', argument " "1"" of type '" "Xapian::DatabaseOpeningError *""'");
11975   }
11976   arg1 = reinterpret_cast< Xapian::DatabaseOpeningError * >(argp1);
11977   {
11978     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
11979     delete arg1;
11980     SWIG_PYTHON_THREAD_END_ALLOW;
11981   }
11982   resultobj = SWIG_Py_Void();
11983   return resultobj;
11984 fail:
11985   return NULL;
11986 }
11987 
11988 
DatabaseOpeningError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11989 SWIGINTERN PyObject *DatabaseOpeningError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11990   PyObject *obj;
11991   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
11992   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__DatabaseOpeningError, SWIG_NewClientData(obj));
11993   return SWIG_Py_Void();
11994 }
11995 
DatabaseOpeningError_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11996 SWIGINTERN PyObject *DatabaseOpeningError_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11997   return SWIG_Python_InitShadowInstance(args);
11998 }
11999 
_wrap_new_DatabaseVersionError__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)12000 SWIGINTERN PyObject *_wrap_new_DatabaseVersionError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
12001   PyObject *resultobj = 0;
12002   std::string *arg1 = 0 ;
12003   std::string *arg2 = 0 ;
12004   char *arg3 = (char *) 0 ;
12005   int res1 = SWIG_OLDOBJ ;
12006   int res2 = SWIG_OLDOBJ ;
12007   int res3 ;
12008   char *buf3 = 0 ;
12009   int alloc3 = 0 ;
12010   Xapian::DatabaseVersionError *result = 0 ;
12011 
12012   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
12013   {
12014     std::string *ptr = (std::string *)0;
12015     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
12016     if (!SWIG_IsOK(res1)) {
12017       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseVersionError" "', argument " "1"" of type '" "std::string const &""'");
12018     }
12019     if (!ptr) {
12020       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseVersionError" "', argument " "1"" of type '" "std::string const &""'");
12021     }
12022     arg1 = ptr;
12023   }
12024   {
12025     std::string *ptr = (std::string *)0;
12026     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
12027     if (!SWIG_IsOK(res2)) {
12028       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseVersionError" "', argument " "2"" of type '" "std::string const &""'");
12029     }
12030     if (!ptr) {
12031       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseVersionError" "', argument " "2"" of type '" "std::string const &""'");
12032     }
12033     arg2 = ptr;
12034   }
12035   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
12036   if (!SWIG_IsOK(res3)) {
12037     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatabaseVersionError" "', argument " "3"" of type '" "char const *""'");
12038   }
12039   arg3 = reinterpret_cast< char * >(buf3);
12040   {
12041     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
12042     result = (Xapian::DatabaseVersionError *)new Xapian::DatabaseVersionError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
12043     SWIG_PYTHON_THREAD_END_ALLOW;
12044   }
12045   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseVersionError, SWIG_POINTER_NEW |  0 );
12046   if (SWIG_IsNewObj(res1)) delete arg1;
12047   if (SWIG_IsNewObj(res2)) delete arg2;
12048   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
12049   return resultobj;
12050 fail:
12051   if (SWIG_IsNewObj(res1)) delete arg1;
12052   if (SWIG_IsNewObj(res2)) delete arg2;
12053   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
12054   return NULL;
12055 }
12056 
12057 
_wrap_new_DatabaseVersionError__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)12058 SWIGINTERN PyObject *_wrap_new_DatabaseVersionError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
12059   PyObject *resultobj = 0;
12060   std::string *arg1 = 0 ;
12061   std::string *arg2 = 0 ;
12062   int arg3 ;
12063   int res1 = SWIG_OLDOBJ ;
12064   int res2 = SWIG_OLDOBJ ;
12065   int val3 ;
12066   int ecode3 = 0 ;
12067   Xapian::DatabaseVersionError *result = 0 ;
12068 
12069   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
12070   {
12071     std::string *ptr = (std::string *)0;
12072     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
12073     if (!SWIG_IsOK(res1)) {
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       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseVersionError" "', argument " "2"" of type '" "std::string const &""'");
12086     }
12087     if (!ptr) {
12088       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseVersionError" "', argument " "2"" of type '" "std::string const &""'");
12089     }
12090     arg2 = ptr;
12091   }
12092   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
12093   if (!SWIG_IsOK(ecode3)) {
12094     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DatabaseVersionError" "', argument " "3"" of type '" "int""'");
12095   }
12096   arg3 = static_cast< int >(val3);
12097   {
12098     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
12099     result = (Xapian::DatabaseVersionError *)new Xapian::DatabaseVersionError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
12100     SWIG_PYTHON_THREAD_END_ALLOW;
12101   }
12102   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseVersionError, SWIG_POINTER_NEW |  0 );
12103   if (SWIG_IsNewObj(res1)) delete arg1;
12104   if (SWIG_IsNewObj(res2)) delete arg2;
12105   return resultobj;
12106 fail:
12107   if (SWIG_IsNewObj(res1)) delete arg1;
12108   if (SWIG_IsNewObj(res2)) delete arg2;
12109   return NULL;
12110 }
12111 
12112 
_wrap_new_DatabaseVersionError__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)12113 SWIGINTERN PyObject *_wrap_new_DatabaseVersionError__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
12114   PyObject *resultobj = 0;
12115   std::string *arg1 = 0 ;
12116   std::string *arg2 = 0 ;
12117   int res1 = SWIG_OLDOBJ ;
12118   int res2 = SWIG_OLDOBJ ;
12119   Xapian::DatabaseVersionError *result = 0 ;
12120 
12121   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
12122   {
12123     std::string *ptr = (std::string *)0;
12124     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
12125     if (!SWIG_IsOK(res1)) {
12126       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseVersionError" "', argument " "1"" of type '" "std::string const &""'");
12127     }
12128     if (!ptr) {
12129       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseVersionError" "', argument " "1"" of type '" "std::string const &""'");
12130     }
12131     arg1 = ptr;
12132   }
12133   {
12134     std::string *ptr = (std::string *)0;
12135     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
12136     if (!SWIG_IsOK(res2)) {
12137       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseVersionError" "', argument " "2"" of type '" "std::string const &""'");
12138     }
12139     if (!ptr) {
12140       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseVersionError" "', argument " "2"" of type '" "std::string const &""'");
12141     }
12142     arg2 = ptr;
12143   }
12144   {
12145     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
12146     result = (Xapian::DatabaseVersionError *)new Xapian::DatabaseVersionError((std::string const &)*arg1,(std::string const &)*arg2);
12147     SWIG_PYTHON_THREAD_END_ALLOW;
12148   }
12149   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseVersionError, SWIG_POINTER_NEW |  0 );
12150   if (SWIG_IsNewObj(res1)) delete arg1;
12151   if (SWIG_IsNewObj(res2)) delete arg2;
12152   return resultobj;
12153 fail:
12154   if (SWIG_IsNewObj(res1)) delete arg1;
12155   if (SWIG_IsNewObj(res2)) delete arg2;
12156   return NULL;
12157 }
12158 
12159 
_wrap_new_DatabaseVersionError__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)12160 SWIGINTERN PyObject *_wrap_new_DatabaseVersionError__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
12161   PyObject *resultobj = 0;
12162   std::string *arg1 = 0 ;
12163   int res1 = SWIG_OLDOBJ ;
12164   Xapian::DatabaseVersionError *result = 0 ;
12165 
12166   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
12167   {
12168     std::string *ptr = (std::string *)0;
12169     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
12170     if (!SWIG_IsOK(res1)) {
12171       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseVersionError" "', argument " "1"" of type '" "std::string const &""'");
12172     }
12173     if (!ptr) {
12174       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseVersionError" "', argument " "1"" of type '" "std::string const &""'");
12175     }
12176     arg1 = ptr;
12177   }
12178   {
12179     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
12180     result = (Xapian::DatabaseVersionError *)new Xapian::DatabaseVersionError((std::string const &)*arg1);
12181     SWIG_PYTHON_THREAD_END_ALLOW;
12182   }
12183   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseVersionError, SWIG_POINTER_NEW |  0 );
12184   if (SWIG_IsNewObj(res1)) delete arg1;
12185   return resultobj;
12186 fail:
12187   if (SWIG_IsNewObj(res1)) delete arg1;
12188   return NULL;
12189 }
12190 
12191 
_wrap_new_DatabaseVersionError__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)12192 SWIGINTERN PyObject *_wrap_new_DatabaseVersionError__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
12193   PyObject *resultobj = 0;
12194   std::string *arg1 = 0 ;
12195   int arg2 ;
12196   int res1 = SWIG_OLDOBJ ;
12197   int val2 ;
12198   int ecode2 = 0 ;
12199   Xapian::DatabaseVersionError *result = 0 ;
12200 
12201   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
12202   {
12203     std::string *ptr = (std::string *)0;
12204     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
12205     if (!SWIG_IsOK(res1)) {
12206       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseVersionError" "', argument " "1"" of type '" "std::string const &""'");
12207     }
12208     if (!ptr) {
12209       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseVersionError" "', argument " "1"" of type '" "std::string const &""'");
12210     }
12211     arg1 = ptr;
12212   }
12213   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12214   if (!SWIG_IsOK(ecode2)) {
12215     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatabaseVersionError" "', argument " "2"" of type '" "int""'");
12216   }
12217   arg2 = static_cast< int >(val2);
12218   {
12219     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
12220     result = (Xapian::DatabaseVersionError *)new Xapian::DatabaseVersionError((std::string const &)*arg1,arg2);
12221     SWIG_PYTHON_THREAD_END_ALLOW;
12222   }
12223   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseVersionError, SWIG_POINTER_NEW |  0 );
12224   if (SWIG_IsNewObj(res1)) delete arg1;
12225   return resultobj;
12226 fail:
12227   if (SWIG_IsNewObj(res1)) delete arg1;
12228   return NULL;
12229 }
12230 
12231 
_wrap_new_DatabaseVersionError(PyObject * self,PyObject * args)12232 SWIGINTERN PyObject *_wrap_new_DatabaseVersionError(PyObject *self, PyObject *args) {
12233   Py_ssize_t argc;
12234   PyObject *argv[4] = {
12235     0
12236   };
12237 
12238   if (!(argc = SWIG_Python_UnpackTuple(args,"new_DatabaseVersionError",0,3,argv))) SWIG_fail;
12239   --argc;
12240   if (argc == 1) {
12241     return _wrap_new_DatabaseVersionError__SWIG_3(self, argc, argv);
12242   }
12243   if (argc == 2) {
12244     int _v = 0;
12245     {
12246       {
12247         int res = SWIG_AsVal_int(argv[1], NULL);
12248         _v = SWIG_CheckState(res);
12249       }
12250     }
12251     if (!_v) goto check_2;
12252     return _wrap_new_DatabaseVersionError__SWIG_4(self, argc, argv);
12253   }
12254 check_2:
12255 
12256   if (argc == 2) {
12257     return _wrap_new_DatabaseVersionError__SWIG_2(self, argc, argv);
12258   }
12259   if (argc == 3) {
12260     int _v = 0;
12261     {
12262       {
12263         int res = SWIG_AsVal_int(argv[2], NULL);
12264         _v = SWIG_CheckState(res);
12265       }
12266     }
12267     if (!_v) goto check_4;
12268     return _wrap_new_DatabaseVersionError__SWIG_1(self, argc, argv);
12269   }
12270 check_4:
12271 
12272   if (argc == 3) {
12273     return _wrap_new_DatabaseVersionError__SWIG_0(self, argc, argv);
12274   }
12275 
12276 fail:
12277   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_DatabaseVersionError'.\n"
12278     "  Possible C/C++ prototypes are:\n"
12279     "    Xapian::DatabaseVersionError::DatabaseVersionError(std::string const &,std::string const &,char const *)\n"
12280     "    Xapian::DatabaseVersionError::DatabaseVersionError(std::string const &,std::string const &,int)\n"
12281     "    Xapian::DatabaseVersionError::DatabaseVersionError(std::string const &,std::string const &)\n"
12282     "    Xapian::DatabaseVersionError::DatabaseVersionError(std::string const &)\n"
12283     "    Xapian::DatabaseVersionError::DatabaseVersionError(std::string const &,int)\n");
12284   return 0;
12285 }
12286 
12287 
_wrap_delete_DatabaseVersionError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12288 SWIGINTERN PyObject *_wrap_delete_DatabaseVersionError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12289   PyObject *resultobj = 0;
12290   Xapian::DatabaseVersionError *arg1 = (Xapian::DatabaseVersionError *) 0 ;
12291   void *argp1 = 0 ;
12292   int res1 = 0 ;
12293   PyObject *swig_obj[1] ;
12294 
12295   if (!args) SWIG_fail;
12296   swig_obj[0] = args;
12297   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__DatabaseVersionError, SWIG_POINTER_DISOWN |  0 );
12298   if (!SWIG_IsOK(res1)) {
12299     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DatabaseVersionError" "', argument " "1"" of type '" "Xapian::DatabaseVersionError *""'");
12300   }
12301   arg1 = reinterpret_cast< Xapian::DatabaseVersionError * >(argp1);
12302   {
12303     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
12304     delete arg1;
12305     SWIG_PYTHON_THREAD_END_ALLOW;
12306   }
12307   resultobj = SWIG_Py_Void();
12308   return resultobj;
12309 fail:
12310   return NULL;
12311 }
12312 
12313 
DatabaseVersionError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12314 SWIGINTERN PyObject *DatabaseVersionError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12315   PyObject *obj;
12316   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
12317   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__DatabaseVersionError, SWIG_NewClientData(obj));
12318   return SWIG_Py_Void();
12319 }
12320 
DatabaseVersionError_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12321 SWIGINTERN PyObject *DatabaseVersionError_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12322   return SWIG_Python_InitShadowInstance(args);
12323 }
12324 
_wrap_new_DocNotFoundError__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)12325 SWIGINTERN PyObject *_wrap_new_DocNotFoundError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
12326   PyObject *resultobj = 0;
12327   std::string *arg1 = 0 ;
12328   std::string *arg2 = 0 ;
12329   char *arg3 = (char *) 0 ;
12330   int res1 = SWIG_OLDOBJ ;
12331   int res2 = SWIG_OLDOBJ ;
12332   int res3 ;
12333   char *buf3 = 0 ;
12334   int alloc3 = 0 ;
12335   Xapian::DocNotFoundError *result = 0 ;
12336 
12337   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
12338   {
12339     std::string *ptr = (std::string *)0;
12340     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
12341     if (!SWIG_IsOK(res1)) {
12342       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DocNotFoundError" "', argument " "1"" of type '" "std::string const &""'");
12343     }
12344     if (!ptr) {
12345       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DocNotFoundError" "', argument " "1"" of type '" "std::string const &""'");
12346     }
12347     arg1 = ptr;
12348   }
12349   {
12350     std::string *ptr = (std::string *)0;
12351     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
12352     if (!SWIG_IsOK(res2)) {
12353       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DocNotFoundError" "', argument " "2"" of type '" "std::string const &""'");
12354     }
12355     if (!ptr) {
12356       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DocNotFoundError" "', argument " "2"" of type '" "std::string const &""'");
12357     }
12358     arg2 = ptr;
12359   }
12360   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
12361   if (!SWIG_IsOK(res3)) {
12362     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DocNotFoundError" "', argument " "3"" of type '" "char const *""'");
12363   }
12364   arg3 = reinterpret_cast< char * >(buf3);
12365   {
12366     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
12367     result = (Xapian::DocNotFoundError *)new Xapian::DocNotFoundError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
12368     SWIG_PYTHON_THREAD_END_ALLOW;
12369   }
12370   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DocNotFoundError, SWIG_POINTER_NEW |  0 );
12371   if (SWIG_IsNewObj(res1)) delete arg1;
12372   if (SWIG_IsNewObj(res2)) delete arg2;
12373   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
12374   return resultobj;
12375 fail:
12376   if (SWIG_IsNewObj(res1)) delete arg1;
12377   if (SWIG_IsNewObj(res2)) delete arg2;
12378   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
12379   return NULL;
12380 }
12381 
12382 
_wrap_new_DocNotFoundError__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)12383 SWIGINTERN PyObject *_wrap_new_DocNotFoundError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
12384   PyObject *resultobj = 0;
12385   std::string *arg1 = 0 ;
12386   std::string *arg2 = 0 ;
12387   int arg3 ;
12388   int res1 = SWIG_OLDOBJ ;
12389   int res2 = SWIG_OLDOBJ ;
12390   int val3 ;
12391   int ecode3 = 0 ;
12392   Xapian::DocNotFoundError *result = 0 ;
12393 
12394   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
12395   {
12396     std::string *ptr = (std::string *)0;
12397     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
12398     if (!SWIG_IsOK(res1)) {
12399       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DocNotFoundError" "', argument " "1"" of type '" "std::string const &""'");
12400     }
12401     if (!ptr) {
12402       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DocNotFoundError" "', argument " "1"" of type '" "std::string const &""'");
12403     }
12404     arg1 = ptr;
12405   }
12406   {
12407     std::string *ptr = (std::string *)0;
12408     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
12409     if (!SWIG_IsOK(res2)) {
12410       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DocNotFoundError" "', argument " "2"" of type '" "std::string const &""'");
12411     }
12412     if (!ptr) {
12413       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DocNotFoundError" "', argument " "2"" of type '" "std::string const &""'");
12414     }
12415     arg2 = ptr;
12416   }
12417   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
12418   if (!SWIG_IsOK(ecode3)) {
12419     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DocNotFoundError" "', argument " "3"" of type '" "int""'");
12420   }
12421   arg3 = static_cast< int >(val3);
12422   {
12423     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
12424     result = (Xapian::DocNotFoundError *)new Xapian::DocNotFoundError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
12425     SWIG_PYTHON_THREAD_END_ALLOW;
12426   }
12427   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DocNotFoundError, SWIG_POINTER_NEW |  0 );
12428   if (SWIG_IsNewObj(res1)) delete arg1;
12429   if (SWIG_IsNewObj(res2)) delete arg2;
12430   return resultobj;
12431 fail:
12432   if (SWIG_IsNewObj(res1)) delete arg1;
12433   if (SWIG_IsNewObj(res2)) delete arg2;
12434   return NULL;
12435 }
12436 
12437 
_wrap_new_DocNotFoundError__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)12438 SWIGINTERN PyObject *_wrap_new_DocNotFoundError__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
12439   PyObject *resultobj = 0;
12440   std::string *arg1 = 0 ;
12441   std::string *arg2 = 0 ;
12442   int res1 = SWIG_OLDOBJ ;
12443   int res2 = SWIG_OLDOBJ ;
12444   Xapian::DocNotFoundError *result = 0 ;
12445 
12446   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
12447   {
12448     std::string *ptr = (std::string *)0;
12449     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
12450     if (!SWIG_IsOK(res1)) {
12451       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DocNotFoundError" "', argument " "1"" of type '" "std::string const &""'");
12452     }
12453     if (!ptr) {
12454       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DocNotFoundError" "', argument " "1"" of type '" "std::string const &""'");
12455     }
12456     arg1 = ptr;
12457   }
12458   {
12459     std::string *ptr = (std::string *)0;
12460     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
12461     if (!SWIG_IsOK(res2)) {
12462       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DocNotFoundError" "', argument " "2"" of type '" "std::string const &""'");
12463     }
12464     if (!ptr) {
12465       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DocNotFoundError" "', argument " "2"" of type '" "std::string const &""'");
12466     }
12467     arg2 = ptr;
12468   }
12469   {
12470     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
12471     result = (Xapian::DocNotFoundError *)new Xapian::DocNotFoundError((std::string const &)*arg1,(std::string const &)*arg2);
12472     SWIG_PYTHON_THREAD_END_ALLOW;
12473   }
12474   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DocNotFoundError, SWIG_POINTER_NEW |  0 );
12475   if (SWIG_IsNewObj(res1)) delete arg1;
12476   if (SWIG_IsNewObj(res2)) delete arg2;
12477   return resultobj;
12478 fail:
12479   if (SWIG_IsNewObj(res1)) delete arg1;
12480   if (SWIG_IsNewObj(res2)) delete arg2;
12481   return NULL;
12482 }
12483 
12484 
_wrap_new_DocNotFoundError__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)12485 SWIGINTERN PyObject *_wrap_new_DocNotFoundError__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
12486   PyObject *resultobj = 0;
12487   std::string *arg1 = 0 ;
12488   int res1 = SWIG_OLDOBJ ;
12489   Xapian::DocNotFoundError *result = 0 ;
12490 
12491   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
12492   {
12493     std::string *ptr = (std::string *)0;
12494     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
12495     if (!SWIG_IsOK(res1)) {
12496       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DocNotFoundError" "', argument " "1"" of type '" "std::string const &""'");
12497     }
12498     if (!ptr) {
12499       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DocNotFoundError" "', argument " "1"" of type '" "std::string const &""'");
12500     }
12501     arg1 = ptr;
12502   }
12503   {
12504     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
12505     result = (Xapian::DocNotFoundError *)new Xapian::DocNotFoundError((std::string const &)*arg1);
12506     SWIG_PYTHON_THREAD_END_ALLOW;
12507   }
12508   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DocNotFoundError, SWIG_POINTER_NEW |  0 );
12509   if (SWIG_IsNewObj(res1)) delete arg1;
12510   return resultobj;
12511 fail:
12512   if (SWIG_IsNewObj(res1)) delete arg1;
12513   return NULL;
12514 }
12515 
12516 
_wrap_new_DocNotFoundError__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)12517 SWIGINTERN PyObject *_wrap_new_DocNotFoundError__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
12518   PyObject *resultobj = 0;
12519   std::string *arg1 = 0 ;
12520   int arg2 ;
12521   int res1 = SWIG_OLDOBJ ;
12522   int val2 ;
12523   int ecode2 = 0 ;
12524   Xapian::DocNotFoundError *result = 0 ;
12525 
12526   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
12527   {
12528     std::string *ptr = (std::string *)0;
12529     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
12530     if (!SWIG_IsOK(res1)) {
12531       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DocNotFoundError" "', argument " "1"" of type '" "std::string const &""'");
12532     }
12533     if (!ptr) {
12534       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DocNotFoundError" "', argument " "1"" of type '" "std::string const &""'");
12535     }
12536     arg1 = ptr;
12537   }
12538   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12539   if (!SWIG_IsOK(ecode2)) {
12540     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DocNotFoundError" "', argument " "2"" of type '" "int""'");
12541   }
12542   arg2 = static_cast< int >(val2);
12543   {
12544     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
12545     result = (Xapian::DocNotFoundError *)new Xapian::DocNotFoundError((std::string const &)*arg1,arg2);
12546     SWIG_PYTHON_THREAD_END_ALLOW;
12547   }
12548   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DocNotFoundError, SWIG_POINTER_NEW |  0 );
12549   if (SWIG_IsNewObj(res1)) delete arg1;
12550   return resultobj;
12551 fail:
12552   if (SWIG_IsNewObj(res1)) delete arg1;
12553   return NULL;
12554 }
12555 
12556 
_wrap_new_DocNotFoundError(PyObject * self,PyObject * args)12557 SWIGINTERN PyObject *_wrap_new_DocNotFoundError(PyObject *self, PyObject *args) {
12558   Py_ssize_t argc;
12559   PyObject *argv[4] = {
12560     0
12561   };
12562 
12563   if (!(argc = SWIG_Python_UnpackTuple(args,"new_DocNotFoundError",0,3,argv))) SWIG_fail;
12564   --argc;
12565   if (argc == 1) {
12566     return _wrap_new_DocNotFoundError__SWIG_3(self, argc, argv);
12567   }
12568   if (argc == 2) {
12569     int _v = 0;
12570     {
12571       {
12572         int res = SWIG_AsVal_int(argv[1], NULL);
12573         _v = SWIG_CheckState(res);
12574       }
12575     }
12576     if (!_v) goto check_2;
12577     return _wrap_new_DocNotFoundError__SWIG_4(self, argc, argv);
12578   }
12579 check_2:
12580 
12581   if (argc == 2) {
12582     return _wrap_new_DocNotFoundError__SWIG_2(self, argc, argv);
12583   }
12584   if (argc == 3) {
12585     int _v = 0;
12586     {
12587       {
12588         int res = SWIG_AsVal_int(argv[2], NULL);
12589         _v = SWIG_CheckState(res);
12590       }
12591     }
12592     if (!_v) goto check_4;
12593     return _wrap_new_DocNotFoundError__SWIG_1(self, argc, argv);
12594   }
12595 check_4:
12596 
12597   if (argc == 3) {
12598     return _wrap_new_DocNotFoundError__SWIG_0(self, argc, argv);
12599   }
12600 
12601 fail:
12602   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_DocNotFoundError'.\n"
12603     "  Possible C/C++ prototypes are:\n"
12604     "    Xapian::DocNotFoundError::DocNotFoundError(std::string const &,std::string const &,char const *)\n"
12605     "    Xapian::DocNotFoundError::DocNotFoundError(std::string const &,std::string const &,int)\n"
12606     "    Xapian::DocNotFoundError::DocNotFoundError(std::string const &,std::string const &)\n"
12607     "    Xapian::DocNotFoundError::DocNotFoundError(std::string const &)\n"
12608     "    Xapian::DocNotFoundError::DocNotFoundError(std::string const &,int)\n");
12609   return 0;
12610 }
12611 
12612 
_wrap_delete_DocNotFoundError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12613 SWIGINTERN PyObject *_wrap_delete_DocNotFoundError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12614   PyObject *resultobj = 0;
12615   Xapian::DocNotFoundError *arg1 = (Xapian::DocNotFoundError *) 0 ;
12616   void *argp1 = 0 ;
12617   int res1 = 0 ;
12618   PyObject *swig_obj[1] ;
12619 
12620   if (!args) SWIG_fail;
12621   swig_obj[0] = args;
12622   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__DocNotFoundError, SWIG_POINTER_DISOWN |  0 );
12623   if (!SWIG_IsOK(res1)) {
12624     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DocNotFoundError" "', argument " "1"" of type '" "Xapian::DocNotFoundError *""'");
12625   }
12626   arg1 = reinterpret_cast< Xapian::DocNotFoundError * >(argp1);
12627   {
12628     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
12629     delete arg1;
12630     SWIG_PYTHON_THREAD_END_ALLOW;
12631   }
12632   resultobj = SWIG_Py_Void();
12633   return resultobj;
12634 fail:
12635   return NULL;
12636 }
12637 
12638 
DocNotFoundError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12639 SWIGINTERN PyObject *DocNotFoundError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12640   PyObject *obj;
12641   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
12642   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__DocNotFoundError, SWIG_NewClientData(obj));
12643   return SWIG_Py_Void();
12644 }
12645 
DocNotFoundError_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12646 SWIGINTERN PyObject *DocNotFoundError_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12647   return SWIG_Python_InitShadowInstance(args);
12648 }
12649 
_wrap_new_FeatureUnavailableError__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)12650 SWIGINTERN PyObject *_wrap_new_FeatureUnavailableError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
12651   PyObject *resultobj = 0;
12652   std::string *arg1 = 0 ;
12653   std::string *arg2 = 0 ;
12654   char *arg3 = (char *) 0 ;
12655   int res1 = SWIG_OLDOBJ ;
12656   int res2 = SWIG_OLDOBJ ;
12657   int res3 ;
12658   char *buf3 = 0 ;
12659   int alloc3 = 0 ;
12660   Xapian::FeatureUnavailableError *result = 0 ;
12661 
12662   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
12663   {
12664     std::string *ptr = (std::string *)0;
12665     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
12666     if (!SWIG_IsOK(res1)) {
12667       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FeatureUnavailableError" "', argument " "1"" of type '" "std::string const &""'");
12668     }
12669     if (!ptr) {
12670       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FeatureUnavailableError" "', argument " "1"" of type '" "std::string const &""'");
12671     }
12672     arg1 = ptr;
12673   }
12674   {
12675     std::string *ptr = (std::string *)0;
12676     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
12677     if (!SWIG_IsOK(res2)) {
12678       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FeatureUnavailableError" "', argument " "2"" of type '" "std::string const &""'");
12679     }
12680     if (!ptr) {
12681       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FeatureUnavailableError" "', argument " "2"" of type '" "std::string const &""'");
12682     }
12683     arg2 = ptr;
12684   }
12685   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
12686   if (!SWIG_IsOK(res3)) {
12687     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FeatureUnavailableError" "', argument " "3"" of type '" "char const *""'");
12688   }
12689   arg3 = reinterpret_cast< char * >(buf3);
12690   {
12691     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
12692     result = (Xapian::FeatureUnavailableError *)new Xapian::FeatureUnavailableError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
12693     SWIG_PYTHON_THREAD_END_ALLOW;
12694   }
12695   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__FeatureUnavailableError, SWIG_POINTER_NEW |  0 );
12696   if (SWIG_IsNewObj(res1)) delete arg1;
12697   if (SWIG_IsNewObj(res2)) delete arg2;
12698   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
12699   return resultobj;
12700 fail:
12701   if (SWIG_IsNewObj(res1)) delete arg1;
12702   if (SWIG_IsNewObj(res2)) delete arg2;
12703   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
12704   return NULL;
12705 }
12706 
12707 
_wrap_new_FeatureUnavailableError__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)12708 SWIGINTERN PyObject *_wrap_new_FeatureUnavailableError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
12709   PyObject *resultobj = 0;
12710   std::string *arg1 = 0 ;
12711   std::string *arg2 = 0 ;
12712   int arg3 ;
12713   int res1 = SWIG_OLDOBJ ;
12714   int res2 = SWIG_OLDOBJ ;
12715   int val3 ;
12716   int ecode3 = 0 ;
12717   Xapian::FeatureUnavailableError *result = 0 ;
12718 
12719   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
12720   {
12721     std::string *ptr = (std::string *)0;
12722     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
12723     if (!SWIG_IsOK(res1)) {
12724       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FeatureUnavailableError" "', argument " "1"" of type '" "std::string const &""'");
12725     }
12726     if (!ptr) {
12727       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FeatureUnavailableError" "', argument " "1"" of type '" "std::string const &""'");
12728     }
12729     arg1 = ptr;
12730   }
12731   {
12732     std::string *ptr = (std::string *)0;
12733     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
12734     if (!SWIG_IsOK(res2)) {
12735       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FeatureUnavailableError" "', argument " "2"" of type '" "std::string const &""'");
12736     }
12737     if (!ptr) {
12738       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FeatureUnavailableError" "', argument " "2"" of type '" "std::string const &""'");
12739     }
12740     arg2 = ptr;
12741   }
12742   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
12743   if (!SWIG_IsOK(ecode3)) {
12744     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FeatureUnavailableError" "', argument " "3"" of type '" "int""'");
12745   }
12746   arg3 = static_cast< int >(val3);
12747   {
12748     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
12749     result = (Xapian::FeatureUnavailableError *)new Xapian::FeatureUnavailableError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
12750     SWIG_PYTHON_THREAD_END_ALLOW;
12751   }
12752   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__FeatureUnavailableError, SWIG_POINTER_NEW |  0 );
12753   if (SWIG_IsNewObj(res1)) delete arg1;
12754   if (SWIG_IsNewObj(res2)) delete arg2;
12755   return resultobj;
12756 fail:
12757   if (SWIG_IsNewObj(res1)) delete arg1;
12758   if (SWIG_IsNewObj(res2)) delete arg2;
12759   return NULL;
12760 }
12761 
12762 
_wrap_new_FeatureUnavailableError__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)12763 SWIGINTERN PyObject *_wrap_new_FeatureUnavailableError__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
12764   PyObject *resultobj = 0;
12765   std::string *arg1 = 0 ;
12766   std::string *arg2 = 0 ;
12767   int res1 = SWIG_OLDOBJ ;
12768   int res2 = SWIG_OLDOBJ ;
12769   Xapian::FeatureUnavailableError *result = 0 ;
12770 
12771   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
12772   {
12773     std::string *ptr = (std::string *)0;
12774     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
12775     if (!SWIG_IsOK(res1)) {
12776       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FeatureUnavailableError" "', argument " "1"" of type '" "std::string const &""'");
12777     }
12778     if (!ptr) {
12779       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FeatureUnavailableError" "', argument " "1"" of type '" "std::string const &""'");
12780     }
12781     arg1 = ptr;
12782   }
12783   {
12784     std::string *ptr = (std::string *)0;
12785     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
12786     if (!SWIG_IsOK(res2)) {
12787       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FeatureUnavailableError" "', argument " "2"" of type '" "std::string const &""'");
12788     }
12789     if (!ptr) {
12790       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FeatureUnavailableError" "', argument " "2"" of type '" "std::string const &""'");
12791     }
12792     arg2 = ptr;
12793   }
12794   {
12795     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
12796     result = (Xapian::FeatureUnavailableError *)new Xapian::FeatureUnavailableError((std::string const &)*arg1,(std::string const &)*arg2);
12797     SWIG_PYTHON_THREAD_END_ALLOW;
12798   }
12799   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__FeatureUnavailableError, SWIG_POINTER_NEW |  0 );
12800   if (SWIG_IsNewObj(res1)) delete arg1;
12801   if (SWIG_IsNewObj(res2)) delete arg2;
12802   return resultobj;
12803 fail:
12804   if (SWIG_IsNewObj(res1)) delete arg1;
12805   if (SWIG_IsNewObj(res2)) delete arg2;
12806   return NULL;
12807 }
12808 
12809 
_wrap_new_FeatureUnavailableError__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)12810 SWIGINTERN PyObject *_wrap_new_FeatureUnavailableError__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
12811   PyObject *resultobj = 0;
12812   std::string *arg1 = 0 ;
12813   int res1 = SWIG_OLDOBJ ;
12814   Xapian::FeatureUnavailableError *result = 0 ;
12815 
12816   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
12817   {
12818     std::string *ptr = (std::string *)0;
12819     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
12820     if (!SWIG_IsOK(res1)) {
12821       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FeatureUnavailableError" "', argument " "1"" of type '" "std::string const &""'");
12822     }
12823     if (!ptr) {
12824       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FeatureUnavailableError" "', argument " "1"" of type '" "std::string const &""'");
12825     }
12826     arg1 = ptr;
12827   }
12828   {
12829     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
12830     result = (Xapian::FeatureUnavailableError *)new Xapian::FeatureUnavailableError((std::string const &)*arg1);
12831     SWIG_PYTHON_THREAD_END_ALLOW;
12832   }
12833   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__FeatureUnavailableError, SWIG_POINTER_NEW |  0 );
12834   if (SWIG_IsNewObj(res1)) delete arg1;
12835   return resultobj;
12836 fail:
12837   if (SWIG_IsNewObj(res1)) delete arg1;
12838   return NULL;
12839 }
12840 
12841 
_wrap_new_FeatureUnavailableError__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)12842 SWIGINTERN PyObject *_wrap_new_FeatureUnavailableError__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
12843   PyObject *resultobj = 0;
12844   std::string *arg1 = 0 ;
12845   int arg2 ;
12846   int res1 = SWIG_OLDOBJ ;
12847   int val2 ;
12848   int ecode2 = 0 ;
12849   Xapian::FeatureUnavailableError *result = 0 ;
12850 
12851   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
12852   {
12853     std::string *ptr = (std::string *)0;
12854     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
12855     if (!SWIG_IsOK(res1)) {
12856       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FeatureUnavailableError" "', argument " "1"" of type '" "std::string const &""'");
12857     }
12858     if (!ptr) {
12859       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FeatureUnavailableError" "', argument " "1"" of type '" "std::string const &""'");
12860     }
12861     arg1 = ptr;
12862   }
12863   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12864   if (!SWIG_IsOK(ecode2)) {
12865     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FeatureUnavailableError" "', argument " "2"" of type '" "int""'");
12866   }
12867   arg2 = static_cast< int >(val2);
12868   {
12869     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
12870     result = (Xapian::FeatureUnavailableError *)new Xapian::FeatureUnavailableError((std::string const &)*arg1,arg2);
12871     SWIG_PYTHON_THREAD_END_ALLOW;
12872   }
12873   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__FeatureUnavailableError, SWIG_POINTER_NEW |  0 );
12874   if (SWIG_IsNewObj(res1)) delete arg1;
12875   return resultobj;
12876 fail:
12877   if (SWIG_IsNewObj(res1)) delete arg1;
12878   return NULL;
12879 }
12880 
12881 
_wrap_new_FeatureUnavailableError(PyObject * self,PyObject * args)12882 SWIGINTERN PyObject *_wrap_new_FeatureUnavailableError(PyObject *self, PyObject *args) {
12883   Py_ssize_t argc;
12884   PyObject *argv[4] = {
12885     0
12886   };
12887 
12888   if (!(argc = SWIG_Python_UnpackTuple(args,"new_FeatureUnavailableError",0,3,argv))) SWIG_fail;
12889   --argc;
12890   if (argc == 1) {
12891     return _wrap_new_FeatureUnavailableError__SWIG_3(self, argc, argv);
12892   }
12893   if (argc == 2) {
12894     int _v = 0;
12895     {
12896       {
12897         int res = SWIG_AsVal_int(argv[1], NULL);
12898         _v = SWIG_CheckState(res);
12899       }
12900     }
12901     if (!_v) goto check_2;
12902     return _wrap_new_FeatureUnavailableError__SWIG_4(self, argc, argv);
12903   }
12904 check_2:
12905 
12906   if (argc == 2) {
12907     return _wrap_new_FeatureUnavailableError__SWIG_2(self, argc, argv);
12908   }
12909   if (argc == 3) {
12910     int _v = 0;
12911     {
12912       {
12913         int res = SWIG_AsVal_int(argv[2], NULL);
12914         _v = SWIG_CheckState(res);
12915       }
12916     }
12917     if (!_v) goto check_4;
12918     return _wrap_new_FeatureUnavailableError__SWIG_1(self, argc, argv);
12919   }
12920 check_4:
12921 
12922   if (argc == 3) {
12923     return _wrap_new_FeatureUnavailableError__SWIG_0(self, argc, argv);
12924   }
12925 
12926 fail:
12927   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_FeatureUnavailableError'.\n"
12928     "  Possible C/C++ prototypes are:\n"
12929     "    Xapian::FeatureUnavailableError::FeatureUnavailableError(std::string const &,std::string const &,char const *)\n"
12930     "    Xapian::FeatureUnavailableError::FeatureUnavailableError(std::string const &,std::string const &,int)\n"
12931     "    Xapian::FeatureUnavailableError::FeatureUnavailableError(std::string const &,std::string const &)\n"
12932     "    Xapian::FeatureUnavailableError::FeatureUnavailableError(std::string const &)\n"
12933     "    Xapian::FeatureUnavailableError::FeatureUnavailableError(std::string const &,int)\n");
12934   return 0;
12935 }
12936 
12937 
_wrap_delete_FeatureUnavailableError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12938 SWIGINTERN PyObject *_wrap_delete_FeatureUnavailableError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12939   PyObject *resultobj = 0;
12940   Xapian::FeatureUnavailableError *arg1 = (Xapian::FeatureUnavailableError *) 0 ;
12941   void *argp1 = 0 ;
12942   int res1 = 0 ;
12943   PyObject *swig_obj[1] ;
12944 
12945   if (!args) SWIG_fail;
12946   swig_obj[0] = args;
12947   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__FeatureUnavailableError, SWIG_POINTER_DISOWN |  0 );
12948   if (!SWIG_IsOK(res1)) {
12949     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FeatureUnavailableError" "', argument " "1"" of type '" "Xapian::FeatureUnavailableError *""'");
12950   }
12951   arg1 = reinterpret_cast< Xapian::FeatureUnavailableError * >(argp1);
12952   {
12953     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
12954     delete arg1;
12955     SWIG_PYTHON_THREAD_END_ALLOW;
12956   }
12957   resultobj = SWIG_Py_Void();
12958   return resultobj;
12959 fail:
12960   return NULL;
12961 }
12962 
12963 
FeatureUnavailableError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12964 SWIGINTERN PyObject *FeatureUnavailableError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12965   PyObject *obj;
12966   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
12967   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__FeatureUnavailableError, SWIG_NewClientData(obj));
12968   return SWIG_Py_Void();
12969 }
12970 
FeatureUnavailableError_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12971 SWIGINTERN PyObject *FeatureUnavailableError_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12972   return SWIG_Python_InitShadowInstance(args);
12973 }
12974 
_wrap_new_InternalError__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)12975 SWIGINTERN PyObject *_wrap_new_InternalError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
12976   PyObject *resultobj = 0;
12977   std::string *arg1 = 0 ;
12978   std::string *arg2 = 0 ;
12979   char *arg3 = (char *) 0 ;
12980   int res1 = SWIG_OLDOBJ ;
12981   int res2 = SWIG_OLDOBJ ;
12982   int res3 ;
12983   char *buf3 = 0 ;
12984   int alloc3 = 0 ;
12985   Xapian::InternalError *result = 0 ;
12986 
12987   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
12988   {
12989     std::string *ptr = (std::string *)0;
12990     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
12991     if (!SWIG_IsOK(res1)) {
12992       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InternalError" "', argument " "1"" of type '" "std::string const &""'");
12993     }
12994     if (!ptr) {
12995       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InternalError" "', argument " "1"" of type '" "std::string const &""'");
12996     }
12997     arg1 = ptr;
12998   }
12999   {
13000     std::string *ptr = (std::string *)0;
13001     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
13002     if (!SWIG_IsOK(res2)) {
13003       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_InternalError" "', argument " "2"" of type '" "std::string const &""'");
13004     }
13005     if (!ptr) {
13006       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InternalError" "', argument " "2"" of type '" "std::string const &""'");
13007     }
13008     arg2 = ptr;
13009   }
13010   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
13011   if (!SWIG_IsOK(res3)) {
13012     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_InternalError" "', argument " "3"" of type '" "char const *""'");
13013   }
13014   arg3 = reinterpret_cast< char * >(buf3);
13015   {
13016     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
13017     result = (Xapian::InternalError *)new Xapian::InternalError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
13018     SWIG_PYTHON_THREAD_END_ALLOW;
13019   }
13020   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__InternalError, SWIG_POINTER_NEW |  0 );
13021   if (SWIG_IsNewObj(res1)) delete arg1;
13022   if (SWIG_IsNewObj(res2)) delete arg2;
13023   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
13024   return resultobj;
13025 fail:
13026   if (SWIG_IsNewObj(res1)) delete arg1;
13027   if (SWIG_IsNewObj(res2)) delete arg2;
13028   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
13029   return NULL;
13030 }
13031 
13032 
_wrap_new_InternalError__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)13033 SWIGINTERN PyObject *_wrap_new_InternalError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
13034   PyObject *resultobj = 0;
13035   std::string *arg1 = 0 ;
13036   std::string *arg2 = 0 ;
13037   int arg3 ;
13038   int res1 = SWIG_OLDOBJ ;
13039   int res2 = SWIG_OLDOBJ ;
13040   int val3 ;
13041   int ecode3 = 0 ;
13042   Xapian::InternalError *result = 0 ;
13043 
13044   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
13045   {
13046     std::string *ptr = (std::string *)0;
13047     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
13048     if (!SWIG_IsOK(res1)) {
13049       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InternalError" "', argument " "1"" of type '" "std::string const &""'");
13050     }
13051     if (!ptr) {
13052       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InternalError" "', argument " "1"" of type '" "std::string const &""'");
13053     }
13054     arg1 = ptr;
13055   }
13056   {
13057     std::string *ptr = (std::string *)0;
13058     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
13059     if (!SWIG_IsOK(res2)) {
13060       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_InternalError" "', argument " "2"" of type '" "std::string const &""'");
13061     }
13062     if (!ptr) {
13063       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InternalError" "', argument " "2"" of type '" "std::string const &""'");
13064     }
13065     arg2 = ptr;
13066   }
13067   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
13068   if (!SWIG_IsOK(ecode3)) {
13069     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_InternalError" "', argument " "3"" of type '" "int""'");
13070   }
13071   arg3 = static_cast< int >(val3);
13072   {
13073     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
13074     result = (Xapian::InternalError *)new Xapian::InternalError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
13075     SWIG_PYTHON_THREAD_END_ALLOW;
13076   }
13077   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__InternalError, SWIG_POINTER_NEW |  0 );
13078   if (SWIG_IsNewObj(res1)) delete arg1;
13079   if (SWIG_IsNewObj(res2)) delete arg2;
13080   return resultobj;
13081 fail:
13082   if (SWIG_IsNewObj(res1)) delete arg1;
13083   if (SWIG_IsNewObj(res2)) delete arg2;
13084   return NULL;
13085 }
13086 
13087 
_wrap_new_InternalError__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)13088 SWIGINTERN PyObject *_wrap_new_InternalError__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
13089   PyObject *resultobj = 0;
13090   std::string *arg1 = 0 ;
13091   std::string *arg2 = 0 ;
13092   int res1 = SWIG_OLDOBJ ;
13093   int res2 = SWIG_OLDOBJ ;
13094   Xapian::InternalError *result = 0 ;
13095 
13096   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
13097   {
13098     std::string *ptr = (std::string *)0;
13099     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
13100     if (!SWIG_IsOK(res1)) {
13101       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InternalError" "', argument " "1"" of type '" "std::string const &""'");
13102     }
13103     if (!ptr) {
13104       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InternalError" "', argument " "1"" of type '" "std::string const &""'");
13105     }
13106     arg1 = ptr;
13107   }
13108   {
13109     std::string *ptr = (std::string *)0;
13110     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
13111     if (!SWIG_IsOK(res2)) {
13112       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_InternalError" "', argument " "2"" of type '" "std::string const &""'");
13113     }
13114     if (!ptr) {
13115       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InternalError" "', argument " "2"" of type '" "std::string const &""'");
13116     }
13117     arg2 = ptr;
13118   }
13119   {
13120     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
13121     result = (Xapian::InternalError *)new Xapian::InternalError((std::string const &)*arg1,(std::string const &)*arg2);
13122     SWIG_PYTHON_THREAD_END_ALLOW;
13123   }
13124   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__InternalError, SWIG_POINTER_NEW |  0 );
13125   if (SWIG_IsNewObj(res1)) delete arg1;
13126   if (SWIG_IsNewObj(res2)) delete arg2;
13127   return resultobj;
13128 fail:
13129   if (SWIG_IsNewObj(res1)) delete arg1;
13130   if (SWIG_IsNewObj(res2)) delete arg2;
13131   return NULL;
13132 }
13133 
13134 
_wrap_new_InternalError__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)13135 SWIGINTERN PyObject *_wrap_new_InternalError__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
13136   PyObject *resultobj = 0;
13137   std::string *arg1 = 0 ;
13138   int res1 = SWIG_OLDOBJ ;
13139   Xapian::InternalError *result = 0 ;
13140 
13141   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
13142   {
13143     std::string *ptr = (std::string *)0;
13144     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
13145     if (!SWIG_IsOK(res1)) {
13146       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InternalError" "', argument " "1"" of type '" "std::string const &""'");
13147     }
13148     if (!ptr) {
13149       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InternalError" "', argument " "1"" of type '" "std::string const &""'");
13150     }
13151     arg1 = ptr;
13152   }
13153   {
13154     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
13155     result = (Xapian::InternalError *)new Xapian::InternalError((std::string const &)*arg1);
13156     SWIG_PYTHON_THREAD_END_ALLOW;
13157   }
13158   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__InternalError, SWIG_POINTER_NEW |  0 );
13159   if (SWIG_IsNewObj(res1)) delete arg1;
13160   return resultobj;
13161 fail:
13162   if (SWIG_IsNewObj(res1)) delete arg1;
13163   return NULL;
13164 }
13165 
13166 
_wrap_new_InternalError__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)13167 SWIGINTERN PyObject *_wrap_new_InternalError__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
13168   PyObject *resultobj = 0;
13169   std::string *arg1 = 0 ;
13170   int arg2 ;
13171   int res1 = SWIG_OLDOBJ ;
13172   int val2 ;
13173   int ecode2 = 0 ;
13174   Xapian::InternalError *result = 0 ;
13175 
13176   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
13177   {
13178     std::string *ptr = (std::string *)0;
13179     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
13180     if (!SWIG_IsOK(res1)) {
13181       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InternalError" "', argument " "1"" of type '" "std::string const &""'");
13182     }
13183     if (!ptr) {
13184       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InternalError" "', argument " "1"" of type '" "std::string const &""'");
13185     }
13186     arg1 = ptr;
13187   }
13188   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13189   if (!SWIG_IsOK(ecode2)) {
13190     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_InternalError" "', argument " "2"" of type '" "int""'");
13191   }
13192   arg2 = static_cast< int >(val2);
13193   {
13194     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
13195     result = (Xapian::InternalError *)new Xapian::InternalError((std::string const &)*arg1,arg2);
13196     SWIG_PYTHON_THREAD_END_ALLOW;
13197   }
13198   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__InternalError, SWIG_POINTER_NEW |  0 );
13199   if (SWIG_IsNewObj(res1)) delete arg1;
13200   return resultobj;
13201 fail:
13202   if (SWIG_IsNewObj(res1)) delete arg1;
13203   return NULL;
13204 }
13205 
13206 
_wrap_new_InternalError(PyObject * self,PyObject * args)13207 SWIGINTERN PyObject *_wrap_new_InternalError(PyObject *self, PyObject *args) {
13208   Py_ssize_t argc;
13209   PyObject *argv[4] = {
13210     0
13211   };
13212 
13213   if (!(argc = SWIG_Python_UnpackTuple(args,"new_InternalError",0,3,argv))) SWIG_fail;
13214   --argc;
13215   if (argc == 1) {
13216     return _wrap_new_InternalError__SWIG_3(self, argc, argv);
13217   }
13218   if (argc == 2) {
13219     int _v = 0;
13220     {
13221       {
13222         int res = SWIG_AsVal_int(argv[1], NULL);
13223         _v = SWIG_CheckState(res);
13224       }
13225     }
13226     if (!_v) goto check_2;
13227     return _wrap_new_InternalError__SWIG_4(self, argc, argv);
13228   }
13229 check_2:
13230 
13231   if (argc == 2) {
13232     return _wrap_new_InternalError__SWIG_2(self, argc, argv);
13233   }
13234   if (argc == 3) {
13235     int _v = 0;
13236     {
13237       {
13238         int res = SWIG_AsVal_int(argv[2], NULL);
13239         _v = SWIG_CheckState(res);
13240       }
13241     }
13242     if (!_v) goto check_4;
13243     return _wrap_new_InternalError__SWIG_1(self, argc, argv);
13244   }
13245 check_4:
13246 
13247   if (argc == 3) {
13248     return _wrap_new_InternalError__SWIG_0(self, argc, argv);
13249   }
13250 
13251 fail:
13252   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_InternalError'.\n"
13253     "  Possible C/C++ prototypes are:\n"
13254     "    Xapian::InternalError::InternalError(std::string const &,std::string const &,char const *)\n"
13255     "    Xapian::InternalError::InternalError(std::string const &,std::string const &,int)\n"
13256     "    Xapian::InternalError::InternalError(std::string const &,std::string const &)\n"
13257     "    Xapian::InternalError::InternalError(std::string const &)\n"
13258     "    Xapian::InternalError::InternalError(std::string const &,int)\n");
13259   return 0;
13260 }
13261 
13262 
_wrap_delete_InternalError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13263 SWIGINTERN PyObject *_wrap_delete_InternalError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13264   PyObject *resultobj = 0;
13265   Xapian::InternalError *arg1 = (Xapian::InternalError *) 0 ;
13266   void *argp1 = 0 ;
13267   int res1 = 0 ;
13268   PyObject *swig_obj[1] ;
13269 
13270   if (!args) SWIG_fail;
13271   swig_obj[0] = args;
13272   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__InternalError, SWIG_POINTER_DISOWN |  0 );
13273   if (!SWIG_IsOK(res1)) {
13274     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_InternalError" "', argument " "1"" of type '" "Xapian::InternalError *""'");
13275   }
13276   arg1 = reinterpret_cast< Xapian::InternalError * >(argp1);
13277   {
13278     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
13279     delete arg1;
13280     SWIG_PYTHON_THREAD_END_ALLOW;
13281   }
13282   resultobj = SWIG_Py_Void();
13283   return resultobj;
13284 fail:
13285   return NULL;
13286 }
13287 
13288 
InternalError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13289 SWIGINTERN PyObject *InternalError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13290   PyObject *obj;
13291   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
13292   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__InternalError, SWIG_NewClientData(obj));
13293   return SWIG_Py_Void();
13294 }
13295 
InternalError_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13296 SWIGINTERN PyObject *InternalError_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13297   return SWIG_Python_InitShadowInstance(args);
13298 }
13299 
_wrap_new_NetworkError__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)13300 SWIGINTERN PyObject *_wrap_new_NetworkError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
13301   PyObject *resultobj = 0;
13302   std::string *arg1 = 0 ;
13303   std::string *arg2 = 0 ;
13304   char *arg3 = (char *) 0 ;
13305   int res1 = SWIG_OLDOBJ ;
13306   int res2 = SWIG_OLDOBJ ;
13307   int res3 ;
13308   char *buf3 = 0 ;
13309   int alloc3 = 0 ;
13310   Xapian::NetworkError *result = 0 ;
13311 
13312   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
13313   {
13314     std::string *ptr = (std::string *)0;
13315     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
13316     if (!SWIG_IsOK(res1)) {
13317       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NetworkError" "', argument " "1"" of type '" "std::string const &""'");
13318     }
13319     if (!ptr) {
13320       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NetworkError" "', argument " "1"" of type '" "std::string const &""'");
13321     }
13322     arg1 = ptr;
13323   }
13324   {
13325     std::string *ptr = (std::string *)0;
13326     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
13327     if (!SWIG_IsOK(res2)) {
13328       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NetworkError" "', argument " "2"" of type '" "std::string const &""'");
13329     }
13330     if (!ptr) {
13331       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NetworkError" "', argument " "2"" of type '" "std::string const &""'");
13332     }
13333     arg2 = ptr;
13334   }
13335   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
13336   if (!SWIG_IsOK(res3)) {
13337     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_NetworkError" "', argument " "3"" of type '" "char const *""'");
13338   }
13339   arg3 = reinterpret_cast< char * >(buf3);
13340   {
13341     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
13342     result = (Xapian::NetworkError *)new Xapian::NetworkError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
13343     SWIG_PYTHON_THREAD_END_ALLOW;
13344   }
13345   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__NetworkError, SWIG_POINTER_NEW |  0 );
13346   if (SWIG_IsNewObj(res1)) delete arg1;
13347   if (SWIG_IsNewObj(res2)) delete arg2;
13348   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
13349   return resultobj;
13350 fail:
13351   if (SWIG_IsNewObj(res1)) delete arg1;
13352   if (SWIG_IsNewObj(res2)) delete arg2;
13353   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
13354   return NULL;
13355 }
13356 
13357 
_wrap_new_NetworkError__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)13358 SWIGINTERN PyObject *_wrap_new_NetworkError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
13359   PyObject *resultobj = 0;
13360   std::string *arg1 = 0 ;
13361   std::string *arg2 = 0 ;
13362   int arg3 ;
13363   int res1 = SWIG_OLDOBJ ;
13364   int res2 = SWIG_OLDOBJ ;
13365   int val3 ;
13366   int ecode3 = 0 ;
13367   Xapian::NetworkError *result = 0 ;
13368 
13369   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
13370   {
13371     std::string *ptr = (std::string *)0;
13372     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
13373     if (!SWIG_IsOK(res1)) {
13374       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NetworkError" "', argument " "1"" of type '" "std::string const &""'");
13375     }
13376     if (!ptr) {
13377       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NetworkError" "', argument " "1"" of type '" "std::string const &""'");
13378     }
13379     arg1 = ptr;
13380   }
13381   {
13382     std::string *ptr = (std::string *)0;
13383     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
13384     if (!SWIG_IsOK(res2)) {
13385       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NetworkError" "', argument " "2"" of type '" "std::string const &""'");
13386     }
13387     if (!ptr) {
13388       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NetworkError" "', argument " "2"" of type '" "std::string const &""'");
13389     }
13390     arg2 = ptr;
13391   }
13392   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
13393   if (!SWIG_IsOK(ecode3)) {
13394     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NetworkError" "', argument " "3"" of type '" "int""'");
13395   }
13396   arg3 = static_cast< int >(val3);
13397   {
13398     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
13399     result = (Xapian::NetworkError *)new Xapian::NetworkError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
13400     SWIG_PYTHON_THREAD_END_ALLOW;
13401   }
13402   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__NetworkError, SWIG_POINTER_NEW |  0 );
13403   if (SWIG_IsNewObj(res1)) delete arg1;
13404   if (SWIG_IsNewObj(res2)) delete arg2;
13405   return resultobj;
13406 fail:
13407   if (SWIG_IsNewObj(res1)) delete arg1;
13408   if (SWIG_IsNewObj(res2)) delete arg2;
13409   return NULL;
13410 }
13411 
13412 
_wrap_new_NetworkError__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)13413 SWIGINTERN PyObject *_wrap_new_NetworkError__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
13414   PyObject *resultobj = 0;
13415   std::string *arg1 = 0 ;
13416   std::string *arg2 = 0 ;
13417   int res1 = SWIG_OLDOBJ ;
13418   int res2 = SWIG_OLDOBJ ;
13419   Xapian::NetworkError *result = 0 ;
13420 
13421   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
13422   {
13423     std::string *ptr = (std::string *)0;
13424     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
13425     if (!SWIG_IsOK(res1)) {
13426       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NetworkError" "', argument " "1"" of type '" "std::string const &""'");
13427     }
13428     if (!ptr) {
13429       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NetworkError" "', argument " "1"" of type '" "std::string const &""'");
13430     }
13431     arg1 = ptr;
13432   }
13433   {
13434     std::string *ptr = (std::string *)0;
13435     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
13436     if (!SWIG_IsOK(res2)) {
13437       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NetworkError" "', argument " "2"" of type '" "std::string const &""'");
13438     }
13439     if (!ptr) {
13440       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NetworkError" "', argument " "2"" of type '" "std::string const &""'");
13441     }
13442     arg2 = ptr;
13443   }
13444   {
13445     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
13446     result = (Xapian::NetworkError *)new Xapian::NetworkError((std::string const &)*arg1,(std::string const &)*arg2);
13447     SWIG_PYTHON_THREAD_END_ALLOW;
13448   }
13449   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__NetworkError, SWIG_POINTER_NEW |  0 );
13450   if (SWIG_IsNewObj(res1)) delete arg1;
13451   if (SWIG_IsNewObj(res2)) delete arg2;
13452   return resultobj;
13453 fail:
13454   if (SWIG_IsNewObj(res1)) delete arg1;
13455   if (SWIG_IsNewObj(res2)) delete arg2;
13456   return NULL;
13457 }
13458 
13459 
_wrap_new_NetworkError__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)13460 SWIGINTERN PyObject *_wrap_new_NetworkError__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
13461   PyObject *resultobj = 0;
13462   std::string *arg1 = 0 ;
13463   int res1 = SWIG_OLDOBJ ;
13464   Xapian::NetworkError *result = 0 ;
13465 
13466   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
13467   {
13468     std::string *ptr = (std::string *)0;
13469     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
13470     if (!SWIG_IsOK(res1)) {
13471       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NetworkError" "', argument " "1"" of type '" "std::string const &""'");
13472     }
13473     if (!ptr) {
13474       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NetworkError" "', argument " "1"" of type '" "std::string const &""'");
13475     }
13476     arg1 = ptr;
13477   }
13478   {
13479     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
13480     result = (Xapian::NetworkError *)new Xapian::NetworkError((std::string const &)*arg1);
13481     SWIG_PYTHON_THREAD_END_ALLOW;
13482   }
13483   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__NetworkError, SWIG_POINTER_NEW |  0 );
13484   if (SWIG_IsNewObj(res1)) delete arg1;
13485   return resultobj;
13486 fail:
13487   if (SWIG_IsNewObj(res1)) delete arg1;
13488   return NULL;
13489 }
13490 
13491 
_wrap_new_NetworkError__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)13492 SWIGINTERN PyObject *_wrap_new_NetworkError__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
13493   PyObject *resultobj = 0;
13494   std::string *arg1 = 0 ;
13495   int arg2 ;
13496   int res1 = SWIG_OLDOBJ ;
13497   int val2 ;
13498   int ecode2 = 0 ;
13499   Xapian::NetworkError *result = 0 ;
13500 
13501   if ((nobjs < 2) || (nobjs > 2)) 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       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NetworkError" "', argument " "1"" of type '" "std::string const &""'");
13507     }
13508     if (!ptr) {
13509       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NetworkError" "', argument " "1"" of type '" "std::string const &""'");
13510     }
13511     arg1 = ptr;
13512   }
13513   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13514   if (!SWIG_IsOK(ecode2)) {
13515     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NetworkError" "', argument " "2"" of type '" "int""'");
13516   }
13517   arg2 = static_cast< int >(val2);
13518   {
13519     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
13520     result = (Xapian::NetworkError *)new Xapian::NetworkError((std::string const &)*arg1,arg2);
13521     SWIG_PYTHON_THREAD_END_ALLOW;
13522   }
13523   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__NetworkError, SWIG_POINTER_NEW |  0 );
13524   if (SWIG_IsNewObj(res1)) delete arg1;
13525   return resultobj;
13526 fail:
13527   if (SWIG_IsNewObj(res1)) delete arg1;
13528   return NULL;
13529 }
13530 
13531 
_wrap_new_NetworkError(PyObject * self,PyObject * args)13532 SWIGINTERN PyObject *_wrap_new_NetworkError(PyObject *self, PyObject *args) {
13533   Py_ssize_t argc;
13534   PyObject *argv[4] = {
13535     0
13536   };
13537 
13538   if (!(argc = SWIG_Python_UnpackTuple(args,"new_NetworkError",0,3,argv))) SWIG_fail;
13539   --argc;
13540   if (argc == 1) {
13541     return _wrap_new_NetworkError__SWIG_3(self, argc, argv);
13542   }
13543   if (argc == 2) {
13544     int _v = 0;
13545     {
13546       {
13547         int res = SWIG_AsVal_int(argv[1], NULL);
13548         _v = SWIG_CheckState(res);
13549       }
13550     }
13551     if (!_v) goto check_2;
13552     return _wrap_new_NetworkError__SWIG_4(self, argc, argv);
13553   }
13554 check_2:
13555 
13556   if (argc == 2) {
13557     return _wrap_new_NetworkError__SWIG_2(self, argc, argv);
13558   }
13559   if (argc == 3) {
13560     int _v = 0;
13561     {
13562       {
13563         int res = SWIG_AsVal_int(argv[2], NULL);
13564         _v = SWIG_CheckState(res);
13565       }
13566     }
13567     if (!_v) goto check_4;
13568     return _wrap_new_NetworkError__SWIG_1(self, argc, argv);
13569   }
13570 check_4:
13571 
13572   if (argc == 3) {
13573     return _wrap_new_NetworkError__SWIG_0(self, argc, argv);
13574   }
13575 
13576 fail:
13577   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_NetworkError'.\n"
13578     "  Possible C/C++ prototypes are:\n"
13579     "    Xapian::NetworkError::NetworkError(std::string const &,std::string const &,char const *)\n"
13580     "    Xapian::NetworkError::NetworkError(std::string const &,std::string const &,int)\n"
13581     "    Xapian::NetworkError::NetworkError(std::string const &,std::string const &)\n"
13582     "    Xapian::NetworkError::NetworkError(std::string const &)\n"
13583     "    Xapian::NetworkError::NetworkError(std::string const &,int)\n");
13584   return 0;
13585 }
13586 
13587 
_wrap_delete_NetworkError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13588 SWIGINTERN PyObject *_wrap_delete_NetworkError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13589   PyObject *resultobj = 0;
13590   Xapian::NetworkError *arg1 = (Xapian::NetworkError *) 0 ;
13591   void *argp1 = 0 ;
13592   int res1 = 0 ;
13593   PyObject *swig_obj[1] ;
13594 
13595   if (!args) SWIG_fail;
13596   swig_obj[0] = args;
13597   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__NetworkError, SWIG_POINTER_DISOWN |  0 );
13598   if (!SWIG_IsOK(res1)) {
13599     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NetworkError" "', argument " "1"" of type '" "Xapian::NetworkError *""'");
13600   }
13601   arg1 = reinterpret_cast< Xapian::NetworkError * >(argp1);
13602   {
13603     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
13604     delete arg1;
13605     SWIG_PYTHON_THREAD_END_ALLOW;
13606   }
13607   resultobj = SWIG_Py_Void();
13608   return resultobj;
13609 fail:
13610   return NULL;
13611 }
13612 
13613 
NetworkError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13614 SWIGINTERN PyObject *NetworkError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13615   PyObject *obj;
13616   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
13617   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__NetworkError, SWIG_NewClientData(obj));
13618   return SWIG_Py_Void();
13619 }
13620 
NetworkError_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13621 SWIGINTERN PyObject *NetworkError_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13622   return SWIG_Python_InitShadowInstance(args);
13623 }
13624 
_wrap_new_NetworkTimeoutError__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)13625 SWIGINTERN PyObject *_wrap_new_NetworkTimeoutError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
13626   PyObject *resultobj = 0;
13627   std::string *arg1 = 0 ;
13628   std::string *arg2 = 0 ;
13629   char *arg3 = (char *) 0 ;
13630   int res1 = SWIG_OLDOBJ ;
13631   int res2 = SWIG_OLDOBJ ;
13632   int res3 ;
13633   char *buf3 = 0 ;
13634   int alloc3 = 0 ;
13635   Xapian::NetworkTimeoutError *result = 0 ;
13636 
13637   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
13638   {
13639     std::string *ptr = (std::string *)0;
13640     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
13641     if (!SWIG_IsOK(res1)) {
13642       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NetworkTimeoutError" "', argument " "1"" of type '" "std::string const &""'");
13643     }
13644     if (!ptr) {
13645       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NetworkTimeoutError" "', argument " "1"" of type '" "std::string const &""'");
13646     }
13647     arg1 = ptr;
13648   }
13649   {
13650     std::string *ptr = (std::string *)0;
13651     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
13652     if (!SWIG_IsOK(res2)) {
13653       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NetworkTimeoutError" "', argument " "2"" of type '" "std::string const &""'");
13654     }
13655     if (!ptr) {
13656       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NetworkTimeoutError" "', argument " "2"" of type '" "std::string const &""'");
13657     }
13658     arg2 = ptr;
13659   }
13660   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
13661   if (!SWIG_IsOK(res3)) {
13662     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_NetworkTimeoutError" "', argument " "3"" of type '" "char const *""'");
13663   }
13664   arg3 = reinterpret_cast< char * >(buf3);
13665   {
13666     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
13667     result = (Xapian::NetworkTimeoutError *)new Xapian::NetworkTimeoutError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
13668     SWIG_PYTHON_THREAD_END_ALLOW;
13669   }
13670   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__NetworkTimeoutError, SWIG_POINTER_NEW |  0 );
13671   if (SWIG_IsNewObj(res1)) delete arg1;
13672   if (SWIG_IsNewObj(res2)) delete arg2;
13673   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
13674   return resultobj;
13675 fail:
13676   if (SWIG_IsNewObj(res1)) delete arg1;
13677   if (SWIG_IsNewObj(res2)) delete arg2;
13678   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
13679   return NULL;
13680 }
13681 
13682 
_wrap_new_NetworkTimeoutError__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)13683 SWIGINTERN PyObject *_wrap_new_NetworkTimeoutError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
13684   PyObject *resultobj = 0;
13685   std::string *arg1 = 0 ;
13686   std::string *arg2 = 0 ;
13687   int arg3 ;
13688   int res1 = SWIG_OLDOBJ ;
13689   int res2 = SWIG_OLDOBJ ;
13690   int val3 ;
13691   int ecode3 = 0 ;
13692   Xapian::NetworkTimeoutError *result = 0 ;
13693 
13694   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
13695   {
13696     std::string *ptr = (std::string *)0;
13697     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
13698     if (!SWIG_IsOK(res1)) {
13699       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NetworkTimeoutError" "', argument " "1"" of type '" "std::string const &""'");
13700     }
13701     if (!ptr) {
13702       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NetworkTimeoutError" "', argument " "1"" of type '" "std::string const &""'");
13703     }
13704     arg1 = ptr;
13705   }
13706   {
13707     std::string *ptr = (std::string *)0;
13708     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
13709     if (!SWIG_IsOK(res2)) {
13710       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NetworkTimeoutError" "', argument " "2"" of type '" "std::string const &""'");
13711     }
13712     if (!ptr) {
13713       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NetworkTimeoutError" "', argument " "2"" of type '" "std::string const &""'");
13714     }
13715     arg2 = ptr;
13716   }
13717   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
13718   if (!SWIG_IsOK(ecode3)) {
13719     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NetworkTimeoutError" "', argument " "3"" of type '" "int""'");
13720   }
13721   arg3 = static_cast< int >(val3);
13722   {
13723     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
13724     result = (Xapian::NetworkTimeoutError *)new Xapian::NetworkTimeoutError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
13725     SWIG_PYTHON_THREAD_END_ALLOW;
13726   }
13727   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__NetworkTimeoutError, SWIG_POINTER_NEW |  0 );
13728   if (SWIG_IsNewObj(res1)) delete arg1;
13729   if (SWIG_IsNewObj(res2)) delete arg2;
13730   return resultobj;
13731 fail:
13732   if (SWIG_IsNewObj(res1)) delete arg1;
13733   if (SWIG_IsNewObj(res2)) delete arg2;
13734   return NULL;
13735 }
13736 
13737 
_wrap_new_NetworkTimeoutError__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)13738 SWIGINTERN PyObject *_wrap_new_NetworkTimeoutError__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
13739   PyObject *resultobj = 0;
13740   std::string *arg1 = 0 ;
13741   std::string *arg2 = 0 ;
13742   int res1 = SWIG_OLDOBJ ;
13743   int res2 = SWIG_OLDOBJ ;
13744   Xapian::NetworkTimeoutError *result = 0 ;
13745 
13746   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
13747   {
13748     std::string *ptr = (std::string *)0;
13749     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
13750     if (!SWIG_IsOK(res1)) {
13751       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NetworkTimeoutError" "', argument " "1"" of type '" "std::string const &""'");
13752     }
13753     if (!ptr) {
13754       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NetworkTimeoutError" "', argument " "1"" of type '" "std::string const &""'");
13755     }
13756     arg1 = ptr;
13757   }
13758   {
13759     std::string *ptr = (std::string *)0;
13760     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
13761     if (!SWIG_IsOK(res2)) {
13762       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NetworkTimeoutError" "', argument " "2"" of type '" "std::string const &""'");
13763     }
13764     if (!ptr) {
13765       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NetworkTimeoutError" "', argument " "2"" of type '" "std::string const &""'");
13766     }
13767     arg2 = ptr;
13768   }
13769   {
13770     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
13771     result = (Xapian::NetworkTimeoutError *)new Xapian::NetworkTimeoutError((std::string const &)*arg1,(std::string const &)*arg2);
13772     SWIG_PYTHON_THREAD_END_ALLOW;
13773   }
13774   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__NetworkTimeoutError, SWIG_POINTER_NEW |  0 );
13775   if (SWIG_IsNewObj(res1)) delete arg1;
13776   if (SWIG_IsNewObj(res2)) delete arg2;
13777   return resultobj;
13778 fail:
13779   if (SWIG_IsNewObj(res1)) delete arg1;
13780   if (SWIG_IsNewObj(res2)) delete arg2;
13781   return NULL;
13782 }
13783 
13784 
_wrap_new_NetworkTimeoutError__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)13785 SWIGINTERN PyObject *_wrap_new_NetworkTimeoutError__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
13786   PyObject *resultobj = 0;
13787   std::string *arg1 = 0 ;
13788   int res1 = SWIG_OLDOBJ ;
13789   Xapian::NetworkTimeoutError *result = 0 ;
13790 
13791   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
13792   {
13793     std::string *ptr = (std::string *)0;
13794     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
13795     if (!SWIG_IsOK(res1)) {
13796       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NetworkTimeoutError" "', argument " "1"" of type '" "std::string const &""'");
13797     }
13798     if (!ptr) {
13799       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NetworkTimeoutError" "', argument " "1"" of type '" "std::string const &""'");
13800     }
13801     arg1 = ptr;
13802   }
13803   {
13804     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
13805     result = (Xapian::NetworkTimeoutError *)new Xapian::NetworkTimeoutError((std::string const &)*arg1);
13806     SWIG_PYTHON_THREAD_END_ALLOW;
13807   }
13808   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__NetworkTimeoutError, SWIG_POINTER_NEW |  0 );
13809   if (SWIG_IsNewObj(res1)) delete arg1;
13810   return resultobj;
13811 fail:
13812   if (SWIG_IsNewObj(res1)) delete arg1;
13813   return NULL;
13814 }
13815 
13816 
_wrap_new_NetworkTimeoutError__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)13817 SWIGINTERN PyObject *_wrap_new_NetworkTimeoutError__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
13818   PyObject *resultobj = 0;
13819   std::string *arg1 = 0 ;
13820   int arg2 ;
13821   int res1 = SWIG_OLDOBJ ;
13822   int val2 ;
13823   int ecode2 = 0 ;
13824   Xapian::NetworkTimeoutError *result = 0 ;
13825 
13826   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
13827   {
13828     std::string *ptr = (std::string *)0;
13829     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
13830     if (!SWIG_IsOK(res1)) {
13831       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NetworkTimeoutError" "', argument " "1"" of type '" "std::string const &""'");
13832     }
13833     if (!ptr) {
13834       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NetworkTimeoutError" "', argument " "1"" of type '" "std::string const &""'");
13835     }
13836     arg1 = ptr;
13837   }
13838   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13839   if (!SWIG_IsOK(ecode2)) {
13840     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NetworkTimeoutError" "', argument " "2"" of type '" "int""'");
13841   }
13842   arg2 = static_cast< int >(val2);
13843   {
13844     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
13845     result = (Xapian::NetworkTimeoutError *)new Xapian::NetworkTimeoutError((std::string const &)*arg1,arg2);
13846     SWIG_PYTHON_THREAD_END_ALLOW;
13847   }
13848   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__NetworkTimeoutError, SWIG_POINTER_NEW |  0 );
13849   if (SWIG_IsNewObj(res1)) delete arg1;
13850   return resultobj;
13851 fail:
13852   if (SWIG_IsNewObj(res1)) delete arg1;
13853   return NULL;
13854 }
13855 
13856 
_wrap_new_NetworkTimeoutError(PyObject * self,PyObject * args)13857 SWIGINTERN PyObject *_wrap_new_NetworkTimeoutError(PyObject *self, PyObject *args) {
13858   Py_ssize_t argc;
13859   PyObject *argv[4] = {
13860     0
13861   };
13862 
13863   if (!(argc = SWIG_Python_UnpackTuple(args,"new_NetworkTimeoutError",0,3,argv))) SWIG_fail;
13864   --argc;
13865   if (argc == 1) {
13866     return _wrap_new_NetworkTimeoutError__SWIG_3(self, argc, argv);
13867   }
13868   if (argc == 2) {
13869     int _v = 0;
13870     {
13871       {
13872         int res = SWIG_AsVal_int(argv[1], NULL);
13873         _v = SWIG_CheckState(res);
13874       }
13875     }
13876     if (!_v) goto check_2;
13877     return _wrap_new_NetworkTimeoutError__SWIG_4(self, argc, argv);
13878   }
13879 check_2:
13880 
13881   if (argc == 2) {
13882     return _wrap_new_NetworkTimeoutError__SWIG_2(self, argc, argv);
13883   }
13884   if (argc == 3) {
13885     int _v = 0;
13886     {
13887       {
13888         int res = SWIG_AsVal_int(argv[2], NULL);
13889         _v = SWIG_CheckState(res);
13890       }
13891     }
13892     if (!_v) goto check_4;
13893     return _wrap_new_NetworkTimeoutError__SWIG_1(self, argc, argv);
13894   }
13895 check_4:
13896 
13897   if (argc == 3) {
13898     return _wrap_new_NetworkTimeoutError__SWIG_0(self, argc, argv);
13899   }
13900 
13901 fail:
13902   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_NetworkTimeoutError'.\n"
13903     "  Possible C/C++ prototypes are:\n"
13904     "    Xapian::NetworkTimeoutError::NetworkTimeoutError(std::string const &,std::string const &,char const *)\n"
13905     "    Xapian::NetworkTimeoutError::NetworkTimeoutError(std::string const &,std::string const &,int)\n"
13906     "    Xapian::NetworkTimeoutError::NetworkTimeoutError(std::string const &,std::string const &)\n"
13907     "    Xapian::NetworkTimeoutError::NetworkTimeoutError(std::string const &)\n"
13908     "    Xapian::NetworkTimeoutError::NetworkTimeoutError(std::string const &,int)\n");
13909   return 0;
13910 }
13911 
13912 
_wrap_delete_NetworkTimeoutError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13913 SWIGINTERN PyObject *_wrap_delete_NetworkTimeoutError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13914   PyObject *resultobj = 0;
13915   Xapian::NetworkTimeoutError *arg1 = (Xapian::NetworkTimeoutError *) 0 ;
13916   void *argp1 = 0 ;
13917   int res1 = 0 ;
13918   PyObject *swig_obj[1] ;
13919 
13920   if (!args) SWIG_fail;
13921   swig_obj[0] = args;
13922   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__NetworkTimeoutError, SWIG_POINTER_DISOWN |  0 );
13923   if (!SWIG_IsOK(res1)) {
13924     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NetworkTimeoutError" "', argument " "1"" of type '" "Xapian::NetworkTimeoutError *""'");
13925   }
13926   arg1 = reinterpret_cast< Xapian::NetworkTimeoutError * >(argp1);
13927   {
13928     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
13929     delete arg1;
13930     SWIG_PYTHON_THREAD_END_ALLOW;
13931   }
13932   resultobj = SWIG_Py_Void();
13933   return resultobj;
13934 fail:
13935   return NULL;
13936 }
13937 
13938 
NetworkTimeoutError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13939 SWIGINTERN PyObject *NetworkTimeoutError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13940   PyObject *obj;
13941   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
13942   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__NetworkTimeoutError, SWIG_NewClientData(obj));
13943   return SWIG_Py_Void();
13944 }
13945 
NetworkTimeoutError_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13946 SWIGINTERN PyObject *NetworkTimeoutError_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13947   return SWIG_Python_InitShadowInstance(args);
13948 }
13949 
_wrap_new_QueryParserError__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)13950 SWIGINTERN PyObject *_wrap_new_QueryParserError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
13951   PyObject *resultobj = 0;
13952   std::string *arg1 = 0 ;
13953   std::string *arg2 = 0 ;
13954   char *arg3 = (char *) 0 ;
13955   int res1 = SWIG_OLDOBJ ;
13956   int res2 = SWIG_OLDOBJ ;
13957   int res3 ;
13958   char *buf3 = 0 ;
13959   int alloc3 = 0 ;
13960   Xapian::QueryParserError *result = 0 ;
13961 
13962   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
13963   {
13964     std::string *ptr = (std::string *)0;
13965     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
13966     if (!SWIG_IsOK(res1)) {
13967       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_QueryParserError" "', argument " "1"" of type '" "std::string const &""'");
13968     }
13969     if (!ptr) {
13970       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_QueryParserError" "', argument " "1"" of type '" "std::string const &""'");
13971     }
13972     arg1 = ptr;
13973   }
13974   {
13975     std::string *ptr = (std::string *)0;
13976     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
13977     if (!SWIG_IsOK(res2)) {
13978       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_QueryParserError" "', argument " "2"" of type '" "std::string const &""'");
13979     }
13980     if (!ptr) {
13981       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_QueryParserError" "', argument " "2"" of type '" "std::string const &""'");
13982     }
13983     arg2 = ptr;
13984   }
13985   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
13986   if (!SWIG_IsOK(res3)) {
13987     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_QueryParserError" "', argument " "3"" of type '" "char const *""'");
13988   }
13989   arg3 = reinterpret_cast< char * >(buf3);
13990   {
13991     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
13992     result = (Xapian::QueryParserError *)new Xapian::QueryParserError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
13993     SWIG_PYTHON_THREAD_END_ALLOW;
13994   }
13995   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__QueryParserError, SWIG_POINTER_NEW |  0 );
13996   if (SWIG_IsNewObj(res1)) delete arg1;
13997   if (SWIG_IsNewObj(res2)) delete arg2;
13998   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
13999   return resultobj;
14000 fail:
14001   if (SWIG_IsNewObj(res1)) delete arg1;
14002   if (SWIG_IsNewObj(res2)) delete arg2;
14003   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
14004   return NULL;
14005 }
14006 
14007 
_wrap_new_QueryParserError__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)14008 SWIGINTERN PyObject *_wrap_new_QueryParserError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14009   PyObject *resultobj = 0;
14010   std::string *arg1 = 0 ;
14011   std::string *arg2 = 0 ;
14012   int arg3 ;
14013   int res1 = SWIG_OLDOBJ ;
14014   int res2 = SWIG_OLDOBJ ;
14015   int val3 ;
14016   int ecode3 = 0 ;
14017   Xapian::QueryParserError *result = 0 ;
14018 
14019   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
14020   {
14021     std::string *ptr = (std::string *)0;
14022     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
14023     if (!SWIG_IsOK(res1)) {
14024       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_QueryParserError" "', argument " "1"" of type '" "std::string const &""'");
14025     }
14026     if (!ptr) {
14027       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_QueryParserError" "', argument " "1"" of type '" "std::string const &""'");
14028     }
14029     arg1 = ptr;
14030   }
14031   {
14032     std::string *ptr = (std::string *)0;
14033     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
14034     if (!SWIG_IsOK(res2)) {
14035       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_QueryParserError" "', argument " "2"" of type '" "std::string const &""'");
14036     }
14037     if (!ptr) {
14038       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_QueryParserError" "', argument " "2"" of type '" "std::string const &""'");
14039     }
14040     arg2 = ptr;
14041   }
14042   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
14043   if (!SWIG_IsOK(ecode3)) {
14044     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_QueryParserError" "', argument " "3"" of type '" "int""'");
14045   }
14046   arg3 = static_cast< int >(val3);
14047   {
14048     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
14049     result = (Xapian::QueryParserError *)new Xapian::QueryParserError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
14050     SWIG_PYTHON_THREAD_END_ALLOW;
14051   }
14052   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__QueryParserError, SWIG_POINTER_NEW |  0 );
14053   if (SWIG_IsNewObj(res1)) delete arg1;
14054   if (SWIG_IsNewObj(res2)) delete arg2;
14055   return resultobj;
14056 fail:
14057   if (SWIG_IsNewObj(res1)) delete arg1;
14058   if (SWIG_IsNewObj(res2)) delete arg2;
14059   return NULL;
14060 }
14061 
14062 
_wrap_new_QueryParserError__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)14063 SWIGINTERN PyObject *_wrap_new_QueryParserError__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14064   PyObject *resultobj = 0;
14065   std::string *arg1 = 0 ;
14066   std::string *arg2 = 0 ;
14067   int res1 = SWIG_OLDOBJ ;
14068   int res2 = SWIG_OLDOBJ ;
14069   Xapian::QueryParserError *result = 0 ;
14070 
14071   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
14072   {
14073     std::string *ptr = (std::string *)0;
14074     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
14075     if (!SWIG_IsOK(res1)) {
14076       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_QueryParserError" "', argument " "1"" of type '" "std::string const &""'");
14077     }
14078     if (!ptr) {
14079       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_QueryParserError" "', argument " "1"" of type '" "std::string const &""'");
14080     }
14081     arg1 = ptr;
14082   }
14083   {
14084     std::string *ptr = (std::string *)0;
14085     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
14086     if (!SWIG_IsOK(res2)) {
14087       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_QueryParserError" "', argument " "2"" of type '" "std::string const &""'");
14088     }
14089     if (!ptr) {
14090       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_QueryParserError" "', argument " "2"" of type '" "std::string const &""'");
14091     }
14092     arg2 = ptr;
14093   }
14094   {
14095     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
14096     result = (Xapian::QueryParserError *)new Xapian::QueryParserError((std::string const &)*arg1,(std::string const &)*arg2);
14097     SWIG_PYTHON_THREAD_END_ALLOW;
14098   }
14099   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__QueryParserError, SWIG_POINTER_NEW |  0 );
14100   if (SWIG_IsNewObj(res1)) delete arg1;
14101   if (SWIG_IsNewObj(res2)) delete arg2;
14102   return resultobj;
14103 fail:
14104   if (SWIG_IsNewObj(res1)) delete arg1;
14105   if (SWIG_IsNewObj(res2)) delete arg2;
14106   return NULL;
14107 }
14108 
14109 
_wrap_new_QueryParserError__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)14110 SWIGINTERN PyObject *_wrap_new_QueryParserError__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14111   PyObject *resultobj = 0;
14112   std::string *arg1 = 0 ;
14113   int res1 = SWIG_OLDOBJ ;
14114   Xapian::QueryParserError *result = 0 ;
14115 
14116   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
14117   {
14118     std::string *ptr = (std::string *)0;
14119     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
14120     if (!SWIG_IsOK(res1)) {
14121       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_QueryParserError" "', argument " "1"" of type '" "std::string const &""'");
14122     }
14123     if (!ptr) {
14124       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_QueryParserError" "', argument " "1"" of type '" "std::string const &""'");
14125     }
14126     arg1 = ptr;
14127   }
14128   {
14129     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
14130     result = (Xapian::QueryParserError *)new Xapian::QueryParserError((std::string const &)*arg1);
14131     SWIG_PYTHON_THREAD_END_ALLOW;
14132   }
14133   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__QueryParserError, SWIG_POINTER_NEW |  0 );
14134   if (SWIG_IsNewObj(res1)) delete arg1;
14135   return resultobj;
14136 fail:
14137   if (SWIG_IsNewObj(res1)) delete arg1;
14138   return NULL;
14139 }
14140 
14141 
_wrap_new_QueryParserError__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)14142 SWIGINTERN PyObject *_wrap_new_QueryParserError__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14143   PyObject *resultobj = 0;
14144   std::string *arg1 = 0 ;
14145   int arg2 ;
14146   int res1 = SWIG_OLDOBJ ;
14147   int val2 ;
14148   int ecode2 = 0 ;
14149   Xapian::QueryParserError *result = 0 ;
14150 
14151   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
14152   {
14153     std::string *ptr = (std::string *)0;
14154     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
14155     if (!SWIG_IsOK(res1)) {
14156       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_QueryParserError" "', argument " "1"" of type '" "std::string const &""'");
14157     }
14158     if (!ptr) {
14159       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_QueryParserError" "', argument " "1"" of type '" "std::string const &""'");
14160     }
14161     arg1 = ptr;
14162   }
14163   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
14164   if (!SWIG_IsOK(ecode2)) {
14165     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_QueryParserError" "', argument " "2"" of type '" "int""'");
14166   }
14167   arg2 = static_cast< int >(val2);
14168   {
14169     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
14170     result = (Xapian::QueryParserError *)new Xapian::QueryParserError((std::string const &)*arg1,arg2);
14171     SWIG_PYTHON_THREAD_END_ALLOW;
14172   }
14173   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__QueryParserError, SWIG_POINTER_NEW |  0 );
14174   if (SWIG_IsNewObj(res1)) delete arg1;
14175   return resultobj;
14176 fail:
14177   if (SWIG_IsNewObj(res1)) delete arg1;
14178   return NULL;
14179 }
14180 
14181 
_wrap_new_QueryParserError(PyObject * self,PyObject * args)14182 SWIGINTERN PyObject *_wrap_new_QueryParserError(PyObject *self, PyObject *args) {
14183   Py_ssize_t argc;
14184   PyObject *argv[4] = {
14185     0
14186   };
14187 
14188   if (!(argc = SWIG_Python_UnpackTuple(args,"new_QueryParserError",0,3,argv))) SWIG_fail;
14189   --argc;
14190   if (argc == 1) {
14191     return _wrap_new_QueryParserError__SWIG_3(self, argc, argv);
14192   }
14193   if (argc == 2) {
14194     int _v = 0;
14195     {
14196       {
14197         int res = SWIG_AsVal_int(argv[1], NULL);
14198         _v = SWIG_CheckState(res);
14199       }
14200     }
14201     if (!_v) goto check_2;
14202     return _wrap_new_QueryParserError__SWIG_4(self, argc, argv);
14203   }
14204 check_2:
14205 
14206   if (argc == 2) {
14207     return _wrap_new_QueryParserError__SWIG_2(self, argc, argv);
14208   }
14209   if (argc == 3) {
14210     int _v = 0;
14211     {
14212       {
14213         int res = SWIG_AsVal_int(argv[2], NULL);
14214         _v = SWIG_CheckState(res);
14215       }
14216     }
14217     if (!_v) goto check_4;
14218     return _wrap_new_QueryParserError__SWIG_1(self, argc, argv);
14219   }
14220 check_4:
14221 
14222   if (argc == 3) {
14223     return _wrap_new_QueryParserError__SWIG_0(self, argc, argv);
14224   }
14225 
14226 fail:
14227   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_QueryParserError'.\n"
14228     "  Possible C/C++ prototypes are:\n"
14229     "    Xapian::QueryParserError::QueryParserError(std::string const &,std::string const &,char const *)\n"
14230     "    Xapian::QueryParserError::QueryParserError(std::string const &,std::string const &,int)\n"
14231     "    Xapian::QueryParserError::QueryParserError(std::string const &,std::string const &)\n"
14232     "    Xapian::QueryParserError::QueryParserError(std::string const &)\n"
14233     "    Xapian::QueryParserError::QueryParserError(std::string const &,int)\n");
14234   return 0;
14235 }
14236 
14237 
_wrap_delete_QueryParserError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14238 SWIGINTERN PyObject *_wrap_delete_QueryParserError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14239   PyObject *resultobj = 0;
14240   Xapian::QueryParserError *arg1 = (Xapian::QueryParserError *) 0 ;
14241   void *argp1 = 0 ;
14242   int res1 = 0 ;
14243   PyObject *swig_obj[1] ;
14244 
14245   if (!args) SWIG_fail;
14246   swig_obj[0] = args;
14247   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParserError, SWIG_POINTER_DISOWN |  0 );
14248   if (!SWIG_IsOK(res1)) {
14249     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_QueryParserError" "', argument " "1"" of type '" "Xapian::QueryParserError *""'");
14250   }
14251   arg1 = reinterpret_cast< Xapian::QueryParserError * >(argp1);
14252   {
14253     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
14254     delete arg1;
14255     SWIG_PYTHON_THREAD_END_ALLOW;
14256   }
14257   resultobj = SWIG_Py_Void();
14258   return resultobj;
14259 fail:
14260   return NULL;
14261 }
14262 
14263 
QueryParserError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14264 SWIGINTERN PyObject *QueryParserError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14265   PyObject *obj;
14266   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
14267   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__QueryParserError, SWIG_NewClientData(obj));
14268   return SWIG_Py_Void();
14269 }
14270 
QueryParserError_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14271 SWIGINTERN PyObject *QueryParserError_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14272   return SWIG_Python_InitShadowInstance(args);
14273 }
14274 
_wrap_new_SerialisationError__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)14275 SWIGINTERN PyObject *_wrap_new_SerialisationError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14276   PyObject *resultobj = 0;
14277   std::string *arg1 = 0 ;
14278   std::string *arg2 = 0 ;
14279   char *arg3 = (char *) 0 ;
14280   int res1 = SWIG_OLDOBJ ;
14281   int res2 = SWIG_OLDOBJ ;
14282   int res3 ;
14283   char *buf3 = 0 ;
14284   int alloc3 = 0 ;
14285   Xapian::SerialisationError *result = 0 ;
14286 
14287   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
14288   {
14289     std::string *ptr = (std::string *)0;
14290     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
14291     if (!SWIG_IsOK(res1)) {
14292       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SerialisationError" "', argument " "1"" of type '" "std::string const &""'");
14293     }
14294     if (!ptr) {
14295       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SerialisationError" "', argument " "1"" of type '" "std::string const &""'");
14296     }
14297     arg1 = ptr;
14298   }
14299   {
14300     std::string *ptr = (std::string *)0;
14301     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
14302     if (!SWIG_IsOK(res2)) {
14303       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SerialisationError" "', argument " "2"" of type '" "std::string const &""'");
14304     }
14305     if (!ptr) {
14306       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SerialisationError" "', argument " "2"" of type '" "std::string const &""'");
14307     }
14308     arg2 = ptr;
14309   }
14310   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
14311   if (!SWIG_IsOK(res3)) {
14312     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SerialisationError" "', argument " "3"" of type '" "char const *""'");
14313   }
14314   arg3 = reinterpret_cast< char * >(buf3);
14315   {
14316     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
14317     result = (Xapian::SerialisationError *)new Xapian::SerialisationError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
14318     SWIG_PYTHON_THREAD_END_ALLOW;
14319   }
14320   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__SerialisationError, SWIG_POINTER_NEW |  0 );
14321   if (SWIG_IsNewObj(res1)) delete arg1;
14322   if (SWIG_IsNewObj(res2)) delete arg2;
14323   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
14324   return resultobj;
14325 fail:
14326   if (SWIG_IsNewObj(res1)) delete arg1;
14327   if (SWIG_IsNewObj(res2)) delete arg2;
14328   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
14329   return NULL;
14330 }
14331 
14332 
_wrap_new_SerialisationError__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)14333 SWIGINTERN PyObject *_wrap_new_SerialisationError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14334   PyObject *resultobj = 0;
14335   std::string *arg1 = 0 ;
14336   std::string *arg2 = 0 ;
14337   int arg3 ;
14338   int res1 = SWIG_OLDOBJ ;
14339   int res2 = SWIG_OLDOBJ ;
14340   int val3 ;
14341   int ecode3 = 0 ;
14342   Xapian::SerialisationError *result = 0 ;
14343 
14344   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
14345   {
14346     std::string *ptr = (std::string *)0;
14347     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
14348     if (!SWIG_IsOK(res1)) {
14349       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SerialisationError" "', argument " "1"" of type '" "std::string const &""'");
14350     }
14351     if (!ptr) {
14352       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SerialisationError" "', argument " "1"" of type '" "std::string const &""'");
14353     }
14354     arg1 = ptr;
14355   }
14356   {
14357     std::string *ptr = (std::string *)0;
14358     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
14359     if (!SWIG_IsOK(res2)) {
14360       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SerialisationError" "', argument " "2"" of type '" "std::string const &""'");
14361     }
14362     if (!ptr) {
14363       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SerialisationError" "', argument " "2"" of type '" "std::string const &""'");
14364     }
14365     arg2 = ptr;
14366   }
14367   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
14368   if (!SWIG_IsOK(ecode3)) {
14369     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SerialisationError" "', argument " "3"" of type '" "int""'");
14370   }
14371   arg3 = static_cast< int >(val3);
14372   {
14373     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
14374     result = (Xapian::SerialisationError *)new Xapian::SerialisationError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
14375     SWIG_PYTHON_THREAD_END_ALLOW;
14376   }
14377   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__SerialisationError, SWIG_POINTER_NEW |  0 );
14378   if (SWIG_IsNewObj(res1)) delete arg1;
14379   if (SWIG_IsNewObj(res2)) delete arg2;
14380   return resultobj;
14381 fail:
14382   if (SWIG_IsNewObj(res1)) delete arg1;
14383   if (SWIG_IsNewObj(res2)) delete arg2;
14384   return NULL;
14385 }
14386 
14387 
_wrap_new_SerialisationError__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)14388 SWIGINTERN PyObject *_wrap_new_SerialisationError__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14389   PyObject *resultobj = 0;
14390   std::string *arg1 = 0 ;
14391   std::string *arg2 = 0 ;
14392   int res1 = SWIG_OLDOBJ ;
14393   int res2 = SWIG_OLDOBJ ;
14394   Xapian::SerialisationError *result = 0 ;
14395 
14396   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
14397   {
14398     std::string *ptr = (std::string *)0;
14399     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
14400     if (!SWIG_IsOK(res1)) {
14401       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SerialisationError" "', argument " "1"" of type '" "std::string const &""'");
14402     }
14403     if (!ptr) {
14404       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SerialisationError" "', argument " "1"" of type '" "std::string const &""'");
14405     }
14406     arg1 = ptr;
14407   }
14408   {
14409     std::string *ptr = (std::string *)0;
14410     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
14411     if (!SWIG_IsOK(res2)) {
14412       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SerialisationError" "', argument " "2"" of type '" "std::string const &""'");
14413     }
14414     if (!ptr) {
14415       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SerialisationError" "', argument " "2"" of type '" "std::string const &""'");
14416     }
14417     arg2 = ptr;
14418   }
14419   {
14420     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
14421     result = (Xapian::SerialisationError *)new Xapian::SerialisationError((std::string const &)*arg1,(std::string const &)*arg2);
14422     SWIG_PYTHON_THREAD_END_ALLOW;
14423   }
14424   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__SerialisationError, SWIG_POINTER_NEW |  0 );
14425   if (SWIG_IsNewObj(res1)) delete arg1;
14426   if (SWIG_IsNewObj(res2)) delete arg2;
14427   return resultobj;
14428 fail:
14429   if (SWIG_IsNewObj(res1)) delete arg1;
14430   if (SWIG_IsNewObj(res2)) delete arg2;
14431   return NULL;
14432 }
14433 
14434 
_wrap_new_SerialisationError__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)14435 SWIGINTERN PyObject *_wrap_new_SerialisationError__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14436   PyObject *resultobj = 0;
14437   std::string *arg1 = 0 ;
14438   int res1 = SWIG_OLDOBJ ;
14439   Xapian::SerialisationError *result = 0 ;
14440 
14441   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
14442   {
14443     std::string *ptr = (std::string *)0;
14444     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
14445     if (!SWIG_IsOK(res1)) {
14446       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SerialisationError" "', argument " "1"" of type '" "std::string const &""'");
14447     }
14448     if (!ptr) {
14449       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SerialisationError" "', argument " "1"" of type '" "std::string const &""'");
14450     }
14451     arg1 = ptr;
14452   }
14453   {
14454     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
14455     result = (Xapian::SerialisationError *)new Xapian::SerialisationError((std::string const &)*arg1);
14456     SWIG_PYTHON_THREAD_END_ALLOW;
14457   }
14458   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__SerialisationError, SWIG_POINTER_NEW |  0 );
14459   if (SWIG_IsNewObj(res1)) delete arg1;
14460   return resultobj;
14461 fail:
14462   if (SWIG_IsNewObj(res1)) delete arg1;
14463   return NULL;
14464 }
14465 
14466 
_wrap_new_SerialisationError__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)14467 SWIGINTERN PyObject *_wrap_new_SerialisationError__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14468   PyObject *resultobj = 0;
14469   std::string *arg1 = 0 ;
14470   int arg2 ;
14471   int res1 = SWIG_OLDOBJ ;
14472   int val2 ;
14473   int ecode2 = 0 ;
14474   Xapian::SerialisationError *result = 0 ;
14475 
14476   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
14477   {
14478     std::string *ptr = (std::string *)0;
14479     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
14480     if (!SWIG_IsOK(res1)) {
14481       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SerialisationError" "', argument " "1"" of type '" "std::string const &""'");
14482     }
14483     if (!ptr) {
14484       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SerialisationError" "', argument " "1"" of type '" "std::string const &""'");
14485     }
14486     arg1 = ptr;
14487   }
14488   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
14489   if (!SWIG_IsOK(ecode2)) {
14490     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SerialisationError" "', argument " "2"" of type '" "int""'");
14491   }
14492   arg2 = static_cast< int >(val2);
14493   {
14494     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
14495     result = (Xapian::SerialisationError *)new Xapian::SerialisationError((std::string const &)*arg1,arg2);
14496     SWIG_PYTHON_THREAD_END_ALLOW;
14497   }
14498   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__SerialisationError, SWIG_POINTER_NEW |  0 );
14499   if (SWIG_IsNewObj(res1)) delete arg1;
14500   return resultobj;
14501 fail:
14502   if (SWIG_IsNewObj(res1)) delete arg1;
14503   return NULL;
14504 }
14505 
14506 
_wrap_new_SerialisationError(PyObject * self,PyObject * args)14507 SWIGINTERN PyObject *_wrap_new_SerialisationError(PyObject *self, PyObject *args) {
14508   Py_ssize_t argc;
14509   PyObject *argv[4] = {
14510     0
14511   };
14512 
14513   if (!(argc = SWIG_Python_UnpackTuple(args,"new_SerialisationError",0,3,argv))) SWIG_fail;
14514   --argc;
14515   if (argc == 1) {
14516     return _wrap_new_SerialisationError__SWIG_3(self, argc, argv);
14517   }
14518   if (argc == 2) {
14519     int _v = 0;
14520     {
14521       {
14522         int res = SWIG_AsVal_int(argv[1], NULL);
14523         _v = SWIG_CheckState(res);
14524       }
14525     }
14526     if (!_v) goto check_2;
14527     return _wrap_new_SerialisationError__SWIG_4(self, argc, argv);
14528   }
14529 check_2:
14530 
14531   if (argc == 2) {
14532     return _wrap_new_SerialisationError__SWIG_2(self, argc, argv);
14533   }
14534   if (argc == 3) {
14535     int _v = 0;
14536     {
14537       {
14538         int res = SWIG_AsVal_int(argv[2], NULL);
14539         _v = SWIG_CheckState(res);
14540       }
14541     }
14542     if (!_v) goto check_4;
14543     return _wrap_new_SerialisationError__SWIG_1(self, argc, argv);
14544   }
14545 check_4:
14546 
14547   if (argc == 3) {
14548     return _wrap_new_SerialisationError__SWIG_0(self, argc, argv);
14549   }
14550 
14551 fail:
14552   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_SerialisationError'.\n"
14553     "  Possible C/C++ prototypes are:\n"
14554     "    Xapian::SerialisationError::SerialisationError(std::string const &,std::string const &,char const *)\n"
14555     "    Xapian::SerialisationError::SerialisationError(std::string const &,std::string const &,int)\n"
14556     "    Xapian::SerialisationError::SerialisationError(std::string const &,std::string const &)\n"
14557     "    Xapian::SerialisationError::SerialisationError(std::string const &)\n"
14558     "    Xapian::SerialisationError::SerialisationError(std::string const &,int)\n");
14559   return 0;
14560 }
14561 
14562 
_wrap_delete_SerialisationError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14563 SWIGINTERN PyObject *_wrap_delete_SerialisationError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14564   PyObject *resultobj = 0;
14565   Xapian::SerialisationError *arg1 = (Xapian::SerialisationError *) 0 ;
14566   void *argp1 = 0 ;
14567   int res1 = 0 ;
14568   PyObject *swig_obj[1] ;
14569 
14570   if (!args) SWIG_fail;
14571   swig_obj[0] = args;
14572   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__SerialisationError, SWIG_POINTER_DISOWN |  0 );
14573   if (!SWIG_IsOK(res1)) {
14574     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SerialisationError" "', argument " "1"" of type '" "Xapian::SerialisationError *""'");
14575   }
14576   arg1 = reinterpret_cast< Xapian::SerialisationError * >(argp1);
14577   {
14578     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
14579     delete arg1;
14580     SWIG_PYTHON_THREAD_END_ALLOW;
14581   }
14582   resultobj = SWIG_Py_Void();
14583   return resultobj;
14584 fail:
14585   return NULL;
14586 }
14587 
14588 
SerialisationError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14589 SWIGINTERN PyObject *SerialisationError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14590   PyObject *obj;
14591   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
14592   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__SerialisationError, SWIG_NewClientData(obj));
14593   return SWIG_Py_Void();
14594 }
14595 
SerialisationError_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14596 SWIGINTERN PyObject *SerialisationError_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14597   return SWIG_Python_InitShadowInstance(args);
14598 }
14599 
_wrap_new_RangeError__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)14600 SWIGINTERN PyObject *_wrap_new_RangeError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14601   PyObject *resultobj = 0;
14602   std::string *arg1 = 0 ;
14603   std::string *arg2 = 0 ;
14604   char *arg3 = (char *) 0 ;
14605   int res1 = SWIG_OLDOBJ ;
14606   int res2 = SWIG_OLDOBJ ;
14607   int res3 ;
14608   char *buf3 = 0 ;
14609   int alloc3 = 0 ;
14610   Xapian::RangeError *result = 0 ;
14611 
14612   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
14613   {
14614     std::string *ptr = (std::string *)0;
14615     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
14616     if (!SWIG_IsOK(res1)) {
14617       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RangeError" "', argument " "1"" of type '" "std::string const &""'");
14618     }
14619     if (!ptr) {
14620       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RangeError" "', argument " "1"" of type '" "std::string const &""'");
14621     }
14622     arg1 = ptr;
14623   }
14624   {
14625     std::string *ptr = (std::string *)0;
14626     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
14627     if (!SWIG_IsOK(res2)) {
14628       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_RangeError" "', argument " "2"" of type '" "std::string const &""'");
14629     }
14630     if (!ptr) {
14631       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RangeError" "', argument " "2"" of type '" "std::string const &""'");
14632     }
14633     arg2 = ptr;
14634   }
14635   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
14636   if (!SWIG_IsOK(res3)) {
14637     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_RangeError" "', argument " "3"" of type '" "char const *""'");
14638   }
14639   arg3 = reinterpret_cast< char * >(buf3);
14640   {
14641     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
14642     result = (Xapian::RangeError *)new Xapian::RangeError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
14643     SWIG_PYTHON_THREAD_END_ALLOW;
14644   }
14645   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__RangeError, SWIG_POINTER_NEW |  0 );
14646   if (SWIG_IsNewObj(res1)) delete arg1;
14647   if (SWIG_IsNewObj(res2)) delete arg2;
14648   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
14649   return resultobj;
14650 fail:
14651   if (SWIG_IsNewObj(res1)) delete arg1;
14652   if (SWIG_IsNewObj(res2)) delete arg2;
14653   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
14654   return NULL;
14655 }
14656 
14657 
_wrap_new_RangeError__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)14658 SWIGINTERN PyObject *_wrap_new_RangeError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14659   PyObject *resultobj = 0;
14660   std::string *arg1 = 0 ;
14661   std::string *arg2 = 0 ;
14662   int arg3 ;
14663   int res1 = SWIG_OLDOBJ ;
14664   int res2 = SWIG_OLDOBJ ;
14665   int val3 ;
14666   int ecode3 = 0 ;
14667   Xapian::RangeError *result = 0 ;
14668 
14669   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
14670   {
14671     std::string *ptr = (std::string *)0;
14672     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
14673     if (!SWIG_IsOK(res1)) {
14674       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RangeError" "', argument " "1"" of type '" "std::string const &""'");
14675     }
14676     if (!ptr) {
14677       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RangeError" "', argument " "1"" of type '" "std::string const &""'");
14678     }
14679     arg1 = ptr;
14680   }
14681   {
14682     std::string *ptr = (std::string *)0;
14683     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
14684     if (!SWIG_IsOK(res2)) {
14685       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_RangeError" "', argument " "2"" of type '" "std::string const &""'");
14686     }
14687     if (!ptr) {
14688       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RangeError" "', argument " "2"" of type '" "std::string const &""'");
14689     }
14690     arg2 = ptr;
14691   }
14692   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
14693   if (!SWIG_IsOK(ecode3)) {
14694     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RangeError" "', argument " "3"" of type '" "int""'");
14695   }
14696   arg3 = static_cast< int >(val3);
14697   {
14698     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
14699     result = (Xapian::RangeError *)new Xapian::RangeError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
14700     SWIG_PYTHON_THREAD_END_ALLOW;
14701   }
14702   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__RangeError, SWIG_POINTER_NEW |  0 );
14703   if (SWIG_IsNewObj(res1)) delete arg1;
14704   if (SWIG_IsNewObj(res2)) delete arg2;
14705   return resultobj;
14706 fail:
14707   if (SWIG_IsNewObj(res1)) delete arg1;
14708   if (SWIG_IsNewObj(res2)) delete arg2;
14709   return NULL;
14710 }
14711 
14712 
_wrap_new_RangeError__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)14713 SWIGINTERN PyObject *_wrap_new_RangeError__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14714   PyObject *resultobj = 0;
14715   std::string *arg1 = 0 ;
14716   std::string *arg2 = 0 ;
14717   int res1 = SWIG_OLDOBJ ;
14718   int res2 = SWIG_OLDOBJ ;
14719   Xapian::RangeError *result = 0 ;
14720 
14721   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
14722   {
14723     std::string *ptr = (std::string *)0;
14724     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
14725     if (!SWIG_IsOK(res1)) {
14726       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RangeError" "', argument " "1"" of type '" "std::string const &""'");
14727     }
14728     if (!ptr) {
14729       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RangeError" "', argument " "1"" of type '" "std::string const &""'");
14730     }
14731     arg1 = ptr;
14732   }
14733   {
14734     std::string *ptr = (std::string *)0;
14735     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
14736     if (!SWIG_IsOK(res2)) {
14737       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_RangeError" "', argument " "2"" of type '" "std::string const &""'");
14738     }
14739     if (!ptr) {
14740       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RangeError" "', argument " "2"" of type '" "std::string const &""'");
14741     }
14742     arg2 = ptr;
14743   }
14744   {
14745     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
14746     result = (Xapian::RangeError *)new Xapian::RangeError((std::string const &)*arg1,(std::string const &)*arg2);
14747     SWIG_PYTHON_THREAD_END_ALLOW;
14748   }
14749   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__RangeError, SWIG_POINTER_NEW |  0 );
14750   if (SWIG_IsNewObj(res1)) delete arg1;
14751   if (SWIG_IsNewObj(res2)) delete arg2;
14752   return resultobj;
14753 fail:
14754   if (SWIG_IsNewObj(res1)) delete arg1;
14755   if (SWIG_IsNewObj(res2)) delete arg2;
14756   return NULL;
14757 }
14758 
14759 
_wrap_new_RangeError__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)14760 SWIGINTERN PyObject *_wrap_new_RangeError__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14761   PyObject *resultobj = 0;
14762   std::string *arg1 = 0 ;
14763   int res1 = SWIG_OLDOBJ ;
14764   Xapian::RangeError *result = 0 ;
14765 
14766   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
14767   {
14768     std::string *ptr = (std::string *)0;
14769     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
14770     if (!SWIG_IsOK(res1)) {
14771       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RangeError" "', argument " "1"" of type '" "std::string const &""'");
14772     }
14773     if (!ptr) {
14774       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RangeError" "', argument " "1"" of type '" "std::string const &""'");
14775     }
14776     arg1 = ptr;
14777   }
14778   {
14779     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
14780     result = (Xapian::RangeError *)new Xapian::RangeError((std::string const &)*arg1);
14781     SWIG_PYTHON_THREAD_END_ALLOW;
14782   }
14783   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__RangeError, SWIG_POINTER_NEW |  0 );
14784   if (SWIG_IsNewObj(res1)) delete arg1;
14785   return resultobj;
14786 fail:
14787   if (SWIG_IsNewObj(res1)) delete arg1;
14788   return NULL;
14789 }
14790 
14791 
_wrap_new_RangeError__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)14792 SWIGINTERN PyObject *_wrap_new_RangeError__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14793   PyObject *resultobj = 0;
14794   std::string *arg1 = 0 ;
14795   int arg2 ;
14796   int res1 = SWIG_OLDOBJ ;
14797   int val2 ;
14798   int ecode2 = 0 ;
14799   Xapian::RangeError *result = 0 ;
14800 
14801   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
14802   {
14803     std::string *ptr = (std::string *)0;
14804     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
14805     if (!SWIG_IsOK(res1)) {
14806       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RangeError" "', argument " "1"" of type '" "std::string const &""'");
14807     }
14808     if (!ptr) {
14809       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RangeError" "', argument " "1"" of type '" "std::string const &""'");
14810     }
14811     arg1 = ptr;
14812   }
14813   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
14814   if (!SWIG_IsOK(ecode2)) {
14815     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RangeError" "', argument " "2"" of type '" "int""'");
14816   }
14817   arg2 = static_cast< int >(val2);
14818   {
14819     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
14820     result = (Xapian::RangeError *)new Xapian::RangeError((std::string const &)*arg1,arg2);
14821     SWIG_PYTHON_THREAD_END_ALLOW;
14822   }
14823   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__RangeError, SWIG_POINTER_NEW |  0 );
14824   if (SWIG_IsNewObj(res1)) delete arg1;
14825   return resultobj;
14826 fail:
14827   if (SWIG_IsNewObj(res1)) delete arg1;
14828   return NULL;
14829 }
14830 
14831 
_wrap_new_RangeError(PyObject * self,PyObject * args)14832 SWIGINTERN PyObject *_wrap_new_RangeError(PyObject *self, PyObject *args) {
14833   Py_ssize_t argc;
14834   PyObject *argv[4] = {
14835     0
14836   };
14837 
14838   if (!(argc = SWIG_Python_UnpackTuple(args,"new_RangeError",0,3,argv))) SWIG_fail;
14839   --argc;
14840   if (argc == 1) {
14841     return _wrap_new_RangeError__SWIG_3(self, argc, argv);
14842   }
14843   if (argc == 2) {
14844     int _v = 0;
14845     {
14846       {
14847         int res = SWIG_AsVal_int(argv[1], NULL);
14848         _v = SWIG_CheckState(res);
14849       }
14850     }
14851     if (!_v) goto check_2;
14852     return _wrap_new_RangeError__SWIG_4(self, argc, argv);
14853   }
14854 check_2:
14855 
14856   if (argc == 2) {
14857     return _wrap_new_RangeError__SWIG_2(self, argc, argv);
14858   }
14859   if (argc == 3) {
14860     int _v = 0;
14861     {
14862       {
14863         int res = SWIG_AsVal_int(argv[2], NULL);
14864         _v = SWIG_CheckState(res);
14865       }
14866     }
14867     if (!_v) goto check_4;
14868     return _wrap_new_RangeError__SWIG_1(self, argc, argv);
14869   }
14870 check_4:
14871 
14872   if (argc == 3) {
14873     return _wrap_new_RangeError__SWIG_0(self, argc, argv);
14874   }
14875 
14876 fail:
14877   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_RangeError'.\n"
14878     "  Possible C/C++ prototypes are:\n"
14879     "    Xapian::RangeError::RangeError(std::string const &,std::string const &,char const *)\n"
14880     "    Xapian::RangeError::RangeError(std::string const &,std::string const &,int)\n"
14881     "    Xapian::RangeError::RangeError(std::string const &,std::string const &)\n"
14882     "    Xapian::RangeError::RangeError(std::string const &)\n"
14883     "    Xapian::RangeError::RangeError(std::string const &,int)\n");
14884   return 0;
14885 }
14886 
14887 
_wrap_delete_RangeError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14888 SWIGINTERN PyObject *_wrap_delete_RangeError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14889   PyObject *resultobj = 0;
14890   Xapian::RangeError *arg1 = (Xapian::RangeError *) 0 ;
14891   void *argp1 = 0 ;
14892   int res1 = 0 ;
14893   PyObject *swig_obj[1] ;
14894 
14895   if (!args) SWIG_fail;
14896   swig_obj[0] = args;
14897   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__RangeError, SWIG_POINTER_DISOWN |  0 );
14898   if (!SWIG_IsOK(res1)) {
14899     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RangeError" "', argument " "1"" of type '" "Xapian::RangeError *""'");
14900   }
14901   arg1 = reinterpret_cast< Xapian::RangeError * >(argp1);
14902   {
14903     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
14904     delete arg1;
14905     SWIG_PYTHON_THREAD_END_ALLOW;
14906   }
14907   resultobj = SWIG_Py_Void();
14908   return resultobj;
14909 fail:
14910   return NULL;
14911 }
14912 
14913 
RangeError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14914 SWIGINTERN PyObject *RangeError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14915   PyObject *obj;
14916   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
14917   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__RangeError, SWIG_NewClientData(obj));
14918   return SWIG_Py_Void();
14919 }
14920 
RangeError_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14921 SWIGINTERN PyObject *RangeError_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14922   return SWIG_Python_InitShadowInstance(args);
14923 }
14924 
_wrap_new_WildcardError__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)14925 SWIGINTERN PyObject *_wrap_new_WildcardError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14926   PyObject *resultobj = 0;
14927   std::string *arg1 = 0 ;
14928   std::string *arg2 = 0 ;
14929   char *arg3 = (char *) 0 ;
14930   int res1 = SWIG_OLDOBJ ;
14931   int res2 = SWIG_OLDOBJ ;
14932   int res3 ;
14933   char *buf3 = 0 ;
14934   int alloc3 = 0 ;
14935   Xapian::WildcardError *result = 0 ;
14936 
14937   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
14938   {
14939     std::string *ptr = (std::string *)0;
14940     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
14941     if (!SWIG_IsOK(res1)) {
14942       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WildcardError" "', argument " "1"" of type '" "std::string const &""'");
14943     }
14944     if (!ptr) {
14945       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_WildcardError" "', argument " "1"" of type '" "std::string const &""'");
14946     }
14947     arg1 = ptr;
14948   }
14949   {
14950     std::string *ptr = (std::string *)0;
14951     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
14952     if (!SWIG_IsOK(res2)) {
14953       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_WildcardError" "', argument " "2"" of type '" "std::string const &""'");
14954     }
14955     if (!ptr) {
14956       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_WildcardError" "', argument " "2"" of type '" "std::string const &""'");
14957     }
14958     arg2 = ptr;
14959   }
14960   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
14961   if (!SWIG_IsOK(res3)) {
14962     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_WildcardError" "', argument " "3"" of type '" "char const *""'");
14963   }
14964   arg3 = reinterpret_cast< char * >(buf3);
14965   {
14966     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
14967     result = (Xapian::WildcardError *)new Xapian::WildcardError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
14968     SWIG_PYTHON_THREAD_END_ALLOW;
14969   }
14970   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__WildcardError, SWIG_POINTER_NEW |  0 );
14971   if (SWIG_IsNewObj(res1)) delete arg1;
14972   if (SWIG_IsNewObj(res2)) delete arg2;
14973   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
14974   return resultobj;
14975 fail:
14976   if (SWIG_IsNewObj(res1)) delete arg1;
14977   if (SWIG_IsNewObj(res2)) delete arg2;
14978   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
14979   return NULL;
14980 }
14981 
14982 
_wrap_new_WildcardError__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)14983 SWIGINTERN PyObject *_wrap_new_WildcardError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14984   PyObject *resultobj = 0;
14985   std::string *arg1 = 0 ;
14986   std::string *arg2 = 0 ;
14987   int arg3 ;
14988   int res1 = SWIG_OLDOBJ ;
14989   int res2 = SWIG_OLDOBJ ;
14990   int val3 ;
14991   int ecode3 = 0 ;
14992   Xapian::WildcardError *result = 0 ;
14993 
14994   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
14995   {
14996     std::string *ptr = (std::string *)0;
14997     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
14998     if (!SWIG_IsOK(res1)) {
14999       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WildcardError" "', argument " "1"" of type '" "std::string const &""'");
15000     }
15001     if (!ptr) {
15002       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_WildcardError" "', argument " "1"" of type '" "std::string const &""'");
15003     }
15004     arg1 = ptr;
15005   }
15006   {
15007     std::string *ptr = (std::string *)0;
15008     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
15009     if (!SWIG_IsOK(res2)) {
15010       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_WildcardError" "', argument " "2"" of type '" "std::string const &""'");
15011     }
15012     if (!ptr) {
15013       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_WildcardError" "', argument " "2"" of type '" "std::string const &""'");
15014     }
15015     arg2 = ptr;
15016   }
15017   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
15018   if (!SWIG_IsOK(ecode3)) {
15019     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_WildcardError" "', argument " "3"" of type '" "int""'");
15020   }
15021   arg3 = static_cast< int >(val3);
15022   {
15023     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
15024     result = (Xapian::WildcardError *)new Xapian::WildcardError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
15025     SWIG_PYTHON_THREAD_END_ALLOW;
15026   }
15027   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__WildcardError, SWIG_POINTER_NEW |  0 );
15028   if (SWIG_IsNewObj(res1)) delete arg1;
15029   if (SWIG_IsNewObj(res2)) delete arg2;
15030   return resultobj;
15031 fail:
15032   if (SWIG_IsNewObj(res1)) delete arg1;
15033   if (SWIG_IsNewObj(res2)) delete arg2;
15034   return NULL;
15035 }
15036 
15037 
_wrap_new_WildcardError__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)15038 SWIGINTERN PyObject *_wrap_new_WildcardError__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
15039   PyObject *resultobj = 0;
15040   std::string *arg1 = 0 ;
15041   std::string *arg2 = 0 ;
15042   int res1 = SWIG_OLDOBJ ;
15043   int res2 = SWIG_OLDOBJ ;
15044   Xapian::WildcardError *result = 0 ;
15045 
15046   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
15047   {
15048     std::string *ptr = (std::string *)0;
15049     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
15050     if (!SWIG_IsOK(res1)) {
15051       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WildcardError" "', argument " "1"" of type '" "std::string const &""'");
15052     }
15053     if (!ptr) {
15054       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_WildcardError" "', argument " "1"" of type '" "std::string const &""'");
15055     }
15056     arg1 = ptr;
15057   }
15058   {
15059     std::string *ptr = (std::string *)0;
15060     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
15061     if (!SWIG_IsOK(res2)) {
15062       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_WildcardError" "', argument " "2"" of type '" "std::string const &""'");
15063     }
15064     if (!ptr) {
15065       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_WildcardError" "', argument " "2"" of type '" "std::string const &""'");
15066     }
15067     arg2 = ptr;
15068   }
15069   {
15070     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
15071     result = (Xapian::WildcardError *)new Xapian::WildcardError((std::string const &)*arg1,(std::string const &)*arg2);
15072     SWIG_PYTHON_THREAD_END_ALLOW;
15073   }
15074   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__WildcardError, SWIG_POINTER_NEW |  0 );
15075   if (SWIG_IsNewObj(res1)) delete arg1;
15076   if (SWIG_IsNewObj(res2)) delete arg2;
15077   return resultobj;
15078 fail:
15079   if (SWIG_IsNewObj(res1)) delete arg1;
15080   if (SWIG_IsNewObj(res2)) delete arg2;
15081   return NULL;
15082 }
15083 
15084 
_wrap_new_WildcardError__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)15085 SWIGINTERN PyObject *_wrap_new_WildcardError__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
15086   PyObject *resultobj = 0;
15087   std::string *arg1 = 0 ;
15088   int res1 = SWIG_OLDOBJ ;
15089   Xapian::WildcardError *result = 0 ;
15090 
15091   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
15092   {
15093     std::string *ptr = (std::string *)0;
15094     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
15095     if (!SWIG_IsOK(res1)) {
15096       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WildcardError" "', argument " "1"" of type '" "std::string const &""'");
15097     }
15098     if (!ptr) {
15099       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_WildcardError" "', argument " "1"" of type '" "std::string const &""'");
15100     }
15101     arg1 = ptr;
15102   }
15103   {
15104     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
15105     result = (Xapian::WildcardError *)new Xapian::WildcardError((std::string const &)*arg1);
15106     SWIG_PYTHON_THREAD_END_ALLOW;
15107   }
15108   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__WildcardError, SWIG_POINTER_NEW |  0 );
15109   if (SWIG_IsNewObj(res1)) delete arg1;
15110   return resultobj;
15111 fail:
15112   if (SWIG_IsNewObj(res1)) delete arg1;
15113   return NULL;
15114 }
15115 
15116 
_wrap_new_WildcardError__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)15117 SWIGINTERN PyObject *_wrap_new_WildcardError__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
15118   PyObject *resultobj = 0;
15119   std::string *arg1 = 0 ;
15120   int arg2 ;
15121   int res1 = SWIG_OLDOBJ ;
15122   int val2 ;
15123   int ecode2 = 0 ;
15124   Xapian::WildcardError *result = 0 ;
15125 
15126   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
15127   {
15128     std::string *ptr = (std::string *)0;
15129     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
15130     if (!SWIG_IsOK(res1)) {
15131       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WildcardError" "', argument " "1"" of type '" "std::string const &""'");
15132     }
15133     if (!ptr) {
15134       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_WildcardError" "', argument " "1"" of type '" "std::string const &""'");
15135     }
15136     arg1 = ptr;
15137   }
15138   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15139   if (!SWIG_IsOK(ecode2)) {
15140     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_WildcardError" "', argument " "2"" of type '" "int""'");
15141   }
15142   arg2 = static_cast< int >(val2);
15143   {
15144     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
15145     result = (Xapian::WildcardError *)new Xapian::WildcardError((std::string const &)*arg1,arg2);
15146     SWIG_PYTHON_THREAD_END_ALLOW;
15147   }
15148   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__WildcardError, SWIG_POINTER_NEW |  0 );
15149   if (SWIG_IsNewObj(res1)) delete arg1;
15150   return resultobj;
15151 fail:
15152   if (SWIG_IsNewObj(res1)) delete arg1;
15153   return NULL;
15154 }
15155 
15156 
_wrap_new_WildcardError(PyObject * self,PyObject * args)15157 SWIGINTERN PyObject *_wrap_new_WildcardError(PyObject *self, PyObject *args) {
15158   Py_ssize_t argc;
15159   PyObject *argv[4] = {
15160     0
15161   };
15162 
15163   if (!(argc = SWIG_Python_UnpackTuple(args,"new_WildcardError",0,3,argv))) SWIG_fail;
15164   --argc;
15165   if (argc == 1) {
15166     return _wrap_new_WildcardError__SWIG_3(self, argc, argv);
15167   }
15168   if (argc == 2) {
15169     int _v = 0;
15170     {
15171       {
15172         int res = SWIG_AsVal_int(argv[1], NULL);
15173         _v = SWIG_CheckState(res);
15174       }
15175     }
15176     if (!_v) goto check_2;
15177     return _wrap_new_WildcardError__SWIG_4(self, argc, argv);
15178   }
15179 check_2:
15180 
15181   if (argc == 2) {
15182     return _wrap_new_WildcardError__SWIG_2(self, argc, argv);
15183   }
15184   if (argc == 3) {
15185     int _v = 0;
15186     {
15187       {
15188         int res = SWIG_AsVal_int(argv[2], NULL);
15189         _v = SWIG_CheckState(res);
15190       }
15191     }
15192     if (!_v) goto check_4;
15193     return _wrap_new_WildcardError__SWIG_1(self, argc, argv);
15194   }
15195 check_4:
15196 
15197   if (argc == 3) {
15198     return _wrap_new_WildcardError__SWIG_0(self, argc, argv);
15199   }
15200 
15201 fail:
15202   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_WildcardError'.\n"
15203     "  Possible C/C++ prototypes are:\n"
15204     "    Xapian::WildcardError::WildcardError(std::string const &,std::string const &,char const *)\n"
15205     "    Xapian::WildcardError::WildcardError(std::string const &,std::string const &,int)\n"
15206     "    Xapian::WildcardError::WildcardError(std::string const &,std::string const &)\n"
15207     "    Xapian::WildcardError::WildcardError(std::string const &)\n"
15208     "    Xapian::WildcardError::WildcardError(std::string const &,int)\n");
15209   return 0;
15210 }
15211 
15212 
_wrap_delete_WildcardError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15213 SWIGINTERN PyObject *_wrap_delete_WildcardError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15214   PyObject *resultobj = 0;
15215   Xapian::WildcardError *arg1 = (Xapian::WildcardError *) 0 ;
15216   void *argp1 = 0 ;
15217   int res1 = 0 ;
15218   PyObject *swig_obj[1] ;
15219 
15220   if (!args) SWIG_fail;
15221   swig_obj[0] = args;
15222   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__WildcardError, SWIG_POINTER_DISOWN |  0 );
15223   if (!SWIG_IsOK(res1)) {
15224     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_WildcardError" "', argument " "1"" of type '" "Xapian::WildcardError *""'");
15225   }
15226   arg1 = reinterpret_cast< Xapian::WildcardError * >(argp1);
15227   {
15228     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
15229     delete arg1;
15230     SWIG_PYTHON_THREAD_END_ALLOW;
15231   }
15232   resultobj = SWIG_Py_Void();
15233   return resultobj;
15234 fail:
15235   return NULL;
15236 }
15237 
15238 
WildcardError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15239 SWIGINTERN PyObject *WildcardError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15240   PyObject *obj;
15241   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
15242   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__WildcardError, SWIG_NewClientData(obj));
15243   return SWIG_Py_Void();
15244 }
15245 
WildcardError_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15246 SWIGINTERN PyObject *WildcardError_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15247   return SWIG_Python_InitShadowInstance(args);
15248 }
15249 
_wrap_new_DatabaseNotFoundError__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)15250 SWIGINTERN PyObject *_wrap_new_DatabaseNotFoundError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
15251   PyObject *resultobj = 0;
15252   std::string *arg1 = 0 ;
15253   std::string *arg2 = 0 ;
15254   char *arg3 = (char *) 0 ;
15255   int res1 = SWIG_OLDOBJ ;
15256   int res2 = SWIG_OLDOBJ ;
15257   int res3 ;
15258   char *buf3 = 0 ;
15259   int alloc3 = 0 ;
15260   Xapian::DatabaseNotFoundError *result = 0 ;
15261 
15262   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
15263   {
15264     std::string *ptr = (std::string *)0;
15265     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
15266     if (!SWIG_IsOK(res1)) {
15267       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseNotFoundError" "', argument " "1"" of type '" "std::string const &""'");
15268     }
15269     if (!ptr) {
15270       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseNotFoundError" "', argument " "1"" of type '" "std::string const &""'");
15271     }
15272     arg1 = ptr;
15273   }
15274   {
15275     std::string *ptr = (std::string *)0;
15276     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
15277     if (!SWIG_IsOK(res2)) {
15278       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseNotFoundError" "', argument " "2"" of type '" "std::string const &""'");
15279     }
15280     if (!ptr) {
15281       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseNotFoundError" "', argument " "2"" of type '" "std::string const &""'");
15282     }
15283     arg2 = ptr;
15284   }
15285   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
15286   if (!SWIG_IsOK(res3)) {
15287     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatabaseNotFoundError" "', argument " "3"" of type '" "char const *""'");
15288   }
15289   arg3 = reinterpret_cast< char * >(buf3);
15290   {
15291     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
15292     result = (Xapian::DatabaseNotFoundError *)new Xapian::DatabaseNotFoundError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
15293     SWIG_PYTHON_THREAD_END_ALLOW;
15294   }
15295   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseNotFoundError, SWIG_POINTER_NEW |  0 );
15296   if (SWIG_IsNewObj(res1)) delete arg1;
15297   if (SWIG_IsNewObj(res2)) delete arg2;
15298   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
15299   return resultobj;
15300 fail:
15301   if (SWIG_IsNewObj(res1)) delete arg1;
15302   if (SWIG_IsNewObj(res2)) delete arg2;
15303   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
15304   return NULL;
15305 }
15306 
15307 
_wrap_new_DatabaseNotFoundError__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)15308 SWIGINTERN PyObject *_wrap_new_DatabaseNotFoundError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
15309   PyObject *resultobj = 0;
15310   std::string *arg1 = 0 ;
15311   std::string *arg2 = 0 ;
15312   int arg3 ;
15313   int res1 = SWIG_OLDOBJ ;
15314   int res2 = SWIG_OLDOBJ ;
15315   int val3 ;
15316   int ecode3 = 0 ;
15317   Xapian::DatabaseNotFoundError *result = 0 ;
15318 
15319   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
15320   {
15321     std::string *ptr = (std::string *)0;
15322     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
15323     if (!SWIG_IsOK(res1)) {
15324       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseNotFoundError" "', argument " "1"" of type '" "std::string const &""'");
15325     }
15326     if (!ptr) {
15327       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseNotFoundError" "', argument " "1"" of type '" "std::string const &""'");
15328     }
15329     arg1 = ptr;
15330   }
15331   {
15332     std::string *ptr = (std::string *)0;
15333     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
15334     if (!SWIG_IsOK(res2)) {
15335       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseNotFoundError" "', argument " "2"" of type '" "std::string const &""'");
15336     }
15337     if (!ptr) {
15338       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseNotFoundError" "', argument " "2"" of type '" "std::string const &""'");
15339     }
15340     arg2 = ptr;
15341   }
15342   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
15343   if (!SWIG_IsOK(ecode3)) {
15344     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DatabaseNotFoundError" "', argument " "3"" of type '" "int""'");
15345   }
15346   arg3 = static_cast< int >(val3);
15347   {
15348     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
15349     result = (Xapian::DatabaseNotFoundError *)new Xapian::DatabaseNotFoundError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
15350     SWIG_PYTHON_THREAD_END_ALLOW;
15351   }
15352   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseNotFoundError, SWIG_POINTER_NEW |  0 );
15353   if (SWIG_IsNewObj(res1)) delete arg1;
15354   if (SWIG_IsNewObj(res2)) delete arg2;
15355   return resultobj;
15356 fail:
15357   if (SWIG_IsNewObj(res1)) delete arg1;
15358   if (SWIG_IsNewObj(res2)) delete arg2;
15359   return NULL;
15360 }
15361 
15362 
_wrap_new_DatabaseNotFoundError__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)15363 SWIGINTERN PyObject *_wrap_new_DatabaseNotFoundError__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
15364   PyObject *resultobj = 0;
15365   std::string *arg1 = 0 ;
15366   std::string *arg2 = 0 ;
15367   int res1 = SWIG_OLDOBJ ;
15368   int res2 = SWIG_OLDOBJ ;
15369   Xapian::DatabaseNotFoundError *result = 0 ;
15370 
15371   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
15372   {
15373     std::string *ptr = (std::string *)0;
15374     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
15375     if (!SWIG_IsOK(res1)) {
15376       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseNotFoundError" "', argument " "1"" of type '" "std::string const &""'");
15377     }
15378     if (!ptr) {
15379       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseNotFoundError" "', argument " "1"" of type '" "std::string const &""'");
15380     }
15381     arg1 = ptr;
15382   }
15383   {
15384     std::string *ptr = (std::string *)0;
15385     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
15386     if (!SWIG_IsOK(res2)) {
15387       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseNotFoundError" "', argument " "2"" of type '" "std::string const &""'");
15388     }
15389     if (!ptr) {
15390       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseNotFoundError" "', argument " "2"" of type '" "std::string const &""'");
15391     }
15392     arg2 = ptr;
15393   }
15394   {
15395     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
15396     result = (Xapian::DatabaseNotFoundError *)new Xapian::DatabaseNotFoundError((std::string const &)*arg1,(std::string const &)*arg2);
15397     SWIG_PYTHON_THREAD_END_ALLOW;
15398   }
15399   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseNotFoundError, SWIG_POINTER_NEW |  0 );
15400   if (SWIG_IsNewObj(res1)) delete arg1;
15401   if (SWIG_IsNewObj(res2)) delete arg2;
15402   return resultobj;
15403 fail:
15404   if (SWIG_IsNewObj(res1)) delete arg1;
15405   if (SWIG_IsNewObj(res2)) delete arg2;
15406   return NULL;
15407 }
15408 
15409 
_wrap_new_DatabaseNotFoundError__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)15410 SWIGINTERN PyObject *_wrap_new_DatabaseNotFoundError__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
15411   PyObject *resultobj = 0;
15412   std::string *arg1 = 0 ;
15413   int res1 = SWIG_OLDOBJ ;
15414   Xapian::DatabaseNotFoundError *result = 0 ;
15415 
15416   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
15417   {
15418     std::string *ptr = (std::string *)0;
15419     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
15420     if (!SWIG_IsOK(res1)) {
15421       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseNotFoundError" "', argument " "1"" of type '" "std::string const &""'");
15422     }
15423     if (!ptr) {
15424       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseNotFoundError" "', argument " "1"" of type '" "std::string const &""'");
15425     }
15426     arg1 = ptr;
15427   }
15428   {
15429     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
15430     result = (Xapian::DatabaseNotFoundError *)new Xapian::DatabaseNotFoundError((std::string const &)*arg1);
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   return resultobj;
15436 fail:
15437   if (SWIG_IsNewObj(res1)) delete arg1;
15438   return NULL;
15439 }
15440 
15441 
_wrap_new_DatabaseNotFoundError__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)15442 SWIGINTERN PyObject *_wrap_new_DatabaseNotFoundError__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
15443   PyObject *resultobj = 0;
15444   std::string *arg1 = 0 ;
15445   int arg2 ;
15446   int res1 = SWIG_OLDOBJ ;
15447   int val2 ;
15448   int ecode2 = 0 ;
15449   Xapian::DatabaseNotFoundError *result = 0 ;
15450 
15451   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
15452   {
15453     std::string *ptr = (std::string *)0;
15454     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
15455     if (!SWIG_IsOK(res1)) {
15456       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseNotFoundError" "', argument " "1"" of type '" "std::string const &""'");
15457     }
15458     if (!ptr) {
15459       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseNotFoundError" "', argument " "1"" of type '" "std::string const &""'");
15460     }
15461     arg1 = ptr;
15462   }
15463   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15464   if (!SWIG_IsOK(ecode2)) {
15465     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatabaseNotFoundError" "', argument " "2"" of type '" "int""'");
15466   }
15467   arg2 = static_cast< int >(val2);
15468   {
15469     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
15470     result = (Xapian::DatabaseNotFoundError *)new Xapian::DatabaseNotFoundError((std::string const &)*arg1,arg2);
15471     SWIG_PYTHON_THREAD_END_ALLOW;
15472   }
15473   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseNotFoundError, SWIG_POINTER_NEW |  0 );
15474   if (SWIG_IsNewObj(res1)) delete arg1;
15475   return resultobj;
15476 fail:
15477   if (SWIG_IsNewObj(res1)) delete arg1;
15478   return NULL;
15479 }
15480 
15481 
_wrap_new_DatabaseNotFoundError(PyObject * self,PyObject * args)15482 SWIGINTERN PyObject *_wrap_new_DatabaseNotFoundError(PyObject *self, PyObject *args) {
15483   Py_ssize_t argc;
15484   PyObject *argv[4] = {
15485     0
15486   };
15487 
15488   if (!(argc = SWIG_Python_UnpackTuple(args,"new_DatabaseNotFoundError",0,3,argv))) SWIG_fail;
15489   --argc;
15490   if (argc == 1) {
15491     return _wrap_new_DatabaseNotFoundError__SWIG_3(self, argc, argv);
15492   }
15493   if (argc == 2) {
15494     int _v = 0;
15495     {
15496       {
15497         int res = SWIG_AsVal_int(argv[1], NULL);
15498         _v = SWIG_CheckState(res);
15499       }
15500     }
15501     if (!_v) goto check_2;
15502     return _wrap_new_DatabaseNotFoundError__SWIG_4(self, argc, argv);
15503   }
15504 check_2:
15505 
15506   if (argc == 2) {
15507     return _wrap_new_DatabaseNotFoundError__SWIG_2(self, argc, argv);
15508   }
15509   if (argc == 3) {
15510     int _v = 0;
15511     {
15512       {
15513         int res = SWIG_AsVal_int(argv[2], NULL);
15514         _v = SWIG_CheckState(res);
15515       }
15516     }
15517     if (!_v) goto check_4;
15518     return _wrap_new_DatabaseNotFoundError__SWIG_1(self, argc, argv);
15519   }
15520 check_4:
15521 
15522   if (argc == 3) {
15523     return _wrap_new_DatabaseNotFoundError__SWIG_0(self, argc, argv);
15524   }
15525 
15526 fail:
15527   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_DatabaseNotFoundError'.\n"
15528     "  Possible C/C++ prototypes are:\n"
15529     "    Xapian::DatabaseNotFoundError::DatabaseNotFoundError(std::string const &,std::string const &,char const *)\n"
15530     "    Xapian::DatabaseNotFoundError::DatabaseNotFoundError(std::string const &,std::string const &,int)\n"
15531     "    Xapian::DatabaseNotFoundError::DatabaseNotFoundError(std::string const &,std::string const &)\n"
15532     "    Xapian::DatabaseNotFoundError::DatabaseNotFoundError(std::string const &)\n"
15533     "    Xapian::DatabaseNotFoundError::DatabaseNotFoundError(std::string const &,int)\n");
15534   return 0;
15535 }
15536 
15537 
_wrap_delete_DatabaseNotFoundError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15538 SWIGINTERN PyObject *_wrap_delete_DatabaseNotFoundError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15539   PyObject *resultobj = 0;
15540   Xapian::DatabaseNotFoundError *arg1 = (Xapian::DatabaseNotFoundError *) 0 ;
15541   void *argp1 = 0 ;
15542   int res1 = 0 ;
15543   PyObject *swig_obj[1] ;
15544 
15545   if (!args) SWIG_fail;
15546   swig_obj[0] = args;
15547   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__DatabaseNotFoundError, SWIG_POINTER_DISOWN |  0 );
15548   if (!SWIG_IsOK(res1)) {
15549     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DatabaseNotFoundError" "', argument " "1"" of type '" "Xapian::DatabaseNotFoundError *""'");
15550   }
15551   arg1 = reinterpret_cast< Xapian::DatabaseNotFoundError * >(argp1);
15552   {
15553     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
15554     delete arg1;
15555     SWIG_PYTHON_THREAD_END_ALLOW;
15556   }
15557   resultobj = SWIG_Py_Void();
15558   return resultobj;
15559 fail:
15560   return NULL;
15561 }
15562 
15563 
DatabaseNotFoundError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15564 SWIGINTERN PyObject *DatabaseNotFoundError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15565   PyObject *obj;
15566   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
15567   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__DatabaseNotFoundError, SWIG_NewClientData(obj));
15568   return SWIG_Py_Void();
15569 }
15570 
DatabaseNotFoundError_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15571 SWIGINTERN PyObject *DatabaseNotFoundError_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15572   return SWIG_Python_InitShadowInstance(args);
15573 }
15574 
_wrap_new_DatabaseClosedError__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)15575 SWIGINTERN PyObject *_wrap_new_DatabaseClosedError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
15576   PyObject *resultobj = 0;
15577   std::string *arg1 = 0 ;
15578   std::string *arg2 = 0 ;
15579   char *arg3 = (char *) 0 ;
15580   int res1 = SWIG_OLDOBJ ;
15581   int res2 = SWIG_OLDOBJ ;
15582   int res3 ;
15583   char *buf3 = 0 ;
15584   int alloc3 = 0 ;
15585   Xapian::DatabaseClosedError *result = 0 ;
15586 
15587   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
15588   {
15589     std::string *ptr = (std::string *)0;
15590     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
15591     if (!SWIG_IsOK(res1)) {
15592       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseClosedError" "', argument " "1"" of type '" "std::string const &""'");
15593     }
15594     if (!ptr) {
15595       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseClosedError" "', argument " "1"" of type '" "std::string const &""'");
15596     }
15597     arg1 = ptr;
15598   }
15599   {
15600     std::string *ptr = (std::string *)0;
15601     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
15602     if (!SWIG_IsOK(res2)) {
15603       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseClosedError" "', argument " "2"" of type '" "std::string const &""'");
15604     }
15605     if (!ptr) {
15606       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseClosedError" "', argument " "2"" of type '" "std::string const &""'");
15607     }
15608     arg2 = ptr;
15609   }
15610   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
15611   if (!SWIG_IsOK(res3)) {
15612     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatabaseClosedError" "', argument " "3"" of type '" "char const *""'");
15613   }
15614   arg3 = reinterpret_cast< char * >(buf3);
15615   {
15616     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
15617     result = (Xapian::DatabaseClosedError *)new Xapian::DatabaseClosedError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
15618     SWIG_PYTHON_THREAD_END_ALLOW;
15619   }
15620   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseClosedError, SWIG_POINTER_NEW |  0 );
15621   if (SWIG_IsNewObj(res1)) delete arg1;
15622   if (SWIG_IsNewObj(res2)) delete arg2;
15623   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
15624   return resultobj;
15625 fail:
15626   if (SWIG_IsNewObj(res1)) delete arg1;
15627   if (SWIG_IsNewObj(res2)) delete arg2;
15628   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
15629   return NULL;
15630 }
15631 
15632 
_wrap_new_DatabaseClosedError__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)15633 SWIGINTERN PyObject *_wrap_new_DatabaseClosedError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
15634   PyObject *resultobj = 0;
15635   std::string *arg1 = 0 ;
15636   std::string *arg2 = 0 ;
15637   int arg3 ;
15638   int res1 = SWIG_OLDOBJ ;
15639   int res2 = SWIG_OLDOBJ ;
15640   int val3 ;
15641   int ecode3 = 0 ;
15642   Xapian::DatabaseClosedError *result = 0 ;
15643 
15644   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
15645   {
15646     std::string *ptr = (std::string *)0;
15647     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
15648     if (!SWIG_IsOK(res1)) {
15649       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseClosedError" "', argument " "1"" of type '" "std::string const &""'");
15650     }
15651     if (!ptr) {
15652       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseClosedError" "', argument " "1"" of type '" "std::string const &""'");
15653     }
15654     arg1 = ptr;
15655   }
15656   {
15657     std::string *ptr = (std::string *)0;
15658     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
15659     if (!SWIG_IsOK(res2)) {
15660       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseClosedError" "', argument " "2"" of type '" "std::string const &""'");
15661     }
15662     if (!ptr) {
15663       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseClosedError" "', argument " "2"" of type '" "std::string const &""'");
15664     }
15665     arg2 = ptr;
15666   }
15667   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
15668   if (!SWIG_IsOK(ecode3)) {
15669     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DatabaseClosedError" "', argument " "3"" of type '" "int""'");
15670   }
15671   arg3 = static_cast< int >(val3);
15672   {
15673     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
15674     result = (Xapian::DatabaseClosedError *)new Xapian::DatabaseClosedError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
15675     SWIG_PYTHON_THREAD_END_ALLOW;
15676   }
15677   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseClosedError, SWIG_POINTER_NEW |  0 );
15678   if (SWIG_IsNewObj(res1)) delete arg1;
15679   if (SWIG_IsNewObj(res2)) delete arg2;
15680   return resultobj;
15681 fail:
15682   if (SWIG_IsNewObj(res1)) delete arg1;
15683   if (SWIG_IsNewObj(res2)) delete arg2;
15684   return NULL;
15685 }
15686 
15687 
_wrap_new_DatabaseClosedError__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)15688 SWIGINTERN PyObject *_wrap_new_DatabaseClosedError__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
15689   PyObject *resultobj = 0;
15690   std::string *arg1 = 0 ;
15691   std::string *arg2 = 0 ;
15692   int res1 = SWIG_OLDOBJ ;
15693   int res2 = SWIG_OLDOBJ ;
15694   Xapian::DatabaseClosedError *result = 0 ;
15695 
15696   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
15697   {
15698     std::string *ptr = (std::string *)0;
15699     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
15700     if (!SWIG_IsOK(res1)) {
15701       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseClosedError" "', argument " "1"" of type '" "std::string const &""'");
15702     }
15703     if (!ptr) {
15704       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseClosedError" "', argument " "1"" of type '" "std::string const &""'");
15705     }
15706     arg1 = ptr;
15707   }
15708   {
15709     std::string *ptr = (std::string *)0;
15710     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
15711     if (!SWIG_IsOK(res2)) {
15712       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseClosedError" "', argument " "2"" of type '" "std::string const &""'");
15713     }
15714     if (!ptr) {
15715       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseClosedError" "', argument " "2"" of type '" "std::string const &""'");
15716     }
15717     arg2 = ptr;
15718   }
15719   {
15720     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
15721     result = (Xapian::DatabaseClosedError *)new Xapian::DatabaseClosedError((std::string const &)*arg1,(std::string const &)*arg2);
15722     SWIG_PYTHON_THREAD_END_ALLOW;
15723   }
15724   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseClosedError, SWIG_POINTER_NEW |  0 );
15725   if (SWIG_IsNewObj(res1)) delete arg1;
15726   if (SWIG_IsNewObj(res2)) delete arg2;
15727   return resultobj;
15728 fail:
15729   if (SWIG_IsNewObj(res1)) delete arg1;
15730   if (SWIG_IsNewObj(res2)) delete arg2;
15731   return NULL;
15732 }
15733 
15734 
_wrap_new_DatabaseClosedError__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)15735 SWIGINTERN PyObject *_wrap_new_DatabaseClosedError__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
15736   PyObject *resultobj = 0;
15737   std::string *arg1 = 0 ;
15738   int res1 = SWIG_OLDOBJ ;
15739   Xapian::DatabaseClosedError *result = 0 ;
15740 
15741   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
15742   {
15743     std::string *ptr = (std::string *)0;
15744     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
15745     if (!SWIG_IsOK(res1)) {
15746       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseClosedError" "', argument " "1"" of type '" "std::string const &""'");
15747     }
15748     if (!ptr) {
15749       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseClosedError" "', argument " "1"" of type '" "std::string const &""'");
15750     }
15751     arg1 = ptr;
15752   }
15753   {
15754     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
15755     result = (Xapian::DatabaseClosedError *)new Xapian::DatabaseClosedError((std::string const &)*arg1);
15756     SWIG_PYTHON_THREAD_END_ALLOW;
15757   }
15758   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseClosedError, SWIG_POINTER_NEW |  0 );
15759   if (SWIG_IsNewObj(res1)) delete arg1;
15760   return resultobj;
15761 fail:
15762   if (SWIG_IsNewObj(res1)) delete arg1;
15763   return NULL;
15764 }
15765 
15766 
_wrap_new_DatabaseClosedError__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)15767 SWIGINTERN PyObject *_wrap_new_DatabaseClosedError__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
15768   PyObject *resultobj = 0;
15769   std::string *arg1 = 0 ;
15770   int arg2 ;
15771   int res1 = SWIG_OLDOBJ ;
15772   int val2 ;
15773   int ecode2 = 0 ;
15774   Xapian::DatabaseClosedError *result = 0 ;
15775 
15776   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
15777   {
15778     std::string *ptr = (std::string *)0;
15779     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
15780     if (!SWIG_IsOK(res1)) {
15781       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseClosedError" "', argument " "1"" of type '" "std::string const &""'");
15782     }
15783     if (!ptr) {
15784       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseClosedError" "', argument " "1"" of type '" "std::string const &""'");
15785     }
15786     arg1 = ptr;
15787   }
15788   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15789   if (!SWIG_IsOK(ecode2)) {
15790     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatabaseClosedError" "', argument " "2"" of type '" "int""'");
15791   }
15792   arg2 = static_cast< int >(val2);
15793   {
15794     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
15795     result = (Xapian::DatabaseClosedError *)new Xapian::DatabaseClosedError((std::string const &)*arg1,arg2);
15796     SWIG_PYTHON_THREAD_END_ALLOW;
15797   }
15798   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseClosedError, SWIG_POINTER_NEW |  0 );
15799   if (SWIG_IsNewObj(res1)) delete arg1;
15800   return resultobj;
15801 fail:
15802   if (SWIG_IsNewObj(res1)) delete arg1;
15803   return NULL;
15804 }
15805 
15806 
_wrap_new_DatabaseClosedError(PyObject * self,PyObject * args)15807 SWIGINTERN PyObject *_wrap_new_DatabaseClosedError(PyObject *self, PyObject *args) {
15808   Py_ssize_t argc;
15809   PyObject *argv[4] = {
15810     0
15811   };
15812 
15813   if (!(argc = SWIG_Python_UnpackTuple(args,"new_DatabaseClosedError",0,3,argv))) SWIG_fail;
15814   --argc;
15815   if (argc == 1) {
15816     return _wrap_new_DatabaseClosedError__SWIG_3(self, argc, argv);
15817   }
15818   if (argc == 2) {
15819     int _v = 0;
15820     {
15821       {
15822         int res = SWIG_AsVal_int(argv[1], NULL);
15823         _v = SWIG_CheckState(res);
15824       }
15825     }
15826     if (!_v) goto check_2;
15827     return _wrap_new_DatabaseClosedError__SWIG_4(self, argc, argv);
15828   }
15829 check_2:
15830 
15831   if (argc == 2) {
15832     return _wrap_new_DatabaseClosedError__SWIG_2(self, argc, argv);
15833   }
15834   if (argc == 3) {
15835     int _v = 0;
15836     {
15837       {
15838         int res = SWIG_AsVal_int(argv[2], NULL);
15839         _v = SWIG_CheckState(res);
15840       }
15841     }
15842     if (!_v) goto check_4;
15843     return _wrap_new_DatabaseClosedError__SWIG_1(self, argc, argv);
15844   }
15845 check_4:
15846 
15847   if (argc == 3) {
15848     return _wrap_new_DatabaseClosedError__SWIG_0(self, argc, argv);
15849   }
15850 
15851 fail:
15852   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_DatabaseClosedError'.\n"
15853     "  Possible C/C++ prototypes are:\n"
15854     "    Xapian::DatabaseClosedError::DatabaseClosedError(std::string const &,std::string const &,char const *)\n"
15855     "    Xapian::DatabaseClosedError::DatabaseClosedError(std::string const &,std::string const &,int)\n"
15856     "    Xapian::DatabaseClosedError::DatabaseClosedError(std::string const &,std::string const &)\n"
15857     "    Xapian::DatabaseClosedError::DatabaseClosedError(std::string const &)\n"
15858     "    Xapian::DatabaseClosedError::DatabaseClosedError(std::string const &,int)\n");
15859   return 0;
15860 }
15861 
15862 
_wrap_delete_DatabaseClosedError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15863 SWIGINTERN PyObject *_wrap_delete_DatabaseClosedError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15864   PyObject *resultobj = 0;
15865   Xapian::DatabaseClosedError *arg1 = (Xapian::DatabaseClosedError *) 0 ;
15866   void *argp1 = 0 ;
15867   int res1 = 0 ;
15868   PyObject *swig_obj[1] ;
15869 
15870   if (!args) SWIG_fail;
15871   swig_obj[0] = args;
15872   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__DatabaseClosedError, SWIG_POINTER_DISOWN |  0 );
15873   if (!SWIG_IsOK(res1)) {
15874     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DatabaseClosedError" "', argument " "1"" of type '" "Xapian::DatabaseClosedError *""'");
15875   }
15876   arg1 = reinterpret_cast< Xapian::DatabaseClosedError * >(argp1);
15877   {
15878     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
15879     delete arg1;
15880     SWIG_PYTHON_THREAD_END_ALLOW;
15881   }
15882   resultobj = SWIG_Py_Void();
15883   return resultobj;
15884 fail:
15885   return NULL;
15886 }
15887 
15888 
DatabaseClosedError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15889 SWIGINTERN PyObject *DatabaseClosedError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15890   PyObject *obj;
15891   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
15892   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__DatabaseClosedError, SWIG_NewClientData(obj));
15893   return SWIG_Py_Void();
15894 }
15895 
DatabaseClosedError_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15896 SWIGINTERN PyObject *DatabaseClosedError_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15897   return SWIG_Python_InitShadowInstance(args);
15898 }
15899 
_wrap_version_string(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15900 SWIGINTERN PyObject *_wrap_version_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15901   PyObject *resultobj = 0;
15902   char *result = 0 ;
15903 
15904   if (!SWIG_Python_UnpackTuple(args,"version_string",0,0,0)) SWIG_fail;
15905   {
15906     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
15907     result = (char *)Xapian::version_string();
15908     SWIG_PYTHON_THREAD_END_ALLOW;
15909   }
15910   resultobj = SWIG_FromCharPtr((const char *)result);
15911   return resultobj;
15912 fail:
15913   return NULL;
15914 }
15915 
15916 
_wrap_major_version(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15917 SWIGINTERN PyObject *_wrap_major_version(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15918   PyObject *resultobj = 0;
15919   int result;
15920 
15921   if (!SWIG_Python_UnpackTuple(args,"major_version",0,0,0)) SWIG_fail;
15922   {
15923     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
15924     result = (int)Xapian::major_version();
15925     SWIG_PYTHON_THREAD_END_ALLOW;
15926   }
15927   resultobj = SWIG_From_int(static_cast< int >(result));
15928   return resultobj;
15929 fail:
15930   return NULL;
15931 }
15932 
15933 
_wrap_minor_version(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15934 SWIGINTERN PyObject *_wrap_minor_version(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15935   PyObject *resultobj = 0;
15936   int result;
15937 
15938   if (!SWIG_Python_UnpackTuple(args,"minor_version",0,0,0)) SWIG_fail;
15939   {
15940     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
15941     result = (int)Xapian::minor_version();
15942     SWIG_PYTHON_THREAD_END_ALLOW;
15943   }
15944   resultobj = SWIG_From_int(static_cast< int >(result));
15945   return resultobj;
15946 fail:
15947   return NULL;
15948 }
15949 
15950 
_wrap_revision(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15951 SWIGINTERN PyObject *_wrap_revision(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15952   PyObject *resultobj = 0;
15953   int result;
15954 
15955   if (!SWIG_Python_UnpackTuple(args,"revision",0,0,0)) SWIG_fail;
15956   {
15957     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
15958     result = (int)Xapian::revision();
15959     SWIG_PYTHON_THREAD_END_ALLOW;
15960   }
15961   resultobj = SWIG_From_int(static_cast< int >(result));
15962   return resultobj;
15963 fail:
15964   return NULL;
15965 }
15966 
15967 
_wrap_new__PositionIterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15968 SWIGINTERN PyObject *_wrap_new__PositionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15969   PyObject *resultobj = 0;
15970   Xapian::PositionIterator *result = 0 ;
15971 
15972   if (!SWIG_Python_UnpackTuple(args,"new__PositionIterator",0,0,0)) SWIG_fail;
15973   {
15974     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
15975     result = (Xapian::PositionIterator *)new Xapian::PositionIterator();
15976     SWIG_PYTHON_THREAD_END_ALLOW;
15977   }
15978   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__PositionIterator, SWIG_POINTER_NEW |  0 );
15979   return resultobj;
15980 fail:
15981   return NULL;
15982 }
15983 
15984 
_wrap_delete__PositionIterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15985 SWIGINTERN PyObject *_wrap_delete__PositionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15986   PyObject *resultobj = 0;
15987   Xapian::PositionIterator *arg1 = (Xapian::PositionIterator *) 0 ;
15988   void *argp1 = 0 ;
15989   int res1 = 0 ;
15990   PyObject *swig_obj[1] ;
15991 
15992   if (!args) SWIG_fail;
15993   swig_obj[0] = args;
15994   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PositionIterator, SWIG_POINTER_DISOWN |  0 );
15995   if (!SWIG_IsOK(res1)) {
15996     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete__PositionIterator" "', argument " "1"" of type '" "Xapian::PositionIterator *""'");
15997   }
15998   arg1 = reinterpret_cast< Xapian::PositionIterator * >(argp1);
15999   {
16000     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16001     delete arg1;
16002     SWIG_PYTHON_THREAD_END_ALLOW;
16003   }
16004   resultobj = SWIG_Py_Void();
16005   return resultobj;
16006 fail:
16007   return NULL;
16008 }
16009 
16010 
_wrap__PositionIterator_skip_to(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16011 SWIGINTERN PyObject *_wrap__PositionIterator_skip_to(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16012   PyObject *resultobj = 0;
16013   Xapian::PositionIterator *arg1 = (Xapian::PositionIterator *) 0 ;
16014   Xapian::termpos arg2 ;
16015   void *argp1 = 0 ;
16016   int res1 = 0 ;
16017   unsigned int val2 ;
16018   int ecode2 = 0 ;
16019   PyObject *swig_obj[2] ;
16020 
16021   if (!SWIG_Python_UnpackTuple(args,"_PositionIterator_skip_to",2,2,swig_obj)) SWIG_fail;
16022   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PositionIterator, 0 |  0 );
16023   if (!SWIG_IsOK(res1)) {
16024     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_PositionIterator_skip_to" "', argument " "1"" of type '" "Xapian::PositionIterator *""'");
16025   }
16026   arg1 = reinterpret_cast< Xapian::PositionIterator * >(argp1);
16027   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
16028   if (!SWIG_IsOK(ecode2)) {
16029     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_PositionIterator_skip_to" "', argument " "2"" of type '" "Xapian::termpos""'");
16030   }
16031   arg2 = static_cast< Xapian::termpos >(val2);
16032   {
16033     try {
16034       {
16035         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16036         (arg1)->skip_to(arg2);
16037         SWIG_PYTHON_THREAD_END_ALLOW;
16038       }
16039     } catch (...) {
16040       Xapian::SetPythonException();
16041       SWIG_fail;
16042     }
16043   }
16044   resultobj = SWIG_Py_Void();
16045   return resultobj;
16046 fail:
16047   return NULL;
16048 }
16049 
16050 
_wrap__PositionIterator___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16051 SWIGINTERN PyObject *_wrap__PositionIterator___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16052   PyObject *resultobj = 0;
16053   Xapian::PositionIterator *arg1 = (Xapian::PositionIterator *) 0 ;
16054   void *argp1 = 0 ;
16055   int res1 = 0 ;
16056   PyObject *swig_obj[1] ;
16057   std::string result;
16058 
16059   if (!args) SWIG_fail;
16060   swig_obj[0] = args;
16061   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PositionIterator, 0 |  0 );
16062   if (!SWIG_IsOK(res1)) {
16063     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_PositionIterator___str__" "', argument " "1"" of type '" "Xapian::PositionIterator const *""'");
16064   }
16065   arg1 = reinterpret_cast< Xapian::PositionIterator * >(argp1);
16066   {
16067     try {
16068       {
16069         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16070         result = ((Xapian::PositionIterator const *)arg1)->get_description();
16071         SWIG_PYTHON_THREAD_END_ALLOW;
16072       }
16073     } catch (...) {
16074       Xapian::SetPythonException();
16075       SWIG_fail;
16076     }
16077   }
16078   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
16079   return resultobj;
16080 fail:
16081   return NULL;
16082 }
16083 
16084 
_wrap__PositionIterator___eq__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16085 SWIGINTERN PyObject *_wrap__PositionIterator___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16086   PyObject *resultobj = 0;
16087   Xapian::PositionIterator *arg1 = (Xapian::PositionIterator *) 0 ;
16088   Xapian::PositionIterator *arg2 = 0 ;
16089   void *argp1 = 0 ;
16090   int res1 = 0 ;
16091   void *argp2 = 0 ;
16092   int res2 = 0 ;
16093   PyObject *swig_obj[2] ;
16094   bool result;
16095 
16096   if (!SWIG_Python_UnpackTuple(args,"_PositionIterator___eq__",2,2,swig_obj)) SWIG_fail;
16097   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PositionIterator, 0 |  0 );
16098   if (!SWIG_IsOK(res1)) {
16099     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_PositionIterator___eq__" "', argument " "1"" of type '" "Xapian::PositionIterator *""'");
16100   }
16101   arg1 = reinterpret_cast< Xapian::PositionIterator * >(argp1);
16102   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__PositionIterator,  0  | 0);
16103   if (!SWIG_IsOK(res2)) {
16104     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_PositionIterator___eq__" "', argument " "2"" of type '" "Xapian::PositionIterator const &""'");
16105   }
16106   if (!argp2) {
16107     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_PositionIterator___eq__" "', argument " "2"" of type '" "Xapian::PositionIterator const &""'");
16108   }
16109   arg2 = reinterpret_cast< Xapian::PositionIterator * >(argp2);
16110   {
16111     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16112     result = (bool)Xapian_PositionIterator___eq__(arg1,(Xapian::PositionIterator const &)*arg2);
16113     SWIG_PYTHON_THREAD_END_ALLOW;
16114   }
16115   resultobj = SWIG_From_bool(static_cast< bool >(result));
16116   return resultobj;
16117 fail:
16118   return NULL;
16119 }
16120 
16121 
_wrap__PositionIterator___ne__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16122 SWIGINTERN PyObject *_wrap__PositionIterator___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16123   PyObject *resultobj = 0;
16124   Xapian::PositionIterator *arg1 = (Xapian::PositionIterator *) 0 ;
16125   Xapian::PositionIterator *arg2 = 0 ;
16126   void *argp1 = 0 ;
16127   int res1 = 0 ;
16128   void *argp2 = 0 ;
16129   int res2 = 0 ;
16130   PyObject *swig_obj[2] ;
16131   bool result;
16132 
16133   if (!SWIG_Python_UnpackTuple(args,"_PositionIterator___ne__",2,2,swig_obj)) SWIG_fail;
16134   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PositionIterator, 0 |  0 );
16135   if (!SWIG_IsOK(res1)) {
16136     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_PositionIterator___ne__" "', argument " "1"" of type '" "Xapian::PositionIterator *""'");
16137   }
16138   arg1 = reinterpret_cast< Xapian::PositionIterator * >(argp1);
16139   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__PositionIterator,  0  | 0);
16140   if (!SWIG_IsOK(res2)) {
16141     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_PositionIterator___ne__" "', argument " "2"" of type '" "Xapian::PositionIterator const &""'");
16142   }
16143   if (!argp2) {
16144     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_PositionIterator___ne__" "', argument " "2"" of type '" "Xapian::PositionIterator const &""'");
16145   }
16146   arg2 = reinterpret_cast< Xapian::PositionIterator * >(argp2);
16147   {
16148     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16149     result = (bool)Xapian_PositionIterator___ne__(arg1,(Xapian::PositionIterator const &)*arg2);
16150     SWIG_PYTHON_THREAD_END_ALLOW;
16151   }
16152   resultobj = SWIG_From_bool(static_cast< bool >(result));
16153   return resultobj;
16154 fail:
16155   return NULL;
16156 }
16157 
16158 
_wrap__PositionIterator_equals(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16159 SWIGINTERN PyObject *_wrap__PositionIterator_equals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16160   PyObject *resultobj = 0;
16161   Xapian::PositionIterator *arg1 = (Xapian::PositionIterator *) 0 ;
16162   Xapian::PositionIterator *arg2 = 0 ;
16163   void *argp1 = 0 ;
16164   int res1 = 0 ;
16165   void *argp2 = 0 ;
16166   int res2 = 0 ;
16167   PyObject *swig_obj[2] ;
16168   bool result;
16169 
16170   if (!SWIG_Python_UnpackTuple(args,"_PositionIterator_equals",2,2,swig_obj)) SWIG_fail;
16171   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PositionIterator, 0 |  0 );
16172   if (!SWIG_IsOK(res1)) {
16173     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_PositionIterator_equals" "', argument " "1"" of type '" "Xapian::PositionIterator const *""'");
16174   }
16175   arg1 = reinterpret_cast< Xapian::PositionIterator * >(argp1);
16176   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__PositionIterator,  0  | 0);
16177   if (!SWIG_IsOK(res2)) {
16178     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_PositionIterator_equals" "', argument " "2"" of type '" "Xapian::PositionIterator const &""'");
16179   }
16180   if (!argp2) {
16181     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_PositionIterator_equals" "', argument " "2"" of type '" "Xapian::PositionIterator const &""'");
16182   }
16183   arg2 = reinterpret_cast< Xapian::PositionIterator * >(argp2);
16184   {
16185     try {
16186       {
16187         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16188         result = (bool)Xapian_PositionIterator_equals((Xapian::PositionIterator const *)arg1,(Xapian::PositionIterator const &)*arg2);
16189         SWIG_PYTHON_THREAD_END_ALLOW;
16190       }
16191     } catch (...) {
16192       Xapian::SetPythonException();
16193       SWIG_fail;
16194     }
16195   }
16196   resultobj = SWIG_From_bool(static_cast< bool >(result));
16197   return resultobj;
16198 fail:
16199   return NULL;
16200 }
16201 
16202 
_wrap__PositionIterator_get_termpos(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16203 SWIGINTERN PyObject *_wrap__PositionIterator_get_termpos(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16204   PyObject *resultobj = 0;
16205   Xapian::PositionIterator *arg1 = (Xapian::PositionIterator *) 0 ;
16206   void *argp1 = 0 ;
16207   int res1 = 0 ;
16208   PyObject *swig_obj[1] ;
16209   Xapian::termpos result;
16210 
16211   if (!args) SWIG_fail;
16212   swig_obj[0] = args;
16213   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PositionIterator, 0 |  0 );
16214   if (!SWIG_IsOK(res1)) {
16215     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_PositionIterator_get_termpos" "', argument " "1"" of type '" "Xapian::PositionIterator const *""'");
16216   }
16217   arg1 = reinterpret_cast< Xapian::PositionIterator * >(argp1);
16218   {
16219     try {
16220       {
16221         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16222         result = (Xapian::termpos)Xapian_PositionIterator_get_termpos((Xapian::PositionIterator const *)arg1);
16223         SWIG_PYTHON_THREAD_END_ALLOW;
16224       }
16225     } catch (...) {
16226       Xapian::SetPythonException();
16227       SWIG_fail;
16228     }
16229   }
16230   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16231   return resultobj;
16232 fail:
16233   return NULL;
16234 }
16235 
16236 
_wrap__PositionIterator_next(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16237 SWIGINTERN PyObject *_wrap__PositionIterator_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16238   PyObject *resultobj = 0;
16239   Xapian::PositionIterator *arg1 = (Xapian::PositionIterator *) 0 ;
16240   void *argp1 = 0 ;
16241   int res1 = 0 ;
16242   PyObject *swig_obj[1] ;
16243 
16244   if (!args) SWIG_fail;
16245   swig_obj[0] = args;
16246   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PositionIterator, 0 |  0 );
16247   if (!SWIG_IsOK(res1)) {
16248     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_PositionIterator_next" "', argument " "1"" of type '" "Xapian::PositionIterator *""'");
16249   }
16250   arg1 = reinterpret_cast< Xapian::PositionIterator * >(argp1);
16251   {
16252     try {
16253       {
16254         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16255         Xapian_PositionIterator_next(arg1);
16256         SWIG_PYTHON_THREAD_END_ALLOW;
16257       }
16258     } catch (...) {
16259       Xapian::SetPythonException();
16260       SWIG_fail;
16261     }
16262   }
16263   resultobj = SWIG_Py_Void();
16264   return resultobj;
16265 fail:
16266   return NULL;
16267 }
16268 
16269 
_PositionIterator_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16270 SWIGINTERN PyObject *_PositionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16271   PyObject *obj;
16272   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
16273   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__PositionIterator, SWIG_NewClientData(obj));
16274   return SWIG_Py_Void();
16275 }
16276 
_PositionIterator_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16277 SWIGINTERN PyObject *_PositionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16278   return SWIG_Python_InitShadowInstance(args);
16279 }
16280 
_wrap___eq____SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)16281 SWIGINTERN PyObject *_wrap___eq____SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16282   PyObject *resultobj = 0;
16283   Xapian::PositionIterator *arg1 = 0 ;
16284   Xapian::PositionIterator *arg2 = 0 ;
16285   void *argp1 = 0 ;
16286   int res1 = 0 ;
16287   void *argp2 = 0 ;
16288   int res2 = 0 ;
16289   bool result;
16290 
16291   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
16292   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__PositionIterator,  0  | 0);
16293   if (!SWIG_IsOK(res1)) {
16294     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__eq__" "', argument " "1"" of type '" "Xapian::PositionIterator const &""'");
16295   }
16296   if (!argp1) {
16297     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__eq__" "', argument " "1"" of type '" "Xapian::PositionIterator const &""'");
16298   }
16299   arg1 = reinterpret_cast< Xapian::PositionIterator * >(argp1);
16300   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__PositionIterator,  0  | 0);
16301   if (!SWIG_IsOK(res2)) {
16302     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__eq__" "', argument " "2"" of type '" "Xapian::PositionIterator const &""'");
16303   }
16304   if (!argp2) {
16305     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__eq__" "', argument " "2"" of type '" "Xapian::PositionIterator const &""'");
16306   }
16307   arg2 = reinterpret_cast< Xapian::PositionIterator * >(argp2);
16308   {
16309     try {
16310       {
16311         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16312         result = (bool)Xapian::operator ==((Xapian::PositionIterator const &)*arg1,(Xapian::PositionIterator const &)*arg2);
16313         SWIG_PYTHON_THREAD_END_ALLOW;
16314       }
16315     } catch (...) {
16316       Xapian::SetPythonException();
16317       SWIG_fail;
16318     }
16319   }
16320   resultobj = SWIG_From_bool(static_cast< bool >(result));
16321   return resultobj;
16322 fail:
16323   return NULL;
16324 }
16325 
16326 
_wrap___ne____SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)16327 SWIGINTERN PyObject *_wrap___ne____SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16328   PyObject *resultobj = 0;
16329   Xapian::PositionIterator *arg1 = 0 ;
16330   Xapian::PositionIterator *arg2 = 0 ;
16331   void *argp1 = 0 ;
16332   int res1 = 0 ;
16333   void *argp2 = 0 ;
16334   int res2 = 0 ;
16335   bool result;
16336 
16337   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
16338   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__PositionIterator,  0  | 0);
16339   if (!SWIG_IsOK(res1)) {
16340     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__ne__" "', argument " "1"" of type '" "Xapian::PositionIterator const &""'");
16341   }
16342   if (!argp1) {
16343     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__ne__" "', argument " "1"" of type '" "Xapian::PositionIterator const &""'");
16344   }
16345   arg1 = reinterpret_cast< Xapian::PositionIterator * >(argp1);
16346   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__PositionIterator,  0  | 0);
16347   if (!SWIG_IsOK(res2)) {
16348     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__ne__" "', argument " "2"" of type '" "Xapian::PositionIterator const &""'");
16349   }
16350   if (!argp2) {
16351     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__ne__" "', argument " "2"" of type '" "Xapian::PositionIterator const &""'");
16352   }
16353   arg2 = reinterpret_cast< Xapian::PositionIterator * >(argp2);
16354   {
16355     try {
16356       {
16357         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16358         result = (bool)Xapian::operator !=((Xapian::PositionIterator const &)*arg1,(Xapian::PositionIterator const &)*arg2);
16359         SWIG_PYTHON_THREAD_END_ALLOW;
16360       }
16361     } catch (...) {
16362       Xapian::SetPythonException();
16363       SWIG_fail;
16364     }
16365   }
16366   resultobj = SWIG_From_bool(static_cast< bool >(result));
16367   return resultobj;
16368 fail:
16369   return NULL;
16370 }
16371 
16372 
_wrap_new__PostingIterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16373 SWIGINTERN PyObject *_wrap_new__PostingIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16374   PyObject *resultobj = 0;
16375   Xapian::PostingIterator *result = 0 ;
16376 
16377   if (!SWIG_Python_UnpackTuple(args,"new__PostingIterator",0,0,0)) SWIG_fail;
16378   {
16379     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16380     result = (Xapian::PostingIterator *)new Xapian::PostingIterator();
16381     SWIG_PYTHON_THREAD_END_ALLOW;
16382   }
16383   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__PostingIterator, SWIG_POINTER_NEW |  0 );
16384   return resultobj;
16385 fail:
16386   return NULL;
16387 }
16388 
16389 
_wrap_delete__PostingIterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16390 SWIGINTERN PyObject *_wrap_delete__PostingIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16391   PyObject *resultobj = 0;
16392   Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
16393   void *argp1 = 0 ;
16394   int res1 = 0 ;
16395   PyObject *swig_obj[1] ;
16396 
16397   if (!args) SWIG_fail;
16398   swig_obj[0] = args;
16399   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingIterator, SWIG_POINTER_DISOWN |  0 );
16400   if (!SWIG_IsOK(res1)) {
16401     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete__PostingIterator" "', argument " "1"" of type '" "Xapian::PostingIterator *""'");
16402   }
16403   arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
16404   {
16405     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16406     delete arg1;
16407     SWIG_PYTHON_THREAD_END_ALLOW;
16408   }
16409   resultobj = SWIG_Py_Void();
16410   return resultobj;
16411 fail:
16412   return NULL;
16413 }
16414 
16415 
_wrap__PostingIterator_get_wdf(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16416 SWIGINTERN PyObject *_wrap__PostingIterator_get_wdf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16417   PyObject *resultobj = 0;
16418   Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
16419   void *argp1 = 0 ;
16420   int res1 = 0 ;
16421   PyObject *swig_obj[1] ;
16422   Xapian::termcount result;
16423 
16424   if (!args) SWIG_fail;
16425   swig_obj[0] = args;
16426   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingIterator, 0 |  0 );
16427   if (!SWIG_IsOK(res1)) {
16428     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_PostingIterator_get_wdf" "', argument " "1"" of type '" "Xapian::PostingIterator const *""'");
16429   }
16430   arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
16431   {
16432     try {
16433       {
16434         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16435         result = (Xapian::termcount)((Xapian::PostingIterator const *)arg1)->get_wdf();
16436         SWIG_PYTHON_THREAD_END_ALLOW;
16437       }
16438     } catch (...) {
16439       Xapian::SetPythonException();
16440       SWIG_fail;
16441     }
16442   }
16443   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16444   return resultobj;
16445 fail:
16446   return NULL;
16447 }
16448 
16449 
_wrap__PostingIterator_get_doclength(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16450 SWIGINTERN PyObject *_wrap__PostingIterator_get_doclength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16451   PyObject *resultobj = 0;
16452   Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
16453   void *argp1 = 0 ;
16454   int res1 = 0 ;
16455   PyObject *swig_obj[1] ;
16456   Xapian::termcount result;
16457 
16458   if (!args) SWIG_fail;
16459   swig_obj[0] = args;
16460   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingIterator, 0 |  0 );
16461   if (!SWIG_IsOK(res1)) {
16462     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_PostingIterator_get_doclength" "', argument " "1"" of type '" "Xapian::PostingIterator const *""'");
16463   }
16464   arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
16465   {
16466     try {
16467       {
16468         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16469         result = (Xapian::termcount)((Xapian::PostingIterator const *)arg1)->get_doclength();
16470         SWIG_PYTHON_THREAD_END_ALLOW;
16471       }
16472     } catch (...) {
16473       Xapian::SetPythonException();
16474       SWIG_fail;
16475     }
16476   }
16477   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16478   return resultobj;
16479 fail:
16480   return NULL;
16481 }
16482 
16483 
_wrap__PostingIterator_get_unique_terms(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16484 SWIGINTERN PyObject *_wrap__PostingIterator_get_unique_terms(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16485   PyObject *resultobj = 0;
16486   Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
16487   void *argp1 = 0 ;
16488   int res1 = 0 ;
16489   PyObject *swig_obj[1] ;
16490   Xapian::termcount result;
16491 
16492   if (!args) SWIG_fail;
16493   swig_obj[0] = args;
16494   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingIterator, 0 |  0 );
16495   if (!SWIG_IsOK(res1)) {
16496     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_PostingIterator_get_unique_terms" "', argument " "1"" of type '" "Xapian::PostingIterator const *""'");
16497   }
16498   arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
16499   {
16500     try {
16501       {
16502         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16503         result = (Xapian::termcount)((Xapian::PostingIterator const *)arg1)->get_unique_terms();
16504         SWIG_PYTHON_THREAD_END_ALLOW;
16505       }
16506     } catch (...) {
16507       Xapian::SetPythonException();
16508       SWIG_fail;
16509     }
16510   }
16511   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16512   return resultobj;
16513 fail:
16514   return NULL;
16515 }
16516 
16517 
_wrap__PostingIterator__positionlist_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16518 SWIGINTERN PyObject *_wrap__PostingIterator__positionlist_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16519   PyObject *resultobj = 0;
16520   Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
16521   void *argp1 = 0 ;
16522   int res1 = 0 ;
16523   PyObject *swig_obj[1] ;
16524   Xapian::PositionIterator result;
16525 
16526   if (!args) SWIG_fail;
16527   swig_obj[0] = args;
16528   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingIterator, 0 |  0 );
16529   if (!SWIG_IsOK(res1)) {
16530     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_PostingIterator__positionlist_begin" "', argument " "1"" of type '" "Xapian::PostingIterator const *""'");
16531   }
16532   arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
16533   {
16534     try {
16535       {
16536         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16537         result = ((Xapian::PostingIterator const *)arg1)->positionlist_begin();
16538         SWIG_PYTHON_THREAD_END_ALLOW;
16539       }
16540     } catch (...) {
16541       Xapian::SetPythonException();
16542       SWIG_fail;
16543     }
16544   }
16545   resultobj = SWIG_NewPointerObj((new Xapian::PositionIterator(static_cast< const Xapian::PositionIterator& >(result))), SWIGTYPE_p_Xapian__PositionIterator, SWIG_POINTER_OWN |  0 );
16546   return resultobj;
16547 fail:
16548   return NULL;
16549 }
16550 
16551 
_wrap__PostingIterator__positionlist_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16552 SWIGINTERN PyObject *_wrap__PostingIterator__positionlist_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16553   PyObject *resultobj = 0;
16554   Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
16555   void *argp1 = 0 ;
16556   int res1 = 0 ;
16557   PyObject *swig_obj[1] ;
16558   Xapian::PositionIterator result;
16559 
16560   if (!args) SWIG_fail;
16561   swig_obj[0] = args;
16562   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingIterator, 0 |  0 );
16563   if (!SWIG_IsOK(res1)) {
16564     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_PostingIterator__positionlist_end" "', argument " "1"" of type '" "Xapian::PostingIterator const *""'");
16565   }
16566   arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
16567   {
16568     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16569     result = ((Xapian::PostingIterator const *)arg1)->positionlist_end();
16570     SWIG_PYTHON_THREAD_END_ALLOW;
16571   }
16572   resultobj = SWIG_NewPointerObj((new Xapian::PositionIterator(static_cast< const Xapian::PositionIterator& >(result))), SWIGTYPE_p_Xapian__PositionIterator, SWIG_POINTER_OWN |  0 );
16573   return resultobj;
16574 fail:
16575   return NULL;
16576 }
16577 
16578 
_wrap__PostingIterator_skip_to(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16579 SWIGINTERN PyObject *_wrap__PostingIterator_skip_to(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16580   PyObject *resultobj = 0;
16581   Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
16582   Xapian::docid arg2 ;
16583   void *argp1 = 0 ;
16584   int res1 = 0 ;
16585   unsigned int val2 ;
16586   int ecode2 = 0 ;
16587   PyObject *swig_obj[2] ;
16588 
16589   if (!SWIG_Python_UnpackTuple(args,"_PostingIterator_skip_to",2,2,swig_obj)) SWIG_fail;
16590   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingIterator, 0 |  0 );
16591   if (!SWIG_IsOK(res1)) {
16592     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_PostingIterator_skip_to" "', argument " "1"" of type '" "Xapian::PostingIterator *""'");
16593   }
16594   arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
16595   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
16596   if (!SWIG_IsOK(ecode2)) {
16597     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_PostingIterator_skip_to" "', argument " "2"" of type '" "Xapian::docid""'");
16598   }
16599   arg2 = static_cast< Xapian::docid >(val2);
16600   {
16601     try {
16602       {
16603         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16604         (arg1)->skip_to(arg2);
16605         SWIG_PYTHON_THREAD_END_ALLOW;
16606       }
16607     } catch (...) {
16608       Xapian::SetPythonException();
16609       SWIG_fail;
16610     }
16611   }
16612   resultobj = SWIG_Py_Void();
16613   return resultobj;
16614 fail:
16615   return NULL;
16616 }
16617 
16618 
_wrap__PostingIterator___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16619 SWIGINTERN PyObject *_wrap__PostingIterator___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16620   PyObject *resultobj = 0;
16621   Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
16622   void *argp1 = 0 ;
16623   int res1 = 0 ;
16624   PyObject *swig_obj[1] ;
16625   std::string result;
16626 
16627   if (!args) SWIG_fail;
16628   swig_obj[0] = args;
16629   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingIterator, 0 |  0 );
16630   if (!SWIG_IsOK(res1)) {
16631     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_PostingIterator___str__" "', argument " "1"" of type '" "Xapian::PostingIterator const *""'");
16632   }
16633   arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
16634   {
16635     try {
16636       {
16637         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16638         result = ((Xapian::PostingIterator const *)arg1)->get_description();
16639         SWIG_PYTHON_THREAD_END_ALLOW;
16640       }
16641     } catch (...) {
16642       Xapian::SetPythonException();
16643       SWIG_fail;
16644     }
16645   }
16646   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
16647   return resultobj;
16648 fail:
16649   return NULL;
16650 }
16651 
16652 
_wrap__PostingIterator___eq__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16653 SWIGINTERN PyObject *_wrap__PostingIterator___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16654   PyObject *resultobj = 0;
16655   Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
16656   Xapian::PostingIterator *arg2 = 0 ;
16657   void *argp1 = 0 ;
16658   int res1 = 0 ;
16659   void *argp2 = 0 ;
16660   int res2 = 0 ;
16661   PyObject *swig_obj[2] ;
16662   bool result;
16663 
16664   if (!SWIG_Python_UnpackTuple(args,"_PostingIterator___eq__",2,2,swig_obj)) SWIG_fail;
16665   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingIterator, 0 |  0 );
16666   if (!SWIG_IsOK(res1)) {
16667     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_PostingIterator___eq__" "', argument " "1"" of type '" "Xapian::PostingIterator *""'");
16668   }
16669   arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
16670   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__PostingIterator,  0  | 0);
16671   if (!SWIG_IsOK(res2)) {
16672     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_PostingIterator___eq__" "', argument " "2"" of type '" "Xapian::PostingIterator const &""'");
16673   }
16674   if (!argp2) {
16675     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_PostingIterator___eq__" "', argument " "2"" of type '" "Xapian::PostingIterator const &""'");
16676   }
16677   arg2 = reinterpret_cast< Xapian::PostingIterator * >(argp2);
16678   {
16679     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16680     result = (bool)Xapian_PostingIterator___eq__(arg1,(Xapian::PostingIterator const &)*arg2);
16681     SWIG_PYTHON_THREAD_END_ALLOW;
16682   }
16683   resultobj = SWIG_From_bool(static_cast< bool >(result));
16684   return resultobj;
16685 fail:
16686   return NULL;
16687 }
16688 
16689 
_wrap__PostingIterator___ne__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16690 SWIGINTERN PyObject *_wrap__PostingIterator___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16691   PyObject *resultobj = 0;
16692   Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
16693   Xapian::PostingIterator *arg2 = 0 ;
16694   void *argp1 = 0 ;
16695   int res1 = 0 ;
16696   void *argp2 = 0 ;
16697   int res2 = 0 ;
16698   PyObject *swig_obj[2] ;
16699   bool result;
16700 
16701   if (!SWIG_Python_UnpackTuple(args,"_PostingIterator___ne__",2,2,swig_obj)) SWIG_fail;
16702   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingIterator, 0 |  0 );
16703   if (!SWIG_IsOK(res1)) {
16704     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_PostingIterator___ne__" "', argument " "1"" of type '" "Xapian::PostingIterator *""'");
16705   }
16706   arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
16707   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__PostingIterator,  0  | 0);
16708   if (!SWIG_IsOK(res2)) {
16709     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_PostingIterator___ne__" "', argument " "2"" of type '" "Xapian::PostingIterator const &""'");
16710   }
16711   if (!argp2) {
16712     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_PostingIterator___ne__" "', argument " "2"" of type '" "Xapian::PostingIterator const &""'");
16713   }
16714   arg2 = reinterpret_cast< Xapian::PostingIterator * >(argp2);
16715   {
16716     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16717     result = (bool)Xapian_PostingIterator___ne__(arg1,(Xapian::PostingIterator const &)*arg2);
16718     SWIG_PYTHON_THREAD_END_ALLOW;
16719   }
16720   resultobj = SWIG_From_bool(static_cast< bool >(result));
16721   return resultobj;
16722 fail:
16723   return NULL;
16724 }
16725 
16726 
_wrap__PostingIterator_equals(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16727 SWIGINTERN PyObject *_wrap__PostingIterator_equals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16728   PyObject *resultobj = 0;
16729   Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
16730   Xapian::PostingIterator *arg2 = 0 ;
16731   void *argp1 = 0 ;
16732   int res1 = 0 ;
16733   void *argp2 = 0 ;
16734   int res2 = 0 ;
16735   PyObject *swig_obj[2] ;
16736   bool result;
16737 
16738   if (!SWIG_Python_UnpackTuple(args,"_PostingIterator_equals",2,2,swig_obj)) SWIG_fail;
16739   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingIterator, 0 |  0 );
16740   if (!SWIG_IsOK(res1)) {
16741     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_PostingIterator_equals" "', argument " "1"" of type '" "Xapian::PostingIterator const *""'");
16742   }
16743   arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
16744   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__PostingIterator,  0  | 0);
16745   if (!SWIG_IsOK(res2)) {
16746     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_PostingIterator_equals" "', argument " "2"" of type '" "Xapian::PostingIterator const &""'");
16747   }
16748   if (!argp2) {
16749     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_PostingIterator_equals" "', argument " "2"" of type '" "Xapian::PostingIterator const &""'");
16750   }
16751   arg2 = reinterpret_cast< Xapian::PostingIterator * >(argp2);
16752   {
16753     try {
16754       {
16755         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16756         result = (bool)Xapian_PostingIterator_equals((Xapian::PostingIterator const *)arg1,(Xapian::PostingIterator const &)*arg2);
16757         SWIG_PYTHON_THREAD_END_ALLOW;
16758       }
16759     } catch (...) {
16760       Xapian::SetPythonException();
16761       SWIG_fail;
16762     }
16763   }
16764   resultobj = SWIG_From_bool(static_cast< bool >(result));
16765   return resultobj;
16766 fail:
16767   return NULL;
16768 }
16769 
16770 
_wrap__PostingIterator_get_docid(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16771 SWIGINTERN PyObject *_wrap__PostingIterator_get_docid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16772   PyObject *resultobj = 0;
16773   Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
16774   void *argp1 = 0 ;
16775   int res1 = 0 ;
16776   PyObject *swig_obj[1] ;
16777   Xapian::docid result;
16778 
16779   if (!args) SWIG_fail;
16780   swig_obj[0] = args;
16781   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingIterator, 0 |  0 );
16782   if (!SWIG_IsOK(res1)) {
16783     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_PostingIterator_get_docid" "', argument " "1"" of type '" "Xapian::PostingIterator const *""'");
16784   }
16785   arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
16786   {
16787     try {
16788       {
16789         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16790         result = (Xapian::docid)Xapian_PostingIterator_get_docid((Xapian::PostingIterator const *)arg1);
16791         SWIG_PYTHON_THREAD_END_ALLOW;
16792       }
16793     } catch (...) {
16794       Xapian::SetPythonException();
16795       SWIG_fail;
16796     }
16797   }
16798   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16799   return resultobj;
16800 fail:
16801   return NULL;
16802 }
16803 
16804 
_wrap__PostingIterator_next(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16805 SWIGINTERN PyObject *_wrap__PostingIterator_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16806   PyObject *resultobj = 0;
16807   Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
16808   void *argp1 = 0 ;
16809   int res1 = 0 ;
16810   PyObject *swig_obj[1] ;
16811 
16812   if (!args) SWIG_fail;
16813   swig_obj[0] = args;
16814   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingIterator, 0 |  0 );
16815   if (!SWIG_IsOK(res1)) {
16816     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_PostingIterator_next" "', argument " "1"" of type '" "Xapian::PostingIterator *""'");
16817   }
16818   arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
16819   {
16820     try {
16821       {
16822         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16823         Xapian_PostingIterator_next(arg1);
16824         SWIG_PYTHON_THREAD_END_ALLOW;
16825       }
16826     } catch (...) {
16827       Xapian::SetPythonException();
16828       SWIG_fail;
16829     }
16830   }
16831   resultobj = SWIG_Py_Void();
16832   return resultobj;
16833 fail:
16834   return NULL;
16835 }
16836 
16837 
_PostingIterator_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16838 SWIGINTERN PyObject *_PostingIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16839   PyObject *obj;
16840   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
16841   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__PostingIterator, SWIG_NewClientData(obj));
16842   return SWIG_Py_Void();
16843 }
16844 
_PostingIterator_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16845 SWIGINTERN PyObject *_PostingIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16846   return SWIG_Python_InitShadowInstance(args);
16847 }
16848 
_wrap___eq____SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)16849 SWIGINTERN PyObject *_wrap___eq____SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16850   PyObject *resultobj = 0;
16851   Xapian::PostingIterator *arg1 = 0 ;
16852   Xapian::PostingIterator *arg2 = 0 ;
16853   void *argp1 = 0 ;
16854   int res1 = 0 ;
16855   void *argp2 = 0 ;
16856   int res2 = 0 ;
16857   bool result;
16858 
16859   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
16860   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__PostingIterator,  0  | 0);
16861   if (!SWIG_IsOK(res1)) {
16862     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__eq__" "', argument " "1"" of type '" "Xapian::PostingIterator const &""'");
16863   }
16864   if (!argp1) {
16865     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__eq__" "', argument " "1"" of type '" "Xapian::PostingIterator const &""'");
16866   }
16867   arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
16868   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__PostingIterator,  0  | 0);
16869   if (!SWIG_IsOK(res2)) {
16870     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__eq__" "', argument " "2"" of type '" "Xapian::PostingIterator const &""'");
16871   }
16872   if (!argp2) {
16873     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__eq__" "', argument " "2"" of type '" "Xapian::PostingIterator const &""'");
16874   }
16875   arg2 = reinterpret_cast< Xapian::PostingIterator * >(argp2);
16876   {
16877     try {
16878       {
16879         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16880         result = (bool)Xapian::operator ==((Xapian::PostingIterator const &)*arg1,(Xapian::PostingIterator const &)*arg2);
16881         SWIG_PYTHON_THREAD_END_ALLOW;
16882       }
16883     } catch (...) {
16884       Xapian::SetPythonException();
16885       SWIG_fail;
16886     }
16887   }
16888   resultobj = SWIG_From_bool(static_cast< bool >(result));
16889   return resultobj;
16890 fail:
16891   return NULL;
16892 }
16893 
16894 
_wrap___ne____SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)16895 SWIGINTERN PyObject *_wrap___ne____SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16896   PyObject *resultobj = 0;
16897   Xapian::PostingIterator *arg1 = 0 ;
16898   Xapian::PostingIterator *arg2 = 0 ;
16899   void *argp1 = 0 ;
16900   int res1 = 0 ;
16901   void *argp2 = 0 ;
16902   int res2 = 0 ;
16903   bool result;
16904 
16905   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
16906   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__PostingIterator,  0  | 0);
16907   if (!SWIG_IsOK(res1)) {
16908     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__ne__" "', argument " "1"" of type '" "Xapian::PostingIterator const &""'");
16909   }
16910   if (!argp1) {
16911     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__ne__" "', argument " "1"" of type '" "Xapian::PostingIterator const &""'");
16912   }
16913   arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
16914   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__PostingIterator,  0  | 0);
16915   if (!SWIG_IsOK(res2)) {
16916     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__ne__" "', argument " "2"" of type '" "Xapian::PostingIterator const &""'");
16917   }
16918   if (!argp2) {
16919     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__ne__" "', argument " "2"" of type '" "Xapian::PostingIterator const &""'");
16920   }
16921   arg2 = reinterpret_cast< Xapian::PostingIterator * >(argp2);
16922   {
16923     try {
16924       {
16925         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16926         result = (bool)Xapian::operator !=((Xapian::PostingIterator const &)*arg1,(Xapian::PostingIterator const &)*arg2);
16927         SWIG_PYTHON_THREAD_END_ALLOW;
16928       }
16929     } catch (...) {
16930       Xapian::SetPythonException();
16931       SWIG_fail;
16932     }
16933   }
16934   resultobj = SWIG_From_bool(static_cast< bool >(result));
16935   return resultobj;
16936 fail:
16937   return NULL;
16938 }
16939 
16940 
_wrap_new__TermIterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16941 SWIGINTERN PyObject *_wrap_new__TermIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16942   PyObject *resultobj = 0;
16943   Xapian::TermIterator *result = 0 ;
16944 
16945   if (!SWIG_Python_UnpackTuple(args,"new__TermIterator",0,0,0)) SWIG_fail;
16946   {
16947     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16948     result = (Xapian::TermIterator *)new Xapian::TermIterator();
16949     SWIG_PYTHON_THREAD_END_ALLOW;
16950   }
16951   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_NEW |  0 );
16952   return resultobj;
16953 fail:
16954   return NULL;
16955 }
16956 
16957 
_wrap_delete__TermIterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16958 SWIGINTERN PyObject *_wrap_delete__TermIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16959   PyObject *resultobj = 0;
16960   Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
16961   void *argp1 = 0 ;
16962   int res1 = 0 ;
16963   PyObject *swig_obj[1] ;
16964 
16965   if (!args) SWIG_fail;
16966   swig_obj[0] = args;
16967   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_DISOWN |  0 );
16968   if (!SWIG_IsOK(res1)) {
16969     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete__TermIterator" "', argument " "1"" of type '" "Xapian::TermIterator *""'");
16970   }
16971   arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
16972   {
16973     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16974     delete arg1;
16975     SWIG_PYTHON_THREAD_END_ALLOW;
16976   }
16977   resultobj = SWIG_Py_Void();
16978   return resultobj;
16979 fail:
16980   return NULL;
16981 }
16982 
16983 
_wrap__TermIterator_get_wdf(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16984 SWIGINTERN PyObject *_wrap__TermIterator_get_wdf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16985   PyObject *resultobj = 0;
16986   Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
16987   void *argp1 = 0 ;
16988   int res1 = 0 ;
16989   PyObject *swig_obj[1] ;
16990   Xapian::termcount result;
16991 
16992   if (!args) SWIG_fail;
16993   swig_obj[0] = args;
16994   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermIterator, 0 |  0 );
16995   if (!SWIG_IsOK(res1)) {
16996     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_TermIterator_get_wdf" "', argument " "1"" of type '" "Xapian::TermIterator const *""'");
16997   }
16998   arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
16999   {
17000     try {
17001       {
17002         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17003         result = (Xapian::termcount)((Xapian::TermIterator const *)arg1)->get_wdf();
17004         SWIG_PYTHON_THREAD_END_ALLOW;
17005       }
17006     } catch (...) {
17007       Xapian::SetPythonException();
17008       SWIG_fail;
17009     }
17010   }
17011   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
17012   return resultobj;
17013 fail:
17014   return NULL;
17015 }
17016 
17017 
_wrap__TermIterator_get_termfreq(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17018 SWIGINTERN PyObject *_wrap__TermIterator_get_termfreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17019   PyObject *resultobj = 0;
17020   Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
17021   void *argp1 = 0 ;
17022   int res1 = 0 ;
17023   PyObject *swig_obj[1] ;
17024   Xapian::doccount result;
17025 
17026   if (!args) SWIG_fail;
17027   swig_obj[0] = args;
17028   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermIterator, 0 |  0 );
17029   if (!SWIG_IsOK(res1)) {
17030     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_TermIterator_get_termfreq" "', argument " "1"" of type '" "Xapian::TermIterator const *""'");
17031   }
17032   arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
17033   {
17034     try {
17035       {
17036         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17037         result = (Xapian::doccount)((Xapian::TermIterator const *)arg1)->get_termfreq();
17038         SWIG_PYTHON_THREAD_END_ALLOW;
17039       }
17040     } catch (...) {
17041       Xapian::SetPythonException();
17042       SWIG_fail;
17043     }
17044   }
17045   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
17046   return resultobj;
17047 fail:
17048   return NULL;
17049 }
17050 
17051 
_wrap__TermIterator_positionlist_count(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17052 SWIGINTERN PyObject *_wrap__TermIterator_positionlist_count(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17053   PyObject *resultobj = 0;
17054   Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
17055   void *argp1 = 0 ;
17056   int res1 = 0 ;
17057   PyObject *swig_obj[1] ;
17058   Xapian::termcount result;
17059 
17060   if (!args) SWIG_fail;
17061   swig_obj[0] = args;
17062   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermIterator, 0 |  0 );
17063   if (!SWIG_IsOK(res1)) {
17064     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_TermIterator_positionlist_count" "', argument " "1"" of type '" "Xapian::TermIterator const *""'");
17065   }
17066   arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
17067   {
17068     try {
17069       {
17070         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17071         result = (Xapian::termcount)((Xapian::TermIterator const *)arg1)->positionlist_count();
17072         SWIG_PYTHON_THREAD_END_ALLOW;
17073       }
17074     } catch (...) {
17075       Xapian::SetPythonException();
17076       SWIG_fail;
17077     }
17078   }
17079   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
17080   return resultobj;
17081 fail:
17082   return NULL;
17083 }
17084 
17085 
_wrap__TermIterator__positionlist_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17086 SWIGINTERN PyObject *_wrap__TermIterator__positionlist_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17087   PyObject *resultobj = 0;
17088   Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
17089   void *argp1 = 0 ;
17090   int res1 = 0 ;
17091   PyObject *swig_obj[1] ;
17092   Xapian::PositionIterator result;
17093 
17094   if (!args) SWIG_fail;
17095   swig_obj[0] = args;
17096   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermIterator, 0 |  0 );
17097   if (!SWIG_IsOK(res1)) {
17098     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_TermIterator__positionlist_begin" "', argument " "1"" of type '" "Xapian::TermIterator const *""'");
17099   }
17100   arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
17101   {
17102     try {
17103       {
17104         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17105         result = ((Xapian::TermIterator const *)arg1)->positionlist_begin();
17106         SWIG_PYTHON_THREAD_END_ALLOW;
17107       }
17108     } catch (...) {
17109       Xapian::SetPythonException();
17110       SWIG_fail;
17111     }
17112   }
17113   resultobj = SWIG_NewPointerObj((new Xapian::PositionIterator(static_cast< const Xapian::PositionIterator& >(result))), SWIGTYPE_p_Xapian__PositionIterator, SWIG_POINTER_OWN |  0 );
17114   return resultobj;
17115 fail:
17116   return NULL;
17117 }
17118 
17119 
_wrap__TermIterator__positionlist_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17120 SWIGINTERN PyObject *_wrap__TermIterator__positionlist_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17121   PyObject *resultobj = 0;
17122   Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
17123   void *argp1 = 0 ;
17124   int res1 = 0 ;
17125   PyObject *swig_obj[1] ;
17126   Xapian::PositionIterator result;
17127 
17128   if (!args) SWIG_fail;
17129   swig_obj[0] = args;
17130   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermIterator, 0 |  0 );
17131   if (!SWIG_IsOK(res1)) {
17132     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_TermIterator__positionlist_end" "', argument " "1"" of type '" "Xapian::TermIterator const *""'");
17133   }
17134   arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
17135   {
17136     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17137     result = ((Xapian::TermIterator const *)arg1)->positionlist_end();
17138     SWIG_PYTHON_THREAD_END_ALLOW;
17139   }
17140   resultobj = SWIG_NewPointerObj((new Xapian::PositionIterator(static_cast< const Xapian::PositionIterator& >(result))), SWIGTYPE_p_Xapian__PositionIterator, SWIG_POINTER_OWN |  0 );
17141   return resultobj;
17142 fail:
17143   return NULL;
17144 }
17145 
17146 
_wrap__TermIterator_skip_to(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17147 SWIGINTERN PyObject *_wrap__TermIterator_skip_to(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17148   PyObject *resultobj = 0;
17149   Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
17150   std::string *arg2 = 0 ;
17151   void *argp1 = 0 ;
17152   int res1 = 0 ;
17153   int res2 = SWIG_OLDOBJ ;
17154   PyObject *swig_obj[2] ;
17155 
17156   if (!SWIG_Python_UnpackTuple(args,"_TermIterator_skip_to",2,2,swig_obj)) SWIG_fail;
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_skip_to" "', argument " "1"" of type '" "Xapian::TermIterator *""'");
17160   }
17161   arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
17162   {
17163     std::string *ptr = (std::string *)0;
17164     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
17165     if (!SWIG_IsOK(res2)) {
17166       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_TermIterator_skip_to" "', argument " "2"" of type '" "std::string const &""'");
17167     }
17168     if (!ptr) {
17169       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_TermIterator_skip_to" "', argument " "2"" of type '" "std::string const &""'");
17170     }
17171     arg2 = ptr;
17172   }
17173   {
17174     try {
17175       {
17176         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17177         (arg1)->skip_to((std::string const &)*arg2);
17178         SWIG_PYTHON_THREAD_END_ALLOW;
17179       }
17180     } catch (...) {
17181       Xapian::SetPythonException();
17182       SWIG_fail;
17183     }
17184   }
17185   resultobj = SWIG_Py_Void();
17186   if (SWIG_IsNewObj(res2)) delete arg2;
17187   return resultobj;
17188 fail:
17189   if (SWIG_IsNewObj(res2)) delete arg2;
17190   return NULL;
17191 }
17192 
17193 
_wrap__TermIterator___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17194 SWIGINTERN PyObject *_wrap__TermIterator___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17195   PyObject *resultobj = 0;
17196   Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
17197   void *argp1 = 0 ;
17198   int res1 = 0 ;
17199   PyObject *swig_obj[1] ;
17200   std::string result;
17201 
17202   if (!args) SWIG_fail;
17203   swig_obj[0] = args;
17204   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermIterator, 0 |  0 );
17205   if (!SWIG_IsOK(res1)) {
17206     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_TermIterator___str__" "', argument " "1"" of type '" "Xapian::TermIterator const *""'");
17207   }
17208   arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
17209   {
17210     try {
17211       {
17212         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17213         result = ((Xapian::TermIterator const *)arg1)->get_description();
17214         SWIG_PYTHON_THREAD_END_ALLOW;
17215       }
17216     } catch (...) {
17217       Xapian::SetPythonException();
17218       SWIG_fail;
17219     }
17220   }
17221   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
17222   return resultobj;
17223 fail:
17224   return NULL;
17225 }
17226 
17227 
_wrap__TermIterator___eq__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17228 SWIGINTERN PyObject *_wrap__TermIterator___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17229   PyObject *resultobj = 0;
17230   Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
17231   Xapian::TermIterator *arg2 = 0 ;
17232   void *argp1 = 0 ;
17233   int res1 = 0 ;
17234   void *argp2 = 0 ;
17235   int res2 = 0 ;
17236   PyObject *swig_obj[2] ;
17237   bool result;
17238 
17239   if (!SWIG_Python_UnpackTuple(args,"_TermIterator___eq__",2,2,swig_obj)) SWIG_fail;
17240   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermIterator, 0 |  0 );
17241   if (!SWIG_IsOK(res1)) {
17242     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_TermIterator___eq__" "', argument " "1"" of type '" "Xapian::TermIterator *""'");
17243   }
17244   arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
17245   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__TermIterator,  0  | 0);
17246   if (!SWIG_IsOK(res2)) {
17247     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_TermIterator___eq__" "', argument " "2"" of type '" "Xapian::TermIterator const &""'");
17248   }
17249   if (!argp2) {
17250     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_TermIterator___eq__" "', argument " "2"" of type '" "Xapian::TermIterator const &""'");
17251   }
17252   arg2 = reinterpret_cast< Xapian::TermIterator * >(argp2);
17253   {
17254     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17255     result = (bool)Xapian_TermIterator___eq__(arg1,(Xapian::TermIterator const &)*arg2);
17256     SWIG_PYTHON_THREAD_END_ALLOW;
17257   }
17258   resultobj = SWIG_From_bool(static_cast< bool >(result));
17259   return resultobj;
17260 fail:
17261   return NULL;
17262 }
17263 
17264 
_wrap__TermIterator___ne__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17265 SWIGINTERN PyObject *_wrap__TermIterator___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17266   PyObject *resultobj = 0;
17267   Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
17268   Xapian::TermIterator *arg2 = 0 ;
17269   void *argp1 = 0 ;
17270   int res1 = 0 ;
17271   void *argp2 = 0 ;
17272   int res2 = 0 ;
17273   PyObject *swig_obj[2] ;
17274   bool result;
17275 
17276   if (!SWIG_Python_UnpackTuple(args,"_TermIterator___ne__",2,2,swig_obj)) SWIG_fail;
17277   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermIterator, 0 |  0 );
17278   if (!SWIG_IsOK(res1)) {
17279     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_TermIterator___ne__" "', argument " "1"" of type '" "Xapian::TermIterator *""'");
17280   }
17281   arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
17282   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__TermIterator,  0  | 0);
17283   if (!SWIG_IsOK(res2)) {
17284     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_TermIterator___ne__" "', argument " "2"" of type '" "Xapian::TermIterator const &""'");
17285   }
17286   if (!argp2) {
17287     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_TermIterator___ne__" "', argument " "2"" of type '" "Xapian::TermIterator const &""'");
17288   }
17289   arg2 = reinterpret_cast< Xapian::TermIterator * >(argp2);
17290   {
17291     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17292     result = (bool)Xapian_TermIterator___ne__(arg1,(Xapian::TermIterator const &)*arg2);
17293     SWIG_PYTHON_THREAD_END_ALLOW;
17294   }
17295   resultobj = SWIG_From_bool(static_cast< bool >(result));
17296   return resultobj;
17297 fail:
17298   return NULL;
17299 }
17300 
17301 
_wrap__TermIterator_equals(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17302 SWIGINTERN PyObject *_wrap__TermIterator_equals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17303   PyObject *resultobj = 0;
17304   Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
17305   Xapian::TermIterator *arg2 = 0 ;
17306   void *argp1 = 0 ;
17307   int res1 = 0 ;
17308   void *argp2 = 0 ;
17309   int res2 = 0 ;
17310   PyObject *swig_obj[2] ;
17311   bool result;
17312 
17313   if (!SWIG_Python_UnpackTuple(args,"_TermIterator_equals",2,2,swig_obj)) SWIG_fail;
17314   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermIterator, 0 |  0 );
17315   if (!SWIG_IsOK(res1)) {
17316     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_TermIterator_equals" "', argument " "1"" of type '" "Xapian::TermIterator const *""'");
17317   }
17318   arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
17319   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__TermIterator,  0  | 0);
17320   if (!SWIG_IsOK(res2)) {
17321     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_TermIterator_equals" "', argument " "2"" of type '" "Xapian::TermIterator const &""'");
17322   }
17323   if (!argp2) {
17324     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_TermIterator_equals" "', argument " "2"" of type '" "Xapian::TermIterator const &""'");
17325   }
17326   arg2 = reinterpret_cast< Xapian::TermIterator * >(argp2);
17327   {
17328     try {
17329       {
17330         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17331         result = (bool)Xapian_TermIterator_equals((Xapian::TermIterator const *)arg1,(Xapian::TermIterator const &)*arg2);
17332         SWIG_PYTHON_THREAD_END_ALLOW;
17333       }
17334     } catch (...) {
17335       Xapian::SetPythonException();
17336       SWIG_fail;
17337     }
17338   }
17339   resultobj = SWIG_From_bool(static_cast< bool >(result));
17340   return resultobj;
17341 fail:
17342   return NULL;
17343 }
17344 
17345 
_wrap__TermIterator_get_term(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17346 SWIGINTERN PyObject *_wrap__TermIterator_get_term(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17347   PyObject *resultobj = 0;
17348   Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
17349   void *argp1 = 0 ;
17350   int res1 = 0 ;
17351   PyObject *swig_obj[1] ;
17352   std::string result;
17353 
17354   if (!args) SWIG_fail;
17355   swig_obj[0] = args;
17356   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermIterator, 0 |  0 );
17357   if (!SWIG_IsOK(res1)) {
17358     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_TermIterator_get_term" "', argument " "1"" of type '" "Xapian::TermIterator const *""'");
17359   }
17360   arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
17361   {
17362     try {
17363       {
17364         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17365         result = Xapian_TermIterator_get_term((Xapian::TermIterator const *)arg1);
17366         SWIG_PYTHON_THREAD_END_ALLOW;
17367       }
17368     } catch (...) {
17369       Xapian::SetPythonException();
17370       SWIG_fail;
17371     }
17372   }
17373   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
17374   return resultobj;
17375 fail:
17376   return NULL;
17377 }
17378 
17379 
_wrap__TermIterator_next(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17380 SWIGINTERN PyObject *_wrap__TermIterator_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17381   PyObject *resultobj = 0;
17382   Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
17383   void *argp1 = 0 ;
17384   int res1 = 0 ;
17385   PyObject *swig_obj[1] ;
17386 
17387   if (!args) SWIG_fail;
17388   swig_obj[0] = args;
17389   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermIterator, 0 |  0 );
17390   if (!SWIG_IsOK(res1)) {
17391     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_TermIterator_next" "', argument " "1"" of type '" "Xapian::TermIterator *""'");
17392   }
17393   arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
17394   {
17395     try {
17396       {
17397         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17398         Xapian_TermIterator_next(arg1);
17399         SWIG_PYTHON_THREAD_END_ALLOW;
17400       }
17401     } catch (...) {
17402       Xapian::SetPythonException();
17403       SWIG_fail;
17404     }
17405   }
17406   resultobj = SWIG_Py_Void();
17407   return resultobj;
17408 fail:
17409   return NULL;
17410 }
17411 
17412 
_TermIterator_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17413 SWIGINTERN PyObject *_TermIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17414   PyObject *obj;
17415   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
17416   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__TermIterator, SWIG_NewClientData(obj));
17417   return SWIG_Py_Void();
17418 }
17419 
_TermIterator_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17420 SWIGINTERN PyObject *_TermIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17421   return SWIG_Python_InitShadowInstance(args);
17422 }
17423 
_wrap___eq____SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)17424 SWIGINTERN PyObject *_wrap___eq____SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17425   PyObject *resultobj = 0;
17426   Xapian::TermIterator *arg1 = 0 ;
17427   Xapian::TermIterator *arg2 = 0 ;
17428   void *argp1 = 0 ;
17429   int res1 = 0 ;
17430   void *argp2 = 0 ;
17431   int res2 = 0 ;
17432   bool result;
17433 
17434   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17435   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__TermIterator,  0  | 0);
17436   if (!SWIG_IsOK(res1)) {
17437     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__eq__" "', argument " "1"" of type '" "Xapian::TermIterator const &""'");
17438   }
17439   if (!argp1) {
17440     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__eq__" "', argument " "1"" of type '" "Xapian::TermIterator const &""'");
17441   }
17442   arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
17443   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__TermIterator,  0  | 0);
17444   if (!SWIG_IsOK(res2)) {
17445     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__eq__" "', argument " "2"" of type '" "Xapian::TermIterator const &""'");
17446   }
17447   if (!argp2) {
17448     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__eq__" "', argument " "2"" of type '" "Xapian::TermIterator const &""'");
17449   }
17450   arg2 = reinterpret_cast< Xapian::TermIterator * >(argp2);
17451   {
17452     try {
17453       {
17454         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17455         result = (bool)Xapian::operator ==((Xapian::TermIterator const &)*arg1,(Xapian::TermIterator const &)*arg2);
17456         SWIG_PYTHON_THREAD_END_ALLOW;
17457       }
17458     } catch (...) {
17459       Xapian::SetPythonException();
17460       SWIG_fail;
17461     }
17462   }
17463   resultobj = SWIG_From_bool(static_cast< bool >(result));
17464   return resultobj;
17465 fail:
17466   return NULL;
17467 }
17468 
17469 
_wrap___ne____SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)17470 SWIGINTERN PyObject *_wrap___ne____SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17471   PyObject *resultobj = 0;
17472   Xapian::TermIterator *arg1 = 0 ;
17473   Xapian::TermIterator *arg2 = 0 ;
17474   void *argp1 = 0 ;
17475   int res1 = 0 ;
17476   void *argp2 = 0 ;
17477   int res2 = 0 ;
17478   bool result;
17479 
17480   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17481   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__TermIterator,  0  | 0);
17482   if (!SWIG_IsOK(res1)) {
17483     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__ne__" "', argument " "1"" of type '" "Xapian::TermIterator const &""'");
17484   }
17485   if (!argp1) {
17486     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__ne__" "', argument " "1"" of type '" "Xapian::TermIterator const &""'");
17487   }
17488   arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
17489   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__TermIterator,  0  | 0);
17490   if (!SWIG_IsOK(res2)) {
17491     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__ne__" "', argument " "2"" of type '" "Xapian::TermIterator const &""'");
17492   }
17493   if (!argp2) {
17494     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__ne__" "', argument " "2"" of type '" "Xapian::TermIterator const &""'");
17495   }
17496   arg2 = reinterpret_cast< Xapian::TermIterator * >(argp2);
17497   {
17498     try {
17499       {
17500         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17501         result = (bool)Xapian::operator !=((Xapian::TermIterator const &)*arg1,(Xapian::TermIterator const &)*arg2);
17502         SWIG_PYTHON_THREAD_END_ALLOW;
17503       }
17504     } catch (...) {
17505       Xapian::SetPythonException();
17506       SWIG_fail;
17507     }
17508   }
17509   resultobj = SWIG_From_bool(static_cast< bool >(result));
17510   return resultobj;
17511 fail:
17512   return NULL;
17513 }
17514 
17515 
_wrap_new__ValueIterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17516 SWIGINTERN PyObject *_wrap_new__ValueIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17517   PyObject *resultobj = 0;
17518   Xapian::ValueIterator *result = 0 ;
17519 
17520   if (!SWIG_Python_UnpackTuple(args,"new__ValueIterator",0,0,0)) SWIG_fail;
17521   {
17522     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17523     result = (Xapian::ValueIterator *)new Xapian::ValueIterator();
17524     SWIG_PYTHON_THREAD_END_ALLOW;
17525   }
17526   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ValueIterator, SWIG_POINTER_NEW |  0 );
17527   return resultobj;
17528 fail:
17529   return NULL;
17530 }
17531 
17532 
_wrap_delete__ValueIterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17533 SWIGINTERN PyObject *_wrap_delete__ValueIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17534   PyObject *resultobj = 0;
17535   Xapian::ValueIterator *arg1 = (Xapian::ValueIterator *) 0 ;
17536   void *argp1 = 0 ;
17537   int res1 = 0 ;
17538   PyObject *swig_obj[1] ;
17539 
17540   if (!args) SWIG_fail;
17541   swig_obj[0] = args;
17542   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueIterator, SWIG_POINTER_DISOWN |  0 );
17543   if (!SWIG_IsOK(res1)) {
17544     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete__ValueIterator" "', argument " "1"" of type '" "Xapian::ValueIterator *""'");
17545   }
17546   arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
17547   {
17548     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17549     delete arg1;
17550     SWIG_PYTHON_THREAD_END_ALLOW;
17551   }
17552   resultobj = SWIG_Py_Void();
17553   return resultobj;
17554 fail:
17555   return NULL;
17556 }
17557 
17558 
_wrap__ValueIterator_get_docid(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17559 SWIGINTERN PyObject *_wrap__ValueIterator_get_docid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17560   PyObject *resultobj = 0;
17561   Xapian::ValueIterator *arg1 = (Xapian::ValueIterator *) 0 ;
17562   void *argp1 = 0 ;
17563   int res1 = 0 ;
17564   PyObject *swig_obj[1] ;
17565   Xapian::docid result;
17566 
17567   if (!args) SWIG_fail;
17568   swig_obj[0] = args;
17569   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueIterator, 0 |  0 );
17570   if (!SWIG_IsOK(res1)) {
17571     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_ValueIterator_get_docid" "', argument " "1"" of type '" "Xapian::ValueIterator const *""'");
17572   }
17573   arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
17574   {
17575     try {
17576       {
17577         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17578         result = (Xapian::docid)((Xapian::ValueIterator const *)arg1)->get_docid();
17579         SWIG_PYTHON_THREAD_END_ALLOW;
17580       }
17581     } catch (...) {
17582       Xapian::SetPythonException();
17583       SWIG_fail;
17584     }
17585   }
17586   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
17587   return resultobj;
17588 fail:
17589   return NULL;
17590 }
17591 
17592 
_wrap__ValueIterator_get_valueno(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17593 SWIGINTERN PyObject *_wrap__ValueIterator_get_valueno(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17594   PyObject *resultobj = 0;
17595   Xapian::ValueIterator *arg1 = (Xapian::ValueIterator *) 0 ;
17596   void *argp1 = 0 ;
17597   int res1 = 0 ;
17598   PyObject *swig_obj[1] ;
17599   Xapian::valueno result;
17600 
17601   if (!args) SWIG_fail;
17602   swig_obj[0] = args;
17603   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueIterator, 0 |  0 );
17604   if (!SWIG_IsOK(res1)) {
17605     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_ValueIterator_get_valueno" "', argument " "1"" of type '" "Xapian::ValueIterator const *""'");
17606   }
17607   arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
17608   {
17609     try {
17610       {
17611         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17612         result = (Xapian::valueno)((Xapian::ValueIterator const *)arg1)->get_valueno();
17613         SWIG_PYTHON_THREAD_END_ALLOW;
17614       }
17615     } catch (...) {
17616       Xapian::SetPythonException();
17617       SWIG_fail;
17618     }
17619   }
17620   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
17621   return resultobj;
17622 fail:
17623   return NULL;
17624 }
17625 
17626 
_wrap__ValueIterator_skip_to(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17627 SWIGINTERN PyObject *_wrap__ValueIterator_skip_to(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17628   PyObject *resultobj = 0;
17629   Xapian::ValueIterator *arg1 = (Xapian::ValueIterator *) 0 ;
17630   Xapian::docid arg2 ;
17631   void *argp1 = 0 ;
17632   int res1 = 0 ;
17633   unsigned int val2 ;
17634   int ecode2 = 0 ;
17635   PyObject *swig_obj[2] ;
17636 
17637   if (!SWIG_Python_UnpackTuple(args,"_ValueIterator_skip_to",2,2,swig_obj)) SWIG_fail;
17638   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueIterator, 0 |  0 );
17639   if (!SWIG_IsOK(res1)) {
17640     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_ValueIterator_skip_to" "', argument " "1"" of type '" "Xapian::ValueIterator *""'");
17641   }
17642   arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
17643   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
17644   if (!SWIG_IsOK(ecode2)) {
17645     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_ValueIterator_skip_to" "', argument " "2"" of type '" "Xapian::docid""'");
17646   }
17647   arg2 = static_cast< Xapian::docid >(val2);
17648   {
17649     try {
17650       {
17651         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17652         (arg1)->skip_to(arg2);
17653         SWIG_PYTHON_THREAD_END_ALLOW;
17654       }
17655     } catch (...) {
17656       Xapian::SetPythonException();
17657       SWIG_fail;
17658     }
17659   }
17660   resultobj = SWIG_Py_Void();
17661   return resultobj;
17662 fail:
17663   return NULL;
17664 }
17665 
17666 
_wrap__ValueIterator_check(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17667 SWIGINTERN PyObject *_wrap__ValueIterator_check(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17668   PyObject *resultobj = 0;
17669   Xapian::ValueIterator *arg1 = (Xapian::ValueIterator *) 0 ;
17670   Xapian::docid arg2 ;
17671   void *argp1 = 0 ;
17672   int res1 = 0 ;
17673   unsigned int val2 ;
17674   int ecode2 = 0 ;
17675   PyObject *swig_obj[2] ;
17676   bool result;
17677 
17678   if (!SWIG_Python_UnpackTuple(args,"_ValueIterator_check",2,2,swig_obj)) SWIG_fail;
17679   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueIterator, 0 |  0 );
17680   if (!SWIG_IsOK(res1)) {
17681     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_ValueIterator_check" "', argument " "1"" of type '" "Xapian::ValueIterator *""'");
17682   }
17683   arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
17684   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
17685   if (!SWIG_IsOK(ecode2)) {
17686     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_ValueIterator_check" "', argument " "2"" of type '" "Xapian::docid""'");
17687   }
17688   arg2 = static_cast< Xapian::docid >(val2);
17689   {
17690     try {
17691       {
17692         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17693         result = (bool)(arg1)->check(arg2);
17694         SWIG_PYTHON_THREAD_END_ALLOW;
17695       }
17696     } catch (...) {
17697       Xapian::SetPythonException();
17698       SWIG_fail;
17699     }
17700   }
17701   resultobj = SWIG_From_bool(static_cast< bool >(result));
17702   return resultobj;
17703 fail:
17704   return NULL;
17705 }
17706 
17707 
_wrap__ValueIterator___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17708 SWIGINTERN PyObject *_wrap__ValueIterator___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17709   PyObject *resultobj = 0;
17710   Xapian::ValueIterator *arg1 = (Xapian::ValueIterator *) 0 ;
17711   void *argp1 = 0 ;
17712   int res1 = 0 ;
17713   PyObject *swig_obj[1] ;
17714   std::string result;
17715 
17716   if (!args) SWIG_fail;
17717   swig_obj[0] = args;
17718   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueIterator, 0 |  0 );
17719   if (!SWIG_IsOK(res1)) {
17720     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_ValueIterator___str__" "', argument " "1"" of type '" "Xapian::ValueIterator const *""'");
17721   }
17722   arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
17723   {
17724     try {
17725       {
17726         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17727         result = ((Xapian::ValueIterator const *)arg1)->get_description();
17728         SWIG_PYTHON_THREAD_END_ALLOW;
17729       }
17730     } catch (...) {
17731       Xapian::SetPythonException();
17732       SWIG_fail;
17733     }
17734   }
17735   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
17736   return resultobj;
17737 fail:
17738   return NULL;
17739 }
17740 
17741 
_wrap__ValueIterator___eq__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17742 SWIGINTERN PyObject *_wrap__ValueIterator___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17743   PyObject *resultobj = 0;
17744   Xapian::ValueIterator *arg1 = (Xapian::ValueIterator *) 0 ;
17745   Xapian::ValueIterator *arg2 = 0 ;
17746   void *argp1 = 0 ;
17747   int res1 = 0 ;
17748   void *argp2 = 0 ;
17749   int res2 = 0 ;
17750   PyObject *swig_obj[2] ;
17751   bool result;
17752 
17753   if (!SWIG_Python_UnpackTuple(args,"_ValueIterator___eq__",2,2,swig_obj)) SWIG_fail;
17754   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueIterator, 0 |  0 );
17755   if (!SWIG_IsOK(res1)) {
17756     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_ValueIterator___eq__" "', argument " "1"" of type '" "Xapian::ValueIterator *""'");
17757   }
17758   arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
17759   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__ValueIterator,  0  | 0);
17760   if (!SWIG_IsOK(res2)) {
17761     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_ValueIterator___eq__" "', argument " "2"" of type '" "Xapian::ValueIterator const &""'");
17762   }
17763   if (!argp2) {
17764     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_ValueIterator___eq__" "', argument " "2"" of type '" "Xapian::ValueIterator const &""'");
17765   }
17766   arg2 = reinterpret_cast< Xapian::ValueIterator * >(argp2);
17767   {
17768     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17769     result = (bool)Xapian_ValueIterator___eq__(arg1,(Xapian::ValueIterator const &)*arg2);
17770     SWIG_PYTHON_THREAD_END_ALLOW;
17771   }
17772   resultobj = SWIG_From_bool(static_cast< bool >(result));
17773   return resultobj;
17774 fail:
17775   return NULL;
17776 }
17777 
17778 
_wrap__ValueIterator___ne__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17779 SWIGINTERN PyObject *_wrap__ValueIterator___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17780   PyObject *resultobj = 0;
17781   Xapian::ValueIterator *arg1 = (Xapian::ValueIterator *) 0 ;
17782   Xapian::ValueIterator *arg2 = 0 ;
17783   void *argp1 = 0 ;
17784   int res1 = 0 ;
17785   void *argp2 = 0 ;
17786   int res2 = 0 ;
17787   PyObject *swig_obj[2] ;
17788   bool result;
17789 
17790   if (!SWIG_Python_UnpackTuple(args,"_ValueIterator___ne__",2,2,swig_obj)) SWIG_fail;
17791   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueIterator, 0 |  0 );
17792   if (!SWIG_IsOK(res1)) {
17793     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_ValueIterator___ne__" "', argument " "1"" of type '" "Xapian::ValueIterator *""'");
17794   }
17795   arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
17796   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__ValueIterator,  0  | 0);
17797   if (!SWIG_IsOK(res2)) {
17798     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_ValueIterator___ne__" "', argument " "2"" of type '" "Xapian::ValueIterator const &""'");
17799   }
17800   if (!argp2) {
17801     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_ValueIterator___ne__" "', argument " "2"" of type '" "Xapian::ValueIterator const &""'");
17802   }
17803   arg2 = reinterpret_cast< Xapian::ValueIterator * >(argp2);
17804   {
17805     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17806     result = (bool)Xapian_ValueIterator___ne__(arg1,(Xapian::ValueIterator const &)*arg2);
17807     SWIG_PYTHON_THREAD_END_ALLOW;
17808   }
17809   resultobj = SWIG_From_bool(static_cast< bool >(result));
17810   return resultobj;
17811 fail:
17812   return NULL;
17813 }
17814 
17815 
_wrap__ValueIterator_equals(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17816 SWIGINTERN PyObject *_wrap__ValueIterator_equals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17817   PyObject *resultobj = 0;
17818   Xapian::ValueIterator *arg1 = (Xapian::ValueIterator *) 0 ;
17819   Xapian::ValueIterator *arg2 = 0 ;
17820   void *argp1 = 0 ;
17821   int res1 = 0 ;
17822   void *argp2 = 0 ;
17823   int res2 = 0 ;
17824   PyObject *swig_obj[2] ;
17825   bool result;
17826 
17827   if (!SWIG_Python_UnpackTuple(args,"_ValueIterator_equals",2,2,swig_obj)) SWIG_fail;
17828   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueIterator, 0 |  0 );
17829   if (!SWIG_IsOK(res1)) {
17830     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_ValueIterator_equals" "', argument " "1"" of type '" "Xapian::ValueIterator const *""'");
17831   }
17832   arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
17833   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__ValueIterator,  0  | 0);
17834   if (!SWIG_IsOK(res2)) {
17835     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_ValueIterator_equals" "', argument " "2"" of type '" "Xapian::ValueIterator const &""'");
17836   }
17837   if (!argp2) {
17838     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_ValueIterator_equals" "', argument " "2"" of type '" "Xapian::ValueIterator const &""'");
17839   }
17840   arg2 = reinterpret_cast< Xapian::ValueIterator * >(argp2);
17841   {
17842     try {
17843       {
17844         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17845         result = (bool)Xapian_ValueIterator_equals((Xapian::ValueIterator const *)arg1,(Xapian::ValueIterator const &)*arg2);
17846         SWIG_PYTHON_THREAD_END_ALLOW;
17847       }
17848     } catch (...) {
17849       Xapian::SetPythonException();
17850       SWIG_fail;
17851     }
17852   }
17853   resultobj = SWIG_From_bool(static_cast< bool >(result));
17854   return resultobj;
17855 fail:
17856   return NULL;
17857 }
17858 
17859 
_wrap__ValueIterator_get_value(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17860 SWIGINTERN PyObject *_wrap__ValueIterator_get_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17861   PyObject *resultobj = 0;
17862   Xapian::ValueIterator *arg1 = (Xapian::ValueIterator *) 0 ;
17863   void *argp1 = 0 ;
17864   int res1 = 0 ;
17865   PyObject *swig_obj[1] ;
17866   std::string result;
17867 
17868   if (!args) SWIG_fail;
17869   swig_obj[0] = args;
17870   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueIterator, 0 |  0 );
17871   if (!SWIG_IsOK(res1)) {
17872     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_ValueIterator_get_value" "', argument " "1"" of type '" "Xapian::ValueIterator const *""'");
17873   }
17874   arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
17875   {
17876     try {
17877       {
17878         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17879         result = Xapian_ValueIterator_get_value((Xapian::ValueIterator const *)arg1);
17880         SWIG_PYTHON_THREAD_END_ALLOW;
17881       }
17882     } catch (...) {
17883       Xapian::SetPythonException();
17884       SWIG_fail;
17885     }
17886   }
17887   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
17888   return resultobj;
17889 fail:
17890   return NULL;
17891 }
17892 
17893 
_wrap__ValueIterator_next(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17894 SWIGINTERN PyObject *_wrap__ValueIterator_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17895   PyObject *resultobj = 0;
17896   Xapian::ValueIterator *arg1 = (Xapian::ValueIterator *) 0 ;
17897   void *argp1 = 0 ;
17898   int res1 = 0 ;
17899   PyObject *swig_obj[1] ;
17900 
17901   if (!args) SWIG_fail;
17902   swig_obj[0] = args;
17903   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueIterator, 0 |  0 );
17904   if (!SWIG_IsOK(res1)) {
17905     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_ValueIterator_next" "', argument " "1"" of type '" "Xapian::ValueIterator *""'");
17906   }
17907   arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
17908   {
17909     try {
17910       {
17911         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17912         Xapian_ValueIterator_next(arg1);
17913         SWIG_PYTHON_THREAD_END_ALLOW;
17914       }
17915     } catch (...) {
17916       Xapian::SetPythonException();
17917       SWIG_fail;
17918     }
17919   }
17920   resultobj = SWIG_Py_Void();
17921   return resultobj;
17922 fail:
17923   return NULL;
17924 }
17925 
17926 
_ValueIterator_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17927 SWIGINTERN PyObject *_ValueIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17928   PyObject *obj;
17929   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
17930   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__ValueIterator, SWIG_NewClientData(obj));
17931   return SWIG_Py_Void();
17932 }
17933 
_ValueIterator_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17934 SWIGINTERN PyObject *_ValueIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17935   return SWIG_Python_InitShadowInstance(args);
17936 }
17937 
_wrap___eq____SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)17938 SWIGINTERN PyObject *_wrap___eq____SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17939   PyObject *resultobj = 0;
17940   Xapian::ValueIterator *arg1 = 0 ;
17941   Xapian::ValueIterator *arg2 = 0 ;
17942   void *argp1 = 0 ;
17943   int res1 = 0 ;
17944   void *argp2 = 0 ;
17945   int res2 = 0 ;
17946   bool result;
17947 
17948   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17949   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__ValueIterator,  0  | 0);
17950   if (!SWIG_IsOK(res1)) {
17951     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__eq__" "', argument " "1"" of type '" "Xapian::ValueIterator const &""'");
17952   }
17953   if (!argp1) {
17954     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__eq__" "', argument " "1"" of type '" "Xapian::ValueIterator const &""'");
17955   }
17956   arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
17957   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__ValueIterator,  0  | 0);
17958   if (!SWIG_IsOK(res2)) {
17959     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__eq__" "', argument " "2"" of type '" "Xapian::ValueIterator const &""'");
17960   }
17961   if (!argp2) {
17962     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__eq__" "', argument " "2"" of type '" "Xapian::ValueIterator const &""'");
17963   }
17964   arg2 = reinterpret_cast< Xapian::ValueIterator * >(argp2);
17965   {
17966     try {
17967       {
17968         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17969         result = (bool)Xapian::operator ==((Xapian::ValueIterator const &)*arg1,(Xapian::ValueIterator const &)*arg2);
17970         SWIG_PYTHON_THREAD_END_ALLOW;
17971       }
17972     } catch (...) {
17973       Xapian::SetPythonException();
17974       SWIG_fail;
17975     }
17976   }
17977   resultobj = SWIG_From_bool(static_cast< bool >(result));
17978   return resultobj;
17979 fail:
17980   return NULL;
17981 }
17982 
17983 
_wrap___ne____SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)17984 SWIGINTERN PyObject *_wrap___ne____SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17985   PyObject *resultobj = 0;
17986   Xapian::ValueIterator *arg1 = 0 ;
17987   Xapian::ValueIterator *arg2 = 0 ;
17988   void *argp1 = 0 ;
17989   int res1 = 0 ;
17990   void *argp2 = 0 ;
17991   int res2 = 0 ;
17992   bool result;
17993 
17994   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17995   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__ValueIterator,  0  | 0);
17996   if (!SWIG_IsOK(res1)) {
17997     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__ne__" "', argument " "1"" of type '" "Xapian::ValueIterator const &""'");
17998   }
17999   if (!argp1) {
18000     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__ne__" "', argument " "1"" of type '" "Xapian::ValueIterator const &""'");
18001   }
18002   arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
18003   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__ValueIterator,  0  | 0);
18004   if (!SWIG_IsOK(res2)) {
18005     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__ne__" "', argument " "2"" of type '" "Xapian::ValueIterator const &""'");
18006   }
18007   if (!argp2) {
18008     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__ne__" "', argument " "2"" of type '" "Xapian::ValueIterator const &""'");
18009   }
18010   arg2 = reinterpret_cast< Xapian::ValueIterator * >(argp2);
18011   {
18012     try {
18013       {
18014         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
18015         result = (bool)Xapian::operator !=((Xapian::ValueIterator const &)*arg1,(Xapian::ValueIterator const &)*arg2);
18016         SWIG_PYTHON_THREAD_END_ALLOW;
18017       }
18018     } catch (...) {
18019       Xapian::SetPythonException();
18020       SWIG_fail;
18021     }
18022   }
18023   resultobj = SWIG_From_bool(static_cast< bool >(result));
18024   return resultobj;
18025 fail:
18026   return NULL;
18027 }
18028 
18029 
_wrap_new_Document(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18030 SWIGINTERN PyObject *_wrap_new_Document(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18031   PyObject *resultobj = 0;
18032   Xapian::Document *result = 0 ;
18033 
18034   if (!SWIG_Python_UnpackTuple(args,"new_Document",0,0,0)) SWIG_fail;
18035   {
18036     try {
18037       {
18038         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
18039         result = (Xapian::Document *)new Xapian::Document();
18040         SWIG_PYTHON_THREAD_END_ALLOW;
18041       }
18042     } catch (...) {
18043       Xapian::SetPythonException();
18044       SWIG_fail;
18045     }
18046   }
18047   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Document, SWIG_POINTER_NEW |  0 );
18048   return resultobj;
18049 fail:
18050   return NULL;
18051 }
18052 
18053 
_wrap_delete_Document(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18054 SWIGINTERN PyObject *_wrap_delete_Document(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18055   PyObject *resultobj = 0;
18056   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
18057   void *argp1 = 0 ;
18058   int res1 = 0 ;
18059   PyObject *swig_obj[1] ;
18060 
18061   if (!args) SWIG_fail;
18062   swig_obj[0] = args;
18063   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, SWIG_POINTER_DISOWN |  0 );
18064   if (!SWIG_IsOK(res1)) {
18065     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Document" "', argument " "1"" of type '" "Xapian::Document *""'");
18066   }
18067   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
18068   {
18069     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
18070     delete arg1;
18071     SWIG_PYTHON_THREAD_END_ALLOW;
18072   }
18073   resultobj = SWIG_Py_Void();
18074   return resultobj;
18075 fail:
18076   return NULL;
18077 }
18078 
18079 
_wrap_Document_get_value(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18080 SWIGINTERN PyObject *_wrap_Document_get_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18081   PyObject *resultobj = 0;
18082   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
18083   Xapian::valueno arg2 ;
18084   void *argp1 = 0 ;
18085   int res1 = 0 ;
18086   unsigned int val2 ;
18087   int ecode2 = 0 ;
18088   PyObject *swig_obj[2] ;
18089   std::string result;
18090 
18091   if (!SWIG_Python_UnpackTuple(args,"Document_get_value",2,2,swig_obj)) SWIG_fail;
18092   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
18093   if (!SWIG_IsOK(res1)) {
18094     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_get_value" "', argument " "1"" of type '" "Xapian::Document const *""'");
18095   }
18096   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
18097   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
18098   if (!SWIG_IsOK(ecode2)) {
18099     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Document_get_value" "', argument " "2"" of type '" "Xapian::valueno""'");
18100   }
18101   arg2 = static_cast< Xapian::valueno >(val2);
18102   {
18103     try {
18104       {
18105         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
18106         result = ((Xapian::Document const *)arg1)->get_value(arg2);
18107         SWIG_PYTHON_THREAD_END_ALLOW;
18108       }
18109     } catch (...) {
18110       Xapian::SetPythonException();
18111       SWIG_fail;
18112     }
18113   }
18114   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
18115   return resultobj;
18116 fail:
18117   return NULL;
18118 }
18119 
18120 
_wrap_Document_add_value(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18121 SWIGINTERN PyObject *_wrap_Document_add_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18122   PyObject *resultobj = 0;
18123   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
18124   Xapian::valueno arg2 ;
18125   std::string *arg3 = 0 ;
18126   void *argp1 = 0 ;
18127   int res1 = 0 ;
18128   unsigned int val2 ;
18129   int ecode2 = 0 ;
18130   int res3 = SWIG_OLDOBJ ;
18131   PyObject *swig_obj[3] ;
18132 
18133   if (!SWIG_Python_UnpackTuple(args,"Document_add_value",3,3,swig_obj)) SWIG_fail;
18134   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
18135   if (!SWIG_IsOK(res1)) {
18136     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_add_value" "', argument " "1"" of type '" "Xapian::Document *""'");
18137   }
18138   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
18139   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
18140   if (!SWIG_IsOK(ecode2)) {
18141     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Document_add_value" "', argument " "2"" of type '" "Xapian::valueno""'");
18142   }
18143   arg2 = static_cast< Xapian::valueno >(val2);
18144   {
18145     std::string *ptr = (std::string *)0;
18146     res3 = XapianSWIG_anystring_as_ptr(swig_obj[2], &ptr);
18147     if (!SWIG_IsOK(res3)) {
18148       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Document_add_value" "', argument " "3"" of type '" "std::string const &""'");
18149     }
18150     if (!ptr) {
18151       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Document_add_value" "', argument " "3"" of type '" "std::string const &""'");
18152     }
18153     arg3 = ptr;
18154   }
18155   {
18156     try {
18157       {
18158         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
18159         (arg1)->add_value(arg2,(std::string const &)*arg3);
18160         SWIG_PYTHON_THREAD_END_ALLOW;
18161       }
18162     } catch (...) {
18163       Xapian::SetPythonException();
18164       SWIG_fail;
18165     }
18166   }
18167   resultobj = SWIG_Py_Void();
18168   if (SWIG_IsNewObj(res3)) delete arg3;
18169   return resultobj;
18170 fail:
18171   if (SWIG_IsNewObj(res3)) delete arg3;
18172   return NULL;
18173 }
18174 
18175 
_wrap_Document_remove_value(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18176 SWIGINTERN PyObject *_wrap_Document_remove_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18177   PyObject *resultobj = 0;
18178   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
18179   Xapian::valueno arg2 ;
18180   void *argp1 = 0 ;
18181   int res1 = 0 ;
18182   unsigned int val2 ;
18183   int ecode2 = 0 ;
18184   PyObject *swig_obj[2] ;
18185 
18186   if (!SWIG_Python_UnpackTuple(args,"Document_remove_value",2,2,swig_obj)) SWIG_fail;
18187   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
18188   if (!SWIG_IsOK(res1)) {
18189     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_remove_value" "', argument " "1"" of type '" "Xapian::Document *""'");
18190   }
18191   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
18192   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
18193   if (!SWIG_IsOK(ecode2)) {
18194     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Document_remove_value" "', argument " "2"" of type '" "Xapian::valueno""'");
18195   }
18196   arg2 = static_cast< Xapian::valueno >(val2);
18197   {
18198     try {
18199       {
18200         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
18201         (arg1)->remove_value(arg2);
18202         SWIG_PYTHON_THREAD_END_ALLOW;
18203       }
18204     } catch (...) {
18205       Xapian::SetPythonException();
18206       SWIG_fail;
18207     }
18208   }
18209   resultobj = SWIG_Py_Void();
18210   return resultobj;
18211 fail:
18212   return NULL;
18213 }
18214 
18215 
_wrap_Document_clear_values(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18216 SWIGINTERN PyObject *_wrap_Document_clear_values(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18217   PyObject *resultobj = 0;
18218   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
18219   void *argp1 = 0 ;
18220   int res1 = 0 ;
18221   PyObject *swig_obj[1] ;
18222 
18223   if (!args) SWIG_fail;
18224   swig_obj[0] = args;
18225   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
18226   if (!SWIG_IsOK(res1)) {
18227     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_clear_values" "', argument " "1"" of type '" "Xapian::Document *""'");
18228   }
18229   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
18230   {
18231     try {
18232       {
18233         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
18234         (arg1)->clear_values();
18235         SWIG_PYTHON_THREAD_END_ALLOW;
18236       }
18237     } catch (...) {
18238       Xapian::SetPythonException();
18239       SWIG_fail;
18240     }
18241   }
18242   resultobj = SWIG_Py_Void();
18243   return resultobj;
18244 fail:
18245   return NULL;
18246 }
18247 
18248 
_wrap_Document_get_data(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18249 SWIGINTERN PyObject *_wrap_Document_get_data(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18250   PyObject *resultobj = 0;
18251   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
18252   void *argp1 = 0 ;
18253   int res1 = 0 ;
18254   PyObject *swig_obj[1] ;
18255   std::string result;
18256 
18257   if (!args) SWIG_fail;
18258   swig_obj[0] = args;
18259   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
18260   if (!SWIG_IsOK(res1)) {
18261     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_get_data" "', argument " "1"" of type '" "Xapian::Document const *""'");
18262   }
18263   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
18264   {
18265     try {
18266       {
18267         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
18268         result = ((Xapian::Document const *)arg1)->get_data();
18269         SWIG_PYTHON_THREAD_END_ALLOW;
18270       }
18271     } catch (...) {
18272       Xapian::SetPythonException();
18273       SWIG_fail;
18274     }
18275   }
18276   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
18277   return resultobj;
18278 fail:
18279   return NULL;
18280 }
18281 
18282 
_wrap_Document_set_data(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18283 SWIGINTERN PyObject *_wrap_Document_set_data(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18284   PyObject *resultobj = 0;
18285   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
18286   std::string *arg2 = 0 ;
18287   void *argp1 = 0 ;
18288   int res1 = 0 ;
18289   int res2 = SWIG_OLDOBJ ;
18290   PyObject *swig_obj[2] ;
18291 
18292   if (!SWIG_Python_UnpackTuple(args,"Document_set_data",2,2,swig_obj)) SWIG_fail;
18293   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
18294   if (!SWIG_IsOK(res1)) {
18295     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_set_data" "', argument " "1"" of type '" "Xapian::Document *""'");
18296   }
18297   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
18298   {
18299     std::string *ptr = (std::string *)0;
18300     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
18301     if (!SWIG_IsOK(res2)) {
18302       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Document_set_data" "', argument " "2"" of type '" "std::string const &""'");
18303     }
18304     if (!ptr) {
18305       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Document_set_data" "', argument " "2"" of type '" "std::string const &""'");
18306     }
18307     arg2 = ptr;
18308   }
18309   {
18310     try {
18311       {
18312         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
18313         (arg1)->set_data((std::string const &)*arg2);
18314         SWIG_PYTHON_THREAD_END_ALLOW;
18315       }
18316     } catch (...) {
18317       Xapian::SetPythonException();
18318       SWIG_fail;
18319     }
18320   }
18321   resultobj = SWIG_Py_Void();
18322   if (SWIG_IsNewObj(res2)) delete arg2;
18323   return resultobj;
18324 fail:
18325   if (SWIG_IsNewObj(res2)) delete arg2;
18326   return NULL;
18327 }
18328 
18329 
_wrap_Document_add_posting__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)18330 SWIGINTERN PyObject *_wrap_Document_add_posting__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
18331   PyObject *resultobj = 0;
18332   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
18333   std::string *arg2 = 0 ;
18334   Xapian::termpos arg3 ;
18335   Xapian::termcount arg4 ;
18336   void *argp1 = 0 ;
18337   int res1 = 0 ;
18338   int res2 = SWIG_OLDOBJ ;
18339   unsigned int val3 ;
18340   int ecode3 = 0 ;
18341   unsigned int val4 ;
18342   int ecode4 = 0 ;
18343 
18344   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
18345   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
18346   if (!SWIG_IsOK(res1)) {
18347     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_add_posting" "', argument " "1"" of type '" "Xapian::Document *""'");
18348   }
18349   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
18350   {
18351     std::string *ptr = (std::string *)0;
18352     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
18353     if (!SWIG_IsOK(res2)) {
18354       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Document_add_posting" "', argument " "2"" of type '" "std::string const &""'");
18355     }
18356     if (!ptr) {
18357       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Document_add_posting" "', argument " "2"" of type '" "std::string const &""'");
18358     }
18359     arg2 = ptr;
18360   }
18361   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
18362   if (!SWIG_IsOK(ecode3)) {
18363     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Document_add_posting" "', argument " "3"" of type '" "Xapian::termpos""'");
18364   }
18365   arg3 = static_cast< Xapian::termpos >(val3);
18366   ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4);
18367   if (!SWIG_IsOK(ecode4)) {
18368     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Document_add_posting" "', argument " "4"" of type '" "Xapian::termcount""'");
18369   }
18370   arg4 = static_cast< Xapian::termcount >(val4);
18371   {
18372     try {
18373       {
18374         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
18375         (arg1)->add_posting((std::string const &)*arg2,arg3,arg4);
18376         SWIG_PYTHON_THREAD_END_ALLOW;
18377       }
18378     } catch (...) {
18379       Xapian::SetPythonException();
18380       SWIG_fail;
18381     }
18382   }
18383   resultobj = SWIG_Py_Void();
18384   if (SWIG_IsNewObj(res2)) delete arg2;
18385   return resultobj;
18386 fail:
18387   if (SWIG_IsNewObj(res2)) delete arg2;
18388   return NULL;
18389 }
18390 
18391 
_wrap_Document_add_posting__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)18392 SWIGINTERN PyObject *_wrap_Document_add_posting__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
18393   PyObject *resultobj = 0;
18394   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
18395   std::string *arg2 = 0 ;
18396   Xapian::termpos arg3 ;
18397   void *argp1 = 0 ;
18398   int res1 = 0 ;
18399   int res2 = SWIG_OLDOBJ ;
18400   unsigned int val3 ;
18401   int ecode3 = 0 ;
18402 
18403   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
18404   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
18405   if (!SWIG_IsOK(res1)) {
18406     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_add_posting" "', argument " "1"" of type '" "Xapian::Document *""'");
18407   }
18408   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
18409   {
18410     std::string *ptr = (std::string *)0;
18411     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
18412     if (!SWIG_IsOK(res2)) {
18413       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Document_add_posting" "', argument " "2"" of type '" "std::string const &""'");
18414     }
18415     if (!ptr) {
18416       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Document_add_posting" "', argument " "2"" of type '" "std::string const &""'");
18417     }
18418     arg2 = ptr;
18419   }
18420   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
18421   if (!SWIG_IsOK(ecode3)) {
18422     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Document_add_posting" "', argument " "3"" of type '" "Xapian::termpos""'");
18423   }
18424   arg3 = static_cast< Xapian::termpos >(val3);
18425   {
18426     try {
18427       {
18428         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
18429         (arg1)->add_posting((std::string const &)*arg2,arg3);
18430         SWIG_PYTHON_THREAD_END_ALLOW;
18431       }
18432     } catch (...) {
18433       Xapian::SetPythonException();
18434       SWIG_fail;
18435     }
18436   }
18437   resultobj = SWIG_Py_Void();
18438   if (SWIG_IsNewObj(res2)) delete arg2;
18439   return resultobj;
18440 fail:
18441   if (SWIG_IsNewObj(res2)) delete arg2;
18442   return NULL;
18443 }
18444 
18445 
_wrap_Document_add_posting(PyObject * self,PyObject * args)18446 SWIGINTERN PyObject *_wrap_Document_add_posting(PyObject *self, PyObject *args) {
18447   Py_ssize_t argc;
18448   PyObject *argv[5] = {
18449     0
18450   };
18451 
18452   if (!(argc = SWIG_Python_UnpackTuple(args,"Document_add_posting",0,4,argv))) SWIG_fail;
18453   --argc;
18454   if (argc == 3) {
18455     return _wrap_Document_add_posting__SWIG_1(self, argc, argv);
18456   }
18457   if (argc == 4) {
18458     return _wrap_Document_add_posting__SWIG_0(self, argc, argv);
18459   }
18460 
18461 fail:
18462   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Document_add_posting'.\n"
18463     "  Possible C/C++ prototypes are:\n"
18464     "    Xapian::Document::add_posting(std::string const &,Xapian::termpos,Xapian::termcount)\n"
18465     "    Xapian::Document::add_posting(std::string const &,Xapian::termpos)\n");
18466   return 0;
18467 }
18468 
18469 
_wrap_Document_add_term__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)18470 SWIGINTERN PyObject *_wrap_Document_add_term__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
18471   PyObject *resultobj = 0;
18472   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
18473   std::string *arg2 = 0 ;
18474   Xapian::termcount arg3 ;
18475   void *argp1 = 0 ;
18476   int res1 = 0 ;
18477   int res2 = SWIG_OLDOBJ ;
18478   unsigned int val3 ;
18479   int ecode3 = 0 ;
18480 
18481   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
18482   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
18483   if (!SWIG_IsOK(res1)) {
18484     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_add_term" "', argument " "1"" of type '" "Xapian::Document *""'");
18485   }
18486   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
18487   {
18488     std::string *ptr = (std::string *)0;
18489     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
18490     if (!SWIG_IsOK(res2)) {
18491       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Document_add_term" "', argument " "2"" of type '" "std::string const &""'");
18492     }
18493     if (!ptr) {
18494       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Document_add_term" "', argument " "2"" of type '" "std::string const &""'");
18495     }
18496     arg2 = ptr;
18497   }
18498   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
18499   if (!SWIG_IsOK(ecode3)) {
18500     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Document_add_term" "', argument " "3"" of type '" "Xapian::termcount""'");
18501   }
18502   arg3 = static_cast< Xapian::termcount >(val3);
18503   {
18504     try {
18505       {
18506         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
18507         (arg1)->add_term((std::string const &)*arg2,arg3);
18508         SWIG_PYTHON_THREAD_END_ALLOW;
18509       }
18510     } catch (...) {
18511       Xapian::SetPythonException();
18512       SWIG_fail;
18513     }
18514   }
18515   resultobj = SWIG_Py_Void();
18516   if (SWIG_IsNewObj(res2)) delete arg2;
18517   return resultobj;
18518 fail:
18519   if (SWIG_IsNewObj(res2)) delete arg2;
18520   return NULL;
18521 }
18522 
18523 
_wrap_Document_add_term__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)18524 SWIGINTERN PyObject *_wrap_Document_add_term__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
18525   PyObject *resultobj = 0;
18526   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
18527   std::string *arg2 = 0 ;
18528   void *argp1 = 0 ;
18529   int res1 = 0 ;
18530   int res2 = SWIG_OLDOBJ ;
18531 
18532   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
18533   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
18534   if (!SWIG_IsOK(res1)) {
18535     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_add_term" "', argument " "1"" of type '" "Xapian::Document *""'");
18536   }
18537   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
18538   {
18539     std::string *ptr = (std::string *)0;
18540     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
18541     if (!SWIG_IsOK(res2)) {
18542       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Document_add_term" "', argument " "2"" of type '" "std::string const &""'");
18543     }
18544     if (!ptr) {
18545       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Document_add_term" "', argument " "2"" of type '" "std::string const &""'");
18546     }
18547     arg2 = ptr;
18548   }
18549   {
18550     try {
18551       {
18552         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
18553         (arg1)->add_term((std::string const &)*arg2);
18554         SWIG_PYTHON_THREAD_END_ALLOW;
18555       }
18556     } catch (...) {
18557       Xapian::SetPythonException();
18558       SWIG_fail;
18559     }
18560   }
18561   resultobj = SWIG_Py_Void();
18562   if (SWIG_IsNewObj(res2)) delete arg2;
18563   return resultobj;
18564 fail:
18565   if (SWIG_IsNewObj(res2)) delete arg2;
18566   return NULL;
18567 }
18568 
18569 
_wrap_Document_add_term(PyObject * self,PyObject * args)18570 SWIGINTERN PyObject *_wrap_Document_add_term(PyObject *self, PyObject *args) {
18571   Py_ssize_t argc;
18572   PyObject *argv[4] = {
18573     0
18574   };
18575 
18576   if (!(argc = SWIG_Python_UnpackTuple(args,"Document_add_term",0,3,argv))) SWIG_fail;
18577   --argc;
18578   if (argc == 2) {
18579     return _wrap_Document_add_term__SWIG_1(self, argc, argv);
18580   }
18581   if (argc == 3) {
18582     return _wrap_Document_add_term__SWIG_0(self, argc, argv);
18583   }
18584 
18585 fail:
18586   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Document_add_term'.\n"
18587     "  Possible C/C++ prototypes are:\n"
18588     "    Xapian::Document::add_term(std::string const &,Xapian::termcount)\n"
18589     "    Xapian::Document::add_term(std::string const &)\n");
18590   return 0;
18591 }
18592 
18593 
_wrap_Document_add_boolean_term(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18594 SWIGINTERN PyObject *_wrap_Document_add_boolean_term(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18595   PyObject *resultobj = 0;
18596   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
18597   std::string *arg2 = 0 ;
18598   void *argp1 = 0 ;
18599   int res1 = 0 ;
18600   int res2 = SWIG_OLDOBJ ;
18601   PyObject *swig_obj[2] ;
18602 
18603   if (!SWIG_Python_UnpackTuple(args,"Document_add_boolean_term",2,2,swig_obj)) SWIG_fail;
18604   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
18605   if (!SWIG_IsOK(res1)) {
18606     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_add_boolean_term" "', argument " "1"" of type '" "Xapian::Document *""'");
18607   }
18608   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
18609   {
18610     std::string *ptr = (std::string *)0;
18611     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
18612     if (!SWIG_IsOK(res2)) {
18613       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Document_add_boolean_term" "', argument " "2"" of type '" "std::string const &""'");
18614     }
18615     if (!ptr) {
18616       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Document_add_boolean_term" "', argument " "2"" of type '" "std::string const &""'");
18617     }
18618     arg2 = ptr;
18619   }
18620   {
18621     try {
18622       {
18623         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
18624         (arg1)->add_boolean_term((std::string const &)*arg2);
18625         SWIG_PYTHON_THREAD_END_ALLOW;
18626       }
18627     } catch (...) {
18628       Xapian::SetPythonException();
18629       SWIG_fail;
18630     }
18631   }
18632   resultobj = SWIG_Py_Void();
18633   if (SWIG_IsNewObj(res2)) delete arg2;
18634   return resultobj;
18635 fail:
18636   if (SWIG_IsNewObj(res2)) delete arg2;
18637   return NULL;
18638 }
18639 
18640 
_wrap_Document_remove_posting__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)18641 SWIGINTERN PyObject *_wrap_Document_remove_posting__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
18642   PyObject *resultobj = 0;
18643   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
18644   std::string *arg2 = 0 ;
18645   Xapian::termpos arg3 ;
18646   Xapian::termcount arg4 ;
18647   void *argp1 = 0 ;
18648   int res1 = 0 ;
18649   int res2 = SWIG_OLDOBJ ;
18650   unsigned int val3 ;
18651   int ecode3 = 0 ;
18652   unsigned int val4 ;
18653   int ecode4 = 0 ;
18654 
18655   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
18656   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
18657   if (!SWIG_IsOK(res1)) {
18658     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_remove_posting" "', argument " "1"" of type '" "Xapian::Document *""'");
18659   }
18660   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
18661   {
18662     std::string *ptr = (std::string *)0;
18663     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
18664     if (!SWIG_IsOK(res2)) {
18665       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Document_remove_posting" "', argument " "2"" of type '" "std::string const &""'");
18666     }
18667     if (!ptr) {
18668       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Document_remove_posting" "', argument " "2"" of type '" "std::string const &""'");
18669     }
18670     arg2 = ptr;
18671   }
18672   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
18673   if (!SWIG_IsOK(ecode3)) {
18674     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Document_remove_posting" "', argument " "3"" of type '" "Xapian::termpos""'");
18675   }
18676   arg3 = static_cast< Xapian::termpos >(val3);
18677   ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4);
18678   if (!SWIG_IsOK(ecode4)) {
18679     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Document_remove_posting" "', argument " "4"" of type '" "Xapian::termcount""'");
18680   }
18681   arg4 = static_cast< Xapian::termcount >(val4);
18682   {
18683     try {
18684       {
18685         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
18686         (arg1)->remove_posting((std::string const &)*arg2,arg3,arg4);
18687         SWIG_PYTHON_THREAD_END_ALLOW;
18688       }
18689     } catch (...) {
18690       Xapian::SetPythonException();
18691       SWIG_fail;
18692     }
18693   }
18694   resultobj = SWIG_Py_Void();
18695   if (SWIG_IsNewObj(res2)) delete arg2;
18696   return resultobj;
18697 fail:
18698   if (SWIG_IsNewObj(res2)) delete arg2;
18699   return NULL;
18700 }
18701 
18702 
_wrap_Document_remove_posting__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)18703 SWIGINTERN PyObject *_wrap_Document_remove_posting__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
18704   PyObject *resultobj = 0;
18705   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
18706   std::string *arg2 = 0 ;
18707   Xapian::termpos arg3 ;
18708   void *argp1 = 0 ;
18709   int res1 = 0 ;
18710   int res2 = SWIG_OLDOBJ ;
18711   unsigned int val3 ;
18712   int ecode3 = 0 ;
18713 
18714   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
18715   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
18716   if (!SWIG_IsOK(res1)) {
18717     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_remove_posting" "', argument " "1"" of type '" "Xapian::Document *""'");
18718   }
18719   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
18720   {
18721     std::string *ptr = (std::string *)0;
18722     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
18723     if (!SWIG_IsOK(res2)) {
18724       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Document_remove_posting" "', argument " "2"" of type '" "std::string const &""'");
18725     }
18726     if (!ptr) {
18727       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Document_remove_posting" "', argument " "2"" of type '" "std::string const &""'");
18728     }
18729     arg2 = ptr;
18730   }
18731   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
18732   if (!SWIG_IsOK(ecode3)) {
18733     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Document_remove_posting" "', argument " "3"" of type '" "Xapian::termpos""'");
18734   }
18735   arg3 = static_cast< Xapian::termpos >(val3);
18736   {
18737     try {
18738       {
18739         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
18740         (arg1)->remove_posting((std::string const &)*arg2,arg3);
18741         SWIG_PYTHON_THREAD_END_ALLOW;
18742       }
18743     } catch (...) {
18744       Xapian::SetPythonException();
18745       SWIG_fail;
18746     }
18747   }
18748   resultobj = SWIG_Py_Void();
18749   if (SWIG_IsNewObj(res2)) delete arg2;
18750   return resultobj;
18751 fail:
18752   if (SWIG_IsNewObj(res2)) delete arg2;
18753   return NULL;
18754 }
18755 
18756 
_wrap_Document_remove_posting(PyObject * self,PyObject * args)18757 SWIGINTERN PyObject *_wrap_Document_remove_posting(PyObject *self, PyObject *args) {
18758   Py_ssize_t argc;
18759   PyObject *argv[5] = {
18760     0
18761   };
18762 
18763   if (!(argc = SWIG_Python_UnpackTuple(args,"Document_remove_posting",0,4,argv))) SWIG_fail;
18764   --argc;
18765   if (argc == 3) {
18766     return _wrap_Document_remove_posting__SWIG_1(self, argc, argv);
18767   }
18768   if (argc == 4) {
18769     return _wrap_Document_remove_posting__SWIG_0(self, argc, argv);
18770   }
18771 
18772 fail:
18773   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Document_remove_posting'.\n"
18774     "  Possible C/C++ prototypes are:\n"
18775     "    Xapian::Document::remove_posting(std::string const &,Xapian::termpos,Xapian::termcount)\n"
18776     "    Xapian::Document::remove_posting(std::string const &,Xapian::termpos)\n");
18777   return 0;
18778 }
18779 
18780 
_wrap_Document_remove_postings__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)18781 SWIGINTERN PyObject *_wrap_Document_remove_postings__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
18782   PyObject *resultobj = 0;
18783   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
18784   std::string *arg2 = 0 ;
18785   Xapian::termpos arg3 ;
18786   Xapian::termpos arg4 ;
18787   Xapian::termcount arg5 ;
18788   void *argp1 = 0 ;
18789   int res1 = 0 ;
18790   int res2 = SWIG_OLDOBJ ;
18791   unsigned int val3 ;
18792   int ecode3 = 0 ;
18793   unsigned int val4 ;
18794   int ecode4 = 0 ;
18795   unsigned int val5 ;
18796   int ecode5 = 0 ;
18797   Xapian::termpos result;
18798 
18799   if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
18800   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
18801   if (!SWIG_IsOK(res1)) {
18802     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_remove_postings" "', argument " "1"" of type '" "Xapian::Document *""'");
18803   }
18804   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
18805   {
18806     std::string *ptr = (std::string *)0;
18807     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
18808     if (!SWIG_IsOK(res2)) {
18809       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Document_remove_postings" "', argument " "2"" of type '" "std::string const &""'");
18810     }
18811     if (!ptr) {
18812       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Document_remove_postings" "', argument " "2"" of type '" "std::string const &""'");
18813     }
18814     arg2 = ptr;
18815   }
18816   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
18817   if (!SWIG_IsOK(ecode3)) {
18818     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Document_remove_postings" "', argument " "3"" of type '" "Xapian::termpos""'");
18819   }
18820   arg3 = static_cast< Xapian::termpos >(val3);
18821   ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4);
18822   if (!SWIG_IsOK(ecode4)) {
18823     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Document_remove_postings" "', argument " "4"" of type '" "Xapian::termpos""'");
18824   }
18825   arg4 = static_cast< Xapian::termpos >(val4);
18826   ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5);
18827   if (!SWIG_IsOK(ecode5)) {
18828     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Document_remove_postings" "', argument " "5"" of type '" "Xapian::termcount""'");
18829   }
18830   arg5 = static_cast< Xapian::termcount >(val5);
18831   {
18832     try {
18833       {
18834         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
18835         result = (Xapian::termpos)(arg1)->remove_postings((std::string const &)*arg2,arg3,arg4,arg5);
18836         SWIG_PYTHON_THREAD_END_ALLOW;
18837       }
18838     } catch (...) {
18839       Xapian::SetPythonException();
18840       SWIG_fail;
18841     }
18842   }
18843   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
18844   if (SWIG_IsNewObj(res2)) delete arg2;
18845   return resultobj;
18846 fail:
18847   if (SWIG_IsNewObj(res2)) delete arg2;
18848   return NULL;
18849 }
18850 
18851 
_wrap_Document_remove_postings__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)18852 SWIGINTERN PyObject *_wrap_Document_remove_postings__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
18853   PyObject *resultobj = 0;
18854   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
18855   std::string *arg2 = 0 ;
18856   Xapian::termpos arg3 ;
18857   Xapian::termpos arg4 ;
18858   void *argp1 = 0 ;
18859   int res1 = 0 ;
18860   int res2 = SWIG_OLDOBJ ;
18861   unsigned int val3 ;
18862   int ecode3 = 0 ;
18863   unsigned int val4 ;
18864   int ecode4 = 0 ;
18865   Xapian::termpos result;
18866 
18867   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
18868   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
18869   if (!SWIG_IsOK(res1)) {
18870     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_remove_postings" "', argument " "1"" of type '" "Xapian::Document *""'");
18871   }
18872   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
18873   {
18874     std::string *ptr = (std::string *)0;
18875     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
18876     if (!SWIG_IsOK(res2)) {
18877       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Document_remove_postings" "', argument " "2"" of type '" "std::string const &""'");
18878     }
18879     if (!ptr) {
18880       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Document_remove_postings" "', argument " "2"" of type '" "std::string const &""'");
18881     }
18882     arg2 = ptr;
18883   }
18884   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
18885   if (!SWIG_IsOK(ecode3)) {
18886     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Document_remove_postings" "', argument " "3"" of type '" "Xapian::termpos""'");
18887   }
18888   arg3 = static_cast< Xapian::termpos >(val3);
18889   ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4);
18890   if (!SWIG_IsOK(ecode4)) {
18891     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Document_remove_postings" "', argument " "4"" of type '" "Xapian::termpos""'");
18892   }
18893   arg4 = static_cast< Xapian::termpos >(val4);
18894   {
18895     try {
18896       {
18897         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
18898         result = (Xapian::termpos)(arg1)->remove_postings((std::string const &)*arg2,arg3,arg4);
18899         SWIG_PYTHON_THREAD_END_ALLOW;
18900       }
18901     } catch (...) {
18902       Xapian::SetPythonException();
18903       SWIG_fail;
18904     }
18905   }
18906   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
18907   if (SWIG_IsNewObj(res2)) delete arg2;
18908   return resultobj;
18909 fail:
18910   if (SWIG_IsNewObj(res2)) delete arg2;
18911   return NULL;
18912 }
18913 
18914 
_wrap_Document_remove_postings(PyObject * self,PyObject * args)18915 SWIGINTERN PyObject *_wrap_Document_remove_postings(PyObject *self, PyObject *args) {
18916   Py_ssize_t argc;
18917   PyObject *argv[6] = {
18918     0
18919   };
18920 
18921   if (!(argc = SWIG_Python_UnpackTuple(args,"Document_remove_postings",0,5,argv))) SWIG_fail;
18922   --argc;
18923   if (argc == 4) {
18924     return _wrap_Document_remove_postings__SWIG_1(self, argc, argv);
18925   }
18926   if (argc == 5) {
18927     return _wrap_Document_remove_postings__SWIG_0(self, argc, argv);
18928   }
18929 
18930 fail:
18931   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Document_remove_postings'.\n"
18932     "  Possible C/C++ prototypes are:\n"
18933     "    Xapian::Document::remove_postings(std::string const &,Xapian::termpos,Xapian::termpos,Xapian::termcount)\n"
18934     "    Xapian::Document::remove_postings(std::string const &,Xapian::termpos,Xapian::termpos)\n");
18935   return 0;
18936 }
18937 
18938 
_wrap_Document_remove_term(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18939 SWIGINTERN PyObject *_wrap_Document_remove_term(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18940   PyObject *resultobj = 0;
18941   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
18942   std::string *arg2 = 0 ;
18943   void *argp1 = 0 ;
18944   int res1 = 0 ;
18945   int res2 = SWIG_OLDOBJ ;
18946   PyObject *swig_obj[2] ;
18947 
18948   if (!SWIG_Python_UnpackTuple(args,"Document_remove_term",2,2,swig_obj)) SWIG_fail;
18949   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
18950   if (!SWIG_IsOK(res1)) {
18951     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_remove_term" "', argument " "1"" of type '" "Xapian::Document *""'");
18952   }
18953   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
18954   {
18955     std::string *ptr = (std::string *)0;
18956     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
18957     if (!SWIG_IsOK(res2)) {
18958       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Document_remove_term" "', argument " "2"" of type '" "std::string const &""'");
18959     }
18960     if (!ptr) {
18961       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Document_remove_term" "', argument " "2"" of type '" "std::string const &""'");
18962     }
18963     arg2 = ptr;
18964   }
18965   {
18966     try {
18967       {
18968         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
18969         (arg1)->remove_term((std::string const &)*arg2);
18970         SWIG_PYTHON_THREAD_END_ALLOW;
18971       }
18972     } catch (...) {
18973       Xapian::SetPythonException();
18974       SWIG_fail;
18975     }
18976   }
18977   resultobj = SWIG_Py_Void();
18978   if (SWIG_IsNewObj(res2)) delete arg2;
18979   return resultobj;
18980 fail:
18981   if (SWIG_IsNewObj(res2)) delete arg2;
18982   return NULL;
18983 }
18984 
18985 
_wrap_Document_clear_terms(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18986 SWIGINTERN PyObject *_wrap_Document_clear_terms(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18987   PyObject *resultobj = 0;
18988   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
18989   void *argp1 = 0 ;
18990   int res1 = 0 ;
18991   PyObject *swig_obj[1] ;
18992 
18993   if (!args) SWIG_fail;
18994   swig_obj[0] = args;
18995   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
18996   if (!SWIG_IsOK(res1)) {
18997     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_clear_terms" "', argument " "1"" of type '" "Xapian::Document *""'");
18998   }
18999   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
19000   {
19001     try {
19002       {
19003         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19004         (arg1)->clear_terms();
19005         SWIG_PYTHON_THREAD_END_ALLOW;
19006       }
19007     } catch (...) {
19008       Xapian::SetPythonException();
19009       SWIG_fail;
19010     }
19011   }
19012   resultobj = SWIG_Py_Void();
19013   return resultobj;
19014 fail:
19015   return NULL;
19016 }
19017 
19018 
_wrap_Document_termlist_count(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19019 SWIGINTERN PyObject *_wrap_Document_termlist_count(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19020   PyObject *resultobj = 0;
19021   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
19022   void *argp1 = 0 ;
19023   int res1 = 0 ;
19024   PyObject *swig_obj[1] ;
19025   Xapian::termcount result;
19026 
19027   if (!args) SWIG_fail;
19028   swig_obj[0] = args;
19029   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
19030   if (!SWIG_IsOK(res1)) {
19031     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_termlist_count" "', argument " "1"" of type '" "Xapian::Document const *""'");
19032   }
19033   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
19034   {
19035     try {
19036       {
19037         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19038         result = (Xapian::termcount)((Xapian::Document const *)arg1)->termlist_count();
19039         SWIG_PYTHON_THREAD_END_ALLOW;
19040       }
19041     } catch (...) {
19042       Xapian::SetPythonException();
19043       SWIG_fail;
19044     }
19045   }
19046   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
19047   return resultobj;
19048 fail:
19049   return NULL;
19050 }
19051 
19052 
_wrap_Document__termlist_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19053 SWIGINTERN PyObject *_wrap_Document__termlist_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19054   PyObject *resultobj = 0;
19055   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
19056   void *argp1 = 0 ;
19057   int res1 = 0 ;
19058   PyObject *swig_obj[1] ;
19059   Xapian::TermIterator result;
19060 
19061   if (!args) SWIG_fail;
19062   swig_obj[0] = args;
19063   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
19064   if (!SWIG_IsOK(res1)) {
19065     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document__termlist_begin" "', argument " "1"" of type '" "Xapian::Document const *""'");
19066   }
19067   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
19068   {
19069     try {
19070       {
19071         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19072         result = ((Xapian::Document const *)arg1)->termlist_begin();
19073         SWIG_PYTHON_THREAD_END_ALLOW;
19074       }
19075     } catch (...) {
19076       Xapian::SetPythonException();
19077       SWIG_fail;
19078     }
19079   }
19080   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
19081   return resultobj;
19082 fail:
19083   return NULL;
19084 }
19085 
19086 
_wrap_Document__termlist_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19087 SWIGINTERN PyObject *_wrap_Document__termlist_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19088   PyObject *resultobj = 0;
19089   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
19090   void *argp1 = 0 ;
19091   int res1 = 0 ;
19092   PyObject *swig_obj[1] ;
19093   Xapian::TermIterator result;
19094 
19095   if (!args) SWIG_fail;
19096   swig_obj[0] = args;
19097   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
19098   if (!SWIG_IsOK(res1)) {
19099     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document__termlist_end" "', argument " "1"" of type '" "Xapian::Document const *""'");
19100   }
19101   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
19102   {
19103     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19104     result = ((Xapian::Document const *)arg1)->termlist_end();
19105     SWIG_PYTHON_THREAD_END_ALLOW;
19106   }
19107   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
19108   return resultobj;
19109 fail:
19110   return NULL;
19111 }
19112 
19113 
_wrap_Document_values_count(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19114 SWIGINTERN PyObject *_wrap_Document_values_count(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19115   PyObject *resultobj = 0;
19116   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
19117   void *argp1 = 0 ;
19118   int res1 = 0 ;
19119   PyObject *swig_obj[1] ;
19120   Xapian::termcount result;
19121 
19122   if (!args) SWIG_fail;
19123   swig_obj[0] = args;
19124   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
19125   if (!SWIG_IsOK(res1)) {
19126     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_values_count" "', argument " "1"" of type '" "Xapian::Document const *""'");
19127   }
19128   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
19129   {
19130     try {
19131       {
19132         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19133         result = (Xapian::termcount)((Xapian::Document const *)arg1)->values_count();
19134         SWIG_PYTHON_THREAD_END_ALLOW;
19135       }
19136     } catch (...) {
19137       Xapian::SetPythonException();
19138       SWIG_fail;
19139     }
19140   }
19141   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
19142   return resultobj;
19143 fail:
19144   return NULL;
19145 }
19146 
19147 
_wrap_Document__values_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19148 SWIGINTERN PyObject *_wrap_Document__values_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19149   PyObject *resultobj = 0;
19150   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
19151   void *argp1 = 0 ;
19152   int res1 = 0 ;
19153   PyObject *swig_obj[1] ;
19154   Xapian::ValueIterator result;
19155 
19156   if (!args) SWIG_fail;
19157   swig_obj[0] = args;
19158   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
19159   if (!SWIG_IsOK(res1)) {
19160     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document__values_begin" "', argument " "1"" of type '" "Xapian::Document const *""'");
19161   }
19162   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
19163   {
19164     try {
19165       {
19166         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19167         result = ((Xapian::Document const *)arg1)->values_begin();
19168         SWIG_PYTHON_THREAD_END_ALLOW;
19169       }
19170     } catch (...) {
19171       Xapian::SetPythonException();
19172       SWIG_fail;
19173     }
19174   }
19175   resultobj = SWIG_NewPointerObj((new Xapian::ValueIterator(static_cast< const Xapian::ValueIterator& >(result))), SWIGTYPE_p_Xapian__ValueIterator, SWIG_POINTER_OWN |  0 );
19176   return resultobj;
19177 fail:
19178   return NULL;
19179 }
19180 
19181 
_wrap_Document__values_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19182 SWIGINTERN PyObject *_wrap_Document__values_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19183   PyObject *resultobj = 0;
19184   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
19185   void *argp1 = 0 ;
19186   int res1 = 0 ;
19187   PyObject *swig_obj[1] ;
19188   Xapian::ValueIterator result;
19189 
19190   if (!args) SWIG_fail;
19191   swig_obj[0] = args;
19192   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
19193   if (!SWIG_IsOK(res1)) {
19194     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document__values_end" "', argument " "1"" of type '" "Xapian::Document const *""'");
19195   }
19196   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
19197   {
19198     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19199     result = ((Xapian::Document const *)arg1)->values_end();
19200     SWIG_PYTHON_THREAD_END_ALLOW;
19201   }
19202   resultobj = SWIG_NewPointerObj((new Xapian::ValueIterator(static_cast< const Xapian::ValueIterator& >(result))), SWIGTYPE_p_Xapian__ValueIterator, SWIG_POINTER_OWN |  0 );
19203   return resultobj;
19204 fail:
19205   return NULL;
19206 }
19207 
19208 
_wrap_Document_get_docid(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19209 SWIGINTERN PyObject *_wrap_Document_get_docid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19210   PyObject *resultobj = 0;
19211   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
19212   void *argp1 = 0 ;
19213   int res1 = 0 ;
19214   PyObject *swig_obj[1] ;
19215   Xapian::docid result;
19216 
19217   if (!args) SWIG_fail;
19218   swig_obj[0] = args;
19219   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
19220   if (!SWIG_IsOK(res1)) {
19221     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_get_docid" "', argument " "1"" of type '" "Xapian::Document const *""'");
19222   }
19223   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
19224   {
19225     try {
19226       {
19227         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19228         result = (Xapian::docid)((Xapian::Document const *)arg1)->get_docid();
19229         SWIG_PYTHON_THREAD_END_ALLOW;
19230       }
19231     } catch (...) {
19232       Xapian::SetPythonException();
19233       SWIG_fail;
19234     }
19235   }
19236   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
19237   return resultobj;
19238 fail:
19239   return NULL;
19240 }
19241 
19242 
_wrap_Document_serialise(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19243 SWIGINTERN PyObject *_wrap_Document_serialise(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19244   PyObject *resultobj = 0;
19245   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
19246   void *argp1 = 0 ;
19247   int res1 = 0 ;
19248   PyObject *swig_obj[1] ;
19249   std::string result;
19250 
19251   if (!args) SWIG_fail;
19252   swig_obj[0] = args;
19253   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
19254   if (!SWIG_IsOK(res1)) {
19255     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_serialise" "', argument " "1"" of type '" "Xapian::Document const *""'");
19256   }
19257   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
19258   {
19259     try {
19260       {
19261         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19262         result = ((Xapian::Document const *)arg1)->serialise();
19263         SWIG_PYTHON_THREAD_END_ALLOW;
19264       }
19265     } catch (...) {
19266       Xapian::SetPythonException();
19267       SWIG_fail;
19268     }
19269   }
19270   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
19271   return resultobj;
19272 fail:
19273   return NULL;
19274 }
19275 
19276 
_wrap_Document_unserialise(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19277 SWIGINTERN PyObject *_wrap_Document_unserialise(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19278   PyObject *resultobj = 0;
19279   std::string *arg1 = 0 ;
19280   int res1 = SWIG_OLDOBJ ;
19281   PyObject *swig_obj[1] ;
19282   Xapian::Document result;
19283 
19284   if (!args) SWIG_fail;
19285   swig_obj[0] = args;
19286   {
19287     std::string *ptr = (std::string *)0;
19288     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
19289     if (!SWIG_IsOK(res1)) {
19290       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_unserialise" "', argument " "1"" of type '" "std::string const &""'");
19291     }
19292     if (!ptr) {
19293       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Document_unserialise" "', argument " "1"" of type '" "std::string const &""'");
19294     }
19295     arg1 = ptr;
19296   }
19297   {
19298     try {
19299       {
19300         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19301         result = Xapian::Document::unserialise((std::string const &)*arg1);
19302         SWIG_PYTHON_THREAD_END_ALLOW;
19303       }
19304     } catch (...) {
19305       Xapian::SetPythonException();
19306       SWIG_fail;
19307     }
19308   }
19309   resultobj = SWIG_NewPointerObj((new Xapian::Document(static_cast< const Xapian::Document& >(result))), SWIGTYPE_p_Xapian__Document, SWIG_POINTER_OWN |  0 );
19310   if (SWIG_IsNewObj(res1)) delete arg1;
19311   return resultobj;
19312 fail:
19313   if (SWIG_IsNewObj(res1)) delete arg1;
19314   return NULL;
19315 }
19316 
19317 
_wrap_Document___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19318 SWIGINTERN PyObject *_wrap_Document___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19319   PyObject *resultobj = 0;
19320   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
19321   void *argp1 = 0 ;
19322   int res1 = 0 ;
19323   PyObject *swig_obj[1] ;
19324   std::string result;
19325 
19326   if (!args) SWIG_fail;
19327   swig_obj[0] = args;
19328   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
19329   if (!SWIG_IsOK(res1)) {
19330     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document___str__" "', argument " "1"" of type '" "Xapian::Document const *""'");
19331   }
19332   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
19333   {
19334     try {
19335       {
19336         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19337         result = ((Xapian::Document const *)arg1)->get_description();
19338         SWIG_PYTHON_THREAD_END_ALLOW;
19339       }
19340     } catch (...) {
19341       Xapian::SetPythonException();
19342       SWIG_fail;
19343     }
19344   }
19345   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
19346   return resultobj;
19347 fail:
19348   return NULL;
19349 }
19350 
19351 
Document_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19352 SWIGINTERN PyObject *Document_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19353   PyObject *obj;
19354   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
19355   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__Document, SWIG_NewClientData(obj));
19356   return SWIG_Py_Void();
19357 }
19358 
Document_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19359 SWIGINTERN PyObject *Document_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19360   return SWIG_Python_InitShadowInstance(args);
19361 }
19362 
_wrap_new_Registry(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19363 SWIGINTERN PyObject *_wrap_new_Registry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19364   PyObject *resultobj = 0;
19365   Xapian::Registry *result = 0 ;
19366 
19367   if (!SWIG_Python_UnpackTuple(args,"new_Registry",0,0,0)) SWIG_fail;
19368   {
19369     try {
19370       {
19371         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19372         result = (Xapian::Registry *)new Xapian::Registry();
19373         SWIG_PYTHON_THREAD_END_ALLOW;
19374       }
19375     } catch (...) {
19376       Xapian::SetPythonException();
19377       SWIG_fail;
19378     }
19379   }
19380   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Registry, SWIG_POINTER_NEW |  0 );
19381   return resultobj;
19382 fail:
19383   return NULL;
19384 }
19385 
19386 
_wrap_delete_Registry(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19387 SWIGINTERN PyObject *_wrap_delete_Registry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19388   PyObject *resultobj = 0;
19389   Xapian::Registry *arg1 = (Xapian::Registry *) 0 ;
19390   void *argp1 = 0 ;
19391   int res1 = 0 ;
19392   PyObject *swig_obj[1] ;
19393 
19394   if (!args) SWIG_fail;
19395   swig_obj[0] = args;
19396   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Registry, SWIG_POINTER_DISOWN |  0 );
19397   if (!SWIG_IsOK(res1)) {
19398     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Registry" "', argument " "1"" of type '" "Xapian::Registry *""'");
19399   }
19400   arg1 = reinterpret_cast< Xapian::Registry * >(argp1);
19401   {
19402     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19403     delete arg1;
19404     SWIG_PYTHON_THREAD_END_ALLOW;
19405   }
19406   resultobj = SWIG_Py_Void();
19407   return resultobj;
19408 fail:
19409   return NULL;
19410 }
19411 
19412 
_wrap_Registry_register_weighting_scheme(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19413 SWIGINTERN PyObject *_wrap_Registry_register_weighting_scheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19414   PyObject *resultobj = 0;
19415   Xapian::Registry *arg1 = (Xapian::Registry *) 0 ;
19416   Xapian::Weight *arg2 = 0 ;
19417   void *argp1 = 0 ;
19418   int res1 = 0 ;
19419   void *argp2 = 0 ;
19420   int res2 = 0 ;
19421   PyObject *swig_obj[2] ;
19422 
19423   if (!SWIG_Python_UnpackTuple(args,"Registry_register_weighting_scheme",2,2,swig_obj)) SWIG_fail;
19424   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Registry, 0 |  0 );
19425   if (!SWIG_IsOK(res1)) {
19426     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Registry_register_weighting_scheme" "', argument " "1"" of type '" "Xapian::Registry *""'");
19427   }
19428   arg1 = reinterpret_cast< Xapian::Registry * >(argp1);
19429   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__Weight,  0  | 0);
19430   if (!SWIG_IsOK(res2)) {
19431     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Registry_register_weighting_scheme" "', argument " "2"" of type '" "Xapian::Weight const &""'");
19432   }
19433   if (!argp2) {
19434     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Registry_register_weighting_scheme" "', argument " "2"" of type '" "Xapian::Weight const &""'");
19435   }
19436   arg2 = reinterpret_cast< Xapian::Weight * >(argp2);
19437   {
19438     try {
19439       {
19440         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19441         (arg1)->register_weighting_scheme((Xapian::Weight const &)*arg2);
19442         SWIG_PYTHON_THREAD_END_ALLOW;
19443       }
19444     } catch (...) {
19445       Xapian::SetPythonException();
19446       SWIG_fail;
19447     }
19448   }
19449   resultobj = SWIG_Py_Void();
19450   return resultobj;
19451 fail:
19452   return NULL;
19453 }
19454 
19455 
_wrap_Registry_get_weighting_scheme(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19456 SWIGINTERN PyObject *_wrap_Registry_get_weighting_scheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19457   PyObject *resultobj = 0;
19458   Xapian::Registry *arg1 = (Xapian::Registry *) 0 ;
19459   std::string *arg2 = 0 ;
19460   void *argp1 = 0 ;
19461   int res1 = 0 ;
19462   int res2 = SWIG_OLDOBJ ;
19463   PyObject *swig_obj[2] ;
19464   Xapian::Weight *result = 0 ;
19465 
19466   if (!SWIG_Python_UnpackTuple(args,"Registry_get_weighting_scheme",2,2,swig_obj)) SWIG_fail;
19467   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Registry, 0 |  0 );
19468   if (!SWIG_IsOK(res1)) {
19469     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Registry_get_weighting_scheme" "', argument " "1"" of type '" "Xapian::Registry const *""'");
19470   }
19471   arg1 = reinterpret_cast< Xapian::Registry * >(argp1);
19472   {
19473     std::string *ptr = (std::string *)0;
19474     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
19475     if (!SWIG_IsOK(res2)) {
19476       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Registry_get_weighting_scheme" "', argument " "2"" of type '" "std::string const &""'");
19477     }
19478     if (!ptr) {
19479       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Registry_get_weighting_scheme" "', argument " "2"" of type '" "std::string const &""'");
19480     }
19481     arg2 = ptr;
19482   }
19483   {
19484     try {
19485       {
19486         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19487         result = (Xapian::Weight *)((Xapian::Registry const *)arg1)->get_weighting_scheme((std::string const &)*arg2);
19488         SWIG_PYTHON_THREAD_END_ALLOW;
19489       }
19490     } catch (...) {
19491       Xapian::SetPythonException();
19492       SWIG_fail;
19493     }
19494   }
19495   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Weight, 0 |  0 );
19496   if (SWIG_IsNewObj(res2)) delete arg2;
19497   return resultobj;
19498 fail:
19499   if (SWIG_IsNewObj(res2)) delete arg2;
19500   return NULL;
19501 }
19502 
19503 
_wrap_Registry_register_posting_source(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19504 SWIGINTERN PyObject *_wrap_Registry_register_posting_source(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19505   PyObject *resultobj = 0;
19506   Xapian::Registry *arg1 = (Xapian::Registry *) 0 ;
19507   Xapian::PostingSource *arg2 = 0 ;
19508   void *argp1 = 0 ;
19509   int res1 = 0 ;
19510   void *argp2 = 0 ;
19511   int res2 = 0 ;
19512   PyObject *swig_obj[2] ;
19513 
19514   if (!SWIG_Python_UnpackTuple(args,"Registry_register_posting_source",2,2,swig_obj)) SWIG_fail;
19515   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Registry, 0 |  0 );
19516   if (!SWIG_IsOK(res1)) {
19517     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Registry_register_posting_source" "', argument " "1"" of type '" "Xapian::Registry *""'");
19518   }
19519   arg1 = reinterpret_cast< Xapian::Registry * >(argp1);
19520   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__PostingSource,  0  | 0);
19521   if (!SWIG_IsOK(res2)) {
19522     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Registry_register_posting_source" "', argument " "2"" of type '" "Xapian::PostingSource const &""'");
19523   }
19524   if (!argp2) {
19525     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Registry_register_posting_source" "', argument " "2"" of type '" "Xapian::PostingSource const &""'");
19526   }
19527   arg2 = reinterpret_cast< Xapian::PostingSource * >(argp2);
19528   {
19529     try {
19530       {
19531         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19532         (arg1)->register_posting_source((Xapian::PostingSource const &)*arg2);
19533         SWIG_PYTHON_THREAD_END_ALLOW;
19534       }
19535     } catch (...) {
19536       Xapian::SetPythonException();
19537       SWIG_fail;
19538     }
19539   }
19540   resultobj = SWIG_Py_Void();
19541   return resultobj;
19542 fail:
19543   return NULL;
19544 }
19545 
19546 
_wrap_Registry_get_posting_source(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19547 SWIGINTERN PyObject *_wrap_Registry_get_posting_source(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19548   PyObject *resultobj = 0;
19549   Xapian::Registry *arg1 = (Xapian::Registry *) 0 ;
19550   std::string *arg2 = 0 ;
19551   void *argp1 = 0 ;
19552   int res1 = 0 ;
19553   int res2 = SWIG_OLDOBJ ;
19554   PyObject *swig_obj[2] ;
19555   Xapian::PostingSource *result = 0 ;
19556 
19557   if (!SWIG_Python_UnpackTuple(args,"Registry_get_posting_source",2,2,swig_obj)) SWIG_fail;
19558   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Registry, 0 |  0 );
19559   if (!SWIG_IsOK(res1)) {
19560     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Registry_get_posting_source" "', argument " "1"" of type '" "Xapian::Registry const *""'");
19561   }
19562   arg1 = reinterpret_cast< Xapian::Registry * >(argp1);
19563   {
19564     std::string *ptr = (std::string *)0;
19565     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
19566     if (!SWIG_IsOK(res2)) {
19567       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Registry_get_posting_source" "', argument " "2"" of type '" "std::string const &""'");
19568     }
19569     if (!ptr) {
19570       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Registry_get_posting_source" "', argument " "2"" of type '" "std::string const &""'");
19571     }
19572     arg2 = ptr;
19573   }
19574   {
19575     try {
19576       {
19577         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19578         result = (Xapian::PostingSource *)((Xapian::Registry const *)arg1)->get_posting_source((std::string const &)*arg2);
19579         SWIG_PYTHON_THREAD_END_ALLOW;
19580       }
19581     } catch (...) {
19582       Xapian::SetPythonException();
19583       SWIG_fail;
19584     }
19585   }
19586   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
19587   if (SWIG_IsNewObj(res2)) delete arg2;
19588   return resultobj;
19589 fail:
19590   if (SWIG_IsNewObj(res2)) delete arg2;
19591   return NULL;
19592 }
19593 
19594 
_wrap_Registry_register_match_spy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19595 SWIGINTERN PyObject *_wrap_Registry_register_match_spy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19596   PyObject *resultobj = 0;
19597   Xapian::Registry *arg1 = (Xapian::Registry *) 0 ;
19598   Xapian::MatchSpy *arg2 = 0 ;
19599   void *argp1 = 0 ;
19600   int res1 = 0 ;
19601   void *argp2 = 0 ;
19602   int res2 = 0 ;
19603   PyObject *swig_obj[2] ;
19604 
19605   if (!SWIG_Python_UnpackTuple(args,"Registry_register_match_spy",2,2,swig_obj)) SWIG_fail;
19606   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Registry, 0 |  0 );
19607   if (!SWIG_IsOK(res1)) {
19608     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Registry_register_match_spy" "', argument " "1"" of type '" "Xapian::Registry *""'");
19609   }
19610   arg1 = reinterpret_cast< Xapian::Registry * >(argp1);
19611   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__MatchSpy,  0  | 0);
19612   if (!SWIG_IsOK(res2)) {
19613     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Registry_register_match_spy" "', argument " "2"" of type '" "Xapian::MatchSpy const &""'");
19614   }
19615   if (!argp2) {
19616     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Registry_register_match_spy" "', argument " "2"" of type '" "Xapian::MatchSpy const &""'");
19617   }
19618   arg2 = reinterpret_cast< Xapian::MatchSpy * >(argp2);
19619   {
19620     try {
19621       {
19622         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19623         (arg1)->register_match_spy((Xapian::MatchSpy const &)*arg2);
19624         SWIG_PYTHON_THREAD_END_ALLOW;
19625       }
19626     } catch (...) {
19627       Xapian::SetPythonException();
19628       SWIG_fail;
19629     }
19630   }
19631   resultobj = SWIG_Py_Void();
19632   return resultobj;
19633 fail:
19634   return NULL;
19635 }
19636 
19637 
_wrap_Registry_get_match_spy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19638 SWIGINTERN PyObject *_wrap_Registry_get_match_spy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19639   PyObject *resultobj = 0;
19640   Xapian::Registry *arg1 = (Xapian::Registry *) 0 ;
19641   std::string *arg2 = 0 ;
19642   void *argp1 = 0 ;
19643   int res1 = 0 ;
19644   int res2 = SWIG_OLDOBJ ;
19645   PyObject *swig_obj[2] ;
19646   Xapian::MatchSpy *result = 0 ;
19647 
19648   if (!SWIG_Python_UnpackTuple(args,"Registry_get_match_spy",2,2,swig_obj)) SWIG_fail;
19649   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Registry, 0 |  0 );
19650   if (!SWIG_IsOK(res1)) {
19651     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Registry_get_match_spy" "', argument " "1"" of type '" "Xapian::Registry const *""'");
19652   }
19653   arg1 = reinterpret_cast< Xapian::Registry * >(argp1);
19654   {
19655     std::string *ptr = (std::string *)0;
19656     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
19657     if (!SWIG_IsOK(res2)) {
19658       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Registry_get_match_spy" "', argument " "2"" of type '" "std::string const &""'");
19659     }
19660     if (!ptr) {
19661       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Registry_get_match_spy" "', argument " "2"" of type '" "std::string const &""'");
19662     }
19663     arg2 = ptr;
19664   }
19665   {
19666     try {
19667       {
19668         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19669         result = (Xapian::MatchSpy *)((Xapian::Registry const *)arg1)->get_match_spy((std::string const &)*arg2);
19670         SWIG_PYTHON_THREAD_END_ALLOW;
19671       }
19672     } catch (...) {
19673       Xapian::SetPythonException();
19674       SWIG_fail;
19675     }
19676   }
19677   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__MatchSpy, 0 |  0 );
19678   if (SWIG_IsNewObj(res2)) delete arg2;
19679   return resultobj;
19680 fail:
19681   if (SWIG_IsNewObj(res2)) delete arg2;
19682   return NULL;
19683 }
19684 
19685 
_wrap_Registry_register_lat_long_metric(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19686 SWIGINTERN PyObject *_wrap_Registry_register_lat_long_metric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19687   PyObject *resultobj = 0;
19688   Xapian::Registry *arg1 = (Xapian::Registry *) 0 ;
19689   Xapian::LatLongMetric *arg2 = 0 ;
19690   void *argp1 = 0 ;
19691   int res1 = 0 ;
19692   void *argp2 = 0 ;
19693   int res2 = 0 ;
19694   PyObject *swig_obj[2] ;
19695 
19696   if (!SWIG_Python_UnpackTuple(args,"Registry_register_lat_long_metric",2,2,swig_obj)) SWIG_fail;
19697   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Registry, 0 |  0 );
19698   if (!SWIG_IsOK(res1)) {
19699     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Registry_register_lat_long_metric" "', argument " "1"" of type '" "Xapian::Registry *""'");
19700   }
19701   arg1 = reinterpret_cast< Xapian::Registry * >(argp1);
19702   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongMetric,  0  | 0);
19703   if (!SWIG_IsOK(res2)) {
19704     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Registry_register_lat_long_metric" "', argument " "2"" of type '" "Xapian::LatLongMetric const &""'");
19705   }
19706   if (!argp2) {
19707     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Registry_register_lat_long_metric" "', argument " "2"" of type '" "Xapian::LatLongMetric const &""'");
19708   }
19709   arg2 = reinterpret_cast< Xapian::LatLongMetric * >(argp2);
19710   {
19711     try {
19712       {
19713         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19714         (arg1)->register_lat_long_metric((Xapian::LatLongMetric const &)*arg2);
19715         SWIG_PYTHON_THREAD_END_ALLOW;
19716       }
19717     } catch (...) {
19718       Xapian::SetPythonException();
19719       SWIG_fail;
19720     }
19721   }
19722   resultobj = SWIG_Py_Void();
19723   return resultobj;
19724 fail:
19725   return NULL;
19726 }
19727 
19728 
_wrap_Registry_get_lat_long_metric(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19729 SWIGINTERN PyObject *_wrap_Registry_get_lat_long_metric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19730   PyObject *resultobj = 0;
19731   Xapian::Registry *arg1 = (Xapian::Registry *) 0 ;
19732   std::string *arg2 = 0 ;
19733   void *argp1 = 0 ;
19734   int res1 = 0 ;
19735   int res2 = SWIG_OLDOBJ ;
19736   PyObject *swig_obj[2] ;
19737   Xapian::LatLongMetric *result = 0 ;
19738 
19739   if (!SWIG_Python_UnpackTuple(args,"Registry_get_lat_long_metric",2,2,swig_obj)) SWIG_fail;
19740   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Registry, 0 |  0 );
19741   if (!SWIG_IsOK(res1)) {
19742     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Registry_get_lat_long_metric" "', argument " "1"" of type '" "Xapian::Registry const *""'");
19743   }
19744   arg1 = reinterpret_cast< Xapian::Registry * >(argp1);
19745   {
19746     std::string *ptr = (std::string *)0;
19747     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
19748     if (!SWIG_IsOK(res2)) {
19749       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Registry_get_lat_long_metric" "', argument " "2"" of type '" "std::string const &""'");
19750     }
19751     if (!ptr) {
19752       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Registry_get_lat_long_metric" "', argument " "2"" of type '" "std::string const &""'");
19753     }
19754     arg2 = ptr;
19755   }
19756   {
19757     try {
19758       {
19759         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19760         result = (Xapian::LatLongMetric *)((Xapian::Registry const *)arg1)->get_lat_long_metric((std::string const &)*arg2);
19761         SWIG_PYTHON_THREAD_END_ALLOW;
19762       }
19763     } catch (...) {
19764       Xapian::SetPythonException();
19765       SWIG_fail;
19766     }
19767   }
19768   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongMetric, 0 |  0 );
19769   if (SWIG_IsNewObj(res2)) delete arg2;
19770   return resultobj;
19771 fail:
19772   if (SWIG_IsNewObj(res2)) delete arg2;
19773   return NULL;
19774 }
19775 
19776 
Registry_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19777 SWIGINTERN PyObject *Registry_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19778   PyObject *obj;
19779   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
19780   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__Registry, SWIG_NewClientData(obj));
19781   return SWIG_Py_Void();
19782 }
19783 
Registry_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19784 SWIGINTERN PyObject *Registry_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19785   return SWIG_Python_InitShadowInstance(args);
19786 }
19787 
_wrap_new_Query__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))19788 SWIGINTERN PyObject *_wrap_new_Query__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
19789   PyObject *resultobj = 0;
19790   Xapian::Query *result = 0 ;
19791 
19792   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
19793   {
19794     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19795     result = (Xapian::Query *)new Xapian::Query();
19796     SWIG_PYTHON_THREAD_END_ALLOW;
19797   }
19798   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_NEW |  0 );
19799   return resultobj;
19800 fail:
19801   return NULL;
19802 }
19803 
19804 
_wrap_delete_Query(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19805 SWIGINTERN PyObject *_wrap_delete_Query(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19806   PyObject *resultobj = 0;
19807   Xapian::Query *arg1 = (Xapian::Query *) 0 ;
19808   void *argp1 = 0 ;
19809   int res1 = 0 ;
19810   PyObject *swig_obj[1] ;
19811 
19812   if (!args) SWIG_fail;
19813   swig_obj[0] = args;
19814   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Query, SWIG_POINTER_DISOWN |  0 );
19815   if (!SWIG_IsOK(res1)) {
19816     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Query" "', argument " "1"" of type '" "Xapian::Query *""'");
19817   }
19818   arg1 = reinterpret_cast< Xapian::Query * >(argp1);
19819   {
19820     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19821     delete arg1;
19822     SWIG_PYTHON_THREAD_END_ALLOW;
19823   }
19824   resultobj = SWIG_Py_Void();
19825   return resultobj;
19826 fail:
19827   return NULL;
19828 }
19829 
19830 
_wrap_new_Query__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)19831 SWIGINTERN PyObject *_wrap_new_Query__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
19832   PyObject *resultobj = 0;
19833   std::string *arg1 = 0 ;
19834   Xapian::termcount arg2 ;
19835   Xapian::termpos arg3 ;
19836   int res1 = SWIG_OLDOBJ ;
19837   unsigned int val2 ;
19838   int ecode2 = 0 ;
19839   unsigned int val3 ;
19840   int ecode3 = 0 ;
19841   Xapian::Query *result = 0 ;
19842 
19843   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
19844   {
19845     std::string *ptr = (std::string *)0;
19846     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
19847     if (!SWIG_IsOK(res1)) {
19848       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Query" "', argument " "1"" of type '" "std::string const &""'");
19849     }
19850     if (!ptr) {
19851       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "1"" of type '" "std::string const &""'");
19852     }
19853     arg1 = ptr;
19854   }
19855   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
19856   if (!SWIG_IsOK(ecode2)) {
19857     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Query" "', argument " "2"" of type '" "Xapian::termcount""'");
19858   }
19859   arg2 = static_cast< Xapian::termcount >(val2);
19860   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
19861   if (!SWIG_IsOK(ecode3)) {
19862     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Query" "', argument " "3"" of type '" "Xapian::termpos""'");
19863   }
19864   arg3 = static_cast< Xapian::termpos >(val3);
19865   {
19866     try {
19867       {
19868         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19869         result = (Xapian::Query *)new Xapian::Query((std::string const &)*arg1,arg2,arg3);
19870         SWIG_PYTHON_THREAD_END_ALLOW;
19871       }
19872     } catch (...) {
19873       Xapian::SetPythonException();
19874       SWIG_fail;
19875     }
19876   }
19877   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_NEW |  0 );
19878   if (SWIG_IsNewObj(res1)) delete arg1;
19879   return resultobj;
19880 fail:
19881   if (SWIG_IsNewObj(res1)) delete arg1;
19882   return NULL;
19883 }
19884 
19885 
_wrap_new_Query__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)19886 SWIGINTERN PyObject *_wrap_new_Query__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
19887   PyObject *resultobj = 0;
19888   std::string *arg1 = 0 ;
19889   Xapian::termcount arg2 ;
19890   int res1 = SWIG_OLDOBJ ;
19891   unsigned int val2 ;
19892   int ecode2 = 0 ;
19893   Xapian::Query *result = 0 ;
19894 
19895   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
19896   {
19897     std::string *ptr = (std::string *)0;
19898     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
19899     if (!SWIG_IsOK(res1)) {
19900       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Query" "', argument " "1"" of type '" "std::string const &""'");
19901     }
19902     if (!ptr) {
19903       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "1"" of type '" "std::string const &""'");
19904     }
19905     arg1 = ptr;
19906   }
19907   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
19908   if (!SWIG_IsOK(ecode2)) {
19909     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Query" "', argument " "2"" of type '" "Xapian::termcount""'");
19910   }
19911   arg2 = static_cast< Xapian::termcount >(val2);
19912   {
19913     try {
19914       {
19915         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19916         result = (Xapian::Query *)new Xapian::Query((std::string const &)*arg1,arg2);
19917         SWIG_PYTHON_THREAD_END_ALLOW;
19918       }
19919     } catch (...) {
19920       Xapian::SetPythonException();
19921       SWIG_fail;
19922     }
19923   }
19924   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_NEW |  0 );
19925   if (SWIG_IsNewObj(res1)) delete arg1;
19926   return resultobj;
19927 fail:
19928   if (SWIG_IsNewObj(res1)) delete arg1;
19929   return NULL;
19930 }
19931 
19932 
_wrap_new_Query__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)19933 SWIGINTERN PyObject *_wrap_new_Query__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
19934   PyObject *resultobj = 0;
19935   std::string *arg1 = 0 ;
19936   int res1 = SWIG_OLDOBJ ;
19937   Xapian::Query *result = 0 ;
19938 
19939   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
19940   {
19941     std::string *ptr = (std::string *)0;
19942     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
19943     if (!SWIG_IsOK(res1)) {
19944       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Query" "', argument " "1"" of type '" "std::string const &""'");
19945     }
19946     if (!ptr) {
19947       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "1"" of type '" "std::string const &""'");
19948     }
19949     arg1 = ptr;
19950   }
19951   {
19952     try {
19953       {
19954         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19955         result = (Xapian::Query *)new Xapian::Query((std::string const &)*arg1);
19956         SWIG_PYTHON_THREAD_END_ALLOW;
19957       }
19958     } catch (...) {
19959       Xapian::SetPythonException();
19960       SWIG_fail;
19961     }
19962   }
19963   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_NEW |  0 );
19964   if (SWIG_IsNewObj(res1)) delete arg1;
19965   return resultobj;
19966 fail:
19967   if (SWIG_IsNewObj(res1)) delete arg1;
19968   return NULL;
19969 }
19970 
19971 
_wrap_new_Query__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)19972 SWIGINTERN PyObject *_wrap_new_Query__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
19973   PyObject *resultobj = 0;
19974   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
19975   void *argp1 = 0 ;
19976   int res1 = 0 ;
19977   Xapian::Query *result = 0 ;
19978 
19979   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
19980   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
19981   if (!SWIG_IsOK(res1)) {
19982     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::PostingSource *""'");
19983   }
19984   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
19985   {
19986     try {
19987       {
19988         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19989         result = (Xapian::Query *)new Xapian::Query(arg1);
19990         SWIG_PYTHON_THREAD_END_ALLOW;
19991       }
19992     } catch (...) {
19993       Xapian::SetPythonException();
19994       SWIG_fail;
19995     }
19996   }
19997   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_NEW |  0 );
19998   return resultobj;
19999 fail:
20000   return NULL;
20001 }
20002 
20003 
_wrap_new_Query__SWIG_5(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)20004 SWIGINTERN PyObject *_wrap_new_Query__SWIG_5(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20005   PyObject *resultobj = 0;
20006   double arg1 ;
20007   Xapian::Query *arg2 = 0 ;
20008   double val1 ;
20009   int ecode1 = 0 ;
20010   void *argp2 = 0 ;
20011   int res2 = 0 ;
20012   Xapian::Query *result = 0 ;
20013 
20014   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
20015   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
20016   if (!SWIG_IsOK(ecode1)) {
20017     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Query" "', argument " "1"" of type '" "double""'");
20018   }
20019   arg1 = static_cast< double >(val1);
20020   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__Query,  0  | 0);
20021   if (!SWIG_IsOK(res2)) {
20022     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Query" "', argument " "2"" of type '" "Xapian::Query const &""'");
20023   }
20024   if (!argp2) {
20025     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "2"" of type '" "Xapian::Query const &""'");
20026   }
20027   arg2 = reinterpret_cast< Xapian::Query * >(argp2);
20028   {
20029     try {
20030       {
20031         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
20032         result = (Xapian::Query *)new Xapian::Query(arg1,(Xapian::Query const &)*arg2);
20033         SWIG_PYTHON_THREAD_END_ALLOW;
20034       }
20035     } catch (...) {
20036       Xapian::SetPythonException();
20037       SWIG_fail;
20038     }
20039   }
20040   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_NEW |  0 );
20041   return resultobj;
20042 fail:
20043   return NULL;
20044 }
20045 
20046 
_wrap_new_Query__SWIG_6(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)20047 SWIGINTERN PyObject *_wrap_new_Query__SWIG_6(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20048   PyObject *resultobj = 0;
20049   Xapian::Query::op arg1 ;
20050   Xapian::Query *arg2 = 0 ;
20051   double arg3 ;
20052   int val1 ;
20053   int ecode1 = 0 ;
20054   void *argp2 = 0 ;
20055   int res2 = 0 ;
20056   double val3 ;
20057   int ecode3 = 0 ;
20058   Xapian::Query *result = 0 ;
20059 
20060   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
20061   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
20062   if (!SWIG_IsOK(ecode1)) {
20063     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query::op""'");
20064   }
20065   arg1 = static_cast< Xapian::Query::op >(val1);
20066   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__Query,  0  | 0);
20067   if (!SWIG_IsOK(res2)) {
20068     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Query" "', argument " "2"" of type '" "Xapian::Query const &""'");
20069   }
20070   if (!argp2) {
20071     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "2"" of type '" "Xapian::Query const &""'");
20072   }
20073   arg2 = reinterpret_cast< Xapian::Query * >(argp2);
20074   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
20075   if (!SWIG_IsOK(ecode3)) {
20076     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Query" "', argument " "3"" of type '" "double""'");
20077   }
20078   arg3 = static_cast< double >(val3);
20079   {
20080     try {
20081       {
20082         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
20083         result = (Xapian::Query *)new Xapian::Query(arg1,(Xapian::Query const &)*arg2,arg3);
20084         SWIG_PYTHON_THREAD_END_ALLOW;
20085       }
20086     } catch (...) {
20087       Xapian::SetPythonException();
20088       SWIG_fail;
20089     }
20090   }
20091   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_NEW |  0 );
20092   return resultobj;
20093 fail:
20094   return NULL;
20095 }
20096 
20097 
_wrap_new_Query__SWIG_7(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)20098 SWIGINTERN PyObject *_wrap_new_Query__SWIG_7(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20099   PyObject *resultobj = 0;
20100   Xapian::Query::op arg1 ;
20101   Xapian::Query *arg2 = 0 ;
20102   Xapian::Query *arg3 = 0 ;
20103   int val1 ;
20104   int ecode1 = 0 ;
20105   void *argp2 = 0 ;
20106   int res2 = 0 ;
20107   void *argp3 = 0 ;
20108   int res3 = 0 ;
20109   Xapian::Query *result = 0 ;
20110 
20111   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
20112   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
20113   if (!SWIG_IsOK(ecode1)) {
20114     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query::op""'");
20115   }
20116   arg1 = static_cast< Xapian::Query::op >(val1);
20117   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__Query,  0  | 0);
20118   if (!SWIG_IsOK(res2)) {
20119     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Query" "', argument " "2"" of type '" "Xapian::Query const &""'");
20120   }
20121   if (!argp2) {
20122     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "2"" of type '" "Xapian::Query const &""'");
20123   }
20124   arg2 = reinterpret_cast< Xapian::Query * >(argp2);
20125   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Xapian__Query,  0  | 0);
20126   if (!SWIG_IsOK(res3)) {
20127     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Query" "', argument " "3"" of type '" "Xapian::Query const &""'");
20128   }
20129   if (!argp3) {
20130     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "3"" of type '" "Xapian::Query const &""'");
20131   }
20132   arg3 = reinterpret_cast< Xapian::Query * >(argp3);
20133   {
20134     try {
20135       {
20136         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
20137         result = (Xapian::Query *)new Xapian::Query(arg1,(Xapian::Query const &)*arg2,(Xapian::Query const &)*arg3);
20138         SWIG_PYTHON_THREAD_END_ALLOW;
20139       }
20140     } catch (...) {
20141       Xapian::SetPythonException();
20142       SWIG_fail;
20143     }
20144   }
20145   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_NEW |  0 );
20146   return resultobj;
20147 fail:
20148   return NULL;
20149 }
20150 
20151 
_wrap_new_Query__SWIG_8(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)20152 SWIGINTERN PyObject *_wrap_new_Query__SWIG_8(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20153   PyObject *resultobj = 0;
20154   Xapian::Query::op arg1 ;
20155   std::string *arg2 = 0 ;
20156   std::string *arg3 = 0 ;
20157   int val1 ;
20158   int ecode1 = 0 ;
20159   int res2 = SWIG_OLDOBJ ;
20160   int res3 = SWIG_OLDOBJ ;
20161   Xapian::Query *result = 0 ;
20162 
20163   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
20164   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
20165   if (!SWIG_IsOK(ecode1)) {
20166     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query::op""'");
20167   }
20168   arg1 = static_cast< Xapian::Query::op >(val1);
20169   {
20170     std::string *ptr = (std::string *)0;
20171     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
20172     if (!SWIG_IsOK(res2)) {
20173       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Query" "', argument " "2"" of type '" "std::string const &""'");
20174     }
20175     if (!ptr) {
20176       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "2"" of type '" "std::string const &""'");
20177     }
20178     arg2 = ptr;
20179   }
20180   {
20181     std::string *ptr = (std::string *)0;
20182     res3 = XapianSWIG_anystring_as_ptr(swig_obj[2], &ptr);
20183     if (!SWIG_IsOK(res3)) {
20184       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Query" "', argument " "3"" of type '" "std::string const &""'");
20185     }
20186     if (!ptr) {
20187       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "3"" of type '" "std::string const &""'");
20188     }
20189     arg3 = ptr;
20190   }
20191   {
20192     try {
20193       {
20194         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
20195         result = (Xapian::Query *)new Xapian::Query(arg1,(std::string const &)*arg2,(std::string const &)*arg3);
20196         SWIG_PYTHON_THREAD_END_ALLOW;
20197       }
20198     } catch (...) {
20199       Xapian::SetPythonException();
20200       SWIG_fail;
20201     }
20202   }
20203   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_NEW |  0 );
20204   if (SWIG_IsNewObj(res2)) delete arg2;
20205   if (SWIG_IsNewObj(res3)) delete arg3;
20206   return resultobj;
20207 fail:
20208   if (SWIG_IsNewObj(res2)) delete arg2;
20209   if (SWIG_IsNewObj(res3)) delete arg3;
20210   return NULL;
20211 }
20212 
20213 
_wrap_new_Query__SWIG_9(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)20214 SWIGINTERN PyObject *_wrap_new_Query__SWIG_9(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20215   PyObject *resultobj = 0;
20216   Xapian::Query::op arg1 ;
20217   Xapian::valueno arg2 ;
20218   std::string *arg3 = 0 ;
20219   int val1 ;
20220   int ecode1 = 0 ;
20221   unsigned int val2 ;
20222   int ecode2 = 0 ;
20223   int res3 = SWIG_OLDOBJ ;
20224   Xapian::Query *result = 0 ;
20225 
20226   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
20227   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
20228   if (!SWIG_IsOK(ecode1)) {
20229     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query::op""'");
20230   }
20231   arg1 = static_cast< Xapian::Query::op >(val1);
20232   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
20233   if (!SWIG_IsOK(ecode2)) {
20234     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Query" "', argument " "2"" of type '" "Xapian::valueno""'");
20235   }
20236   arg2 = static_cast< Xapian::valueno >(val2);
20237   {
20238     std::string *ptr = (std::string *)0;
20239     res3 = XapianSWIG_anystring_as_ptr(swig_obj[2], &ptr);
20240     if (!SWIG_IsOK(res3)) {
20241       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Query" "', argument " "3"" of type '" "std::string const &""'");
20242     }
20243     if (!ptr) {
20244       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "3"" of type '" "std::string const &""'");
20245     }
20246     arg3 = ptr;
20247   }
20248   {
20249     try {
20250       {
20251         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
20252         result = (Xapian::Query *)new Xapian::Query(arg1,arg2,(std::string const &)*arg3);
20253         SWIG_PYTHON_THREAD_END_ALLOW;
20254       }
20255     } catch (...) {
20256       Xapian::SetPythonException();
20257       SWIG_fail;
20258     }
20259   }
20260   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_NEW |  0 );
20261   if (SWIG_IsNewObj(res3)) delete arg3;
20262   return resultobj;
20263 fail:
20264   if (SWIG_IsNewObj(res3)) delete arg3;
20265   return NULL;
20266 }
20267 
20268 
_wrap_new_Query__SWIG_10(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)20269 SWIGINTERN PyObject *_wrap_new_Query__SWIG_10(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20270   PyObject *resultobj = 0;
20271   Xapian::Query::op arg1 ;
20272   Xapian::valueno arg2 ;
20273   std::string *arg3 = 0 ;
20274   std::string *arg4 = 0 ;
20275   int val1 ;
20276   int ecode1 = 0 ;
20277   unsigned int val2 ;
20278   int ecode2 = 0 ;
20279   int res3 = SWIG_OLDOBJ ;
20280   int res4 = SWIG_OLDOBJ ;
20281   Xapian::Query *result = 0 ;
20282 
20283   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
20284   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
20285   if (!SWIG_IsOK(ecode1)) {
20286     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query::op""'");
20287   }
20288   arg1 = static_cast< Xapian::Query::op >(val1);
20289   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
20290   if (!SWIG_IsOK(ecode2)) {
20291     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Query" "', argument " "2"" of type '" "Xapian::valueno""'");
20292   }
20293   arg2 = static_cast< Xapian::valueno >(val2);
20294   {
20295     std::string *ptr = (std::string *)0;
20296     res3 = XapianSWIG_anystring_as_ptr(swig_obj[2], &ptr);
20297     if (!SWIG_IsOK(res3)) {
20298       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Query" "', argument " "3"" of type '" "std::string const &""'");
20299     }
20300     if (!ptr) {
20301       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "3"" of type '" "std::string const &""'");
20302     }
20303     arg3 = ptr;
20304   }
20305   {
20306     std::string *ptr = (std::string *)0;
20307     res4 = XapianSWIG_anystring_as_ptr(swig_obj[3], &ptr);
20308     if (!SWIG_IsOK(res4)) {
20309       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Query" "', argument " "4"" of type '" "std::string const &""'");
20310     }
20311     if (!ptr) {
20312       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "4"" of type '" "std::string const &""'");
20313     }
20314     arg4 = ptr;
20315   }
20316   {
20317     try {
20318       {
20319         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
20320         result = (Xapian::Query *)new Xapian::Query(arg1,arg2,(std::string const &)*arg3,(std::string const &)*arg4);
20321         SWIG_PYTHON_THREAD_END_ALLOW;
20322       }
20323     } catch (...) {
20324       Xapian::SetPythonException();
20325       SWIG_fail;
20326     }
20327   }
20328   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_NEW |  0 );
20329   if (SWIG_IsNewObj(res3)) delete arg3;
20330   if (SWIG_IsNewObj(res4)) delete arg4;
20331   return resultobj;
20332 fail:
20333   if (SWIG_IsNewObj(res3)) delete arg3;
20334   if (SWIG_IsNewObj(res4)) delete arg4;
20335   return NULL;
20336 }
20337 
20338 
_wrap_new_Query__SWIG_11(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)20339 SWIGINTERN PyObject *_wrap_new_Query__SWIG_11(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20340   PyObject *resultobj = 0;
20341   Xapian::Query::op arg1 ;
20342   std::string *arg2 = 0 ;
20343   Xapian::termcount arg3 ;
20344   int arg4 ;
20345   Xapian::Query::op arg5 ;
20346   int val1 ;
20347   int ecode1 = 0 ;
20348   int res2 = SWIG_OLDOBJ ;
20349   unsigned int val3 ;
20350   int ecode3 = 0 ;
20351   int val4 ;
20352   int ecode4 = 0 ;
20353   int val5 ;
20354   int ecode5 = 0 ;
20355   Xapian::Query *result = 0 ;
20356 
20357   if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
20358   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
20359   if (!SWIG_IsOK(ecode1)) {
20360     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query::op""'");
20361   }
20362   arg1 = static_cast< Xapian::Query::op >(val1);
20363   {
20364     std::string *ptr = (std::string *)0;
20365     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
20366     if (!SWIG_IsOK(res2)) {
20367       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Query" "', argument " "2"" of type '" "std::string const &""'");
20368     }
20369     if (!ptr) {
20370       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "2"" of type '" "std::string const &""'");
20371     }
20372     arg2 = ptr;
20373   }
20374   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
20375   if (!SWIG_IsOK(ecode3)) {
20376     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Query" "', argument " "3"" of type '" "Xapian::termcount""'");
20377   }
20378   arg3 = static_cast< Xapian::termcount >(val3);
20379   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
20380   if (!SWIG_IsOK(ecode4)) {
20381     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Query" "', argument " "4"" of type '" "int""'");
20382   }
20383   arg4 = static_cast< int >(val4);
20384   ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
20385   if (!SWIG_IsOK(ecode5)) {
20386     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Query" "', argument " "5"" of type '" "Xapian::Query::op""'");
20387   }
20388   arg5 = static_cast< Xapian::Query::op >(val5);
20389   {
20390     try {
20391       {
20392         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
20393         result = (Xapian::Query *)new Xapian::Query(arg1,(std::string const &)*arg2,arg3,arg4,arg5);
20394         SWIG_PYTHON_THREAD_END_ALLOW;
20395       }
20396     } catch (...) {
20397       Xapian::SetPythonException();
20398       SWIG_fail;
20399     }
20400   }
20401   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_NEW |  0 );
20402   if (SWIG_IsNewObj(res2)) delete arg2;
20403   return resultobj;
20404 fail:
20405   if (SWIG_IsNewObj(res2)) delete arg2;
20406   return NULL;
20407 }
20408 
20409 
_wrap_new_Query__SWIG_12(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)20410 SWIGINTERN PyObject *_wrap_new_Query__SWIG_12(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20411   PyObject *resultobj = 0;
20412   Xapian::Query::op arg1 ;
20413   std::string *arg2 = 0 ;
20414   Xapian::termcount arg3 ;
20415   int arg4 ;
20416   int val1 ;
20417   int ecode1 = 0 ;
20418   int res2 = SWIG_OLDOBJ ;
20419   unsigned int val3 ;
20420   int ecode3 = 0 ;
20421   int val4 ;
20422   int ecode4 = 0 ;
20423   Xapian::Query *result = 0 ;
20424 
20425   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
20426   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
20427   if (!SWIG_IsOK(ecode1)) {
20428     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query::op""'");
20429   }
20430   arg1 = static_cast< Xapian::Query::op >(val1);
20431   {
20432     std::string *ptr = (std::string *)0;
20433     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
20434     if (!SWIG_IsOK(res2)) {
20435       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Query" "', argument " "2"" of type '" "std::string const &""'");
20436     }
20437     if (!ptr) {
20438       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "2"" of type '" "std::string const &""'");
20439     }
20440     arg2 = ptr;
20441   }
20442   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
20443   if (!SWIG_IsOK(ecode3)) {
20444     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Query" "', argument " "3"" of type '" "Xapian::termcount""'");
20445   }
20446   arg3 = static_cast< Xapian::termcount >(val3);
20447   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
20448   if (!SWIG_IsOK(ecode4)) {
20449     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Query" "', argument " "4"" of type '" "int""'");
20450   }
20451   arg4 = static_cast< int >(val4);
20452   {
20453     try {
20454       {
20455         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
20456         result = (Xapian::Query *)new Xapian::Query(arg1,(std::string const &)*arg2,arg3,arg4);
20457         SWIG_PYTHON_THREAD_END_ALLOW;
20458       }
20459     } catch (...) {
20460       Xapian::SetPythonException();
20461       SWIG_fail;
20462     }
20463   }
20464   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_NEW |  0 );
20465   if (SWIG_IsNewObj(res2)) delete arg2;
20466   return resultobj;
20467 fail:
20468   if (SWIG_IsNewObj(res2)) delete arg2;
20469   return NULL;
20470 }
20471 
20472 
_wrap_new_Query__SWIG_13(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)20473 SWIGINTERN PyObject *_wrap_new_Query__SWIG_13(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20474   PyObject *resultobj = 0;
20475   Xapian::Query::op arg1 ;
20476   std::string *arg2 = 0 ;
20477   Xapian::termcount arg3 ;
20478   int val1 ;
20479   int ecode1 = 0 ;
20480   int res2 = SWIG_OLDOBJ ;
20481   unsigned int val3 ;
20482   int ecode3 = 0 ;
20483   Xapian::Query *result = 0 ;
20484 
20485   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
20486   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
20487   if (!SWIG_IsOK(ecode1)) {
20488     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query::op""'");
20489   }
20490   arg1 = static_cast< Xapian::Query::op >(val1);
20491   {
20492     std::string *ptr = (std::string *)0;
20493     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
20494     if (!SWIG_IsOK(res2)) {
20495       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Query" "', argument " "2"" of type '" "std::string const &""'");
20496     }
20497     if (!ptr) {
20498       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "2"" of type '" "std::string const &""'");
20499     }
20500     arg2 = ptr;
20501   }
20502   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
20503   if (!SWIG_IsOK(ecode3)) {
20504     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Query" "', argument " "3"" of type '" "Xapian::termcount""'");
20505   }
20506   arg3 = static_cast< Xapian::termcount >(val3);
20507   {
20508     try {
20509       {
20510         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
20511         result = (Xapian::Query *)new Xapian::Query(arg1,(std::string const &)*arg2,arg3);
20512         SWIG_PYTHON_THREAD_END_ALLOW;
20513       }
20514     } catch (...) {
20515       Xapian::SetPythonException();
20516       SWIG_fail;
20517     }
20518   }
20519   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_NEW |  0 );
20520   if (SWIG_IsNewObj(res2)) delete arg2;
20521   return resultobj;
20522 fail:
20523   if (SWIG_IsNewObj(res2)) delete arg2;
20524   return NULL;
20525 }
20526 
20527 
_wrap_new_Query__SWIG_14(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)20528 SWIGINTERN PyObject *_wrap_new_Query__SWIG_14(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20529   PyObject *resultobj = 0;
20530   Xapian::Query::op arg1 ;
20531   std::string *arg2 = 0 ;
20532   int val1 ;
20533   int ecode1 = 0 ;
20534   int res2 = SWIG_OLDOBJ ;
20535   Xapian::Query *result = 0 ;
20536 
20537   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
20538   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
20539   if (!SWIG_IsOK(ecode1)) {
20540     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query::op""'");
20541   }
20542   arg1 = static_cast< Xapian::Query::op >(val1);
20543   {
20544     std::string *ptr = (std::string *)0;
20545     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
20546     if (!SWIG_IsOK(res2)) {
20547       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Query" "', argument " "2"" of type '" "std::string const &""'");
20548     }
20549     if (!ptr) {
20550       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "2"" of type '" "std::string const &""'");
20551     }
20552     arg2 = ptr;
20553   }
20554   {
20555     try {
20556       {
20557         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
20558         result = (Xapian::Query *)new Xapian::Query(arg1,(std::string const &)*arg2);
20559         SWIG_PYTHON_THREAD_END_ALLOW;
20560       }
20561     } catch (...) {
20562       Xapian::SetPythonException();
20563       SWIG_fail;
20564     }
20565   }
20566   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_NEW |  0 );
20567   if (SWIG_IsNewObj(res2)) delete arg2;
20568   return resultobj;
20569 fail:
20570   if (SWIG_IsNewObj(res2)) delete arg2;
20571   return NULL;
20572 }
20573 
20574 
_wrap_new_Query__SWIG_17(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)20575 SWIGINTERN PyObject *_wrap_new_Query__SWIG_17(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20576   PyObject *resultobj = 0;
20577   Xapian::Query::op arg1 ;
20578   XapianSWIGQueryItor arg2 ;
20579   XapianSWIGQueryItor arg3 ;
20580   Xapian::termcount arg4 ;
20581   int val1 ;
20582   int ecode1 = 0 ;
20583   unsigned int val4 ;
20584   int ecode4 = 0 ;
20585   Xapian::Query *result = 0 ;
20586 
20587   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
20588   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
20589   if (!SWIG_IsOK(ecode1)) {
20590     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query::op""'");
20591   }
20592   arg1 = static_cast< Xapian::Query::op >(val1);
20593   {
20594     PyObject * seq;
20595     seq = PySequence_Fast(swig_obj[1],
20596       "expected sequence of Query objects and/or strings");
20597     if (!seq) SWIG_fail;
20598     (&arg2)->begin(seq);
20599     (&arg3)->end(seq);
20600   }
20601   ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val4);
20602   if (!SWIG_IsOK(ecode4)) {
20603     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Query" "', argument " "4"" of type '" "Xapian::termcount""'");
20604   }
20605   arg4 = static_cast< Xapian::termcount >(val4);
20606   {
20607     try {
20608       result = (Xapian::Query *)new Xapian::Query(arg1,arg2,arg3,arg4);
20609     } catch (...) {
20610       Xapian::SetPythonException();
20611       SWIG_fail;
20612     }
20613   }
20614   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_NEW |  0 );
20615   (&arg2)->free_seq();
20616   return resultobj;
20617 fail:
20618   (&arg2)->free_seq();
20619   return NULL;
20620 }
20621 
20622 
_wrap_new_Query__SWIG_18(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)20623 SWIGINTERN PyObject *_wrap_new_Query__SWIG_18(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20624   PyObject *resultobj = 0;
20625   Xapian::Query::op arg1 ;
20626   XapianSWIGQueryItor arg2 ;
20627   XapianSWIGQueryItor arg3 ;
20628   int val1 ;
20629   int ecode1 = 0 ;
20630   Xapian::Query *result = 0 ;
20631 
20632   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
20633   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
20634   if (!SWIG_IsOK(ecode1)) {
20635     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query::op""'");
20636   }
20637   arg1 = static_cast< Xapian::Query::op >(val1);
20638   {
20639     PyObject * seq;
20640     seq = PySequence_Fast(swig_obj[1],
20641       "expected sequence of Query objects and/or strings");
20642     if (!seq) SWIG_fail;
20643     (&arg2)->begin(seq);
20644     (&arg3)->end(seq);
20645   }
20646   {
20647     try {
20648       result = (Xapian::Query *)new Xapian::Query(arg1,arg2,arg3);
20649     } catch (...) {
20650       Xapian::SetPythonException();
20651       SWIG_fail;
20652     }
20653   }
20654   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_NEW |  0 );
20655   (&arg2)->free_seq();
20656   return resultobj;
20657 fail:
20658   (&arg2)->free_seq();
20659   return NULL;
20660 }
20661 
20662 
_wrap_Query__get_terms_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20663 SWIGINTERN PyObject *_wrap_Query__get_terms_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20664   PyObject *resultobj = 0;
20665   Xapian::Query *arg1 = (Xapian::Query *) 0 ;
20666   void *argp1 = 0 ;
20667   int res1 = 0 ;
20668   PyObject *swig_obj[1] ;
20669   Xapian::TermIterator result;
20670 
20671   if (!args) SWIG_fail;
20672   swig_obj[0] = args;
20673   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Query, 0 |  0 );
20674   if (!SWIG_IsOK(res1)) {
20675     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Query__get_terms_begin" "', argument " "1"" of type '" "Xapian::Query const *""'");
20676   }
20677   arg1 = reinterpret_cast< Xapian::Query * >(argp1);
20678   {
20679     try {
20680       {
20681         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
20682         result = ((Xapian::Query const *)arg1)->get_terms_begin();
20683         SWIG_PYTHON_THREAD_END_ALLOW;
20684       }
20685     } catch (...) {
20686       Xapian::SetPythonException();
20687       SWIG_fail;
20688     }
20689   }
20690   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
20691   return resultobj;
20692 fail:
20693   return NULL;
20694 }
20695 
20696 
_wrap_Query__get_terms_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20697 SWIGINTERN PyObject *_wrap_Query__get_terms_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20698   PyObject *resultobj = 0;
20699   Xapian::Query *arg1 = (Xapian::Query *) 0 ;
20700   void *argp1 = 0 ;
20701   int res1 = 0 ;
20702   PyObject *swig_obj[1] ;
20703   Xapian::TermIterator result;
20704 
20705   if (!args) SWIG_fail;
20706   swig_obj[0] = args;
20707   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Query, 0 |  0 );
20708   if (!SWIG_IsOK(res1)) {
20709     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Query__get_terms_end" "', argument " "1"" of type '" "Xapian::Query const *""'");
20710   }
20711   arg1 = reinterpret_cast< Xapian::Query * >(argp1);
20712   {
20713     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
20714     result = ((Xapian::Query const *)arg1)->get_terms_end();
20715     SWIG_PYTHON_THREAD_END_ALLOW;
20716   }
20717   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
20718   return resultobj;
20719 fail:
20720   return NULL;
20721 }
20722 
20723 
_wrap_Query_get_unique_terms_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20724 SWIGINTERN PyObject *_wrap_Query_get_unique_terms_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20725   PyObject *resultobj = 0;
20726   Xapian::Query *arg1 = (Xapian::Query *) 0 ;
20727   void *argp1 = 0 ;
20728   int res1 = 0 ;
20729   PyObject *swig_obj[1] ;
20730   Xapian::TermIterator result;
20731 
20732   if (!args) SWIG_fail;
20733   swig_obj[0] = args;
20734   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Query, 0 |  0 );
20735   if (!SWIG_IsOK(res1)) {
20736     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Query_get_unique_terms_begin" "', argument " "1"" of type '" "Xapian::Query const *""'");
20737   }
20738   arg1 = reinterpret_cast< Xapian::Query * >(argp1);
20739   {
20740     try {
20741       {
20742         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
20743         result = ((Xapian::Query const *)arg1)->get_unique_terms_begin();
20744         SWIG_PYTHON_THREAD_END_ALLOW;
20745       }
20746     } catch (...) {
20747       Xapian::SetPythonException();
20748       SWIG_fail;
20749     }
20750   }
20751   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
20752   return resultobj;
20753 fail:
20754   return NULL;
20755 }
20756 
20757 
_wrap_Query_get_unique_terms_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20758 SWIGINTERN PyObject *_wrap_Query_get_unique_terms_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20759   PyObject *resultobj = 0;
20760   Xapian::Query *arg1 = (Xapian::Query *) 0 ;
20761   void *argp1 = 0 ;
20762   int res1 = 0 ;
20763   PyObject *swig_obj[1] ;
20764   Xapian::TermIterator result;
20765 
20766   if (!args) SWIG_fail;
20767   swig_obj[0] = args;
20768   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Query, 0 |  0 );
20769   if (!SWIG_IsOK(res1)) {
20770     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Query_get_unique_terms_end" "', argument " "1"" of type '" "Xapian::Query const *""'");
20771   }
20772   arg1 = reinterpret_cast< Xapian::Query * >(argp1);
20773   {
20774     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
20775     result = ((Xapian::Query const *)arg1)->get_unique_terms_end();
20776     SWIG_PYTHON_THREAD_END_ALLOW;
20777   }
20778   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
20779   return resultobj;
20780 fail:
20781   return NULL;
20782 }
20783 
20784 
_wrap_Query_get_length(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20785 SWIGINTERN PyObject *_wrap_Query_get_length(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20786   PyObject *resultobj = 0;
20787   Xapian::Query *arg1 = (Xapian::Query *) 0 ;
20788   void *argp1 = 0 ;
20789   int res1 = 0 ;
20790   PyObject *swig_obj[1] ;
20791   Xapian::termcount result;
20792 
20793   if (!args) SWIG_fail;
20794   swig_obj[0] = args;
20795   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Query, 0 |  0 );
20796   if (!SWIG_IsOK(res1)) {
20797     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Query_get_length" "', argument " "1"" of type '" "Xapian::Query const *""'");
20798   }
20799   arg1 = reinterpret_cast< Xapian::Query * >(argp1);
20800   {
20801     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
20802     result = (Xapian::termcount)((Xapian::Query const *)arg1)->get_length();
20803     SWIG_PYTHON_THREAD_END_ALLOW;
20804   }
20805   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
20806   return resultobj;
20807 fail:
20808   return NULL;
20809 }
20810 
20811 
_wrap_Query_empty(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20812 SWIGINTERN PyObject *_wrap_Query_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20813   PyObject *resultobj = 0;
20814   Xapian::Query *arg1 = (Xapian::Query *) 0 ;
20815   void *argp1 = 0 ;
20816   int res1 = 0 ;
20817   PyObject *swig_obj[1] ;
20818   bool result;
20819 
20820   if (!args) SWIG_fail;
20821   swig_obj[0] = args;
20822   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Query, 0 |  0 );
20823   if (!SWIG_IsOK(res1)) {
20824     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Query_empty" "', argument " "1"" of type '" "Xapian::Query const *""'");
20825   }
20826   arg1 = reinterpret_cast< Xapian::Query * >(argp1);
20827   {
20828     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
20829     result = (bool)((Xapian::Query const *)arg1)->empty();
20830     SWIG_PYTHON_THREAD_END_ALLOW;
20831   }
20832   resultobj = SWIG_From_bool(static_cast< bool >(result));
20833   return resultobj;
20834 fail:
20835   return NULL;
20836 }
20837 
20838 
_wrap_Query_serialise(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20839 SWIGINTERN PyObject *_wrap_Query_serialise(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20840   PyObject *resultobj = 0;
20841   Xapian::Query *arg1 = (Xapian::Query *) 0 ;
20842   void *argp1 = 0 ;
20843   int res1 = 0 ;
20844   PyObject *swig_obj[1] ;
20845   std::string result;
20846 
20847   if (!args) SWIG_fail;
20848   swig_obj[0] = args;
20849   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Query, 0 |  0 );
20850   if (!SWIG_IsOK(res1)) {
20851     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Query_serialise" "', argument " "1"" of type '" "Xapian::Query const *""'");
20852   }
20853   arg1 = reinterpret_cast< Xapian::Query * >(argp1);
20854   {
20855     try {
20856       {
20857         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
20858         result = ((Xapian::Query const *)arg1)->serialise();
20859         SWIG_PYTHON_THREAD_END_ALLOW;
20860       }
20861     } catch (...) {
20862       Xapian::SetPythonException();
20863       SWIG_fail;
20864     }
20865   }
20866   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
20867   return resultobj;
20868 fail:
20869   return NULL;
20870 }
20871 
20872 
_wrap_Query_unserialise__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)20873 SWIGINTERN PyObject *_wrap_Query_unserialise__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20874   PyObject *resultobj = 0;
20875   std::string *arg1 = 0 ;
20876   Xapian::Registry *arg2 = 0 ;
20877   int res1 = SWIG_OLDOBJ ;
20878   void *argp2 = 0 ;
20879   int res2 = 0 ;
20880   Xapian::Query result;
20881 
20882   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
20883   {
20884     std::string *ptr = (std::string *)0;
20885     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
20886     if (!SWIG_IsOK(res1)) {
20887       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Query_unserialise" "', argument " "1"" of type '" "std::string const &""'");
20888     }
20889     if (!ptr) {
20890       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Query_unserialise" "', argument " "1"" of type '" "std::string const &""'");
20891     }
20892     arg1 = ptr;
20893   }
20894   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__Registry,  0  | 0);
20895   if (!SWIG_IsOK(res2)) {
20896     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Query_unserialise" "', argument " "2"" of type '" "Xapian::Registry const &""'");
20897   }
20898   if (!argp2) {
20899     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Query_unserialise" "', argument " "2"" of type '" "Xapian::Registry const &""'");
20900   }
20901   arg2 = reinterpret_cast< Xapian::Registry * >(argp2);
20902   {
20903     try {
20904       {
20905         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
20906         result = Xapian::Query::unserialise((std::string const &)*arg1,(Xapian::Registry const &)*arg2);
20907         SWIG_PYTHON_THREAD_END_ALLOW;
20908       }
20909     } catch (...) {
20910       Xapian::SetPythonException();
20911       SWIG_fail;
20912     }
20913   }
20914   resultobj = SWIG_NewPointerObj((new Xapian::Query(static_cast< const Xapian::Query& >(result))), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_OWN |  0 );
20915   if (SWIG_IsNewObj(res1)) delete arg1;
20916   return resultobj;
20917 fail:
20918   if (SWIG_IsNewObj(res1)) delete arg1;
20919   return NULL;
20920 }
20921 
20922 
_wrap_Query_unserialise__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)20923 SWIGINTERN PyObject *_wrap_Query_unserialise__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20924   PyObject *resultobj = 0;
20925   std::string *arg1 = 0 ;
20926   int res1 = SWIG_OLDOBJ ;
20927   Xapian::Query result;
20928 
20929   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
20930   {
20931     std::string *ptr = (std::string *)0;
20932     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
20933     if (!SWIG_IsOK(res1)) {
20934       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Query_unserialise" "', argument " "1"" of type '" "std::string const &""'");
20935     }
20936     if (!ptr) {
20937       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Query_unserialise" "', argument " "1"" of type '" "std::string const &""'");
20938     }
20939     arg1 = ptr;
20940   }
20941   {
20942     try {
20943       {
20944         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
20945         result = Xapian::Query::unserialise((std::string const &)*arg1);
20946         SWIG_PYTHON_THREAD_END_ALLOW;
20947       }
20948     } catch (...) {
20949       Xapian::SetPythonException();
20950       SWIG_fail;
20951     }
20952   }
20953   resultobj = SWIG_NewPointerObj((new Xapian::Query(static_cast< const Xapian::Query& >(result))), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_OWN |  0 );
20954   if (SWIG_IsNewObj(res1)) delete arg1;
20955   return resultobj;
20956 fail:
20957   if (SWIG_IsNewObj(res1)) delete arg1;
20958   return NULL;
20959 }
20960 
20961 
_wrap_Query_unserialise(PyObject * self,PyObject * args)20962 SWIGINTERN PyObject *_wrap_Query_unserialise(PyObject *self, PyObject *args) {
20963   Py_ssize_t argc;
20964   PyObject *argv[3] = {
20965     0
20966   };
20967 
20968   if (!(argc = SWIG_Python_UnpackTuple(args,"Query_unserialise",0,2,argv))) SWIG_fail;
20969   --argc;
20970   if (argc == 1) {
20971     return _wrap_Query_unserialise__SWIG_1(self, argc, argv);
20972   }
20973   if (argc == 2) {
20974     return _wrap_Query_unserialise__SWIG_0(self, argc, argv);
20975   }
20976 
20977 fail:
20978   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Query_unserialise'.\n"
20979     "  Possible C/C++ prototypes are:\n"
20980     "    Xapian::Query::unserialise(std::string const &,Xapian::Registry const &)\n"
20981     "    Xapian::Query::unserialise(std::string const &)\n");
20982   return 0;
20983 }
20984 
20985 
_wrap_Query_get_type(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20986 SWIGINTERN PyObject *_wrap_Query_get_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20987   PyObject *resultobj = 0;
20988   Xapian::Query *arg1 = (Xapian::Query *) 0 ;
20989   void *argp1 = 0 ;
20990   int res1 = 0 ;
20991   PyObject *swig_obj[1] ;
20992   Xapian::Query::op result;
20993 
20994   if (!args) SWIG_fail;
20995   swig_obj[0] = args;
20996   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Query, 0 |  0 );
20997   if (!SWIG_IsOK(res1)) {
20998     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Query_get_type" "', argument " "1"" of type '" "Xapian::Query const *""'");
20999   }
21000   arg1 = reinterpret_cast< Xapian::Query * >(argp1);
21001   {
21002     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
21003     result = (Xapian::Query::op)((Xapian::Query const *)arg1)->get_type();
21004     SWIG_PYTHON_THREAD_END_ALLOW;
21005   }
21006   resultobj = SWIG_From_int(static_cast< int >(result));
21007   return resultobj;
21008 fail:
21009   return NULL;
21010 }
21011 
21012 
_wrap_Query_get_num_subqueries(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21013 SWIGINTERN PyObject *_wrap_Query_get_num_subqueries(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21014   PyObject *resultobj = 0;
21015   Xapian::Query *arg1 = (Xapian::Query *) 0 ;
21016   void *argp1 = 0 ;
21017   int res1 = 0 ;
21018   PyObject *swig_obj[1] ;
21019   size_t result;
21020 
21021   if (!args) SWIG_fail;
21022   swig_obj[0] = args;
21023   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Query, 0 |  0 );
21024   if (!SWIG_IsOK(res1)) {
21025     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Query_get_num_subqueries" "', argument " "1"" of type '" "Xapian::Query const *""'");
21026   }
21027   arg1 = reinterpret_cast< Xapian::Query * >(argp1);
21028   {
21029     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
21030     result = ((Xapian::Query const *)arg1)->get_num_subqueries();
21031     SWIG_PYTHON_THREAD_END_ALLOW;
21032   }
21033   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
21034   return resultobj;
21035 fail:
21036   return NULL;
21037 }
21038 
21039 
_wrap_Query_get_subquery(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21040 SWIGINTERN PyObject *_wrap_Query_get_subquery(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21041   PyObject *resultobj = 0;
21042   Xapian::Query *arg1 = (Xapian::Query *) 0 ;
21043   size_t arg2 ;
21044   void *argp1 = 0 ;
21045   int res1 = 0 ;
21046   size_t val2 ;
21047   int ecode2 = 0 ;
21048   PyObject *swig_obj[2] ;
21049   Xapian::Query result;
21050 
21051   if (!SWIG_Python_UnpackTuple(args,"Query_get_subquery",2,2,swig_obj)) SWIG_fail;
21052   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Query, 0 |  0 );
21053   if (!SWIG_IsOK(res1)) {
21054     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Query_get_subquery" "', argument " "1"" of type '" "Xapian::Query const *""'");
21055   }
21056   arg1 = reinterpret_cast< Xapian::Query * >(argp1);
21057   ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
21058   if (!SWIG_IsOK(ecode2)) {
21059     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Query_get_subquery" "', argument " "2"" of type '" "size_t""'");
21060   }
21061   arg2 = static_cast< size_t >(val2);
21062   {
21063     try {
21064       {
21065         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
21066         result = ((Xapian::Query const *)arg1)->get_subquery(arg2);
21067         SWIG_PYTHON_THREAD_END_ALLOW;
21068       }
21069     } catch (...) {
21070       Xapian::SetPythonException();
21071       SWIG_fail;
21072     }
21073   }
21074   resultobj = SWIG_NewPointerObj((new Xapian::Query(static_cast< const Xapian::Query& >(result))), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_OWN |  0 );
21075   return resultobj;
21076 fail:
21077   return NULL;
21078 }
21079 
21080 
_wrap_Query___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21081 SWIGINTERN PyObject *_wrap_Query___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21082   PyObject *resultobj = 0;
21083   Xapian::Query *arg1 = (Xapian::Query *) 0 ;
21084   void *argp1 = 0 ;
21085   int res1 = 0 ;
21086   PyObject *swig_obj[1] ;
21087   std::string result;
21088 
21089   if (!args) SWIG_fail;
21090   swig_obj[0] = args;
21091   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Query, 0 |  0 );
21092   if (!SWIG_IsOK(res1)) {
21093     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Query___str__" "', argument " "1"" of type '" "Xapian::Query const *""'");
21094   }
21095   arg1 = reinterpret_cast< Xapian::Query * >(argp1);
21096   {
21097     try {
21098       {
21099         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
21100         result = ((Xapian::Query const *)arg1)->get_description();
21101         SWIG_PYTHON_THREAD_END_ALLOW;
21102       }
21103     } catch (...) {
21104       Xapian::SetPythonException();
21105       SWIG_fail;
21106     }
21107   }
21108   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
21109   return resultobj;
21110 fail:
21111   return NULL;
21112 }
21113 
21114 
_wrap_new_Query__SWIG_19(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)21115 SWIGINTERN PyObject *_wrap_new_Query__SWIG_19(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
21116   PyObject *resultobj = 0;
21117   Xapian::Query::op arg1 ;
21118   int val1 ;
21119   int ecode1 = 0 ;
21120   Xapian::Query *result = 0 ;
21121 
21122   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
21123   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
21124   if (!SWIG_IsOK(ecode1)) {
21125     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query::op""'");
21126   }
21127   arg1 = static_cast< Xapian::Query::op >(val1);
21128   {
21129     try {
21130       {
21131         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
21132         result = (Xapian::Query *)new Xapian::Query(arg1);
21133         SWIG_PYTHON_THREAD_END_ALLOW;
21134       }
21135     } catch (...) {
21136       Xapian::SetPythonException();
21137       SWIG_fail;
21138     }
21139   }
21140   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_NEW |  0 );
21141   return resultobj;
21142 fail:
21143   return NULL;
21144 }
21145 
21146 
_wrap_new_Query(PyObject * self,PyObject * args)21147 SWIGINTERN PyObject *_wrap_new_Query(PyObject *self, PyObject *args) {
21148   Py_ssize_t argc;
21149   PyObject *argv[6] = {
21150     0
21151   };
21152 
21153   if (!(argc = SWIG_Python_UnpackTuple(args,"new_Query",0,5,argv))) SWIG_fail;
21154   --argc;
21155   if (argc == 0) {
21156     return _wrap_new_Query__SWIG_0(self, argc, argv);
21157   }
21158   if (argc == 1) {
21159     int _v = 0;
21160     {
21161       void *vptr = 0;
21162       int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__PostingSource, 0);
21163       _v = SWIG_CheckState(res);
21164     }
21165     if (!_v) goto check_2;
21166     return _wrap_new_Query__SWIG_4(self, argc, argv);
21167   }
21168 check_2:
21169 
21170   if (argc == 1) {
21171     int _v = 0;
21172     {
21173       {
21174         int res = SWIG_AsVal_int(argv[0], NULL);
21175         _v = SWIG_CheckState(res);
21176       }
21177     }
21178     if (!_v) goto check_3;
21179     return _wrap_new_Query__SWIG_19(self, argc, argv);
21180   }
21181 check_3:
21182 
21183   if (argc == 1) {
21184     return _wrap_new_Query__SWIG_3(self, argc, argv);
21185   }
21186   if (argc == 2) {
21187     int _v = 0;
21188     {
21189       {
21190         int res = SWIG_AsVal_int(argv[0], NULL);
21191         _v = SWIG_CheckState(res);
21192       }
21193     }
21194     if (!_v) goto check_5;
21195     {
21196       {
21197         // Checking for a sequence is enough to disambiguate currently.
21198         _v = PySequence_Check(argv[1]);
21199       }
21200     }
21201     if (!_v) goto check_5;
21202     return _wrap_new_Query__SWIG_18(self, argc, argv);
21203   }
21204 check_5:
21205 
21206   if (argc == 2) {
21207     int _v = 0;
21208     {
21209       {
21210         int res = SWIG_AsVal_int(argv[0], NULL);
21211         _v = SWIG_CheckState(res);
21212       }
21213     }
21214     if (!_v) goto check_6;
21215     {
21216       int res = XapianSWIG_anystring_as_ptr(argv[1], (std::string**)(0));
21217       _v = SWIG_CheckState(res);
21218     }
21219     if (!_v) goto check_6;
21220     return _wrap_new_Query__SWIG_14(self, argc, argv);
21221   }
21222 check_6:
21223 
21224   if (argc == 2) {
21225     int _v = 0;
21226     {
21227       {
21228         int res = SWIG_AsVal_double(argv[0], NULL);
21229         _v = SWIG_CheckState(res);
21230       }
21231     }
21232     if (!_v) goto check_7;
21233     {
21234       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__Query, 0);
21235       _v = SWIG_CheckState(res);
21236     }
21237     if (!_v) goto check_7;
21238     return _wrap_new_Query__SWIG_5(self, argc, argv);
21239   }
21240 check_7:
21241 
21242   if (argc == 2) {
21243     return _wrap_new_Query__SWIG_2(self, argc, argv);
21244   }
21245   if (argc == 3) {
21246     int _v = 0;
21247     {
21248       {
21249         int res = SWIG_AsVal_int(argv[0], NULL);
21250         _v = SWIG_CheckState(res);
21251       }
21252     }
21253     if (!_v) goto check_9;
21254     {
21255       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__Query, 0);
21256       _v = SWIG_CheckState(res);
21257     }
21258     if (!_v) goto check_9;
21259     {
21260       int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Xapian__Query, 0);
21261       _v = SWIG_CheckState(res);
21262     }
21263     if (!_v) goto check_9;
21264     return _wrap_new_Query__SWIG_7(self, argc, argv);
21265   }
21266 check_9:
21267 
21268   if (argc == 3) {
21269     int _v = 0;
21270     {
21271       {
21272         int res = SWIG_AsVal_int(argv[0], NULL);
21273         _v = SWIG_CheckState(res);
21274       }
21275     }
21276     if (!_v) goto check_10;
21277     {
21278       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__Query, 0);
21279       _v = SWIG_CheckState(res);
21280     }
21281     if (!_v) goto check_10;
21282     {
21283       {
21284         int res = SWIG_AsVal_double(argv[2], NULL);
21285         _v = SWIG_CheckState(res);
21286       }
21287     }
21288     if (!_v) goto check_10;
21289     return _wrap_new_Query__SWIG_6(self, argc, argv);
21290   }
21291 check_10:
21292 
21293   if (argc == 3) {
21294     int _v = 0;
21295     {
21296       {
21297         int res = SWIG_AsVal_int(argv[0], NULL);
21298         _v = SWIG_CheckState(res);
21299       }
21300     }
21301     if (!_v) goto check_11;
21302     {
21303       {
21304         int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
21305         _v = SWIG_CheckState(res);
21306       }
21307     }
21308     if (!_v) goto check_11;
21309     {
21310       int res = XapianSWIG_anystring_as_ptr(argv[2], (std::string**)(0));
21311       _v = SWIG_CheckState(res);
21312     }
21313     if (!_v) goto check_11;
21314     return _wrap_new_Query__SWIG_9(self, argc, argv);
21315   }
21316 check_11:
21317 
21318   if (argc == 3) {
21319     int _v = 0;
21320     {
21321       {
21322         int res = SWIG_AsVal_int(argv[0], NULL);
21323         _v = SWIG_CheckState(res);
21324       }
21325     }
21326     if (!_v) goto check_12;
21327     {
21328       {
21329         // Checking for a sequence is enough to disambiguate currently.
21330         _v = PySequence_Check(argv[1]);
21331       }
21332     }
21333     if (!_v) goto check_12;
21334     {
21335       {
21336         int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
21337         _v = SWIG_CheckState(res);
21338       }
21339     }
21340     if (!_v) goto check_12;
21341     return _wrap_new_Query__SWIG_17(self, argc, argv);
21342   }
21343 check_12:
21344 
21345   if (argc == 3) {
21346     int _v = 0;
21347     {
21348       {
21349         int res = SWIG_AsVal_int(argv[0], NULL);
21350         _v = SWIG_CheckState(res);
21351       }
21352     }
21353     if (!_v) goto check_13;
21354     {
21355       int res = XapianSWIG_anystring_as_ptr(argv[1], (std::string**)(0));
21356       _v = SWIG_CheckState(res);
21357     }
21358     if (!_v) goto check_13;
21359     {
21360       {
21361         int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
21362         _v = SWIG_CheckState(res);
21363       }
21364     }
21365     if (!_v) goto check_13;
21366     return _wrap_new_Query__SWIG_13(self, argc, argv);
21367   }
21368 check_13:
21369 
21370   if (argc == 3) {
21371     int _v = 0;
21372     {
21373       {
21374         int res = SWIG_AsVal_int(argv[0], NULL);
21375         _v = SWIG_CheckState(res);
21376       }
21377     }
21378     if (!_v) goto check_14;
21379     {
21380       int res = XapianSWIG_anystring_as_ptr(argv[1], (std::string**)(0));
21381       _v = SWIG_CheckState(res);
21382     }
21383     if (!_v) goto check_14;
21384     {
21385       int res = XapianSWIG_anystring_as_ptr(argv[2], (std::string**)(0));
21386       _v = SWIG_CheckState(res);
21387     }
21388     if (!_v) goto check_14;
21389     return _wrap_new_Query__SWIG_8(self, argc, argv);
21390   }
21391 check_14:
21392 
21393   if (argc == 3) {
21394     return _wrap_new_Query__SWIG_1(self, argc, argv);
21395   }
21396   if (argc == 4) {
21397     int _v = 0;
21398     {
21399       {
21400         int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
21401         _v = SWIG_CheckState(res);
21402       }
21403     }
21404     if (!_v) goto check_16;
21405     {
21406       int res = XapianSWIG_anystring_as_ptr(argv[2], (std::string**)(0));
21407       _v = SWIG_CheckState(res);
21408     }
21409     if (!_v) goto check_16;
21410     {
21411       int res = XapianSWIG_anystring_as_ptr(argv[3], (std::string**)(0));
21412       _v = SWIG_CheckState(res);
21413     }
21414     if (!_v) goto check_16;
21415     return _wrap_new_Query__SWIG_10(self, argc, argv);
21416   }
21417 check_16:
21418 
21419   if (argc == 4) {
21420     return _wrap_new_Query__SWIG_12(self, argc, argv);
21421   }
21422   if (argc == 5) {
21423     return _wrap_new_Query__SWIG_11(self, argc, argv);
21424   }
21425 
21426 fail:
21427   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Query'.\n"
21428     "  Possible C/C++ prototypes are:\n"
21429     "    Xapian::Query::Query()\n"
21430     "    Xapian::Query::Query(std::string const &,Xapian::termcount,Xapian::termpos)\n"
21431     "    Xapian::Query::Query(std::string const &,Xapian::termcount)\n"
21432     "    Xapian::Query::Query(std::string const &)\n"
21433     "    Xapian::Query::Query(Xapian::PostingSource *)\n"
21434     "    Xapian::Query::Query(double,Xapian::Query const &)\n"
21435     "    Xapian::Query::Query(Xapian::Query::op,Xapian::Query const &,double)\n"
21436     "    Xapian::Query::Query(Xapian::Query::op,Xapian::Query const &,Xapian::Query const &)\n"
21437     "    Xapian::Query::Query(Xapian::Query::op,std::string const &,std::string const &)\n"
21438     "    Xapian::Query::Query(Xapian::Query::op,Xapian::valueno,std::string const &)\n"
21439     "    Xapian::Query::Query(Xapian::Query::op,Xapian::valueno,std::string const &,std::string const &)\n"
21440     "    Xapian::Query::Query(Xapian::Query::op,std::string const &,Xapian::termcount,int,Xapian::Query::op)\n"
21441     "    Xapian::Query::Query(Xapian::Query::op,std::string const &,Xapian::termcount,int)\n"
21442     "    Xapian::Query::Query(Xapian::Query::op,std::string const &,Xapian::termcount)\n"
21443     "    Xapian::Query::Query(Xapian::Query::op,std::string const &)\n"
21444     "    Xapian::Query::Query(Xapian::Query::op,XapianSWIGQueryItor,XapianSWIGQueryItor,Xapian::termcount)\n"
21445     "    Xapian::Query::Query(Xapian::Query::op,XapianSWIGQueryItor,XapianSWIGQueryItor)\n"
21446     "    Xapian::Query::Query(Xapian::Query::op)\n");
21447   return 0;
21448 }
21449 
21450 
Query_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21451 SWIGINTERN PyObject *Query_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21452   PyObject *obj;
21453   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
21454   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__Query, SWIG_NewClientData(obj));
21455   return SWIG_Py_Void();
21456 }
21457 
Query_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21458 SWIGINTERN PyObject *Query_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21459   return SWIG_Python_InitShadowInstance(args);
21460 }
21461 
_wrap_new_StemImplementation(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21462 SWIGINTERN PyObject *_wrap_new_StemImplementation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21463   PyObject *resultobj = 0;
21464   PyObject *arg1 = (PyObject *) 0 ;
21465   PyObject *swig_obj[1] ;
21466   Xapian::StemImplementation *result = 0 ;
21467 
21468   if (!args) SWIG_fail;
21469   swig_obj[0] = args;
21470   arg1 = swig_obj[0];
21471   {
21472     try {
21473       {
21474         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
21475         if ( arg1 != Py_None ) {
21476           /* subclassed */
21477           result = (Xapian::StemImplementation *)new SwigDirector_StemImplementation(arg1);
21478         } else {
21479           SWIG_SetErrorMsg(PyExc_RuntimeError,"accessing abstract class or protected constructor");
21480           SWIG_fail;
21481         }
21482 
21483         SWIG_PYTHON_THREAD_END_ALLOW;
21484       }
21485     } catch (...) {
21486       Xapian::SetPythonException();
21487       SWIG_fail;
21488     }
21489   }
21490   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__StemImplementation, SWIG_POINTER_NEW |  0 );
21491   return resultobj;
21492 fail:
21493   return NULL;
21494 }
21495 
21496 
_wrap_delete_StemImplementation(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21497 SWIGINTERN PyObject *_wrap_delete_StemImplementation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21498   PyObject *resultobj = 0;
21499   Xapian::StemImplementation *arg1 = (Xapian::StemImplementation *) 0 ;
21500   void *argp1 = 0 ;
21501   int res1 = 0 ;
21502   PyObject *swig_obj[1] ;
21503 
21504   if (!args) SWIG_fail;
21505   swig_obj[0] = args;
21506   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__StemImplementation, SWIG_POINTER_DISOWN |  0 );
21507   if (!SWIG_IsOK(res1)) {
21508     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StemImplementation" "', argument " "1"" of type '" "Xapian::StemImplementation *""'");
21509   }
21510   arg1 = reinterpret_cast< Xapian::StemImplementation * >(argp1);
21511   {
21512     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
21513     delete arg1;
21514     SWIG_PYTHON_THREAD_END_ALLOW;
21515   }
21516   resultobj = SWIG_Py_Void();
21517   return resultobj;
21518 fail:
21519   return NULL;
21520 }
21521 
21522 
_wrap_StemImplementation___call__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21523 SWIGINTERN PyObject *_wrap_StemImplementation___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21524   PyObject *resultobj = 0;
21525   Xapian::StemImplementation *arg1 = (Xapian::StemImplementation *) 0 ;
21526   std::string *arg2 = 0 ;
21527   void *argp1 = 0 ;
21528   int res1 = 0 ;
21529   int res2 = SWIG_OLDOBJ ;
21530   PyObject *swig_obj[2] ;
21531   Swig::Director *director = 0;
21532   bool upcall = false;
21533   std::string result;
21534 
21535   if (!SWIG_Python_UnpackTuple(args,"StemImplementation___call__",2,2,swig_obj)) SWIG_fail;
21536   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__StemImplementation, 0 |  0 );
21537   if (!SWIG_IsOK(res1)) {
21538     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StemImplementation___call__" "', argument " "1"" of type '" "Xapian::StemImplementation *""'");
21539   }
21540   arg1 = reinterpret_cast< Xapian::StemImplementation * >(argp1);
21541   {
21542     std::string *ptr = (std::string *)0;
21543     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
21544     if (!SWIG_IsOK(res2)) {
21545       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StemImplementation___call__" "', argument " "2"" of type '" "std::string const &""'");
21546     }
21547     if (!ptr) {
21548       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StemImplementation___call__" "', argument " "2"" of type '" "std::string const &""'");
21549     }
21550     arg2 = ptr;
21551   }
21552   director = SWIG_DIRECTOR_CAST(arg1);
21553   upcall = (director && (director->swig_get_self()==swig_obj[0]));
21554   try {
21555     {
21556       try {
21557         if (upcall) {
21558           Swig::DirectorPureVirtualException::raise("Xapian::StemImplementation::operator ()");
21559         } else {
21560           result = (arg1)->operator ()((std::string const &)*arg2);
21561         }
21562       } catch (...) {
21563         Xapian::SetPythonException();
21564         SWIG_fail;
21565       }
21566     }
21567   } catch (Swig::DirectorException&) {
21568     SWIG_fail;
21569   }
21570   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
21571   if (SWIG_IsNewObj(res2)) delete arg2;
21572   return resultobj;
21573 fail:
21574   if (SWIG_IsNewObj(res2)) delete arg2;
21575   return NULL;
21576 }
21577 
21578 
_wrap_StemImplementation___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21579 SWIGINTERN PyObject *_wrap_StemImplementation___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21580   PyObject *resultobj = 0;
21581   Xapian::StemImplementation *arg1 = (Xapian::StemImplementation *) 0 ;
21582   void *argp1 = 0 ;
21583   int res1 = 0 ;
21584   PyObject *swig_obj[1] ;
21585   Swig::Director *director = 0;
21586   bool upcall = false;
21587   std::string result;
21588 
21589   if (!args) SWIG_fail;
21590   swig_obj[0] = args;
21591   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__StemImplementation, 0 |  0 );
21592   if (!SWIG_IsOK(res1)) {
21593     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StemImplementation___str__" "', argument " "1"" of type '" "Xapian::StemImplementation const *""'");
21594   }
21595   arg1 = reinterpret_cast< Xapian::StemImplementation * >(argp1);
21596   director = SWIG_DIRECTOR_CAST(arg1);
21597   upcall = (director && (director->swig_get_self()==swig_obj[0]));
21598   try {
21599     {
21600       try {
21601         if (upcall) {
21602           Swig::DirectorPureVirtualException::raise("Xapian::StemImplementation::get_description");
21603         } else {
21604           result = ((Xapian::StemImplementation const *)arg1)->get_description();
21605         }
21606       } catch (...) {
21607         Xapian::SetPythonException();
21608         SWIG_fail;
21609       }
21610     }
21611   } catch (Swig::DirectorException&) {
21612     SWIG_fail;
21613   }
21614   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
21615   return resultobj;
21616 fail:
21617   return NULL;
21618 }
21619 
21620 
_wrap_disown_StemImplementation(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21621 SWIGINTERN PyObject *_wrap_disown_StemImplementation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21622   PyObject *resultobj = 0;
21623   Xapian::StemImplementation *arg1 = (Xapian::StemImplementation *) 0 ;
21624   void *argp1 = 0 ;
21625   int res1 = 0 ;
21626   PyObject *swig_obj[1] ;
21627 
21628   if (!args) SWIG_fail;
21629   swig_obj[0] = args;
21630   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__StemImplementation, 0 |  0 );
21631   if (!SWIG_IsOK(res1)) {
21632     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_StemImplementation" "', argument " "1"" of type '" "Xapian::StemImplementation *""'");
21633   }
21634   arg1 = reinterpret_cast< Xapian::StemImplementation * >(argp1);
21635   {
21636     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
21637     {
21638       Swig::Director *director = SWIG_DIRECTOR_CAST(arg1);
21639       if (director) director->swig_disown();
21640     }
21641 
21642     SWIG_PYTHON_THREAD_END_ALLOW;
21643   }
21644   resultobj = SWIG_Py_Void();
21645   return resultobj;
21646 fail:
21647   return NULL;
21648 }
21649 
21650 
StemImplementation_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21651 SWIGINTERN PyObject *StemImplementation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21652   PyObject *obj;
21653   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
21654   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__StemImplementation, SWIG_NewClientData(obj));
21655   return SWIG_Py_Void();
21656 }
21657 
StemImplementation_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21658 SWIGINTERN PyObject *StemImplementation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21659   return SWIG_Python_InitShadowInstance(args);
21660 }
21661 
_wrap_new_Stem__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)21662 SWIGINTERN PyObject *_wrap_new_Stem__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
21663   PyObject *resultobj = 0;
21664   std::string *arg1 = 0 ;
21665   int res1 = SWIG_OLDOBJ ;
21666   Xapian::Stem *result = 0 ;
21667 
21668   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
21669   {
21670     std::string *ptr = (std::string *)0;
21671     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
21672     if (!SWIG_IsOK(res1)) {
21673       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Stem" "', argument " "1"" of type '" "std::string const &""'");
21674     }
21675     if (!ptr) {
21676       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Stem" "', argument " "1"" of type '" "std::string const &""'");
21677     }
21678     arg1 = ptr;
21679   }
21680   {
21681     try {
21682       {
21683         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
21684         result = (Xapian::Stem *)new Xapian::Stem((std::string const &)*arg1);
21685         SWIG_PYTHON_THREAD_END_ALLOW;
21686       }
21687     } catch (...) {
21688       Xapian::SetPythonException();
21689       SWIG_fail;
21690     }
21691   }
21692   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Stem, SWIG_POINTER_NEW |  0 );
21693   if (SWIG_IsNewObj(res1)) delete arg1;
21694   return resultobj;
21695 fail:
21696   if (SWIG_IsNewObj(res1)) delete arg1;
21697   return NULL;
21698 }
21699 
21700 
_wrap_new_Stem__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)21701 SWIGINTERN PyObject *_wrap_new_Stem__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
21702   PyObject *resultobj = 0;
21703   std::string *arg1 = 0 ;
21704   bool arg2 ;
21705   int res1 = SWIG_OLDOBJ ;
21706   bool val2 ;
21707   int ecode2 = 0 ;
21708   Xapian::Stem *result = 0 ;
21709 
21710   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
21711   {
21712     std::string *ptr = (std::string *)0;
21713     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
21714     if (!SWIG_IsOK(res1)) {
21715       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Stem" "', argument " "1"" of type '" "std::string const &""'");
21716     }
21717     if (!ptr) {
21718       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Stem" "', argument " "1"" of type '" "std::string const &""'");
21719     }
21720     arg1 = ptr;
21721   }
21722   ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
21723   if (!SWIG_IsOK(ecode2)) {
21724     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Stem" "', argument " "2"" of type '" "bool""'");
21725   }
21726   arg2 = static_cast< bool >(val2);
21727   {
21728     try {
21729       {
21730         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
21731         result = (Xapian::Stem *)new Xapian::Stem((std::string const &)*arg1,arg2);
21732         SWIG_PYTHON_THREAD_END_ALLOW;
21733       }
21734     } catch (...) {
21735       Xapian::SetPythonException();
21736       SWIG_fail;
21737     }
21738   }
21739   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Stem, SWIG_POINTER_NEW |  0 );
21740   if (SWIG_IsNewObj(res1)) delete arg1;
21741   return resultobj;
21742 fail:
21743   if (SWIG_IsNewObj(res1)) delete arg1;
21744   return NULL;
21745 }
21746 
21747 
_wrap_new_Stem__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)21748 SWIGINTERN PyObject *_wrap_new_Stem__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
21749   PyObject *resultobj = 0;
21750   Xapian::StemImplementation *arg1 = (Xapian::StemImplementation *) 0 ;
21751   void *argp1 = 0 ;
21752   int res1 = 0 ;
21753   Xapian::Stem *result = 0 ;
21754 
21755   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
21756   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__StemImplementation, 0 |  0 );
21757   if (!SWIG_IsOK(res1)) {
21758     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Stem" "', argument " "1"" of type '" "Xapian::StemImplementation *""'");
21759   }
21760   arg1 = reinterpret_cast< Xapian::StemImplementation * >(argp1);
21761   {
21762     try {
21763       {
21764         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
21765         result = (Xapian::Stem *)new Xapian::Stem(arg1);
21766         SWIG_PYTHON_THREAD_END_ALLOW;
21767       }
21768     } catch (...) {
21769       Xapian::SetPythonException();
21770       SWIG_fail;
21771     }
21772   }
21773   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Stem, SWIG_POINTER_NEW |  0 );
21774   return resultobj;
21775 fail:
21776   return NULL;
21777 }
21778 
21779 
_wrap_new_Stem(PyObject * self,PyObject * args)21780 SWIGINTERN PyObject *_wrap_new_Stem(PyObject *self, PyObject *args) {
21781   Py_ssize_t argc;
21782   PyObject *argv[3] = {
21783     0
21784   };
21785 
21786   if (!(argc = SWIG_Python_UnpackTuple(args,"new_Stem",0,2,argv))) SWIG_fail;
21787   --argc;
21788   if (argc == 1) {
21789     int _v = 0;
21790     {
21791       void *vptr = 0;
21792       int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__StemImplementation, 0);
21793       _v = SWIG_CheckState(res);
21794     }
21795     if (!_v) goto check_1;
21796     return _wrap_new_Stem__SWIG_2(self, argc, argv);
21797   }
21798 check_1:
21799 
21800   if (argc == 1) {
21801     return _wrap_new_Stem__SWIG_0(self, argc, argv);
21802   }
21803   if (argc == 2) {
21804     return _wrap_new_Stem__SWIG_1(self, argc, argv);
21805   }
21806 
21807 fail:
21808   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Stem'.\n"
21809     "  Possible C/C++ prototypes are:\n"
21810     "    Xapian::Stem::Stem(std::string const &)\n"
21811     "    Xapian::Stem::Stem(std::string const &,bool)\n"
21812     "    Xapian::Stem::Stem(Xapian::StemImplementation *)\n");
21813   return 0;
21814 }
21815 
21816 
_wrap_delete_Stem(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21817 SWIGINTERN PyObject *_wrap_delete_Stem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21818   PyObject *resultobj = 0;
21819   Xapian::Stem *arg1 = (Xapian::Stem *) 0 ;
21820   void *argp1 = 0 ;
21821   int res1 = 0 ;
21822   PyObject *swig_obj[1] ;
21823 
21824   if (!args) SWIG_fail;
21825   swig_obj[0] = args;
21826   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Stem, SWIG_POINTER_DISOWN |  0 );
21827   if (!SWIG_IsOK(res1)) {
21828     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Stem" "', argument " "1"" of type '" "Xapian::Stem *""'");
21829   }
21830   arg1 = reinterpret_cast< Xapian::Stem * >(argp1);
21831   {
21832     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
21833     delete arg1;
21834     SWIG_PYTHON_THREAD_END_ALLOW;
21835   }
21836   resultobj = SWIG_Py_Void();
21837   return resultobj;
21838 fail:
21839   return NULL;
21840 }
21841 
21842 
_wrap_Stem___call__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21843 SWIGINTERN PyObject *_wrap_Stem___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21844   PyObject *resultobj = 0;
21845   Xapian::Stem *arg1 = (Xapian::Stem *) 0 ;
21846   std::string *arg2 = 0 ;
21847   void *argp1 = 0 ;
21848   int res1 = 0 ;
21849   int res2 = SWIG_OLDOBJ ;
21850   PyObject *swig_obj[2] ;
21851   std::string result;
21852 
21853   if (!SWIG_Python_UnpackTuple(args,"Stem___call__",2,2,swig_obj)) SWIG_fail;
21854   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Stem, 0 |  0 );
21855   if (!SWIG_IsOK(res1)) {
21856     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Stem___call__" "', argument " "1"" of type '" "Xapian::Stem const *""'");
21857   }
21858   arg1 = reinterpret_cast< Xapian::Stem * >(argp1);
21859   {
21860     std::string *ptr = (std::string *)0;
21861     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
21862     if (!SWIG_IsOK(res2)) {
21863       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Stem___call__" "', argument " "2"" of type '" "std::string const &""'");
21864     }
21865     if (!ptr) {
21866       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Stem___call__" "', argument " "2"" of type '" "std::string const &""'");
21867     }
21868     arg2 = ptr;
21869   }
21870   {
21871     try {
21872       {
21873         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
21874         result = ((Xapian::Stem const *)arg1)->operator ()((std::string const &)*arg2);
21875         SWIG_PYTHON_THREAD_END_ALLOW;
21876       }
21877     } catch (...) {
21878       Xapian::SetPythonException();
21879       SWIG_fail;
21880     }
21881   }
21882   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
21883   if (SWIG_IsNewObj(res2)) delete arg2;
21884   return resultobj;
21885 fail:
21886   if (SWIG_IsNewObj(res2)) delete arg2;
21887   return NULL;
21888 }
21889 
21890 
_wrap_Stem_is_none(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21891 SWIGINTERN PyObject *_wrap_Stem_is_none(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21892   PyObject *resultobj = 0;
21893   Xapian::Stem *arg1 = (Xapian::Stem *) 0 ;
21894   void *argp1 = 0 ;
21895   int res1 = 0 ;
21896   PyObject *swig_obj[1] ;
21897   bool result;
21898 
21899   if (!args) SWIG_fail;
21900   swig_obj[0] = args;
21901   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Stem, 0 |  0 );
21902   if (!SWIG_IsOK(res1)) {
21903     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Stem_is_none" "', argument " "1"" of type '" "Xapian::Stem const *""'");
21904   }
21905   arg1 = reinterpret_cast< Xapian::Stem * >(argp1);
21906   {
21907     try {
21908       {
21909         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
21910         result = (bool)((Xapian::Stem const *)arg1)->is_none();
21911         SWIG_PYTHON_THREAD_END_ALLOW;
21912       }
21913     } catch (...) {
21914       Xapian::SetPythonException();
21915       SWIG_fail;
21916     }
21917   }
21918   resultobj = SWIG_From_bool(static_cast< bool >(result));
21919   return resultobj;
21920 fail:
21921   return NULL;
21922 }
21923 
21924 
_wrap_Stem___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21925 SWIGINTERN PyObject *_wrap_Stem___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21926   PyObject *resultobj = 0;
21927   Xapian::Stem *arg1 = (Xapian::Stem *) 0 ;
21928   void *argp1 = 0 ;
21929   int res1 = 0 ;
21930   PyObject *swig_obj[1] ;
21931   std::string result;
21932 
21933   if (!args) SWIG_fail;
21934   swig_obj[0] = args;
21935   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Stem, 0 |  0 );
21936   if (!SWIG_IsOK(res1)) {
21937     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Stem___str__" "', argument " "1"" of type '" "Xapian::Stem const *""'");
21938   }
21939   arg1 = reinterpret_cast< Xapian::Stem * >(argp1);
21940   {
21941     try {
21942       {
21943         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
21944         result = ((Xapian::Stem const *)arg1)->get_description();
21945         SWIG_PYTHON_THREAD_END_ALLOW;
21946       }
21947     } catch (...) {
21948       Xapian::SetPythonException();
21949       SWIG_fail;
21950     }
21951   }
21952   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
21953   return resultobj;
21954 fail:
21955   return NULL;
21956 }
21957 
21958 
_wrap_Stem_get_available_languages(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21959 SWIGINTERN PyObject *_wrap_Stem_get_available_languages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21960   PyObject *resultobj = 0;
21961   std::string result;
21962 
21963   if (!SWIG_Python_UnpackTuple(args,"Stem_get_available_languages",0,0,0)) SWIG_fail;
21964   {
21965     try {
21966       {
21967         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
21968         result = Xapian::Stem::get_available_languages();
21969         SWIG_PYTHON_THREAD_END_ALLOW;
21970       }
21971     } catch (...) {
21972       Xapian::SetPythonException();
21973       SWIG_fail;
21974     }
21975   }
21976   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
21977   return resultobj;
21978 fail:
21979   return NULL;
21980 }
21981 
21982 
Stem_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21983 SWIGINTERN PyObject *Stem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21984   PyObject *obj;
21985   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
21986   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__Stem, SWIG_NewClientData(obj));
21987   return SWIG_Py_Void();
21988 }
21989 
Stem_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21990 SWIGINTERN PyObject *Stem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21991   return SWIG_Python_InitShadowInstance(args);
21992 }
21993 
_wrap_new_TermGenerator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21994 SWIGINTERN PyObject *_wrap_new_TermGenerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21995   PyObject *resultobj = 0;
21996   Xapian::TermGenerator *result = 0 ;
21997 
21998   if (!SWIG_Python_UnpackTuple(args,"new_TermGenerator",0,0,0)) SWIG_fail;
21999   {
22000     try {
22001       {
22002         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
22003         result = (Xapian::TermGenerator *)new Xapian::TermGenerator();
22004         SWIG_PYTHON_THREAD_END_ALLOW;
22005       }
22006     } catch (...) {
22007       Xapian::SetPythonException();
22008       SWIG_fail;
22009     }
22010   }
22011   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__TermGenerator, SWIG_POINTER_NEW |  0 );
22012   return resultobj;
22013 fail:
22014   return NULL;
22015 }
22016 
22017 
_wrap_delete_TermGenerator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22018 SWIGINTERN PyObject *_wrap_delete_TermGenerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22019   PyObject *resultobj = 0;
22020   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
22021   void *argp1 = 0 ;
22022   int res1 = 0 ;
22023   PyObject *swig_obj[1] ;
22024 
22025   if (!args) SWIG_fail;
22026   swig_obj[0] = args;
22027   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, SWIG_POINTER_DISOWN |  0 );
22028   if (!SWIG_IsOK(res1)) {
22029     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TermGenerator" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
22030   }
22031   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
22032   {
22033     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
22034     delete arg1;
22035     SWIG_PYTHON_THREAD_END_ALLOW;
22036   }
22037   resultobj = SWIG_Py_Void();
22038   return resultobj;
22039 fail:
22040   return NULL;
22041 }
22042 
22043 
_wrap_TermGenerator_set_stemmer(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22044 SWIGINTERN PyObject *_wrap_TermGenerator_set_stemmer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22045   PyObject *resultobj = 0;
22046   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
22047   Xapian::Stem *arg2 = 0 ;
22048   void *argp1 = 0 ;
22049   int res1 = 0 ;
22050   void *argp2 = 0 ;
22051   int res2 = 0 ;
22052   PyObject *swig_obj[2] ;
22053 
22054   if (!SWIG_Python_UnpackTuple(args,"TermGenerator_set_stemmer",2,2,swig_obj)) SWIG_fail;
22055   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
22056   if (!SWIG_IsOK(res1)) {
22057     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_set_stemmer" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
22058   }
22059   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
22060   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__Stem,  0  | 0);
22061   if (!SWIG_IsOK(res2)) {
22062     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TermGenerator_set_stemmer" "', argument " "2"" of type '" "Xapian::Stem const &""'");
22063   }
22064   if (!argp2) {
22065     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TermGenerator_set_stemmer" "', argument " "2"" of type '" "Xapian::Stem const &""'");
22066   }
22067   arg2 = reinterpret_cast< Xapian::Stem * >(argp2);
22068   {
22069     try {
22070       {
22071         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
22072         (arg1)->set_stemmer((Xapian::Stem const &)*arg2);
22073         SWIG_PYTHON_THREAD_END_ALLOW;
22074       }
22075     } catch (...) {
22076       Xapian::SetPythonException();
22077       SWIG_fail;
22078     }
22079   }
22080   resultobj = SWIG_Py_Void();
22081   return resultobj;
22082 fail:
22083   return NULL;
22084 }
22085 
22086 
_wrap_TermGenerator_set_stopper__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)22087 SWIGINTERN PyObject *_wrap_TermGenerator_set_stopper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
22088   PyObject *resultobj = 0;
22089   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
22090   Xapian::Stopper *arg2 = (Xapian::Stopper *) 0 ;
22091   void *argp1 = 0 ;
22092   int res1 = 0 ;
22093   void *argp2 = 0 ;
22094   int res2 = 0 ;
22095 
22096   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
22097   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
22098   if (!SWIG_IsOK(res1)) {
22099     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_set_stopper" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
22100   }
22101   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
22102   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Xapian__Stopper, 0 |  0 );
22103   if (!SWIG_IsOK(res2)) {
22104     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TermGenerator_set_stopper" "', argument " "2"" of type '" "Xapian::Stopper const *""'");
22105   }
22106   arg2 = reinterpret_cast< Xapian::Stopper * >(argp2);
22107   {
22108     try {
22109       {
22110         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
22111         (arg1)->set_stopper((Xapian::Stopper const *)arg2);
22112         SWIG_PYTHON_THREAD_END_ALLOW;
22113       }
22114     } catch (...) {
22115       Xapian::SetPythonException();
22116       SWIG_fail;
22117     }
22118   }
22119   resultobj = SWIG_Py_Void();
22120   return resultobj;
22121 fail:
22122   return NULL;
22123 }
22124 
22125 
_wrap_TermGenerator_set_stopper__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)22126 SWIGINTERN PyObject *_wrap_TermGenerator_set_stopper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
22127   PyObject *resultobj = 0;
22128   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
22129   void *argp1 = 0 ;
22130   int res1 = 0 ;
22131 
22132   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
22133   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
22134   if (!SWIG_IsOK(res1)) {
22135     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_set_stopper" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
22136   }
22137   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
22138   {
22139     try {
22140       {
22141         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
22142         (arg1)->set_stopper();
22143         SWIG_PYTHON_THREAD_END_ALLOW;
22144       }
22145     } catch (...) {
22146       Xapian::SetPythonException();
22147       SWIG_fail;
22148     }
22149   }
22150   resultobj = SWIG_Py_Void();
22151   return resultobj;
22152 fail:
22153   return NULL;
22154 }
22155 
22156 
_wrap_TermGenerator_set_stopper(PyObject * self,PyObject * args)22157 SWIGINTERN PyObject *_wrap_TermGenerator_set_stopper(PyObject *self, PyObject *args) {
22158   Py_ssize_t argc;
22159   PyObject *argv[3] = {
22160     0
22161   };
22162 
22163   if (!(argc = SWIG_Python_UnpackTuple(args,"TermGenerator_set_stopper",0,2,argv))) SWIG_fail;
22164   --argc;
22165   if (argc == 1) {
22166     return _wrap_TermGenerator_set_stopper__SWIG_1(self, argc, argv);
22167   }
22168   if (argc == 2) {
22169     return _wrap_TermGenerator_set_stopper__SWIG_0(self, argc, argv);
22170   }
22171 
22172 fail:
22173   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'TermGenerator_set_stopper'.\n"
22174     "  Possible C/C++ prototypes are:\n"
22175     "    Xapian::TermGenerator::set_stopper(Xapian::Stopper const *)\n"
22176     "    Xapian::TermGenerator::set_stopper()\n");
22177   return 0;
22178 }
22179 
22180 
_wrap_TermGenerator_set_document(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22181 SWIGINTERN PyObject *_wrap_TermGenerator_set_document(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22182   PyObject *resultobj = 0;
22183   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
22184   Xapian::Document *arg2 = 0 ;
22185   void *argp1 = 0 ;
22186   int res1 = 0 ;
22187   void *argp2 = 0 ;
22188   int res2 = 0 ;
22189   PyObject *swig_obj[2] ;
22190 
22191   if (!SWIG_Python_UnpackTuple(args,"TermGenerator_set_document",2,2,swig_obj)) SWIG_fail;
22192   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
22193   if (!SWIG_IsOK(res1)) {
22194     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_set_document" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
22195   }
22196   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
22197   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__Document,  0  | 0);
22198   if (!SWIG_IsOK(res2)) {
22199     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TermGenerator_set_document" "', argument " "2"" of type '" "Xapian::Document const &""'");
22200   }
22201   if (!argp2) {
22202     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TermGenerator_set_document" "', argument " "2"" of type '" "Xapian::Document const &""'");
22203   }
22204   arg2 = reinterpret_cast< Xapian::Document * >(argp2);
22205   {
22206     try {
22207       {
22208         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
22209         (arg1)->set_document((Xapian::Document const &)*arg2);
22210         SWIG_PYTHON_THREAD_END_ALLOW;
22211       }
22212     } catch (...) {
22213       Xapian::SetPythonException();
22214       SWIG_fail;
22215     }
22216   }
22217   resultobj = SWIG_Py_Void();
22218   return resultobj;
22219 fail:
22220   return NULL;
22221 }
22222 
22223 
_wrap_TermGenerator_get_document(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22224 SWIGINTERN PyObject *_wrap_TermGenerator_get_document(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22225   PyObject *resultobj = 0;
22226   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
22227   void *argp1 = 0 ;
22228   int res1 = 0 ;
22229   PyObject *swig_obj[1] ;
22230   Xapian::Document *result = 0 ;
22231 
22232   if (!args) SWIG_fail;
22233   swig_obj[0] = args;
22234   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
22235   if (!SWIG_IsOK(res1)) {
22236     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_get_document" "', argument " "1"" of type '" "Xapian::TermGenerator const *""'");
22237   }
22238   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
22239   {
22240     try {
22241       {
22242         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
22243         result = (Xapian::Document *) &((Xapian::TermGenerator const *)arg1)->get_document();
22244         SWIG_PYTHON_THREAD_END_ALLOW;
22245       }
22246     } catch (...) {
22247       Xapian::SetPythonException();
22248       SWIG_fail;
22249     }
22250   }
22251   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Document, 0 |  0 );
22252   return resultobj;
22253 fail:
22254   return NULL;
22255 }
22256 
22257 
_wrap_TermGenerator_set_database(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22258 SWIGINTERN PyObject *_wrap_TermGenerator_set_database(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22259   PyObject *resultobj = 0;
22260   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
22261   Xapian::WritableDatabase *arg2 = 0 ;
22262   void *argp1 = 0 ;
22263   int res1 = 0 ;
22264   void *argp2 = 0 ;
22265   int res2 = 0 ;
22266   PyObject *swig_obj[2] ;
22267 
22268   if (!SWIG_Python_UnpackTuple(args,"TermGenerator_set_database",2,2,swig_obj)) SWIG_fail;
22269   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
22270   if (!SWIG_IsOK(res1)) {
22271     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_set_database" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
22272   }
22273   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
22274   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__WritableDatabase,  0  | 0);
22275   if (!SWIG_IsOK(res2)) {
22276     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TermGenerator_set_database" "', argument " "2"" of type '" "Xapian::WritableDatabase const &""'");
22277   }
22278   if (!argp2) {
22279     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TermGenerator_set_database" "', argument " "2"" of type '" "Xapian::WritableDatabase const &""'");
22280   }
22281   arg2 = reinterpret_cast< Xapian::WritableDatabase * >(argp2);
22282   {
22283     try {
22284       {
22285         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
22286         (arg1)->set_database((Xapian::WritableDatabase const &)*arg2);
22287         SWIG_PYTHON_THREAD_END_ALLOW;
22288       }
22289     } catch (...) {
22290       Xapian::SetPythonException();
22291       SWIG_fail;
22292     }
22293   }
22294   resultobj = SWIG_Py_Void();
22295   return resultobj;
22296 fail:
22297   return NULL;
22298 }
22299 
22300 
_wrap_TermGenerator_set_flags__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)22301 SWIGINTERN PyObject *_wrap_TermGenerator_set_flags__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
22302   PyObject *resultobj = 0;
22303   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
22304   Xapian::TermGenerator::flags arg2 ;
22305   Xapian::TermGenerator::flags arg3 ;
22306   void *argp1 = 0 ;
22307   int res1 = 0 ;
22308   int val2 ;
22309   int ecode2 = 0 ;
22310   int val3 ;
22311   int ecode3 = 0 ;
22312   Xapian::TermGenerator::flags result;
22313 
22314   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
22315   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
22316   if (!SWIG_IsOK(res1)) {
22317     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_set_flags" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
22318   }
22319   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
22320   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
22321   if (!SWIG_IsOK(ecode2)) {
22322     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TermGenerator_set_flags" "', argument " "2"" of type '" "Xapian::TermGenerator::flags""'");
22323   }
22324   arg2 = static_cast< Xapian::TermGenerator::flags >(val2);
22325   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
22326   if (!SWIG_IsOK(ecode3)) {
22327     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TermGenerator_set_flags" "', argument " "3"" of type '" "Xapian::TermGenerator::flags""'");
22328   }
22329   arg3 = static_cast< Xapian::TermGenerator::flags >(val3);
22330   {
22331     try {
22332       {
22333         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
22334         result = (Xapian::TermGenerator::flags)(arg1)->set_flags(arg2,arg3);
22335         SWIG_PYTHON_THREAD_END_ALLOW;
22336       }
22337     } catch (...) {
22338       Xapian::SetPythonException();
22339       SWIG_fail;
22340     }
22341   }
22342   resultobj = SWIG_From_int(static_cast< int >(result));
22343   return resultobj;
22344 fail:
22345   return NULL;
22346 }
22347 
22348 
_wrap_TermGenerator_set_flags__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)22349 SWIGINTERN PyObject *_wrap_TermGenerator_set_flags__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
22350   PyObject *resultobj = 0;
22351   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
22352   Xapian::TermGenerator::flags arg2 ;
22353   void *argp1 = 0 ;
22354   int res1 = 0 ;
22355   int val2 ;
22356   int ecode2 = 0 ;
22357   Xapian::TermGenerator::flags result;
22358 
22359   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
22360   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
22361   if (!SWIG_IsOK(res1)) {
22362     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_set_flags" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
22363   }
22364   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
22365   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
22366   if (!SWIG_IsOK(ecode2)) {
22367     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TermGenerator_set_flags" "', argument " "2"" of type '" "Xapian::TermGenerator::flags""'");
22368   }
22369   arg2 = static_cast< Xapian::TermGenerator::flags >(val2);
22370   {
22371     try {
22372       {
22373         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
22374         result = (Xapian::TermGenerator::flags)(arg1)->set_flags(arg2);
22375         SWIG_PYTHON_THREAD_END_ALLOW;
22376       }
22377     } catch (...) {
22378       Xapian::SetPythonException();
22379       SWIG_fail;
22380     }
22381   }
22382   resultobj = SWIG_From_int(static_cast< int >(result));
22383   return resultobj;
22384 fail:
22385   return NULL;
22386 }
22387 
22388 
_wrap_TermGenerator_set_flags(PyObject * self,PyObject * args)22389 SWIGINTERN PyObject *_wrap_TermGenerator_set_flags(PyObject *self, PyObject *args) {
22390   Py_ssize_t argc;
22391   PyObject *argv[4] = {
22392     0
22393   };
22394 
22395   if (!(argc = SWIG_Python_UnpackTuple(args,"TermGenerator_set_flags",0,3,argv))) SWIG_fail;
22396   --argc;
22397   if (argc == 2) {
22398     return _wrap_TermGenerator_set_flags__SWIG_1(self, argc, argv);
22399   }
22400   if (argc == 3) {
22401     return _wrap_TermGenerator_set_flags__SWIG_0(self, argc, argv);
22402   }
22403 
22404 fail:
22405   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'TermGenerator_set_flags'.\n"
22406     "  Possible C/C++ prototypes are:\n"
22407     "    Xapian::TermGenerator::set_flags(Xapian::TermGenerator::flags,Xapian::TermGenerator::flags)\n"
22408     "    Xapian::TermGenerator::set_flags(Xapian::TermGenerator::flags)\n");
22409   return 0;
22410 }
22411 
22412 
_wrap_TermGenerator_set_stemming_strategy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22413 SWIGINTERN PyObject *_wrap_TermGenerator_set_stemming_strategy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22414   PyObject *resultobj = 0;
22415   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
22416   Xapian::TermGenerator::stem_strategy arg2 ;
22417   void *argp1 = 0 ;
22418   int res1 = 0 ;
22419   int val2 ;
22420   int ecode2 = 0 ;
22421   PyObject *swig_obj[2] ;
22422 
22423   if (!SWIG_Python_UnpackTuple(args,"TermGenerator_set_stemming_strategy",2,2,swig_obj)) SWIG_fail;
22424   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
22425   if (!SWIG_IsOK(res1)) {
22426     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_set_stemming_strategy" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
22427   }
22428   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
22429   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
22430   if (!SWIG_IsOK(ecode2)) {
22431     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TermGenerator_set_stemming_strategy" "', argument " "2"" of type '" "Xapian::TermGenerator::stem_strategy""'");
22432   }
22433   arg2 = static_cast< Xapian::TermGenerator::stem_strategy >(val2);
22434   {
22435     try {
22436       {
22437         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
22438         (arg1)->set_stemming_strategy(arg2);
22439         SWIG_PYTHON_THREAD_END_ALLOW;
22440       }
22441     } catch (...) {
22442       Xapian::SetPythonException();
22443       SWIG_fail;
22444     }
22445   }
22446   resultobj = SWIG_Py_Void();
22447   return resultobj;
22448 fail:
22449   return NULL;
22450 }
22451 
22452 
_wrap_TermGenerator_set_stopper_strategy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22453 SWIGINTERN PyObject *_wrap_TermGenerator_set_stopper_strategy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22454   PyObject *resultobj = 0;
22455   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
22456   Xapian::TermGenerator::stop_strategy arg2 ;
22457   void *argp1 = 0 ;
22458   int res1 = 0 ;
22459   int val2 ;
22460   int ecode2 = 0 ;
22461   PyObject *swig_obj[2] ;
22462 
22463   if (!SWIG_Python_UnpackTuple(args,"TermGenerator_set_stopper_strategy",2,2,swig_obj)) SWIG_fail;
22464   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
22465   if (!SWIG_IsOK(res1)) {
22466     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_set_stopper_strategy" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
22467   }
22468   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
22469   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
22470   if (!SWIG_IsOK(ecode2)) {
22471     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TermGenerator_set_stopper_strategy" "', argument " "2"" of type '" "Xapian::TermGenerator::stop_strategy""'");
22472   }
22473   arg2 = static_cast< Xapian::TermGenerator::stop_strategy >(val2);
22474   {
22475     try {
22476       {
22477         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
22478         (arg1)->set_stopper_strategy(arg2);
22479         SWIG_PYTHON_THREAD_END_ALLOW;
22480       }
22481     } catch (...) {
22482       Xapian::SetPythonException();
22483       SWIG_fail;
22484     }
22485   }
22486   resultobj = SWIG_Py_Void();
22487   return resultobj;
22488 fail:
22489   return NULL;
22490 }
22491 
22492 
_wrap_TermGenerator_set_max_word_length(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22493 SWIGINTERN PyObject *_wrap_TermGenerator_set_max_word_length(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22494   PyObject *resultobj = 0;
22495   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
22496   unsigned int arg2 ;
22497   void *argp1 = 0 ;
22498   int res1 = 0 ;
22499   unsigned int val2 ;
22500   int ecode2 = 0 ;
22501   PyObject *swig_obj[2] ;
22502 
22503   if (!SWIG_Python_UnpackTuple(args,"TermGenerator_set_max_word_length",2,2,swig_obj)) SWIG_fail;
22504   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
22505   if (!SWIG_IsOK(res1)) {
22506     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_set_max_word_length" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
22507   }
22508   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
22509   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
22510   if (!SWIG_IsOK(ecode2)) {
22511     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TermGenerator_set_max_word_length" "', argument " "2"" of type '" "unsigned int""'");
22512   }
22513   arg2 = static_cast< unsigned int >(val2);
22514   {
22515     try {
22516       {
22517         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
22518         (arg1)->set_max_word_length(arg2);
22519         SWIG_PYTHON_THREAD_END_ALLOW;
22520       }
22521     } catch (...) {
22522       Xapian::SetPythonException();
22523       SWIG_fail;
22524     }
22525   }
22526   resultobj = SWIG_Py_Void();
22527   return resultobj;
22528 fail:
22529   return NULL;
22530 }
22531 
22532 
_wrap_TermGenerator_index_text__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)22533 SWIGINTERN PyObject *_wrap_TermGenerator_index_text__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
22534   PyObject *resultobj = 0;
22535   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
22536   std::string *arg2 = 0 ;
22537   Xapian::termcount arg3 ;
22538   std::string *arg4 = 0 ;
22539   void *argp1 = 0 ;
22540   int res1 = 0 ;
22541   int res2 = SWIG_OLDOBJ ;
22542   unsigned int val3 ;
22543   int ecode3 = 0 ;
22544   int res4 = SWIG_OLDOBJ ;
22545 
22546   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
22547   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
22548   if (!SWIG_IsOK(res1)) {
22549     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_index_text" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
22550   }
22551   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
22552   {
22553     std::string *ptr = (std::string *)0;
22554     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
22555     if (!SWIG_IsOK(res2)) {
22556       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TermGenerator_index_text" "', argument " "2"" of type '" "std::string const &""'");
22557     }
22558     if (!ptr) {
22559       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TermGenerator_index_text" "', argument " "2"" of type '" "std::string const &""'");
22560     }
22561     arg2 = ptr;
22562   }
22563   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
22564   if (!SWIG_IsOK(ecode3)) {
22565     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TermGenerator_index_text" "', argument " "3"" of type '" "Xapian::termcount""'");
22566   }
22567   arg3 = static_cast< Xapian::termcount >(val3);
22568   {
22569     std::string *ptr = (std::string *)0;
22570     res4 = XapianSWIG_anystring_as_ptr(swig_obj[3], &ptr);
22571     if (!SWIG_IsOK(res4)) {
22572       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TermGenerator_index_text" "', argument " "4"" of type '" "std::string const &""'");
22573     }
22574     if (!ptr) {
22575       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TermGenerator_index_text" "', argument " "4"" of type '" "std::string const &""'");
22576     }
22577     arg4 = ptr;
22578   }
22579   {
22580     try {
22581       {
22582         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
22583         (arg1)->index_text((std::string const &)*arg2,arg3,(std::string const &)*arg4);
22584         SWIG_PYTHON_THREAD_END_ALLOW;
22585       }
22586     } catch (...) {
22587       Xapian::SetPythonException();
22588       SWIG_fail;
22589     }
22590   }
22591   resultobj = SWIG_Py_Void();
22592   if (SWIG_IsNewObj(res2)) delete arg2;
22593   if (SWIG_IsNewObj(res4)) delete arg4;
22594   return resultobj;
22595 fail:
22596   if (SWIG_IsNewObj(res2)) delete arg2;
22597   if (SWIG_IsNewObj(res4)) delete arg4;
22598   return NULL;
22599 }
22600 
22601 
_wrap_TermGenerator_index_text__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)22602 SWIGINTERN PyObject *_wrap_TermGenerator_index_text__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
22603   PyObject *resultobj = 0;
22604   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
22605   std::string *arg2 = 0 ;
22606   Xapian::termcount arg3 ;
22607   void *argp1 = 0 ;
22608   int res1 = 0 ;
22609   int res2 = SWIG_OLDOBJ ;
22610   unsigned int val3 ;
22611   int ecode3 = 0 ;
22612 
22613   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
22614   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
22615   if (!SWIG_IsOK(res1)) {
22616     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_index_text" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
22617   }
22618   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
22619   {
22620     std::string *ptr = (std::string *)0;
22621     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
22622     if (!SWIG_IsOK(res2)) {
22623       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TermGenerator_index_text" "', argument " "2"" of type '" "std::string const &""'");
22624     }
22625     if (!ptr) {
22626       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TermGenerator_index_text" "', argument " "2"" of type '" "std::string const &""'");
22627     }
22628     arg2 = ptr;
22629   }
22630   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
22631   if (!SWIG_IsOK(ecode3)) {
22632     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TermGenerator_index_text" "', argument " "3"" of type '" "Xapian::termcount""'");
22633   }
22634   arg3 = static_cast< Xapian::termcount >(val3);
22635   {
22636     try {
22637       {
22638         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
22639         (arg1)->index_text((std::string const &)*arg2,arg3);
22640         SWIG_PYTHON_THREAD_END_ALLOW;
22641       }
22642     } catch (...) {
22643       Xapian::SetPythonException();
22644       SWIG_fail;
22645     }
22646   }
22647   resultobj = SWIG_Py_Void();
22648   if (SWIG_IsNewObj(res2)) delete arg2;
22649   return resultobj;
22650 fail:
22651   if (SWIG_IsNewObj(res2)) delete arg2;
22652   return NULL;
22653 }
22654 
22655 
_wrap_TermGenerator_index_text__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)22656 SWIGINTERN PyObject *_wrap_TermGenerator_index_text__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
22657   PyObject *resultobj = 0;
22658   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
22659   std::string *arg2 = 0 ;
22660   void *argp1 = 0 ;
22661   int res1 = 0 ;
22662   int res2 = SWIG_OLDOBJ ;
22663 
22664   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
22665   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
22666   if (!SWIG_IsOK(res1)) {
22667     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_index_text" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
22668   }
22669   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
22670   {
22671     std::string *ptr = (std::string *)0;
22672     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
22673     if (!SWIG_IsOK(res2)) {
22674       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TermGenerator_index_text" "', argument " "2"" of type '" "std::string const &""'");
22675     }
22676     if (!ptr) {
22677       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TermGenerator_index_text" "', argument " "2"" of type '" "std::string const &""'");
22678     }
22679     arg2 = ptr;
22680   }
22681   {
22682     try {
22683       {
22684         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
22685         (arg1)->index_text((std::string const &)*arg2);
22686         SWIG_PYTHON_THREAD_END_ALLOW;
22687       }
22688     } catch (...) {
22689       Xapian::SetPythonException();
22690       SWIG_fail;
22691     }
22692   }
22693   resultobj = SWIG_Py_Void();
22694   if (SWIG_IsNewObj(res2)) delete arg2;
22695   return resultobj;
22696 fail:
22697   if (SWIG_IsNewObj(res2)) delete arg2;
22698   return NULL;
22699 }
22700 
22701 
_wrap_TermGenerator_index_text(PyObject * self,PyObject * args)22702 SWIGINTERN PyObject *_wrap_TermGenerator_index_text(PyObject *self, PyObject *args) {
22703   Py_ssize_t argc;
22704   PyObject *argv[5] = {
22705     0
22706   };
22707 
22708   if (!(argc = SWIG_Python_UnpackTuple(args,"TermGenerator_index_text",0,4,argv))) SWIG_fail;
22709   --argc;
22710   if (argc == 2) {
22711     return _wrap_TermGenerator_index_text__SWIG_2(self, argc, argv);
22712   }
22713   if (argc == 3) {
22714     return _wrap_TermGenerator_index_text__SWIG_1(self, argc, argv);
22715   }
22716   if (argc == 4) {
22717     return _wrap_TermGenerator_index_text__SWIG_0(self, argc, argv);
22718   }
22719 
22720 fail:
22721   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'TermGenerator_index_text'.\n"
22722     "  Possible C/C++ prototypes are:\n"
22723     "    Xapian::TermGenerator::index_text(std::string const &,Xapian::termcount,std::string const &)\n"
22724     "    Xapian::TermGenerator::index_text(std::string const &,Xapian::termcount)\n"
22725     "    Xapian::TermGenerator::index_text(std::string const &)\n");
22726   return 0;
22727 }
22728 
22729 
_wrap_TermGenerator_index_text_without_positions__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)22730 SWIGINTERN PyObject *_wrap_TermGenerator_index_text_without_positions__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
22731   PyObject *resultobj = 0;
22732   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
22733   std::string *arg2 = 0 ;
22734   Xapian::termcount arg3 ;
22735   std::string *arg4 = 0 ;
22736   void *argp1 = 0 ;
22737   int res1 = 0 ;
22738   int res2 = SWIG_OLDOBJ ;
22739   unsigned int val3 ;
22740   int ecode3 = 0 ;
22741   int res4 = SWIG_OLDOBJ ;
22742 
22743   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
22744   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
22745   if (!SWIG_IsOK(res1)) {
22746     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_index_text_without_positions" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
22747   }
22748   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
22749   {
22750     std::string *ptr = (std::string *)0;
22751     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
22752     if (!SWIG_IsOK(res2)) {
22753       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TermGenerator_index_text_without_positions" "', argument " "2"" of type '" "std::string const &""'");
22754     }
22755     if (!ptr) {
22756       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TermGenerator_index_text_without_positions" "', argument " "2"" of type '" "std::string const &""'");
22757     }
22758     arg2 = ptr;
22759   }
22760   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
22761   if (!SWIG_IsOK(ecode3)) {
22762     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TermGenerator_index_text_without_positions" "', argument " "3"" of type '" "Xapian::termcount""'");
22763   }
22764   arg3 = static_cast< Xapian::termcount >(val3);
22765   {
22766     std::string *ptr = (std::string *)0;
22767     res4 = XapianSWIG_anystring_as_ptr(swig_obj[3], &ptr);
22768     if (!SWIG_IsOK(res4)) {
22769       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TermGenerator_index_text_without_positions" "', argument " "4"" of type '" "std::string const &""'");
22770     }
22771     if (!ptr) {
22772       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TermGenerator_index_text_without_positions" "', argument " "4"" of type '" "std::string const &""'");
22773     }
22774     arg4 = ptr;
22775   }
22776   {
22777     try {
22778       {
22779         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
22780         (arg1)->index_text_without_positions((std::string const &)*arg2,arg3,(std::string const &)*arg4);
22781         SWIG_PYTHON_THREAD_END_ALLOW;
22782       }
22783     } catch (...) {
22784       Xapian::SetPythonException();
22785       SWIG_fail;
22786     }
22787   }
22788   resultobj = SWIG_Py_Void();
22789   if (SWIG_IsNewObj(res2)) delete arg2;
22790   if (SWIG_IsNewObj(res4)) delete arg4;
22791   return resultobj;
22792 fail:
22793   if (SWIG_IsNewObj(res2)) delete arg2;
22794   if (SWIG_IsNewObj(res4)) delete arg4;
22795   return NULL;
22796 }
22797 
22798 
_wrap_TermGenerator_index_text_without_positions__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)22799 SWIGINTERN PyObject *_wrap_TermGenerator_index_text_without_positions__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
22800   PyObject *resultobj = 0;
22801   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
22802   std::string *arg2 = 0 ;
22803   Xapian::termcount arg3 ;
22804   void *argp1 = 0 ;
22805   int res1 = 0 ;
22806   int res2 = SWIG_OLDOBJ ;
22807   unsigned int val3 ;
22808   int ecode3 = 0 ;
22809 
22810   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
22811   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
22812   if (!SWIG_IsOK(res1)) {
22813     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_index_text_without_positions" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
22814   }
22815   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
22816   {
22817     std::string *ptr = (std::string *)0;
22818     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
22819     if (!SWIG_IsOK(res2)) {
22820       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TermGenerator_index_text_without_positions" "', argument " "2"" of type '" "std::string const &""'");
22821     }
22822     if (!ptr) {
22823       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TermGenerator_index_text_without_positions" "', argument " "2"" of type '" "std::string const &""'");
22824     }
22825     arg2 = ptr;
22826   }
22827   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
22828   if (!SWIG_IsOK(ecode3)) {
22829     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TermGenerator_index_text_without_positions" "', argument " "3"" of type '" "Xapian::termcount""'");
22830   }
22831   arg3 = static_cast< Xapian::termcount >(val3);
22832   {
22833     try {
22834       {
22835         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
22836         (arg1)->index_text_without_positions((std::string const &)*arg2,arg3);
22837         SWIG_PYTHON_THREAD_END_ALLOW;
22838       }
22839     } catch (...) {
22840       Xapian::SetPythonException();
22841       SWIG_fail;
22842     }
22843   }
22844   resultobj = SWIG_Py_Void();
22845   if (SWIG_IsNewObj(res2)) delete arg2;
22846   return resultobj;
22847 fail:
22848   if (SWIG_IsNewObj(res2)) delete arg2;
22849   return NULL;
22850 }
22851 
22852 
_wrap_TermGenerator_index_text_without_positions__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)22853 SWIGINTERN PyObject *_wrap_TermGenerator_index_text_without_positions__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
22854   PyObject *resultobj = 0;
22855   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
22856   std::string *arg2 = 0 ;
22857   void *argp1 = 0 ;
22858   int res1 = 0 ;
22859   int res2 = SWIG_OLDOBJ ;
22860 
22861   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
22862   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
22863   if (!SWIG_IsOK(res1)) {
22864     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_index_text_without_positions" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
22865   }
22866   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
22867   {
22868     std::string *ptr = (std::string *)0;
22869     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
22870     if (!SWIG_IsOK(res2)) {
22871       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TermGenerator_index_text_without_positions" "', argument " "2"" of type '" "std::string const &""'");
22872     }
22873     if (!ptr) {
22874       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TermGenerator_index_text_without_positions" "', argument " "2"" of type '" "std::string const &""'");
22875     }
22876     arg2 = ptr;
22877   }
22878   {
22879     try {
22880       {
22881         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
22882         (arg1)->index_text_without_positions((std::string const &)*arg2);
22883         SWIG_PYTHON_THREAD_END_ALLOW;
22884       }
22885     } catch (...) {
22886       Xapian::SetPythonException();
22887       SWIG_fail;
22888     }
22889   }
22890   resultobj = SWIG_Py_Void();
22891   if (SWIG_IsNewObj(res2)) delete arg2;
22892   return resultobj;
22893 fail:
22894   if (SWIG_IsNewObj(res2)) delete arg2;
22895   return NULL;
22896 }
22897 
22898 
_wrap_TermGenerator_index_text_without_positions(PyObject * self,PyObject * args)22899 SWIGINTERN PyObject *_wrap_TermGenerator_index_text_without_positions(PyObject *self, PyObject *args) {
22900   Py_ssize_t argc;
22901   PyObject *argv[5] = {
22902     0
22903   };
22904 
22905   if (!(argc = SWIG_Python_UnpackTuple(args,"TermGenerator_index_text_without_positions",0,4,argv))) SWIG_fail;
22906   --argc;
22907   if (argc == 2) {
22908     return _wrap_TermGenerator_index_text_without_positions__SWIG_2(self, argc, argv);
22909   }
22910   if (argc == 3) {
22911     return _wrap_TermGenerator_index_text_without_positions__SWIG_1(self, argc, argv);
22912   }
22913   if (argc == 4) {
22914     return _wrap_TermGenerator_index_text_without_positions__SWIG_0(self, argc, argv);
22915   }
22916 
22917 fail:
22918   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'TermGenerator_index_text_without_positions'.\n"
22919     "  Possible C/C++ prototypes are:\n"
22920     "    Xapian::TermGenerator::index_text_without_positions(std::string const &,Xapian::termcount,std::string const &)\n"
22921     "    Xapian::TermGenerator::index_text_without_positions(std::string const &,Xapian::termcount)\n"
22922     "    Xapian::TermGenerator::index_text_without_positions(std::string const &)\n");
22923   return 0;
22924 }
22925 
22926 
_wrap_TermGenerator_increase_termpos__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)22927 SWIGINTERN PyObject *_wrap_TermGenerator_increase_termpos__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
22928   PyObject *resultobj = 0;
22929   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
22930   Xapian::termpos arg2 ;
22931   void *argp1 = 0 ;
22932   int res1 = 0 ;
22933   unsigned int val2 ;
22934   int ecode2 = 0 ;
22935 
22936   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
22937   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
22938   if (!SWIG_IsOK(res1)) {
22939     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_increase_termpos" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
22940   }
22941   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
22942   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
22943   if (!SWIG_IsOK(ecode2)) {
22944     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TermGenerator_increase_termpos" "', argument " "2"" of type '" "Xapian::termpos""'");
22945   }
22946   arg2 = static_cast< Xapian::termpos >(val2);
22947   {
22948     try {
22949       {
22950         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
22951         (arg1)->increase_termpos(arg2);
22952         SWIG_PYTHON_THREAD_END_ALLOW;
22953       }
22954     } catch (...) {
22955       Xapian::SetPythonException();
22956       SWIG_fail;
22957     }
22958   }
22959   resultobj = SWIG_Py_Void();
22960   return resultobj;
22961 fail:
22962   return NULL;
22963 }
22964 
22965 
_wrap_TermGenerator_increase_termpos__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)22966 SWIGINTERN PyObject *_wrap_TermGenerator_increase_termpos__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
22967   PyObject *resultobj = 0;
22968   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
22969   void *argp1 = 0 ;
22970   int res1 = 0 ;
22971 
22972   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
22973   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
22974   if (!SWIG_IsOK(res1)) {
22975     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_increase_termpos" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
22976   }
22977   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
22978   {
22979     try {
22980       {
22981         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
22982         (arg1)->increase_termpos();
22983         SWIG_PYTHON_THREAD_END_ALLOW;
22984       }
22985     } catch (...) {
22986       Xapian::SetPythonException();
22987       SWIG_fail;
22988     }
22989   }
22990   resultobj = SWIG_Py_Void();
22991   return resultobj;
22992 fail:
22993   return NULL;
22994 }
22995 
22996 
_wrap_TermGenerator_increase_termpos(PyObject * self,PyObject * args)22997 SWIGINTERN PyObject *_wrap_TermGenerator_increase_termpos(PyObject *self, PyObject *args) {
22998   Py_ssize_t argc;
22999   PyObject *argv[3] = {
23000     0
23001   };
23002 
23003   if (!(argc = SWIG_Python_UnpackTuple(args,"TermGenerator_increase_termpos",0,2,argv))) SWIG_fail;
23004   --argc;
23005   if (argc == 1) {
23006     return _wrap_TermGenerator_increase_termpos__SWIG_1(self, argc, argv);
23007   }
23008   if (argc == 2) {
23009     return _wrap_TermGenerator_increase_termpos__SWIG_0(self, argc, argv);
23010   }
23011 
23012 fail:
23013   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'TermGenerator_increase_termpos'.\n"
23014     "  Possible C/C++ prototypes are:\n"
23015     "    Xapian::TermGenerator::increase_termpos(Xapian::termpos)\n"
23016     "    Xapian::TermGenerator::increase_termpos()\n");
23017   return 0;
23018 }
23019 
23020 
_wrap_TermGenerator_get_termpos(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23021 SWIGINTERN PyObject *_wrap_TermGenerator_get_termpos(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23022   PyObject *resultobj = 0;
23023   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
23024   void *argp1 = 0 ;
23025   int res1 = 0 ;
23026   PyObject *swig_obj[1] ;
23027   Xapian::termpos result;
23028 
23029   if (!args) SWIG_fail;
23030   swig_obj[0] = args;
23031   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
23032   if (!SWIG_IsOK(res1)) {
23033     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_get_termpos" "', argument " "1"" of type '" "Xapian::TermGenerator const *""'");
23034   }
23035   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
23036   {
23037     try {
23038       {
23039         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23040         result = (Xapian::termpos)((Xapian::TermGenerator const *)arg1)->get_termpos();
23041         SWIG_PYTHON_THREAD_END_ALLOW;
23042       }
23043     } catch (...) {
23044       Xapian::SetPythonException();
23045       SWIG_fail;
23046     }
23047   }
23048   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
23049   return resultobj;
23050 fail:
23051   return NULL;
23052 }
23053 
23054 
_wrap_TermGenerator_set_termpos(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23055 SWIGINTERN PyObject *_wrap_TermGenerator_set_termpos(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23056   PyObject *resultobj = 0;
23057   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
23058   Xapian::termpos arg2 ;
23059   void *argp1 = 0 ;
23060   int res1 = 0 ;
23061   unsigned int val2 ;
23062   int ecode2 = 0 ;
23063   PyObject *swig_obj[2] ;
23064 
23065   if (!SWIG_Python_UnpackTuple(args,"TermGenerator_set_termpos",2,2,swig_obj)) SWIG_fail;
23066   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
23067   if (!SWIG_IsOK(res1)) {
23068     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_set_termpos" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
23069   }
23070   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
23071   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
23072   if (!SWIG_IsOK(ecode2)) {
23073     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TermGenerator_set_termpos" "', argument " "2"" of type '" "Xapian::termpos""'");
23074   }
23075   arg2 = static_cast< Xapian::termpos >(val2);
23076   {
23077     try {
23078       {
23079         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23080         (arg1)->set_termpos(arg2);
23081         SWIG_PYTHON_THREAD_END_ALLOW;
23082       }
23083     } catch (...) {
23084       Xapian::SetPythonException();
23085       SWIG_fail;
23086     }
23087   }
23088   resultobj = SWIG_Py_Void();
23089   return resultobj;
23090 fail:
23091   return NULL;
23092 }
23093 
23094 
_wrap_TermGenerator___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23095 SWIGINTERN PyObject *_wrap_TermGenerator___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23096   PyObject *resultobj = 0;
23097   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
23098   void *argp1 = 0 ;
23099   int res1 = 0 ;
23100   PyObject *swig_obj[1] ;
23101   std::string result;
23102 
23103   if (!args) SWIG_fail;
23104   swig_obj[0] = args;
23105   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
23106   if (!SWIG_IsOK(res1)) {
23107     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator___str__" "', argument " "1"" of type '" "Xapian::TermGenerator const *""'");
23108   }
23109   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
23110   {
23111     try {
23112       {
23113         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23114         result = ((Xapian::TermGenerator const *)arg1)->get_description();
23115         SWIG_PYTHON_THREAD_END_ALLOW;
23116       }
23117     } catch (...) {
23118       Xapian::SetPythonException();
23119       SWIG_fail;
23120     }
23121   }
23122   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
23123   return resultobj;
23124 fail:
23125   return NULL;
23126 }
23127 
23128 
TermGenerator_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23129 SWIGINTERN PyObject *TermGenerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23130   PyObject *obj;
23131   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
23132   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__TermGenerator, SWIG_NewClientData(obj));
23133   return SWIG_Py_Void();
23134 }
23135 
TermGenerator_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23136 SWIGINTERN PyObject *TermGenerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23137   return SWIG_Python_InitShadowInstance(args);
23138 }
23139 
_wrap_new_MSet(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23140 SWIGINTERN PyObject *_wrap_new_MSet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23141   PyObject *resultobj = 0;
23142   Xapian::MSet *result = 0 ;
23143 
23144   if (!SWIG_Python_UnpackTuple(args,"new_MSet",0,0,0)) SWIG_fail;
23145   {
23146     try {
23147       {
23148         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23149         result = (Xapian::MSet *)new Xapian::MSet();
23150         SWIG_PYTHON_THREAD_END_ALLOW;
23151       }
23152     } catch (...) {
23153       Xapian::SetPythonException();
23154       SWIG_fail;
23155     }
23156   }
23157   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__MSet, SWIG_POINTER_NEW |  0 );
23158   return resultobj;
23159 fail:
23160   return NULL;
23161 }
23162 
23163 
_wrap_delete_MSet(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23164 SWIGINTERN PyObject *_wrap_delete_MSet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23165   PyObject *resultobj = 0;
23166   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
23167   void *argp1 = 0 ;
23168   int res1 = 0 ;
23169   PyObject *swig_obj[1] ;
23170 
23171   if (!args) SWIG_fail;
23172   swig_obj[0] = args;
23173   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, SWIG_POINTER_DISOWN |  0 );
23174   if (!SWIG_IsOK(res1)) {
23175     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MSet" "', argument " "1"" of type '" "Xapian::MSet *""'");
23176   }
23177   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
23178   {
23179     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23180     delete arg1;
23181     SWIG_PYTHON_THREAD_END_ALLOW;
23182   }
23183   resultobj = SWIG_Py_Void();
23184   return resultobj;
23185 fail:
23186   return NULL;
23187 }
23188 
23189 
_wrap_MSet_convert_to_percent__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)23190 SWIGINTERN PyObject *_wrap_MSet_convert_to_percent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23191   PyObject *resultobj = 0;
23192   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
23193   double arg2 ;
23194   void *argp1 = 0 ;
23195   int res1 = 0 ;
23196   double val2 ;
23197   int ecode2 = 0 ;
23198   int result;
23199 
23200   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23201   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
23202   if (!SWIG_IsOK(res1)) {
23203     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_convert_to_percent" "', argument " "1"" of type '" "Xapian::MSet const *""'");
23204   }
23205   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
23206   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
23207   if (!SWIG_IsOK(ecode2)) {
23208     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MSet_convert_to_percent" "', argument " "2"" of type '" "double""'");
23209   }
23210   arg2 = static_cast< double >(val2);
23211   {
23212     try {
23213       {
23214         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23215         result = (int)((Xapian::MSet const *)arg1)->convert_to_percent(arg2);
23216         SWIG_PYTHON_THREAD_END_ALLOW;
23217       }
23218     } catch (...) {
23219       Xapian::SetPythonException();
23220       SWIG_fail;
23221     }
23222   }
23223   resultobj = SWIG_From_int(static_cast< int >(result));
23224   return resultobj;
23225 fail:
23226   return NULL;
23227 }
23228 
23229 
_wrap_MSet_convert_to_percent__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)23230 SWIGINTERN PyObject *_wrap_MSet_convert_to_percent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23231   PyObject *resultobj = 0;
23232   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
23233   Xapian::MSetIterator *arg2 = 0 ;
23234   void *argp1 = 0 ;
23235   int res1 = 0 ;
23236   void *argp2 = 0 ;
23237   int res2 = 0 ;
23238   int result;
23239 
23240   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23241   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
23242   if (!SWIG_IsOK(res1)) {
23243     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_convert_to_percent" "', argument " "1"" of type '" "Xapian::MSet const *""'");
23244   }
23245   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
23246   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
23247   if (!SWIG_IsOK(res2)) {
23248     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSet_convert_to_percent" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
23249   }
23250   if (!argp2) {
23251     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_convert_to_percent" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
23252   }
23253   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
23254   {
23255     try {
23256       {
23257         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23258         result = (int)((Xapian::MSet const *)arg1)->convert_to_percent((Xapian::MSetIterator const &)*arg2);
23259         SWIG_PYTHON_THREAD_END_ALLOW;
23260       }
23261     } catch (...) {
23262       Xapian::SetPythonException();
23263       SWIG_fail;
23264     }
23265   }
23266   resultobj = SWIG_From_int(static_cast< int >(result));
23267   return resultobj;
23268 fail:
23269   return NULL;
23270 }
23271 
23272 
_wrap_MSet_convert_to_percent(PyObject * self,PyObject * args)23273 SWIGINTERN PyObject *_wrap_MSet_convert_to_percent(PyObject *self, PyObject *args) {
23274   Py_ssize_t argc;
23275   PyObject *argv[3] = {
23276     0
23277   };
23278 
23279   if (!(argc = SWIG_Python_UnpackTuple(args,"MSet_convert_to_percent",0,2,argv))) SWIG_fail;
23280   --argc;
23281   if (argc == 2) {
23282     int _v = 0;
23283     {
23284       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__MSetIterator, 0);
23285       _v = SWIG_CheckState(res);
23286     }
23287     if (!_v) goto check_1;
23288     return _wrap_MSet_convert_to_percent__SWIG_1(self, argc, argv);
23289   }
23290 check_1:
23291 
23292   if (argc == 2) {
23293     return _wrap_MSet_convert_to_percent__SWIG_0(self, argc, argv);
23294   }
23295 
23296 fail:
23297   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'MSet_convert_to_percent'.\n"
23298     "  Possible C/C++ prototypes are:\n"
23299     "    Xapian::MSet::convert_to_percent(double) const\n"
23300     "    Xapian::MSet::convert_to_percent(Xapian::MSetIterator const &) const\n");
23301   return 0;
23302 }
23303 
23304 
_wrap_MSet_get_termfreq(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23305 SWIGINTERN PyObject *_wrap_MSet_get_termfreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23306   PyObject *resultobj = 0;
23307   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
23308   std::string *arg2 = 0 ;
23309   void *argp1 = 0 ;
23310   int res1 = 0 ;
23311   int res2 = SWIG_OLDOBJ ;
23312   PyObject *swig_obj[2] ;
23313   Xapian::doccount result;
23314 
23315   if (!SWIG_Python_UnpackTuple(args,"MSet_get_termfreq",2,2,swig_obj)) SWIG_fail;
23316   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
23317   if (!SWIG_IsOK(res1)) {
23318     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_get_termfreq" "', argument " "1"" of type '" "Xapian::MSet const *""'");
23319   }
23320   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
23321   {
23322     std::string *ptr = (std::string *)0;
23323     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
23324     if (!SWIG_IsOK(res2)) {
23325       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSet_get_termfreq" "', argument " "2"" of type '" "std::string const &""'");
23326     }
23327     if (!ptr) {
23328       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_get_termfreq" "', argument " "2"" of type '" "std::string const &""'");
23329     }
23330     arg2 = ptr;
23331   }
23332   {
23333     try {
23334       {
23335         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23336         result = (Xapian::doccount)((Xapian::MSet const *)arg1)->get_termfreq((std::string const &)*arg2);
23337         SWIG_PYTHON_THREAD_END_ALLOW;
23338       }
23339     } catch (...) {
23340       Xapian::SetPythonException();
23341       SWIG_fail;
23342     }
23343   }
23344   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
23345   if (SWIG_IsNewObj(res2)) delete arg2;
23346   return resultobj;
23347 fail:
23348   if (SWIG_IsNewObj(res2)) delete arg2;
23349   return NULL;
23350 }
23351 
23352 
_wrap_MSet_get_termweight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23353 SWIGINTERN PyObject *_wrap_MSet_get_termweight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23354   PyObject *resultobj = 0;
23355   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
23356   std::string *arg2 = 0 ;
23357   void *argp1 = 0 ;
23358   int res1 = 0 ;
23359   int res2 = SWIG_OLDOBJ ;
23360   PyObject *swig_obj[2] ;
23361   double result;
23362 
23363   if (!SWIG_Python_UnpackTuple(args,"MSet_get_termweight",2,2,swig_obj)) SWIG_fail;
23364   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
23365   if (!SWIG_IsOK(res1)) {
23366     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_get_termweight" "', argument " "1"" of type '" "Xapian::MSet const *""'");
23367   }
23368   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
23369   {
23370     std::string *ptr = (std::string *)0;
23371     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
23372     if (!SWIG_IsOK(res2)) {
23373       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSet_get_termweight" "', argument " "2"" of type '" "std::string const &""'");
23374     }
23375     if (!ptr) {
23376       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_get_termweight" "', argument " "2"" of type '" "std::string const &""'");
23377     }
23378     arg2 = ptr;
23379   }
23380   {
23381     try {
23382       {
23383         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23384         result = (double)((Xapian::MSet const *)arg1)->get_termweight((std::string const &)*arg2);
23385         SWIG_PYTHON_THREAD_END_ALLOW;
23386       }
23387     } catch (...) {
23388       Xapian::SetPythonException();
23389       SWIG_fail;
23390     }
23391   }
23392   resultobj = SWIG_From_double(static_cast< double >(result));
23393   if (SWIG_IsNewObj(res2)) delete arg2;
23394   return resultobj;
23395 fail:
23396   if (SWIG_IsNewObj(res2)) delete arg2;
23397   return NULL;
23398 }
23399 
23400 
_wrap_MSet_get_firstitem(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23401 SWIGINTERN PyObject *_wrap_MSet_get_firstitem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23402   PyObject *resultobj = 0;
23403   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
23404   void *argp1 = 0 ;
23405   int res1 = 0 ;
23406   PyObject *swig_obj[1] ;
23407   Xapian::doccount result;
23408 
23409   if (!args) SWIG_fail;
23410   swig_obj[0] = args;
23411   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
23412   if (!SWIG_IsOK(res1)) {
23413     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_get_firstitem" "', argument " "1"" of type '" "Xapian::MSet const *""'");
23414   }
23415   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
23416   {
23417     try {
23418       {
23419         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23420         result = (Xapian::doccount)((Xapian::MSet const *)arg1)->get_firstitem();
23421         SWIG_PYTHON_THREAD_END_ALLOW;
23422       }
23423     } catch (...) {
23424       Xapian::SetPythonException();
23425       SWIG_fail;
23426     }
23427   }
23428   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
23429   return resultobj;
23430 fail:
23431   return NULL;
23432 }
23433 
23434 
_wrap_MSet_get_matches_lower_bound(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23435 SWIGINTERN PyObject *_wrap_MSet_get_matches_lower_bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23436   PyObject *resultobj = 0;
23437   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
23438   void *argp1 = 0 ;
23439   int res1 = 0 ;
23440   PyObject *swig_obj[1] ;
23441   Xapian::doccount result;
23442 
23443   if (!args) SWIG_fail;
23444   swig_obj[0] = args;
23445   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
23446   if (!SWIG_IsOK(res1)) {
23447     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_get_matches_lower_bound" "', argument " "1"" of type '" "Xapian::MSet const *""'");
23448   }
23449   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
23450   {
23451     try {
23452       {
23453         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23454         result = (Xapian::doccount)((Xapian::MSet const *)arg1)->get_matches_lower_bound();
23455         SWIG_PYTHON_THREAD_END_ALLOW;
23456       }
23457     } catch (...) {
23458       Xapian::SetPythonException();
23459       SWIG_fail;
23460     }
23461   }
23462   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
23463   return resultobj;
23464 fail:
23465   return NULL;
23466 }
23467 
23468 
_wrap_MSet_get_matches_estimated(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23469 SWIGINTERN PyObject *_wrap_MSet_get_matches_estimated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23470   PyObject *resultobj = 0;
23471   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
23472   void *argp1 = 0 ;
23473   int res1 = 0 ;
23474   PyObject *swig_obj[1] ;
23475   Xapian::doccount result;
23476 
23477   if (!args) SWIG_fail;
23478   swig_obj[0] = args;
23479   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
23480   if (!SWIG_IsOK(res1)) {
23481     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_get_matches_estimated" "', argument " "1"" of type '" "Xapian::MSet const *""'");
23482   }
23483   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
23484   {
23485     try {
23486       {
23487         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23488         result = (Xapian::doccount)((Xapian::MSet const *)arg1)->get_matches_estimated();
23489         SWIG_PYTHON_THREAD_END_ALLOW;
23490       }
23491     } catch (...) {
23492       Xapian::SetPythonException();
23493       SWIG_fail;
23494     }
23495   }
23496   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
23497   return resultobj;
23498 fail:
23499   return NULL;
23500 }
23501 
23502 
_wrap_MSet_get_matches_upper_bound(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23503 SWIGINTERN PyObject *_wrap_MSet_get_matches_upper_bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23504   PyObject *resultobj = 0;
23505   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
23506   void *argp1 = 0 ;
23507   int res1 = 0 ;
23508   PyObject *swig_obj[1] ;
23509   Xapian::doccount result;
23510 
23511   if (!args) SWIG_fail;
23512   swig_obj[0] = args;
23513   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
23514   if (!SWIG_IsOK(res1)) {
23515     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_get_matches_upper_bound" "', argument " "1"" of type '" "Xapian::MSet const *""'");
23516   }
23517   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
23518   {
23519     try {
23520       {
23521         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23522         result = (Xapian::doccount)((Xapian::MSet const *)arg1)->get_matches_upper_bound();
23523         SWIG_PYTHON_THREAD_END_ALLOW;
23524       }
23525     } catch (...) {
23526       Xapian::SetPythonException();
23527       SWIG_fail;
23528     }
23529   }
23530   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
23531   return resultobj;
23532 fail:
23533   return NULL;
23534 }
23535 
23536 
_wrap_MSet_get_uncollapsed_matches_lower_bound(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23537 SWIGINTERN PyObject *_wrap_MSet_get_uncollapsed_matches_lower_bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23538   PyObject *resultobj = 0;
23539   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
23540   void *argp1 = 0 ;
23541   int res1 = 0 ;
23542   PyObject *swig_obj[1] ;
23543   Xapian::doccount result;
23544 
23545   if (!args) SWIG_fail;
23546   swig_obj[0] = args;
23547   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
23548   if (!SWIG_IsOK(res1)) {
23549     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_get_uncollapsed_matches_lower_bound" "', argument " "1"" of type '" "Xapian::MSet const *""'");
23550   }
23551   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
23552   {
23553     try {
23554       {
23555         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23556         result = (Xapian::doccount)((Xapian::MSet const *)arg1)->get_uncollapsed_matches_lower_bound();
23557         SWIG_PYTHON_THREAD_END_ALLOW;
23558       }
23559     } catch (...) {
23560       Xapian::SetPythonException();
23561       SWIG_fail;
23562     }
23563   }
23564   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
23565   return resultobj;
23566 fail:
23567   return NULL;
23568 }
23569 
23570 
_wrap_MSet_get_uncollapsed_matches_estimated(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23571 SWIGINTERN PyObject *_wrap_MSet_get_uncollapsed_matches_estimated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23572   PyObject *resultobj = 0;
23573   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
23574   void *argp1 = 0 ;
23575   int res1 = 0 ;
23576   PyObject *swig_obj[1] ;
23577   Xapian::doccount result;
23578 
23579   if (!args) SWIG_fail;
23580   swig_obj[0] = args;
23581   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
23582   if (!SWIG_IsOK(res1)) {
23583     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_get_uncollapsed_matches_estimated" "', argument " "1"" of type '" "Xapian::MSet const *""'");
23584   }
23585   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
23586   {
23587     try {
23588       {
23589         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23590         result = (Xapian::doccount)((Xapian::MSet const *)arg1)->get_uncollapsed_matches_estimated();
23591         SWIG_PYTHON_THREAD_END_ALLOW;
23592       }
23593     } catch (...) {
23594       Xapian::SetPythonException();
23595       SWIG_fail;
23596     }
23597   }
23598   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
23599   return resultobj;
23600 fail:
23601   return NULL;
23602 }
23603 
23604 
_wrap_MSet_get_uncollapsed_matches_upper_bound(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23605 SWIGINTERN PyObject *_wrap_MSet_get_uncollapsed_matches_upper_bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23606   PyObject *resultobj = 0;
23607   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
23608   void *argp1 = 0 ;
23609   int res1 = 0 ;
23610   PyObject *swig_obj[1] ;
23611   Xapian::doccount result;
23612 
23613   if (!args) SWIG_fail;
23614   swig_obj[0] = args;
23615   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
23616   if (!SWIG_IsOK(res1)) {
23617     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_get_uncollapsed_matches_upper_bound" "', argument " "1"" of type '" "Xapian::MSet const *""'");
23618   }
23619   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
23620   {
23621     try {
23622       {
23623         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23624         result = (Xapian::doccount)((Xapian::MSet const *)arg1)->get_uncollapsed_matches_upper_bound();
23625         SWIG_PYTHON_THREAD_END_ALLOW;
23626       }
23627     } catch (...) {
23628       Xapian::SetPythonException();
23629       SWIG_fail;
23630     }
23631   }
23632   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
23633   return resultobj;
23634 fail:
23635   return NULL;
23636 }
23637 
23638 
_wrap_MSet_get_max_attained(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23639 SWIGINTERN PyObject *_wrap_MSet_get_max_attained(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23640   PyObject *resultobj = 0;
23641   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
23642   void *argp1 = 0 ;
23643   int res1 = 0 ;
23644   PyObject *swig_obj[1] ;
23645   double result;
23646 
23647   if (!args) SWIG_fail;
23648   swig_obj[0] = args;
23649   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
23650   if (!SWIG_IsOK(res1)) {
23651     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_get_max_attained" "', argument " "1"" of type '" "Xapian::MSet const *""'");
23652   }
23653   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
23654   {
23655     try {
23656       {
23657         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23658         result = (double)((Xapian::MSet const *)arg1)->get_max_attained();
23659         SWIG_PYTHON_THREAD_END_ALLOW;
23660       }
23661     } catch (...) {
23662       Xapian::SetPythonException();
23663       SWIG_fail;
23664     }
23665   }
23666   resultobj = SWIG_From_double(static_cast< double >(result));
23667   return resultobj;
23668 fail:
23669   return NULL;
23670 }
23671 
23672 
_wrap_MSet_get_max_possible(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23673 SWIGINTERN PyObject *_wrap_MSet_get_max_possible(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23674   PyObject *resultobj = 0;
23675   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
23676   void *argp1 = 0 ;
23677   int res1 = 0 ;
23678   PyObject *swig_obj[1] ;
23679   double result;
23680 
23681   if (!args) SWIG_fail;
23682   swig_obj[0] = args;
23683   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
23684   if (!SWIG_IsOK(res1)) {
23685     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_get_max_possible" "', argument " "1"" of type '" "Xapian::MSet const *""'");
23686   }
23687   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
23688   {
23689     try {
23690       {
23691         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23692         result = (double)((Xapian::MSet const *)arg1)->get_max_possible();
23693         SWIG_PYTHON_THREAD_END_ALLOW;
23694       }
23695     } catch (...) {
23696       Xapian::SetPythonException();
23697       SWIG_fail;
23698     }
23699   }
23700   resultobj = SWIG_From_double(static_cast< double >(result));
23701   return resultobj;
23702 fail:
23703   return NULL;
23704 }
23705 
23706 
_wrap_MSet_snippet__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)23707 SWIGINTERN PyObject *_wrap_MSet_snippet__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23708   PyObject *resultobj = 0;
23709   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
23710   std::string *arg2 = 0 ;
23711   size_t arg3 ;
23712   Xapian::Stem *arg4 = 0 ;
23713   unsigned int arg5 ;
23714   std::string *arg6 = 0 ;
23715   std::string *arg7 = 0 ;
23716   std::string *arg8 = 0 ;
23717   void *argp1 = 0 ;
23718   int res1 = 0 ;
23719   int res2 = SWIG_OLDOBJ ;
23720   size_t val3 ;
23721   int ecode3 = 0 ;
23722   void *argp4 = 0 ;
23723   int res4 = 0 ;
23724   unsigned int val5 ;
23725   int ecode5 = 0 ;
23726   int res6 = SWIG_OLDOBJ ;
23727   int res7 = SWIG_OLDOBJ ;
23728   int res8 = SWIG_OLDOBJ ;
23729   std::string result;
23730 
23731   if ((nobjs < 8) || (nobjs > 8)) SWIG_fail;
23732   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
23733   if (!SWIG_IsOK(res1)) {
23734     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_snippet" "', argument " "1"" of type '" "Xapian::MSet const *""'");
23735   }
23736   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
23737   {
23738     std::string *ptr = (std::string *)0;
23739     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
23740     if (!SWIG_IsOK(res2)) {
23741       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSet_snippet" "', argument " "2"" of type '" "std::string const &""'");
23742     }
23743     if (!ptr) {
23744       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "2"" of type '" "std::string const &""'");
23745     }
23746     arg2 = ptr;
23747   }
23748   ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
23749   if (!SWIG_IsOK(ecode3)) {
23750     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MSet_snippet" "', argument " "3"" of type '" "size_t""'");
23751   }
23752   arg3 = static_cast< size_t >(val3);
23753   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_Xapian__Stem,  0  | 0);
23754   if (!SWIG_IsOK(res4)) {
23755     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "MSet_snippet" "', argument " "4"" of type '" "Xapian::Stem const &""'");
23756   }
23757   if (!argp4) {
23758     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "4"" of type '" "Xapian::Stem const &""'");
23759   }
23760   arg4 = reinterpret_cast< Xapian::Stem * >(argp4);
23761   ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5);
23762   if (!SWIG_IsOK(ecode5)) {
23763     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "MSet_snippet" "', argument " "5"" of type '" "unsigned int""'");
23764   }
23765   arg5 = static_cast< unsigned int >(val5);
23766   {
23767     std::string *ptr = (std::string *)0;
23768     res6 = XapianSWIG_anystring_as_ptr(swig_obj[5], &ptr);
23769     if (!SWIG_IsOK(res6)) {
23770       SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "MSet_snippet" "', argument " "6"" of type '" "std::string const &""'");
23771     }
23772     if (!ptr) {
23773       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "6"" of type '" "std::string const &""'");
23774     }
23775     arg6 = ptr;
23776   }
23777   {
23778     std::string *ptr = (std::string *)0;
23779     res7 = XapianSWIG_anystring_as_ptr(swig_obj[6], &ptr);
23780     if (!SWIG_IsOK(res7)) {
23781       SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "MSet_snippet" "', argument " "7"" of type '" "std::string const &""'");
23782     }
23783     if (!ptr) {
23784       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "7"" of type '" "std::string const &""'");
23785     }
23786     arg7 = ptr;
23787   }
23788   {
23789     std::string *ptr = (std::string *)0;
23790     res8 = XapianSWIG_anystring_as_ptr(swig_obj[7], &ptr);
23791     if (!SWIG_IsOK(res8)) {
23792       SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "MSet_snippet" "', argument " "8"" of type '" "std::string const &""'");
23793     }
23794     if (!ptr) {
23795       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "8"" of type '" "std::string const &""'");
23796     }
23797     arg8 = ptr;
23798   }
23799   {
23800     try {
23801       {
23802         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23803         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);
23804         SWIG_PYTHON_THREAD_END_ALLOW;
23805       }
23806     } catch (...) {
23807       Xapian::SetPythonException();
23808       SWIG_fail;
23809     }
23810   }
23811   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
23812   if (SWIG_IsNewObj(res2)) delete arg2;
23813   if (SWIG_IsNewObj(res6)) delete arg6;
23814   if (SWIG_IsNewObj(res7)) delete arg7;
23815   if (SWIG_IsNewObj(res8)) delete arg8;
23816   return resultobj;
23817 fail:
23818   if (SWIG_IsNewObj(res2)) delete arg2;
23819   if (SWIG_IsNewObj(res6)) delete arg6;
23820   if (SWIG_IsNewObj(res7)) delete arg7;
23821   if (SWIG_IsNewObj(res8)) delete arg8;
23822   return NULL;
23823 }
23824 
23825 
_wrap_MSet_snippet__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)23826 SWIGINTERN PyObject *_wrap_MSet_snippet__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23827   PyObject *resultobj = 0;
23828   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
23829   std::string *arg2 = 0 ;
23830   size_t arg3 ;
23831   Xapian::Stem *arg4 = 0 ;
23832   unsigned int arg5 ;
23833   std::string *arg6 = 0 ;
23834   std::string *arg7 = 0 ;
23835   void *argp1 = 0 ;
23836   int res1 = 0 ;
23837   int res2 = SWIG_OLDOBJ ;
23838   size_t val3 ;
23839   int ecode3 = 0 ;
23840   void *argp4 = 0 ;
23841   int res4 = 0 ;
23842   unsigned int val5 ;
23843   int ecode5 = 0 ;
23844   int res6 = SWIG_OLDOBJ ;
23845   int res7 = SWIG_OLDOBJ ;
23846   std::string result;
23847 
23848   if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
23849   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
23850   if (!SWIG_IsOK(res1)) {
23851     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_snippet" "', argument " "1"" of type '" "Xapian::MSet const *""'");
23852   }
23853   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
23854   {
23855     std::string *ptr = (std::string *)0;
23856     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
23857     if (!SWIG_IsOK(res2)) {
23858       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSet_snippet" "', argument " "2"" of type '" "std::string const &""'");
23859     }
23860     if (!ptr) {
23861       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "2"" of type '" "std::string const &""'");
23862     }
23863     arg2 = ptr;
23864   }
23865   ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
23866   if (!SWIG_IsOK(ecode3)) {
23867     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MSet_snippet" "', argument " "3"" of type '" "size_t""'");
23868   }
23869   arg3 = static_cast< size_t >(val3);
23870   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_Xapian__Stem,  0  | 0);
23871   if (!SWIG_IsOK(res4)) {
23872     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "MSet_snippet" "', argument " "4"" of type '" "Xapian::Stem const &""'");
23873   }
23874   if (!argp4) {
23875     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "4"" of type '" "Xapian::Stem const &""'");
23876   }
23877   arg4 = reinterpret_cast< Xapian::Stem * >(argp4);
23878   ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5);
23879   if (!SWIG_IsOK(ecode5)) {
23880     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "MSet_snippet" "', argument " "5"" of type '" "unsigned int""'");
23881   }
23882   arg5 = static_cast< unsigned int >(val5);
23883   {
23884     std::string *ptr = (std::string *)0;
23885     res6 = XapianSWIG_anystring_as_ptr(swig_obj[5], &ptr);
23886     if (!SWIG_IsOK(res6)) {
23887       SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "MSet_snippet" "', argument " "6"" of type '" "std::string const &""'");
23888     }
23889     if (!ptr) {
23890       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "6"" of type '" "std::string const &""'");
23891     }
23892     arg6 = ptr;
23893   }
23894   {
23895     std::string *ptr = (std::string *)0;
23896     res7 = XapianSWIG_anystring_as_ptr(swig_obj[6], &ptr);
23897     if (!SWIG_IsOK(res7)) {
23898       SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "MSet_snippet" "', argument " "7"" of type '" "std::string const &""'");
23899     }
23900     if (!ptr) {
23901       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "7"" of type '" "std::string const &""'");
23902     }
23903     arg7 = ptr;
23904   }
23905   {
23906     try {
23907       {
23908         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23909         result = ((Xapian::MSet const *)arg1)->snippet((std::string const &)*arg2,arg3,(Xapian::Stem const &)*arg4,arg5,(std::string const &)*arg6,(std::string const &)*arg7);
23910         SWIG_PYTHON_THREAD_END_ALLOW;
23911       }
23912     } catch (...) {
23913       Xapian::SetPythonException();
23914       SWIG_fail;
23915     }
23916   }
23917   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
23918   if (SWIG_IsNewObj(res2)) delete arg2;
23919   if (SWIG_IsNewObj(res6)) delete arg6;
23920   if (SWIG_IsNewObj(res7)) delete arg7;
23921   return resultobj;
23922 fail:
23923   if (SWIG_IsNewObj(res2)) delete arg2;
23924   if (SWIG_IsNewObj(res6)) delete arg6;
23925   if (SWIG_IsNewObj(res7)) delete arg7;
23926   return NULL;
23927 }
23928 
23929 
_wrap_MSet_snippet__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)23930 SWIGINTERN PyObject *_wrap_MSet_snippet__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23931   PyObject *resultobj = 0;
23932   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
23933   std::string *arg2 = 0 ;
23934   size_t arg3 ;
23935   Xapian::Stem *arg4 = 0 ;
23936   unsigned int arg5 ;
23937   std::string *arg6 = 0 ;
23938   void *argp1 = 0 ;
23939   int res1 = 0 ;
23940   int res2 = SWIG_OLDOBJ ;
23941   size_t val3 ;
23942   int ecode3 = 0 ;
23943   void *argp4 = 0 ;
23944   int res4 = 0 ;
23945   unsigned int val5 ;
23946   int ecode5 = 0 ;
23947   int res6 = SWIG_OLDOBJ ;
23948   std::string result;
23949 
23950   if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
23951   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
23952   if (!SWIG_IsOK(res1)) {
23953     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_snippet" "', argument " "1"" of type '" "Xapian::MSet const *""'");
23954   }
23955   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
23956   {
23957     std::string *ptr = (std::string *)0;
23958     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
23959     if (!SWIG_IsOK(res2)) {
23960       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSet_snippet" "', argument " "2"" of type '" "std::string const &""'");
23961     }
23962     if (!ptr) {
23963       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "2"" of type '" "std::string const &""'");
23964     }
23965     arg2 = ptr;
23966   }
23967   ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
23968   if (!SWIG_IsOK(ecode3)) {
23969     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MSet_snippet" "', argument " "3"" of type '" "size_t""'");
23970   }
23971   arg3 = static_cast< size_t >(val3);
23972   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_Xapian__Stem,  0  | 0);
23973   if (!SWIG_IsOK(res4)) {
23974     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "MSet_snippet" "', argument " "4"" of type '" "Xapian::Stem const &""'");
23975   }
23976   if (!argp4) {
23977     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "4"" of type '" "Xapian::Stem const &""'");
23978   }
23979   arg4 = reinterpret_cast< Xapian::Stem * >(argp4);
23980   ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5);
23981   if (!SWIG_IsOK(ecode5)) {
23982     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "MSet_snippet" "', argument " "5"" of type '" "unsigned int""'");
23983   }
23984   arg5 = static_cast< unsigned int >(val5);
23985   {
23986     std::string *ptr = (std::string *)0;
23987     res6 = XapianSWIG_anystring_as_ptr(swig_obj[5], &ptr);
23988     if (!SWIG_IsOK(res6)) {
23989       SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "MSet_snippet" "', argument " "6"" of type '" "std::string const &""'");
23990     }
23991     if (!ptr) {
23992       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "6"" of type '" "std::string const &""'");
23993     }
23994     arg6 = ptr;
23995   }
23996   {
23997     try {
23998       {
23999         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
24000         result = ((Xapian::MSet const *)arg1)->snippet((std::string const &)*arg2,arg3,(Xapian::Stem const &)*arg4,arg5,(std::string const &)*arg6);
24001         SWIG_PYTHON_THREAD_END_ALLOW;
24002       }
24003     } catch (...) {
24004       Xapian::SetPythonException();
24005       SWIG_fail;
24006     }
24007   }
24008   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
24009   if (SWIG_IsNewObj(res2)) delete arg2;
24010   if (SWIG_IsNewObj(res6)) delete arg6;
24011   return resultobj;
24012 fail:
24013   if (SWIG_IsNewObj(res2)) delete arg2;
24014   if (SWIG_IsNewObj(res6)) delete arg6;
24015   return NULL;
24016 }
24017 
24018 
_wrap_MSet_snippet__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)24019 SWIGINTERN PyObject *_wrap_MSet_snippet__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24020   PyObject *resultobj = 0;
24021   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
24022   std::string *arg2 = 0 ;
24023   size_t arg3 ;
24024   Xapian::Stem *arg4 = 0 ;
24025   unsigned int arg5 ;
24026   void *argp1 = 0 ;
24027   int res1 = 0 ;
24028   int res2 = SWIG_OLDOBJ ;
24029   size_t val3 ;
24030   int ecode3 = 0 ;
24031   void *argp4 = 0 ;
24032   int res4 = 0 ;
24033   unsigned int val5 ;
24034   int ecode5 = 0 ;
24035   std::string result;
24036 
24037   if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
24038   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
24039   if (!SWIG_IsOK(res1)) {
24040     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_snippet" "', argument " "1"" of type '" "Xapian::MSet const *""'");
24041   }
24042   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
24043   {
24044     std::string *ptr = (std::string *)0;
24045     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
24046     if (!SWIG_IsOK(res2)) {
24047       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSet_snippet" "', argument " "2"" of type '" "std::string const &""'");
24048     }
24049     if (!ptr) {
24050       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "2"" of type '" "std::string const &""'");
24051     }
24052     arg2 = ptr;
24053   }
24054   ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
24055   if (!SWIG_IsOK(ecode3)) {
24056     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MSet_snippet" "', argument " "3"" of type '" "size_t""'");
24057   }
24058   arg3 = static_cast< size_t >(val3);
24059   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_Xapian__Stem,  0  | 0);
24060   if (!SWIG_IsOK(res4)) {
24061     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "MSet_snippet" "', argument " "4"" of type '" "Xapian::Stem const &""'");
24062   }
24063   if (!argp4) {
24064     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "4"" of type '" "Xapian::Stem const &""'");
24065   }
24066   arg4 = reinterpret_cast< Xapian::Stem * >(argp4);
24067   ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5);
24068   if (!SWIG_IsOK(ecode5)) {
24069     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "MSet_snippet" "', argument " "5"" of type '" "unsigned int""'");
24070   }
24071   arg5 = static_cast< unsigned int >(val5);
24072   {
24073     try {
24074       {
24075         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
24076         result = ((Xapian::MSet const *)arg1)->snippet((std::string const &)*arg2,arg3,(Xapian::Stem const &)*arg4,arg5);
24077         SWIG_PYTHON_THREAD_END_ALLOW;
24078       }
24079     } catch (...) {
24080       Xapian::SetPythonException();
24081       SWIG_fail;
24082     }
24083   }
24084   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
24085   if (SWIG_IsNewObj(res2)) delete arg2;
24086   return resultobj;
24087 fail:
24088   if (SWIG_IsNewObj(res2)) delete arg2;
24089   return NULL;
24090 }
24091 
24092 
_wrap_MSet_snippet__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)24093 SWIGINTERN PyObject *_wrap_MSet_snippet__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24094   PyObject *resultobj = 0;
24095   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
24096   std::string *arg2 = 0 ;
24097   size_t arg3 ;
24098   Xapian::Stem *arg4 = 0 ;
24099   void *argp1 = 0 ;
24100   int res1 = 0 ;
24101   int res2 = SWIG_OLDOBJ ;
24102   size_t val3 ;
24103   int ecode3 = 0 ;
24104   void *argp4 = 0 ;
24105   int res4 = 0 ;
24106   std::string result;
24107 
24108   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
24109   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
24110   if (!SWIG_IsOK(res1)) {
24111     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_snippet" "', argument " "1"" of type '" "Xapian::MSet const *""'");
24112   }
24113   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
24114   {
24115     std::string *ptr = (std::string *)0;
24116     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
24117     if (!SWIG_IsOK(res2)) {
24118       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSet_snippet" "', argument " "2"" of type '" "std::string const &""'");
24119     }
24120     if (!ptr) {
24121       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "2"" of type '" "std::string const &""'");
24122     }
24123     arg2 = ptr;
24124   }
24125   ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
24126   if (!SWIG_IsOK(ecode3)) {
24127     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MSet_snippet" "', argument " "3"" of type '" "size_t""'");
24128   }
24129   arg3 = static_cast< size_t >(val3);
24130   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_Xapian__Stem,  0  | 0);
24131   if (!SWIG_IsOK(res4)) {
24132     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "MSet_snippet" "', argument " "4"" of type '" "Xapian::Stem const &""'");
24133   }
24134   if (!argp4) {
24135     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "4"" of type '" "Xapian::Stem const &""'");
24136   }
24137   arg4 = reinterpret_cast< Xapian::Stem * >(argp4);
24138   {
24139     try {
24140       {
24141         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
24142         result = ((Xapian::MSet const *)arg1)->snippet((std::string const &)*arg2,arg3,(Xapian::Stem const &)*arg4);
24143         SWIG_PYTHON_THREAD_END_ALLOW;
24144       }
24145     } catch (...) {
24146       Xapian::SetPythonException();
24147       SWIG_fail;
24148     }
24149   }
24150   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
24151   if (SWIG_IsNewObj(res2)) delete arg2;
24152   return resultobj;
24153 fail:
24154   if (SWIG_IsNewObj(res2)) delete arg2;
24155   return NULL;
24156 }
24157 
24158 
_wrap_MSet_snippet__SWIG_5(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)24159 SWIGINTERN PyObject *_wrap_MSet_snippet__SWIG_5(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24160   PyObject *resultobj = 0;
24161   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
24162   std::string *arg2 = 0 ;
24163   size_t arg3 ;
24164   void *argp1 = 0 ;
24165   int res1 = 0 ;
24166   int res2 = SWIG_OLDOBJ ;
24167   size_t val3 ;
24168   int ecode3 = 0 ;
24169   std::string result;
24170 
24171   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
24172   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
24173   if (!SWIG_IsOK(res1)) {
24174     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_snippet" "', argument " "1"" of type '" "Xapian::MSet const *""'");
24175   }
24176   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
24177   {
24178     std::string *ptr = (std::string *)0;
24179     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
24180     if (!SWIG_IsOK(res2)) {
24181       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSet_snippet" "', argument " "2"" of type '" "std::string const &""'");
24182     }
24183     if (!ptr) {
24184       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "2"" of type '" "std::string const &""'");
24185     }
24186     arg2 = ptr;
24187   }
24188   ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
24189   if (!SWIG_IsOK(ecode3)) {
24190     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MSet_snippet" "', argument " "3"" of type '" "size_t""'");
24191   }
24192   arg3 = static_cast< size_t >(val3);
24193   {
24194     try {
24195       {
24196         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
24197         result = ((Xapian::MSet const *)arg1)->snippet((std::string const &)*arg2,arg3);
24198         SWIG_PYTHON_THREAD_END_ALLOW;
24199       }
24200     } catch (...) {
24201       Xapian::SetPythonException();
24202       SWIG_fail;
24203     }
24204   }
24205   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
24206   if (SWIG_IsNewObj(res2)) delete arg2;
24207   return resultobj;
24208 fail:
24209   if (SWIG_IsNewObj(res2)) delete arg2;
24210   return NULL;
24211 }
24212 
24213 
_wrap_MSet_snippet__SWIG_6(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)24214 SWIGINTERN PyObject *_wrap_MSet_snippet__SWIG_6(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   void *argp1 = 0 ;
24219   int res1 = 0 ;
24220   int res2 = SWIG_OLDOBJ ;
24221   std::string result;
24222 
24223   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24224   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
24225   if (!SWIG_IsOK(res1)) {
24226     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_snippet" "', argument " "1"" of type '" "Xapian::MSet const *""'");
24227   }
24228   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
24229   {
24230     std::string *ptr = (std::string *)0;
24231     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
24232     if (!SWIG_IsOK(res2)) {
24233       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSet_snippet" "', argument " "2"" of type '" "std::string const &""'");
24234     }
24235     if (!ptr) {
24236       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "2"" of type '" "std::string const &""'");
24237     }
24238     arg2 = ptr;
24239   }
24240   {
24241     try {
24242       {
24243         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
24244         result = ((Xapian::MSet const *)arg1)->snippet((std::string const &)*arg2);
24245         SWIG_PYTHON_THREAD_END_ALLOW;
24246       }
24247     } catch (...) {
24248       Xapian::SetPythonException();
24249       SWIG_fail;
24250     }
24251   }
24252   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
24253   if (SWIG_IsNewObj(res2)) delete arg2;
24254   return resultobj;
24255 fail:
24256   if (SWIG_IsNewObj(res2)) delete arg2;
24257   return NULL;
24258 }
24259 
24260 
_wrap_MSet_snippet(PyObject * self,PyObject * args)24261 SWIGINTERN PyObject *_wrap_MSet_snippet(PyObject *self, PyObject *args) {
24262   Py_ssize_t argc;
24263   PyObject *argv[9] = {
24264     0
24265   };
24266 
24267   if (!(argc = SWIG_Python_UnpackTuple(args,"MSet_snippet",0,8,argv))) SWIG_fail;
24268   --argc;
24269   if (argc == 2) {
24270     return _wrap_MSet_snippet__SWIG_6(self, argc, argv);
24271   }
24272   if (argc == 3) {
24273     return _wrap_MSet_snippet__SWIG_5(self, argc, argv);
24274   }
24275   if (argc == 4) {
24276     return _wrap_MSet_snippet__SWIG_4(self, argc, argv);
24277   }
24278   if (argc == 5) {
24279     return _wrap_MSet_snippet__SWIG_3(self, argc, argv);
24280   }
24281   if (argc == 6) {
24282     return _wrap_MSet_snippet__SWIG_2(self, argc, argv);
24283   }
24284   if (argc == 7) {
24285     return _wrap_MSet_snippet__SWIG_1(self, argc, argv);
24286   }
24287   if (argc == 8) {
24288     return _wrap_MSet_snippet__SWIG_0(self, argc, argv);
24289   }
24290 
24291 fail:
24292   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'MSet_snippet'.\n"
24293     "  Possible C/C++ prototypes are:\n"
24294     "    Xapian::MSet::snippet(std::string const &,size_t,Xapian::Stem const &,unsigned int,std::string const &,std::string const &,std::string const &) const\n"
24295     "    Xapian::MSet::snippet(std::string const &,size_t,Xapian::Stem const &,unsigned int,std::string const &,std::string const &) const\n"
24296     "    Xapian::MSet::snippet(std::string const &,size_t,Xapian::Stem const &,unsigned int,std::string const &) const\n"
24297     "    Xapian::MSet::snippet(std::string const &,size_t,Xapian::Stem const &,unsigned int) const\n"
24298     "    Xapian::MSet::snippet(std::string const &,size_t,Xapian::Stem const &) const\n"
24299     "    Xapian::MSet::snippet(std::string const &,size_t) const\n"
24300     "    Xapian::MSet::snippet(std::string const &) const\n");
24301   return 0;
24302 }
24303 
24304 
_wrap_MSet_fetch__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)24305 SWIGINTERN PyObject *_wrap_MSet_fetch__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24306   PyObject *resultobj = 0;
24307   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
24308   Xapian::MSetIterator *arg2 = 0 ;
24309   Xapian::MSetIterator *arg3 = 0 ;
24310   void *argp1 = 0 ;
24311   int res1 = 0 ;
24312   void *argp2 = 0 ;
24313   int res2 = 0 ;
24314   void *argp3 = 0 ;
24315   int res3 = 0 ;
24316 
24317   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
24318   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
24319   if (!SWIG_IsOK(res1)) {
24320     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_fetch" "', argument " "1"" of type '" "Xapian::MSet const *""'");
24321   }
24322   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
24323   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
24324   if (!SWIG_IsOK(res2)) {
24325     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSet_fetch" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
24326   }
24327   if (!argp2) {
24328     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_fetch" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
24329   }
24330   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
24331   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
24332   if (!SWIG_IsOK(res3)) {
24333     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MSet_fetch" "', argument " "3"" of type '" "Xapian::MSetIterator const &""'");
24334   }
24335   if (!argp3) {
24336     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_fetch" "', argument " "3"" of type '" "Xapian::MSetIterator const &""'");
24337   }
24338   arg3 = reinterpret_cast< Xapian::MSetIterator * >(argp3);
24339   {
24340     try {
24341       {
24342         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
24343         ((Xapian::MSet const *)arg1)->fetch((Xapian::MSetIterator const &)*arg2,(Xapian::MSetIterator const &)*arg3);
24344         SWIG_PYTHON_THREAD_END_ALLOW;
24345       }
24346     } catch (...) {
24347       Xapian::SetPythonException();
24348       SWIG_fail;
24349     }
24350   }
24351   resultobj = SWIG_Py_Void();
24352   return resultobj;
24353 fail:
24354   return NULL;
24355 }
24356 
24357 
_wrap_MSet_fetch__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)24358 SWIGINTERN PyObject *_wrap_MSet_fetch__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24359   PyObject *resultobj = 0;
24360   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
24361   Xapian::MSetIterator *arg2 = 0 ;
24362   void *argp1 = 0 ;
24363   int res1 = 0 ;
24364   void *argp2 = 0 ;
24365   int res2 = 0 ;
24366 
24367   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24368   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
24369   if (!SWIG_IsOK(res1)) {
24370     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_fetch" "', argument " "1"" of type '" "Xapian::MSet const *""'");
24371   }
24372   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
24373   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
24374   if (!SWIG_IsOK(res2)) {
24375     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSet_fetch" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
24376   }
24377   if (!argp2) {
24378     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_fetch" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
24379   }
24380   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
24381   {
24382     try {
24383       {
24384         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
24385         ((Xapian::MSet const *)arg1)->fetch((Xapian::MSetIterator const &)*arg2);
24386         SWIG_PYTHON_THREAD_END_ALLOW;
24387       }
24388     } catch (...) {
24389       Xapian::SetPythonException();
24390       SWIG_fail;
24391     }
24392   }
24393   resultobj = SWIG_Py_Void();
24394   return resultobj;
24395 fail:
24396   return NULL;
24397 }
24398 
24399 
_wrap_MSet_fetch__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)24400 SWIGINTERN PyObject *_wrap_MSet_fetch__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24401   PyObject *resultobj = 0;
24402   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
24403   void *argp1 = 0 ;
24404   int res1 = 0 ;
24405 
24406   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
24407   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
24408   if (!SWIG_IsOK(res1)) {
24409     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_fetch" "', argument " "1"" of type '" "Xapian::MSet const *""'");
24410   }
24411   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
24412   {
24413     try {
24414       {
24415         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
24416         ((Xapian::MSet const *)arg1)->fetch();
24417         SWIG_PYTHON_THREAD_END_ALLOW;
24418       }
24419     } catch (...) {
24420       Xapian::SetPythonException();
24421       SWIG_fail;
24422     }
24423   }
24424   resultobj = SWIG_Py_Void();
24425   return resultobj;
24426 fail:
24427   return NULL;
24428 }
24429 
24430 
_wrap_MSet_fetch(PyObject * self,PyObject * args)24431 SWIGINTERN PyObject *_wrap_MSet_fetch(PyObject *self, PyObject *args) {
24432   Py_ssize_t argc;
24433   PyObject *argv[4] = {
24434     0
24435   };
24436 
24437   if (!(argc = SWIG_Python_UnpackTuple(args,"MSet_fetch",0,3,argv))) SWIG_fail;
24438   --argc;
24439   if (argc == 1) {
24440     return _wrap_MSet_fetch__SWIG_2(self, argc, argv);
24441   }
24442   if (argc == 2) {
24443     return _wrap_MSet_fetch__SWIG_1(self, argc, argv);
24444   }
24445   if (argc == 3) {
24446     return _wrap_MSet_fetch__SWIG_0(self, argc, argv);
24447   }
24448 
24449 fail:
24450   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'MSet_fetch'.\n"
24451     "  Possible C/C++ prototypes are:\n"
24452     "    Xapian::MSet::fetch(Xapian::MSetIterator const &,Xapian::MSetIterator const &) const\n"
24453     "    Xapian::MSet::fetch(Xapian::MSetIterator const &) const\n"
24454     "    Xapian::MSet::fetch() const\n");
24455   return 0;
24456 }
24457 
24458 
_wrap_MSet_size(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24459 SWIGINTERN PyObject *_wrap_MSet_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24460   PyObject *resultobj = 0;
24461   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
24462   void *argp1 = 0 ;
24463   int res1 = 0 ;
24464   PyObject *swig_obj[1] ;
24465   Xapian::doccount result;
24466 
24467   if (!args) SWIG_fail;
24468   swig_obj[0] = args;
24469   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
24470   if (!SWIG_IsOK(res1)) {
24471     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_size" "', argument " "1"" of type '" "Xapian::MSet const *""'");
24472   }
24473   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
24474   {
24475     try {
24476       {
24477         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
24478         result = (Xapian::doccount)((Xapian::MSet const *)arg1)->size();
24479         SWIG_PYTHON_THREAD_END_ALLOW;
24480       }
24481     } catch (...) {
24482       Xapian::SetPythonException();
24483       SWIG_fail;
24484     }
24485   }
24486   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
24487   return resultobj;
24488 fail:
24489   return NULL;
24490 }
24491 
24492 
_wrap_MSet_empty(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24493 SWIGINTERN PyObject *_wrap_MSet_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24494   PyObject *resultobj = 0;
24495   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
24496   void *argp1 = 0 ;
24497   int res1 = 0 ;
24498   PyObject *swig_obj[1] ;
24499   bool result;
24500 
24501   if (!args) SWIG_fail;
24502   swig_obj[0] = args;
24503   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
24504   if (!SWIG_IsOK(res1)) {
24505     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_empty" "', argument " "1"" of type '" "Xapian::MSet const *""'");
24506   }
24507   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
24508   {
24509     try {
24510       {
24511         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
24512         result = (bool)((Xapian::MSet const *)arg1)->empty();
24513         SWIG_PYTHON_THREAD_END_ALLOW;
24514       }
24515     } catch (...) {
24516       Xapian::SetPythonException();
24517       SWIG_fail;
24518     }
24519   }
24520   resultobj = SWIG_From_bool(static_cast< bool >(result));
24521   return resultobj;
24522 fail:
24523   return NULL;
24524 }
24525 
24526 
_wrap_MSet__begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24527 SWIGINTERN PyObject *_wrap_MSet__begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24528   PyObject *resultobj = 0;
24529   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
24530   void *argp1 = 0 ;
24531   int res1 = 0 ;
24532   PyObject *swig_obj[1] ;
24533   Xapian::MSetIterator result;
24534 
24535   if (!args) SWIG_fail;
24536   swig_obj[0] = args;
24537   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
24538   if (!SWIG_IsOK(res1)) {
24539     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet__begin" "', argument " "1"" of type '" "Xapian::MSet const *""'");
24540   }
24541   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
24542   {
24543     try {
24544       {
24545         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
24546         result = ((Xapian::MSet const *)arg1)->begin();
24547         SWIG_PYTHON_THREAD_END_ALLOW;
24548       }
24549     } catch (...) {
24550       Xapian::SetPythonException();
24551       SWIG_fail;
24552     }
24553   }
24554   resultobj = SWIG_NewPointerObj((new Xapian::MSetIterator(static_cast< const Xapian::MSetIterator& >(result))), SWIGTYPE_p_Xapian__MSetIterator, SWIG_POINTER_OWN |  0 );
24555   return resultobj;
24556 fail:
24557   return NULL;
24558 }
24559 
24560 
_wrap_MSet__end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24561 SWIGINTERN PyObject *_wrap_MSet__end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24562   PyObject *resultobj = 0;
24563   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
24564   void *argp1 = 0 ;
24565   int res1 = 0 ;
24566   PyObject *swig_obj[1] ;
24567   Xapian::MSetIterator result;
24568 
24569   if (!args) SWIG_fail;
24570   swig_obj[0] = args;
24571   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
24572   if (!SWIG_IsOK(res1)) {
24573     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet__end" "', argument " "1"" of type '" "Xapian::MSet const *""'");
24574   }
24575   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
24576   {
24577     try {
24578       {
24579         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
24580         result = ((Xapian::MSet const *)arg1)->end();
24581         SWIG_PYTHON_THREAD_END_ALLOW;
24582       }
24583     } catch (...) {
24584       Xapian::SetPythonException();
24585       SWIG_fail;
24586     }
24587   }
24588   resultobj = SWIG_NewPointerObj((new Xapian::MSetIterator(static_cast< const Xapian::MSetIterator& >(result))), SWIGTYPE_p_Xapian__MSetIterator, SWIG_POINTER_OWN |  0 );
24589   return resultobj;
24590 fail:
24591   return NULL;
24592 }
24593 
24594 
_wrap_MSet_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24595 SWIGINTERN PyObject *_wrap_MSet_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24596   PyObject *resultobj = 0;
24597   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
24598   void *argp1 = 0 ;
24599   int res1 = 0 ;
24600   PyObject *swig_obj[1] ;
24601   Xapian::MSetIterator result;
24602 
24603   if (!args) SWIG_fail;
24604   swig_obj[0] = args;
24605   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
24606   if (!SWIG_IsOK(res1)) {
24607     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_back" "', argument " "1"" of type '" "Xapian::MSet const *""'");
24608   }
24609   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
24610   {
24611     try {
24612       {
24613         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
24614         result = ((Xapian::MSet const *)arg1)->back();
24615         SWIG_PYTHON_THREAD_END_ALLOW;
24616       }
24617     } catch (...) {
24618       Xapian::SetPythonException();
24619       SWIG_fail;
24620     }
24621   }
24622   resultobj = SWIG_NewPointerObj((new Xapian::MSetIterator(static_cast< const Xapian::MSetIterator& >(result))), SWIGTYPE_p_Xapian__MSetIterator, SWIG_POINTER_OWN |  0 );
24623   return resultobj;
24624 fail:
24625   return NULL;
24626 }
24627 
24628 
_wrap_MSet___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24629 SWIGINTERN PyObject *_wrap_MSet___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24630   PyObject *resultobj = 0;
24631   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
24632   void *argp1 = 0 ;
24633   int res1 = 0 ;
24634   PyObject *swig_obj[1] ;
24635   std::string result;
24636 
24637   if (!args) SWIG_fail;
24638   swig_obj[0] = args;
24639   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
24640   if (!SWIG_IsOK(res1)) {
24641     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet___str__" "', argument " "1"" of type '" "Xapian::MSet const *""'");
24642   }
24643   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
24644   {
24645     try {
24646       {
24647         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
24648         result = ((Xapian::MSet const *)arg1)->get_description();
24649         SWIG_PYTHON_THREAD_END_ALLOW;
24650       }
24651     } catch (...) {
24652       Xapian::SetPythonException();
24653       SWIG_fail;
24654     }
24655   }
24656   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
24657   return resultobj;
24658 fail:
24659   return NULL;
24660 }
24661 
24662 
_wrap_MSet_items_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24663 SWIGINTERN PyObject *_wrap_MSet_items_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24664   PyObject *resultobj = 0;
24665   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
24666   void *argp1 = 0 ;
24667   int res1 = 0 ;
24668   PyObject *swig_obj[1] ;
24669   PyObject *result = 0 ;
24670 
24671   if (!args) SWIG_fail;
24672   swig_obj[0] = args;
24673   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
24674   if (!SWIG_IsOK(res1)) {
24675     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_items_get" "', argument " "1"" of type '" "Xapian::MSet *""'");
24676   }
24677   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
24678   result = (PyObject *)Xapian_MSet_items_get(arg1);
24679   resultobj = result;
24680   return resultobj;
24681 fail:
24682   return NULL;
24683 }
24684 
24685 
_wrap_MSet___cmp__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24686 SWIGINTERN PyObject *_wrap_MSet___cmp__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24687   PyObject *resultobj = 0;
24688   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
24689   Xapian::MSet *arg2 = 0 ;
24690   void *argp1 = 0 ;
24691   int res1 = 0 ;
24692   void *argp2 = 0 ;
24693   int res2 = 0 ;
24694   PyObject *swig_obj[2] ;
24695   int result;
24696 
24697   if (!SWIG_Python_UnpackTuple(args,"MSet___cmp__",2,2,swig_obj)) SWIG_fail;
24698   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
24699   if (!SWIG_IsOK(res1)) {
24700     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet___cmp__" "', argument " "1"" of type '" "Xapian::MSet *""'");
24701   }
24702   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
24703   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__MSet,  0  | 0);
24704   if (!SWIG_IsOK(res2)) {
24705     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSet___cmp__" "', argument " "2"" of type '" "Xapian::MSet const &""'");
24706   }
24707   if (!argp2) {
24708     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet___cmp__" "', argument " "2"" of type '" "Xapian::MSet const &""'");
24709   }
24710   arg2 = reinterpret_cast< Xapian::MSet * >(argp2);
24711   {
24712     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
24713     result = (int)Xapian_MSet___cmp__(arg1,(Xapian::MSet const &)*arg2);
24714     SWIG_PYTHON_THREAD_END_ALLOW;
24715   }
24716   resultobj = SWIG_From_int(static_cast< int >(result));
24717   return resultobj;
24718 fail:
24719   return NULL;
24720 }
24721 
24722 
_wrap_MSet_get_docid(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24723 SWIGINTERN PyObject *_wrap_MSet_get_docid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24724   PyObject *resultobj = 0;
24725   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
24726   Xapian::doccount arg2 ;
24727   void *argp1 = 0 ;
24728   int res1 = 0 ;
24729   unsigned int val2 ;
24730   int ecode2 = 0 ;
24731   PyObject *swig_obj[2] ;
24732   Xapian::docid result;
24733 
24734   if (!SWIG_Python_UnpackTuple(args,"MSet_get_docid",2,2,swig_obj)) SWIG_fail;
24735   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
24736   if (!SWIG_IsOK(res1)) {
24737     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_get_docid" "', argument " "1"" of type '" "Xapian::MSet const *""'");
24738   }
24739   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
24740   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
24741   if (!SWIG_IsOK(ecode2)) {
24742     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MSet_get_docid" "', argument " "2"" of type '" "Xapian::doccount""'");
24743   }
24744   arg2 = static_cast< Xapian::doccount >(val2);
24745   {
24746     try {
24747       {
24748         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
24749         result = (Xapian::docid)Xapian_MSet_get_docid((Xapian::MSet const *)arg1,arg2);
24750         SWIG_PYTHON_THREAD_END_ALLOW;
24751       }
24752     } catch (...) {
24753       Xapian::SetPythonException();
24754       SWIG_fail;
24755     }
24756   }
24757   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
24758   return resultobj;
24759 fail:
24760   return NULL;
24761 }
24762 
24763 
_wrap_MSet_get_document(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24764 SWIGINTERN PyObject *_wrap_MSet_get_document(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24765   PyObject *resultobj = 0;
24766   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
24767   Xapian::doccount arg2 ;
24768   void *argp1 = 0 ;
24769   int res1 = 0 ;
24770   unsigned int val2 ;
24771   int ecode2 = 0 ;
24772   PyObject *swig_obj[2] ;
24773   Xapian::Document result;
24774 
24775   if (!SWIG_Python_UnpackTuple(args,"MSet_get_document",2,2,swig_obj)) SWIG_fail;
24776   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
24777   if (!SWIG_IsOK(res1)) {
24778     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_get_document" "', argument " "1"" of type '" "Xapian::MSet const *""'");
24779   }
24780   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
24781   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
24782   if (!SWIG_IsOK(ecode2)) {
24783     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MSet_get_document" "', argument " "2"" of type '" "Xapian::doccount""'");
24784   }
24785   arg2 = static_cast< Xapian::doccount >(val2);
24786   {
24787     try {
24788       {
24789         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
24790         result = Xapian_MSet_get_document((Xapian::MSet const *)arg1,arg2);
24791         SWIG_PYTHON_THREAD_END_ALLOW;
24792       }
24793     } catch (...) {
24794       Xapian::SetPythonException();
24795       SWIG_fail;
24796     }
24797   }
24798   resultobj = SWIG_NewPointerObj((new Xapian::Document(static_cast< const Xapian::Document& >(result))), SWIGTYPE_p_Xapian__Document, SWIG_POINTER_OWN |  0 );
24799   return resultobj;
24800 fail:
24801   return NULL;
24802 }
24803 
24804 
_wrap_MSet__get_hit_internal(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24805 SWIGINTERN PyObject *_wrap_MSet__get_hit_internal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24806   PyObject *resultobj = 0;
24807   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
24808   Xapian::doccount arg2 ;
24809   void *argp1 = 0 ;
24810   int res1 = 0 ;
24811   unsigned int val2 ;
24812   int ecode2 = 0 ;
24813   PyObject *swig_obj[2] ;
24814   Xapian::MSetIterator result;
24815 
24816   if (!SWIG_Python_UnpackTuple(args,"MSet__get_hit_internal",2,2,swig_obj)) SWIG_fail;
24817   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
24818   if (!SWIG_IsOK(res1)) {
24819     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet__get_hit_internal" "', argument " "1"" of type '" "Xapian::MSet const *""'");
24820   }
24821   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
24822   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
24823   if (!SWIG_IsOK(ecode2)) {
24824     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MSet__get_hit_internal" "', argument " "2"" of type '" "Xapian::doccount""'");
24825   }
24826   arg2 = static_cast< Xapian::doccount >(val2);
24827   {
24828     try {
24829       {
24830         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
24831         result = Xapian_MSet_get_hit((Xapian::MSet const *)arg1,arg2);
24832         SWIG_PYTHON_THREAD_END_ALLOW;
24833       }
24834     } catch (...) {
24835       Xapian::SetPythonException();
24836       SWIG_fail;
24837     }
24838   }
24839   resultobj = SWIG_NewPointerObj((new Xapian::MSetIterator(static_cast< const Xapian::MSetIterator& >(result))), SWIGTYPE_p_Xapian__MSetIterator, SWIG_POINTER_OWN |  0 );
24840   return resultobj;
24841 fail:
24842   return NULL;
24843 }
24844 
24845 
_wrap_MSet_get_document_percentage(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24846 SWIGINTERN PyObject *_wrap_MSet_get_document_percentage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24847   PyObject *resultobj = 0;
24848   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
24849   Xapian::doccount arg2 ;
24850   void *argp1 = 0 ;
24851   int res1 = 0 ;
24852   unsigned int val2 ;
24853   int ecode2 = 0 ;
24854   PyObject *swig_obj[2] ;
24855   int result;
24856 
24857   if (!SWIG_Python_UnpackTuple(args,"MSet_get_document_percentage",2,2,swig_obj)) SWIG_fail;
24858   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
24859   if (!SWIG_IsOK(res1)) {
24860     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_get_document_percentage" "', argument " "1"" of type '" "Xapian::MSet const *""'");
24861   }
24862   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
24863   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
24864   if (!SWIG_IsOK(ecode2)) {
24865     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MSet_get_document_percentage" "', argument " "2"" of type '" "Xapian::doccount""'");
24866   }
24867   arg2 = static_cast< Xapian::doccount >(val2);
24868   {
24869     try {
24870       {
24871         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
24872         result = (int)Xapian_MSet_get_document_percentage((Xapian::MSet const *)arg1,arg2);
24873         SWIG_PYTHON_THREAD_END_ALLOW;
24874       }
24875     } catch (...) {
24876       Xapian::SetPythonException();
24877       SWIG_fail;
24878     }
24879   }
24880   resultobj = SWIG_From_int(static_cast< int >(result));
24881   return resultobj;
24882 fail:
24883   return NULL;
24884 }
24885 
24886 
MSet_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24887 SWIGINTERN PyObject *MSet_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24888   PyObject *obj;
24889   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
24890   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__MSet, SWIG_NewClientData(obj));
24891   return SWIG_Py_Void();
24892 }
24893 
MSet_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24894 SWIGINTERN PyObject *MSet_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24895   return SWIG_Python_InitShadowInstance(args);
24896 }
24897 
_wrap__MSetIterator_mset_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24898 SWIGINTERN PyObject *_wrap__MSetIterator_mset_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24899   PyObject *resultobj = 0;
24900   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
24901   Xapian::MSet *arg2 = (Xapian::MSet *) 0 ;
24902   void *argp1 = 0 ;
24903   int res1 = 0 ;
24904   void *argp2 = 0 ;
24905   int res2 = 0 ;
24906   PyObject *swig_obj[2] ;
24907 
24908   if (!SWIG_Python_UnpackTuple(args,"_MSetIterator_mset_set",2,2,swig_obj)) SWIG_fail;
24909   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
24910   if (!SWIG_IsOK(res1)) {
24911     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_MSetIterator_mset_set" "', argument " "1"" of type '" "Xapian::MSetIterator *""'");
24912   }
24913   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
24914   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
24915   if (!SWIG_IsOK(res2)) {
24916     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_MSetIterator_mset_set" "', argument " "2"" of type '" "Xapian::MSet *""'");
24917   }
24918   arg2 = reinterpret_cast< Xapian::MSet * >(argp2);
24919   {
24920     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
24921     if (arg1) (arg1)->mset = *arg2;
24922     SWIG_PYTHON_THREAD_END_ALLOW;
24923   }
24924   resultobj = SWIG_Py_Void();
24925   return resultobj;
24926 fail:
24927   return NULL;
24928 }
24929 
24930 
_wrap__MSetIterator_mset_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24931 SWIGINTERN PyObject *_wrap__MSetIterator_mset_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24932   PyObject *resultobj = 0;
24933   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
24934   void *argp1 = 0 ;
24935   int res1 = 0 ;
24936   PyObject *swig_obj[1] ;
24937   Xapian::MSet *result = 0 ;
24938 
24939   if (!args) SWIG_fail;
24940   swig_obj[0] = args;
24941   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
24942   if (!SWIG_IsOK(res1)) {
24943     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_MSetIterator_mset_get" "', argument " "1"" of type '" "Xapian::MSetIterator *""'");
24944   }
24945   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
24946   {
24947     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
24948     result = (Xapian::MSet *)& ((arg1)->mset);
24949     SWIG_PYTHON_THREAD_END_ALLOW;
24950   }
24951   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__MSet, 0 |  0 );
24952   return resultobj;
24953 fail:
24954   return NULL;
24955 }
24956 
24957 
_wrap__MSetIterator_off_from_end_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24958 SWIGINTERN PyObject *_wrap__MSetIterator_off_from_end_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24959   PyObject *resultobj = 0;
24960   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
24961   Xapian::MSet::size_type arg2 ;
24962   void *argp1 = 0 ;
24963   int res1 = 0 ;
24964   unsigned int val2 ;
24965   int ecode2 = 0 ;
24966   PyObject *swig_obj[2] ;
24967 
24968   if (!SWIG_Python_UnpackTuple(args,"_MSetIterator_off_from_end_set",2,2,swig_obj)) SWIG_fail;
24969   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
24970   if (!SWIG_IsOK(res1)) {
24971     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_MSetIterator_off_from_end_set" "', argument " "1"" of type '" "Xapian::MSetIterator *""'");
24972   }
24973   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
24974   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
24975   if (!SWIG_IsOK(ecode2)) {
24976     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_MSetIterator_off_from_end_set" "', argument " "2"" of type '" "Xapian::MSet::size_type""'");
24977   }
24978   arg2 = static_cast< Xapian::MSet::size_type >(val2);
24979   {
24980     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
24981     if (arg1) (arg1)->off_from_end = arg2;
24982     SWIG_PYTHON_THREAD_END_ALLOW;
24983   }
24984   resultobj = SWIG_Py_Void();
24985   return resultobj;
24986 fail:
24987   return NULL;
24988 }
24989 
24990 
_wrap__MSetIterator_off_from_end_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24991 SWIGINTERN PyObject *_wrap__MSetIterator_off_from_end_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24992   PyObject *resultobj = 0;
24993   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
24994   void *argp1 = 0 ;
24995   int res1 = 0 ;
24996   PyObject *swig_obj[1] ;
24997   Xapian::MSet::size_type result;
24998 
24999   if (!args) SWIG_fail;
25000   swig_obj[0] = args;
25001   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
25002   if (!SWIG_IsOK(res1)) {
25003     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_MSetIterator_off_from_end_get" "', argument " "1"" of type '" "Xapian::MSetIterator *""'");
25004   }
25005   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25006   {
25007     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25008     result = (Xapian::MSet::size_type) ((arg1)->off_from_end);
25009     SWIG_PYTHON_THREAD_END_ALLOW;
25010   }
25011   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
25012   return resultobj;
25013 fail:
25014   return NULL;
25015 }
25016 
25017 
_wrap_new__MSetIterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25018 SWIGINTERN PyObject *_wrap_new__MSetIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25019   PyObject *resultobj = 0;
25020   Xapian::MSetIterator *result = 0 ;
25021 
25022   if (!SWIG_Python_UnpackTuple(args,"new__MSetIterator",0,0,0)) SWIG_fail;
25023   {
25024     try {
25025       {
25026         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25027         result = (Xapian::MSetIterator *)new Xapian::MSetIterator();
25028         SWIG_PYTHON_THREAD_END_ALLOW;
25029       }
25030     } catch (...) {
25031       Xapian::SetPythonException();
25032       SWIG_fail;
25033     }
25034   }
25035   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__MSetIterator, SWIG_POINTER_NEW |  0 );
25036   return resultobj;
25037 fail:
25038   return NULL;
25039 }
25040 
25041 
_wrap__MSetIterator_get_rank(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25042 SWIGINTERN PyObject *_wrap__MSetIterator_get_rank(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25043   PyObject *resultobj = 0;
25044   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
25045   void *argp1 = 0 ;
25046   int res1 = 0 ;
25047   PyObject *swig_obj[1] ;
25048   Xapian::doccount result;
25049 
25050   if (!args) SWIG_fail;
25051   swig_obj[0] = args;
25052   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
25053   if (!SWIG_IsOK(res1)) {
25054     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_MSetIterator_get_rank" "', argument " "1"" of type '" "Xapian::MSetIterator const *""'");
25055   }
25056   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25057   {
25058     try {
25059       {
25060         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25061         result = (Xapian::doccount)((Xapian::MSetIterator const *)arg1)->get_rank();
25062         SWIG_PYTHON_THREAD_END_ALLOW;
25063       }
25064     } catch (...) {
25065       Xapian::SetPythonException();
25066       SWIG_fail;
25067     }
25068   }
25069   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
25070   return resultobj;
25071 fail:
25072   return NULL;
25073 }
25074 
25075 
_wrap__MSetIterator_get_document(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25076 SWIGINTERN PyObject *_wrap__MSetIterator_get_document(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25077   PyObject *resultobj = 0;
25078   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
25079   void *argp1 = 0 ;
25080   int res1 = 0 ;
25081   PyObject *swig_obj[1] ;
25082   Xapian::Document result;
25083 
25084   if (!args) SWIG_fail;
25085   swig_obj[0] = args;
25086   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
25087   if (!SWIG_IsOK(res1)) {
25088     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_MSetIterator_get_document" "', argument " "1"" of type '" "Xapian::MSetIterator const *""'");
25089   }
25090   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25091   {
25092     try {
25093       {
25094         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25095         result = ((Xapian::MSetIterator const *)arg1)->get_document();
25096         SWIG_PYTHON_THREAD_END_ALLOW;
25097       }
25098     } catch (...) {
25099       Xapian::SetPythonException();
25100       SWIG_fail;
25101     }
25102   }
25103   resultobj = SWIG_NewPointerObj((new Xapian::Document(static_cast< const Xapian::Document& >(result))), SWIGTYPE_p_Xapian__Document, SWIG_POINTER_OWN |  0 );
25104   return resultobj;
25105 fail:
25106   return NULL;
25107 }
25108 
25109 
_wrap__MSetIterator_get_weight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25110 SWIGINTERN PyObject *_wrap__MSetIterator_get_weight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25111   PyObject *resultobj = 0;
25112   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
25113   void *argp1 = 0 ;
25114   int res1 = 0 ;
25115   PyObject *swig_obj[1] ;
25116   double result;
25117 
25118   if (!args) SWIG_fail;
25119   swig_obj[0] = args;
25120   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
25121   if (!SWIG_IsOK(res1)) {
25122     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_MSetIterator_get_weight" "', argument " "1"" of type '" "Xapian::MSetIterator const *""'");
25123   }
25124   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25125   {
25126     try {
25127       {
25128         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25129         result = (double)((Xapian::MSetIterator const *)arg1)->get_weight();
25130         SWIG_PYTHON_THREAD_END_ALLOW;
25131       }
25132     } catch (...) {
25133       Xapian::SetPythonException();
25134       SWIG_fail;
25135     }
25136   }
25137   resultobj = SWIG_From_double(static_cast< double >(result));
25138   return resultobj;
25139 fail:
25140   return NULL;
25141 }
25142 
25143 
_wrap__MSetIterator_get_collapse_key(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25144 SWIGINTERN PyObject *_wrap__MSetIterator_get_collapse_key(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25145   PyObject *resultobj = 0;
25146   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
25147   void *argp1 = 0 ;
25148   int res1 = 0 ;
25149   PyObject *swig_obj[1] ;
25150   std::string result;
25151 
25152   if (!args) SWIG_fail;
25153   swig_obj[0] = args;
25154   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
25155   if (!SWIG_IsOK(res1)) {
25156     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_MSetIterator_get_collapse_key" "', argument " "1"" of type '" "Xapian::MSetIterator const *""'");
25157   }
25158   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25159   {
25160     try {
25161       {
25162         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25163         result = ((Xapian::MSetIterator const *)arg1)->get_collapse_key();
25164         SWIG_PYTHON_THREAD_END_ALLOW;
25165       }
25166     } catch (...) {
25167       Xapian::SetPythonException();
25168       SWIG_fail;
25169     }
25170   }
25171   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
25172   return resultobj;
25173 fail:
25174   return NULL;
25175 }
25176 
25177 
_wrap__MSetIterator_get_collapse_count(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25178 SWIGINTERN PyObject *_wrap__MSetIterator_get_collapse_count(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25179   PyObject *resultobj = 0;
25180   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
25181   void *argp1 = 0 ;
25182   int res1 = 0 ;
25183   PyObject *swig_obj[1] ;
25184   Xapian::doccount result;
25185 
25186   if (!args) SWIG_fail;
25187   swig_obj[0] = args;
25188   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
25189   if (!SWIG_IsOK(res1)) {
25190     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_MSetIterator_get_collapse_count" "', argument " "1"" of type '" "Xapian::MSetIterator const *""'");
25191   }
25192   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25193   {
25194     try {
25195       {
25196         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25197         result = (Xapian::doccount)((Xapian::MSetIterator const *)arg1)->get_collapse_count();
25198         SWIG_PYTHON_THREAD_END_ALLOW;
25199       }
25200     } catch (...) {
25201       Xapian::SetPythonException();
25202       SWIG_fail;
25203     }
25204   }
25205   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
25206   return resultobj;
25207 fail:
25208   return NULL;
25209 }
25210 
25211 
_wrap__MSetIterator_get_sort_key(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25212 SWIGINTERN PyObject *_wrap__MSetIterator_get_sort_key(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25213   PyObject *resultobj = 0;
25214   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
25215   void *argp1 = 0 ;
25216   int res1 = 0 ;
25217   PyObject *swig_obj[1] ;
25218   std::string result;
25219 
25220   if (!args) SWIG_fail;
25221   swig_obj[0] = args;
25222   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
25223   if (!SWIG_IsOK(res1)) {
25224     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_MSetIterator_get_sort_key" "', argument " "1"" of type '" "Xapian::MSetIterator const *""'");
25225   }
25226   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25227   {
25228     try {
25229       {
25230         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25231         result = ((Xapian::MSetIterator const *)arg1)->get_sort_key();
25232         SWIG_PYTHON_THREAD_END_ALLOW;
25233       }
25234     } catch (...) {
25235       Xapian::SetPythonException();
25236       SWIG_fail;
25237     }
25238   }
25239   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
25240   return resultobj;
25241 fail:
25242   return NULL;
25243 }
25244 
25245 
_wrap__MSetIterator_get_percent(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25246 SWIGINTERN PyObject *_wrap__MSetIterator_get_percent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25247   PyObject *resultobj = 0;
25248   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
25249   void *argp1 = 0 ;
25250   int res1 = 0 ;
25251   PyObject *swig_obj[1] ;
25252   int result;
25253 
25254   if (!args) SWIG_fail;
25255   swig_obj[0] = args;
25256   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
25257   if (!SWIG_IsOK(res1)) {
25258     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_MSetIterator_get_percent" "', argument " "1"" of type '" "Xapian::MSetIterator const *""'");
25259   }
25260   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25261   {
25262     try {
25263       {
25264         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25265         result = (int)((Xapian::MSetIterator const *)arg1)->get_percent();
25266         SWIG_PYTHON_THREAD_END_ALLOW;
25267       }
25268     } catch (...) {
25269       Xapian::SetPythonException();
25270       SWIG_fail;
25271     }
25272   }
25273   resultobj = SWIG_From_int(static_cast< int >(result));
25274   return resultobj;
25275 fail:
25276   return NULL;
25277 }
25278 
25279 
_wrap__MSetIterator___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25280 SWIGINTERN PyObject *_wrap__MSetIterator___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25281   PyObject *resultobj = 0;
25282   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
25283   void *argp1 = 0 ;
25284   int res1 = 0 ;
25285   PyObject *swig_obj[1] ;
25286   std::string result;
25287 
25288   if (!args) SWIG_fail;
25289   swig_obj[0] = args;
25290   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
25291   if (!SWIG_IsOK(res1)) {
25292     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_MSetIterator___str__" "', argument " "1"" of type '" "Xapian::MSetIterator const *""'");
25293   }
25294   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25295   {
25296     try {
25297       {
25298         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25299         result = ((Xapian::MSetIterator const *)arg1)->get_description();
25300         SWIG_PYTHON_THREAD_END_ALLOW;
25301       }
25302     } catch (...) {
25303       Xapian::SetPythonException();
25304       SWIG_fail;
25305     }
25306   }
25307   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
25308   return resultobj;
25309 fail:
25310   return NULL;
25311 }
25312 
25313 
_wrap__MSetIterator___eq__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25314 SWIGINTERN PyObject *_wrap__MSetIterator___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25315   PyObject *resultobj = 0;
25316   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
25317   Xapian::MSetIterator *arg2 = 0 ;
25318   void *argp1 = 0 ;
25319   int res1 = 0 ;
25320   void *argp2 = 0 ;
25321   int res2 = 0 ;
25322   PyObject *swig_obj[2] ;
25323   bool result;
25324 
25325   if (!SWIG_Python_UnpackTuple(args,"_MSetIterator___eq__",2,2,swig_obj)) SWIG_fail;
25326   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
25327   if (!SWIG_IsOK(res1)) {
25328     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_MSetIterator___eq__" "', argument " "1"" of type '" "Xapian::MSetIterator *""'");
25329   }
25330   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25331   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
25332   if (!SWIG_IsOK(res2)) {
25333     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_MSetIterator___eq__" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
25334   }
25335   if (!argp2) {
25336     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_MSetIterator___eq__" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
25337   }
25338   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
25339   {
25340     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25341     result = (bool)Xapian_MSetIterator___eq__(arg1,(Xapian::MSetIterator const &)*arg2);
25342     SWIG_PYTHON_THREAD_END_ALLOW;
25343   }
25344   resultobj = SWIG_From_bool(static_cast< bool >(result));
25345   return resultobj;
25346 fail:
25347   return NULL;
25348 }
25349 
25350 
_wrap__MSetIterator___ne__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25351 SWIGINTERN PyObject *_wrap__MSetIterator___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25352   PyObject *resultobj = 0;
25353   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
25354   Xapian::MSetIterator *arg2 = 0 ;
25355   void *argp1 = 0 ;
25356   int res1 = 0 ;
25357   void *argp2 = 0 ;
25358   int res2 = 0 ;
25359   PyObject *swig_obj[2] ;
25360   bool result;
25361 
25362   if (!SWIG_Python_UnpackTuple(args,"_MSetIterator___ne__",2,2,swig_obj)) SWIG_fail;
25363   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
25364   if (!SWIG_IsOK(res1)) {
25365     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_MSetIterator___ne__" "', argument " "1"" of type '" "Xapian::MSetIterator *""'");
25366   }
25367   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25368   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
25369   if (!SWIG_IsOK(res2)) {
25370     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_MSetIterator___ne__" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
25371   }
25372   if (!argp2) {
25373     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_MSetIterator___ne__" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
25374   }
25375   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
25376   {
25377     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25378     result = (bool)Xapian_MSetIterator___ne__(arg1,(Xapian::MSetIterator const &)*arg2);
25379     SWIG_PYTHON_THREAD_END_ALLOW;
25380   }
25381   resultobj = SWIG_From_bool(static_cast< bool >(result));
25382   return resultobj;
25383 fail:
25384   return NULL;
25385 }
25386 
25387 
_wrap__MSetIterator_equals(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25388 SWIGINTERN PyObject *_wrap__MSetIterator_equals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25389   PyObject *resultobj = 0;
25390   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
25391   Xapian::MSetIterator *arg2 = 0 ;
25392   void *argp1 = 0 ;
25393   int res1 = 0 ;
25394   void *argp2 = 0 ;
25395   int res2 = 0 ;
25396   PyObject *swig_obj[2] ;
25397   bool result;
25398 
25399   if (!SWIG_Python_UnpackTuple(args,"_MSetIterator_equals",2,2,swig_obj)) SWIG_fail;
25400   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
25401   if (!SWIG_IsOK(res1)) {
25402     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_MSetIterator_equals" "', argument " "1"" of type '" "Xapian::MSetIterator const *""'");
25403   }
25404   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25405   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
25406   if (!SWIG_IsOK(res2)) {
25407     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_MSetIterator_equals" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
25408   }
25409   if (!argp2) {
25410     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_MSetIterator_equals" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
25411   }
25412   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
25413   {
25414     try {
25415       {
25416         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25417         result = (bool)Xapian_MSetIterator_equals((Xapian::MSetIterator const *)arg1,(Xapian::MSetIterator const &)*arg2);
25418         SWIG_PYTHON_THREAD_END_ALLOW;
25419       }
25420     } catch (...) {
25421       Xapian::SetPythonException();
25422       SWIG_fail;
25423     }
25424   }
25425   resultobj = SWIG_From_bool(static_cast< bool >(result));
25426   return resultobj;
25427 fail:
25428   return NULL;
25429 }
25430 
25431 
_wrap__MSetIterator_get_docid(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25432 SWIGINTERN PyObject *_wrap__MSetIterator_get_docid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25433   PyObject *resultobj = 0;
25434   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
25435   void *argp1 = 0 ;
25436   int res1 = 0 ;
25437   PyObject *swig_obj[1] ;
25438   Xapian::docid result;
25439 
25440   if (!args) SWIG_fail;
25441   swig_obj[0] = args;
25442   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
25443   if (!SWIG_IsOK(res1)) {
25444     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_MSetIterator_get_docid" "', argument " "1"" of type '" "Xapian::MSetIterator const *""'");
25445   }
25446   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25447   {
25448     try {
25449       {
25450         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25451         result = (Xapian::docid)Xapian_MSetIterator_get_docid((Xapian::MSetIterator const *)arg1);
25452         SWIG_PYTHON_THREAD_END_ALLOW;
25453       }
25454     } catch (...) {
25455       Xapian::SetPythonException();
25456       SWIG_fail;
25457     }
25458   }
25459   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
25460   return resultobj;
25461 fail:
25462   return NULL;
25463 }
25464 
25465 
_wrap__MSetIterator_next(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25466 SWIGINTERN PyObject *_wrap__MSetIterator_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25467   PyObject *resultobj = 0;
25468   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
25469   void *argp1 = 0 ;
25470   int res1 = 0 ;
25471   PyObject *swig_obj[1] ;
25472 
25473   if (!args) SWIG_fail;
25474   swig_obj[0] = args;
25475   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
25476   if (!SWIG_IsOK(res1)) {
25477     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_MSetIterator_next" "', argument " "1"" of type '" "Xapian::MSetIterator *""'");
25478   }
25479   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25480   {
25481     try {
25482       {
25483         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25484         Xapian_MSetIterator_next(arg1);
25485         SWIG_PYTHON_THREAD_END_ALLOW;
25486       }
25487     } catch (...) {
25488       Xapian::SetPythonException();
25489       SWIG_fail;
25490     }
25491   }
25492   resultobj = SWIG_Py_Void();
25493   return resultobj;
25494 fail:
25495   return NULL;
25496 }
25497 
25498 
_wrap__MSetIterator_prev(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25499 SWIGINTERN PyObject *_wrap__MSetIterator_prev(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25500   PyObject *resultobj = 0;
25501   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
25502   void *argp1 = 0 ;
25503   int res1 = 0 ;
25504   PyObject *swig_obj[1] ;
25505 
25506   if (!args) SWIG_fail;
25507   swig_obj[0] = args;
25508   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
25509   if (!SWIG_IsOK(res1)) {
25510     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_MSetIterator_prev" "', argument " "1"" of type '" "Xapian::MSetIterator *""'");
25511   }
25512   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25513   {
25514     try {
25515       {
25516         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25517         Xapian_MSetIterator_prev(arg1);
25518         SWIG_PYTHON_THREAD_END_ALLOW;
25519       }
25520     } catch (...) {
25521       Xapian::SetPythonException();
25522       SWIG_fail;
25523     }
25524   }
25525   resultobj = SWIG_Py_Void();
25526   return resultobj;
25527 fail:
25528   return NULL;
25529 }
25530 
25531 
_wrap_delete__MSetIterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25532 SWIGINTERN PyObject *_wrap_delete__MSetIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25533   PyObject *resultobj = 0;
25534   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
25535   void *argp1 = 0 ;
25536   int res1 = 0 ;
25537   PyObject *swig_obj[1] ;
25538 
25539   if (!args) SWIG_fail;
25540   swig_obj[0] = args;
25541   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSetIterator, SWIG_POINTER_DISOWN |  0 );
25542   if (!SWIG_IsOK(res1)) {
25543     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete__MSetIterator" "', argument " "1"" of type '" "Xapian::MSetIterator *""'");
25544   }
25545   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25546   {
25547     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25548     delete arg1;
25549     SWIG_PYTHON_THREAD_END_ALLOW;
25550   }
25551   resultobj = SWIG_Py_Void();
25552   return resultobj;
25553 fail:
25554   return NULL;
25555 }
25556 
25557 
_MSetIterator_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25558 SWIGINTERN PyObject *_MSetIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25559   PyObject *obj;
25560   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
25561   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__MSetIterator, SWIG_NewClientData(obj));
25562   return SWIG_Py_Void();
25563 }
25564 
_MSetIterator_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25565 SWIGINTERN PyObject *_MSetIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25566   return SWIG_Python_InitShadowInstance(args);
25567 }
25568 
_wrap___eq____SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)25569 SWIGINTERN PyObject *_wrap___eq____SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25570   PyObject *resultobj = 0;
25571   Xapian::MSetIterator *arg1 = 0 ;
25572   Xapian::MSetIterator *arg2 = 0 ;
25573   void *argp1 = 0 ;
25574   int res1 = 0 ;
25575   void *argp2 = 0 ;
25576   int res2 = 0 ;
25577   bool result;
25578 
25579   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
25580   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
25581   if (!SWIG_IsOK(res1)) {
25582     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__eq__" "', argument " "1"" of type '" "Xapian::MSetIterator const &""'");
25583   }
25584   if (!argp1) {
25585     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__eq__" "', argument " "1"" of type '" "Xapian::MSetIterator const &""'");
25586   }
25587   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25588   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
25589   if (!SWIG_IsOK(res2)) {
25590     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__eq__" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
25591   }
25592   if (!argp2) {
25593     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__eq__" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
25594   }
25595   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
25596   {
25597     try {
25598       {
25599         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25600         result = (bool)Xapian::operator ==((Xapian::MSetIterator const &)*arg1,(Xapian::MSetIterator const &)*arg2);
25601         SWIG_PYTHON_THREAD_END_ALLOW;
25602       }
25603     } catch (...) {
25604       Xapian::SetPythonException();
25605       SWIG_fail;
25606     }
25607   }
25608   resultobj = SWIG_From_bool(static_cast< bool >(result));
25609   return resultobj;
25610 fail:
25611   return NULL;
25612 }
25613 
25614 
_wrap___ne____SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)25615 SWIGINTERN PyObject *_wrap___ne____SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25616   PyObject *resultobj = 0;
25617   Xapian::MSetIterator *arg1 = 0 ;
25618   Xapian::MSetIterator *arg2 = 0 ;
25619   void *argp1 = 0 ;
25620   int res1 = 0 ;
25621   void *argp2 = 0 ;
25622   int res2 = 0 ;
25623   bool result;
25624 
25625   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
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 '" "__ne__" "', argument " "1"" of type '" "Xapian::MSetIterator const &""'");
25629   }
25630   if (!argp1) {
25631     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__ne__" "', argument " "1"" of type '" "Xapian::MSetIterator const &""'");
25632   }
25633   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25634   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
25635   if (!SWIG_IsOK(res2)) {
25636     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__ne__" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
25637   }
25638   if (!argp2) {
25639     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__ne__" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
25640   }
25641   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
25642   {
25643     try {
25644       {
25645         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25646         result = (bool)Xapian::operator !=((Xapian::MSetIterator const &)*arg1,(Xapian::MSetIterator const &)*arg2);
25647         SWIG_PYTHON_THREAD_END_ALLOW;
25648       }
25649     } catch (...) {
25650       Xapian::SetPythonException();
25651       SWIG_fail;
25652     }
25653   }
25654   resultobj = SWIG_From_bool(static_cast< bool >(result));
25655   return resultobj;
25656 fail:
25657   return NULL;
25658 }
25659 
25660 
_wrap___lt____SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)25661 SWIGINTERN PyObject *_wrap___lt____SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25662   PyObject *resultobj = 0;
25663   Xapian::MSetIterator *arg1 = 0 ;
25664   Xapian::MSetIterator *arg2 = 0 ;
25665   void *argp1 = 0 ;
25666   int res1 = 0 ;
25667   void *argp2 = 0 ;
25668   int res2 = 0 ;
25669   bool result;
25670 
25671   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
25672   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
25673   if (!SWIG_IsOK(res1)) {
25674     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__lt__" "', argument " "1"" of type '" "Xapian::MSetIterator const &""'");
25675   }
25676   if (!argp1) {
25677     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__lt__" "', argument " "1"" of type '" "Xapian::MSetIterator const &""'");
25678   }
25679   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25680   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
25681   if (!SWIG_IsOK(res2)) {
25682     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__lt__" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
25683   }
25684   if (!argp2) {
25685     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__lt__" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
25686   }
25687   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
25688   {
25689     try {
25690       {
25691         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25692         result = (bool)Xapian::operator <((Xapian::MSetIterator const &)*arg1,(Xapian::MSetIterator const &)*arg2);
25693         SWIG_PYTHON_THREAD_END_ALLOW;
25694       }
25695     } catch (...) {
25696       Xapian::SetPythonException();
25697       SWIG_fail;
25698     }
25699   }
25700   resultobj = SWIG_From_bool(static_cast< bool >(result));
25701   return resultobj;
25702 fail:
25703   return NULL;
25704 }
25705 
25706 
_wrap___gt____SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)25707 SWIGINTERN PyObject *_wrap___gt____SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25708   PyObject *resultobj = 0;
25709   Xapian::MSetIterator *arg1 = 0 ;
25710   Xapian::MSetIterator *arg2 = 0 ;
25711   void *argp1 = 0 ;
25712   int res1 = 0 ;
25713   void *argp2 = 0 ;
25714   int res2 = 0 ;
25715   bool result;
25716 
25717   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
25718   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
25719   if (!SWIG_IsOK(res1)) {
25720     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__gt__" "', argument " "1"" of type '" "Xapian::MSetIterator const &""'");
25721   }
25722   if (!argp1) {
25723     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__gt__" "', argument " "1"" of type '" "Xapian::MSetIterator const &""'");
25724   }
25725   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25726   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
25727   if (!SWIG_IsOK(res2)) {
25728     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__gt__" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
25729   }
25730   if (!argp2) {
25731     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__gt__" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
25732   }
25733   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
25734   {
25735     try {
25736       {
25737         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25738         result = (bool)Xapian::operator >((Xapian::MSetIterator const &)*arg1,(Xapian::MSetIterator const &)*arg2);
25739         SWIG_PYTHON_THREAD_END_ALLOW;
25740       }
25741     } catch (...) {
25742       Xapian::SetPythonException();
25743       SWIG_fail;
25744     }
25745   }
25746   resultobj = SWIG_From_bool(static_cast< bool >(result));
25747   return resultobj;
25748 fail:
25749   return NULL;
25750 }
25751 
25752 
_wrap___ge____SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)25753 SWIGINTERN PyObject *_wrap___ge____SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25754   PyObject *resultobj = 0;
25755   Xapian::MSetIterator *arg1 = 0 ;
25756   Xapian::MSetIterator *arg2 = 0 ;
25757   void *argp1 = 0 ;
25758   int res1 = 0 ;
25759   void *argp2 = 0 ;
25760   int res2 = 0 ;
25761   bool result;
25762 
25763   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
25764   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
25765   if (!SWIG_IsOK(res1)) {
25766     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__ge__" "', argument " "1"" of type '" "Xapian::MSetIterator const &""'");
25767   }
25768   if (!argp1) {
25769     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__ge__" "', argument " "1"" of type '" "Xapian::MSetIterator const &""'");
25770   }
25771   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25772   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
25773   if (!SWIG_IsOK(res2)) {
25774     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__ge__" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
25775   }
25776   if (!argp2) {
25777     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__ge__" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
25778   }
25779   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
25780   {
25781     try {
25782       {
25783         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25784         result = (bool)Xapian::operator >=((Xapian::MSetIterator const &)*arg1,(Xapian::MSetIterator const &)*arg2);
25785         SWIG_PYTHON_THREAD_END_ALLOW;
25786       }
25787     } catch (...) {
25788       Xapian::SetPythonException();
25789       SWIG_fail;
25790     }
25791   }
25792   resultobj = SWIG_From_bool(static_cast< bool >(result));
25793   return resultobj;
25794 fail:
25795   return NULL;
25796 }
25797 
25798 
_wrap___le____SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)25799 SWIGINTERN PyObject *_wrap___le____SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25800   PyObject *resultobj = 0;
25801   Xapian::MSetIterator *arg1 = 0 ;
25802   Xapian::MSetIterator *arg2 = 0 ;
25803   void *argp1 = 0 ;
25804   int res1 = 0 ;
25805   void *argp2 = 0 ;
25806   int res2 = 0 ;
25807   bool result;
25808 
25809   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
25810   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
25811   if (!SWIG_IsOK(res1)) {
25812     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__le__" "', argument " "1"" of type '" "Xapian::MSetIterator const &""'");
25813   }
25814   if (!argp1) {
25815     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__le__" "', argument " "1"" of type '" "Xapian::MSetIterator const &""'");
25816   }
25817   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25818   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
25819   if (!SWIG_IsOK(res2)) {
25820     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__le__" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
25821   }
25822   if (!argp2) {
25823     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__le__" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
25824   }
25825   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
25826   {
25827     try {
25828       {
25829         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25830         result = (bool)Xapian::operator <=((Xapian::MSetIterator const &)*arg1,(Xapian::MSetIterator const &)*arg2);
25831         SWIG_PYTHON_THREAD_END_ALLOW;
25832       }
25833     } catch (...) {
25834       Xapian::SetPythonException();
25835       SWIG_fail;
25836     }
25837   }
25838   resultobj = SWIG_From_bool(static_cast< bool >(result));
25839   return resultobj;
25840 fail:
25841   return NULL;
25842 }
25843 
25844 
_wrap___add____SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)25845 SWIGINTERN PyObject *_wrap___add____SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25846   PyObject *resultobj = 0;
25847   Xapian::MSetIterator::difference_type arg1 ;
25848   Xapian::MSetIterator *arg2 = 0 ;
25849   int val1 ;
25850   int ecode1 = 0 ;
25851   void *argp2 = 0 ;
25852   int res2 = 0 ;
25853   Xapian::MSetIterator result;
25854 
25855   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
25856   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
25857   if (!SWIG_IsOK(ecode1)) {
25858     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "__add__" "', argument " "1"" of type '" "Xapian::MSetIterator::difference_type""'");
25859   }
25860   arg1 = static_cast< Xapian::MSetIterator::difference_type >(val1);
25861   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
25862   if (!SWIG_IsOK(res2)) {
25863     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__add__" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
25864   }
25865   if (!argp2) {
25866     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__add__" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
25867   }
25868   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
25869   {
25870     try {
25871       {
25872         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25873         result = Xapian::operator +(arg1,(Xapian::MSetIterator const &)*arg2);
25874         SWIG_PYTHON_THREAD_END_ALLOW;
25875       }
25876     } catch (...) {
25877       Xapian::SetPythonException();
25878       SWIG_fail;
25879     }
25880   }
25881   resultobj = SWIG_NewPointerObj((new Xapian::MSetIterator(static_cast< const Xapian::MSetIterator& >(result))), SWIGTYPE_p_Xapian__MSetIterator, SWIG_POINTER_OWN |  0 );
25882   return resultobj;
25883 fail:
25884   return NULL;
25885 }
25886 
25887 
_wrap_new_ESet(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25888 SWIGINTERN PyObject *_wrap_new_ESet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25889   PyObject *resultobj = 0;
25890   Xapian::ESet *result = 0 ;
25891 
25892   if (!SWIG_Python_UnpackTuple(args,"new_ESet",0,0,0)) SWIG_fail;
25893   {
25894     try {
25895       {
25896         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25897         result = (Xapian::ESet *)new Xapian::ESet();
25898         SWIG_PYTHON_THREAD_END_ALLOW;
25899       }
25900     } catch (...) {
25901       Xapian::SetPythonException();
25902       SWIG_fail;
25903     }
25904   }
25905   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ESet, SWIG_POINTER_NEW |  0 );
25906   return resultobj;
25907 fail:
25908   return NULL;
25909 }
25910 
25911 
_wrap_delete_ESet(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25912 SWIGINTERN PyObject *_wrap_delete_ESet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25913   PyObject *resultobj = 0;
25914   Xapian::ESet *arg1 = (Xapian::ESet *) 0 ;
25915   void *argp1 = 0 ;
25916   int res1 = 0 ;
25917   PyObject *swig_obj[1] ;
25918 
25919   if (!args) SWIG_fail;
25920   swig_obj[0] = args;
25921   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ESet, SWIG_POINTER_DISOWN |  0 );
25922   if (!SWIG_IsOK(res1)) {
25923     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ESet" "', argument " "1"" of type '" "Xapian::ESet *""'");
25924   }
25925   arg1 = reinterpret_cast< Xapian::ESet * >(argp1);
25926   {
25927     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25928     delete arg1;
25929     SWIG_PYTHON_THREAD_END_ALLOW;
25930   }
25931   resultobj = SWIG_Py_Void();
25932   return resultobj;
25933 fail:
25934   return NULL;
25935 }
25936 
25937 
_wrap_ESet_size(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25938 SWIGINTERN PyObject *_wrap_ESet_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25939   PyObject *resultobj = 0;
25940   Xapian::ESet *arg1 = (Xapian::ESet *) 0 ;
25941   void *argp1 = 0 ;
25942   int res1 = 0 ;
25943   PyObject *swig_obj[1] ;
25944   Xapian::doccount result;
25945 
25946   if (!args) SWIG_fail;
25947   swig_obj[0] = args;
25948   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ESet, 0 |  0 );
25949   if (!SWIG_IsOK(res1)) {
25950     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESet_size" "', argument " "1"" of type '" "Xapian::ESet const *""'");
25951   }
25952   arg1 = reinterpret_cast< Xapian::ESet * >(argp1);
25953   {
25954     try {
25955       {
25956         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25957         result = (Xapian::doccount)((Xapian::ESet const *)arg1)->size();
25958         SWIG_PYTHON_THREAD_END_ALLOW;
25959       }
25960     } catch (...) {
25961       Xapian::SetPythonException();
25962       SWIG_fail;
25963     }
25964   }
25965   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
25966   return resultobj;
25967 fail:
25968   return NULL;
25969 }
25970 
25971 
_wrap_ESet_empty(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25972 SWIGINTERN PyObject *_wrap_ESet_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25973   PyObject *resultobj = 0;
25974   Xapian::ESet *arg1 = (Xapian::ESet *) 0 ;
25975   void *argp1 = 0 ;
25976   int res1 = 0 ;
25977   PyObject *swig_obj[1] ;
25978   bool result;
25979 
25980   if (!args) SWIG_fail;
25981   swig_obj[0] = args;
25982   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ESet, 0 |  0 );
25983   if (!SWIG_IsOK(res1)) {
25984     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESet_empty" "', argument " "1"" of type '" "Xapian::ESet const *""'");
25985   }
25986   arg1 = reinterpret_cast< Xapian::ESet * >(argp1);
25987   {
25988     try {
25989       {
25990         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25991         result = (bool)((Xapian::ESet const *)arg1)->empty();
25992         SWIG_PYTHON_THREAD_END_ALLOW;
25993       }
25994     } catch (...) {
25995       Xapian::SetPythonException();
25996       SWIG_fail;
25997     }
25998   }
25999   resultobj = SWIG_From_bool(static_cast< bool >(result));
26000   return resultobj;
26001 fail:
26002   return NULL;
26003 }
26004 
26005 
_wrap_ESet_get_ebound(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26006 SWIGINTERN PyObject *_wrap_ESet_get_ebound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26007   PyObject *resultobj = 0;
26008   Xapian::ESet *arg1 = (Xapian::ESet *) 0 ;
26009   void *argp1 = 0 ;
26010   int res1 = 0 ;
26011   PyObject *swig_obj[1] ;
26012   Xapian::termcount result;
26013 
26014   if (!args) SWIG_fail;
26015   swig_obj[0] = args;
26016   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ESet, 0 |  0 );
26017   if (!SWIG_IsOK(res1)) {
26018     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESet_get_ebound" "', argument " "1"" of type '" "Xapian::ESet const *""'");
26019   }
26020   arg1 = reinterpret_cast< Xapian::ESet * >(argp1);
26021   {
26022     try {
26023       {
26024         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26025         result = (Xapian::termcount)((Xapian::ESet const *)arg1)->get_ebound();
26026         SWIG_PYTHON_THREAD_END_ALLOW;
26027       }
26028     } catch (...) {
26029       Xapian::SetPythonException();
26030       SWIG_fail;
26031     }
26032   }
26033   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
26034   return resultobj;
26035 fail:
26036   return NULL;
26037 }
26038 
26039 
_wrap_ESet__begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26040 SWIGINTERN PyObject *_wrap_ESet__begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26041   PyObject *resultobj = 0;
26042   Xapian::ESet *arg1 = (Xapian::ESet *) 0 ;
26043   void *argp1 = 0 ;
26044   int res1 = 0 ;
26045   PyObject *swig_obj[1] ;
26046   Xapian::ESetIterator result;
26047 
26048   if (!args) SWIG_fail;
26049   swig_obj[0] = args;
26050   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ESet, 0 |  0 );
26051   if (!SWIG_IsOK(res1)) {
26052     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESet__begin" "', argument " "1"" of type '" "Xapian::ESet const *""'");
26053   }
26054   arg1 = reinterpret_cast< Xapian::ESet * >(argp1);
26055   {
26056     try {
26057       {
26058         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26059         result = ((Xapian::ESet const *)arg1)->begin();
26060         SWIG_PYTHON_THREAD_END_ALLOW;
26061       }
26062     } catch (...) {
26063       Xapian::SetPythonException();
26064       SWIG_fail;
26065     }
26066   }
26067   resultobj = SWIG_NewPointerObj((new Xapian::ESetIterator(static_cast< const Xapian::ESetIterator& >(result))), SWIGTYPE_p_Xapian__ESetIterator, SWIG_POINTER_OWN |  0 );
26068   return resultobj;
26069 fail:
26070   return NULL;
26071 }
26072 
26073 
_wrap_ESet__end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26074 SWIGINTERN PyObject *_wrap_ESet__end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26075   PyObject *resultobj = 0;
26076   Xapian::ESet *arg1 = (Xapian::ESet *) 0 ;
26077   void *argp1 = 0 ;
26078   int res1 = 0 ;
26079   PyObject *swig_obj[1] ;
26080   Xapian::ESetIterator result;
26081 
26082   if (!args) SWIG_fail;
26083   swig_obj[0] = args;
26084   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ESet, 0 |  0 );
26085   if (!SWIG_IsOK(res1)) {
26086     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESet__end" "', argument " "1"" of type '" "Xapian::ESet const *""'");
26087   }
26088   arg1 = reinterpret_cast< Xapian::ESet * >(argp1);
26089   {
26090     try {
26091       {
26092         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26093         result = ((Xapian::ESet const *)arg1)->end();
26094         SWIG_PYTHON_THREAD_END_ALLOW;
26095       }
26096     } catch (...) {
26097       Xapian::SetPythonException();
26098       SWIG_fail;
26099     }
26100   }
26101   resultobj = SWIG_NewPointerObj((new Xapian::ESetIterator(static_cast< const Xapian::ESetIterator& >(result))), SWIGTYPE_p_Xapian__ESetIterator, SWIG_POINTER_OWN |  0 );
26102   return resultobj;
26103 fail:
26104   return NULL;
26105 }
26106 
26107 
_wrap_ESet_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26108 SWIGINTERN PyObject *_wrap_ESet_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26109   PyObject *resultobj = 0;
26110   Xapian::ESet *arg1 = (Xapian::ESet *) 0 ;
26111   void *argp1 = 0 ;
26112   int res1 = 0 ;
26113   PyObject *swig_obj[1] ;
26114   Xapian::ESetIterator result;
26115 
26116   if (!args) SWIG_fail;
26117   swig_obj[0] = args;
26118   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ESet, 0 |  0 );
26119   if (!SWIG_IsOK(res1)) {
26120     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESet_back" "', argument " "1"" of type '" "Xapian::ESet const *""'");
26121   }
26122   arg1 = reinterpret_cast< Xapian::ESet * >(argp1);
26123   {
26124     try {
26125       {
26126         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26127         result = ((Xapian::ESet const *)arg1)->back();
26128         SWIG_PYTHON_THREAD_END_ALLOW;
26129       }
26130     } catch (...) {
26131       Xapian::SetPythonException();
26132       SWIG_fail;
26133     }
26134   }
26135   resultobj = SWIG_NewPointerObj((new Xapian::ESetIterator(static_cast< const Xapian::ESetIterator& >(result))), SWIGTYPE_p_Xapian__ESetIterator, SWIG_POINTER_OWN |  0 );
26136   return resultobj;
26137 fail:
26138   return NULL;
26139 }
26140 
26141 
_wrap_ESet___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26142 SWIGINTERN PyObject *_wrap_ESet___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26143   PyObject *resultobj = 0;
26144   Xapian::ESet *arg1 = (Xapian::ESet *) 0 ;
26145   void *argp1 = 0 ;
26146   int res1 = 0 ;
26147   PyObject *swig_obj[1] ;
26148   std::string result;
26149 
26150   if (!args) SWIG_fail;
26151   swig_obj[0] = args;
26152   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ESet, 0 |  0 );
26153   if (!SWIG_IsOK(res1)) {
26154     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESet___str__" "', argument " "1"" of type '" "Xapian::ESet const *""'");
26155   }
26156   arg1 = reinterpret_cast< Xapian::ESet * >(argp1);
26157   {
26158     try {
26159       {
26160         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26161         result = ((Xapian::ESet const *)arg1)->get_description();
26162         SWIG_PYTHON_THREAD_END_ALLOW;
26163       }
26164     } catch (...) {
26165       Xapian::SetPythonException();
26166       SWIG_fail;
26167     }
26168   }
26169   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
26170   return resultobj;
26171 fail:
26172   return NULL;
26173 }
26174 
26175 
_wrap_ESet_items_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26176 SWIGINTERN PyObject *_wrap_ESet_items_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26177   PyObject *resultobj = 0;
26178   Xapian::ESet *arg1 = (Xapian::ESet *) 0 ;
26179   void *argp1 = 0 ;
26180   int res1 = 0 ;
26181   PyObject *swig_obj[1] ;
26182   PyObject *result = 0 ;
26183 
26184   if (!args) SWIG_fail;
26185   swig_obj[0] = args;
26186   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ESet, 0 |  0 );
26187   if (!SWIG_IsOK(res1)) {
26188     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESet_items_get" "', argument " "1"" of type '" "Xapian::ESet *""'");
26189   }
26190   arg1 = reinterpret_cast< Xapian::ESet * >(argp1);
26191   result = (PyObject *)Xapian_ESet_items_get(arg1);
26192   resultobj = result;
26193   return resultobj;
26194 fail:
26195   return NULL;
26196 }
26197 
26198 
ESet_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26199 SWIGINTERN PyObject *ESet_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26200   PyObject *obj;
26201   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
26202   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__ESet, SWIG_NewClientData(obj));
26203   return SWIG_Py_Void();
26204 }
26205 
ESet_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26206 SWIGINTERN PyObject *ESet_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26207   return SWIG_Python_InitShadowInstance(args);
26208 }
26209 
_wrap__ESetIterator_eset_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26210 SWIGINTERN PyObject *_wrap__ESetIterator_eset_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26211   PyObject *resultobj = 0;
26212   Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
26213   Xapian::ESet *arg2 = (Xapian::ESet *) 0 ;
26214   void *argp1 = 0 ;
26215   int res1 = 0 ;
26216   void *argp2 = 0 ;
26217   int res2 = 0 ;
26218   PyObject *swig_obj[2] ;
26219 
26220   if (!SWIG_Python_UnpackTuple(args,"_ESetIterator_eset_set",2,2,swig_obj)) SWIG_fail;
26221   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ESetIterator, 0 |  0 );
26222   if (!SWIG_IsOK(res1)) {
26223     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_ESetIterator_eset_set" "', argument " "1"" of type '" "Xapian::ESetIterator *""'");
26224   }
26225   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
26226   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Xapian__ESet, 0 |  0 );
26227   if (!SWIG_IsOK(res2)) {
26228     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_ESetIterator_eset_set" "', argument " "2"" of type '" "Xapian::ESet *""'");
26229   }
26230   arg2 = reinterpret_cast< Xapian::ESet * >(argp2);
26231   {
26232     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26233     if (arg1) (arg1)->eset = *arg2;
26234     SWIG_PYTHON_THREAD_END_ALLOW;
26235   }
26236   resultobj = SWIG_Py_Void();
26237   return resultobj;
26238 fail:
26239   return NULL;
26240 }
26241 
26242 
_wrap__ESetIterator_eset_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26243 SWIGINTERN PyObject *_wrap__ESetIterator_eset_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26244   PyObject *resultobj = 0;
26245   Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
26246   void *argp1 = 0 ;
26247   int res1 = 0 ;
26248   PyObject *swig_obj[1] ;
26249   Xapian::ESet *result = 0 ;
26250 
26251   if (!args) SWIG_fail;
26252   swig_obj[0] = args;
26253   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ESetIterator, 0 |  0 );
26254   if (!SWIG_IsOK(res1)) {
26255     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_ESetIterator_eset_get" "', argument " "1"" of type '" "Xapian::ESetIterator *""'");
26256   }
26257   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
26258   {
26259     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26260     result = (Xapian::ESet *)& ((arg1)->eset);
26261     SWIG_PYTHON_THREAD_END_ALLOW;
26262   }
26263   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ESet, 0 |  0 );
26264   return resultobj;
26265 fail:
26266   return NULL;
26267 }
26268 
26269 
_wrap__ESetIterator_off_from_end_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26270 SWIGINTERN PyObject *_wrap__ESetIterator_off_from_end_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26271   PyObject *resultobj = 0;
26272   Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
26273   Xapian::ESet::size_type arg2 ;
26274   void *argp1 = 0 ;
26275   int res1 = 0 ;
26276   unsigned int val2 ;
26277   int ecode2 = 0 ;
26278   PyObject *swig_obj[2] ;
26279 
26280   if (!SWIG_Python_UnpackTuple(args,"_ESetIterator_off_from_end_set",2,2,swig_obj)) SWIG_fail;
26281   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ESetIterator, 0 |  0 );
26282   if (!SWIG_IsOK(res1)) {
26283     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_ESetIterator_off_from_end_set" "', argument " "1"" of type '" "Xapian::ESetIterator *""'");
26284   }
26285   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
26286   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
26287   if (!SWIG_IsOK(ecode2)) {
26288     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_ESetIterator_off_from_end_set" "', argument " "2"" of type '" "Xapian::ESet::size_type""'");
26289   }
26290   arg2 = static_cast< Xapian::ESet::size_type >(val2);
26291   {
26292     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26293     if (arg1) (arg1)->off_from_end = arg2;
26294     SWIG_PYTHON_THREAD_END_ALLOW;
26295   }
26296   resultobj = SWIG_Py_Void();
26297   return resultobj;
26298 fail:
26299   return NULL;
26300 }
26301 
26302 
_wrap__ESetIterator_off_from_end_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26303 SWIGINTERN PyObject *_wrap__ESetIterator_off_from_end_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26304   PyObject *resultobj = 0;
26305   Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
26306   void *argp1 = 0 ;
26307   int res1 = 0 ;
26308   PyObject *swig_obj[1] ;
26309   Xapian::ESet::size_type result;
26310 
26311   if (!args) SWIG_fail;
26312   swig_obj[0] = args;
26313   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ESetIterator, 0 |  0 );
26314   if (!SWIG_IsOK(res1)) {
26315     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_ESetIterator_off_from_end_get" "', argument " "1"" of type '" "Xapian::ESetIterator *""'");
26316   }
26317   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
26318   {
26319     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26320     result = (Xapian::ESet::size_type) ((arg1)->off_from_end);
26321     SWIG_PYTHON_THREAD_END_ALLOW;
26322   }
26323   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
26324   return resultobj;
26325 fail:
26326   return NULL;
26327 }
26328 
26329 
_wrap_new__ESetIterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26330 SWIGINTERN PyObject *_wrap_new__ESetIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26331   PyObject *resultobj = 0;
26332   Xapian::ESetIterator *result = 0 ;
26333 
26334   if (!SWIG_Python_UnpackTuple(args,"new__ESetIterator",0,0,0)) SWIG_fail;
26335   {
26336     try {
26337       {
26338         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26339         result = (Xapian::ESetIterator *)new Xapian::ESetIterator();
26340         SWIG_PYTHON_THREAD_END_ALLOW;
26341       }
26342     } catch (...) {
26343       Xapian::SetPythonException();
26344       SWIG_fail;
26345     }
26346   }
26347   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ESetIterator, SWIG_POINTER_NEW |  0 );
26348   return resultobj;
26349 fail:
26350   return NULL;
26351 }
26352 
26353 
_wrap__ESetIterator_get_weight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26354 SWIGINTERN PyObject *_wrap__ESetIterator_get_weight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26355   PyObject *resultobj = 0;
26356   Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
26357   void *argp1 = 0 ;
26358   int res1 = 0 ;
26359   PyObject *swig_obj[1] ;
26360   double result;
26361 
26362   if (!args) SWIG_fail;
26363   swig_obj[0] = args;
26364   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ESetIterator, 0 |  0 );
26365   if (!SWIG_IsOK(res1)) {
26366     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_ESetIterator_get_weight" "', argument " "1"" of type '" "Xapian::ESetIterator const *""'");
26367   }
26368   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
26369   {
26370     try {
26371       {
26372         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26373         result = (double)((Xapian::ESetIterator const *)arg1)->get_weight();
26374         SWIG_PYTHON_THREAD_END_ALLOW;
26375       }
26376     } catch (...) {
26377       Xapian::SetPythonException();
26378       SWIG_fail;
26379     }
26380   }
26381   resultobj = SWIG_From_double(static_cast< double >(result));
26382   return resultobj;
26383 fail:
26384   return NULL;
26385 }
26386 
26387 
_wrap__ESetIterator___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26388 SWIGINTERN PyObject *_wrap__ESetIterator___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26389   PyObject *resultobj = 0;
26390   Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
26391   void *argp1 = 0 ;
26392   int res1 = 0 ;
26393   PyObject *swig_obj[1] ;
26394   std::string result;
26395 
26396   if (!args) SWIG_fail;
26397   swig_obj[0] = args;
26398   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ESetIterator, 0 |  0 );
26399   if (!SWIG_IsOK(res1)) {
26400     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_ESetIterator___str__" "', argument " "1"" of type '" "Xapian::ESetIterator const *""'");
26401   }
26402   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
26403   {
26404     try {
26405       {
26406         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26407         result = ((Xapian::ESetIterator const *)arg1)->get_description();
26408         SWIG_PYTHON_THREAD_END_ALLOW;
26409       }
26410     } catch (...) {
26411       Xapian::SetPythonException();
26412       SWIG_fail;
26413     }
26414   }
26415   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
26416   return resultobj;
26417 fail:
26418   return NULL;
26419 }
26420 
26421 
_wrap__ESetIterator___eq__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26422 SWIGINTERN PyObject *_wrap__ESetIterator___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26423   PyObject *resultobj = 0;
26424   Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
26425   Xapian::ESetIterator *arg2 = 0 ;
26426   void *argp1 = 0 ;
26427   int res1 = 0 ;
26428   void *argp2 = 0 ;
26429   int res2 = 0 ;
26430   PyObject *swig_obj[2] ;
26431   bool result;
26432 
26433   if (!SWIG_Python_UnpackTuple(args,"_ESetIterator___eq__",2,2,swig_obj)) SWIG_fail;
26434   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ESetIterator, 0 |  0 );
26435   if (!SWIG_IsOK(res1)) {
26436     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_ESetIterator___eq__" "', argument " "1"" of type '" "Xapian::ESetIterator *""'");
26437   }
26438   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
26439   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__ESetIterator,  0  | 0);
26440   if (!SWIG_IsOK(res2)) {
26441     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_ESetIterator___eq__" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'");
26442   }
26443   if (!argp2) {
26444     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_ESetIterator___eq__" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'");
26445   }
26446   arg2 = reinterpret_cast< Xapian::ESetIterator * >(argp2);
26447   {
26448     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26449     result = (bool)Xapian_ESetIterator___eq__(arg1,(Xapian::ESetIterator const &)*arg2);
26450     SWIG_PYTHON_THREAD_END_ALLOW;
26451   }
26452   resultobj = SWIG_From_bool(static_cast< bool >(result));
26453   return resultobj;
26454 fail:
26455   return NULL;
26456 }
26457 
26458 
_wrap__ESetIterator___ne__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26459 SWIGINTERN PyObject *_wrap__ESetIterator___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26460   PyObject *resultobj = 0;
26461   Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
26462   Xapian::ESetIterator *arg2 = 0 ;
26463   void *argp1 = 0 ;
26464   int res1 = 0 ;
26465   void *argp2 = 0 ;
26466   int res2 = 0 ;
26467   PyObject *swig_obj[2] ;
26468   bool result;
26469 
26470   if (!SWIG_Python_UnpackTuple(args,"_ESetIterator___ne__",2,2,swig_obj)) SWIG_fail;
26471   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ESetIterator, 0 |  0 );
26472   if (!SWIG_IsOK(res1)) {
26473     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_ESetIterator___ne__" "', argument " "1"" of type '" "Xapian::ESetIterator *""'");
26474   }
26475   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
26476   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__ESetIterator,  0  | 0);
26477   if (!SWIG_IsOK(res2)) {
26478     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_ESetIterator___ne__" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'");
26479   }
26480   if (!argp2) {
26481     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_ESetIterator___ne__" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'");
26482   }
26483   arg2 = reinterpret_cast< Xapian::ESetIterator * >(argp2);
26484   {
26485     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26486     result = (bool)Xapian_ESetIterator___ne__(arg1,(Xapian::ESetIterator const &)*arg2);
26487     SWIG_PYTHON_THREAD_END_ALLOW;
26488   }
26489   resultobj = SWIG_From_bool(static_cast< bool >(result));
26490   return resultobj;
26491 fail:
26492   return NULL;
26493 }
26494 
26495 
_wrap__ESetIterator_equals(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26496 SWIGINTERN PyObject *_wrap__ESetIterator_equals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26497   PyObject *resultobj = 0;
26498   Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
26499   Xapian::ESetIterator *arg2 = 0 ;
26500   void *argp1 = 0 ;
26501   int res1 = 0 ;
26502   void *argp2 = 0 ;
26503   int res2 = 0 ;
26504   PyObject *swig_obj[2] ;
26505   bool result;
26506 
26507   if (!SWIG_Python_UnpackTuple(args,"_ESetIterator_equals",2,2,swig_obj)) SWIG_fail;
26508   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ESetIterator, 0 |  0 );
26509   if (!SWIG_IsOK(res1)) {
26510     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_ESetIterator_equals" "', argument " "1"" of type '" "Xapian::ESetIterator const *""'");
26511   }
26512   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
26513   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__ESetIterator,  0  | 0);
26514   if (!SWIG_IsOK(res2)) {
26515     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_ESetIterator_equals" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'");
26516   }
26517   if (!argp2) {
26518     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_ESetIterator_equals" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'");
26519   }
26520   arg2 = reinterpret_cast< Xapian::ESetIterator * >(argp2);
26521   {
26522     try {
26523       {
26524         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26525         result = (bool)Xapian_ESetIterator_equals((Xapian::ESetIterator const *)arg1,(Xapian::ESetIterator const &)*arg2);
26526         SWIG_PYTHON_THREAD_END_ALLOW;
26527       }
26528     } catch (...) {
26529       Xapian::SetPythonException();
26530       SWIG_fail;
26531     }
26532   }
26533   resultobj = SWIG_From_bool(static_cast< bool >(result));
26534   return resultobj;
26535 fail:
26536   return NULL;
26537 }
26538 
26539 
_wrap__ESetIterator_get_term(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26540 SWIGINTERN PyObject *_wrap__ESetIterator_get_term(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26541   PyObject *resultobj = 0;
26542   Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
26543   void *argp1 = 0 ;
26544   int res1 = 0 ;
26545   PyObject *swig_obj[1] ;
26546   std::string result;
26547 
26548   if (!args) SWIG_fail;
26549   swig_obj[0] = args;
26550   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ESetIterator, 0 |  0 );
26551   if (!SWIG_IsOK(res1)) {
26552     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_ESetIterator_get_term" "', argument " "1"" of type '" "Xapian::ESetIterator const *""'");
26553   }
26554   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
26555   {
26556     try {
26557       {
26558         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26559         result = Xapian_ESetIterator_get_term((Xapian::ESetIterator const *)arg1);
26560         SWIG_PYTHON_THREAD_END_ALLOW;
26561       }
26562     } catch (...) {
26563       Xapian::SetPythonException();
26564       SWIG_fail;
26565     }
26566   }
26567   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
26568   return resultobj;
26569 fail:
26570   return NULL;
26571 }
26572 
26573 
_wrap__ESetIterator_next(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26574 SWIGINTERN PyObject *_wrap__ESetIterator_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26575   PyObject *resultobj = 0;
26576   Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
26577   void *argp1 = 0 ;
26578   int res1 = 0 ;
26579   PyObject *swig_obj[1] ;
26580 
26581   if (!args) SWIG_fail;
26582   swig_obj[0] = args;
26583   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ESetIterator, 0 |  0 );
26584   if (!SWIG_IsOK(res1)) {
26585     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_ESetIterator_next" "', argument " "1"" of type '" "Xapian::ESetIterator *""'");
26586   }
26587   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
26588   {
26589     try {
26590       {
26591         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26592         Xapian_ESetIterator_next(arg1);
26593         SWIG_PYTHON_THREAD_END_ALLOW;
26594       }
26595     } catch (...) {
26596       Xapian::SetPythonException();
26597       SWIG_fail;
26598     }
26599   }
26600   resultobj = SWIG_Py_Void();
26601   return resultobj;
26602 fail:
26603   return NULL;
26604 }
26605 
26606 
_wrap__ESetIterator_prev(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26607 SWIGINTERN PyObject *_wrap__ESetIterator_prev(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26608   PyObject *resultobj = 0;
26609   Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
26610   void *argp1 = 0 ;
26611   int res1 = 0 ;
26612   PyObject *swig_obj[1] ;
26613 
26614   if (!args) SWIG_fail;
26615   swig_obj[0] = args;
26616   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ESetIterator, 0 |  0 );
26617   if (!SWIG_IsOK(res1)) {
26618     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_ESetIterator_prev" "', argument " "1"" of type '" "Xapian::ESetIterator *""'");
26619   }
26620   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
26621   {
26622     try {
26623       {
26624         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26625         Xapian_ESetIterator_prev(arg1);
26626         SWIG_PYTHON_THREAD_END_ALLOW;
26627       }
26628     } catch (...) {
26629       Xapian::SetPythonException();
26630       SWIG_fail;
26631     }
26632   }
26633   resultobj = SWIG_Py_Void();
26634   return resultobj;
26635 fail:
26636   return NULL;
26637 }
26638 
26639 
_wrap_delete__ESetIterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26640 SWIGINTERN PyObject *_wrap_delete__ESetIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26641   PyObject *resultobj = 0;
26642   Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
26643   void *argp1 = 0 ;
26644   int res1 = 0 ;
26645   PyObject *swig_obj[1] ;
26646 
26647   if (!args) SWIG_fail;
26648   swig_obj[0] = args;
26649   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ESetIterator, SWIG_POINTER_DISOWN |  0 );
26650   if (!SWIG_IsOK(res1)) {
26651     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete__ESetIterator" "', argument " "1"" of type '" "Xapian::ESetIterator *""'");
26652   }
26653   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
26654   {
26655     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26656     delete arg1;
26657     SWIG_PYTHON_THREAD_END_ALLOW;
26658   }
26659   resultobj = SWIG_Py_Void();
26660   return resultobj;
26661 fail:
26662   return NULL;
26663 }
26664 
26665 
_ESetIterator_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26666 SWIGINTERN PyObject *_ESetIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26667   PyObject *obj;
26668   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
26669   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__ESetIterator, SWIG_NewClientData(obj));
26670   return SWIG_Py_Void();
26671 }
26672 
_ESetIterator_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26673 SWIGINTERN PyObject *_ESetIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26674   return SWIG_Python_InitShadowInstance(args);
26675 }
26676 
_wrap___eq____SWIG_5(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)26677 SWIGINTERN PyObject *_wrap___eq____SWIG_5(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26678   PyObject *resultobj = 0;
26679   Xapian::ESetIterator *arg1 = 0 ;
26680   Xapian::ESetIterator *arg2 = 0 ;
26681   void *argp1 = 0 ;
26682   int res1 = 0 ;
26683   void *argp2 = 0 ;
26684   int res2 = 0 ;
26685   bool result;
26686 
26687   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26688   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__ESetIterator,  0  | 0);
26689   if (!SWIG_IsOK(res1)) {
26690     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__eq__" "', argument " "1"" of type '" "Xapian::ESetIterator const &""'");
26691   }
26692   if (!argp1) {
26693     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__eq__" "', argument " "1"" of type '" "Xapian::ESetIterator const &""'");
26694   }
26695   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
26696   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__ESetIterator,  0  | 0);
26697   if (!SWIG_IsOK(res2)) {
26698     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__eq__" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'");
26699   }
26700   if (!argp2) {
26701     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__eq__" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'");
26702   }
26703   arg2 = reinterpret_cast< Xapian::ESetIterator * >(argp2);
26704   {
26705     try {
26706       {
26707         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26708         result = (bool)Xapian::operator ==((Xapian::ESetIterator const &)*arg1,(Xapian::ESetIterator const &)*arg2);
26709         SWIG_PYTHON_THREAD_END_ALLOW;
26710       }
26711     } catch (...) {
26712       Xapian::SetPythonException();
26713       SWIG_fail;
26714     }
26715   }
26716   resultobj = SWIG_From_bool(static_cast< bool >(result));
26717   return resultobj;
26718 fail:
26719   return NULL;
26720 }
26721 
26722 
_wrap___eq__(PyObject * self,PyObject * args)26723 SWIGINTERN PyObject *_wrap___eq__(PyObject *self, PyObject *args) {
26724   Py_ssize_t argc;
26725   PyObject *argv[3] = {
26726     0
26727   };
26728 
26729   if (!(argc = SWIG_Python_UnpackTuple(args,"__eq__",0,2,argv))) SWIG_fail;
26730   --argc;
26731   if (argc == 2) {
26732     int _v = 0;
26733     {
26734       int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Xapian__PositionIterator, 0);
26735       _v = SWIG_CheckState(res);
26736     }
26737     if (!_v) goto check_1;
26738     {
26739       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__PositionIterator, 0);
26740       _v = SWIG_CheckState(res);
26741     }
26742     if (!_v) goto check_1;
26743     return _wrap___eq____SWIG_0(self, argc, argv);
26744   }
26745 check_1:
26746 
26747   if (argc == 2) {
26748     int _v = 0;
26749     {
26750       int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Xapian__PostingIterator, 0);
26751       _v = SWIG_CheckState(res);
26752     }
26753     if (!_v) goto check_2;
26754     {
26755       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__PostingIterator, 0);
26756       _v = SWIG_CheckState(res);
26757     }
26758     if (!_v) goto check_2;
26759     return _wrap___eq____SWIG_1(self, argc, argv);
26760   }
26761 check_2:
26762 
26763   if (argc == 2) {
26764     int _v = 0;
26765     {
26766       int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Xapian__TermIterator, 0);
26767       _v = SWIG_CheckState(res);
26768     }
26769     if (!_v) goto check_3;
26770     {
26771       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__TermIterator, 0);
26772       _v = SWIG_CheckState(res);
26773     }
26774     if (!_v) goto check_3;
26775     return _wrap___eq____SWIG_2(self, argc, argv);
26776   }
26777 check_3:
26778 
26779   if (argc == 2) {
26780     int _v = 0;
26781     {
26782       int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Xapian__ValueIterator, 0);
26783       _v = SWIG_CheckState(res);
26784     }
26785     if (!_v) goto check_4;
26786     {
26787       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__ValueIterator, 0);
26788       _v = SWIG_CheckState(res);
26789     }
26790     if (!_v) goto check_4;
26791     return _wrap___eq____SWIG_3(self, argc, argv);
26792   }
26793 check_4:
26794 
26795   if (argc == 2) {
26796     int _v = 0;
26797     {
26798       int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Xapian__MSetIterator, 0);
26799       _v = SWIG_CheckState(res);
26800     }
26801     if (!_v) goto check_5;
26802     {
26803       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__MSetIterator, 0);
26804       _v = SWIG_CheckState(res);
26805     }
26806     if (!_v) goto check_5;
26807     return _wrap___eq____SWIG_4(self, argc, argv);
26808   }
26809 check_5:
26810 
26811   if (argc == 2) {
26812     return _wrap___eq____SWIG_5(self, argc, argv);
26813   }
26814 
26815 fail:
26816   Py_INCREF(Py_NotImplemented);
26817   return Py_NotImplemented;
26818 }
26819 
26820 
_wrap___ne____SWIG_5(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)26821 SWIGINTERN PyObject *_wrap___ne____SWIG_5(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26822   PyObject *resultobj = 0;
26823   Xapian::ESetIterator *arg1 = 0 ;
26824   Xapian::ESetIterator *arg2 = 0 ;
26825   void *argp1 = 0 ;
26826   int res1 = 0 ;
26827   void *argp2 = 0 ;
26828   int res2 = 0 ;
26829   bool result;
26830 
26831   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26832   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__ESetIterator,  0  | 0);
26833   if (!SWIG_IsOK(res1)) {
26834     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__ne__" "', argument " "1"" of type '" "Xapian::ESetIterator const &""'");
26835   }
26836   if (!argp1) {
26837     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__ne__" "', argument " "1"" of type '" "Xapian::ESetIterator const &""'");
26838   }
26839   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
26840   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__ESetIterator,  0  | 0);
26841   if (!SWIG_IsOK(res2)) {
26842     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__ne__" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'");
26843   }
26844   if (!argp2) {
26845     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__ne__" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'");
26846   }
26847   arg2 = reinterpret_cast< Xapian::ESetIterator * >(argp2);
26848   {
26849     try {
26850       {
26851         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26852         result = (bool)Xapian::operator !=((Xapian::ESetIterator const &)*arg1,(Xapian::ESetIterator const &)*arg2);
26853         SWIG_PYTHON_THREAD_END_ALLOW;
26854       }
26855     } catch (...) {
26856       Xapian::SetPythonException();
26857       SWIG_fail;
26858     }
26859   }
26860   resultobj = SWIG_From_bool(static_cast< bool >(result));
26861   return resultobj;
26862 fail:
26863   return NULL;
26864 }
26865 
26866 
_wrap___lt____SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)26867 SWIGINTERN PyObject *_wrap___lt____SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26868   PyObject *resultobj = 0;
26869   Xapian::ESetIterator *arg1 = 0 ;
26870   Xapian::ESetIterator *arg2 = 0 ;
26871   void *argp1 = 0 ;
26872   int res1 = 0 ;
26873   void *argp2 = 0 ;
26874   int res2 = 0 ;
26875   bool result;
26876 
26877   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26878   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__ESetIterator,  0  | 0);
26879   if (!SWIG_IsOK(res1)) {
26880     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__lt__" "', argument " "1"" of type '" "Xapian::ESetIterator const &""'");
26881   }
26882   if (!argp1) {
26883     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__lt__" "', argument " "1"" of type '" "Xapian::ESetIterator const &""'");
26884   }
26885   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
26886   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__ESetIterator,  0  | 0);
26887   if (!SWIG_IsOK(res2)) {
26888     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__lt__" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'");
26889   }
26890   if (!argp2) {
26891     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__lt__" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'");
26892   }
26893   arg2 = reinterpret_cast< Xapian::ESetIterator * >(argp2);
26894   {
26895     try {
26896       {
26897         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26898         result = (bool)Xapian::operator <((Xapian::ESetIterator const &)*arg1,(Xapian::ESetIterator const &)*arg2);
26899         SWIG_PYTHON_THREAD_END_ALLOW;
26900       }
26901     } catch (...) {
26902       Xapian::SetPythonException();
26903       SWIG_fail;
26904     }
26905   }
26906   resultobj = SWIG_From_bool(static_cast< bool >(result));
26907   return resultobj;
26908 fail:
26909   return NULL;
26910 }
26911 
26912 
_wrap___lt__(PyObject * self,PyObject * args)26913 SWIGINTERN PyObject *_wrap___lt__(PyObject *self, PyObject *args) {
26914   Py_ssize_t argc;
26915   PyObject *argv[3] = {
26916     0
26917   };
26918 
26919   if (!(argc = SWIG_Python_UnpackTuple(args,"__lt__",0,2,argv))) SWIG_fail;
26920   --argc;
26921   if (argc == 2) {
26922     int _v = 0;
26923     {
26924       int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Xapian__MSetIterator, 0);
26925       _v = SWIG_CheckState(res);
26926     }
26927     if (!_v) goto check_1;
26928     {
26929       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__MSetIterator, 0);
26930       _v = SWIG_CheckState(res);
26931     }
26932     if (!_v) goto check_1;
26933     return _wrap___lt____SWIG_0(self, argc, argv);
26934   }
26935 check_1:
26936 
26937   if (argc == 2) {
26938     return _wrap___lt____SWIG_1(self, argc, argv);
26939   }
26940 
26941 fail:
26942   Py_INCREF(Py_NotImplemented);
26943   return Py_NotImplemented;
26944 }
26945 
26946 
_wrap___gt____SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)26947 SWIGINTERN PyObject *_wrap___gt____SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26948   PyObject *resultobj = 0;
26949   Xapian::ESetIterator *arg1 = 0 ;
26950   Xapian::ESetIterator *arg2 = 0 ;
26951   void *argp1 = 0 ;
26952   int res1 = 0 ;
26953   void *argp2 = 0 ;
26954   int res2 = 0 ;
26955   bool result;
26956 
26957   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26958   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__ESetIterator,  0  | 0);
26959   if (!SWIG_IsOK(res1)) {
26960     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__gt__" "', argument " "1"" of type '" "Xapian::ESetIterator const &""'");
26961   }
26962   if (!argp1) {
26963     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__gt__" "', argument " "1"" of type '" "Xapian::ESetIterator const &""'");
26964   }
26965   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
26966   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__ESetIterator,  0  | 0);
26967   if (!SWIG_IsOK(res2)) {
26968     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__gt__" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'");
26969   }
26970   if (!argp2) {
26971     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__gt__" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'");
26972   }
26973   arg2 = reinterpret_cast< Xapian::ESetIterator * >(argp2);
26974   {
26975     try {
26976       {
26977         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26978         result = (bool)Xapian::operator >((Xapian::ESetIterator const &)*arg1,(Xapian::ESetIterator const &)*arg2);
26979         SWIG_PYTHON_THREAD_END_ALLOW;
26980       }
26981     } catch (...) {
26982       Xapian::SetPythonException();
26983       SWIG_fail;
26984     }
26985   }
26986   resultobj = SWIG_From_bool(static_cast< bool >(result));
26987   return resultobj;
26988 fail:
26989   return NULL;
26990 }
26991 
26992 
_wrap___gt__(PyObject * self,PyObject * args)26993 SWIGINTERN PyObject *_wrap___gt__(PyObject *self, PyObject *args) {
26994   Py_ssize_t argc;
26995   PyObject *argv[3] = {
26996     0
26997   };
26998 
26999   if (!(argc = SWIG_Python_UnpackTuple(args,"__gt__",0,2,argv))) SWIG_fail;
27000   --argc;
27001   if (argc == 2) {
27002     int _v = 0;
27003     {
27004       int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Xapian__MSetIterator, 0);
27005       _v = SWIG_CheckState(res);
27006     }
27007     if (!_v) goto check_1;
27008     {
27009       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__MSetIterator, 0);
27010       _v = SWIG_CheckState(res);
27011     }
27012     if (!_v) goto check_1;
27013     return _wrap___gt____SWIG_0(self, argc, argv);
27014   }
27015 check_1:
27016 
27017   if (argc == 2) {
27018     return _wrap___gt____SWIG_1(self, argc, argv);
27019   }
27020 
27021 fail:
27022   Py_INCREF(Py_NotImplemented);
27023   return Py_NotImplemented;
27024 }
27025 
27026 
_wrap___ge____SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)27027 SWIGINTERN PyObject *_wrap___ge____SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27028   PyObject *resultobj = 0;
27029   Xapian::ESetIterator *arg1 = 0 ;
27030   Xapian::ESetIterator *arg2 = 0 ;
27031   void *argp1 = 0 ;
27032   int res1 = 0 ;
27033   void *argp2 = 0 ;
27034   int res2 = 0 ;
27035   bool result;
27036 
27037   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27038   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__ESetIterator,  0  | 0);
27039   if (!SWIG_IsOK(res1)) {
27040     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__ge__" "', argument " "1"" of type '" "Xapian::ESetIterator const &""'");
27041   }
27042   if (!argp1) {
27043     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__ge__" "', argument " "1"" of type '" "Xapian::ESetIterator const &""'");
27044   }
27045   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
27046   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__ESetIterator,  0  | 0);
27047   if (!SWIG_IsOK(res2)) {
27048     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__ge__" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'");
27049   }
27050   if (!argp2) {
27051     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__ge__" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'");
27052   }
27053   arg2 = reinterpret_cast< Xapian::ESetIterator * >(argp2);
27054   {
27055     try {
27056       {
27057         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
27058         result = (bool)Xapian::operator >=((Xapian::ESetIterator const &)*arg1,(Xapian::ESetIterator const &)*arg2);
27059         SWIG_PYTHON_THREAD_END_ALLOW;
27060       }
27061     } catch (...) {
27062       Xapian::SetPythonException();
27063       SWIG_fail;
27064     }
27065   }
27066   resultobj = SWIG_From_bool(static_cast< bool >(result));
27067   return resultobj;
27068 fail:
27069   return NULL;
27070 }
27071 
27072 
_wrap___ge__(PyObject * self,PyObject * args)27073 SWIGINTERN PyObject *_wrap___ge__(PyObject *self, PyObject *args) {
27074   Py_ssize_t argc;
27075   PyObject *argv[3] = {
27076     0
27077   };
27078 
27079   if (!(argc = SWIG_Python_UnpackTuple(args,"__ge__",0,2,argv))) SWIG_fail;
27080   --argc;
27081   if (argc == 2) {
27082     int _v = 0;
27083     {
27084       int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Xapian__MSetIterator, 0);
27085       _v = SWIG_CheckState(res);
27086     }
27087     if (!_v) goto check_1;
27088     {
27089       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__MSetIterator, 0);
27090       _v = SWIG_CheckState(res);
27091     }
27092     if (!_v) goto check_1;
27093     return _wrap___ge____SWIG_0(self, argc, argv);
27094   }
27095 check_1:
27096 
27097   if (argc == 2) {
27098     return _wrap___ge____SWIG_1(self, argc, argv);
27099   }
27100 
27101 fail:
27102   Py_INCREF(Py_NotImplemented);
27103   return Py_NotImplemented;
27104 }
27105 
27106 
_wrap___le____SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)27107 SWIGINTERN PyObject *_wrap___le____SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27108   PyObject *resultobj = 0;
27109   Xapian::ESetIterator *arg1 = 0 ;
27110   Xapian::ESetIterator *arg2 = 0 ;
27111   void *argp1 = 0 ;
27112   int res1 = 0 ;
27113   void *argp2 = 0 ;
27114   int res2 = 0 ;
27115   bool result;
27116 
27117   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27118   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__ESetIterator,  0  | 0);
27119   if (!SWIG_IsOK(res1)) {
27120     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__le__" "', argument " "1"" of type '" "Xapian::ESetIterator const &""'");
27121   }
27122   if (!argp1) {
27123     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__le__" "', argument " "1"" of type '" "Xapian::ESetIterator const &""'");
27124   }
27125   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
27126   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__ESetIterator,  0  | 0);
27127   if (!SWIG_IsOK(res2)) {
27128     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__le__" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'");
27129   }
27130   if (!argp2) {
27131     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__le__" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'");
27132   }
27133   arg2 = reinterpret_cast< Xapian::ESetIterator * >(argp2);
27134   {
27135     try {
27136       {
27137         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
27138         result = (bool)Xapian::operator <=((Xapian::ESetIterator const &)*arg1,(Xapian::ESetIterator const &)*arg2);
27139         SWIG_PYTHON_THREAD_END_ALLOW;
27140       }
27141     } catch (...) {
27142       Xapian::SetPythonException();
27143       SWIG_fail;
27144     }
27145   }
27146   resultobj = SWIG_From_bool(static_cast< bool >(result));
27147   return resultobj;
27148 fail:
27149   return NULL;
27150 }
27151 
27152 
_wrap___le__(PyObject * self,PyObject * args)27153 SWIGINTERN PyObject *_wrap___le__(PyObject *self, PyObject *args) {
27154   Py_ssize_t argc;
27155   PyObject *argv[3] = {
27156     0
27157   };
27158 
27159   if (!(argc = SWIG_Python_UnpackTuple(args,"__le__",0,2,argv))) SWIG_fail;
27160   --argc;
27161   if (argc == 2) {
27162     int _v = 0;
27163     {
27164       int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Xapian__MSetIterator, 0);
27165       _v = SWIG_CheckState(res);
27166     }
27167     if (!_v) goto check_1;
27168     {
27169       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__MSetIterator, 0);
27170       _v = SWIG_CheckState(res);
27171     }
27172     if (!_v) goto check_1;
27173     return _wrap___le____SWIG_0(self, argc, argv);
27174   }
27175 check_1:
27176 
27177   if (argc == 2) {
27178     return _wrap___le____SWIG_1(self, argc, argv);
27179   }
27180 
27181 fail:
27182   Py_INCREF(Py_NotImplemented);
27183   return Py_NotImplemented;
27184 }
27185 
27186 
_wrap___add____SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)27187 SWIGINTERN PyObject *_wrap___add____SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27188   PyObject *resultobj = 0;
27189   Xapian::ESetIterator::difference_type arg1 ;
27190   Xapian::ESetIterator *arg2 = 0 ;
27191   int val1 ;
27192   int ecode1 = 0 ;
27193   void *argp2 = 0 ;
27194   int res2 = 0 ;
27195   Xapian::ESetIterator result;
27196 
27197   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27198   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
27199   if (!SWIG_IsOK(ecode1)) {
27200     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "__add__" "', argument " "1"" of type '" "Xapian::ESetIterator::difference_type""'");
27201   }
27202   arg1 = static_cast< Xapian::ESetIterator::difference_type >(val1);
27203   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__ESetIterator,  0  | 0);
27204   if (!SWIG_IsOK(res2)) {
27205     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__add__" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'");
27206   }
27207   if (!argp2) {
27208     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__add__" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'");
27209   }
27210   arg2 = reinterpret_cast< Xapian::ESetIterator * >(argp2);
27211   {
27212     try {
27213       {
27214         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
27215         result = Xapian::operator +(arg1,(Xapian::ESetIterator const &)*arg2);
27216         SWIG_PYTHON_THREAD_END_ALLOW;
27217       }
27218     } catch (...) {
27219       Xapian::SetPythonException();
27220       SWIG_fail;
27221     }
27222   }
27223   resultobj = SWIG_NewPointerObj((new Xapian::ESetIterator(static_cast< const Xapian::ESetIterator& >(result))), SWIGTYPE_p_Xapian__ESetIterator, SWIG_POINTER_OWN |  0 );
27224   return resultobj;
27225 fail:
27226   return NULL;
27227 }
27228 
27229 
_wrap___add__(PyObject * self,PyObject * args)27230 SWIGINTERN PyObject *_wrap___add__(PyObject *self, PyObject *args) {
27231   Py_ssize_t argc;
27232   PyObject *argv[3] = {
27233     0
27234   };
27235 
27236   if (!(argc = SWIG_Python_UnpackTuple(args,"__add__",0,2,argv))) SWIG_fail;
27237   --argc;
27238   if (argc == 2) {
27239     int _v = 0;
27240     {
27241       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__MSetIterator, 0);
27242       _v = SWIG_CheckState(res);
27243     }
27244     if (!_v) goto check_1;
27245     return _wrap___add____SWIG_0(self, argc, argv);
27246   }
27247 check_1:
27248 
27249   if (argc == 2) {
27250     return _wrap___add____SWIG_1(self, argc, argv);
27251   }
27252 
27253 fail:
27254   Py_INCREF(Py_NotImplemented);
27255   return Py_NotImplemented;
27256 }
27257 
27258 
_wrap_new_RSet(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27259 SWIGINTERN PyObject *_wrap_new_RSet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27260   PyObject *resultobj = 0;
27261   Xapian::RSet *result = 0 ;
27262 
27263   if (!SWIG_Python_UnpackTuple(args,"new_RSet",0,0,0)) SWIG_fail;
27264   {
27265     try {
27266       {
27267         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
27268         result = (Xapian::RSet *)new Xapian::RSet();
27269         SWIG_PYTHON_THREAD_END_ALLOW;
27270       }
27271     } catch (...) {
27272       Xapian::SetPythonException();
27273       SWIG_fail;
27274     }
27275   }
27276   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__RSet, SWIG_POINTER_NEW |  0 );
27277   return resultobj;
27278 fail:
27279   return NULL;
27280 }
27281 
27282 
_wrap_delete_RSet(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27283 SWIGINTERN PyObject *_wrap_delete_RSet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27284   PyObject *resultobj = 0;
27285   Xapian::RSet *arg1 = (Xapian::RSet *) 0 ;
27286   void *argp1 = 0 ;
27287   int res1 = 0 ;
27288   PyObject *swig_obj[1] ;
27289 
27290   if (!args) SWIG_fail;
27291   swig_obj[0] = args;
27292   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__RSet, SWIG_POINTER_DISOWN |  0 );
27293   if (!SWIG_IsOK(res1)) {
27294     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RSet" "', argument " "1"" of type '" "Xapian::RSet *""'");
27295   }
27296   arg1 = reinterpret_cast< Xapian::RSet * >(argp1);
27297   {
27298     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
27299     delete arg1;
27300     SWIG_PYTHON_THREAD_END_ALLOW;
27301   }
27302   resultobj = SWIG_Py_Void();
27303   return resultobj;
27304 fail:
27305   return NULL;
27306 }
27307 
27308 
_wrap_RSet_size(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27309 SWIGINTERN PyObject *_wrap_RSet_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27310   PyObject *resultobj = 0;
27311   Xapian::RSet *arg1 = (Xapian::RSet *) 0 ;
27312   void *argp1 = 0 ;
27313   int res1 = 0 ;
27314   PyObject *swig_obj[1] ;
27315   Xapian::doccount result;
27316 
27317   if (!args) SWIG_fail;
27318   swig_obj[0] = args;
27319   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__RSet, 0 |  0 );
27320   if (!SWIG_IsOK(res1)) {
27321     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RSet_size" "', argument " "1"" of type '" "Xapian::RSet const *""'");
27322   }
27323   arg1 = reinterpret_cast< Xapian::RSet * >(argp1);
27324   {
27325     try {
27326       {
27327         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
27328         result = (Xapian::doccount)((Xapian::RSet const *)arg1)->size();
27329         SWIG_PYTHON_THREAD_END_ALLOW;
27330       }
27331     } catch (...) {
27332       Xapian::SetPythonException();
27333       SWIG_fail;
27334     }
27335   }
27336   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
27337   return resultobj;
27338 fail:
27339   return NULL;
27340 }
27341 
27342 
_wrap_RSet_empty(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27343 SWIGINTERN PyObject *_wrap_RSet_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27344   PyObject *resultobj = 0;
27345   Xapian::RSet *arg1 = (Xapian::RSet *) 0 ;
27346   void *argp1 = 0 ;
27347   int res1 = 0 ;
27348   PyObject *swig_obj[1] ;
27349   bool result;
27350 
27351   if (!args) SWIG_fail;
27352   swig_obj[0] = args;
27353   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__RSet, 0 |  0 );
27354   if (!SWIG_IsOK(res1)) {
27355     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RSet_empty" "', argument " "1"" of type '" "Xapian::RSet const *""'");
27356   }
27357   arg1 = reinterpret_cast< Xapian::RSet * >(argp1);
27358   {
27359     try {
27360       {
27361         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
27362         result = (bool)((Xapian::RSet const *)arg1)->empty();
27363         SWIG_PYTHON_THREAD_END_ALLOW;
27364       }
27365     } catch (...) {
27366       Xapian::SetPythonException();
27367       SWIG_fail;
27368     }
27369   }
27370   resultobj = SWIG_From_bool(static_cast< bool >(result));
27371   return resultobj;
27372 fail:
27373   return NULL;
27374 }
27375 
27376 
_wrap_RSet_add_document__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)27377 SWIGINTERN PyObject *_wrap_RSet_add_document__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27378   PyObject *resultobj = 0;
27379   Xapian::RSet *arg1 = (Xapian::RSet *) 0 ;
27380   Xapian::docid arg2 ;
27381   void *argp1 = 0 ;
27382   int res1 = 0 ;
27383   unsigned int val2 ;
27384   int ecode2 = 0 ;
27385 
27386   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27387   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__RSet, 0 |  0 );
27388   if (!SWIG_IsOK(res1)) {
27389     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RSet_add_document" "', argument " "1"" of type '" "Xapian::RSet *""'");
27390   }
27391   arg1 = reinterpret_cast< Xapian::RSet * >(argp1);
27392   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
27393   if (!SWIG_IsOK(ecode2)) {
27394     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RSet_add_document" "', argument " "2"" of type '" "Xapian::docid""'");
27395   }
27396   arg2 = static_cast< Xapian::docid >(val2);
27397   {
27398     try {
27399       {
27400         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
27401         (arg1)->add_document(arg2);
27402         SWIG_PYTHON_THREAD_END_ALLOW;
27403       }
27404     } catch (...) {
27405       Xapian::SetPythonException();
27406       SWIG_fail;
27407     }
27408   }
27409   resultobj = SWIG_Py_Void();
27410   return resultobj;
27411 fail:
27412   return NULL;
27413 }
27414 
27415 
_wrap_RSet_add_document__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)27416 SWIGINTERN PyObject *_wrap_RSet_add_document__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27417   PyObject *resultobj = 0;
27418   Xapian::RSet *arg1 = (Xapian::RSet *) 0 ;
27419   Xapian::MSetIterator *arg2 = 0 ;
27420   void *argp1 = 0 ;
27421   int res1 = 0 ;
27422   void *argp2 = 0 ;
27423   int res2 = 0 ;
27424 
27425   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27426   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__RSet, 0 |  0 );
27427   if (!SWIG_IsOK(res1)) {
27428     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RSet_add_document" "', argument " "1"" of type '" "Xapian::RSet *""'");
27429   }
27430   arg1 = reinterpret_cast< Xapian::RSet * >(argp1);
27431   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
27432   if (!SWIG_IsOK(res2)) {
27433     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RSet_add_document" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
27434   }
27435   if (!argp2) {
27436     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RSet_add_document" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
27437   }
27438   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
27439   {
27440     try {
27441       {
27442         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
27443         (arg1)->add_document((Xapian::MSetIterator const &)*arg2);
27444         SWIG_PYTHON_THREAD_END_ALLOW;
27445       }
27446     } catch (...) {
27447       Xapian::SetPythonException();
27448       SWIG_fail;
27449     }
27450   }
27451   resultobj = SWIG_Py_Void();
27452   return resultobj;
27453 fail:
27454   return NULL;
27455 }
27456 
27457 
_wrap_RSet_add_document(PyObject * self,PyObject * args)27458 SWIGINTERN PyObject *_wrap_RSet_add_document(PyObject *self, PyObject *args) {
27459   Py_ssize_t argc;
27460   PyObject *argv[3] = {
27461     0
27462   };
27463 
27464   if (!(argc = SWIG_Python_UnpackTuple(args,"RSet_add_document",0,2,argv))) SWIG_fail;
27465   --argc;
27466   if (argc == 2) {
27467     int _v = 0;
27468     {
27469       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__MSetIterator, 0);
27470       _v = SWIG_CheckState(res);
27471     }
27472     if (!_v) goto check_1;
27473     return _wrap_RSet_add_document__SWIG_1(self, argc, argv);
27474   }
27475 check_1:
27476 
27477   if (argc == 2) {
27478     return _wrap_RSet_add_document__SWIG_0(self, argc, argv);
27479   }
27480 
27481 fail:
27482   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'RSet_add_document'.\n"
27483     "  Possible C/C++ prototypes are:\n"
27484     "    Xapian::RSet::add_document(Xapian::docid)\n"
27485     "    Xapian::RSet::add_document(Xapian::MSetIterator const &)\n");
27486   return 0;
27487 }
27488 
27489 
_wrap_RSet_remove_document__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)27490 SWIGINTERN PyObject *_wrap_RSet_remove_document__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27491   PyObject *resultobj = 0;
27492   Xapian::RSet *arg1 = (Xapian::RSet *) 0 ;
27493   Xapian::docid arg2 ;
27494   void *argp1 = 0 ;
27495   int res1 = 0 ;
27496   unsigned int val2 ;
27497   int ecode2 = 0 ;
27498 
27499   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27500   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__RSet, 0 |  0 );
27501   if (!SWIG_IsOK(res1)) {
27502     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RSet_remove_document" "', argument " "1"" of type '" "Xapian::RSet *""'");
27503   }
27504   arg1 = reinterpret_cast< Xapian::RSet * >(argp1);
27505   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
27506   if (!SWIG_IsOK(ecode2)) {
27507     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RSet_remove_document" "', argument " "2"" of type '" "Xapian::docid""'");
27508   }
27509   arg2 = static_cast< Xapian::docid >(val2);
27510   {
27511     try {
27512       {
27513         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
27514         (arg1)->remove_document(arg2);
27515         SWIG_PYTHON_THREAD_END_ALLOW;
27516       }
27517     } catch (...) {
27518       Xapian::SetPythonException();
27519       SWIG_fail;
27520     }
27521   }
27522   resultobj = SWIG_Py_Void();
27523   return resultobj;
27524 fail:
27525   return NULL;
27526 }
27527 
27528 
_wrap_RSet_remove_document__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)27529 SWIGINTERN PyObject *_wrap_RSet_remove_document__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27530   PyObject *resultobj = 0;
27531   Xapian::RSet *arg1 = (Xapian::RSet *) 0 ;
27532   Xapian::MSetIterator *arg2 = 0 ;
27533   void *argp1 = 0 ;
27534   int res1 = 0 ;
27535   void *argp2 = 0 ;
27536   int res2 = 0 ;
27537 
27538   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27539   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__RSet, 0 |  0 );
27540   if (!SWIG_IsOK(res1)) {
27541     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RSet_remove_document" "', argument " "1"" of type '" "Xapian::RSet *""'");
27542   }
27543   arg1 = reinterpret_cast< Xapian::RSet * >(argp1);
27544   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
27545   if (!SWIG_IsOK(res2)) {
27546     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RSet_remove_document" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
27547   }
27548   if (!argp2) {
27549     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RSet_remove_document" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
27550   }
27551   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
27552   {
27553     try {
27554       {
27555         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
27556         (arg1)->remove_document((Xapian::MSetIterator const &)*arg2);
27557         SWIG_PYTHON_THREAD_END_ALLOW;
27558       }
27559     } catch (...) {
27560       Xapian::SetPythonException();
27561       SWIG_fail;
27562     }
27563   }
27564   resultobj = SWIG_Py_Void();
27565   return resultobj;
27566 fail:
27567   return NULL;
27568 }
27569 
27570 
_wrap_RSet_remove_document(PyObject * self,PyObject * args)27571 SWIGINTERN PyObject *_wrap_RSet_remove_document(PyObject *self, PyObject *args) {
27572   Py_ssize_t argc;
27573   PyObject *argv[3] = {
27574     0
27575   };
27576 
27577   if (!(argc = SWIG_Python_UnpackTuple(args,"RSet_remove_document",0,2,argv))) SWIG_fail;
27578   --argc;
27579   if (argc == 2) {
27580     int _v = 0;
27581     {
27582       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__MSetIterator, 0);
27583       _v = SWIG_CheckState(res);
27584     }
27585     if (!_v) goto check_1;
27586     return _wrap_RSet_remove_document__SWIG_1(self, argc, argv);
27587   }
27588 check_1:
27589 
27590   if (argc == 2) {
27591     return _wrap_RSet_remove_document__SWIG_0(self, argc, argv);
27592   }
27593 
27594 fail:
27595   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'RSet_remove_document'.\n"
27596     "  Possible C/C++ prototypes are:\n"
27597     "    Xapian::RSet::remove_document(Xapian::docid)\n"
27598     "    Xapian::RSet::remove_document(Xapian::MSetIterator const &)\n");
27599   return 0;
27600 }
27601 
27602 
_wrap_RSet_contains__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)27603 SWIGINTERN PyObject *_wrap_RSet_contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27604   PyObject *resultobj = 0;
27605   Xapian::RSet *arg1 = (Xapian::RSet *) 0 ;
27606   Xapian::docid arg2 ;
27607   void *argp1 = 0 ;
27608   int res1 = 0 ;
27609   unsigned int val2 ;
27610   int ecode2 = 0 ;
27611   bool result;
27612 
27613   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27614   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__RSet, 0 |  0 );
27615   if (!SWIG_IsOK(res1)) {
27616     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RSet_contains" "', argument " "1"" of type '" "Xapian::RSet const *""'");
27617   }
27618   arg1 = reinterpret_cast< Xapian::RSet * >(argp1);
27619   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
27620   if (!SWIG_IsOK(ecode2)) {
27621     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RSet_contains" "', argument " "2"" of type '" "Xapian::docid""'");
27622   }
27623   arg2 = static_cast< Xapian::docid >(val2);
27624   {
27625     try {
27626       {
27627         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
27628         result = (bool)((Xapian::RSet const *)arg1)->contains(arg2);
27629         SWIG_PYTHON_THREAD_END_ALLOW;
27630       }
27631     } catch (...) {
27632       Xapian::SetPythonException();
27633       SWIG_fail;
27634     }
27635   }
27636   resultobj = SWIG_From_bool(static_cast< bool >(result));
27637   return resultobj;
27638 fail:
27639   return NULL;
27640 }
27641 
27642 
_wrap_RSet_contains__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)27643 SWIGINTERN PyObject *_wrap_RSet_contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27644   PyObject *resultobj = 0;
27645   Xapian::RSet *arg1 = (Xapian::RSet *) 0 ;
27646   Xapian::MSetIterator *arg2 = 0 ;
27647   void *argp1 = 0 ;
27648   int res1 = 0 ;
27649   void *argp2 = 0 ;
27650   int res2 = 0 ;
27651   bool result;
27652 
27653   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27654   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__RSet, 0 |  0 );
27655   if (!SWIG_IsOK(res1)) {
27656     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RSet_contains" "', argument " "1"" of type '" "Xapian::RSet const *""'");
27657   }
27658   arg1 = reinterpret_cast< Xapian::RSet * >(argp1);
27659   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
27660   if (!SWIG_IsOK(res2)) {
27661     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RSet_contains" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
27662   }
27663   if (!argp2) {
27664     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RSet_contains" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
27665   }
27666   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
27667   {
27668     try {
27669       {
27670         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
27671         result = (bool)((Xapian::RSet const *)arg1)->contains((Xapian::MSetIterator const &)*arg2);
27672         SWIG_PYTHON_THREAD_END_ALLOW;
27673       }
27674     } catch (...) {
27675       Xapian::SetPythonException();
27676       SWIG_fail;
27677     }
27678   }
27679   resultobj = SWIG_From_bool(static_cast< bool >(result));
27680   return resultobj;
27681 fail:
27682   return NULL;
27683 }
27684 
27685 
_wrap_RSet_contains(PyObject * self,PyObject * args)27686 SWIGINTERN PyObject *_wrap_RSet_contains(PyObject *self, PyObject *args) {
27687   Py_ssize_t argc;
27688   PyObject *argv[3] = {
27689     0
27690   };
27691 
27692   if (!(argc = SWIG_Python_UnpackTuple(args,"RSet_contains",0,2,argv))) SWIG_fail;
27693   --argc;
27694   if (argc == 2) {
27695     int _v = 0;
27696     {
27697       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__MSetIterator, 0);
27698       _v = SWIG_CheckState(res);
27699     }
27700     if (!_v) goto check_1;
27701     return _wrap_RSet_contains__SWIG_1(self, argc, argv);
27702   }
27703 check_1:
27704 
27705   if (argc == 2) {
27706     return _wrap_RSet_contains__SWIG_0(self, argc, argv);
27707   }
27708 
27709 fail:
27710   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'RSet_contains'.\n"
27711     "  Possible C/C++ prototypes are:\n"
27712     "    Xapian::RSet::contains(Xapian::docid) const\n"
27713     "    Xapian::RSet::contains(Xapian::MSetIterator const &) const\n");
27714   return 0;
27715 }
27716 
27717 
_wrap_RSet___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27718 SWIGINTERN PyObject *_wrap_RSet___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27719   PyObject *resultobj = 0;
27720   Xapian::RSet *arg1 = (Xapian::RSet *) 0 ;
27721   void *argp1 = 0 ;
27722   int res1 = 0 ;
27723   PyObject *swig_obj[1] ;
27724   std::string result;
27725 
27726   if (!args) SWIG_fail;
27727   swig_obj[0] = args;
27728   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__RSet, 0 |  0 );
27729   if (!SWIG_IsOK(res1)) {
27730     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RSet___str__" "', argument " "1"" of type '" "Xapian::RSet const *""'");
27731   }
27732   arg1 = reinterpret_cast< Xapian::RSet * >(argp1);
27733   {
27734     try {
27735       {
27736         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
27737         result = ((Xapian::RSet const *)arg1)->get_description();
27738         SWIG_PYTHON_THREAD_END_ALLOW;
27739       }
27740     } catch (...) {
27741       Xapian::SetPythonException();
27742       SWIG_fail;
27743     }
27744   }
27745   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
27746   return resultobj;
27747 fail:
27748   return NULL;
27749 }
27750 
27751 
RSet_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27752 SWIGINTERN PyObject *RSet_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27753   PyObject *obj;
27754   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
27755   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__RSet, SWIG_NewClientData(obj));
27756   return SWIG_Py_Void();
27757 }
27758 
RSet_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27759 SWIGINTERN PyObject *RSet_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27760   return SWIG_Python_InitShadowInstance(args);
27761 }
27762 
_wrap_new_MatchDecider(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27763 SWIGINTERN PyObject *_wrap_new_MatchDecider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27764   PyObject *resultobj = 0;
27765   PyObject *arg1 = (PyObject *) 0 ;
27766   PyObject *swig_obj[1] ;
27767   Xapian::MatchDecider *result = 0 ;
27768 
27769   if (!args) SWIG_fail;
27770   swig_obj[0] = args;
27771   arg1 = swig_obj[0];
27772   {
27773     try {
27774       {
27775         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
27776         if ( arg1 != Py_None ) {
27777           /* subclassed */
27778           result = (Xapian::MatchDecider *)new SwigDirector_MatchDecider(arg1);
27779         } else {
27780           SWIG_SetErrorMsg(PyExc_RuntimeError,"accessing abstract class or protected constructor");
27781           SWIG_fail;
27782         }
27783 
27784         SWIG_PYTHON_THREAD_END_ALLOW;
27785       }
27786     } catch (...) {
27787       Xapian::SetPythonException();
27788       SWIG_fail;
27789     }
27790   }
27791   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__MatchDecider, SWIG_POINTER_NEW |  0 );
27792   return resultobj;
27793 fail:
27794   return NULL;
27795 }
27796 
27797 
_wrap_MatchDecider___call__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27798 SWIGINTERN PyObject *_wrap_MatchDecider___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27799   PyObject *resultobj = 0;
27800   Xapian::MatchDecider *arg1 = (Xapian::MatchDecider *) 0 ;
27801   Xapian::Document *arg2 = 0 ;
27802   void *argp1 = 0 ;
27803   int res1 = 0 ;
27804   void *argp2 = 0 ;
27805   int res2 = 0 ;
27806   PyObject *swig_obj[2] ;
27807   Swig::Director *director = 0;
27808   bool upcall = false;
27809   bool result;
27810 
27811   if (!SWIG_Python_UnpackTuple(args,"MatchDecider___call__",2,2,swig_obj)) SWIG_fail;
27812   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MatchDecider, 0 |  0 );
27813   if (!SWIG_IsOK(res1)) {
27814     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MatchDecider___call__" "', argument " "1"" of type '" "Xapian::MatchDecider const *""'");
27815   }
27816   arg1 = reinterpret_cast< Xapian::MatchDecider * >(argp1);
27817   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__Document,  0  | 0);
27818   if (!SWIG_IsOK(res2)) {
27819     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MatchDecider___call__" "', argument " "2"" of type '" "Xapian::Document const &""'");
27820   }
27821   if (!argp2) {
27822     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MatchDecider___call__" "', argument " "2"" of type '" "Xapian::Document const &""'");
27823   }
27824   arg2 = reinterpret_cast< Xapian::Document * >(argp2);
27825   director = SWIG_DIRECTOR_CAST(arg1);
27826   upcall = (director && (director->swig_get_self()==swig_obj[0]));
27827   try {
27828     {
27829       try {
27830         if (upcall) {
27831           Swig::DirectorPureVirtualException::raise("Xapian::MatchDecider::operator ()");
27832         } else {
27833           result = (bool)((Xapian::MatchDecider const *)arg1)->operator ()((Xapian::Document const &)*arg2);
27834         }
27835       } catch (...) {
27836         Xapian::SetPythonException();
27837         SWIG_fail;
27838       }
27839     }
27840   } catch (Swig::DirectorException&) {
27841     SWIG_fail;
27842   }
27843   resultobj = SWIG_From_bool(static_cast< bool >(result));
27844   return resultobj;
27845 fail:
27846   return NULL;
27847 }
27848 
27849 
_wrap_delete_MatchDecider(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27850 SWIGINTERN PyObject *_wrap_delete_MatchDecider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27851   PyObject *resultobj = 0;
27852   Xapian::MatchDecider *arg1 = (Xapian::MatchDecider *) 0 ;
27853   void *argp1 = 0 ;
27854   int res1 = 0 ;
27855   PyObject *swig_obj[1] ;
27856 
27857   if (!args) SWIG_fail;
27858   swig_obj[0] = args;
27859   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MatchDecider, SWIG_POINTER_DISOWN |  0 );
27860   if (!SWIG_IsOK(res1)) {
27861     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MatchDecider" "', argument " "1"" of type '" "Xapian::MatchDecider *""'");
27862   }
27863   arg1 = reinterpret_cast< Xapian::MatchDecider * >(argp1);
27864   {
27865     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
27866     delete arg1;
27867     SWIG_PYTHON_THREAD_END_ALLOW;
27868   }
27869   resultobj = SWIG_Py_Void();
27870   return resultobj;
27871 fail:
27872   return NULL;
27873 }
27874 
27875 
_wrap_disown_MatchDecider(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27876 SWIGINTERN PyObject *_wrap_disown_MatchDecider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27877   PyObject *resultobj = 0;
27878   Xapian::MatchDecider *arg1 = (Xapian::MatchDecider *) 0 ;
27879   void *argp1 = 0 ;
27880   int res1 = 0 ;
27881   PyObject *swig_obj[1] ;
27882 
27883   if (!args) SWIG_fail;
27884   swig_obj[0] = args;
27885   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MatchDecider, 0 |  0 );
27886   if (!SWIG_IsOK(res1)) {
27887     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_MatchDecider" "', argument " "1"" of type '" "Xapian::MatchDecider *""'");
27888   }
27889   arg1 = reinterpret_cast< Xapian::MatchDecider * >(argp1);
27890   {
27891     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
27892     {
27893       Swig::Director *director = SWIG_DIRECTOR_CAST(arg1);
27894       if (director) director->swig_disown();
27895     }
27896 
27897     SWIG_PYTHON_THREAD_END_ALLOW;
27898   }
27899   resultobj = SWIG_Py_Void();
27900   return resultobj;
27901 fail:
27902   return NULL;
27903 }
27904 
27905 
MatchDecider_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27906 SWIGINTERN PyObject *MatchDecider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27907   PyObject *obj;
27908   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
27909   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__MatchDecider, SWIG_NewClientData(obj));
27910   return SWIG_Py_Void();
27911 }
27912 
MatchDecider_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27913 SWIGINTERN PyObject *MatchDecider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27914   return SWIG_Python_InitShadowInstance(args);
27915 }
27916 
_wrap_new_Enquire(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27917 SWIGINTERN PyObject *_wrap_new_Enquire(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27918   PyObject *resultobj = 0;
27919   Xapian::Database *arg1 = 0 ;
27920   void *argp1 = 0 ;
27921   int res1 = 0 ;
27922   PyObject *swig_obj[1] ;
27923   Xapian::Enquire *result = 0 ;
27924 
27925   if (!args) SWIG_fail;
27926   swig_obj[0] = args;
27927   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__Database,  0  | 0);
27928   if (!SWIG_IsOK(res1)) {
27929     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Enquire" "', argument " "1"" of type '" "Xapian::Database const &""'");
27930   }
27931   if (!argp1) {
27932     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Enquire" "', argument " "1"" of type '" "Xapian::Database const &""'");
27933   }
27934   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
27935   {
27936     try {
27937       {
27938         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
27939         result = (Xapian::Enquire *)new Xapian::Enquire((Xapian::Database const &)*arg1);
27940         SWIG_PYTHON_THREAD_END_ALLOW;
27941       }
27942     } catch (...) {
27943       Xapian::SetPythonException();
27944       SWIG_fail;
27945     }
27946   }
27947   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Enquire, SWIG_POINTER_NEW |  0 );
27948   return resultobj;
27949 fail:
27950   return NULL;
27951 }
27952 
27953 
_wrap_delete_Enquire(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27954 SWIGINTERN PyObject *_wrap_delete_Enquire(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27955   PyObject *resultobj = 0;
27956   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
27957   void *argp1 = 0 ;
27958   int res1 = 0 ;
27959   PyObject *swig_obj[1] ;
27960 
27961   if (!args) SWIG_fail;
27962   swig_obj[0] = args;
27963   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, SWIG_POINTER_DISOWN |  0 );
27964   if (!SWIG_IsOK(res1)) {
27965     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Enquire" "', argument " "1"" of type '" "Xapian::Enquire *""'");
27966   }
27967   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
27968   {
27969     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
27970     delete arg1;
27971     SWIG_PYTHON_THREAD_END_ALLOW;
27972   }
27973   resultobj = SWIG_Py_Void();
27974   return resultobj;
27975 fail:
27976   return NULL;
27977 }
27978 
27979 
_wrap_Enquire_set_query__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)27980 SWIGINTERN PyObject *_wrap_Enquire_set_query__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27981   PyObject *resultobj = 0;
27982   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
27983   Xapian::Query *arg2 = 0 ;
27984   Xapian::termcount arg3 ;
27985   void *argp1 = 0 ;
27986   int res1 = 0 ;
27987   void *argp2 = 0 ;
27988   int res2 = 0 ;
27989   unsigned int val3 ;
27990   int ecode3 = 0 ;
27991 
27992   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
27993   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
27994   if (!SWIG_IsOK(res1)) {
27995     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_query" "', argument " "1"" of type '" "Xapian::Enquire *""'");
27996   }
27997   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
27998   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__Query,  0  | 0);
27999   if (!SWIG_IsOK(res2)) {
28000     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Enquire_set_query" "', argument " "2"" of type '" "Xapian::Query const &""'");
28001   }
28002   if (!argp2) {
28003     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire_set_query" "', argument " "2"" of type '" "Xapian::Query const &""'");
28004   }
28005   arg2 = reinterpret_cast< Xapian::Query * >(argp2);
28006   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
28007   if (!SWIG_IsOK(ecode3)) {
28008     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_set_query" "', argument " "3"" of type '" "Xapian::termcount""'");
28009   }
28010   arg3 = static_cast< Xapian::termcount >(val3);
28011   {
28012     try {
28013       {
28014         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
28015         (arg1)->set_query((Xapian::Query const &)*arg2,arg3);
28016         SWIG_PYTHON_THREAD_END_ALLOW;
28017       }
28018     } catch (...) {
28019       Xapian::SetPythonException();
28020       SWIG_fail;
28021     }
28022   }
28023   resultobj = SWIG_Py_Void();
28024   return resultobj;
28025 fail:
28026   return NULL;
28027 }
28028 
28029 
_wrap_Enquire_set_query__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)28030 SWIGINTERN PyObject *_wrap_Enquire_set_query__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28031   PyObject *resultobj = 0;
28032   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
28033   Xapian::Query *arg2 = 0 ;
28034   void *argp1 = 0 ;
28035   int res1 = 0 ;
28036   void *argp2 = 0 ;
28037   int res2 = 0 ;
28038 
28039   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28040   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
28041   if (!SWIG_IsOK(res1)) {
28042     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_query" "', argument " "1"" of type '" "Xapian::Enquire *""'");
28043   }
28044   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
28045   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__Query,  0  | 0);
28046   if (!SWIG_IsOK(res2)) {
28047     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Enquire_set_query" "', argument " "2"" of type '" "Xapian::Query const &""'");
28048   }
28049   if (!argp2) {
28050     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire_set_query" "', argument " "2"" of type '" "Xapian::Query const &""'");
28051   }
28052   arg2 = reinterpret_cast< Xapian::Query * >(argp2);
28053   {
28054     try {
28055       {
28056         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
28057         (arg1)->set_query((Xapian::Query const &)*arg2);
28058         SWIG_PYTHON_THREAD_END_ALLOW;
28059       }
28060     } catch (...) {
28061       Xapian::SetPythonException();
28062       SWIG_fail;
28063     }
28064   }
28065   resultobj = SWIG_Py_Void();
28066   return resultobj;
28067 fail:
28068   return NULL;
28069 }
28070 
28071 
_wrap_Enquire_set_query(PyObject * self,PyObject * args)28072 SWIGINTERN PyObject *_wrap_Enquire_set_query(PyObject *self, PyObject *args) {
28073   Py_ssize_t argc;
28074   PyObject *argv[4] = {
28075     0
28076   };
28077 
28078   if (!(argc = SWIG_Python_UnpackTuple(args,"Enquire_set_query",0,3,argv))) SWIG_fail;
28079   --argc;
28080   if (argc == 2) {
28081     return _wrap_Enquire_set_query__SWIG_1(self, argc, argv);
28082   }
28083   if (argc == 3) {
28084     return _wrap_Enquire_set_query__SWIG_0(self, argc, argv);
28085   }
28086 
28087 fail:
28088   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Enquire_set_query'.\n"
28089     "  Possible C/C++ prototypes are:\n"
28090     "    Xapian::Enquire::set_query(Xapian::Query const &,Xapian::termcount)\n"
28091     "    Xapian::Enquire::set_query(Xapian::Query const &)\n");
28092   return 0;
28093 }
28094 
28095 
_wrap_Enquire_get_query(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28096 SWIGINTERN PyObject *_wrap_Enquire_get_query(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28097   PyObject *resultobj = 0;
28098   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
28099   void *argp1 = 0 ;
28100   int res1 = 0 ;
28101   PyObject *swig_obj[1] ;
28102   Xapian::Query *result = 0 ;
28103 
28104   if (!args) SWIG_fail;
28105   swig_obj[0] = args;
28106   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
28107   if (!SWIG_IsOK(res1)) {
28108     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_query" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
28109   }
28110   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
28111   {
28112     try {
28113       {
28114         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
28115         result = (Xapian::Query *) &((Xapian::Enquire const *)arg1)->get_query();
28116         SWIG_PYTHON_THREAD_END_ALLOW;
28117       }
28118     } catch (...) {
28119       Xapian::SetPythonException();
28120       SWIG_fail;
28121     }
28122   }
28123   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query, 0 |  0 );
28124   return resultobj;
28125 fail:
28126   return NULL;
28127 }
28128 
28129 
_wrap_Enquire_add_matchspy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28130 SWIGINTERN PyObject *_wrap_Enquire_add_matchspy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28131   PyObject *resultobj = 0;
28132   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
28133   Xapian::MatchSpy *arg2 = (Xapian::MatchSpy *) 0 ;
28134   void *argp1 = 0 ;
28135   int res1 = 0 ;
28136   void *argp2 = 0 ;
28137   int res2 = 0 ;
28138   PyObject *swig_obj[2] ;
28139 
28140   if (!SWIG_Python_UnpackTuple(args,"Enquire_add_matchspy",2,2,swig_obj)) SWIG_fail;
28141   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
28142   if (!SWIG_IsOK(res1)) {
28143     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_add_matchspy" "', argument " "1"" of type '" "Xapian::Enquire *""'");
28144   }
28145   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
28146   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Xapian__MatchSpy, 0 |  0 );
28147   if (!SWIG_IsOK(res2)) {
28148     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Enquire_add_matchspy" "', argument " "2"" of type '" "Xapian::MatchSpy *""'");
28149   }
28150   arg2 = reinterpret_cast< Xapian::MatchSpy * >(argp2);
28151   {
28152     try {
28153       {
28154         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
28155         (arg1)->add_matchspy(arg2);
28156         SWIG_PYTHON_THREAD_END_ALLOW;
28157       }
28158     } catch (...) {
28159       Xapian::SetPythonException();
28160       SWIG_fail;
28161     }
28162   }
28163   resultobj = SWIG_Py_Void();
28164   return resultobj;
28165 fail:
28166   return NULL;
28167 }
28168 
28169 
_wrap_Enquire_clear_matchspies(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28170 SWIGINTERN PyObject *_wrap_Enquire_clear_matchspies(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28171   PyObject *resultobj = 0;
28172   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
28173   void *argp1 = 0 ;
28174   int res1 = 0 ;
28175   PyObject *swig_obj[1] ;
28176 
28177   if (!args) SWIG_fail;
28178   swig_obj[0] = args;
28179   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
28180   if (!SWIG_IsOK(res1)) {
28181     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_clear_matchspies" "', argument " "1"" of type '" "Xapian::Enquire *""'");
28182   }
28183   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
28184   {
28185     try {
28186       {
28187         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
28188         (arg1)->clear_matchspies();
28189         SWIG_PYTHON_THREAD_END_ALLOW;
28190       }
28191     } catch (...) {
28192       Xapian::SetPythonException();
28193       SWIG_fail;
28194     }
28195   }
28196   resultobj = SWIG_Py_Void();
28197   return resultobj;
28198 fail:
28199   return NULL;
28200 }
28201 
28202 
_wrap_Enquire_set_weighting_scheme(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28203 SWIGINTERN PyObject *_wrap_Enquire_set_weighting_scheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28204   PyObject *resultobj = 0;
28205   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
28206   Xapian::Weight *arg2 = 0 ;
28207   void *argp1 = 0 ;
28208   int res1 = 0 ;
28209   void *argp2 = 0 ;
28210   int res2 = 0 ;
28211   PyObject *swig_obj[2] ;
28212 
28213   if (!SWIG_Python_UnpackTuple(args,"Enquire_set_weighting_scheme",2,2,swig_obj)) SWIG_fail;
28214   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
28215   if (!SWIG_IsOK(res1)) {
28216     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_weighting_scheme" "', argument " "1"" of type '" "Xapian::Enquire *""'");
28217   }
28218   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
28219   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__Weight,  0  | 0);
28220   if (!SWIG_IsOK(res2)) {
28221     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Enquire_set_weighting_scheme" "', argument " "2"" of type '" "Xapian::Weight const &""'");
28222   }
28223   if (!argp2) {
28224     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire_set_weighting_scheme" "', argument " "2"" of type '" "Xapian::Weight const &""'");
28225   }
28226   arg2 = reinterpret_cast< Xapian::Weight * >(argp2);
28227   {
28228     try {
28229       {
28230         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
28231         (arg1)->set_weighting_scheme((Xapian::Weight const &)*arg2);
28232         SWIG_PYTHON_THREAD_END_ALLOW;
28233       }
28234     } catch (...) {
28235       Xapian::SetPythonException();
28236       SWIG_fail;
28237     }
28238   }
28239   resultobj = SWIG_Py_Void();
28240   return resultobj;
28241 fail:
28242   return NULL;
28243 }
28244 
28245 
_wrap_Enquire_set_expansion_scheme__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)28246 SWIGINTERN PyObject *_wrap_Enquire_set_expansion_scheme__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28247   PyObject *resultobj = 0;
28248   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
28249   std::string *arg2 = 0 ;
28250   double arg3 ;
28251   void *argp1 = 0 ;
28252   int res1 = 0 ;
28253   int res2 = SWIG_OLDOBJ ;
28254   double val3 ;
28255   int ecode3 = 0 ;
28256 
28257   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
28258   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
28259   if (!SWIG_IsOK(res1)) {
28260     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_expansion_scheme" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
28261   }
28262   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
28263   {
28264     std::string *ptr = (std::string *)0;
28265     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
28266     if (!SWIG_IsOK(res2)) {
28267       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Enquire_set_expansion_scheme" "', argument " "2"" of type '" "std::string const &""'");
28268     }
28269     if (!ptr) {
28270       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire_set_expansion_scheme" "', argument " "2"" of type '" "std::string const &""'");
28271     }
28272     arg2 = ptr;
28273   }
28274   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
28275   if (!SWIG_IsOK(ecode3)) {
28276     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_set_expansion_scheme" "', argument " "3"" of type '" "double""'");
28277   }
28278   arg3 = static_cast< double >(val3);
28279   {
28280     try {
28281       {
28282         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
28283         ((Xapian::Enquire const *)arg1)->set_expansion_scheme((std::string const &)*arg2,arg3);
28284         SWIG_PYTHON_THREAD_END_ALLOW;
28285       }
28286     } catch (...) {
28287       Xapian::SetPythonException();
28288       SWIG_fail;
28289     }
28290   }
28291   resultobj = SWIG_Py_Void();
28292   if (SWIG_IsNewObj(res2)) delete arg2;
28293   return resultobj;
28294 fail:
28295   if (SWIG_IsNewObj(res2)) delete arg2;
28296   return NULL;
28297 }
28298 
28299 
_wrap_Enquire_set_expansion_scheme__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)28300 SWIGINTERN PyObject *_wrap_Enquire_set_expansion_scheme__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28301   PyObject *resultobj = 0;
28302   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
28303   std::string *arg2 = 0 ;
28304   void *argp1 = 0 ;
28305   int res1 = 0 ;
28306   int res2 = SWIG_OLDOBJ ;
28307 
28308   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
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_set_expansion_scheme" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
28312   }
28313   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
28314   {
28315     std::string *ptr = (std::string *)0;
28316     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
28317     if (!SWIG_IsOK(res2)) {
28318       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Enquire_set_expansion_scheme" "', argument " "2"" of type '" "std::string const &""'");
28319     }
28320     if (!ptr) {
28321       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire_set_expansion_scheme" "', argument " "2"" of type '" "std::string const &""'");
28322     }
28323     arg2 = ptr;
28324   }
28325   {
28326     try {
28327       {
28328         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
28329         ((Xapian::Enquire const *)arg1)->set_expansion_scheme((std::string const &)*arg2);
28330         SWIG_PYTHON_THREAD_END_ALLOW;
28331       }
28332     } catch (...) {
28333       Xapian::SetPythonException();
28334       SWIG_fail;
28335     }
28336   }
28337   resultobj = SWIG_Py_Void();
28338   if (SWIG_IsNewObj(res2)) delete arg2;
28339   return resultobj;
28340 fail:
28341   if (SWIG_IsNewObj(res2)) delete arg2;
28342   return NULL;
28343 }
28344 
28345 
_wrap_Enquire_set_expansion_scheme(PyObject * self,PyObject * args)28346 SWIGINTERN PyObject *_wrap_Enquire_set_expansion_scheme(PyObject *self, PyObject *args) {
28347   Py_ssize_t argc;
28348   PyObject *argv[4] = {
28349     0
28350   };
28351 
28352   if (!(argc = SWIG_Python_UnpackTuple(args,"Enquire_set_expansion_scheme",0,3,argv))) SWIG_fail;
28353   --argc;
28354   if (argc == 2) {
28355     return _wrap_Enquire_set_expansion_scheme__SWIG_1(self, argc, argv);
28356   }
28357   if (argc == 3) {
28358     return _wrap_Enquire_set_expansion_scheme__SWIG_0(self, argc, argv);
28359   }
28360 
28361 fail:
28362   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Enquire_set_expansion_scheme'.\n"
28363     "  Possible C/C++ prototypes are:\n"
28364     "    Xapian::Enquire::set_expansion_scheme(std::string const &,double) const\n"
28365     "    Xapian::Enquire::set_expansion_scheme(std::string const &) const\n");
28366   return 0;
28367 }
28368 
28369 
_wrap_Enquire_set_collapse_key__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)28370 SWIGINTERN PyObject *_wrap_Enquire_set_collapse_key__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28371   PyObject *resultobj = 0;
28372   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
28373   Xapian::valueno arg2 ;
28374   Xapian::doccount arg3 ;
28375   void *argp1 = 0 ;
28376   int res1 = 0 ;
28377   unsigned int val2 ;
28378   int ecode2 = 0 ;
28379   unsigned int val3 ;
28380   int ecode3 = 0 ;
28381 
28382   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
28383   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
28384   if (!SWIG_IsOK(res1)) {
28385     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_collapse_key" "', argument " "1"" of type '" "Xapian::Enquire *""'");
28386   }
28387   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
28388   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
28389   if (!SWIG_IsOK(ecode2)) {
28390     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_set_collapse_key" "', argument " "2"" of type '" "Xapian::valueno""'");
28391   }
28392   arg2 = static_cast< Xapian::valueno >(val2);
28393   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
28394   if (!SWIG_IsOK(ecode3)) {
28395     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_set_collapse_key" "', argument " "3"" of type '" "Xapian::doccount""'");
28396   }
28397   arg3 = static_cast< Xapian::doccount >(val3);
28398   {
28399     try {
28400       {
28401         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
28402         (arg1)->set_collapse_key(arg2,arg3);
28403         SWIG_PYTHON_THREAD_END_ALLOW;
28404       }
28405     } catch (...) {
28406       Xapian::SetPythonException();
28407       SWIG_fail;
28408     }
28409   }
28410   resultobj = SWIG_Py_Void();
28411   return resultobj;
28412 fail:
28413   return NULL;
28414 }
28415 
28416 
_wrap_Enquire_set_collapse_key__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)28417 SWIGINTERN PyObject *_wrap_Enquire_set_collapse_key__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28418   PyObject *resultobj = 0;
28419   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
28420   Xapian::valueno arg2 ;
28421   void *argp1 = 0 ;
28422   int res1 = 0 ;
28423   unsigned int val2 ;
28424   int ecode2 = 0 ;
28425 
28426   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28427   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
28428   if (!SWIG_IsOK(res1)) {
28429     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_collapse_key" "', argument " "1"" of type '" "Xapian::Enquire *""'");
28430   }
28431   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
28432   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
28433   if (!SWIG_IsOK(ecode2)) {
28434     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_set_collapse_key" "', argument " "2"" of type '" "Xapian::valueno""'");
28435   }
28436   arg2 = static_cast< Xapian::valueno >(val2);
28437   {
28438     try {
28439       {
28440         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
28441         (arg1)->set_collapse_key(arg2);
28442         SWIG_PYTHON_THREAD_END_ALLOW;
28443       }
28444     } catch (...) {
28445       Xapian::SetPythonException();
28446       SWIG_fail;
28447     }
28448   }
28449   resultobj = SWIG_Py_Void();
28450   return resultobj;
28451 fail:
28452   return NULL;
28453 }
28454 
28455 
_wrap_Enquire_set_collapse_key(PyObject * self,PyObject * args)28456 SWIGINTERN PyObject *_wrap_Enquire_set_collapse_key(PyObject *self, PyObject *args) {
28457   Py_ssize_t argc;
28458   PyObject *argv[4] = {
28459     0
28460   };
28461 
28462   if (!(argc = SWIG_Python_UnpackTuple(args,"Enquire_set_collapse_key",0,3,argv))) SWIG_fail;
28463   --argc;
28464   if (argc == 2) {
28465     return _wrap_Enquire_set_collapse_key__SWIG_1(self, argc, argv);
28466   }
28467   if (argc == 3) {
28468     return _wrap_Enquire_set_collapse_key__SWIG_0(self, argc, argv);
28469   }
28470 
28471 fail:
28472   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Enquire_set_collapse_key'.\n"
28473     "  Possible C/C++ prototypes are:\n"
28474     "    Xapian::Enquire::set_collapse_key(Xapian::valueno,Xapian::doccount)\n"
28475     "    Xapian::Enquire::set_collapse_key(Xapian::valueno)\n");
28476   return 0;
28477 }
28478 
28479 
_wrap_Enquire_set_docid_order(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28480 SWIGINTERN PyObject *_wrap_Enquire_set_docid_order(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28481   PyObject *resultobj = 0;
28482   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
28483   Xapian::Enquire::docid_order arg2 ;
28484   void *argp1 = 0 ;
28485   int res1 = 0 ;
28486   int val2 ;
28487   int ecode2 = 0 ;
28488   PyObject *swig_obj[2] ;
28489 
28490   if (!SWIG_Python_UnpackTuple(args,"Enquire_set_docid_order",2,2,swig_obj)) SWIG_fail;
28491   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
28492   if (!SWIG_IsOK(res1)) {
28493     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_docid_order" "', argument " "1"" of type '" "Xapian::Enquire *""'");
28494   }
28495   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
28496   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28497   if (!SWIG_IsOK(ecode2)) {
28498     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_set_docid_order" "', argument " "2"" of type '" "Xapian::Enquire::docid_order""'");
28499   }
28500   arg2 = static_cast< Xapian::Enquire::docid_order >(val2);
28501   {
28502     try {
28503       {
28504         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
28505         (arg1)->set_docid_order(arg2);
28506         SWIG_PYTHON_THREAD_END_ALLOW;
28507       }
28508     } catch (...) {
28509       Xapian::SetPythonException();
28510       SWIG_fail;
28511     }
28512   }
28513   resultobj = SWIG_Py_Void();
28514   return resultobj;
28515 fail:
28516   return NULL;
28517 }
28518 
28519 
_wrap_Enquire_set_cutoff__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)28520 SWIGINTERN PyObject *_wrap_Enquire_set_cutoff__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28521   PyObject *resultobj = 0;
28522   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
28523   int arg2 ;
28524   double arg3 ;
28525   void *argp1 = 0 ;
28526   int res1 = 0 ;
28527   int val2 ;
28528   int ecode2 = 0 ;
28529   double val3 ;
28530   int ecode3 = 0 ;
28531 
28532   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
28533   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
28534   if (!SWIG_IsOK(res1)) {
28535     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_cutoff" "', argument " "1"" of type '" "Xapian::Enquire *""'");
28536   }
28537   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
28538   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28539   if (!SWIG_IsOK(ecode2)) {
28540     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_set_cutoff" "', argument " "2"" of type '" "int""'");
28541   }
28542   arg2 = static_cast< int >(val2);
28543   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
28544   if (!SWIG_IsOK(ecode3)) {
28545     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_set_cutoff" "', argument " "3"" of type '" "double""'");
28546   }
28547   arg3 = static_cast< double >(val3);
28548   {
28549     try {
28550       {
28551         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
28552         (arg1)->set_cutoff(arg2,arg3);
28553         SWIG_PYTHON_THREAD_END_ALLOW;
28554       }
28555     } catch (...) {
28556       Xapian::SetPythonException();
28557       SWIG_fail;
28558     }
28559   }
28560   resultobj = SWIG_Py_Void();
28561   return resultobj;
28562 fail:
28563   return NULL;
28564 }
28565 
28566 
_wrap_Enquire_set_cutoff__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)28567 SWIGINTERN PyObject *_wrap_Enquire_set_cutoff__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28568   PyObject *resultobj = 0;
28569   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
28570   int arg2 ;
28571   void *argp1 = 0 ;
28572   int res1 = 0 ;
28573   int val2 ;
28574   int ecode2 = 0 ;
28575 
28576   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28577   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
28578   if (!SWIG_IsOK(res1)) {
28579     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_cutoff" "', argument " "1"" of type '" "Xapian::Enquire *""'");
28580   }
28581   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
28582   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28583   if (!SWIG_IsOK(ecode2)) {
28584     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_set_cutoff" "', argument " "2"" of type '" "int""'");
28585   }
28586   arg2 = static_cast< int >(val2);
28587   {
28588     try {
28589       {
28590         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
28591         (arg1)->set_cutoff(arg2);
28592         SWIG_PYTHON_THREAD_END_ALLOW;
28593       }
28594     } catch (...) {
28595       Xapian::SetPythonException();
28596       SWIG_fail;
28597     }
28598   }
28599   resultobj = SWIG_Py_Void();
28600   return resultobj;
28601 fail:
28602   return NULL;
28603 }
28604 
28605 
_wrap_Enquire_set_cutoff(PyObject * self,PyObject * args)28606 SWIGINTERN PyObject *_wrap_Enquire_set_cutoff(PyObject *self, PyObject *args) {
28607   Py_ssize_t argc;
28608   PyObject *argv[4] = {
28609     0
28610   };
28611 
28612   if (!(argc = SWIG_Python_UnpackTuple(args,"Enquire_set_cutoff",0,3,argv))) SWIG_fail;
28613   --argc;
28614   if (argc == 2) {
28615     return _wrap_Enquire_set_cutoff__SWIG_1(self, argc, argv);
28616   }
28617   if (argc == 3) {
28618     return _wrap_Enquire_set_cutoff__SWIG_0(self, argc, argv);
28619   }
28620 
28621 fail:
28622   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Enquire_set_cutoff'.\n"
28623     "  Possible C/C++ prototypes are:\n"
28624     "    Xapian::Enquire::set_cutoff(int,double)\n"
28625     "    Xapian::Enquire::set_cutoff(int)\n");
28626   return 0;
28627 }
28628 
28629 
_wrap_Enquire_set_sort_by_relevance(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28630 SWIGINTERN PyObject *_wrap_Enquire_set_sort_by_relevance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28631   PyObject *resultobj = 0;
28632   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
28633   void *argp1 = 0 ;
28634   int res1 = 0 ;
28635   PyObject *swig_obj[1] ;
28636 
28637   if (!args) SWIG_fail;
28638   swig_obj[0] = args;
28639   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
28640   if (!SWIG_IsOK(res1)) {
28641     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_sort_by_relevance" "', argument " "1"" of type '" "Xapian::Enquire *""'");
28642   }
28643   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
28644   {
28645     try {
28646       {
28647         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
28648         (arg1)->set_sort_by_relevance();
28649         SWIG_PYTHON_THREAD_END_ALLOW;
28650       }
28651     } catch (...) {
28652       Xapian::SetPythonException();
28653       SWIG_fail;
28654     }
28655   }
28656   resultobj = SWIG_Py_Void();
28657   return resultobj;
28658 fail:
28659   return NULL;
28660 }
28661 
28662 
_wrap_Enquire_set_sort_by_value(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28663 SWIGINTERN PyObject *_wrap_Enquire_set_sort_by_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28664   PyObject *resultobj = 0;
28665   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
28666   Xapian::valueno arg2 ;
28667   bool arg3 ;
28668   void *argp1 = 0 ;
28669   int res1 = 0 ;
28670   unsigned int val2 ;
28671   int ecode2 = 0 ;
28672   bool val3 ;
28673   int ecode3 = 0 ;
28674   PyObject *swig_obj[3] ;
28675 
28676   if (!SWIG_Python_UnpackTuple(args,"Enquire_set_sort_by_value",3,3,swig_obj)) SWIG_fail;
28677   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
28678   if (!SWIG_IsOK(res1)) {
28679     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_sort_by_value" "', argument " "1"" of type '" "Xapian::Enquire *""'");
28680   }
28681   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
28682   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
28683   if (!SWIG_IsOK(ecode2)) {
28684     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_set_sort_by_value" "', argument " "2"" of type '" "Xapian::valueno""'");
28685   }
28686   arg2 = static_cast< Xapian::valueno >(val2);
28687   ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
28688   if (!SWIG_IsOK(ecode3)) {
28689     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_set_sort_by_value" "', argument " "3"" of type '" "bool""'");
28690   }
28691   arg3 = static_cast< bool >(val3);
28692   {
28693     try {
28694       {
28695         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
28696         (arg1)->set_sort_by_value(arg2,arg3);
28697         SWIG_PYTHON_THREAD_END_ALLOW;
28698       }
28699     } catch (...) {
28700       Xapian::SetPythonException();
28701       SWIG_fail;
28702     }
28703   }
28704   resultobj = SWIG_Py_Void();
28705   return resultobj;
28706 fail:
28707   return NULL;
28708 }
28709 
28710 
_wrap_Enquire_set_sort_by_key(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28711 SWIGINTERN PyObject *_wrap_Enquire_set_sort_by_key(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28712   PyObject *resultobj = 0;
28713   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
28714   Xapian::KeyMaker *arg2 = (Xapian::KeyMaker *) 0 ;
28715   bool arg3 ;
28716   void *argp1 = 0 ;
28717   int res1 = 0 ;
28718   void *argp2 = 0 ;
28719   int res2 = 0 ;
28720   bool val3 ;
28721   int ecode3 = 0 ;
28722   PyObject *swig_obj[3] ;
28723 
28724   if (!SWIG_Python_UnpackTuple(args,"Enquire_set_sort_by_key",3,3,swig_obj)) SWIG_fail;
28725   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
28726   if (!SWIG_IsOK(res1)) {
28727     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_sort_by_key" "', argument " "1"" of type '" "Xapian::Enquire *""'");
28728   }
28729   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
28730   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Xapian__KeyMaker, 0 |  0 );
28731   if (!SWIG_IsOK(res2)) {
28732     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Enquire_set_sort_by_key" "', argument " "2"" of type '" "Xapian::KeyMaker *""'");
28733   }
28734   arg2 = reinterpret_cast< Xapian::KeyMaker * >(argp2);
28735   ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
28736   if (!SWIG_IsOK(ecode3)) {
28737     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_set_sort_by_key" "', argument " "3"" of type '" "bool""'");
28738   }
28739   arg3 = static_cast< bool >(val3);
28740   {
28741     try {
28742       {
28743         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
28744         (arg1)->set_sort_by_key(arg2,arg3);
28745         SWIG_PYTHON_THREAD_END_ALLOW;
28746       }
28747     } catch (...) {
28748       Xapian::SetPythonException();
28749       SWIG_fail;
28750     }
28751   }
28752   resultobj = SWIG_Py_Void();
28753   return resultobj;
28754 fail:
28755   return NULL;
28756 }
28757 
28758 
_wrap_Enquire_set_sort_by_value_then_relevance(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28759 SWIGINTERN PyObject *_wrap_Enquire_set_sort_by_value_then_relevance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28760   PyObject *resultobj = 0;
28761   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
28762   Xapian::valueno arg2 ;
28763   bool arg3 ;
28764   void *argp1 = 0 ;
28765   int res1 = 0 ;
28766   unsigned int val2 ;
28767   int ecode2 = 0 ;
28768   bool val3 ;
28769   int ecode3 = 0 ;
28770   PyObject *swig_obj[3] ;
28771 
28772   if (!SWIG_Python_UnpackTuple(args,"Enquire_set_sort_by_value_then_relevance",3,3,swig_obj)) SWIG_fail;
28773   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
28774   if (!SWIG_IsOK(res1)) {
28775     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_sort_by_value_then_relevance" "', argument " "1"" of type '" "Xapian::Enquire *""'");
28776   }
28777   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
28778   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
28779   if (!SWIG_IsOK(ecode2)) {
28780     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_set_sort_by_value_then_relevance" "', argument " "2"" of type '" "Xapian::valueno""'");
28781   }
28782   arg2 = static_cast< Xapian::valueno >(val2);
28783   ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
28784   if (!SWIG_IsOK(ecode3)) {
28785     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_set_sort_by_value_then_relevance" "', argument " "3"" of type '" "bool""'");
28786   }
28787   arg3 = static_cast< bool >(val3);
28788   {
28789     try {
28790       {
28791         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
28792         (arg1)->set_sort_by_value_then_relevance(arg2,arg3);
28793         SWIG_PYTHON_THREAD_END_ALLOW;
28794       }
28795     } catch (...) {
28796       Xapian::SetPythonException();
28797       SWIG_fail;
28798     }
28799   }
28800   resultobj = SWIG_Py_Void();
28801   return resultobj;
28802 fail:
28803   return NULL;
28804 }
28805 
28806 
_wrap_Enquire_set_sort_by_key_then_relevance(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28807 SWIGINTERN PyObject *_wrap_Enquire_set_sort_by_key_then_relevance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28808   PyObject *resultobj = 0;
28809   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
28810   Xapian::KeyMaker *arg2 = (Xapian::KeyMaker *) 0 ;
28811   bool arg3 ;
28812   void *argp1 = 0 ;
28813   int res1 = 0 ;
28814   void *argp2 = 0 ;
28815   int res2 = 0 ;
28816   bool val3 ;
28817   int ecode3 = 0 ;
28818   PyObject *swig_obj[3] ;
28819 
28820   if (!SWIG_Python_UnpackTuple(args,"Enquire_set_sort_by_key_then_relevance",3,3,swig_obj)) SWIG_fail;
28821   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
28822   if (!SWIG_IsOK(res1)) {
28823     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_sort_by_key_then_relevance" "', argument " "1"" of type '" "Xapian::Enquire *""'");
28824   }
28825   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
28826   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Xapian__KeyMaker, 0 |  0 );
28827   if (!SWIG_IsOK(res2)) {
28828     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Enquire_set_sort_by_key_then_relevance" "', argument " "2"" of type '" "Xapian::KeyMaker *""'");
28829   }
28830   arg2 = reinterpret_cast< Xapian::KeyMaker * >(argp2);
28831   ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
28832   if (!SWIG_IsOK(ecode3)) {
28833     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_set_sort_by_key_then_relevance" "', argument " "3"" of type '" "bool""'");
28834   }
28835   arg3 = static_cast< bool >(val3);
28836   {
28837     try {
28838       {
28839         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
28840         (arg1)->set_sort_by_key_then_relevance(arg2,arg3);
28841         SWIG_PYTHON_THREAD_END_ALLOW;
28842       }
28843     } catch (...) {
28844       Xapian::SetPythonException();
28845       SWIG_fail;
28846     }
28847   }
28848   resultobj = SWIG_Py_Void();
28849   return resultobj;
28850 fail:
28851   return NULL;
28852 }
28853 
28854 
_wrap_Enquire_set_sort_by_relevance_then_value(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28855 SWIGINTERN PyObject *_wrap_Enquire_set_sort_by_relevance_then_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28856   PyObject *resultobj = 0;
28857   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
28858   Xapian::valueno arg2 ;
28859   bool arg3 ;
28860   void *argp1 = 0 ;
28861   int res1 = 0 ;
28862   unsigned int val2 ;
28863   int ecode2 = 0 ;
28864   bool val3 ;
28865   int ecode3 = 0 ;
28866   PyObject *swig_obj[3] ;
28867 
28868   if (!SWIG_Python_UnpackTuple(args,"Enquire_set_sort_by_relevance_then_value",3,3,swig_obj)) SWIG_fail;
28869   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
28870   if (!SWIG_IsOK(res1)) {
28871     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_sort_by_relevance_then_value" "', argument " "1"" of type '" "Xapian::Enquire *""'");
28872   }
28873   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
28874   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
28875   if (!SWIG_IsOK(ecode2)) {
28876     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_set_sort_by_relevance_then_value" "', argument " "2"" of type '" "Xapian::valueno""'");
28877   }
28878   arg2 = static_cast< Xapian::valueno >(val2);
28879   ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
28880   if (!SWIG_IsOK(ecode3)) {
28881     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_set_sort_by_relevance_then_value" "', argument " "3"" of type '" "bool""'");
28882   }
28883   arg3 = static_cast< bool >(val3);
28884   {
28885     try {
28886       {
28887         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
28888         (arg1)->set_sort_by_relevance_then_value(arg2,arg3);
28889         SWIG_PYTHON_THREAD_END_ALLOW;
28890       }
28891     } catch (...) {
28892       Xapian::SetPythonException();
28893       SWIG_fail;
28894     }
28895   }
28896   resultobj = SWIG_Py_Void();
28897   return resultobj;
28898 fail:
28899   return NULL;
28900 }
28901 
28902 
_wrap_Enquire_set_sort_by_relevance_then_key(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28903 SWIGINTERN PyObject *_wrap_Enquire_set_sort_by_relevance_then_key(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28904   PyObject *resultobj = 0;
28905   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
28906   Xapian::KeyMaker *arg2 = (Xapian::KeyMaker *) 0 ;
28907   bool arg3 ;
28908   void *argp1 = 0 ;
28909   int res1 = 0 ;
28910   void *argp2 = 0 ;
28911   int res2 = 0 ;
28912   bool val3 ;
28913   int ecode3 = 0 ;
28914   PyObject *swig_obj[3] ;
28915 
28916   if (!SWIG_Python_UnpackTuple(args,"Enquire_set_sort_by_relevance_then_key",3,3,swig_obj)) SWIG_fail;
28917   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
28918   if (!SWIG_IsOK(res1)) {
28919     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_sort_by_relevance_then_key" "', argument " "1"" of type '" "Xapian::Enquire *""'");
28920   }
28921   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
28922   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Xapian__KeyMaker, 0 |  0 );
28923   if (!SWIG_IsOK(res2)) {
28924     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Enquire_set_sort_by_relevance_then_key" "', argument " "2"" of type '" "Xapian::KeyMaker *""'");
28925   }
28926   arg2 = reinterpret_cast< Xapian::KeyMaker * >(argp2);
28927   ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
28928   if (!SWIG_IsOK(ecode3)) {
28929     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_set_sort_by_relevance_then_key" "', argument " "3"" of type '" "bool""'");
28930   }
28931   arg3 = static_cast< bool >(val3);
28932   {
28933     try {
28934       {
28935         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
28936         (arg1)->set_sort_by_relevance_then_key(arg2,arg3);
28937         SWIG_PYTHON_THREAD_END_ALLOW;
28938       }
28939     } catch (...) {
28940       Xapian::SetPythonException();
28941       SWIG_fail;
28942     }
28943   }
28944   resultobj = SWIG_Py_Void();
28945   return resultobj;
28946 fail:
28947   return NULL;
28948 }
28949 
28950 
_wrap_Enquire_set_time_limit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28951 SWIGINTERN PyObject *_wrap_Enquire_set_time_limit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28952   PyObject *resultobj = 0;
28953   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
28954   double arg2 ;
28955   void *argp1 = 0 ;
28956   int res1 = 0 ;
28957   double val2 ;
28958   int ecode2 = 0 ;
28959   PyObject *swig_obj[2] ;
28960 
28961   if (!SWIG_Python_UnpackTuple(args,"Enquire_set_time_limit",2,2,swig_obj)) SWIG_fail;
28962   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
28963   if (!SWIG_IsOK(res1)) {
28964     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_time_limit" "', argument " "1"" of type '" "Xapian::Enquire *""'");
28965   }
28966   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
28967   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
28968   if (!SWIG_IsOK(ecode2)) {
28969     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_set_time_limit" "', argument " "2"" of type '" "double""'");
28970   }
28971   arg2 = static_cast< double >(val2);
28972   {
28973     try {
28974       {
28975         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
28976         (arg1)->set_time_limit(arg2);
28977         SWIG_PYTHON_THREAD_END_ALLOW;
28978       }
28979     } catch (...) {
28980       Xapian::SetPythonException();
28981       SWIG_fail;
28982     }
28983   }
28984   resultobj = SWIG_Py_Void();
28985   return resultobj;
28986 fail:
28987   return NULL;
28988 }
28989 
28990 
_wrap_Enquire_get_mset__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)28991 SWIGINTERN PyObject *_wrap_Enquire_get_mset__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28992   PyObject *resultobj = 0;
28993   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
28994   Xapian::doccount arg2 ;
28995   Xapian::doccount arg3 ;
28996   Xapian::doccount arg4 ;
28997   Xapian::RSet *arg5 = (Xapian::RSet *) 0 ;
28998   Xapian::MatchDecider *arg6 = (Xapian::MatchDecider *) 0 ;
28999   void *argp1 = 0 ;
29000   int res1 = 0 ;
29001   unsigned int val2 ;
29002   int ecode2 = 0 ;
29003   unsigned int val3 ;
29004   int ecode3 = 0 ;
29005   unsigned int val4 ;
29006   int ecode4 = 0 ;
29007   void *argp5 = 0 ;
29008   int res5 = 0 ;
29009   void *argp6 = 0 ;
29010   int res6 = 0 ;
29011   Xapian::MSet result;
29012 
29013   if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
29014   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
29015   if (!SWIG_IsOK(res1)) {
29016     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_mset" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
29017   }
29018   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
29019   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
29020   if (!SWIG_IsOK(ecode2)) {
29021     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_get_mset" "', argument " "2"" of type '" "Xapian::doccount""'");
29022   }
29023   arg2 = static_cast< Xapian::doccount >(val2);
29024   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
29025   if (!SWIG_IsOK(ecode3)) {
29026     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_get_mset" "', argument " "3"" of type '" "Xapian::doccount""'");
29027   }
29028   arg3 = static_cast< Xapian::doccount >(val3);
29029   ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4);
29030   if (!SWIG_IsOK(ecode4)) {
29031     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Enquire_get_mset" "', argument " "4"" of type '" "Xapian::doccount""'");
29032   }
29033   arg4 = static_cast< Xapian::doccount >(val4);
29034   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_Xapian__RSet, 0 |  0 );
29035   if (!SWIG_IsOK(res5)) {
29036     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Enquire_get_mset" "', argument " "5"" of type '" "Xapian::RSet const *""'");
29037   }
29038   arg5 = reinterpret_cast< Xapian::RSet * >(argp5);
29039   res6 = SWIG_ConvertPtr(swig_obj[5], &argp6,SWIGTYPE_p_Xapian__MatchDecider, 0 |  0 );
29040   if (!SWIG_IsOK(res6)) {
29041     SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "Enquire_get_mset" "', argument " "6"" of type '" "Xapian::MatchDecider const *""'");
29042   }
29043   arg6 = reinterpret_cast< Xapian::MatchDecider * >(argp6);
29044   {
29045     try {
29046       {
29047         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
29048         result = ((Xapian::Enquire const *)arg1)->get_mset(arg2,arg3,arg4,(Xapian::RSet const *)arg5,(Xapian::MatchDecider const *)arg6);
29049         SWIG_PYTHON_THREAD_END_ALLOW;
29050       }
29051     } catch (...) {
29052       Xapian::SetPythonException();
29053       SWIG_fail;
29054     }
29055   }
29056   resultobj = SWIG_NewPointerObj((new Xapian::MSet(static_cast< const Xapian::MSet& >(result))), SWIGTYPE_p_Xapian__MSet, SWIG_POINTER_OWN |  0 );
29057   return resultobj;
29058 fail:
29059   return NULL;
29060 }
29061 
29062 
_wrap_Enquire_get_mset__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)29063 SWIGINTERN PyObject *_wrap_Enquire_get_mset__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29064   PyObject *resultobj = 0;
29065   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
29066   Xapian::doccount arg2 ;
29067   Xapian::doccount arg3 ;
29068   Xapian::doccount arg4 ;
29069   Xapian::RSet *arg5 = (Xapian::RSet *) 0 ;
29070   void *argp1 = 0 ;
29071   int res1 = 0 ;
29072   unsigned int val2 ;
29073   int ecode2 = 0 ;
29074   unsigned int val3 ;
29075   int ecode3 = 0 ;
29076   unsigned int val4 ;
29077   int ecode4 = 0 ;
29078   void *argp5 = 0 ;
29079   int res5 = 0 ;
29080   Xapian::MSet result;
29081 
29082   if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
29083   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
29084   if (!SWIG_IsOK(res1)) {
29085     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_mset" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
29086   }
29087   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
29088   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
29089   if (!SWIG_IsOK(ecode2)) {
29090     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_get_mset" "', argument " "2"" of type '" "Xapian::doccount""'");
29091   }
29092   arg2 = static_cast< Xapian::doccount >(val2);
29093   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
29094   if (!SWIG_IsOK(ecode3)) {
29095     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_get_mset" "', argument " "3"" of type '" "Xapian::doccount""'");
29096   }
29097   arg3 = static_cast< Xapian::doccount >(val3);
29098   ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4);
29099   if (!SWIG_IsOK(ecode4)) {
29100     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Enquire_get_mset" "', argument " "4"" of type '" "Xapian::doccount""'");
29101   }
29102   arg4 = static_cast< Xapian::doccount >(val4);
29103   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_Xapian__RSet, 0 |  0 );
29104   if (!SWIG_IsOK(res5)) {
29105     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Enquire_get_mset" "', argument " "5"" of type '" "Xapian::RSet const *""'");
29106   }
29107   arg5 = reinterpret_cast< Xapian::RSet * >(argp5);
29108   {
29109     try {
29110       {
29111         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
29112         result = ((Xapian::Enquire const *)arg1)->get_mset(arg2,arg3,arg4,(Xapian::RSet const *)arg5);
29113         SWIG_PYTHON_THREAD_END_ALLOW;
29114       }
29115     } catch (...) {
29116       Xapian::SetPythonException();
29117       SWIG_fail;
29118     }
29119   }
29120   resultobj = SWIG_NewPointerObj((new Xapian::MSet(static_cast< const Xapian::MSet& >(result))), SWIGTYPE_p_Xapian__MSet, SWIG_POINTER_OWN |  0 );
29121   return resultobj;
29122 fail:
29123   return NULL;
29124 }
29125 
29126 
_wrap_Enquire_get_mset__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)29127 SWIGINTERN PyObject *_wrap_Enquire_get_mset__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29128   PyObject *resultobj = 0;
29129   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
29130   Xapian::doccount arg2 ;
29131   Xapian::doccount arg3 ;
29132   Xapian::doccount arg4 ;
29133   void *argp1 = 0 ;
29134   int res1 = 0 ;
29135   unsigned int val2 ;
29136   int ecode2 = 0 ;
29137   unsigned int val3 ;
29138   int ecode3 = 0 ;
29139   unsigned int val4 ;
29140   int ecode4 = 0 ;
29141   Xapian::MSet result;
29142 
29143   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
29144   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
29145   if (!SWIG_IsOK(res1)) {
29146     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_mset" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
29147   }
29148   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
29149   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
29150   if (!SWIG_IsOK(ecode2)) {
29151     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_get_mset" "', argument " "2"" of type '" "Xapian::doccount""'");
29152   }
29153   arg2 = static_cast< Xapian::doccount >(val2);
29154   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
29155   if (!SWIG_IsOK(ecode3)) {
29156     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_get_mset" "', argument " "3"" of type '" "Xapian::doccount""'");
29157   }
29158   arg3 = static_cast< Xapian::doccount >(val3);
29159   ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4);
29160   if (!SWIG_IsOK(ecode4)) {
29161     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Enquire_get_mset" "', argument " "4"" of type '" "Xapian::doccount""'");
29162   }
29163   arg4 = static_cast< Xapian::doccount >(val4);
29164   {
29165     try {
29166       {
29167         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
29168         result = ((Xapian::Enquire const *)arg1)->get_mset(arg2,arg3,arg4);
29169         SWIG_PYTHON_THREAD_END_ALLOW;
29170       }
29171     } catch (...) {
29172       Xapian::SetPythonException();
29173       SWIG_fail;
29174     }
29175   }
29176   resultobj = SWIG_NewPointerObj((new Xapian::MSet(static_cast< const Xapian::MSet& >(result))), SWIGTYPE_p_Xapian__MSet, SWIG_POINTER_OWN |  0 );
29177   return resultobj;
29178 fail:
29179   return NULL;
29180 }
29181 
29182 
_wrap_Enquire_get_mset__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)29183 SWIGINTERN PyObject *_wrap_Enquire_get_mset__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29184   PyObject *resultobj = 0;
29185   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
29186   Xapian::doccount arg2 ;
29187   Xapian::doccount arg3 ;
29188   void *argp1 = 0 ;
29189   int res1 = 0 ;
29190   unsigned int val2 ;
29191   int ecode2 = 0 ;
29192   unsigned int val3 ;
29193   int ecode3 = 0 ;
29194   Xapian::MSet result;
29195 
29196   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
29197   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
29198   if (!SWIG_IsOK(res1)) {
29199     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_mset" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
29200   }
29201   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
29202   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
29203   if (!SWIG_IsOK(ecode2)) {
29204     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_get_mset" "', argument " "2"" of type '" "Xapian::doccount""'");
29205   }
29206   arg2 = static_cast< Xapian::doccount >(val2);
29207   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
29208   if (!SWIG_IsOK(ecode3)) {
29209     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_get_mset" "', argument " "3"" of type '" "Xapian::doccount""'");
29210   }
29211   arg3 = static_cast< Xapian::doccount >(val3);
29212   {
29213     try {
29214       {
29215         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
29216         result = ((Xapian::Enquire const *)arg1)->get_mset(arg2,arg3);
29217         SWIG_PYTHON_THREAD_END_ALLOW;
29218       }
29219     } catch (...) {
29220       Xapian::SetPythonException();
29221       SWIG_fail;
29222     }
29223   }
29224   resultobj = SWIG_NewPointerObj((new Xapian::MSet(static_cast< const Xapian::MSet& >(result))), SWIGTYPE_p_Xapian__MSet, SWIG_POINTER_OWN |  0 );
29225   return resultobj;
29226 fail:
29227   return NULL;
29228 }
29229 
29230 
_wrap_Enquire_get_mset__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)29231 SWIGINTERN PyObject *_wrap_Enquire_get_mset__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29232   PyObject *resultobj = 0;
29233   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
29234   Xapian::doccount arg2 ;
29235   Xapian::doccount arg3 ;
29236   Xapian::RSet *arg4 = (Xapian::RSet *) 0 ;
29237   Xapian::MatchDecider *arg5 = (Xapian::MatchDecider *) 0 ;
29238   void *argp1 = 0 ;
29239   int res1 = 0 ;
29240   unsigned int val2 ;
29241   int ecode2 = 0 ;
29242   unsigned int val3 ;
29243   int ecode3 = 0 ;
29244   void *argp4 = 0 ;
29245   int res4 = 0 ;
29246   void *argp5 = 0 ;
29247   int res5 = 0 ;
29248   Xapian::MSet result;
29249 
29250   if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
29251   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
29252   if (!SWIG_IsOK(res1)) {
29253     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_mset" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
29254   }
29255   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
29256   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
29257   if (!SWIG_IsOK(ecode2)) {
29258     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_get_mset" "', argument " "2"" of type '" "Xapian::doccount""'");
29259   }
29260   arg2 = static_cast< Xapian::doccount >(val2);
29261   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
29262   if (!SWIG_IsOK(ecode3)) {
29263     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_get_mset" "', argument " "3"" of type '" "Xapian::doccount""'");
29264   }
29265   arg3 = static_cast< Xapian::doccount >(val3);
29266   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_Xapian__RSet, 0 |  0 );
29267   if (!SWIG_IsOK(res4)) {
29268     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Enquire_get_mset" "', argument " "4"" of type '" "Xapian::RSet const *""'");
29269   }
29270   arg4 = reinterpret_cast< Xapian::RSet * >(argp4);
29271   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_Xapian__MatchDecider, 0 |  0 );
29272   if (!SWIG_IsOK(res5)) {
29273     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Enquire_get_mset" "', argument " "5"" of type '" "Xapian::MatchDecider const *""'");
29274   }
29275   arg5 = reinterpret_cast< Xapian::MatchDecider * >(argp5);
29276   {
29277     try {
29278       {
29279         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
29280         result = ((Xapian::Enquire const *)arg1)->get_mset(arg2,arg3,(Xapian::RSet const *)arg4,(Xapian::MatchDecider const *)arg5);
29281         SWIG_PYTHON_THREAD_END_ALLOW;
29282       }
29283     } catch (...) {
29284       Xapian::SetPythonException();
29285       SWIG_fail;
29286     }
29287   }
29288   resultobj = SWIG_NewPointerObj((new Xapian::MSet(static_cast< const Xapian::MSet& >(result))), SWIGTYPE_p_Xapian__MSet, SWIG_POINTER_OWN |  0 );
29289   return resultobj;
29290 fail:
29291   return NULL;
29292 }
29293 
29294 
_wrap_Enquire_get_mset__SWIG_5(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)29295 SWIGINTERN PyObject *_wrap_Enquire_get_mset__SWIG_5(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29296   PyObject *resultobj = 0;
29297   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
29298   Xapian::doccount arg2 ;
29299   Xapian::doccount arg3 ;
29300   Xapian::RSet *arg4 = (Xapian::RSet *) 0 ;
29301   void *argp1 = 0 ;
29302   int res1 = 0 ;
29303   unsigned int val2 ;
29304   int ecode2 = 0 ;
29305   unsigned int val3 ;
29306   int ecode3 = 0 ;
29307   void *argp4 = 0 ;
29308   int res4 = 0 ;
29309   Xapian::MSet result;
29310 
29311   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
29312   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
29313   if (!SWIG_IsOK(res1)) {
29314     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_mset" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
29315   }
29316   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
29317   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
29318   if (!SWIG_IsOK(ecode2)) {
29319     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_get_mset" "', argument " "2"" of type '" "Xapian::doccount""'");
29320   }
29321   arg2 = static_cast< Xapian::doccount >(val2);
29322   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
29323   if (!SWIG_IsOK(ecode3)) {
29324     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_get_mset" "', argument " "3"" of type '" "Xapian::doccount""'");
29325   }
29326   arg3 = static_cast< Xapian::doccount >(val3);
29327   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_Xapian__RSet, 0 |  0 );
29328   if (!SWIG_IsOK(res4)) {
29329     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Enquire_get_mset" "', argument " "4"" of type '" "Xapian::RSet const *""'");
29330   }
29331   arg4 = reinterpret_cast< Xapian::RSet * >(argp4);
29332   {
29333     try {
29334       {
29335         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
29336         result = ((Xapian::Enquire const *)arg1)->get_mset(arg2,arg3,(Xapian::RSet const *)arg4);
29337         SWIG_PYTHON_THREAD_END_ALLOW;
29338       }
29339     } catch (...) {
29340       Xapian::SetPythonException();
29341       SWIG_fail;
29342     }
29343   }
29344   resultobj = SWIG_NewPointerObj((new Xapian::MSet(static_cast< const Xapian::MSet& >(result))), SWIGTYPE_p_Xapian__MSet, SWIG_POINTER_OWN |  0 );
29345   return resultobj;
29346 fail:
29347   return NULL;
29348 }
29349 
29350 
_wrap_Enquire_get_mset(PyObject * self,PyObject * args)29351 SWIGINTERN PyObject *_wrap_Enquire_get_mset(PyObject *self, PyObject *args) {
29352   Py_ssize_t argc;
29353   PyObject *argv[7] = {
29354     0
29355   };
29356 
29357   if (!(argc = SWIG_Python_UnpackTuple(args,"Enquire_get_mset",0,6,argv))) SWIG_fail;
29358   --argc;
29359   if (argc == 3) {
29360     return _wrap_Enquire_get_mset__SWIG_3(self, argc, argv);
29361   }
29362   if (argc == 4) {
29363     int _v = 0;
29364     {
29365       void *vptr = 0;
29366       int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_Xapian__RSet, 0);
29367       _v = SWIG_CheckState(res);
29368     }
29369     if (!_v) goto check_2;
29370     return _wrap_Enquire_get_mset__SWIG_5(self, argc, argv);
29371   }
29372 check_2:
29373 
29374   if (argc == 4) {
29375     return _wrap_Enquire_get_mset__SWIG_2(self, argc, argv);
29376   }
29377   if (argc == 5) {
29378     int _v = 0;
29379     {
29380       void *vptr = 0;
29381       int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_Xapian__RSet, 0);
29382       _v = SWIG_CheckState(res);
29383     }
29384     if (!_v) goto check_4;
29385     {
29386       void *vptr = 0;
29387       int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_Xapian__MatchDecider, 0);
29388       _v = SWIG_CheckState(res);
29389     }
29390     if (!_v) goto check_4;
29391     return _wrap_Enquire_get_mset__SWIG_4(self, argc, argv);
29392   }
29393 check_4:
29394 
29395   if (argc == 5) {
29396     return _wrap_Enquire_get_mset__SWIG_1(self, argc, argv);
29397   }
29398   if (argc == 6) {
29399     return _wrap_Enquire_get_mset__SWIG_0(self, argc, argv);
29400   }
29401 
29402 fail:
29403   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Enquire_get_mset'.\n"
29404     "  Possible C/C++ prototypes are:\n"
29405     "    Xapian::Enquire::get_mset(Xapian::doccount,Xapian::doccount,Xapian::doccount,Xapian::RSet const *,Xapian::MatchDecider const *) const\n"
29406     "    Xapian::Enquire::get_mset(Xapian::doccount,Xapian::doccount,Xapian::doccount,Xapian::RSet const *) const\n"
29407     "    Xapian::Enquire::get_mset(Xapian::doccount,Xapian::doccount,Xapian::doccount) const\n"
29408     "    Xapian::Enquire::get_mset(Xapian::doccount,Xapian::doccount) const\n"
29409     "    Xapian::Enquire::get_mset(Xapian::doccount,Xapian::doccount,Xapian::RSet const *,Xapian::MatchDecider const *) const\n"
29410     "    Xapian::Enquire::get_mset(Xapian::doccount,Xapian::doccount,Xapian::RSet const *) const\n");
29411   return 0;
29412 }
29413 
29414 
_wrap_Enquire_get_eset__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)29415 SWIGINTERN PyObject *_wrap_Enquire_get_eset__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29416   PyObject *resultobj = 0;
29417   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
29418   Xapian::termcount arg2 ;
29419   Xapian::RSet *arg3 = 0 ;
29420   int arg4 ;
29421   Xapian::ExpandDecider *arg5 = (Xapian::ExpandDecider *) 0 ;
29422   double arg6 ;
29423   void *argp1 = 0 ;
29424   int res1 = 0 ;
29425   unsigned int val2 ;
29426   int ecode2 = 0 ;
29427   void *argp3 = 0 ;
29428   int res3 = 0 ;
29429   int val4 ;
29430   int ecode4 = 0 ;
29431   void *argp5 = 0 ;
29432   int res5 = 0 ;
29433   double val6 ;
29434   int ecode6 = 0 ;
29435   Xapian::ESet result;
29436 
29437   if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
29438   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
29439   if (!SWIG_IsOK(res1)) {
29440     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_eset" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
29441   }
29442   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
29443   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
29444   if (!SWIG_IsOK(ecode2)) {
29445     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_get_eset" "', argument " "2"" of type '" "Xapian::termcount""'");
29446   }
29447   arg2 = static_cast< Xapian::termcount >(val2);
29448   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Xapian__RSet,  0  | 0);
29449   if (!SWIG_IsOK(res3)) {
29450     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
29451   }
29452   if (!argp3) {
29453     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
29454   }
29455   arg3 = reinterpret_cast< Xapian::RSet * >(argp3);
29456   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
29457   if (!SWIG_IsOK(ecode4)) {
29458     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Enquire_get_eset" "', argument " "4"" of type '" "int""'");
29459   }
29460   arg4 = static_cast< int >(val4);
29461   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_Xapian__ExpandDecider, 0 |  0 );
29462   if (!SWIG_IsOK(res5)) {
29463     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Enquire_get_eset" "', argument " "5"" of type '" "Xapian::ExpandDecider const *""'");
29464   }
29465   arg5 = reinterpret_cast< Xapian::ExpandDecider * >(argp5);
29466   ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
29467   if (!SWIG_IsOK(ecode6)) {
29468     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Enquire_get_eset" "', argument " "6"" of type '" "double""'");
29469   }
29470   arg6 = static_cast< double >(val6);
29471   {
29472     try {
29473       {
29474         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
29475         result = ((Xapian::Enquire const *)arg1)->get_eset(arg2,(Xapian::RSet const &)*arg3,arg4,(Xapian::ExpandDecider const *)arg5,arg6);
29476         SWIG_PYTHON_THREAD_END_ALLOW;
29477       }
29478     } catch (...) {
29479       Xapian::SetPythonException();
29480       SWIG_fail;
29481     }
29482   }
29483   resultobj = SWIG_NewPointerObj((new Xapian::ESet(static_cast< const Xapian::ESet& >(result))), SWIGTYPE_p_Xapian__ESet, SWIG_POINTER_OWN |  0 );
29484   return resultobj;
29485 fail:
29486   return NULL;
29487 }
29488 
29489 
_wrap_Enquire_get_eset__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)29490 SWIGINTERN PyObject *_wrap_Enquire_get_eset__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29491   PyObject *resultobj = 0;
29492   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
29493   Xapian::termcount arg2 ;
29494   Xapian::RSet *arg3 = 0 ;
29495   int arg4 ;
29496   Xapian::ExpandDecider *arg5 = (Xapian::ExpandDecider *) 0 ;
29497   void *argp1 = 0 ;
29498   int res1 = 0 ;
29499   unsigned int val2 ;
29500   int ecode2 = 0 ;
29501   void *argp3 = 0 ;
29502   int res3 = 0 ;
29503   int val4 ;
29504   int ecode4 = 0 ;
29505   void *argp5 = 0 ;
29506   int res5 = 0 ;
29507   Xapian::ESet result;
29508 
29509   if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
29510   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
29511   if (!SWIG_IsOK(res1)) {
29512     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_eset" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
29513   }
29514   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
29515   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
29516   if (!SWIG_IsOK(ecode2)) {
29517     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_get_eset" "', argument " "2"" of type '" "Xapian::termcount""'");
29518   }
29519   arg2 = static_cast< Xapian::termcount >(val2);
29520   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Xapian__RSet,  0  | 0);
29521   if (!SWIG_IsOK(res3)) {
29522     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
29523   }
29524   if (!argp3) {
29525     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
29526   }
29527   arg3 = reinterpret_cast< Xapian::RSet * >(argp3);
29528   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
29529   if (!SWIG_IsOK(ecode4)) {
29530     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Enquire_get_eset" "', argument " "4"" of type '" "int""'");
29531   }
29532   arg4 = static_cast< int >(val4);
29533   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_Xapian__ExpandDecider, 0 |  0 );
29534   if (!SWIG_IsOK(res5)) {
29535     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Enquire_get_eset" "', argument " "5"" of type '" "Xapian::ExpandDecider const *""'");
29536   }
29537   arg5 = reinterpret_cast< Xapian::ExpandDecider * >(argp5);
29538   {
29539     try {
29540       {
29541         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
29542         result = ((Xapian::Enquire const *)arg1)->get_eset(arg2,(Xapian::RSet const &)*arg3,arg4,(Xapian::ExpandDecider const *)arg5);
29543         SWIG_PYTHON_THREAD_END_ALLOW;
29544       }
29545     } catch (...) {
29546       Xapian::SetPythonException();
29547       SWIG_fail;
29548     }
29549   }
29550   resultobj = SWIG_NewPointerObj((new Xapian::ESet(static_cast< const Xapian::ESet& >(result))), SWIGTYPE_p_Xapian__ESet, SWIG_POINTER_OWN |  0 );
29551   return resultobj;
29552 fail:
29553   return NULL;
29554 }
29555 
29556 
_wrap_Enquire_get_eset__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)29557 SWIGINTERN PyObject *_wrap_Enquire_get_eset__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29558   PyObject *resultobj = 0;
29559   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
29560   Xapian::termcount arg2 ;
29561   Xapian::RSet *arg3 = 0 ;
29562   int arg4 ;
29563   void *argp1 = 0 ;
29564   int res1 = 0 ;
29565   unsigned int val2 ;
29566   int ecode2 = 0 ;
29567   void *argp3 = 0 ;
29568   int res3 = 0 ;
29569   int val4 ;
29570   int ecode4 = 0 ;
29571   Xapian::ESet result;
29572 
29573   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
29574   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
29575   if (!SWIG_IsOK(res1)) {
29576     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_eset" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
29577   }
29578   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
29579   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
29580   if (!SWIG_IsOK(ecode2)) {
29581     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_get_eset" "', argument " "2"" of type '" "Xapian::termcount""'");
29582   }
29583   arg2 = static_cast< Xapian::termcount >(val2);
29584   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Xapian__RSet,  0  | 0);
29585   if (!SWIG_IsOK(res3)) {
29586     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
29587   }
29588   if (!argp3) {
29589     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
29590   }
29591   arg3 = reinterpret_cast< Xapian::RSet * >(argp3);
29592   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
29593   if (!SWIG_IsOK(ecode4)) {
29594     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Enquire_get_eset" "', argument " "4"" of type '" "int""'");
29595   }
29596   arg4 = static_cast< int >(val4);
29597   {
29598     try {
29599       {
29600         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
29601         result = ((Xapian::Enquire const *)arg1)->get_eset(arg2,(Xapian::RSet const &)*arg3,arg4);
29602         SWIG_PYTHON_THREAD_END_ALLOW;
29603       }
29604     } catch (...) {
29605       Xapian::SetPythonException();
29606       SWIG_fail;
29607     }
29608   }
29609   resultobj = SWIG_NewPointerObj((new Xapian::ESet(static_cast< const Xapian::ESet& >(result))), SWIGTYPE_p_Xapian__ESet, SWIG_POINTER_OWN |  0 );
29610   return resultobj;
29611 fail:
29612   return NULL;
29613 }
29614 
29615 
_wrap_Enquire_get_eset__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)29616 SWIGINTERN PyObject *_wrap_Enquire_get_eset__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29617   PyObject *resultobj = 0;
29618   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
29619   Xapian::termcount arg2 ;
29620   Xapian::RSet *arg3 = 0 ;
29621   void *argp1 = 0 ;
29622   int res1 = 0 ;
29623   unsigned int val2 ;
29624   int ecode2 = 0 ;
29625   void *argp3 = 0 ;
29626   int res3 = 0 ;
29627   Xapian::ESet result;
29628 
29629   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
29630   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
29631   if (!SWIG_IsOK(res1)) {
29632     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_eset" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
29633   }
29634   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
29635   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
29636   if (!SWIG_IsOK(ecode2)) {
29637     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_get_eset" "', argument " "2"" of type '" "Xapian::termcount""'");
29638   }
29639   arg2 = static_cast< Xapian::termcount >(val2);
29640   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Xapian__RSet,  0  | 0);
29641   if (!SWIG_IsOK(res3)) {
29642     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
29643   }
29644   if (!argp3) {
29645     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
29646   }
29647   arg3 = reinterpret_cast< Xapian::RSet * >(argp3);
29648   {
29649     try {
29650       {
29651         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
29652         result = ((Xapian::Enquire const *)arg1)->get_eset(arg2,(Xapian::RSet const &)*arg3);
29653         SWIG_PYTHON_THREAD_END_ALLOW;
29654       }
29655     } catch (...) {
29656       Xapian::SetPythonException();
29657       SWIG_fail;
29658     }
29659   }
29660   resultobj = SWIG_NewPointerObj((new Xapian::ESet(static_cast< const Xapian::ESet& >(result))), SWIGTYPE_p_Xapian__ESet, SWIG_POINTER_OWN |  0 );
29661   return resultobj;
29662 fail:
29663   return NULL;
29664 }
29665 
29666 
_wrap_Enquire_get_eset__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)29667 SWIGINTERN PyObject *_wrap_Enquire_get_eset__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29668   PyObject *resultobj = 0;
29669   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
29670   Xapian::termcount arg2 ;
29671   Xapian::RSet *arg3 = 0 ;
29672   Xapian::ExpandDecider *arg4 = (Xapian::ExpandDecider *) 0 ;
29673   void *argp1 = 0 ;
29674   int res1 = 0 ;
29675   unsigned int val2 ;
29676   int ecode2 = 0 ;
29677   void *argp3 = 0 ;
29678   int res3 = 0 ;
29679   void *argp4 = 0 ;
29680   int res4 = 0 ;
29681   Xapian::ESet result;
29682 
29683   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
29684   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
29685   if (!SWIG_IsOK(res1)) {
29686     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_eset" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
29687   }
29688   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
29689   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
29690   if (!SWIG_IsOK(ecode2)) {
29691     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_get_eset" "', argument " "2"" of type '" "Xapian::termcount""'");
29692   }
29693   arg2 = static_cast< Xapian::termcount >(val2);
29694   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Xapian__RSet,  0  | 0);
29695   if (!SWIG_IsOK(res3)) {
29696     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
29697   }
29698   if (!argp3) {
29699     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
29700   }
29701   arg3 = reinterpret_cast< Xapian::RSet * >(argp3);
29702   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_Xapian__ExpandDecider, 0 |  0 );
29703   if (!SWIG_IsOK(res4)) {
29704     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Enquire_get_eset" "', argument " "4"" of type '" "Xapian::ExpandDecider const *""'");
29705   }
29706   arg4 = reinterpret_cast< Xapian::ExpandDecider * >(argp4);
29707   {
29708     try {
29709       {
29710         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
29711         result = ((Xapian::Enquire const *)arg1)->get_eset(arg2,(Xapian::RSet const &)*arg3,(Xapian::ExpandDecider const *)arg4);
29712         SWIG_PYTHON_THREAD_END_ALLOW;
29713       }
29714     } catch (...) {
29715       Xapian::SetPythonException();
29716       SWIG_fail;
29717     }
29718   }
29719   resultobj = SWIG_NewPointerObj((new Xapian::ESet(static_cast< const Xapian::ESet& >(result))), SWIGTYPE_p_Xapian__ESet, SWIG_POINTER_OWN |  0 );
29720   return resultobj;
29721 fail:
29722   return NULL;
29723 }
29724 
29725 
_wrap_Enquire_get_eset__SWIG_5(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)29726 SWIGINTERN PyObject *_wrap_Enquire_get_eset__SWIG_5(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29727   PyObject *resultobj = 0;
29728   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
29729   Xapian::termcount arg2 ;
29730   Xapian::RSet *arg3 = 0 ;
29731   int arg4 ;
29732   double arg5 ;
29733   Xapian::ExpandDecider *arg6 = (Xapian::ExpandDecider *) 0 ;
29734   double arg7 ;
29735   void *argp1 = 0 ;
29736   int res1 = 0 ;
29737   unsigned int val2 ;
29738   int ecode2 = 0 ;
29739   void *argp3 = 0 ;
29740   int res3 = 0 ;
29741   int val4 ;
29742   int ecode4 = 0 ;
29743   double val5 ;
29744   int ecode5 = 0 ;
29745   void *argp6 = 0 ;
29746   int res6 = 0 ;
29747   double val7 ;
29748   int ecode7 = 0 ;
29749   Xapian::ESet result;
29750 
29751   if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
29752   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
29753   if (!SWIG_IsOK(res1)) {
29754     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_eset" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
29755   }
29756   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
29757   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
29758   if (!SWIG_IsOK(ecode2)) {
29759     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_get_eset" "', argument " "2"" of type '" "Xapian::termcount""'");
29760   }
29761   arg2 = static_cast< Xapian::termcount >(val2);
29762   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Xapian__RSet,  0  | 0);
29763   if (!SWIG_IsOK(res3)) {
29764     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
29765   }
29766   if (!argp3) {
29767     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
29768   }
29769   arg3 = reinterpret_cast< Xapian::RSet * >(argp3);
29770   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
29771   if (!SWIG_IsOK(ecode4)) {
29772     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Enquire_get_eset" "', argument " "4"" of type '" "int""'");
29773   }
29774   arg4 = static_cast< int >(val4);
29775   ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
29776   if (!SWIG_IsOK(ecode5)) {
29777     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Enquire_get_eset" "', argument " "5"" of type '" "double""'");
29778   }
29779   arg5 = static_cast< double >(val5);
29780   res6 = SWIG_ConvertPtr(swig_obj[5], &argp6,SWIGTYPE_p_Xapian__ExpandDecider, 0 |  0 );
29781   if (!SWIG_IsOK(res6)) {
29782     SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "Enquire_get_eset" "', argument " "6"" of type '" "Xapian::ExpandDecider const *""'");
29783   }
29784   arg6 = reinterpret_cast< Xapian::ExpandDecider * >(argp6);
29785   ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
29786   if (!SWIG_IsOK(ecode7)) {
29787     SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Enquire_get_eset" "', argument " "7"" of type '" "double""'");
29788   }
29789   arg7 = static_cast< double >(val7);
29790   {
29791     try {
29792       {
29793         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
29794         result = ((Xapian::Enquire const *)arg1)->get_eset(arg2,(Xapian::RSet const &)*arg3,arg4,arg5,(Xapian::ExpandDecider const *)arg6,arg7);
29795         SWIG_PYTHON_THREAD_END_ALLOW;
29796       }
29797     } catch (...) {
29798       Xapian::SetPythonException();
29799       SWIG_fail;
29800     }
29801   }
29802   resultobj = SWIG_NewPointerObj((new Xapian::ESet(static_cast< const Xapian::ESet& >(result))), SWIGTYPE_p_Xapian__ESet, SWIG_POINTER_OWN |  0 );
29803   return resultobj;
29804 fail:
29805   return NULL;
29806 }
29807 
29808 
_wrap_Enquire_get_eset__SWIG_6(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)29809 SWIGINTERN PyObject *_wrap_Enquire_get_eset__SWIG_6(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29810   PyObject *resultobj = 0;
29811   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
29812   Xapian::termcount arg2 ;
29813   Xapian::RSet *arg3 = 0 ;
29814   int arg4 ;
29815   double arg5 ;
29816   Xapian::ExpandDecider *arg6 = (Xapian::ExpandDecider *) 0 ;
29817   void *argp1 = 0 ;
29818   int res1 = 0 ;
29819   unsigned int val2 ;
29820   int ecode2 = 0 ;
29821   void *argp3 = 0 ;
29822   int res3 = 0 ;
29823   int val4 ;
29824   int ecode4 = 0 ;
29825   double val5 ;
29826   int ecode5 = 0 ;
29827   void *argp6 = 0 ;
29828   int res6 = 0 ;
29829   Xapian::ESet result;
29830 
29831   if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
29832   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
29833   if (!SWIG_IsOK(res1)) {
29834     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_eset" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
29835   }
29836   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
29837   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
29838   if (!SWIG_IsOK(ecode2)) {
29839     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_get_eset" "', argument " "2"" of type '" "Xapian::termcount""'");
29840   }
29841   arg2 = static_cast< Xapian::termcount >(val2);
29842   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Xapian__RSet,  0  | 0);
29843   if (!SWIG_IsOK(res3)) {
29844     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
29845   }
29846   if (!argp3) {
29847     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
29848   }
29849   arg3 = reinterpret_cast< Xapian::RSet * >(argp3);
29850   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
29851   if (!SWIG_IsOK(ecode4)) {
29852     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Enquire_get_eset" "', argument " "4"" of type '" "int""'");
29853   }
29854   arg4 = static_cast< int >(val4);
29855   ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
29856   if (!SWIG_IsOK(ecode5)) {
29857     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Enquire_get_eset" "', argument " "5"" of type '" "double""'");
29858   }
29859   arg5 = static_cast< double >(val5);
29860   res6 = SWIG_ConvertPtr(swig_obj[5], &argp6,SWIGTYPE_p_Xapian__ExpandDecider, 0 |  0 );
29861   if (!SWIG_IsOK(res6)) {
29862     SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "Enquire_get_eset" "', argument " "6"" of type '" "Xapian::ExpandDecider const *""'");
29863   }
29864   arg6 = reinterpret_cast< Xapian::ExpandDecider * >(argp6);
29865   {
29866     try {
29867       {
29868         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
29869         result = ((Xapian::Enquire const *)arg1)->get_eset(arg2,(Xapian::RSet const &)*arg3,arg4,arg5,(Xapian::ExpandDecider const *)arg6);
29870         SWIG_PYTHON_THREAD_END_ALLOW;
29871       }
29872     } catch (...) {
29873       Xapian::SetPythonException();
29874       SWIG_fail;
29875     }
29876   }
29877   resultobj = SWIG_NewPointerObj((new Xapian::ESet(static_cast< const Xapian::ESet& >(result))), SWIGTYPE_p_Xapian__ESet, SWIG_POINTER_OWN |  0 );
29878   return resultobj;
29879 fail:
29880   return NULL;
29881 }
29882 
29883 
_wrap_Enquire_get_eset__SWIG_7(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)29884 SWIGINTERN PyObject *_wrap_Enquire_get_eset__SWIG_7(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29885   PyObject *resultobj = 0;
29886   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
29887   Xapian::termcount arg2 ;
29888   Xapian::RSet *arg3 = 0 ;
29889   int arg4 ;
29890   double arg5 ;
29891   void *argp1 = 0 ;
29892   int res1 = 0 ;
29893   unsigned int val2 ;
29894   int ecode2 = 0 ;
29895   void *argp3 = 0 ;
29896   int res3 = 0 ;
29897   int val4 ;
29898   int ecode4 = 0 ;
29899   double val5 ;
29900   int ecode5 = 0 ;
29901   Xapian::ESet result;
29902 
29903   if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
29904   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
29905   if (!SWIG_IsOK(res1)) {
29906     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_eset" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
29907   }
29908   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
29909   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
29910   if (!SWIG_IsOK(ecode2)) {
29911     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_get_eset" "', argument " "2"" of type '" "Xapian::termcount""'");
29912   }
29913   arg2 = static_cast< Xapian::termcount >(val2);
29914   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Xapian__RSet,  0  | 0);
29915   if (!SWIG_IsOK(res3)) {
29916     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
29917   }
29918   if (!argp3) {
29919     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
29920   }
29921   arg3 = reinterpret_cast< Xapian::RSet * >(argp3);
29922   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
29923   if (!SWIG_IsOK(ecode4)) {
29924     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Enquire_get_eset" "', argument " "4"" of type '" "int""'");
29925   }
29926   arg4 = static_cast< int >(val4);
29927   ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
29928   if (!SWIG_IsOK(ecode5)) {
29929     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Enquire_get_eset" "', argument " "5"" of type '" "double""'");
29930   }
29931   arg5 = static_cast< double >(val5);
29932   {
29933     try {
29934       {
29935         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
29936         result = ((Xapian::Enquire const *)arg1)->get_eset(arg2,(Xapian::RSet const &)*arg3,arg4,arg5);
29937         SWIG_PYTHON_THREAD_END_ALLOW;
29938       }
29939     } catch (...) {
29940       Xapian::SetPythonException();
29941       SWIG_fail;
29942     }
29943   }
29944   resultobj = SWIG_NewPointerObj((new Xapian::ESet(static_cast< const Xapian::ESet& >(result))), SWIGTYPE_p_Xapian__ESet, SWIG_POINTER_OWN |  0 );
29945   return resultobj;
29946 fail:
29947   return NULL;
29948 }
29949 
29950 
_wrap_Enquire_get_eset(PyObject * self,PyObject * args)29951 SWIGINTERN PyObject *_wrap_Enquire_get_eset(PyObject *self, PyObject *args) {
29952   Py_ssize_t argc;
29953   PyObject *argv[8] = {
29954     0
29955   };
29956 
29957   if (!(argc = SWIG_Python_UnpackTuple(args,"Enquire_get_eset",0,7,argv))) SWIG_fail;
29958   --argc;
29959   if (argc == 3) {
29960     return _wrap_Enquire_get_eset__SWIG_3(self, argc, argv);
29961   }
29962   if (argc == 4) {
29963     int _v = 0;
29964     {
29965       void *vptr = 0;
29966       int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_Xapian__ExpandDecider, 0);
29967       _v = SWIG_CheckState(res);
29968     }
29969     if (!_v) goto check_2;
29970     return _wrap_Enquire_get_eset__SWIG_4(self, argc, argv);
29971   }
29972 check_2:
29973 
29974   if (argc == 4) {
29975     return _wrap_Enquire_get_eset__SWIG_2(self, argc, argv);
29976   }
29977   if (argc == 5) {
29978     int _v = 0;
29979     {
29980       void *vptr = 0;
29981       int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_Xapian__ExpandDecider, 0);
29982       _v = SWIG_CheckState(res);
29983     }
29984     if (!_v) goto check_4;
29985     return _wrap_Enquire_get_eset__SWIG_1(self, argc, argv);
29986   }
29987 check_4:
29988 
29989   if (argc == 5) {
29990     return _wrap_Enquire_get_eset__SWIG_7(self, argc, argv);
29991   }
29992   if (argc == 6) {
29993     int _v = 0;
29994     {
29995       void *vptr = 0;
29996       int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_Xapian__ExpandDecider, 0);
29997       _v = SWIG_CheckState(res);
29998     }
29999     if (!_v) goto check_6;
30000     {
30001       {
30002         int res = SWIG_AsVal_double(argv[5], NULL);
30003         _v = SWIG_CheckState(res);
30004       }
30005     }
30006     if (!_v) goto check_6;
30007     return _wrap_Enquire_get_eset__SWIG_0(self, argc, argv);
30008   }
30009 check_6:
30010 
30011   if (argc == 6) {
30012     return _wrap_Enquire_get_eset__SWIG_6(self, argc, argv);
30013   }
30014   if (argc == 7) {
30015     return _wrap_Enquire_get_eset__SWIG_5(self, argc, argv);
30016   }
30017 
30018 fail:
30019   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Enquire_get_eset'.\n"
30020     "  Possible C/C++ prototypes are:\n"
30021     "    Xapian::Enquire::get_eset(Xapian::termcount,Xapian::RSet const &,int,Xapian::ExpandDecider const *,double) const\n"
30022     "    Xapian::Enquire::get_eset(Xapian::termcount,Xapian::RSet const &,int,Xapian::ExpandDecider const *) const\n"
30023     "    Xapian::Enquire::get_eset(Xapian::termcount,Xapian::RSet const &,int) const\n"
30024     "    Xapian::Enquire::get_eset(Xapian::termcount,Xapian::RSet const &) const\n"
30025     "    Xapian::Enquire::get_eset(Xapian::termcount,Xapian::RSet const &,Xapian::ExpandDecider const *) const\n"
30026     "    Xapian::Enquire::get_eset(Xapian::termcount,Xapian::RSet const &,int,double,Xapian::ExpandDecider const *,double) const\n"
30027     "    Xapian::Enquire::get_eset(Xapian::termcount,Xapian::RSet const &,int,double,Xapian::ExpandDecider const *) const\n"
30028     "    Xapian::Enquire::get_eset(Xapian::termcount,Xapian::RSet const &,int,double) const\n");
30029   return 0;
30030 }
30031 
30032 
_wrap_Enquire__get_matching_terms_begin__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)30033 SWIGINTERN PyObject *_wrap_Enquire__get_matching_terms_begin__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30034   PyObject *resultobj = 0;
30035   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
30036   Xapian::docid arg2 ;
30037   void *argp1 = 0 ;
30038   int res1 = 0 ;
30039   unsigned int val2 ;
30040   int ecode2 = 0 ;
30041   Xapian::TermIterator result;
30042 
30043   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30044   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
30045   if (!SWIG_IsOK(res1)) {
30046     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire__get_matching_terms_begin" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
30047   }
30048   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
30049   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
30050   if (!SWIG_IsOK(ecode2)) {
30051     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire__get_matching_terms_begin" "', argument " "2"" of type '" "Xapian::docid""'");
30052   }
30053   arg2 = static_cast< Xapian::docid >(val2);
30054   {
30055     try {
30056       {
30057         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
30058         result = ((Xapian::Enquire const *)arg1)->get_matching_terms_begin(arg2);
30059         SWIG_PYTHON_THREAD_END_ALLOW;
30060       }
30061     } catch (...) {
30062       Xapian::SetPythonException();
30063       SWIG_fail;
30064     }
30065   }
30066   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
30067   return resultobj;
30068 fail:
30069   return NULL;
30070 }
30071 
30072 
_wrap_Enquire__get_matching_terms_end__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)30073 SWIGINTERN PyObject *_wrap_Enquire__get_matching_terms_end__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30074   PyObject *resultobj = 0;
30075   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
30076   Xapian::docid arg2 ;
30077   void *argp1 = 0 ;
30078   int res1 = 0 ;
30079   unsigned int val2 ;
30080   int ecode2 = 0 ;
30081   Xapian::TermIterator result;
30082 
30083   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30084   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
30085   if (!SWIG_IsOK(res1)) {
30086     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire__get_matching_terms_end" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
30087   }
30088   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
30089   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
30090   if (!SWIG_IsOK(ecode2)) {
30091     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire__get_matching_terms_end" "', argument " "2"" of type '" "Xapian::docid""'");
30092   }
30093   arg2 = static_cast< Xapian::docid >(val2);
30094   {
30095     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
30096     result = ((Xapian::Enquire const *)arg1)->get_matching_terms_end(arg2);
30097     SWIG_PYTHON_THREAD_END_ALLOW;
30098   }
30099   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
30100   return resultobj;
30101 fail:
30102   return NULL;
30103 }
30104 
30105 
_wrap_Enquire__get_matching_terms_begin__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)30106 SWIGINTERN PyObject *_wrap_Enquire__get_matching_terms_begin__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30107   PyObject *resultobj = 0;
30108   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
30109   Xapian::MSetIterator *arg2 = 0 ;
30110   void *argp1 = 0 ;
30111   int res1 = 0 ;
30112   void *argp2 = 0 ;
30113   int res2 = 0 ;
30114   Xapian::TermIterator result;
30115 
30116   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30117   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
30118   if (!SWIG_IsOK(res1)) {
30119     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire__get_matching_terms_begin" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
30120   }
30121   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
30122   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
30123   if (!SWIG_IsOK(res2)) {
30124     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Enquire__get_matching_terms_begin" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
30125   }
30126   if (!argp2) {
30127     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire__get_matching_terms_begin" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
30128   }
30129   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
30130   {
30131     try {
30132       {
30133         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
30134         result = ((Xapian::Enquire const *)arg1)->get_matching_terms_begin((Xapian::MSetIterator const &)*arg2);
30135         SWIG_PYTHON_THREAD_END_ALLOW;
30136       }
30137     } catch (...) {
30138       Xapian::SetPythonException();
30139       SWIG_fail;
30140     }
30141   }
30142   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
30143   return resultobj;
30144 fail:
30145   return NULL;
30146 }
30147 
30148 
_wrap_Enquire__get_matching_terms_begin(PyObject * self,PyObject * args)30149 SWIGINTERN PyObject *_wrap_Enquire__get_matching_terms_begin(PyObject *self, PyObject *args) {
30150   Py_ssize_t argc;
30151   PyObject *argv[3] = {
30152     0
30153   };
30154 
30155   if (!(argc = SWIG_Python_UnpackTuple(args,"Enquire__get_matching_terms_begin",0,2,argv))) SWIG_fail;
30156   --argc;
30157   if (argc == 2) {
30158     int _v = 0;
30159     {
30160       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__MSetIterator, 0);
30161       _v = SWIG_CheckState(res);
30162     }
30163     if (!_v) goto check_1;
30164     return _wrap_Enquire__get_matching_terms_begin__SWIG_1(self, argc, argv);
30165   }
30166 check_1:
30167 
30168   if (argc == 2) {
30169     return _wrap_Enquire__get_matching_terms_begin__SWIG_0(self, argc, argv);
30170   }
30171 
30172 fail:
30173   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Enquire__get_matching_terms_begin'.\n"
30174     "  Possible C/C++ prototypes are:\n"
30175     "    Xapian::Enquire::get_matching_terms_begin(Xapian::docid) const\n"
30176     "    Xapian::Enquire::get_matching_terms_begin(Xapian::MSetIterator const &) const\n");
30177   return 0;
30178 }
30179 
30180 
_wrap_Enquire__get_matching_terms_end__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)30181 SWIGINTERN PyObject *_wrap_Enquire__get_matching_terms_end__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30182   PyObject *resultobj = 0;
30183   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
30184   Xapian::MSetIterator *arg2 = 0 ;
30185   void *argp1 = 0 ;
30186   int res1 = 0 ;
30187   void *argp2 = 0 ;
30188   int res2 = 0 ;
30189   Xapian::TermIterator result;
30190 
30191   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30192   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
30193   if (!SWIG_IsOK(res1)) {
30194     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire__get_matching_terms_end" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
30195   }
30196   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
30197   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
30198   if (!SWIG_IsOK(res2)) {
30199     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Enquire__get_matching_terms_end" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
30200   }
30201   if (!argp2) {
30202     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire__get_matching_terms_end" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
30203   }
30204   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
30205   {
30206     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
30207     result = ((Xapian::Enquire const *)arg1)->get_matching_terms_end((Xapian::MSetIterator const &)*arg2);
30208     SWIG_PYTHON_THREAD_END_ALLOW;
30209   }
30210   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
30211   return resultobj;
30212 fail:
30213   return NULL;
30214 }
30215 
30216 
_wrap_Enquire__get_matching_terms_end(PyObject * self,PyObject * args)30217 SWIGINTERN PyObject *_wrap_Enquire__get_matching_terms_end(PyObject *self, PyObject *args) {
30218   Py_ssize_t argc;
30219   PyObject *argv[3] = {
30220     0
30221   };
30222 
30223   if (!(argc = SWIG_Python_UnpackTuple(args,"Enquire__get_matching_terms_end",0,2,argv))) SWIG_fail;
30224   --argc;
30225   if (argc == 2) {
30226     int _v = 0;
30227     {
30228       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__MSetIterator, 0);
30229       _v = SWIG_CheckState(res);
30230     }
30231     if (!_v) goto check_1;
30232     return _wrap_Enquire__get_matching_terms_end__SWIG_1(self, argc, argv);
30233   }
30234 check_1:
30235 
30236   if (argc == 2) {
30237     return _wrap_Enquire__get_matching_terms_end__SWIG_0(self, argc, argv);
30238   }
30239 
30240 fail:
30241   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Enquire__get_matching_terms_end'.\n"
30242     "  Possible C/C++ prototypes are:\n"
30243     "    Xapian::Enquire::get_matching_terms_end(Xapian::docid) const\n"
30244     "    Xapian::Enquire::get_matching_terms_end(Xapian::MSetIterator const &) const\n");
30245   return 0;
30246 }
30247 
30248 
_wrap_Enquire___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30249 SWIGINTERN PyObject *_wrap_Enquire___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30250   PyObject *resultobj = 0;
30251   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
30252   void *argp1 = 0 ;
30253   int res1 = 0 ;
30254   PyObject *swig_obj[1] ;
30255   std::string result;
30256 
30257   if (!args) SWIG_fail;
30258   swig_obj[0] = args;
30259   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
30260   if (!SWIG_IsOK(res1)) {
30261     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire___str__" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
30262   }
30263   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
30264   {
30265     try {
30266       {
30267         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
30268         result = ((Xapian::Enquire const *)arg1)->get_description();
30269         SWIG_PYTHON_THREAD_END_ALLOW;
30270       }
30271     } catch (...) {
30272       Xapian::SetPythonException();
30273       SWIG_fail;
30274     }
30275   }
30276   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
30277   return resultobj;
30278 fail:
30279   return NULL;
30280 }
30281 
30282 
Enquire_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30283 SWIGINTERN PyObject *Enquire_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30284   PyObject *obj;
30285   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
30286   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__Enquire, SWIG_NewClientData(obj));
30287   return SWIG_Py_Void();
30288 }
30289 
Enquire_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30290 SWIGINTERN PyObject *Enquire_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30291   return SWIG_Python_InitShadowInstance(args);
30292 }
30293 
_wrap_new_ExpandDecider(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30294 SWIGINTERN PyObject *_wrap_new_ExpandDecider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30295   PyObject *resultobj = 0;
30296   PyObject *arg1 = (PyObject *) 0 ;
30297   PyObject *swig_obj[1] ;
30298   Xapian::ExpandDecider *result = 0 ;
30299 
30300   if (!args) SWIG_fail;
30301   swig_obj[0] = args;
30302   arg1 = swig_obj[0];
30303   {
30304     try {
30305       {
30306         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
30307         if ( arg1 != Py_None ) {
30308           /* subclassed */
30309           result = (Xapian::ExpandDecider *)new SwigDirector_ExpandDecider(arg1);
30310         } else {
30311           SWIG_SetErrorMsg(PyExc_RuntimeError,"accessing abstract class or protected constructor");
30312           SWIG_fail;
30313         }
30314 
30315         SWIG_PYTHON_THREAD_END_ALLOW;
30316       }
30317     } catch (...) {
30318       Xapian::SetPythonException();
30319       SWIG_fail;
30320     }
30321   }
30322   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ExpandDecider, SWIG_POINTER_NEW |  0 );
30323   return resultobj;
30324 fail:
30325   return NULL;
30326 }
30327 
30328 
_wrap_ExpandDecider___call__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30329 SWIGINTERN PyObject *_wrap_ExpandDecider___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30330   PyObject *resultobj = 0;
30331   Xapian::ExpandDecider *arg1 = (Xapian::ExpandDecider *) 0 ;
30332   std::string *arg2 = 0 ;
30333   void *argp1 = 0 ;
30334   int res1 = 0 ;
30335   int res2 = SWIG_OLDOBJ ;
30336   PyObject *swig_obj[2] ;
30337   Swig::Director *director = 0;
30338   bool upcall = false;
30339   bool result;
30340 
30341   if (!SWIG_Python_UnpackTuple(args,"ExpandDecider___call__",2,2,swig_obj)) SWIG_fail;
30342   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ExpandDecider, 0 |  0 );
30343   if (!SWIG_IsOK(res1)) {
30344     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ExpandDecider___call__" "', argument " "1"" of type '" "Xapian::ExpandDecider const *""'");
30345   }
30346   arg1 = reinterpret_cast< Xapian::ExpandDecider * >(argp1);
30347   {
30348     std::string *ptr = (std::string *)0;
30349     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
30350     if (!SWIG_IsOK(res2)) {
30351       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ExpandDecider___call__" "', argument " "2"" of type '" "std::string const &""'");
30352     }
30353     if (!ptr) {
30354       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ExpandDecider___call__" "', argument " "2"" of type '" "std::string const &""'");
30355     }
30356     arg2 = ptr;
30357   }
30358   director = SWIG_DIRECTOR_CAST(arg1);
30359   upcall = (director && (director->swig_get_self()==swig_obj[0]));
30360   try {
30361     {
30362       try {
30363         if (upcall) {
30364           Swig::DirectorPureVirtualException::raise("Xapian::ExpandDecider::operator ()");
30365         } else {
30366           result = (bool)((Xapian::ExpandDecider const *)arg1)->operator ()((std::string const &)*arg2);
30367         }
30368       } catch (...) {
30369         Xapian::SetPythonException();
30370         SWIG_fail;
30371       }
30372     }
30373   } catch (Swig::DirectorException&) {
30374     SWIG_fail;
30375   }
30376   resultobj = SWIG_From_bool(static_cast< bool >(result));
30377   if (SWIG_IsNewObj(res2)) delete arg2;
30378   return resultobj;
30379 fail:
30380   if (SWIG_IsNewObj(res2)) delete arg2;
30381   return NULL;
30382 }
30383 
30384 
_wrap_delete_ExpandDecider(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30385 SWIGINTERN PyObject *_wrap_delete_ExpandDecider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30386   PyObject *resultobj = 0;
30387   Xapian::ExpandDecider *arg1 = (Xapian::ExpandDecider *) 0 ;
30388   void *argp1 = 0 ;
30389   int res1 = 0 ;
30390   PyObject *swig_obj[1] ;
30391 
30392   if (!args) SWIG_fail;
30393   swig_obj[0] = args;
30394   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ExpandDecider, SWIG_POINTER_DISOWN |  0 );
30395   if (!SWIG_IsOK(res1)) {
30396     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ExpandDecider" "', argument " "1"" of type '" "Xapian::ExpandDecider *""'");
30397   }
30398   arg1 = reinterpret_cast< Xapian::ExpandDecider * >(argp1);
30399   {
30400     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
30401     delete arg1;
30402     SWIG_PYTHON_THREAD_END_ALLOW;
30403   }
30404   resultobj = SWIG_Py_Void();
30405   return resultobj;
30406 fail:
30407   return NULL;
30408 }
30409 
30410 
_wrap_ExpandDecider_release(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30411 SWIGINTERN PyObject *_wrap_ExpandDecider_release(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30412   PyObject *resultobj = 0;
30413   Xapian::ExpandDecider *arg1 = (Xapian::ExpandDecider *) 0 ;
30414   void *argp1 = 0 ;
30415   int res1 = 0 ;
30416   PyObject *swig_obj[1] ;
30417   Swig::Director *director = 0;
30418   Xapian::ExpandDecider *result = 0 ;
30419 
30420   if (!args) SWIG_fail;
30421   swig_obj[0] = args;
30422   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ExpandDecider, 0 |  0 );
30423   if (!SWIG_IsOK(res1)) {
30424     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ExpandDecider_release" "', argument " "1"" of type '" "Xapian::ExpandDecider const *""'");
30425   }
30426   arg1 = reinterpret_cast< Xapian::ExpandDecider * >(argp1);
30427   {
30428     try {
30429       {
30430         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
30431         result = (Xapian::ExpandDecider *)((Xapian::ExpandDecider const *)arg1)->release();
30432         SWIG_PYTHON_THREAD_END_ALLOW;
30433       }
30434     } catch (...) {
30435       Xapian::SetPythonException();
30436       SWIG_fail;
30437     }
30438   }
30439   director = SWIG_DIRECTOR_CAST(result);
30440   if (director) {
30441     resultobj = director->swig_get_self();
30442     Py_INCREF(resultobj);
30443   } else {
30444     resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ExpandDecider, 0 |  0 );
30445   }
30446   return resultobj;
30447 fail:
30448   return NULL;
30449 }
30450 
30451 
_wrap_disown_ExpandDecider(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30452 SWIGINTERN PyObject *_wrap_disown_ExpandDecider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30453   PyObject *resultobj = 0;
30454   Xapian::ExpandDecider *arg1 = (Xapian::ExpandDecider *) 0 ;
30455   void *argp1 = 0 ;
30456   int res1 = 0 ;
30457   PyObject *swig_obj[1] ;
30458 
30459   if (!args) SWIG_fail;
30460   swig_obj[0] = args;
30461   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ExpandDecider, 0 |  0 );
30462   if (!SWIG_IsOK(res1)) {
30463     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_ExpandDecider" "', argument " "1"" of type '" "Xapian::ExpandDecider *""'");
30464   }
30465   arg1 = reinterpret_cast< Xapian::ExpandDecider * >(argp1);
30466   {
30467     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
30468     {
30469       Swig::Director *director = SWIG_DIRECTOR_CAST(arg1);
30470       if (director) director->swig_disown();
30471     }
30472 
30473     SWIG_PYTHON_THREAD_END_ALLOW;
30474   }
30475   resultobj = SWIG_Py_Void();
30476   return resultobj;
30477 fail:
30478   return NULL;
30479 }
30480 
30481 
ExpandDecider_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30482 SWIGINTERN PyObject *ExpandDecider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30483   PyObject *obj;
30484   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
30485   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__ExpandDecider, SWIG_NewClientData(obj));
30486   return SWIG_Py_Void();
30487 }
30488 
ExpandDecider_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30489 SWIGINTERN PyObject *ExpandDecider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30490   return SWIG_Python_InitShadowInstance(args);
30491 }
30492 
_wrap_new_ExpandDeciderAnd(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30493 SWIGINTERN PyObject *_wrap_new_ExpandDeciderAnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30494   PyObject *resultobj = 0;
30495   Xapian::ExpandDecider *arg1 = 0 ;
30496   Xapian::ExpandDecider *arg2 = 0 ;
30497   void *argp1 = 0 ;
30498   int res1 = 0 ;
30499   void *argp2 = 0 ;
30500   int res2 = 0 ;
30501   PyObject *swig_obj[2] ;
30502   Xapian::ExpandDeciderAnd *result = 0 ;
30503 
30504   if (!SWIG_Python_UnpackTuple(args,"new_ExpandDeciderAnd",2,2,swig_obj)) SWIG_fail;
30505   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__ExpandDecider,  0  | 0);
30506   if (!SWIG_IsOK(res1)) {
30507     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ExpandDeciderAnd" "', argument " "1"" of type '" "Xapian::ExpandDecider const &""'");
30508   }
30509   if (!argp1) {
30510     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ExpandDeciderAnd" "', argument " "1"" of type '" "Xapian::ExpandDecider const &""'");
30511   }
30512   arg1 = reinterpret_cast< Xapian::ExpandDecider * >(argp1);
30513   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__ExpandDecider,  0  | 0);
30514   if (!SWIG_IsOK(res2)) {
30515     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ExpandDeciderAnd" "', argument " "2"" of type '" "Xapian::ExpandDecider const &""'");
30516   }
30517   if (!argp2) {
30518     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ExpandDeciderAnd" "', argument " "2"" of type '" "Xapian::ExpandDecider const &""'");
30519   }
30520   arg2 = reinterpret_cast< Xapian::ExpandDecider * >(argp2);
30521   {
30522     try {
30523       {
30524         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
30525         result = (Xapian::ExpandDeciderAnd *)new Xapian::ExpandDeciderAnd((Xapian::ExpandDecider const &)*arg1,(Xapian::ExpandDecider const &)*arg2);
30526         SWIG_PYTHON_THREAD_END_ALLOW;
30527       }
30528     } catch (...) {
30529       Xapian::SetPythonException();
30530       SWIG_fail;
30531     }
30532   }
30533   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ExpandDeciderAnd, SWIG_POINTER_NEW |  0 );
30534   return resultobj;
30535 fail:
30536   return NULL;
30537 }
30538 
30539 
_wrap_delete_ExpandDeciderAnd(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30540 SWIGINTERN PyObject *_wrap_delete_ExpandDeciderAnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30541   PyObject *resultobj = 0;
30542   Xapian::ExpandDeciderAnd *arg1 = (Xapian::ExpandDeciderAnd *) 0 ;
30543   void *argp1 = 0 ;
30544   int res1 = 0 ;
30545   PyObject *swig_obj[1] ;
30546 
30547   if (!args) SWIG_fail;
30548   swig_obj[0] = args;
30549   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ExpandDeciderAnd, SWIG_POINTER_DISOWN |  0 );
30550   if (!SWIG_IsOK(res1)) {
30551     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ExpandDeciderAnd" "', argument " "1"" of type '" "Xapian::ExpandDeciderAnd *""'");
30552   }
30553   arg1 = reinterpret_cast< Xapian::ExpandDeciderAnd * >(argp1);
30554   {
30555     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
30556     delete arg1;
30557     SWIG_PYTHON_THREAD_END_ALLOW;
30558   }
30559   resultobj = SWIG_Py_Void();
30560   return resultobj;
30561 fail:
30562   return NULL;
30563 }
30564 
30565 
ExpandDeciderAnd_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30566 SWIGINTERN PyObject *ExpandDeciderAnd_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30567   PyObject *obj;
30568   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
30569   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__ExpandDeciderAnd, SWIG_NewClientData(obj));
30570   return SWIG_Py_Void();
30571 }
30572 
ExpandDeciderAnd_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30573 SWIGINTERN PyObject *ExpandDeciderAnd_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30574   return SWIG_Python_InitShadowInstance(args);
30575 }
30576 
_wrap_new_ExpandDeciderFilterPrefix(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30577 SWIGINTERN PyObject *_wrap_new_ExpandDeciderFilterPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30578   PyObject *resultobj = 0;
30579   std::string *arg1 = 0 ;
30580   int res1 = SWIG_OLDOBJ ;
30581   PyObject *swig_obj[1] ;
30582   Xapian::ExpandDeciderFilterPrefix *result = 0 ;
30583 
30584   if (!args) SWIG_fail;
30585   swig_obj[0] = args;
30586   {
30587     std::string *ptr = (std::string *)0;
30588     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
30589     if (!SWIG_IsOK(res1)) {
30590       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ExpandDeciderFilterPrefix" "', argument " "1"" of type '" "std::string const &""'");
30591     }
30592     if (!ptr) {
30593       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ExpandDeciderFilterPrefix" "', argument " "1"" of type '" "std::string const &""'");
30594     }
30595     arg1 = ptr;
30596   }
30597   {
30598     try {
30599       {
30600         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
30601         result = (Xapian::ExpandDeciderFilterPrefix *)new Xapian::ExpandDeciderFilterPrefix((std::string const &)*arg1);
30602         SWIG_PYTHON_THREAD_END_ALLOW;
30603       }
30604     } catch (...) {
30605       Xapian::SetPythonException();
30606       SWIG_fail;
30607     }
30608   }
30609   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ExpandDeciderFilterPrefix, SWIG_POINTER_NEW |  0 );
30610   if (SWIG_IsNewObj(res1)) delete arg1;
30611   return resultobj;
30612 fail:
30613   if (SWIG_IsNewObj(res1)) delete arg1;
30614   return NULL;
30615 }
30616 
30617 
_wrap_delete_ExpandDeciderFilterPrefix(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30618 SWIGINTERN PyObject *_wrap_delete_ExpandDeciderFilterPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30619   PyObject *resultobj = 0;
30620   Xapian::ExpandDeciderFilterPrefix *arg1 = (Xapian::ExpandDeciderFilterPrefix *) 0 ;
30621   void *argp1 = 0 ;
30622   int res1 = 0 ;
30623   PyObject *swig_obj[1] ;
30624 
30625   if (!args) SWIG_fail;
30626   swig_obj[0] = args;
30627   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ExpandDeciderFilterPrefix, SWIG_POINTER_DISOWN |  0 );
30628   if (!SWIG_IsOK(res1)) {
30629     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ExpandDeciderFilterPrefix" "', argument " "1"" of type '" "Xapian::ExpandDeciderFilterPrefix *""'");
30630   }
30631   arg1 = reinterpret_cast< Xapian::ExpandDeciderFilterPrefix * >(argp1);
30632   {
30633     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
30634     delete arg1;
30635     SWIG_PYTHON_THREAD_END_ALLOW;
30636   }
30637   resultobj = SWIG_Py_Void();
30638   return resultobj;
30639 fail:
30640   return NULL;
30641 }
30642 
30643 
ExpandDeciderFilterPrefix_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30644 SWIGINTERN PyObject *ExpandDeciderFilterPrefix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30645   PyObject *obj;
30646   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
30647   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__ExpandDeciderFilterPrefix, SWIG_NewClientData(obj));
30648   return SWIG_Py_Void();
30649 }
30650 
ExpandDeciderFilterPrefix_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30651 SWIGINTERN PyObject *ExpandDeciderFilterPrefix_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30652   return SWIG_Python_InitShadowInstance(args);
30653 }
30654 
_wrap_new_KeyMaker(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30655 SWIGINTERN PyObject *_wrap_new_KeyMaker(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30656   PyObject *resultobj = 0;
30657   PyObject *arg1 = (PyObject *) 0 ;
30658   PyObject *swig_obj[1] ;
30659   Xapian::KeyMaker *result = 0 ;
30660 
30661   if (!args) SWIG_fail;
30662   swig_obj[0] = args;
30663   arg1 = swig_obj[0];
30664   {
30665     try {
30666       {
30667         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
30668         if ( arg1 != Py_None ) {
30669           /* subclassed */
30670           result = (Xapian::KeyMaker *)new SwigDirector_KeyMaker(arg1);
30671         } else {
30672           SWIG_SetErrorMsg(PyExc_RuntimeError,"accessing abstract class or protected constructor");
30673           SWIG_fail;
30674         }
30675 
30676         SWIG_PYTHON_THREAD_END_ALLOW;
30677       }
30678     } catch (...) {
30679       Xapian::SetPythonException();
30680       SWIG_fail;
30681     }
30682   }
30683   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__KeyMaker, SWIG_POINTER_NEW |  0 );
30684   return resultobj;
30685 fail:
30686   return NULL;
30687 }
30688 
30689 
_wrap_KeyMaker___call__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30690 SWIGINTERN PyObject *_wrap_KeyMaker___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30691   PyObject *resultobj = 0;
30692   Xapian::KeyMaker *arg1 = (Xapian::KeyMaker *) 0 ;
30693   Xapian::Document *arg2 = 0 ;
30694   void *argp1 = 0 ;
30695   int res1 = 0 ;
30696   void *argp2 = 0 ;
30697   int res2 = 0 ;
30698   PyObject *swig_obj[2] ;
30699   Swig::Director *director = 0;
30700   bool upcall = false;
30701   std::string result;
30702 
30703   if (!SWIG_Python_UnpackTuple(args,"KeyMaker___call__",2,2,swig_obj)) SWIG_fail;
30704   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__KeyMaker, 0 |  0 );
30705   if (!SWIG_IsOK(res1)) {
30706     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyMaker___call__" "', argument " "1"" of type '" "Xapian::KeyMaker const *""'");
30707   }
30708   arg1 = reinterpret_cast< Xapian::KeyMaker * >(argp1);
30709   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__Document,  0  | 0);
30710   if (!SWIG_IsOK(res2)) {
30711     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KeyMaker___call__" "', argument " "2"" of type '" "Xapian::Document const &""'");
30712   }
30713   if (!argp2) {
30714     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KeyMaker___call__" "', argument " "2"" of type '" "Xapian::Document const &""'");
30715   }
30716   arg2 = reinterpret_cast< Xapian::Document * >(argp2);
30717   director = SWIG_DIRECTOR_CAST(arg1);
30718   upcall = (director && (director->swig_get_self()==swig_obj[0]));
30719   try {
30720     {
30721       try {
30722         if (upcall) {
30723           Swig::DirectorPureVirtualException::raise("Xapian::KeyMaker::operator ()");
30724         } else {
30725           result = ((Xapian::KeyMaker const *)arg1)->operator ()((Xapian::Document const &)*arg2);
30726         }
30727       } catch (...) {
30728         Xapian::SetPythonException();
30729         SWIG_fail;
30730       }
30731     }
30732   } catch (Swig::DirectorException&) {
30733     SWIG_fail;
30734   }
30735   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
30736   return resultobj;
30737 fail:
30738   return NULL;
30739 }
30740 
30741 
_wrap_delete_KeyMaker(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30742 SWIGINTERN PyObject *_wrap_delete_KeyMaker(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30743   PyObject *resultobj = 0;
30744   Xapian::KeyMaker *arg1 = (Xapian::KeyMaker *) 0 ;
30745   void *argp1 = 0 ;
30746   int res1 = 0 ;
30747   PyObject *swig_obj[1] ;
30748 
30749   if (!args) SWIG_fail;
30750   swig_obj[0] = args;
30751   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__KeyMaker, SWIG_POINTER_DISOWN |  0 );
30752   if (!SWIG_IsOK(res1)) {
30753     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_KeyMaker" "', argument " "1"" of type '" "Xapian::KeyMaker *""'");
30754   }
30755   arg1 = reinterpret_cast< Xapian::KeyMaker * >(argp1);
30756   {
30757     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
30758     delete arg1;
30759     SWIG_PYTHON_THREAD_END_ALLOW;
30760   }
30761   resultobj = SWIG_Py_Void();
30762   return resultobj;
30763 fail:
30764   return NULL;
30765 }
30766 
30767 
_wrap_KeyMaker_release(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30768 SWIGINTERN PyObject *_wrap_KeyMaker_release(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30769   PyObject *resultobj = 0;
30770   Xapian::KeyMaker *arg1 = (Xapian::KeyMaker *) 0 ;
30771   void *argp1 = 0 ;
30772   int res1 = 0 ;
30773   PyObject *swig_obj[1] ;
30774   Swig::Director *director = 0;
30775   Xapian::KeyMaker *result = 0 ;
30776 
30777   if (!args) SWIG_fail;
30778   swig_obj[0] = args;
30779   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__KeyMaker, 0 |  0 );
30780   if (!SWIG_IsOK(res1)) {
30781     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyMaker_release" "', argument " "1"" of type '" "Xapian::KeyMaker const *""'");
30782   }
30783   arg1 = reinterpret_cast< Xapian::KeyMaker * >(argp1);
30784   {
30785     try {
30786       {
30787         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
30788         result = (Xapian::KeyMaker *)((Xapian::KeyMaker const *)arg1)->release();
30789         SWIG_PYTHON_THREAD_END_ALLOW;
30790       }
30791     } catch (...) {
30792       Xapian::SetPythonException();
30793       SWIG_fail;
30794     }
30795   }
30796   director = SWIG_DIRECTOR_CAST(result);
30797   if (director) {
30798     resultobj = director->swig_get_self();
30799     Py_INCREF(resultobj);
30800   } else {
30801     resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__KeyMaker, 0 |  0 );
30802   }
30803   return resultobj;
30804 fail:
30805   return NULL;
30806 }
30807 
30808 
_wrap_disown_KeyMaker(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30809 SWIGINTERN PyObject *_wrap_disown_KeyMaker(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30810   PyObject *resultobj = 0;
30811   Xapian::KeyMaker *arg1 = (Xapian::KeyMaker *) 0 ;
30812   void *argp1 = 0 ;
30813   int res1 = 0 ;
30814   PyObject *swig_obj[1] ;
30815 
30816   if (!args) SWIG_fail;
30817   swig_obj[0] = args;
30818   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__KeyMaker, 0 |  0 );
30819   if (!SWIG_IsOK(res1)) {
30820     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_KeyMaker" "', argument " "1"" of type '" "Xapian::KeyMaker *""'");
30821   }
30822   arg1 = reinterpret_cast< Xapian::KeyMaker * >(argp1);
30823   {
30824     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
30825     {
30826       Swig::Director *director = SWIG_DIRECTOR_CAST(arg1);
30827       if (director) director->swig_disown();
30828     }
30829 
30830     SWIG_PYTHON_THREAD_END_ALLOW;
30831   }
30832   resultobj = SWIG_Py_Void();
30833   return resultobj;
30834 fail:
30835   return NULL;
30836 }
30837 
30838 
KeyMaker_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30839 SWIGINTERN PyObject *KeyMaker_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30840   PyObject *obj;
30841   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
30842   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__KeyMaker, SWIG_NewClientData(obj));
30843   return SWIG_Py_Void();
30844 }
30845 
KeyMaker_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30846 SWIGINTERN PyObject *KeyMaker_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30847   return SWIG_Python_InitShadowInstance(args);
30848 }
30849 
_wrap_new_MultiValueKeyMaker(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30850 SWIGINTERN PyObject *_wrap_new_MultiValueKeyMaker(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30851   PyObject *resultobj = 0;
30852   Xapian::MultiValueKeyMaker *result = 0 ;
30853 
30854   if (!SWIG_Python_UnpackTuple(args,"new_MultiValueKeyMaker",0,0,0)) SWIG_fail;
30855   {
30856     try {
30857       {
30858         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
30859         result = (Xapian::MultiValueKeyMaker *)new Xapian::MultiValueKeyMaker();
30860         SWIG_PYTHON_THREAD_END_ALLOW;
30861       }
30862     } catch (...) {
30863       Xapian::SetPythonException();
30864       SWIG_fail;
30865     }
30866   }
30867   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__MultiValueKeyMaker, SWIG_POINTER_NEW |  0 );
30868   return resultobj;
30869 fail:
30870   return NULL;
30871 }
30872 
30873 
_wrap_MultiValueKeyMaker_add_value__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)30874 SWIGINTERN PyObject *_wrap_MultiValueKeyMaker_add_value__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30875   PyObject *resultobj = 0;
30876   Xapian::MultiValueKeyMaker *arg1 = (Xapian::MultiValueKeyMaker *) 0 ;
30877   Xapian::valueno arg2 ;
30878   bool arg3 ;
30879   std::string *arg4 = 0 ;
30880   void *argp1 = 0 ;
30881   int res1 = 0 ;
30882   unsigned int val2 ;
30883   int ecode2 = 0 ;
30884   bool val3 ;
30885   int ecode3 = 0 ;
30886   int res4 = SWIG_OLDOBJ ;
30887 
30888   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
30889   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MultiValueKeyMaker, 0 |  0 );
30890   if (!SWIG_IsOK(res1)) {
30891     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultiValueKeyMaker_add_value" "', argument " "1"" of type '" "Xapian::MultiValueKeyMaker *""'");
30892   }
30893   arg1 = reinterpret_cast< Xapian::MultiValueKeyMaker * >(argp1);
30894   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
30895   if (!SWIG_IsOK(ecode2)) {
30896     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MultiValueKeyMaker_add_value" "', argument " "2"" of type '" "Xapian::valueno""'");
30897   }
30898   arg2 = static_cast< Xapian::valueno >(val2);
30899   ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
30900   if (!SWIG_IsOK(ecode3)) {
30901     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MultiValueKeyMaker_add_value" "', argument " "3"" of type '" "bool""'");
30902   }
30903   arg3 = static_cast< bool >(val3);
30904   {
30905     std::string *ptr = (std::string *)0;
30906     res4 = XapianSWIG_anystring_as_ptr(swig_obj[3], &ptr);
30907     if (!SWIG_IsOK(res4)) {
30908       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "MultiValueKeyMaker_add_value" "', argument " "4"" of type '" "std::string const &""'");
30909     }
30910     if (!ptr) {
30911       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MultiValueKeyMaker_add_value" "', argument " "4"" of type '" "std::string const &""'");
30912     }
30913     arg4 = ptr;
30914   }
30915   {
30916     try {
30917       {
30918         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
30919         (arg1)->add_value(arg2,arg3,(std::string const &)*arg4);
30920         SWIG_PYTHON_THREAD_END_ALLOW;
30921       }
30922     } catch (...) {
30923       Xapian::SetPythonException();
30924       SWIG_fail;
30925     }
30926   }
30927   resultobj = SWIG_Py_Void();
30928   if (SWIG_IsNewObj(res4)) delete arg4;
30929   return resultobj;
30930 fail:
30931   if (SWIG_IsNewObj(res4)) delete arg4;
30932   return NULL;
30933 }
30934 
30935 
_wrap_MultiValueKeyMaker_add_value__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)30936 SWIGINTERN PyObject *_wrap_MultiValueKeyMaker_add_value__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30937   PyObject *resultobj = 0;
30938   Xapian::MultiValueKeyMaker *arg1 = (Xapian::MultiValueKeyMaker *) 0 ;
30939   Xapian::valueno arg2 ;
30940   bool arg3 ;
30941   void *argp1 = 0 ;
30942   int res1 = 0 ;
30943   unsigned int val2 ;
30944   int ecode2 = 0 ;
30945   bool val3 ;
30946   int ecode3 = 0 ;
30947 
30948   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
30949   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MultiValueKeyMaker, 0 |  0 );
30950   if (!SWIG_IsOK(res1)) {
30951     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultiValueKeyMaker_add_value" "', argument " "1"" of type '" "Xapian::MultiValueKeyMaker *""'");
30952   }
30953   arg1 = reinterpret_cast< Xapian::MultiValueKeyMaker * >(argp1);
30954   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
30955   if (!SWIG_IsOK(ecode2)) {
30956     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MultiValueKeyMaker_add_value" "', argument " "2"" of type '" "Xapian::valueno""'");
30957   }
30958   arg2 = static_cast< Xapian::valueno >(val2);
30959   ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
30960   if (!SWIG_IsOK(ecode3)) {
30961     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MultiValueKeyMaker_add_value" "', argument " "3"" of type '" "bool""'");
30962   }
30963   arg3 = static_cast< bool >(val3);
30964   {
30965     try {
30966       {
30967         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
30968         (arg1)->add_value(arg2,arg3);
30969         SWIG_PYTHON_THREAD_END_ALLOW;
30970       }
30971     } catch (...) {
30972       Xapian::SetPythonException();
30973       SWIG_fail;
30974     }
30975   }
30976   resultobj = SWIG_Py_Void();
30977   return resultobj;
30978 fail:
30979   return NULL;
30980 }
30981 
30982 
_wrap_MultiValueKeyMaker_add_value__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)30983 SWIGINTERN PyObject *_wrap_MultiValueKeyMaker_add_value__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30984   PyObject *resultobj = 0;
30985   Xapian::MultiValueKeyMaker *arg1 = (Xapian::MultiValueKeyMaker *) 0 ;
30986   Xapian::valueno arg2 ;
30987   void *argp1 = 0 ;
30988   int res1 = 0 ;
30989   unsigned int val2 ;
30990   int ecode2 = 0 ;
30991 
30992   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30993   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MultiValueKeyMaker, 0 |  0 );
30994   if (!SWIG_IsOK(res1)) {
30995     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultiValueKeyMaker_add_value" "', argument " "1"" of type '" "Xapian::MultiValueKeyMaker *""'");
30996   }
30997   arg1 = reinterpret_cast< Xapian::MultiValueKeyMaker * >(argp1);
30998   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
30999   if (!SWIG_IsOK(ecode2)) {
31000     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MultiValueKeyMaker_add_value" "', argument " "2"" of type '" "Xapian::valueno""'");
31001   }
31002   arg2 = static_cast< Xapian::valueno >(val2);
31003   {
31004     try {
31005       {
31006         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
31007         (arg1)->add_value(arg2);
31008         SWIG_PYTHON_THREAD_END_ALLOW;
31009       }
31010     } catch (...) {
31011       Xapian::SetPythonException();
31012       SWIG_fail;
31013     }
31014   }
31015   resultobj = SWIG_Py_Void();
31016   return resultobj;
31017 fail:
31018   return NULL;
31019 }
31020 
31021 
_wrap_MultiValueKeyMaker_add_value(PyObject * self,PyObject * args)31022 SWIGINTERN PyObject *_wrap_MultiValueKeyMaker_add_value(PyObject *self, PyObject *args) {
31023   Py_ssize_t argc;
31024   PyObject *argv[5] = {
31025     0
31026   };
31027 
31028   if (!(argc = SWIG_Python_UnpackTuple(args,"MultiValueKeyMaker_add_value",0,4,argv))) SWIG_fail;
31029   --argc;
31030   if (argc == 2) {
31031     return _wrap_MultiValueKeyMaker_add_value__SWIG_2(self, argc, argv);
31032   }
31033   if (argc == 3) {
31034     return _wrap_MultiValueKeyMaker_add_value__SWIG_1(self, argc, argv);
31035   }
31036   if (argc == 4) {
31037     return _wrap_MultiValueKeyMaker_add_value__SWIG_0(self, argc, argv);
31038   }
31039 
31040 fail:
31041   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'MultiValueKeyMaker_add_value'.\n"
31042     "  Possible C/C++ prototypes are:\n"
31043     "    Xapian::MultiValueKeyMaker::add_value(Xapian::valueno,bool,std::string const &)\n"
31044     "    Xapian::MultiValueKeyMaker::add_value(Xapian::valueno,bool)\n"
31045     "    Xapian::MultiValueKeyMaker::add_value(Xapian::valueno)\n");
31046   return 0;
31047 }
31048 
31049 
_wrap_delete_MultiValueKeyMaker(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31050 SWIGINTERN PyObject *_wrap_delete_MultiValueKeyMaker(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31051   PyObject *resultobj = 0;
31052   Xapian::MultiValueKeyMaker *arg1 = (Xapian::MultiValueKeyMaker *) 0 ;
31053   void *argp1 = 0 ;
31054   int res1 = 0 ;
31055   PyObject *swig_obj[1] ;
31056 
31057   if (!args) SWIG_fail;
31058   swig_obj[0] = args;
31059   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MultiValueKeyMaker, SWIG_POINTER_DISOWN |  0 );
31060   if (!SWIG_IsOK(res1)) {
31061     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MultiValueKeyMaker" "', argument " "1"" of type '" "Xapian::MultiValueKeyMaker *""'");
31062   }
31063   arg1 = reinterpret_cast< Xapian::MultiValueKeyMaker * >(argp1);
31064   {
31065     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
31066     delete arg1;
31067     SWIG_PYTHON_THREAD_END_ALLOW;
31068   }
31069   resultobj = SWIG_Py_Void();
31070   return resultobj;
31071 fail:
31072   return NULL;
31073 }
31074 
31075 
MultiValueKeyMaker_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31076 SWIGINTERN PyObject *MultiValueKeyMaker_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31077   PyObject *obj;
31078   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
31079   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__MultiValueKeyMaker, SWIG_NewClientData(obj));
31080   return SWIG_Py_Void();
31081 }
31082 
MultiValueKeyMaker_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31083 SWIGINTERN PyObject *MultiValueKeyMaker_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31084   return SWIG_Python_InitShadowInstance(args);
31085 }
31086 
_wrap_new_Stopper(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31087 SWIGINTERN PyObject *_wrap_new_Stopper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31088   PyObject *resultobj = 0;
31089   PyObject *arg1 = (PyObject *) 0 ;
31090   PyObject *swig_obj[1] ;
31091   Xapian::Stopper *result = 0 ;
31092 
31093   if (!args) SWIG_fail;
31094   swig_obj[0] = args;
31095   arg1 = swig_obj[0];
31096   {
31097     try {
31098       {
31099         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
31100         if ( arg1 != Py_None ) {
31101           /* subclassed */
31102           result = (Xapian::Stopper *)new SwigDirector_Stopper(arg1);
31103         } else {
31104           SWIG_SetErrorMsg(PyExc_RuntimeError,"accessing abstract class or protected constructor");
31105           SWIG_fail;
31106         }
31107 
31108         SWIG_PYTHON_THREAD_END_ALLOW;
31109       }
31110     } catch (...) {
31111       Xapian::SetPythonException();
31112       SWIG_fail;
31113     }
31114   }
31115   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Stopper, SWIG_POINTER_NEW |  0 );
31116   return resultobj;
31117 fail:
31118   return NULL;
31119 }
31120 
31121 
_wrap_Stopper___call__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31122 SWIGINTERN PyObject *_wrap_Stopper___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31123   PyObject *resultobj = 0;
31124   Xapian::Stopper *arg1 = (Xapian::Stopper *) 0 ;
31125   std::string *arg2 = 0 ;
31126   void *argp1 = 0 ;
31127   int res1 = 0 ;
31128   int res2 = SWIG_OLDOBJ ;
31129   PyObject *swig_obj[2] ;
31130   Swig::Director *director = 0;
31131   bool upcall = false;
31132   bool result;
31133 
31134   if (!SWIG_Python_UnpackTuple(args,"Stopper___call__",2,2,swig_obj)) SWIG_fail;
31135   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Stopper, 0 |  0 );
31136   if (!SWIG_IsOK(res1)) {
31137     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Stopper___call__" "', argument " "1"" of type '" "Xapian::Stopper const *""'");
31138   }
31139   arg1 = reinterpret_cast< Xapian::Stopper * >(argp1);
31140   {
31141     std::string *ptr = (std::string *)0;
31142     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
31143     if (!SWIG_IsOK(res2)) {
31144       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Stopper___call__" "', argument " "2"" of type '" "std::string const &""'");
31145     }
31146     if (!ptr) {
31147       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Stopper___call__" "', argument " "2"" of type '" "std::string const &""'");
31148     }
31149     arg2 = ptr;
31150   }
31151   director = SWIG_DIRECTOR_CAST(arg1);
31152   upcall = (director && (director->swig_get_self()==swig_obj[0]));
31153   try {
31154     {
31155       try {
31156         if (upcall) {
31157           Swig::DirectorPureVirtualException::raise("Xapian::Stopper::operator ()");
31158         } else {
31159           result = (bool)((Xapian::Stopper const *)arg1)->operator ()((std::string const &)*arg2);
31160         }
31161       } catch (...) {
31162         Xapian::SetPythonException();
31163         SWIG_fail;
31164       }
31165     }
31166   } catch (Swig::DirectorException&) {
31167     SWIG_fail;
31168   }
31169   resultobj = SWIG_From_bool(static_cast< bool >(result));
31170   if (SWIG_IsNewObj(res2)) delete arg2;
31171   return resultobj;
31172 fail:
31173   if (SWIG_IsNewObj(res2)) delete arg2;
31174   return NULL;
31175 }
31176 
31177 
_wrap_delete_Stopper(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31178 SWIGINTERN PyObject *_wrap_delete_Stopper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31179   PyObject *resultobj = 0;
31180   Xapian::Stopper *arg1 = (Xapian::Stopper *) 0 ;
31181   void *argp1 = 0 ;
31182   int res1 = 0 ;
31183   PyObject *swig_obj[1] ;
31184 
31185   if (!args) SWIG_fail;
31186   swig_obj[0] = args;
31187   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Stopper, SWIG_POINTER_DISOWN |  0 );
31188   if (!SWIG_IsOK(res1)) {
31189     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Stopper" "', argument " "1"" of type '" "Xapian::Stopper *""'");
31190   }
31191   arg1 = reinterpret_cast< Xapian::Stopper * >(argp1);
31192   {
31193     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
31194     delete arg1;
31195     SWIG_PYTHON_THREAD_END_ALLOW;
31196   }
31197   resultobj = SWIG_Py_Void();
31198   return resultobj;
31199 fail:
31200   return NULL;
31201 }
31202 
31203 
_wrap_Stopper___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31204 SWIGINTERN PyObject *_wrap_Stopper___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31205   PyObject *resultobj = 0;
31206   Xapian::Stopper *arg1 = (Xapian::Stopper *) 0 ;
31207   void *argp1 = 0 ;
31208   int res1 = 0 ;
31209   PyObject *swig_obj[1] ;
31210   Swig::Director *director = 0;
31211   bool upcall = false;
31212   std::string result;
31213 
31214   if (!args) SWIG_fail;
31215   swig_obj[0] = args;
31216   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Stopper, 0 |  0 );
31217   if (!SWIG_IsOK(res1)) {
31218     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Stopper___str__" "', argument " "1"" of type '" "Xapian::Stopper const *""'");
31219   }
31220   arg1 = reinterpret_cast< Xapian::Stopper * >(argp1);
31221   director = SWIG_DIRECTOR_CAST(arg1);
31222   upcall = (director && (director->swig_get_self()==swig_obj[0]));
31223   try {
31224     {
31225       try {
31226         if (upcall) {
31227           result = ((Xapian::Stopper const *)arg1)->Xapian::Stopper::get_description();
31228         } else {
31229           result = ((Xapian::Stopper const *)arg1)->get_description();
31230         }
31231       } catch (...) {
31232         Xapian::SetPythonException();
31233         SWIG_fail;
31234       }
31235     }
31236   } catch (Swig::DirectorException&) {
31237     SWIG_fail;
31238   }
31239   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
31240   return resultobj;
31241 fail:
31242   return NULL;
31243 }
31244 
31245 
_wrap_Stopper_release(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31246 SWIGINTERN PyObject *_wrap_Stopper_release(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31247   PyObject *resultobj = 0;
31248   Xapian::Stopper *arg1 = (Xapian::Stopper *) 0 ;
31249   void *argp1 = 0 ;
31250   int res1 = 0 ;
31251   PyObject *swig_obj[1] ;
31252   Swig::Director *director = 0;
31253   Xapian::Stopper *result = 0 ;
31254 
31255   if (!args) SWIG_fail;
31256   swig_obj[0] = args;
31257   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Stopper, 0 |  0 );
31258   if (!SWIG_IsOK(res1)) {
31259     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Stopper_release" "', argument " "1"" of type '" "Xapian::Stopper const *""'");
31260   }
31261   arg1 = reinterpret_cast< Xapian::Stopper * >(argp1);
31262   {
31263     try {
31264       {
31265         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
31266         result = (Xapian::Stopper *)((Xapian::Stopper const *)arg1)->release();
31267         SWIG_PYTHON_THREAD_END_ALLOW;
31268       }
31269     } catch (...) {
31270       Xapian::SetPythonException();
31271       SWIG_fail;
31272     }
31273   }
31274   director = SWIG_DIRECTOR_CAST(result);
31275   if (director) {
31276     resultobj = director->swig_get_self();
31277     Py_INCREF(resultobj);
31278   } else {
31279     resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Stopper, 0 |  0 );
31280   }
31281   return resultobj;
31282 fail:
31283   return NULL;
31284 }
31285 
31286 
_wrap_disown_Stopper(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31287 SWIGINTERN PyObject *_wrap_disown_Stopper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31288   PyObject *resultobj = 0;
31289   Xapian::Stopper *arg1 = (Xapian::Stopper *) 0 ;
31290   void *argp1 = 0 ;
31291   int res1 = 0 ;
31292   PyObject *swig_obj[1] ;
31293 
31294   if (!args) SWIG_fail;
31295   swig_obj[0] = args;
31296   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Stopper, 0 |  0 );
31297   if (!SWIG_IsOK(res1)) {
31298     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_Stopper" "', argument " "1"" of type '" "Xapian::Stopper *""'");
31299   }
31300   arg1 = reinterpret_cast< Xapian::Stopper * >(argp1);
31301   {
31302     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
31303     {
31304       Swig::Director *director = SWIG_DIRECTOR_CAST(arg1);
31305       if (director) director->swig_disown();
31306     }
31307 
31308     SWIG_PYTHON_THREAD_END_ALLOW;
31309   }
31310   resultobj = SWIG_Py_Void();
31311   return resultobj;
31312 fail:
31313   return NULL;
31314 }
31315 
31316 
Stopper_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31317 SWIGINTERN PyObject *Stopper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31318   PyObject *obj;
31319   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
31320   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__Stopper, SWIG_NewClientData(obj));
31321   return SWIG_Py_Void();
31322 }
31323 
Stopper_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31324 SWIGINTERN PyObject *Stopper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31325   return SWIG_Python_InitShadowInstance(args);
31326 }
31327 
_wrap_new_SimpleStopper__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))31328 SWIGINTERN PyObject *_wrap_new_SimpleStopper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
31329   PyObject *resultobj = 0;
31330   Xapian::SimpleStopper *result = 0 ;
31331 
31332   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
31333   {
31334     try {
31335       {
31336         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
31337         result = (Xapian::SimpleStopper *)new Xapian::SimpleStopper();
31338         SWIG_PYTHON_THREAD_END_ALLOW;
31339       }
31340     } catch (...) {
31341       Xapian::SetPythonException();
31342       SWIG_fail;
31343     }
31344   }
31345   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__SimpleStopper, SWIG_POINTER_NEW |  0 );
31346   return resultobj;
31347 fail:
31348   return NULL;
31349 }
31350 
31351 
_wrap_SimpleStopper_add(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31352 SWIGINTERN PyObject *_wrap_SimpleStopper_add(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31353   PyObject *resultobj = 0;
31354   Xapian::SimpleStopper *arg1 = (Xapian::SimpleStopper *) 0 ;
31355   std::string *arg2 = 0 ;
31356   void *argp1 = 0 ;
31357   int res1 = 0 ;
31358   int res2 = SWIG_OLDOBJ ;
31359   PyObject *swig_obj[2] ;
31360 
31361   if (!SWIG_Python_UnpackTuple(args,"SimpleStopper_add",2,2,swig_obj)) SWIG_fail;
31362   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__SimpleStopper, 0 |  0 );
31363   if (!SWIG_IsOK(res1)) {
31364     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimpleStopper_add" "', argument " "1"" of type '" "Xapian::SimpleStopper *""'");
31365   }
31366   arg1 = reinterpret_cast< Xapian::SimpleStopper * >(argp1);
31367   {
31368     std::string *ptr = (std::string *)0;
31369     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
31370     if (!SWIG_IsOK(res2)) {
31371       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimpleStopper_add" "', argument " "2"" of type '" "std::string const &""'");
31372     }
31373     if (!ptr) {
31374       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimpleStopper_add" "', argument " "2"" of type '" "std::string const &""'");
31375     }
31376     arg2 = ptr;
31377   }
31378   {
31379     try {
31380       {
31381         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
31382         (arg1)->add((std::string const &)*arg2);
31383         SWIG_PYTHON_THREAD_END_ALLOW;
31384       }
31385     } catch (...) {
31386       Xapian::SetPythonException();
31387       SWIG_fail;
31388     }
31389   }
31390   resultobj = SWIG_Py_Void();
31391   if (SWIG_IsNewObj(res2)) delete arg2;
31392   return resultobj;
31393 fail:
31394   if (SWIG_IsNewObj(res2)) delete arg2;
31395   return NULL;
31396 }
31397 
31398 
_wrap_new_SimpleStopper__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)31399 SWIGINTERN PyObject *_wrap_new_SimpleStopper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31400   PyObject *resultobj = 0;
31401   std::string *arg1 = 0 ;
31402   int res1 = SWIG_OLDOBJ ;
31403   Xapian::SimpleStopper *result = 0 ;
31404 
31405   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
31406   {
31407     std::string *ptr = (std::string *)0;
31408     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
31409     if (!SWIG_IsOK(res1)) {
31410       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SimpleStopper" "', argument " "1"" of type '" "std::string const &""'");
31411     }
31412     if (!ptr) {
31413       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SimpleStopper" "', argument " "1"" of type '" "std::string const &""'");
31414     }
31415     arg1 = ptr;
31416   }
31417   {
31418     try {
31419       {
31420         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
31421         result = (Xapian::SimpleStopper *)new_Xapian_SimpleStopper__SWIG_2((std::string const &)*arg1);
31422         SWIG_PYTHON_THREAD_END_ALLOW;
31423       }
31424     } catch (...) {
31425       Xapian::SetPythonException();
31426       SWIG_fail;
31427     }
31428   }
31429   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__SimpleStopper, SWIG_POINTER_NEW |  0 );
31430   if (SWIG_IsNewObj(res1)) delete arg1;
31431   return resultobj;
31432 fail:
31433   if (SWIG_IsNewObj(res1)) delete arg1;
31434   return NULL;
31435 }
31436 
31437 
_wrap_new_SimpleStopper(PyObject * self,PyObject * args)31438 SWIGINTERN PyObject *_wrap_new_SimpleStopper(PyObject *self, PyObject *args) {
31439   Py_ssize_t argc;
31440   PyObject *argv[2] = {
31441     0
31442   };
31443 
31444   if (!(argc = SWIG_Python_UnpackTuple(args,"new_SimpleStopper",0,1,argv))) SWIG_fail;
31445   --argc;
31446   if (argc == 0) {
31447     return _wrap_new_SimpleStopper__SWIG_0(self, argc, argv);
31448   }
31449   if (argc == 1) {
31450     return _wrap_new_SimpleStopper__SWIG_2(self, argc, argv);
31451   }
31452 
31453 fail:
31454   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_SimpleStopper'.\n"
31455     "  Possible C/C++ prototypes are:\n"
31456     "    Xapian::SimpleStopper::SimpleStopper()\n"
31457     "    Xapian::SimpleStopper::SimpleStopper(std::string const &)\n");
31458   return 0;
31459 }
31460 
31461 
_wrap_delete_SimpleStopper(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31462 SWIGINTERN PyObject *_wrap_delete_SimpleStopper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31463   PyObject *resultobj = 0;
31464   Xapian::SimpleStopper *arg1 = (Xapian::SimpleStopper *) 0 ;
31465   void *argp1 = 0 ;
31466   int res1 = 0 ;
31467   PyObject *swig_obj[1] ;
31468 
31469   if (!args) SWIG_fail;
31470   swig_obj[0] = args;
31471   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__SimpleStopper, SWIG_POINTER_DISOWN |  0 );
31472   if (!SWIG_IsOK(res1)) {
31473     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SimpleStopper" "', argument " "1"" of type '" "Xapian::SimpleStopper *""'");
31474   }
31475   arg1 = reinterpret_cast< Xapian::SimpleStopper * >(argp1);
31476   {
31477     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
31478     delete arg1;
31479     SWIG_PYTHON_THREAD_END_ALLOW;
31480   }
31481   resultobj = SWIG_Py_Void();
31482   return resultobj;
31483 fail:
31484   return NULL;
31485 }
31486 
31487 
SimpleStopper_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31488 SWIGINTERN PyObject *SimpleStopper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31489   PyObject *obj;
31490   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
31491   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__SimpleStopper, SWIG_NewClientData(obj));
31492   return SWIG_Py_Void();
31493 }
31494 
SimpleStopper_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31495 SWIGINTERN PyObject *SimpleStopper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31496   return SWIG_Python_InitShadowInstance(args);
31497 }
31498 
_wrap_new_RangeProcessor__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)31499 SWIGINTERN PyObject *_wrap_new_RangeProcessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31500   PyObject *resultobj = 0;
31501   PyObject *arg1 = (PyObject *) 0 ;
31502   Xapian::RangeProcessor *result = 0 ;
31503 
31504   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
31505   arg1 = swig_obj[0];
31506   {
31507     try {
31508       {
31509         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
31510         if ( arg1 != Py_None ) {
31511           /* subclassed */
31512           result = (Xapian::RangeProcessor *)new SwigDirector_RangeProcessor(arg1);
31513         } else {
31514           result = (Xapian::RangeProcessor *)new Xapian::RangeProcessor();
31515         }
31516 
31517         SWIG_PYTHON_THREAD_END_ALLOW;
31518       }
31519     } catch (...) {
31520       Xapian::SetPythonException();
31521       SWIG_fail;
31522     }
31523   }
31524   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__RangeProcessor, SWIG_POINTER_NEW |  0 );
31525   return resultobj;
31526 fail:
31527   return NULL;
31528 }
31529 
31530 
_wrap_new_RangeProcessor__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)31531 SWIGINTERN PyObject *_wrap_new_RangeProcessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31532   PyObject *resultobj = 0;
31533   PyObject *arg1 = (PyObject *) 0 ;
31534   Xapian::valueno arg2 ;
31535   std::string *arg3 = 0 ;
31536   unsigned int arg4 ;
31537   unsigned int val2 ;
31538   int ecode2 = 0 ;
31539   int res3 = SWIG_OLDOBJ ;
31540   unsigned int val4 ;
31541   int ecode4 = 0 ;
31542   Xapian::RangeProcessor *result = 0 ;
31543 
31544   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
31545   arg1 = swig_obj[0];
31546   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
31547   if (!SWIG_IsOK(ecode2)) {
31548     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RangeProcessor" "', argument " "2"" of type '" "Xapian::valueno""'");
31549   }
31550   arg2 = static_cast< Xapian::valueno >(val2);
31551   {
31552     std::string *ptr = (std::string *)0;
31553     res3 = XapianSWIG_anystring_as_ptr(swig_obj[2], &ptr);
31554     if (!SWIG_IsOK(res3)) {
31555       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_RangeProcessor" "', argument " "3"" of type '" "std::string const &""'");
31556     }
31557     if (!ptr) {
31558       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RangeProcessor" "', argument " "3"" of type '" "std::string const &""'");
31559     }
31560     arg3 = ptr;
31561   }
31562   ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4);
31563   if (!SWIG_IsOK(ecode4)) {
31564     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_RangeProcessor" "', argument " "4"" of type '" "unsigned int""'");
31565   }
31566   arg4 = static_cast< unsigned int >(val4);
31567   {
31568     try {
31569       {
31570         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
31571         if ( arg1 != Py_None ) {
31572           /* subclassed */
31573           result = (Xapian::RangeProcessor *)new SwigDirector_RangeProcessor(arg1,arg2,(std::string const &)*arg3,arg4);
31574         } else {
31575           result = (Xapian::RangeProcessor *)new Xapian::RangeProcessor(arg2,(std::string const &)*arg3,arg4);
31576         }
31577 
31578         SWIG_PYTHON_THREAD_END_ALLOW;
31579       }
31580     } catch (...) {
31581       Xapian::SetPythonException();
31582       SWIG_fail;
31583     }
31584   }
31585   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__RangeProcessor, SWIG_POINTER_NEW |  0 );
31586   if (SWIG_IsNewObj(res3)) delete arg3;
31587   return resultobj;
31588 fail:
31589   if (SWIG_IsNewObj(res3)) delete arg3;
31590   return NULL;
31591 }
31592 
31593 
_wrap_new_RangeProcessor__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)31594 SWIGINTERN PyObject *_wrap_new_RangeProcessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31595   PyObject *resultobj = 0;
31596   PyObject *arg1 = (PyObject *) 0 ;
31597   Xapian::valueno arg2 ;
31598   std::string *arg3 = 0 ;
31599   unsigned int val2 ;
31600   int ecode2 = 0 ;
31601   int res3 = SWIG_OLDOBJ ;
31602   Xapian::RangeProcessor *result = 0 ;
31603 
31604   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
31605   arg1 = swig_obj[0];
31606   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
31607   if (!SWIG_IsOK(ecode2)) {
31608     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RangeProcessor" "', argument " "2"" of type '" "Xapian::valueno""'");
31609   }
31610   arg2 = static_cast< Xapian::valueno >(val2);
31611   {
31612     std::string *ptr = (std::string *)0;
31613     res3 = XapianSWIG_anystring_as_ptr(swig_obj[2], &ptr);
31614     if (!SWIG_IsOK(res3)) {
31615       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_RangeProcessor" "', argument " "3"" of type '" "std::string const &""'");
31616     }
31617     if (!ptr) {
31618       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RangeProcessor" "', argument " "3"" of type '" "std::string const &""'");
31619     }
31620     arg3 = ptr;
31621   }
31622   {
31623     try {
31624       {
31625         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
31626         if ( arg1 != Py_None ) {
31627           /* subclassed */
31628           result = (Xapian::RangeProcessor *)new SwigDirector_RangeProcessor(arg1,arg2,(std::string const &)*arg3);
31629         } else {
31630           result = (Xapian::RangeProcessor *)new Xapian::RangeProcessor(arg2,(std::string const &)*arg3);
31631         }
31632 
31633         SWIG_PYTHON_THREAD_END_ALLOW;
31634       }
31635     } catch (...) {
31636       Xapian::SetPythonException();
31637       SWIG_fail;
31638     }
31639   }
31640   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__RangeProcessor, SWIG_POINTER_NEW |  0 );
31641   if (SWIG_IsNewObj(res3)) delete arg3;
31642   return resultobj;
31643 fail:
31644   if (SWIG_IsNewObj(res3)) delete arg3;
31645   return NULL;
31646 }
31647 
31648 
_wrap_new_RangeProcessor__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)31649 SWIGINTERN PyObject *_wrap_new_RangeProcessor__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31650   PyObject *resultobj = 0;
31651   PyObject *arg1 = (PyObject *) 0 ;
31652   Xapian::valueno arg2 ;
31653   unsigned int val2 ;
31654   int ecode2 = 0 ;
31655   Xapian::RangeProcessor *result = 0 ;
31656 
31657   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
31658   arg1 = swig_obj[0];
31659   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
31660   if (!SWIG_IsOK(ecode2)) {
31661     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RangeProcessor" "', argument " "2"" of type '" "Xapian::valueno""'");
31662   }
31663   arg2 = static_cast< Xapian::valueno >(val2);
31664   {
31665     try {
31666       {
31667         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
31668         if ( arg1 != Py_None ) {
31669           /* subclassed */
31670           result = (Xapian::RangeProcessor *)new SwigDirector_RangeProcessor(arg1,arg2);
31671         } else {
31672           result = (Xapian::RangeProcessor *)new Xapian::RangeProcessor(arg2);
31673         }
31674 
31675         SWIG_PYTHON_THREAD_END_ALLOW;
31676       }
31677     } catch (...) {
31678       Xapian::SetPythonException();
31679       SWIG_fail;
31680     }
31681   }
31682   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__RangeProcessor, SWIG_POINTER_NEW |  0 );
31683   return resultobj;
31684 fail:
31685   return NULL;
31686 }
31687 
31688 
_wrap_new_RangeProcessor(PyObject * self,PyObject * args)31689 SWIGINTERN PyObject *_wrap_new_RangeProcessor(PyObject *self, PyObject *args) {
31690   Py_ssize_t argc;
31691   PyObject *argv[5] = {
31692     0
31693   };
31694 
31695   if (!(argc = SWIG_Python_UnpackTuple(args,"new_RangeProcessor",0,4,argv))) SWIG_fail;
31696   --argc;
31697   if (argc == 1) {
31698     return _wrap_new_RangeProcessor__SWIG_0(self, argc, argv);
31699   }
31700   if (argc == 2) {
31701     return _wrap_new_RangeProcessor__SWIG_3(self, argc, argv);
31702   }
31703   if (argc == 3) {
31704     return _wrap_new_RangeProcessor__SWIG_2(self, argc, argv);
31705   }
31706   if (argc == 4) {
31707     return _wrap_new_RangeProcessor__SWIG_1(self, argc, argv);
31708   }
31709 
31710 fail:
31711   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_RangeProcessor'.\n"
31712     "  Possible C/C++ prototypes are:\n"
31713     "    Xapian::RangeProcessor::RangeProcessor()\n"
31714     "    Xapian::RangeProcessor::RangeProcessor(Xapian::valueno,std::string const &,unsigned int)\n"
31715     "    Xapian::RangeProcessor::RangeProcessor(Xapian::valueno,std::string const &)\n"
31716     "    Xapian::RangeProcessor::RangeProcessor(PyObject *,Xapian::valueno)\n");
31717   return 0;
31718 }
31719 
31720 
_wrap_delete_RangeProcessor(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31721 SWIGINTERN PyObject *_wrap_delete_RangeProcessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31722   PyObject *resultobj = 0;
31723   Xapian::RangeProcessor *arg1 = (Xapian::RangeProcessor *) 0 ;
31724   void *argp1 = 0 ;
31725   int res1 = 0 ;
31726   PyObject *swig_obj[1] ;
31727 
31728   if (!args) SWIG_fail;
31729   swig_obj[0] = args;
31730   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__RangeProcessor, SWIG_POINTER_DISOWN |  0 );
31731   if (!SWIG_IsOK(res1)) {
31732     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RangeProcessor" "', argument " "1"" of type '" "Xapian::RangeProcessor *""'");
31733   }
31734   arg1 = reinterpret_cast< Xapian::RangeProcessor * >(argp1);
31735   {
31736     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
31737     delete arg1;
31738     SWIG_PYTHON_THREAD_END_ALLOW;
31739   }
31740   resultobj = SWIG_Py_Void();
31741   return resultobj;
31742 fail:
31743   return NULL;
31744 }
31745 
31746 
_wrap_RangeProcessor_check_range(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31747 SWIGINTERN PyObject *_wrap_RangeProcessor_check_range(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31748   PyObject *resultobj = 0;
31749   Xapian::RangeProcessor *arg1 = (Xapian::RangeProcessor *) 0 ;
31750   std::string *arg2 = 0 ;
31751   std::string *arg3 = 0 ;
31752   void *argp1 = 0 ;
31753   int res1 = 0 ;
31754   int res2 = SWIG_OLDOBJ ;
31755   int res3 = SWIG_OLDOBJ ;
31756   PyObject *swig_obj[3] ;
31757   Xapian::Query result;
31758 
31759   if (!SWIG_Python_UnpackTuple(args,"RangeProcessor_check_range",3,3,swig_obj)) SWIG_fail;
31760   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__RangeProcessor, 0 |  0 );
31761   if (!SWIG_IsOK(res1)) {
31762     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RangeProcessor_check_range" "', argument " "1"" of type '" "Xapian::RangeProcessor *""'");
31763   }
31764   arg1 = reinterpret_cast< Xapian::RangeProcessor * >(argp1);
31765   {
31766     std::string *ptr = (std::string *)0;
31767     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
31768     if (!SWIG_IsOK(res2)) {
31769       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RangeProcessor_check_range" "', argument " "2"" of type '" "std::string const &""'");
31770     }
31771     if (!ptr) {
31772       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RangeProcessor_check_range" "', argument " "2"" of type '" "std::string const &""'");
31773     }
31774     arg2 = ptr;
31775   }
31776   {
31777     std::string *ptr = (std::string *)0;
31778     res3 = XapianSWIG_anystring_as_ptr(swig_obj[2], &ptr);
31779     if (!SWIG_IsOK(res3)) {
31780       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RangeProcessor_check_range" "', argument " "3"" of type '" "std::string const &""'");
31781     }
31782     if (!ptr) {
31783       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RangeProcessor_check_range" "', argument " "3"" of type '" "std::string const &""'");
31784     }
31785     arg3 = ptr;
31786   }
31787   {
31788     try {
31789       {
31790         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
31791         result = (arg1)->check_range((std::string const &)*arg2,(std::string const &)*arg3);
31792         SWIG_PYTHON_THREAD_END_ALLOW;
31793       }
31794     } catch (...) {
31795       Xapian::SetPythonException();
31796       SWIG_fail;
31797     }
31798   }
31799   resultobj = SWIG_NewPointerObj((new Xapian::Query(static_cast< const Xapian::Query& >(result))), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_OWN |  0 );
31800   if (SWIG_IsNewObj(res2)) delete arg2;
31801   if (SWIG_IsNewObj(res3)) delete arg3;
31802   return resultobj;
31803 fail:
31804   if (SWIG_IsNewObj(res2)) delete arg2;
31805   if (SWIG_IsNewObj(res3)) delete arg3;
31806   return NULL;
31807 }
31808 
31809 
_wrap_RangeProcessor___call__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31810 SWIGINTERN PyObject *_wrap_RangeProcessor___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31811   PyObject *resultobj = 0;
31812   Xapian::RangeProcessor *arg1 = (Xapian::RangeProcessor *) 0 ;
31813   std::string *arg2 = 0 ;
31814   std::string *arg3 = 0 ;
31815   void *argp1 = 0 ;
31816   int res1 = 0 ;
31817   int res2 = SWIG_OLDOBJ ;
31818   int res3 = SWIG_OLDOBJ ;
31819   PyObject *swig_obj[3] ;
31820   Swig::Director *director = 0;
31821   bool upcall = false;
31822   Xapian::Query result;
31823 
31824   if (!SWIG_Python_UnpackTuple(args,"RangeProcessor___call__",3,3,swig_obj)) SWIG_fail;
31825   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__RangeProcessor, 0 |  0 );
31826   if (!SWIG_IsOK(res1)) {
31827     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RangeProcessor___call__" "', argument " "1"" of type '" "Xapian::RangeProcessor *""'");
31828   }
31829   arg1 = reinterpret_cast< Xapian::RangeProcessor * >(argp1);
31830   {
31831     std::string *ptr = (std::string *)0;
31832     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
31833     if (!SWIG_IsOK(res2)) {
31834       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RangeProcessor___call__" "', argument " "2"" of type '" "std::string const &""'");
31835     }
31836     if (!ptr) {
31837       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RangeProcessor___call__" "', argument " "2"" of type '" "std::string const &""'");
31838     }
31839     arg2 = ptr;
31840   }
31841   {
31842     std::string *ptr = (std::string *)0;
31843     res3 = XapianSWIG_anystring_as_ptr(swig_obj[2], &ptr);
31844     if (!SWIG_IsOK(res3)) {
31845       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RangeProcessor___call__" "', argument " "3"" of type '" "std::string const &""'");
31846     }
31847     if (!ptr) {
31848       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RangeProcessor___call__" "', argument " "3"" of type '" "std::string const &""'");
31849     }
31850     arg3 = ptr;
31851   }
31852   director = SWIG_DIRECTOR_CAST(arg1);
31853   upcall = (director && (director->swig_get_self()==swig_obj[0]));
31854   try {
31855     {
31856       try {
31857         if (upcall) {
31858           result = (arg1)->Xapian::RangeProcessor::operator ()((std::string const &)*arg2,(std::string const &)*arg3);
31859         } else {
31860           result = (arg1)->operator ()((std::string const &)*arg2,(std::string const &)*arg3);
31861         }
31862       } catch (...) {
31863         Xapian::SetPythonException();
31864         SWIG_fail;
31865       }
31866     }
31867   } catch (Swig::DirectorException&) {
31868     SWIG_fail;
31869   }
31870   resultobj = SWIG_NewPointerObj((new Xapian::Query(static_cast< const Xapian::Query& >(result))), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_OWN |  0 );
31871   if (SWIG_IsNewObj(res2)) delete arg2;
31872   if (SWIG_IsNewObj(res3)) delete arg3;
31873   return resultobj;
31874 fail:
31875   if (SWIG_IsNewObj(res2)) delete arg2;
31876   if (SWIG_IsNewObj(res3)) delete arg3;
31877   return NULL;
31878 }
31879 
31880 
_wrap_RangeProcessor_release(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31881 SWIGINTERN PyObject *_wrap_RangeProcessor_release(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31882   PyObject *resultobj = 0;
31883   Xapian::RangeProcessor *arg1 = (Xapian::RangeProcessor *) 0 ;
31884   void *argp1 = 0 ;
31885   int res1 = 0 ;
31886   PyObject *swig_obj[1] ;
31887   Swig::Director *director = 0;
31888   Xapian::RangeProcessor *result = 0 ;
31889 
31890   if (!args) SWIG_fail;
31891   swig_obj[0] = args;
31892   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__RangeProcessor, 0 |  0 );
31893   if (!SWIG_IsOK(res1)) {
31894     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RangeProcessor_release" "', argument " "1"" of type '" "Xapian::RangeProcessor const *""'");
31895   }
31896   arg1 = reinterpret_cast< Xapian::RangeProcessor * >(argp1);
31897   {
31898     try {
31899       {
31900         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
31901         result = (Xapian::RangeProcessor *)((Xapian::RangeProcessor const *)arg1)->release();
31902         SWIG_PYTHON_THREAD_END_ALLOW;
31903       }
31904     } catch (...) {
31905       Xapian::SetPythonException();
31906       SWIG_fail;
31907     }
31908   }
31909   director = SWIG_DIRECTOR_CAST(result);
31910   if (director) {
31911     resultobj = director->swig_get_self();
31912     Py_INCREF(resultobj);
31913   } else {
31914     resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__RangeProcessor, 0 |  0 );
31915   }
31916   return resultobj;
31917 fail:
31918   return NULL;
31919 }
31920 
31921 
_wrap_disown_RangeProcessor(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31922 SWIGINTERN PyObject *_wrap_disown_RangeProcessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31923   PyObject *resultobj = 0;
31924   Xapian::RangeProcessor *arg1 = (Xapian::RangeProcessor *) 0 ;
31925   void *argp1 = 0 ;
31926   int res1 = 0 ;
31927   PyObject *swig_obj[1] ;
31928 
31929   if (!args) SWIG_fail;
31930   swig_obj[0] = args;
31931   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__RangeProcessor, 0 |  0 );
31932   if (!SWIG_IsOK(res1)) {
31933     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_RangeProcessor" "', argument " "1"" of type '" "Xapian::RangeProcessor *""'");
31934   }
31935   arg1 = reinterpret_cast< Xapian::RangeProcessor * >(argp1);
31936   {
31937     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
31938     {
31939       Swig::Director *director = SWIG_DIRECTOR_CAST(arg1);
31940       if (director) director->swig_disown();
31941     }
31942 
31943     SWIG_PYTHON_THREAD_END_ALLOW;
31944   }
31945   resultobj = SWIG_Py_Void();
31946   return resultobj;
31947 fail:
31948   return NULL;
31949 }
31950 
31951 
RangeProcessor_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31952 SWIGINTERN PyObject *RangeProcessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31953   PyObject *obj;
31954   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
31955   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__RangeProcessor, SWIG_NewClientData(obj));
31956   return SWIG_Py_Void();
31957 }
31958 
RangeProcessor_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31959 SWIGINTERN PyObject *RangeProcessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31960   return SWIG_Python_InitShadowInstance(args);
31961 }
31962 
_wrap_new_DateRangeProcessor__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)31963 SWIGINTERN PyObject *_wrap_new_DateRangeProcessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31964   PyObject *resultobj = 0;
31965   Xapian::valueno arg1 ;
31966   unsigned int arg2 ;
31967   int arg3 ;
31968   unsigned int val1 ;
31969   int ecode1 = 0 ;
31970   unsigned int val2 ;
31971   int ecode2 = 0 ;
31972   int val3 ;
31973   int ecode3 = 0 ;
31974   Xapian::DateRangeProcessor *result = 0 ;
31975 
31976   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
31977   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
31978   if (!SWIG_IsOK(ecode1)) {
31979     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
31980   }
31981   arg1 = static_cast< Xapian::valueno >(val1);
31982   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
31983   if (!SWIG_IsOK(ecode2)) {
31984     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DateRangeProcessor" "', argument " "2"" of type '" "unsigned int""'");
31985   }
31986   arg2 = static_cast< unsigned int >(val2);
31987   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
31988   if (!SWIG_IsOK(ecode3)) {
31989     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DateRangeProcessor" "', argument " "3"" of type '" "int""'");
31990   }
31991   arg3 = static_cast< int >(val3);
31992   {
31993     try {
31994       {
31995         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
31996         result = (Xapian::DateRangeProcessor *)new Xapian::DateRangeProcessor(arg1,arg2,arg3);
31997         SWIG_PYTHON_THREAD_END_ALLOW;
31998       }
31999     } catch (...) {
32000       Xapian::SetPythonException();
32001       SWIG_fail;
32002     }
32003   }
32004   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DateRangeProcessor, SWIG_POINTER_NEW |  0 );
32005   return resultobj;
32006 fail:
32007   return NULL;
32008 }
32009 
32010 
_wrap_new_DateRangeProcessor__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)32011 SWIGINTERN PyObject *_wrap_new_DateRangeProcessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32012   PyObject *resultobj = 0;
32013   Xapian::valueno arg1 ;
32014   unsigned int arg2 ;
32015   unsigned int val1 ;
32016   int ecode1 = 0 ;
32017   unsigned int val2 ;
32018   int ecode2 = 0 ;
32019   Xapian::DateRangeProcessor *result = 0 ;
32020 
32021   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
32022   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
32023   if (!SWIG_IsOK(ecode1)) {
32024     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
32025   }
32026   arg1 = static_cast< Xapian::valueno >(val1);
32027   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
32028   if (!SWIG_IsOK(ecode2)) {
32029     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DateRangeProcessor" "', argument " "2"" of type '" "unsigned int""'");
32030   }
32031   arg2 = static_cast< unsigned int >(val2);
32032   {
32033     try {
32034       {
32035         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
32036         result = (Xapian::DateRangeProcessor *)new Xapian::DateRangeProcessor(arg1,arg2);
32037         SWIG_PYTHON_THREAD_END_ALLOW;
32038       }
32039     } catch (...) {
32040       Xapian::SetPythonException();
32041       SWIG_fail;
32042     }
32043   }
32044   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DateRangeProcessor, SWIG_POINTER_NEW |  0 );
32045   return resultobj;
32046 fail:
32047   return NULL;
32048 }
32049 
32050 
_wrap_new_DateRangeProcessor__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)32051 SWIGINTERN PyObject *_wrap_new_DateRangeProcessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32052   PyObject *resultobj = 0;
32053   Xapian::valueno arg1 ;
32054   unsigned int val1 ;
32055   int ecode1 = 0 ;
32056   Xapian::DateRangeProcessor *result = 0 ;
32057 
32058   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
32059   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
32060   if (!SWIG_IsOK(ecode1)) {
32061     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
32062   }
32063   arg1 = static_cast< Xapian::valueno >(val1);
32064   {
32065     try {
32066       {
32067         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
32068         result = (Xapian::DateRangeProcessor *)new Xapian::DateRangeProcessor(arg1);
32069         SWIG_PYTHON_THREAD_END_ALLOW;
32070       }
32071     } catch (...) {
32072       Xapian::SetPythonException();
32073       SWIG_fail;
32074     }
32075   }
32076   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DateRangeProcessor, SWIG_POINTER_NEW |  0 );
32077   return resultobj;
32078 fail:
32079   return NULL;
32080 }
32081 
32082 
_wrap_new_DateRangeProcessor__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)32083 SWIGINTERN PyObject *_wrap_new_DateRangeProcessor__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32084   PyObject *resultobj = 0;
32085   Xapian::valueno arg1 ;
32086   std::string *arg2 = 0 ;
32087   unsigned int arg3 ;
32088   int arg4 ;
32089   unsigned int val1 ;
32090   int ecode1 = 0 ;
32091   int res2 = SWIG_OLDOBJ ;
32092   unsigned int val3 ;
32093   int ecode3 = 0 ;
32094   int val4 ;
32095   int ecode4 = 0 ;
32096   Xapian::DateRangeProcessor *result = 0 ;
32097 
32098   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
32099   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
32100   if (!SWIG_IsOK(ecode1)) {
32101     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
32102   }
32103   arg1 = static_cast< Xapian::valueno >(val1);
32104   {
32105     std::string *ptr = (std::string *)0;
32106     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
32107     if (!SWIG_IsOK(res2)) {
32108       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DateRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
32109     }
32110     if (!ptr) {
32111       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DateRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
32112     }
32113     arg2 = ptr;
32114   }
32115   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
32116   if (!SWIG_IsOK(ecode3)) {
32117     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DateRangeProcessor" "', argument " "3"" of type '" "unsigned int""'");
32118   }
32119   arg3 = static_cast< unsigned int >(val3);
32120   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
32121   if (!SWIG_IsOK(ecode4)) {
32122     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DateRangeProcessor" "', argument " "4"" of type '" "int""'");
32123   }
32124   arg4 = static_cast< int >(val4);
32125   {
32126     try {
32127       {
32128         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
32129         result = (Xapian::DateRangeProcessor *)new Xapian::DateRangeProcessor(arg1,(std::string const &)*arg2,arg3,arg4);
32130         SWIG_PYTHON_THREAD_END_ALLOW;
32131       }
32132     } catch (...) {
32133       Xapian::SetPythonException();
32134       SWIG_fail;
32135     }
32136   }
32137   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DateRangeProcessor, SWIG_POINTER_NEW |  0 );
32138   if (SWIG_IsNewObj(res2)) delete arg2;
32139   return resultobj;
32140 fail:
32141   if (SWIG_IsNewObj(res2)) delete arg2;
32142   return NULL;
32143 }
32144 
32145 
_wrap_new_DateRangeProcessor__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)32146 SWIGINTERN PyObject *_wrap_new_DateRangeProcessor__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32147   PyObject *resultobj = 0;
32148   Xapian::valueno arg1 ;
32149   std::string *arg2 = 0 ;
32150   unsigned int arg3 ;
32151   unsigned int val1 ;
32152   int ecode1 = 0 ;
32153   int res2 = SWIG_OLDOBJ ;
32154   unsigned int val3 ;
32155   int ecode3 = 0 ;
32156   Xapian::DateRangeProcessor *result = 0 ;
32157 
32158   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
32159   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
32160   if (!SWIG_IsOK(ecode1)) {
32161     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
32162   }
32163   arg1 = static_cast< Xapian::valueno >(val1);
32164   {
32165     std::string *ptr = (std::string *)0;
32166     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
32167     if (!SWIG_IsOK(res2)) {
32168       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DateRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
32169     }
32170     if (!ptr) {
32171       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DateRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
32172     }
32173     arg2 = ptr;
32174   }
32175   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
32176   if (!SWIG_IsOK(ecode3)) {
32177     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DateRangeProcessor" "', argument " "3"" of type '" "unsigned int""'");
32178   }
32179   arg3 = static_cast< unsigned int >(val3);
32180   {
32181     try {
32182       {
32183         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
32184         result = (Xapian::DateRangeProcessor *)new Xapian::DateRangeProcessor(arg1,(std::string const &)*arg2,arg3);
32185         SWIG_PYTHON_THREAD_END_ALLOW;
32186       }
32187     } catch (...) {
32188       Xapian::SetPythonException();
32189       SWIG_fail;
32190     }
32191   }
32192   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DateRangeProcessor, SWIG_POINTER_NEW |  0 );
32193   if (SWIG_IsNewObj(res2)) delete arg2;
32194   return resultobj;
32195 fail:
32196   if (SWIG_IsNewObj(res2)) delete arg2;
32197   return NULL;
32198 }
32199 
32200 
_wrap_new_DateRangeProcessor__SWIG_5(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)32201 SWIGINTERN PyObject *_wrap_new_DateRangeProcessor__SWIG_5(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32202   PyObject *resultobj = 0;
32203   Xapian::valueno arg1 ;
32204   std::string *arg2 = 0 ;
32205   unsigned int val1 ;
32206   int ecode1 = 0 ;
32207   int res2 = SWIG_OLDOBJ ;
32208   Xapian::DateRangeProcessor *result = 0 ;
32209 
32210   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
32211   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
32212   if (!SWIG_IsOK(ecode1)) {
32213     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
32214   }
32215   arg1 = static_cast< Xapian::valueno >(val1);
32216   {
32217     std::string *ptr = (std::string *)0;
32218     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
32219     if (!SWIG_IsOK(res2)) {
32220       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DateRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
32221     }
32222     if (!ptr) {
32223       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DateRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
32224     }
32225     arg2 = ptr;
32226   }
32227   {
32228     try {
32229       {
32230         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
32231         result = (Xapian::DateRangeProcessor *)new Xapian::DateRangeProcessor(arg1,(std::string const &)*arg2);
32232         SWIG_PYTHON_THREAD_END_ALLOW;
32233       }
32234     } catch (...) {
32235       Xapian::SetPythonException();
32236       SWIG_fail;
32237     }
32238   }
32239   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DateRangeProcessor, SWIG_POINTER_NEW |  0 );
32240   if (SWIG_IsNewObj(res2)) delete arg2;
32241   return resultobj;
32242 fail:
32243   if (SWIG_IsNewObj(res2)) delete arg2;
32244   return NULL;
32245 }
32246 
32247 
_wrap_new_DateRangeProcessor(PyObject * self,PyObject * args)32248 SWIGINTERN PyObject *_wrap_new_DateRangeProcessor(PyObject *self, PyObject *args) {
32249   Py_ssize_t argc;
32250   PyObject *argv[5] = {
32251     0
32252   };
32253 
32254   if (!(argc = SWIG_Python_UnpackTuple(args,"new_DateRangeProcessor",0,4,argv))) SWIG_fail;
32255   --argc;
32256   if (argc == 1) {
32257     return _wrap_new_DateRangeProcessor__SWIG_2(self, argc, argv);
32258   }
32259   if (argc == 2) {
32260     int _v = 0;
32261     {
32262       {
32263         int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
32264         _v = SWIG_CheckState(res);
32265       }
32266     }
32267     if (!_v) goto check_2;
32268     return _wrap_new_DateRangeProcessor__SWIG_1(self, argc, argv);
32269   }
32270 check_2:
32271 
32272   if (argc == 2) {
32273     return _wrap_new_DateRangeProcessor__SWIG_5(self, argc, argv);
32274   }
32275   if (argc == 3) {
32276     int _v = 0;
32277     {
32278       {
32279         int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
32280         _v = SWIG_CheckState(res);
32281       }
32282     }
32283     if (!_v) goto check_4;
32284     {
32285       {
32286         int res = SWIG_AsVal_int(argv[2], NULL);
32287         _v = SWIG_CheckState(res);
32288       }
32289     }
32290     if (!_v) goto check_4;
32291     return _wrap_new_DateRangeProcessor__SWIG_0(self, argc, argv);
32292   }
32293 check_4:
32294 
32295   if (argc == 3) {
32296     return _wrap_new_DateRangeProcessor__SWIG_4(self, argc, argv);
32297   }
32298   if (argc == 4) {
32299     return _wrap_new_DateRangeProcessor__SWIG_3(self, argc, argv);
32300   }
32301 
32302 fail:
32303   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_DateRangeProcessor'.\n"
32304     "  Possible C/C++ prototypes are:\n"
32305     "    Xapian::DateRangeProcessor::DateRangeProcessor(Xapian::valueno,unsigned int,int)\n"
32306     "    Xapian::DateRangeProcessor::DateRangeProcessor(Xapian::valueno,unsigned int)\n"
32307     "    Xapian::DateRangeProcessor::DateRangeProcessor(Xapian::valueno)\n"
32308     "    Xapian::DateRangeProcessor::DateRangeProcessor(Xapian::valueno,std::string const &,unsigned int,int)\n"
32309     "    Xapian::DateRangeProcessor::DateRangeProcessor(Xapian::valueno,std::string const &,unsigned int)\n"
32310     "    Xapian::DateRangeProcessor::DateRangeProcessor(Xapian::valueno,std::string const &)\n");
32311   return 0;
32312 }
32313 
32314 
_wrap_delete_DateRangeProcessor(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32315 SWIGINTERN PyObject *_wrap_delete_DateRangeProcessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32316   PyObject *resultobj = 0;
32317   Xapian::DateRangeProcessor *arg1 = (Xapian::DateRangeProcessor *) 0 ;
32318   void *argp1 = 0 ;
32319   int res1 = 0 ;
32320   PyObject *swig_obj[1] ;
32321 
32322   if (!args) SWIG_fail;
32323   swig_obj[0] = args;
32324   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__DateRangeProcessor, SWIG_POINTER_DISOWN |  0 );
32325   if (!SWIG_IsOK(res1)) {
32326     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DateRangeProcessor" "', argument " "1"" of type '" "Xapian::DateRangeProcessor *""'");
32327   }
32328   arg1 = reinterpret_cast< Xapian::DateRangeProcessor * >(argp1);
32329   {
32330     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
32331     delete arg1;
32332     SWIG_PYTHON_THREAD_END_ALLOW;
32333   }
32334   resultobj = SWIG_Py_Void();
32335   return resultobj;
32336 fail:
32337   return NULL;
32338 }
32339 
32340 
DateRangeProcessor_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32341 SWIGINTERN PyObject *DateRangeProcessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32342   PyObject *obj;
32343   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
32344   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__DateRangeProcessor, SWIG_NewClientData(obj));
32345   return SWIG_Py_Void();
32346 }
32347 
DateRangeProcessor_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32348 SWIGINTERN PyObject *DateRangeProcessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32349   return SWIG_Python_InitShadowInstance(args);
32350 }
32351 
_wrap_new_NumberRangeProcessor__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)32352 SWIGINTERN PyObject *_wrap_new_NumberRangeProcessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32353   PyObject *resultobj = 0;
32354   Xapian::valueno arg1 ;
32355   std::string *arg2 = 0 ;
32356   unsigned int arg3 ;
32357   unsigned int val1 ;
32358   int ecode1 = 0 ;
32359   int res2 = SWIG_OLDOBJ ;
32360   unsigned int val3 ;
32361   int ecode3 = 0 ;
32362   Xapian::NumberRangeProcessor *result = 0 ;
32363 
32364   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
32365   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
32366   if (!SWIG_IsOK(ecode1)) {
32367     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NumberRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
32368   }
32369   arg1 = static_cast< Xapian::valueno >(val1);
32370   {
32371     std::string *ptr = (std::string *)0;
32372     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
32373     if (!SWIG_IsOK(res2)) {
32374       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NumberRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
32375     }
32376     if (!ptr) {
32377       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NumberRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
32378     }
32379     arg2 = ptr;
32380   }
32381   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
32382   if (!SWIG_IsOK(ecode3)) {
32383     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NumberRangeProcessor" "', argument " "3"" of type '" "unsigned int""'");
32384   }
32385   arg3 = static_cast< unsigned int >(val3);
32386   {
32387     try {
32388       {
32389         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
32390         result = (Xapian::NumberRangeProcessor *)new Xapian::NumberRangeProcessor(arg1,(std::string const &)*arg2,arg3);
32391         SWIG_PYTHON_THREAD_END_ALLOW;
32392       }
32393     } catch (...) {
32394       Xapian::SetPythonException();
32395       SWIG_fail;
32396     }
32397   }
32398   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__NumberRangeProcessor, SWIG_POINTER_NEW |  0 );
32399   if (SWIG_IsNewObj(res2)) delete arg2;
32400   return resultobj;
32401 fail:
32402   if (SWIG_IsNewObj(res2)) delete arg2;
32403   return NULL;
32404 }
32405 
32406 
_wrap_new_NumberRangeProcessor__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)32407 SWIGINTERN PyObject *_wrap_new_NumberRangeProcessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32408   PyObject *resultobj = 0;
32409   Xapian::valueno arg1 ;
32410   std::string *arg2 = 0 ;
32411   unsigned int val1 ;
32412   int ecode1 = 0 ;
32413   int res2 = SWIG_OLDOBJ ;
32414   Xapian::NumberRangeProcessor *result = 0 ;
32415 
32416   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
32417   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
32418   if (!SWIG_IsOK(ecode1)) {
32419     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NumberRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
32420   }
32421   arg1 = static_cast< Xapian::valueno >(val1);
32422   {
32423     std::string *ptr = (std::string *)0;
32424     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
32425     if (!SWIG_IsOK(res2)) {
32426       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NumberRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
32427     }
32428     if (!ptr) {
32429       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NumberRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
32430     }
32431     arg2 = ptr;
32432   }
32433   {
32434     try {
32435       {
32436         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
32437         result = (Xapian::NumberRangeProcessor *)new Xapian::NumberRangeProcessor(arg1,(std::string const &)*arg2);
32438         SWIG_PYTHON_THREAD_END_ALLOW;
32439       }
32440     } catch (...) {
32441       Xapian::SetPythonException();
32442       SWIG_fail;
32443     }
32444   }
32445   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__NumberRangeProcessor, SWIG_POINTER_NEW |  0 );
32446   if (SWIG_IsNewObj(res2)) delete arg2;
32447   return resultobj;
32448 fail:
32449   if (SWIG_IsNewObj(res2)) delete arg2;
32450   return NULL;
32451 }
32452 
32453 
_wrap_new_NumberRangeProcessor__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)32454 SWIGINTERN PyObject *_wrap_new_NumberRangeProcessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32455   PyObject *resultobj = 0;
32456   Xapian::valueno arg1 ;
32457   unsigned int val1 ;
32458   int ecode1 = 0 ;
32459   Xapian::NumberRangeProcessor *result = 0 ;
32460 
32461   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
32462   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
32463   if (!SWIG_IsOK(ecode1)) {
32464     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NumberRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
32465   }
32466   arg1 = static_cast< Xapian::valueno >(val1);
32467   {
32468     try {
32469       {
32470         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
32471         result = (Xapian::NumberRangeProcessor *)new Xapian::NumberRangeProcessor(arg1);
32472         SWIG_PYTHON_THREAD_END_ALLOW;
32473       }
32474     } catch (...) {
32475       Xapian::SetPythonException();
32476       SWIG_fail;
32477     }
32478   }
32479   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__NumberRangeProcessor, SWIG_POINTER_NEW |  0 );
32480   return resultobj;
32481 fail:
32482   return NULL;
32483 }
32484 
32485 
_wrap_new_NumberRangeProcessor(PyObject * self,PyObject * args)32486 SWIGINTERN PyObject *_wrap_new_NumberRangeProcessor(PyObject *self, PyObject *args) {
32487   Py_ssize_t argc;
32488   PyObject *argv[4] = {
32489     0
32490   };
32491 
32492   if (!(argc = SWIG_Python_UnpackTuple(args,"new_NumberRangeProcessor",0,3,argv))) SWIG_fail;
32493   --argc;
32494   if (argc == 1) {
32495     return _wrap_new_NumberRangeProcessor__SWIG_2(self, argc, argv);
32496   }
32497   if (argc == 2) {
32498     return _wrap_new_NumberRangeProcessor__SWIG_1(self, argc, argv);
32499   }
32500   if (argc == 3) {
32501     return _wrap_new_NumberRangeProcessor__SWIG_0(self, argc, argv);
32502   }
32503 
32504 fail:
32505   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_NumberRangeProcessor'.\n"
32506     "  Possible C/C++ prototypes are:\n"
32507     "    Xapian::NumberRangeProcessor::NumberRangeProcessor(Xapian::valueno,std::string const &,unsigned int)\n"
32508     "    Xapian::NumberRangeProcessor::NumberRangeProcessor(Xapian::valueno,std::string const &)\n"
32509     "    Xapian::NumberRangeProcessor::NumberRangeProcessor(Xapian::valueno)\n");
32510   return 0;
32511 }
32512 
32513 
_wrap_delete_NumberRangeProcessor(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32514 SWIGINTERN PyObject *_wrap_delete_NumberRangeProcessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32515   PyObject *resultobj = 0;
32516   Xapian::NumberRangeProcessor *arg1 = (Xapian::NumberRangeProcessor *) 0 ;
32517   void *argp1 = 0 ;
32518   int res1 = 0 ;
32519   PyObject *swig_obj[1] ;
32520 
32521   if (!args) SWIG_fail;
32522   swig_obj[0] = args;
32523   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__NumberRangeProcessor, SWIG_POINTER_DISOWN |  0 );
32524   if (!SWIG_IsOK(res1)) {
32525     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NumberRangeProcessor" "', argument " "1"" of type '" "Xapian::NumberRangeProcessor *""'");
32526   }
32527   arg1 = reinterpret_cast< Xapian::NumberRangeProcessor * >(argp1);
32528   {
32529     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
32530     delete arg1;
32531     SWIG_PYTHON_THREAD_END_ALLOW;
32532   }
32533   resultobj = SWIG_Py_Void();
32534   return resultobj;
32535 fail:
32536   return NULL;
32537 }
32538 
32539 
NumberRangeProcessor_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32540 SWIGINTERN PyObject *NumberRangeProcessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32541   PyObject *obj;
32542   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
32543   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__NumberRangeProcessor, SWIG_NewClientData(obj));
32544   return SWIG_Py_Void();
32545 }
32546 
NumberRangeProcessor_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32547 SWIGINTERN PyObject *NumberRangeProcessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32548   return SWIG_Python_InitShadowInstance(args);
32549 }
32550 
_wrap_new_ValueRangeProcessor(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32551 SWIGINTERN PyObject *_wrap_new_ValueRangeProcessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32552   PyObject *resultobj = 0;
32553   PyObject *arg1 = (PyObject *) 0 ;
32554   PyObject *swig_obj[1] ;
32555   Xapian::ValueRangeProcessor *result = 0 ;
32556 
32557   if (!args) SWIG_fail;
32558   swig_obj[0] = args;
32559   arg1 = swig_obj[0];
32560   {
32561     try {
32562       {
32563         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
32564         if ( arg1 != Py_None ) {
32565           /* subclassed */
32566           result = (Xapian::ValueRangeProcessor *)new SwigDirector_ValueRangeProcessor(arg1);
32567         } else {
32568           SWIG_SetErrorMsg(PyExc_RuntimeError,"accessing abstract class or protected constructor");
32569           SWIG_fail;
32570         }
32571 
32572         SWIG_PYTHON_THREAD_END_ALLOW;
32573       }
32574     } catch (...) {
32575       Xapian::SetPythonException();
32576       SWIG_fail;
32577     }
32578   }
32579   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ValueRangeProcessor, SWIG_POINTER_NEW |  0 );
32580   return resultobj;
32581 fail:
32582   return NULL;
32583 }
32584 
32585 
_wrap_delete_ValueRangeProcessor(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32586 SWIGINTERN PyObject *_wrap_delete_ValueRangeProcessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32587   PyObject *resultobj = 0;
32588   Xapian::ValueRangeProcessor *arg1 = (Xapian::ValueRangeProcessor *) 0 ;
32589   void *argp1 = 0 ;
32590   int res1 = 0 ;
32591   PyObject *swig_obj[1] ;
32592 
32593   if (!args) SWIG_fail;
32594   swig_obj[0] = args;
32595   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueRangeProcessor, SWIG_POINTER_DISOWN |  0 );
32596   if (!SWIG_IsOK(res1)) {
32597     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ValueRangeProcessor" "', argument " "1"" of type '" "Xapian::ValueRangeProcessor *""'");
32598   }
32599   arg1 = reinterpret_cast< Xapian::ValueRangeProcessor * >(argp1);
32600   {
32601     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
32602     delete arg1;
32603     SWIG_PYTHON_THREAD_END_ALLOW;
32604   }
32605   resultobj = SWIG_Py_Void();
32606   return resultobj;
32607 fail:
32608   return NULL;
32609 }
32610 
32611 
_wrap_ValueRangeProcessor___call__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32612 SWIGINTERN PyObject *_wrap_ValueRangeProcessor___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32613   PyObject *resultobj = 0;
32614   Xapian::ValueRangeProcessor *arg1 = (Xapian::ValueRangeProcessor *) 0 ;
32615   std::string *arg2 = 0 ;
32616   std::string *arg3 = 0 ;
32617   void *argp1 = 0 ;
32618   int res1 = 0 ;
32619   std::string temp2 ;
32620   std::string temp3 ;
32621   PyObject *swig_obj[3] ;
32622   Swig::Director *director = 0;
32623   bool upcall = false;
32624   Xapian::valueno result;
32625 
32626   if (!SWIG_Python_UnpackTuple(args,"ValueRangeProcessor___call__",3,3,swig_obj)) SWIG_fail;
32627   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueRangeProcessor, 0 |  0 );
32628   if (!SWIG_IsOK(res1)) {
32629     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueRangeProcessor___call__" "', argument " "1"" of type '" "Xapian::ValueRangeProcessor *""'");
32630   }
32631   arg1 = reinterpret_cast< Xapian::ValueRangeProcessor * >(argp1);
32632   {
32633     std::string *ptr = (std::string *)0;
32634     int res = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
32635     if (!SWIG_IsOK(res) || !ptr) {
32636       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ValueRangeProcessor___call__" "', argument " "2"" of type '" "std::string &""'");
32637     }
32638     temp2 = *ptr;
32639     arg2 = &temp2;
32640     if (SWIG_IsNewObj(res)) delete ptr;
32641   }
32642   {
32643     std::string *ptr = (std::string *)0;
32644     int res = SWIG_AsPtr_std_string(swig_obj[2], &ptr);
32645     if (!SWIG_IsOK(res) || !ptr) {
32646       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ValueRangeProcessor___call__" "', argument " "3"" of type '" "std::string &""'");
32647     }
32648     temp3 = *ptr;
32649     arg3 = &temp3;
32650     if (SWIG_IsNewObj(res)) delete ptr;
32651   }
32652   director = SWIG_DIRECTOR_CAST(arg1);
32653   upcall = (director && (director->swig_get_self()==swig_obj[0]));
32654   try {
32655     {
32656       try {
32657         if (upcall) {
32658           Swig::DirectorPureVirtualException::raise("Xapian::ValueRangeProcessor::operator ()");
32659         } else {
32660           result = (Xapian::valueno)(arg1)->operator ()(*arg2,*arg3);
32661         }
32662       } catch (...) {
32663         Xapian::SetPythonException();
32664         SWIG_fail;
32665       }
32666     }
32667   } catch (Swig::DirectorException&) {
32668     SWIG_fail;
32669   }
32670   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
32671   {
32672     PyObject * str;
32673     PyObject * newresult;
32674 
32675     // Put the existing result into the first item of a new 3-tuple.
32676     newresult = PyTuple_New(3);
32677     if (newresult == 0) {
32678       Py_DECREF(resultobj);
32679       resultobj = NULL;
32680       SWIG_fail;
32681     }
32682     PyTuple_SET_ITEM(newresult, 0, resultobj);
32683     resultobj = newresult;
32684 
32685     str = PyString_FromStringAndSize(arg2->data(), arg2->size());
32686     if (str == 0) {
32687       Py_DECREF(resultobj);
32688       resultobj = NULL;
32689       SWIG_fail;
32690     }
32691     PyTuple_SET_ITEM(resultobj, 1, str);
32692 
32693     str = PyString_FromStringAndSize(arg3->data(), arg3->size());
32694     if (str == 0) {
32695       Py_DECREF(resultobj);
32696       resultobj = NULL;
32697       SWIG_fail;
32698     }
32699 
32700     PyTuple_SET_ITEM(resultobj, 2, str);
32701   }
32702   return resultobj;
32703 fail:
32704   return NULL;
32705 }
32706 
32707 
_wrap_ValueRangeProcessor_release(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32708 SWIGINTERN PyObject *_wrap_ValueRangeProcessor_release(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32709   PyObject *resultobj = 0;
32710   Xapian::ValueRangeProcessor *arg1 = (Xapian::ValueRangeProcessor *) 0 ;
32711   void *argp1 = 0 ;
32712   int res1 = 0 ;
32713   PyObject *swig_obj[1] ;
32714   Swig::Director *director = 0;
32715   Xapian::ValueRangeProcessor *result = 0 ;
32716 
32717   if (!args) SWIG_fail;
32718   swig_obj[0] = args;
32719   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueRangeProcessor, 0 |  0 );
32720   if (!SWIG_IsOK(res1)) {
32721     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueRangeProcessor_release" "', argument " "1"" of type '" "Xapian::ValueRangeProcessor const *""'");
32722   }
32723   arg1 = reinterpret_cast< Xapian::ValueRangeProcessor * >(argp1);
32724   {
32725     try {
32726       {
32727         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
32728         result = (Xapian::ValueRangeProcessor *)((Xapian::ValueRangeProcessor const *)arg1)->release();
32729         SWIG_PYTHON_THREAD_END_ALLOW;
32730       }
32731     } catch (...) {
32732       Xapian::SetPythonException();
32733       SWIG_fail;
32734     }
32735   }
32736   director = SWIG_DIRECTOR_CAST(result);
32737   if (director) {
32738     resultobj = director->swig_get_self();
32739     Py_INCREF(resultobj);
32740   } else {
32741     resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ValueRangeProcessor, 0 |  0 );
32742   }
32743   return resultobj;
32744 fail:
32745   return NULL;
32746 }
32747 
32748 
_wrap_disown_ValueRangeProcessor(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32749 SWIGINTERN PyObject *_wrap_disown_ValueRangeProcessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32750   PyObject *resultobj = 0;
32751   Xapian::ValueRangeProcessor *arg1 = (Xapian::ValueRangeProcessor *) 0 ;
32752   void *argp1 = 0 ;
32753   int res1 = 0 ;
32754   PyObject *swig_obj[1] ;
32755 
32756   if (!args) SWIG_fail;
32757   swig_obj[0] = args;
32758   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueRangeProcessor, 0 |  0 );
32759   if (!SWIG_IsOK(res1)) {
32760     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_ValueRangeProcessor" "', argument " "1"" of type '" "Xapian::ValueRangeProcessor *""'");
32761   }
32762   arg1 = reinterpret_cast< Xapian::ValueRangeProcessor * >(argp1);
32763   {
32764     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
32765     {
32766       Swig::Director *director = SWIG_DIRECTOR_CAST(arg1);
32767       if (director) director->swig_disown();
32768     }
32769 
32770     SWIG_PYTHON_THREAD_END_ALLOW;
32771   }
32772   resultobj = SWIG_Py_Void();
32773   return resultobj;
32774 fail:
32775   return NULL;
32776 }
32777 
32778 
ValueRangeProcessor_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32779 SWIGINTERN PyObject *ValueRangeProcessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32780   PyObject *obj;
32781   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
32782   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__ValueRangeProcessor, SWIG_NewClientData(obj));
32783   return SWIG_Py_Void();
32784 }
32785 
ValueRangeProcessor_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32786 SWIGINTERN PyObject *ValueRangeProcessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32787   return SWIG_Python_InitShadowInstance(args);
32788 }
32789 
_wrap_new_StringValueRangeProcessor__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)32790 SWIGINTERN PyObject *_wrap_new_StringValueRangeProcessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32791   PyObject *resultobj = 0;
32792   Xapian::valueno arg1 ;
32793   unsigned int val1 ;
32794   int ecode1 = 0 ;
32795   Xapian::StringValueRangeProcessor *result = 0 ;
32796 
32797   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
32798   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
32799   if (!SWIG_IsOK(ecode1)) {
32800     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StringValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
32801   }
32802   arg1 = static_cast< Xapian::valueno >(val1);
32803   {
32804     try {
32805       {
32806         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
32807         result = (Xapian::StringValueRangeProcessor *)new Xapian::StringValueRangeProcessor(arg1);
32808         SWIG_PYTHON_THREAD_END_ALLOW;
32809       }
32810     } catch (...) {
32811       Xapian::SetPythonException();
32812       SWIG_fail;
32813     }
32814   }
32815   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__StringValueRangeProcessor, SWIG_POINTER_NEW |  0 );
32816   return resultobj;
32817 fail:
32818   return NULL;
32819 }
32820 
32821 
_wrap_new_StringValueRangeProcessor__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)32822 SWIGINTERN PyObject *_wrap_new_StringValueRangeProcessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32823   PyObject *resultobj = 0;
32824   Xapian::valueno arg1 ;
32825   std::string *arg2 = 0 ;
32826   bool arg3 ;
32827   unsigned int val1 ;
32828   int ecode1 = 0 ;
32829   int res2 = SWIG_OLDOBJ ;
32830   bool val3 ;
32831   int ecode3 = 0 ;
32832   Xapian::StringValueRangeProcessor *result = 0 ;
32833 
32834   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
32835   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
32836   if (!SWIG_IsOK(ecode1)) {
32837     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StringValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
32838   }
32839   arg1 = static_cast< Xapian::valueno >(val1);
32840   {
32841     std::string *ptr = (std::string *)0;
32842     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
32843     if (!SWIG_IsOK(res2)) {
32844       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_StringValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
32845     }
32846     if (!ptr) {
32847       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StringValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
32848     }
32849     arg2 = ptr;
32850   }
32851   ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
32852   if (!SWIG_IsOK(ecode3)) {
32853     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_StringValueRangeProcessor" "', argument " "3"" of type '" "bool""'");
32854   }
32855   arg3 = static_cast< bool >(val3);
32856   {
32857     try {
32858       {
32859         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
32860         result = (Xapian::StringValueRangeProcessor *)new Xapian::StringValueRangeProcessor(arg1,(std::string const &)*arg2,arg3);
32861         SWIG_PYTHON_THREAD_END_ALLOW;
32862       }
32863     } catch (...) {
32864       Xapian::SetPythonException();
32865       SWIG_fail;
32866     }
32867   }
32868   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__StringValueRangeProcessor, SWIG_POINTER_NEW |  0 );
32869   if (SWIG_IsNewObj(res2)) delete arg2;
32870   return resultobj;
32871 fail:
32872   if (SWIG_IsNewObj(res2)) delete arg2;
32873   return NULL;
32874 }
32875 
32876 
_wrap_new_StringValueRangeProcessor__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)32877 SWIGINTERN PyObject *_wrap_new_StringValueRangeProcessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32878   PyObject *resultobj = 0;
32879   Xapian::valueno arg1 ;
32880   std::string *arg2 = 0 ;
32881   unsigned int val1 ;
32882   int ecode1 = 0 ;
32883   int res2 = SWIG_OLDOBJ ;
32884   Xapian::StringValueRangeProcessor *result = 0 ;
32885 
32886   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
32887   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
32888   if (!SWIG_IsOK(ecode1)) {
32889     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StringValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
32890   }
32891   arg1 = static_cast< Xapian::valueno >(val1);
32892   {
32893     std::string *ptr = (std::string *)0;
32894     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
32895     if (!SWIG_IsOK(res2)) {
32896       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_StringValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
32897     }
32898     if (!ptr) {
32899       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StringValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
32900     }
32901     arg2 = ptr;
32902   }
32903   {
32904     try {
32905       {
32906         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
32907         result = (Xapian::StringValueRangeProcessor *)new Xapian::StringValueRangeProcessor(arg1,(std::string const &)*arg2);
32908         SWIG_PYTHON_THREAD_END_ALLOW;
32909       }
32910     } catch (...) {
32911       Xapian::SetPythonException();
32912       SWIG_fail;
32913     }
32914   }
32915   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__StringValueRangeProcessor, SWIG_POINTER_NEW |  0 );
32916   if (SWIG_IsNewObj(res2)) delete arg2;
32917   return resultobj;
32918 fail:
32919   if (SWIG_IsNewObj(res2)) delete arg2;
32920   return NULL;
32921 }
32922 
32923 
_wrap_new_StringValueRangeProcessor(PyObject * self,PyObject * args)32924 SWIGINTERN PyObject *_wrap_new_StringValueRangeProcessor(PyObject *self, PyObject *args) {
32925   Py_ssize_t argc;
32926   PyObject *argv[4] = {
32927     0
32928   };
32929 
32930   if (!(argc = SWIG_Python_UnpackTuple(args,"new_StringValueRangeProcessor",0,3,argv))) SWIG_fail;
32931   --argc;
32932   if (argc == 1) {
32933     return _wrap_new_StringValueRangeProcessor__SWIG_0(self, argc, argv);
32934   }
32935   if (argc == 2) {
32936     return _wrap_new_StringValueRangeProcessor__SWIG_2(self, argc, argv);
32937   }
32938   if (argc == 3) {
32939     return _wrap_new_StringValueRangeProcessor__SWIG_1(self, argc, argv);
32940   }
32941 
32942 fail:
32943   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_StringValueRangeProcessor'.\n"
32944     "  Possible C/C++ prototypes are:\n"
32945     "    Xapian::StringValueRangeProcessor::StringValueRangeProcessor(Xapian::valueno)\n"
32946     "    Xapian::StringValueRangeProcessor::StringValueRangeProcessor(Xapian::valueno,std::string const &,bool)\n"
32947     "    Xapian::StringValueRangeProcessor::StringValueRangeProcessor(Xapian::valueno,std::string const &)\n");
32948   return 0;
32949 }
32950 
32951 
_wrap_delete_StringValueRangeProcessor(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32952 SWIGINTERN PyObject *_wrap_delete_StringValueRangeProcessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32953   PyObject *resultobj = 0;
32954   Xapian::StringValueRangeProcessor *arg1 = (Xapian::StringValueRangeProcessor *) 0 ;
32955   void *argp1 = 0 ;
32956   int res1 = 0 ;
32957   PyObject *swig_obj[1] ;
32958 
32959   if (!args) SWIG_fail;
32960   swig_obj[0] = args;
32961   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__StringValueRangeProcessor, SWIG_POINTER_DISOWN |  0 );
32962   if (!SWIG_IsOK(res1)) {
32963     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StringValueRangeProcessor" "', argument " "1"" of type '" "Xapian::StringValueRangeProcessor *""'");
32964   }
32965   arg1 = reinterpret_cast< Xapian::StringValueRangeProcessor * >(argp1);
32966   {
32967     try {
32968       {
32969         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
32970         delete arg1;
32971         SWIG_PYTHON_THREAD_END_ALLOW;
32972       }
32973     } catch (...) {
32974       Xapian::SetPythonException();
32975       SWIG_fail;
32976     }
32977   }
32978   resultobj = SWIG_Py_Void();
32979   return resultobj;
32980 fail:
32981   return NULL;
32982 }
32983 
32984 
StringValueRangeProcessor_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32985 SWIGINTERN PyObject *StringValueRangeProcessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32986   PyObject *obj;
32987   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
32988   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__StringValueRangeProcessor, SWIG_NewClientData(obj));
32989   return SWIG_Py_Void();
32990 }
32991 
StringValueRangeProcessor_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32992 SWIGINTERN PyObject *StringValueRangeProcessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32993   return SWIG_Python_InitShadowInstance(args);
32994 }
32995 
_wrap_new_DateValueRangeProcessor__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)32996 SWIGINTERN PyObject *_wrap_new_DateValueRangeProcessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32997   PyObject *resultobj = 0;
32998   Xapian::valueno arg1 ;
32999   bool arg2 ;
33000   int arg3 ;
33001   unsigned int val1 ;
33002   int ecode1 = 0 ;
33003   bool val2 ;
33004   int ecode2 = 0 ;
33005   int val3 ;
33006   int ecode3 = 0 ;
33007   Xapian::DateValueRangeProcessor *result = 0 ;
33008 
33009   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
33010   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
33011   if (!SWIG_IsOK(ecode1)) {
33012     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
33013   }
33014   arg1 = static_cast< Xapian::valueno >(val1);
33015   ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
33016   if (!SWIG_IsOK(ecode2)) {
33017     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DateValueRangeProcessor" "', argument " "2"" of type '" "bool""'");
33018   }
33019   arg2 = static_cast< bool >(val2);
33020   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
33021   if (!SWIG_IsOK(ecode3)) {
33022     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DateValueRangeProcessor" "', argument " "3"" of type '" "int""'");
33023   }
33024   arg3 = static_cast< int >(val3);
33025   {
33026     try {
33027       {
33028         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
33029         result = (Xapian::DateValueRangeProcessor *)new Xapian::DateValueRangeProcessor(arg1,arg2,arg3);
33030         SWIG_PYTHON_THREAD_END_ALLOW;
33031       }
33032     } catch (...) {
33033       Xapian::SetPythonException();
33034       SWIG_fail;
33035     }
33036   }
33037   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DateValueRangeProcessor, SWIG_POINTER_NEW |  0 );
33038   return resultobj;
33039 fail:
33040   return NULL;
33041 }
33042 
33043 
_wrap_new_DateValueRangeProcessor__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)33044 SWIGINTERN PyObject *_wrap_new_DateValueRangeProcessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33045   PyObject *resultobj = 0;
33046   Xapian::valueno arg1 ;
33047   bool arg2 ;
33048   unsigned int val1 ;
33049   int ecode1 = 0 ;
33050   bool val2 ;
33051   int ecode2 = 0 ;
33052   Xapian::DateValueRangeProcessor *result = 0 ;
33053 
33054   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
33055   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
33056   if (!SWIG_IsOK(ecode1)) {
33057     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
33058   }
33059   arg1 = static_cast< Xapian::valueno >(val1);
33060   ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
33061   if (!SWIG_IsOK(ecode2)) {
33062     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DateValueRangeProcessor" "', argument " "2"" of type '" "bool""'");
33063   }
33064   arg2 = static_cast< bool >(val2);
33065   {
33066     try {
33067       {
33068         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
33069         result = (Xapian::DateValueRangeProcessor *)new Xapian::DateValueRangeProcessor(arg1,arg2);
33070         SWIG_PYTHON_THREAD_END_ALLOW;
33071       }
33072     } catch (...) {
33073       Xapian::SetPythonException();
33074       SWIG_fail;
33075     }
33076   }
33077   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DateValueRangeProcessor, SWIG_POINTER_NEW |  0 );
33078   return resultobj;
33079 fail:
33080   return NULL;
33081 }
33082 
33083 
_wrap_new_DateValueRangeProcessor__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)33084 SWIGINTERN PyObject *_wrap_new_DateValueRangeProcessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33085   PyObject *resultobj = 0;
33086   Xapian::valueno arg1 ;
33087   unsigned int val1 ;
33088   int ecode1 = 0 ;
33089   Xapian::DateValueRangeProcessor *result = 0 ;
33090 
33091   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
33092   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
33093   if (!SWIG_IsOK(ecode1)) {
33094     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
33095   }
33096   arg1 = static_cast< Xapian::valueno >(val1);
33097   {
33098     try {
33099       {
33100         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
33101         result = (Xapian::DateValueRangeProcessor *)new Xapian::DateValueRangeProcessor(arg1);
33102         SWIG_PYTHON_THREAD_END_ALLOW;
33103       }
33104     } catch (...) {
33105       Xapian::SetPythonException();
33106       SWIG_fail;
33107     }
33108   }
33109   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DateValueRangeProcessor, SWIG_POINTER_NEW |  0 );
33110   return resultobj;
33111 fail:
33112   return NULL;
33113 }
33114 
33115 
_wrap_new_DateValueRangeProcessor__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)33116 SWIGINTERN PyObject *_wrap_new_DateValueRangeProcessor__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33117   PyObject *resultobj = 0;
33118   Xapian::valueno arg1 ;
33119   std::string *arg2 = 0 ;
33120   bool arg3 ;
33121   bool arg4 ;
33122   int arg5 ;
33123   unsigned int val1 ;
33124   int ecode1 = 0 ;
33125   int res2 = SWIG_OLDOBJ ;
33126   bool val3 ;
33127   int ecode3 = 0 ;
33128   bool val4 ;
33129   int ecode4 = 0 ;
33130   int val5 ;
33131   int ecode5 = 0 ;
33132   Xapian::DateValueRangeProcessor *result = 0 ;
33133 
33134   if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
33135   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
33136   if (!SWIG_IsOK(ecode1)) {
33137     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
33138   }
33139   arg1 = static_cast< Xapian::valueno >(val1);
33140   {
33141     std::string *ptr = (std::string *)0;
33142     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
33143     if (!SWIG_IsOK(res2)) {
33144       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DateValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
33145     }
33146     if (!ptr) {
33147       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DateValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
33148     }
33149     arg2 = ptr;
33150   }
33151   ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
33152   if (!SWIG_IsOK(ecode3)) {
33153     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DateValueRangeProcessor" "', argument " "3"" of type '" "bool""'");
33154   }
33155   arg3 = static_cast< bool >(val3);
33156   ecode4 = SWIG_AsVal_bool(swig_obj[3], &val4);
33157   if (!SWIG_IsOK(ecode4)) {
33158     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DateValueRangeProcessor" "', argument " "4"" of type '" "bool""'");
33159   }
33160   arg4 = static_cast< bool >(val4);
33161   ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
33162   if (!SWIG_IsOK(ecode5)) {
33163     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DateValueRangeProcessor" "', argument " "5"" of type '" "int""'");
33164   }
33165   arg5 = static_cast< int >(val5);
33166   {
33167     try {
33168       {
33169         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
33170         result = (Xapian::DateValueRangeProcessor *)new Xapian::DateValueRangeProcessor(arg1,(std::string const &)*arg2,arg3,arg4,arg5);
33171         SWIG_PYTHON_THREAD_END_ALLOW;
33172       }
33173     } catch (...) {
33174       Xapian::SetPythonException();
33175       SWIG_fail;
33176     }
33177   }
33178   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DateValueRangeProcessor, SWIG_POINTER_NEW |  0 );
33179   if (SWIG_IsNewObj(res2)) delete arg2;
33180   return resultobj;
33181 fail:
33182   if (SWIG_IsNewObj(res2)) delete arg2;
33183   return NULL;
33184 }
33185 
33186 
_wrap_new_DateValueRangeProcessor__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)33187 SWIGINTERN PyObject *_wrap_new_DateValueRangeProcessor__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33188   PyObject *resultobj = 0;
33189   Xapian::valueno arg1 ;
33190   std::string *arg2 = 0 ;
33191   bool arg3 ;
33192   bool arg4 ;
33193   unsigned int val1 ;
33194   int ecode1 = 0 ;
33195   int res2 = SWIG_OLDOBJ ;
33196   bool val3 ;
33197   int ecode3 = 0 ;
33198   bool val4 ;
33199   int ecode4 = 0 ;
33200   Xapian::DateValueRangeProcessor *result = 0 ;
33201 
33202   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
33203   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
33204   if (!SWIG_IsOK(ecode1)) {
33205     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
33206   }
33207   arg1 = static_cast< Xapian::valueno >(val1);
33208   {
33209     std::string *ptr = (std::string *)0;
33210     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
33211     if (!SWIG_IsOK(res2)) {
33212       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DateValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
33213     }
33214     if (!ptr) {
33215       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DateValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
33216     }
33217     arg2 = ptr;
33218   }
33219   ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
33220   if (!SWIG_IsOK(ecode3)) {
33221     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DateValueRangeProcessor" "', argument " "3"" of type '" "bool""'");
33222   }
33223   arg3 = static_cast< bool >(val3);
33224   ecode4 = SWIG_AsVal_bool(swig_obj[3], &val4);
33225   if (!SWIG_IsOK(ecode4)) {
33226     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DateValueRangeProcessor" "', argument " "4"" of type '" "bool""'");
33227   }
33228   arg4 = static_cast< bool >(val4);
33229   {
33230     try {
33231       {
33232         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
33233         result = (Xapian::DateValueRangeProcessor *)new Xapian::DateValueRangeProcessor(arg1,(std::string const &)*arg2,arg3,arg4);
33234         SWIG_PYTHON_THREAD_END_ALLOW;
33235       }
33236     } catch (...) {
33237       Xapian::SetPythonException();
33238       SWIG_fail;
33239     }
33240   }
33241   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DateValueRangeProcessor, SWIG_POINTER_NEW |  0 );
33242   if (SWIG_IsNewObj(res2)) delete arg2;
33243   return resultobj;
33244 fail:
33245   if (SWIG_IsNewObj(res2)) delete arg2;
33246   return NULL;
33247 }
33248 
33249 
_wrap_new_DateValueRangeProcessor__SWIG_5(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)33250 SWIGINTERN PyObject *_wrap_new_DateValueRangeProcessor__SWIG_5(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33251   PyObject *resultobj = 0;
33252   Xapian::valueno arg1 ;
33253   std::string *arg2 = 0 ;
33254   bool arg3 ;
33255   unsigned int val1 ;
33256   int ecode1 = 0 ;
33257   int res2 = SWIG_OLDOBJ ;
33258   bool val3 ;
33259   int ecode3 = 0 ;
33260   Xapian::DateValueRangeProcessor *result = 0 ;
33261 
33262   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
33263   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
33264   if (!SWIG_IsOK(ecode1)) {
33265     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
33266   }
33267   arg1 = static_cast< Xapian::valueno >(val1);
33268   {
33269     std::string *ptr = (std::string *)0;
33270     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
33271     if (!SWIG_IsOK(res2)) {
33272       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DateValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
33273     }
33274     if (!ptr) {
33275       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DateValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
33276     }
33277     arg2 = ptr;
33278   }
33279   ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
33280   if (!SWIG_IsOK(ecode3)) {
33281     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DateValueRangeProcessor" "', argument " "3"" of type '" "bool""'");
33282   }
33283   arg3 = static_cast< bool >(val3);
33284   {
33285     try {
33286       {
33287         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
33288         result = (Xapian::DateValueRangeProcessor *)new Xapian::DateValueRangeProcessor(arg1,(std::string const &)*arg2,arg3);
33289         SWIG_PYTHON_THREAD_END_ALLOW;
33290       }
33291     } catch (...) {
33292       Xapian::SetPythonException();
33293       SWIG_fail;
33294     }
33295   }
33296   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DateValueRangeProcessor, SWIG_POINTER_NEW |  0 );
33297   if (SWIG_IsNewObj(res2)) delete arg2;
33298   return resultobj;
33299 fail:
33300   if (SWIG_IsNewObj(res2)) delete arg2;
33301   return NULL;
33302 }
33303 
33304 
_wrap_new_DateValueRangeProcessor__SWIG_6(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)33305 SWIGINTERN PyObject *_wrap_new_DateValueRangeProcessor__SWIG_6(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33306   PyObject *resultobj = 0;
33307   Xapian::valueno arg1 ;
33308   std::string *arg2 = 0 ;
33309   unsigned int val1 ;
33310   int ecode1 = 0 ;
33311   int res2 = SWIG_OLDOBJ ;
33312   Xapian::DateValueRangeProcessor *result = 0 ;
33313 
33314   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
33315   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
33316   if (!SWIG_IsOK(ecode1)) {
33317     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
33318   }
33319   arg1 = static_cast< Xapian::valueno >(val1);
33320   {
33321     std::string *ptr = (std::string *)0;
33322     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
33323     if (!SWIG_IsOK(res2)) {
33324       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DateValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
33325     }
33326     if (!ptr) {
33327       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DateValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
33328     }
33329     arg2 = ptr;
33330   }
33331   {
33332     try {
33333       {
33334         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
33335         result = (Xapian::DateValueRangeProcessor *)new Xapian::DateValueRangeProcessor(arg1,(std::string const &)*arg2);
33336         SWIG_PYTHON_THREAD_END_ALLOW;
33337       }
33338     } catch (...) {
33339       Xapian::SetPythonException();
33340       SWIG_fail;
33341     }
33342   }
33343   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DateValueRangeProcessor, SWIG_POINTER_NEW |  0 );
33344   if (SWIG_IsNewObj(res2)) delete arg2;
33345   return resultobj;
33346 fail:
33347   if (SWIG_IsNewObj(res2)) delete arg2;
33348   return NULL;
33349 }
33350 
33351 
_wrap_new_DateValueRangeProcessor(PyObject * self,PyObject * args)33352 SWIGINTERN PyObject *_wrap_new_DateValueRangeProcessor(PyObject *self, PyObject *args) {
33353   Py_ssize_t argc;
33354   PyObject *argv[6] = {
33355     0
33356   };
33357 
33358   if (!(argc = SWIG_Python_UnpackTuple(args,"new_DateValueRangeProcessor",0,5,argv))) SWIG_fail;
33359   --argc;
33360   if (argc == 1) {
33361     return _wrap_new_DateValueRangeProcessor__SWIG_2(self, argc, argv);
33362   }
33363   if (argc == 2) {
33364     int _v = 0;
33365     {
33366       int res = XapianSWIG_anystring_as_ptr(argv[1], (std::string**)(0));
33367       _v = SWIG_CheckState(res);
33368     }
33369     if (!_v) goto check_2;
33370     return _wrap_new_DateValueRangeProcessor__SWIG_6(self, argc, argv);
33371   }
33372 check_2:
33373 
33374   if (argc == 2) {
33375     return _wrap_new_DateValueRangeProcessor__SWIG_1(self, argc, argv);
33376   }
33377   if (argc == 3) {
33378     int _v = 0;
33379     {
33380       int res = XapianSWIG_anystring_as_ptr(argv[1], (std::string**)(0));
33381       _v = SWIG_CheckState(res);
33382     }
33383     if (!_v) goto check_4;
33384     {
33385       {
33386         int res = SWIG_AsVal_bool(argv[2], NULL);
33387         _v = SWIG_CheckState(res);
33388       }
33389     }
33390     if (!_v) goto check_4;
33391     return _wrap_new_DateValueRangeProcessor__SWIG_5(self, argc, argv);
33392   }
33393 check_4:
33394 
33395   if (argc == 3) {
33396     return _wrap_new_DateValueRangeProcessor__SWIG_0(self, argc, argv);
33397   }
33398   if (argc == 4) {
33399     return _wrap_new_DateValueRangeProcessor__SWIG_4(self, argc, argv);
33400   }
33401   if (argc == 5) {
33402     return _wrap_new_DateValueRangeProcessor__SWIG_3(self, argc, argv);
33403   }
33404 
33405 fail:
33406   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_DateValueRangeProcessor'.\n"
33407     "  Possible C/C++ prototypes are:\n"
33408     "    Xapian::DateValueRangeProcessor::DateValueRangeProcessor(Xapian::valueno,bool,int)\n"
33409     "    Xapian::DateValueRangeProcessor::DateValueRangeProcessor(Xapian::valueno,bool)\n"
33410     "    Xapian::DateValueRangeProcessor::DateValueRangeProcessor(Xapian::valueno)\n"
33411     "    Xapian::DateValueRangeProcessor::DateValueRangeProcessor(Xapian::valueno,std::string const &,bool,bool,int)\n"
33412     "    Xapian::DateValueRangeProcessor::DateValueRangeProcessor(Xapian::valueno,std::string const &,bool,bool)\n"
33413     "    Xapian::DateValueRangeProcessor::DateValueRangeProcessor(Xapian::valueno,std::string const &,bool)\n"
33414     "    Xapian::DateValueRangeProcessor::DateValueRangeProcessor(Xapian::valueno,std::string const &)\n");
33415   return 0;
33416 }
33417 
33418 
_wrap_delete_DateValueRangeProcessor(PyObject * SWIGUNUSEDPARM (self),PyObject * args)33419 SWIGINTERN PyObject *_wrap_delete_DateValueRangeProcessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33420   PyObject *resultobj = 0;
33421   Xapian::DateValueRangeProcessor *arg1 = (Xapian::DateValueRangeProcessor *) 0 ;
33422   void *argp1 = 0 ;
33423   int res1 = 0 ;
33424   PyObject *swig_obj[1] ;
33425 
33426   if (!args) SWIG_fail;
33427   swig_obj[0] = args;
33428   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__DateValueRangeProcessor, SWIG_POINTER_DISOWN |  0 );
33429   if (!SWIG_IsOK(res1)) {
33430     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DateValueRangeProcessor" "', argument " "1"" of type '" "Xapian::DateValueRangeProcessor *""'");
33431   }
33432   arg1 = reinterpret_cast< Xapian::DateValueRangeProcessor * >(argp1);
33433   {
33434     try {
33435       {
33436         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
33437         delete arg1;
33438         SWIG_PYTHON_THREAD_END_ALLOW;
33439       }
33440     } catch (...) {
33441       Xapian::SetPythonException();
33442       SWIG_fail;
33443     }
33444   }
33445   resultobj = SWIG_Py_Void();
33446   return resultobj;
33447 fail:
33448   return NULL;
33449 }
33450 
33451 
DateValueRangeProcessor_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)33452 SWIGINTERN PyObject *DateValueRangeProcessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33453   PyObject *obj;
33454   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
33455   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__DateValueRangeProcessor, SWIG_NewClientData(obj));
33456   return SWIG_Py_Void();
33457 }
33458 
DateValueRangeProcessor_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)33459 SWIGINTERN PyObject *DateValueRangeProcessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33460   return SWIG_Python_InitShadowInstance(args);
33461 }
33462 
_wrap_new_NumberValueRangeProcessor__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)33463 SWIGINTERN PyObject *_wrap_new_NumberValueRangeProcessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33464   PyObject *resultobj = 0;
33465   Xapian::valueno arg1 ;
33466   unsigned int val1 ;
33467   int ecode1 = 0 ;
33468   Xapian::NumberValueRangeProcessor *result = 0 ;
33469 
33470   if ((nobjs < 1) || (nobjs > 1)) 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_NumberValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
33474   }
33475   arg1 = static_cast< Xapian::valueno >(val1);
33476   {
33477     try {
33478       {
33479         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
33480         result = (Xapian::NumberValueRangeProcessor *)new Xapian::NumberValueRangeProcessor(arg1);
33481         SWIG_PYTHON_THREAD_END_ALLOW;
33482       }
33483     } catch (...) {
33484       Xapian::SetPythonException();
33485       SWIG_fail;
33486     }
33487   }
33488   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__NumberValueRangeProcessor, SWIG_POINTER_NEW |  0 );
33489   return resultobj;
33490 fail:
33491   return NULL;
33492 }
33493 
33494 
_wrap_new_NumberValueRangeProcessor__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)33495 SWIGINTERN PyObject *_wrap_new_NumberValueRangeProcessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33496   PyObject *resultobj = 0;
33497   Xapian::valueno arg1 ;
33498   std::string *arg2 = 0 ;
33499   bool arg3 ;
33500   unsigned int val1 ;
33501   int ecode1 = 0 ;
33502   int res2 = SWIG_OLDOBJ ;
33503   bool val3 ;
33504   int ecode3 = 0 ;
33505   Xapian::NumberValueRangeProcessor *result = 0 ;
33506 
33507   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
33508   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
33509   if (!SWIG_IsOK(ecode1)) {
33510     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NumberValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
33511   }
33512   arg1 = static_cast< Xapian::valueno >(val1);
33513   {
33514     std::string *ptr = (std::string *)0;
33515     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
33516     if (!SWIG_IsOK(res2)) {
33517       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NumberValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
33518     }
33519     if (!ptr) {
33520       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NumberValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
33521     }
33522     arg2 = ptr;
33523   }
33524   ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
33525   if (!SWIG_IsOK(ecode3)) {
33526     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NumberValueRangeProcessor" "', argument " "3"" of type '" "bool""'");
33527   }
33528   arg3 = static_cast< bool >(val3);
33529   {
33530     try {
33531       {
33532         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
33533         result = (Xapian::NumberValueRangeProcessor *)new Xapian::NumberValueRangeProcessor(arg1,(std::string const &)*arg2,arg3);
33534         SWIG_PYTHON_THREAD_END_ALLOW;
33535       }
33536     } catch (...) {
33537       Xapian::SetPythonException();
33538       SWIG_fail;
33539     }
33540   }
33541   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__NumberValueRangeProcessor, SWIG_POINTER_NEW |  0 );
33542   if (SWIG_IsNewObj(res2)) delete arg2;
33543   return resultobj;
33544 fail:
33545   if (SWIG_IsNewObj(res2)) delete arg2;
33546   return NULL;
33547 }
33548 
33549 
_wrap_new_NumberValueRangeProcessor__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)33550 SWIGINTERN PyObject *_wrap_new_NumberValueRangeProcessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33551   PyObject *resultobj = 0;
33552   Xapian::valueno arg1 ;
33553   std::string *arg2 = 0 ;
33554   unsigned int val1 ;
33555   int ecode1 = 0 ;
33556   int res2 = SWIG_OLDOBJ ;
33557   Xapian::NumberValueRangeProcessor *result = 0 ;
33558 
33559   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
33560   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
33561   if (!SWIG_IsOK(ecode1)) {
33562     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NumberValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
33563   }
33564   arg1 = static_cast< Xapian::valueno >(val1);
33565   {
33566     std::string *ptr = (std::string *)0;
33567     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
33568     if (!SWIG_IsOK(res2)) {
33569       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NumberValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
33570     }
33571     if (!ptr) {
33572       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NumberValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
33573     }
33574     arg2 = ptr;
33575   }
33576   {
33577     try {
33578       {
33579         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
33580         result = (Xapian::NumberValueRangeProcessor *)new Xapian::NumberValueRangeProcessor(arg1,(std::string const &)*arg2);
33581         SWIG_PYTHON_THREAD_END_ALLOW;
33582       }
33583     } catch (...) {
33584       Xapian::SetPythonException();
33585       SWIG_fail;
33586     }
33587   }
33588   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__NumberValueRangeProcessor, SWIG_POINTER_NEW |  0 );
33589   if (SWIG_IsNewObj(res2)) delete arg2;
33590   return resultobj;
33591 fail:
33592   if (SWIG_IsNewObj(res2)) delete arg2;
33593   return NULL;
33594 }
33595 
33596 
_wrap_new_NumberValueRangeProcessor(PyObject * self,PyObject * args)33597 SWIGINTERN PyObject *_wrap_new_NumberValueRangeProcessor(PyObject *self, PyObject *args) {
33598   Py_ssize_t argc;
33599   PyObject *argv[4] = {
33600     0
33601   };
33602 
33603   if (!(argc = SWIG_Python_UnpackTuple(args,"new_NumberValueRangeProcessor",0,3,argv))) SWIG_fail;
33604   --argc;
33605   if (argc == 1) {
33606     return _wrap_new_NumberValueRangeProcessor__SWIG_0(self, argc, argv);
33607   }
33608   if (argc == 2) {
33609     return _wrap_new_NumberValueRangeProcessor__SWIG_2(self, argc, argv);
33610   }
33611   if (argc == 3) {
33612     return _wrap_new_NumberValueRangeProcessor__SWIG_1(self, argc, argv);
33613   }
33614 
33615 fail:
33616   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_NumberValueRangeProcessor'.\n"
33617     "  Possible C/C++ prototypes are:\n"
33618     "    Xapian::NumberValueRangeProcessor::NumberValueRangeProcessor(Xapian::valueno)\n"
33619     "    Xapian::NumberValueRangeProcessor::NumberValueRangeProcessor(Xapian::valueno,std::string const &,bool)\n"
33620     "    Xapian::NumberValueRangeProcessor::NumberValueRangeProcessor(Xapian::valueno,std::string const &)\n");
33621   return 0;
33622 }
33623 
33624 
_wrap_delete_NumberValueRangeProcessor(PyObject * SWIGUNUSEDPARM (self),PyObject * args)33625 SWIGINTERN PyObject *_wrap_delete_NumberValueRangeProcessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33626   PyObject *resultobj = 0;
33627   Xapian::NumberValueRangeProcessor *arg1 = (Xapian::NumberValueRangeProcessor *) 0 ;
33628   void *argp1 = 0 ;
33629   int res1 = 0 ;
33630   PyObject *swig_obj[1] ;
33631 
33632   if (!args) SWIG_fail;
33633   swig_obj[0] = args;
33634   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__NumberValueRangeProcessor, SWIG_POINTER_DISOWN |  0 );
33635   if (!SWIG_IsOK(res1)) {
33636     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NumberValueRangeProcessor" "', argument " "1"" of type '" "Xapian::NumberValueRangeProcessor *""'");
33637   }
33638   arg1 = reinterpret_cast< Xapian::NumberValueRangeProcessor * >(argp1);
33639   {
33640     try {
33641       {
33642         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
33643         delete arg1;
33644         SWIG_PYTHON_THREAD_END_ALLOW;
33645       }
33646     } catch (...) {
33647       Xapian::SetPythonException();
33648       SWIG_fail;
33649     }
33650   }
33651   resultobj = SWIG_Py_Void();
33652   return resultobj;
33653 fail:
33654   return NULL;
33655 }
33656 
33657 
NumberValueRangeProcessor_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)33658 SWIGINTERN PyObject *NumberValueRangeProcessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33659   PyObject *obj;
33660   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
33661   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__NumberValueRangeProcessor, SWIG_NewClientData(obj));
33662   return SWIG_Py_Void();
33663 }
33664 
NumberValueRangeProcessor_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)33665 SWIGINTERN PyObject *NumberValueRangeProcessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33666   return SWIG_Python_InitShadowInstance(args);
33667 }
33668 
_wrap_new_FieldProcessor(PyObject * SWIGUNUSEDPARM (self),PyObject * args)33669 SWIGINTERN PyObject *_wrap_new_FieldProcessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33670   PyObject *resultobj = 0;
33671   PyObject *arg1 = (PyObject *) 0 ;
33672   PyObject *swig_obj[1] ;
33673   Xapian::FieldProcessor *result = 0 ;
33674 
33675   if (!args) SWIG_fail;
33676   swig_obj[0] = args;
33677   arg1 = swig_obj[0];
33678   {
33679     try {
33680       {
33681         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
33682         if ( arg1 != Py_None ) {
33683           /* subclassed */
33684           result = (Xapian::FieldProcessor *)new SwigDirector_FieldProcessor(arg1);
33685         } else {
33686           SWIG_SetErrorMsg(PyExc_RuntimeError,"accessing abstract class or protected constructor");
33687           SWIG_fail;
33688         }
33689 
33690         SWIG_PYTHON_THREAD_END_ALLOW;
33691       }
33692     } catch (...) {
33693       Xapian::SetPythonException();
33694       SWIG_fail;
33695     }
33696   }
33697   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__FieldProcessor, SWIG_POINTER_NEW |  0 );
33698   return resultobj;
33699 fail:
33700   return NULL;
33701 }
33702 
33703 
_wrap_delete_FieldProcessor(PyObject * SWIGUNUSEDPARM (self),PyObject * args)33704 SWIGINTERN PyObject *_wrap_delete_FieldProcessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33705   PyObject *resultobj = 0;
33706   Xapian::FieldProcessor *arg1 = (Xapian::FieldProcessor *) 0 ;
33707   void *argp1 = 0 ;
33708   int res1 = 0 ;
33709   PyObject *swig_obj[1] ;
33710 
33711   if (!args) SWIG_fail;
33712   swig_obj[0] = args;
33713   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__FieldProcessor, SWIG_POINTER_DISOWN |  0 );
33714   if (!SWIG_IsOK(res1)) {
33715     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FieldProcessor" "', argument " "1"" of type '" "Xapian::FieldProcessor *""'");
33716   }
33717   arg1 = reinterpret_cast< Xapian::FieldProcessor * >(argp1);
33718   {
33719     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
33720     delete arg1;
33721     SWIG_PYTHON_THREAD_END_ALLOW;
33722   }
33723   resultobj = SWIG_Py_Void();
33724   return resultobj;
33725 fail:
33726   return NULL;
33727 }
33728 
33729 
_wrap_FieldProcessor___call__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)33730 SWIGINTERN PyObject *_wrap_FieldProcessor___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33731   PyObject *resultobj = 0;
33732   Xapian::FieldProcessor *arg1 = (Xapian::FieldProcessor *) 0 ;
33733   std::string *arg2 = 0 ;
33734   void *argp1 = 0 ;
33735   int res1 = 0 ;
33736   int res2 = SWIG_OLDOBJ ;
33737   PyObject *swig_obj[2] ;
33738   Swig::Director *director = 0;
33739   bool upcall = false;
33740   Xapian::Query result;
33741 
33742   if (!SWIG_Python_UnpackTuple(args,"FieldProcessor___call__",2,2,swig_obj)) SWIG_fail;
33743   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__FieldProcessor, 0 |  0 );
33744   if (!SWIG_IsOK(res1)) {
33745     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FieldProcessor___call__" "', argument " "1"" of type '" "Xapian::FieldProcessor *""'");
33746   }
33747   arg1 = reinterpret_cast< Xapian::FieldProcessor * >(argp1);
33748   {
33749     std::string *ptr = (std::string *)0;
33750     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
33751     if (!SWIG_IsOK(res2)) {
33752       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FieldProcessor___call__" "', argument " "2"" of type '" "std::string const &""'");
33753     }
33754     if (!ptr) {
33755       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FieldProcessor___call__" "', argument " "2"" of type '" "std::string const &""'");
33756     }
33757     arg2 = ptr;
33758   }
33759   director = SWIG_DIRECTOR_CAST(arg1);
33760   upcall = (director && (director->swig_get_self()==swig_obj[0]));
33761   try {
33762     {
33763       try {
33764         if (upcall) {
33765           Swig::DirectorPureVirtualException::raise("Xapian::FieldProcessor::operator ()");
33766         } else {
33767           result = (arg1)->operator ()((std::string const &)*arg2);
33768         }
33769       } catch (...) {
33770         Xapian::SetPythonException();
33771         SWIG_fail;
33772       }
33773     }
33774   } catch (Swig::DirectorException&) {
33775     SWIG_fail;
33776   }
33777   resultobj = SWIG_NewPointerObj((new Xapian::Query(static_cast< const Xapian::Query& >(result))), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_OWN |  0 );
33778   if (SWIG_IsNewObj(res2)) delete arg2;
33779   return resultobj;
33780 fail:
33781   if (SWIG_IsNewObj(res2)) delete arg2;
33782   return NULL;
33783 }
33784 
33785 
_wrap_FieldProcessor_release(PyObject * SWIGUNUSEDPARM (self),PyObject * args)33786 SWIGINTERN PyObject *_wrap_FieldProcessor_release(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33787   PyObject *resultobj = 0;
33788   Xapian::FieldProcessor *arg1 = (Xapian::FieldProcessor *) 0 ;
33789   void *argp1 = 0 ;
33790   int res1 = 0 ;
33791   PyObject *swig_obj[1] ;
33792   Swig::Director *director = 0;
33793   Xapian::FieldProcessor *result = 0 ;
33794 
33795   if (!args) SWIG_fail;
33796   swig_obj[0] = args;
33797   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__FieldProcessor, 0 |  0 );
33798   if (!SWIG_IsOK(res1)) {
33799     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FieldProcessor_release" "', argument " "1"" of type '" "Xapian::FieldProcessor const *""'");
33800   }
33801   arg1 = reinterpret_cast< Xapian::FieldProcessor * >(argp1);
33802   {
33803     try {
33804       {
33805         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
33806         result = (Xapian::FieldProcessor *)((Xapian::FieldProcessor const *)arg1)->release();
33807         SWIG_PYTHON_THREAD_END_ALLOW;
33808       }
33809     } catch (...) {
33810       Xapian::SetPythonException();
33811       SWIG_fail;
33812     }
33813   }
33814   director = SWIG_DIRECTOR_CAST(result);
33815   if (director) {
33816     resultobj = director->swig_get_self();
33817     Py_INCREF(resultobj);
33818   } else {
33819     resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__FieldProcessor, 0 |  0 );
33820   }
33821   return resultobj;
33822 fail:
33823   return NULL;
33824 }
33825 
33826 
_wrap_disown_FieldProcessor(PyObject * SWIGUNUSEDPARM (self),PyObject * args)33827 SWIGINTERN PyObject *_wrap_disown_FieldProcessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33828   PyObject *resultobj = 0;
33829   Xapian::FieldProcessor *arg1 = (Xapian::FieldProcessor *) 0 ;
33830   void *argp1 = 0 ;
33831   int res1 = 0 ;
33832   PyObject *swig_obj[1] ;
33833 
33834   if (!args) SWIG_fail;
33835   swig_obj[0] = args;
33836   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__FieldProcessor, 0 |  0 );
33837   if (!SWIG_IsOK(res1)) {
33838     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_FieldProcessor" "', argument " "1"" of type '" "Xapian::FieldProcessor *""'");
33839   }
33840   arg1 = reinterpret_cast< Xapian::FieldProcessor * >(argp1);
33841   {
33842     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
33843     {
33844       Swig::Director *director = SWIG_DIRECTOR_CAST(arg1);
33845       if (director) director->swig_disown();
33846     }
33847 
33848     SWIG_PYTHON_THREAD_END_ALLOW;
33849   }
33850   resultobj = SWIG_Py_Void();
33851   return resultobj;
33852 fail:
33853   return NULL;
33854 }
33855 
33856 
FieldProcessor_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)33857 SWIGINTERN PyObject *FieldProcessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33858   PyObject *obj;
33859   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
33860   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__FieldProcessor, SWIG_NewClientData(obj));
33861   return SWIG_Py_Void();
33862 }
33863 
FieldProcessor_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)33864 SWIGINTERN PyObject *FieldProcessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33865   return SWIG_Python_InitShadowInstance(args);
33866 }
33867 
_wrap_new_QueryParser(PyObject * SWIGUNUSEDPARM (self),PyObject * args)33868 SWIGINTERN PyObject *_wrap_new_QueryParser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33869   PyObject *resultobj = 0;
33870   Xapian::QueryParser *result = 0 ;
33871 
33872   if (!SWIG_Python_UnpackTuple(args,"new_QueryParser",0,0,0)) SWIG_fail;
33873   {
33874     try {
33875       {
33876         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
33877         result = (Xapian::QueryParser *)new Xapian::QueryParser();
33878         SWIG_PYTHON_THREAD_END_ALLOW;
33879       }
33880     } catch (...) {
33881       Xapian::SetPythonException();
33882       SWIG_fail;
33883     }
33884   }
33885   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__QueryParser, SWIG_POINTER_NEW |  0 );
33886   return resultobj;
33887 fail:
33888   return NULL;
33889 }
33890 
33891 
_wrap_delete_QueryParser(PyObject * SWIGUNUSEDPARM (self),PyObject * args)33892 SWIGINTERN PyObject *_wrap_delete_QueryParser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33893   PyObject *resultobj = 0;
33894   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
33895   void *argp1 = 0 ;
33896   int res1 = 0 ;
33897   PyObject *swig_obj[1] ;
33898 
33899   if (!args) SWIG_fail;
33900   swig_obj[0] = args;
33901   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, SWIG_POINTER_DISOWN |  0 );
33902   if (!SWIG_IsOK(res1)) {
33903     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_QueryParser" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
33904   }
33905   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
33906   {
33907     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
33908     delete arg1;
33909     SWIG_PYTHON_THREAD_END_ALLOW;
33910   }
33911   resultobj = SWIG_Py_Void();
33912   return resultobj;
33913 fail:
33914   return NULL;
33915 }
33916 
33917 
_wrap_QueryParser_set_stemmer(PyObject * SWIGUNUSEDPARM (self),PyObject * args)33918 SWIGINTERN PyObject *_wrap_QueryParser_set_stemmer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33919   PyObject *resultobj = 0;
33920   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
33921   Xapian::Stem *arg2 = 0 ;
33922   void *argp1 = 0 ;
33923   int res1 = 0 ;
33924   void *argp2 = 0 ;
33925   int res2 = 0 ;
33926   PyObject *swig_obj[2] ;
33927 
33928   if (!SWIG_Python_UnpackTuple(args,"QueryParser_set_stemmer",2,2,swig_obj)) SWIG_fail;
33929   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
33930   if (!SWIG_IsOK(res1)) {
33931     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_set_stemmer" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
33932   }
33933   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
33934   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__Stem,  0  | 0);
33935   if (!SWIG_IsOK(res2)) {
33936     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_set_stemmer" "', argument " "2"" of type '" "Xapian::Stem const &""'");
33937   }
33938   if (!argp2) {
33939     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_set_stemmer" "', argument " "2"" of type '" "Xapian::Stem const &""'");
33940   }
33941   arg2 = reinterpret_cast< Xapian::Stem * >(argp2);
33942   {
33943     try {
33944       {
33945         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
33946         (arg1)->set_stemmer((Xapian::Stem const &)*arg2);
33947         SWIG_PYTHON_THREAD_END_ALLOW;
33948       }
33949     } catch (...) {
33950       Xapian::SetPythonException();
33951       SWIG_fail;
33952     }
33953   }
33954   resultobj = SWIG_Py_Void();
33955   return resultobj;
33956 fail:
33957   return NULL;
33958 }
33959 
33960 
_wrap_QueryParser_set_stemming_strategy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)33961 SWIGINTERN PyObject *_wrap_QueryParser_set_stemming_strategy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33962   PyObject *resultobj = 0;
33963   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
33964   Xapian::QueryParser::stem_strategy arg2 ;
33965   void *argp1 = 0 ;
33966   int res1 = 0 ;
33967   int val2 ;
33968   int ecode2 = 0 ;
33969   PyObject *swig_obj[2] ;
33970 
33971   if (!SWIG_Python_UnpackTuple(args,"QueryParser_set_stemming_strategy",2,2,swig_obj)) SWIG_fail;
33972   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
33973   if (!SWIG_IsOK(res1)) {
33974     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_set_stemming_strategy" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
33975   }
33976   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
33977   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
33978   if (!SWIG_IsOK(ecode2)) {
33979     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryParser_set_stemming_strategy" "', argument " "2"" of type '" "Xapian::QueryParser::stem_strategy""'");
33980   }
33981   arg2 = static_cast< Xapian::QueryParser::stem_strategy >(val2);
33982   {
33983     try {
33984       {
33985         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
33986         (arg1)->set_stemming_strategy(arg2);
33987         SWIG_PYTHON_THREAD_END_ALLOW;
33988       }
33989     } catch (...) {
33990       Xapian::SetPythonException();
33991       SWIG_fail;
33992     }
33993   }
33994   resultobj = SWIG_Py_Void();
33995   return resultobj;
33996 fail:
33997   return NULL;
33998 }
33999 
34000 
_wrap_QueryParser_set_stopper__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)34001 SWIGINTERN PyObject *_wrap_QueryParser_set_stopper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
34002   PyObject *resultobj = 0;
34003   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
34004   Xapian::Stopper *arg2 = (Xapian::Stopper *) 0 ;
34005   void *argp1 = 0 ;
34006   int res1 = 0 ;
34007   void *argp2 = 0 ;
34008   int res2 = 0 ;
34009 
34010   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
34011   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
34012   if (!SWIG_IsOK(res1)) {
34013     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_set_stopper" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
34014   }
34015   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
34016   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Xapian__Stopper, 0 |  0 );
34017   if (!SWIG_IsOK(res2)) {
34018     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_set_stopper" "', argument " "2"" of type '" "Xapian::Stopper const *""'");
34019   }
34020   arg2 = reinterpret_cast< Xapian::Stopper * >(argp2);
34021   {
34022     try {
34023       {
34024         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
34025         (arg1)->set_stopper((Xapian::Stopper const *)arg2);
34026         SWIG_PYTHON_THREAD_END_ALLOW;
34027       }
34028     } catch (...) {
34029       Xapian::SetPythonException();
34030       SWIG_fail;
34031     }
34032   }
34033   resultobj = SWIG_Py_Void();
34034   return resultobj;
34035 fail:
34036   return NULL;
34037 }
34038 
34039 
_wrap_QueryParser_set_stopper__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)34040 SWIGINTERN PyObject *_wrap_QueryParser_set_stopper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
34041   PyObject *resultobj = 0;
34042   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
34043   void *argp1 = 0 ;
34044   int res1 = 0 ;
34045 
34046   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
34047   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
34048   if (!SWIG_IsOK(res1)) {
34049     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_set_stopper" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
34050   }
34051   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
34052   {
34053     try {
34054       {
34055         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
34056         (arg1)->set_stopper();
34057         SWIG_PYTHON_THREAD_END_ALLOW;
34058       }
34059     } catch (...) {
34060       Xapian::SetPythonException();
34061       SWIG_fail;
34062     }
34063   }
34064   resultobj = SWIG_Py_Void();
34065   return resultobj;
34066 fail:
34067   return NULL;
34068 }
34069 
34070 
_wrap_QueryParser_set_stopper(PyObject * self,PyObject * args)34071 SWIGINTERN PyObject *_wrap_QueryParser_set_stopper(PyObject *self, PyObject *args) {
34072   Py_ssize_t argc;
34073   PyObject *argv[3] = {
34074     0
34075   };
34076 
34077   if (!(argc = SWIG_Python_UnpackTuple(args,"QueryParser_set_stopper",0,2,argv))) SWIG_fail;
34078   --argc;
34079   if (argc == 1) {
34080     return _wrap_QueryParser_set_stopper__SWIG_1(self, argc, argv);
34081   }
34082   if (argc == 2) {
34083     return _wrap_QueryParser_set_stopper__SWIG_0(self, argc, argv);
34084   }
34085 
34086 fail:
34087   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'QueryParser_set_stopper'.\n"
34088     "  Possible C/C++ prototypes are:\n"
34089     "    Xapian::QueryParser::set_stopper(Xapian::Stopper const *)\n"
34090     "    Xapian::QueryParser::set_stopper()\n");
34091   return 0;
34092 }
34093 
34094 
_wrap_QueryParser_set_default_op(PyObject * SWIGUNUSEDPARM (self),PyObject * args)34095 SWIGINTERN PyObject *_wrap_QueryParser_set_default_op(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34096   PyObject *resultobj = 0;
34097   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
34098   Xapian::Query::op arg2 ;
34099   void *argp1 = 0 ;
34100   int res1 = 0 ;
34101   int val2 ;
34102   int ecode2 = 0 ;
34103   PyObject *swig_obj[2] ;
34104 
34105   if (!SWIG_Python_UnpackTuple(args,"QueryParser_set_default_op",2,2,swig_obj)) SWIG_fail;
34106   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
34107   if (!SWIG_IsOK(res1)) {
34108     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_set_default_op" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
34109   }
34110   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
34111   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
34112   if (!SWIG_IsOK(ecode2)) {
34113     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryParser_set_default_op" "', argument " "2"" of type '" "Xapian::Query::op""'");
34114   }
34115   arg2 = static_cast< Xapian::Query::op >(val2);
34116   {
34117     try {
34118       {
34119         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
34120         (arg1)->set_default_op(arg2);
34121         SWIG_PYTHON_THREAD_END_ALLOW;
34122       }
34123     } catch (...) {
34124       Xapian::SetPythonException();
34125       SWIG_fail;
34126     }
34127   }
34128   resultobj = SWIG_Py_Void();
34129   return resultobj;
34130 fail:
34131   return NULL;
34132 }
34133 
34134 
_wrap_QueryParser_get_default_op(PyObject * SWIGUNUSEDPARM (self),PyObject * args)34135 SWIGINTERN PyObject *_wrap_QueryParser_get_default_op(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34136   PyObject *resultobj = 0;
34137   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
34138   void *argp1 = 0 ;
34139   int res1 = 0 ;
34140   PyObject *swig_obj[1] ;
34141   Xapian::Query::op result;
34142 
34143   if (!args) SWIG_fail;
34144   swig_obj[0] = args;
34145   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
34146   if (!SWIG_IsOK(res1)) {
34147     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_get_default_op" "', argument " "1"" of type '" "Xapian::QueryParser const *""'");
34148   }
34149   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
34150   {
34151     try {
34152       {
34153         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
34154         result = (Xapian::Query::op)((Xapian::QueryParser const *)arg1)->get_default_op();
34155         SWIG_PYTHON_THREAD_END_ALLOW;
34156       }
34157     } catch (...) {
34158       Xapian::SetPythonException();
34159       SWIG_fail;
34160     }
34161   }
34162   resultobj = SWIG_From_int(static_cast< int >(result));
34163   return resultobj;
34164 fail:
34165   return NULL;
34166 }
34167 
34168 
_wrap_QueryParser_set_database(PyObject * SWIGUNUSEDPARM (self),PyObject * args)34169 SWIGINTERN PyObject *_wrap_QueryParser_set_database(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34170   PyObject *resultobj = 0;
34171   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
34172   Xapian::Database *arg2 = 0 ;
34173   void *argp1 = 0 ;
34174   int res1 = 0 ;
34175   void *argp2 = 0 ;
34176   int res2 = 0 ;
34177   PyObject *swig_obj[2] ;
34178 
34179   if (!SWIG_Python_UnpackTuple(args,"QueryParser_set_database",2,2,swig_obj)) SWIG_fail;
34180   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
34181   if (!SWIG_IsOK(res1)) {
34182     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_set_database" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
34183   }
34184   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
34185   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__Database,  0  | 0);
34186   if (!SWIG_IsOK(res2)) {
34187     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_set_database" "', argument " "2"" of type '" "Xapian::Database const &""'");
34188   }
34189   if (!argp2) {
34190     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_set_database" "', argument " "2"" of type '" "Xapian::Database const &""'");
34191   }
34192   arg2 = reinterpret_cast< Xapian::Database * >(argp2);
34193   {
34194     try {
34195       {
34196         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
34197         (arg1)->set_database((Xapian::Database 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_max_expansion__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)34212 SWIGINTERN PyObject *_wrap_QueryParser_set_max_expansion__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
34213   PyObject *resultobj = 0;
34214   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
34215   Xapian::termcount arg2 ;
34216   int arg3 ;
34217   unsigned int arg4 ;
34218   void *argp1 = 0 ;
34219   int res1 = 0 ;
34220   unsigned int val2 ;
34221   int ecode2 = 0 ;
34222   int val3 ;
34223   int ecode3 = 0 ;
34224   unsigned int val4 ;
34225   int ecode4 = 0 ;
34226 
34227   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
34228   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
34229   if (!SWIG_IsOK(res1)) {
34230     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_set_max_expansion" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
34231   }
34232   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
34233   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
34234   if (!SWIG_IsOK(ecode2)) {
34235     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryParser_set_max_expansion" "', argument " "2"" of type '" "Xapian::termcount""'");
34236   }
34237   arg2 = static_cast< Xapian::termcount >(val2);
34238   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
34239   if (!SWIG_IsOK(ecode3)) {
34240     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "QueryParser_set_max_expansion" "', argument " "3"" of type '" "int""'");
34241   }
34242   arg3 = static_cast< int >(val3);
34243   ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4);
34244   if (!SWIG_IsOK(ecode4)) {
34245     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "QueryParser_set_max_expansion" "', argument " "4"" of type '" "unsigned int""'");
34246   }
34247   arg4 = static_cast< unsigned int >(val4);
34248   {
34249     try {
34250       {
34251         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
34252         (arg1)->set_max_expansion(arg2,arg3,arg4);
34253         SWIG_PYTHON_THREAD_END_ALLOW;
34254       }
34255     } catch (...) {
34256       Xapian::SetPythonException();
34257       SWIG_fail;
34258     }
34259   }
34260   resultobj = SWIG_Py_Void();
34261   return resultobj;
34262 fail:
34263   return NULL;
34264 }
34265 
34266 
_wrap_QueryParser_set_max_expansion__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)34267 SWIGINTERN PyObject *_wrap_QueryParser_set_max_expansion__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
34268   PyObject *resultobj = 0;
34269   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
34270   Xapian::termcount arg2 ;
34271   int arg3 ;
34272   void *argp1 = 0 ;
34273   int res1 = 0 ;
34274   unsigned int val2 ;
34275   int ecode2 = 0 ;
34276   int val3 ;
34277   int ecode3 = 0 ;
34278 
34279   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
34280   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
34281   if (!SWIG_IsOK(res1)) {
34282     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_set_max_expansion" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
34283   }
34284   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
34285   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
34286   if (!SWIG_IsOK(ecode2)) {
34287     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryParser_set_max_expansion" "', argument " "2"" of type '" "Xapian::termcount""'");
34288   }
34289   arg2 = static_cast< Xapian::termcount >(val2);
34290   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
34291   if (!SWIG_IsOK(ecode3)) {
34292     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "QueryParser_set_max_expansion" "', argument " "3"" of type '" "int""'");
34293   }
34294   arg3 = static_cast< int >(val3);
34295   {
34296     try {
34297       {
34298         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
34299         (arg1)->set_max_expansion(arg2,arg3);
34300         SWIG_PYTHON_THREAD_END_ALLOW;
34301       }
34302     } catch (...) {
34303       Xapian::SetPythonException();
34304       SWIG_fail;
34305     }
34306   }
34307   resultobj = SWIG_Py_Void();
34308   return resultobj;
34309 fail:
34310   return NULL;
34311 }
34312 
34313 
_wrap_QueryParser_set_max_expansion__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)34314 SWIGINTERN PyObject *_wrap_QueryParser_set_max_expansion__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
34315   PyObject *resultobj = 0;
34316   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
34317   Xapian::termcount arg2 ;
34318   void *argp1 = 0 ;
34319   int res1 = 0 ;
34320   unsigned int val2 ;
34321   int ecode2 = 0 ;
34322 
34323   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
34324   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
34325   if (!SWIG_IsOK(res1)) {
34326     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_set_max_expansion" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
34327   }
34328   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
34329   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
34330   if (!SWIG_IsOK(ecode2)) {
34331     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryParser_set_max_expansion" "', argument " "2"" of type '" "Xapian::termcount""'");
34332   }
34333   arg2 = static_cast< Xapian::termcount >(val2);
34334   {
34335     try {
34336       {
34337         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
34338         (arg1)->set_max_expansion(arg2);
34339         SWIG_PYTHON_THREAD_END_ALLOW;
34340       }
34341     } catch (...) {
34342       Xapian::SetPythonException();
34343       SWIG_fail;
34344     }
34345   }
34346   resultobj = SWIG_Py_Void();
34347   return resultobj;
34348 fail:
34349   return NULL;
34350 }
34351 
34352 
_wrap_QueryParser_set_max_expansion(PyObject * self,PyObject * args)34353 SWIGINTERN PyObject *_wrap_QueryParser_set_max_expansion(PyObject *self, PyObject *args) {
34354   Py_ssize_t argc;
34355   PyObject *argv[5] = {
34356     0
34357   };
34358 
34359   if (!(argc = SWIG_Python_UnpackTuple(args,"QueryParser_set_max_expansion",0,4,argv))) SWIG_fail;
34360   --argc;
34361   if (argc == 2) {
34362     return _wrap_QueryParser_set_max_expansion__SWIG_2(self, argc, argv);
34363   }
34364   if (argc == 3) {
34365     return _wrap_QueryParser_set_max_expansion__SWIG_1(self, argc, argv);
34366   }
34367   if (argc == 4) {
34368     return _wrap_QueryParser_set_max_expansion__SWIG_0(self, argc, argv);
34369   }
34370 
34371 fail:
34372   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'QueryParser_set_max_expansion'.\n"
34373     "  Possible C/C++ prototypes are:\n"
34374     "    Xapian::QueryParser::set_max_expansion(Xapian::termcount,int,unsigned int)\n"
34375     "    Xapian::QueryParser::set_max_expansion(Xapian::termcount,int)\n"
34376     "    Xapian::QueryParser::set_max_expansion(Xapian::termcount)\n");
34377   return 0;
34378 }
34379 
34380 
_wrap_QueryParser_set_max_wildcard_expansion(PyObject * SWIGUNUSEDPARM (self),PyObject * args)34381 SWIGINTERN PyObject *_wrap_QueryParser_set_max_wildcard_expansion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34382   PyObject *resultobj = 0;
34383   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
34384   Xapian::termcount arg2 ;
34385   void *argp1 = 0 ;
34386   int res1 = 0 ;
34387   unsigned int val2 ;
34388   int ecode2 = 0 ;
34389   PyObject *swig_obj[2] ;
34390 
34391   if (!SWIG_Python_UnpackTuple(args,"QueryParser_set_max_wildcard_expansion",2,2,swig_obj)) SWIG_fail;
34392   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
34393   if (!SWIG_IsOK(res1)) {
34394     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_set_max_wildcard_expansion" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
34395   }
34396   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
34397   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
34398   if (!SWIG_IsOK(ecode2)) {
34399     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryParser_set_max_wildcard_expansion" "', argument " "2"" of type '" "Xapian::termcount""'");
34400   }
34401   arg2 = static_cast< Xapian::termcount >(val2);
34402   {
34403     try {
34404       {
34405         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
34406         (arg1)->set_max_wildcard_expansion(arg2);
34407         SWIG_PYTHON_THREAD_END_ALLOW;
34408       }
34409     } catch (...) {
34410       Xapian::SetPythonException();
34411       SWIG_fail;
34412     }
34413   }
34414   resultobj = SWIG_Py_Void();
34415   return resultobj;
34416 fail:
34417   return NULL;
34418 }
34419 
34420 
_wrap_QueryParser_parse_query__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)34421 SWIGINTERN PyObject *_wrap_QueryParser_parse_query__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
34422   PyObject *resultobj = 0;
34423   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
34424   std::string *arg2 = 0 ;
34425   unsigned int arg3 ;
34426   std::string *arg4 = 0 ;
34427   void *argp1 = 0 ;
34428   int res1 = 0 ;
34429   int res2 = SWIG_OLDOBJ ;
34430   unsigned int val3 ;
34431   int ecode3 = 0 ;
34432   int res4 = SWIG_OLDOBJ ;
34433   Xapian::Query result;
34434 
34435   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
34436   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
34437   if (!SWIG_IsOK(res1)) {
34438     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_parse_query" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
34439   }
34440   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
34441   {
34442     std::string *ptr = (std::string *)0;
34443     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
34444     if (!SWIG_IsOK(res2)) {
34445       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_parse_query" "', argument " "2"" of type '" "std::string const &""'");
34446     }
34447     if (!ptr) {
34448       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_parse_query" "', argument " "2"" of type '" "std::string const &""'");
34449     }
34450     arg2 = ptr;
34451   }
34452   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
34453   if (!SWIG_IsOK(ecode3)) {
34454     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "QueryParser_parse_query" "', argument " "3"" of type '" "unsigned int""'");
34455   }
34456   arg3 = static_cast< unsigned int >(val3);
34457   {
34458     std::string *ptr = (std::string *)0;
34459     res4 = XapianSWIG_anystring_as_ptr(swig_obj[3], &ptr);
34460     if (!SWIG_IsOK(res4)) {
34461       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "QueryParser_parse_query" "', argument " "4"" of type '" "std::string const &""'");
34462     }
34463     if (!ptr) {
34464       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_parse_query" "', argument " "4"" of type '" "std::string const &""'");
34465     }
34466     arg4 = ptr;
34467   }
34468   {
34469     try {
34470       {
34471         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
34472         result = (arg1)->parse_query((std::string const &)*arg2,arg3,(std::string const &)*arg4);
34473         SWIG_PYTHON_THREAD_END_ALLOW;
34474       }
34475     } catch (...) {
34476       Xapian::SetPythonException();
34477       SWIG_fail;
34478     }
34479   }
34480   resultobj = SWIG_NewPointerObj((new Xapian::Query(static_cast< const Xapian::Query& >(result))), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_OWN |  0 );
34481   if (SWIG_IsNewObj(res2)) delete arg2;
34482   if (SWIG_IsNewObj(res4)) delete arg4;
34483   return resultobj;
34484 fail:
34485   if (SWIG_IsNewObj(res2)) delete arg2;
34486   if (SWIG_IsNewObj(res4)) delete arg4;
34487   return NULL;
34488 }
34489 
34490 
_wrap_QueryParser_parse_query__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)34491 SWIGINTERN PyObject *_wrap_QueryParser_parse_query__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
34492   PyObject *resultobj = 0;
34493   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
34494   std::string *arg2 = 0 ;
34495   unsigned int arg3 ;
34496   void *argp1 = 0 ;
34497   int res1 = 0 ;
34498   int res2 = SWIG_OLDOBJ ;
34499   unsigned int val3 ;
34500   int ecode3 = 0 ;
34501   Xapian::Query result;
34502 
34503   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
34504   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
34505   if (!SWIG_IsOK(res1)) {
34506     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_parse_query" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
34507   }
34508   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
34509   {
34510     std::string *ptr = (std::string *)0;
34511     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
34512     if (!SWIG_IsOK(res2)) {
34513       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_parse_query" "', argument " "2"" of type '" "std::string const &""'");
34514     }
34515     if (!ptr) {
34516       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_parse_query" "', argument " "2"" of type '" "std::string const &""'");
34517     }
34518     arg2 = ptr;
34519   }
34520   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
34521   if (!SWIG_IsOK(ecode3)) {
34522     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "QueryParser_parse_query" "', argument " "3"" of type '" "unsigned int""'");
34523   }
34524   arg3 = static_cast< unsigned int >(val3);
34525   {
34526     try {
34527       {
34528         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
34529         result = (arg1)->parse_query((std::string const &)*arg2,arg3);
34530         SWIG_PYTHON_THREAD_END_ALLOW;
34531       }
34532     } catch (...) {
34533       Xapian::SetPythonException();
34534       SWIG_fail;
34535     }
34536   }
34537   resultobj = SWIG_NewPointerObj((new Xapian::Query(static_cast< const Xapian::Query& >(result))), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_OWN |  0 );
34538   if (SWIG_IsNewObj(res2)) delete arg2;
34539   return resultobj;
34540 fail:
34541   if (SWIG_IsNewObj(res2)) delete arg2;
34542   return NULL;
34543 }
34544 
34545 
_wrap_QueryParser_parse_query__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)34546 SWIGINTERN PyObject *_wrap_QueryParser_parse_query__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
34547   PyObject *resultobj = 0;
34548   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
34549   std::string *arg2 = 0 ;
34550   void *argp1 = 0 ;
34551   int res1 = 0 ;
34552   int res2 = SWIG_OLDOBJ ;
34553   Xapian::Query result;
34554 
34555   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
34556   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
34557   if (!SWIG_IsOK(res1)) {
34558     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_parse_query" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
34559   }
34560   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
34561   {
34562     std::string *ptr = (std::string *)0;
34563     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
34564     if (!SWIG_IsOK(res2)) {
34565       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_parse_query" "', argument " "2"" of type '" "std::string const &""'");
34566     }
34567     if (!ptr) {
34568       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_parse_query" "', argument " "2"" of type '" "std::string const &""'");
34569     }
34570     arg2 = ptr;
34571   }
34572   {
34573     try {
34574       {
34575         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
34576         result = (arg1)->parse_query((std::string const &)*arg2);
34577         SWIG_PYTHON_THREAD_END_ALLOW;
34578       }
34579     } catch (...) {
34580       Xapian::SetPythonException();
34581       SWIG_fail;
34582     }
34583   }
34584   resultobj = SWIG_NewPointerObj((new Xapian::Query(static_cast< const Xapian::Query& >(result))), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_OWN |  0 );
34585   if (SWIG_IsNewObj(res2)) delete arg2;
34586   return resultobj;
34587 fail:
34588   if (SWIG_IsNewObj(res2)) delete arg2;
34589   return NULL;
34590 }
34591 
34592 
_wrap_QueryParser_parse_query(PyObject * self,PyObject * args)34593 SWIGINTERN PyObject *_wrap_QueryParser_parse_query(PyObject *self, PyObject *args) {
34594   Py_ssize_t argc;
34595   PyObject *argv[5] = {
34596     0
34597   };
34598 
34599   if (!(argc = SWIG_Python_UnpackTuple(args,"QueryParser_parse_query",0,4,argv))) SWIG_fail;
34600   --argc;
34601   if (argc == 2) {
34602     return _wrap_QueryParser_parse_query__SWIG_2(self, argc, argv);
34603   }
34604   if (argc == 3) {
34605     return _wrap_QueryParser_parse_query__SWIG_1(self, argc, argv);
34606   }
34607   if (argc == 4) {
34608     return _wrap_QueryParser_parse_query__SWIG_0(self, argc, argv);
34609   }
34610 
34611 fail:
34612   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'QueryParser_parse_query'.\n"
34613     "  Possible C/C++ prototypes are:\n"
34614     "    Xapian::QueryParser::parse_query(std::string const &,unsigned int,std::string const &)\n"
34615     "    Xapian::QueryParser::parse_query(std::string const &,unsigned int)\n"
34616     "    Xapian::QueryParser::parse_query(std::string const &)\n");
34617   return 0;
34618 }
34619 
34620 
_wrap_QueryParser_add_prefix__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)34621 SWIGINTERN PyObject *_wrap_QueryParser_add_prefix__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
34622   PyObject *resultobj = 0;
34623   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
34624   std::string *arg2 = 0 ;
34625   std::string *arg3 = 0 ;
34626   void *argp1 = 0 ;
34627   int res1 = 0 ;
34628   int res2 = SWIG_OLDOBJ ;
34629   int res3 = SWIG_OLDOBJ ;
34630 
34631   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
34632   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
34633   if (!SWIG_IsOK(res1)) {
34634     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_add_prefix" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
34635   }
34636   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
34637   {
34638     std::string *ptr = (std::string *)0;
34639     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
34640     if (!SWIG_IsOK(res2)) {
34641       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_add_prefix" "', argument " "2"" of type '" "std::string const &""'");
34642     }
34643     if (!ptr) {
34644       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_add_prefix" "', argument " "2"" of type '" "std::string const &""'");
34645     }
34646     arg2 = ptr;
34647   }
34648   {
34649     std::string *ptr = (std::string *)0;
34650     res3 = XapianSWIG_anystring_as_ptr(swig_obj[2], &ptr);
34651     if (!SWIG_IsOK(res3)) {
34652       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QueryParser_add_prefix" "', argument " "3"" of type '" "std::string const &""'");
34653     }
34654     if (!ptr) {
34655       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_add_prefix" "', argument " "3"" of type '" "std::string const &""'");
34656     }
34657     arg3 = ptr;
34658   }
34659   {
34660     try {
34661       {
34662         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
34663         (arg1)->add_prefix((std::string const &)*arg2,(std::string const &)*arg3);
34664         SWIG_PYTHON_THREAD_END_ALLOW;
34665       }
34666     } catch (...) {
34667       Xapian::SetPythonException();
34668       SWIG_fail;
34669     }
34670   }
34671   resultobj = SWIG_Py_Void();
34672   if (SWIG_IsNewObj(res2)) delete arg2;
34673   if (SWIG_IsNewObj(res3)) delete arg3;
34674   return resultobj;
34675 fail:
34676   if (SWIG_IsNewObj(res2)) delete arg2;
34677   if (SWIG_IsNewObj(res3)) delete arg3;
34678   return NULL;
34679 }
34680 
34681 
_wrap_QueryParser_add_prefix__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)34682 SWIGINTERN PyObject *_wrap_QueryParser_add_prefix__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
34683   PyObject *resultobj = 0;
34684   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
34685   std::string *arg2 = 0 ;
34686   Xapian::FieldProcessor *arg3 = (Xapian::FieldProcessor *) 0 ;
34687   void *argp1 = 0 ;
34688   int res1 = 0 ;
34689   int res2 = SWIG_OLDOBJ ;
34690   void *argp3 = 0 ;
34691   int res3 = 0 ;
34692 
34693   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
34694   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
34695   if (!SWIG_IsOK(res1)) {
34696     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_add_prefix" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
34697   }
34698   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
34699   {
34700     std::string *ptr = (std::string *)0;
34701     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
34702     if (!SWIG_IsOK(res2)) {
34703       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_add_prefix" "', argument " "2"" of type '" "std::string const &""'");
34704     }
34705     if (!ptr) {
34706       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_add_prefix" "', argument " "2"" of type '" "std::string const &""'");
34707     }
34708     arg2 = ptr;
34709   }
34710   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_Xapian__FieldProcessor, 0 |  0 );
34711   if (!SWIG_IsOK(res3)) {
34712     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QueryParser_add_prefix" "', argument " "3"" of type '" "Xapian::FieldProcessor *""'");
34713   }
34714   arg3 = reinterpret_cast< Xapian::FieldProcessor * >(argp3);
34715   {
34716     try {
34717       {
34718         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
34719         (arg1)->add_prefix((std::string const &)*arg2,arg3);
34720         SWIG_PYTHON_THREAD_END_ALLOW;
34721       }
34722     } catch (...) {
34723       Xapian::SetPythonException();
34724       SWIG_fail;
34725     }
34726   }
34727   resultobj = SWIG_Py_Void();
34728   if (SWIG_IsNewObj(res2)) delete arg2;
34729   return resultobj;
34730 fail:
34731   if (SWIG_IsNewObj(res2)) delete arg2;
34732   return NULL;
34733 }
34734 
34735 
_wrap_QueryParser_add_prefix(PyObject * self,PyObject * args)34736 SWIGINTERN PyObject *_wrap_QueryParser_add_prefix(PyObject *self, PyObject *args) {
34737   Py_ssize_t argc;
34738   PyObject *argv[4] = {
34739     0
34740   };
34741 
34742   if (!(argc = SWIG_Python_UnpackTuple(args,"QueryParser_add_prefix",0,3,argv))) SWIG_fail;
34743   --argc;
34744   if (argc == 3) {
34745     int _v = 0;
34746     {
34747       void *vptr = 0;
34748       int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_Xapian__FieldProcessor, 0);
34749       _v = SWIG_CheckState(res);
34750     }
34751     if (!_v) goto check_1;
34752     return _wrap_QueryParser_add_prefix__SWIG_1(self, argc, argv);
34753   }
34754 check_1:
34755 
34756   if (argc == 3) {
34757     return _wrap_QueryParser_add_prefix__SWIG_0(self, argc, argv);
34758   }
34759 
34760 fail:
34761   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'QueryParser_add_prefix'.\n"
34762     "  Possible C/C++ prototypes are:\n"
34763     "    Xapian::QueryParser::add_prefix(std::string const &,std::string const &)\n"
34764     "    Xapian::QueryParser::add_prefix(std::string const &,Xapian::FieldProcessor *)\n");
34765   return 0;
34766 }
34767 
34768 
_wrap_QueryParser_add_boolean_prefix__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)34769 SWIGINTERN PyObject *_wrap_QueryParser_add_boolean_prefix__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
34770   PyObject *resultobj = 0;
34771   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
34772   std::string *arg2 = 0 ;
34773   std::string *arg3 = 0 ;
34774   std::string *arg4 = (std::string *) 0 ;
34775   void *argp1 = 0 ;
34776   int res1 = 0 ;
34777   int res2 = SWIG_OLDOBJ ;
34778   int res3 = SWIG_OLDOBJ ;
34779   int res4 = SWIG_OLDOBJ ;
34780 
34781   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
34782   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
34783   if (!SWIG_IsOK(res1)) {
34784     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_add_boolean_prefix" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
34785   }
34786   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
34787   {
34788     std::string *ptr = (std::string *)0;
34789     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
34790     if (!SWIG_IsOK(res2)) {
34791       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_add_boolean_prefix" "', argument " "2"" of type '" "std::string const &""'");
34792     }
34793     if (!ptr) {
34794       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_add_boolean_prefix" "', argument " "2"" of type '" "std::string const &""'");
34795     }
34796     arg2 = ptr;
34797   }
34798   {
34799     std::string *ptr = (std::string *)0;
34800     res3 = XapianSWIG_anystring_as_ptr(swig_obj[2], &ptr);
34801     if (!SWIG_IsOK(res3)) {
34802       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QueryParser_add_boolean_prefix" "', argument " "3"" of type '" "std::string const &""'");
34803     }
34804     if (!ptr) {
34805       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_add_boolean_prefix" "', argument " "3"" of type '" "std::string const &""'");
34806     }
34807     arg3 = ptr;
34808   }
34809   {
34810     std::string *ptr = (std::string *)0;
34811     if (swig_obj[3] != Py_None) {
34812       res4 = XapianSWIG_anystring_as_ptr(swig_obj[3], &ptr);
34813       if (!SWIG_IsOK(res4)) {
34814         SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "QueryParser_add_boolean_prefix" "', argument " "4"" of type '" "std::string const *""'");
34815       }
34816     }
34817     arg4 = ptr;
34818   }
34819   {
34820     try {
34821       {
34822         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
34823         (arg1)->add_boolean_prefix((std::string const &)*arg2,(std::string const &)*arg3,(std::string const *)arg4);
34824         SWIG_PYTHON_THREAD_END_ALLOW;
34825       }
34826     } catch (...) {
34827       Xapian::SetPythonException();
34828       SWIG_fail;
34829     }
34830   }
34831   resultobj = SWIG_Py_Void();
34832   if (SWIG_IsNewObj(res2)) delete arg2;
34833   if (SWIG_IsNewObj(res3)) delete arg3;
34834   if (SWIG_IsNewObj(res4)) delete arg4;
34835   return resultobj;
34836 fail:
34837   if (SWIG_IsNewObj(res2)) delete arg2;
34838   if (SWIG_IsNewObj(res3)) delete arg3;
34839   if (SWIG_IsNewObj(res4)) delete arg4;
34840   return NULL;
34841 }
34842 
34843 
_wrap_QueryParser_add_boolean_prefix__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)34844 SWIGINTERN PyObject *_wrap_QueryParser_add_boolean_prefix__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
34845   PyObject *resultobj = 0;
34846   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
34847   std::string *arg2 = 0 ;
34848   std::string *arg3 = 0 ;
34849   void *argp1 = 0 ;
34850   int res1 = 0 ;
34851   int res2 = SWIG_OLDOBJ ;
34852   int res3 = SWIG_OLDOBJ ;
34853 
34854   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
34855   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
34856   if (!SWIG_IsOK(res1)) {
34857     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_add_boolean_prefix" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
34858   }
34859   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
34860   {
34861     std::string *ptr = (std::string *)0;
34862     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
34863     if (!SWIG_IsOK(res2)) {
34864       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_add_boolean_prefix" "', argument " "2"" of type '" "std::string const &""'");
34865     }
34866     if (!ptr) {
34867       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_add_boolean_prefix" "', argument " "2"" of type '" "std::string const &""'");
34868     }
34869     arg2 = ptr;
34870   }
34871   {
34872     std::string *ptr = (std::string *)0;
34873     res3 = XapianSWIG_anystring_as_ptr(swig_obj[2], &ptr);
34874     if (!SWIG_IsOK(res3)) {
34875       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QueryParser_add_boolean_prefix" "', argument " "3"" of type '" "std::string const &""'");
34876     }
34877     if (!ptr) {
34878       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_add_boolean_prefix" "', argument " "3"" of type '" "std::string const &""'");
34879     }
34880     arg3 = ptr;
34881   }
34882   {
34883     try {
34884       {
34885         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
34886         (arg1)->add_boolean_prefix((std::string const &)*arg2,(std::string const &)*arg3);
34887         SWIG_PYTHON_THREAD_END_ALLOW;
34888       }
34889     } catch (...) {
34890       Xapian::SetPythonException();
34891       SWIG_fail;
34892     }
34893   }
34894   resultobj = SWIG_Py_Void();
34895   if (SWIG_IsNewObj(res2)) delete arg2;
34896   if (SWIG_IsNewObj(res3)) delete arg3;
34897   return resultobj;
34898 fail:
34899   if (SWIG_IsNewObj(res2)) delete arg2;
34900   if (SWIG_IsNewObj(res3)) delete arg3;
34901   return NULL;
34902 }
34903 
34904 
_wrap_QueryParser_add_boolean_prefix__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)34905 SWIGINTERN PyObject *_wrap_QueryParser_add_boolean_prefix__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
34906   PyObject *resultobj = 0;
34907   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
34908   std::string *arg2 = 0 ;
34909   std::string *arg3 = 0 ;
34910   bool arg4 ;
34911   void *argp1 = 0 ;
34912   int res1 = 0 ;
34913   int res2 = SWIG_OLDOBJ ;
34914   int res3 = SWIG_OLDOBJ ;
34915   bool val4 ;
34916   int ecode4 = 0 ;
34917 
34918   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
34919   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
34920   if (!SWIG_IsOK(res1)) {
34921     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_add_boolean_prefix" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
34922   }
34923   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
34924   {
34925     std::string *ptr = (std::string *)0;
34926     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
34927     if (!SWIG_IsOK(res2)) {
34928       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_add_boolean_prefix" "', argument " "2"" of type '" "std::string const &""'");
34929     }
34930     if (!ptr) {
34931       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_add_boolean_prefix" "', argument " "2"" of type '" "std::string const &""'");
34932     }
34933     arg2 = ptr;
34934   }
34935   {
34936     std::string *ptr = (std::string *)0;
34937     res3 = XapianSWIG_anystring_as_ptr(swig_obj[2], &ptr);
34938     if (!SWIG_IsOK(res3)) {
34939       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QueryParser_add_boolean_prefix" "', argument " "3"" of type '" "std::string const &""'");
34940     }
34941     if (!ptr) {
34942       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_add_boolean_prefix" "', argument " "3"" of type '" "std::string const &""'");
34943     }
34944     arg3 = ptr;
34945   }
34946   ecode4 = SWIG_AsVal_bool(swig_obj[3], &val4);
34947   if (!SWIG_IsOK(ecode4)) {
34948     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "QueryParser_add_boolean_prefix" "', argument " "4"" of type '" "bool""'");
34949   }
34950   arg4 = static_cast< bool >(val4);
34951   {
34952     try {
34953       {
34954         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
34955         (arg1)->add_boolean_prefix((std::string const &)*arg2,(std::string const &)*arg3,arg4);
34956         SWIG_PYTHON_THREAD_END_ALLOW;
34957       }
34958     } catch (...) {
34959       Xapian::SetPythonException();
34960       SWIG_fail;
34961     }
34962   }
34963   resultobj = SWIG_Py_Void();
34964   if (SWIG_IsNewObj(res2)) delete arg2;
34965   if (SWIG_IsNewObj(res3)) delete arg3;
34966   return resultobj;
34967 fail:
34968   if (SWIG_IsNewObj(res2)) delete arg2;
34969   if (SWIG_IsNewObj(res3)) delete arg3;
34970   return NULL;
34971 }
34972 
34973 
_wrap_QueryParser_add_boolean_prefix__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)34974 SWIGINTERN PyObject *_wrap_QueryParser_add_boolean_prefix__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
34975   PyObject *resultobj = 0;
34976   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
34977   std::string *arg2 = 0 ;
34978   Xapian::FieldProcessor *arg3 = (Xapian::FieldProcessor *) 0 ;
34979   std::string *arg4 = (std::string *) 0 ;
34980   void *argp1 = 0 ;
34981   int res1 = 0 ;
34982   int res2 = SWIG_OLDOBJ ;
34983   void *argp3 = 0 ;
34984   int res3 = 0 ;
34985   int res4 = SWIG_OLDOBJ ;
34986 
34987   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
34988   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
34989   if (!SWIG_IsOK(res1)) {
34990     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_add_boolean_prefix" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
34991   }
34992   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
34993   {
34994     std::string *ptr = (std::string *)0;
34995     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
34996     if (!SWIG_IsOK(res2)) {
34997       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_add_boolean_prefix" "', argument " "2"" of type '" "std::string const &""'");
34998     }
34999     if (!ptr) {
35000       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_add_boolean_prefix" "', argument " "2"" of type '" "std::string const &""'");
35001     }
35002     arg2 = ptr;
35003   }
35004   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_Xapian__FieldProcessor, 0 |  0 );
35005   if (!SWIG_IsOK(res3)) {
35006     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QueryParser_add_boolean_prefix" "', argument " "3"" of type '" "Xapian::FieldProcessor *""'");
35007   }
35008   arg3 = reinterpret_cast< Xapian::FieldProcessor * >(argp3);
35009   {
35010     std::string *ptr = (std::string *)0;
35011     if (swig_obj[3] != Py_None) {
35012       res4 = XapianSWIG_anystring_as_ptr(swig_obj[3], &ptr);
35013       if (!SWIG_IsOK(res4)) {
35014         SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "QueryParser_add_boolean_prefix" "', argument " "4"" of type '" "std::string const *""'");
35015       }
35016     }
35017     arg4 = ptr;
35018   }
35019   {
35020     try {
35021       {
35022         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
35023         (arg1)->add_boolean_prefix((std::string const &)*arg2,arg3,(std::string const *)arg4);
35024         SWIG_PYTHON_THREAD_END_ALLOW;
35025       }
35026     } catch (...) {
35027       Xapian::SetPythonException();
35028       SWIG_fail;
35029     }
35030   }
35031   resultobj = SWIG_Py_Void();
35032   if (SWIG_IsNewObj(res2)) delete arg2;
35033   if (SWIG_IsNewObj(res4)) delete arg4;
35034   return resultobj;
35035 fail:
35036   if (SWIG_IsNewObj(res2)) delete arg2;
35037   if (SWIG_IsNewObj(res4)) delete arg4;
35038   return NULL;
35039 }
35040 
35041 
_wrap_QueryParser_add_boolean_prefix__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)35042 SWIGINTERN PyObject *_wrap_QueryParser_add_boolean_prefix__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
35043   PyObject *resultobj = 0;
35044   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
35045   std::string *arg2 = 0 ;
35046   Xapian::FieldProcessor *arg3 = (Xapian::FieldProcessor *) 0 ;
35047   void *argp1 = 0 ;
35048   int res1 = 0 ;
35049   int res2 = SWIG_OLDOBJ ;
35050   void *argp3 = 0 ;
35051   int res3 = 0 ;
35052 
35053   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
35054   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
35055   if (!SWIG_IsOK(res1)) {
35056     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_add_boolean_prefix" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
35057   }
35058   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
35059   {
35060     std::string *ptr = (std::string *)0;
35061     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
35062     if (!SWIG_IsOK(res2)) {
35063       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_add_boolean_prefix" "', argument " "2"" of type '" "std::string const &""'");
35064     }
35065     if (!ptr) {
35066       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_add_boolean_prefix" "', argument " "2"" of type '" "std::string const &""'");
35067     }
35068     arg2 = ptr;
35069   }
35070   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_Xapian__FieldProcessor, 0 |  0 );
35071   if (!SWIG_IsOK(res3)) {
35072     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QueryParser_add_boolean_prefix" "', argument " "3"" of type '" "Xapian::FieldProcessor *""'");
35073   }
35074   arg3 = reinterpret_cast< Xapian::FieldProcessor * >(argp3);
35075   {
35076     try {
35077       {
35078         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
35079         (arg1)->add_boolean_prefix((std::string const &)*arg2,arg3);
35080         SWIG_PYTHON_THREAD_END_ALLOW;
35081       }
35082     } catch (...) {
35083       Xapian::SetPythonException();
35084       SWIG_fail;
35085     }
35086   }
35087   resultobj = SWIG_Py_Void();
35088   if (SWIG_IsNewObj(res2)) delete arg2;
35089   return resultobj;
35090 fail:
35091   if (SWIG_IsNewObj(res2)) delete arg2;
35092   return NULL;
35093 }
35094 
35095 
_wrap_QueryParser_add_boolean_prefix__SWIG_5(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)35096 SWIGINTERN PyObject *_wrap_QueryParser_add_boolean_prefix__SWIG_5(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
35097   PyObject *resultobj = 0;
35098   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
35099   std::string *arg2 = 0 ;
35100   Xapian::FieldProcessor *arg3 = (Xapian::FieldProcessor *) 0 ;
35101   bool arg4 ;
35102   void *argp1 = 0 ;
35103   int res1 = 0 ;
35104   int res2 = SWIG_OLDOBJ ;
35105   void *argp3 = 0 ;
35106   int res3 = 0 ;
35107   bool val4 ;
35108   int ecode4 = 0 ;
35109 
35110   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
35111   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
35112   if (!SWIG_IsOK(res1)) {
35113     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_add_boolean_prefix" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
35114   }
35115   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
35116   {
35117     std::string *ptr = (std::string *)0;
35118     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
35119     if (!SWIG_IsOK(res2)) {
35120       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_add_boolean_prefix" "', argument " "2"" of type '" "std::string const &""'");
35121     }
35122     if (!ptr) {
35123       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_add_boolean_prefix" "', argument " "2"" of type '" "std::string const &""'");
35124     }
35125     arg2 = ptr;
35126   }
35127   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_Xapian__FieldProcessor, 0 |  0 );
35128   if (!SWIG_IsOK(res3)) {
35129     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QueryParser_add_boolean_prefix" "', argument " "3"" of type '" "Xapian::FieldProcessor *""'");
35130   }
35131   arg3 = reinterpret_cast< Xapian::FieldProcessor * >(argp3);
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,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   return resultobj;
35152 fail:
35153   if (SWIG_IsNewObj(res2)) delete arg2;
35154   return NULL;
35155 }
35156 
35157 
_wrap_QueryParser_add_boolean_prefix(PyObject * self,PyObject * args)35158 SWIGINTERN PyObject *_wrap_QueryParser_add_boolean_prefix(PyObject *self, PyObject *args) {
35159   Py_ssize_t argc;
35160   PyObject *argv[5] = {
35161     0
35162   };
35163 
35164   if (!(argc = SWIG_Python_UnpackTuple(args,"QueryParser_add_boolean_prefix",0,4,argv))) SWIG_fail;
35165   --argc;
35166   if (argc == 3) {
35167     int _v = 0;
35168     {
35169       void *vptr = 0;
35170       int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_Xapian__FieldProcessor, 0);
35171       _v = SWIG_CheckState(res);
35172     }
35173     if (!_v) goto check_1;
35174     return _wrap_QueryParser_add_boolean_prefix__SWIG_4(self, argc, argv);
35175   }
35176 check_1:
35177 
35178   if (argc == 3) {
35179     return _wrap_QueryParser_add_boolean_prefix__SWIG_1(self, argc, argv);
35180   }
35181   if (argc == 4) {
35182     int _v = 0;
35183     {
35184       void *vptr = 0;
35185       int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_Xapian__FieldProcessor, 0);
35186       _v = SWIG_CheckState(res);
35187     }
35188     if (!_v) goto check_3;
35189     {
35190       if (argv[3] == Py_None) {
35191         _v = 1;
35192       } else {
35193         int res = XapianSWIG_anystring_as_ptr(argv[3], (std::string**)(0));
35194         _v = SWIG_CheckState(res);
35195       }
35196     }
35197     if (!_v) goto check_3;
35198     return _wrap_QueryParser_add_boolean_prefix__SWIG_3(self, argc, argv);
35199   }
35200 check_3:
35201 
35202   if (argc == 4) {
35203     int _v = 0;
35204     {
35205       void *vptr = 0;
35206       int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_Xapian__FieldProcessor, 0);
35207       _v = SWIG_CheckState(res);
35208     }
35209     if (!_v) goto check_4;
35210     {
35211       {
35212         int res = SWIG_AsVal_bool(argv[3], NULL);
35213         _v = SWIG_CheckState(res);
35214       }
35215     }
35216     if (!_v) goto check_4;
35217     return _wrap_QueryParser_add_boolean_prefix__SWIG_5(self, argc, argv);
35218   }
35219 check_4:
35220 
35221   if (argc == 4) {
35222     int _v = 0;
35223     {
35224       if (argv[3] == Py_None) {
35225         _v = 1;
35226       } else {
35227         int res = XapianSWIG_anystring_as_ptr(argv[3], (std::string**)(0));
35228         _v = SWIG_CheckState(res);
35229       }
35230     }
35231     if (!_v) goto check_5;
35232     return _wrap_QueryParser_add_boolean_prefix__SWIG_0(self, argc, argv);
35233   }
35234 check_5:
35235 
35236   if (argc == 4) {
35237     return _wrap_QueryParser_add_boolean_prefix__SWIG_2(self, argc, argv);
35238   }
35239 
35240 fail:
35241   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'QueryParser_add_boolean_prefix'.\n"
35242     "  Possible C/C++ prototypes are:\n"
35243     "    Xapian::QueryParser::add_boolean_prefix(std::string const &,std::string const &,std::string const *)\n"
35244     "    Xapian::QueryParser::add_boolean_prefix(std::string const &,std::string const &)\n"
35245     "    Xapian::QueryParser::add_boolean_prefix(std::string const &,std::string const &,bool)\n"
35246     "    Xapian::QueryParser::add_boolean_prefix(std::string const &,Xapian::FieldProcessor *,std::string const *)\n"
35247     "    Xapian::QueryParser::add_boolean_prefix(std::string const &,Xapian::FieldProcessor *)\n"
35248     "    Xapian::QueryParser::add_boolean_prefix(std::string const &,Xapian::FieldProcessor *,bool)\n");
35249   return 0;
35250 }
35251 
35252 
_wrap_QueryParser__stoplist_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35253 SWIGINTERN PyObject *_wrap_QueryParser__stoplist_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35254   PyObject *resultobj = 0;
35255   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
35256   void *argp1 = 0 ;
35257   int res1 = 0 ;
35258   PyObject *swig_obj[1] ;
35259   Xapian::TermIterator result;
35260 
35261   if (!args) SWIG_fail;
35262   swig_obj[0] = args;
35263   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
35264   if (!SWIG_IsOK(res1)) {
35265     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser__stoplist_begin" "', argument " "1"" of type '" "Xapian::QueryParser const *""'");
35266   }
35267   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
35268   {
35269     try {
35270       {
35271         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
35272         result = ((Xapian::QueryParser const *)arg1)->stoplist_begin();
35273         SWIG_PYTHON_THREAD_END_ALLOW;
35274       }
35275     } catch (...) {
35276       Xapian::SetPythonException();
35277       SWIG_fail;
35278     }
35279   }
35280   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
35281   return resultobj;
35282 fail:
35283   return NULL;
35284 }
35285 
35286 
_wrap_QueryParser__stoplist_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35287 SWIGINTERN PyObject *_wrap_QueryParser__stoplist_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35288   PyObject *resultobj = 0;
35289   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
35290   void *argp1 = 0 ;
35291   int res1 = 0 ;
35292   PyObject *swig_obj[1] ;
35293   Xapian::TermIterator result;
35294 
35295   if (!args) SWIG_fail;
35296   swig_obj[0] = args;
35297   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
35298   if (!SWIG_IsOK(res1)) {
35299     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser__stoplist_end" "', argument " "1"" of type '" "Xapian::QueryParser const *""'");
35300   }
35301   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
35302   {
35303     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
35304     result = ((Xapian::QueryParser const *)arg1)->stoplist_end();
35305     SWIG_PYTHON_THREAD_END_ALLOW;
35306   }
35307   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
35308   return resultobj;
35309 fail:
35310   return NULL;
35311 }
35312 
35313 
_wrap_QueryParser__unstem_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35314 SWIGINTERN PyObject *_wrap_QueryParser__unstem_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35315   PyObject *resultobj = 0;
35316   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
35317   std::string *arg2 = 0 ;
35318   void *argp1 = 0 ;
35319   int res1 = 0 ;
35320   int res2 = SWIG_OLDOBJ ;
35321   PyObject *swig_obj[2] ;
35322   Xapian::TermIterator result;
35323 
35324   if (!SWIG_Python_UnpackTuple(args,"QueryParser__unstem_begin",2,2,swig_obj)) SWIG_fail;
35325   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
35326   if (!SWIG_IsOK(res1)) {
35327     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser__unstem_begin" "', argument " "1"" of type '" "Xapian::QueryParser const *""'");
35328   }
35329   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
35330   {
35331     std::string *ptr = (std::string *)0;
35332     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
35333     if (!SWIG_IsOK(res2)) {
35334       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser__unstem_begin" "', argument " "2"" of type '" "std::string const &""'");
35335     }
35336     if (!ptr) {
35337       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser__unstem_begin" "', argument " "2"" of type '" "std::string const &""'");
35338     }
35339     arg2 = ptr;
35340   }
35341   {
35342     try {
35343       {
35344         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
35345         result = ((Xapian::QueryParser const *)arg1)->unstem_begin((std::string const &)*arg2);
35346         SWIG_PYTHON_THREAD_END_ALLOW;
35347       }
35348     } catch (...) {
35349       Xapian::SetPythonException();
35350       SWIG_fail;
35351     }
35352   }
35353   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
35354   if (SWIG_IsNewObj(res2)) delete arg2;
35355   return resultobj;
35356 fail:
35357   if (SWIG_IsNewObj(res2)) delete arg2;
35358   return NULL;
35359 }
35360 
35361 
_wrap_QueryParser__unstem_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35362 SWIGINTERN PyObject *_wrap_QueryParser__unstem_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35363   PyObject *resultobj = 0;
35364   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
35365   std::string *arg2 = 0 ;
35366   void *argp1 = 0 ;
35367   int res1 = 0 ;
35368   int res2 = SWIG_OLDOBJ ;
35369   PyObject *swig_obj[2] ;
35370   Xapian::TermIterator result;
35371 
35372   if (!SWIG_Python_UnpackTuple(args,"QueryParser__unstem_end",2,2,swig_obj)) SWIG_fail;
35373   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
35374   if (!SWIG_IsOK(res1)) {
35375     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser__unstem_end" "', argument " "1"" of type '" "Xapian::QueryParser const *""'");
35376   }
35377   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
35378   {
35379     std::string *ptr = (std::string *)0;
35380     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
35381     if (!SWIG_IsOK(res2)) {
35382       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser__unstem_end" "', argument " "2"" of type '" "std::string const &""'");
35383     }
35384     if (!ptr) {
35385       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser__unstem_end" "', argument " "2"" of type '" "std::string const &""'");
35386     }
35387     arg2 = ptr;
35388   }
35389   {
35390     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
35391     result = ((Xapian::QueryParser const *)arg1)->unstem_end((std::string const &)*arg2);
35392     SWIG_PYTHON_THREAD_END_ALLOW;
35393   }
35394   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
35395   if (SWIG_IsNewObj(res2)) delete arg2;
35396   return resultobj;
35397 fail:
35398   if (SWIG_IsNewObj(res2)) delete arg2;
35399   return NULL;
35400 }
35401 
35402 
_wrap_QueryParser_add_rangeprocessor__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)35403 SWIGINTERN PyObject *_wrap_QueryParser_add_rangeprocessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
35404   PyObject *resultobj = 0;
35405   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
35406   Xapian::RangeProcessor *arg2 = (Xapian::RangeProcessor *) 0 ;
35407   std::string *arg3 = (std::string *) 0 ;
35408   void *argp1 = 0 ;
35409   int res1 = 0 ;
35410   void *argp2 = 0 ;
35411   int res2 = 0 ;
35412   int res3 = SWIG_OLDOBJ ;
35413 
35414   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
35415   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
35416   if (!SWIG_IsOK(res1)) {
35417     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_add_rangeprocessor" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
35418   }
35419   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
35420   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Xapian__RangeProcessor, 0 |  0 );
35421   if (!SWIG_IsOK(res2)) {
35422     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_add_rangeprocessor" "', argument " "2"" of type '" "Xapian::RangeProcessor *""'");
35423   }
35424   arg2 = reinterpret_cast< Xapian::RangeProcessor * >(argp2);
35425   {
35426     std::string *ptr = (std::string *)0;
35427     if (swig_obj[2] != Py_None) {
35428       res3 = XapianSWIG_anystring_as_ptr(swig_obj[2], &ptr);
35429       if (!SWIG_IsOK(res3)) {
35430         SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QueryParser_add_rangeprocessor" "', argument " "3"" of type '" "std::string const *""'");
35431       }
35432     }
35433     arg3 = ptr;
35434   }
35435   {
35436     try {
35437       {
35438         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
35439         (arg1)->add_rangeprocessor(arg2,(std::string const *)arg3);
35440         SWIG_PYTHON_THREAD_END_ALLOW;
35441       }
35442     } catch (...) {
35443       Xapian::SetPythonException();
35444       SWIG_fail;
35445     }
35446   }
35447   resultobj = SWIG_Py_Void();
35448   if (SWIG_IsNewObj(res3)) delete arg3;
35449   return resultobj;
35450 fail:
35451   if (SWIG_IsNewObj(res3)) delete arg3;
35452   return NULL;
35453 }
35454 
35455 
_wrap_QueryParser_add_rangeprocessor__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)35456 SWIGINTERN PyObject *_wrap_QueryParser_add_rangeprocessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
35457   PyObject *resultobj = 0;
35458   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
35459   Xapian::RangeProcessor *arg2 = (Xapian::RangeProcessor *) 0 ;
35460   void *argp1 = 0 ;
35461   int res1 = 0 ;
35462   void *argp2 = 0 ;
35463   int res2 = 0 ;
35464 
35465   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
35466   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
35467   if (!SWIG_IsOK(res1)) {
35468     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_add_rangeprocessor" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
35469   }
35470   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
35471   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Xapian__RangeProcessor, 0 |  0 );
35472   if (!SWIG_IsOK(res2)) {
35473     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_add_rangeprocessor" "', argument " "2"" of type '" "Xapian::RangeProcessor *""'");
35474   }
35475   arg2 = reinterpret_cast< Xapian::RangeProcessor * >(argp2);
35476   {
35477     try {
35478       {
35479         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
35480         (arg1)->add_rangeprocessor(arg2);
35481         SWIG_PYTHON_THREAD_END_ALLOW;
35482       }
35483     } catch (...) {
35484       Xapian::SetPythonException();
35485       SWIG_fail;
35486     }
35487   }
35488   resultobj = SWIG_Py_Void();
35489   return resultobj;
35490 fail:
35491   return NULL;
35492 }
35493 
35494 
_wrap_QueryParser_add_rangeprocessor(PyObject * self,PyObject * args)35495 SWIGINTERN PyObject *_wrap_QueryParser_add_rangeprocessor(PyObject *self, PyObject *args) {
35496   Py_ssize_t argc;
35497   PyObject *argv[4] = {
35498     0
35499   };
35500 
35501   if (!(argc = SWIG_Python_UnpackTuple(args,"QueryParser_add_rangeprocessor",0,3,argv))) SWIG_fail;
35502   --argc;
35503   if (argc == 2) {
35504     return _wrap_QueryParser_add_rangeprocessor__SWIG_1(self, argc, argv);
35505   }
35506   if (argc == 3) {
35507     return _wrap_QueryParser_add_rangeprocessor__SWIG_0(self, argc, argv);
35508   }
35509 
35510 fail:
35511   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'QueryParser_add_rangeprocessor'.\n"
35512     "  Possible C/C++ prototypes are:\n"
35513     "    Xapian::QueryParser::add_rangeprocessor(Xapian::RangeProcessor *,std::string const *)\n"
35514     "    Xapian::QueryParser::add_rangeprocessor(Xapian::RangeProcessor *)\n");
35515   return 0;
35516 }
35517 
35518 
_wrap_QueryParser_add_valuerangeprocessor(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35519 SWIGINTERN PyObject *_wrap_QueryParser_add_valuerangeprocessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35520   PyObject *resultobj = 0;
35521   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
35522   Xapian::ValueRangeProcessor *arg2 = (Xapian::ValueRangeProcessor *) 0 ;
35523   void *argp1 = 0 ;
35524   int res1 = 0 ;
35525   void *argp2 = 0 ;
35526   int res2 = 0 ;
35527   PyObject *swig_obj[2] ;
35528 
35529   if (!SWIG_Python_UnpackTuple(args,"QueryParser_add_valuerangeprocessor",2,2,swig_obj)) SWIG_fail;
35530   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
35531   if (!SWIG_IsOK(res1)) {
35532     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_add_valuerangeprocessor" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
35533   }
35534   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
35535   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Xapian__ValueRangeProcessor, 0 |  0 );
35536   if (!SWIG_IsOK(res2)) {
35537     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_add_valuerangeprocessor" "', argument " "2"" of type '" "Xapian::ValueRangeProcessor *""'");
35538   }
35539   arg2 = reinterpret_cast< Xapian::ValueRangeProcessor * >(argp2);
35540   {
35541     try {
35542       {
35543         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
35544         (arg1)->add_valuerangeprocessor(arg2);
35545         SWIG_PYTHON_THREAD_END_ALLOW;
35546       }
35547     } catch (...) {
35548       Xapian::SetPythonException();
35549       SWIG_fail;
35550     }
35551   }
35552   resultobj = SWIG_Py_Void();
35553   return resultobj;
35554 fail:
35555   return NULL;
35556 }
35557 
35558 
_wrap_QueryParser_get_corrected_query_string(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35559 SWIGINTERN PyObject *_wrap_QueryParser_get_corrected_query_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35560   PyObject *resultobj = 0;
35561   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
35562   void *argp1 = 0 ;
35563   int res1 = 0 ;
35564   PyObject *swig_obj[1] ;
35565   std::string result;
35566 
35567   if (!args) SWIG_fail;
35568   swig_obj[0] = args;
35569   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
35570   if (!SWIG_IsOK(res1)) {
35571     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_get_corrected_query_string" "', argument " "1"" of type '" "Xapian::QueryParser const *""'");
35572   }
35573   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
35574   {
35575     try {
35576       {
35577         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
35578         result = ((Xapian::QueryParser const *)arg1)->get_corrected_query_string();
35579         SWIG_PYTHON_THREAD_END_ALLOW;
35580       }
35581     } catch (...) {
35582       Xapian::SetPythonException();
35583       SWIG_fail;
35584     }
35585   }
35586   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
35587   return resultobj;
35588 fail:
35589   return NULL;
35590 }
35591 
35592 
_wrap_QueryParser___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35593 SWIGINTERN PyObject *_wrap_QueryParser___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35594   PyObject *resultobj = 0;
35595   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
35596   void *argp1 = 0 ;
35597   int res1 = 0 ;
35598   PyObject *swig_obj[1] ;
35599   std::string result;
35600 
35601   if (!args) SWIG_fail;
35602   swig_obj[0] = args;
35603   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
35604   if (!SWIG_IsOK(res1)) {
35605     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser___str__" "', argument " "1"" of type '" "Xapian::QueryParser const *""'");
35606   }
35607   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
35608   {
35609     try {
35610       {
35611         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
35612         result = ((Xapian::QueryParser const *)arg1)->get_description();
35613         SWIG_PYTHON_THREAD_END_ALLOW;
35614       }
35615     } catch (...) {
35616       Xapian::SetPythonException();
35617       SWIG_fail;
35618     }
35619   }
35620   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
35621   return resultobj;
35622 fail:
35623   return NULL;
35624 }
35625 
35626 
QueryParser_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35627 SWIGINTERN PyObject *QueryParser_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35628   PyObject *obj;
35629   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
35630   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__QueryParser, SWIG_NewClientData(obj));
35631   return SWIG_Py_Void();
35632 }
35633 
QueryParser_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35634 SWIGINTERN PyObject *QueryParser_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35635   return SWIG_Python_InitShadowInstance(args);
35636 }
35637 
_wrap_sortable_serialise(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35638 SWIGINTERN PyObject *_wrap_sortable_serialise(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35639   PyObject *resultobj = 0;
35640   double arg1 ;
35641   double val1 ;
35642   int ecode1 = 0 ;
35643   PyObject *swig_obj[1] ;
35644   std::string result;
35645 
35646   if (!args) SWIG_fail;
35647   swig_obj[0] = args;
35648   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
35649   if (!SWIG_IsOK(ecode1)) {
35650     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "sortable_serialise" "', argument " "1"" of type '" "double""'");
35651   }
35652   arg1 = static_cast< double >(val1);
35653   {
35654     try {
35655       {
35656         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
35657         result = Xapian::sortable_serialise(arg1);
35658         SWIG_PYTHON_THREAD_END_ALLOW;
35659       }
35660     } catch (...) {
35661       Xapian::SetPythonException();
35662       SWIG_fail;
35663     }
35664   }
35665   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
35666   return resultobj;
35667 fail:
35668   return NULL;
35669 }
35670 
35671 
_wrap_sortable_unserialise(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35672 SWIGINTERN PyObject *_wrap_sortable_unserialise(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35673   PyObject *resultobj = 0;
35674   std::string *arg1 = 0 ;
35675   int res1 = SWIG_OLDOBJ ;
35676   PyObject *swig_obj[1] ;
35677   double result;
35678 
35679   if (!args) SWIG_fail;
35680   swig_obj[0] = args;
35681   {
35682     std::string *ptr = (std::string *)0;
35683     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
35684     if (!SWIG_IsOK(res1)) {
35685       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sortable_unserialise" "', argument " "1"" of type '" "std::string const &""'");
35686     }
35687     if (!ptr) {
35688       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "sortable_unserialise" "', argument " "1"" of type '" "std::string const &""'");
35689     }
35690     arg1 = ptr;
35691   }
35692   {
35693     try {
35694       {
35695         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
35696         result = (double)Xapian::sortable_unserialise((std::string const &)*arg1);
35697         SWIG_PYTHON_THREAD_END_ALLOW;
35698       }
35699     } catch (...) {
35700       Xapian::SetPythonException();
35701       SWIG_fail;
35702     }
35703   }
35704   resultobj = SWIG_From_double(static_cast< double >(result));
35705   if (SWIG_IsNewObj(res1)) delete arg1;
35706   return resultobj;
35707 fail:
35708   if (SWIG_IsNewObj(res1)) delete arg1;
35709   return NULL;
35710 }
35711 
35712 
_wrap_new_ValueSetMatchDecider(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35713 SWIGINTERN PyObject *_wrap_new_ValueSetMatchDecider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35714   PyObject *resultobj = 0;
35715   Xapian::valueno arg1 ;
35716   bool arg2 ;
35717   unsigned int val1 ;
35718   int ecode1 = 0 ;
35719   bool val2 ;
35720   int ecode2 = 0 ;
35721   PyObject *swig_obj[2] ;
35722   Xapian::ValueSetMatchDecider *result = 0 ;
35723 
35724   if (!SWIG_Python_UnpackTuple(args,"new_ValueSetMatchDecider",2,2,swig_obj)) SWIG_fail;
35725   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
35726   if (!SWIG_IsOK(ecode1)) {
35727     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ValueSetMatchDecider" "', argument " "1"" of type '" "Xapian::valueno""'");
35728   }
35729   arg1 = static_cast< Xapian::valueno >(val1);
35730   ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
35731   if (!SWIG_IsOK(ecode2)) {
35732     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ValueSetMatchDecider" "', argument " "2"" of type '" "bool""'");
35733   }
35734   arg2 = static_cast< bool >(val2);
35735   {
35736     try {
35737       {
35738         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
35739         result = (Xapian::ValueSetMatchDecider *)new Xapian::ValueSetMatchDecider(arg1,arg2);
35740         SWIG_PYTHON_THREAD_END_ALLOW;
35741       }
35742     } catch (...) {
35743       Xapian::SetPythonException();
35744       SWIG_fail;
35745     }
35746   }
35747   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ValueSetMatchDecider, SWIG_POINTER_NEW |  0 );
35748   return resultobj;
35749 fail:
35750   return NULL;
35751 }
35752 
35753 
_wrap_ValueSetMatchDecider_add_value(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35754 SWIGINTERN PyObject *_wrap_ValueSetMatchDecider_add_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35755   PyObject *resultobj = 0;
35756   Xapian::ValueSetMatchDecider *arg1 = (Xapian::ValueSetMatchDecider *) 0 ;
35757   std::string *arg2 = 0 ;
35758   void *argp1 = 0 ;
35759   int res1 = 0 ;
35760   int res2 = SWIG_OLDOBJ ;
35761   PyObject *swig_obj[2] ;
35762 
35763   if (!SWIG_Python_UnpackTuple(args,"ValueSetMatchDecider_add_value",2,2,swig_obj)) SWIG_fail;
35764   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueSetMatchDecider, 0 |  0 );
35765   if (!SWIG_IsOK(res1)) {
35766     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueSetMatchDecider_add_value" "', argument " "1"" of type '" "Xapian::ValueSetMatchDecider *""'");
35767   }
35768   arg1 = reinterpret_cast< Xapian::ValueSetMatchDecider * >(argp1);
35769   {
35770     std::string *ptr = (std::string *)0;
35771     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
35772     if (!SWIG_IsOK(res2)) {
35773       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ValueSetMatchDecider_add_value" "', argument " "2"" of type '" "std::string const &""'");
35774     }
35775     if (!ptr) {
35776       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ValueSetMatchDecider_add_value" "', argument " "2"" of type '" "std::string const &""'");
35777     }
35778     arg2 = ptr;
35779   }
35780   {
35781     try {
35782       {
35783         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
35784         (arg1)->add_value((std::string const &)*arg2);
35785         SWIG_PYTHON_THREAD_END_ALLOW;
35786       }
35787     } catch (...) {
35788       Xapian::SetPythonException();
35789       SWIG_fail;
35790     }
35791   }
35792   resultobj = SWIG_Py_Void();
35793   if (SWIG_IsNewObj(res2)) delete arg2;
35794   return resultobj;
35795 fail:
35796   if (SWIG_IsNewObj(res2)) delete arg2;
35797   return NULL;
35798 }
35799 
35800 
_wrap_ValueSetMatchDecider_remove_value(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35801 SWIGINTERN PyObject *_wrap_ValueSetMatchDecider_remove_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35802   PyObject *resultobj = 0;
35803   Xapian::ValueSetMatchDecider *arg1 = (Xapian::ValueSetMatchDecider *) 0 ;
35804   std::string *arg2 = 0 ;
35805   void *argp1 = 0 ;
35806   int res1 = 0 ;
35807   int res2 = SWIG_OLDOBJ ;
35808   PyObject *swig_obj[2] ;
35809 
35810   if (!SWIG_Python_UnpackTuple(args,"ValueSetMatchDecider_remove_value",2,2,swig_obj)) SWIG_fail;
35811   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueSetMatchDecider, 0 |  0 );
35812   if (!SWIG_IsOK(res1)) {
35813     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueSetMatchDecider_remove_value" "', argument " "1"" of type '" "Xapian::ValueSetMatchDecider *""'");
35814   }
35815   arg1 = reinterpret_cast< Xapian::ValueSetMatchDecider * >(argp1);
35816   {
35817     std::string *ptr = (std::string *)0;
35818     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
35819     if (!SWIG_IsOK(res2)) {
35820       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ValueSetMatchDecider_remove_value" "', argument " "2"" of type '" "std::string const &""'");
35821     }
35822     if (!ptr) {
35823       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ValueSetMatchDecider_remove_value" "', argument " "2"" of type '" "std::string const &""'");
35824     }
35825     arg2 = ptr;
35826   }
35827   {
35828     try {
35829       {
35830         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
35831         (arg1)->remove_value((std::string const &)*arg2);
35832         SWIG_PYTHON_THREAD_END_ALLOW;
35833       }
35834     } catch (...) {
35835       Xapian::SetPythonException();
35836       SWIG_fail;
35837     }
35838   }
35839   resultobj = SWIG_Py_Void();
35840   if (SWIG_IsNewObj(res2)) delete arg2;
35841   return resultobj;
35842 fail:
35843   if (SWIG_IsNewObj(res2)) delete arg2;
35844   return NULL;
35845 }
35846 
35847 
_wrap_delete_ValueSetMatchDecider(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35848 SWIGINTERN PyObject *_wrap_delete_ValueSetMatchDecider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35849   PyObject *resultobj = 0;
35850   Xapian::ValueSetMatchDecider *arg1 = (Xapian::ValueSetMatchDecider *) 0 ;
35851   void *argp1 = 0 ;
35852   int res1 = 0 ;
35853   PyObject *swig_obj[1] ;
35854 
35855   if (!args) SWIG_fail;
35856   swig_obj[0] = args;
35857   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueSetMatchDecider, SWIG_POINTER_DISOWN |  0 );
35858   if (!SWIG_IsOK(res1)) {
35859     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ValueSetMatchDecider" "', argument " "1"" of type '" "Xapian::ValueSetMatchDecider *""'");
35860   }
35861   arg1 = reinterpret_cast< Xapian::ValueSetMatchDecider * >(argp1);
35862   {
35863     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
35864     delete arg1;
35865     SWIG_PYTHON_THREAD_END_ALLOW;
35866   }
35867   resultobj = SWIG_Py_Void();
35868   return resultobj;
35869 fail:
35870   return NULL;
35871 }
35872 
35873 
ValueSetMatchDecider_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35874 SWIGINTERN PyObject *ValueSetMatchDecider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35875   PyObject *obj;
35876   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
35877   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__ValueSetMatchDecider, SWIG_NewClientData(obj));
35878   return SWIG_Py_Void();
35879 }
35880 
ValueSetMatchDecider_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35881 SWIGINTERN PyObject *ValueSetMatchDecider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35882   return SWIG_Python_InitShadowInstance(args);
35883 }
35884 
_wrap_delete_Weight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35885 SWIGINTERN PyObject *_wrap_delete_Weight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35886   PyObject *resultobj = 0;
35887   Xapian::Weight *arg1 = (Xapian::Weight *) 0 ;
35888   void *argp1 = 0 ;
35889   int res1 = 0 ;
35890   PyObject *swig_obj[1] ;
35891 
35892   if (!args) SWIG_fail;
35893   swig_obj[0] = args;
35894   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Weight, SWIG_POINTER_DISOWN |  0 );
35895   if (!SWIG_IsOK(res1)) {
35896     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Weight" "', argument " "1"" of type '" "Xapian::Weight *""'");
35897   }
35898   arg1 = reinterpret_cast< Xapian::Weight * >(argp1);
35899   {
35900     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
35901     delete arg1;
35902     SWIG_PYTHON_THREAD_END_ALLOW;
35903   }
35904   resultobj = SWIG_Py_Void();
35905   return resultobj;
35906 fail:
35907   return NULL;
35908 }
35909 
35910 
_wrap_Weight_name(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35911 SWIGINTERN PyObject *_wrap_Weight_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35912   PyObject *resultobj = 0;
35913   Xapian::Weight *arg1 = (Xapian::Weight *) 0 ;
35914   void *argp1 = 0 ;
35915   int res1 = 0 ;
35916   PyObject *swig_obj[1] ;
35917   std::string result;
35918 
35919   if (!args) SWIG_fail;
35920   swig_obj[0] = args;
35921   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Weight, 0 |  0 );
35922   if (!SWIG_IsOK(res1)) {
35923     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Weight_name" "', argument " "1"" of type '" "Xapian::Weight const *""'");
35924   }
35925   arg1 = reinterpret_cast< Xapian::Weight * >(argp1);
35926   {
35927     try {
35928       {
35929         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
35930         result = ((Xapian::Weight const *)arg1)->name();
35931         SWIG_PYTHON_THREAD_END_ALLOW;
35932       }
35933     } catch (...) {
35934       Xapian::SetPythonException();
35935       SWIG_fail;
35936     }
35937   }
35938   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
35939   return resultobj;
35940 fail:
35941   return NULL;
35942 }
35943 
35944 
_wrap_Weight_get_sumpart(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35945 SWIGINTERN PyObject *_wrap_Weight_get_sumpart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35946   PyObject *resultobj = 0;
35947   Xapian::Weight *arg1 = (Xapian::Weight *) 0 ;
35948   Xapian::termcount arg2 ;
35949   Xapian::termcount arg3 ;
35950   Xapian::termcount arg4 ;
35951   void *argp1 = 0 ;
35952   int res1 = 0 ;
35953   unsigned int val2 ;
35954   int ecode2 = 0 ;
35955   unsigned int val3 ;
35956   int ecode3 = 0 ;
35957   unsigned int val4 ;
35958   int ecode4 = 0 ;
35959   PyObject *swig_obj[4] ;
35960   double result;
35961 
35962   if (!SWIG_Python_UnpackTuple(args,"Weight_get_sumpart",4,4,swig_obj)) SWIG_fail;
35963   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Weight, 0 |  0 );
35964   if (!SWIG_IsOK(res1)) {
35965     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Weight_get_sumpart" "', argument " "1"" of type '" "Xapian::Weight const *""'");
35966   }
35967   arg1 = reinterpret_cast< Xapian::Weight * >(argp1);
35968   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
35969   if (!SWIG_IsOK(ecode2)) {
35970     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Weight_get_sumpart" "', argument " "2"" of type '" "Xapian::termcount""'");
35971   }
35972   arg2 = static_cast< Xapian::termcount >(val2);
35973   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
35974   if (!SWIG_IsOK(ecode3)) {
35975     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Weight_get_sumpart" "', argument " "3"" of type '" "Xapian::termcount""'");
35976   }
35977   arg3 = static_cast< Xapian::termcount >(val3);
35978   ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4);
35979   if (!SWIG_IsOK(ecode4)) {
35980     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Weight_get_sumpart" "', argument " "4"" of type '" "Xapian::termcount""'");
35981   }
35982   arg4 = static_cast< Xapian::termcount >(val4);
35983   {
35984     try {
35985       {
35986         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
35987         result = (double)((Xapian::Weight const *)arg1)->get_sumpart(arg2,arg3,arg4);
35988         SWIG_PYTHON_THREAD_END_ALLOW;
35989       }
35990     } catch (...) {
35991       Xapian::SetPythonException();
35992       SWIG_fail;
35993     }
35994   }
35995   resultobj = SWIG_From_double(static_cast< double >(result));
35996   return resultobj;
35997 fail:
35998   return NULL;
35999 }
36000 
36001 
_wrap_Weight_get_maxpart(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36002 SWIGINTERN PyObject *_wrap_Weight_get_maxpart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36003   PyObject *resultobj = 0;
36004   Xapian::Weight *arg1 = (Xapian::Weight *) 0 ;
36005   void *argp1 = 0 ;
36006   int res1 = 0 ;
36007   PyObject *swig_obj[1] ;
36008   double result;
36009 
36010   if (!args) SWIG_fail;
36011   swig_obj[0] = args;
36012   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Weight, 0 |  0 );
36013   if (!SWIG_IsOK(res1)) {
36014     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Weight_get_maxpart" "', argument " "1"" of type '" "Xapian::Weight const *""'");
36015   }
36016   arg1 = reinterpret_cast< Xapian::Weight * >(argp1);
36017   {
36018     try {
36019       {
36020         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36021         result = (double)((Xapian::Weight const *)arg1)->get_maxpart();
36022         SWIG_PYTHON_THREAD_END_ALLOW;
36023       }
36024     } catch (...) {
36025       Xapian::SetPythonException();
36026       SWIG_fail;
36027     }
36028   }
36029   resultobj = SWIG_From_double(static_cast< double >(result));
36030   return resultobj;
36031 fail:
36032   return NULL;
36033 }
36034 
36035 
_wrap_Weight_get_sumextra(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36036 SWIGINTERN PyObject *_wrap_Weight_get_sumextra(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36037   PyObject *resultobj = 0;
36038   Xapian::Weight *arg1 = (Xapian::Weight *) 0 ;
36039   Xapian::termcount arg2 ;
36040   Xapian::termcount arg3 ;
36041   void *argp1 = 0 ;
36042   int res1 = 0 ;
36043   unsigned int val2 ;
36044   int ecode2 = 0 ;
36045   unsigned int val3 ;
36046   int ecode3 = 0 ;
36047   PyObject *swig_obj[3] ;
36048   double result;
36049 
36050   if (!SWIG_Python_UnpackTuple(args,"Weight_get_sumextra",3,3,swig_obj)) SWIG_fail;
36051   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Weight, 0 |  0 );
36052   if (!SWIG_IsOK(res1)) {
36053     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Weight_get_sumextra" "', argument " "1"" of type '" "Xapian::Weight const *""'");
36054   }
36055   arg1 = reinterpret_cast< Xapian::Weight * >(argp1);
36056   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
36057   if (!SWIG_IsOK(ecode2)) {
36058     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Weight_get_sumextra" "', argument " "2"" of type '" "Xapian::termcount""'");
36059   }
36060   arg2 = static_cast< Xapian::termcount >(val2);
36061   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
36062   if (!SWIG_IsOK(ecode3)) {
36063     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Weight_get_sumextra" "', argument " "3"" of type '" "Xapian::termcount""'");
36064   }
36065   arg3 = static_cast< Xapian::termcount >(val3);
36066   {
36067     try {
36068       {
36069         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36070         result = (double)((Xapian::Weight const *)arg1)->get_sumextra(arg2,arg3);
36071         SWIG_PYTHON_THREAD_END_ALLOW;
36072       }
36073     } catch (...) {
36074       Xapian::SetPythonException();
36075       SWIG_fail;
36076     }
36077   }
36078   resultobj = SWIG_From_double(static_cast< double >(result));
36079   return resultobj;
36080 fail:
36081   return NULL;
36082 }
36083 
36084 
_wrap_Weight_get_maxextra(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36085 SWIGINTERN PyObject *_wrap_Weight_get_maxextra(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36086   PyObject *resultobj = 0;
36087   Xapian::Weight *arg1 = (Xapian::Weight *) 0 ;
36088   void *argp1 = 0 ;
36089   int res1 = 0 ;
36090   PyObject *swig_obj[1] ;
36091   double result;
36092 
36093   if (!args) SWIG_fail;
36094   swig_obj[0] = args;
36095   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Weight, 0 |  0 );
36096   if (!SWIG_IsOK(res1)) {
36097     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Weight_get_maxextra" "', argument " "1"" of type '" "Xapian::Weight const *""'");
36098   }
36099   arg1 = reinterpret_cast< Xapian::Weight * >(argp1);
36100   {
36101     try {
36102       {
36103         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36104         result = (double)((Xapian::Weight const *)arg1)->get_maxextra();
36105         SWIG_PYTHON_THREAD_END_ALLOW;
36106       }
36107     } catch (...) {
36108       Xapian::SetPythonException();
36109       SWIG_fail;
36110     }
36111   }
36112   resultobj = SWIG_From_double(static_cast< double >(result));
36113   return resultobj;
36114 fail:
36115   return NULL;
36116 }
36117 
36118 
Weight_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36119 SWIGINTERN PyObject *Weight_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36120   PyObject *obj;
36121   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
36122   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__Weight, SWIG_NewClientData(obj));
36123   return SWIG_Py_Void();
36124 }
36125 
_wrap_new_BoolWeight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36126 SWIGINTERN PyObject *_wrap_new_BoolWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36127   PyObject *resultobj = 0;
36128   Xapian::BoolWeight *result = 0 ;
36129 
36130   if (!SWIG_Python_UnpackTuple(args,"new_BoolWeight",0,0,0)) SWIG_fail;
36131   {
36132     try {
36133       {
36134         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36135         result = (Xapian::BoolWeight *)new Xapian::BoolWeight();
36136         SWIG_PYTHON_THREAD_END_ALLOW;
36137       }
36138     } catch (...) {
36139       Xapian::SetPythonException();
36140       SWIG_fail;
36141     }
36142   }
36143   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__BoolWeight, SWIG_POINTER_NEW |  0 );
36144   return resultobj;
36145 fail:
36146   return NULL;
36147 }
36148 
36149 
_wrap_delete_BoolWeight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36150 SWIGINTERN PyObject *_wrap_delete_BoolWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36151   PyObject *resultobj = 0;
36152   Xapian::BoolWeight *arg1 = (Xapian::BoolWeight *) 0 ;
36153   void *argp1 = 0 ;
36154   int res1 = 0 ;
36155   PyObject *swig_obj[1] ;
36156 
36157   if (!args) SWIG_fail;
36158   swig_obj[0] = args;
36159   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__BoolWeight, SWIG_POINTER_DISOWN |  0 );
36160   if (!SWIG_IsOK(res1)) {
36161     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BoolWeight" "', argument " "1"" of type '" "Xapian::BoolWeight *""'");
36162   }
36163   arg1 = reinterpret_cast< Xapian::BoolWeight * >(argp1);
36164   {
36165     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36166     delete arg1;
36167     SWIG_PYTHON_THREAD_END_ALLOW;
36168   }
36169   resultobj = SWIG_Py_Void();
36170   return resultobj;
36171 fail:
36172   return NULL;
36173 }
36174 
36175 
BoolWeight_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36176 SWIGINTERN PyObject *BoolWeight_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36177   PyObject *obj;
36178   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
36179   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__BoolWeight, SWIG_NewClientData(obj));
36180   return SWIG_Py_Void();
36181 }
36182 
BoolWeight_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36183 SWIGINTERN PyObject *BoolWeight_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36184   return SWIG_Python_InitShadowInstance(args);
36185 }
36186 
_wrap_new_TfIdfWeight__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)36187 SWIGINTERN PyObject *_wrap_new_TfIdfWeight__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
36188   PyObject *resultobj = 0;
36189   std::string *arg1 = 0 ;
36190   int res1 = SWIG_OLDOBJ ;
36191   Xapian::TfIdfWeight *result = 0 ;
36192 
36193   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
36194   {
36195     std::string *ptr = (std::string *)0;
36196     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
36197     if (!SWIG_IsOK(res1)) {
36198       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TfIdfWeight" "', argument " "1"" of type '" "std::string const &""'");
36199     }
36200     if (!ptr) {
36201       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TfIdfWeight" "', argument " "1"" of type '" "std::string const &""'");
36202     }
36203     arg1 = ptr;
36204   }
36205   {
36206     try {
36207       {
36208         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36209         result = (Xapian::TfIdfWeight *)new Xapian::TfIdfWeight((std::string const &)*arg1);
36210         SWIG_PYTHON_THREAD_END_ALLOW;
36211       }
36212     } catch (...) {
36213       Xapian::SetPythonException();
36214       SWIG_fail;
36215     }
36216   }
36217   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__TfIdfWeight, SWIG_POINTER_NEW |  0 );
36218   if (SWIG_IsNewObj(res1)) delete arg1;
36219   return resultobj;
36220 fail:
36221   if (SWIG_IsNewObj(res1)) delete arg1;
36222   return NULL;
36223 }
36224 
36225 
_wrap_new_TfIdfWeight__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))36226 SWIGINTERN PyObject *_wrap_new_TfIdfWeight__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
36227   PyObject *resultobj = 0;
36228   Xapian::TfIdfWeight *result = 0 ;
36229 
36230   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
36231   {
36232     try {
36233       {
36234         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36235         result = (Xapian::TfIdfWeight *)new Xapian::TfIdfWeight();
36236         SWIG_PYTHON_THREAD_END_ALLOW;
36237       }
36238     } catch (...) {
36239       Xapian::SetPythonException();
36240       SWIG_fail;
36241     }
36242   }
36243   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__TfIdfWeight, SWIG_POINTER_NEW |  0 );
36244   return resultobj;
36245 fail:
36246   return NULL;
36247 }
36248 
36249 
_wrap_new_TfIdfWeight(PyObject * self,PyObject * args)36250 SWIGINTERN PyObject *_wrap_new_TfIdfWeight(PyObject *self, PyObject *args) {
36251   Py_ssize_t argc;
36252   PyObject *argv[2] = {
36253     0
36254   };
36255 
36256   if (!(argc = SWIG_Python_UnpackTuple(args,"new_TfIdfWeight",0,1,argv))) SWIG_fail;
36257   --argc;
36258   if (argc == 0) {
36259     return _wrap_new_TfIdfWeight__SWIG_1(self, argc, argv);
36260   }
36261   if (argc == 1) {
36262     return _wrap_new_TfIdfWeight__SWIG_0(self, argc, argv);
36263   }
36264 
36265 fail:
36266   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_TfIdfWeight'.\n"
36267     "  Possible C/C++ prototypes are:\n"
36268     "    Xapian::TfIdfWeight::TfIdfWeight(std::string const &)\n"
36269     "    Xapian::TfIdfWeight::TfIdfWeight()\n");
36270   return 0;
36271 }
36272 
36273 
_wrap_delete_TfIdfWeight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36274 SWIGINTERN PyObject *_wrap_delete_TfIdfWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36275   PyObject *resultobj = 0;
36276   Xapian::TfIdfWeight *arg1 = (Xapian::TfIdfWeight *) 0 ;
36277   void *argp1 = 0 ;
36278   int res1 = 0 ;
36279   PyObject *swig_obj[1] ;
36280 
36281   if (!args) SWIG_fail;
36282   swig_obj[0] = args;
36283   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TfIdfWeight, SWIG_POINTER_DISOWN |  0 );
36284   if (!SWIG_IsOK(res1)) {
36285     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TfIdfWeight" "', argument " "1"" of type '" "Xapian::TfIdfWeight *""'");
36286   }
36287   arg1 = reinterpret_cast< Xapian::TfIdfWeight * >(argp1);
36288   {
36289     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36290     delete arg1;
36291     SWIG_PYTHON_THREAD_END_ALLOW;
36292   }
36293   resultobj = SWIG_Py_Void();
36294   return resultobj;
36295 fail:
36296   return NULL;
36297 }
36298 
36299 
TfIdfWeight_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36300 SWIGINTERN PyObject *TfIdfWeight_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36301   PyObject *obj;
36302   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
36303   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__TfIdfWeight, SWIG_NewClientData(obj));
36304   return SWIG_Py_Void();
36305 }
36306 
TfIdfWeight_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36307 SWIGINTERN PyObject *TfIdfWeight_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36308   return SWIG_Python_InitShadowInstance(args);
36309 }
36310 
_wrap_new_BM25Weight__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)36311 SWIGINTERN PyObject *_wrap_new_BM25Weight__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
36312   PyObject *resultobj = 0;
36313   double arg1 ;
36314   double arg2 ;
36315   double arg3 ;
36316   double arg4 ;
36317   double arg5 ;
36318   double val1 ;
36319   int ecode1 = 0 ;
36320   double val2 ;
36321   int ecode2 = 0 ;
36322   double val3 ;
36323   int ecode3 = 0 ;
36324   double val4 ;
36325   int ecode4 = 0 ;
36326   double val5 ;
36327   int ecode5 = 0 ;
36328   Xapian::BM25Weight *result = 0 ;
36329 
36330   if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
36331   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
36332   if (!SWIG_IsOK(ecode1)) {
36333     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BM25Weight" "', argument " "1"" of type '" "double""'");
36334   }
36335   arg1 = static_cast< double >(val1);
36336   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
36337   if (!SWIG_IsOK(ecode2)) {
36338     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BM25Weight" "', argument " "2"" of type '" "double""'");
36339   }
36340   arg2 = static_cast< double >(val2);
36341   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
36342   if (!SWIG_IsOK(ecode3)) {
36343     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BM25Weight" "', argument " "3"" of type '" "double""'");
36344   }
36345   arg3 = static_cast< double >(val3);
36346   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
36347   if (!SWIG_IsOK(ecode4)) {
36348     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BM25Weight" "', argument " "4"" of type '" "double""'");
36349   }
36350   arg4 = static_cast< double >(val4);
36351   ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
36352   if (!SWIG_IsOK(ecode5)) {
36353     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_BM25Weight" "', argument " "5"" of type '" "double""'");
36354   }
36355   arg5 = static_cast< double >(val5);
36356   {
36357     try {
36358       {
36359         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36360         result = (Xapian::BM25Weight *)new Xapian::BM25Weight(arg1,arg2,arg3,arg4,arg5);
36361         SWIG_PYTHON_THREAD_END_ALLOW;
36362       }
36363     } catch (...) {
36364       Xapian::SetPythonException();
36365       SWIG_fail;
36366     }
36367   }
36368   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__BM25Weight, SWIG_POINTER_NEW |  0 );
36369   return resultobj;
36370 fail:
36371   return NULL;
36372 }
36373 
36374 
_wrap_new_BM25Weight__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))36375 SWIGINTERN PyObject *_wrap_new_BM25Weight__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
36376   PyObject *resultobj = 0;
36377   Xapian::BM25Weight *result = 0 ;
36378 
36379   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
36380   {
36381     try {
36382       {
36383         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36384         result = (Xapian::BM25Weight *)new Xapian::BM25Weight();
36385         SWIG_PYTHON_THREAD_END_ALLOW;
36386       }
36387     } catch (...) {
36388       Xapian::SetPythonException();
36389       SWIG_fail;
36390     }
36391   }
36392   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__BM25Weight, SWIG_POINTER_NEW |  0 );
36393   return resultobj;
36394 fail:
36395   return NULL;
36396 }
36397 
36398 
_wrap_new_BM25Weight(PyObject * self,PyObject * args)36399 SWIGINTERN PyObject *_wrap_new_BM25Weight(PyObject *self, PyObject *args) {
36400   Py_ssize_t argc;
36401   PyObject *argv[6] = {
36402     0
36403   };
36404 
36405   if (!(argc = SWIG_Python_UnpackTuple(args,"new_BM25Weight",0,5,argv))) SWIG_fail;
36406   --argc;
36407   if (argc == 0) {
36408     return _wrap_new_BM25Weight__SWIG_1(self, argc, argv);
36409   }
36410   if (argc == 5) {
36411     return _wrap_new_BM25Weight__SWIG_0(self, argc, argv);
36412   }
36413 
36414 fail:
36415   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_BM25Weight'.\n"
36416     "  Possible C/C++ prototypes are:\n"
36417     "    Xapian::BM25Weight::BM25Weight(double,double,double,double,double)\n"
36418     "    Xapian::BM25Weight::BM25Weight()\n");
36419   return 0;
36420 }
36421 
36422 
_wrap_delete_BM25Weight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36423 SWIGINTERN PyObject *_wrap_delete_BM25Weight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36424   PyObject *resultobj = 0;
36425   Xapian::BM25Weight *arg1 = (Xapian::BM25Weight *) 0 ;
36426   void *argp1 = 0 ;
36427   int res1 = 0 ;
36428   PyObject *swig_obj[1] ;
36429 
36430   if (!args) SWIG_fail;
36431   swig_obj[0] = args;
36432   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__BM25Weight, SWIG_POINTER_DISOWN |  0 );
36433   if (!SWIG_IsOK(res1)) {
36434     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BM25Weight" "', argument " "1"" of type '" "Xapian::BM25Weight *""'");
36435   }
36436   arg1 = reinterpret_cast< Xapian::BM25Weight * >(argp1);
36437   {
36438     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36439     delete arg1;
36440     SWIG_PYTHON_THREAD_END_ALLOW;
36441   }
36442   resultobj = SWIG_Py_Void();
36443   return resultobj;
36444 fail:
36445   return NULL;
36446 }
36447 
36448 
BM25Weight_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36449 SWIGINTERN PyObject *BM25Weight_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36450   PyObject *obj;
36451   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
36452   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__BM25Weight, SWIG_NewClientData(obj));
36453   return SWIG_Py_Void();
36454 }
36455 
BM25Weight_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36456 SWIGINTERN PyObject *BM25Weight_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36457   return SWIG_Python_InitShadowInstance(args);
36458 }
36459 
_wrap_new_BM25PlusWeight__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)36460 SWIGINTERN PyObject *_wrap_new_BM25PlusWeight__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
36461   PyObject *resultobj = 0;
36462   double arg1 ;
36463   double arg2 ;
36464   double arg3 ;
36465   double arg4 ;
36466   double arg5 ;
36467   double arg6 ;
36468   double val1 ;
36469   int ecode1 = 0 ;
36470   double val2 ;
36471   int ecode2 = 0 ;
36472   double val3 ;
36473   int ecode3 = 0 ;
36474   double val4 ;
36475   int ecode4 = 0 ;
36476   double val5 ;
36477   int ecode5 = 0 ;
36478   double val6 ;
36479   int ecode6 = 0 ;
36480   Xapian::BM25PlusWeight *result = 0 ;
36481 
36482   if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
36483   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
36484   if (!SWIG_IsOK(ecode1)) {
36485     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BM25PlusWeight" "', argument " "1"" of type '" "double""'");
36486   }
36487   arg1 = static_cast< double >(val1);
36488   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
36489   if (!SWIG_IsOK(ecode2)) {
36490     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BM25PlusWeight" "', argument " "2"" of type '" "double""'");
36491   }
36492   arg2 = static_cast< double >(val2);
36493   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
36494   if (!SWIG_IsOK(ecode3)) {
36495     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BM25PlusWeight" "', argument " "3"" of type '" "double""'");
36496   }
36497   arg3 = static_cast< double >(val3);
36498   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
36499   if (!SWIG_IsOK(ecode4)) {
36500     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BM25PlusWeight" "', argument " "4"" of type '" "double""'");
36501   }
36502   arg4 = static_cast< double >(val4);
36503   ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
36504   if (!SWIG_IsOK(ecode5)) {
36505     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_BM25PlusWeight" "', argument " "5"" of type '" "double""'");
36506   }
36507   arg5 = static_cast< double >(val5);
36508   ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
36509   if (!SWIG_IsOK(ecode6)) {
36510     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BM25PlusWeight" "', argument " "6"" of type '" "double""'");
36511   }
36512   arg6 = static_cast< double >(val6);
36513   {
36514     try {
36515       {
36516         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36517         result = (Xapian::BM25PlusWeight *)new Xapian::BM25PlusWeight(arg1,arg2,arg3,arg4,arg5,arg6);
36518         SWIG_PYTHON_THREAD_END_ALLOW;
36519       }
36520     } catch (...) {
36521       Xapian::SetPythonException();
36522       SWIG_fail;
36523     }
36524   }
36525   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__BM25PlusWeight, SWIG_POINTER_NEW |  0 );
36526   return resultobj;
36527 fail:
36528   return NULL;
36529 }
36530 
36531 
_wrap_new_BM25PlusWeight__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))36532 SWIGINTERN PyObject *_wrap_new_BM25PlusWeight__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
36533   PyObject *resultobj = 0;
36534   Xapian::BM25PlusWeight *result = 0 ;
36535 
36536   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
36537   {
36538     try {
36539       {
36540         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36541         result = (Xapian::BM25PlusWeight *)new Xapian::BM25PlusWeight();
36542         SWIG_PYTHON_THREAD_END_ALLOW;
36543       }
36544     } catch (...) {
36545       Xapian::SetPythonException();
36546       SWIG_fail;
36547     }
36548   }
36549   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__BM25PlusWeight, SWIG_POINTER_NEW |  0 );
36550   return resultobj;
36551 fail:
36552   return NULL;
36553 }
36554 
36555 
_wrap_new_BM25PlusWeight(PyObject * self,PyObject * args)36556 SWIGINTERN PyObject *_wrap_new_BM25PlusWeight(PyObject *self, PyObject *args) {
36557   Py_ssize_t argc;
36558   PyObject *argv[7] = {
36559     0
36560   };
36561 
36562   if (!(argc = SWIG_Python_UnpackTuple(args,"new_BM25PlusWeight",0,6,argv))) SWIG_fail;
36563   --argc;
36564   if (argc == 0) {
36565     return _wrap_new_BM25PlusWeight__SWIG_1(self, argc, argv);
36566   }
36567   if (argc == 6) {
36568     return _wrap_new_BM25PlusWeight__SWIG_0(self, argc, argv);
36569   }
36570 
36571 fail:
36572   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_BM25PlusWeight'.\n"
36573     "  Possible C/C++ prototypes are:\n"
36574     "    Xapian::BM25PlusWeight::BM25PlusWeight(double,double,double,double,double,double)\n"
36575     "    Xapian::BM25PlusWeight::BM25PlusWeight()\n");
36576   return 0;
36577 }
36578 
36579 
_wrap_delete_BM25PlusWeight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36580 SWIGINTERN PyObject *_wrap_delete_BM25PlusWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36581   PyObject *resultobj = 0;
36582   Xapian::BM25PlusWeight *arg1 = (Xapian::BM25PlusWeight *) 0 ;
36583   void *argp1 = 0 ;
36584   int res1 = 0 ;
36585   PyObject *swig_obj[1] ;
36586 
36587   if (!args) SWIG_fail;
36588   swig_obj[0] = args;
36589   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__BM25PlusWeight, SWIG_POINTER_DISOWN |  0 );
36590   if (!SWIG_IsOK(res1)) {
36591     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BM25PlusWeight" "', argument " "1"" of type '" "Xapian::BM25PlusWeight *""'");
36592   }
36593   arg1 = reinterpret_cast< Xapian::BM25PlusWeight * >(argp1);
36594   {
36595     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36596     delete arg1;
36597     SWIG_PYTHON_THREAD_END_ALLOW;
36598   }
36599   resultobj = SWIG_Py_Void();
36600   return resultobj;
36601 fail:
36602   return NULL;
36603 }
36604 
36605 
BM25PlusWeight_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36606 SWIGINTERN PyObject *BM25PlusWeight_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36607   PyObject *obj;
36608   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
36609   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__BM25PlusWeight, SWIG_NewClientData(obj));
36610   return SWIG_Py_Void();
36611 }
36612 
BM25PlusWeight_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36613 SWIGINTERN PyObject *BM25PlusWeight_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36614   return SWIG_Python_InitShadowInstance(args);
36615 }
36616 
_wrap_new_TradWeight__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)36617 SWIGINTERN PyObject *_wrap_new_TradWeight__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
36618   PyObject *resultobj = 0;
36619   double arg1 ;
36620   double val1 ;
36621   int ecode1 = 0 ;
36622   Xapian::TradWeight *result = 0 ;
36623 
36624   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
36625   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
36626   if (!SWIG_IsOK(ecode1)) {
36627     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TradWeight" "', argument " "1"" of type '" "double""'");
36628   }
36629   arg1 = static_cast< double >(val1);
36630   {
36631     try {
36632       {
36633         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36634         result = (Xapian::TradWeight *)new Xapian::TradWeight(arg1);
36635         SWIG_PYTHON_THREAD_END_ALLOW;
36636       }
36637     } catch (...) {
36638       Xapian::SetPythonException();
36639       SWIG_fail;
36640     }
36641   }
36642   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__TradWeight, SWIG_POINTER_NEW |  0 );
36643   return resultobj;
36644 fail:
36645   return NULL;
36646 }
36647 
36648 
_wrap_new_TradWeight__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))36649 SWIGINTERN PyObject *_wrap_new_TradWeight__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
36650   PyObject *resultobj = 0;
36651   Xapian::TradWeight *result = 0 ;
36652 
36653   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
36654   {
36655     try {
36656       {
36657         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36658         result = (Xapian::TradWeight *)new Xapian::TradWeight();
36659         SWIG_PYTHON_THREAD_END_ALLOW;
36660       }
36661     } catch (...) {
36662       Xapian::SetPythonException();
36663       SWIG_fail;
36664     }
36665   }
36666   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__TradWeight, SWIG_POINTER_NEW |  0 );
36667   return resultobj;
36668 fail:
36669   return NULL;
36670 }
36671 
36672 
_wrap_new_TradWeight(PyObject * self,PyObject * args)36673 SWIGINTERN PyObject *_wrap_new_TradWeight(PyObject *self, PyObject *args) {
36674   Py_ssize_t argc;
36675   PyObject *argv[2] = {
36676     0
36677   };
36678 
36679   if (!(argc = SWIG_Python_UnpackTuple(args,"new_TradWeight",0,1,argv))) SWIG_fail;
36680   --argc;
36681   if (argc == 0) {
36682     return _wrap_new_TradWeight__SWIG_1(self, argc, argv);
36683   }
36684   if (argc == 1) {
36685     return _wrap_new_TradWeight__SWIG_0(self, argc, argv);
36686   }
36687 
36688 fail:
36689   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_TradWeight'.\n"
36690     "  Possible C/C++ prototypes are:\n"
36691     "    Xapian::TradWeight::TradWeight(double)\n"
36692     "    Xapian::TradWeight::TradWeight()\n");
36693   return 0;
36694 }
36695 
36696 
_wrap_delete_TradWeight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36697 SWIGINTERN PyObject *_wrap_delete_TradWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36698   PyObject *resultobj = 0;
36699   Xapian::TradWeight *arg1 = (Xapian::TradWeight *) 0 ;
36700   void *argp1 = 0 ;
36701   int res1 = 0 ;
36702   PyObject *swig_obj[1] ;
36703 
36704   if (!args) SWIG_fail;
36705   swig_obj[0] = args;
36706   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TradWeight, SWIG_POINTER_DISOWN |  0 );
36707   if (!SWIG_IsOK(res1)) {
36708     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TradWeight" "', argument " "1"" of type '" "Xapian::TradWeight *""'");
36709   }
36710   arg1 = reinterpret_cast< Xapian::TradWeight * >(argp1);
36711   {
36712     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36713     delete arg1;
36714     SWIG_PYTHON_THREAD_END_ALLOW;
36715   }
36716   resultobj = SWIG_Py_Void();
36717   return resultobj;
36718 fail:
36719   return NULL;
36720 }
36721 
36722 
TradWeight_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36723 SWIGINTERN PyObject *TradWeight_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36724   PyObject *obj;
36725   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
36726   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__TradWeight, SWIG_NewClientData(obj));
36727   return SWIG_Py_Void();
36728 }
36729 
TradWeight_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36730 SWIGINTERN PyObject *TradWeight_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36731   return SWIG_Python_InitShadowInstance(args);
36732 }
36733 
_wrap_new_InL2Weight__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)36734 SWIGINTERN PyObject *_wrap_new_InL2Weight__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
36735   PyObject *resultobj = 0;
36736   double arg1 ;
36737   double val1 ;
36738   int ecode1 = 0 ;
36739   Xapian::InL2Weight *result = 0 ;
36740 
36741   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
36742   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
36743   if (!SWIG_IsOK(ecode1)) {
36744     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_InL2Weight" "', argument " "1"" of type '" "double""'");
36745   }
36746   arg1 = static_cast< double >(val1);
36747   {
36748     try {
36749       {
36750         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36751         result = (Xapian::InL2Weight *)new Xapian::InL2Weight(arg1);
36752         SWIG_PYTHON_THREAD_END_ALLOW;
36753       }
36754     } catch (...) {
36755       Xapian::SetPythonException();
36756       SWIG_fail;
36757     }
36758   }
36759   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__InL2Weight, SWIG_POINTER_NEW |  0 );
36760   return resultobj;
36761 fail:
36762   return NULL;
36763 }
36764 
36765 
_wrap_new_InL2Weight__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))36766 SWIGINTERN PyObject *_wrap_new_InL2Weight__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
36767   PyObject *resultobj = 0;
36768   Xapian::InL2Weight *result = 0 ;
36769 
36770   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
36771   {
36772     try {
36773       {
36774         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36775         result = (Xapian::InL2Weight *)new Xapian::InL2Weight();
36776         SWIG_PYTHON_THREAD_END_ALLOW;
36777       }
36778     } catch (...) {
36779       Xapian::SetPythonException();
36780       SWIG_fail;
36781     }
36782   }
36783   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__InL2Weight, SWIG_POINTER_NEW |  0 );
36784   return resultobj;
36785 fail:
36786   return NULL;
36787 }
36788 
36789 
_wrap_new_InL2Weight(PyObject * self,PyObject * args)36790 SWIGINTERN PyObject *_wrap_new_InL2Weight(PyObject *self, PyObject *args) {
36791   Py_ssize_t argc;
36792   PyObject *argv[2] = {
36793     0
36794   };
36795 
36796   if (!(argc = SWIG_Python_UnpackTuple(args,"new_InL2Weight",0,1,argv))) SWIG_fail;
36797   --argc;
36798   if (argc == 0) {
36799     return _wrap_new_InL2Weight__SWIG_1(self, argc, argv);
36800   }
36801   if (argc == 1) {
36802     return _wrap_new_InL2Weight__SWIG_0(self, argc, argv);
36803   }
36804 
36805 fail:
36806   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_InL2Weight'.\n"
36807     "  Possible C/C++ prototypes are:\n"
36808     "    Xapian::InL2Weight::InL2Weight(double)\n"
36809     "    Xapian::InL2Weight::InL2Weight()\n");
36810   return 0;
36811 }
36812 
36813 
_wrap_delete_InL2Weight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36814 SWIGINTERN PyObject *_wrap_delete_InL2Weight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36815   PyObject *resultobj = 0;
36816   Xapian::InL2Weight *arg1 = (Xapian::InL2Weight *) 0 ;
36817   void *argp1 = 0 ;
36818   int res1 = 0 ;
36819   PyObject *swig_obj[1] ;
36820 
36821   if (!args) SWIG_fail;
36822   swig_obj[0] = args;
36823   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__InL2Weight, SWIG_POINTER_DISOWN |  0 );
36824   if (!SWIG_IsOK(res1)) {
36825     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_InL2Weight" "', argument " "1"" of type '" "Xapian::InL2Weight *""'");
36826   }
36827   arg1 = reinterpret_cast< Xapian::InL2Weight * >(argp1);
36828   {
36829     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36830     delete arg1;
36831     SWIG_PYTHON_THREAD_END_ALLOW;
36832   }
36833   resultobj = SWIG_Py_Void();
36834   return resultobj;
36835 fail:
36836   return NULL;
36837 }
36838 
36839 
InL2Weight_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36840 SWIGINTERN PyObject *InL2Weight_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36841   PyObject *obj;
36842   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
36843   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__InL2Weight, SWIG_NewClientData(obj));
36844   return SWIG_Py_Void();
36845 }
36846 
InL2Weight_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36847 SWIGINTERN PyObject *InL2Weight_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36848   return SWIG_Python_InitShadowInstance(args);
36849 }
36850 
_wrap_new_IfB2Weight__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)36851 SWIGINTERN PyObject *_wrap_new_IfB2Weight__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
36852   PyObject *resultobj = 0;
36853   double arg1 ;
36854   double val1 ;
36855   int ecode1 = 0 ;
36856   Xapian::IfB2Weight *result = 0 ;
36857 
36858   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
36859   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
36860   if (!SWIG_IsOK(ecode1)) {
36861     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_IfB2Weight" "', argument " "1"" of type '" "double""'");
36862   }
36863   arg1 = static_cast< double >(val1);
36864   {
36865     try {
36866       {
36867         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36868         result = (Xapian::IfB2Weight *)new Xapian::IfB2Weight(arg1);
36869         SWIG_PYTHON_THREAD_END_ALLOW;
36870       }
36871     } catch (...) {
36872       Xapian::SetPythonException();
36873       SWIG_fail;
36874     }
36875   }
36876   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__IfB2Weight, SWIG_POINTER_NEW |  0 );
36877   return resultobj;
36878 fail:
36879   return NULL;
36880 }
36881 
36882 
_wrap_new_IfB2Weight__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))36883 SWIGINTERN PyObject *_wrap_new_IfB2Weight__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
36884   PyObject *resultobj = 0;
36885   Xapian::IfB2Weight *result = 0 ;
36886 
36887   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
36888   {
36889     try {
36890       {
36891         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36892         result = (Xapian::IfB2Weight *)new Xapian::IfB2Weight();
36893         SWIG_PYTHON_THREAD_END_ALLOW;
36894       }
36895     } catch (...) {
36896       Xapian::SetPythonException();
36897       SWIG_fail;
36898     }
36899   }
36900   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__IfB2Weight, SWIG_POINTER_NEW |  0 );
36901   return resultobj;
36902 fail:
36903   return NULL;
36904 }
36905 
36906 
_wrap_new_IfB2Weight(PyObject * self,PyObject * args)36907 SWIGINTERN PyObject *_wrap_new_IfB2Weight(PyObject *self, PyObject *args) {
36908   Py_ssize_t argc;
36909   PyObject *argv[2] = {
36910     0
36911   };
36912 
36913   if (!(argc = SWIG_Python_UnpackTuple(args,"new_IfB2Weight",0,1,argv))) SWIG_fail;
36914   --argc;
36915   if (argc == 0) {
36916     return _wrap_new_IfB2Weight__SWIG_1(self, argc, argv);
36917   }
36918   if (argc == 1) {
36919     return _wrap_new_IfB2Weight__SWIG_0(self, argc, argv);
36920   }
36921 
36922 fail:
36923   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_IfB2Weight'.\n"
36924     "  Possible C/C++ prototypes are:\n"
36925     "    Xapian::IfB2Weight::IfB2Weight(double)\n"
36926     "    Xapian::IfB2Weight::IfB2Weight()\n");
36927   return 0;
36928 }
36929 
36930 
_wrap_delete_IfB2Weight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36931 SWIGINTERN PyObject *_wrap_delete_IfB2Weight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36932   PyObject *resultobj = 0;
36933   Xapian::IfB2Weight *arg1 = (Xapian::IfB2Weight *) 0 ;
36934   void *argp1 = 0 ;
36935   int res1 = 0 ;
36936   PyObject *swig_obj[1] ;
36937 
36938   if (!args) SWIG_fail;
36939   swig_obj[0] = args;
36940   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__IfB2Weight, SWIG_POINTER_DISOWN |  0 );
36941   if (!SWIG_IsOK(res1)) {
36942     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IfB2Weight" "', argument " "1"" of type '" "Xapian::IfB2Weight *""'");
36943   }
36944   arg1 = reinterpret_cast< Xapian::IfB2Weight * >(argp1);
36945   {
36946     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36947     delete arg1;
36948     SWIG_PYTHON_THREAD_END_ALLOW;
36949   }
36950   resultobj = SWIG_Py_Void();
36951   return resultobj;
36952 fail:
36953   return NULL;
36954 }
36955 
36956 
IfB2Weight_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36957 SWIGINTERN PyObject *IfB2Weight_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36958   PyObject *obj;
36959   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
36960   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__IfB2Weight, SWIG_NewClientData(obj));
36961   return SWIG_Py_Void();
36962 }
36963 
IfB2Weight_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36964 SWIGINTERN PyObject *IfB2Weight_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36965   return SWIG_Python_InitShadowInstance(args);
36966 }
36967 
_wrap_new_IneB2Weight__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)36968 SWIGINTERN PyObject *_wrap_new_IneB2Weight__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
36969   PyObject *resultobj = 0;
36970   double arg1 ;
36971   double val1 ;
36972   int ecode1 = 0 ;
36973   Xapian::IneB2Weight *result = 0 ;
36974 
36975   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
36976   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
36977   if (!SWIG_IsOK(ecode1)) {
36978     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_IneB2Weight" "', argument " "1"" of type '" "double""'");
36979   }
36980   arg1 = static_cast< double >(val1);
36981   {
36982     try {
36983       {
36984         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36985         result = (Xapian::IneB2Weight *)new Xapian::IneB2Weight(arg1);
36986         SWIG_PYTHON_THREAD_END_ALLOW;
36987       }
36988     } catch (...) {
36989       Xapian::SetPythonException();
36990       SWIG_fail;
36991     }
36992   }
36993   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__IneB2Weight, SWIG_POINTER_NEW |  0 );
36994   return resultobj;
36995 fail:
36996   return NULL;
36997 }
36998 
36999 
_wrap_new_IneB2Weight__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))37000 SWIGINTERN PyObject *_wrap_new_IneB2Weight__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
37001   PyObject *resultobj = 0;
37002   Xapian::IneB2Weight *result = 0 ;
37003 
37004   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
37005   {
37006     try {
37007       {
37008         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37009         result = (Xapian::IneB2Weight *)new Xapian::IneB2Weight();
37010         SWIG_PYTHON_THREAD_END_ALLOW;
37011       }
37012     } catch (...) {
37013       Xapian::SetPythonException();
37014       SWIG_fail;
37015     }
37016   }
37017   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__IneB2Weight, SWIG_POINTER_NEW |  0 );
37018   return resultobj;
37019 fail:
37020   return NULL;
37021 }
37022 
37023 
_wrap_new_IneB2Weight(PyObject * self,PyObject * args)37024 SWIGINTERN PyObject *_wrap_new_IneB2Weight(PyObject *self, PyObject *args) {
37025   Py_ssize_t argc;
37026   PyObject *argv[2] = {
37027     0
37028   };
37029 
37030   if (!(argc = SWIG_Python_UnpackTuple(args,"new_IneB2Weight",0,1,argv))) SWIG_fail;
37031   --argc;
37032   if (argc == 0) {
37033     return _wrap_new_IneB2Weight__SWIG_1(self, argc, argv);
37034   }
37035   if (argc == 1) {
37036     return _wrap_new_IneB2Weight__SWIG_0(self, argc, argv);
37037   }
37038 
37039 fail:
37040   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_IneB2Weight'.\n"
37041     "  Possible C/C++ prototypes are:\n"
37042     "    Xapian::IneB2Weight::IneB2Weight(double)\n"
37043     "    Xapian::IneB2Weight::IneB2Weight()\n");
37044   return 0;
37045 }
37046 
37047 
_wrap_delete_IneB2Weight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37048 SWIGINTERN PyObject *_wrap_delete_IneB2Weight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37049   PyObject *resultobj = 0;
37050   Xapian::IneB2Weight *arg1 = (Xapian::IneB2Weight *) 0 ;
37051   void *argp1 = 0 ;
37052   int res1 = 0 ;
37053   PyObject *swig_obj[1] ;
37054 
37055   if (!args) SWIG_fail;
37056   swig_obj[0] = args;
37057   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__IneB2Weight, SWIG_POINTER_DISOWN |  0 );
37058   if (!SWIG_IsOK(res1)) {
37059     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IneB2Weight" "', argument " "1"" of type '" "Xapian::IneB2Weight *""'");
37060   }
37061   arg1 = reinterpret_cast< Xapian::IneB2Weight * >(argp1);
37062   {
37063     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37064     delete arg1;
37065     SWIG_PYTHON_THREAD_END_ALLOW;
37066   }
37067   resultobj = SWIG_Py_Void();
37068   return resultobj;
37069 fail:
37070   return NULL;
37071 }
37072 
37073 
IneB2Weight_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37074 SWIGINTERN PyObject *IneB2Weight_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37075   PyObject *obj;
37076   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
37077   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__IneB2Weight, SWIG_NewClientData(obj));
37078   return SWIG_Py_Void();
37079 }
37080 
IneB2Weight_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37081 SWIGINTERN PyObject *IneB2Weight_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37082   return SWIG_Python_InitShadowInstance(args);
37083 }
37084 
_wrap_new_BB2Weight__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)37085 SWIGINTERN PyObject *_wrap_new_BB2Weight__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
37086   PyObject *resultobj = 0;
37087   double arg1 ;
37088   double val1 ;
37089   int ecode1 = 0 ;
37090   Xapian::BB2Weight *result = 0 ;
37091 
37092   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
37093   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
37094   if (!SWIG_IsOK(ecode1)) {
37095     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BB2Weight" "', argument " "1"" of type '" "double""'");
37096   }
37097   arg1 = static_cast< double >(val1);
37098   {
37099     try {
37100       {
37101         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37102         result = (Xapian::BB2Weight *)new Xapian::BB2Weight(arg1);
37103         SWIG_PYTHON_THREAD_END_ALLOW;
37104       }
37105     } catch (...) {
37106       Xapian::SetPythonException();
37107       SWIG_fail;
37108     }
37109   }
37110   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__BB2Weight, SWIG_POINTER_NEW |  0 );
37111   return resultobj;
37112 fail:
37113   return NULL;
37114 }
37115 
37116 
_wrap_new_BB2Weight__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))37117 SWIGINTERN PyObject *_wrap_new_BB2Weight__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
37118   PyObject *resultobj = 0;
37119   Xapian::BB2Weight *result = 0 ;
37120 
37121   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
37122   {
37123     try {
37124       {
37125         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37126         result = (Xapian::BB2Weight *)new Xapian::BB2Weight();
37127         SWIG_PYTHON_THREAD_END_ALLOW;
37128       }
37129     } catch (...) {
37130       Xapian::SetPythonException();
37131       SWIG_fail;
37132     }
37133   }
37134   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__BB2Weight, SWIG_POINTER_NEW |  0 );
37135   return resultobj;
37136 fail:
37137   return NULL;
37138 }
37139 
37140 
_wrap_new_BB2Weight(PyObject * self,PyObject * args)37141 SWIGINTERN PyObject *_wrap_new_BB2Weight(PyObject *self, PyObject *args) {
37142   Py_ssize_t argc;
37143   PyObject *argv[2] = {
37144     0
37145   };
37146 
37147   if (!(argc = SWIG_Python_UnpackTuple(args,"new_BB2Weight",0,1,argv))) SWIG_fail;
37148   --argc;
37149   if (argc == 0) {
37150     return _wrap_new_BB2Weight__SWIG_1(self, argc, argv);
37151   }
37152   if (argc == 1) {
37153     return _wrap_new_BB2Weight__SWIG_0(self, argc, argv);
37154   }
37155 
37156 fail:
37157   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_BB2Weight'.\n"
37158     "  Possible C/C++ prototypes are:\n"
37159     "    Xapian::BB2Weight::BB2Weight(double)\n"
37160     "    Xapian::BB2Weight::BB2Weight()\n");
37161   return 0;
37162 }
37163 
37164 
_wrap_delete_BB2Weight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37165 SWIGINTERN PyObject *_wrap_delete_BB2Weight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37166   PyObject *resultobj = 0;
37167   Xapian::BB2Weight *arg1 = (Xapian::BB2Weight *) 0 ;
37168   void *argp1 = 0 ;
37169   int res1 = 0 ;
37170   PyObject *swig_obj[1] ;
37171 
37172   if (!args) SWIG_fail;
37173   swig_obj[0] = args;
37174   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__BB2Weight, SWIG_POINTER_DISOWN |  0 );
37175   if (!SWIG_IsOK(res1)) {
37176     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BB2Weight" "', argument " "1"" of type '" "Xapian::BB2Weight *""'");
37177   }
37178   arg1 = reinterpret_cast< Xapian::BB2Weight * >(argp1);
37179   {
37180     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37181     delete arg1;
37182     SWIG_PYTHON_THREAD_END_ALLOW;
37183   }
37184   resultobj = SWIG_Py_Void();
37185   return resultobj;
37186 fail:
37187   return NULL;
37188 }
37189 
37190 
BB2Weight_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37191 SWIGINTERN PyObject *BB2Weight_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37192   PyObject *obj;
37193   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
37194   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__BB2Weight, SWIG_NewClientData(obj));
37195   return SWIG_Py_Void();
37196 }
37197 
BB2Weight_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37198 SWIGINTERN PyObject *BB2Weight_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37199   return SWIG_Python_InitShadowInstance(args);
37200 }
37201 
_wrap_new_DLHWeight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37202 SWIGINTERN PyObject *_wrap_new_DLHWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37203   PyObject *resultobj = 0;
37204   Xapian::DLHWeight *result = 0 ;
37205 
37206   if (!SWIG_Python_UnpackTuple(args,"new_DLHWeight",0,0,0)) SWIG_fail;
37207   {
37208     try {
37209       {
37210         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37211         result = (Xapian::DLHWeight *)new Xapian::DLHWeight();
37212         SWIG_PYTHON_THREAD_END_ALLOW;
37213       }
37214     } catch (...) {
37215       Xapian::SetPythonException();
37216       SWIG_fail;
37217     }
37218   }
37219   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DLHWeight, SWIG_POINTER_NEW |  0 );
37220   return resultobj;
37221 fail:
37222   return NULL;
37223 }
37224 
37225 
_wrap_delete_DLHWeight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37226 SWIGINTERN PyObject *_wrap_delete_DLHWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37227   PyObject *resultobj = 0;
37228   Xapian::DLHWeight *arg1 = (Xapian::DLHWeight *) 0 ;
37229   void *argp1 = 0 ;
37230   int res1 = 0 ;
37231   PyObject *swig_obj[1] ;
37232 
37233   if (!args) SWIG_fail;
37234   swig_obj[0] = args;
37235   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__DLHWeight, SWIG_POINTER_DISOWN |  0 );
37236   if (!SWIG_IsOK(res1)) {
37237     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DLHWeight" "', argument " "1"" of type '" "Xapian::DLHWeight *""'");
37238   }
37239   arg1 = reinterpret_cast< Xapian::DLHWeight * >(argp1);
37240   {
37241     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37242     delete arg1;
37243     SWIG_PYTHON_THREAD_END_ALLOW;
37244   }
37245   resultobj = SWIG_Py_Void();
37246   return resultobj;
37247 fail:
37248   return NULL;
37249 }
37250 
37251 
DLHWeight_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37252 SWIGINTERN PyObject *DLHWeight_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37253   PyObject *obj;
37254   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
37255   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__DLHWeight, SWIG_NewClientData(obj));
37256   return SWIG_Py_Void();
37257 }
37258 
DLHWeight_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37259 SWIGINTERN PyObject *DLHWeight_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37260   return SWIG_Python_InitShadowInstance(args);
37261 }
37262 
_wrap_new_PL2Weight__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)37263 SWIGINTERN PyObject *_wrap_new_PL2Weight__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
37264   PyObject *resultobj = 0;
37265   double arg1 ;
37266   double val1 ;
37267   int ecode1 = 0 ;
37268   Xapian::PL2Weight *result = 0 ;
37269 
37270   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
37271   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
37272   if (!SWIG_IsOK(ecode1)) {
37273     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PL2Weight" "', argument " "1"" of type '" "double""'");
37274   }
37275   arg1 = static_cast< double >(val1);
37276   {
37277     try {
37278       {
37279         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37280         result = (Xapian::PL2Weight *)new Xapian::PL2Weight(arg1);
37281         SWIG_PYTHON_THREAD_END_ALLOW;
37282       }
37283     } catch (...) {
37284       Xapian::SetPythonException();
37285       SWIG_fail;
37286     }
37287   }
37288   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__PL2Weight, SWIG_POINTER_NEW |  0 );
37289   return resultobj;
37290 fail:
37291   return NULL;
37292 }
37293 
37294 
_wrap_new_PL2Weight__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))37295 SWIGINTERN PyObject *_wrap_new_PL2Weight__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
37296   PyObject *resultobj = 0;
37297   Xapian::PL2Weight *result = 0 ;
37298 
37299   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
37300   {
37301     try {
37302       {
37303         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37304         result = (Xapian::PL2Weight *)new Xapian::PL2Weight();
37305         SWIG_PYTHON_THREAD_END_ALLOW;
37306       }
37307     } catch (...) {
37308       Xapian::SetPythonException();
37309       SWIG_fail;
37310     }
37311   }
37312   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__PL2Weight, SWIG_POINTER_NEW |  0 );
37313   return resultobj;
37314 fail:
37315   return NULL;
37316 }
37317 
37318 
_wrap_new_PL2Weight(PyObject * self,PyObject * args)37319 SWIGINTERN PyObject *_wrap_new_PL2Weight(PyObject *self, PyObject *args) {
37320   Py_ssize_t argc;
37321   PyObject *argv[2] = {
37322     0
37323   };
37324 
37325   if (!(argc = SWIG_Python_UnpackTuple(args,"new_PL2Weight",0,1,argv))) SWIG_fail;
37326   --argc;
37327   if (argc == 0) {
37328     return _wrap_new_PL2Weight__SWIG_1(self, argc, argv);
37329   }
37330   if (argc == 1) {
37331     return _wrap_new_PL2Weight__SWIG_0(self, argc, argv);
37332   }
37333 
37334 fail:
37335   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_PL2Weight'.\n"
37336     "  Possible C/C++ prototypes are:\n"
37337     "    Xapian::PL2Weight::PL2Weight(double)\n"
37338     "    Xapian::PL2Weight::PL2Weight()\n");
37339   return 0;
37340 }
37341 
37342 
_wrap_delete_PL2Weight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37343 SWIGINTERN PyObject *_wrap_delete_PL2Weight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37344   PyObject *resultobj = 0;
37345   Xapian::PL2Weight *arg1 = (Xapian::PL2Weight *) 0 ;
37346   void *argp1 = 0 ;
37347   int res1 = 0 ;
37348   PyObject *swig_obj[1] ;
37349 
37350   if (!args) SWIG_fail;
37351   swig_obj[0] = args;
37352   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PL2Weight, SWIG_POINTER_DISOWN |  0 );
37353   if (!SWIG_IsOK(res1)) {
37354     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PL2Weight" "', argument " "1"" of type '" "Xapian::PL2Weight *""'");
37355   }
37356   arg1 = reinterpret_cast< Xapian::PL2Weight * >(argp1);
37357   {
37358     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37359     delete arg1;
37360     SWIG_PYTHON_THREAD_END_ALLOW;
37361   }
37362   resultobj = SWIG_Py_Void();
37363   return resultobj;
37364 fail:
37365   return NULL;
37366 }
37367 
37368 
PL2Weight_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37369 SWIGINTERN PyObject *PL2Weight_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37370   PyObject *obj;
37371   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
37372   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__PL2Weight, SWIG_NewClientData(obj));
37373   return SWIG_Py_Void();
37374 }
37375 
PL2Weight_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37376 SWIGINTERN PyObject *PL2Weight_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37377   return SWIG_Python_InitShadowInstance(args);
37378 }
37379 
_wrap_new_PL2PlusWeight__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)37380 SWIGINTERN PyObject *_wrap_new_PL2PlusWeight__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
37381   PyObject *resultobj = 0;
37382   double arg1 ;
37383   double arg2 ;
37384   double val1 ;
37385   int ecode1 = 0 ;
37386   double val2 ;
37387   int ecode2 = 0 ;
37388   Xapian::PL2PlusWeight *result = 0 ;
37389 
37390   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
37391   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
37392   if (!SWIG_IsOK(ecode1)) {
37393     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PL2PlusWeight" "', argument " "1"" of type '" "double""'");
37394   }
37395   arg1 = static_cast< double >(val1);
37396   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
37397   if (!SWIG_IsOK(ecode2)) {
37398     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PL2PlusWeight" "', argument " "2"" of type '" "double""'");
37399   }
37400   arg2 = static_cast< double >(val2);
37401   {
37402     try {
37403       {
37404         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37405         result = (Xapian::PL2PlusWeight *)new Xapian::PL2PlusWeight(arg1,arg2);
37406         SWIG_PYTHON_THREAD_END_ALLOW;
37407       }
37408     } catch (...) {
37409       Xapian::SetPythonException();
37410       SWIG_fail;
37411     }
37412   }
37413   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__PL2PlusWeight, SWIG_POINTER_NEW |  0 );
37414   return resultobj;
37415 fail:
37416   return NULL;
37417 }
37418 
37419 
_wrap_new_PL2PlusWeight__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))37420 SWIGINTERN PyObject *_wrap_new_PL2PlusWeight__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
37421   PyObject *resultobj = 0;
37422   Xapian::PL2PlusWeight *result = 0 ;
37423 
37424   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
37425   {
37426     try {
37427       {
37428         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37429         result = (Xapian::PL2PlusWeight *)new Xapian::PL2PlusWeight();
37430         SWIG_PYTHON_THREAD_END_ALLOW;
37431       }
37432     } catch (...) {
37433       Xapian::SetPythonException();
37434       SWIG_fail;
37435     }
37436   }
37437   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__PL2PlusWeight, SWIG_POINTER_NEW |  0 );
37438   return resultobj;
37439 fail:
37440   return NULL;
37441 }
37442 
37443 
_wrap_new_PL2PlusWeight(PyObject * self,PyObject * args)37444 SWIGINTERN PyObject *_wrap_new_PL2PlusWeight(PyObject *self, PyObject *args) {
37445   Py_ssize_t argc;
37446   PyObject *argv[3] = {
37447     0
37448   };
37449 
37450   if (!(argc = SWIG_Python_UnpackTuple(args,"new_PL2PlusWeight",0,2,argv))) SWIG_fail;
37451   --argc;
37452   if (argc == 0) {
37453     return _wrap_new_PL2PlusWeight__SWIG_1(self, argc, argv);
37454   }
37455   if (argc == 2) {
37456     return _wrap_new_PL2PlusWeight__SWIG_0(self, argc, argv);
37457   }
37458 
37459 fail:
37460   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_PL2PlusWeight'.\n"
37461     "  Possible C/C++ prototypes are:\n"
37462     "    Xapian::PL2PlusWeight::PL2PlusWeight(double,double)\n"
37463     "    Xapian::PL2PlusWeight::PL2PlusWeight()\n");
37464   return 0;
37465 }
37466 
37467 
_wrap_delete_PL2PlusWeight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37468 SWIGINTERN PyObject *_wrap_delete_PL2PlusWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37469   PyObject *resultobj = 0;
37470   Xapian::PL2PlusWeight *arg1 = (Xapian::PL2PlusWeight *) 0 ;
37471   void *argp1 = 0 ;
37472   int res1 = 0 ;
37473   PyObject *swig_obj[1] ;
37474 
37475   if (!args) SWIG_fail;
37476   swig_obj[0] = args;
37477   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PL2PlusWeight, SWIG_POINTER_DISOWN |  0 );
37478   if (!SWIG_IsOK(res1)) {
37479     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PL2PlusWeight" "', argument " "1"" of type '" "Xapian::PL2PlusWeight *""'");
37480   }
37481   arg1 = reinterpret_cast< Xapian::PL2PlusWeight * >(argp1);
37482   {
37483     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37484     delete arg1;
37485     SWIG_PYTHON_THREAD_END_ALLOW;
37486   }
37487   resultobj = SWIG_Py_Void();
37488   return resultobj;
37489 fail:
37490   return NULL;
37491 }
37492 
37493 
PL2PlusWeight_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37494 SWIGINTERN PyObject *PL2PlusWeight_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37495   PyObject *obj;
37496   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
37497   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__PL2PlusWeight, SWIG_NewClientData(obj));
37498   return SWIG_Py_Void();
37499 }
37500 
PL2PlusWeight_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37501 SWIGINTERN PyObject *PL2PlusWeight_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37502   return SWIG_Python_InitShadowInstance(args);
37503 }
37504 
_wrap_new_DPHWeight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37505 SWIGINTERN PyObject *_wrap_new_DPHWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37506   PyObject *resultobj = 0;
37507   Xapian::DPHWeight *result = 0 ;
37508 
37509   if (!SWIG_Python_UnpackTuple(args,"new_DPHWeight",0,0,0)) SWIG_fail;
37510   {
37511     try {
37512       {
37513         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37514         result = (Xapian::DPHWeight *)new Xapian::DPHWeight();
37515         SWIG_PYTHON_THREAD_END_ALLOW;
37516       }
37517     } catch (...) {
37518       Xapian::SetPythonException();
37519       SWIG_fail;
37520     }
37521   }
37522   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DPHWeight, SWIG_POINTER_NEW |  0 );
37523   return resultobj;
37524 fail:
37525   return NULL;
37526 }
37527 
37528 
_wrap_delete_DPHWeight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37529 SWIGINTERN PyObject *_wrap_delete_DPHWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37530   PyObject *resultobj = 0;
37531   Xapian::DPHWeight *arg1 = (Xapian::DPHWeight *) 0 ;
37532   void *argp1 = 0 ;
37533   int res1 = 0 ;
37534   PyObject *swig_obj[1] ;
37535 
37536   if (!args) SWIG_fail;
37537   swig_obj[0] = args;
37538   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__DPHWeight, SWIG_POINTER_DISOWN |  0 );
37539   if (!SWIG_IsOK(res1)) {
37540     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DPHWeight" "', argument " "1"" of type '" "Xapian::DPHWeight *""'");
37541   }
37542   arg1 = reinterpret_cast< Xapian::DPHWeight * >(argp1);
37543   {
37544     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37545     delete arg1;
37546     SWIG_PYTHON_THREAD_END_ALLOW;
37547   }
37548   resultobj = SWIG_Py_Void();
37549   return resultobj;
37550 fail:
37551   return NULL;
37552 }
37553 
37554 
DPHWeight_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37555 SWIGINTERN PyObject *DPHWeight_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37556   PyObject *obj;
37557   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
37558   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__DPHWeight, SWIG_NewClientData(obj));
37559   return SWIG_Py_Void();
37560 }
37561 
DPHWeight_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37562 SWIGINTERN PyObject *DPHWeight_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37563   return SWIG_Python_InitShadowInstance(args);
37564 }
37565 
_wrap_new_LMWeight__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)37566 SWIGINTERN PyObject *_wrap_new_LMWeight__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
37567   PyObject *resultobj = 0;
37568   double arg1 ;
37569   Xapian::Weight::type_smoothing arg2 ;
37570   double arg3 ;
37571   double arg4 ;
37572   double val1 ;
37573   int ecode1 = 0 ;
37574   int val2 ;
37575   int ecode2 = 0 ;
37576   double val3 ;
37577   int ecode3 = 0 ;
37578   double val4 ;
37579   int ecode4 = 0 ;
37580   Xapian::LMWeight *result = 0 ;
37581 
37582   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
37583   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
37584   if (!SWIG_IsOK(ecode1)) {
37585     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LMWeight" "', argument " "1"" of type '" "double""'");
37586   }
37587   arg1 = static_cast< double >(val1);
37588   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
37589   if (!SWIG_IsOK(ecode2)) {
37590     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_LMWeight" "', argument " "2"" of type '" "Xapian::Weight::type_smoothing""'");
37591   }
37592   arg2 = static_cast< Xapian::Weight::type_smoothing >(val2);
37593   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
37594   if (!SWIG_IsOK(ecode3)) {
37595     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_LMWeight" "', argument " "3"" of type '" "double""'");
37596   }
37597   arg3 = static_cast< double >(val3);
37598   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
37599   if (!SWIG_IsOK(ecode4)) {
37600     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_LMWeight" "', argument " "4"" of type '" "double""'");
37601   }
37602   arg4 = static_cast< double >(val4);
37603   {
37604     try {
37605       {
37606         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37607         result = (Xapian::LMWeight *)new Xapian::LMWeight(arg1,arg2,arg3,arg4);
37608         SWIG_PYTHON_THREAD_END_ALLOW;
37609       }
37610     } catch (...) {
37611       Xapian::SetPythonException();
37612       SWIG_fail;
37613     }
37614   }
37615   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LMWeight, SWIG_POINTER_NEW |  0 );
37616   return resultobj;
37617 fail:
37618   return NULL;
37619 }
37620 
37621 
_wrap_new_LMWeight__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)37622 SWIGINTERN PyObject *_wrap_new_LMWeight__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
37623   PyObject *resultobj = 0;
37624   double arg1 ;
37625   Xapian::Weight::type_smoothing arg2 ;
37626   double arg3 ;
37627   double val1 ;
37628   int ecode1 = 0 ;
37629   int val2 ;
37630   int ecode2 = 0 ;
37631   double val3 ;
37632   int ecode3 = 0 ;
37633   Xapian::LMWeight *result = 0 ;
37634 
37635   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
37636   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
37637   if (!SWIG_IsOK(ecode1)) {
37638     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LMWeight" "', argument " "1"" of type '" "double""'");
37639   }
37640   arg1 = static_cast< double >(val1);
37641   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
37642   if (!SWIG_IsOK(ecode2)) {
37643     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_LMWeight" "', argument " "2"" of type '" "Xapian::Weight::type_smoothing""'");
37644   }
37645   arg2 = static_cast< Xapian::Weight::type_smoothing >(val2);
37646   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
37647   if (!SWIG_IsOK(ecode3)) {
37648     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_LMWeight" "', argument " "3"" of type '" "double""'");
37649   }
37650   arg3 = static_cast< double >(val3);
37651   {
37652     try {
37653       {
37654         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37655         result = (Xapian::LMWeight *)new Xapian::LMWeight(arg1,arg2,arg3);
37656         SWIG_PYTHON_THREAD_END_ALLOW;
37657       }
37658     } catch (...) {
37659       Xapian::SetPythonException();
37660       SWIG_fail;
37661     }
37662   }
37663   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LMWeight, SWIG_POINTER_NEW |  0 );
37664   return resultobj;
37665 fail:
37666   return NULL;
37667 }
37668 
37669 
_wrap_new_LMWeight__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)37670 SWIGINTERN PyObject *_wrap_new_LMWeight__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
37671   PyObject *resultobj = 0;
37672   double arg1 ;
37673   Xapian::Weight::type_smoothing arg2 ;
37674   double val1 ;
37675   int ecode1 = 0 ;
37676   int val2 ;
37677   int ecode2 = 0 ;
37678   Xapian::LMWeight *result = 0 ;
37679 
37680   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
37681   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
37682   if (!SWIG_IsOK(ecode1)) {
37683     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LMWeight" "', argument " "1"" of type '" "double""'");
37684   }
37685   arg1 = static_cast< double >(val1);
37686   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
37687   if (!SWIG_IsOK(ecode2)) {
37688     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_LMWeight" "', argument " "2"" of type '" "Xapian::Weight::type_smoothing""'");
37689   }
37690   arg2 = static_cast< Xapian::Weight::type_smoothing >(val2);
37691   {
37692     try {
37693       {
37694         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37695         result = (Xapian::LMWeight *)new Xapian::LMWeight(arg1,arg2);
37696         SWIG_PYTHON_THREAD_END_ALLOW;
37697       }
37698     } catch (...) {
37699       Xapian::SetPythonException();
37700       SWIG_fail;
37701     }
37702   }
37703   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LMWeight, SWIG_POINTER_NEW |  0 );
37704   return resultobj;
37705 fail:
37706   return NULL;
37707 }
37708 
37709 
_wrap_new_LMWeight__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)37710 SWIGINTERN PyObject *_wrap_new_LMWeight__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
37711   PyObject *resultobj = 0;
37712   double arg1 ;
37713   double val1 ;
37714   int ecode1 = 0 ;
37715   Xapian::LMWeight *result = 0 ;
37716 
37717   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
37718   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
37719   if (!SWIG_IsOK(ecode1)) {
37720     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LMWeight" "', argument " "1"" of type '" "double""'");
37721   }
37722   arg1 = static_cast< double >(val1);
37723   {
37724     try {
37725       {
37726         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37727         result = (Xapian::LMWeight *)new Xapian::LMWeight(arg1);
37728         SWIG_PYTHON_THREAD_END_ALLOW;
37729       }
37730     } catch (...) {
37731       Xapian::SetPythonException();
37732       SWIG_fail;
37733     }
37734   }
37735   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LMWeight, SWIG_POINTER_NEW |  0 );
37736   return resultobj;
37737 fail:
37738   return NULL;
37739 }
37740 
37741 
_wrap_new_LMWeight__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))37742 SWIGINTERN PyObject *_wrap_new_LMWeight__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
37743   PyObject *resultobj = 0;
37744   Xapian::LMWeight *result = 0 ;
37745 
37746   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
37747   {
37748     try {
37749       {
37750         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37751         result = (Xapian::LMWeight *)new Xapian::LMWeight();
37752         SWIG_PYTHON_THREAD_END_ALLOW;
37753       }
37754     } catch (...) {
37755       Xapian::SetPythonException();
37756       SWIG_fail;
37757     }
37758   }
37759   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LMWeight, SWIG_POINTER_NEW |  0 );
37760   return resultobj;
37761 fail:
37762   return NULL;
37763 }
37764 
37765 
_wrap_new_LMWeight(PyObject * self,PyObject * args)37766 SWIGINTERN PyObject *_wrap_new_LMWeight(PyObject *self, PyObject *args) {
37767   Py_ssize_t argc;
37768   PyObject *argv[5] = {
37769     0
37770   };
37771 
37772   if (!(argc = SWIG_Python_UnpackTuple(args,"new_LMWeight",0,4,argv))) SWIG_fail;
37773   --argc;
37774   if (argc == 0) {
37775     return _wrap_new_LMWeight__SWIG_4(self, argc, argv);
37776   }
37777   if (argc == 1) {
37778     return _wrap_new_LMWeight__SWIG_3(self, argc, argv);
37779   }
37780   if (argc == 2) {
37781     return _wrap_new_LMWeight__SWIG_2(self, argc, argv);
37782   }
37783   if (argc == 3) {
37784     return _wrap_new_LMWeight__SWIG_1(self, argc, argv);
37785   }
37786   if (argc == 4) {
37787     return _wrap_new_LMWeight__SWIG_0(self, argc, argv);
37788   }
37789 
37790 fail:
37791   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_LMWeight'.\n"
37792     "  Possible C/C++ prototypes are:\n"
37793     "    Xapian::LMWeight::LMWeight(double,Xapian::Weight::type_smoothing,double,double)\n"
37794     "    Xapian::LMWeight::LMWeight(double,Xapian::Weight::type_smoothing,double)\n"
37795     "    Xapian::LMWeight::LMWeight(double,Xapian::Weight::type_smoothing)\n"
37796     "    Xapian::LMWeight::LMWeight(double)\n"
37797     "    Xapian::LMWeight::LMWeight()\n");
37798   return 0;
37799 }
37800 
37801 
_wrap_delete_LMWeight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37802 SWIGINTERN PyObject *_wrap_delete_LMWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37803   PyObject *resultobj = 0;
37804   Xapian::LMWeight *arg1 = (Xapian::LMWeight *) 0 ;
37805   void *argp1 = 0 ;
37806   int res1 = 0 ;
37807   PyObject *swig_obj[1] ;
37808 
37809   if (!args) SWIG_fail;
37810   swig_obj[0] = args;
37811   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LMWeight, SWIG_POINTER_DISOWN |  0 );
37812   if (!SWIG_IsOK(res1)) {
37813     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LMWeight" "', argument " "1"" of type '" "Xapian::LMWeight *""'");
37814   }
37815   arg1 = reinterpret_cast< Xapian::LMWeight * >(argp1);
37816   {
37817     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37818     delete arg1;
37819     SWIG_PYTHON_THREAD_END_ALLOW;
37820   }
37821   resultobj = SWIG_Py_Void();
37822   return resultobj;
37823 fail:
37824   return NULL;
37825 }
37826 
37827 
LMWeight_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37828 SWIGINTERN PyObject *LMWeight_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37829   PyObject *obj;
37830   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
37831   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__LMWeight, SWIG_NewClientData(obj));
37832   return SWIG_Py_Void();
37833 }
37834 
LMWeight_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37835 SWIGINTERN PyObject *LMWeight_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37836   return SWIG_Python_InitShadowInstance(args);
37837 }
37838 
_wrap_CoordWeight_init(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37839 SWIGINTERN PyObject *_wrap_CoordWeight_init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37840   PyObject *resultobj = 0;
37841   Xapian::CoordWeight *arg1 = (Xapian::CoordWeight *) 0 ;
37842   double arg2 ;
37843   void *argp1 = 0 ;
37844   int res1 = 0 ;
37845   double val2 ;
37846   int ecode2 = 0 ;
37847   PyObject *swig_obj[2] ;
37848 
37849   if (!SWIG_Python_UnpackTuple(args,"CoordWeight_init",2,2,swig_obj)) SWIG_fail;
37850   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__CoordWeight, 0 |  0 );
37851   if (!SWIG_IsOK(res1)) {
37852     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordWeight_init" "', argument " "1"" of type '" "Xapian::CoordWeight *""'");
37853   }
37854   arg1 = reinterpret_cast< Xapian::CoordWeight * >(argp1);
37855   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
37856   if (!SWIG_IsOK(ecode2)) {
37857     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CoordWeight_init" "', argument " "2"" of type '" "double""'");
37858   }
37859   arg2 = static_cast< double >(val2);
37860   {
37861     try {
37862       {
37863         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37864         (arg1)->init(arg2);
37865         SWIG_PYTHON_THREAD_END_ALLOW;
37866       }
37867     } catch (...) {
37868       Xapian::SetPythonException();
37869       SWIG_fail;
37870     }
37871   }
37872   resultobj = SWIG_Py_Void();
37873   return resultobj;
37874 fail:
37875   return NULL;
37876 }
37877 
37878 
_wrap_new_CoordWeight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37879 SWIGINTERN PyObject *_wrap_new_CoordWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37880   PyObject *resultobj = 0;
37881   Xapian::CoordWeight *result = 0 ;
37882 
37883   if (!SWIG_Python_UnpackTuple(args,"new_CoordWeight",0,0,0)) SWIG_fail;
37884   {
37885     try {
37886       {
37887         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37888         result = (Xapian::CoordWeight *)new Xapian::CoordWeight();
37889         SWIG_PYTHON_THREAD_END_ALLOW;
37890       }
37891     } catch (...) {
37892       Xapian::SetPythonException();
37893       SWIG_fail;
37894     }
37895   }
37896   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__CoordWeight, SWIG_POINTER_NEW |  0 );
37897   return resultobj;
37898 fail:
37899   return NULL;
37900 }
37901 
37902 
_wrap_delete_CoordWeight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37903 SWIGINTERN PyObject *_wrap_delete_CoordWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37904   PyObject *resultobj = 0;
37905   Xapian::CoordWeight *arg1 = (Xapian::CoordWeight *) 0 ;
37906   void *argp1 = 0 ;
37907   int res1 = 0 ;
37908   PyObject *swig_obj[1] ;
37909 
37910   if (!args) SWIG_fail;
37911   swig_obj[0] = args;
37912   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__CoordWeight, SWIG_POINTER_DISOWN |  0 );
37913   if (!SWIG_IsOK(res1)) {
37914     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CoordWeight" "', argument " "1"" of type '" "Xapian::CoordWeight *""'");
37915   }
37916   arg1 = reinterpret_cast< Xapian::CoordWeight * >(argp1);
37917   {
37918     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37919     delete arg1;
37920     SWIG_PYTHON_THREAD_END_ALLOW;
37921   }
37922   resultobj = SWIG_Py_Void();
37923   return resultobj;
37924 fail:
37925   return NULL;
37926 }
37927 
37928 
CoordWeight_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37929 SWIGINTERN PyObject *CoordWeight_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37930   PyObject *obj;
37931   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
37932   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__CoordWeight, SWIG_NewClientData(obj));
37933   return SWIG_Py_Void();
37934 }
37935 
CoordWeight_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37936 SWIGINTERN PyObject *CoordWeight_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37937   return SWIG_Python_InitShadowInstance(args);
37938 }
37939 
_wrap_new_Compactor(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37940 SWIGINTERN PyObject *_wrap_new_Compactor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37941   PyObject *resultobj = 0;
37942   PyObject *arg1 = (PyObject *) 0 ;
37943   PyObject *swig_obj[1] ;
37944   Xapian::Compactor *result = 0 ;
37945 
37946   if (!args) SWIG_fail;
37947   swig_obj[0] = args;
37948   arg1 = swig_obj[0];
37949   {
37950     try {
37951       {
37952         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37953         if ( arg1 != Py_None ) {
37954           /* subclassed */
37955           result = (Xapian::Compactor *)new SwigDirector_Compactor(arg1);
37956         } else {
37957           result = (Xapian::Compactor *)new Xapian::Compactor();
37958         }
37959 
37960         SWIG_PYTHON_THREAD_END_ALLOW;
37961       }
37962     } catch (...) {
37963       Xapian::SetPythonException();
37964       SWIG_fail;
37965     }
37966   }
37967   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Compactor, SWIG_POINTER_NEW |  0 );
37968   return resultobj;
37969 fail:
37970   return NULL;
37971 }
37972 
37973 
_wrap_delete_Compactor(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37974 SWIGINTERN PyObject *_wrap_delete_Compactor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37975   PyObject *resultobj = 0;
37976   Xapian::Compactor *arg1 = (Xapian::Compactor *) 0 ;
37977   void *argp1 = 0 ;
37978   int res1 = 0 ;
37979   PyObject *swig_obj[1] ;
37980 
37981   if (!args) SWIG_fail;
37982   swig_obj[0] = args;
37983   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Compactor, SWIG_POINTER_DISOWN |  0 );
37984   if (!SWIG_IsOK(res1)) {
37985     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Compactor" "', argument " "1"" of type '" "Xapian::Compactor *""'");
37986   }
37987   arg1 = reinterpret_cast< Xapian::Compactor * >(argp1);
37988   {
37989     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37990     delete arg1;
37991     SWIG_PYTHON_THREAD_END_ALLOW;
37992   }
37993   resultobj = SWIG_Py_Void();
37994   return resultobj;
37995 fail:
37996   return NULL;
37997 }
37998 
37999 
_wrap_Compactor_set_block_size(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38000 SWIGINTERN PyObject *_wrap_Compactor_set_block_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38001   PyObject *resultobj = 0;
38002   Xapian::Compactor *arg1 = (Xapian::Compactor *) 0 ;
38003   size_t arg2 ;
38004   void *argp1 = 0 ;
38005   int res1 = 0 ;
38006   size_t val2 ;
38007   int ecode2 = 0 ;
38008   PyObject *swig_obj[2] ;
38009 
38010   if (!SWIG_Python_UnpackTuple(args,"Compactor_set_block_size",2,2,swig_obj)) SWIG_fail;
38011   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Compactor, 0 |  0 );
38012   if (!SWIG_IsOK(res1)) {
38013     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Compactor_set_block_size" "', argument " "1"" of type '" "Xapian::Compactor *""'");
38014   }
38015   arg1 = reinterpret_cast< Xapian::Compactor * >(argp1);
38016   ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
38017   if (!SWIG_IsOK(ecode2)) {
38018     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Compactor_set_block_size" "', argument " "2"" of type '" "size_t""'");
38019   }
38020   arg2 = static_cast< size_t >(val2);
38021   {
38022     try {
38023       {
38024         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
38025         (arg1)->set_block_size(arg2);
38026         SWIG_PYTHON_THREAD_END_ALLOW;
38027       }
38028     } catch (...) {
38029       Xapian::SetPythonException();
38030       SWIG_fail;
38031     }
38032   }
38033   resultobj = SWIG_Py_Void();
38034   return resultobj;
38035 fail:
38036   return NULL;
38037 }
38038 
38039 
_wrap_Compactor_set_renumber(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38040 SWIGINTERN PyObject *_wrap_Compactor_set_renumber(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38041   PyObject *resultobj = 0;
38042   Xapian::Compactor *arg1 = (Xapian::Compactor *) 0 ;
38043   bool arg2 ;
38044   void *argp1 = 0 ;
38045   int res1 = 0 ;
38046   bool val2 ;
38047   int ecode2 = 0 ;
38048   PyObject *swig_obj[2] ;
38049 
38050   if (!SWIG_Python_UnpackTuple(args,"Compactor_set_renumber",2,2,swig_obj)) SWIG_fail;
38051   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Compactor, 0 |  0 );
38052   if (!SWIG_IsOK(res1)) {
38053     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Compactor_set_renumber" "', argument " "1"" of type '" "Xapian::Compactor *""'");
38054   }
38055   arg1 = reinterpret_cast< Xapian::Compactor * >(argp1);
38056   ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
38057   if (!SWIG_IsOK(ecode2)) {
38058     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Compactor_set_renumber" "', argument " "2"" of type '" "bool""'");
38059   }
38060   arg2 = static_cast< bool >(val2);
38061   {
38062     try {
38063       {
38064         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
38065         (arg1)->set_renumber(arg2);
38066         SWIG_PYTHON_THREAD_END_ALLOW;
38067       }
38068     } catch (...) {
38069       Xapian::SetPythonException();
38070       SWIG_fail;
38071     }
38072   }
38073   resultobj = SWIG_Py_Void();
38074   return resultobj;
38075 fail:
38076   return NULL;
38077 }
38078 
38079 
_wrap_Compactor_set_multipass(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38080 SWIGINTERN PyObject *_wrap_Compactor_set_multipass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38081   PyObject *resultobj = 0;
38082   Xapian::Compactor *arg1 = (Xapian::Compactor *) 0 ;
38083   bool arg2 ;
38084   void *argp1 = 0 ;
38085   int res1 = 0 ;
38086   bool val2 ;
38087   int ecode2 = 0 ;
38088   PyObject *swig_obj[2] ;
38089 
38090   if (!SWIG_Python_UnpackTuple(args,"Compactor_set_multipass",2,2,swig_obj)) SWIG_fail;
38091   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Compactor, 0 |  0 );
38092   if (!SWIG_IsOK(res1)) {
38093     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Compactor_set_multipass" "', argument " "1"" of type '" "Xapian::Compactor *""'");
38094   }
38095   arg1 = reinterpret_cast< Xapian::Compactor * >(argp1);
38096   ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
38097   if (!SWIG_IsOK(ecode2)) {
38098     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Compactor_set_multipass" "', argument " "2"" of type '" "bool""'");
38099   }
38100   arg2 = static_cast< bool >(val2);
38101   {
38102     try {
38103       {
38104         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
38105         (arg1)->set_multipass(arg2);
38106         SWIG_PYTHON_THREAD_END_ALLOW;
38107       }
38108     } catch (...) {
38109       Xapian::SetPythonException();
38110       SWIG_fail;
38111     }
38112   }
38113   resultobj = SWIG_Py_Void();
38114   return resultobj;
38115 fail:
38116   return NULL;
38117 }
38118 
38119 
_wrap_Compactor_set_compaction_level(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38120 SWIGINTERN PyObject *_wrap_Compactor_set_compaction_level(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38121   PyObject *resultobj = 0;
38122   Xapian::Compactor *arg1 = (Xapian::Compactor *) 0 ;
38123   Xapian::Compactor::compaction_level arg2 ;
38124   void *argp1 = 0 ;
38125   int res1 = 0 ;
38126   int val2 ;
38127   int ecode2 = 0 ;
38128   PyObject *swig_obj[2] ;
38129 
38130   if (!SWIG_Python_UnpackTuple(args,"Compactor_set_compaction_level",2,2,swig_obj)) SWIG_fail;
38131   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Compactor, 0 |  0 );
38132   if (!SWIG_IsOK(res1)) {
38133     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Compactor_set_compaction_level" "', argument " "1"" of type '" "Xapian::Compactor *""'");
38134   }
38135   arg1 = reinterpret_cast< Xapian::Compactor * >(argp1);
38136   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
38137   if (!SWIG_IsOK(ecode2)) {
38138     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Compactor_set_compaction_level" "', argument " "2"" of type '" "Xapian::Compactor::compaction_level""'");
38139   }
38140   arg2 = static_cast< Xapian::Compactor::compaction_level >(val2);
38141   {
38142     try {
38143       {
38144         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
38145         (arg1)->set_compaction_level(arg2);
38146         SWIG_PYTHON_THREAD_END_ALLOW;
38147       }
38148     } catch (...) {
38149       Xapian::SetPythonException();
38150       SWIG_fail;
38151     }
38152   }
38153   resultobj = SWIG_Py_Void();
38154   return resultobj;
38155 fail:
38156   return NULL;
38157 }
38158 
38159 
_wrap_Compactor_set_destdir(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38160 SWIGINTERN PyObject *_wrap_Compactor_set_destdir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38161   PyObject *resultobj = 0;
38162   Xapian::Compactor *arg1 = (Xapian::Compactor *) 0 ;
38163   std::string *arg2 = 0 ;
38164   void *argp1 = 0 ;
38165   int res1 = 0 ;
38166   int res2 = SWIG_OLDOBJ ;
38167   PyObject *swig_obj[2] ;
38168 
38169   if (!SWIG_Python_UnpackTuple(args,"Compactor_set_destdir",2,2,swig_obj)) SWIG_fail;
38170   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Compactor, 0 |  0 );
38171   if (!SWIG_IsOK(res1)) {
38172     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Compactor_set_destdir" "', argument " "1"" of type '" "Xapian::Compactor *""'");
38173   }
38174   arg1 = reinterpret_cast< Xapian::Compactor * >(argp1);
38175   {
38176     std::string *ptr = (std::string *)0;
38177     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
38178     if (!SWIG_IsOK(res2)) {
38179       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Compactor_set_destdir" "', argument " "2"" of type '" "std::string const &""'");
38180     }
38181     if (!ptr) {
38182       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Compactor_set_destdir" "', argument " "2"" of type '" "std::string const &""'");
38183     }
38184     arg2 = ptr;
38185   }
38186   {
38187     try {
38188       {
38189         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
38190         (arg1)->set_destdir((std::string const &)*arg2);
38191         SWIG_PYTHON_THREAD_END_ALLOW;
38192       }
38193     } catch (...) {
38194       Xapian::SetPythonException();
38195       SWIG_fail;
38196     }
38197   }
38198   resultobj = SWIG_Py_Void();
38199   if (SWIG_IsNewObj(res2)) delete arg2;
38200   return resultobj;
38201 fail:
38202   if (SWIG_IsNewObj(res2)) delete arg2;
38203   return NULL;
38204 }
38205 
38206 
_wrap_Compactor_add_source(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38207 SWIGINTERN PyObject *_wrap_Compactor_add_source(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38208   PyObject *resultobj = 0;
38209   Xapian::Compactor *arg1 = (Xapian::Compactor *) 0 ;
38210   std::string *arg2 = 0 ;
38211   void *argp1 = 0 ;
38212   int res1 = 0 ;
38213   int res2 = SWIG_OLDOBJ ;
38214   PyObject *swig_obj[2] ;
38215 
38216   if (!SWIG_Python_UnpackTuple(args,"Compactor_add_source",2,2,swig_obj)) SWIG_fail;
38217   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Compactor, 0 |  0 );
38218   if (!SWIG_IsOK(res1)) {
38219     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Compactor_add_source" "', argument " "1"" of type '" "Xapian::Compactor *""'");
38220   }
38221   arg1 = reinterpret_cast< Xapian::Compactor * >(argp1);
38222   {
38223     std::string *ptr = (std::string *)0;
38224     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
38225     if (!SWIG_IsOK(res2)) {
38226       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Compactor_add_source" "', argument " "2"" of type '" "std::string const &""'");
38227     }
38228     if (!ptr) {
38229       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Compactor_add_source" "', argument " "2"" of type '" "std::string const &""'");
38230     }
38231     arg2 = ptr;
38232   }
38233   {
38234     try {
38235       {
38236         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
38237         (arg1)->add_source((std::string const &)*arg2);
38238         SWIG_PYTHON_THREAD_END_ALLOW;
38239       }
38240     } catch (...) {
38241       Xapian::SetPythonException();
38242       SWIG_fail;
38243     }
38244   }
38245   resultobj = SWIG_Py_Void();
38246   if (SWIG_IsNewObj(res2)) delete arg2;
38247   return resultobj;
38248 fail:
38249   if (SWIG_IsNewObj(res2)) delete arg2;
38250   return NULL;
38251 }
38252 
38253 
_wrap_Compactor_compact(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38254 SWIGINTERN PyObject *_wrap_Compactor_compact(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38255   PyObject *resultobj = 0;
38256   Xapian::Compactor *arg1 = (Xapian::Compactor *) 0 ;
38257   void *argp1 = 0 ;
38258   int res1 = 0 ;
38259   PyObject *swig_obj[1] ;
38260 
38261   if (!args) SWIG_fail;
38262   swig_obj[0] = args;
38263   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Compactor, 0 |  0 );
38264   if (!SWIG_IsOK(res1)) {
38265     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Compactor_compact" "', argument " "1"" of type '" "Xapian::Compactor *""'");
38266   }
38267   arg1 = reinterpret_cast< Xapian::Compactor * >(argp1);
38268   {
38269     try {
38270       {
38271         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
38272         (arg1)->compact();
38273         SWIG_PYTHON_THREAD_END_ALLOW;
38274       }
38275     } catch (...) {
38276       Xapian::SetPythonException();
38277       SWIG_fail;
38278     }
38279   }
38280   resultobj = SWIG_Py_Void();
38281   return resultobj;
38282 fail:
38283   return NULL;
38284 }
38285 
38286 
_wrap_Compactor_set_status(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38287 SWIGINTERN PyObject *_wrap_Compactor_set_status(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38288   PyObject *resultobj = 0;
38289   Xapian::Compactor *arg1 = (Xapian::Compactor *) 0 ;
38290   std::string *arg2 = 0 ;
38291   std::string *arg3 = 0 ;
38292   void *argp1 = 0 ;
38293   int res1 = 0 ;
38294   int res2 = SWIG_OLDOBJ ;
38295   int res3 = SWIG_OLDOBJ ;
38296   PyObject *swig_obj[3] ;
38297   Swig::Director *director = 0;
38298   bool upcall = false;
38299 
38300   if (!SWIG_Python_UnpackTuple(args,"Compactor_set_status",3,3,swig_obj)) SWIG_fail;
38301   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Compactor, 0 |  0 );
38302   if (!SWIG_IsOK(res1)) {
38303     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Compactor_set_status" "', argument " "1"" of type '" "Xapian::Compactor *""'");
38304   }
38305   arg1 = reinterpret_cast< Xapian::Compactor * >(argp1);
38306   {
38307     std::string *ptr = (std::string *)0;
38308     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
38309     if (!SWIG_IsOK(res2)) {
38310       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Compactor_set_status" "', argument " "2"" of type '" "std::string const &""'");
38311     }
38312     if (!ptr) {
38313       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Compactor_set_status" "', argument " "2"" of type '" "std::string const &""'");
38314     }
38315     arg2 = ptr;
38316   }
38317   {
38318     std::string *ptr = (std::string *)0;
38319     res3 = XapianSWIG_anystring_as_ptr(swig_obj[2], &ptr);
38320     if (!SWIG_IsOK(res3)) {
38321       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Compactor_set_status" "', argument " "3"" of type '" "std::string const &""'");
38322     }
38323     if (!ptr) {
38324       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Compactor_set_status" "', argument " "3"" of type '" "std::string const &""'");
38325     }
38326     arg3 = ptr;
38327   }
38328   director = SWIG_DIRECTOR_CAST(arg1);
38329   upcall = (director && (director->swig_get_self()==swig_obj[0]));
38330   try {
38331     {
38332       try {
38333         if (upcall) {
38334           (arg1)->Xapian::Compactor::set_status((std::string const &)*arg2,(std::string const &)*arg3);
38335         } else {
38336           (arg1)->set_status((std::string const &)*arg2,(std::string const &)*arg3);
38337         }
38338       } catch (...) {
38339         Xapian::SetPythonException();
38340         SWIG_fail;
38341       }
38342     }
38343   } catch (Swig::DirectorException&) {
38344     SWIG_fail;
38345   }
38346   resultobj = SWIG_Py_Void();
38347   if (SWIG_IsNewObj(res2)) delete arg2;
38348   if (SWIG_IsNewObj(res3)) delete arg3;
38349   return resultobj;
38350 fail:
38351   if (SWIG_IsNewObj(res2)) delete arg2;
38352   if (SWIG_IsNewObj(res3)) delete arg3;
38353   return NULL;
38354 }
38355 
38356 
_wrap_Compactor_resolve_duplicate_metadata(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38357 SWIGINTERN PyObject *_wrap_Compactor_resolve_duplicate_metadata(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38358   PyObject *resultobj = 0;
38359   Xapian::Compactor *arg1 = (Xapian::Compactor *) 0 ;
38360   std::string *arg2 = 0 ;
38361   size_t arg3 ;
38362   std::string *arg4 ;
38363   void *argp1 = 0 ;
38364   int res1 = 0 ;
38365   int res2 = SWIG_OLDOBJ ;
38366   size_t val3 ;
38367   int ecode3 = 0 ;
38368   void *argp4 = 0 ;
38369   int res4 = 0 ;
38370   PyObject *swig_obj[4] ;
38371   Swig::Director *director = 0;
38372   bool upcall = false;
38373   std::string result;
38374 
38375   if (!SWIG_Python_UnpackTuple(args,"Compactor_resolve_duplicate_metadata",4,4,swig_obj)) SWIG_fail;
38376   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Compactor, 0 |  0 );
38377   if (!SWIG_IsOK(res1)) {
38378     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Compactor_resolve_duplicate_metadata" "', argument " "1"" of type '" "Xapian::Compactor *""'");
38379   }
38380   arg1 = reinterpret_cast< Xapian::Compactor * >(argp1);
38381   {
38382     std::string *ptr = (std::string *)0;
38383     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
38384     if (!SWIG_IsOK(res2)) {
38385       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Compactor_resolve_duplicate_metadata" "', argument " "2"" of type '" "std::string const &""'");
38386     }
38387     if (!ptr) {
38388       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Compactor_resolve_duplicate_metadata" "', argument " "2"" of type '" "std::string const &""'");
38389     }
38390     arg2 = ptr;
38391   }
38392   ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
38393   if (!SWIG_IsOK(ecode3)) {
38394     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Compactor_resolve_duplicate_metadata" "', argument " "3"" of type '" "size_t""'");
38395   }
38396   arg3 = static_cast< size_t >(val3);
38397   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_std__string, 0 |  0 );
38398   if (!SWIG_IsOK(res4)) {
38399     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Compactor_resolve_duplicate_metadata" "', argument " "4"" of type '" "std::string const []""'");
38400   }
38401   arg4 = reinterpret_cast< std::string * >(argp4);
38402   director = SWIG_DIRECTOR_CAST(arg1);
38403   upcall = (director && (director->swig_get_self()==swig_obj[0]));
38404   try {
38405     {
38406       try {
38407         if (upcall) {
38408           result = (arg1)->Xapian::Compactor::resolve_duplicate_metadata((std::string const &)*arg2,arg3,(std::string const (*))arg4);
38409         } else {
38410           result = (arg1)->resolve_duplicate_metadata((std::string const &)*arg2,arg3,(std::string const (*))arg4);
38411         }
38412       } catch (...) {
38413         Xapian::SetPythonException();
38414         SWIG_fail;
38415       }
38416     }
38417   } catch (Swig::DirectorException&) {
38418     SWIG_fail;
38419   }
38420   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
38421   if (SWIG_IsNewObj(res2)) delete arg2;
38422   return resultobj;
38423 fail:
38424   if (SWIG_IsNewObj(res2)) delete arg2;
38425   return NULL;
38426 }
38427 
38428 
_wrap_disown_Compactor(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38429 SWIGINTERN PyObject *_wrap_disown_Compactor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38430   PyObject *resultobj = 0;
38431   Xapian::Compactor *arg1 = (Xapian::Compactor *) 0 ;
38432   void *argp1 = 0 ;
38433   int res1 = 0 ;
38434   PyObject *swig_obj[1] ;
38435 
38436   if (!args) SWIG_fail;
38437   swig_obj[0] = args;
38438   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Compactor, 0 |  0 );
38439   if (!SWIG_IsOK(res1)) {
38440     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_Compactor" "', argument " "1"" of type '" "Xapian::Compactor *""'");
38441   }
38442   arg1 = reinterpret_cast< Xapian::Compactor * >(argp1);
38443   {
38444     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
38445     {
38446       Swig::Director *director = SWIG_DIRECTOR_CAST(arg1);
38447       if (director) director->swig_disown();
38448     }
38449 
38450     SWIG_PYTHON_THREAD_END_ALLOW;
38451   }
38452   resultobj = SWIG_Py_Void();
38453   return resultobj;
38454 fail:
38455   return NULL;
38456 }
38457 
38458 
Compactor_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38459 SWIGINTERN PyObject *Compactor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38460   PyObject *obj;
38461   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
38462   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__Compactor, SWIG_NewClientData(obj));
38463   return SWIG_Py_Void();
38464 }
38465 
Compactor_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38466 SWIGINTERN PyObject *Compactor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38467   return SWIG_Python_InitShadowInstance(args);
38468 }
38469 
_wrap_new_PostingSource(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38470 SWIGINTERN PyObject *_wrap_new_PostingSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38471   PyObject *resultobj = 0;
38472   PyObject *arg1 = (PyObject *) 0 ;
38473   PyObject *swig_obj[1] ;
38474   Xapian::PostingSource *result = 0 ;
38475 
38476   if (!args) SWIG_fail;
38477   swig_obj[0] = args;
38478   arg1 = swig_obj[0];
38479   {
38480     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
38481     if ( arg1 != Py_None ) {
38482       /* subclassed */
38483       result = (Xapian::PostingSource *)new SwigDirector_PostingSource(arg1);
38484     } else {
38485       SWIG_SetErrorMsg(PyExc_RuntimeError,"accessing abstract class or protected constructor");
38486       SWIG_fail;
38487     }
38488 
38489     SWIG_PYTHON_THREAD_END_ALLOW;
38490   }
38491   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__PostingSource, SWIG_POINTER_NEW |  0 );
38492   return resultobj;
38493 fail:
38494   return NULL;
38495 }
38496 
38497 
_wrap_delete_PostingSource(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38498 SWIGINTERN PyObject *_wrap_delete_PostingSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38499   PyObject *resultobj = 0;
38500   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
38501   void *argp1 = 0 ;
38502   int res1 = 0 ;
38503   PyObject *swig_obj[1] ;
38504 
38505   if (!args) SWIG_fail;
38506   swig_obj[0] = args;
38507   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingSource, SWIG_POINTER_DISOWN |  0 );
38508   if (!SWIG_IsOK(res1)) {
38509     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PostingSource" "', argument " "1"" of type '" "Xapian::PostingSource *""'");
38510   }
38511   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
38512   {
38513     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
38514     delete arg1;
38515     SWIG_PYTHON_THREAD_END_ALLOW;
38516   }
38517   resultobj = SWIG_Py_Void();
38518   return resultobj;
38519 fail:
38520   return NULL;
38521 }
38522 
38523 
_wrap_PostingSource_get_termfreq_min(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38524 SWIGINTERN PyObject *_wrap_PostingSource_get_termfreq_min(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38525   PyObject *resultobj = 0;
38526   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
38527   void *argp1 = 0 ;
38528   int res1 = 0 ;
38529   PyObject *swig_obj[1] ;
38530   Swig::Director *director = 0;
38531   bool upcall = false;
38532   Xapian::doccount result;
38533 
38534   if (!args) SWIG_fail;
38535   swig_obj[0] = args;
38536   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
38537   if (!SWIG_IsOK(res1)) {
38538     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource_get_termfreq_min" "', argument " "1"" of type '" "Xapian::PostingSource const *""'");
38539   }
38540   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
38541   director = SWIG_DIRECTOR_CAST(arg1);
38542   upcall = (director && (director->swig_get_self()==swig_obj[0]));
38543   try {
38544     {
38545       try {
38546         if (upcall) {
38547           Swig::DirectorPureVirtualException::raise("Xapian::PostingSource::get_termfreq_min");
38548         } else {
38549           result = (Xapian::doccount)((Xapian::PostingSource const *)arg1)->get_termfreq_min();
38550         }
38551       } catch (...) {
38552         Xapian::SetPythonException();
38553         SWIG_fail;
38554       }
38555     }
38556   } catch (Swig::DirectorException&) {
38557     SWIG_fail;
38558   }
38559   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
38560   return resultobj;
38561 fail:
38562   return NULL;
38563 }
38564 
38565 
_wrap_PostingSource_get_termfreq_est(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38566 SWIGINTERN PyObject *_wrap_PostingSource_get_termfreq_est(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38567   PyObject *resultobj = 0;
38568   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
38569   void *argp1 = 0 ;
38570   int res1 = 0 ;
38571   PyObject *swig_obj[1] ;
38572   Swig::Director *director = 0;
38573   bool upcall = false;
38574   Xapian::doccount result;
38575 
38576   if (!args) SWIG_fail;
38577   swig_obj[0] = args;
38578   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
38579   if (!SWIG_IsOK(res1)) {
38580     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource_get_termfreq_est" "', argument " "1"" of type '" "Xapian::PostingSource const *""'");
38581   }
38582   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
38583   director = SWIG_DIRECTOR_CAST(arg1);
38584   upcall = (director && (director->swig_get_self()==swig_obj[0]));
38585   try {
38586     {
38587       try {
38588         if (upcall) {
38589           Swig::DirectorPureVirtualException::raise("Xapian::PostingSource::get_termfreq_est");
38590         } else {
38591           result = (Xapian::doccount)((Xapian::PostingSource const *)arg1)->get_termfreq_est();
38592         }
38593       } catch (...) {
38594         Xapian::SetPythonException();
38595         SWIG_fail;
38596       }
38597     }
38598   } catch (Swig::DirectorException&) {
38599     SWIG_fail;
38600   }
38601   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
38602   return resultobj;
38603 fail:
38604   return NULL;
38605 }
38606 
38607 
_wrap_PostingSource_get_termfreq_max(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38608 SWIGINTERN PyObject *_wrap_PostingSource_get_termfreq_max(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38609   PyObject *resultobj = 0;
38610   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
38611   void *argp1 = 0 ;
38612   int res1 = 0 ;
38613   PyObject *swig_obj[1] ;
38614   Swig::Director *director = 0;
38615   bool upcall = false;
38616   Xapian::doccount result;
38617 
38618   if (!args) SWIG_fail;
38619   swig_obj[0] = args;
38620   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
38621   if (!SWIG_IsOK(res1)) {
38622     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource_get_termfreq_max" "', argument " "1"" of type '" "Xapian::PostingSource const *""'");
38623   }
38624   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
38625   director = SWIG_DIRECTOR_CAST(arg1);
38626   upcall = (director && (director->swig_get_self()==swig_obj[0]));
38627   try {
38628     {
38629       try {
38630         if (upcall) {
38631           Swig::DirectorPureVirtualException::raise("Xapian::PostingSource::get_termfreq_max");
38632         } else {
38633           result = (Xapian::doccount)((Xapian::PostingSource const *)arg1)->get_termfreq_max();
38634         }
38635       } catch (...) {
38636         Xapian::SetPythonException();
38637         SWIG_fail;
38638       }
38639     }
38640   } catch (Swig::DirectorException&) {
38641     SWIG_fail;
38642   }
38643   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
38644   return resultobj;
38645 fail:
38646   return NULL;
38647 }
38648 
38649 
_wrap_PostingSource_set_maxweight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38650 SWIGINTERN PyObject *_wrap_PostingSource_set_maxweight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38651   PyObject *resultobj = 0;
38652   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
38653   double arg2 ;
38654   void *argp1 = 0 ;
38655   int res1 = 0 ;
38656   double val2 ;
38657   int ecode2 = 0 ;
38658   PyObject *swig_obj[2] ;
38659 
38660   if (!SWIG_Python_UnpackTuple(args,"PostingSource_set_maxweight",2,2,swig_obj)) SWIG_fail;
38661   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
38662   if (!SWIG_IsOK(res1)) {
38663     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource_set_maxweight" "', argument " "1"" of type '" "Xapian::PostingSource *""'");
38664   }
38665   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
38666   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
38667   if (!SWIG_IsOK(ecode2)) {
38668     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PostingSource_set_maxweight" "', argument " "2"" of type '" "double""'");
38669   }
38670   arg2 = static_cast< double >(val2);
38671   {
38672     try {
38673       {
38674         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
38675         (arg1)->set_maxweight(arg2);
38676         SWIG_PYTHON_THREAD_END_ALLOW;
38677       }
38678     } catch (...) {
38679       Xapian::SetPythonException();
38680       SWIG_fail;
38681     }
38682   }
38683   resultobj = SWIG_Py_Void();
38684   return resultobj;
38685 fail:
38686   return NULL;
38687 }
38688 
38689 
_wrap_PostingSource_get_maxweight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38690 SWIGINTERN PyObject *_wrap_PostingSource_get_maxweight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38691   PyObject *resultobj = 0;
38692   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
38693   void *argp1 = 0 ;
38694   int res1 = 0 ;
38695   PyObject *swig_obj[1] ;
38696   double result;
38697 
38698   if (!args) SWIG_fail;
38699   swig_obj[0] = args;
38700   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
38701   if (!SWIG_IsOK(res1)) {
38702     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource_get_maxweight" "', argument " "1"" of type '" "Xapian::PostingSource const *""'");
38703   }
38704   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
38705   {
38706     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
38707     result = (double)((Xapian::PostingSource const *)arg1)->get_maxweight();
38708     SWIG_PYTHON_THREAD_END_ALLOW;
38709   }
38710   resultobj = SWIG_From_double(static_cast< double >(result));
38711   return resultobj;
38712 fail:
38713   return NULL;
38714 }
38715 
38716 
_wrap_PostingSource_get_weight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38717 SWIGINTERN PyObject *_wrap_PostingSource_get_weight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38718   PyObject *resultobj = 0;
38719   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
38720   void *argp1 = 0 ;
38721   int res1 = 0 ;
38722   PyObject *swig_obj[1] ;
38723   Swig::Director *director = 0;
38724   bool upcall = false;
38725   double result;
38726 
38727   if (!args) SWIG_fail;
38728   swig_obj[0] = args;
38729   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
38730   if (!SWIG_IsOK(res1)) {
38731     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource_get_weight" "', argument " "1"" of type '" "Xapian::PostingSource const *""'");
38732   }
38733   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
38734   director = SWIG_DIRECTOR_CAST(arg1);
38735   upcall = (director && (director->swig_get_self()==swig_obj[0]));
38736   try {
38737     {
38738       try {
38739         if (upcall) {
38740           result = (double)((Xapian::PostingSource const *)arg1)->Xapian::PostingSource::get_weight();
38741         } else {
38742           result = (double)((Xapian::PostingSource const *)arg1)->get_weight();
38743         }
38744       } catch (...) {
38745         Xapian::SetPythonException();
38746         SWIG_fail;
38747       }
38748     }
38749   } catch (Swig::DirectorException&) {
38750     SWIG_fail;
38751   }
38752   resultobj = SWIG_From_double(static_cast< double >(result));
38753   return resultobj;
38754 fail:
38755   return NULL;
38756 }
38757 
38758 
_wrap_PostingSource_get_docid(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38759 SWIGINTERN PyObject *_wrap_PostingSource_get_docid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38760   PyObject *resultobj = 0;
38761   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
38762   void *argp1 = 0 ;
38763   int res1 = 0 ;
38764   PyObject *swig_obj[1] ;
38765   Swig::Director *director = 0;
38766   bool upcall = false;
38767   Xapian::docid result;
38768 
38769   if (!args) SWIG_fail;
38770   swig_obj[0] = args;
38771   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
38772   if (!SWIG_IsOK(res1)) {
38773     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource_get_docid" "', argument " "1"" of type '" "Xapian::PostingSource const *""'");
38774   }
38775   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
38776   director = SWIG_DIRECTOR_CAST(arg1);
38777   upcall = (director && (director->swig_get_self()==swig_obj[0]));
38778   try {
38779     {
38780       try {
38781         if (upcall) {
38782           Swig::DirectorPureVirtualException::raise("Xapian::PostingSource::get_docid");
38783         } else {
38784           result = (Xapian::docid)((Xapian::PostingSource const *)arg1)->get_docid();
38785         }
38786       } catch (...) {
38787         Xapian::SetPythonException();
38788         SWIG_fail;
38789       }
38790     }
38791   } catch (Swig::DirectorException&) {
38792     SWIG_fail;
38793   }
38794   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
38795   return resultobj;
38796 fail:
38797   return NULL;
38798 }
38799 
38800 
_wrap_PostingSource_next(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38801 SWIGINTERN PyObject *_wrap_PostingSource_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38802   PyObject *resultobj = 0;
38803   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
38804   double arg2 ;
38805   void *argp1 = 0 ;
38806   int res1 = 0 ;
38807   double val2 ;
38808   int ecode2 = 0 ;
38809   PyObject *swig_obj[2] ;
38810   Swig::Director *director = 0;
38811   bool upcall = false;
38812 
38813   if (!SWIG_Python_UnpackTuple(args,"PostingSource_next",2,2,swig_obj)) SWIG_fail;
38814   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
38815   if (!SWIG_IsOK(res1)) {
38816     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource_next" "', argument " "1"" of type '" "Xapian::PostingSource *""'");
38817   }
38818   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
38819   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
38820   if (!SWIG_IsOK(ecode2)) {
38821     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PostingSource_next" "', argument " "2"" of type '" "double""'");
38822   }
38823   arg2 = static_cast< double >(val2);
38824   director = SWIG_DIRECTOR_CAST(arg1);
38825   upcall = (director && (director->swig_get_self()==swig_obj[0]));
38826   try {
38827     {
38828       try {
38829         if (upcall) {
38830           Swig::DirectorPureVirtualException::raise("Xapian::PostingSource::next");
38831         } else {
38832           (arg1)->next(arg2);
38833         }
38834       } catch (...) {
38835         Xapian::SetPythonException();
38836         SWIG_fail;
38837       }
38838     }
38839   } catch (Swig::DirectorException&) {
38840     SWIG_fail;
38841   }
38842   resultobj = SWIG_Py_Void();
38843   return resultobj;
38844 fail:
38845   return NULL;
38846 }
38847 
38848 
_wrap_PostingSource_skip_to(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38849 SWIGINTERN PyObject *_wrap_PostingSource_skip_to(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38850   PyObject *resultobj = 0;
38851   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
38852   Xapian::docid arg2 ;
38853   double arg3 ;
38854   void *argp1 = 0 ;
38855   int res1 = 0 ;
38856   unsigned int val2 ;
38857   int ecode2 = 0 ;
38858   double val3 ;
38859   int ecode3 = 0 ;
38860   PyObject *swig_obj[3] ;
38861   Swig::Director *director = 0;
38862   bool upcall = false;
38863 
38864   if (!SWIG_Python_UnpackTuple(args,"PostingSource_skip_to",3,3,swig_obj)) SWIG_fail;
38865   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
38866   if (!SWIG_IsOK(res1)) {
38867     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource_skip_to" "', argument " "1"" of type '" "Xapian::PostingSource *""'");
38868   }
38869   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
38870   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
38871   if (!SWIG_IsOK(ecode2)) {
38872     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PostingSource_skip_to" "', argument " "2"" of type '" "Xapian::docid""'");
38873   }
38874   arg2 = static_cast< Xapian::docid >(val2);
38875   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
38876   if (!SWIG_IsOK(ecode3)) {
38877     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PostingSource_skip_to" "', argument " "3"" of type '" "double""'");
38878   }
38879   arg3 = static_cast< double >(val3);
38880   director = SWIG_DIRECTOR_CAST(arg1);
38881   upcall = (director && (director->swig_get_self()==swig_obj[0]));
38882   try {
38883     {
38884       try {
38885         if (upcall) {
38886           (arg1)->Xapian::PostingSource::skip_to(arg2,arg3);
38887         } else {
38888           (arg1)->skip_to(arg2,arg3);
38889         }
38890       } catch (...) {
38891         Xapian::SetPythonException();
38892         SWIG_fail;
38893       }
38894     }
38895   } catch (Swig::DirectorException&) {
38896     SWIG_fail;
38897   }
38898   resultobj = SWIG_Py_Void();
38899   return resultobj;
38900 fail:
38901   return NULL;
38902 }
38903 
38904 
_wrap_PostingSource_check(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38905 SWIGINTERN PyObject *_wrap_PostingSource_check(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38906   PyObject *resultobj = 0;
38907   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
38908   Xapian::docid arg2 ;
38909   double arg3 ;
38910   void *argp1 = 0 ;
38911   int res1 = 0 ;
38912   unsigned int val2 ;
38913   int ecode2 = 0 ;
38914   double val3 ;
38915   int ecode3 = 0 ;
38916   PyObject *swig_obj[3] ;
38917   Swig::Director *director = 0;
38918   bool upcall = false;
38919   bool result;
38920 
38921   if (!SWIG_Python_UnpackTuple(args,"PostingSource_check",3,3,swig_obj)) SWIG_fail;
38922   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
38923   if (!SWIG_IsOK(res1)) {
38924     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource_check" "', argument " "1"" of type '" "Xapian::PostingSource *""'");
38925   }
38926   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
38927   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
38928   if (!SWIG_IsOK(ecode2)) {
38929     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PostingSource_check" "', argument " "2"" of type '" "Xapian::docid""'");
38930   }
38931   arg2 = static_cast< Xapian::docid >(val2);
38932   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
38933   if (!SWIG_IsOK(ecode3)) {
38934     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PostingSource_check" "', argument " "3"" of type '" "double""'");
38935   }
38936   arg3 = static_cast< double >(val3);
38937   director = SWIG_DIRECTOR_CAST(arg1);
38938   upcall = (director && (director->swig_get_self()==swig_obj[0]));
38939   try {
38940     {
38941       try {
38942         if (upcall) {
38943           result = (bool)(arg1)->Xapian::PostingSource::check(arg2,arg3);
38944         } else {
38945           result = (bool)(arg1)->check(arg2,arg3);
38946         }
38947       } catch (...) {
38948         Xapian::SetPythonException();
38949         SWIG_fail;
38950       }
38951     }
38952   } catch (Swig::DirectorException&) {
38953     SWIG_fail;
38954   }
38955   resultobj = SWIG_From_bool(static_cast< bool >(result));
38956   return resultobj;
38957 fail:
38958   return NULL;
38959 }
38960 
38961 
_wrap_PostingSource_at_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38962 SWIGINTERN PyObject *_wrap_PostingSource_at_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38963   PyObject *resultobj = 0;
38964   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
38965   void *argp1 = 0 ;
38966   int res1 = 0 ;
38967   PyObject *swig_obj[1] ;
38968   Swig::Director *director = 0;
38969   bool upcall = false;
38970   bool result;
38971 
38972   if (!args) SWIG_fail;
38973   swig_obj[0] = args;
38974   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
38975   if (!SWIG_IsOK(res1)) {
38976     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource_at_end" "', argument " "1"" of type '" "Xapian::PostingSource const *""'");
38977   }
38978   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
38979   director = SWIG_DIRECTOR_CAST(arg1);
38980   upcall = (director && (director->swig_get_self()==swig_obj[0]));
38981   try {
38982     {
38983       try {
38984         if (upcall) {
38985           Swig::DirectorPureVirtualException::raise("Xapian::PostingSource::at_end");
38986         } else {
38987           result = (bool)((Xapian::PostingSource const *)arg1)->at_end();
38988         }
38989       } catch (...) {
38990         Xapian::SetPythonException();
38991         SWIG_fail;
38992       }
38993     }
38994   } catch (Swig::DirectorException&) {
38995     SWIG_fail;
38996   }
38997   resultobj = SWIG_From_bool(static_cast< bool >(result));
38998   return resultobj;
38999 fail:
39000   return NULL;
39001 }
39002 
39003 
_wrap_PostingSource_name(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39004 SWIGINTERN PyObject *_wrap_PostingSource_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39005   PyObject *resultobj = 0;
39006   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
39007   void *argp1 = 0 ;
39008   int res1 = 0 ;
39009   PyObject *swig_obj[1] ;
39010   Swig::Director *director = 0;
39011   bool upcall = false;
39012   std::string result;
39013 
39014   if (!args) SWIG_fail;
39015   swig_obj[0] = args;
39016   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
39017   if (!SWIG_IsOK(res1)) {
39018     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource_name" "', argument " "1"" of type '" "Xapian::PostingSource const *""'");
39019   }
39020   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
39021   director = SWIG_DIRECTOR_CAST(arg1);
39022   upcall = (director && (director->swig_get_self()==swig_obj[0]));
39023   try {
39024     {
39025       try {
39026         if (upcall) {
39027           result = ((Xapian::PostingSource const *)arg1)->Xapian::PostingSource::name();
39028         } else {
39029           result = ((Xapian::PostingSource const *)arg1)->name();
39030         }
39031       } catch (...) {
39032         Xapian::SetPythonException();
39033         SWIG_fail;
39034       }
39035     }
39036   } catch (Swig::DirectorException&) {
39037     SWIG_fail;
39038   }
39039   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
39040   return resultobj;
39041 fail:
39042   return NULL;
39043 }
39044 
39045 
_wrap_PostingSource_init(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39046 SWIGINTERN PyObject *_wrap_PostingSource_init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39047   PyObject *resultobj = 0;
39048   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
39049   Xapian::Database *arg2 = 0 ;
39050   void *argp1 = 0 ;
39051   int res1 = 0 ;
39052   void *argp2 = 0 ;
39053   int res2 = 0 ;
39054   PyObject *swig_obj[2] ;
39055   Swig::Director *director = 0;
39056   bool upcall = false;
39057 
39058   if (!SWIG_Python_UnpackTuple(args,"PostingSource_init",2,2,swig_obj)) SWIG_fail;
39059   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
39060   if (!SWIG_IsOK(res1)) {
39061     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource_init" "', argument " "1"" of type '" "Xapian::PostingSource *""'");
39062   }
39063   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
39064   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__Database,  0  | 0);
39065   if (!SWIG_IsOK(res2)) {
39066     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostingSource_init" "', argument " "2"" of type '" "Xapian::Database const &""'");
39067   }
39068   if (!argp2) {
39069     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostingSource_init" "', argument " "2"" of type '" "Xapian::Database const &""'");
39070   }
39071   arg2 = reinterpret_cast< Xapian::Database * >(argp2);
39072   director = SWIG_DIRECTOR_CAST(arg1);
39073   upcall = (director && (director->swig_get_self()==swig_obj[0]));
39074   try {
39075     {
39076       try {
39077         if (upcall) {
39078           Swig::DirectorPureVirtualException::raise("Xapian::PostingSource::init");
39079         } else {
39080           (arg1)->init((Xapian::Database const &)*arg2);
39081         }
39082       } catch (...) {
39083         Xapian::SetPythonException();
39084         SWIG_fail;
39085       }
39086     }
39087   } catch (Swig::DirectorException&) {
39088     SWIG_fail;
39089   }
39090   resultobj = SWIG_Py_Void();
39091   return resultobj;
39092 fail:
39093   return NULL;
39094 }
39095 
39096 
_wrap_PostingSource___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39097 SWIGINTERN PyObject *_wrap_PostingSource___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39098   PyObject *resultobj = 0;
39099   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
39100   void *argp1 = 0 ;
39101   int res1 = 0 ;
39102   PyObject *swig_obj[1] ;
39103   Swig::Director *director = 0;
39104   bool upcall = false;
39105   std::string result;
39106 
39107   if (!args) SWIG_fail;
39108   swig_obj[0] = args;
39109   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
39110   if (!SWIG_IsOK(res1)) {
39111     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource___str__" "', argument " "1"" of type '" "Xapian::PostingSource const *""'");
39112   }
39113   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
39114   director = SWIG_DIRECTOR_CAST(arg1);
39115   upcall = (director && (director->swig_get_self()==swig_obj[0]));
39116   try {
39117     {
39118       try {
39119         if (upcall) {
39120           result = ((Xapian::PostingSource const *)arg1)->Xapian::PostingSource::get_description();
39121         } else {
39122           result = ((Xapian::PostingSource const *)arg1)->get_description();
39123         }
39124       } catch (...) {
39125         Xapian::SetPythonException();
39126         SWIG_fail;
39127       }
39128     }
39129   } catch (Swig::DirectorException&) {
39130     SWIG_fail;
39131   }
39132   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
39133   return resultobj;
39134 fail:
39135   return NULL;
39136 }
39137 
39138 
_wrap_PostingSource_release(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39139 SWIGINTERN PyObject *_wrap_PostingSource_release(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39140   PyObject *resultobj = 0;
39141   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
39142   void *argp1 = 0 ;
39143   int res1 = 0 ;
39144   PyObject *swig_obj[1] ;
39145   Swig::Director *director = 0;
39146   Xapian::PostingSource *result = 0 ;
39147 
39148   if (!args) SWIG_fail;
39149   swig_obj[0] = args;
39150   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
39151   if (!SWIG_IsOK(res1)) {
39152     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource_release" "', argument " "1"" of type '" "Xapian::PostingSource const *""'");
39153   }
39154   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
39155   {
39156     try {
39157       {
39158         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
39159         result = (Xapian::PostingSource *)((Xapian::PostingSource const *)arg1)->release();
39160         SWIG_PYTHON_THREAD_END_ALLOW;
39161       }
39162     } catch (...) {
39163       Xapian::SetPythonException();
39164       SWIG_fail;
39165     }
39166   }
39167   director = SWIG_DIRECTOR_CAST(result);
39168   if (director) {
39169     resultobj = director->swig_get_self();
39170     Py_INCREF(resultobj);
39171   } else {
39172     resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
39173   }
39174   return resultobj;
39175 fail:
39176   return NULL;
39177 }
39178 
39179 
_wrap_disown_PostingSource(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39180 SWIGINTERN PyObject *_wrap_disown_PostingSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39181   PyObject *resultobj = 0;
39182   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
39183   void *argp1 = 0 ;
39184   int res1 = 0 ;
39185   PyObject *swig_obj[1] ;
39186 
39187   if (!args) SWIG_fail;
39188   swig_obj[0] = args;
39189   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
39190   if (!SWIG_IsOK(res1)) {
39191     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_PostingSource" "', argument " "1"" of type '" "Xapian::PostingSource *""'");
39192   }
39193   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
39194   {
39195     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
39196     {
39197       Swig::Director *director = SWIG_DIRECTOR_CAST(arg1);
39198       if (director) director->swig_disown();
39199     }
39200 
39201     SWIG_PYTHON_THREAD_END_ALLOW;
39202   }
39203   resultobj = SWIG_Py_Void();
39204   return resultobj;
39205 fail:
39206   return NULL;
39207 }
39208 
39209 
PostingSource_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39210 SWIGINTERN PyObject *PostingSource_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39211   PyObject *obj;
39212   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
39213   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__PostingSource, SWIG_NewClientData(obj));
39214   return SWIG_Py_Void();
39215 }
39216 
PostingSource_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39217 SWIGINTERN PyObject *PostingSource_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39218   return SWIG_Python_InitShadowInstance(args);
39219 }
39220 
_wrap_new_ValuePostingSource(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39221 SWIGINTERN PyObject *_wrap_new_ValuePostingSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39222   PyObject *resultobj = 0;
39223   PyObject *arg1 = (PyObject *) 0 ;
39224   Xapian::valueno arg2 ;
39225   unsigned int val2 ;
39226   int ecode2 = 0 ;
39227   PyObject *swig_obj[2] ;
39228   Xapian::ValuePostingSource *result = 0 ;
39229 
39230   if (!SWIG_Python_UnpackTuple(args,"new_ValuePostingSource",2,2,swig_obj)) SWIG_fail;
39231   arg1 = swig_obj[0];
39232   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
39233   if (!SWIG_IsOK(ecode2)) {
39234     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ValuePostingSource" "', argument " "2"" of type '" "Xapian::valueno""'");
39235   }
39236   arg2 = static_cast< Xapian::valueno >(val2);
39237   {
39238     try {
39239       {
39240         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
39241         if ( arg1 != Py_None ) {
39242           /* subclassed */
39243           result = (Xapian::ValuePostingSource *)new SwigDirector_ValuePostingSource(arg1,arg2);
39244         } else {
39245           result = (Xapian::ValuePostingSource *)new Xapian::ValuePostingSource(arg2);
39246         }
39247 
39248         SWIG_PYTHON_THREAD_END_ALLOW;
39249       }
39250     } catch (...) {
39251       Xapian::SetPythonException();
39252       SWIG_fail;
39253     }
39254   }
39255   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ValuePostingSource, SWIG_POINTER_NEW |  0 );
39256   return resultobj;
39257 fail:
39258   return NULL;
39259 }
39260 
39261 
_wrap_ValuePostingSource_get_termfreq_min(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39262 SWIGINTERN PyObject *_wrap_ValuePostingSource_get_termfreq_min(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39263   PyObject *resultobj = 0;
39264   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
39265   void *argp1 = 0 ;
39266   int res1 = 0 ;
39267   PyObject *swig_obj[1] ;
39268   Swig::Director *director = 0;
39269   bool upcall = false;
39270   Xapian::doccount result;
39271 
39272   if (!args) SWIG_fail;
39273   swig_obj[0] = args;
39274   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
39275   if (!SWIG_IsOK(res1)) {
39276     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_get_termfreq_min" "', argument " "1"" of type '" "Xapian::ValuePostingSource const *""'");
39277   }
39278   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
39279   director = SWIG_DIRECTOR_CAST(arg1);
39280   upcall = (director && (director->swig_get_self()==swig_obj[0]));
39281   try {
39282     {
39283       try {
39284         if (upcall) {
39285           result = (Xapian::doccount)((Xapian::ValuePostingSource const *)arg1)->Xapian::ValuePostingSource::get_termfreq_min();
39286         } else {
39287           result = (Xapian::doccount)((Xapian::ValuePostingSource const *)arg1)->get_termfreq_min();
39288         }
39289       } catch (...) {
39290         Xapian::SetPythonException();
39291         SWIG_fail;
39292       }
39293     }
39294   } catch (Swig::DirectorException&) {
39295     SWIG_fail;
39296   }
39297   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
39298   return resultobj;
39299 fail:
39300   return NULL;
39301 }
39302 
39303 
_wrap_ValuePostingSource_get_termfreq_est(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39304 SWIGINTERN PyObject *_wrap_ValuePostingSource_get_termfreq_est(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39305   PyObject *resultobj = 0;
39306   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
39307   void *argp1 = 0 ;
39308   int res1 = 0 ;
39309   PyObject *swig_obj[1] ;
39310   Swig::Director *director = 0;
39311   bool upcall = false;
39312   Xapian::doccount result;
39313 
39314   if (!args) SWIG_fail;
39315   swig_obj[0] = args;
39316   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
39317   if (!SWIG_IsOK(res1)) {
39318     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_get_termfreq_est" "', argument " "1"" of type '" "Xapian::ValuePostingSource const *""'");
39319   }
39320   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
39321   director = SWIG_DIRECTOR_CAST(arg1);
39322   upcall = (director && (director->swig_get_self()==swig_obj[0]));
39323   try {
39324     {
39325       try {
39326         if (upcall) {
39327           result = (Xapian::doccount)((Xapian::ValuePostingSource const *)arg1)->Xapian::ValuePostingSource::get_termfreq_est();
39328         } else {
39329           result = (Xapian::doccount)((Xapian::ValuePostingSource const *)arg1)->get_termfreq_est();
39330         }
39331       } catch (...) {
39332         Xapian::SetPythonException();
39333         SWIG_fail;
39334       }
39335     }
39336   } catch (Swig::DirectorException&) {
39337     SWIG_fail;
39338   }
39339   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
39340   return resultobj;
39341 fail:
39342   return NULL;
39343 }
39344 
39345 
_wrap_ValuePostingSource_get_termfreq_max(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39346 SWIGINTERN PyObject *_wrap_ValuePostingSource_get_termfreq_max(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39347   PyObject *resultobj = 0;
39348   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
39349   void *argp1 = 0 ;
39350   int res1 = 0 ;
39351   PyObject *swig_obj[1] ;
39352   Swig::Director *director = 0;
39353   bool upcall = false;
39354   Xapian::doccount result;
39355 
39356   if (!args) SWIG_fail;
39357   swig_obj[0] = args;
39358   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
39359   if (!SWIG_IsOK(res1)) {
39360     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_get_termfreq_max" "', argument " "1"" of type '" "Xapian::ValuePostingSource const *""'");
39361   }
39362   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
39363   director = SWIG_DIRECTOR_CAST(arg1);
39364   upcall = (director && (director->swig_get_self()==swig_obj[0]));
39365   try {
39366     {
39367       try {
39368         if (upcall) {
39369           result = (Xapian::doccount)((Xapian::ValuePostingSource const *)arg1)->Xapian::ValuePostingSource::get_termfreq_max();
39370         } else {
39371           result = (Xapian::doccount)((Xapian::ValuePostingSource const *)arg1)->get_termfreq_max();
39372         }
39373       } catch (...) {
39374         Xapian::SetPythonException();
39375         SWIG_fail;
39376       }
39377     }
39378   } catch (Swig::DirectorException&) {
39379     SWIG_fail;
39380   }
39381   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
39382   return resultobj;
39383 fail:
39384   return NULL;
39385 }
39386 
39387 
_wrap_ValuePostingSource_next(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39388 SWIGINTERN PyObject *_wrap_ValuePostingSource_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39389   PyObject *resultobj = 0;
39390   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
39391   double arg2 ;
39392   void *argp1 = 0 ;
39393   int res1 = 0 ;
39394   double val2 ;
39395   int ecode2 = 0 ;
39396   PyObject *swig_obj[2] ;
39397   Swig::Director *director = 0;
39398   bool upcall = false;
39399 
39400   if (!SWIG_Python_UnpackTuple(args,"ValuePostingSource_next",2,2,swig_obj)) SWIG_fail;
39401   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
39402   if (!SWIG_IsOK(res1)) {
39403     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_next" "', argument " "1"" of type '" "Xapian::ValuePostingSource *""'");
39404   }
39405   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
39406   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
39407   if (!SWIG_IsOK(ecode2)) {
39408     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ValuePostingSource_next" "', argument " "2"" of type '" "double""'");
39409   }
39410   arg2 = static_cast< double >(val2);
39411   director = SWIG_DIRECTOR_CAST(arg1);
39412   upcall = (director && (director->swig_get_self()==swig_obj[0]));
39413   try {
39414     {
39415       try {
39416         if (upcall) {
39417           (arg1)->Xapian::ValuePostingSource::next(arg2);
39418         } else {
39419           (arg1)->next(arg2);
39420         }
39421       } catch (...) {
39422         Xapian::SetPythonException();
39423         SWIG_fail;
39424       }
39425     }
39426   } catch (Swig::DirectorException&) {
39427     SWIG_fail;
39428   }
39429   resultobj = SWIG_Py_Void();
39430   return resultobj;
39431 fail:
39432   return NULL;
39433 }
39434 
39435 
_wrap_ValuePostingSource_skip_to(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39436 SWIGINTERN PyObject *_wrap_ValuePostingSource_skip_to(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39437   PyObject *resultobj = 0;
39438   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
39439   Xapian::docid arg2 ;
39440   double arg3 ;
39441   void *argp1 = 0 ;
39442   int res1 = 0 ;
39443   unsigned int val2 ;
39444   int ecode2 = 0 ;
39445   double val3 ;
39446   int ecode3 = 0 ;
39447   PyObject *swig_obj[3] ;
39448   Swig::Director *director = 0;
39449   bool upcall = false;
39450 
39451   if (!SWIG_Python_UnpackTuple(args,"ValuePostingSource_skip_to",3,3,swig_obj)) SWIG_fail;
39452   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
39453   if (!SWIG_IsOK(res1)) {
39454     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_skip_to" "', argument " "1"" of type '" "Xapian::ValuePostingSource *""'");
39455   }
39456   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
39457   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
39458   if (!SWIG_IsOK(ecode2)) {
39459     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ValuePostingSource_skip_to" "', argument " "2"" of type '" "Xapian::docid""'");
39460   }
39461   arg2 = static_cast< Xapian::docid >(val2);
39462   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
39463   if (!SWIG_IsOK(ecode3)) {
39464     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ValuePostingSource_skip_to" "', argument " "3"" of type '" "double""'");
39465   }
39466   arg3 = static_cast< double >(val3);
39467   director = SWIG_DIRECTOR_CAST(arg1);
39468   upcall = (director && (director->swig_get_self()==swig_obj[0]));
39469   try {
39470     {
39471       try {
39472         if (upcall) {
39473           (arg1)->Xapian::ValuePostingSource::skip_to(arg2,arg3);
39474         } else {
39475           (arg1)->skip_to(arg2,arg3);
39476         }
39477       } catch (...) {
39478         Xapian::SetPythonException();
39479         SWIG_fail;
39480       }
39481     }
39482   } catch (Swig::DirectorException&) {
39483     SWIG_fail;
39484   }
39485   resultobj = SWIG_Py_Void();
39486   return resultobj;
39487 fail:
39488   return NULL;
39489 }
39490 
39491 
_wrap_ValuePostingSource_check(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39492 SWIGINTERN PyObject *_wrap_ValuePostingSource_check(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39493   PyObject *resultobj = 0;
39494   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
39495   Xapian::docid arg2 ;
39496   double arg3 ;
39497   void *argp1 = 0 ;
39498   int res1 = 0 ;
39499   unsigned int val2 ;
39500   int ecode2 = 0 ;
39501   double val3 ;
39502   int ecode3 = 0 ;
39503   PyObject *swig_obj[3] ;
39504   Swig::Director *director = 0;
39505   bool upcall = false;
39506   bool result;
39507 
39508   if (!SWIG_Python_UnpackTuple(args,"ValuePostingSource_check",3,3,swig_obj)) SWIG_fail;
39509   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
39510   if (!SWIG_IsOK(res1)) {
39511     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_check" "', argument " "1"" of type '" "Xapian::ValuePostingSource *""'");
39512   }
39513   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
39514   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
39515   if (!SWIG_IsOK(ecode2)) {
39516     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ValuePostingSource_check" "', argument " "2"" of type '" "Xapian::docid""'");
39517   }
39518   arg2 = static_cast< Xapian::docid >(val2);
39519   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
39520   if (!SWIG_IsOK(ecode3)) {
39521     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ValuePostingSource_check" "', argument " "3"" of type '" "double""'");
39522   }
39523   arg3 = static_cast< double >(val3);
39524   director = SWIG_DIRECTOR_CAST(arg1);
39525   upcall = (director && (director->swig_get_self()==swig_obj[0]));
39526   try {
39527     {
39528       try {
39529         if (upcall) {
39530           result = (bool)(arg1)->Xapian::ValuePostingSource::check(arg2,arg3);
39531         } else {
39532           result = (bool)(arg1)->check(arg2,arg3);
39533         }
39534       } catch (...) {
39535         Xapian::SetPythonException();
39536         SWIG_fail;
39537       }
39538     }
39539   } catch (Swig::DirectorException&) {
39540     SWIG_fail;
39541   }
39542   resultobj = SWIG_From_bool(static_cast< bool >(result));
39543   return resultobj;
39544 fail:
39545   return NULL;
39546 }
39547 
39548 
_wrap_ValuePostingSource_at_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39549 SWIGINTERN PyObject *_wrap_ValuePostingSource_at_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39550   PyObject *resultobj = 0;
39551   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
39552   void *argp1 = 0 ;
39553   int res1 = 0 ;
39554   PyObject *swig_obj[1] ;
39555   Swig::Director *director = 0;
39556   bool upcall = false;
39557   bool result;
39558 
39559   if (!args) SWIG_fail;
39560   swig_obj[0] = args;
39561   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
39562   if (!SWIG_IsOK(res1)) {
39563     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_at_end" "', argument " "1"" of type '" "Xapian::ValuePostingSource const *""'");
39564   }
39565   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
39566   director = SWIG_DIRECTOR_CAST(arg1);
39567   upcall = (director && (director->swig_get_self()==swig_obj[0]));
39568   try {
39569     {
39570       try {
39571         if (upcall) {
39572           result = (bool)((Xapian::ValuePostingSource const *)arg1)->Xapian::ValuePostingSource::at_end();
39573         } else {
39574           result = (bool)((Xapian::ValuePostingSource const *)arg1)->at_end();
39575         }
39576       } catch (...) {
39577         Xapian::SetPythonException();
39578         SWIG_fail;
39579       }
39580     }
39581   } catch (Swig::DirectorException&) {
39582     SWIG_fail;
39583   }
39584   resultobj = SWIG_From_bool(static_cast< bool >(result));
39585   return resultobj;
39586 fail:
39587   return NULL;
39588 }
39589 
39590 
_wrap_ValuePostingSource_get_docid(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39591 SWIGINTERN PyObject *_wrap_ValuePostingSource_get_docid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39592   PyObject *resultobj = 0;
39593   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
39594   void *argp1 = 0 ;
39595   int res1 = 0 ;
39596   PyObject *swig_obj[1] ;
39597   Swig::Director *director = 0;
39598   bool upcall = false;
39599   Xapian::docid result;
39600 
39601   if (!args) SWIG_fail;
39602   swig_obj[0] = args;
39603   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
39604   if (!SWIG_IsOK(res1)) {
39605     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_get_docid" "', argument " "1"" of type '" "Xapian::ValuePostingSource const *""'");
39606   }
39607   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
39608   director = SWIG_DIRECTOR_CAST(arg1);
39609   upcall = (director && (director->swig_get_self()==swig_obj[0]));
39610   try {
39611     {
39612       try {
39613         if (upcall) {
39614           result = (Xapian::docid)((Xapian::ValuePostingSource const *)arg1)->Xapian::ValuePostingSource::get_docid();
39615         } else {
39616           result = (Xapian::docid)((Xapian::ValuePostingSource const *)arg1)->get_docid();
39617         }
39618       } catch (...) {
39619         Xapian::SetPythonException();
39620         SWIG_fail;
39621       }
39622     }
39623   } catch (Swig::DirectorException&) {
39624     SWIG_fail;
39625   }
39626   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
39627   return resultobj;
39628 fail:
39629   return NULL;
39630 }
39631 
39632 
_wrap_ValuePostingSource_init(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39633 SWIGINTERN PyObject *_wrap_ValuePostingSource_init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39634   PyObject *resultobj = 0;
39635   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
39636   Xapian::Database *arg2 = 0 ;
39637   void *argp1 = 0 ;
39638   int res1 = 0 ;
39639   void *argp2 = 0 ;
39640   int res2 = 0 ;
39641   PyObject *swig_obj[2] ;
39642   Swig::Director *director = 0;
39643   bool upcall = false;
39644 
39645   if (!SWIG_Python_UnpackTuple(args,"ValuePostingSource_init",2,2,swig_obj)) SWIG_fail;
39646   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
39647   if (!SWIG_IsOK(res1)) {
39648     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_init" "', argument " "1"" of type '" "Xapian::ValuePostingSource *""'");
39649   }
39650   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
39651   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__Database,  0  | 0);
39652   if (!SWIG_IsOK(res2)) {
39653     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ValuePostingSource_init" "', argument " "2"" of type '" "Xapian::Database const &""'");
39654   }
39655   if (!argp2) {
39656     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ValuePostingSource_init" "', argument " "2"" of type '" "Xapian::Database const &""'");
39657   }
39658   arg2 = reinterpret_cast< Xapian::Database * >(argp2);
39659   director = SWIG_DIRECTOR_CAST(arg1);
39660   upcall = (director && (director->swig_get_self()==swig_obj[0]));
39661   try {
39662     {
39663       try {
39664         if (upcall) {
39665           (arg1)->Xapian::ValuePostingSource::init((Xapian::Database const &)*arg2);
39666         } else {
39667           (arg1)->init((Xapian::Database const &)*arg2);
39668         }
39669       } catch (...) {
39670         Xapian::SetPythonException();
39671         SWIG_fail;
39672       }
39673     }
39674   } catch (Swig::DirectorException&) {
39675     SWIG_fail;
39676   }
39677   resultobj = SWIG_Py_Void();
39678   return resultobj;
39679 fail:
39680   return NULL;
39681 }
39682 
39683 
_wrap_ValuePostingSource_get_database(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39684 SWIGINTERN PyObject *_wrap_ValuePostingSource_get_database(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39685   PyObject *resultobj = 0;
39686   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
39687   void *argp1 = 0 ;
39688   int res1 = 0 ;
39689   PyObject *swig_obj[1] ;
39690   Xapian::Database result;
39691 
39692   if (!args) SWIG_fail;
39693   swig_obj[0] = args;
39694   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
39695   if (!SWIG_IsOK(res1)) {
39696     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_get_database" "', argument " "1"" of type '" "Xapian::ValuePostingSource const *""'");
39697   }
39698   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
39699   {
39700     try {
39701       {
39702         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
39703         result = ((Xapian::ValuePostingSource const *)arg1)->get_database();
39704         SWIG_PYTHON_THREAD_END_ALLOW;
39705       }
39706     } catch (...) {
39707       Xapian::SetPythonException();
39708       SWIG_fail;
39709     }
39710   }
39711   resultobj = SWIG_NewPointerObj((new Xapian::Database(static_cast< const Xapian::Database& >(result))), SWIGTYPE_p_Xapian__Database, SWIG_POINTER_OWN |  0 );
39712   return resultobj;
39713 fail:
39714   return NULL;
39715 }
39716 
39717 
_wrap_ValuePostingSource_get_slot(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39718 SWIGINTERN PyObject *_wrap_ValuePostingSource_get_slot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39719   PyObject *resultobj = 0;
39720   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
39721   void *argp1 = 0 ;
39722   int res1 = 0 ;
39723   PyObject *swig_obj[1] ;
39724   Xapian::valueno result;
39725 
39726   if (!args) SWIG_fail;
39727   swig_obj[0] = args;
39728   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
39729   if (!SWIG_IsOK(res1)) {
39730     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_get_slot" "', argument " "1"" of type '" "Xapian::ValuePostingSource const *""'");
39731   }
39732   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
39733   {
39734     try {
39735       {
39736         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
39737         result = (Xapian::valueno)((Xapian::ValuePostingSource const *)arg1)->get_slot();
39738         SWIG_PYTHON_THREAD_END_ALLOW;
39739       }
39740     } catch (...) {
39741       Xapian::SetPythonException();
39742       SWIG_fail;
39743     }
39744   }
39745   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
39746   return resultobj;
39747 fail:
39748   return NULL;
39749 }
39750 
39751 
_wrap_ValuePostingSource_get_value(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39752 SWIGINTERN PyObject *_wrap_ValuePostingSource_get_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39753   PyObject *resultobj = 0;
39754   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
39755   void *argp1 = 0 ;
39756   int res1 = 0 ;
39757   PyObject *swig_obj[1] ;
39758   std::string result;
39759 
39760   if (!args) SWIG_fail;
39761   swig_obj[0] = args;
39762   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
39763   if (!SWIG_IsOK(res1)) {
39764     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_get_value" "', argument " "1"" of type '" "Xapian::ValuePostingSource const *""'");
39765   }
39766   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
39767   {
39768     try {
39769       {
39770         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
39771         result = ((Xapian::ValuePostingSource const *)arg1)->get_value();
39772         SWIG_PYTHON_THREAD_END_ALLOW;
39773       }
39774     } catch (...) {
39775       Xapian::SetPythonException();
39776       SWIG_fail;
39777     }
39778   }
39779   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
39780   return resultobj;
39781 fail:
39782   return NULL;
39783 }
39784 
39785 
_wrap_ValuePostingSource_done(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39786 SWIGINTERN PyObject *_wrap_ValuePostingSource_done(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39787   PyObject *resultobj = 0;
39788   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
39789   void *argp1 = 0 ;
39790   int res1 = 0 ;
39791   PyObject *swig_obj[1] ;
39792 
39793   if (!args) SWIG_fail;
39794   swig_obj[0] = args;
39795   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
39796   if (!SWIG_IsOK(res1)) {
39797     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_done" "', argument " "1"" of type '" "Xapian::ValuePostingSource *""'");
39798   }
39799   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
39800   {
39801     try {
39802       {
39803         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
39804         (arg1)->done();
39805         SWIG_PYTHON_THREAD_END_ALLOW;
39806       }
39807     } catch (...) {
39808       Xapian::SetPythonException();
39809       SWIG_fail;
39810     }
39811   }
39812   resultobj = SWIG_Py_Void();
39813   return resultobj;
39814 fail:
39815   return NULL;
39816 }
39817 
39818 
_wrap_ValuePostingSource_get_started(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39819 SWIGINTERN PyObject *_wrap_ValuePostingSource_get_started(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39820   PyObject *resultobj = 0;
39821   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
39822   void *argp1 = 0 ;
39823   int res1 = 0 ;
39824   PyObject *swig_obj[1] ;
39825   bool result;
39826 
39827   if (!args) SWIG_fail;
39828   swig_obj[0] = args;
39829   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
39830   if (!SWIG_IsOK(res1)) {
39831     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_get_started" "', argument " "1"" of type '" "Xapian::ValuePostingSource const *""'");
39832   }
39833   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
39834   {
39835     try {
39836       {
39837         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
39838         result = (bool)((Xapian::ValuePostingSource const *)arg1)->get_started();
39839         SWIG_PYTHON_THREAD_END_ALLOW;
39840       }
39841     } catch (...) {
39842       Xapian::SetPythonException();
39843       SWIG_fail;
39844     }
39845   }
39846   resultobj = SWIG_From_bool(static_cast< bool >(result));
39847   return resultobj;
39848 fail:
39849   return NULL;
39850 }
39851 
39852 
_wrap_ValuePostingSource_set_termfreq_min(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39853 SWIGINTERN PyObject *_wrap_ValuePostingSource_set_termfreq_min(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39854   PyObject *resultobj = 0;
39855   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
39856   Xapian::doccount arg2 ;
39857   void *argp1 = 0 ;
39858   int res1 = 0 ;
39859   unsigned int val2 ;
39860   int ecode2 = 0 ;
39861   PyObject *swig_obj[2] ;
39862 
39863   if (!SWIG_Python_UnpackTuple(args,"ValuePostingSource_set_termfreq_min",2,2,swig_obj)) SWIG_fail;
39864   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
39865   if (!SWIG_IsOK(res1)) {
39866     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_set_termfreq_min" "', argument " "1"" of type '" "Xapian::ValuePostingSource *""'");
39867   }
39868   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
39869   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
39870   if (!SWIG_IsOK(ecode2)) {
39871     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ValuePostingSource_set_termfreq_min" "', argument " "2"" of type '" "Xapian::doccount""'");
39872   }
39873   arg2 = static_cast< Xapian::doccount >(val2);
39874   {
39875     try {
39876       {
39877         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
39878         (arg1)->set_termfreq_min(arg2);
39879         SWIG_PYTHON_THREAD_END_ALLOW;
39880       }
39881     } catch (...) {
39882       Xapian::SetPythonException();
39883       SWIG_fail;
39884     }
39885   }
39886   resultobj = SWIG_Py_Void();
39887   return resultobj;
39888 fail:
39889   return NULL;
39890 }
39891 
39892 
_wrap_ValuePostingSource_set_termfreq_est(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39893 SWIGINTERN PyObject *_wrap_ValuePostingSource_set_termfreq_est(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39894   PyObject *resultobj = 0;
39895   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
39896   Xapian::doccount arg2 ;
39897   void *argp1 = 0 ;
39898   int res1 = 0 ;
39899   unsigned int val2 ;
39900   int ecode2 = 0 ;
39901   PyObject *swig_obj[2] ;
39902 
39903   if (!SWIG_Python_UnpackTuple(args,"ValuePostingSource_set_termfreq_est",2,2,swig_obj)) SWIG_fail;
39904   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
39905   if (!SWIG_IsOK(res1)) {
39906     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_set_termfreq_est" "', argument " "1"" of type '" "Xapian::ValuePostingSource *""'");
39907   }
39908   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
39909   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
39910   if (!SWIG_IsOK(ecode2)) {
39911     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ValuePostingSource_set_termfreq_est" "', argument " "2"" of type '" "Xapian::doccount""'");
39912   }
39913   arg2 = static_cast< Xapian::doccount >(val2);
39914   {
39915     try {
39916       {
39917         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
39918         (arg1)->set_termfreq_est(arg2);
39919         SWIG_PYTHON_THREAD_END_ALLOW;
39920       }
39921     } catch (...) {
39922       Xapian::SetPythonException();
39923       SWIG_fail;
39924     }
39925   }
39926   resultobj = SWIG_Py_Void();
39927   return resultobj;
39928 fail:
39929   return NULL;
39930 }
39931 
39932 
_wrap_ValuePostingSource_set_termfreq_max(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39933 SWIGINTERN PyObject *_wrap_ValuePostingSource_set_termfreq_max(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39934   PyObject *resultobj = 0;
39935   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
39936   Xapian::doccount arg2 ;
39937   void *argp1 = 0 ;
39938   int res1 = 0 ;
39939   unsigned int val2 ;
39940   int ecode2 = 0 ;
39941   PyObject *swig_obj[2] ;
39942 
39943   if (!SWIG_Python_UnpackTuple(args,"ValuePostingSource_set_termfreq_max",2,2,swig_obj)) SWIG_fail;
39944   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
39945   if (!SWIG_IsOK(res1)) {
39946     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_set_termfreq_max" "', argument " "1"" of type '" "Xapian::ValuePostingSource *""'");
39947   }
39948   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
39949   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
39950   if (!SWIG_IsOK(ecode2)) {
39951     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ValuePostingSource_set_termfreq_max" "', argument " "2"" of type '" "Xapian::doccount""'");
39952   }
39953   arg2 = static_cast< Xapian::doccount >(val2);
39954   {
39955     try {
39956       {
39957         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
39958         (arg1)->set_termfreq_max(arg2);
39959         SWIG_PYTHON_THREAD_END_ALLOW;
39960       }
39961     } catch (...) {
39962       Xapian::SetPythonException();
39963       SWIG_fail;
39964     }
39965   }
39966   resultobj = SWIG_Py_Void();
39967   return resultobj;
39968 fail:
39969   return NULL;
39970 }
39971 
39972 
_wrap_delete_ValuePostingSource(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39973 SWIGINTERN PyObject *_wrap_delete_ValuePostingSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39974   PyObject *resultobj = 0;
39975   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
39976   void *argp1 = 0 ;
39977   int res1 = 0 ;
39978   PyObject *swig_obj[1] ;
39979 
39980   if (!args) SWIG_fail;
39981   swig_obj[0] = args;
39982   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, SWIG_POINTER_DISOWN |  0 );
39983   if (!SWIG_IsOK(res1)) {
39984     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ValuePostingSource" "', argument " "1"" of type '" "Xapian::ValuePostingSource *""'");
39985   }
39986   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
39987   {
39988     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
39989     delete arg1;
39990     SWIG_PYTHON_THREAD_END_ALLOW;
39991   }
39992   resultobj = SWIG_Py_Void();
39993   return resultobj;
39994 fail:
39995   return NULL;
39996 }
39997 
39998 
_wrap_disown_ValuePostingSource(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39999 SWIGINTERN PyObject *_wrap_disown_ValuePostingSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40000   PyObject *resultobj = 0;
40001   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
40002   void *argp1 = 0 ;
40003   int res1 = 0 ;
40004   PyObject *swig_obj[1] ;
40005 
40006   if (!args) SWIG_fail;
40007   swig_obj[0] = args;
40008   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
40009   if (!SWIG_IsOK(res1)) {
40010     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_ValuePostingSource" "', argument " "1"" of type '" "Xapian::ValuePostingSource *""'");
40011   }
40012   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
40013   {
40014     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
40015     {
40016       Swig::Director *director = SWIG_DIRECTOR_CAST(arg1);
40017       if (director) director->swig_disown();
40018     }
40019 
40020     SWIG_PYTHON_THREAD_END_ALLOW;
40021   }
40022   resultobj = SWIG_Py_Void();
40023   return resultobj;
40024 fail:
40025   return NULL;
40026 }
40027 
40028 
ValuePostingSource_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40029 SWIGINTERN PyObject *ValuePostingSource_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40030   PyObject *obj;
40031   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
40032   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__ValuePostingSource, SWIG_NewClientData(obj));
40033   return SWIG_Py_Void();
40034 }
40035 
ValuePostingSource_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40036 SWIGINTERN PyObject *ValuePostingSource_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40037   return SWIG_Python_InitShadowInstance(args);
40038 }
40039 
_wrap_new_ValueWeightPostingSource(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40040 SWIGINTERN PyObject *_wrap_new_ValueWeightPostingSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40041   PyObject *resultobj = 0;
40042   PyObject *arg1 = (PyObject *) 0 ;
40043   Xapian::valueno arg2 ;
40044   unsigned int val2 ;
40045   int ecode2 = 0 ;
40046   PyObject *swig_obj[2] ;
40047   Xapian::ValueWeightPostingSource *result = 0 ;
40048 
40049   if (!SWIG_Python_UnpackTuple(args,"new_ValueWeightPostingSource",2,2,swig_obj)) SWIG_fail;
40050   arg1 = swig_obj[0];
40051   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
40052   if (!SWIG_IsOK(ecode2)) {
40053     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ValueWeightPostingSource" "', argument " "2"" of type '" "Xapian::valueno""'");
40054   }
40055   arg2 = static_cast< Xapian::valueno >(val2);
40056   {
40057     try {
40058       {
40059         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
40060         if ( arg1 != Py_None ) {
40061           /* subclassed */
40062           result = (Xapian::ValueWeightPostingSource *)new SwigDirector_ValueWeightPostingSource(arg1,arg2);
40063         } else {
40064           result = (Xapian::ValueWeightPostingSource *)new Xapian::ValueWeightPostingSource(arg2);
40065         }
40066 
40067         SWIG_PYTHON_THREAD_END_ALLOW;
40068       }
40069     } catch (...) {
40070       Xapian::SetPythonException();
40071       SWIG_fail;
40072     }
40073   }
40074   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ValueWeightPostingSource, SWIG_POINTER_NEW |  0 );
40075   return resultobj;
40076 fail:
40077   return NULL;
40078 }
40079 
40080 
_wrap_ValueWeightPostingSource_get_weight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40081 SWIGINTERN PyObject *_wrap_ValueWeightPostingSource_get_weight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40082   PyObject *resultobj = 0;
40083   Xapian::ValueWeightPostingSource *arg1 = (Xapian::ValueWeightPostingSource *) 0 ;
40084   void *argp1 = 0 ;
40085   int res1 = 0 ;
40086   PyObject *swig_obj[1] ;
40087   Swig::Director *director = 0;
40088   bool upcall = false;
40089   double result;
40090 
40091   if (!args) SWIG_fail;
40092   swig_obj[0] = args;
40093   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueWeightPostingSource, 0 |  0 );
40094   if (!SWIG_IsOK(res1)) {
40095     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueWeightPostingSource_get_weight" "', argument " "1"" of type '" "Xapian::ValueWeightPostingSource const *""'");
40096   }
40097   arg1 = reinterpret_cast< Xapian::ValueWeightPostingSource * >(argp1);
40098   director = SWIG_DIRECTOR_CAST(arg1);
40099   upcall = (director && (director->swig_get_self()==swig_obj[0]));
40100   try {
40101     {
40102       try {
40103         if (upcall) {
40104           result = (double)((Xapian::ValueWeightPostingSource const *)arg1)->Xapian::ValueWeightPostingSource::get_weight();
40105         } else {
40106           result = (double)((Xapian::ValueWeightPostingSource const *)arg1)->get_weight();
40107         }
40108       } catch (...) {
40109         Xapian::SetPythonException();
40110         SWIG_fail;
40111       }
40112     }
40113   } catch (Swig::DirectorException&) {
40114     SWIG_fail;
40115   }
40116   resultobj = SWIG_From_double(static_cast< double >(result));
40117   return resultobj;
40118 fail:
40119   return NULL;
40120 }
40121 
40122 
_wrap_ValueWeightPostingSource_name(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40123 SWIGINTERN PyObject *_wrap_ValueWeightPostingSource_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40124   PyObject *resultobj = 0;
40125   Xapian::ValueWeightPostingSource *arg1 = (Xapian::ValueWeightPostingSource *) 0 ;
40126   void *argp1 = 0 ;
40127   int res1 = 0 ;
40128   PyObject *swig_obj[1] ;
40129   Swig::Director *director = 0;
40130   bool upcall = false;
40131   std::string result;
40132 
40133   if (!args) SWIG_fail;
40134   swig_obj[0] = args;
40135   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueWeightPostingSource, 0 |  0 );
40136   if (!SWIG_IsOK(res1)) {
40137     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueWeightPostingSource_name" "', argument " "1"" of type '" "Xapian::ValueWeightPostingSource const *""'");
40138   }
40139   arg1 = reinterpret_cast< Xapian::ValueWeightPostingSource * >(argp1);
40140   director = SWIG_DIRECTOR_CAST(arg1);
40141   upcall = (director && (director->swig_get_self()==swig_obj[0]));
40142   try {
40143     {
40144       try {
40145         if (upcall) {
40146           result = ((Xapian::ValueWeightPostingSource const *)arg1)->Xapian::ValueWeightPostingSource::name();
40147         } else {
40148           result = ((Xapian::ValueWeightPostingSource const *)arg1)->name();
40149         }
40150       } catch (...) {
40151         Xapian::SetPythonException();
40152         SWIG_fail;
40153       }
40154     }
40155   } catch (Swig::DirectorException&) {
40156     SWIG_fail;
40157   }
40158   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
40159   return resultobj;
40160 fail:
40161   return NULL;
40162 }
40163 
40164 
_wrap_ValueWeightPostingSource_init(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40165 SWIGINTERN PyObject *_wrap_ValueWeightPostingSource_init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40166   PyObject *resultobj = 0;
40167   Xapian::ValueWeightPostingSource *arg1 = (Xapian::ValueWeightPostingSource *) 0 ;
40168   Xapian::Database *arg2 = 0 ;
40169   void *argp1 = 0 ;
40170   int res1 = 0 ;
40171   void *argp2 = 0 ;
40172   int res2 = 0 ;
40173   PyObject *swig_obj[2] ;
40174   Swig::Director *director = 0;
40175   bool upcall = false;
40176 
40177   if (!SWIG_Python_UnpackTuple(args,"ValueWeightPostingSource_init",2,2,swig_obj)) SWIG_fail;
40178   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueWeightPostingSource, 0 |  0 );
40179   if (!SWIG_IsOK(res1)) {
40180     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueWeightPostingSource_init" "', argument " "1"" of type '" "Xapian::ValueWeightPostingSource *""'");
40181   }
40182   arg1 = reinterpret_cast< Xapian::ValueWeightPostingSource * >(argp1);
40183   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__Database,  0  | 0);
40184   if (!SWIG_IsOK(res2)) {
40185     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ValueWeightPostingSource_init" "', argument " "2"" of type '" "Xapian::Database const &""'");
40186   }
40187   if (!argp2) {
40188     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ValueWeightPostingSource_init" "', argument " "2"" of type '" "Xapian::Database const &""'");
40189   }
40190   arg2 = reinterpret_cast< Xapian::Database * >(argp2);
40191   director = SWIG_DIRECTOR_CAST(arg1);
40192   upcall = (director && (director->swig_get_self()==swig_obj[0]));
40193   try {
40194     {
40195       try {
40196         if (upcall) {
40197           (arg1)->Xapian::ValueWeightPostingSource::init((Xapian::Database const &)*arg2);
40198         } else {
40199           (arg1)->init((Xapian::Database const &)*arg2);
40200         }
40201       } catch (...) {
40202         Xapian::SetPythonException();
40203         SWIG_fail;
40204       }
40205     }
40206   } catch (Swig::DirectorException&) {
40207     SWIG_fail;
40208   }
40209   resultobj = SWIG_Py_Void();
40210   return resultobj;
40211 fail:
40212   return NULL;
40213 }
40214 
40215 
_wrap_ValueWeightPostingSource___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40216 SWIGINTERN PyObject *_wrap_ValueWeightPostingSource___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40217   PyObject *resultobj = 0;
40218   Xapian::ValueWeightPostingSource *arg1 = (Xapian::ValueWeightPostingSource *) 0 ;
40219   void *argp1 = 0 ;
40220   int res1 = 0 ;
40221   PyObject *swig_obj[1] ;
40222   Swig::Director *director = 0;
40223   bool upcall = false;
40224   std::string result;
40225 
40226   if (!args) SWIG_fail;
40227   swig_obj[0] = args;
40228   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueWeightPostingSource, 0 |  0 );
40229   if (!SWIG_IsOK(res1)) {
40230     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueWeightPostingSource___str__" "', argument " "1"" of type '" "Xapian::ValueWeightPostingSource const *""'");
40231   }
40232   arg1 = reinterpret_cast< Xapian::ValueWeightPostingSource * >(argp1);
40233   director = SWIG_DIRECTOR_CAST(arg1);
40234   upcall = (director && (director->swig_get_self()==swig_obj[0]));
40235   try {
40236     {
40237       try {
40238         if (upcall) {
40239           result = ((Xapian::ValueWeightPostingSource const *)arg1)->Xapian::ValueWeightPostingSource::get_description();
40240         } else {
40241           result = ((Xapian::ValueWeightPostingSource const *)arg1)->get_description();
40242         }
40243       } catch (...) {
40244         Xapian::SetPythonException();
40245         SWIG_fail;
40246       }
40247     }
40248   } catch (Swig::DirectorException&) {
40249     SWIG_fail;
40250   }
40251   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
40252   return resultobj;
40253 fail:
40254   return NULL;
40255 }
40256 
40257 
_wrap_delete_ValueWeightPostingSource(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40258 SWIGINTERN PyObject *_wrap_delete_ValueWeightPostingSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40259   PyObject *resultobj = 0;
40260   Xapian::ValueWeightPostingSource *arg1 = (Xapian::ValueWeightPostingSource *) 0 ;
40261   void *argp1 = 0 ;
40262   int res1 = 0 ;
40263   PyObject *swig_obj[1] ;
40264 
40265   if (!args) SWIG_fail;
40266   swig_obj[0] = args;
40267   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueWeightPostingSource, SWIG_POINTER_DISOWN |  0 );
40268   if (!SWIG_IsOK(res1)) {
40269     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ValueWeightPostingSource" "', argument " "1"" of type '" "Xapian::ValueWeightPostingSource *""'");
40270   }
40271   arg1 = reinterpret_cast< Xapian::ValueWeightPostingSource * >(argp1);
40272   {
40273     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
40274     delete arg1;
40275     SWIG_PYTHON_THREAD_END_ALLOW;
40276   }
40277   resultobj = SWIG_Py_Void();
40278   return resultobj;
40279 fail:
40280   return NULL;
40281 }
40282 
40283 
_wrap_disown_ValueWeightPostingSource(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40284 SWIGINTERN PyObject *_wrap_disown_ValueWeightPostingSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40285   PyObject *resultobj = 0;
40286   Xapian::ValueWeightPostingSource *arg1 = (Xapian::ValueWeightPostingSource *) 0 ;
40287   void *argp1 = 0 ;
40288   int res1 = 0 ;
40289   PyObject *swig_obj[1] ;
40290 
40291   if (!args) SWIG_fail;
40292   swig_obj[0] = args;
40293   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueWeightPostingSource, 0 |  0 );
40294   if (!SWIG_IsOK(res1)) {
40295     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_ValueWeightPostingSource" "', argument " "1"" of type '" "Xapian::ValueWeightPostingSource *""'");
40296   }
40297   arg1 = reinterpret_cast< Xapian::ValueWeightPostingSource * >(argp1);
40298   {
40299     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
40300     {
40301       Swig::Director *director = SWIG_DIRECTOR_CAST(arg1);
40302       if (director) director->swig_disown();
40303     }
40304 
40305     SWIG_PYTHON_THREAD_END_ALLOW;
40306   }
40307   resultobj = SWIG_Py_Void();
40308   return resultobj;
40309 fail:
40310   return NULL;
40311 }
40312 
40313 
ValueWeightPostingSource_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40314 SWIGINTERN PyObject *ValueWeightPostingSource_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40315   PyObject *obj;
40316   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
40317   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__ValueWeightPostingSource, SWIG_NewClientData(obj));
40318   return SWIG_Py_Void();
40319 }
40320 
ValueWeightPostingSource_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40321 SWIGINTERN PyObject *ValueWeightPostingSource_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40322   return SWIG_Python_InitShadowInstance(args);
40323 }
40324 
_wrap_new_DecreasingValueWeightPostingSource__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)40325 SWIGINTERN PyObject *_wrap_new_DecreasingValueWeightPostingSource__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
40326   PyObject *resultobj = 0;
40327   Xapian::valueno arg1 ;
40328   Xapian::docid arg2 ;
40329   Xapian::docid arg3 ;
40330   unsigned int val1 ;
40331   int ecode1 = 0 ;
40332   unsigned int val2 ;
40333   int ecode2 = 0 ;
40334   unsigned int val3 ;
40335   int ecode3 = 0 ;
40336   Xapian::DecreasingValueWeightPostingSource *result = 0 ;
40337 
40338   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
40339   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
40340   if (!SWIG_IsOK(ecode1)) {
40341     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DecreasingValueWeightPostingSource" "', argument " "1"" of type '" "Xapian::valueno""'");
40342   }
40343   arg1 = static_cast< Xapian::valueno >(val1);
40344   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
40345   if (!SWIG_IsOK(ecode2)) {
40346     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DecreasingValueWeightPostingSource" "', argument " "2"" of type '" "Xapian::docid""'");
40347   }
40348   arg2 = static_cast< Xapian::docid >(val2);
40349   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
40350   if (!SWIG_IsOK(ecode3)) {
40351     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DecreasingValueWeightPostingSource" "', argument " "3"" of type '" "Xapian::docid""'");
40352   }
40353   arg3 = static_cast< Xapian::docid >(val3);
40354   {
40355     try {
40356       {
40357         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
40358         result = (Xapian::DecreasingValueWeightPostingSource *)new Xapian::DecreasingValueWeightPostingSource(arg1,arg2,arg3);
40359         SWIG_PYTHON_THREAD_END_ALLOW;
40360       }
40361     } catch (...) {
40362       Xapian::SetPythonException();
40363       SWIG_fail;
40364     }
40365   }
40366   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DecreasingValueWeightPostingSource, SWIG_POINTER_NEW |  0 );
40367   return resultobj;
40368 fail:
40369   return NULL;
40370 }
40371 
40372 
_wrap_new_DecreasingValueWeightPostingSource__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)40373 SWIGINTERN PyObject *_wrap_new_DecreasingValueWeightPostingSource__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
40374   PyObject *resultobj = 0;
40375   Xapian::valueno arg1 ;
40376   Xapian::docid arg2 ;
40377   unsigned int val1 ;
40378   int ecode1 = 0 ;
40379   unsigned int val2 ;
40380   int ecode2 = 0 ;
40381   Xapian::DecreasingValueWeightPostingSource *result = 0 ;
40382 
40383   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
40384   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
40385   if (!SWIG_IsOK(ecode1)) {
40386     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DecreasingValueWeightPostingSource" "', argument " "1"" of type '" "Xapian::valueno""'");
40387   }
40388   arg1 = static_cast< Xapian::valueno >(val1);
40389   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
40390   if (!SWIG_IsOK(ecode2)) {
40391     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DecreasingValueWeightPostingSource" "', argument " "2"" of type '" "Xapian::docid""'");
40392   }
40393   arg2 = static_cast< Xapian::docid >(val2);
40394   {
40395     try {
40396       {
40397         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
40398         result = (Xapian::DecreasingValueWeightPostingSource *)new Xapian::DecreasingValueWeightPostingSource(arg1,arg2);
40399         SWIG_PYTHON_THREAD_END_ALLOW;
40400       }
40401     } catch (...) {
40402       Xapian::SetPythonException();
40403       SWIG_fail;
40404     }
40405   }
40406   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DecreasingValueWeightPostingSource, SWIG_POINTER_NEW |  0 );
40407   return resultobj;
40408 fail:
40409   return NULL;
40410 }
40411 
40412 
_wrap_new_DecreasingValueWeightPostingSource__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)40413 SWIGINTERN PyObject *_wrap_new_DecreasingValueWeightPostingSource__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
40414   PyObject *resultobj = 0;
40415   Xapian::valueno arg1 ;
40416   unsigned int val1 ;
40417   int ecode1 = 0 ;
40418   Xapian::DecreasingValueWeightPostingSource *result = 0 ;
40419 
40420   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
40421   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
40422   if (!SWIG_IsOK(ecode1)) {
40423     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DecreasingValueWeightPostingSource" "', argument " "1"" of type '" "Xapian::valueno""'");
40424   }
40425   arg1 = static_cast< Xapian::valueno >(val1);
40426   {
40427     try {
40428       {
40429         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
40430         result = (Xapian::DecreasingValueWeightPostingSource *)new Xapian::DecreasingValueWeightPostingSource(arg1);
40431         SWIG_PYTHON_THREAD_END_ALLOW;
40432       }
40433     } catch (...) {
40434       Xapian::SetPythonException();
40435       SWIG_fail;
40436     }
40437   }
40438   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DecreasingValueWeightPostingSource, SWIG_POINTER_NEW |  0 );
40439   return resultobj;
40440 fail:
40441   return NULL;
40442 }
40443 
40444 
_wrap_new_DecreasingValueWeightPostingSource(PyObject * self,PyObject * args)40445 SWIGINTERN PyObject *_wrap_new_DecreasingValueWeightPostingSource(PyObject *self, PyObject *args) {
40446   Py_ssize_t argc;
40447   PyObject *argv[4] = {
40448     0
40449   };
40450 
40451   if (!(argc = SWIG_Python_UnpackTuple(args,"new_DecreasingValueWeightPostingSource",0,3,argv))) SWIG_fail;
40452   --argc;
40453   if (argc == 1) {
40454     return _wrap_new_DecreasingValueWeightPostingSource__SWIG_2(self, argc, argv);
40455   }
40456   if (argc == 2) {
40457     return _wrap_new_DecreasingValueWeightPostingSource__SWIG_1(self, argc, argv);
40458   }
40459   if (argc == 3) {
40460     return _wrap_new_DecreasingValueWeightPostingSource__SWIG_0(self, argc, argv);
40461   }
40462 
40463 fail:
40464   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_DecreasingValueWeightPostingSource'.\n"
40465     "  Possible C/C++ prototypes are:\n"
40466     "    Xapian::DecreasingValueWeightPostingSource::DecreasingValueWeightPostingSource(Xapian::valueno,Xapian::docid,Xapian::docid)\n"
40467     "    Xapian::DecreasingValueWeightPostingSource::DecreasingValueWeightPostingSource(Xapian::valueno,Xapian::docid)\n"
40468     "    Xapian::DecreasingValueWeightPostingSource::DecreasingValueWeightPostingSource(Xapian::valueno)\n");
40469   return 0;
40470 }
40471 
40472 
_wrap_delete_DecreasingValueWeightPostingSource(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40473 SWIGINTERN PyObject *_wrap_delete_DecreasingValueWeightPostingSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40474   PyObject *resultobj = 0;
40475   Xapian::DecreasingValueWeightPostingSource *arg1 = (Xapian::DecreasingValueWeightPostingSource *) 0 ;
40476   void *argp1 = 0 ;
40477   int res1 = 0 ;
40478   PyObject *swig_obj[1] ;
40479 
40480   if (!args) SWIG_fail;
40481   swig_obj[0] = args;
40482   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__DecreasingValueWeightPostingSource, SWIG_POINTER_DISOWN |  0 );
40483   if (!SWIG_IsOK(res1)) {
40484     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DecreasingValueWeightPostingSource" "', argument " "1"" of type '" "Xapian::DecreasingValueWeightPostingSource *""'");
40485   }
40486   arg1 = reinterpret_cast< Xapian::DecreasingValueWeightPostingSource * >(argp1);
40487   {
40488     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
40489     delete arg1;
40490     SWIG_PYTHON_THREAD_END_ALLOW;
40491   }
40492   resultobj = SWIG_Py_Void();
40493   return resultobj;
40494 fail:
40495   return NULL;
40496 }
40497 
40498 
DecreasingValueWeightPostingSource_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40499 SWIGINTERN PyObject *DecreasingValueWeightPostingSource_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40500   PyObject *obj;
40501   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
40502   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__DecreasingValueWeightPostingSource, SWIG_NewClientData(obj));
40503   return SWIG_Py_Void();
40504 }
40505 
DecreasingValueWeightPostingSource_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40506 SWIGINTERN PyObject *DecreasingValueWeightPostingSource_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40507   return SWIG_Python_InitShadowInstance(args);
40508 }
40509 
_wrap_new_ValueMapPostingSource(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40510 SWIGINTERN PyObject *_wrap_new_ValueMapPostingSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40511   PyObject *resultobj = 0;
40512   Xapian::valueno arg1 ;
40513   unsigned int val1 ;
40514   int ecode1 = 0 ;
40515   PyObject *swig_obj[1] ;
40516   Xapian::ValueMapPostingSource *result = 0 ;
40517 
40518   if (!args) SWIG_fail;
40519   swig_obj[0] = args;
40520   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
40521   if (!SWIG_IsOK(ecode1)) {
40522     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ValueMapPostingSource" "', argument " "1"" of type '" "Xapian::valueno""'");
40523   }
40524   arg1 = static_cast< Xapian::valueno >(val1);
40525   {
40526     try {
40527       {
40528         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
40529         result = (Xapian::ValueMapPostingSource *)new Xapian::ValueMapPostingSource(arg1);
40530         SWIG_PYTHON_THREAD_END_ALLOW;
40531       }
40532     } catch (...) {
40533       Xapian::SetPythonException();
40534       SWIG_fail;
40535     }
40536   }
40537   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ValueMapPostingSource, SWIG_POINTER_NEW |  0 );
40538   return resultobj;
40539 fail:
40540   return NULL;
40541 }
40542 
40543 
_wrap_ValueMapPostingSource_add_mapping(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40544 SWIGINTERN PyObject *_wrap_ValueMapPostingSource_add_mapping(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40545   PyObject *resultobj = 0;
40546   Xapian::ValueMapPostingSource *arg1 = (Xapian::ValueMapPostingSource *) 0 ;
40547   std::string *arg2 = 0 ;
40548   double arg3 ;
40549   void *argp1 = 0 ;
40550   int res1 = 0 ;
40551   int res2 = SWIG_OLDOBJ ;
40552   double val3 ;
40553   int ecode3 = 0 ;
40554   PyObject *swig_obj[3] ;
40555 
40556   if (!SWIG_Python_UnpackTuple(args,"ValueMapPostingSource_add_mapping",3,3,swig_obj)) SWIG_fail;
40557   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueMapPostingSource, 0 |  0 );
40558   if (!SWIG_IsOK(res1)) {
40559     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueMapPostingSource_add_mapping" "', argument " "1"" of type '" "Xapian::ValueMapPostingSource *""'");
40560   }
40561   arg1 = reinterpret_cast< Xapian::ValueMapPostingSource * >(argp1);
40562   {
40563     std::string *ptr = (std::string *)0;
40564     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
40565     if (!SWIG_IsOK(res2)) {
40566       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ValueMapPostingSource_add_mapping" "', argument " "2"" of type '" "std::string const &""'");
40567     }
40568     if (!ptr) {
40569       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ValueMapPostingSource_add_mapping" "', argument " "2"" of type '" "std::string const &""'");
40570     }
40571     arg2 = ptr;
40572   }
40573   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
40574   if (!SWIG_IsOK(ecode3)) {
40575     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ValueMapPostingSource_add_mapping" "', argument " "3"" of type '" "double""'");
40576   }
40577   arg3 = static_cast< double >(val3);
40578   {
40579     try {
40580       {
40581         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
40582         (arg1)->add_mapping((std::string const &)*arg2,arg3);
40583         SWIG_PYTHON_THREAD_END_ALLOW;
40584       }
40585     } catch (...) {
40586       Xapian::SetPythonException();
40587       SWIG_fail;
40588     }
40589   }
40590   resultobj = SWIG_Py_Void();
40591   if (SWIG_IsNewObj(res2)) delete arg2;
40592   return resultobj;
40593 fail:
40594   if (SWIG_IsNewObj(res2)) delete arg2;
40595   return NULL;
40596 }
40597 
40598 
_wrap_ValueMapPostingSource_clear_mappings(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40599 SWIGINTERN PyObject *_wrap_ValueMapPostingSource_clear_mappings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40600   PyObject *resultobj = 0;
40601   Xapian::ValueMapPostingSource *arg1 = (Xapian::ValueMapPostingSource *) 0 ;
40602   void *argp1 = 0 ;
40603   int res1 = 0 ;
40604   PyObject *swig_obj[1] ;
40605 
40606   if (!args) SWIG_fail;
40607   swig_obj[0] = args;
40608   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueMapPostingSource, 0 |  0 );
40609   if (!SWIG_IsOK(res1)) {
40610     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueMapPostingSource_clear_mappings" "', argument " "1"" of type '" "Xapian::ValueMapPostingSource *""'");
40611   }
40612   arg1 = reinterpret_cast< Xapian::ValueMapPostingSource * >(argp1);
40613   {
40614     try {
40615       {
40616         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
40617         (arg1)->clear_mappings();
40618         SWIG_PYTHON_THREAD_END_ALLOW;
40619       }
40620     } catch (...) {
40621       Xapian::SetPythonException();
40622       SWIG_fail;
40623     }
40624   }
40625   resultobj = SWIG_Py_Void();
40626   return resultobj;
40627 fail:
40628   return NULL;
40629 }
40630 
40631 
_wrap_ValueMapPostingSource_set_default_weight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40632 SWIGINTERN PyObject *_wrap_ValueMapPostingSource_set_default_weight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40633   PyObject *resultobj = 0;
40634   Xapian::ValueMapPostingSource *arg1 = (Xapian::ValueMapPostingSource *) 0 ;
40635   double arg2 ;
40636   void *argp1 = 0 ;
40637   int res1 = 0 ;
40638   double val2 ;
40639   int ecode2 = 0 ;
40640   PyObject *swig_obj[2] ;
40641 
40642   if (!SWIG_Python_UnpackTuple(args,"ValueMapPostingSource_set_default_weight",2,2,swig_obj)) SWIG_fail;
40643   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueMapPostingSource, 0 |  0 );
40644   if (!SWIG_IsOK(res1)) {
40645     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueMapPostingSource_set_default_weight" "', argument " "1"" of type '" "Xapian::ValueMapPostingSource *""'");
40646   }
40647   arg1 = reinterpret_cast< Xapian::ValueMapPostingSource * >(argp1);
40648   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
40649   if (!SWIG_IsOK(ecode2)) {
40650     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ValueMapPostingSource_set_default_weight" "', argument " "2"" of type '" "double""'");
40651   }
40652   arg2 = static_cast< double >(val2);
40653   {
40654     try {
40655       {
40656         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
40657         (arg1)->set_default_weight(arg2);
40658         SWIG_PYTHON_THREAD_END_ALLOW;
40659       }
40660     } catch (...) {
40661       Xapian::SetPythonException();
40662       SWIG_fail;
40663     }
40664   }
40665   resultobj = SWIG_Py_Void();
40666   return resultobj;
40667 fail:
40668   return NULL;
40669 }
40670 
40671 
_wrap_delete_ValueMapPostingSource(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40672 SWIGINTERN PyObject *_wrap_delete_ValueMapPostingSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40673   PyObject *resultobj = 0;
40674   Xapian::ValueMapPostingSource *arg1 = (Xapian::ValueMapPostingSource *) 0 ;
40675   void *argp1 = 0 ;
40676   int res1 = 0 ;
40677   PyObject *swig_obj[1] ;
40678 
40679   if (!args) SWIG_fail;
40680   swig_obj[0] = args;
40681   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueMapPostingSource, SWIG_POINTER_DISOWN |  0 );
40682   if (!SWIG_IsOK(res1)) {
40683     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ValueMapPostingSource" "', argument " "1"" of type '" "Xapian::ValueMapPostingSource *""'");
40684   }
40685   arg1 = reinterpret_cast< Xapian::ValueMapPostingSource * >(argp1);
40686   {
40687     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
40688     delete arg1;
40689     SWIG_PYTHON_THREAD_END_ALLOW;
40690   }
40691   resultobj = SWIG_Py_Void();
40692   return resultobj;
40693 fail:
40694   return NULL;
40695 }
40696 
40697 
ValueMapPostingSource_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40698 SWIGINTERN PyObject *ValueMapPostingSource_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40699   PyObject *obj;
40700   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
40701   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__ValueMapPostingSource, SWIG_NewClientData(obj));
40702   return SWIG_Py_Void();
40703 }
40704 
ValueMapPostingSource_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40705 SWIGINTERN PyObject *ValueMapPostingSource_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40706   return SWIG_Python_InitShadowInstance(args);
40707 }
40708 
_wrap_new_FixedWeightPostingSource(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40709 SWIGINTERN PyObject *_wrap_new_FixedWeightPostingSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40710   PyObject *resultobj = 0;
40711   double arg1 ;
40712   double val1 ;
40713   int ecode1 = 0 ;
40714   PyObject *swig_obj[1] ;
40715   Xapian::FixedWeightPostingSource *result = 0 ;
40716 
40717   if (!args) SWIG_fail;
40718   swig_obj[0] = args;
40719   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
40720   if (!SWIG_IsOK(ecode1)) {
40721     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FixedWeightPostingSource" "', argument " "1"" of type '" "double""'");
40722   }
40723   arg1 = static_cast< double >(val1);
40724   {
40725     try {
40726       {
40727         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
40728         result = (Xapian::FixedWeightPostingSource *)new Xapian::FixedWeightPostingSource(arg1);
40729         SWIG_PYTHON_THREAD_END_ALLOW;
40730       }
40731     } catch (...) {
40732       Xapian::SetPythonException();
40733       SWIG_fail;
40734     }
40735   }
40736   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__FixedWeightPostingSource, SWIG_POINTER_NEW |  0 );
40737   return resultobj;
40738 fail:
40739   return NULL;
40740 }
40741 
40742 
_wrap_delete_FixedWeightPostingSource(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40743 SWIGINTERN PyObject *_wrap_delete_FixedWeightPostingSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40744   PyObject *resultobj = 0;
40745   Xapian::FixedWeightPostingSource *arg1 = (Xapian::FixedWeightPostingSource *) 0 ;
40746   void *argp1 = 0 ;
40747   int res1 = 0 ;
40748   PyObject *swig_obj[1] ;
40749 
40750   if (!args) SWIG_fail;
40751   swig_obj[0] = args;
40752   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__FixedWeightPostingSource, SWIG_POINTER_DISOWN |  0 );
40753   if (!SWIG_IsOK(res1)) {
40754     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FixedWeightPostingSource" "', argument " "1"" of type '" "Xapian::FixedWeightPostingSource *""'");
40755   }
40756   arg1 = reinterpret_cast< Xapian::FixedWeightPostingSource * >(argp1);
40757   {
40758     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
40759     delete arg1;
40760     SWIG_PYTHON_THREAD_END_ALLOW;
40761   }
40762   resultobj = SWIG_Py_Void();
40763   return resultobj;
40764 fail:
40765   return NULL;
40766 }
40767 
40768 
FixedWeightPostingSource_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40769 SWIGINTERN PyObject *FixedWeightPostingSource_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40770   PyObject *obj;
40771   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
40772   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__FixedWeightPostingSource, SWIG_NewClientData(obj));
40773   return SWIG_Py_Void();
40774 }
40775 
FixedWeightPostingSource_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40776 SWIGINTERN PyObject *FixedWeightPostingSource_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40777   return SWIG_Python_InitShadowInstance(args);
40778 }
40779 
_wrap_new_MatchSpy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40780 SWIGINTERN PyObject *_wrap_new_MatchSpy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40781   PyObject *resultobj = 0;
40782   PyObject *arg1 = (PyObject *) 0 ;
40783   PyObject *swig_obj[1] ;
40784   Xapian::MatchSpy *result = 0 ;
40785 
40786   if (!args) SWIG_fail;
40787   swig_obj[0] = args;
40788   arg1 = swig_obj[0];
40789   {
40790     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
40791     if ( arg1 != Py_None ) {
40792       /* subclassed */
40793       result = (Xapian::MatchSpy *)new SwigDirector_MatchSpy(arg1);
40794     } else {
40795       SWIG_SetErrorMsg(PyExc_RuntimeError,"accessing abstract class or protected constructor");
40796       SWIG_fail;
40797     }
40798 
40799     SWIG_PYTHON_THREAD_END_ALLOW;
40800   }
40801   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__MatchSpy, SWIG_POINTER_NEW |  0 );
40802   return resultobj;
40803 fail:
40804   return NULL;
40805 }
40806 
40807 
_wrap_delete_MatchSpy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40808 SWIGINTERN PyObject *_wrap_delete_MatchSpy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40809   PyObject *resultobj = 0;
40810   Xapian::MatchSpy *arg1 = (Xapian::MatchSpy *) 0 ;
40811   void *argp1 = 0 ;
40812   int res1 = 0 ;
40813   PyObject *swig_obj[1] ;
40814 
40815   if (!args) SWIG_fail;
40816   swig_obj[0] = args;
40817   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MatchSpy, SWIG_POINTER_DISOWN |  0 );
40818   if (!SWIG_IsOK(res1)) {
40819     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MatchSpy" "', argument " "1"" of type '" "Xapian::MatchSpy *""'");
40820   }
40821   arg1 = reinterpret_cast< Xapian::MatchSpy * >(argp1);
40822   {
40823     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
40824     delete arg1;
40825     SWIG_PYTHON_THREAD_END_ALLOW;
40826   }
40827   resultobj = SWIG_Py_Void();
40828   return resultobj;
40829 fail:
40830   return NULL;
40831 }
40832 
40833 
_wrap_MatchSpy___call__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40834 SWIGINTERN PyObject *_wrap_MatchSpy___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40835   PyObject *resultobj = 0;
40836   Xapian::MatchSpy *arg1 = (Xapian::MatchSpy *) 0 ;
40837   Xapian::Document *arg2 = 0 ;
40838   double arg3 ;
40839   void *argp1 = 0 ;
40840   int res1 = 0 ;
40841   void *argp2 = 0 ;
40842   int res2 = 0 ;
40843   double val3 ;
40844   int ecode3 = 0 ;
40845   PyObject *swig_obj[3] ;
40846   Swig::Director *director = 0;
40847   bool upcall = false;
40848 
40849   if (!SWIG_Python_UnpackTuple(args,"MatchSpy___call__",3,3,swig_obj)) SWIG_fail;
40850   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MatchSpy, 0 |  0 );
40851   if (!SWIG_IsOK(res1)) {
40852     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MatchSpy___call__" "', argument " "1"" of type '" "Xapian::MatchSpy *""'");
40853   }
40854   arg1 = reinterpret_cast< Xapian::MatchSpy * >(argp1);
40855   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__Document,  0  | 0);
40856   if (!SWIG_IsOK(res2)) {
40857     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MatchSpy___call__" "', argument " "2"" of type '" "Xapian::Document const &""'");
40858   }
40859   if (!argp2) {
40860     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MatchSpy___call__" "', argument " "2"" of type '" "Xapian::Document const &""'");
40861   }
40862   arg2 = reinterpret_cast< Xapian::Document * >(argp2);
40863   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
40864   if (!SWIG_IsOK(ecode3)) {
40865     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MatchSpy___call__" "', argument " "3"" of type '" "double""'");
40866   }
40867   arg3 = static_cast< double >(val3);
40868   director = SWIG_DIRECTOR_CAST(arg1);
40869   upcall = (director && (director->swig_get_self()==swig_obj[0]));
40870   try {
40871     {
40872       try {
40873         if (upcall) {
40874           Swig::DirectorPureVirtualException::raise("Xapian::MatchSpy::operator ()");
40875         } else {
40876           (arg1)->operator ()((Xapian::Document const &)*arg2,arg3);
40877         }
40878       } catch (...) {
40879         Xapian::SetPythonException();
40880         SWIG_fail;
40881       }
40882     }
40883   } catch (Swig::DirectorException&) {
40884     SWIG_fail;
40885   }
40886   resultobj = SWIG_Py_Void();
40887   return resultobj;
40888 fail:
40889   return NULL;
40890 }
40891 
40892 
_wrap_MatchSpy_name(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40893 SWIGINTERN PyObject *_wrap_MatchSpy_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40894   PyObject *resultobj = 0;
40895   Xapian::MatchSpy *arg1 = (Xapian::MatchSpy *) 0 ;
40896   void *argp1 = 0 ;
40897   int res1 = 0 ;
40898   PyObject *swig_obj[1] ;
40899   Swig::Director *director = 0;
40900   bool upcall = false;
40901   std::string result;
40902 
40903   if (!args) SWIG_fail;
40904   swig_obj[0] = args;
40905   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MatchSpy, 0 |  0 );
40906   if (!SWIG_IsOK(res1)) {
40907     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MatchSpy_name" "', argument " "1"" of type '" "Xapian::MatchSpy const *""'");
40908   }
40909   arg1 = reinterpret_cast< Xapian::MatchSpy * >(argp1);
40910   director = SWIG_DIRECTOR_CAST(arg1);
40911   upcall = (director && (director->swig_get_self()==swig_obj[0]));
40912   try {
40913     {
40914       try {
40915         if (upcall) {
40916           result = ((Xapian::MatchSpy const *)arg1)->Xapian::MatchSpy::name();
40917         } else {
40918           result = ((Xapian::MatchSpy const *)arg1)->name();
40919         }
40920       } catch (...) {
40921         Xapian::SetPythonException();
40922         SWIG_fail;
40923       }
40924     }
40925   } catch (Swig::DirectorException&) {
40926     SWIG_fail;
40927   }
40928   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
40929   return resultobj;
40930 fail:
40931   return NULL;
40932 }
40933 
40934 
_wrap_MatchSpy_merge_results(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40935 SWIGINTERN PyObject *_wrap_MatchSpy_merge_results(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40936   PyObject *resultobj = 0;
40937   Xapian::MatchSpy *arg1 = (Xapian::MatchSpy *) 0 ;
40938   std::string *arg2 = 0 ;
40939   void *argp1 = 0 ;
40940   int res1 = 0 ;
40941   int res2 = SWIG_OLDOBJ ;
40942   PyObject *swig_obj[2] ;
40943   Swig::Director *director = 0;
40944   bool upcall = false;
40945 
40946   if (!SWIG_Python_UnpackTuple(args,"MatchSpy_merge_results",2,2,swig_obj)) SWIG_fail;
40947   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MatchSpy, 0 |  0 );
40948   if (!SWIG_IsOK(res1)) {
40949     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MatchSpy_merge_results" "', argument " "1"" of type '" "Xapian::MatchSpy *""'");
40950   }
40951   arg1 = reinterpret_cast< Xapian::MatchSpy * >(argp1);
40952   {
40953     std::string *ptr = (std::string *)0;
40954     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
40955     if (!SWIG_IsOK(res2)) {
40956       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MatchSpy_merge_results" "', argument " "2"" of type '" "std::string const &""'");
40957     }
40958     if (!ptr) {
40959       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MatchSpy_merge_results" "', argument " "2"" of type '" "std::string const &""'");
40960     }
40961     arg2 = ptr;
40962   }
40963   director = SWIG_DIRECTOR_CAST(arg1);
40964   upcall = (director && (director->swig_get_self()==swig_obj[0]));
40965   try {
40966     {
40967       try {
40968         if (upcall) {
40969           (arg1)->Xapian::MatchSpy::merge_results((std::string const &)*arg2);
40970         } else {
40971           (arg1)->merge_results((std::string const &)*arg2);
40972         }
40973       } catch (...) {
40974         Xapian::SetPythonException();
40975         SWIG_fail;
40976       }
40977     }
40978   } catch (Swig::DirectorException&) {
40979     SWIG_fail;
40980   }
40981   resultobj = SWIG_Py_Void();
40982   if (SWIG_IsNewObj(res2)) delete arg2;
40983   return resultobj;
40984 fail:
40985   if (SWIG_IsNewObj(res2)) delete arg2;
40986   return NULL;
40987 }
40988 
40989 
_wrap_MatchSpy___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40990 SWIGINTERN PyObject *_wrap_MatchSpy___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40991   PyObject *resultobj = 0;
40992   Xapian::MatchSpy *arg1 = (Xapian::MatchSpy *) 0 ;
40993   void *argp1 = 0 ;
40994   int res1 = 0 ;
40995   PyObject *swig_obj[1] ;
40996   Swig::Director *director = 0;
40997   bool upcall = false;
40998   std::string result;
40999 
41000   if (!args) SWIG_fail;
41001   swig_obj[0] = args;
41002   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MatchSpy, 0 |  0 );
41003   if (!SWIG_IsOK(res1)) {
41004     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MatchSpy___str__" "', argument " "1"" of type '" "Xapian::MatchSpy const *""'");
41005   }
41006   arg1 = reinterpret_cast< Xapian::MatchSpy * >(argp1);
41007   director = SWIG_DIRECTOR_CAST(arg1);
41008   upcall = (director && (director->swig_get_self()==swig_obj[0]));
41009   try {
41010     {
41011       try {
41012         if (upcall) {
41013           result = ((Xapian::MatchSpy const *)arg1)->Xapian::MatchSpy::get_description();
41014         } else {
41015           result = ((Xapian::MatchSpy const *)arg1)->get_description();
41016         }
41017       } catch (...) {
41018         Xapian::SetPythonException();
41019         SWIG_fail;
41020       }
41021     }
41022   } catch (Swig::DirectorException&) {
41023     SWIG_fail;
41024   }
41025   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
41026   return resultobj;
41027 fail:
41028   return NULL;
41029 }
41030 
41031 
_wrap_MatchSpy_release(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41032 SWIGINTERN PyObject *_wrap_MatchSpy_release(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41033   PyObject *resultobj = 0;
41034   Xapian::MatchSpy *arg1 = (Xapian::MatchSpy *) 0 ;
41035   void *argp1 = 0 ;
41036   int res1 = 0 ;
41037   PyObject *swig_obj[1] ;
41038   Swig::Director *director = 0;
41039   Xapian::MatchSpy *result = 0 ;
41040 
41041   if (!args) SWIG_fail;
41042   swig_obj[0] = args;
41043   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MatchSpy, 0 |  0 );
41044   if (!SWIG_IsOK(res1)) {
41045     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MatchSpy_release" "', argument " "1"" of type '" "Xapian::MatchSpy const *""'");
41046   }
41047   arg1 = reinterpret_cast< Xapian::MatchSpy * >(argp1);
41048   {
41049     try {
41050       {
41051         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41052         result = (Xapian::MatchSpy *)((Xapian::MatchSpy const *)arg1)->release();
41053         SWIG_PYTHON_THREAD_END_ALLOW;
41054       }
41055     } catch (...) {
41056       Xapian::SetPythonException();
41057       SWIG_fail;
41058     }
41059   }
41060   director = SWIG_DIRECTOR_CAST(result);
41061   if (director) {
41062     resultobj = director->swig_get_self();
41063     Py_INCREF(resultobj);
41064   } else {
41065     resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__MatchSpy, 0 |  0 );
41066   }
41067   return resultobj;
41068 fail:
41069   return NULL;
41070 }
41071 
41072 
_wrap_disown_MatchSpy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41073 SWIGINTERN PyObject *_wrap_disown_MatchSpy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41074   PyObject *resultobj = 0;
41075   Xapian::MatchSpy *arg1 = (Xapian::MatchSpy *) 0 ;
41076   void *argp1 = 0 ;
41077   int res1 = 0 ;
41078   PyObject *swig_obj[1] ;
41079 
41080   if (!args) SWIG_fail;
41081   swig_obj[0] = args;
41082   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MatchSpy, 0 |  0 );
41083   if (!SWIG_IsOK(res1)) {
41084     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_MatchSpy" "', argument " "1"" of type '" "Xapian::MatchSpy *""'");
41085   }
41086   arg1 = reinterpret_cast< Xapian::MatchSpy * >(argp1);
41087   {
41088     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41089     {
41090       Swig::Director *director = SWIG_DIRECTOR_CAST(arg1);
41091       if (director) director->swig_disown();
41092     }
41093 
41094     SWIG_PYTHON_THREAD_END_ALLOW;
41095   }
41096   resultobj = SWIG_Py_Void();
41097   return resultobj;
41098 fail:
41099   return NULL;
41100 }
41101 
41102 
MatchSpy_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41103 SWIGINTERN PyObject *MatchSpy_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41104   PyObject *obj;
41105   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
41106   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__MatchSpy, SWIG_NewClientData(obj));
41107   return SWIG_Py_Void();
41108 }
41109 
MatchSpy_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41110 SWIGINTERN PyObject *MatchSpy_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41111   return SWIG_Python_InitShadowInstance(args);
41112 }
41113 
_wrap_new_ValueCountMatchSpy__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))41114 SWIGINTERN PyObject *_wrap_new_ValueCountMatchSpy__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
41115   PyObject *resultobj = 0;
41116   Xapian::ValueCountMatchSpy *result = 0 ;
41117 
41118   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
41119   {
41120     try {
41121       {
41122         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41123         result = (Xapian::ValueCountMatchSpy *)new Xapian::ValueCountMatchSpy();
41124         SWIG_PYTHON_THREAD_END_ALLOW;
41125       }
41126     } catch (...) {
41127       Xapian::SetPythonException();
41128       SWIG_fail;
41129     }
41130   }
41131   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ValueCountMatchSpy, SWIG_POINTER_NEW |  0 );
41132   return resultobj;
41133 fail:
41134   return NULL;
41135 }
41136 
41137 
_wrap_new_ValueCountMatchSpy__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)41138 SWIGINTERN PyObject *_wrap_new_ValueCountMatchSpy__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
41139   PyObject *resultobj = 0;
41140   Xapian::valueno arg1 ;
41141   unsigned int val1 ;
41142   int ecode1 = 0 ;
41143   Xapian::ValueCountMatchSpy *result = 0 ;
41144 
41145   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
41146   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
41147   if (!SWIG_IsOK(ecode1)) {
41148     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ValueCountMatchSpy" "', argument " "1"" of type '" "Xapian::valueno""'");
41149   }
41150   arg1 = static_cast< Xapian::valueno >(val1);
41151   {
41152     try {
41153       {
41154         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41155         result = (Xapian::ValueCountMatchSpy *)new Xapian::ValueCountMatchSpy(arg1);
41156         SWIG_PYTHON_THREAD_END_ALLOW;
41157       }
41158     } catch (...) {
41159       Xapian::SetPythonException();
41160       SWIG_fail;
41161     }
41162   }
41163   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ValueCountMatchSpy, SWIG_POINTER_NEW |  0 );
41164   return resultobj;
41165 fail:
41166   return NULL;
41167 }
41168 
41169 
_wrap_new_ValueCountMatchSpy(PyObject * self,PyObject * args)41170 SWIGINTERN PyObject *_wrap_new_ValueCountMatchSpy(PyObject *self, PyObject *args) {
41171   Py_ssize_t argc;
41172   PyObject *argv[2] = {
41173     0
41174   };
41175 
41176   if (!(argc = SWIG_Python_UnpackTuple(args,"new_ValueCountMatchSpy",0,1,argv))) SWIG_fail;
41177   --argc;
41178   if (argc == 0) {
41179     return _wrap_new_ValueCountMatchSpy__SWIG_0(self, argc, argv);
41180   }
41181   if (argc == 1) {
41182     return _wrap_new_ValueCountMatchSpy__SWIG_1(self, argc, argv);
41183   }
41184 
41185 fail:
41186   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ValueCountMatchSpy'.\n"
41187     "  Possible C/C++ prototypes are:\n"
41188     "    Xapian::ValueCountMatchSpy::ValueCountMatchSpy()\n"
41189     "    Xapian::ValueCountMatchSpy::ValueCountMatchSpy(Xapian::valueno)\n");
41190   return 0;
41191 }
41192 
41193 
_wrap_ValueCountMatchSpy_get_total(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41194 SWIGINTERN PyObject *_wrap_ValueCountMatchSpy_get_total(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41195   PyObject *resultobj = 0;
41196   Xapian::ValueCountMatchSpy *arg1 = (Xapian::ValueCountMatchSpy *) 0 ;
41197   void *argp1 = 0 ;
41198   int res1 = 0 ;
41199   PyObject *swig_obj[1] ;
41200   size_t result;
41201 
41202   if (!args) SWIG_fail;
41203   swig_obj[0] = args;
41204   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueCountMatchSpy, 0 |  0 );
41205   if (!SWIG_IsOK(res1)) {
41206     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueCountMatchSpy_get_total" "', argument " "1"" of type '" "Xapian::ValueCountMatchSpy const *""'");
41207   }
41208   arg1 = reinterpret_cast< Xapian::ValueCountMatchSpy * >(argp1);
41209   {
41210     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41211     result = ((Xapian::ValueCountMatchSpy const *)arg1)->get_total();
41212     SWIG_PYTHON_THREAD_END_ALLOW;
41213   }
41214   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
41215   return resultobj;
41216 fail:
41217   return NULL;
41218 }
41219 
41220 
_wrap_ValueCountMatchSpy_values_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41221 SWIGINTERN PyObject *_wrap_ValueCountMatchSpy_values_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41222   PyObject *resultobj = 0;
41223   Xapian::ValueCountMatchSpy *arg1 = (Xapian::ValueCountMatchSpy *) 0 ;
41224   void *argp1 = 0 ;
41225   int res1 = 0 ;
41226   PyObject *swig_obj[1] ;
41227   Xapian::TermIterator result;
41228 
41229   if (!args) SWIG_fail;
41230   swig_obj[0] = args;
41231   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueCountMatchSpy, 0 |  0 );
41232   if (!SWIG_IsOK(res1)) {
41233     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueCountMatchSpy_values_begin" "', argument " "1"" of type '" "Xapian::ValueCountMatchSpy const *""'");
41234   }
41235   arg1 = reinterpret_cast< Xapian::ValueCountMatchSpy * >(argp1);
41236   {
41237     try {
41238       {
41239         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41240         result = ((Xapian::ValueCountMatchSpy const *)arg1)->values_begin();
41241         SWIG_PYTHON_THREAD_END_ALLOW;
41242       }
41243     } catch (...) {
41244       Xapian::SetPythonException();
41245       SWIG_fail;
41246     }
41247   }
41248   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
41249   return resultobj;
41250 fail:
41251   return NULL;
41252 }
41253 
41254 
_wrap_ValueCountMatchSpy_values_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41255 SWIGINTERN PyObject *_wrap_ValueCountMatchSpy_values_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41256   PyObject *resultobj = 0;
41257   Xapian::ValueCountMatchSpy *arg1 = (Xapian::ValueCountMatchSpy *) 0 ;
41258   void *argp1 = 0 ;
41259   int res1 = 0 ;
41260   PyObject *swig_obj[1] ;
41261   Xapian::TermIterator result;
41262 
41263   if (!args) SWIG_fail;
41264   swig_obj[0] = args;
41265   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueCountMatchSpy, 0 |  0 );
41266   if (!SWIG_IsOK(res1)) {
41267     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueCountMatchSpy_values_end" "', argument " "1"" of type '" "Xapian::ValueCountMatchSpy const *""'");
41268   }
41269   arg1 = reinterpret_cast< Xapian::ValueCountMatchSpy * >(argp1);
41270   {
41271     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41272     result = ((Xapian::ValueCountMatchSpy const *)arg1)->values_end();
41273     SWIG_PYTHON_THREAD_END_ALLOW;
41274   }
41275   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
41276   return resultobj;
41277 fail:
41278   return NULL;
41279 }
41280 
41281 
_wrap_ValueCountMatchSpy_top_values_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41282 SWIGINTERN PyObject *_wrap_ValueCountMatchSpy_top_values_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41283   PyObject *resultobj = 0;
41284   Xapian::ValueCountMatchSpy *arg1 = (Xapian::ValueCountMatchSpy *) 0 ;
41285   size_t arg2 ;
41286   void *argp1 = 0 ;
41287   int res1 = 0 ;
41288   size_t val2 ;
41289   int ecode2 = 0 ;
41290   PyObject *swig_obj[2] ;
41291   Xapian::TermIterator result;
41292 
41293   if (!SWIG_Python_UnpackTuple(args,"ValueCountMatchSpy_top_values_begin",2,2,swig_obj)) SWIG_fail;
41294   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueCountMatchSpy, 0 |  0 );
41295   if (!SWIG_IsOK(res1)) {
41296     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueCountMatchSpy_top_values_begin" "', argument " "1"" of type '" "Xapian::ValueCountMatchSpy const *""'");
41297   }
41298   arg1 = reinterpret_cast< Xapian::ValueCountMatchSpy * >(argp1);
41299   ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
41300   if (!SWIG_IsOK(ecode2)) {
41301     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ValueCountMatchSpy_top_values_begin" "', argument " "2"" of type '" "size_t""'");
41302   }
41303   arg2 = static_cast< size_t >(val2);
41304   {
41305     try {
41306       {
41307         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41308         result = ((Xapian::ValueCountMatchSpy const *)arg1)->top_values_begin(arg2);
41309         SWIG_PYTHON_THREAD_END_ALLOW;
41310       }
41311     } catch (...) {
41312       Xapian::SetPythonException();
41313       SWIG_fail;
41314     }
41315   }
41316   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
41317   return resultobj;
41318 fail:
41319   return NULL;
41320 }
41321 
41322 
_wrap_ValueCountMatchSpy_top_values_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41323 SWIGINTERN PyObject *_wrap_ValueCountMatchSpy_top_values_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41324   PyObject *resultobj = 0;
41325   Xapian::ValueCountMatchSpy *arg1 = (Xapian::ValueCountMatchSpy *) 0 ;
41326   size_t arg2 ;
41327   void *argp1 = 0 ;
41328   int res1 = 0 ;
41329   size_t val2 ;
41330   int ecode2 = 0 ;
41331   PyObject *swig_obj[2] ;
41332   Xapian::TermIterator result;
41333 
41334   if (!SWIG_Python_UnpackTuple(args,"ValueCountMatchSpy_top_values_end",2,2,swig_obj)) SWIG_fail;
41335   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueCountMatchSpy, 0 |  0 );
41336   if (!SWIG_IsOK(res1)) {
41337     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueCountMatchSpy_top_values_end" "', argument " "1"" of type '" "Xapian::ValueCountMatchSpy const *""'");
41338   }
41339   arg1 = reinterpret_cast< Xapian::ValueCountMatchSpy * >(argp1);
41340   ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
41341   if (!SWIG_IsOK(ecode2)) {
41342     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ValueCountMatchSpy_top_values_end" "', argument " "2"" of type '" "size_t""'");
41343   }
41344   arg2 = static_cast< size_t >(val2);
41345   {
41346     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41347     result = ((Xapian::ValueCountMatchSpy const *)arg1)->top_values_end(arg2);
41348     SWIG_PYTHON_THREAD_END_ALLOW;
41349   }
41350   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
41351   return resultobj;
41352 fail:
41353   return NULL;
41354 }
41355 
41356 
_wrap_delete_ValueCountMatchSpy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41357 SWIGINTERN PyObject *_wrap_delete_ValueCountMatchSpy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41358   PyObject *resultobj = 0;
41359   Xapian::ValueCountMatchSpy *arg1 = (Xapian::ValueCountMatchSpy *) 0 ;
41360   void *argp1 = 0 ;
41361   int res1 = 0 ;
41362   PyObject *swig_obj[1] ;
41363 
41364   if (!args) SWIG_fail;
41365   swig_obj[0] = args;
41366   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueCountMatchSpy, SWIG_POINTER_DISOWN |  0 );
41367   if (!SWIG_IsOK(res1)) {
41368     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ValueCountMatchSpy" "', argument " "1"" of type '" "Xapian::ValueCountMatchSpy *""'");
41369   }
41370   arg1 = reinterpret_cast< Xapian::ValueCountMatchSpy * >(argp1);
41371   {
41372     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41373     delete arg1;
41374     SWIG_PYTHON_THREAD_END_ALLOW;
41375   }
41376   resultobj = SWIG_Py_Void();
41377   return resultobj;
41378 fail:
41379   return NULL;
41380 }
41381 
41382 
ValueCountMatchSpy_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41383 SWIGINTERN PyObject *ValueCountMatchSpy_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41384   PyObject *obj;
41385   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
41386   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__ValueCountMatchSpy, SWIG_NewClientData(obj));
41387   return SWIG_Py_Void();
41388 }
41389 
ValueCountMatchSpy_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41390 SWIGINTERN PyObject *ValueCountMatchSpy_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41391   return SWIG_Python_InitShadowInstance(args);
41392 }
41393 
_wrap_miles_to_metres(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41394 SWIGINTERN PyObject *_wrap_miles_to_metres(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41395   PyObject *resultobj = 0;
41396   double arg1 ;
41397   double val1 ;
41398   int ecode1 = 0 ;
41399   PyObject *swig_obj[1] ;
41400   double result;
41401 
41402   if (!args) SWIG_fail;
41403   swig_obj[0] = args;
41404   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
41405   if (!SWIG_IsOK(ecode1)) {
41406     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "miles_to_metres" "', argument " "1"" of type '" "double""'");
41407   }
41408   arg1 = static_cast< double >(val1);
41409   {
41410     try {
41411       {
41412         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41413         result = (double)Xapian::miles_to_metres(arg1);
41414         SWIG_PYTHON_THREAD_END_ALLOW;
41415       }
41416     } catch (...) {
41417       Xapian::SetPythonException();
41418       SWIG_fail;
41419     }
41420   }
41421   resultobj = SWIG_From_double(static_cast< double >(result));
41422   return resultobj;
41423 fail:
41424   return NULL;
41425 }
41426 
41427 
_wrap_metres_to_miles(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41428 SWIGINTERN PyObject *_wrap_metres_to_miles(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41429   PyObject *resultobj = 0;
41430   double arg1 ;
41431   double val1 ;
41432   int ecode1 = 0 ;
41433   PyObject *swig_obj[1] ;
41434   double result;
41435 
41436   if (!args) SWIG_fail;
41437   swig_obj[0] = args;
41438   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
41439   if (!SWIG_IsOK(ecode1)) {
41440     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "metres_to_miles" "', argument " "1"" of type '" "double""'");
41441   }
41442   arg1 = static_cast< double >(val1);
41443   {
41444     try {
41445       {
41446         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41447         result = (double)Xapian::metres_to_miles(arg1);
41448         SWIG_PYTHON_THREAD_END_ALLOW;
41449       }
41450     } catch (...) {
41451       Xapian::SetPythonException();
41452       SWIG_fail;
41453     }
41454   }
41455   resultobj = SWIG_From_double(static_cast< double >(result));
41456   return resultobj;
41457 fail:
41458   return NULL;
41459 }
41460 
41461 
_wrap_LatLongCoord_latitude_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41462 SWIGINTERN PyObject *_wrap_LatLongCoord_latitude_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41463   PyObject *resultobj = 0;
41464   Xapian::LatLongCoord *arg1 = (Xapian::LatLongCoord *) 0 ;
41465   double arg2 ;
41466   void *argp1 = 0 ;
41467   int res1 = 0 ;
41468   double val2 ;
41469   int ecode2 = 0 ;
41470   PyObject *swig_obj[2] ;
41471 
41472   if (!SWIG_Python_UnpackTuple(args,"LatLongCoord_latitude_set",2,2,swig_obj)) SWIG_fail;
41473   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongCoord, 0 |  0 );
41474   if (!SWIG_IsOK(res1)) {
41475     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoord_latitude_set" "', argument " "1"" of type '" "Xapian::LatLongCoord *""'");
41476   }
41477   arg1 = reinterpret_cast< Xapian::LatLongCoord * >(argp1);
41478   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
41479   if (!SWIG_IsOK(ecode2)) {
41480     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LatLongCoord_latitude_set" "', argument " "2"" of type '" "double""'");
41481   }
41482   arg2 = static_cast< double >(val2);
41483   {
41484     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41485     if (arg1) (arg1)->latitude = arg2;
41486     SWIG_PYTHON_THREAD_END_ALLOW;
41487   }
41488   resultobj = SWIG_Py_Void();
41489   return resultobj;
41490 fail:
41491   return NULL;
41492 }
41493 
41494 
_wrap_LatLongCoord_latitude_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41495 SWIGINTERN PyObject *_wrap_LatLongCoord_latitude_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41496   PyObject *resultobj = 0;
41497   Xapian::LatLongCoord *arg1 = (Xapian::LatLongCoord *) 0 ;
41498   void *argp1 = 0 ;
41499   int res1 = 0 ;
41500   PyObject *swig_obj[1] ;
41501   double result;
41502 
41503   if (!args) SWIG_fail;
41504   swig_obj[0] = args;
41505   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongCoord, 0 |  0 );
41506   if (!SWIG_IsOK(res1)) {
41507     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoord_latitude_get" "', argument " "1"" of type '" "Xapian::LatLongCoord *""'");
41508   }
41509   arg1 = reinterpret_cast< Xapian::LatLongCoord * >(argp1);
41510   {
41511     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41512     result = (double) ((arg1)->latitude);
41513     SWIG_PYTHON_THREAD_END_ALLOW;
41514   }
41515   resultobj = SWIG_From_double(static_cast< double >(result));
41516   return resultobj;
41517 fail:
41518   return NULL;
41519 }
41520 
41521 
_wrap_LatLongCoord_longitude_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41522 SWIGINTERN PyObject *_wrap_LatLongCoord_longitude_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41523   PyObject *resultobj = 0;
41524   Xapian::LatLongCoord *arg1 = (Xapian::LatLongCoord *) 0 ;
41525   double arg2 ;
41526   void *argp1 = 0 ;
41527   int res1 = 0 ;
41528   double val2 ;
41529   int ecode2 = 0 ;
41530   PyObject *swig_obj[2] ;
41531 
41532   if (!SWIG_Python_UnpackTuple(args,"LatLongCoord_longitude_set",2,2,swig_obj)) SWIG_fail;
41533   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongCoord, 0 |  0 );
41534   if (!SWIG_IsOK(res1)) {
41535     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoord_longitude_set" "', argument " "1"" of type '" "Xapian::LatLongCoord *""'");
41536   }
41537   arg1 = reinterpret_cast< Xapian::LatLongCoord * >(argp1);
41538   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
41539   if (!SWIG_IsOK(ecode2)) {
41540     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LatLongCoord_longitude_set" "', argument " "2"" of type '" "double""'");
41541   }
41542   arg2 = static_cast< double >(val2);
41543   {
41544     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41545     if (arg1) (arg1)->longitude = arg2;
41546     SWIG_PYTHON_THREAD_END_ALLOW;
41547   }
41548   resultobj = SWIG_Py_Void();
41549   return resultobj;
41550 fail:
41551   return NULL;
41552 }
41553 
41554 
_wrap_LatLongCoord_longitude_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41555 SWIGINTERN PyObject *_wrap_LatLongCoord_longitude_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41556   PyObject *resultobj = 0;
41557   Xapian::LatLongCoord *arg1 = (Xapian::LatLongCoord *) 0 ;
41558   void *argp1 = 0 ;
41559   int res1 = 0 ;
41560   PyObject *swig_obj[1] ;
41561   double result;
41562 
41563   if (!args) SWIG_fail;
41564   swig_obj[0] = args;
41565   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongCoord, 0 |  0 );
41566   if (!SWIG_IsOK(res1)) {
41567     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoord_longitude_get" "', argument " "1"" of type '" "Xapian::LatLongCoord *""'");
41568   }
41569   arg1 = reinterpret_cast< Xapian::LatLongCoord * >(argp1);
41570   {
41571     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41572     result = (double) ((arg1)->longitude);
41573     SWIG_PYTHON_THREAD_END_ALLOW;
41574   }
41575   resultobj = SWIG_From_double(static_cast< double >(result));
41576   return resultobj;
41577 fail:
41578   return NULL;
41579 }
41580 
41581 
_wrap_new_LatLongCoord__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))41582 SWIGINTERN PyObject *_wrap_new_LatLongCoord__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
41583   PyObject *resultobj = 0;
41584   Xapian::LatLongCoord *result = 0 ;
41585 
41586   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
41587   {
41588     try {
41589       {
41590         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41591         result = (Xapian::LatLongCoord *)new Xapian::LatLongCoord();
41592         SWIG_PYTHON_THREAD_END_ALLOW;
41593       }
41594     } catch (...) {
41595       Xapian::SetPythonException();
41596       SWIG_fail;
41597     }
41598   }
41599   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongCoord, SWIG_POINTER_NEW |  0 );
41600   return resultobj;
41601 fail:
41602   return NULL;
41603 }
41604 
41605 
_wrap_new_LatLongCoord__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)41606 SWIGINTERN PyObject *_wrap_new_LatLongCoord__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
41607   PyObject *resultobj = 0;
41608   double arg1 ;
41609   double arg2 ;
41610   double val1 ;
41611   int ecode1 = 0 ;
41612   double val2 ;
41613   int ecode2 = 0 ;
41614   Xapian::LatLongCoord *result = 0 ;
41615 
41616   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
41617   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
41618   if (!SWIG_IsOK(ecode1)) {
41619     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongCoord" "', argument " "1"" of type '" "double""'");
41620   }
41621   arg1 = static_cast< double >(val1);
41622   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
41623   if (!SWIG_IsOK(ecode2)) {
41624     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_LatLongCoord" "', argument " "2"" of type '" "double""'");
41625   }
41626   arg2 = static_cast< double >(val2);
41627   {
41628     try {
41629       {
41630         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41631         result = (Xapian::LatLongCoord *)new Xapian::LatLongCoord(arg1,arg2);
41632         SWIG_PYTHON_THREAD_END_ALLOW;
41633       }
41634     } catch (...) {
41635       Xapian::SetPythonException();
41636       SWIG_fail;
41637     }
41638   }
41639   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongCoord, SWIG_POINTER_NEW |  0 );
41640   return resultobj;
41641 fail:
41642   return NULL;
41643 }
41644 
41645 
_wrap_new_LatLongCoord(PyObject * self,PyObject * args)41646 SWIGINTERN PyObject *_wrap_new_LatLongCoord(PyObject *self, PyObject *args) {
41647   Py_ssize_t argc;
41648   PyObject *argv[3] = {
41649     0
41650   };
41651 
41652   if (!(argc = SWIG_Python_UnpackTuple(args,"new_LatLongCoord",0,2,argv))) SWIG_fail;
41653   --argc;
41654   if (argc == 0) {
41655     return _wrap_new_LatLongCoord__SWIG_0(self, argc, argv);
41656   }
41657   if (argc == 2) {
41658     return _wrap_new_LatLongCoord__SWIG_1(self, argc, argv);
41659   }
41660 
41661 fail:
41662   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_LatLongCoord'.\n"
41663     "  Possible C/C++ prototypes are:\n"
41664     "    Xapian::LatLongCoord::LatLongCoord()\n"
41665     "    Xapian::LatLongCoord::LatLongCoord(double,double)\n");
41666   return 0;
41667 }
41668 
41669 
_wrap_LatLongCoord_unserialise(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41670 SWIGINTERN PyObject *_wrap_LatLongCoord_unserialise(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41671   PyObject *resultobj = 0;
41672   Xapian::LatLongCoord *arg1 = (Xapian::LatLongCoord *) 0 ;
41673   std::string *arg2 = 0 ;
41674   void *argp1 = 0 ;
41675   int res1 = 0 ;
41676   int res2 = SWIG_OLDOBJ ;
41677   PyObject *swig_obj[2] ;
41678 
41679   if (!SWIG_Python_UnpackTuple(args,"LatLongCoord_unserialise",2,2,swig_obj)) SWIG_fail;
41680   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongCoord, 0 |  0 );
41681   if (!SWIG_IsOK(res1)) {
41682     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoord_unserialise" "', argument " "1"" of type '" "Xapian::LatLongCoord *""'");
41683   }
41684   arg1 = reinterpret_cast< Xapian::LatLongCoord * >(argp1);
41685   {
41686     std::string *ptr = (std::string *)0;
41687     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
41688     if (!SWIG_IsOK(res2)) {
41689       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LatLongCoord_unserialise" "', argument " "2"" of type '" "std::string const &""'");
41690     }
41691     if (!ptr) {
41692       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LatLongCoord_unserialise" "', argument " "2"" of type '" "std::string const &""'");
41693     }
41694     arg2 = ptr;
41695   }
41696   {
41697     try {
41698       {
41699         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41700         (arg1)->unserialise((std::string const &)*arg2);
41701         SWIG_PYTHON_THREAD_END_ALLOW;
41702       }
41703     } catch (...) {
41704       Xapian::SetPythonException();
41705       SWIG_fail;
41706     }
41707   }
41708   resultobj = SWIG_Py_Void();
41709   if (SWIG_IsNewObj(res2)) delete arg2;
41710   return resultobj;
41711 fail:
41712   if (SWIG_IsNewObj(res2)) delete arg2;
41713   return NULL;
41714 }
41715 
41716 
_wrap_LatLongCoord_serialise(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41717 SWIGINTERN PyObject *_wrap_LatLongCoord_serialise(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41718   PyObject *resultobj = 0;
41719   Xapian::LatLongCoord *arg1 = (Xapian::LatLongCoord *) 0 ;
41720   void *argp1 = 0 ;
41721   int res1 = 0 ;
41722   PyObject *swig_obj[1] ;
41723   std::string result;
41724 
41725   if (!args) SWIG_fail;
41726   swig_obj[0] = args;
41727   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongCoord, 0 |  0 );
41728   if (!SWIG_IsOK(res1)) {
41729     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoord_serialise" "', argument " "1"" of type '" "Xapian::LatLongCoord const *""'");
41730   }
41731   arg1 = reinterpret_cast< Xapian::LatLongCoord * >(argp1);
41732   {
41733     try {
41734       {
41735         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41736         result = ((Xapian::LatLongCoord const *)arg1)->serialise();
41737         SWIG_PYTHON_THREAD_END_ALLOW;
41738       }
41739     } catch (...) {
41740       Xapian::SetPythonException();
41741       SWIG_fail;
41742     }
41743   }
41744   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
41745   return resultobj;
41746 fail:
41747   return NULL;
41748 }
41749 
41750 
_wrap_LatLongCoord___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41751 SWIGINTERN PyObject *_wrap_LatLongCoord___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41752   PyObject *resultobj = 0;
41753   Xapian::LatLongCoord *arg1 = (Xapian::LatLongCoord *) 0 ;
41754   void *argp1 = 0 ;
41755   int res1 = 0 ;
41756   PyObject *swig_obj[1] ;
41757   std::string result;
41758 
41759   if (!args) SWIG_fail;
41760   swig_obj[0] = args;
41761   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongCoord, 0 |  0 );
41762   if (!SWIG_IsOK(res1)) {
41763     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoord___str__" "', argument " "1"" of type '" "Xapian::LatLongCoord const *""'");
41764   }
41765   arg1 = reinterpret_cast< Xapian::LatLongCoord * >(argp1);
41766   {
41767     try {
41768       {
41769         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41770         result = ((Xapian::LatLongCoord const *)arg1)->get_description();
41771         SWIG_PYTHON_THREAD_END_ALLOW;
41772       }
41773     } catch (...) {
41774       Xapian::SetPythonException();
41775       SWIG_fail;
41776     }
41777   }
41778   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
41779   return resultobj;
41780 fail:
41781   return NULL;
41782 }
41783 
41784 
_wrap_delete_LatLongCoord(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41785 SWIGINTERN PyObject *_wrap_delete_LatLongCoord(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41786   PyObject *resultobj = 0;
41787   Xapian::LatLongCoord *arg1 = (Xapian::LatLongCoord *) 0 ;
41788   void *argp1 = 0 ;
41789   int res1 = 0 ;
41790   PyObject *swig_obj[1] ;
41791 
41792   if (!args) SWIG_fail;
41793   swig_obj[0] = args;
41794   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongCoord, SWIG_POINTER_DISOWN |  0 );
41795   if (!SWIG_IsOK(res1)) {
41796     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LatLongCoord" "', argument " "1"" of type '" "Xapian::LatLongCoord *""'");
41797   }
41798   arg1 = reinterpret_cast< Xapian::LatLongCoord * >(argp1);
41799   {
41800     try {
41801       {
41802         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41803         delete arg1;
41804         SWIG_PYTHON_THREAD_END_ALLOW;
41805       }
41806     } catch (...) {
41807       Xapian::SetPythonException();
41808       SWIG_fail;
41809     }
41810   }
41811   resultobj = SWIG_Py_Void();
41812   return resultobj;
41813 fail:
41814   return NULL;
41815 }
41816 
41817 
LatLongCoord_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41818 SWIGINTERN PyObject *LatLongCoord_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41819   PyObject *obj;
41820   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
41821   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__LatLongCoord, SWIG_NewClientData(obj));
41822   return SWIG_Py_Void();
41823 }
41824 
LatLongCoord_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41825 SWIGINTERN PyObject *LatLongCoord_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41826   return SWIG_Python_InitShadowInstance(args);
41827 }
41828 
_wrap_new_LatLongCoordsIterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41829 SWIGINTERN PyObject *_wrap_new_LatLongCoordsIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41830   PyObject *resultobj = 0;
41831   Xapian::LatLongCoordsIterator *result = 0 ;
41832 
41833   if (!SWIG_Python_UnpackTuple(args,"new_LatLongCoordsIterator",0,0,0)) SWIG_fail;
41834   {
41835     try {
41836       {
41837         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41838         result = (Xapian::LatLongCoordsIterator *)new Xapian::LatLongCoordsIterator();
41839         SWIG_PYTHON_THREAD_END_ALLOW;
41840       }
41841     } catch (...) {
41842       Xapian::SetPythonException();
41843       SWIG_fail;
41844     }
41845   }
41846   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongCoordsIterator, SWIG_POINTER_NEW |  0 );
41847   return resultobj;
41848 fail:
41849   return NULL;
41850 }
41851 
41852 
_wrap_LatLongCoordsIterator___eq__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41853 SWIGINTERN PyObject *_wrap_LatLongCoordsIterator___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41854   PyObject *resultobj = 0;
41855   Xapian::LatLongCoordsIterator *arg1 = (Xapian::LatLongCoordsIterator *) 0 ;
41856   Xapian::LatLongCoordsIterator *arg2 = 0 ;
41857   void *argp1 = 0 ;
41858   int res1 = 0 ;
41859   void *argp2 = 0 ;
41860   int res2 = 0 ;
41861   PyObject *swig_obj[2] ;
41862   bool result;
41863 
41864   if (!SWIG_Python_UnpackTuple(args,"LatLongCoordsIterator___eq__",2,2,swig_obj)) SWIG_fail;
41865   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongCoordsIterator, 0 |  0 );
41866   if (!SWIG_IsOK(res1)) {
41867     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoordsIterator___eq__" "', argument " "1"" of type '" "Xapian::LatLongCoordsIterator const *""'");
41868   }
41869   arg1 = reinterpret_cast< Xapian::LatLongCoordsIterator * >(argp1);
41870   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongCoordsIterator,  0  | 0);
41871   if (!SWIG_IsOK(res2)) {
41872     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LatLongCoordsIterator___eq__" "', argument " "2"" of type '" "Xapian::LatLongCoordsIterator const &""'");
41873   }
41874   if (!argp2) {
41875     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LatLongCoordsIterator___eq__" "', argument " "2"" of type '" "Xapian::LatLongCoordsIterator const &""'");
41876   }
41877   arg2 = reinterpret_cast< Xapian::LatLongCoordsIterator * >(argp2);
41878   {
41879     try {
41880       {
41881         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41882         result = (bool)((Xapian::LatLongCoordsIterator const *)arg1)->operator ==((Xapian::LatLongCoordsIterator const &)*arg2);
41883         SWIG_PYTHON_THREAD_END_ALLOW;
41884       }
41885     } catch (...) {
41886       Xapian::SetPythonException();
41887       SWIG_fail;
41888     }
41889   }
41890   resultobj = SWIG_From_bool(static_cast< bool >(result));
41891   return resultobj;
41892 fail:
41893   return NULL;
41894 }
41895 
41896 
_wrap_LatLongCoordsIterator_equals(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41897 SWIGINTERN PyObject *_wrap_LatLongCoordsIterator_equals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41898   PyObject *resultobj = 0;
41899   Xapian::LatLongCoordsIterator *arg1 = (Xapian::LatLongCoordsIterator *) 0 ;
41900   Xapian::LatLongCoordsIterator *arg2 = 0 ;
41901   void *argp1 = 0 ;
41902   int res1 = 0 ;
41903   void *argp2 = 0 ;
41904   int res2 = 0 ;
41905   PyObject *swig_obj[2] ;
41906   bool result;
41907 
41908   if (!SWIG_Python_UnpackTuple(args,"LatLongCoordsIterator_equals",2,2,swig_obj)) SWIG_fail;
41909   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongCoordsIterator, 0 |  0 );
41910   if (!SWIG_IsOK(res1)) {
41911     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoordsIterator_equals" "', argument " "1"" of type '" "Xapian::LatLongCoordsIterator const *""'");
41912   }
41913   arg1 = reinterpret_cast< Xapian::LatLongCoordsIterator * >(argp1);
41914   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongCoordsIterator,  0  | 0);
41915   if (!SWIG_IsOK(res2)) {
41916     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LatLongCoordsIterator_equals" "', argument " "2"" of type '" "Xapian::LatLongCoordsIterator const &""'");
41917   }
41918   if (!argp2) {
41919     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LatLongCoordsIterator_equals" "', argument " "2"" of type '" "Xapian::LatLongCoordsIterator const &""'");
41920   }
41921   arg2 = reinterpret_cast< Xapian::LatLongCoordsIterator * >(argp2);
41922   {
41923     try {
41924       {
41925         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41926         result = (bool)Xapian_LatLongCoordsIterator_equals((Xapian::LatLongCoordsIterator const *)arg1,(Xapian::LatLongCoordsIterator const &)*arg2);
41927         SWIG_PYTHON_THREAD_END_ALLOW;
41928       }
41929     } catch (...) {
41930       Xapian::SetPythonException();
41931       SWIG_fail;
41932     }
41933   }
41934   resultobj = SWIG_From_bool(static_cast< bool >(result));
41935   return resultobj;
41936 fail:
41937   return NULL;
41938 }
41939 
41940 
_wrap_LatLongCoordsIterator_get_coord(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41941 SWIGINTERN PyObject *_wrap_LatLongCoordsIterator_get_coord(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41942   PyObject *resultobj = 0;
41943   Xapian::LatLongCoordsIterator *arg1 = (Xapian::LatLongCoordsIterator *) 0 ;
41944   void *argp1 = 0 ;
41945   int res1 = 0 ;
41946   PyObject *swig_obj[1] ;
41947   Xapian::LatLongCoord result;
41948 
41949   if (!args) SWIG_fail;
41950   swig_obj[0] = args;
41951   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongCoordsIterator, 0 |  0 );
41952   if (!SWIG_IsOK(res1)) {
41953     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoordsIterator_get_coord" "', argument " "1"" of type '" "Xapian::LatLongCoordsIterator const *""'");
41954   }
41955   arg1 = reinterpret_cast< Xapian::LatLongCoordsIterator * >(argp1);
41956   {
41957     try {
41958       {
41959         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41960         result = Xapian_LatLongCoordsIterator_get_coord((Xapian::LatLongCoordsIterator const *)arg1);
41961         SWIG_PYTHON_THREAD_END_ALLOW;
41962       }
41963     } catch (...) {
41964       Xapian::SetPythonException();
41965       SWIG_fail;
41966     }
41967   }
41968   resultobj = SWIG_NewPointerObj((new Xapian::LatLongCoord(static_cast< const Xapian::LatLongCoord& >(result))), SWIGTYPE_p_Xapian__LatLongCoord, SWIG_POINTER_OWN |  0 );
41969   return resultobj;
41970 fail:
41971   return NULL;
41972 }
41973 
41974 
_wrap_LatLongCoordsIterator_next(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41975 SWIGINTERN PyObject *_wrap_LatLongCoordsIterator_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41976   PyObject *resultobj = 0;
41977   Xapian::LatLongCoordsIterator *arg1 = (Xapian::LatLongCoordsIterator *) 0 ;
41978   void *argp1 = 0 ;
41979   int res1 = 0 ;
41980   PyObject *swig_obj[1] ;
41981 
41982   if (!args) SWIG_fail;
41983   swig_obj[0] = args;
41984   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongCoordsIterator, 0 |  0 );
41985   if (!SWIG_IsOK(res1)) {
41986     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoordsIterator_next" "', argument " "1"" of type '" "Xapian::LatLongCoordsIterator *""'");
41987   }
41988   arg1 = reinterpret_cast< Xapian::LatLongCoordsIterator * >(argp1);
41989   {
41990     try {
41991       {
41992         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41993         Xapian_LatLongCoordsIterator_next(arg1);
41994         SWIG_PYTHON_THREAD_END_ALLOW;
41995       }
41996     } catch (...) {
41997       Xapian::SetPythonException();
41998       SWIG_fail;
41999     }
42000   }
42001   resultobj = SWIG_Py_Void();
42002   return resultobj;
42003 fail:
42004   return NULL;
42005 }
42006 
42007 
_wrap_delete_LatLongCoordsIterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42008 SWIGINTERN PyObject *_wrap_delete_LatLongCoordsIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42009   PyObject *resultobj = 0;
42010   Xapian::LatLongCoordsIterator *arg1 = (Xapian::LatLongCoordsIterator *) 0 ;
42011   void *argp1 = 0 ;
42012   int res1 = 0 ;
42013   PyObject *swig_obj[1] ;
42014 
42015   if (!args) SWIG_fail;
42016   swig_obj[0] = args;
42017   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongCoordsIterator, SWIG_POINTER_DISOWN |  0 );
42018   if (!SWIG_IsOK(res1)) {
42019     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LatLongCoordsIterator" "', argument " "1"" of type '" "Xapian::LatLongCoordsIterator *""'");
42020   }
42021   arg1 = reinterpret_cast< Xapian::LatLongCoordsIterator * >(argp1);
42022   {
42023     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
42024     delete arg1;
42025     SWIG_PYTHON_THREAD_END_ALLOW;
42026   }
42027   resultobj = SWIG_Py_Void();
42028   return resultobj;
42029 fail:
42030   return NULL;
42031 }
42032 
42033 
LatLongCoordsIterator_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42034 SWIGINTERN PyObject *LatLongCoordsIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42035   PyObject *obj;
42036   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
42037   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__LatLongCoordsIterator, SWIG_NewClientData(obj));
42038   return SWIG_Py_Void();
42039 }
42040 
LatLongCoordsIterator_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42041 SWIGINTERN PyObject *LatLongCoordsIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42042   return SWIG_Python_InitShadowInstance(args);
42043 }
42044 
_wrap_LatLongCoords_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42045 SWIGINTERN PyObject *_wrap_LatLongCoords_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42046   PyObject *resultobj = 0;
42047   Xapian::LatLongCoords *arg1 = (Xapian::LatLongCoords *) 0 ;
42048   void *argp1 = 0 ;
42049   int res1 = 0 ;
42050   PyObject *swig_obj[1] ;
42051   Xapian::LatLongCoordsIterator result;
42052 
42053   if (!args) SWIG_fail;
42054   swig_obj[0] = args;
42055   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongCoords, 0 |  0 );
42056   if (!SWIG_IsOK(res1)) {
42057     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoords_begin" "', argument " "1"" of type '" "Xapian::LatLongCoords const *""'");
42058   }
42059   arg1 = reinterpret_cast< Xapian::LatLongCoords * >(argp1);
42060   {
42061     try {
42062       {
42063         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
42064         result = ((Xapian::LatLongCoords const *)arg1)->begin();
42065         SWIG_PYTHON_THREAD_END_ALLOW;
42066       }
42067     } catch (...) {
42068       Xapian::SetPythonException();
42069       SWIG_fail;
42070     }
42071   }
42072   resultobj = SWIG_NewPointerObj((new Xapian::LatLongCoordsIterator(static_cast< const Xapian::LatLongCoordsIterator& >(result))), SWIGTYPE_p_Xapian__LatLongCoordsIterator, SWIG_POINTER_OWN |  0 );
42073   return resultobj;
42074 fail:
42075   return NULL;
42076 }
42077 
42078 
_wrap_LatLongCoords_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42079 SWIGINTERN PyObject *_wrap_LatLongCoords_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42080   PyObject *resultobj = 0;
42081   Xapian::LatLongCoords *arg1 = (Xapian::LatLongCoords *) 0 ;
42082   void *argp1 = 0 ;
42083   int res1 = 0 ;
42084   PyObject *swig_obj[1] ;
42085   Xapian::LatLongCoordsIterator result;
42086 
42087   if (!args) SWIG_fail;
42088   swig_obj[0] = args;
42089   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongCoords, 0 |  0 );
42090   if (!SWIG_IsOK(res1)) {
42091     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoords_end" "', argument " "1"" of type '" "Xapian::LatLongCoords const *""'");
42092   }
42093   arg1 = reinterpret_cast< Xapian::LatLongCoords * >(argp1);
42094   {
42095     try {
42096       {
42097         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
42098         result = ((Xapian::LatLongCoords const *)arg1)->end();
42099         SWIG_PYTHON_THREAD_END_ALLOW;
42100       }
42101     } catch (...) {
42102       Xapian::SetPythonException();
42103       SWIG_fail;
42104     }
42105   }
42106   resultobj = SWIG_NewPointerObj((new Xapian::LatLongCoordsIterator(static_cast< const Xapian::LatLongCoordsIterator& >(result))), SWIGTYPE_p_Xapian__LatLongCoordsIterator, SWIG_POINTER_OWN |  0 );
42107   return resultobj;
42108 fail:
42109   return NULL;
42110 }
42111 
42112 
_wrap_LatLongCoords_size(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42113 SWIGINTERN PyObject *_wrap_LatLongCoords_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42114   PyObject *resultobj = 0;
42115   Xapian::LatLongCoords *arg1 = (Xapian::LatLongCoords *) 0 ;
42116   void *argp1 = 0 ;
42117   int res1 = 0 ;
42118   PyObject *swig_obj[1] ;
42119   size_t result;
42120 
42121   if (!args) SWIG_fail;
42122   swig_obj[0] = args;
42123   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongCoords, 0 |  0 );
42124   if (!SWIG_IsOK(res1)) {
42125     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoords_size" "', argument " "1"" of type '" "Xapian::LatLongCoords const *""'");
42126   }
42127   arg1 = reinterpret_cast< Xapian::LatLongCoords * >(argp1);
42128   {
42129     try {
42130       {
42131         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
42132         result = ((Xapian::LatLongCoords const *)arg1)->size();
42133         SWIG_PYTHON_THREAD_END_ALLOW;
42134       }
42135     } catch (...) {
42136       Xapian::SetPythonException();
42137       SWIG_fail;
42138     }
42139   }
42140   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
42141   return resultobj;
42142 fail:
42143   return NULL;
42144 }
42145 
42146 
_wrap_LatLongCoords_empty(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42147 SWIGINTERN PyObject *_wrap_LatLongCoords_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42148   PyObject *resultobj = 0;
42149   Xapian::LatLongCoords *arg1 = (Xapian::LatLongCoords *) 0 ;
42150   void *argp1 = 0 ;
42151   int res1 = 0 ;
42152   PyObject *swig_obj[1] ;
42153   bool result;
42154 
42155   if (!args) SWIG_fail;
42156   swig_obj[0] = args;
42157   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongCoords, 0 |  0 );
42158   if (!SWIG_IsOK(res1)) {
42159     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoords_empty" "', argument " "1"" of type '" "Xapian::LatLongCoords const *""'");
42160   }
42161   arg1 = reinterpret_cast< Xapian::LatLongCoords * >(argp1);
42162   {
42163     try {
42164       {
42165         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
42166         result = (bool)((Xapian::LatLongCoords const *)arg1)->empty();
42167         SWIG_PYTHON_THREAD_END_ALLOW;
42168       }
42169     } catch (...) {
42170       Xapian::SetPythonException();
42171       SWIG_fail;
42172     }
42173   }
42174   resultobj = SWIG_From_bool(static_cast< bool >(result));
42175   return resultobj;
42176 fail:
42177   return NULL;
42178 }
42179 
42180 
_wrap_LatLongCoords_append(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42181 SWIGINTERN PyObject *_wrap_LatLongCoords_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42182   PyObject *resultobj = 0;
42183   Xapian::LatLongCoords *arg1 = (Xapian::LatLongCoords *) 0 ;
42184   Xapian::LatLongCoord *arg2 = 0 ;
42185   void *argp1 = 0 ;
42186   int res1 = 0 ;
42187   void *argp2 = 0 ;
42188   int res2 = 0 ;
42189   PyObject *swig_obj[2] ;
42190 
42191   if (!SWIG_Python_UnpackTuple(args,"LatLongCoords_append",2,2,swig_obj)) SWIG_fail;
42192   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongCoords, 0 |  0 );
42193   if (!SWIG_IsOK(res1)) {
42194     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoords_append" "', argument " "1"" of type '" "Xapian::LatLongCoords *""'");
42195   }
42196   arg1 = reinterpret_cast< Xapian::LatLongCoords * >(argp1);
42197   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongCoord,  0  | 0);
42198   if (!SWIG_IsOK(res2)) {
42199     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LatLongCoords_append" "', argument " "2"" of type '" "Xapian::LatLongCoord const &""'");
42200   }
42201   if (!argp2) {
42202     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LatLongCoords_append" "', argument " "2"" of type '" "Xapian::LatLongCoord const &""'");
42203   }
42204   arg2 = reinterpret_cast< Xapian::LatLongCoord * >(argp2);
42205   {
42206     try {
42207       {
42208         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
42209         (arg1)->append((Xapian::LatLongCoord const &)*arg2);
42210         SWIG_PYTHON_THREAD_END_ALLOW;
42211       }
42212     } catch (...) {
42213       Xapian::SetPythonException();
42214       SWIG_fail;
42215     }
42216   }
42217   resultobj = SWIG_Py_Void();
42218   return resultobj;
42219 fail:
42220   return NULL;
42221 }
42222 
42223 
_wrap_new_LatLongCoords__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))42224 SWIGINTERN PyObject *_wrap_new_LatLongCoords__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
42225   PyObject *resultobj = 0;
42226   Xapian::LatLongCoords *result = 0 ;
42227 
42228   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
42229   {
42230     try {
42231       {
42232         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
42233         result = (Xapian::LatLongCoords *)new Xapian::LatLongCoords();
42234         SWIG_PYTHON_THREAD_END_ALLOW;
42235       }
42236     } catch (...) {
42237       Xapian::SetPythonException();
42238       SWIG_fail;
42239     }
42240   }
42241   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongCoords, SWIG_POINTER_NEW |  0 );
42242   return resultobj;
42243 fail:
42244   return NULL;
42245 }
42246 
42247 
_wrap_new_LatLongCoords__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)42248 SWIGINTERN PyObject *_wrap_new_LatLongCoords__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
42249   PyObject *resultobj = 0;
42250   Xapian::LatLongCoord *arg1 = 0 ;
42251   void *argp1 = 0 ;
42252   int res1 = 0 ;
42253   Xapian::LatLongCoords *result = 0 ;
42254 
42255   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
42256   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__LatLongCoord,  0  | 0);
42257   if (!SWIG_IsOK(res1)) {
42258     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_LatLongCoords" "', argument " "1"" of type '" "Xapian::LatLongCoord const &""'");
42259   }
42260   if (!argp1) {
42261     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongCoords" "', argument " "1"" of type '" "Xapian::LatLongCoord const &""'");
42262   }
42263   arg1 = reinterpret_cast< Xapian::LatLongCoord * >(argp1);
42264   {
42265     try {
42266       {
42267         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
42268         result = (Xapian::LatLongCoords *)new Xapian::LatLongCoords((Xapian::LatLongCoord const &)*arg1);
42269         SWIG_PYTHON_THREAD_END_ALLOW;
42270       }
42271     } catch (...) {
42272       Xapian::SetPythonException();
42273       SWIG_fail;
42274     }
42275   }
42276   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongCoords, SWIG_POINTER_NEW |  0 );
42277   return resultobj;
42278 fail:
42279   return NULL;
42280 }
42281 
42282 
_wrap_new_LatLongCoords(PyObject * self,PyObject * args)42283 SWIGINTERN PyObject *_wrap_new_LatLongCoords(PyObject *self, PyObject *args) {
42284   Py_ssize_t argc;
42285   PyObject *argv[2] = {
42286     0
42287   };
42288 
42289   if (!(argc = SWIG_Python_UnpackTuple(args,"new_LatLongCoords",0,1,argv))) SWIG_fail;
42290   --argc;
42291   if (argc == 0) {
42292     return _wrap_new_LatLongCoords__SWIG_0(self, argc, argv);
42293   }
42294   if (argc == 1) {
42295     return _wrap_new_LatLongCoords__SWIG_1(self, argc, argv);
42296   }
42297 
42298 fail:
42299   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_LatLongCoords'.\n"
42300     "  Possible C/C++ prototypes are:\n"
42301     "    Xapian::LatLongCoords::LatLongCoords()\n"
42302     "    Xapian::LatLongCoords::LatLongCoords(Xapian::LatLongCoord const &)\n");
42303   return 0;
42304 }
42305 
42306 
_wrap_LatLongCoords_unserialise(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42307 SWIGINTERN PyObject *_wrap_LatLongCoords_unserialise(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42308   PyObject *resultobj = 0;
42309   Xapian::LatLongCoords *arg1 = (Xapian::LatLongCoords *) 0 ;
42310   std::string *arg2 = 0 ;
42311   void *argp1 = 0 ;
42312   int res1 = 0 ;
42313   int res2 = SWIG_OLDOBJ ;
42314   PyObject *swig_obj[2] ;
42315 
42316   if (!SWIG_Python_UnpackTuple(args,"LatLongCoords_unserialise",2,2,swig_obj)) SWIG_fail;
42317   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongCoords, 0 |  0 );
42318   if (!SWIG_IsOK(res1)) {
42319     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoords_unserialise" "', argument " "1"" of type '" "Xapian::LatLongCoords *""'");
42320   }
42321   arg1 = reinterpret_cast< Xapian::LatLongCoords * >(argp1);
42322   {
42323     std::string *ptr = (std::string *)0;
42324     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
42325     if (!SWIG_IsOK(res2)) {
42326       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LatLongCoords_unserialise" "', argument " "2"" of type '" "std::string const &""'");
42327     }
42328     if (!ptr) {
42329       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LatLongCoords_unserialise" "', argument " "2"" of type '" "std::string const &""'");
42330     }
42331     arg2 = ptr;
42332   }
42333   {
42334     try {
42335       {
42336         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
42337         (arg1)->unserialise((std::string const &)*arg2);
42338         SWIG_PYTHON_THREAD_END_ALLOW;
42339       }
42340     } catch (...) {
42341       Xapian::SetPythonException();
42342       SWIG_fail;
42343     }
42344   }
42345   resultobj = SWIG_Py_Void();
42346   if (SWIG_IsNewObj(res2)) delete arg2;
42347   return resultobj;
42348 fail:
42349   if (SWIG_IsNewObj(res2)) delete arg2;
42350   return NULL;
42351 }
42352 
42353 
_wrap_LatLongCoords_serialise(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42354 SWIGINTERN PyObject *_wrap_LatLongCoords_serialise(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42355   PyObject *resultobj = 0;
42356   Xapian::LatLongCoords *arg1 = (Xapian::LatLongCoords *) 0 ;
42357   void *argp1 = 0 ;
42358   int res1 = 0 ;
42359   PyObject *swig_obj[1] ;
42360   std::string result;
42361 
42362   if (!args) SWIG_fail;
42363   swig_obj[0] = args;
42364   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongCoords, 0 |  0 );
42365   if (!SWIG_IsOK(res1)) {
42366     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoords_serialise" "', argument " "1"" of type '" "Xapian::LatLongCoords const *""'");
42367   }
42368   arg1 = reinterpret_cast< Xapian::LatLongCoords * >(argp1);
42369   {
42370     try {
42371       {
42372         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
42373         result = ((Xapian::LatLongCoords const *)arg1)->serialise();
42374         SWIG_PYTHON_THREAD_END_ALLOW;
42375       }
42376     } catch (...) {
42377       Xapian::SetPythonException();
42378       SWIG_fail;
42379     }
42380   }
42381   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
42382   return resultobj;
42383 fail:
42384   return NULL;
42385 }
42386 
42387 
_wrap_LatLongCoords___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42388 SWIGINTERN PyObject *_wrap_LatLongCoords___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42389   PyObject *resultobj = 0;
42390   Xapian::LatLongCoords *arg1 = (Xapian::LatLongCoords *) 0 ;
42391   void *argp1 = 0 ;
42392   int res1 = 0 ;
42393   PyObject *swig_obj[1] ;
42394   std::string result;
42395 
42396   if (!args) SWIG_fail;
42397   swig_obj[0] = args;
42398   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongCoords, 0 |  0 );
42399   if (!SWIG_IsOK(res1)) {
42400     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoords___str__" "', argument " "1"" of type '" "Xapian::LatLongCoords const *""'");
42401   }
42402   arg1 = reinterpret_cast< Xapian::LatLongCoords * >(argp1);
42403   {
42404     try {
42405       {
42406         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
42407         result = ((Xapian::LatLongCoords const *)arg1)->get_description();
42408         SWIG_PYTHON_THREAD_END_ALLOW;
42409       }
42410     } catch (...) {
42411       Xapian::SetPythonException();
42412       SWIG_fail;
42413     }
42414   }
42415   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
42416   return resultobj;
42417 fail:
42418   return NULL;
42419 }
42420 
42421 
_wrap_delete_LatLongCoords(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42422 SWIGINTERN PyObject *_wrap_delete_LatLongCoords(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42423   PyObject *resultobj = 0;
42424   Xapian::LatLongCoords *arg1 = (Xapian::LatLongCoords *) 0 ;
42425   void *argp1 = 0 ;
42426   int res1 = 0 ;
42427   PyObject *swig_obj[1] ;
42428 
42429   if (!args) SWIG_fail;
42430   swig_obj[0] = args;
42431   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongCoords, SWIG_POINTER_DISOWN |  0 );
42432   if (!SWIG_IsOK(res1)) {
42433     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LatLongCoords" "', argument " "1"" of type '" "Xapian::LatLongCoords *""'");
42434   }
42435   arg1 = reinterpret_cast< Xapian::LatLongCoords * >(argp1);
42436   {
42437     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
42438     delete arg1;
42439     SWIG_PYTHON_THREAD_END_ALLOW;
42440   }
42441   resultobj = SWIG_Py_Void();
42442   return resultobj;
42443 fail:
42444   return NULL;
42445 }
42446 
42447 
LatLongCoords_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42448 SWIGINTERN PyObject *LatLongCoords_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42449   PyObject *obj;
42450   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
42451   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__LatLongCoords, SWIG_NewClientData(obj));
42452   return SWIG_Py_Void();
42453 }
42454 
LatLongCoords_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42455 SWIGINTERN PyObject *LatLongCoords_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42456   return SWIG_Python_InitShadowInstance(args);
42457 }
42458 
_wrap___ne____SWIG_6(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)42459 SWIGINTERN PyObject *_wrap___ne____SWIG_6(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
42460   PyObject *resultobj = 0;
42461   Xapian::LatLongCoordsIterator *arg1 = 0 ;
42462   Xapian::LatLongCoordsIterator *arg2 = 0 ;
42463   void *argp1 = 0 ;
42464   int res1 = 0 ;
42465   void *argp2 = 0 ;
42466   int res2 = 0 ;
42467   bool result;
42468 
42469   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
42470   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__LatLongCoordsIterator,  0  | 0);
42471   if (!SWIG_IsOK(res1)) {
42472     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__ne__" "', argument " "1"" of type '" "Xapian::LatLongCoordsIterator const &""'");
42473   }
42474   if (!argp1) {
42475     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__ne__" "', argument " "1"" of type '" "Xapian::LatLongCoordsIterator const &""'");
42476   }
42477   arg1 = reinterpret_cast< Xapian::LatLongCoordsIterator * >(argp1);
42478   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongCoordsIterator,  0  | 0);
42479   if (!SWIG_IsOK(res2)) {
42480     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__ne__" "', argument " "2"" of type '" "Xapian::LatLongCoordsIterator const &""'");
42481   }
42482   if (!argp2) {
42483     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__ne__" "', argument " "2"" of type '" "Xapian::LatLongCoordsIterator const &""'");
42484   }
42485   arg2 = reinterpret_cast< Xapian::LatLongCoordsIterator * >(argp2);
42486   {
42487     try {
42488       {
42489         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
42490         result = (bool)Xapian::operator !=((Xapian::LatLongCoordsIterator const &)*arg1,(Xapian::LatLongCoordsIterator const &)*arg2);
42491         SWIG_PYTHON_THREAD_END_ALLOW;
42492       }
42493     } catch (...) {
42494       Xapian::SetPythonException();
42495       SWIG_fail;
42496     }
42497   }
42498   resultobj = SWIG_From_bool(static_cast< bool >(result));
42499   return resultobj;
42500 fail:
42501   return NULL;
42502 }
42503 
42504 
_wrap___ne__(PyObject * self,PyObject * args)42505 SWIGINTERN PyObject *_wrap___ne__(PyObject *self, PyObject *args) {
42506   Py_ssize_t argc;
42507   PyObject *argv[3] = {
42508     0
42509   };
42510 
42511   if (!(argc = SWIG_Python_UnpackTuple(args,"__ne__",0,2,argv))) SWIG_fail;
42512   --argc;
42513   if (argc == 2) {
42514     int _v = 0;
42515     {
42516       int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Xapian__PositionIterator, 0);
42517       _v = SWIG_CheckState(res);
42518     }
42519     if (!_v) goto check_1;
42520     {
42521       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__PositionIterator, 0);
42522       _v = SWIG_CheckState(res);
42523     }
42524     if (!_v) goto check_1;
42525     return _wrap___ne____SWIG_0(self, argc, argv);
42526   }
42527 check_1:
42528 
42529   if (argc == 2) {
42530     int _v = 0;
42531     {
42532       int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Xapian__PostingIterator, 0);
42533       _v = SWIG_CheckState(res);
42534     }
42535     if (!_v) goto check_2;
42536     {
42537       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__PostingIterator, 0);
42538       _v = SWIG_CheckState(res);
42539     }
42540     if (!_v) goto check_2;
42541     return _wrap___ne____SWIG_1(self, argc, argv);
42542   }
42543 check_2:
42544 
42545   if (argc == 2) {
42546     int _v = 0;
42547     {
42548       int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Xapian__TermIterator, 0);
42549       _v = SWIG_CheckState(res);
42550     }
42551     if (!_v) goto check_3;
42552     {
42553       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__TermIterator, 0);
42554       _v = SWIG_CheckState(res);
42555     }
42556     if (!_v) goto check_3;
42557     return _wrap___ne____SWIG_2(self, argc, argv);
42558   }
42559 check_3:
42560 
42561   if (argc == 2) {
42562     int _v = 0;
42563     {
42564       int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Xapian__ValueIterator, 0);
42565       _v = SWIG_CheckState(res);
42566     }
42567     if (!_v) goto check_4;
42568     {
42569       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__ValueIterator, 0);
42570       _v = SWIG_CheckState(res);
42571     }
42572     if (!_v) goto check_4;
42573     return _wrap___ne____SWIG_3(self, argc, argv);
42574   }
42575 check_4:
42576 
42577   if (argc == 2) {
42578     int _v = 0;
42579     {
42580       int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Xapian__MSetIterator, 0);
42581       _v = SWIG_CheckState(res);
42582     }
42583     if (!_v) goto check_5;
42584     {
42585       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__MSetIterator, 0);
42586       _v = SWIG_CheckState(res);
42587     }
42588     if (!_v) goto check_5;
42589     return _wrap___ne____SWIG_4(self, argc, argv);
42590   }
42591 check_5:
42592 
42593   if (argc == 2) {
42594     int _v = 0;
42595     {
42596       int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Xapian__ESetIterator, 0);
42597       _v = SWIG_CheckState(res);
42598     }
42599     if (!_v) goto check_6;
42600     {
42601       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__ESetIterator, 0);
42602       _v = SWIG_CheckState(res);
42603     }
42604     if (!_v) goto check_6;
42605     return _wrap___ne____SWIG_5(self, argc, argv);
42606   }
42607 check_6:
42608 
42609   if (argc == 2) {
42610     return _wrap___ne____SWIG_6(self, argc, argv);
42611   }
42612 
42613 fail:
42614   Py_INCREF(Py_NotImplemented);
42615   return Py_NotImplemented;
42616 }
42617 
42618 
_wrap_delete_LatLongMetric(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42619 SWIGINTERN PyObject *_wrap_delete_LatLongMetric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42620   PyObject *resultobj = 0;
42621   Xapian::LatLongMetric *arg1 = (Xapian::LatLongMetric *) 0 ;
42622   void *argp1 = 0 ;
42623   int res1 = 0 ;
42624   PyObject *swig_obj[1] ;
42625 
42626   if (!args) SWIG_fail;
42627   swig_obj[0] = args;
42628   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongMetric, SWIG_POINTER_DISOWN |  0 );
42629   if (!SWIG_IsOK(res1)) {
42630     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LatLongMetric" "', argument " "1"" of type '" "Xapian::LatLongMetric *""'");
42631   }
42632   arg1 = reinterpret_cast< Xapian::LatLongMetric * >(argp1);
42633   {
42634     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
42635     delete arg1;
42636     SWIG_PYTHON_THREAD_END_ALLOW;
42637   }
42638   resultobj = SWIG_Py_Void();
42639   return resultobj;
42640 fail:
42641   return NULL;
42642 }
42643 
42644 
_wrap_LatLongMetric_pointwise_distance(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42645 SWIGINTERN PyObject *_wrap_LatLongMetric_pointwise_distance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42646   PyObject *resultobj = 0;
42647   Xapian::LatLongMetric *arg1 = (Xapian::LatLongMetric *) 0 ;
42648   Xapian::LatLongCoord *arg2 = 0 ;
42649   Xapian::LatLongCoord *arg3 = 0 ;
42650   void *argp1 = 0 ;
42651   int res1 = 0 ;
42652   void *argp2 = 0 ;
42653   int res2 = 0 ;
42654   void *argp3 = 0 ;
42655   int res3 = 0 ;
42656   PyObject *swig_obj[3] ;
42657   Swig::Director *director = 0;
42658   bool upcall = false;
42659   double result;
42660 
42661   if (!SWIG_Python_UnpackTuple(args,"LatLongMetric_pointwise_distance",3,3,swig_obj)) SWIG_fail;
42662   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongMetric, 0 |  0 );
42663   if (!SWIG_IsOK(res1)) {
42664     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongMetric_pointwise_distance" "', argument " "1"" of type '" "Xapian::LatLongMetric const *""'");
42665   }
42666   arg1 = reinterpret_cast< Xapian::LatLongMetric * >(argp1);
42667   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongCoord,  0  | 0);
42668   if (!SWIG_IsOK(res2)) {
42669     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LatLongMetric_pointwise_distance" "', argument " "2"" of type '" "Xapian::LatLongCoord const &""'");
42670   }
42671   if (!argp2) {
42672     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LatLongMetric_pointwise_distance" "', argument " "2"" of type '" "Xapian::LatLongCoord const &""'");
42673   }
42674   arg2 = reinterpret_cast< Xapian::LatLongCoord * >(argp2);
42675   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Xapian__LatLongCoord,  0  | 0);
42676   if (!SWIG_IsOK(res3)) {
42677     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "LatLongMetric_pointwise_distance" "', argument " "3"" of type '" "Xapian::LatLongCoord const &""'");
42678   }
42679   if (!argp3) {
42680     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LatLongMetric_pointwise_distance" "', argument " "3"" of type '" "Xapian::LatLongCoord const &""'");
42681   }
42682   arg3 = reinterpret_cast< Xapian::LatLongCoord * >(argp3);
42683   director = SWIG_DIRECTOR_CAST(arg1);
42684   upcall = (director && (director->swig_get_self()==swig_obj[0]));
42685   try {
42686     {
42687       try {
42688         if (upcall) {
42689           Swig::DirectorPureVirtualException::raise("Xapian::LatLongMetric::pointwise_distance");
42690         } else {
42691           result = (double)((Xapian::LatLongMetric const *)arg1)->pointwise_distance((Xapian::LatLongCoord const &)*arg2,(Xapian::LatLongCoord const &)*arg3);
42692         }
42693       } catch (...) {
42694         Xapian::SetPythonException();
42695         SWIG_fail;
42696       }
42697     }
42698   } catch (Swig::DirectorException&) {
42699     SWIG_fail;
42700   }
42701   resultobj = SWIG_From_double(static_cast< double >(result));
42702   return resultobj;
42703 fail:
42704   return NULL;
42705 }
42706 
42707 
_wrap_LatLongMetric___call____SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)42708 SWIGINTERN PyObject *_wrap_LatLongMetric___call____SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
42709   PyObject *resultobj = 0;
42710   Xapian::LatLongMetric *arg1 = (Xapian::LatLongMetric *) 0 ;
42711   Xapian::LatLongCoords *arg2 = 0 ;
42712   Xapian::LatLongCoords *arg3 = 0 ;
42713   void *argp1 = 0 ;
42714   int res1 = 0 ;
42715   void *argp2 = 0 ;
42716   int res2 = 0 ;
42717   void *argp3 = 0 ;
42718   int res3 = 0 ;
42719   double result;
42720 
42721   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
42722   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongMetric, 0 |  0 );
42723   if (!SWIG_IsOK(res1)) {
42724     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongMetric___call__" "', argument " "1"" of type '" "Xapian::LatLongMetric const *""'");
42725   }
42726   arg1 = reinterpret_cast< Xapian::LatLongMetric * >(argp1);
42727   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongCoords,  0  | 0);
42728   if (!SWIG_IsOK(res2)) {
42729     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LatLongMetric___call__" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
42730   }
42731   if (!argp2) {
42732     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LatLongMetric___call__" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
42733   }
42734   arg2 = reinterpret_cast< Xapian::LatLongCoords * >(argp2);
42735   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Xapian__LatLongCoords,  0  | 0);
42736   if (!SWIG_IsOK(res3)) {
42737     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "LatLongMetric___call__" "', argument " "3"" of type '" "Xapian::LatLongCoords const &""'");
42738   }
42739   if (!argp3) {
42740     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LatLongMetric___call__" "', argument " "3"" of type '" "Xapian::LatLongCoords const &""'");
42741   }
42742   arg3 = reinterpret_cast< Xapian::LatLongCoords * >(argp3);
42743   {
42744     try {
42745       {
42746         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
42747         result = (double)((Xapian::LatLongMetric const *)arg1)->operator ()((Xapian::LatLongCoords const &)*arg2,(Xapian::LatLongCoords const &)*arg3);
42748         SWIG_PYTHON_THREAD_END_ALLOW;
42749       }
42750     } catch (...) {
42751       Xapian::SetPythonException();
42752       SWIG_fail;
42753     }
42754   }
42755   resultobj = SWIG_From_double(static_cast< double >(result));
42756   return resultobj;
42757 fail:
42758   return NULL;
42759 }
42760 
42761 
_wrap_LatLongMetric___call____SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)42762 SWIGINTERN PyObject *_wrap_LatLongMetric___call____SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
42763   PyObject *resultobj = 0;
42764   Xapian::LatLongMetric *arg1 = (Xapian::LatLongMetric *) 0 ;
42765   Xapian::LatLongCoords *arg2 = 0 ;
42766   std::string *arg3 = 0 ;
42767   void *argp1 = 0 ;
42768   int res1 = 0 ;
42769   void *argp2 = 0 ;
42770   int res2 = 0 ;
42771   int res3 = SWIG_OLDOBJ ;
42772   double result;
42773 
42774   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
42775   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongMetric, 0 |  0 );
42776   if (!SWIG_IsOK(res1)) {
42777     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongMetric___call__" "', argument " "1"" of type '" "Xapian::LatLongMetric const *""'");
42778   }
42779   arg1 = reinterpret_cast< Xapian::LatLongMetric * >(argp1);
42780   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongCoords,  0  | 0);
42781   if (!SWIG_IsOK(res2)) {
42782     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LatLongMetric___call__" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
42783   }
42784   if (!argp2) {
42785     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LatLongMetric___call__" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
42786   }
42787   arg2 = reinterpret_cast< Xapian::LatLongCoords * >(argp2);
42788   {
42789     std::string *ptr = (std::string *)0;
42790     res3 = XapianSWIG_anystring_as_ptr(swig_obj[2], &ptr);
42791     if (!SWIG_IsOK(res3)) {
42792       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "LatLongMetric___call__" "', argument " "3"" of type '" "std::string const &""'");
42793     }
42794     if (!ptr) {
42795       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LatLongMetric___call__" "', argument " "3"" of type '" "std::string const &""'");
42796     }
42797     arg3 = ptr;
42798   }
42799   {
42800     try {
42801       {
42802         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
42803         result = (double)((Xapian::LatLongMetric const *)arg1)->operator ()((Xapian::LatLongCoords const &)*arg2,(std::string const &)*arg3);
42804         SWIG_PYTHON_THREAD_END_ALLOW;
42805       }
42806     } catch (...) {
42807       Xapian::SetPythonException();
42808       SWIG_fail;
42809     }
42810   }
42811   resultobj = SWIG_From_double(static_cast< double >(result));
42812   if (SWIG_IsNewObj(res3)) delete arg3;
42813   return resultobj;
42814 fail:
42815   if (SWIG_IsNewObj(res3)) delete arg3;
42816   return NULL;
42817 }
42818 
42819 
_wrap_LatLongMetric___call____SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)42820 SWIGINTERN PyObject *_wrap_LatLongMetric___call____SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
42821   PyObject *resultobj = 0;
42822   Xapian::LatLongMetric *arg1 = (Xapian::LatLongMetric *) 0 ;
42823   Xapian::LatLongCoords *arg2 = 0 ;
42824   char *arg3 = (char *) 0 ;
42825   size_t arg4 ;
42826   void *argp1 = 0 ;
42827   int res1 = 0 ;
42828   void *argp2 = 0 ;
42829   int res2 = 0 ;
42830   int res3 ;
42831   char *buf3 = 0 ;
42832   int alloc3 = 0 ;
42833   size_t val4 ;
42834   int ecode4 = 0 ;
42835   double result;
42836 
42837   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
42838   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongMetric, 0 |  0 );
42839   if (!SWIG_IsOK(res1)) {
42840     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongMetric___call__" "', argument " "1"" of type '" "Xapian::LatLongMetric const *""'");
42841   }
42842   arg1 = reinterpret_cast< Xapian::LatLongMetric * >(argp1);
42843   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongCoords,  0  | 0);
42844   if (!SWIG_IsOK(res2)) {
42845     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LatLongMetric___call__" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
42846   }
42847   if (!argp2) {
42848     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LatLongMetric___call__" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
42849   }
42850   arg2 = reinterpret_cast< Xapian::LatLongCoords * >(argp2);
42851   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
42852   if (!SWIG_IsOK(res3)) {
42853     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "LatLongMetric___call__" "', argument " "3"" of type '" "char const *""'");
42854   }
42855   arg3 = reinterpret_cast< char * >(buf3);
42856   ecode4 = SWIG_AsVal_size_t(swig_obj[3], &val4);
42857   if (!SWIG_IsOK(ecode4)) {
42858     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "LatLongMetric___call__" "', argument " "4"" of type '" "size_t""'");
42859   }
42860   arg4 = static_cast< size_t >(val4);
42861   {
42862     try {
42863       {
42864         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
42865         result = (double)((Xapian::LatLongMetric const *)arg1)->operator ()((Xapian::LatLongCoords const &)*arg2,(char const *)arg3,arg4);
42866         SWIG_PYTHON_THREAD_END_ALLOW;
42867       }
42868     } catch (...) {
42869       Xapian::SetPythonException();
42870       SWIG_fail;
42871     }
42872   }
42873   resultobj = SWIG_From_double(static_cast< double >(result));
42874   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
42875   return resultobj;
42876 fail:
42877   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
42878   return NULL;
42879 }
42880 
42881 
_wrap_LatLongMetric___call__(PyObject * self,PyObject * args)42882 SWIGINTERN PyObject *_wrap_LatLongMetric___call__(PyObject *self, PyObject *args) {
42883   Py_ssize_t argc;
42884   PyObject *argv[5] = {
42885     0
42886   };
42887 
42888   if (!(argc = SWIG_Python_UnpackTuple(args,"LatLongMetric___call__",0,4,argv))) SWIG_fail;
42889   --argc;
42890   if (argc == 3) {
42891     int _v = 0;
42892     {
42893       int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Xapian__LatLongCoords, 0);
42894       _v = SWIG_CheckState(res);
42895     }
42896     if (!_v) goto check_1;
42897     return _wrap_LatLongMetric___call____SWIG_0(self, argc, argv);
42898   }
42899 check_1:
42900 
42901   if (argc == 3) {
42902     return _wrap_LatLongMetric___call____SWIG_1(self, argc, argv);
42903   }
42904   if (argc == 4) {
42905     return _wrap_LatLongMetric___call____SWIG_2(self, argc, argv);
42906   }
42907 
42908 fail:
42909   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'LatLongMetric___call__'.\n"
42910     "  Possible C/C++ prototypes are:\n"
42911     "    Xapian::LatLongMetric::operator ()(Xapian::LatLongCoords const &,Xapian::LatLongCoords const &) const\n"
42912     "    Xapian::LatLongMetric::operator ()(Xapian::LatLongCoords const &,std::string const &) const\n"
42913     "    Xapian::LatLongMetric::operator ()(Xapian::LatLongCoords const &,char const *,size_t) const\n");
42914   return 0;
42915 }
42916 
42917 
_wrap_LatLongMetric_name(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42918 SWIGINTERN PyObject *_wrap_LatLongMetric_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42919   PyObject *resultobj = 0;
42920   Xapian::LatLongMetric *arg1 = (Xapian::LatLongMetric *) 0 ;
42921   void *argp1 = 0 ;
42922   int res1 = 0 ;
42923   PyObject *swig_obj[1] ;
42924   Swig::Director *director = 0;
42925   bool upcall = false;
42926   std::string result;
42927 
42928   if (!args) SWIG_fail;
42929   swig_obj[0] = args;
42930   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongMetric, 0 |  0 );
42931   if (!SWIG_IsOK(res1)) {
42932     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongMetric_name" "', argument " "1"" of type '" "Xapian::LatLongMetric const *""'");
42933   }
42934   arg1 = reinterpret_cast< Xapian::LatLongMetric * >(argp1);
42935   director = SWIG_DIRECTOR_CAST(arg1);
42936   upcall = (director && (director->swig_get_self()==swig_obj[0]));
42937   try {
42938     {
42939       try {
42940         if (upcall) {
42941           Swig::DirectorPureVirtualException::raise("Xapian::LatLongMetric::name");
42942         } else {
42943           result = ((Xapian::LatLongMetric const *)arg1)->name();
42944         }
42945       } catch (...) {
42946         Xapian::SetPythonException();
42947         SWIG_fail;
42948       }
42949     }
42950   } catch (Swig::DirectorException&) {
42951     SWIG_fail;
42952   }
42953   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
42954   return resultobj;
42955 fail:
42956   return NULL;
42957 }
42958 
42959 
_wrap_new_LatLongMetric(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42960 SWIGINTERN PyObject *_wrap_new_LatLongMetric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42961   PyObject *resultobj = 0;
42962   PyObject *arg1 = (PyObject *) 0 ;
42963   PyObject *swig_obj[1] ;
42964   Xapian::LatLongMetric *result = 0 ;
42965 
42966   if (!args) SWIG_fail;
42967   swig_obj[0] = args;
42968   arg1 = swig_obj[0];
42969   {
42970     try {
42971       {
42972         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
42973         if ( arg1 != Py_None ) {
42974           /* subclassed */
42975           result = (Xapian::LatLongMetric *)new SwigDirector_LatLongMetric(arg1);
42976         } else {
42977           SWIG_SetErrorMsg(PyExc_RuntimeError,"accessing abstract class or protected constructor");
42978           SWIG_fail;
42979         }
42980 
42981         SWIG_PYTHON_THREAD_END_ALLOW;
42982       }
42983     } catch (...) {
42984       Xapian::SetPythonException();
42985       SWIG_fail;
42986     }
42987   }
42988   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongMetric, SWIG_POINTER_NEW |  0 );
42989   return resultobj;
42990 fail:
42991   return NULL;
42992 }
42993 
42994 
_wrap_disown_LatLongMetric(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42995 SWIGINTERN PyObject *_wrap_disown_LatLongMetric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42996   PyObject *resultobj = 0;
42997   Xapian::LatLongMetric *arg1 = (Xapian::LatLongMetric *) 0 ;
42998   void *argp1 = 0 ;
42999   int res1 = 0 ;
43000   PyObject *swig_obj[1] ;
43001 
43002   if (!args) SWIG_fail;
43003   swig_obj[0] = args;
43004   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongMetric, 0 |  0 );
43005   if (!SWIG_IsOK(res1)) {
43006     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_LatLongMetric" "', argument " "1"" of type '" "Xapian::LatLongMetric *""'");
43007   }
43008   arg1 = reinterpret_cast< Xapian::LatLongMetric * >(argp1);
43009   {
43010     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
43011     {
43012       Swig::Director *director = SWIG_DIRECTOR_CAST(arg1);
43013       if (director) director->swig_disown();
43014     }
43015 
43016     SWIG_PYTHON_THREAD_END_ALLOW;
43017   }
43018   resultobj = SWIG_Py_Void();
43019   return resultobj;
43020 fail:
43021   return NULL;
43022 }
43023 
43024 
LatLongMetric_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)43025 SWIGINTERN PyObject *LatLongMetric_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43026   PyObject *obj;
43027   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
43028   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__LatLongMetric, SWIG_NewClientData(obj));
43029   return SWIG_Py_Void();
43030 }
43031 
LatLongMetric_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)43032 SWIGINTERN PyObject *LatLongMetric_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43033   return SWIG_Python_InitShadowInstance(args);
43034 }
43035 
_wrap_new_GreatCircleMetric__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))43036 SWIGINTERN PyObject *_wrap_new_GreatCircleMetric__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
43037   PyObject *resultobj = 0;
43038   Xapian::GreatCircleMetric *result = 0 ;
43039 
43040   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
43041   {
43042     try {
43043       {
43044         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
43045         result = (Xapian::GreatCircleMetric *)new Xapian::GreatCircleMetric();
43046         SWIG_PYTHON_THREAD_END_ALLOW;
43047       }
43048     } catch (...) {
43049       Xapian::SetPythonException();
43050       SWIG_fail;
43051     }
43052   }
43053   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__GreatCircleMetric, SWIG_POINTER_NEW |  0 );
43054   return resultobj;
43055 fail:
43056   return NULL;
43057 }
43058 
43059 
_wrap_new_GreatCircleMetric__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)43060 SWIGINTERN PyObject *_wrap_new_GreatCircleMetric__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
43061   PyObject *resultobj = 0;
43062   double arg1 ;
43063   double val1 ;
43064   int ecode1 = 0 ;
43065   Xapian::GreatCircleMetric *result = 0 ;
43066 
43067   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
43068   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
43069   if (!SWIG_IsOK(ecode1)) {
43070     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GreatCircleMetric" "', argument " "1"" of type '" "double""'");
43071   }
43072   arg1 = static_cast< double >(val1);
43073   {
43074     try {
43075       {
43076         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
43077         result = (Xapian::GreatCircleMetric *)new Xapian::GreatCircleMetric(arg1);
43078         SWIG_PYTHON_THREAD_END_ALLOW;
43079       }
43080     } catch (...) {
43081       Xapian::SetPythonException();
43082       SWIG_fail;
43083     }
43084   }
43085   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__GreatCircleMetric, SWIG_POINTER_NEW |  0 );
43086   return resultobj;
43087 fail:
43088   return NULL;
43089 }
43090 
43091 
_wrap_new_GreatCircleMetric(PyObject * self,PyObject * args)43092 SWIGINTERN PyObject *_wrap_new_GreatCircleMetric(PyObject *self, PyObject *args) {
43093   Py_ssize_t argc;
43094   PyObject *argv[2] = {
43095     0
43096   };
43097 
43098   if (!(argc = SWIG_Python_UnpackTuple(args,"new_GreatCircleMetric",0,1,argv))) SWIG_fail;
43099   --argc;
43100   if (argc == 0) {
43101     return _wrap_new_GreatCircleMetric__SWIG_0(self, argc, argv);
43102   }
43103   if (argc == 1) {
43104     return _wrap_new_GreatCircleMetric__SWIG_1(self, argc, argv);
43105   }
43106 
43107 fail:
43108   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GreatCircleMetric'.\n"
43109     "  Possible C/C++ prototypes are:\n"
43110     "    Xapian::GreatCircleMetric::GreatCircleMetric()\n"
43111     "    Xapian::GreatCircleMetric::GreatCircleMetric(double)\n");
43112   return 0;
43113 }
43114 
43115 
_wrap_delete_GreatCircleMetric(PyObject * SWIGUNUSEDPARM (self),PyObject * args)43116 SWIGINTERN PyObject *_wrap_delete_GreatCircleMetric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43117   PyObject *resultobj = 0;
43118   Xapian::GreatCircleMetric *arg1 = (Xapian::GreatCircleMetric *) 0 ;
43119   void *argp1 = 0 ;
43120   int res1 = 0 ;
43121   PyObject *swig_obj[1] ;
43122 
43123   if (!args) SWIG_fail;
43124   swig_obj[0] = args;
43125   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__GreatCircleMetric, SWIG_POINTER_DISOWN |  0 );
43126   if (!SWIG_IsOK(res1)) {
43127     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GreatCircleMetric" "', argument " "1"" of type '" "Xapian::GreatCircleMetric *""'");
43128   }
43129   arg1 = reinterpret_cast< Xapian::GreatCircleMetric * >(argp1);
43130   {
43131     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
43132     delete arg1;
43133     SWIG_PYTHON_THREAD_END_ALLOW;
43134   }
43135   resultobj = SWIG_Py_Void();
43136   return resultobj;
43137 fail:
43138   return NULL;
43139 }
43140 
43141 
GreatCircleMetric_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)43142 SWIGINTERN PyObject *GreatCircleMetric_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43143   PyObject *obj;
43144   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
43145   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__GreatCircleMetric, SWIG_NewClientData(obj));
43146   return SWIG_Py_Void();
43147 }
43148 
GreatCircleMetric_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)43149 SWIGINTERN PyObject *GreatCircleMetric_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43150   return SWIG_Python_InitShadowInstance(args);
43151 }
43152 
_wrap_new_LatLongDistancePostingSource__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)43153 SWIGINTERN PyObject *_wrap_new_LatLongDistancePostingSource__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
43154   PyObject *resultobj = 0;
43155   Xapian::valueno arg1 ;
43156   Xapian::LatLongCoords *arg2 = 0 ;
43157   Xapian::LatLongMetric *arg3 = 0 ;
43158   double arg4 ;
43159   double arg5 ;
43160   double arg6 ;
43161   unsigned int val1 ;
43162   int ecode1 = 0 ;
43163   void *argp2 = 0 ;
43164   int res2 = 0 ;
43165   void *argp3 = 0 ;
43166   int res3 = 0 ;
43167   double val4 ;
43168   int ecode4 = 0 ;
43169   double val5 ;
43170   int ecode5 = 0 ;
43171   double val6 ;
43172   int ecode6 = 0 ;
43173   Xapian::LatLongDistancePostingSource *result = 0 ;
43174 
43175   if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
43176   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
43177   if (!SWIG_IsOK(ecode1)) {
43178     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongDistancePostingSource" "', argument " "1"" of type '" "Xapian::valueno""'");
43179   }
43180   arg1 = static_cast< Xapian::valueno >(val1);
43181   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongCoords,  0  | 0);
43182   if (!SWIG_IsOK(res2)) {
43183     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
43184   }
43185   if (!argp2) {
43186     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
43187   }
43188   arg2 = reinterpret_cast< Xapian::LatLongCoords * >(argp2);
43189   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Xapian__LatLongMetric,  0  | 0);
43190   if (!SWIG_IsOK(res3)) {
43191     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LatLongDistancePostingSource" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
43192   }
43193   if (!argp3) {
43194     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistancePostingSource" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
43195   }
43196   arg3 = reinterpret_cast< Xapian::LatLongMetric * >(argp3);
43197   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
43198   if (!SWIG_IsOK(ecode4)) {
43199     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_LatLongDistancePostingSource" "', argument " "4"" of type '" "double""'");
43200   }
43201   arg4 = static_cast< double >(val4);
43202   ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
43203   if (!SWIG_IsOK(ecode5)) {
43204     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_LatLongDistancePostingSource" "', argument " "5"" of type '" "double""'");
43205   }
43206   arg5 = static_cast< double >(val5);
43207   ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
43208   if (!SWIG_IsOK(ecode6)) {
43209     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_LatLongDistancePostingSource" "', argument " "6"" of type '" "double""'");
43210   }
43211   arg6 = static_cast< double >(val6);
43212   {
43213     try {
43214       {
43215         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
43216         result = (Xapian::LatLongDistancePostingSource *)new Xapian::LatLongDistancePostingSource(arg1,(Xapian::LatLongCoords const &)*arg2,(Xapian::LatLongMetric const &)*arg3,arg4,arg5,arg6);
43217         SWIG_PYTHON_THREAD_END_ALLOW;
43218       }
43219     } catch (...) {
43220       Xapian::SetPythonException();
43221       SWIG_fail;
43222     }
43223   }
43224   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongDistancePostingSource, SWIG_POINTER_NEW |  0 );
43225   return resultobj;
43226 fail:
43227   return NULL;
43228 }
43229 
43230 
_wrap_new_LatLongDistancePostingSource__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)43231 SWIGINTERN PyObject *_wrap_new_LatLongDistancePostingSource__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
43232   PyObject *resultobj = 0;
43233   Xapian::valueno arg1 ;
43234   Xapian::LatLongCoords *arg2 = 0 ;
43235   Xapian::LatLongMetric *arg3 = 0 ;
43236   double arg4 ;
43237   double arg5 ;
43238   unsigned int val1 ;
43239   int ecode1 = 0 ;
43240   void *argp2 = 0 ;
43241   int res2 = 0 ;
43242   void *argp3 = 0 ;
43243   int res3 = 0 ;
43244   double val4 ;
43245   int ecode4 = 0 ;
43246   double val5 ;
43247   int ecode5 = 0 ;
43248   Xapian::LatLongDistancePostingSource *result = 0 ;
43249 
43250   if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
43251   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
43252   if (!SWIG_IsOK(ecode1)) {
43253     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongDistancePostingSource" "', argument " "1"" of type '" "Xapian::valueno""'");
43254   }
43255   arg1 = static_cast< Xapian::valueno >(val1);
43256   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongCoords,  0  | 0);
43257   if (!SWIG_IsOK(res2)) {
43258     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
43259   }
43260   if (!argp2) {
43261     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
43262   }
43263   arg2 = reinterpret_cast< Xapian::LatLongCoords * >(argp2);
43264   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Xapian__LatLongMetric,  0  | 0);
43265   if (!SWIG_IsOK(res3)) {
43266     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LatLongDistancePostingSource" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
43267   }
43268   if (!argp3) {
43269     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistancePostingSource" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
43270   }
43271   arg3 = reinterpret_cast< Xapian::LatLongMetric * >(argp3);
43272   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
43273   if (!SWIG_IsOK(ecode4)) {
43274     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_LatLongDistancePostingSource" "', argument " "4"" of type '" "double""'");
43275   }
43276   arg4 = static_cast< double >(val4);
43277   ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
43278   if (!SWIG_IsOK(ecode5)) {
43279     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_LatLongDistancePostingSource" "', argument " "5"" of type '" "double""'");
43280   }
43281   arg5 = static_cast< double >(val5);
43282   {
43283     try {
43284       {
43285         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
43286         result = (Xapian::LatLongDistancePostingSource *)new Xapian::LatLongDistancePostingSource(arg1,(Xapian::LatLongCoords const &)*arg2,(Xapian::LatLongMetric const &)*arg3,arg4,arg5);
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__LatLongDistancePostingSource, SWIG_POINTER_NEW |  0 );
43295   return resultobj;
43296 fail:
43297   return NULL;
43298 }
43299 
43300 
_wrap_new_LatLongDistancePostingSource__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)43301 SWIGINTERN PyObject *_wrap_new_LatLongDistancePostingSource__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
43302   PyObject *resultobj = 0;
43303   Xapian::valueno arg1 ;
43304   Xapian::LatLongCoords *arg2 = 0 ;
43305   Xapian::LatLongMetric *arg3 = 0 ;
43306   double arg4 ;
43307   unsigned int val1 ;
43308   int ecode1 = 0 ;
43309   void *argp2 = 0 ;
43310   int res2 = 0 ;
43311   void *argp3 = 0 ;
43312   int res3 = 0 ;
43313   double val4 ;
43314   int ecode4 = 0 ;
43315   Xapian::LatLongDistancePostingSource *result = 0 ;
43316 
43317   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
43318   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
43319   if (!SWIG_IsOK(ecode1)) {
43320     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongDistancePostingSource" "', argument " "1"" of type '" "Xapian::valueno""'");
43321   }
43322   arg1 = static_cast< Xapian::valueno >(val1);
43323   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongCoords,  0  | 0);
43324   if (!SWIG_IsOK(res2)) {
43325     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
43326   }
43327   if (!argp2) {
43328     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
43329   }
43330   arg2 = reinterpret_cast< Xapian::LatLongCoords * >(argp2);
43331   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Xapian__LatLongMetric,  0  | 0);
43332   if (!SWIG_IsOK(res3)) {
43333     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LatLongDistancePostingSource" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
43334   }
43335   if (!argp3) {
43336     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistancePostingSource" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
43337   }
43338   arg3 = reinterpret_cast< Xapian::LatLongMetric * >(argp3);
43339   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
43340   if (!SWIG_IsOK(ecode4)) {
43341     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_LatLongDistancePostingSource" "', argument " "4"" of type '" "double""'");
43342   }
43343   arg4 = static_cast< double >(val4);
43344   {
43345     try {
43346       {
43347         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
43348         result = (Xapian::LatLongDistancePostingSource *)new Xapian::LatLongDistancePostingSource(arg1,(Xapian::LatLongCoords const &)*arg2,(Xapian::LatLongMetric const &)*arg3,arg4);
43349         SWIG_PYTHON_THREAD_END_ALLOW;
43350       }
43351     } catch (...) {
43352       Xapian::SetPythonException();
43353       SWIG_fail;
43354     }
43355   }
43356   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongDistancePostingSource, SWIG_POINTER_NEW |  0 );
43357   return resultobj;
43358 fail:
43359   return NULL;
43360 }
43361 
43362 
_wrap_new_LatLongDistancePostingSource__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)43363 SWIGINTERN PyObject *_wrap_new_LatLongDistancePostingSource__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
43364   PyObject *resultobj = 0;
43365   Xapian::valueno arg1 ;
43366   Xapian::LatLongCoords *arg2 = 0 ;
43367   Xapian::LatLongMetric *arg3 = 0 ;
43368   unsigned int val1 ;
43369   int ecode1 = 0 ;
43370   void *argp2 = 0 ;
43371   int res2 = 0 ;
43372   void *argp3 = 0 ;
43373   int res3 = 0 ;
43374   Xapian::LatLongDistancePostingSource *result = 0 ;
43375 
43376   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
43377   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
43378   if (!SWIG_IsOK(ecode1)) {
43379     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongDistancePostingSource" "', argument " "1"" of type '" "Xapian::valueno""'");
43380   }
43381   arg1 = static_cast< Xapian::valueno >(val1);
43382   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongCoords,  0  | 0);
43383   if (!SWIG_IsOK(res2)) {
43384     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
43385   }
43386   if (!argp2) {
43387     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
43388   }
43389   arg2 = reinterpret_cast< Xapian::LatLongCoords * >(argp2);
43390   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Xapian__LatLongMetric,  0  | 0);
43391   if (!SWIG_IsOK(res3)) {
43392     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LatLongDistancePostingSource" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
43393   }
43394   if (!argp3) {
43395     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistancePostingSource" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
43396   }
43397   arg3 = reinterpret_cast< Xapian::LatLongMetric * >(argp3);
43398   {
43399     try {
43400       {
43401         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
43402         result = (Xapian::LatLongDistancePostingSource *)new Xapian::LatLongDistancePostingSource(arg1,(Xapian::LatLongCoords const &)*arg2,(Xapian::LatLongMetric const &)*arg3);
43403         SWIG_PYTHON_THREAD_END_ALLOW;
43404       }
43405     } catch (...) {
43406       Xapian::SetPythonException();
43407       SWIG_fail;
43408     }
43409   }
43410   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongDistancePostingSource, SWIG_POINTER_NEW |  0 );
43411   return resultobj;
43412 fail:
43413   return NULL;
43414 }
43415 
43416 
_wrap_new_LatLongDistancePostingSource__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)43417 SWIGINTERN PyObject *_wrap_new_LatLongDistancePostingSource__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
43418   PyObject *resultobj = 0;
43419   Xapian::valueno arg1 ;
43420   Xapian::LatLongCoords *arg2 = 0 ;
43421   double arg3 ;
43422   double arg4 ;
43423   double arg5 ;
43424   unsigned int val1 ;
43425   int ecode1 = 0 ;
43426   void *argp2 = 0 ;
43427   int res2 = 0 ;
43428   double val3 ;
43429   int ecode3 = 0 ;
43430   double val4 ;
43431   int ecode4 = 0 ;
43432   double val5 ;
43433   int ecode5 = 0 ;
43434   Xapian::LatLongDistancePostingSource *result = 0 ;
43435 
43436   if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
43437   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
43438   if (!SWIG_IsOK(ecode1)) {
43439     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongDistancePostingSource" "', argument " "1"" of type '" "Xapian::valueno""'");
43440   }
43441   arg1 = static_cast< Xapian::valueno >(val1);
43442   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongCoords,  0  | 0);
43443   if (!SWIG_IsOK(res2)) {
43444     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
43445   }
43446   if (!argp2) {
43447     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
43448   }
43449   arg2 = reinterpret_cast< Xapian::LatLongCoords * >(argp2);
43450   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
43451   if (!SWIG_IsOK(ecode3)) {
43452     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_LatLongDistancePostingSource" "', argument " "3"" of type '" "double""'");
43453   }
43454   arg3 = static_cast< double >(val3);
43455   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
43456   if (!SWIG_IsOK(ecode4)) {
43457     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_LatLongDistancePostingSource" "', argument " "4"" of type '" "double""'");
43458   }
43459   arg4 = static_cast< double >(val4);
43460   ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
43461   if (!SWIG_IsOK(ecode5)) {
43462     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_LatLongDistancePostingSource" "', argument " "5"" of type '" "double""'");
43463   }
43464   arg5 = static_cast< double >(val5);
43465   {
43466     try {
43467       {
43468         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
43469         result = (Xapian::LatLongDistancePostingSource *)new Xapian::LatLongDistancePostingSource(arg1,(Xapian::LatLongCoords const &)*arg2,arg3,arg4,arg5);
43470         SWIG_PYTHON_THREAD_END_ALLOW;
43471       }
43472     } catch (...) {
43473       Xapian::SetPythonException();
43474       SWIG_fail;
43475     }
43476   }
43477   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongDistancePostingSource, SWIG_POINTER_NEW |  0 );
43478   return resultobj;
43479 fail:
43480   return NULL;
43481 }
43482 
43483 
_wrap_new_LatLongDistancePostingSource__SWIG_5(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)43484 SWIGINTERN PyObject *_wrap_new_LatLongDistancePostingSource__SWIG_5(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
43485   PyObject *resultobj = 0;
43486   Xapian::valueno arg1 ;
43487   Xapian::LatLongCoords *arg2 = 0 ;
43488   double arg3 ;
43489   double arg4 ;
43490   unsigned int val1 ;
43491   int ecode1 = 0 ;
43492   void *argp2 = 0 ;
43493   int res2 = 0 ;
43494   double val3 ;
43495   int ecode3 = 0 ;
43496   double val4 ;
43497   int ecode4 = 0 ;
43498   Xapian::LatLongDistancePostingSource *result = 0 ;
43499 
43500   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
43501   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
43502   if (!SWIG_IsOK(ecode1)) {
43503     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongDistancePostingSource" "', argument " "1"" of type '" "Xapian::valueno""'");
43504   }
43505   arg1 = static_cast< Xapian::valueno >(val1);
43506   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongCoords,  0  | 0);
43507   if (!SWIG_IsOK(res2)) {
43508     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
43509   }
43510   if (!argp2) {
43511     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
43512   }
43513   arg2 = reinterpret_cast< Xapian::LatLongCoords * >(argp2);
43514   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
43515   if (!SWIG_IsOK(ecode3)) {
43516     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_LatLongDistancePostingSource" "', argument " "3"" of type '" "double""'");
43517   }
43518   arg3 = static_cast< double >(val3);
43519   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
43520   if (!SWIG_IsOK(ecode4)) {
43521     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_LatLongDistancePostingSource" "', argument " "4"" of type '" "double""'");
43522   }
43523   arg4 = static_cast< double >(val4);
43524   {
43525     try {
43526       {
43527         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
43528         result = (Xapian::LatLongDistancePostingSource *)new Xapian::LatLongDistancePostingSource(arg1,(Xapian::LatLongCoords const &)*arg2,arg3,arg4);
43529         SWIG_PYTHON_THREAD_END_ALLOW;
43530       }
43531     } catch (...) {
43532       Xapian::SetPythonException();
43533       SWIG_fail;
43534     }
43535   }
43536   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongDistancePostingSource, SWIG_POINTER_NEW |  0 );
43537   return resultobj;
43538 fail:
43539   return NULL;
43540 }
43541 
43542 
_wrap_new_LatLongDistancePostingSource__SWIG_6(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)43543 SWIGINTERN PyObject *_wrap_new_LatLongDistancePostingSource__SWIG_6(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
43544   PyObject *resultobj = 0;
43545   Xapian::valueno arg1 ;
43546   Xapian::LatLongCoords *arg2 = 0 ;
43547   double arg3 ;
43548   unsigned int val1 ;
43549   int ecode1 = 0 ;
43550   void *argp2 = 0 ;
43551   int res2 = 0 ;
43552   double val3 ;
43553   int ecode3 = 0 ;
43554   Xapian::LatLongDistancePostingSource *result = 0 ;
43555 
43556   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
43557   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
43558   if (!SWIG_IsOK(ecode1)) {
43559     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongDistancePostingSource" "', argument " "1"" of type '" "Xapian::valueno""'");
43560   }
43561   arg1 = static_cast< Xapian::valueno >(val1);
43562   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongCoords,  0  | 0);
43563   if (!SWIG_IsOK(res2)) {
43564     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
43565   }
43566   if (!argp2) {
43567     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
43568   }
43569   arg2 = reinterpret_cast< Xapian::LatLongCoords * >(argp2);
43570   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
43571   if (!SWIG_IsOK(ecode3)) {
43572     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_LatLongDistancePostingSource" "', argument " "3"" of type '" "double""'");
43573   }
43574   arg3 = static_cast< double >(val3);
43575   {
43576     try {
43577       {
43578         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
43579         result = (Xapian::LatLongDistancePostingSource *)new Xapian::LatLongDistancePostingSource(arg1,(Xapian::LatLongCoords const &)*arg2,arg3);
43580         SWIG_PYTHON_THREAD_END_ALLOW;
43581       }
43582     } catch (...) {
43583       Xapian::SetPythonException();
43584       SWIG_fail;
43585     }
43586   }
43587   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongDistancePostingSource, SWIG_POINTER_NEW |  0 );
43588   return resultobj;
43589 fail:
43590   return NULL;
43591 }
43592 
43593 
_wrap_new_LatLongDistancePostingSource__SWIG_7(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)43594 SWIGINTERN PyObject *_wrap_new_LatLongDistancePostingSource__SWIG_7(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
43595   PyObject *resultobj = 0;
43596   Xapian::valueno arg1 ;
43597   Xapian::LatLongCoords *arg2 = 0 ;
43598   unsigned int val1 ;
43599   int ecode1 = 0 ;
43600   void *argp2 = 0 ;
43601   int res2 = 0 ;
43602   Xapian::LatLongDistancePostingSource *result = 0 ;
43603 
43604   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
43605   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
43606   if (!SWIG_IsOK(ecode1)) {
43607     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongDistancePostingSource" "', argument " "1"" of type '" "Xapian::valueno""'");
43608   }
43609   arg1 = static_cast< Xapian::valueno >(val1);
43610   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongCoords,  0  | 0);
43611   if (!SWIG_IsOK(res2)) {
43612     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
43613   }
43614   if (!argp2) {
43615     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
43616   }
43617   arg2 = reinterpret_cast< Xapian::LatLongCoords * >(argp2);
43618   {
43619     try {
43620       {
43621         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
43622         result = (Xapian::LatLongDistancePostingSource *)new Xapian::LatLongDistancePostingSource(arg1,(Xapian::LatLongCoords const &)*arg2);
43623         SWIG_PYTHON_THREAD_END_ALLOW;
43624       }
43625     } catch (...) {
43626       Xapian::SetPythonException();
43627       SWIG_fail;
43628     }
43629   }
43630   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongDistancePostingSource, SWIG_POINTER_NEW |  0 );
43631   return resultobj;
43632 fail:
43633   return NULL;
43634 }
43635 
43636 
_wrap_new_LatLongDistancePostingSource(PyObject * self,PyObject * args)43637 SWIGINTERN PyObject *_wrap_new_LatLongDistancePostingSource(PyObject *self, PyObject *args) {
43638   Py_ssize_t argc;
43639   PyObject *argv[7] = {
43640     0
43641   };
43642 
43643   if (!(argc = SWIG_Python_UnpackTuple(args,"new_LatLongDistancePostingSource",0,6,argv))) SWIG_fail;
43644   --argc;
43645   if (argc == 2) {
43646     return _wrap_new_LatLongDistancePostingSource__SWIG_7(self, argc, argv);
43647   }
43648   if (argc == 3) {
43649     int _v = 0;
43650     {
43651       int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Xapian__LatLongMetric, 0);
43652       _v = SWIG_CheckState(res);
43653     }
43654     if (!_v) goto check_2;
43655     return _wrap_new_LatLongDistancePostingSource__SWIG_3(self, argc, argv);
43656   }
43657 check_2:
43658 
43659   if (argc == 3) {
43660     return _wrap_new_LatLongDistancePostingSource__SWIG_6(self, argc, argv);
43661   }
43662   if (argc == 4) {
43663     int _v = 0;
43664     {
43665       int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Xapian__LatLongMetric, 0);
43666       _v = SWIG_CheckState(res);
43667     }
43668     if (!_v) goto check_4;
43669     return _wrap_new_LatLongDistancePostingSource__SWIG_2(self, argc, argv);
43670   }
43671 check_4:
43672 
43673   if (argc == 4) {
43674     return _wrap_new_LatLongDistancePostingSource__SWIG_5(self, argc, argv);
43675   }
43676   if (argc == 5) {
43677     int _v = 0;
43678     {
43679       int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Xapian__LatLongMetric, 0);
43680       _v = SWIG_CheckState(res);
43681     }
43682     if (!_v) goto check_6;
43683     return _wrap_new_LatLongDistancePostingSource__SWIG_1(self, argc, argv);
43684   }
43685 check_6:
43686 
43687   if (argc == 5) {
43688     return _wrap_new_LatLongDistancePostingSource__SWIG_4(self, argc, argv);
43689   }
43690   if (argc == 6) {
43691     return _wrap_new_LatLongDistancePostingSource__SWIG_0(self, argc, argv);
43692   }
43693 
43694 fail:
43695   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_LatLongDistancePostingSource'.\n"
43696     "  Possible C/C++ prototypes are:\n"
43697     "    Xapian::LatLongDistancePostingSource::LatLongDistancePostingSource(Xapian::valueno,Xapian::LatLongCoords const &,Xapian::LatLongMetric const &,double,double,double)\n"
43698     "    Xapian::LatLongDistancePostingSource::LatLongDistancePostingSource(Xapian::valueno,Xapian::LatLongCoords const &,Xapian::LatLongMetric const &,double,double)\n"
43699     "    Xapian::LatLongDistancePostingSource::LatLongDistancePostingSource(Xapian::valueno,Xapian::LatLongCoords const &,Xapian::LatLongMetric const &,double)\n"
43700     "    Xapian::LatLongDistancePostingSource::LatLongDistancePostingSource(Xapian::valueno,Xapian::LatLongCoords const &,Xapian::LatLongMetric const &)\n"
43701     "    Xapian::LatLongDistancePostingSource::LatLongDistancePostingSource(Xapian::valueno,Xapian::LatLongCoords const &,double,double,double)\n"
43702     "    Xapian::LatLongDistancePostingSource::LatLongDistancePostingSource(Xapian::valueno,Xapian::LatLongCoords const &,double,double)\n"
43703     "    Xapian::LatLongDistancePostingSource::LatLongDistancePostingSource(Xapian::valueno,Xapian::LatLongCoords const &,double)\n"
43704     "    Xapian::LatLongDistancePostingSource::LatLongDistancePostingSource(Xapian::valueno,Xapian::LatLongCoords const &)\n");
43705   return 0;
43706 }
43707 
43708 
_wrap_delete_LatLongDistancePostingSource(PyObject * SWIGUNUSEDPARM (self),PyObject * args)43709 SWIGINTERN PyObject *_wrap_delete_LatLongDistancePostingSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43710   PyObject *resultobj = 0;
43711   Xapian::LatLongDistancePostingSource *arg1 = (Xapian::LatLongDistancePostingSource *) 0 ;
43712   void *argp1 = 0 ;
43713   int res1 = 0 ;
43714   PyObject *swig_obj[1] ;
43715 
43716   if (!args) SWIG_fail;
43717   swig_obj[0] = args;
43718   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongDistancePostingSource, SWIG_POINTER_DISOWN |  0 );
43719   if (!SWIG_IsOK(res1)) {
43720     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LatLongDistancePostingSource" "', argument " "1"" of type '" "Xapian::LatLongDistancePostingSource *""'");
43721   }
43722   arg1 = reinterpret_cast< Xapian::LatLongDistancePostingSource * >(argp1);
43723   {
43724     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
43725     delete arg1;
43726     SWIG_PYTHON_THREAD_END_ALLOW;
43727   }
43728   resultobj = SWIG_Py_Void();
43729   return resultobj;
43730 fail:
43731   return NULL;
43732 }
43733 
43734 
LatLongDistancePostingSource_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)43735 SWIGINTERN PyObject *LatLongDistancePostingSource_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43736   PyObject *obj;
43737   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
43738   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__LatLongDistancePostingSource, SWIG_NewClientData(obj));
43739   return SWIG_Py_Void();
43740 }
43741 
LatLongDistancePostingSource_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)43742 SWIGINTERN PyObject *LatLongDistancePostingSource_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43743   return SWIG_Python_InitShadowInstance(args);
43744 }
43745 
_wrap_new_LatLongDistanceKeyMaker__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)43746 SWIGINTERN PyObject *_wrap_new_LatLongDistanceKeyMaker__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
43747   PyObject *resultobj = 0;
43748   Xapian::valueno arg1 ;
43749   Xapian::LatLongCoords *arg2 = 0 ;
43750   Xapian::LatLongMetric *arg3 = 0 ;
43751   double arg4 ;
43752   unsigned int val1 ;
43753   int ecode1 = 0 ;
43754   void *argp2 = 0 ;
43755   int res2 = 0 ;
43756   void *argp3 = 0 ;
43757   int res3 = 0 ;
43758   double val4 ;
43759   int ecode4 = 0 ;
43760   Xapian::LatLongDistanceKeyMaker *result = 0 ;
43761 
43762   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
43763   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
43764   if (!SWIG_IsOK(ecode1)) {
43765     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "1"" of type '" "Xapian::valueno""'");
43766   }
43767   arg1 = static_cast< Xapian::valueno >(val1);
43768   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongCoords,  0  | 0);
43769   if (!SWIG_IsOK(res2)) {
43770     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
43771   }
43772   if (!argp2) {
43773     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistanceKeyMaker" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
43774   }
43775   arg2 = reinterpret_cast< Xapian::LatLongCoords * >(argp2);
43776   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Xapian__LatLongMetric,  0  | 0);
43777   if (!SWIG_IsOK(res3)) {
43778     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
43779   }
43780   if (!argp3) {
43781     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistanceKeyMaker" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
43782   }
43783   arg3 = reinterpret_cast< Xapian::LatLongMetric * >(argp3);
43784   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
43785   if (!SWIG_IsOK(ecode4)) {
43786     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "4"" of type '" "double""'");
43787   }
43788   arg4 = static_cast< double >(val4);
43789   {
43790     try {
43791       {
43792         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
43793         result = (Xapian::LatLongDistanceKeyMaker *)new Xapian::LatLongDistanceKeyMaker(arg1,(Xapian::LatLongCoords const &)*arg2,(Xapian::LatLongMetric const &)*arg3,arg4);
43794         SWIG_PYTHON_THREAD_END_ALLOW;
43795       }
43796     } catch (...) {
43797       Xapian::SetPythonException();
43798       SWIG_fail;
43799     }
43800   }
43801   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongDistanceKeyMaker, SWIG_POINTER_NEW |  0 );
43802   return resultobj;
43803 fail:
43804   return NULL;
43805 }
43806 
43807 
_wrap_new_LatLongDistanceKeyMaker__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)43808 SWIGINTERN PyObject *_wrap_new_LatLongDistanceKeyMaker__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
43809   PyObject *resultobj = 0;
43810   Xapian::valueno arg1 ;
43811   Xapian::LatLongCoords *arg2 = 0 ;
43812   Xapian::LatLongMetric *arg3 = 0 ;
43813   unsigned int val1 ;
43814   int ecode1 = 0 ;
43815   void *argp2 = 0 ;
43816   int res2 = 0 ;
43817   void *argp3 = 0 ;
43818   int res3 = 0 ;
43819   Xapian::LatLongDistanceKeyMaker *result = 0 ;
43820 
43821   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
43822   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
43823   if (!SWIG_IsOK(ecode1)) {
43824     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "1"" of type '" "Xapian::valueno""'");
43825   }
43826   arg1 = static_cast< Xapian::valueno >(val1);
43827   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongCoords,  0  | 0);
43828   if (!SWIG_IsOK(res2)) {
43829     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
43830   }
43831   if (!argp2) {
43832     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistanceKeyMaker" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
43833   }
43834   arg2 = reinterpret_cast< Xapian::LatLongCoords * >(argp2);
43835   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Xapian__LatLongMetric,  0  | 0);
43836   if (!SWIG_IsOK(res3)) {
43837     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
43838   }
43839   if (!argp3) {
43840     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistanceKeyMaker" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
43841   }
43842   arg3 = reinterpret_cast< Xapian::LatLongMetric * >(argp3);
43843   {
43844     try {
43845       {
43846         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
43847         result = (Xapian::LatLongDistanceKeyMaker *)new Xapian::LatLongDistanceKeyMaker(arg1,(Xapian::LatLongCoords const &)*arg2,(Xapian::LatLongMetric const &)*arg3);
43848         SWIG_PYTHON_THREAD_END_ALLOW;
43849       }
43850     } catch (...) {
43851       Xapian::SetPythonException();
43852       SWIG_fail;
43853     }
43854   }
43855   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongDistanceKeyMaker, SWIG_POINTER_NEW |  0 );
43856   return resultobj;
43857 fail:
43858   return NULL;
43859 }
43860 
43861 
_wrap_new_LatLongDistanceKeyMaker__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)43862 SWIGINTERN PyObject *_wrap_new_LatLongDistanceKeyMaker__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
43863   PyObject *resultobj = 0;
43864   Xapian::valueno arg1 ;
43865   Xapian::LatLongCoords *arg2 = 0 ;
43866   unsigned int val1 ;
43867   int ecode1 = 0 ;
43868   void *argp2 = 0 ;
43869   int res2 = 0 ;
43870   Xapian::LatLongDistanceKeyMaker *result = 0 ;
43871 
43872   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
43873   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
43874   if (!SWIG_IsOK(ecode1)) {
43875     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "1"" of type '" "Xapian::valueno""'");
43876   }
43877   arg1 = static_cast< Xapian::valueno >(val1);
43878   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongCoords,  0  | 0);
43879   if (!SWIG_IsOK(res2)) {
43880     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
43881   }
43882   if (!argp2) {
43883     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistanceKeyMaker" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
43884   }
43885   arg2 = reinterpret_cast< Xapian::LatLongCoords * >(argp2);
43886   {
43887     try {
43888       {
43889         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
43890         result = (Xapian::LatLongDistanceKeyMaker *)new Xapian::LatLongDistanceKeyMaker(arg1,(Xapian::LatLongCoords const &)*arg2);
43891         SWIG_PYTHON_THREAD_END_ALLOW;
43892       }
43893     } catch (...) {
43894       Xapian::SetPythonException();
43895       SWIG_fail;
43896     }
43897   }
43898   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongDistanceKeyMaker, SWIG_POINTER_NEW |  0 );
43899   return resultobj;
43900 fail:
43901   return NULL;
43902 }
43903 
43904 
_wrap_new_LatLongDistanceKeyMaker__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)43905 SWIGINTERN PyObject *_wrap_new_LatLongDistanceKeyMaker__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
43906   PyObject *resultobj = 0;
43907   Xapian::valueno arg1 ;
43908   Xapian::LatLongCoord *arg2 = 0 ;
43909   Xapian::LatLongMetric *arg3 = 0 ;
43910   double arg4 ;
43911   unsigned int val1 ;
43912   int ecode1 = 0 ;
43913   void *argp2 = 0 ;
43914   int res2 = 0 ;
43915   void *argp3 = 0 ;
43916   int res3 = 0 ;
43917   double val4 ;
43918   int ecode4 = 0 ;
43919   Xapian::LatLongDistanceKeyMaker *result = 0 ;
43920 
43921   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
43922   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
43923   if (!SWIG_IsOK(ecode1)) {
43924     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "1"" of type '" "Xapian::valueno""'");
43925   }
43926   arg1 = static_cast< Xapian::valueno >(val1);
43927   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongCoord,  0  | 0);
43928   if (!SWIG_IsOK(res2)) {
43929     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "2"" of type '" "Xapian::LatLongCoord const &""'");
43930   }
43931   if (!argp2) {
43932     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistanceKeyMaker" "', argument " "2"" of type '" "Xapian::LatLongCoord const &""'");
43933   }
43934   arg2 = reinterpret_cast< Xapian::LatLongCoord * >(argp2);
43935   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Xapian__LatLongMetric,  0  | 0);
43936   if (!SWIG_IsOK(res3)) {
43937     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
43938   }
43939   if (!argp3) {
43940     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistanceKeyMaker" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
43941   }
43942   arg3 = reinterpret_cast< Xapian::LatLongMetric * >(argp3);
43943   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
43944   if (!SWIG_IsOK(ecode4)) {
43945     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "4"" of type '" "double""'");
43946   }
43947   arg4 = static_cast< double >(val4);
43948   {
43949     try {
43950       {
43951         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
43952         result = (Xapian::LatLongDistanceKeyMaker *)new Xapian::LatLongDistanceKeyMaker(arg1,(Xapian::LatLongCoord const &)*arg2,(Xapian::LatLongMetric const &)*arg3,arg4);
43953         SWIG_PYTHON_THREAD_END_ALLOW;
43954       }
43955     } catch (...) {
43956       Xapian::SetPythonException();
43957       SWIG_fail;
43958     }
43959   }
43960   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongDistanceKeyMaker, SWIG_POINTER_NEW |  0 );
43961   return resultobj;
43962 fail:
43963   return NULL;
43964 }
43965 
43966 
_wrap_new_LatLongDistanceKeyMaker__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)43967 SWIGINTERN PyObject *_wrap_new_LatLongDistanceKeyMaker__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
43968   PyObject *resultobj = 0;
43969   Xapian::valueno arg1 ;
43970   Xapian::LatLongCoord *arg2 = 0 ;
43971   Xapian::LatLongMetric *arg3 = 0 ;
43972   unsigned int val1 ;
43973   int ecode1 = 0 ;
43974   void *argp2 = 0 ;
43975   int res2 = 0 ;
43976   void *argp3 = 0 ;
43977   int res3 = 0 ;
43978   Xapian::LatLongDistanceKeyMaker *result = 0 ;
43979 
43980   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
43981   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
43982   if (!SWIG_IsOK(ecode1)) {
43983     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "1"" of type '" "Xapian::valueno""'");
43984   }
43985   arg1 = static_cast< Xapian::valueno >(val1);
43986   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongCoord,  0  | 0);
43987   if (!SWIG_IsOK(res2)) {
43988     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "2"" of type '" "Xapian::LatLongCoord const &""'");
43989   }
43990   if (!argp2) {
43991     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistanceKeyMaker" "', argument " "2"" of type '" "Xapian::LatLongCoord const &""'");
43992   }
43993   arg2 = reinterpret_cast< Xapian::LatLongCoord * >(argp2);
43994   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Xapian__LatLongMetric,  0  | 0);
43995   if (!SWIG_IsOK(res3)) {
43996     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
43997   }
43998   if (!argp3) {
43999     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistanceKeyMaker" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
44000   }
44001   arg3 = reinterpret_cast< Xapian::LatLongMetric * >(argp3);
44002   {
44003     try {
44004       {
44005         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44006         result = (Xapian::LatLongDistanceKeyMaker *)new Xapian::LatLongDistanceKeyMaker(arg1,(Xapian::LatLongCoord const &)*arg2,(Xapian::LatLongMetric const &)*arg3);
44007         SWIG_PYTHON_THREAD_END_ALLOW;
44008       }
44009     } catch (...) {
44010       Xapian::SetPythonException();
44011       SWIG_fail;
44012     }
44013   }
44014   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongDistanceKeyMaker, SWIG_POINTER_NEW |  0 );
44015   return resultobj;
44016 fail:
44017   return NULL;
44018 }
44019 
44020 
_wrap_new_LatLongDistanceKeyMaker__SWIG_5(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)44021 SWIGINTERN PyObject *_wrap_new_LatLongDistanceKeyMaker__SWIG_5(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
44022   PyObject *resultobj = 0;
44023   Xapian::valueno arg1 ;
44024   Xapian::LatLongCoord *arg2 = 0 ;
44025   unsigned int val1 ;
44026   int ecode1 = 0 ;
44027   void *argp2 = 0 ;
44028   int res2 = 0 ;
44029   Xapian::LatLongDistanceKeyMaker *result = 0 ;
44030 
44031   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
44032   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
44033   if (!SWIG_IsOK(ecode1)) {
44034     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "1"" of type '" "Xapian::valueno""'");
44035   }
44036   arg1 = static_cast< Xapian::valueno >(val1);
44037   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongCoord,  0  | 0);
44038   if (!SWIG_IsOK(res2)) {
44039     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "2"" of type '" "Xapian::LatLongCoord const &""'");
44040   }
44041   if (!argp2) {
44042     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistanceKeyMaker" "', argument " "2"" of type '" "Xapian::LatLongCoord const &""'");
44043   }
44044   arg2 = reinterpret_cast< Xapian::LatLongCoord * >(argp2);
44045   {
44046     try {
44047       {
44048         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44049         result = (Xapian::LatLongDistanceKeyMaker *)new Xapian::LatLongDistanceKeyMaker(arg1,(Xapian::LatLongCoord const &)*arg2);
44050         SWIG_PYTHON_THREAD_END_ALLOW;
44051       }
44052     } catch (...) {
44053       Xapian::SetPythonException();
44054       SWIG_fail;
44055     }
44056   }
44057   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongDistanceKeyMaker, SWIG_POINTER_NEW |  0 );
44058   return resultobj;
44059 fail:
44060   return NULL;
44061 }
44062 
44063 
_wrap_new_LatLongDistanceKeyMaker(PyObject * self,PyObject * args)44064 SWIGINTERN PyObject *_wrap_new_LatLongDistanceKeyMaker(PyObject *self, PyObject *args) {
44065   Py_ssize_t argc;
44066   PyObject *argv[5] = {
44067     0
44068   };
44069 
44070   if (!(argc = SWIG_Python_UnpackTuple(args,"new_LatLongDistanceKeyMaker",0,4,argv))) SWIG_fail;
44071   --argc;
44072   if (argc == 2) {
44073     int _v = 0;
44074     {
44075       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__LatLongCoords, 0);
44076       _v = SWIG_CheckState(res);
44077     }
44078     if (!_v) goto check_1;
44079     return _wrap_new_LatLongDistanceKeyMaker__SWIG_2(self, argc, argv);
44080   }
44081 check_1:
44082 
44083   if (argc == 2) {
44084     return _wrap_new_LatLongDistanceKeyMaker__SWIG_5(self, argc, argv);
44085   }
44086   if (argc == 3) {
44087     int _v = 0;
44088     {
44089       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__LatLongCoord, 0);
44090       _v = SWIG_CheckState(res);
44091     }
44092     if (!_v) goto check_3;
44093     return _wrap_new_LatLongDistanceKeyMaker__SWIG_4(self, argc, argv);
44094   }
44095 check_3:
44096 
44097   if (argc == 3) {
44098     return _wrap_new_LatLongDistanceKeyMaker__SWIG_1(self, argc, argv);
44099   }
44100   if (argc == 4) {
44101     int _v = 0;
44102     {
44103       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__LatLongCoords, 0);
44104       _v = SWIG_CheckState(res);
44105     }
44106     if (!_v) goto check_5;
44107     return _wrap_new_LatLongDistanceKeyMaker__SWIG_0(self, argc, argv);
44108   }
44109 check_5:
44110 
44111   if (argc == 4) {
44112     return _wrap_new_LatLongDistanceKeyMaker__SWIG_3(self, argc, argv);
44113   }
44114 
44115 fail:
44116   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_LatLongDistanceKeyMaker'.\n"
44117     "  Possible C/C++ prototypes are:\n"
44118     "    Xapian::LatLongDistanceKeyMaker::LatLongDistanceKeyMaker(Xapian::valueno,Xapian::LatLongCoords const &,Xapian::LatLongMetric const &,double)\n"
44119     "    Xapian::LatLongDistanceKeyMaker::LatLongDistanceKeyMaker(Xapian::valueno,Xapian::LatLongCoords const &,Xapian::LatLongMetric const &)\n"
44120     "    Xapian::LatLongDistanceKeyMaker::LatLongDistanceKeyMaker(Xapian::valueno,Xapian::LatLongCoords const &)\n"
44121     "    Xapian::LatLongDistanceKeyMaker::LatLongDistanceKeyMaker(Xapian::valueno,Xapian::LatLongCoord const &,Xapian::LatLongMetric const &,double)\n"
44122     "    Xapian::LatLongDistanceKeyMaker::LatLongDistanceKeyMaker(Xapian::valueno,Xapian::LatLongCoord const &,Xapian::LatLongMetric const &)\n"
44123     "    Xapian::LatLongDistanceKeyMaker::LatLongDistanceKeyMaker(Xapian::valueno,Xapian::LatLongCoord const &)\n");
44124   return 0;
44125 }
44126 
44127 
_wrap_delete_LatLongDistanceKeyMaker(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44128 SWIGINTERN PyObject *_wrap_delete_LatLongDistanceKeyMaker(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44129   PyObject *resultobj = 0;
44130   Xapian::LatLongDistanceKeyMaker *arg1 = (Xapian::LatLongDistanceKeyMaker *) 0 ;
44131   void *argp1 = 0 ;
44132   int res1 = 0 ;
44133   PyObject *swig_obj[1] ;
44134 
44135   if (!args) SWIG_fail;
44136   swig_obj[0] = args;
44137   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongDistanceKeyMaker, SWIG_POINTER_DISOWN |  0 );
44138   if (!SWIG_IsOK(res1)) {
44139     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LatLongDistanceKeyMaker" "', argument " "1"" of type '" "Xapian::LatLongDistanceKeyMaker *""'");
44140   }
44141   arg1 = reinterpret_cast< Xapian::LatLongDistanceKeyMaker * >(argp1);
44142   {
44143     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44144     delete arg1;
44145     SWIG_PYTHON_THREAD_END_ALLOW;
44146   }
44147   resultobj = SWIG_Py_Void();
44148   return resultobj;
44149 fail:
44150   return NULL;
44151 }
44152 
44153 
LatLongDistanceKeyMaker_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44154 SWIGINTERN PyObject *LatLongDistanceKeyMaker_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44155   PyObject *obj;
44156   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
44157   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__LatLongDistanceKeyMaker, SWIG_NewClientData(obj));
44158   return SWIG_Py_Void();
44159 }
44160 
LatLongDistanceKeyMaker_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44161 SWIGINTERN PyObject *LatLongDistanceKeyMaker_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44162   return SWIG_Python_InitShadowInstance(args);
44163 }
44164 
_wrap_Database_add_database(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44165 SWIGINTERN PyObject *_wrap_Database_add_database(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44166   PyObject *resultobj = 0;
44167   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
44168   Xapian::Database *arg2 = 0 ;
44169   void *argp1 = 0 ;
44170   int res1 = 0 ;
44171   void *argp2 = 0 ;
44172   int res2 = 0 ;
44173   PyObject *swig_obj[2] ;
44174 
44175   if (!SWIG_Python_UnpackTuple(args,"Database_add_database",2,2,swig_obj)) SWIG_fail;
44176   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
44177   if (!SWIG_IsOK(res1)) {
44178     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_add_database" "', argument " "1"" of type '" "Xapian::Database *""'");
44179   }
44180   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
44181   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__Database,  0  | 0);
44182   if (!SWIG_IsOK(res2)) {
44183     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_add_database" "', argument " "2"" of type '" "Xapian::Database const &""'");
44184   }
44185   if (!argp2) {
44186     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_add_database" "', argument " "2"" of type '" "Xapian::Database const &""'");
44187   }
44188   arg2 = reinterpret_cast< Xapian::Database * >(argp2);
44189   {
44190     try {
44191       {
44192         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44193         (arg1)->add_database((Xapian::Database const &)*arg2);
44194         SWIG_PYTHON_THREAD_END_ALLOW;
44195       }
44196     } catch (...) {
44197       Xapian::SetPythonException();
44198       SWIG_fail;
44199     }
44200   }
44201   resultobj = SWIG_Py_Void();
44202   return resultobj;
44203 fail:
44204   return NULL;
44205 }
44206 
44207 
_wrap_Database_size(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44208 SWIGINTERN PyObject *_wrap_Database_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44209   PyObject *resultobj = 0;
44210   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
44211   void *argp1 = 0 ;
44212   int res1 = 0 ;
44213   PyObject *swig_obj[1] ;
44214   size_t result;
44215 
44216   if (!args) SWIG_fail;
44217   swig_obj[0] = args;
44218   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
44219   if (!SWIG_IsOK(res1)) {
44220     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_size" "', argument " "1"" of type '" "Xapian::Database const *""'");
44221   }
44222   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
44223   {
44224     try {
44225       {
44226         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44227         result = ((Xapian::Database const *)arg1)->size();
44228         SWIG_PYTHON_THREAD_END_ALLOW;
44229       }
44230     } catch (...) {
44231       Xapian::SetPythonException();
44232       SWIG_fail;
44233     }
44234   }
44235   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
44236   return resultobj;
44237 fail:
44238   return NULL;
44239 }
44240 
44241 
_wrap_new_Database__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))44242 SWIGINTERN PyObject *_wrap_new_Database__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
44243   PyObject *resultobj = 0;
44244   Xapian::Database *result = 0 ;
44245 
44246   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
44247   {
44248     try {
44249       {
44250         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44251         result = (Xapian::Database *)new Xapian::Database();
44252         SWIG_PYTHON_THREAD_END_ALLOW;
44253       }
44254     } catch (...) {
44255       Xapian::SetPythonException();
44256       SWIG_fail;
44257     }
44258   }
44259   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Database, SWIG_POINTER_NEW |  0 );
44260   return resultobj;
44261 fail:
44262   return NULL;
44263 }
44264 
44265 
_wrap_new_Database__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)44266 SWIGINTERN PyObject *_wrap_new_Database__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
44267   PyObject *resultobj = 0;
44268   std::string *arg1 = 0 ;
44269   int arg2 ;
44270   int res1 = SWIG_OLDOBJ ;
44271   int val2 ;
44272   int ecode2 = 0 ;
44273   Xapian::Database *result = 0 ;
44274 
44275   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
44276   {
44277     std::string *ptr = (std::string *)0;
44278     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
44279     if (!SWIG_IsOK(res1)) {
44280       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Database" "', argument " "1"" of type '" "std::string const &""'");
44281     }
44282     if (!ptr) {
44283       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Database" "', argument " "1"" of type '" "std::string const &""'");
44284     }
44285     arg1 = ptr;
44286   }
44287   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
44288   if (!SWIG_IsOK(ecode2)) {
44289     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Database" "', argument " "2"" of type '" "int""'");
44290   }
44291   arg2 = static_cast< int >(val2);
44292   {
44293     try {
44294       {
44295         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44296         result = (Xapian::Database *)new Xapian::Database((std::string const &)*arg1,arg2);
44297         SWIG_PYTHON_THREAD_END_ALLOW;
44298       }
44299     } catch (...) {
44300       Xapian::SetPythonException();
44301       SWIG_fail;
44302     }
44303   }
44304   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Database, SWIG_POINTER_NEW |  0 );
44305   if (SWIG_IsNewObj(res1)) delete arg1;
44306   return resultobj;
44307 fail:
44308   if (SWIG_IsNewObj(res1)) delete arg1;
44309   return NULL;
44310 }
44311 
44312 
_wrap_new_Database__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)44313 SWIGINTERN PyObject *_wrap_new_Database__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
44314   PyObject *resultobj = 0;
44315   std::string *arg1 = 0 ;
44316   int res1 = SWIG_OLDOBJ ;
44317   Xapian::Database *result = 0 ;
44318 
44319   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
44320   {
44321     std::string *ptr = (std::string *)0;
44322     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
44323     if (!SWIG_IsOK(res1)) {
44324       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Database" "', argument " "1"" of type '" "std::string const &""'");
44325     }
44326     if (!ptr) {
44327       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Database" "', argument " "1"" of type '" "std::string const &""'");
44328     }
44329     arg1 = ptr;
44330   }
44331   {
44332     try {
44333       {
44334         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44335         result = (Xapian::Database *)new Xapian::Database((std::string const &)*arg1);
44336         SWIG_PYTHON_THREAD_END_ALLOW;
44337       }
44338     } catch (...) {
44339       Xapian::SetPythonException();
44340       SWIG_fail;
44341     }
44342   }
44343   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Database, SWIG_POINTER_NEW |  0 );
44344   if (SWIG_IsNewObj(res1)) delete arg1;
44345   return resultobj;
44346 fail:
44347   if (SWIG_IsNewObj(res1)) delete arg1;
44348   return NULL;
44349 }
44350 
44351 
_wrap_new_Database__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)44352 SWIGINTERN PyObject *_wrap_new_Database__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
44353   PyObject *resultobj = 0;
44354   int arg1 ;
44355   int arg2 ;
44356   int val1 ;
44357   int ecode1 = 0 ;
44358   int val2 ;
44359   int ecode2 = 0 ;
44360   Xapian::Database *result = 0 ;
44361 
44362   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
44363   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
44364   if (!SWIG_IsOK(ecode1)) {
44365     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Database" "', argument " "1"" of type '" "int""'");
44366   }
44367   arg1 = static_cast< int >(val1);
44368   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
44369   if (!SWIG_IsOK(ecode2)) {
44370     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Database" "', argument " "2"" of type '" "int""'");
44371   }
44372   arg2 = static_cast< int >(val2);
44373   {
44374     try {
44375       {
44376         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44377         result = (Xapian::Database *)new Xapian::Database(arg1,arg2);
44378         SWIG_PYTHON_THREAD_END_ALLOW;
44379       }
44380     } catch (...) {
44381       Xapian::SetPythonException();
44382       SWIG_fail;
44383     }
44384   }
44385   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Database, SWIG_POINTER_NEW |  0 );
44386   return resultobj;
44387 fail:
44388   return NULL;
44389 }
44390 
44391 
_wrap_new_Database__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)44392 SWIGINTERN PyObject *_wrap_new_Database__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
44393   PyObject *resultobj = 0;
44394   int arg1 ;
44395   int val1 ;
44396   int ecode1 = 0 ;
44397   Xapian::Database *result = 0 ;
44398 
44399   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
44400   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
44401   if (!SWIG_IsOK(ecode1)) {
44402     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Database" "', argument " "1"" of type '" "int""'");
44403   }
44404   arg1 = static_cast< int >(val1);
44405   {
44406     try {
44407       {
44408         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44409         result = (Xapian::Database *)new Xapian::Database(arg1);
44410         SWIG_PYTHON_THREAD_END_ALLOW;
44411       }
44412     } catch (...) {
44413       Xapian::SetPythonException();
44414       SWIG_fail;
44415     }
44416   }
44417   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Database, SWIG_POINTER_NEW |  0 );
44418   return resultobj;
44419 fail:
44420   return NULL;
44421 }
44422 
44423 
_wrap_new_Database(PyObject * self,PyObject * args)44424 SWIGINTERN PyObject *_wrap_new_Database(PyObject *self, PyObject *args) {
44425   Py_ssize_t argc;
44426   PyObject *argv[3] = {
44427     0
44428   };
44429 
44430   if (!(argc = SWIG_Python_UnpackTuple(args,"new_Database",0,2,argv))) SWIG_fail;
44431   --argc;
44432   if (argc == 0) {
44433     return _wrap_new_Database__SWIG_0(self, argc, argv);
44434   }
44435   if (argc == 1) {
44436     int _v = 0;
44437     {
44438       {
44439         int res = SWIG_AsVal_int(argv[0], NULL);
44440         _v = SWIG_CheckState(res);
44441       }
44442     }
44443     if (!_v) goto check_2;
44444     return _wrap_new_Database__SWIG_4(self, argc, argv);
44445   }
44446 check_2:
44447 
44448   if (argc == 1) {
44449     return _wrap_new_Database__SWIG_2(self, argc, argv);
44450   }
44451   if (argc == 2) {
44452     int _v = 0;
44453     {
44454       {
44455         int res = SWIG_AsVal_int(argv[0], NULL);
44456         _v = SWIG_CheckState(res);
44457       }
44458     }
44459     if (!_v) goto check_4;
44460     return _wrap_new_Database__SWIG_3(self, argc, argv);
44461   }
44462 check_4:
44463 
44464   if (argc == 2) {
44465     return _wrap_new_Database__SWIG_1(self, argc, argv);
44466   }
44467 
44468 fail:
44469   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Database'.\n"
44470     "  Possible C/C++ prototypes are:\n"
44471     "    Xapian::Database::Database()\n"
44472     "    Xapian::Database::Database(std::string const &,int)\n"
44473     "    Xapian::Database::Database(std::string const &)\n"
44474     "    Xapian::Database::Database(int,int)\n"
44475     "    Xapian::Database::Database(int)\n");
44476   return 0;
44477 }
44478 
44479 
_wrap_delete_Database(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44480 SWIGINTERN PyObject *_wrap_delete_Database(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44481   PyObject *resultobj = 0;
44482   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
44483   void *argp1 = 0 ;
44484   int res1 = 0 ;
44485   PyObject *swig_obj[1] ;
44486 
44487   if (!args) SWIG_fail;
44488   swig_obj[0] = args;
44489   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, SWIG_POINTER_DISOWN |  0 );
44490   if (!SWIG_IsOK(res1)) {
44491     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Database" "', argument " "1"" of type '" "Xapian::Database *""'");
44492   }
44493   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
44494   {
44495     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44496     delete arg1;
44497     SWIG_PYTHON_THREAD_END_ALLOW;
44498   }
44499   resultobj = SWIG_Py_Void();
44500   return resultobj;
44501 fail:
44502   return NULL;
44503 }
44504 
44505 
_wrap_Database_reopen(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44506 SWIGINTERN PyObject *_wrap_Database_reopen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44507   PyObject *resultobj = 0;
44508   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
44509   void *argp1 = 0 ;
44510   int res1 = 0 ;
44511   PyObject *swig_obj[1] ;
44512   bool result;
44513 
44514   if (!args) SWIG_fail;
44515   swig_obj[0] = args;
44516   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
44517   if (!SWIG_IsOK(res1)) {
44518     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_reopen" "', argument " "1"" of type '" "Xapian::Database *""'");
44519   }
44520   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
44521   {
44522     try {
44523       {
44524         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44525         result = (bool)(arg1)->reopen();
44526         SWIG_PYTHON_THREAD_END_ALLOW;
44527       }
44528     } catch (...) {
44529       Xapian::SetPythonException();
44530       SWIG_fail;
44531     }
44532   }
44533   resultobj = SWIG_From_bool(static_cast< bool >(result));
44534   return resultobj;
44535 fail:
44536   return NULL;
44537 }
44538 
44539 
_wrap_Database_close(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44540 SWIGINTERN PyObject *_wrap_Database_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44541   PyObject *resultobj = 0;
44542   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
44543   void *argp1 = 0 ;
44544   int res1 = 0 ;
44545   PyObject *swig_obj[1] ;
44546 
44547   if (!args) SWIG_fail;
44548   swig_obj[0] = args;
44549   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
44550   if (!SWIG_IsOK(res1)) {
44551     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_close" "', argument " "1"" of type '" "Xapian::Database *""'");
44552   }
44553   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
44554   {
44555     try {
44556       {
44557         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44558         (arg1)->close();
44559         SWIG_PYTHON_THREAD_END_ALLOW;
44560       }
44561     } catch (...) {
44562       Xapian::SetPythonException();
44563       SWIG_fail;
44564     }
44565   }
44566   resultobj = SWIG_Py_Void();
44567   return resultobj;
44568 fail:
44569   return NULL;
44570 }
44571 
44572 
_wrap_Database___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44573 SWIGINTERN PyObject *_wrap_Database___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44574   PyObject *resultobj = 0;
44575   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
44576   void *argp1 = 0 ;
44577   int res1 = 0 ;
44578   PyObject *swig_obj[1] ;
44579   std::string result;
44580 
44581   if (!args) SWIG_fail;
44582   swig_obj[0] = args;
44583   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
44584   if (!SWIG_IsOK(res1)) {
44585     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database___str__" "', argument " "1"" of type '" "Xapian::Database const *""'");
44586   }
44587   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
44588   {
44589     try {
44590       {
44591         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44592         result = ((Xapian::Database const *)arg1)->get_description();
44593         SWIG_PYTHON_THREAD_END_ALLOW;
44594       }
44595     } catch (...) {
44596       Xapian::SetPythonException();
44597       SWIG_fail;
44598     }
44599   }
44600   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
44601   return resultobj;
44602 fail:
44603   return NULL;
44604 }
44605 
44606 
_wrap_Database__postlist_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44607 SWIGINTERN PyObject *_wrap_Database__postlist_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44608   PyObject *resultobj = 0;
44609   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
44610   std::string *arg2 = 0 ;
44611   void *argp1 = 0 ;
44612   int res1 = 0 ;
44613   int res2 = SWIG_OLDOBJ ;
44614   PyObject *swig_obj[2] ;
44615   Xapian::PostingIterator result;
44616 
44617   if (!SWIG_Python_UnpackTuple(args,"Database__postlist_begin",2,2,swig_obj)) SWIG_fail;
44618   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
44619   if (!SWIG_IsOK(res1)) {
44620     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database__postlist_begin" "', argument " "1"" of type '" "Xapian::Database const *""'");
44621   }
44622   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
44623   {
44624     std::string *ptr = (std::string *)0;
44625     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
44626     if (!SWIG_IsOK(res2)) {
44627       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database__postlist_begin" "', argument " "2"" of type '" "std::string const &""'");
44628     }
44629     if (!ptr) {
44630       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database__postlist_begin" "', argument " "2"" of type '" "std::string const &""'");
44631     }
44632     arg2 = ptr;
44633   }
44634   {
44635     try {
44636       {
44637         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44638         result = ((Xapian::Database const *)arg1)->postlist_begin((std::string const &)*arg2);
44639         SWIG_PYTHON_THREAD_END_ALLOW;
44640       }
44641     } catch (...) {
44642       Xapian::SetPythonException();
44643       SWIG_fail;
44644     }
44645   }
44646   resultobj = SWIG_NewPointerObj((new Xapian::PostingIterator(static_cast< const Xapian::PostingIterator& >(result))), SWIGTYPE_p_Xapian__PostingIterator, SWIG_POINTER_OWN |  0 );
44647   if (SWIG_IsNewObj(res2)) delete arg2;
44648   return resultobj;
44649 fail:
44650   if (SWIG_IsNewObj(res2)) delete arg2;
44651   return NULL;
44652 }
44653 
44654 
_wrap_Database__postlist_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44655 SWIGINTERN PyObject *_wrap_Database__postlist_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44656   PyObject *resultobj = 0;
44657   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
44658   std::string *arg2 = 0 ;
44659   void *argp1 = 0 ;
44660   int res1 = 0 ;
44661   int res2 = SWIG_OLDOBJ ;
44662   PyObject *swig_obj[2] ;
44663   Xapian::PostingIterator result;
44664 
44665   if (!SWIG_Python_UnpackTuple(args,"Database__postlist_end",2,2,swig_obj)) SWIG_fail;
44666   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
44667   if (!SWIG_IsOK(res1)) {
44668     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database__postlist_end" "', argument " "1"" of type '" "Xapian::Database const *""'");
44669   }
44670   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
44671   {
44672     std::string *ptr = (std::string *)0;
44673     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
44674     if (!SWIG_IsOK(res2)) {
44675       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database__postlist_end" "', argument " "2"" of type '" "std::string const &""'");
44676     }
44677     if (!ptr) {
44678       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database__postlist_end" "', argument " "2"" of type '" "std::string const &""'");
44679     }
44680     arg2 = ptr;
44681   }
44682   {
44683     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44684     result = ((Xapian::Database const *)arg1)->postlist_end((std::string const &)*arg2);
44685     SWIG_PYTHON_THREAD_END_ALLOW;
44686   }
44687   resultobj = SWIG_NewPointerObj((new Xapian::PostingIterator(static_cast< const Xapian::PostingIterator& >(result))), SWIGTYPE_p_Xapian__PostingIterator, SWIG_POINTER_OWN |  0 );
44688   if (SWIG_IsNewObj(res2)) delete arg2;
44689   return resultobj;
44690 fail:
44691   if (SWIG_IsNewObj(res2)) delete arg2;
44692   return NULL;
44693 }
44694 
44695 
_wrap_Database__termlist_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44696 SWIGINTERN PyObject *_wrap_Database__termlist_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44697   PyObject *resultobj = 0;
44698   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
44699   Xapian::docid arg2 ;
44700   void *argp1 = 0 ;
44701   int res1 = 0 ;
44702   unsigned int val2 ;
44703   int ecode2 = 0 ;
44704   PyObject *swig_obj[2] ;
44705   Xapian::TermIterator result;
44706 
44707   if (!SWIG_Python_UnpackTuple(args,"Database__termlist_begin",2,2,swig_obj)) SWIG_fail;
44708   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
44709   if (!SWIG_IsOK(res1)) {
44710     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database__termlist_begin" "', argument " "1"" of type '" "Xapian::Database const *""'");
44711   }
44712   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
44713   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
44714   if (!SWIG_IsOK(ecode2)) {
44715     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database__termlist_begin" "', argument " "2"" of type '" "Xapian::docid""'");
44716   }
44717   arg2 = static_cast< Xapian::docid >(val2);
44718   {
44719     try {
44720       {
44721         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44722         result = ((Xapian::Database const *)arg1)->termlist_begin(arg2);
44723         SWIG_PYTHON_THREAD_END_ALLOW;
44724       }
44725     } catch (...) {
44726       Xapian::SetPythonException();
44727       SWIG_fail;
44728     }
44729   }
44730   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
44731   return resultobj;
44732 fail:
44733   return NULL;
44734 }
44735 
44736 
_wrap_Database__termlist_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44737 SWIGINTERN PyObject *_wrap_Database__termlist_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44738   PyObject *resultobj = 0;
44739   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
44740   Xapian::docid arg2 ;
44741   void *argp1 = 0 ;
44742   int res1 = 0 ;
44743   unsigned int val2 ;
44744   int ecode2 = 0 ;
44745   PyObject *swig_obj[2] ;
44746   Xapian::TermIterator result;
44747 
44748   if (!SWIG_Python_UnpackTuple(args,"Database__termlist_end",2,2,swig_obj)) SWIG_fail;
44749   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
44750   if (!SWIG_IsOK(res1)) {
44751     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database__termlist_end" "', argument " "1"" of type '" "Xapian::Database const *""'");
44752   }
44753   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
44754   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
44755   if (!SWIG_IsOK(ecode2)) {
44756     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database__termlist_end" "', argument " "2"" of type '" "Xapian::docid""'");
44757   }
44758   arg2 = static_cast< Xapian::docid >(val2);
44759   {
44760     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44761     result = ((Xapian::Database const *)arg1)->termlist_end(arg2);
44762     SWIG_PYTHON_THREAD_END_ALLOW;
44763   }
44764   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
44765   return resultobj;
44766 fail:
44767   return NULL;
44768 }
44769 
44770 
_wrap_Database_has_positions(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44771 SWIGINTERN PyObject *_wrap_Database_has_positions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44772   PyObject *resultobj = 0;
44773   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
44774   void *argp1 = 0 ;
44775   int res1 = 0 ;
44776   PyObject *swig_obj[1] ;
44777   bool result;
44778 
44779   if (!args) SWIG_fail;
44780   swig_obj[0] = args;
44781   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
44782   if (!SWIG_IsOK(res1)) {
44783     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_has_positions" "', argument " "1"" of type '" "Xapian::Database const *""'");
44784   }
44785   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
44786   {
44787     try {
44788       {
44789         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44790         result = (bool)((Xapian::Database const *)arg1)->has_positions();
44791         SWIG_PYTHON_THREAD_END_ALLOW;
44792       }
44793     } catch (...) {
44794       Xapian::SetPythonException();
44795       SWIG_fail;
44796     }
44797   }
44798   resultobj = SWIG_From_bool(static_cast< bool >(result));
44799   return resultobj;
44800 fail:
44801   return NULL;
44802 }
44803 
44804 
_wrap_Database__positionlist_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44805 SWIGINTERN PyObject *_wrap_Database__positionlist_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44806   PyObject *resultobj = 0;
44807   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
44808   Xapian::docid arg2 ;
44809   std::string *arg3 = 0 ;
44810   void *argp1 = 0 ;
44811   int res1 = 0 ;
44812   unsigned int val2 ;
44813   int ecode2 = 0 ;
44814   int res3 = SWIG_OLDOBJ ;
44815   PyObject *swig_obj[3] ;
44816   Xapian::PositionIterator result;
44817 
44818   if (!SWIG_Python_UnpackTuple(args,"Database__positionlist_begin",3,3,swig_obj)) SWIG_fail;
44819   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
44820   if (!SWIG_IsOK(res1)) {
44821     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database__positionlist_begin" "', argument " "1"" of type '" "Xapian::Database const *""'");
44822   }
44823   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
44824   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
44825   if (!SWIG_IsOK(ecode2)) {
44826     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database__positionlist_begin" "', argument " "2"" of type '" "Xapian::docid""'");
44827   }
44828   arg2 = static_cast< Xapian::docid >(val2);
44829   {
44830     std::string *ptr = (std::string *)0;
44831     res3 = XapianSWIG_anystring_as_ptr(swig_obj[2], &ptr);
44832     if (!SWIG_IsOK(res3)) {
44833       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Database__positionlist_begin" "', argument " "3"" of type '" "std::string const &""'");
44834     }
44835     if (!ptr) {
44836       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database__positionlist_begin" "', argument " "3"" of type '" "std::string const &""'");
44837     }
44838     arg3 = ptr;
44839   }
44840   {
44841     try {
44842       {
44843         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44844         result = ((Xapian::Database const *)arg1)->positionlist_begin(arg2,(std::string const &)*arg3);
44845         SWIG_PYTHON_THREAD_END_ALLOW;
44846       }
44847     } catch (...) {
44848       Xapian::SetPythonException();
44849       SWIG_fail;
44850     }
44851   }
44852   resultobj = SWIG_NewPointerObj((new Xapian::PositionIterator(static_cast< const Xapian::PositionIterator& >(result))), SWIGTYPE_p_Xapian__PositionIterator, SWIG_POINTER_OWN |  0 );
44853   if (SWIG_IsNewObj(res3)) delete arg3;
44854   return resultobj;
44855 fail:
44856   if (SWIG_IsNewObj(res3)) delete arg3;
44857   return NULL;
44858 }
44859 
44860 
_wrap_Database__positionlist_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44861 SWIGINTERN PyObject *_wrap_Database__positionlist_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44862   PyObject *resultobj = 0;
44863   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
44864   Xapian::docid arg2 ;
44865   std::string *arg3 = 0 ;
44866   void *argp1 = 0 ;
44867   int res1 = 0 ;
44868   unsigned int val2 ;
44869   int ecode2 = 0 ;
44870   int res3 = SWIG_OLDOBJ ;
44871   PyObject *swig_obj[3] ;
44872   Xapian::PositionIterator result;
44873 
44874   if (!SWIG_Python_UnpackTuple(args,"Database__positionlist_end",3,3,swig_obj)) SWIG_fail;
44875   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
44876   if (!SWIG_IsOK(res1)) {
44877     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database__positionlist_end" "', argument " "1"" of type '" "Xapian::Database const *""'");
44878   }
44879   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
44880   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
44881   if (!SWIG_IsOK(ecode2)) {
44882     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database__positionlist_end" "', argument " "2"" of type '" "Xapian::docid""'");
44883   }
44884   arg2 = static_cast< Xapian::docid >(val2);
44885   {
44886     std::string *ptr = (std::string *)0;
44887     res3 = XapianSWIG_anystring_as_ptr(swig_obj[2], &ptr);
44888     if (!SWIG_IsOK(res3)) {
44889       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Database__positionlist_end" "', argument " "3"" of type '" "std::string const &""'");
44890     }
44891     if (!ptr) {
44892       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database__positionlist_end" "', argument " "3"" of type '" "std::string const &""'");
44893     }
44894     arg3 = ptr;
44895   }
44896   {
44897     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44898     result = ((Xapian::Database const *)arg1)->positionlist_end(arg2,(std::string const &)*arg3);
44899     SWIG_PYTHON_THREAD_END_ALLOW;
44900   }
44901   resultobj = SWIG_NewPointerObj((new Xapian::PositionIterator(static_cast< const Xapian::PositionIterator& >(result))), SWIGTYPE_p_Xapian__PositionIterator, SWIG_POINTER_OWN |  0 );
44902   if (SWIG_IsNewObj(res3)) delete arg3;
44903   return resultobj;
44904 fail:
44905   if (SWIG_IsNewObj(res3)) delete arg3;
44906   return NULL;
44907 }
44908 
44909 
_wrap_Database__allterms_begin__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)44910 SWIGINTERN PyObject *_wrap_Database__allterms_begin__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
44911   PyObject *resultobj = 0;
44912   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
44913   std::string *arg2 = 0 ;
44914   void *argp1 = 0 ;
44915   int res1 = 0 ;
44916   int res2 = SWIG_OLDOBJ ;
44917   Xapian::TermIterator result;
44918 
44919   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
44920   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
44921   if (!SWIG_IsOK(res1)) {
44922     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database__allterms_begin" "', argument " "1"" of type '" "Xapian::Database const *""'");
44923   }
44924   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
44925   {
44926     std::string *ptr = (std::string *)0;
44927     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
44928     if (!SWIG_IsOK(res2)) {
44929       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database__allterms_begin" "', argument " "2"" of type '" "std::string const &""'");
44930     }
44931     if (!ptr) {
44932       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database__allterms_begin" "', argument " "2"" of type '" "std::string const &""'");
44933     }
44934     arg2 = ptr;
44935   }
44936   {
44937     try {
44938       {
44939         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44940         result = ((Xapian::Database const *)arg1)->allterms_begin((std::string const &)*arg2);
44941         SWIG_PYTHON_THREAD_END_ALLOW;
44942       }
44943     } catch (...) {
44944       Xapian::SetPythonException();
44945       SWIG_fail;
44946     }
44947   }
44948   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
44949   if (SWIG_IsNewObj(res2)) delete arg2;
44950   return resultobj;
44951 fail:
44952   if (SWIG_IsNewObj(res2)) delete arg2;
44953   return NULL;
44954 }
44955 
44956 
_wrap_Database__allterms_begin__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)44957 SWIGINTERN PyObject *_wrap_Database__allterms_begin__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
44958   PyObject *resultobj = 0;
44959   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
44960   void *argp1 = 0 ;
44961   int res1 = 0 ;
44962   Xapian::TermIterator result;
44963 
44964   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
44965   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
44966   if (!SWIG_IsOK(res1)) {
44967     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database__allterms_begin" "', argument " "1"" of type '" "Xapian::Database const *""'");
44968   }
44969   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
44970   {
44971     try {
44972       {
44973         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44974         result = ((Xapian::Database const *)arg1)->allterms_begin();
44975         SWIG_PYTHON_THREAD_END_ALLOW;
44976       }
44977     } catch (...) {
44978       Xapian::SetPythonException();
44979       SWIG_fail;
44980     }
44981   }
44982   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
44983   return resultobj;
44984 fail:
44985   return NULL;
44986 }
44987 
44988 
_wrap_Database__allterms_begin(PyObject * self,PyObject * args)44989 SWIGINTERN PyObject *_wrap_Database__allterms_begin(PyObject *self, PyObject *args) {
44990   Py_ssize_t argc;
44991   PyObject *argv[3] = {
44992     0
44993   };
44994 
44995   if (!(argc = SWIG_Python_UnpackTuple(args,"Database__allterms_begin",0,2,argv))) SWIG_fail;
44996   --argc;
44997   if (argc == 1) {
44998     return _wrap_Database__allterms_begin__SWIG_1(self, argc, argv);
44999   }
45000   if (argc == 2) {
45001     return _wrap_Database__allterms_begin__SWIG_0(self, argc, argv);
45002   }
45003 
45004 fail:
45005   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Database__allterms_begin'.\n"
45006     "  Possible C/C++ prototypes are:\n"
45007     "    Xapian::Database::allterms_begin(std::string const &) const\n"
45008     "    Xapian::Database::allterms_begin() const\n");
45009   return 0;
45010 }
45011 
45012 
_wrap_Database__allterms_end__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)45013 SWIGINTERN PyObject *_wrap_Database__allterms_end__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
45014   PyObject *resultobj = 0;
45015   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45016   std::string *arg2 = 0 ;
45017   void *argp1 = 0 ;
45018   int res1 = 0 ;
45019   int res2 = SWIG_OLDOBJ ;
45020   Xapian::TermIterator result;
45021 
45022   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
45023   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45024   if (!SWIG_IsOK(res1)) {
45025     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database__allterms_end" "', argument " "1"" of type '" "Xapian::Database const *""'");
45026   }
45027   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45028   {
45029     std::string *ptr = (std::string *)0;
45030     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
45031     if (!SWIG_IsOK(res2)) {
45032       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database__allterms_end" "', argument " "2"" of type '" "std::string const &""'");
45033     }
45034     if (!ptr) {
45035       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database__allterms_end" "', argument " "2"" of type '" "std::string const &""'");
45036     }
45037     arg2 = ptr;
45038   }
45039   {
45040     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45041     result = ((Xapian::Database const *)arg1)->allterms_end((std::string const &)*arg2);
45042     SWIG_PYTHON_THREAD_END_ALLOW;
45043   }
45044   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
45045   if (SWIG_IsNewObj(res2)) delete arg2;
45046   return resultobj;
45047 fail:
45048   if (SWIG_IsNewObj(res2)) delete arg2;
45049   return NULL;
45050 }
45051 
45052 
_wrap_Database__allterms_end__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)45053 SWIGINTERN PyObject *_wrap_Database__allterms_end__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
45054   PyObject *resultobj = 0;
45055   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45056   void *argp1 = 0 ;
45057   int res1 = 0 ;
45058   Xapian::TermIterator result;
45059 
45060   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
45061   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45062   if (!SWIG_IsOK(res1)) {
45063     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database__allterms_end" "', argument " "1"" of type '" "Xapian::Database const *""'");
45064   }
45065   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45066   {
45067     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45068     result = ((Xapian::Database const *)arg1)->allterms_end();
45069     SWIG_PYTHON_THREAD_END_ALLOW;
45070   }
45071   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
45072   return resultobj;
45073 fail:
45074   return NULL;
45075 }
45076 
45077 
_wrap_Database__allterms_end(PyObject * self,PyObject * args)45078 SWIGINTERN PyObject *_wrap_Database__allterms_end(PyObject *self, PyObject *args) {
45079   Py_ssize_t argc;
45080   PyObject *argv[3] = {
45081     0
45082   };
45083 
45084   if (!(argc = SWIG_Python_UnpackTuple(args,"Database__allterms_end",0,2,argv))) SWIG_fail;
45085   --argc;
45086   if (argc == 1) {
45087     return _wrap_Database__allterms_end__SWIG_1(self, argc, argv);
45088   }
45089   if (argc == 2) {
45090     return _wrap_Database__allterms_end__SWIG_0(self, argc, argv);
45091   }
45092 
45093 fail:
45094   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Database__allterms_end'.\n"
45095     "  Possible C/C++ prototypes are:\n"
45096     "    Xapian::Database::allterms_end(std::string const &) const\n"
45097     "    Xapian::Database::allterms_end() const\n");
45098   return 0;
45099 }
45100 
45101 
_wrap_Database_get_doccount(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45102 SWIGINTERN PyObject *_wrap_Database_get_doccount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45103   PyObject *resultobj = 0;
45104   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45105   void *argp1 = 0 ;
45106   int res1 = 0 ;
45107   PyObject *swig_obj[1] ;
45108   Xapian::doccount result;
45109 
45110   if (!args) SWIG_fail;
45111   swig_obj[0] = args;
45112   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45113   if (!SWIG_IsOK(res1)) {
45114     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_doccount" "', argument " "1"" of type '" "Xapian::Database const *""'");
45115   }
45116   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45117   {
45118     try {
45119       {
45120         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45121         result = (Xapian::doccount)((Xapian::Database const *)arg1)->get_doccount();
45122         SWIG_PYTHON_THREAD_END_ALLOW;
45123       }
45124     } catch (...) {
45125       Xapian::SetPythonException();
45126       SWIG_fail;
45127     }
45128   }
45129   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45130   return resultobj;
45131 fail:
45132   return NULL;
45133 }
45134 
45135 
_wrap_Database_get_lastdocid(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45136 SWIGINTERN PyObject *_wrap_Database_get_lastdocid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45137   PyObject *resultobj = 0;
45138   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45139   void *argp1 = 0 ;
45140   int res1 = 0 ;
45141   PyObject *swig_obj[1] ;
45142   Xapian::docid result;
45143 
45144   if (!args) SWIG_fail;
45145   swig_obj[0] = args;
45146   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45147   if (!SWIG_IsOK(res1)) {
45148     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_lastdocid" "', argument " "1"" of type '" "Xapian::Database const *""'");
45149   }
45150   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45151   {
45152     try {
45153       {
45154         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45155         result = (Xapian::docid)((Xapian::Database const *)arg1)->get_lastdocid();
45156         SWIG_PYTHON_THREAD_END_ALLOW;
45157       }
45158     } catch (...) {
45159       Xapian::SetPythonException();
45160       SWIG_fail;
45161     }
45162   }
45163   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45164   return resultobj;
45165 fail:
45166   return NULL;
45167 }
45168 
45169 
_wrap_Database_get_avlength(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45170 SWIGINTERN PyObject *_wrap_Database_get_avlength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45171   PyObject *resultobj = 0;
45172   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45173   void *argp1 = 0 ;
45174   int res1 = 0 ;
45175   PyObject *swig_obj[1] ;
45176   Xapian::doclength result;
45177 
45178   if (!args) SWIG_fail;
45179   swig_obj[0] = args;
45180   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45181   if (!SWIG_IsOK(res1)) {
45182     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_avlength" "', argument " "1"" of type '" "Xapian::Database const *""'");
45183   }
45184   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45185   {
45186     try {
45187       {
45188         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45189         result = (Xapian::doclength)((Xapian::Database const *)arg1)->get_avlength();
45190         SWIG_PYTHON_THREAD_END_ALLOW;
45191       }
45192     } catch (...) {
45193       Xapian::SetPythonException();
45194       SWIG_fail;
45195     }
45196   }
45197   resultobj = SWIG_From_double(static_cast< double >(result));
45198   return resultobj;
45199 fail:
45200   return NULL;
45201 }
45202 
45203 
_wrap_Database_get_average_length(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45204 SWIGINTERN PyObject *_wrap_Database_get_average_length(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45205   PyObject *resultobj = 0;
45206   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45207   void *argp1 = 0 ;
45208   int res1 = 0 ;
45209   PyObject *swig_obj[1] ;
45210   double result;
45211 
45212   if (!args) SWIG_fail;
45213   swig_obj[0] = args;
45214   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45215   if (!SWIG_IsOK(res1)) {
45216     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_average_length" "', argument " "1"" of type '" "Xapian::Database const *""'");
45217   }
45218   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45219   {
45220     try {
45221       {
45222         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45223         result = (double)((Xapian::Database const *)arg1)->get_average_length();
45224         SWIG_PYTHON_THREAD_END_ALLOW;
45225       }
45226     } catch (...) {
45227       Xapian::SetPythonException();
45228       SWIG_fail;
45229     }
45230   }
45231   resultobj = SWIG_From_double(static_cast< double >(result));
45232   return resultobj;
45233 fail:
45234   return NULL;
45235 }
45236 
45237 
_wrap_Database_get_total_length(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45238 SWIGINTERN PyObject *_wrap_Database_get_total_length(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45239   PyObject *resultobj = 0;
45240   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45241   void *argp1 = 0 ;
45242   int res1 = 0 ;
45243   PyObject *swig_obj[1] ;
45244   Xapian::totallength result;
45245 
45246   if (!args) SWIG_fail;
45247   swig_obj[0] = args;
45248   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45249   if (!SWIG_IsOK(res1)) {
45250     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_total_length" "', argument " "1"" of type '" "Xapian::Database const *""'");
45251   }
45252   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45253   {
45254     try {
45255       {
45256         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45257         result = (Xapian::totallength)((Xapian::Database const *)arg1)->get_total_length();
45258         SWIG_PYTHON_THREAD_END_ALLOW;
45259       }
45260     } catch (...) {
45261       Xapian::SetPythonException();
45262       SWIG_fail;
45263     }
45264   }
45265   resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
45266   return resultobj;
45267 fail:
45268   return NULL;
45269 }
45270 
45271 
_wrap_Database_get_termfreq(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45272 SWIGINTERN PyObject *_wrap_Database_get_termfreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45273   PyObject *resultobj = 0;
45274   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45275   std::string *arg2 = 0 ;
45276   void *argp1 = 0 ;
45277   int res1 = 0 ;
45278   int res2 = SWIG_OLDOBJ ;
45279   PyObject *swig_obj[2] ;
45280   Xapian::doccount result;
45281 
45282   if (!SWIG_Python_UnpackTuple(args,"Database_get_termfreq",2,2,swig_obj)) SWIG_fail;
45283   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45284   if (!SWIG_IsOK(res1)) {
45285     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_termfreq" "', argument " "1"" of type '" "Xapian::Database const *""'");
45286   }
45287   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45288   {
45289     std::string *ptr = (std::string *)0;
45290     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
45291     if (!SWIG_IsOK(res2)) {
45292       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_get_termfreq" "', argument " "2"" of type '" "std::string const &""'");
45293     }
45294     if (!ptr) {
45295       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_get_termfreq" "', argument " "2"" of type '" "std::string const &""'");
45296     }
45297     arg2 = ptr;
45298   }
45299   {
45300     try {
45301       {
45302         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45303         result = (Xapian::doccount)((Xapian::Database const *)arg1)->get_termfreq((std::string const &)*arg2);
45304         SWIG_PYTHON_THREAD_END_ALLOW;
45305       }
45306     } catch (...) {
45307       Xapian::SetPythonException();
45308       SWIG_fail;
45309     }
45310   }
45311   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45312   if (SWIG_IsNewObj(res2)) delete arg2;
45313   return resultobj;
45314 fail:
45315   if (SWIG_IsNewObj(res2)) delete arg2;
45316   return NULL;
45317 }
45318 
45319 
_wrap_Database_term_exists(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45320 SWIGINTERN PyObject *_wrap_Database_term_exists(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45321   PyObject *resultobj = 0;
45322   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45323   std::string *arg2 = 0 ;
45324   void *argp1 = 0 ;
45325   int res1 = 0 ;
45326   int res2 = SWIG_OLDOBJ ;
45327   PyObject *swig_obj[2] ;
45328   bool result;
45329 
45330   if (!SWIG_Python_UnpackTuple(args,"Database_term_exists",2,2,swig_obj)) SWIG_fail;
45331   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45332   if (!SWIG_IsOK(res1)) {
45333     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_term_exists" "', argument " "1"" of type '" "Xapian::Database const *""'");
45334   }
45335   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45336   {
45337     std::string *ptr = (std::string *)0;
45338     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
45339     if (!SWIG_IsOK(res2)) {
45340       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_term_exists" "', argument " "2"" of type '" "std::string const &""'");
45341     }
45342     if (!ptr) {
45343       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_term_exists" "', argument " "2"" of type '" "std::string const &""'");
45344     }
45345     arg2 = ptr;
45346   }
45347   {
45348     try {
45349       {
45350         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45351         result = (bool)((Xapian::Database const *)arg1)->term_exists((std::string const &)*arg2);
45352         SWIG_PYTHON_THREAD_END_ALLOW;
45353       }
45354     } catch (...) {
45355       Xapian::SetPythonException();
45356       SWIG_fail;
45357     }
45358   }
45359   resultobj = SWIG_From_bool(static_cast< bool >(result));
45360   if (SWIG_IsNewObj(res2)) delete arg2;
45361   return resultobj;
45362 fail:
45363   if (SWIG_IsNewObj(res2)) delete arg2;
45364   return NULL;
45365 }
45366 
45367 
_wrap_Database_get_collection_freq(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45368 SWIGINTERN PyObject *_wrap_Database_get_collection_freq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45369   PyObject *resultobj = 0;
45370   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45371   std::string *arg2 = 0 ;
45372   void *argp1 = 0 ;
45373   int res1 = 0 ;
45374   int res2 = SWIG_OLDOBJ ;
45375   PyObject *swig_obj[2] ;
45376   Xapian::termcount result;
45377 
45378   if (!SWIG_Python_UnpackTuple(args,"Database_get_collection_freq",2,2,swig_obj)) SWIG_fail;
45379   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45380   if (!SWIG_IsOK(res1)) {
45381     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_collection_freq" "', argument " "1"" of type '" "Xapian::Database const *""'");
45382   }
45383   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45384   {
45385     std::string *ptr = (std::string *)0;
45386     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
45387     if (!SWIG_IsOK(res2)) {
45388       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_get_collection_freq" "', argument " "2"" of type '" "std::string const &""'");
45389     }
45390     if (!ptr) {
45391       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_get_collection_freq" "', argument " "2"" of type '" "std::string const &""'");
45392     }
45393     arg2 = ptr;
45394   }
45395   {
45396     try {
45397       {
45398         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45399         result = (Xapian::termcount)((Xapian::Database const *)arg1)->get_collection_freq((std::string const &)*arg2);
45400         SWIG_PYTHON_THREAD_END_ALLOW;
45401       }
45402     } catch (...) {
45403       Xapian::SetPythonException();
45404       SWIG_fail;
45405     }
45406   }
45407   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45408   if (SWIG_IsNewObj(res2)) delete arg2;
45409   return resultobj;
45410 fail:
45411   if (SWIG_IsNewObj(res2)) delete arg2;
45412   return NULL;
45413 }
45414 
45415 
_wrap_Database_get_value_freq(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45416 SWIGINTERN PyObject *_wrap_Database_get_value_freq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45417   PyObject *resultobj = 0;
45418   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45419   Xapian::valueno arg2 ;
45420   void *argp1 = 0 ;
45421   int res1 = 0 ;
45422   unsigned int val2 ;
45423   int ecode2 = 0 ;
45424   PyObject *swig_obj[2] ;
45425   Xapian::doccount result;
45426 
45427   if (!SWIG_Python_UnpackTuple(args,"Database_get_value_freq",2,2,swig_obj)) SWIG_fail;
45428   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45429   if (!SWIG_IsOK(res1)) {
45430     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_value_freq" "', argument " "1"" of type '" "Xapian::Database const *""'");
45431   }
45432   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45433   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
45434   if (!SWIG_IsOK(ecode2)) {
45435     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_get_value_freq" "', argument " "2"" of type '" "Xapian::valueno""'");
45436   }
45437   arg2 = static_cast< Xapian::valueno >(val2);
45438   {
45439     try {
45440       {
45441         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45442         result = (Xapian::doccount)((Xapian::Database const *)arg1)->get_value_freq(arg2);
45443         SWIG_PYTHON_THREAD_END_ALLOW;
45444       }
45445     } catch (...) {
45446       Xapian::SetPythonException();
45447       SWIG_fail;
45448     }
45449   }
45450   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45451   return resultobj;
45452 fail:
45453   return NULL;
45454 }
45455 
45456 
_wrap_Database_get_value_lower_bound(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45457 SWIGINTERN PyObject *_wrap_Database_get_value_lower_bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45458   PyObject *resultobj = 0;
45459   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45460   Xapian::valueno arg2 ;
45461   void *argp1 = 0 ;
45462   int res1 = 0 ;
45463   unsigned int val2 ;
45464   int ecode2 = 0 ;
45465   PyObject *swig_obj[2] ;
45466   std::string result;
45467 
45468   if (!SWIG_Python_UnpackTuple(args,"Database_get_value_lower_bound",2,2,swig_obj)) SWIG_fail;
45469   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45470   if (!SWIG_IsOK(res1)) {
45471     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_value_lower_bound" "', argument " "1"" of type '" "Xapian::Database const *""'");
45472   }
45473   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45474   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
45475   if (!SWIG_IsOK(ecode2)) {
45476     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_get_value_lower_bound" "', argument " "2"" of type '" "Xapian::valueno""'");
45477   }
45478   arg2 = static_cast< Xapian::valueno >(val2);
45479   {
45480     try {
45481       {
45482         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45483         result = ((Xapian::Database const *)arg1)->get_value_lower_bound(arg2);
45484         SWIG_PYTHON_THREAD_END_ALLOW;
45485       }
45486     } catch (...) {
45487       Xapian::SetPythonException();
45488       SWIG_fail;
45489     }
45490   }
45491   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
45492   return resultobj;
45493 fail:
45494   return NULL;
45495 }
45496 
45497 
_wrap_Database_get_value_upper_bound(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45498 SWIGINTERN PyObject *_wrap_Database_get_value_upper_bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45499   PyObject *resultobj = 0;
45500   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45501   Xapian::valueno arg2 ;
45502   void *argp1 = 0 ;
45503   int res1 = 0 ;
45504   unsigned int val2 ;
45505   int ecode2 = 0 ;
45506   PyObject *swig_obj[2] ;
45507   std::string result;
45508 
45509   if (!SWIG_Python_UnpackTuple(args,"Database_get_value_upper_bound",2,2,swig_obj)) SWIG_fail;
45510   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45511   if (!SWIG_IsOK(res1)) {
45512     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_value_upper_bound" "', argument " "1"" of type '" "Xapian::Database const *""'");
45513   }
45514   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45515   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
45516   if (!SWIG_IsOK(ecode2)) {
45517     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_get_value_upper_bound" "', argument " "2"" of type '" "Xapian::valueno""'");
45518   }
45519   arg2 = static_cast< Xapian::valueno >(val2);
45520   {
45521     try {
45522       {
45523         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45524         result = ((Xapian::Database const *)arg1)->get_value_upper_bound(arg2);
45525         SWIG_PYTHON_THREAD_END_ALLOW;
45526       }
45527     } catch (...) {
45528       Xapian::SetPythonException();
45529       SWIG_fail;
45530     }
45531   }
45532   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
45533   return resultobj;
45534 fail:
45535   return NULL;
45536 }
45537 
45538 
_wrap_Database_get_doclength_lower_bound(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45539 SWIGINTERN PyObject *_wrap_Database_get_doclength_lower_bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45540   PyObject *resultobj = 0;
45541   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45542   void *argp1 = 0 ;
45543   int res1 = 0 ;
45544   PyObject *swig_obj[1] ;
45545   Xapian::termcount result;
45546 
45547   if (!args) SWIG_fail;
45548   swig_obj[0] = args;
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_get_doclength_lower_bound" "', argument " "1"" of type '" "Xapian::Database const *""'");
45552   }
45553   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45554   {
45555     try {
45556       {
45557         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45558         result = (Xapian::termcount)((Xapian::Database const *)arg1)->get_doclength_lower_bound();
45559         SWIG_PYTHON_THREAD_END_ALLOW;
45560       }
45561     } catch (...) {
45562       Xapian::SetPythonException();
45563       SWIG_fail;
45564     }
45565   }
45566   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45567   return resultobj;
45568 fail:
45569   return NULL;
45570 }
45571 
45572 
_wrap_Database_get_doclength_upper_bound(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45573 SWIGINTERN PyObject *_wrap_Database_get_doclength_upper_bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45574   PyObject *resultobj = 0;
45575   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45576   void *argp1 = 0 ;
45577   int res1 = 0 ;
45578   PyObject *swig_obj[1] ;
45579   Xapian::termcount result;
45580 
45581   if (!args) SWIG_fail;
45582   swig_obj[0] = args;
45583   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45584   if (!SWIG_IsOK(res1)) {
45585     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_doclength_upper_bound" "', argument " "1"" of type '" "Xapian::Database const *""'");
45586   }
45587   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45588   {
45589     try {
45590       {
45591         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45592         result = (Xapian::termcount)((Xapian::Database const *)arg1)->get_doclength_upper_bound();
45593         SWIG_PYTHON_THREAD_END_ALLOW;
45594       }
45595     } catch (...) {
45596       Xapian::SetPythonException();
45597       SWIG_fail;
45598     }
45599   }
45600   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45601   return resultobj;
45602 fail:
45603   return NULL;
45604 }
45605 
45606 
_wrap_Database_get_wdf_upper_bound(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45607 SWIGINTERN PyObject *_wrap_Database_get_wdf_upper_bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45608   PyObject *resultobj = 0;
45609   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45610   std::string *arg2 = 0 ;
45611   void *argp1 = 0 ;
45612   int res1 = 0 ;
45613   int res2 = SWIG_OLDOBJ ;
45614   PyObject *swig_obj[2] ;
45615   Xapian::termcount result;
45616 
45617   if (!SWIG_Python_UnpackTuple(args,"Database_get_wdf_upper_bound",2,2,swig_obj)) SWIG_fail;
45618   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45619   if (!SWIG_IsOK(res1)) {
45620     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_wdf_upper_bound" "', argument " "1"" of type '" "Xapian::Database const *""'");
45621   }
45622   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45623   {
45624     std::string *ptr = (std::string *)0;
45625     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
45626     if (!SWIG_IsOK(res2)) {
45627       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_get_wdf_upper_bound" "', argument " "2"" of type '" "std::string const &""'");
45628     }
45629     if (!ptr) {
45630       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_get_wdf_upper_bound" "', argument " "2"" of type '" "std::string const &""'");
45631     }
45632     arg2 = ptr;
45633   }
45634   {
45635     try {
45636       {
45637         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45638         result = (Xapian::termcount)((Xapian::Database const *)arg1)->get_wdf_upper_bound((std::string const &)*arg2);
45639         SWIG_PYTHON_THREAD_END_ALLOW;
45640       }
45641     } catch (...) {
45642       Xapian::SetPythonException();
45643       SWIG_fail;
45644     }
45645   }
45646   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45647   if (SWIG_IsNewObj(res2)) delete arg2;
45648   return resultobj;
45649 fail:
45650   if (SWIG_IsNewObj(res2)) delete arg2;
45651   return NULL;
45652 }
45653 
45654 
_wrap_Database_valuestream_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45655 SWIGINTERN PyObject *_wrap_Database_valuestream_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45656   PyObject *resultobj = 0;
45657   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45658   Xapian::valueno arg2 ;
45659   void *argp1 = 0 ;
45660   int res1 = 0 ;
45661   unsigned int val2 ;
45662   int ecode2 = 0 ;
45663   PyObject *swig_obj[2] ;
45664   Xapian::ValueIterator result;
45665 
45666   if (!SWIG_Python_UnpackTuple(args,"Database_valuestream_begin",2,2,swig_obj)) SWIG_fail;
45667   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45668   if (!SWIG_IsOK(res1)) {
45669     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_valuestream_begin" "', argument " "1"" of type '" "Xapian::Database const *""'");
45670   }
45671   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45672   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
45673   if (!SWIG_IsOK(ecode2)) {
45674     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_valuestream_begin" "', argument " "2"" of type '" "Xapian::valueno""'");
45675   }
45676   arg2 = static_cast< Xapian::valueno >(val2);
45677   {
45678     try {
45679       {
45680         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45681         result = ((Xapian::Database const *)arg1)->valuestream_begin(arg2);
45682         SWIG_PYTHON_THREAD_END_ALLOW;
45683       }
45684     } catch (...) {
45685       Xapian::SetPythonException();
45686       SWIG_fail;
45687     }
45688   }
45689   resultobj = SWIG_NewPointerObj((new Xapian::ValueIterator(static_cast< const Xapian::ValueIterator& >(result))), SWIGTYPE_p_Xapian__ValueIterator, SWIG_POINTER_OWN |  0 );
45690   return resultobj;
45691 fail:
45692   return NULL;
45693 }
45694 
45695 
_wrap_Database_valuestream_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45696 SWIGINTERN PyObject *_wrap_Database_valuestream_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45697   PyObject *resultobj = 0;
45698   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45699   Xapian::valueno arg2 ;
45700   void *argp1 = 0 ;
45701   int res1 = 0 ;
45702   unsigned int val2 ;
45703   int ecode2 = 0 ;
45704   PyObject *swig_obj[2] ;
45705   Xapian::ValueIterator result;
45706 
45707   if (!SWIG_Python_UnpackTuple(args,"Database_valuestream_end",2,2,swig_obj)) SWIG_fail;
45708   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45709   if (!SWIG_IsOK(res1)) {
45710     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_valuestream_end" "', argument " "1"" of type '" "Xapian::Database const *""'");
45711   }
45712   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45713   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
45714   if (!SWIG_IsOK(ecode2)) {
45715     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_valuestream_end" "', argument " "2"" of type '" "Xapian::valueno""'");
45716   }
45717   arg2 = static_cast< Xapian::valueno >(val2);
45718   {
45719     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45720     result = ((Xapian::Database const *)arg1)->valuestream_end(arg2);
45721     SWIG_PYTHON_THREAD_END_ALLOW;
45722   }
45723   resultobj = SWIG_NewPointerObj((new Xapian::ValueIterator(static_cast< const Xapian::ValueIterator& >(result))), SWIGTYPE_p_Xapian__ValueIterator, SWIG_POINTER_OWN |  0 );
45724   return resultobj;
45725 fail:
45726   return NULL;
45727 }
45728 
45729 
_wrap_Database_get_doclength(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45730 SWIGINTERN PyObject *_wrap_Database_get_doclength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45731   PyObject *resultobj = 0;
45732   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45733   Xapian::docid arg2 ;
45734   void *argp1 = 0 ;
45735   int res1 = 0 ;
45736   unsigned int val2 ;
45737   int ecode2 = 0 ;
45738   PyObject *swig_obj[2] ;
45739   Xapian::termcount result;
45740 
45741   if (!SWIG_Python_UnpackTuple(args,"Database_get_doclength",2,2,swig_obj)) SWIG_fail;
45742   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45743   if (!SWIG_IsOK(res1)) {
45744     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_doclength" "', argument " "1"" of type '" "Xapian::Database const *""'");
45745   }
45746   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45747   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
45748   if (!SWIG_IsOK(ecode2)) {
45749     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_get_doclength" "', argument " "2"" of type '" "Xapian::docid""'");
45750   }
45751   arg2 = static_cast< Xapian::docid >(val2);
45752   {
45753     try {
45754       {
45755         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45756         result = (Xapian::termcount)((Xapian::Database const *)arg1)->get_doclength(arg2);
45757         SWIG_PYTHON_THREAD_END_ALLOW;
45758       }
45759     } catch (...) {
45760       Xapian::SetPythonException();
45761       SWIG_fail;
45762     }
45763   }
45764   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45765   return resultobj;
45766 fail:
45767   return NULL;
45768 }
45769 
45770 
_wrap_Database_get_unique_terms(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45771 SWIGINTERN PyObject *_wrap_Database_get_unique_terms(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45772   PyObject *resultobj = 0;
45773   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45774   Xapian::docid arg2 ;
45775   void *argp1 = 0 ;
45776   int res1 = 0 ;
45777   unsigned int val2 ;
45778   int ecode2 = 0 ;
45779   PyObject *swig_obj[2] ;
45780   Xapian::termcount result;
45781 
45782   if (!SWIG_Python_UnpackTuple(args,"Database_get_unique_terms",2,2,swig_obj)) SWIG_fail;
45783   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45784   if (!SWIG_IsOK(res1)) {
45785     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_unique_terms" "', argument " "1"" of type '" "Xapian::Database const *""'");
45786   }
45787   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45788   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
45789   if (!SWIG_IsOK(ecode2)) {
45790     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_get_unique_terms" "', argument " "2"" of type '" "Xapian::docid""'");
45791   }
45792   arg2 = static_cast< Xapian::docid >(val2);
45793   {
45794     try {
45795       {
45796         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45797         result = (Xapian::termcount)((Xapian::Database const *)arg1)->get_unique_terms(arg2);
45798         SWIG_PYTHON_THREAD_END_ALLOW;
45799       }
45800     } catch (...) {
45801       Xapian::SetPythonException();
45802       SWIG_fail;
45803     }
45804   }
45805   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45806   return resultobj;
45807 fail:
45808   return NULL;
45809 }
45810 
45811 
_wrap_Database_keep_alive(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45812 SWIGINTERN PyObject *_wrap_Database_keep_alive(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45813   PyObject *resultobj = 0;
45814   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45815   void *argp1 = 0 ;
45816   int res1 = 0 ;
45817   PyObject *swig_obj[1] ;
45818 
45819   if (!args) SWIG_fail;
45820   swig_obj[0] = args;
45821   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45822   if (!SWIG_IsOK(res1)) {
45823     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_keep_alive" "', argument " "1"" of type '" "Xapian::Database *""'");
45824   }
45825   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45826   {
45827     try {
45828       {
45829         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45830         (arg1)->keep_alive();
45831         SWIG_PYTHON_THREAD_END_ALLOW;
45832       }
45833     } catch (...) {
45834       Xapian::SetPythonException();
45835       SWIG_fail;
45836     }
45837   }
45838   resultobj = SWIG_Py_Void();
45839   return resultobj;
45840 fail:
45841   return NULL;
45842 }
45843 
45844 
_wrap_Database_get_document__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)45845 SWIGINTERN PyObject *_wrap_Database_get_document__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
45846   PyObject *resultobj = 0;
45847   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45848   Xapian::docid arg2 ;
45849   void *argp1 = 0 ;
45850   int res1 = 0 ;
45851   unsigned int val2 ;
45852   int ecode2 = 0 ;
45853   Xapian::Document result;
45854 
45855   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
45856   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45857   if (!SWIG_IsOK(res1)) {
45858     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_document" "', argument " "1"" of type '" "Xapian::Database const *""'");
45859   }
45860   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45861   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
45862   if (!SWIG_IsOK(ecode2)) {
45863     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_get_document" "', argument " "2"" of type '" "Xapian::docid""'");
45864   }
45865   arg2 = static_cast< Xapian::docid >(val2);
45866   {
45867     try {
45868       {
45869         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45870         result = ((Xapian::Database const *)arg1)->get_document(arg2);
45871         SWIG_PYTHON_THREAD_END_ALLOW;
45872       }
45873     } catch (...) {
45874       Xapian::SetPythonException();
45875       SWIG_fail;
45876     }
45877   }
45878   resultobj = SWIG_NewPointerObj((new Xapian::Document(static_cast< const Xapian::Document& >(result))), SWIGTYPE_p_Xapian__Document, SWIG_POINTER_OWN |  0 );
45879   return resultobj;
45880 fail:
45881   return NULL;
45882 }
45883 
45884 
_wrap_Database_get_document__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)45885 SWIGINTERN PyObject *_wrap_Database_get_document__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
45886   PyObject *resultobj = 0;
45887   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45888   Xapian::docid arg2 ;
45889   unsigned int arg3 ;
45890   void *argp1 = 0 ;
45891   int res1 = 0 ;
45892   unsigned int val2 ;
45893   int ecode2 = 0 ;
45894   unsigned int val3 ;
45895   int ecode3 = 0 ;
45896   Xapian::Document result;
45897 
45898   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
45899   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45900   if (!SWIG_IsOK(res1)) {
45901     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_document" "', argument " "1"" of type '" "Xapian::Database const *""'");
45902   }
45903   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45904   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
45905   if (!SWIG_IsOK(ecode2)) {
45906     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_get_document" "', argument " "2"" of type '" "Xapian::docid""'");
45907   }
45908   arg2 = static_cast< Xapian::docid >(val2);
45909   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
45910   if (!SWIG_IsOK(ecode3)) {
45911     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Database_get_document" "', argument " "3"" of type '" "unsigned int""'");
45912   }
45913   arg3 = static_cast< unsigned int >(val3);
45914   {
45915     try {
45916       {
45917         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45918         result = ((Xapian::Database const *)arg1)->get_document(arg2,arg3);
45919         SWIG_PYTHON_THREAD_END_ALLOW;
45920       }
45921     } catch (...) {
45922       Xapian::SetPythonException();
45923       SWIG_fail;
45924     }
45925   }
45926   resultobj = SWIG_NewPointerObj((new Xapian::Document(static_cast< const Xapian::Document& >(result))), SWIGTYPE_p_Xapian__Document, SWIG_POINTER_OWN |  0 );
45927   return resultobj;
45928 fail:
45929   return NULL;
45930 }
45931 
45932 
_wrap_Database_get_document(PyObject * self,PyObject * args)45933 SWIGINTERN PyObject *_wrap_Database_get_document(PyObject *self, PyObject *args) {
45934   Py_ssize_t argc;
45935   PyObject *argv[4] = {
45936     0
45937   };
45938 
45939   if (!(argc = SWIG_Python_UnpackTuple(args,"Database_get_document",0,3,argv))) SWIG_fail;
45940   --argc;
45941   if (argc == 2) {
45942     return _wrap_Database_get_document__SWIG_0(self, argc, argv);
45943   }
45944   if (argc == 3) {
45945     return _wrap_Database_get_document__SWIG_1(self, argc, argv);
45946   }
45947 
45948 fail:
45949   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Database_get_document'.\n"
45950     "  Possible C/C++ prototypes are:\n"
45951     "    Xapian::Database::get_document(Xapian::docid) const\n"
45952     "    Xapian::Database::get_document(Xapian::docid,unsigned int) const\n");
45953   return 0;
45954 }
45955 
45956 
_wrap_Database_get_spelling_suggestion__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)45957 SWIGINTERN PyObject *_wrap_Database_get_spelling_suggestion__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
45958   PyObject *resultobj = 0;
45959   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45960   std::string *arg2 = 0 ;
45961   unsigned int arg3 ;
45962   void *argp1 = 0 ;
45963   int res1 = 0 ;
45964   int res2 = SWIG_OLDOBJ ;
45965   unsigned int val3 ;
45966   int ecode3 = 0 ;
45967   std::string result;
45968 
45969   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
45970   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45971   if (!SWIG_IsOK(res1)) {
45972     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_spelling_suggestion" "', argument " "1"" of type '" "Xapian::Database const *""'");
45973   }
45974   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45975   {
45976     std::string *ptr = (std::string *)0;
45977     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
45978     if (!SWIG_IsOK(res2)) {
45979       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_get_spelling_suggestion" "', argument " "2"" of type '" "std::string const &""'");
45980     }
45981     if (!ptr) {
45982       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_get_spelling_suggestion" "', argument " "2"" of type '" "std::string const &""'");
45983     }
45984     arg2 = ptr;
45985   }
45986   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
45987   if (!SWIG_IsOK(ecode3)) {
45988     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Database_get_spelling_suggestion" "', argument " "3"" of type '" "unsigned int""'");
45989   }
45990   arg3 = static_cast< unsigned int >(val3);
45991   {
45992     try {
45993       {
45994         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45995         result = ((Xapian::Database const *)arg1)->get_spelling_suggestion((std::string const &)*arg2,arg3);
45996         SWIG_PYTHON_THREAD_END_ALLOW;
45997       }
45998     } catch (...) {
45999       Xapian::SetPythonException();
46000       SWIG_fail;
46001     }
46002   }
46003   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
46004   if (SWIG_IsNewObj(res2)) delete arg2;
46005   return resultobj;
46006 fail:
46007   if (SWIG_IsNewObj(res2)) delete arg2;
46008   return NULL;
46009 }
46010 
46011 
_wrap_Database_get_spelling_suggestion__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)46012 SWIGINTERN PyObject *_wrap_Database_get_spelling_suggestion__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
46013   PyObject *resultobj = 0;
46014   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
46015   std::string *arg2 = 0 ;
46016   void *argp1 = 0 ;
46017   int res1 = 0 ;
46018   int res2 = SWIG_OLDOBJ ;
46019   std::string result;
46020 
46021   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
46022   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
46023   if (!SWIG_IsOK(res1)) {
46024     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_spelling_suggestion" "', argument " "1"" of type '" "Xapian::Database const *""'");
46025   }
46026   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
46027   {
46028     std::string *ptr = (std::string *)0;
46029     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
46030     if (!SWIG_IsOK(res2)) {
46031       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_get_spelling_suggestion" "', argument " "2"" of type '" "std::string const &""'");
46032     }
46033     if (!ptr) {
46034       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_get_spelling_suggestion" "', argument " "2"" of type '" "std::string const &""'");
46035     }
46036     arg2 = ptr;
46037   }
46038   {
46039     try {
46040       {
46041         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
46042         result = ((Xapian::Database const *)arg1)->get_spelling_suggestion((std::string const &)*arg2);
46043         SWIG_PYTHON_THREAD_END_ALLOW;
46044       }
46045     } catch (...) {
46046       Xapian::SetPythonException();
46047       SWIG_fail;
46048     }
46049   }
46050   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
46051   if (SWIG_IsNewObj(res2)) delete arg2;
46052   return resultobj;
46053 fail:
46054   if (SWIG_IsNewObj(res2)) delete arg2;
46055   return NULL;
46056 }
46057 
46058 
_wrap_Database_get_spelling_suggestion(PyObject * self,PyObject * args)46059 SWIGINTERN PyObject *_wrap_Database_get_spelling_suggestion(PyObject *self, PyObject *args) {
46060   Py_ssize_t argc;
46061   PyObject *argv[4] = {
46062     0
46063   };
46064 
46065   if (!(argc = SWIG_Python_UnpackTuple(args,"Database_get_spelling_suggestion",0,3,argv))) SWIG_fail;
46066   --argc;
46067   if (argc == 2) {
46068     return _wrap_Database_get_spelling_suggestion__SWIG_1(self, argc, argv);
46069   }
46070   if (argc == 3) {
46071     return _wrap_Database_get_spelling_suggestion__SWIG_0(self, argc, argv);
46072   }
46073 
46074 fail:
46075   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Database_get_spelling_suggestion'.\n"
46076     "  Possible C/C++ prototypes are:\n"
46077     "    Xapian::Database::get_spelling_suggestion(std::string const &,unsigned int) const\n"
46078     "    Xapian::Database::get_spelling_suggestion(std::string const &) const\n");
46079   return 0;
46080 }
46081 
46082 
_wrap_Database__spellings_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)46083 SWIGINTERN PyObject *_wrap_Database__spellings_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46084   PyObject *resultobj = 0;
46085   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
46086   void *argp1 = 0 ;
46087   int res1 = 0 ;
46088   PyObject *swig_obj[1] ;
46089   Xapian::TermIterator result;
46090 
46091   if (!args) SWIG_fail;
46092   swig_obj[0] = args;
46093   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
46094   if (!SWIG_IsOK(res1)) {
46095     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database__spellings_begin" "', argument " "1"" of type '" "Xapian::Database const *""'");
46096   }
46097   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
46098   {
46099     try {
46100       {
46101         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
46102         result = ((Xapian::Database const *)arg1)->spellings_begin();
46103         SWIG_PYTHON_THREAD_END_ALLOW;
46104       }
46105     } catch (...) {
46106       Xapian::SetPythonException();
46107       SWIG_fail;
46108     }
46109   }
46110   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
46111   return resultobj;
46112 fail:
46113   return NULL;
46114 }
46115 
46116 
_wrap_Database__spellings_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)46117 SWIGINTERN PyObject *_wrap_Database__spellings_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46118   PyObject *resultobj = 0;
46119   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
46120   void *argp1 = 0 ;
46121   int res1 = 0 ;
46122   PyObject *swig_obj[1] ;
46123   Xapian::TermIterator result;
46124 
46125   if (!args) SWIG_fail;
46126   swig_obj[0] = args;
46127   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
46128   if (!SWIG_IsOK(res1)) {
46129     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database__spellings_end" "', argument " "1"" of type '" "Xapian::Database const *""'");
46130   }
46131   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
46132   {
46133     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
46134     result = ((Xapian::Database const *)arg1)->spellings_end();
46135     SWIG_PYTHON_THREAD_END_ALLOW;
46136   }
46137   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
46138   return resultobj;
46139 fail:
46140   return NULL;
46141 }
46142 
46143 
_wrap_Database__synonyms_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)46144 SWIGINTERN PyObject *_wrap_Database__synonyms_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46145   PyObject *resultobj = 0;
46146   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
46147   std::string *arg2 = 0 ;
46148   void *argp1 = 0 ;
46149   int res1 = 0 ;
46150   int res2 = SWIG_OLDOBJ ;
46151   PyObject *swig_obj[2] ;
46152   Xapian::TermIterator result;
46153 
46154   if (!SWIG_Python_UnpackTuple(args,"Database__synonyms_begin",2,2,swig_obj)) SWIG_fail;
46155   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
46156   if (!SWIG_IsOK(res1)) {
46157     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database__synonyms_begin" "', argument " "1"" of type '" "Xapian::Database const *""'");
46158   }
46159   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
46160   {
46161     std::string *ptr = (std::string *)0;
46162     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
46163     if (!SWIG_IsOK(res2)) {
46164       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database__synonyms_begin" "', argument " "2"" of type '" "std::string const &""'");
46165     }
46166     if (!ptr) {
46167       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database__synonyms_begin" "', argument " "2"" of type '" "std::string const &""'");
46168     }
46169     arg2 = ptr;
46170   }
46171   {
46172     try {
46173       {
46174         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
46175         result = ((Xapian::Database const *)arg1)->synonyms_begin((std::string const &)*arg2);
46176         SWIG_PYTHON_THREAD_END_ALLOW;
46177       }
46178     } catch (...) {
46179       Xapian::SetPythonException();
46180       SWIG_fail;
46181     }
46182   }
46183   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
46184   if (SWIG_IsNewObj(res2)) delete arg2;
46185   return resultobj;
46186 fail:
46187   if (SWIG_IsNewObj(res2)) delete arg2;
46188   return NULL;
46189 }
46190 
46191 
_wrap_Database__synonyms_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)46192 SWIGINTERN PyObject *_wrap_Database__synonyms_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46193   PyObject *resultobj = 0;
46194   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
46195   std::string *arg2 = 0 ;
46196   void *argp1 = 0 ;
46197   int res1 = 0 ;
46198   int res2 = SWIG_OLDOBJ ;
46199   PyObject *swig_obj[2] ;
46200   Xapian::TermIterator result;
46201 
46202   if (!SWIG_Python_UnpackTuple(args,"Database__synonyms_end",2,2,swig_obj)) SWIG_fail;
46203   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
46204   if (!SWIG_IsOK(res1)) {
46205     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database__synonyms_end" "', argument " "1"" of type '" "Xapian::Database const *""'");
46206   }
46207   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
46208   {
46209     std::string *ptr = (std::string *)0;
46210     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
46211     if (!SWIG_IsOK(res2)) {
46212       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database__synonyms_end" "', argument " "2"" of type '" "std::string const &""'");
46213     }
46214     if (!ptr) {
46215       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database__synonyms_end" "', argument " "2"" of type '" "std::string const &""'");
46216     }
46217     arg2 = ptr;
46218   }
46219   {
46220     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
46221     result = ((Xapian::Database const *)arg1)->synonyms_end((std::string const &)*arg2);
46222     SWIG_PYTHON_THREAD_END_ALLOW;
46223   }
46224   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
46225   if (SWIG_IsNewObj(res2)) delete arg2;
46226   return resultobj;
46227 fail:
46228   if (SWIG_IsNewObj(res2)) delete arg2;
46229   return NULL;
46230 }
46231 
46232 
_wrap_Database__synonym_keys_begin__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)46233 SWIGINTERN PyObject *_wrap_Database__synonym_keys_begin__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
46234   PyObject *resultobj = 0;
46235   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
46236   std::string *arg2 = 0 ;
46237   void *argp1 = 0 ;
46238   int res1 = 0 ;
46239   int res2 = SWIG_OLDOBJ ;
46240   Xapian::TermIterator result;
46241 
46242   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
46243   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
46244   if (!SWIG_IsOK(res1)) {
46245     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database__synonym_keys_begin" "', argument " "1"" of type '" "Xapian::Database const *""'");
46246   }
46247   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
46248   {
46249     std::string *ptr = (std::string *)0;
46250     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
46251     if (!SWIG_IsOK(res2)) {
46252       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database__synonym_keys_begin" "', argument " "2"" of type '" "std::string const &""'");
46253     }
46254     if (!ptr) {
46255       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database__synonym_keys_begin" "', argument " "2"" of type '" "std::string const &""'");
46256     }
46257     arg2 = ptr;
46258   }
46259   {
46260     try {
46261       {
46262         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
46263         result = ((Xapian::Database const *)arg1)->synonym_keys_begin((std::string const &)*arg2);
46264         SWIG_PYTHON_THREAD_END_ALLOW;
46265       }
46266     } catch (...) {
46267       Xapian::SetPythonException();
46268       SWIG_fail;
46269     }
46270   }
46271   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
46272   if (SWIG_IsNewObj(res2)) delete arg2;
46273   return resultobj;
46274 fail:
46275   if (SWIG_IsNewObj(res2)) delete arg2;
46276   return NULL;
46277 }
46278 
46279 
_wrap_Database__synonym_keys_begin__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)46280 SWIGINTERN PyObject *_wrap_Database__synonym_keys_begin__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
46281   PyObject *resultobj = 0;
46282   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
46283   void *argp1 = 0 ;
46284   int res1 = 0 ;
46285   Xapian::TermIterator result;
46286 
46287   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
46288   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
46289   if (!SWIG_IsOK(res1)) {
46290     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database__synonym_keys_begin" "', argument " "1"" of type '" "Xapian::Database const *""'");
46291   }
46292   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
46293   {
46294     try {
46295       {
46296         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
46297         result = ((Xapian::Database const *)arg1)->synonym_keys_begin();
46298         SWIG_PYTHON_THREAD_END_ALLOW;
46299       }
46300     } catch (...) {
46301       Xapian::SetPythonException();
46302       SWIG_fail;
46303     }
46304   }
46305   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
46306   return resultobj;
46307 fail:
46308   return NULL;
46309 }
46310 
46311 
_wrap_Database__synonym_keys_begin(PyObject * self,PyObject * args)46312 SWIGINTERN PyObject *_wrap_Database__synonym_keys_begin(PyObject *self, PyObject *args) {
46313   Py_ssize_t argc;
46314   PyObject *argv[3] = {
46315     0
46316   };
46317 
46318   if (!(argc = SWIG_Python_UnpackTuple(args,"Database__synonym_keys_begin",0,2,argv))) SWIG_fail;
46319   --argc;
46320   if (argc == 1) {
46321     return _wrap_Database__synonym_keys_begin__SWIG_1(self, argc, argv);
46322   }
46323   if (argc == 2) {
46324     return _wrap_Database__synonym_keys_begin__SWIG_0(self, argc, argv);
46325   }
46326 
46327 fail:
46328   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Database__synonym_keys_begin'.\n"
46329     "  Possible C/C++ prototypes are:\n"
46330     "    Xapian::Database::synonym_keys_begin(std::string const &) const\n"
46331     "    Xapian::Database::synonym_keys_begin() const\n");
46332   return 0;
46333 }
46334 
46335 
_wrap_Database__synonym_keys_end__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)46336 SWIGINTERN PyObject *_wrap_Database__synonym_keys_end__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
46337   PyObject *resultobj = 0;
46338   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
46339   std::string *arg2 = 0 ;
46340   void *argp1 = 0 ;
46341   int res1 = 0 ;
46342   int res2 = SWIG_OLDOBJ ;
46343   Xapian::TermIterator result;
46344 
46345   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
46346   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
46347   if (!SWIG_IsOK(res1)) {
46348     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database__synonym_keys_end" "', argument " "1"" of type '" "Xapian::Database const *""'");
46349   }
46350   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
46351   {
46352     std::string *ptr = (std::string *)0;
46353     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
46354     if (!SWIG_IsOK(res2)) {
46355       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database__synonym_keys_end" "', argument " "2"" of type '" "std::string const &""'");
46356     }
46357     if (!ptr) {
46358       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database__synonym_keys_end" "', argument " "2"" of type '" "std::string const &""'");
46359     }
46360     arg2 = ptr;
46361   }
46362   {
46363     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
46364     result = ((Xapian::Database const *)arg1)->synonym_keys_end((std::string const &)*arg2);
46365     SWIG_PYTHON_THREAD_END_ALLOW;
46366   }
46367   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
46368   if (SWIG_IsNewObj(res2)) delete arg2;
46369   return resultobj;
46370 fail:
46371   if (SWIG_IsNewObj(res2)) delete arg2;
46372   return NULL;
46373 }
46374 
46375 
_wrap_Database__synonym_keys_end__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)46376 SWIGINTERN PyObject *_wrap_Database__synonym_keys_end__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
46377   PyObject *resultobj = 0;
46378   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
46379   void *argp1 = 0 ;
46380   int res1 = 0 ;
46381   Xapian::TermIterator result;
46382 
46383   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
46384   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
46385   if (!SWIG_IsOK(res1)) {
46386     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database__synonym_keys_end" "', argument " "1"" of type '" "Xapian::Database const *""'");
46387   }
46388   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
46389   {
46390     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
46391     result = ((Xapian::Database const *)arg1)->synonym_keys_end();
46392     SWIG_PYTHON_THREAD_END_ALLOW;
46393   }
46394   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
46395   return resultobj;
46396 fail:
46397   return NULL;
46398 }
46399 
46400 
_wrap_Database__synonym_keys_end(PyObject * self,PyObject * args)46401 SWIGINTERN PyObject *_wrap_Database__synonym_keys_end(PyObject *self, PyObject *args) {
46402   Py_ssize_t argc;
46403   PyObject *argv[3] = {
46404     0
46405   };
46406 
46407   if (!(argc = SWIG_Python_UnpackTuple(args,"Database__synonym_keys_end",0,2,argv))) SWIG_fail;
46408   --argc;
46409   if (argc == 1) {
46410     return _wrap_Database__synonym_keys_end__SWIG_1(self, argc, argv);
46411   }
46412   if (argc == 2) {
46413     return _wrap_Database__synonym_keys_end__SWIG_0(self, argc, argv);
46414   }
46415 
46416 fail:
46417   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Database__synonym_keys_end'.\n"
46418     "  Possible C/C++ prototypes are:\n"
46419     "    Xapian::Database::synonym_keys_end(std::string const &) const\n"
46420     "    Xapian::Database::synonym_keys_end() const\n");
46421   return 0;
46422 }
46423 
46424 
_wrap_Database_get_metadata(PyObject * SWIGUNUSEDPARM (self),PyObject * args)46425 SWIGINTERN PyObject *_wrap_Database_get_metadata(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46426   PyObject *resultobj = 0;
46427   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
46428   std::string *arg2 = 0 ;
46429   void *argp1 = 0 ;
46430   int res1 = 0 ;
46431   int res2 = SWIG_OLDOBJ ;
46432   PyObject *swig_obj[2] ;
46433   std::string result;
46434 
46435   if (!SWIG_Python_UnpackTuple(args,"Database_get_metadata",2,2,swig_obj)) SWIG_fail;
46436   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
46437   if (!SWIG_IsOK(res1)) {
46438     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_metadata" "', argument " "1"" of type '" "Xapian::Database const *""'");
46439   }
46440   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
46441   {
46442     std::string *ptr = (std::string *)0;
46443     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
46444     if (!SWIG_IsOK(res2)) {
46445       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_get_metadata" "', argument " "2"" of type '" "std::string const &""'");
46446     }
46447     if (!ptr) {
46448       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_get_metadata" "', argument " "2"" of type '" "std::string const &""'");
46449     }
46450     arg2 = ptr;
46451   }
46452   {
46453     try {
46454       {
46455         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
46456         result = ((Xapian::Database const *)arg1)->get_metadata((std::string const &)*arg2);
46457         SWIG_PYTHON_THREAD_END_ALLOW;
46458       }
46459     } catch (...) {
46460       Xapian::SetPythonException();
46461       SWIG_fail;
46462     }
46463   }
46464   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
46465   if (SWIG_IsNewObj(res2)) delete arg2;
46466   return resultobj;
46467 fail:
46468   if (SWIG_IsNewObj(res2)) delete arg2;
46469   return NULL;
46470 }
46471 
46472 
_wrap_Database__metadata_keys_begin__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)46473 SWIGINTERN PyObject *_wrap_Database__metadata_keys_begin__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
46474   PyObject *resultobj = 0;
46475   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
46476   std::string *arg2 = 0 ;
46477   void *argp1 = 0 ;
46478   int res1 = 0 ;
46479   int res2 = SWIG_OLDOBJ ;
46480   Xapian::TermIterator result;
46481 
46482   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
46483   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
46484   if (!SWIG_IsOK(res1)) {
46485     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database__metadata_keys_begin" "', argument " "1"" of type '" "Xapian::Database const *""'");
46486   }
46487   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
46488   {
46489     std::string *ptr = (std::string *)0;
46490     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
46491     if (!SWIG_IsOK(res2)) {
46492       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database__metadata_keys_begin" "', argument " "2"" of type '" "std::string const &""'");
46493     }
46494     if (!ptr) {
46495       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database__metadata_keys_begin" "', argument " "2"" of type '" "std::string const &""'");
46496     }
46497     arg2 = ptr;
46498   }
46499   {
46500     try {
46501       {
46502         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
46503         result = ((Xapian::Database const *)arg1)->metadata_keys_begin((std::string const &)*arg2);
46504         SWIG_PYTHON_THREAD_END_ALLOW;
46505       }
46506     } catch (...) {
46507       Xapian::SetPythonException();
46508       SWIG_fail;
46509     }
46510   }
46511   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
46512   if (SWIG_IsNewObj(res2)) delete arg2;
46513   return resultobj;
46514 fail:
46515   if (SWIG_IsNewObj(res2)) delete arg2;
46516   return NULL;
46517 }
46518 
46519 
_wrap_Database__metadata_keys_begin__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)46520 SWIGINTERN PyObject *_wrap_Database__metadata_keys_begin__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
46521   PyObject *resultobj = 0;
46522   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
46523   void *argp1 = 0 ;
46524   int res1 = 0 ;
46525   Xapian::TermIterator result;
46526 
46527   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
46528   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
46529   if (!SWIG_IsOK(res1)) {
46530     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database__metadata_keys_begin" "', argument " "1"" of type '" "Xapian::Database const *""'");
46531   }
46532   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
46533   {
46534     try {
46535       {
46536         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
46537         result = ((Xapian::Database const *)arg1)->metadata_keys_begin();
46538         SWIG_PYTHON_THREAD_END_ALLOW;
46539       }
46540     } catch (...) {
46541       Xapian::SetPythonException();
46542       SWIG_fail;
46543     }
46544   }
46545   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
46546   return resultobj;
46547 fail:
46548   return NULL;
46549 }
46550 
46551 
_wrap_Database__metadata_keys_begin(PyObject * self,PyObject * args)46552 SWIGINTERN PyObject *_wrap_Database__metadata_keys_begin(PyObject *self, PyObject *args) {
46553   Py_ssize_t argc;
46554   PyObject *argv[3] = {
46555     0
46556   };
46557 
46558   if (!(argc = SWIG_Python_UnpackTuple(args,"Database__metadata_keys_begin",0,2,argv))) SWIG_fail;
46559   --argc;
46560   if (argc == 1) {
46561     return _wrap_Database__metadata_keys_begin__SWIG_1(self, argc, argv);
46562   }
46563   if (argc == 2) {
46564     return _wrap_Database__metadata_keys_begin__SWIG_0(self, argc, argv);
46565   }
46566 
46567 fail:
46568   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Database__metadata_keys_begin'.\n"
46569     "  Possible C/C++ prototypes are:\n"
46570     "    Xapian::Database::metadata_keys_begin(std::string const &) const\n"
46571     "    Xapian::Database::metadata_keys_begin() const\n");
46572   return 0;
46573 }
46574 
46575 
_wrap_Database__metadata_keys_end__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)46576 SWIGINTERN PyObject *_wrap_Database__metadata_keys_end__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
46577   PyObject *resultobj = 0;
46578   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
46579   std::string *arg2 = 0 ;
46580   void *argp1 = 0 ;
46581   int res1 = 0 ;
46582   int res2 = SWIG_OLDOBJ ;
46583   Xapian::TermIterator result;
46584 
46585   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
46586   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
46587   if (!SWIG_IsOK(res1)) {
46588     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database__metadata_keys_end" "', argument " "1"" of type '" "Xapian::Database const *""'");
46589   }
46590   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
46591   {
46592     std::string *ptr = (std::string *)0;
46593     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
46594     if (!SWIG_IsOK(res2)) {
46595       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database__metadata_keys_end" "', argument " "2"" of type '" "std::string const &""'");
46596     }
46597     if (!ptr) {
46598       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database__metadata_keys_end" "', argument " "2"" of type '" "std::string const &""'");
46599     }
46600     arg2 = ptr;
46601   }
46602   {
46603     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
46604     result = ((Xapian::Database const *)arg1)->metadata_keys_end((std::string const &)*arg2);
46605     SWIG_PYTHON_THREAD_END_ALLOW;
46606   }
46607   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
46608   if (SWIG_IsNewObj(res2)) delete arg2;
46609   return resultobj;
46610 fail:
46611   if (SWIG_IsNewObj(res2)) delete arg2;
46612   return NULL;
46613 }
46614 
46615 
_wrap_Database__metadata_keys_end__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)46616 SWIGINTERN PyObject *_wrap_Database__metadata_keys_end__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
46617   PyObject *resultobj = 0;
46618   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
46619   void *argp1 = 0 ;
46620   int res1 = 0 ;
46621   Xapian::TermIterator result;
46622 
46623   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
46624   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
46625   if (!SWIG_IsOK(res1)) {
46626     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database__metadata_keys_end" "', argument " "1"" of type '" "Xapian::Database const *""'");
46627   }
46628   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
46629   {
46630     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
46631     result = ((Xapian::Database const *)arg1)->metadata_keys_end();
46632     SWIG_PYTHON_THREAD_END_ALLOW;
46633   }
46634   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
46635   return resultobj;
46636 fail:
46637   return NULL;
46638 }
46639 
46640 
_wrap_Database__metadata_keys_end(PyObject * self,PyObject * args)46641 SWIGINTERN PyObject *_wrap_Database__metadata_keys_end(PyObject *self, PyObject *args) {
46642   Py_ssize_t argc;
46643   PyObject *argv[3] = {
46644     0
46645   };
46646 
46647   if (!(argc = SWIG_Python_UnpackTuple(args,"Database__metadata_keys_end",0,2,argv))) SWIG_fail;
46648   --argc;
46649   if (argc == 1) {
46650     return _wrap_Database__metadata_keys_end__SWIG_1(self, argc, argv);
46651   }
46652   if (argc == 2) {
46653     return _wrap_Database__metadata_keys_end__SWIG_0(self, argc, argv);
46654   }
46655 
46656 fail:
46657   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Database__metadata_keys_end'.\n"
46658     "  Possible C/C++ prototypes are:\n"
46659     "    Xapian::Database::metadata_keys_end(std::string const &) const\n"
46660     "    Xapian::Database::metadata_keys_end() const\n");
46661   return 0;
46662 }
46663 
46664 
_wrap_Database_get_uuid(PyObject * SWIGUNUSEDPARM (self),PyObject * args)46665 SWIGINTERN PyObject *_wrap_Database_get_uuid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46666   PyObject *resultobj = 0;
46667   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
46668   void *argp1 = 0 ;
46669   int res1 = 0 ;
46670   PyObject *swig_obj[1] ;
46671   std::string result;
46672 
46673   if (!args) SWIG_fail;
46674   swig_obj[0] = args;
46675   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
46676   if (!SWIG_IsOK(res1)) {
46677     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_uuid" "', argument " "1"" of type '" "Xapian::Database const *""'");
46678   }
46679   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
46680   {
46681     try {
46682       {
46683         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
46684         result = ((Xapian::Database const *)arg1)->get_uuid();
46685         SWIG_PYTHON_THREAD_END_ALLOW;
46686       }
46687     } catch (...) {
46688       Xapian::SetPythonException();
46689       SWIG_fail;
46690     }
46691   }
46692   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
46693   return resultobj;
46694 fail:
46695   return NULL;
46696 }
46697 
46698 
_wrap_Database_locked(PyObject * SWIGUNUSEDPARM (self),PyObject * args)46699 SWIGINTERN PyObject *_wrap_Database_locked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46700   PyObject *resultobj = 0;
46701   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
46702   void *argp1 = 0 ;
46703   int res1 = 0 ;
46704   PyObject *swig_obj[1] ;
46705   bool result;
46706 
46707   if (!args) SWIG_fail;
46708   swig_obj[0] = args;
46709   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
46710   if (!SWIG_IsOK(res1)) {
46711     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_locked" "', argument " "1"" of type '" "Xapian::Database const *""'");
46712   }
46713   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
46714   {
46715     try {
46716       {
46717         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
46718         result = (bool)((Xapian::Database const *)arg1)->locked();
46719         SWIG_PYTHON_THREAD_END_ALLOW;
46720       }
46721     } catch (...) {
46722       Xapian::SetPythonException();
46723       SWIG_fail;
46724     }
46725   }
46726   resultobj = SWIG_From_bool(static_cast< bool >(result));
46727   return resultobj;
46728 fail:
46729   return NULL;
46730 }
46731 
46732 
_wrap_Database_get_revision(PyObject * SWIGUNUSEDPARM (self),PyObject * args)46733 SWIGINTERN PyObject *_wrap_Database_get_revision(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46734   PyObject *resultobj = 0;
46735   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
46736   void *argp1 = 0 ;
46737   int res1 = 0 ;
46738   PyObject *swig_obj[1] ;
46739   Xapian::rev result;
46740 
46741   if (!args) SWIG_fail;
46742   swig_obj[0] = args;
46743   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
46744   if (!SWIG_IsOK(res1)) {
46745     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_revision" "', argument " "1"" of type '" "Xapian::Database const *""'");
46746   }
46747   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
46748   {
46749     try {
46750       {
46751         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
46752         result = (Xapian::rev)((Xapian::Database const *)arg1)->get_revision();
46753         SWIG_PYTHON_THREAD_END_ALLOW;
46754       }
46755     } catch (...) {
46756       Xapian::SetPythonException();
46757       SWIG_fail;
46758     }
46759   }
46760   resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
46761   return resultobj;
46762 fail:
46763   return NULL;
46764 }
46765 
46766 
_wrap_Database_check__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)46767 SWIGINTERN PyObject *_wrap_Database_check__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
46768   PyObject *resultobj = 0;
46769   std::string *arg1 = 0 ;
46770   int arg2 ;
46771   int res1 = SWIG_OLDOBJ ;
46772   int val2 ;
46773   int ecode2 = 0 ;
46774   size_t result;
46775 
46776   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
46777   {
46778     std::string *ptr = (std::string *)0;
46779     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
46780     if (!SWIG_IsOK(res1)) {
46781       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_check" "', argument " "1"" of type '" "std::string const &""'");
46782     }
46783     if (!ptr) {
46784       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_check" "', argument " "1"" of type '" "std::string const &""'");
46785     }
46786     arg1 = ptr;
46787   }
46788   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
46789   if (!SWIG_IsOK(ecode2)) {
46790     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_check" "', argument " "2"" of type '" "int""'");
46791   }
46792   arg2 = static_cast< int >(val2);
46793   {
46794     try {
46795       {
46796         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
46797         result = Xapian::Database::check((std::string const &)*arg1,arg2);
46798         SWIG_PYTHON_THREAD_END_ALLOW;
46799       }
46800     } catch (...) {
46801       Xapian::SetPythonException();
46802       SWIG_fail;
46803     }
46804   }
46805   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
46806   if (SWIG_IsNewObj(res1)) delete arg1;
46807   return resultobj;
46808 fail:
46809   if (SWIG_IsNewObj(res1)) delete arg1;
46810   return NULL;
46811 }
46812 
46813 
_wrap_Database_check__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)46814 SWIGINTERN PyObject *_wrap_Database_check__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
46815   PyObject *resultobj = 0;
46816   std::string *arg1 = 0 ;
46817   int res1 = SWIG_OLDOBJ ;
46818   size_t result;
46819 
46820   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
46821   {
46822     std::string *ptr = (std::string *)0;
46823     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
46824     if (!SWIG_IsOK(res1)) {
46825       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_check" "', argument " "1"" of type '" "std::string const &""'");
46826     }
46827     if (!ptr) {
46828       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_check" "', argument " "1"" of type '" "std::string const &""'");
46829     }
46830     arg1 = ptr;
46831   }
46832   {
46833     try {
46834       {
46835         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
46836         result = Xapian::Database::check((std::string const &)*arg1);
46837         SWIG_PYTHON_THREAD_END_ALLOW;
46838       }
46839     } catch (...) {
46840       Xapian::SetPythonException();
46841       SWIG_fail;
46842     }
46843   }
46844   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
46845   if (SWIG_IsNewObj(res1)) delete arg1;
46846   return resultobj;
46847 fail:
46848   if (SWIG_IsNewObj(res1)) delete arg1;
46849   return NULL;
46850 }
46851 
46852 
_wrap_Database_check__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)46853 SWIGINTERN PyObject *_wrap_Database_check__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
46854   PyObject *resultobj = 0;
46855   int arg1 ;
46856   int arg2 ;
46857   int val1 ;
46858   int ecode1 = 0 ;
46859   int val2 ;
46860   int ecode2 = 0 ;
46861   size_t result;
46862 
46863   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
46864   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
46865   if (!SWIG_IsOK(ecode1)) {
46866     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Database_check" "', argument " "1"" of type '" "int""'");
46867   }
46868   arg1 = static_cast< int >(val1);
46869   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
46870   if (!SWIG_IsOK(ecode2)) {
46871     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_check" "', argument " "2"" of type '" "int""'");
46872   }
46873   arg2 = static_cast< int >(val2);
46874   {
46875     try {
46876       {
46877         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
46878         result = Xapian::Database::check(arg1,arg2);
46879         SWIG_PYTHON_THREAD_END_ALLOW;
46880       }
46881     } catch (...) {
46882       Xapian::SetPythonException();
46883       SWIG_fail;
46884     }
46885   }
46886   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
46887   return resultobj;
46888 fail:
46889   return NULL;
46890 }
46891 
46892 
_wrap_Database_check__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)46893 SWIGINTERN PyObject *_wrap_Database_check__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
46894   PyObject *resultobj = 0;
46895   int arg1 ;
46896   int val1 ;
46897   int ecode1 = 0 ;
46898   size_t result;
46899 
46900   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
46901   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
46902   if (!SWIG_IsOK(ecode1)) {
46903     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Database_check" "', argument " "1"" of type '" "int""'");
46904   }
46905   arg1 = static_cast< int >(val1);
46906   {
46907     try {
46908       {
46909         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
46910         result = Xapian::Database::check(arg1);
46911         SWIG_PYTHON_THREAD_END_ALLOW;
46912       }
46913     } catch (...) {
46914       Xapian::SetPythonException();
46915       SWIG_fail;
46916     }
46917   }
46918   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
46919   return resultobj;
46920 fail:
46921   return NULL;
46922 }
46923 
46924 
_wrap_Database_check(PyObject * self,PyObject * args)46925 SWIGINTERN PyObject *_wrap_Database_check(PyObject *self, PyObject *args) {
46926   Py_ssize_t argc;
46927   PyObject *argv[3] = {
46928     0
46929   };
46930 
46931   if (!(argc = SWIG_Python_UnpackTuple(args,"Database_check",0,2,argv))) SWIG_fail;
46932   --argc;
46933   if (argc == 1) {
46934     int _v = 0;
46935     {
46936       {
46937         int res = SWIG_AsVal_int(argv[0], NULL);
46938         _v = SWIG_CheckState(res);
46939       }
46940     }
46941     if (!_v) goto check_1;
46942     return _wrap_Database_check__SWIG_3(self, argc, argv);
46943   }
46944 check_1:
46945 
46946   if (argc == 1) {
46947     return _wrap_Database_check__SWIG_1(self, argc, argv);
46948   }
46949   if (argc == 2) {
46950     int _v = 0;
46951     {
46952       {
46953         int res = SWIG_AsVal_int(argv[0], NULL);
46954         _v = SWIG_CheckState(res);
46955       }
46956     }
46957     if (!_v) goto check_3;
46958     return _wrap_Database_check__SWIG_2(self, argc, argv);
46959   }
46960 check_3:
46961 
46962   if (argc == 2) {
46963     return _wrap_Database_check__SWIG_0(self, argc, argv);
46964   }
46965 
46966 fail:
46967   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Database_check'.\n"
46968     "  Possible C/C++ prototypes are:\n"
46969     "    Xapian::Database::check(std::string const &,int)\n"
46970     "    Xapian::Database::check(std::string const &)\n"
46971     "    Xapian::Database::check(int,int)\n"
46972     "    Xapian::Database::check(int)\n");
46973   return 0;
46974 }
46975 
46976 
_wrap_Database_compact__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)46977 SWIGINTERN PyObject *_wrap_Database_compact__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
46978   PyObject *resultobj = 0;
46979   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
46980   std::string *arg2 = 0 ;
46981   unsigned int arg3 ;
46982   int arg4 ;
46983   void *argp1 = 0 ;
46984   int res1 = 0 ;
46985   int res2 = SWIG_OLDOBJ ;
46986   unsigned int val3 ;
46987   int ecode3 = 0 ;
46988   int val4 ;
46989   int ecode4 = 0 ;
46990 
46991   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
46992   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
46993   if (!SWIG_IsOK(res1)) {
46994     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_compact" "', argument " "1"" of type '" "Xapian::Database *""'");
46995   }
46996   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
46997   {
46998     std::string *ptr = (std::string *)0;
46999     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
47000     if (!SWIG_IsOK(res2)) {
47001       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_compact" "', argument " "2"" of type '" "std::string const &""'");
47002     }
47003     if (!ptr) {
47004       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_compact" "', argument " "2"" of type '" "std::string const &""'");
47005     }
47006     arg2 = ptr;
47007   }
47008   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
47009   if (!SWIG_IsOK(ecode3)) {
47010     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Database_compact" "', argument " "3"" of type '" "unsigned int""'");
47011   }
47012   arg3 = static_cast< unsigned int >(val3);
47013   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
47014   if (!SWIG_IsOK(ecode4)) {
47015     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Database_compact" "', argument " "4"" of type '" "int""'");
47016   }
47017   arg4 = static_cast< int >(val4);
47018   {
47019     try {
47020       {
47021         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
47022         (arg1)->compact((std::string const &)*arg2,arg3,arg4);
47023         SWIG_PYTHON_THREAD_END_ALLOW;
47024       }
47025     } catch (...) {
47026       Xapian::SetPythonException();
47027       SWIG_fail;
47028     }
47029   }
47030   resultobj = SWIG_Py_Void();
47031   if (SWIG_IsNewObj(res2)) delete arg2;
47032   return resultobj;
47033 fail:
47034   if (SWIG_IsNewObj(res2)) delete arg2;
47035   return NULL;
47036 }
47037 
47038 
_wrap_Database_compact__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)47039 SWIGINTERN PyObject *_wrap_Database_compact__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
47040   PyObject *resultobj = 0;
47041   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
47042   std::string *arg2 = 0 ;
47043   unsigned int arg3 ;
47044   void *argp1 = 0 ;
47045   int res1 = 0 ;
47046   int res2 = SWIG_OLDOBJ ;
47047   unsigned int val3 ;
47048   int ecode3 = 0 ;
47049 
47050   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
47051   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
47052   if (!SWIG_IsOK(res1)) {
47053     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_compact" "', argument " "1"" of type '" "Xapian::Database *""'");
47054   }
47055   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
47056   {
47057     std::string *ptr = (std::string *)0;
47058     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
47059     if (!SWIG_IsOK(res2)) {
47060       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_compact" "', argument " "2"" of type '" "std::string const &""'");
47061     }
47062     if (!ptr) {
47063       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_compact" "', argument " "2"" of type '" "std::string const &""'");
47064     }
47065     arg2 = ptr;
47066   }
47067   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
47068   if (!SWIG_IsOK(ecode3)) {
47069     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Database_compact" "', argument " "3"" of type '" "unsigned int""'");
47070   }
47071   arg3 = static_cast< unsigned int >(val3);
47072   {
47073     try {
47074       {
47075         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
47076         (arg1)->compact((std::string const &)*arg2,arg3);
47077         SWIG_PYTHON_THREAD_END_ALLOW;
47078       }
47079     } catch (...) {
47080       Xapian::SetPythonException();
47081       SWIG_fail;
47082     }
47083   }
47084   resultobj = SWIG_Py_Void();
47085   if (SWIG_IsNewObj(res2)) delete arg2;
47086   return resultobj;
47087 fail:
47088   if (SWIG_IsNewObj(res2)) delete arg2;
47089   return NULL;
47090 }
47091 
47092 
_wrap_Database_compact__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)47093 SWIGINTERN PyObject *_wrap_Database_compact__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
47094   PyObject *resultobj = 0;
47095   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
47096   std::string *arg2 = 0 ;
47097   void *argp1 = 0 ;
47098   int res1 = 0 ;
47099   int res2 = SWIG_OLDOBJ ;
47100 
47101   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
47102   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
47103   if (!SWIG_IsOK(res1)) {
47104     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_compact" "', argument " "1"" of type '" "Xapian::Database *""'");
47105   }
47106   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
47107   {
47108     std::string *ptr = (std::string *)0;
47109     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
47110     if (!SWIG_IsOK(res2)) {
47111       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_compact" "', argument " "2"" of type '" "std::string const &""'");
47112     }
47113     if (!ptr) {
47114       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_compact" "', argument " "2"" of type '" "std::string const &""'");
47115     }
47116     arg2 = ptr;
47117   }
47118   {
47119     try {
47120       {
47121         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
47122         (arg1)->compact((std::string const &)*arg2);
47123         SWIG_PYTHON_THREAD_END_ALLOW;
47124       }
47125     } catch (...) {
47126       Xapian::SetPythonException();
47127       SWIG_fail;
47128     }
47129   }
47130   resultobj = SWIG_Py_Void();
47131   if (SWIG_IsNewObj(res2)) delete arg2;
47132   return resultobj;
47133 fail:
47134   if (SWIG_IsNewObj(res2)) delete arg2;
47135   return NULL;
47136 }
47137 
47138 
_wrap_Database_compact__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)47139 SWIGINTERN PyObject *_wrap_Database_compact__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
47140   PyObject *resultobj = 0;
47141   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
47142   int arg2 ;
47143   unsigned int arg3 ;
47144   int arg4 ;
47145   void *argp1 = 0 ;
47146   int res1 = 0 ;
47147   int val2 ;
47148   int ecode2 = 0 ;
47149   unsigned int val3 ;
47150   int ecode3 = 0 ;
47151   int val4 ;
47152   int ecode4 = 0 ;
47153 
47154   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
47155   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
47156   if (!SWIG_IsOK(res1)) {
47157     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_compact" "', argument " "1"" of type '" "Xapian::Database *""'");
47158   }
47159   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
47160   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
47161   if (!SWIG_IsOK(ecode2)) {
47162     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_compact" "', argument " "2"" of type '" "int""'");
47163   }
47164   arg2 = static_cast< int >(val2);
47165   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
47166   if (!SWIG_IsOK(ecode3)) {
47167     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Database_compact" "', argument " "3"" of type '" "unsigned int""'");
47168   }
47169   arg3 = static_cast< unsigned int >(val3);
47170   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
47171   if (!SWIG_IsOK(ecode4)) {
47172     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Database_compact" "', argument " "4"" of type '" "int""'");
47173   }
47174   arg4 = static_cast< int >(val4);
47175   {
47176     try {
47177       {
47178         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
47179         (arg1)->compact(arg2,arg3,arg4);
47180         SWIG_PYTHON_THREAD_END_ALLOW;
47181       }
47182     } catch (...) {
47183       Xapian::SetPythonException();
47184       SWIG_fail;
47185     }
47186   }
47187   resultobj = SWIG_Py_Void();
47188   return resultobj;
47189 fail:
47190   return NULL;
47191 }
47192 
47193 
_wrap_Database_compact__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)47194 SWIGINTERN PyObject *_wrap_Database_compact__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
47195   PyObject *resultobj = 0;
47196   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
47197   int arg2 ;
47198   unsigned int arg3 ;
47199   void *argp1 = 0 ;
47200   int res1 = 0 ;
47201   int val2 ;
47202   int ecode2 = 0 ;
47203   unsigned int val3 ;
47204   int ecode3 = 0 ;
47205 
47206   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
47207   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
47208   if (!SWIG_IsOK(res1)) {
47209     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_compact" "', argument " "1"" of type '" "Xapian::Database *""'");
47210   }
47211   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
47212   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
47213   if (!SWIG_IsOK(ecode2)) {
47214     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_compact" "', argument " "2"" of type '" "int""'");
47215   }
47216   arg2 = static_cast< int >(val2);
47217   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
47218   if (!SWIG_IsOK(ecode3)) {
47219     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Database_compact" "', argument " "3"" of type '" "unsigned int""'");
47220   }
47221   arg3 = static_cast< unsigned int >(val3);
47222   {
47223     try {
47224       {
47225         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
47226         (arg1)->compact(arg2,arg3);
47227         SWIG_PYTHON_THREAD_END_ALLOW;
47228       }
47229     } catch (...) {
47230       Xapian::SetPythonException();
47231       SWIG_fail;
47232     }
47233   }
47234   resultobj = SWIG_Py_Void();
47235   return resultobj;
47236 fail:
47237   return NULL;
47238 }
47239 
47240 
_wrap_Database_compact__SWIG_5(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)47241 SWIGINTERN PyObject *_wrap_Database_compact__SWIG_5(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
47242   PyObject *resultobj = 0;
47243   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
47244   int arg2 ;
47245   void *argp1 = 0 ;
47246   int res1 = 0 ;
47247   int val2 ;
47248   int ecode2 = 0 ;
47249 
47250   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
47251   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
47252   if (!SWIG_IsOK(res1)) {
47253     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_compact" "', argument " "1"" of type '" "Xapian::Database *""'");
47254   }
47255   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
47256   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
47257   if (!SWIG_IsOK(ecode2)) {
47258     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_compact" "', argument " "2"" of type '" "int""'");
47259   }
47260   arg2 = static_cast< int >(val2);
47261   {
47262     try {
47263       {
47264         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
47265         (arg1)->compact(arg2);
47266         SWIG_PYTHON_THREAD_END_ALLOW;
47267       }
47268     } catch (...) {
47269       Xapian::SetPythonException();
47270       SWIG_fail;
47271     }
47272   }
47273   resultobj = SWIG_Py_Void();
47274   return resultobj;
47275 fail:
47276   return NULL;
47277 }
47278 
47279 
_wrap_Database_compact__SWIG_6(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)47280 SWIGINTERN PyObject *_wrap_Database_compact__SWIG_6(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
47281   PyObject *resultobj = 0;
47282   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
47283   std::string *arg2 = 0 ;
47284   unsigned int arg3 ;
47285   int arg4 ;
47286   Xapian::Compactor *arg5 = 0 ;
47287   void *argp1 = 0 ;
47288   int res1 = 0 ;
47289   int res2 = SWIG_OLDOBJ ;
47290   unsigned int val3 ;
47291   int ecode3 = 0 ;
47292   int val4 ;
47293   int ecode4 = 0 ;
47294   void *argp5 = 0 ;
47295   int res5 = 0 ;
47296 
47297   if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
47298   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
47299   if (!SWIG_IsOK(res1)) {
47300     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_compact" "', argument " "1"" of type '" "Xapian::Database *""'");
47301   }
47302   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
47303   {
47304     std::string *ptr = (std::string *)0;
47305     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
47306     if (!SWIG_IsOK(res2)) {
47307       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_compact" "', argument " "2"" of type '" "std::string const &""'");
47308     }
47309     if (!ptr) {
47310       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_compact" "', argument " "2"" of type '" "std::string const &""'");
47311     }
47312     arg2 = ptr;
47313   }
47314   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
47315   if (!SWIG_IsOK(ecode3)) {
47316     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Database_compact" "', argument " "3"" of type '" "unsigned int""'");
47317   }
47318   arg3 = static_cast< unsigned int >(val3);
47319   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
47320   if (!SWIG_IsOK(ecode4)) {
47321     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Database_compact" "', argument " "4"" of type '" "int""'");
47322   }
47323   arg4 = static_cast< int >(val4);
47324   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_Xapian__Compactor,  0 );
47325   if (!SWIG_IsOK(res5)) {
47326     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Database_compact" "', argument " "5"" of type '" "Xapian::Compactor &""'");
47327   }
47328   if (!argp5) {
47329     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_compact" "', argument " "5"" of type '" "Xapian::Compactor &""'");
47330   }
47331   arg5 = reinterpret_cast< Xapian::Compactor * >(argp5);
47332   {
47333     try {
47334       {
47335         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
47336         (arg1)->compact((std::string const &)*arg2,arg3,arg4,*arg5);
47337         SWIG_PYTHON_THREAD_END_ALLOW;
47338       }
47339     } catch (...) {
47340       Xapian::SetPythonException();
47341       SWIG_fail;
47342     }
47343   }
47344   resultobj = SWIG_Py_Void();
47345   if (SWIG_IsNewObj(res2)) delete arg2;
47346   return resultobj;
47347 fail:
47348   if (SWIG_IsNewObj(res2)) delete arg2;
47349   return NULL;
47350 }
47351 
47352 
_wrap_Database_compact__SWIG_7(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)47353 SWIGINTERN PyObject *_wrap_Database_compact__SWIG_7(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
47354   PyObject *resultobj = 0;
47355   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
47356   int arg2 ;
47357   unsigned int arg3 ;
47358   int arg4 ;
47359   Xapian::Compactor *arg5 = 0 ;
47360   void *argp1 = 0 ;
47361   int res1 = 0 ;
47362   int val2 ;
47363   int ecode2 = 0 ;
47364   unsigned int val3 ;
47365   int ecode3 = 0 ;
47366   int val4 ;
47367   int ecode4 = 0 ;
47368   void *argp5 = 0 ;
47369   int res5 = 0 ;
47370 
47371   if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
47372   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
47373   if (!SWIG_IsOK(res1)) {
47374     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_compact" "', argument " "1"" of type '" "Xapian::Database *""'");
47375   }
47376   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
47377   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
47378   if (!SWIG_IsOK(ecode2)) {
47379     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_compact" "', argument " "2"" of type '" "int""'");
47380   }
47381   arg2 = static_cast< int >(val2);
47382   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
47383   if (!SWIG_IsOK(ecode3)) {
47384     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Database_compact" "', argument " "3"" of type '" "unsigned int""'");
47385   }
47386   arg3 = static_cast< unsigned int >(val3);
47387   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
47388   if (!SWIG_IsOK(ecode4)) {
47389     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Database_compact" "', argument " "4"" of type '" "int""'");
47390   }
47391   arg4 = static_cast< int >(val4);
47392   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_Xapian__Compactor,  0 );
47393   if (!SWIG_IsOK(res5)) {
47394     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Database_compact" "', argument " "5"" of type '" "Xapian::Compactor &""'");
47395   }
47396   if (!argp5) {
47397     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_compact" "', argument " "5"" of type '" "Xapian::Compactor &""'");
47398   }
47399   arg5 = reinterpret_cast< Xapian::Compactor * >(argp5);
47400   {
47401     try {
47402       {
47403         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
47404         (arg1)->compact(arg2,arg3,arg4,*arg5);
47405         SWIG_PYTHON_THREAD_END_ALLOW;
47406       }
47407     } catch (...) {
47408       Xapian::SetPythonException();
47409       SWIG_fail;
47410     }
47411   }
47412   resultobj = SWIG_Py_Void();
47413   return resultobj;
47414 fail:
47415   return NULL;
47416 }
47417 
47418 
_wrap_Database_compact(PyObject * self,PyObject * args)47419 SWIGINTERN PyObject *_wrap_Database_compact(PyObject *self, PyObject *args) {
47420   Py_ssize_t argc;
47421   PyObject *argv[6] = {
47422     0
47423   };
47424 
47425   if (!(argc = SWIG_Python_UnpackTuple(args,"Database_compact",0,5,argv))) SWIG_fail;
47426   --argc;
47427   if (argc == 2) {
47428     int _v = 0;
47429     {
47430       {
47431         int res = SWIG_AsVal_int(argv[1], NULL);
47432         _v = SWIG_CheckState(res);
47433       }
47434     }
47435     if (!_v) goto check_1;
47436     return _wrap_Database_compact__SWIG_5(self, argc, argv);
47437   }
47438 check_1:
47439 
47440   if (argc == 2) {
47441     return _wrap_Database_compact__SWIG_2(self, argc, argv);
47442   }
47443   if (argc == 3) {
47444     int _v = 0;
47445     {
47446       {
47447         int res = SWIG_AsVal_int(argv[1], NULL);
47448         _v = SWIG_CheckState(res);
47449       }
47450     }
47451     if (!_v) goto check_3;
47452     return _wrap_Database_compact__SWIG_4(self, argc, argv);
47453   }
47454 check_3:
47455 
47456   if (argc == 3) {
47457     return _wrap_Database_compact__SWIG_1(self, argc, argv);
47458   }
47459   if (argc == 4) {
47460     int _v = 0;
47461     {
47462       {
47463         int res = SWIG_AsVal_int(argv[1], NULL);
47464         _v = SWIG_CheckState(res);
47465       }
47466     }
47467     if (!_v) goto check_5;
47468     return _wrap_Database_compact__SWIG_3(self, argc, argv);
47469   }
47470 check_5:
47471 
47472   if (argc == 4) {
47473     return _wrap_Database_compact__SWIG_0(self, argc, argv);
47474   }
47475   if (argc == 5) {
47476     int _v = 0;
47477     {
47478       {
47479         int res = SWIG_AsVal_int(argv[1], NULL);
47480         _v = SWIG_CheckState(res);
47481       }
47482     }
47483     if (!_v) goto check_7;
47484     return _wrap_Database_compact__SWIG_7(self, argc, argv);
47485   }
47486 check_7:
47487 
47488   if (argc == 5) {
47489     return _wrap_Database_compact__SWIG_6(self, argc, argv);
47490   }
47491 
47492 fail:
47493   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Database_compact'.\n"
47494     "  Possible C/C++ prototypes are:\n"
47495     "    Xapian::Database::compact(std::string const &,unsigned int,int)\n"
47496     "    Xapian::Database::compact(std::string const &,unsigned int)\n"
47497     "    Xapian::Database::compact(std::string const &)\n"
47498     "    Xapian::Database::compact(int,unsigned int,int)\n"
47499     "    Xapian::Database::compact(int,unsigned int)\n"
47500     "    Xapian::Database::compact(int)\n"
47501     "    Xapian::Database::compact(std::string const &,unsigned int,int,Xapian::Compactor &)\n"
47502     "    Xapian::Database::compact(int,unsigned int,int,Xapian::Compactor &)\n");
47503   return 0;
47504 }
47505 
47506 
Database_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)47507 SWIGINTERN PyObject *Database_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47508   PyObject *obj;
47509   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
47510   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__Database, SWIG_NewClientData(obj));
47511   return SWIG_Py_Void();
47512 }
47513 
Database_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)47514 SWIGINTERN PyObject *Database_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47515   return SWIG_Python_InitShadowInstance(args);
47516 }
47517 
_wrap_delete_WritableDatabase(PyObject * SWIGUNUSEDPARM (self),PyObject * args)47518 SWIGINTERN PyObject *_wrap_delete_WritableDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47519   PyObject *resultobj = 0;
47520   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
47521   void *argp1 = 0 ;
47522   int res1 = 0 ;
47523   PyObject *swig_obj[1] ;
47524 
47525   if (!args) SWIG_fail;
47526   swig_obj[0] = args;
47527   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, SWIG_POINTER_DISOWN |  0 );
47528   if (!SWIG_IsOK(res1)) {
47529     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_WritableDatabase" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'");
47530   }
47531   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
47532   {
47533     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
47534     delete arg1;
47535     SWIG_PYTHON_THREAD_END_ALLOW;
47536   }
47537   resultobj = SWIG_Py_Void();
47538   return resultobj;
47539 fail:
47540   return NULL;
47541 }
47542 
47543 
_wrap_new_WritableDatabase__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))47544 SWIGINTERN PyObject *_wrap_new_WritableDatabase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
47545   PyObject *resultobj = 0;
47546   Xapian::WritableDatabase *result = 0 ;
47547 
47548   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
47549   {
47550     try {
47551       {
47552         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
47553         result = (Xapian::WritableDatabase *)new Xapian::WritableDatabase();
47554         SWIG_PYTHON_THREAD_END_ALLOW;
47555       }
47556     } catch (...) {
47557       Xapian::SetPythonException();
47558       SWIG_fail;
47559     }
47560   }
47561   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__WritableDatabase, SWIG_POINTER_NEW |  0 );
47562   return resultobj;
47563 fail:
47564   return NULL;
47565 }
47566 
47567 
_wrap_new_WritableDatabase__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)47568 SWIGINTERN PyObject *_wrap_new_WritableDatabase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
47569   PyObject *resultobj = 0;
47570   std::string *arg1 = 0 ;
47571   int arg2 ;
47572   int arg3 ;
47573   int res1 = SWIG_OLDOBJ ;
47574   int val2 ;
47575   int ecode2 = 0 ;
47576   int val3 ;
47577   int ecode3 = 0 ;
47578   Xapian::WritableDatabase *result = 0 ;
47579 
47580   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
47581   {
47582     std::string *ptr = (std::string *)0;
47583     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
47584     if (!SWIG_IsOK(res1)) {
47585       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WritableDatabase" "', argument " "1"" of type '" "std::string const &""'");
47586     }
47587     if (!ptr) {
47588       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_WritableDatabase" "', argument " "1"" of type '" "std::string const &""'");
47589     }
47590     arg1 = ptr;
47591   }
47592   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
47593   if (!SWIG_IsOK(ecode2)) {
47594     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_WritableDatabase" "', argument " "2"" of type '" "int""'");
47595   }
47596   arg2 = static_cast< int >(val2);
47597   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
47598   if (!SWIG_IsOK(ecode3)) {
47599     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_WritableDatabase" "', argument " "3"" of type '" "int""'");
47600   }
47601   arg3 = static_cast< int >(val3);
47602   {
47603     try {
47604       {
47605         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
47606         result = (Xapian::WritableDatabase *)new Xapian::WritableDatabase((std::string const &)*arg1,arg2,arg3);
47607         SWIG_PYTHON_THREAD_END_ALLOW;
47608       }
47609     } catch (...) {
47610       Xapian::SetPythonException();
47611       SWIG_fail;
47612     }
47613   }
47614   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__WritableDatabase, SWIG_POINTER_NEW |  0 );
47615   if (SWIG_IsNewObj(res1)) delete arg1;
47616   return resultobj;
47617 fail:
47618   if (SWIG_IsNewObj(res1)) delete arg1;
47619   return NULL;
47620 }
47621 
47622 
_wrap_new_WritableDatabase__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)47623 SWIGINTERN PyObject *_wrap_new_WritableDatabase__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
47624   PyObject *resultobj = 0;
47625   std::string *arg1 = 0 ;
47626   int arg2 ;
47627   int res1 = SWIG_OLDOBJ ;
47628   int val2 ;
47629   int ecode2 = 0 ;
47630   Xapian::WritableDatabase *result = 0 ;
47631 
47632   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
47633   {
47634     std::string *ptr = (std::string *)0;
47635     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
47636     if (!SWIG_IsOK(res1)) {
47637       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WritableDatabase" "', argument " "1"" of type '" "std::string const &""'");
47638     }
47639     if (!ptr) {
47640       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_WritableDatabase" "', argument " "1"" of type '" "std::string const &""'");
47641     }
47642     arg1 = ptr;
47643   }
47644   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
47645   if (!SWIG_IsOK(ecode2)) {
47646     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_WritableDatabase" "', argument " "2"" of type '" "int""'");
47647   }
47648   arg2 = static_cast< int >(val2);
47649   {
47650     try {
47651       {
47652         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
47653         result = (Xapian::WritableDatabase *)new Xapian::WritableDatabase((std::string const &)*arg1,arg2);
47654         SWIG_PYTHON_THREAD_END_ALLOW;
47655       }
47656     } catch (...) {
47657       Xapian::SetPythonException();
47658       SWIG_fail;
47659     }
47660   }
47661   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__WritableDatabase, SWIG_POINTER_NEW |  0 );
47662   if (SWIG_IsNewObj(res1)) delete arg1;
47663   return resultobj;
47664 fail:
47665   if (SWIG_IsNewObj(res1)) delete arg1;
47666   return NULL;
47667 }
47668 
47669 
_wrap_new_WritableDatabase__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)47670 SWIGINTERN PyObject *_wrap_new_WritableDatabase__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
47671   PyObject *resultobj = 0;
47672   std::string *arg1 = 0 ;
47673   int res1 = SWIG_OLDOBJ ;
47674   Xapian::WritableDatabase *result = 0 ;
47675 
47676   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
47677   {
47678     std::string *ptr = (std::string *)0;
47679     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
47680     if (!SWIG_IsOK(res1)) {
47681       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WritableDatabase" "', argument " "1"" of type '" "std::string const &""'");
47682     }
47683     if (!ptr) {
47684       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_WritableDatabase" "', argument " "1"" of type '" "std::string const &""'");
47685     }
47686     arg1 = ptr;
47687   }
47688   {
47689     try {
47690       {
47691         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
47692         result = (Xapian::WritableDatabase *)new Xapian::WritableDatabase((std::string const &)*arg1);
47693         SWIG_PYTHON_THREAD_END_ALLOW;
47694       }
47695     } catch (...) {
47696       Xapian::SetPythonException();
47697       SWIG_fail;
47698     }
47699   }
47700   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__WritableDatabase, SWIG_POINTER_NEW |  0 );
47701   if (SWIG_IsNewObj(res1)) delete arg1;
47702   return resultobj;
47703 fail:
47704   if (SWIG_IsNewObj(res1)) delete arg1;
47705   return NULL;
47706 }
47707 
47708 
_wrap_new_WritableDatabase(PyObject * self,PyObject * args)47709 SWIGINTERN PyObject *_wrap_new_WritableDatabase(PyObject *self, PyObject *args) {
47710   Py_ssize_t argc;
47711   PyObject *argv[4] = {
47712     0
47713   };
47714 
47715   if (!(argc = SWIG_Python_UnpackTuple(args,"new_WritableDatabase",0,3,argv))) SWIG_fail;
47716   --argc;
47717   if (argc == 0) {
47718     return _wrap_new_WritableDatabase__SWIG_0(self, argc, argv);
47719   }
47720   if (argc == 1) {
47721     return _wrap_new_WritableDatabase__SWIG_3(self, argc, argv);
47722   }
47723   if (argc == 2) {
47724     return _wrap_new_WritableDatabase__SWIG_2(self, argc, argv);
47725   }
47726   if (argc == 3) {
47727     return _wrap_new_WritableDatabase__SWIG_1(self, argc, argv);
47728   }
47729 
47730 fail:
47731   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_WritableDatabase'.\n"
47732     "  Possible C/C++ prototypes are:\n"
47733     "    Xapian::WritableDatabase::WritableDatabase()\n"
47734     "    Xapian::WritableDatabase::WritableDatabase(std::string const &,int,int)\n"
47735     "    Xapian::WritableDatabase::WritableDatabase(std::string const &,int)\n"
47736     "    Xapian::WritableDatabase::WritableDatabase(std::string const &)\n");
47737   return 0;
47738 }
47739 
47740 
_wrap_WritableDatabase_commit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)47741 SWIGINTERN PyObject *_wrap_WritableDatabase_commit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47742   PyObject *resultobj = 0;
47743   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
47744   void *argp1 = 0 ;
47745   int res1 = 0 ;
47746   PyObject *swig_obj[1] ;
47747 
47748   if (!args) SWIG_fail;
47749   swig_obj[0] = args;
47750   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
47751   if (!SWIG_IsOK(res1)) {
47752     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_commit" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'");
47753   }
47754   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
47755   {
47756     try {
47757       {
47758         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
47759         (arg1)->commit();
47760         SWIG_PYTHON_THREAD_END_ALLOW;
47761       }
47762     } catch (...) {
47763       Xapian::SetPythonException();
47764       SWIG_fail;
47765     }
47766   }
47767   resultobj = SWIG_Py_Void();
47768   return resultobj;
47769 fail:
47770   return NULL;
47771 }
47772 
47773 
_wrap_WritableDatabase_flush(PyObject * SWIGUNUSEDPARM (self),PyObject * args)47774 SWIGINTERN PyObject *_wrap_WritableDatabase_flush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47775   PyObject *resultobj = 0;
47776   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
47777   void *argp1 = 0 ;
47778   int res1 = 0 ;
47779   PyObject *swig_obj[1] ;
47780 
47781   if (!args) SWIG_fail;
47782   swig_obj[0] = args;
47783   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
47784   if (!SWIG_IsOK(res1)) {
47785     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_flush" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'");
47786   }
47787   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
47788   {
47789     try {
47790       {
47791         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
47792         (arg1)->flush();
47793         SWIG_PYTHON_THREAD_END_ALLOW;
47794       }
47795     } catch (...) {
47796       Xapian::SetPythonException();
47797       SWIG_fail;
47798     }
47799   }
47800   resultobj = SWIG_Py_Void();
47801   return resultobj;
47802 fail:
47803   return NULL;
47804 }
47805 
47806 
_wrap_WritableDatabase_begin_transaction__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)47807 SWIGINTERN PyObject *_wrap_WritableDatabase_begin_transaction__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
47808   PyObject *resultobj = 0;
47809   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
47810   bool arg2 ;
47811   void *argp1 = 0 ;
47812   int res1 = 0 ;
47813   bool val2 ;
47814   int ecode2 = 0 ;
47815 
47816   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
47817   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
47818   if (!SWIG_IsOK(res1)) {
47819     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_begin_transaction" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'");
47820   }
47821   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
47822   ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
47823   if (!SWIG_IsOK(ecode2)) {
47824     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "WritableDatabase_begin_transaction" "', argument " "2"" of type '" "bool""'");
47825   }
47826   arg2 = static_cast< bool >(val2);
47827   {
47828     try {
47829       {
47830         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
47831         (arg1)->begin_transaction(arg2);
47832         SWIG_PYTHON_THREAD_END_ALLOW;
47833       }
47834     } catch (...) {
47835       Xapian::SetPythonException();
47836       SWIG_fail;
47837     }
47838   }
47839   resultobj = SWIG_Py_Void();
47840   return resultobj;
47841 fail:
47842   return NULL;
47843 }
47844 
47845 
_wrap_WritableDatabase_begin_transaction__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)47846 SWIGINTERN PyObject *_wrap_WritableDatabase_begin_transaction__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
47847   PyObject *resultobj = 0;
47848   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
47849   void *argp1 = 0 ;
47850   int res1 = 0 ;
47851 
47852   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
47853   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
47854   if (!SWIG_IsOK(res1)) {
47855     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_begin_transaction" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'");
47856   }
47857   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
47858   {
47859     try {
47860       {
47861         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
47862         (arg1)->begin_transaction();
47863         SWIG_PYTHON_THREAD_END_ALLOW;
47864       }
47865     } catch (...) {
47866       Xapian::SetPythonException();
47867       SWIG_fail;
47868     }
47869   }
47870   resultobj = SWIG_Py_Void();
47871   return resultobj;
47872 fail:
47873   return NULL;
47874 }
47875 
47876 
_wrap_WritableDatabase_begin_transaction(PyObject * self,PyObject * args)47877 SWIGINTERN PyObject *_wrap_WritableDatabase_begin_transaction(PyObject *self, PyObject *args) {
47878   Py_ssize_t argc;
47879   PyObject *argv[3] = {
47880     0
47881   };
47882 
47883   if (!(argc = SWIG_Python_UnpackTuple(args,"WritableDatabase_begin_transaction",0,2,argv))) SWIG_fail;
47884   --argc;
47885   if (argc == 1) {
47886     return _wrap_WritableDatabase_begin_transaction__SWIG_1(self, argc, argv);
47887   }
47888   if (argc == 2) {
47889     return _wrap_WritableDatabase_begin_transaction__SWIG_0(self, argc, argv);
47890   }
47891 
47892 fail:
47893   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'WritableDatabase_begin_transaction'.\n"
47894     "  Possible C/C++ prototypes are:\n"
47895     "    Xapian::WritableDatabase::begin_transaction(bool)\n"
47896     "    Xapian::WritableDatabase::begin_transaction()\n");
47897   return 0;
47898 }
47899 
47900 
_wrap_WritableDatabase_commit_transaction(PyObject * SWIGUNUSEDPARM (self),PyObject * args)47901 SWIGINTERN PyObject *_wrap_WritableDatabase_commit_transaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47902   PyObject *resultobj = 0;
47903   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
47904   void *argp1 = 0 ;
47905   int res1 = 0 ;
47906   PyObject *swig_obj[1] ;
47907 
47908   if (!args) SWIG_fail;
47909   swig_obj[0] = args;
47910   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
47911   if (!SWIG_IsOK(res1)) {
47912     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_commit_transaction" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'");
47913   }
47914   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
47915   {
47916     try {
47917       {
47918         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
47919         (arg1)->commit_transaction();
47920         SWIG_PYTHON_THREAD_END_ALLOW;
47921       }
47922     } catch (...) {
47923       Xapian::SetPythonException();
47924       SWIG_fail;
47925     }
47926   }
47927   resultobj = SWIG_Py_Void();
47928   return resultobj;
47929 fail:
47930   return NULL;
47931 }
47932 
47933 
_wrap_WritableDatabase_cancel_transaction(PyObject * SWIGUNUSEDPARM (self),PyObject * args)47934 SWIGINTERN PyObject *_wrap_WritableDatabase_cancel_transaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47935   PyObject *resultobj = 0;
47936   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
47937   void *argp1 = 0 ;
47938   int res1 = 0 ;
47939   PyObject *swig_obj[1] ;
47940 
47941   if (!args) SWIG_fail;
47942   swig_obj[0] = args;
47943   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
47944   if (!SWIG_IsOK(res1)) {
47945     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_cancel_transaction" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'");
47946   }
47947   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
47948   {
47949     try {
47950       {
47951         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
47952         (arg1)->cancel_transaction();
47953         SWIG_PYTHON_THREAD_END_ALLOW;
47954       }
47955     } catch (...) {
47956       Xapian::SetPythonException();
47957       SWIG_fail;
47958     }
47959   }
47960   resultobj = SWIG_Py_Void();
47961   return resultobj;
47962 fail:
47963   return NULL;
47964 }
47965 
47966 
_wrap_WritableDatabase_add_document(PyObject * SWIGUNUSEDPARM (self),PyObject * args)47967 SWIGINTERN PyObject *_wrap_WritableDatabase_add_document(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47968   PyObject *resultobj = 0;
47969   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
47970   Xapian::Document *arg2 = 0 ;
47971   void *argp1 = 0 ;
47972   int res1 = 0 ;
47973   void *argp2 = 0 ;
47974   int res2 = 0 ;
47975   PyObject *swig_obj[2] ;
47976   Xapian::docid result;
47977 
47978   if (!SWIG_Python_UnpackTuple(args,"WritableDatabase_add_document",2,2,swig_obj)) SWIG_fail;
47979   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
47980   if (!SWIG_IsOK(res1)) {
47981     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_add_document" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'");
47982   }
47983   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
47984   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__Document,  0  | 0);
47985   if (!SWIG_IsOK(res2)) {
47986     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "WritableDatabase_add_document" "', argument " "2"" of type '" "Xapian::Document const &""'");
47987   }
47988   if (!argp2) {
47989     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_add_document" "', argument " "2"" of type '" "Xapian::Document const &""'");
47990   }
47991   arg2 = reinterpret_cast< Xapian::Document * >(argp2);
47992   {
47993     try {
47994       {
47995         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
47996         result = (Xapian::docid)(arg1)->add_document((Xapian::Document const &)*arg2);
47997         SWIG_PYTHON_THREAD_END_ALLOW;
47998       }
47999     } catch (...) {
48000       Xapian::SetPythonException();
48001       SWIG_fail;
48002     }
48003   }
48004   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
48005   return resultobj;
48006 fail:
48007   return NULL;
48008 }
48009 
48010 
_wrap_WritableDatabase_delete_document__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)48011 SWIGINTERN PyObject *_wrap_WritableDatabase_delete_document__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
48012   PyObject *resultobj = 0;
48013   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
48014   Xapian::docid arg2 ;
48015   void *argp1 = 0 ;
48016   int res1 = 0 ;
48017   unsigned int val2 ;
48018   int ecode2 = 0 ;
48019 
48020   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
48021   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
48022   if (!SWIG_IsOK(res1)) {
48023     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_delete_document" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'");
48024   }
48025   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
48026   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
48027   if (!SWIG_IsOK(ecode2)) {
48028     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "WritableDatabase_delete_document" "', argument " "2"" of type '" "Xapian::docid""'");
48029   }
48030   arg2 = static_cast< Xapian::docid >(val2);
48031   {
48032     try {
48033       {
48034         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
48035         (arg1)->delete_document(arg2);
48036         SWIG_PYTHON_THREAD_END_ALLOW;
48037       }
48038     } catch (...) {
48039       Xapian::SetPythonException();
48040       SWIG_fail;
48041     }
48042   }
48043   resultobj = SWIG_Py_Void();
48044   return resultobj;
48045 fail:
48046   return NULL;
48047 }
48048 
48049 
_wrap_WritableDatabase_delete_document__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)48050 SWIGINTERN PyObject *_wrap_WritableDatabase_delete_document__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
48051   PyObject *resultobj = 0;
48052   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
48053   std::string *arg2 = 0 ;
48054   void *argp1 = 0 ;
48055   int res1 = 0 ;
48056   int res2 = SWIG_OLDOBJ ;
48057 
48058   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
48059   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
48060   if (!SWIG_IsOK(res1)) {
48061     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_delete_document" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'");
48062   }
48063   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
48064   {
48065     std::string *ptr = (std::string *)0;
48066     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
48067     if (!SWIG_IsOK(res2)) {
48068       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "WritableDatabase_delete_document" "', argument " "2"" of type '" "std::string const &""'");
48069     }
48070     if (!ptr) {
48071       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_delete_document" "', argument " "2"" of type '" "std::string const &""'");
48072     }
48073     arg2 = ptr;
48074   }
48075   {
48076     try {
48077       {
48078         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
48079         (arg1)->delete_document((std::string const &)*arg2);
48080         SWIG_PYTHON_THREAD_END_ALLOW;
48081       }
48082     } catch (...) {
48083       Xapian::SetPythonException();
48084       SWIG_fail;
48085     }
48086   }
48087   resultobj = SWIG_Py_Void();
48088   if (SWIG_IsNewObj(res2)) delete arg2;
48089   return resultobj;
48090 fail:
48091   if (SWIG_IsNewObj(res2)) delete arg2;
48092   return NULL;
48093 }
48094 
48095 
_wrap_WritableDatabase_delete_document(PyObject * self,PyObject * args)48096 SWIGINTERN PyObject *_wrap_WritableDatabase_delete_document(PyObject *self, PyObject *args) {
48097   Py_ssize_t argc;
48098   PyObject *argv[3] = {
48099     0
48100   };
48101 
48102   if (!(argc = SWIG_Python_UnpackTuple(args,"WritableDatabase_delete_document",0,2,argv))) SWIG_fail;
48103   --argc;
48104   if (argc == 2) {
48105     int _v = 0;
48106     {
48107       {
48108         int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
48109         _v = SWIG_CheckState(res);
48110       }
48111     }
48112     if (!_v) goto check_1;
48113     return _wrap_WritableDatabase_delete_document__SWIG_0(self, argc, argv);
48114   }
48115 check_1:
48116 
48117   if (argc == 2) {
48118     return _wrap_WritableDatabase_delete_document__SWIG_1(self, argc, argv);
48119   }
48120 
48121 fail:
48122   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'WritableDatabase_delete_document'.\n"
48123     "  Possible C/C++ prototypes are:\n"
48124     "    Xapian::WritableDatabase::delete_document(Xapian::docid)\n"
48125     "    Xapian::WritableDatabase::delete_document(std::string const &)\n");
48126   return 0;
48127 }
48128 
48129 
_wrap_WritableDatabase_replace_document__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)48130 SWIGINTERN PyObject *_wrap_WritableDatabase_replace_document__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
48131   PyObject *resultobj = 0;
48132   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
48133   Xapian::docid arg2 ;
48134   Xapian::Document *arg3 = 0 ;
48135   void *argp1 = 0 ;
48136   int res1 = 0 ;
48137   unsigned int val2 ;
48138   int ecode2 = 0 ;
48139   void *argp3 = 0 ;
48140   int res3 = 0 ;
48141 
48142   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
48143   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
48144   if (!SWIG_IsOK(res1)) {
48145     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_replace_document" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'");
48146   }
48147   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
48148   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
48149   if (!SWIG_IsOK(ecode2)) {
48150     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "WritableDatabase_replace_document" "', argument " "2"" of type '" "Xapian::docid""'");
48151   }
48152   arg2 = static_cast< Xapian::docid >(val2);
48153   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Xapian__Document,  0  | 0);
48154   if (!SWIG_IsOK(res3)) {
48155     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "WritableDatabase_replace_document" "', argument " "3"" of type '" "Xapian::Document const &""'");
48156   }
48157   if (!argp3) {
48158     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_replace_document" "', argument " "3"" of type '" "Xapian::Document const &""'");
48159   }
48160   arg3 = reinterpret_cast< Xapian::Document * >(argp3);
48161   {
48162     try {
48163       {
48164         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
48165         (arg1)->replace_document(arg2,(Xapian::Document const &)*arg3);
48166         SWIG_PYTHON_THREAD_END_ALLOW;
48167       }
48168     } catch (...) {
48169       Xapian::SetPythonException();
48170       SWIG_fail;
48171     }
48172   }
48173   resultobj = SWIG_Py_Void();
48174   return resultobj;
48175 fail:
48176   return NULL;
48177 }
48178 
48179 
_wrap_WritableDatabase_replace_document__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)48180 SWIGINTERN PyObject *_wrap_WritableDatabase_replace_document__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
48181   PyObject *resultobj = 0;
48182   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
48183   std::string *arg2 = 0 ;
48184   Xapian::Document *arg3 = 0 ;
48185   void *argp1 = 0 ;
48186   int res1 = 0 ;
48187   int res2 = SWIG_OLDOBJ ;
48188   void *argp3 = 0 ;
48189   int res3 = 0 ;
48190   Xapian::docid result;
48191 
48192   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
48193   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
48194   if (!SWIG_IsOK(res1)) {
48195     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_replace_document" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'");
48196   }
48197   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
48198   {
48199     std::string *ptr = (std::string *)0;
48200     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
48201     if (!SWIG_IsOK(res2)) {
48202       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "WritableDatabase_replace_document" "', argument " "2"" of type '" "std::string const &""'");
48203     }
48204     if (!ptr) {
48205       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_replace_document" "', argument " "2"" of type '" "std::string const &""'");
48206     }
48207     arg2 = ptr;
48208   }
48209   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Xapian__Document,  0  | 0);
48210   if (!SWIG_IsOK(res3)) {
48211     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "WritableDatabase_replace_document" "', argument " "3"" of type '" "Xapian::Document const &""'");
48212   }
48213   if (!argp3) {
48214     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_replace_document" "', argument " "3"" of type '" "Xapian::Document const &""'");
48215   }
48216   arg3 = reinterpret_cast< Xapian::Document * >(argp3);
48217   {
48218     try {
48219       {
48220         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
48221         result = (Xapian::docid)(arg1)->replace_document((std::string const &)*arg2,(Xapian::Document const &)*arg3);
48222         SWIG_PYTHON_THREAD_END_ALLOW;
48223       }
48224     } catch (...) {
48225       Xapian::SetPythonException();
48226       SWIG_fail;
48227     }
48228   }
48229   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
48230   if (SWIG_IsNewObj(res2)) delete arg2;
48231   return resultobj;
48232 fail:
48233   if (SWIG_IsNewObj(res2)) delete arg2;
48234   return NULL;
48235 }
48236 
48237 
_wrap_WritableDatabase_replace_document(PyObject * self,PyObject * args)48238 SWIGINTERN PyObject *_wrap_WritableDatabase_replace_document(PyObject *self, PyObject *args) {
48239   Py_ssize_t argc;
48240   PyObject *argv[4] = {
48241     0
48242   };
48243 
48244   if (!(argc = SWIG_Python_UnpackTuple(args,"WritableDatabase_replace_document",0,3,argv))) SWIG_fail;
48245   --argc;
48246   if (argc == 3) {
48247     int _v = 0;
48248     {
48249       {
48250         int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
48251         _v = SWIG_CheckState(res);
48252       }
48253     }
48254     if (!_v) goto check_1;
48255     return _wrap_WritableDatabase_replace_document__SWIG_0(self, argc, argv);
48256   }
48257 check_1:
48258 
48259   if (argc == 3) {
48260     return _wrap_WritableDatabase_replace_document__SWIG_1(self, argc, argv);
48261   }
48262 
48263 fail:
48264   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'WritableDatabase_replace_document'.\n"
48265     "  Possible C/C++ prototypes are:\n"
48266     "    Xapian::WritableDatabase::replace_document(Xapian::docid,Xapian::Document const &)\n"
48267     "    Xapian::WritableDatabase::replace_document(std::string const &,Xapian::Document const &)\n");
48268   return 0;
48269 }
48270 
48271 
_wrap_WritableDatabase_add_spelling__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)48272 SWIGINTERN PyObject *_wrap_WritableDatabase_add_spelling__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
48273   PyObject *resultobj = 0;
48274   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
48275   std::string *arg2 = 0 ;
48276   Xapian::termcount arg3 ;
48277   void *argp1 = 0 ;
48278   int res1 = 0 ;
48279   int res2 = SWIG_OLDOBJ ;
48280   unsigned int val3 ;
48281   int ecode3 = 0 ;
48282 
48283   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
48284   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
48285   if (!SWIG_IsOK(res1)) {
48286     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_add_spelling" "', argument " "1"" of type '" "Xapian::WritableDatabase const *""'");
48287   }
48288   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
48289   {
48290     std::string *ptr = (std::string *)0;
48291     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
48292     if (!SWIG_IsOK(res2)) {
48293       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "WritableDatabase_add_spelling" "', argument " "2"" of type '" "std::string const &""'");
48294     }
48295     if (!ptr) {
48296       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_add_spelling" "', argument " "2"" of type '" "std::string const &""'");
48297     }
48298     arg2 = ptr;
48299   }
48300   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
48301   if (!SWIG_IsOK(ecode3)) {
48302     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "WritableDatabase_add_spelling" "', argument " "3"" of type '" "Xapian::termcount""'");
48303   }
48304   arg3 = static_cast< Xapian::termcount >(val3);
48305   {
48306     try {
48307       {
48308         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
48309         ((Xapian::WritableDatabase const *)arg1)->add_spelling((std::string const &)*arg2,arg3);
48310         SWIG_PYTHON_THREAD_END_ALLOW;
48311       }
48312     } catch (...) {
48313       Xapian::SetPythonException();
48314       SWIG_fail;
48315     }
48316   }
48317   resultobj = SWIG_Py_Void();
48318   if (SWIG_IsNewObj(res2)) delete arg2;
48319   return resultobj;
48320 fail:
48321   if (SWIG_IsNewObj(res2)) delete arg2;
48322   return NULL;
48323 }
48324 
48325 
_wrap_WritableDatabase_add_spelling__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)48326 SWIGINTERN PyObject *_wrap_WritableDatabase_add_spelling__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
48327   PyObject *resultobj = 0;
48328   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
48329   std::string *arg2 = 0 ;
48330   void *argp1 = 0 ;
48331   int res1 = 0 ;
48332   int res2 = SWIG_OLDOBJ ;
48333 
48334   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
48335   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
48336   if (!SWIG_IsOK(res1)) {
48337     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_add_spelling" "', argument " "1"" of type '" "Xapian::WritableDatabase const *""'");
48338   }
48339   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
48340   {
48341     std::string *ptr = (std::string *)0;
48342     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
48343     if (!SWIG_IsOK(res2)) {
48344       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "WritableDatabase_add_spelling" "', argument " "2"" of type '" "std::string const &""'");
48345     }
48346     if (!ptr) {
48347       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_add_spelling" "', argument " "2"" of type '" "std::string const &""'");
48348     }
48349     arg2 = ptr;
48350   }
48351   {
48352     try {
48353       {
48354         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
48355         ((Xapian::WritableDatabase const *)arg1)->add_spelling((std::string const &)*arg2);
48356         SWIG_PYTHON_THREAD_END_ALLOW;
48357       }
48358     } catch (...) {
48359       Xapian::SetPythonException();
48360       SWIG_fail;
48361     }
48362   }
48363   resultobj = SWIG_Py_Void();
48364   if (SWIG_IsNewObj(res2)) delete arg2;
48365   return resultobj;
48366 fail:
48367   if (SWIG_IsNewObj(res2)) delete arg2;
48368   return NULL;
48369 }
48370 
48371 
_wrap_WritableDatabase_add_spelling(PyObject * self,PyObject * args)48372 SWIGINTERN PyObject *_wrap_WritableDatabase_add_spelling(PyObject *self, PyObject *args) {
48373   Py_ssize_t argc;
48374   PyObject *argv[4] = {
48375     0
48376   };
48377 
48378   if (!(argc = SWIG_Python_UnpackTuple(args,"WritableDatabase_add_spelling",0,3,argv))) SWIG_fail;
48379   --argc;
48380   if (argc == 2) {
48381     return _wrap_WritableDatabase_add_spelling__SWIG_1(self, argc, argv);
48382   }
48383   if (argc == 3) {
48384     return _wrap_WritableDatabase_add_spelling__SWIG_0(self, argc, argv);
48385   }
48386 
48387 fail:
48388   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'WritableDatabase_add_spelling'.\n"
48389     "  Possible C/C++ prototypes are:\n"
48390     "    Xapian::WritableDatabase::add_spelling(std::string const &,Xapian::termcount) const\n"
48391     "    Xapian::WritableDatabase::add_spelling(std::string const &) const\n");
48392   return 0;
48393 }
48394 
48395 
_wrap_WritableDatabase_remove_spelling__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)48396 SWIGINTERN PyObject *_wrap_WritableDatabase_remove_spelling__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
48397   PyObject *resultobj = 0;
48398   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
48399   std::string *arg2 = 0 ;
48400   Xapian::termcount arg3 ;
48401   void *argp1 = 0 ;
48402   int res1 = 0 ;
48403   int res2 = SWIG_OLDOBJ ;
48404   unsigned int val3 ;
48405   int ecode3 = 0 ;
48406 
48407   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
48408   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
48409   if (!SWIG_IsOK(res1)) {
48410     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_remove_spelling" "', argument " "1"" of type '" "Xapian::WritableDatabase const *""'");
48411   }
48412   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
48413   {
48414     std::string *ptr = (std::string *)0;
48415     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
48416     if (!SWIG_IsOK(res2)) {
48417       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "WritableDatabase_remove_spelling" "', argument " "2"" of type '" "std::string const &""'");
48418     }
48419     if (!ptr) {
48420       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_remove_spelling" "', argument " "2"" of type '" "std::string const &""'");
48421     }
48422     arg2 = ptr;
48423   }
48424   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
48425   if (!SWIG_IsOK(ecode3)) {
48426     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "WritableDatabase_remove_spelling" "', argument " "3"" of type '" "Xapian::termcount""'");
48427   }
48428   arg3 = static_cast< Xapian::termcount >(val3);
48429   {
48430     try {
48431       {
48432         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
48433         ((Xapian::WritableDatabase const *)arg1)->remove_spelling((std::string const &)*arg2,arg3);
48434         SWIG_PYTHON_THREAD_END_ALLOW;
48435       }
48436     } catch (...) {
48437       Xapian::SetPythonException();
48438       SWIG_fail;
48439     }
48440   }
48441   resultobj = SWIG_Py_Void();
48442   if (SWIG_IsNewObj(res2)) delete arg2;
48443   return resultobj;
48444 fail:
48445   if (SWIG_IsNewObj(res2)) delete arg2;
48446   return NULL;
48447 }
48448 
48449 
_wrap_WritableDatabase_remove_spelling__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)48450 SWIGINTERN PyObject *_wrap_WritableDatabase_remove_spelling__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
48451   PyObject *resultobj = 0;
48452   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
48453   std::string *arg2 = 0 ;
48454   void *argp1 = 0 ;
48455   int res1 = 0 ;
48456   int res2 = SWIG_OLDOBJ ;
48457 
48458   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
48459   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
48460   if (!SWIG_IsOK(res1)) {
48461     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_remove_spelling" "', argument " "1"" of type '" "Xapian::WritableDatabase const *""'");
48462   }
48463   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
48464   {
48465     std::string *ptr = (std::string *)0;
48466     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
48467     if (!SWIG_IsOK(res2)) {
48468       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "WritableDatabase_remove_spelling" "', argument " "2"" of type '" "std::string const &""'");
48469     }
48470     if (!ptr) {
48471       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_remove_spelling" "', argument " "2"" of type '" "std::string const &""'");
48472     }
48473     arg2 = ptr;
48474   }
48475   {
48476     try {
48477       {
48478         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
48479         ((Xapian::WritableDatabase const *)arg1)->remove_spelling((std::string const &)*arg2);
48480         SWIG_PYTHON_THREAD_END_ALLOW;
48481       }
48482     } catch (...) {
48483       Xapian::SetPythonException();
48484       SWIG_fail;
48485     }
48486   }
48487   resultobj = SWIG_Py_Void();
48488   if (SWIG_IsNewObj(res2)) delete arg2;
48489   return resultobj;
48490 fail:
48491   if (SWIG_IsNewObj(res2)) delete arg2;
48492   return NULL;
48493 }
48494 
48495 
_wrap_WritableDatabase_remove_spelling(PyObject * self,PyObject * args)48496 SWIGINTERN PyObject *_wrap_WritableDatabase_remove_spelling(PyObject *self, PyObject *args) {
48497   Py_ssize_t argc;
48498   PyObject *argv[4] = {
48499     0
48500   };
48501 
48502   if (!(argc = SWIG_Python_UnpackTuple(args,"WritableDatabase_remove_spelling",0,3,argv))) SWIG_fail;
48503   --argc;
48504   if (argc == 2) {
48505     return _wrap_WritableDatabase_remove_spelling__SWIG_1(self, argc, argv);
48506   }
48507   if (argc == 3) {
48508     return _wrap_WritableDatabase_remove_spelling__SWIG_0(self, argc, argv);
48509   }
48510 
48511 fail:
48512   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'WritableDatabase_remove_spelling'.\n"
48513     "  Possible C/C++ prototypes are:\n"
48514     "    Xapian::WritableDatabase::remove_spelling(std::string const &,Xapian::termcount) const\n"
48515     "    Xapian::WritableDatabase::remove_spelling(std::string const &) const\n");
48516   return 0;
48517 }
48518 
48519 
_wrap_WritableDatabase_add_synonym(PyObject * SWIGUNUSEDPARM (self),PyObject * args)48520 SWIGINTERN PyObject *_wrap_WritableDatabase_add_synonym(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48521   PyObject *resultobj = 0;
48522   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
48523   std::string *arg2 = 0 ;
48524   std::string *arg3 = 0 ;
48525   void *argp1 = 0 ;
48526   int res1 = 0 ;
48527   int res2 = SWIG_OLDOBJ ;
48528   int res3 = SWIG_OLDOBJ ;
48529   PyObject *swig_obj[3] ;
48530 
48531   if (!SWIG_Python_UnpackTuple(args,"WritableDatabase_add_synonym",3,3,swig_obj)) SWIG_fail;
48532   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
48533   if (!SWIG_IsOK(res1)) {
48534     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_add_synonym" "', argument " "1"" of type '" "Xapian::WritableDatabase const *""'");
48535   }
48536   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
48537   {
48538     std::string *ptr = (std::string *)0;
48539     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
48540     if (!SWIG_IsOK(res2)) {
48541       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "WritableDatabase_add_synonym" "', argument " "2"" of type '" "std::string const &""'");
48542     }
48543     if (!ptr) {
48544       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_add_synonym" "', argument " "2"" of type '" "std::string const &""'");
48545     }
48546     arg2 = ptr;
48547   }
48548   {
48549     std::string *ptr = (std::string *)0;
48550     res3 = XapianSWIG_anystring_as_ptr(swig_obj[2], &ptr);
48551     if (!SWIG_IsOK(res3)) {
48552       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "WritableDatabase_add_synonym" "', argument " "3"" of type '" "std::string const &""'");
48553     }
48554     if (!ptr) {
48555       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_add_synonym" "', argument " "3"" of type '" "std::string const &""'");
48556     }
48557     arg3 = ptr;
48558   }
48559   {
48560     try {
48561       {
48562         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
48563         ((Xapian::WritableDatabase const *)arg1)->add_synonym((std::string const &)*arg2,(std::string const &)*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   if (SWIG_IsNewObj(res3)) delete arg3;
48574   return resultobj;
48575 fail:
48576   if (SWIG_IsNewObj(res2)) delete arg2;
48577   if (SWIG_IsNewObj(res3)) delete arg3;
48578   return NULL;
48579 }
48580 
48581 
_wrap_WritableDatabase_remove_synonym(PyObject * SWIGUNUSEDPARM (self),PyObject * args)48582 SWIGINTERN PyObject *_wrap_WritableDatabase_remove_synonym(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48583   PyObject *resultobj = 0;
48584   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
48585   std::string *arg2 = 0 ;
48586   std::string *arg3 = 0 ;
48587   void *argp1 = 0 ;
48588   int res1 = 0 ;
48589   int res2 = SWIG_OLDOBJ ;
48590   int res3 = SWIG_OLDOBJ ;
48591   PyObject *swig_obj[3] ;
48592 
48593   if (!SWIG_Python_UnpackTuple(args,"WritableDatabase_remove_synonym",3,3,swig_obj)) SWIG_fail;
48594   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
48595   if (!SWIG_IsOK(res1)) {
48596     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_remove_synonym" "', argument " "1"" of type '" "Xapian::WritableDatabase const *""'");
48597   }
48598   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
48599   {
48600     std::string *ptr = (std::string *)0;
48601     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
48602     if (!SWIG_IsOK(res2)) {
48603       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "WritableDatabase_remove_synonym" "', argument " "2"" of type '" "std::string const &""'");
48604     }
48605     if (!ptr) {
48606       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_remove_synonym" "', argument " "2"" of type '" "std::string const &""'");
48607     }
48608     arg2 = ptr;
48609   }
48610   {
48611     std::string *ptr = (std::string *)0;
48612     res3 = XapianSWIG_anystring_as_ptr(swig_obj[2], &ptr);
48613     if (!SWIG_IsOK(res3)) {
48614       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "WritableDatabase_remove_synonym" "', argument " "3"" of type '" "std::string const &""'");
48615     }
48616     if (!ptr) {
48617       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_remove_synonym" "', argument " "3"" of type '" "std::string const &""'");
48618     }
48619     arg3 = ptr;
48620   }
48621   {
48622     try {
48623       {
48624         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
48625         ((Xapian::WritableDatabase const *)arg1)->remove_synonym((std::string const &)*arg2,(std::string const &)*arg3);
48626         SWIG_PYTHON_THREAD_END_ALLOW;
48627       }
48628     } catch (...) {
48629       Xapian::SetPythonException();
48630       SWIG_fail;
48631     }
48632   }
48633   resultobj = SWIG_Py_Void();
48634   if (SWIG_IsNewObj(res2)) delete arg2;
48635   if (SWIG_IsNewObj(res3)) delete arg3;
48636   return resultobj;
48637 fail:
48638   if (SWIG_IsNewObj(res2)) delete arg2;
48639   if (SWIG_IsNewObj(res3)) delete arg3;
48640   return NULL;
48641 }
48642 
48643 
_wrap_WritableDatabase_clear_synonyms(PyObject * SWIGUNUSEDPARM (self),PyObject * args)48644 SWIGINTERN PyObject *_wrap_WritableDatabase_clear_synonyms(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48645   PyObject *resultobj = 0;
48646   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
48647   std::string *arg2 = 0 ;
48648   void *argp1 = 0 ;
48649   int res1 = 0 ;
48650   int res2 = SWIG_OLDOBJ ;
48651   PyObject *swig_obj[2] ;
48652 
48653   if (!SWIG_Python_UnpackTuple(args,"WritableDatabase_clear_synonyms",2,2,swig_obj)) SWIG_fail;
48654   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
48655   if (!SWIG_IsOK(res1)) {
48656     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_clear_synonyms" "', argument " "1"" of type '" "Xapian::WritableDatabase const *""'");
48657   }
48658   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
48659   {
48660     std::string *ptr = (std::string *)0;
48661     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
48662     if (!SWIG_IsOK(res2)) {
48663       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "WritableDatabase_clear_synonyms" "', argument " "2"" of type '" "std::string const &""'");
48664     }
48665     if (!ptr) {
48666       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_clear_synonyms" "', argument " "2"" of type '" "std::string const &""'");
48667     }
48668     arg2 = ptr;
48669   }
48670   {
48671     try {
48672       {
48673         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
48674         ((Xapian::WritableDatabase const *)arg1)->clear_synonyms((std::string const &)*arg2);
48675         SWIG_PYTHON_THREAD_END_ALLOW;
48676       }
48677     } catch (...) {
48678       Xapian::SetPythonException();
48679       SWIG_fail;
48680     }
48681   }
48682   resultobj = SWIG_Py_Void();
48683   if (SWIG_IsNewObj(res2)) delete arg2;
48684   return resultobj;
48685 fail:
48686   if (SWIG_IsNewObj(res2)) delete arg2;
48687   return NULL;
48688 }
48689 
48690 
_wrap_WritableDatabase_set_metadata(PyObject * SWIGUNUSEDPARM (self),PyObject * args)48691 SWIGINTERN PyObject *_wrap_WritableDatabase_set_metadata(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48692   PyObject *resultobj = 0;
48693   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
48694   std::string *arg2 = 0 ;
48695   std::string *arg3 = 0 ;
48696   void *argp1 = 0 ;
48697   int res1 = 0 ;
48698   int res2 = SWIG_OLDOBJ ;
48699   int res3 = SWIG_OLDOBJ ;
48700   PyObject *swig_obj[3] ;
48701 
48702   if (!SWIG_Python_UnpackTuple(args,"WritableDatabase_set_metadata",3,3,swig_obj)) SWIG_fail;
48703   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
48704   if (!SWIG_IsOK(res1)) {
48705     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_set_metadata" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'");
48706   }
48707   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
48708   {
48709     std::string *ptr = (std::string *)0;
48710     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
48711     if (!SWIG_IsOK(res2)) {
48712       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "WritableDatabase_set_metadata" "', argument " "2"" of type '" "std::string const &""'");
48713     }
48714     if (!ptr) {
48715       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_set_metadata" "', argument " "2"" of type '" "std::string const &""'");
48716     }
48717     arg2 = ptr;
48718   }
48719   {
48720     std::string *ptr = (std::string *)0;
48721     res3 = XapianSWIG_anystring_as_ptr(swig_obj[2], &ptr);
48722     if (!SWIG_IsOK(res3)) {
48723       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "WritableDatabase_set_metadata" "', argument " "3"" of type '" "std::string const &""'");
48724     }
48725     if (!ptr) {
48726       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_set_metadata" "', argument " "3"" of type '" "std::string const &""'");
48727     }
48728     arg3 = ptr;
48729   }
48730   {
48731     try {
48732       {
48733         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
48734         (arg1)->set_metadata((std::string const &)*arg2,(std::string const &)*arg3);
48735         SWIG_PYTHON_THREAD_END_ALLOW;
48736       }
48737     } catch (...) {
48738       Xapian::SetPythonException();
48739       SWIG_fail;
48740     }
48741   }
48742   resultobj = SWIG_Py_Void();
48743   if (SWIG_IsNewObj(res2)) delete arg2;
48744   if (SWIG_IsNewObj(res3)) delete arg3;
48745   return resultobj;
48746 fail:
48747   if (SWIG_IsNewObj(res2)) delete arg2;
48748   if (SWIG_IsNewObj(res3)) delete arg3;
48749   return NULL;
48750 }
48751 
48752 
WritableDatabase_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)48753 SWIGINTERN PyObject *WritableDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48754   PyObject *obj;
48755   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
48756   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__WritableDatabase, SWIG_NewClientData(obj));
48757   return SWIG_Py_Void();
48758 }
48759 
WritableDatabase_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)48760 SWIGINTERN PyObject *WritableDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48761   return SWIG_Python_InitShadowInstance(args);
48762 }
48763 
_wrap_open_stub__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)48764 SWIGINTERN PyObject *_wrap_open_stub__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
48765   PyObject *resultobj = 0;
48766   std::string *arg1 = 0 ;
48767   int res1 = SWIG_OLDOBJ ;
48768   Xapian::Database result;
48769 
48770   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
48771   {
48772     std::string *ptr = (std::string *)0;
48773     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
48774     if (!SWIG_IsOK(res1)) {
48775       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "open_stub" "', argument " "1"" of type '" "std::string const &""'");
48776     }
48777     if (!ptr) {
48778       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "open_stub" "', argument " "1"" of type '" "std::string const &""'");
48779     }
48780     arg1 = ptr;
48781   }
48782   {
48783     try {
48784       {
48785         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
48786         result = Xapian::Auto::open_stub((std::string const &)*arg1);
48787         SWIG_PYTHON_THREAD_END_ALLOW;
48788       }
48789     } catch (...) {
48790       Xapian::SetPythonException();
48791       SWIG_fail;
48792     }
48793   }
48794   resultobj = SWIG_NewPointerObj((new Xapian::Database(static_cast< const Xapian::Database& >(result))), SWIGTYPE_p_Xapian__Database, SWIG_POINTER_OWN |  0 );
48795   if (SWIG_IsNewObj(res1)) delete arg1;
48796   return resultobj;
48797 fail:
48798   if (SWIG_IsNewObj(res1)) delete arg1;
48799   return NULL;
48800 }
48801 
48802 
_wrap_open_stub__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)48803 SWIGINTERN PyObject *_wrap_open_stub__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
48804   PyObject *resultobj = 0;
48805   std::string *arg1 = 0 ;
48806   int arg2 ;
48807   int res1 = SWIG_OLDOBJ ;
48808   int val2 ;
48809   int ecode2 = 0 ;
48810   Xapian::WritableDatabase result;
48811 
48812   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
48813   {
48814     std::string *ptr = (std::string *)0;
48815     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
48816     if (!SWIG_IsOK(res1)) {
48817       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "open_stub" "', argument " "1"" of type '" "std::string const &""'");
48818     }
48819     if (!ptr) {
48820       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "open_stub" "', argument " "1"" of type '" "std::string const &""'");
48821     }
48822     arg1 = ptr;
48823   }
48824   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
48825   if (!SWIG_IsOK(ecode2)) {
48826     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "open_stub" "', argument " "2"" of type '" "int""'");
48827   }
48828   arg2 = static_cast< int >(val2);
48829   {
48830     try {
48831       {
48832         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
48833         result = Xapian::Auto::open_stub((std::string const &)*arg1,arg2);
48834         SWIG_PYTHON_THREAD_END_ALLOW;
48835       }
48836     } catch (...) {
48837       Xapian::SetPythonException();
48838       SWIG_fail;
48839     }
48840   }
48841   resultobj = SWIG_NewPointerObj((new Xapian::WritableDatabase(static_cast< const Xapian::WritableDatabase& >(result))), SWIGTYPE_p_Xapian__WritableDatabase, SWIG_POINTER_OWN |  0 );
48842   if (SWIG_IsNewObj(res1)) delete arg1;
48843   return resultobj;
48844 fail:
48845   if (SWIG_IsNewObj(res1)) delete arg1;
48846   return NULL;
48847 }
48848 
48849 
_wrap_open_stub(PyObject * self,PyObject * args)48850 SWIGINTERN PyObject *_wrap_open_stub(PyObject *self, PyObject *args) {
48851   Py_ssize_t argc;
48852   PyObject *argv[3] = {
48853     0
48854   };
48855 
48856   if (!(argc = SWIG_Python_UnpackTuple(args,"open_stub",0,2,argv))) SWIG_fail;
48857   --argc;
48858   if (argc == 1) {
48859     return _wrap_open_stub__SWIG_0(self, argc, argv);
48860   }
48861   if (argc == 2) {
48862     return _wrap_open_stub__SWIG_1(self, argc, argv);
48863   }
48864 
48865 fail:
48866   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'open_stub'.\n"
48867     "  Possible C/C++ prototypes are:\n"
48868     "    Xapian::Auto::open_stub(std::string const &)\n"
48869     "    Xapian::Auto::open_stub(std::string const &,int)\n");
48870   return 0;
48871 }
48872 
48873 
_wrap_inmemory_open(PyObject * SWIGUNUSEDPARM (self),PyObject * args)48874 SWIGINTERN PyObject *_wrap_inmemory_open(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48875   PyObject *resultobj = 0;
48876   Xapian::WritableDatabase result;
48877 
48878   if (!SWIG_Python_UnpackTuple(args,"inmemory_open",0,0,0)) SWIG_fail;
48879   {
48880     try {
48881       {
48882         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
48883         result = Xapian::InMemory::open();
48884         SWIG_PYTHON_THREAD_END_ALLOW;
48885       }
48886     } catch (...) {
48887       Xapian::SetPythonException();
48888       SWIG_fail;
48889     }
48890   }
48891   resultobj = SWIG_NewPointerObj((new Xapian::WritableDatabase(static_cast< const Xapian::WritableDatabase& >(result))), SWIGTYPE_p_Xapian__WritableDatabase, SWIG_POINTER_OWN |  0 );
48892   return resultobj;
48893 fail:
48894   return NULL;
48895 }
48896 
48897 
_wrap_chert_open__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)48898 SWIGINTERN PyObject *_wrap_chert_open__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
48899   PyObject *resultobj = 0;
48900   std::string *arg1 = 0 ;
48901   int res1 = SWIG_OLDOBJ ;
48902   Xapian::Database result;
48903 
48904   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
48905   {
48906     std::string *ptr = (std::string *)0;
48907     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
48908     if (!SWIG_IsOK(res1)) {
48909       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "chert_open" "', argument " "1"" of type '" "std::string const &""'");
48910     }
48911     if (!ptr) {
48912       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "chert_open" "', argument " "1"" of type '" "std::string const &""'");
48913     }
48914     arg1 = ptr;
48915   }
48916   {
48917     try {
48918       {
48919         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
48920         result = Xapian::Chert::open((std::string const &)*arg1);
48921         SWIG_PYTHON_THREAD_END_ALLOW;
48922       }
48923     } catch (...) {
48924       Xapian::SetPythonException();
48925       SWIG_fail;
48926     }
48927   }
48928   resultobj = SWIG_NewPointerObj((new Xapian::Database(static_cast< const Xapian::Database& >(result))), SWIGTYPE_p_Xapian__Database, SWIG_POINTER_OWN |  0 );
48929   if (SWIG_IsNewObj(res1)) delete arg1;
48930   return resultobj;
48931 fail:
48932   if (SWIG_IsNewObj(res1)) delete arg1;
48933   return NULL;
48934 }
48935 
48936 
_wrap_chert_open__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)48937 SWIGINTERN PyObject *_wrap_chert_open__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
48938   PyObject *resultobj = 0;
48939   std::string *arg1 = 0 ;
48940   int arg2 ;
48941   int arg3 ;
48942   int res1 = SWIG_OLDOBJ ;
48943   int val2 ;
48944   int ecode2 = 0 ;
48945   int val3 ;
48946   int ecode3 = 0 ;
48947   Xapian::WritableDatabase result;
48948 
48949   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
48950   {
48951     std::string *ptr = (std::string *)0;
48952     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
48953     if (!SWIG_IsOK(res1)) {
48954       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "chert_open" "', argument " "1"" of type '" "std::string const &""'");
48955     }
48956     if (!ptr) {
48957       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "chert_open" "', argument " "1"" of type '" "std::string const &""'");
48958     }
48959     arg1 = ptr;
48960   }
48961   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
48962   if (!SWIG_IsOK(ecode2)) {
48963     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "chert_open" "', argument " "2"" of type '" "int""'");
48964   }
48965   arg2 = static_cast< int >(val2);
48966   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
48967   if (!SWIG_IsOK(ecode3)) {
48968     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "chert_open" "', argument " "3"" of type '" "int""'");
48969   }
48970   arg3 = static_cast< int >(val3);
48971   {
48972     try {
48973       {
48974         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
48975         result = Xapian::Chert::open((std::string const &)*arg1,arg2,arg3);
48976         SWIG_PYTHON_THREAD_END_ALLOW;
48977       }
48978     } catch (...) {
48979       Xapian::SetPythonException();
48980       SWIG_fail;
48981     }
48982   }
48983   resultobj = SWIG_NewPointerObj((new Xapian::WritableDatabase(static_cast< const Xapian::WritableDatabase& >(result))), SWIGTYPE_p_Xapian__WritableDatabase, SWIG_POINTER_OWN |  0 );
48984   if (SWIG_IsNewObj(res1)) delete arg1;
48985   return resultobj;
48986 fail:
48987   if (SWIG_IsNewObj(res1)) delete arg1;
48988   return NULL;
48989 }
48990 
48991 
_wrap_chert_open__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)48992 SWIGINTERN PyObject *_wrap_chert_open__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
48993   PyObject *resultobj = 0;
48994   std::string *arg1 = 0 ;
48995   int arg2 ;
48996   int res1 = SWIG_OLDOBJ ;
48997   int val2 ;
48998   int ecode2 = 0 ;
48999   Xapian::WritableDatabase result;
49000 
49001   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
49002   {
49003     std::string *ptr = (std::string *)0;
49004     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
49005     if (!SWIG_IsOK(res1)) {
49006       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "chert_open" "', argument " "1"" of type '" "std::string const &""'");
49007     }
49008     if (!ptr) {
49009       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "chert_open" "', argument " "1"" of type '" "std::string const &""'");
49010     }
49011     arg1 = ptr;
49012   }
49013   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
49014   if (!SWIG_IsOK(ecode2)) {
49015     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "chert_open" "', argument " "2"" of type '" "int""'");
49016   }
49017   arg2 = static_cast< int >(val2);
49018   {
49019     try {
49020       {
49021         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
49022         result = Xapian::Chert::open((std::string const &)*arg1,arg2);
49023         SWIG_PYTHON_THREAD_END_ALLOW;
49024       }
49025     } catch (...) {
49026       Xapian::SetPythonException();
49027       SWIG_fail;
49028     }
49029   }
49030   resultobj = SWIG_NewPointerObj((new Xapian::WritableDatabase(static_cast< const Xapian::WritableDatabase& >(result))), SWIGTYPE_p_Xapian__WritableDatabase, SWIG_POINTER_OWN |  0 );
49031   if (SWIG_IsNewObj(res1)) delete arg1;
49032   return resultobj;
49033 fail:
49034   if (SWIG_IsNewObj(res1)) delete arg1;
49035   return NULL;
49036 }
49037 
49038 
_wrap_chert_open(PyObject * self,PyObject * args)49039 SWIGINTERN PyObject *_wrap_chert_open(PyObject *self, PyObject *args) {
49040   Py_ssize_t argc;
49041   PyObject *argv[4] = {
49042     0
49043   };
49044 
49045   if (!(argc = SWIG_Python_UnpackTuple(args,"chert_open",0,3,argv))) SWIG_fail;
49046   --argc;
49047   if (argc == 1) {
49048     return _wrap_chert_open__SWIG_0(self, argc, argv);
49049   }
49050   if (argc == 2) {
49051     return _wrap_chert_open__SWIG_2(self, argc, argv);
49052   }
49053   if (argc == 3) {
49054     return _wrap_chert_open__SWIG_1(self, argc, argv);
49055   }
49056 
49057 fail:
49058   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'chert_open'.\n"
49059     "  Possible C/C++ prototypes are:\n"
49060     "    Xapian::Chert::open(std::string const &)\n"
49061     "    Xapian::Chert::open(std::string const &,int,int)\n"
49062     "    Xapian::Chert::open(std::string const &,int)\n");
49063   return 0;
49064 }
49065 
49066 
_wrap_remote_open__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)49067 SWIGINTERN PyObject *_wrap_remote_open__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
49068   PyObject *resultobj = 0;
49069   std::string *arg1 = 0 ;
49070   unsigned int arg2 ;
49071   useconds_t arg3 ;
49072   useconds_t arg4 ;
49073   int res1 = SWIG_OLDOBJ ;
49074   unsigned int val2 ;
49075   int ecode2 = 0 ;
49076   unsigned int val3 ;
49077   int ecode3 = 0 ;
49078   unsigned int val4 ;
49079   int ecode4 = 0 ;
49080   Xapian::Database result;
49081 
49082   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
49083   {
49084     std::string *ptr = (std::string *)0;
49085     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
49086     if (!SWIG_IsOK(res1)) {
49087       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "remote_open" "', argument " "1"" of type '" "std::string const &""'");
49088     }
49089     if (!ptr) {
49090       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open" "', argument " "1"" of type '" "std::string const &""'");
49091     }
49092     arg1 = ptr;
49093   }
49094   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
49095   if (!SWIG_IsOK(ecode2)) {
49096     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "remote_open" "', argument " "2"" of type '" "unsigned int""'");
49097   }
49098   arg2 = static_cast< unsigned int >(val2);
49099   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
49100   if (!SWIG_IsOK(ecode3)) {
49101     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "remote_open" "', argument " "3"" of type '" "useconds_t""'");
49102   }
49103   arg3 = static_cast< useconds_t >(val3);
49104   ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4);
49105   if (!SWIG_IsOK(ecode4)) {
49106     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "remote_open" "', argument " "4"" of type '" "useconds_t""'");
49107   }
49108   arg4 = static_cast< useconds_t >(val4);
49109   {
49110     try {
49111       {
49112         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
49113         result = Xapian::Remote::open((std::string const &)*arg1,arg2,arg3,arg4);
49114         SWIG_PYTHON_THREAD_END_ALLOW;
49115       }
49116     } catch (...) {
49117       Xapian::SetPythonException();
49118       SWIG_fail;
49119     }
49120   }
49121   resultobj = SWIG_NewPointerObj((new Xapian::Database(static_cast< const Xapian::Database& >(result))), SWIGTYPE_p_Xapian__Database, SWIG_POINTER_OWN |  0 );
49122   if (SWIG_IsNewObj(res1)) delete arg1;
49123   return resultobj;
49124 fail:
49125   if (SWIG_IsNewObj(res1)) delete arg1;
49126   return NULL;
49127 }
49128 
49129 
_wrap_remote_open__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)49130 SWIGINTERN PyObject *_wrap_remote_open__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
49131   PyObject *resultobj = 0;
49132   std::string *arg1 = 0 ;
49133   unsigned int arg2 ;
49134   useconds_t arg3 ;
49135   int res1 = SWIG_OLDOBJ ;
49136   unsigned int val2 ;
49137   int ecode2 = 0 ;
49138   unsigned int val3 ;
49139   int ecode3 = 0 ;
49140   Xapian::Database result;
49141 
49142   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
49143   {
49144     std::string *ptr = (std::string *)0;
49145     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
49146     if (!SWIG_IsOK(res1)) {
49147       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "remote_open" "', argument " "1"" of type '" "std::string const &""'");
49148     }
49149     if (!ptr) {
49150       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open" "', argument " "1"" of type '" "std::string const &""'");
49151     }
49152     arg1 = ptr;
49153   }
49154   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
49155   if (!SWIG_IsOK(ecode2)) {
49156     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "remote_open" "', argument " "2"" of type '" "unsigned int""'");
49157   }
49158   arg2 = static_cast< unsigned int >(val2);
49159   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
49160   if (!SWIG_IsOK(ecode3)) {
49161     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "remote_open" "', argument " "3"" of type '" "useconds_t""'");
49162   }
49163   arg3 = static_cast< useconds_t >(val3);
49164   {
49165     try {
49166       {
49167         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
49168         result = Xapian::Remote::open((std::string const &)*arg1,arg2,arg3);
49169         SWIG_PYTHON_THREAD_END_ALLOW;
49170       }
49171     } catch (...) {
49172       Xapian::SetPythonException();
49173       SWIG_fail;
49174     }
49175   }
49176   resultobj = SWIG_NewPointerObj((new Xapian::Database(static_cast< const Xapian::Database& >(result))), SWIGTYPE_p_Xapian__Database, SWIG_POINTER_OWN |  0 );
49177   if (SWIG_IsNewObj(res1)) delete arg1;
49178   return resultobj;
49179 fail:
49180   if (SWIG_IsNewObj(res1)) delete arg1;
49181   return NULL;
49182 }
49183 
49184 
_wrap_remote_open__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)49185 SWIGINTERN PyObject *_wrap_remote_open__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
49186   PyObject *resultobj = 0;
49187   std::string *arg1 = 0 ;
49188   unsigned int arg2 ;
49189   int res1 = SWIG_OLDOBJ ;
49190   unsigned int val2 ;
49191   int ecode2 = 0 ;
49192   Xapian::Database result;
49193 
49194   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
49195   {
49196     std::string *ptr = (std::string *)0;
49197     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
49198     if (!SWIG_IsOK(res1)) {
49199       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "remote_open" "', argument " "1"" of type '" "std::string const &""'");
49200     }
49201     if (!ptr) {
49202       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open" "', argument " "1"" of type '" "std::string const &""'");
49203     }
49204     arg1 = ptr;
49205   }
49206   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
49207   if (!SWIG_IsOK(ecode2)) {
49208     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "remote_open" "', argument " "2"" of type '" "unsigned int""'");
49209   }
49210   arg2 = static_cast< unsigned int >(val2);
49211   {
49212     try {
49213       {
49214         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
49215         result = Xapian::Remote::open((std::string const &)*arg1,arg2);
49216         SWIG_PYTHON_THREAD_END_ALLOW;
49217       }
49218     } catch (...) {
49219       Xapian::SetPythonException();
49220       SWIG_fail;
49221     }
49222   }
49223   resultobj = SWIG_NewPointerObj((new Xapian::Database(static_cast< const Xapian::Database& >(result))), SWIGTYPE_p_Xapian__Database, SWIG_POINTER_OWN |  0 );
49224   if (SWIG_IsNewObj(res1)) delete arg1;
49225   return resultobj;
49226 fail:
49227   if (SWIG_IsNewObj(res1)) delete arg1;
49228   return NULL;
49229 }
49230 
49231 
_wrap_remote_open_writable__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)49232 SWIGINTERN PyObject *_wrap_remote_open_writable__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
49233   PyObject *resultobj = 0;
49234   std::string *arg1 = 0 ;
49235   unsigned int arg2 ;
49236   useconds_t arg3 ;
49237   useconds_t arg4 ;
49238   int arg5 ;
49239   int res1 = SWIG_OLDOBJ ;
49240   unsigned int val2 ;
49241   int ecode2 = 0 ;
49242   unsigned int val3 ;
49243   int ecode3 = 0 ;
49244   unsigned int val4 ;
49245   int ecode4 = 0 ;
49246   int val5 ;
49247   int ecode5 = 0 ;
49248   Xapian::WritableDatabase result;
49249 
49250   if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
49251   {
49252     std::string *ptr = (std::string *)0;
49253     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
49254     if (!SWIG_IsOK(res1)) {
49255       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'");
49256     }
49257     if (!ptr) {
49258       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'");
49259     }
49260     arg1 = ptr;
49261   }
49262   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
49263   if (!SWIG_IsOK(ecode2)) {
49264     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "remote_open_writable" "', argument " "2"" of type '" "unsigned int""'");
49265   }
49266   arg2 = static_cast< unsigned int >(val2);
49267   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
49268   if (!SWIG_IsOK(ecode3)) {
49269     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "remote_open_writable" "', argument " "3"" of type '" "useconds_t""'");
49270   }
49271   arg3 = static_cast< useconds_t >(val3);
49272   ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4);
49273   if (!SWIG_IsOK(ecode4)) {
49274     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "remote_open_writable" "', argument " "4"" of type '" "useconds_t""'");
49275   }
49276   arg4 = static_cast< useconds_t >(val4);
49277   ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
49278   if (!SWIG_IsOK(ecode5)) {
49279     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "remote_open_writable" "', argument " "5"" of type '" "int""'");
49280   }
49281   arg5 = static_cast< int >(val5);
49282   {
49283     try {
49284       {
49285         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
49286         result = Xapian::Remote::open_writable((std::string const &)*arg1,arg2,arg3,arg4,arg5);
49287         SWIG_PYTHON_THREAD_END_ALLOW;
49288       }
49289     } catch (...) {
49290       Xapian::SetPythonException();
49291       SWIG_fail;
49292     }
49293   }
49294   resultobj = SWIG_NewPointerObj((new Xapian::WritableDatabase(static_cast< const Xapian::WritableDatabase& >(result))), SWIGTYPE_p_Xapian__WritableDatabase, SWIG_POINTER_OWN |  0 );
49295   if (SWIG_IsNewObj(res1)) delete arg1;
49296   return resultobj;
49297 fail:
49298   if (SWIG_IsNewObj(res1)) delete arg1;
49299   return NULL;
49300 }
49301 
49302 
_wrap_remote_open_writable__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)49303 SWIGINTERN PyObject *_wrap_remote_open_writable__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
49304   PyObject *resultobj = 0;
49305   std::string *arg1 = 0 ;
49306   unsigned int arg2 ;
49307   useconds_t arg3 ;
49308   useconds_t arg4 ;
49309   int res1 = SWIG_OLDOBJ ;
49310   unsigned int val2 ;
49311   int ecode2 = 0 ;
49312   unsigned int val3 ;
49313   int ecode3 = 0 ;
49314   unsigned int val4 ;
49315   int ecode4 = 0 ;
49316   Xapian::WritableDatabase result;
49317 
49318   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
49319   {
49320     std::string *ptr = (std::string *)0;
49321     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
49322     if (!SWIG_IsOK(res1)) {
49323       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'");
49324     }
49325     if (!ptr) {
49326       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'");
49327     }
49328     arg1 = ptr;
49329   }
49330   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
49331   if (!SWIG_IsOK(ecode2)) {
49332     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "remote_open_writable" "', argument " "2"" of type '" "unsigned int""'");
49333   }
49334   arg2 = static_cast< unsigned int >(val2);
49335   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
49336   if (!SWIG_IsOK(ecode3)) {
49337     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "remote_open_writable" "', argument " "3"" of type '" "useconds_t""'");
49338   }
49339   arg3 = static_cast< useconds_t >(val3);
49340   ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4);
49341   if (!SWIG_IsOK(ecode4)) {
49342     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "remote_open_writable" "', argument " "4"" of type '" "useconds_t""'");
49343   }
49344   arg4 = static_cast< useconds_t >(val4);
49345   {
49346     try {
49347       {
49348         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
49349         result = Xapian::Remote::open_writable((std::string const &)*arg1,arg2,arg3,arg4);
49350         SWIG_PYTHON_THREAD_END_ALLOW;
49351       }
49352     } catch (...) {
49353       Xapian::SetPythonException();
49354       SWIG_fail;
49355     }
49356   }
49357   resultobj = SWIG_NewPointerObj((new Xapian::WritableDatabase(static_cast< const Xapian::WritableDatabase& >(result))), SWIGTYPE_p_Xapian__WritableDatabase, SWIG_POINTER_OWN |  0 );
49358   if (SWIG_IsNewObj(res1)) delete arg1;
49359   return resultobj;
49360 fail:
49361   if (SWIG_IsNewObj(res1)) delete arg1;
49362   return NULL;
49363 }
49364 
49365 
_wrap_remote_open_writable__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)49366 SWIGINTERN PyObject *_wrap_remote_open_writable__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
49367   PyObject *resultobj = 0;
49368   std::string *arg1 = 0 ;
49369   unsigned int arg2 ;
49370   useconds_t arg3 ;
49371   int res1 = SWIG_OLDOBJ ;
49372   unsigned int val2 ;
49373   int ecode2 = 0 ;
49374   unsigned int val3 ;
49375   int ecode3 = 0 ;
49376   Xapian::WritableDatabase result;
49377 
49378   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
49379   {
49380     std::string *ptr = (std::string *)0;
49381     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
49382     if (!SWIG_IsOK(res1)) {
49383       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'");
49384     }
49385     if (!ptr) {
49386       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'");
49387     }
49388     arg1 = ptr;
49389   }
49390   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
49391   if (!SWIG_IsOK(ecode2)) {
49392     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "remote_open_writable" "', argument " "2"" of type '" "unsigned int""'");
49393   }
49394   arg2 = static_cast< unsigned int >(val2);
49395   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
49396   if (!SWIG_IsOK(ecode3)) {
49397     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "remote_open_writable" "', argument " "3"" of type '" "useconds_t""'");
49398   }
49399   arg3 = static_cast< useconds_t >(val3);
49400   {
49401     try {
49402       {
49403         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
49404         result = Xapian::Remote::open_writable((std::string const &)*arg1,arg2,arg3);
49405         SWIG_PYTHON_THREAD_END_ALLOW;
49406       }
49407     } catch (...) {
49408       Xapian::SetPythonException();
49409       SWIG_fail;
49410     }
49411   }
49412   resultobj = SWIG_NewPointerObj((new Xapian::WritableDatabase(static_cast< const Xapian::WritableDatabase& >(result))), SWIGTYPE_p_Xapian__WritableDatabase, SWIG_POINTER_OWN |  0 );
49413   if (SWIG_IsNewObj(res1)) delete arg1;
49414   return resultobj;
49415 fail:
49416   if (SWIG_IsNewObj(res1)) delete arg1;
49417   return NULL;
49418 }
49419 
49420 
_wrap_remote_open_writable__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)49421 SWIGINTERN PyObject *_wrap_remote_open_writable__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
49422   PyObject *resultobj = 0;
49423   std::string *arg1 = 0 ;
49424   unsigned int arg2 ;
49425   int res1 = SWIG_OLDOBJ ;
49426   unsigned int val2 ;
49427   int ecode2 = 0 ;
49428   Xapian::WritableDatabase result;
49429 
49430   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
49431   {
49432     std::string *ptr = (std::string *)0;
49433     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
49434     if (!SWIG_IsOK(res1)) {
49435       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'");
49436     }
49437     if (!ptr) {
49438       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'");
49439     }
49440     arg1 = ptr;
49441   }
49442   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
49443   if (!SWIG_IsOK(ecode2)) {
49444     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "remote_open_writable" "', argument " "2"" of type '" "unsigned int""'");
49445   }
49446   arg2 = static_cast< unsigned int >(val2);
49447   {
49448     try {
49449       {
49450         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
49451         result = Xapian::Remote::open_writable((std::string const &)*arg1,arg2);
49452         SWIG_PYTHON_THREAD_END_ALLOW;
49453       }
49454     } catch (...) {
49455       Xapian::SetPythonException();
49456       SWIG_fail;
49457     }
49458   }
49459   resultobj = SWIG_NewPointerObj((new Xapian::WritableDatabase(static_cast< const Xapian::WritableDatabase& >(result))), SWIGTYPE_p_Xapian__WritableDatabase, SWIG_POINTER_OWN |  0 );
49460   if (SWIG_IsNewObj(res1)) delete arg1;
49461   return resultobj;
49462 fail:
49463   if (SWIG_IsNewObj(res1)) delete arg1;
49464   return NULL;
49465 }
49466 
49467 
_wrap_remote_open__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)49468 SWIGINTERN PyObject *_wrap_remote_open__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
49469   PyObject *resultobj = 0;
49470   std::string *arg1 = 0 ;
49471   std::string *arg2 = 0 ;
49472   useconds_t arg3 ;
49473   int res1 = SWIG_OLDOBJ ;
49474   int res2 = SWIG_OLDOBJ ;
49475   unsigned int val3 ;
49476   int ecode3 = 0 ;
49477   Xapian::Database result;
49478 
49479   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
49480   {
49481     std::string *ptr = (std::string *)0;
49482     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
49483     if (!SWIG_IsOK(res1)) {
49484       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "remote_open" "', argument " "1"" of type '" "std::string const &""'");
49485     }
49486     if (!ptr) {
49487       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open" "', argument " "1"" of type '" "std::string const &""'");
49488     }
49489     arg1 = ptr;
49490   }
49491   {
49492     std::string *ptr = (std::string *)0;
49493     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
49494     if (!SWIG_IsOK(res2)) {
49495       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "remote_open" "', argument " "2"" of type '" "std::string const &""'");
49496     }
49497     if (!ptr) {
49498       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open" "', argument " "2"" of type '" "std::string const &""'");
49499     }
49500     arg2 = ptr;
49501   }
49502   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
49503   if (!SWIG_IsOK(ecode3)) {
49504     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "remote_open" "', argument " "3"" of type '" "useconds_t""'");
49505   }
49506   arg3 = static_cast< useconds_t >(val3);
49507   {
49508     try {
49509       {
49510         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
49511         result = Xapian::Remote::open((std::string const &)*arg1,(std::string const &)*arg2,arg3);
49512         SWIG_PYTHON_THREAD_END_ALLOW;
49513       }
49514     } catch (...) {
49515       Xapian::SetPythonException();
49516       SWIG_fail;
49517     }
49518   }
49519   resultobj = SWIG_NewPointerObj((new Xapian::Database(static_cast< const Xapian::Database& >(result))), SWIGTYPE_p_Xapian__Database, SWIG_POINTER_OWN |  0 );
49520   if (SWIG_IsNewObj(res1)) delete arg1;
49521   if (SWIG_IsNewObj(res2)) delete arg2;
49522   return resultobj;
49523 fail:
49524   if (SWIG_IsNewObj(res1)) delete arg1;
49525   if (SWIG_IsNewObj(res2)) delete arg2;
49526   return NULL;
49527 }
49528 
49529 
_wrap_remote_open__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)49530 SWIGINTERN PyObject *_wrap_remote_open__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
49531   PyObject *resultobj = 0;
49532   std::string *arg1 = 0 ;
49533   std::string *arg2 = 0 ;
49534   int res1 = SWIG_OLDOBJ ;
49535   int res2 = SWIG_OLDOBJ ;
49536   Xapian::Database result;
49537 
49538   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
49539   {
49540     std::string *ptr = (std::string *)0;
49541     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
49542     if (!SWIG_IsOK(res1)) {
49543       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "remote_open" "', argument " "1"" of type '" "std::string const &""'");
49544     }
49545     if (!ptr) {
49546       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open" "', argument " "1"" of type '" "std::string const &""'");
49547     }
49548     arg1 = ptr;
49549   }
49550   {
49551     std::string *ptr = (std::string *)0;
49552     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
49553     if (!SWIG_IsOK(res2)) {
49554       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "remote_open" "', argument " "2"" of type '" "std::string const &""'");
49555     }
49556     if (!ptr) {
49557       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open" "', argument " "2"" of type '" "std::string const &""'");
49558     }
49559     arg2 = ptr;
49560   }
49561   {
49562     try {
49563       {
49564         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
49565         result = Xapian::Remote::open((std::string const &)*arg1,(std::string const &)*arg2);
49566         SWIG_PYTHON_THREAD_END_ALLOW;
49567       }
49568     } catch (...) {
49569       Xapian::SetPythonException();
49570       SWIG_fail;
49571     }
49572   }
49573   resultobj = SWIG_NewPointerObj((new Xapian::Database(static_cast< const Xapian::Database& >(result))), SWIGTYPE_p_Xapian__Database, SWIG_POINTER_OWN |  0 );
49574   if (SWIG_IsNewObj(res1)) delete arg1;
49575   if (SWIG_IsNewObj(res2)) delete arg2;
49576   return resultobj;
49577 fail:
49578   if (SWIG_IsNewObj(res1)) delete arg1;
49579   if (SWIG_IsNewObj(res2)) delete arg2;
49580   return NULL;
49581 }
49582 
49583 
_wrap_remote_open(PyObject * self,PyObject * args)49584 SWIGINTERN PyObject *_wrap_remote_open(PyObject *self, PyObject *args) {
49585   Py_ssize_t argc;
49586   PyObject *argv[5] = {
49587     0
49588   };
49589 
49590   if (!(argc = SWIG_Python_UnpackTuple(args,"remote_open",0,4,argv))) SWIG_fail;
49591   --argc;
49592   if (argc == 2) {
49593     int _v = 0;
49594     {
49595       {
49596         int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
49597         _v = SWIG_CheckState(res);
49598       }
49599     }
49600     if (!_v) goto check_1;
49601     return _wrap_remote_open__SWIG_2(self, argc, argv);
49602   }
49603 check_1:
49604 
49605   if (argc == 2) {
49606     return _wrap_remote_open__SWIG_4(self, argc, argv);
49607   }
49608   if (argc == 3) {
49609     int _v = 0;
49610     {
49611       {
49612         int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
49613         _v = SWIG_CheckState(res);
49614       }
49615     }
49616     if (!_v) goto check_3;
49617     return _wrap_remote_open__SWIG_1(self, argc, argv);
49618   }
49619 check_3:
49620 
49621   if (argc == 3) {
49622     return _wrap_remote_open__SWIG_3(self, argc, argv);
49623   }
49624   if (argc == 4) {
49625     return _wrap_remote_open__SWIG_0(self, argc, argv);
49626   }
49627 
49628 fail:
49629   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'remote_open'.\n"
49630     "  Possible C/C++ prototypes are:\n"
49631     "    Xapian::Remote::open(std::string const &,unsigned int,useconds_t,useconds_t)\n"
49632     "    Xapian::Remote::open(std::string const &,unsigned int,useconds_t)\n"
49633     "    Xapian::Remote::open(std::string const &,unsigned int)\n"
49634     "    Xapian::Remote::open(std::string const &,std::string const &,useconds_t)\n"
49635     "    Xapian::Remote::open(std::string const &,std::string const &)\n");
49636   return 0;
49637 }
49638 
49639 
_wrap_remote_open_writable__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)49640 SWIGINTERN PyObject *_wrap_remote_open_writable__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
49641   PyObject *resultobj = 0;
49642   std::string *arg1 = 0 ;
49643   std::string *arg2 = 0 ;
49644   useconds_t arg3 ;
49645   int arg4 ;
49646   int res1 = SWIG_OLDOBJ ;
49647   int res2 = SWIG_OLDOBJ ;
49648   unsigned int val3 ;
49649   int ecode3 = 0 ;
49650   int val4 ;
49651   int ecode4 = 0 ;
49652   Xapian::WritableDatabase result;
49653 
49654   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
49655   {
49656     std::string *ptr = (std::string *)0;
49657     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
49658     if (!SWIG_IsOK(res1)) {
49659       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'");
49660     }
49661     if (!ptr) {
49662       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'");
49663     }
49664     arg1 = ptr;
49665   }
49666   {
49667     std::string *ptr = (std::string *)0;
49668     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
49669     if (!SWIG_IsOK(res2)) {
49670       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "remote_open_writable" "', argument " "2"" of type '" "std::string const &""'");
49671     }
49672     if (!ptr) {
49673       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open_writable" "', argument " "2"" of type '" "std::string const &""'");
49674     }
49675     arg2 = ptr;
49676   }
49677   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
49678   if (!SWIG_IsOK(ecode3)) {
49679     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "remote_open_writable" "', argument " "3"" of type '" "useconds_t""'");
49680   }
49681   arg3 = static_cast< useconds_t >(val3);
49682   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
49683   if (!SWIG_IsOK(ecode4)) {
49684     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "remote_open_writable" "', argument " "4"" of type '" "int""'");
49685   }
49686   arg4 = static_cast< int >(val4);
49687   {
49688     try {
49689       {
49690         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
49691         result = Xapian::Remote::open_writable((std::string const &)*arg1,(std::string const &)*arg2,arg3,arg4);
49692         SWIG_PYTHON_THREAD_END_ALLOW;
49693       }
49694     } catch (...) {
49695       Xapian::SetPythonException();
49696       SWIG_fail;
49697     }
49698   }
49699   resultobj = SWIG_NewPointerObj((new Xapian::WritableDatabase(static_cast< const Xapian::WritableDatabase& >(result))), SWIGTYPE_p_Xapian__WritableDatabase, SWIG_POINTER_OWN |  0 );
49700   if (SWIG_IsNewObj(res1)) delete arg1;
49701   if (SWIG_IsNewObj(res2)) delete arg2;
49702   return resultobj;
49703 fail:
49704   if (SWIG_IsNewObj(res1)) delete arg1;
49705   if (SWIG_IsNewObj(res2)) delete arg2;
49706   return NULL;
49707 }
49708 
49709 
_wrap_remote_open_writable__SWIG_5(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)49710 SWIGINTERN PyObject *_wrap_remote_open_writable__SWIG_5(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
49711   PyObject *resultobj = 0;
49712   std::string *arg1 = 0 ;
49713   std::string *arg2 = 0 ;
49714   useconds_t arg3 ;
49715   int res1 = SWIG_OLDOBJ ;
49716   int res2 = SWIG_OLDOBJ ;
49717   unsigned int val3 ;
49718   int ecode3 = 0 ;
49719   Xapian::WritableDatabase result;
49720 
49721   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
49722   {
49723     std::string *ptr = (std::string *)0;
49724     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
49725     if (!SWIG_IsOK(res1)) {
49726       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'");
49727     }
49728     if (!ptr) {
49729       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'");
49730     }
49731     arg1 = ptr;
49732   }
49733   {
49734     std::string *ptr = (std::string *)0;
49735     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
49736     if (!SWIG_IsOK(res2)) {
49737       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "remote_open_writable" "', argument " "2"" of type '" "std::string const &""'");
49738     }
49739     if (!ptr) {
49740       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open_writable" "', argument " "2"" of type '" "std::string const &""'");
49741     }
49742     arg2 = ptr;
49743   }
49744   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
49745   if (!SWIG_IsOK(ecode3)) {
49746     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "remote_open_writable" "', argument " "3"" of type '" "useconds_t""'");
49747   }
49748   arg3 = static_cast< useconds_t >(val3);
49749   {
49750     try {
49751       {
49752         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
49753         result = Xapian::Remote::open_writable((std::string const &)*arg1,(std::string const &)*arg2,arg3);
49754         SWIG_PYTHON_THREAD_END_ALLOW;
49755       }
49756     } catch (...) {
49757       Xapian::SetPythonException();
49758       SWIG_fail;
49759     }
49760   }
49761   resultobj = SWIG_NewPointerObj((new Xapian::WritableDatabase(static_cast< const Xapian::WritableDatabase& >(result))), SWIGTYPE_p_Xapian__WritableDatabase, SWIG_POINTER_OWN |  0 );
49762   if (SWIG_IsNewObj(res1)) delete arg1;
49763   if (SWIG_IsNewObj(res2)) delete arg2;
49764   return resultobj;
49765 fail:
49766   if (SWIG_IsNewObj(res1)) delete arg1;
49767   if (SWIG_IsNewObj(res2)) delete arg2;
49768   return NULL;
49769 }
49770 
49771 
_wrap_remote_open_writable__SWIG_6(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)49772 SWIGINTERN PyObject *_wrap_remote_open_writable__SWIG_6(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
49773   PyObject *resultobj = 0;
49774   std::string *arg1 = 0 ;
49775   std::string *arg2 = 0 ;
49776   int res1 = SWIG_OLDOBJ ;
49777   int res2 = SWIG_OLDOBJ ;
49778   Xapian::WritableDatabase result;
49779 
49780   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
49781   {
49782     std::string *ptr = (std::string *)0;
49783     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
49784     if (!SWIG_IsOK(res1)) {
49785       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'");
49786     }
49787     if (!ptr) {
49788       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'");
49789     }
49790     arg1 = ptr;
49791   }
49792   {
49793     std::string *ptr = (std::string *)0;
49794     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
49795     if (!SWIG_IsOK(res2)) {
49796       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "remote_open_writable" "', argument " "2"" of type '" "std::string const &""'");
49797     }
49798     if (!ptr) {
49799       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open_writable" "', argument " "2"" of type '" "std::string const &""'");
49800     }
49801     arg2 = ptr;
49802   }
49803   {
49804     try {
49805       {
49806         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
49807         result = Xapian::Remote::open_writable((std::string const &)*arg1,(std::string const &)*arg2);
49808         SWIG_PYTHON_THREAD_END_ALLOW;
49809       }
49810     } catch (...) {
49811       Xapian::SetPythonException();
49812       SWIG_fail;
49813     }
49814   }
49815   resultobj = SWIG_NewPointerObj((new Xapian::WritableDatabase(static_cast< const Xapian::WritableDatabase& >(result))), SWIGTYPE_p_Xapian__WritableDatabase, SWIG_POINTER_OWN |  0 );
49816   if (SWIG_IsNewObj(res1)) delete arg1;
49817   if (SWIG_IsNewObj(res2)) delete arg2;
49818   return resultobj;
49819 fail:
49820   if (SWIG_IsNewObj(res1)) delete arg1;
49821   if (SWIG_IsNewObj(res2)) delete arg2;
49822   return NULL;
49823 }
49824 
49825 
_wrap_remote_open_writable(PyObject * self,PyObject * args)49826 SWIGINTERN PyObject *_wrap_remote_open_writable(PyObject *self, PyObject *args) {
49827   Py_ssize_t argc;
49828   PyObject *argv[6] = {
49829     0
49830   };
49831 
49832   if (!(argc = SWIG_Python_UnpackTuple(args,"remote_open_writable",0,5,argv))) SWIG_fail;
49833   --argc;
49834   if (argc == 2) {
49835     int _v = 0;
49836     {
49837       {
49838         int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
49839         _v = SWIG_CheckState(res);
49840       }
49841     }
49842     if (!_v) goto check_1;
49843     return _wrap_remote_open_writable__SWIG_3(self, argc, argv);
49844   }
49845 check_1:
49846 
49847   if (argc == 2) {
49848     return _wrap_remote_open_writable__SWIG_6(self, argc, argv);
49849   }
49850   if (argc == 3) {
49851     int _v = 0;
49852     {
49853       {
49854         int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
49855         _v = SWIG_CheckState(res);
49856       }
49857     }
49858     if (!_v) goto check_3;
49859     return _wrap_remote_open_writable__SWIG_2(self, argc, argv);
49860   }
49861 check_3:
49862 
49863   if (argc == 3) {
49864     return _wrap_remote_open_writable__SWIG_5(self, argc, argv);
49865   }
49866   if (argc == 4) {
49867     int _v = 0;
49868     {
49869       {
49870         int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
49871         _v = SWIG_CheckState(res);
49872       }
49873     }
49874     if (!_v) goto check_5;
49875     {
49876       {
49877         int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL);
49878         _v = SWIG_CheckState(res);
49879       }
49880     }
49881     if (!_v) goto check_5;
49882     return _wrap_remote_open_writable__SWIG_1(self, argc, argv);
49883   }
49884 check_5:
49885 
49886   if (argc == 4) {
49887     return _wrap_remote_open_writable__SWIG_4(self, argc, argv);
49888   }
49889   if (argc == 5) {
49890     return _wrap_remote_open_writable__SWIG_0(self, argc, argv);
49891   }
49892 
49893 fail:
49894   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'remote_open_writable'.\n"
49895     "  Possible C/C++ prototypes are:\n"
49896     "    Xapian::Remote::open_writable(std::string const &,unsigned int,useconds_t,useconds_t,int)\n"
49897     "    Xapian::Remote::open_writable(std::string const &,unsigned int,useconds_t,useconds_t)\n"
49898     "    Xapian::Remote::open_writable(std::string const &,unsigned int,useconds_t)\n"
49899     "    Xapian::Remote::open_writable(std::string const &,unsigned int)\n"
49900     "    Xapian::Remote::open_writable(std::string const &,std::string const &,useconds_t,int)\n"
49901     "    Xapian::Remote::open_writable(std::string const &,std::string const &,useconds_t)\n"
49902     "    Xapian::Remote::open_writable(std::string const &,std::string const &)\n");
49903   return 0;
49904 }
49905 
49906 
49907 static PyMethodDef SwigMethods[] = {
49908 	 { (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O, NULL},
49909 	 { (char *)"delete_SwigPyIterator", (PyCFunction)_wrap_delete_SwigPyIterator, METH_O, NULL},
49910 	 { (char *)"SwigPyIterator_value", (PyCFunction)_wrap_SwigPyIterator_value, METH_O, NULL},
49911 	 { (char *)"SwigPyIterator_incr", _wrap_SwigPyIterator_incr, METH_VARARGS, NULL},
49912 	 { (char *)"SwigPyIterator_decr", _wrap_SwigPyIterator_decr, METH_VARARGS, NULL},
49913 	 { (char *)"SwigPyIterator_distance", _wrap_SwigPyIterator_distance, METH_VARARGS, NULL},
49914 	 { (char *)"SwigPyIterator_equal", _wrap_SwigPyIterator_equal, METH_VARARGS, NULL},
49915 	 { (char *)"SwigPyIterator_copy", (PyCFunction)_wrap_SwigPyIterator_copy, METH_O, NULL},
49916 	 { (char *)"SwigPyIterator_next", (PyCFunction)_wrap_SwigPyIterator_next, METH_O, NULL},
49917 	 { (char *)"SwigPyIterator___next__", (PyCFunction)_wrap_SwigPyIterator___next__, METH_O, NULL},
49918 	 { (char *)"SwigPyIterator_previous", (PyCFunction)_wrap_SwigPyIterator_previous, METH_O, NULL},
49919 	 { (char *)"SwigPyIterator_advance", _wrap_SwigPyIterator_advance, METH_VARARGS, NULL},
49920 	 { (char *)"SwigPyIterator___eq__", _wrap_SwigPyIterator___eq__, METH_VARARGS, NULL},
49921 	 { (char *)"SwigPyIterator___ne__", _wrap_SwigPyIterator___ne__, METH_VARARGS, NULL},
49922 	 { (char *)"SwigPyIterator___iadd__", _wrap_SwigPyIterator___iadd__, METH_VARARGS, NULL},
49923 	 { (char *)"SwigPyIterator___isub__", _wrap_SwigPyIterator___isub__, METH_VARARGS, NULL},
49924 	 { (char *)"SwigPyIterator___add__", _wrap_SwigPyIterator___add__, METH_VARARGS, NULL},
49925 	 { (char *)"SwigPyIterator___sub__", _wrap_SwigPyIterator___sub__, METH_VARARGS, NULL},
49926 	 { (char *)"SwigPyIterator_swigregister", SwigPyIterator_swigregister, METH_VARARGS, NULL},
49927 	 { (char *)"Error_get_type", (PyCFunction)_wrap_Error_get_type, METH_O, (char *)"\n"
49928 		"\n"
49929 		"\n"
49930 		"The type of this error (e.g. \"DocNotFoundError\".)\n"
49931 		"\n"
49932 		"const char* Xapian::Error::get_type() const \n"
49933 		""},
49934 	 { (char *)"Error_get_msg", (PyCFunction)_wrap_Error_get_msg, METH_O, (char *)"\n"
49935 		"\n"
49936 		"\n"
49937 		"Message giving details of the error, intended for human consumption.\n"
49938 		"\n"
49939 		"const std::string& Xapian::Error::get_msg() const \n"
49940 		""},
49941 	 { (char *)"Error_get_context", (PyCFunction)_wrap_Error_get_context, METH_O, (char *)"\n"
49942 		"\n"
49943 		"\n"
49944 		"Optional context information.\n"
49945 		"\n"
49946 		"const std::string& Xapian::Error::get_context() const\n"
49947 		"\n"
49948 		"This context is intended for use by Xapian::ErrorHandler (for example\n"
49949 		"so it can know which remote server is unreliable and report the\n"
49950 		"problem and remove that server from those being searched). But it's\n"
49951 		"typically a plain-text string, and so also fit for human consumption.\n"
49952 		"\n"
49953 		""},
49954 	 { (char *)"Error_get_error_string", (PyCFunction)_wrap_Error_get_error_string, METH_O, (char *)"\n"
49955 		"\n"
49956 		"\n"
49957 		"Returns any system error string associated with this exception.\n"
49958 		"\n"
49959 		"const char* Xapian::Error::get_error_string() const\n"
49960 		"\n"
49961 		"The system error string may come from errno, h_errno (on UNIX), or\n"
49962 		"GetLastError() (on MS Windows). If there is no associated system error\n"
49963 		"string, NULL is returned. \n"
49964 		""},
49965 	 { (char *)"Error___str__", (PyCFunction)_wrap_Error___str__, METH_O, NULL},
49966 	 { (char *)"delete_Error", (PyCFunction)_wrap_delete_Error, METH_O, NULL},
49967 	 { (char *)"Error_swigregister", Error_swigregister, METH_VARARGS, NULL},
49968 	 { (char *)"delete_LogicError", (PyCFunction)_wrap_delete_LogicError, METH_O, NULL},
49969 	 { (char *)"LogicError_swigregister", LogicError_swigregister, METH_VARARGS, NULL},
49970 	 { (char *)"delete_RuntimeError", (PyCFunction)_wrap_delete_RuntimeError, METH_O, NULL},
49971 	 { (char *)"RuntimeError_swigregister", RuntimeError_swigregister, METH_VARARGS, NULL},
49972 	 { (char *)"new_AssertionError", _wrap_new_AssertionError, METH_VARARGS, (char *)"\n"
49973 		"\n"
49974 		"\n"
49975 		"Construct from message and errno value.\n"
49976 		"\n"
49977 		"Xapian::AssertionError::AssertionError(const std::string &msg_, int\n"
49978 		"errno_)\n"
49979 		"\n"
49980 		"Parameters:\n"
49981 		"-----------\n"
49982 		"\n"
49983 		"msg_:  Message giving details of the error, intended for human\n"
49984 		"consumption.\n"
49985 		"\n"
49986 		"errno_:  Optional errno value associated with this error. \n"
49987 		""},
49988 	 { (char *)"delete_AssertionError", (PyCFunction)_wrap_delete_AssertionError, METH_O, NULL},
49989 	 { (char *)"AssertionError_swigregister", AssertionError_swigregister, METH_VARARGS, NULL},
49990 	 { (char *)"AssertionError_swiginit", AssertionError_swiginit, METH_VARARGS, NULL},
49991 	 { (char *)"new_InvalidArgumentError", _wrap_new_InvalidArgumentError, METH_VARARGS, (char *)"\n"
49992 		"\n"
49993 		"\n"
49994 		"Construct from message and errno value.\n"
49995 		"\n"
49996 		"Xapian::InvalidArgumentError::InvalidArgumentError(const std::string\n"
49997 		"&msg_, int errno_)\n"
49998 		"\n"
49999 		"Parameters:\n"
50000 		"-----------\n"
50001 		"\n"
50002 		"msg_:  Message giving details of the error, intended for human\n"
50003 		"consumption.\n"
50004 		"\n"
50005 		"errno_:  Optional errno value associated with this error. \n"
50006 		""},
50007 	 { (char *)"delete_InvalidArgumentError", (PyCFunction)_wrap_delete_InvalidArgumentError, METH_O, NULL},
50008 	 { (char *)"InvalidArgumentError_swigregister", InvalidArgumentError_swigregister, METH_VARARGS, NULL},
50009 	 { (char *)"InvalidArgumentError_swiginit", InvalidArgumentError_swiginit, METH_VARARGS, NULL},
50010 	 { (char *)"new_InvalidOperationError", _wrap_new_InvalidOperationError, METH_VARARGS, (char *)"\n"
50011 		"\n"
50012 		"\n"
50013 		"Construct from message and errno value.\n"
50014 		"\n"
50015 		"Xapian::InvalidOperationError::InvalidOperationError(const std::string\n"
50016 		"&msg_, int errno_)\n"
50017 		"\n"
50018 		"Parameters:\n"
50019 		"-----------\n"
50020 		"\n"
50021 		"msg_:  Message giving details of the error, intended for human\n"
50022 		"consumption.\n"
50023 		"\n"
50024 		"errno_:  Optional errno value associated with this error. \n"
50025 		""},
50026 	 { (char *)"delete_InvalidOperationError", (PyCFunction)_wrap_delete_InvalidOperationError, METH_O, NULL},
50027 	 { (char *)"InvalidOperationError_swigregister", InvalidOperationError_swigregister, METH_VARARGS, NULL},
50028 	 { (char *)"InvalidOperationError_swiginit", InvalidOperationError_swiginit, METH_VARARGS, NULL},
50029 	 { (char *)"new_UnimplementedError", _wrap_new_UnimplementedError, METH_VARARGS, (char *)"\n"
50030 		"\n"
50031 		"\n"
50032 		"Construct from message and errno value.\n"
50033 		"\n"
50034 		"Xapian::UnimplementedError::UnimplementedError(const std::string\n"
50035 		"&msg_, int errno_)\n"
50036 		"\n"
50037 		"Parameters:\n"
50038 		"-----------\n"
50039 		"\n"
50040 		"msg_:  Message giving details of the error, intended for human\n"
50041 		"consumption.\n"
50042 		"\n"
50043 		"errno_:  Optional errno value associated with this error. \n"
50044 		""},
50045 	 { (char *)"delete_UnimplementedError", (PyCFunction)_wrap_delete_UnimplementedError, METH_O, NULL},
50046 	 { (char *)"UnimplementedError_swigregister", UnimplementedError_swigregister, METH_VARARGS, NULL},
50047 	 { (char *)"UnimplementedError_swiginit", UnimplementedError_swiginit, METH_VARARGS, NULL},
50048 	 { (char *)"new_DatabaseError", _wrap_new_DatabaseError, METH_VARARGS, (char *)"\n"
50049 		"\n"
50050 		"\n"
50051 		"Construct from message and errno value.\n"
50052 		"\n"
50053 		"Xapian::DatabaseError::DatabaseError(const std::string &msg_, int\n"
50054 		"errno_)\n"
50055 		"\n"
50056 		"Parameters:\n"
50057 		"-----------\n"
50058 		"\n"
50059 		"msg_:  Message giving details of the error, intended for human\n"
50060 		"consumption.\n"
50061 		"\n"
50062 		"errno_:  Optional errno value associated with this error. \n"
50063 		""},
50064 	 { (char *)"delete_DatabaseError", (PyCFunction)_wrap_delete_DatabaseError, METH_O, NULL},
50065 	 { (char *)"DatabaseError_swigregister", DatabaseError_swigregister, METH_VARARGS, NULL},
50066 	 { (char *)"DatabaseError_swiginit", DatabaseError_swiginit, METH_VARARGS, NULL},
50067 	 { (char *)"new_DatabaseCorruptError", _wrap_new_DatabaseCorruptError, METH_VARARGS, (char *)"\n"
50068 		"\n"
50069 		"\n"
50070 		"Construct from message and errno value.\n"
50071 		"\n"
50072 		"Xapian::DatabaseCorruptError::DatabaseCorruptError(const std::string\n"
50073 		"&msg_, int errno_)\n"
50074 		"\n"
50075 		"Parameters:\n"
50076 		"-----------\n"
50077 		"\n"
50078 		"msg_:  Message giving details of the error, intended for human\n"
50079 		"consumption.\n"
50080 		"\n"
50081 		"errno_:  Optional errno value associated with this error. \n"
50082 		""},
50083 	 { (char *)"delete_DatabaseCorruptError", (PyCFunction)_wrap_delete_DatabaseCorruptError, METH_O, NULL},
50084 	 { (char *)"DatabaseCorruptError_swigregister", DatabaseCorruptError_swigregister, METH_VARARGS, NULL},
50085 	 { (char *)"DatabaseCorruptError_swiginit", DatabaseCorruptError_swiginit, METH_VARARGS, NULL},
50086 	 { (char *)"new_DatabaseCreateError", _wrap_new_DatabaseCreateError, METH_VARARGS, (char *)"\n"
50087 		"\n"
50088 		"\n"
50089 		"Construct from message and errno value.\n"
50090 		"\n"
50091 		"Xapian::DatabaseCreateError::DatabaseCreateError(const std::string\n"
50092 		"&msg_, int errno_)\n"
50093 		"\n"
50094 		"Parameters:\n"
50095 		"-----------\n"
50096 		"\n"
50097 		"msg_:  Message giving details of the error, intended for human\n"
50098 		"consumption.\n"
50099 		"\n"
50100 		"errno_:  Optional errno value associated with this error. \n"
50101 		""},
50102 	 { (char *)"delete_DatabaseCreateError", (PyCFunction)_wrap_delete_DatabaseCreateError, METH_O, NULL},
50103 	 { (char *)"DatabaseCreateError_swigregister", DatabaseCreateError_swigregister, METH_VARARGS, NULL},
50104 	 { (char *)"DatabaseCreateError_swiginit", DatabaseCreateError_swiginit, METH_VARARGS, NULL},
50105 	 { (char *)"new_DatabaseLockError", _wrap_new_DatabaseLockError, METH_VARARGS, (char *)"\n"
50106 		"\n"
50107 		"\n"
50108 		"Construct from message and errno value.\n"
50109 		"\n"
50110 		"Xapian::DatabaseLockError::DatabaseLockError(const std::string &msg_,\n"
50111 		"int errno_)\n"
50112 		"\n"
50113 		"Parameters:\n"
50114 		"-----------\n"
50115 		"\n"
50116 		"msg_:  Message giving details of the error, intended for human\n"
50117 		"consumption.\n"
50118 		"\n"
50119 		"errno_:  Optional errno value associated with this error. \n"
50120 		""},
50121 	 { (char *)"delete_DatabaseLockError", (PyCFunction)_wrap_delete_DatabaseLockError, METH_O, NULL},
50122 	 { (char *)"DatabaseLockError_swigregister", DatabaseLockError_swigregister, METH_VARARGS, NULL},
50123 	 { (char *)"DatabaseLockError_swiginit", DatabaseLockError_swiginit, METH_VARARGS, NULL},
50124 	 { (char *)"new_DatabaseModifiedError", _wrap_new_DatabaseModifiedError, METH_VARARGS, (char *)"\n"
50125 		"\n"
50126 		"\n"
50127 		"Construct from message and errno value.\n"
50128 		"\n"
50129 		"Xapian::DatabaseModifiedError::DatabaseModifiedError(const std::string\n"
50130 		"&msg_, int errno_)\n"
50131 		"\n"
50132 		"Parameters:\n"
50133 		"-----------\n"
50134 		"\n"
50135 		"msg_:  Message giving details of the error, intended for human\n"
50136 		"consumption.\n"
50137 		"\n"
50138 		"errno_:  Optional errno value associated with this error. \n"
50139 		""},
50140 	 { (char *)"delete_DatabaseModifiedError", (PyCFunction)_wrap_delete_DatabaseModifiedError, METH_O, NULL},
50141 	 { (char *)"DatabaseModifiedError_swigregister", DatabaseModifiedError_swigregister, METH_VARARGS, NULL},
50142 	 { (char *)"DatabaseModifiedError_swiginit", DatabaseModifiedError_swiginit, METH_VARARGS, NULL},
50143 	 { (char *)"new_DatabaseOpeningError", _wrap_new_DatabaseOpeningError, METH_VARARGS, (char *)"\n"
50144 		"\n"
50145 		"\n"
50146 		"Construct from message and errno value.\n"
50147 		"\n"
50148 		"Xapian::DatabaseOpeningError::DatabaseOpeningError(const std::string\n"
50149 		"&msg_, int errno_)\n"
50150 		"\n"
50151 		"Parameters:\n"
50152 		"-----------\n"
50153 		"\n"
50154 		"msg_:  Message giving details of the error, intended for human\n"
50155 		"consumption.\n"
50156 		"\n"
50157 		"errno_:  Optional errno value associated with this error. \n"
50158 		""},
50159 	 { (char *)"delete_DatabaseOpeningError", (PyCFunction)_wrap_delete_DatabaseOpeningError, METH_O, NULL},
50160 	 { (char *)"DatabaseOpeningError_swigregister", DatabaseOpeningError_swigregister, METH_VARARGS, NULL},
50161 	 { (char *)"DatabaseOpeningError_swiginit", DatabaseOpeningError_swiginit, METH_VARARGS, NULL},
50162 	 { (char *)"new_DatabaseVersionError", _wrap_new_DatabaseVersionError, METH_VARARGS, (char *)"\n"
50163 		"\n"
50164 		"\n"
50165 		"Construct from message and errno value.\n"
50166 		"\n"
50167 		"Xapian::DatabaseVersionError::DatabaseVersionError(const std::string\n"
50168 		"&msg_, int errno_)\n"
50169 		"\n"
50170 		"Parameters:\n"
50171 		"-----------\n"
50172 		"\n"
50173 		"msg_:  Message giving details of the error, intended for human\n"
50174 		"consumption.\n"
50175 		"\n"
50176 		"errno_:  Optional errno value associated with this error. \n"
50177 		""},
50178 	 { (char *)"delete_DatabaseVersionError", (PyCFunction)_wrap_delete_DatabaseVersionError, METH_O, NULL},
50179 	 { (char *)"DatabaseVersionError_swigregister", DatabaseVersionError_swigregister, METH_VARARGS, NULL},
50180 	 { (char *)"DatabaseVersionError_swiginit", DatabaseVersionError_swiginit, METH_VARARGS, NULL},
50181 	 { (char *)"new_DocNotFoundError", _wrap_new_DocNotFoundError, METH_VARARGS, (char *)"\n"
50182 		"\n"
50183 		"\n"
50184 		"Construct from message and errno value.\n"
50185 		"\n"
50186 		"Xapian::DocNotFoundError::DocNotFoundError(const std::string &msg_,\n"
50187 		"int errno_)\n"
50188 		"\n"
50189 		"Parameters:\n"
50190 		"-----------\n"
50191 		"\n"
50192 		"msg_:  Message giving details of the error, intended for human\n"
50193 		"consumption.\n"
50194 		"\n"
50195 		"errno_:  Optional errno value associated with this error. \n"
50196 		""},
50197 	 { (char *)"delete_DocNotFoundError", (PyCFunction)_wrap_delete_DocNotFoundError, METH_O, NULL},
50198 	 { (char *)"DocNotFoundError_swigregister", DocNotFoundError_swigregister, METH_VARARGS, NULL},
50199 	 { (char *)"DocNotFoundError_swiginit", DocNotFoundError_swiginit, METH_VARARGS, NULL},
50200 	 { (char *)"new_FeatureUnavailableError", _wrap_new_FeatureUnavailableError, METH_VARARGS, (char *)"\n"
50201 		"\n"
50202 		"\n"
50203 		"Construct from message and errno value.\n"
50204 		"\n"
50205 		"Xapian::FeatureUnavailableError::FeatureUnavailableError(const\n"
50206 		"std::string &msg_, int errno_)\n"
50207 		"\n"
50208 		"Parameters:\n"
50209 		"-----------\n"
50210 		"\n"
50211 		"msg_:  Message giving details of the error, intended for human\n"
50212 		"consumption.\n"
50213 		"\n"
50214 		"errno_:  Optional errno value associated with this error. \n"
50215 		""},
50216 	 { (char *)"delete_FeatureUnavailableError", (PyCFunction)_wrap_delete_FeatureUnavailableError, METH_O, NULL},
50217 	 { (char *)"FeatureUnavailableError_swigregister", FeatureUnavailableError_swigregister, METH_VARARGS, NULL},
50218 	 { (char *)"FeatureUnavailableError_swiginit", FeatureUnavailableError_swiginit, METH_VARARGS, NULL},
50219 	 { (char *)"new_InternalError", _wrap_new_InternalError, METH_VARARGS, (char *)"\n"
50220 		"\n"
50221 		"\n"
50222 		"Construct from message and errno value.\n"
50223 		"\n"
50224 		"Xapian::InternalError::InternalError(const std::string &msg_, int\n"
50225 		"errno_)\n"
50226 		"\n"
50227 		"Parameters:\n"
50228 		"-----------\n"
50229 		"\n"
50230 		"msg_:  Message giving details of the error, intended for human\n"
50231 		"consumption.\n"
50232 		"\n"
50233 		"errno_:  Optional errno value associated with this error. \n"
50234 		""},
50235 	 { (char *)"delete_InternalError", (PyCFunction)_wrap_delete_InternalError, METH_O, NULL},
50236 	 { (char *)"InternalError_swigregister", InternalError_swigregister, METH_VARARGS, NULL},
50237 	 { (char *)"InternalError_swiginit", InternalError_swiginit, METH_VARARGS, NULL},
50238 	 { (char *)"new_NetworkError", _wrap_new_NetworkError, METH_VARARGS, (char *)"\n"
50239 		"\n"
50240 		"\n"
50241 		"Construct from message and errno value.\n"
50242 		"\n"
50243 		"Xapian::NetworkError::NetworkError(const std::string &msg_, int\n"
50244 		"errno_)\n"
50245 		"\n"
50246 		"Parameters:\n"
50247 		"-----------\n"
50248 		"\n"
50249 		"msg_:  Message giving details of the error, intended for human\n"
50250 		"consumption.\n"
50251 		"\n"
50252 		"errno_:  Optional errno value associated with this error. \n"
50253 		""},
50254 	 { (char *)"delete_NetworkError", (PyCFunction)_wrap_delete_NetworkError, METH_O, NULL},
50255 	 { (char *)"NetworkError_swigregister", NetworkError_swigregister, METH_VARARGS, NULL},
50256 	 { (char *)"NetworkError_swiginit", NetworkError_swiginit, METH_VARARGS, NULL},
50257 	 { (char *)"new_NetworkTimeoutError", _wrap_new_NetworkTimeoutError, METH_VARARGS, (char *)"\n"
50258 		"\n"
50259 		"\n"
50260 		"Construct from message and errno value.\n"
50261 		"\n"
50262 		"Xapian::NetworkTimeoutError::NetworkTimeoutError(const std::string\n"
50263 		"&msg_, int errno_)\n"
50264 		"\n"
50265 		"Parameters:\n"
50266 		"-----------\n"
50267 		"\n"
50268 		"msg_:  Message giving details of the error, intended for human\n"
50269 		"consumption.\n"
50270 		"\n"
50271 		"errno_:  Optional errno value associated with this error. \n"
50272 		""},
50273 	 { (char *)"delete_NetworkTimeoutError", (PyCFunction)_wrap_delete_NetworkTimeoutError, METH_O, NULL},
50274 	 { (char *)"NetworkTimeoutError_swigregister", NetworkTimeoutError_swigregister, METH_VARARGS, NULL},
50275 	 { (char *)"NetworkTimeoutError_swiginit", NetworkTimeoutError_swiginit, METH_VARARGS, NULL},
50276 	 { (char *)"new_QueryParserError", _wrap_new_QueryParserError, METH_VARARGS, (char *)"\n"
50277 		"\n"
50278 		"\n"
50279 		"Construct from message and errno value.\n"
50280 		"\n"
50281 		"Xapian::QueryParserError::QueryParserError(const std::string &msg_,\n"
50282 		"int errno_)\n"
50283 		"\n"
50284 		"Parameters:\n"
50285 		"-----------\n"
50286 		"\n"
50287 		"msg_:  Message giving details of the error, intended for human\n"
50288 		"consumption.\n"
50289 		"\n"
50290 		"errno_:  Optional errno value associated with this error. \n"
50291 		""},
50292 	 { (char *)"delete_QueryParserError", (PyCFunction)_wrap_delete_QueryParserError, METH_O, NULL},
50293 	 { (char *)"QueryParserError_swigregister", QueryParserError_swigregister, METH_VARARGS, NULL},
50294 	 { (char *)"QueryParserError_swiginit", QueryParserError_swiginit, METH_VARARGS, NULL},
50295 	 { (char *)"new_SerialisationError", _wrap_new_SerialisationError, METH_VARARGS, (char *)"\n"
50296 		"\n"
50297 		"\n"
50298 		"Construct from message and errno value.\n"
50299 		"\n"
50300 		"Xapian::SerialisationError::SerialisationError(const std::string\n"
50301 		"&msg_, int errno_)\n"
50302 		"\n"
50303 		"Parameters:\n"
50304 		"-----------\n"
50305 		"\n"
50306 		"msg_:  Message giving details of the error, intended for human\n"
50307 		"consumption.\n"
50308 		"\n"
50309 		"errno_:  Optional errno value associated with this error. \n"
50310 		""},
50311 	 { (char *)"delete_SerialisationError", (PyCFunction)_wrap_delete_SerialisationError, METH_O, NULL},
50312 	 { (char *)"SerialisationError_swigregister", SerialisationError_swigregister, METH_VARARGS, NULL},
50313 	 { (char *)"SerialisationError_swiginit", SerialisationError_swiginit, METH_VARARGS, NULL},
50314 	 { (char *)"new_RangeError", _wrap_new_RangeError, METH_VARARGS, (char *)"\n"
50315 		"\n"
50316 		"\n"
50317 		"Construct from message and errno value.\n"
50318 		"\n"
50319 		"Xapian::RangeError::RangeError(const std::string &msg_, int errno_)\n"
50320 		"\n"
50321 		"Parameters:\n"
50322 		"-----------\n"
50323 		"\n"
50324 		"msg_:  Message giving details of the error, intended for human\n"
50325 		"consumption.\n"
50326 		"\n"
50327 		"errno_:  Optional errno value associated with this error. \n"
50328 		""},
50329 	 { (char *)"delete_RangeError", (PyCFunction)_wrap_delete_RangeError, METH_O, NULL},
50330 	 { (char *)"RangeError_swigregister", RangeError_swigregister, METH_VARARGS, NULL},
50331 	 { (char *)"RangeError_swiginit", RangeError_swiginit, METH_VARARGS, NULL},
50332 	 { (char *)"new_WildcardError", _wrap_new_WildcardError, METH_VARARGS, (char *)"\n"
50333 		"\n"
50334 		"\n"
50335 		"Construct from message and errno value.\n"
50336 		"\n"
50337 		"Xapian::WildcardError::WildcardError(const std::string &msg_, int\n"
50338 		"errno_)\n"
50339 		"\n"
50340 		"Parameters:\n"
50341 		"-----------\n"
50342 		"\n"
50343 		"msg_:  Message giving details of the error, intended for human\n"
50344 		"consumption.\n"
50345 		"\n"
50346 		"errno_:  Optional errno value associated with this error. \n"
50347 		""},
50348 	 { (char *)"delete_WildcardError", (PyCFunction)_wrap_delete_WildcardError, METH_O, NULL},
50349 	 { (char *)"WildcardError_swigregister", WildcardError_swigregister, METH_VARARGS, NULL},
50350 	 { (char *)"WildcardError_swiginit", WildcardError_swiginit, METH_VARARGS, NULL},
50351 	 { (char *)"new_DatabaseNotFoundError", _wrap_new_DatabaseNotFoundError, METH_VARARGS, (char *)"\n"
50352 		"\n"
50353 		"\n"
50354 		"Construct from message and errno value.\n"
50355 		"\n"
50356 		"Xapian::DatabaseNotFoundError::DatabaseNotFoundError(const std::string\n"
50357 		"&msg_, int errno_)\n"
50358 		"\n"
50359 		"Parameters:\n"
50360 		"-----------\n"
50361 		"\n"
50362 		"msg_:  Message giving details of the error, intended for human\n"
50363 		"consumption.\n"
50364 		"\n"
50365 		"errno_:  Optional errno value associated with this error. \n"
50366 		""},
50367 	 { (char *)"delete_DatabaseNotFoundError", (PyCFunction)_wrap_delete_DatabaseNotFoundError, METH_O, NULL},
50368 	 { (char *)"DatabaseNotFoundError_swigregister", DatabaseNotFoundError_swigregister, METH_VARARGS, NULL},
50369 	 { (char *)"DatabaseNotFoundError_swiginit", DatabaseNotFoundError_swiginit, METH_VARARGS, NULL},
50370 	 { (char *)"new_DatabaseClosedError", _wrap_new_DatabaseClosedError, METH_VARARGS, (char *)"\n"
50371 		"\n"
50372 		"\n"
50373 		"Construct from message and errno value.\n"
50374 		"\n"
50375 		"Xapian::DatabaseClosedError::DatabaseClosedError(const std::string\n"
50376 		"&msg_, int errno_)\n"
50377 		"\n"
50378 		"Parameters:\n"
50379 		"-----------\n"
50380 		"\n"
50381 		"msg_:  Message giving details of the error, intended for human\n"
50382 		"consumption.\n"
50383 		"\n"
50384 		"errno_:  Optional errno value associated with this error. \n"
50385 		""},
50386 	 { (char *)"delete_DatabaseClosedError", (PyCFunction)_wrap_delete_DatabaseClosedError, METH_O, NULL},
50387 	 { (char *)"DatabaseClosedError_swigregister", DatabaseClosedError_swigregister, METH_VARARGS, NULL},
50388 	 { (char *)"DatabaseClosedError_swiginit", DatabaseClosedError_swiginit, METH_VARARGS, NULL},
50389 	 { (char *)"version_string", (PyCFunction)_wrap_version_string, METH_NOARGS, NULL},
50390 	 { (char *)"major_version", (PyCFunction)_wrap_major_version, METH_NOARGS, NULL},
50391 	 { (char *)"minor_version", (PyCFunction)_wrap_minor_version, METH_NOARGS, NULL},
50392 	 { (char *)"revision", (PyCFunction)_wrap_revision, METH_NOARGS, NULL},
50393 	 { (char *)"new__PositionIterator", (PyCFunction)_wrap_new__PositionIterator, METH_NOARGS, (char *)"\n"
50394 		"\n"
50395 		"\n"
50396 		"Default constructor.\n"
50397 		"\n"
50398 		"Xapian::PositionIterator::PositionIterator()\n"
50399 		"\n"
50400 		"Creates an uninitialised iterator, which can't be used before being\n"
50401 		"assigned to, but is sometimes syntactically convenient. \n"
50402 		""},
50403 	 { (char *)"delete__PositionIterator", (PyCFunction)_wrap_delete__PositionIterator, METH_O, (char *)"\n"
50404 		"\n"
50405 		"\n"
50406 		"Destructor.\n"
50407 		"\n"
50408 		"Xapian::PositionIterator::~PositionIterator() \n"
50409 		""},
50410 	 { (char *)"_PositionIterator_skip_to", _wrap__PositionIterator_skip_to, METH_VARARGS, (char *)"\n"
50411 		"\n"
50412 		"\n"
50413 		"Advance the iterator to term position termpos.\n"
50414 		"\n"
50415 		"void Xapian::PositionIterator::skip_to(Xapian::termpos termpos)\n"
50416 		"\n"
50417 		"Parameters:\n"
50418 		"-----------\n"
50419 		"\n"
50420 		"termpos:  The position to advance to. If this position isn't in the\n"
50421 		"stream being iterated, then the iterator is moved to the next term\n"
50422 		"position after it which is. \n"
50423 		""},
50424 	 { (char *)"_PositionIterator___str__", (PyCFunction)_wrap__PositionIterator___str__, METH_O, (char *)"\n"
50425 		"\n"
50426 		"\n"
50427 		"Return a string describing this object.\n"
50428 		"\n"
50429 		"std::string Xapian::PositionIterator::get_description() const \n"
50430 		""},
50431 	 { (char *)"_PositionIterator___eq__", _wrap__PositionIterator___eq__, METH_VARARGS, NULL},
50432 	 { (char *)"_PositionIterator___ne__", _wrap__PositionIterator___ne__, METH_VARARGS, NULL},
50433 	 { (char *)"_PositionIterator_equals", _wrap__PositionIterator_equals, METH_VARARGS, NULL},
50434 	 { (char *)"_PositionIterator_get_termpos", (PyCFunction)_wrap__PositionIterator_get_termpos, METH_O, NULL},
50435 	 { (char *)"_PositionIterator_next", (PyCFunction)_wrap__PositionIterator_next, METH_O, NULL},
50436 	 { (char *)"_PositionIterator_swigregister", _PositionIterator_swigregister, METH_VARARGS, NULL},
50437 	 { (char *)"_PositionIterator_swiginit", _PositionIterator_swiginit, METH_VARARGS, NULL},
50438 	 { (char *)"new__PostingIterator", (PyCFunction)_wrap_new__PostingIterator, METH_NOARGS, (char *)"\n"
50439 		"\n"
50440 		"\n"
50441 		"Default constructor.\n"
50442 		"\n"
50443 		"Xapian::PostingIterator::PostingIterator()\n"
50444 		"\n"
50445 		"Creates an uninitialised iterator, which can't be used before being\n"
50446 		"assigned to, but is sometimes syntactically convenient. \n"
50447 		""},
50448 	 { (char *)"delete__PostingIterator", (PyCFunction)_wrap_delete__PostingIterator, METH_O, (char *)"\n"
50449 		"\n"
50450 		"\n"
50451 		"Destructor.\n"
50452 		"\n"
50453 		"Xapian::PostingIterator::~PostingIterator() \n"
50454 		""},
50455 	 { (char *)"_PostingIterator_get_wdf", (PyCFunction)_wrap__PostingIterator_get_wdf, METH_O, (char *)"\n"
50456 		"\n"
50457 		"\n"
50458 		"Return the wdf for the document at the current position.\n"
50459 		"\n"
50460 		"Xapian::termcount Xapian::PostingIterator::get_wdf() const \n"
50461 		""},
50462 	 { (char *)"_PostingIterator_get_doclength", (PyCFunction)_wrap__PostingIterator_get_doclength, METH_O, (char *)"\n"
50463 		"\n"
50464 		"\n"
50465 		"Return the length of the document at the current position.\n"
50466 		"\n"
50467 		"Xapian::termcount Xapian::PostingIterator::get_doclength() const \n"
50468 		""},
50469 	 { (char *)"_PostingIterator_get_unique_terms", (PyCFunction)_wrap__PostingIterator_get_unique_terms, METH_O, (char *)"\n"
50470 		"\n"
50471 		"\n"
50472 		"Return the number of unique terms in the current document.\n"
50473 		"\n"
50474 		"Xapian::termcount Xapian::PostingIterator::get_unique_terms() const \n"
50475 		""},
50476 	 { (char *)"_PostingIterator__positionlist_begin", (PyCFunction)_wrap__PostingIterator__positionlist_begin, METH_O, (char *)"\n"
50477 		"\n"
50478 		"\n"
50479 		"Return a PositionIterator for the current document.\n"
50480 		"\n"
50481 		"PositionIterator Xapian::PostingIterator::positionlist_begin() const\n"
50482 		"\n"
50483 		""},
50484 	 { (char *)"_PostingIterator__positionlist_end", (PyCFunction)_wrap__PostingIterator__positionlist_end, METH_O, (char *)"\n"
50485 		"\n"
50486 		"\n"
50487 		"Return an end PositionIterator for the current document.\n"
50488 		"\n"
50489 		"PositionIterator Xapian::PostingIterator::positionlist_end() const \n"
50490 		""},
50491 	 { (char *)"_PostingIterator_skip_to", _wrap__PostingIterator_skip_to, METH_VARARGS, (char *)"\n"
50492 		"\n"
50493 		"\n"
50494 		"Advance the iterator to document did.\n"
50495 		"\n"
50496 		"void Xapian::PostingIterator::skip_to(Xapian::docid did)\n"
50497 		"\n"
50498 		"Parameters:\n"
50499 		"-----------\n"
50500 		"\n"
50501 		"did:  The document id to advance to. If this document id isn't in the\n"
50502 		"stream being iterated, then the iterator is moved to the next document\n"
50503 		"id after it which is. \n"
50504 		""},
50505 	 { (char *)"_PostingIterator___str__", (PyCFunction)_wrap__PostingIterator___str__, METH_O, (char *)"\n"
50506 		"\n"
50507 		"\n"
50508 		"Return a string describing this object.\n"
50509 		"\n"
50510 		"std::string Xapian::PostingIterator::get_description() const \n"
50511 		""},
50512 	 { (char *)"_PostingIterator___eq__", _wrap__PostingIterator___eq__, METH_VARARGS, NULL},
50513 	 { (char *)"_PostingIterator___ne__", _wrap__PostingIterator___ne__, METH_VARARGS, NULL},
50514 	 { (char *)"_PostingIterator_equals", _wrap__PostingIterator_equals, METH_VARARGS, NULL},
50515 	 { (char *)"_PostingIterator_get_docid", (PyCFunction)_wrap__PostingIterator_get_docid, METH_O, NULL},
50516 	 { (char *)"_PostingIterator_next", (PyCFunction)_wrap__PostingIterator_next, METH_O, NULL},
50517 	 { (char *)"_PostingIterator_swigregister", _PostingIterator_swigregister, METH_VARARGS, NULL},
50518 	 { (char *)"_PostingIterator_swiginit", _PostingIterator_swiginit, METH_VARARGS, NULL},
50519 	 { (char *)"new__TermIterator", (PyCFunction)_wrap_new__TermIterator, METH_NOARGS, (char *)"\n"
50520 		"\n"
50521 		"\n"
50522 		"Default constructor.\n"
50523 		"\n"
50524 		"Xapian::TermIterator::TermIterator()\n"
50525 		"\n"
50526 		"Creates an uninitialised iterator, which can't be used before being\n"
50527 		"assigned to, but is sometimes syntactically convenient. \n"
50528 		""},
50529 	 { (char *)"delete__TermIterator", (PyCFunction)_wrap_delete__TermIterator, METH_O, (char *)"\n"
50530 		"\n"
50531 		"\n"
50532 		"Destructor.\n"
50533 		"\n"
50534 		"Xapian::TermIterator::~TermIterator() \n"
50535 		""},
50536 	 { (char *)"_TermIterator_get_wdf", (PyCFunction)_wrap__TermIterator_get_wdf, METH_O, (char *)"\n"
50537 		"\n"
50538 		"\n"
50539 		"Return the wdf for the term at the current position.\n"
50540 		"\n"
50541 		"Xapian::termcount Xapian::TermIterator::get_wdf() const \n"
50542 		""},
50543 	 { (char *)"_TermIterator_get_termfreq", (PyCFunction)_wrap__TermIterator_get_termfreq, METH_O, (char *)"\n"
50544 		"\n"
50545 		"\n"
50546 		"Return the term frequency for the term at the current position.\n"
50547 		"\n"
50548 		"Xapian::doccount Xapian::TermIterator::get_termfreq() const \n"
50549 		""},
50550 	 { (char *)"_TermIterator_positionlist_count", (PyCFunction)_wrap__TermIterator_positionlist_count, METH_O, (char *)"\n"
50551 		"\n"
50552 		"\n"
50553 		"Return the length of the position list for the current position.\n"
50554 		"\n"
50555 		"Xapian::termcount Xapian::TermIterator::positionlist_count() const \n"
50556 		""},
50557 	 { (char *)"_TermIterator__positionlist_begin", (PyCFunction)_wrap__TermIterator__positionlist_begin, METH_O, (char *)"\n"
50558 		"\n"
50559 		"\n"
50560 		"Return a PositionIterator for the current term.\n"
50561 		"\n"
50562 		"PositionIterator Xapian::TermIterator::positionlist_begin() const \n"
50563 		""},
50564 	 { (char *)"_TermIterator__positionlist_end", (PyCFunction)_wrap__TermIterator__positionlist_end, METH_O, (char *)"\n"
50565 		"\n"
50566 		"\n"
50567 		"Return an end PositionIterator for the current term.\n"
50568 		"\n"
50569 		"PositionIterator Xapian::TermIterator::positionlist_end() const \n"
50570 		""},
50571 	 { (char *)"_TermIterator_skip_to", _wrap__TermIterator_skip_to, METH_VARARGS, (char *)"\n"
50572 		"\n"
50573 		"\n"
50574 		"Advance the iterator to term term.\n"
50575 		"\n"
50576 		"void Xapian::TermIterator::skip_to(const std::string &term)\n"
50577 		"\n"
50578 		"If the iteration is over an unsorted list of terms, then this method\n"
50579 		"will throw Xapian::InvalidOperationError.\n"
50580 		"\n"
50581 		"Parameters:\n"
50582 		"-----------\n"
50583 		"\n"
50584 		"term:  The term to advance to. If this term isn't in the stream being\n"
50585 		"iterated, then the iterator is moved to the next term after it which\n"
50586 		"is. \n"
50587 		""},
50588 	 { (char *)"_TermIterator___str__", (PyCFunction)_wrap__TermIterator___str__, METH_O, (char *)"\n"
50589 		"\n"
50590 		"\n"
50591 		"Return a string describing this object.\n"
50592 		"\n"
50593 		"std::string Xapian::TermIterator::get_description() const \n"
50594 		""},
50595 	 { (char *)"_TermIterator___eq__", _wrap__TermIterator___eq__, METH_VARARGS, NULL},
50596 	 { (char *)"_TermIterator___ne__", _wrap__TermIterator___ne__, METH_VARARGS, NULL},
50597 	 { (char *)"_TermIterator_equals", _wrap__TermIterator_equals, METH_VARARGS, NULL},
50598 	 { (char *)"_TermIterator_get_term", (PyCFunction)_wrap__TermIterator_get_term, METH_O, NULL},
50599 	 { (char *)"_TermIterator_next", (PyCFunction)_wrap__TermIterator_next, METH_O, NULL},
50600 	 { (char *)"_TermIterator_swigregister", _TermIterator_swigregister, METH_VARARGS, NULL},
50601 	 { (char *)"_TermIterator_swiginit", _TermIterator_swiginit, METH_VARARGS, NULL},
50602 	 { (char *)"new__ValueIterator", (PyCFunction)_wrap_new__ValueIterator, METH_NOARGS, (char *)"\n"
50603 		"\n"
50604 		"\n"
50605 		"Default constructor.\n"
50606 		"\n"
50607 		"Xapian::ValueIterator::ValueIterator()\n"
50608 		"\n"
50609 		"Creates an uninitialised iterator, which can't be used before being\n"
50610 		"assigned to, but is sometimes syntactically convenient. \n"
50611 		""},
50612 	 { (char *)"delete__ValueIterator", (PyCFunction)_wrap_delete__ValueIterator, METH_O, (char *)"\n"
50613 		"\n"
50614 		"\n"
50615 		"Destructor.\n"
50616 		"\n"
50617 		"Xapian::ValueIterator::~ValueIterator() \n"
50618 		""},
50619 	 { (char *)"_ValueIterator_get_docid", (PyCFunction)_wrap__ValueIterator_get_docid, METH_O, (char *)"\n"
50620 		"\n"
50621 		"\n"
50622 		"Return the docid at the current position.\n"
50623 		"\n"
50624 		"Xapian::docid Xapian::ValueIterator::get_docid() const\n"
50625 		"\n"
50626 		"If we're iterating over values of a document, this method will throw\n"
50627 		"Xapian::InvalidOperationError. \n"
50628 		""},
50629 	 { (char *)"_ValueIterator_get_valueno", (PyCFunction)_wrap__ValueIterator_get_valueno, METH_O, (char *)"\n"
50630 		"\n"
50631 		"\n"
50632 		"Return the value slot number for the current position.\n"
50633 		"\n"
50634 		"Xapian::valueno Xapian::ValueIterator::get_valueno() const\n"
50635 		"\n"
50636 		"If the iterator is over all values in a slot, this returns that slot's\n"
50637 		"number. If the iterator is over the values in a particular document,\n"
50638 		"it returns the number of each slot in turn. \n"
50639 		""},
50640 	 { (char *)"_ValueIterator_skip_to", _wrap__ValueIterator_skip_to, METH_VARARGS, (char *)"\n"
50641 		"\n"
50642 		"\n"
50643 		"Advance the iterator to document id or value slot docid_or_slot.\n"
50644 		"\n"
50645 		"void Xapian::ValueIterator::skip_to(Xapian::docid docid_or_slot)\n"
50646 		"\n"
50647 		"If this iterator is over values in a document, then this method\n"
50648 		"advances the iterator to value slot docid_or_slot, or the first slot\n"
50649 		"after it if there is no value in slot slot.\n"
50650 		"\n"
50651 		"If this iterator is over values in a particular slot, then this method\n"
50652 		"advances the iterator to document id docid_or_slot, or the first\n"
50653 		"document id after it if there is no value in the slot we're iterating\n"
50654 		"over for document docid_or_slot.\n"
50655 		"\n"
50656 		"Note: The \"two-faced\" nature of this method is due to how C++\n"
50657 		"overloading works. Xapian::docid and Xapian::valueno are both typedefs\n"
50658 		"for the same unsigned integer type, so overloading can't distinguish\n"
50659 		"them.\n"
50660 		"\n"
50661 		"Parameters:\n"
50662 		"-----------\n"
50663 		"\n"
50664 		"docid_or_slot:  The docid/slot to advance to. \n"
50665 		""},
50666 	 { (char *)"_ValueIterator_check", _wrap__ValueIterator_check, METH_VARARGS, (char *)"\n"
50667 		"\n"
50668 		"\n"
50669 		"Check if the specified docid occurs.\n"
50670 		"\n"
50671 		"bool Xapian::ValueIterator::check(Xapian::docid docid)\n"
50672 		"\n"
50673 		"The caller is required to ensure that the specified document id did\n"
50674 		"actually exists in the database.\n"
50675 		"\n"
50676 		"This method acts like skip_to() if that can be done at little extra\n"
50677 		"cost, in which case it then returns true. This is how chert and glass\n"
50678 		"databases behave because they store values in streams which allow for\n"
50679 		"an efficient implementation of skip_to().\n"
50680 		"\n"
50681 		"Otherwise it simply checks if a particular docid is present. If it is,\n"
50682 		"it returns true. If it isn't, it returns false, and leaves the\n"
50683 		"position unspecified (and hence the result of calling methods which\n"
50684 		"depend on the current position, such as get_docid(), are also\n"
50685 		"unspecified). In this state, next() will advance to the first matching\n"
50686 		"position after document did, and skip_to() will act as it would if the\n"
50687 		"position was the first matching position after document did.\n"
50688 		"\n"
50689 		"Currently the inmemory and remote backends behave in the latter way\n"
50690 		"because they don't support streamed values and so skip_to() must check\n"
50691 		"each document it skips over which is significantly slower.\n"
50692 		"\n"
50693 		"Parameters:\n"
50694 		"-----------\n"
50695 		"\n"
50696 		"docid:  The document id to check. \n"
50697 		""},
50698 	 { (char *)"_ValueIterator___str__", (PyCFunction)_wrap__ValueIterator___str__, METH_O, (char *)"\n"
50699 		"\n"
50700 		"\n"
50701 		"Return a string describing this object.\n"
50702 		"\n"
50703 		"std::string Xapian::ValueIterator::get_description() const \n"
50704 		""},
50705 	 { (char *)"_ValueIterator___eq__", _wrap__ValueIterator___eq__, METH_VARARGS, NULL},
50706 	 { (char *)"_ValueIterator___ne__", _wrap__ValueIterator___ne__, METH_VARARGS, NULL},
50707 	 { (char *)"_ValueIterator_equals", _wrap__ValueIterator_equals, METH_VARARGS, NULL},
50708 	 { (char *)"_ValueIterator_get_value", (PyCFunction)_wrap__ValueIterator_get_value, METH_O, NULL},
50709 	 { (char *)"_ValueIterator_next", (PyCFunction)_wrap__ValueIterator_next, METH_O, NULL},
50710 	 { (char *)"_ValueIterator_swigregister", _ValueIterator_swigregister, METH_VARARGS, NULL},
50711 	 { (char *)"_ValueIterator_swiginit", _ValueIterator_swiginit, METH_VARARGS, NULL},
50712 	 { (char *)"new_Document", (PyCFunction)_wrap_new_Document, METH_NOARGS, (char *)"\n"
50713 		"\n"
50714 		"\n"
50715 		"Make a new empty Document.\n"
50716 		"\n"
50717 		"Xapian::Document::Document() \n"
50718 		""},
50719 	 { (char *)"delete_Document", (PyCFunction)_wrap_delete_Document, METH_O, (char *)"\n"
50720 		"\n"
50721 		"\n"
50722 		"Destructor.\n"
50723 		"\n"
50724 		"Xapian::Document::~Document() \n"
50725 		""},
50726 	 { (char *)"Document_get_value", _wrap_Document_get_value, METH_VARARGS, (char *)"\n"
50727 		"\n"
50728 		"\n"
50729 		"Get value by number.\n"
50730 		"\n"
50731 		"std::string Xapian::Document::get_value(Xapian::valueno slot) const\n"
50732 		"\n"
50733 		"Returns an empty string if no value with the given number is present\n"
50734 		"in the document.\n"
50735 		"\n"
50736 		"Parameters:\n"
50737 		"-----------\n"
50738 		"\n"
50739 		"slot:  The number of the value. \n"
50740 		""},
50741 	 { (char *)"Document_add_value", _wrap_Document_add_value, METH_VARARGS, (char *)"\n"
50742 		"\n"
50743 		"\n"
50744 		"Add a new value.\n"
50745 		"\n"
50746 		"void Xapian::Document::add_value(Xapian::valueno slot, const\n"
50747 		"std::string &value)\n"
50748 		"\n"
50749 		"The new value will replace any existing value with the same number (or\n"
50750 		"if the new value is empty, it will remove any existing value with the\n"
50751 		"same number).\n"
50752 		"\n"
50753 		"Parameters:\n"
50754 		"-----------\n"
50755 		"\n"
50756 		"slot:  The value slot to add the value in.\n"
50757 		"\n"
50758 		"value:  The value to set. \n"
50759 		""},
50760 	 { (char *)"Document_remove_value", _wrap_Document_remove_value, METH_VARARGS, (char *)"\n"
50761 		"\n"
50762 		"\n"
50763 		"Remove any value with the given number.\n"
50764 		"\n"
50765 		"void Xapian::Document::remove_value(Xapian::valueno slot) \n"
50766 		""},
50767 	 { (char *)"Document_clear_values", (PyCFunction)_wrap_Document_clear_values, METH_O, (char *)"\n"
50768 		"\n"
50769 		"\n"
50770 		"Remove all values associated with the document.\n"
50771 		"\n"
50772 		"void Xapian::Document::clear_values() \n"
50773 		""},
50774 	 { (char *)"Document_get_data", (PyCFunction)_wrap_Document_get_data, METH_O, (char *)"\n"
50775 		"\n"
50776 		"\n"
50777 		"Get data stored in the document.\n"
50778 		"\n"
50779 		"std::string Xapian::Document::get_data() const\n"
50780 		"\n"
50781 		"This is potentially a relatively expensive operation, and shouldn't\n"
50782 		"normally be used during the match (e.g. in a PostingSource or match\n"
50783 		"decider functor. Put data for use by match deciders in a value\n"
50784 		"instead. \n"
50785 		""},
50786 	 { (char *)"Document_set_data", _wrap_Document_set_data, METH_VARARGS, (char *)"\n"
50787 		"\n"
50788 		"\n"
50789 		"Set data stored in the document.\n"
50790 		"\n"
50791 		"void Xapian::Document::set_data(const std::string &data)\n"
50792 		"\n"
50793 		"Xapian treats the data as an opaque blob. It may try to compress it,\n"
50794 		"but other than that it will just store it and return it when\n"
50795 		"requested.\n"
50796 		"\n"
50797 		"Parameters:\n"
50798 		"-----------\n"
50799 		"\n"
50800 		"data:  The data to store. \n"
50801 		""},
50802 	 { (char *)"Document_add_posting", _wrap_Document_add_posting, METH_VARARGS, (char *)"\n"
50803 		"\n"
50804 		"\n"
50805 		"Add an occurrence of a term at a particular position.\n"
50806 		"\n"
50807 		"void Xapian::Document::add_posting(const std::string &tname,\n"
50808 		"Xapian::termpos tpos, Xapian::termcount wdfinc=1)\n"
50809 		"\n"
50810 		"Multiple occurrences of the term at the same position are represented\n"
50811 		"only once in the positional information, but do increase the wdf.\n"
50812 		"\n"
50813 		"If the term is not already in the document, it will be added to it.\n"
50814 		"\n"
50815 		"Parameters:\n"
50816 		"-----------\n"
50817 		"\n"
50818 		"tname:  The name of the term.\n"
50819 		"\n"
50820 		"tpos:  The position of the term.\n"
50821 		"\n"
50822 		"wdfinc:  The increment that will be applied to the wdf for this term.\n"
50823 		"\n"
50824 		""},
50825 	 { (char *)"Document_add_term", _wrap_Document_add_term, METH_VARARGS, (char *)"\n"
50826 		"\n"
50827 		"\n"
50828 		"Add a term to the document, without positional information.\n"
50829 		"\n"
50830 		"void Xapian::Document::add_term(const std::string &tname,\n"
50831 		"Xapian::termcount wdfinc=1)\n"
50832 		"\n"
50833 		"Any existing positional information for the term will be left\n"
50834 		"unmodified.\n"
50835 		"\n"
50836 		"Parameters:\n"
50837 		"-----------\n"
50838 		"\n"
50839 		"tname:  The name of the term.\n"
50840 		"\n"
50841 		"wdfinc:  The increment that will be applied to the wdf for this term\n"
50842 		"(default: 1). \n"
50843 		""},
50844 	 { (char *)"Document_add_boolean_term", _wrap_Document_add_boolean_term, METH_VARARGS, (char *)"\n"
50845 		"\n"
50846 		"\n"
50847 		"Add a boolean filter term to the document.\n"
50848 		"\n"
50849 		"void Xapian::Document::add_boolean_term(const std::string &term)\n"
50850 		"\n"
50851 		"This method adds term to the document with wdf of 0 - this is\n"
50852 		"generally what you want for a term used for boolean filtering as the\n"
50853 		"wdf of such terms is ignored, and it doesn't make sense for them to\n"
50854 		"contribute to the document's length.\n"
50855 		"\n"
50856 		"If the specified term already indexes this document, this method has\n"
50857 		"no effect.\n"
50858 		"\n"
50859 		"It is exactly the same as add_term(term, 0).\n"
50860 		"\n"
50861 		"This method was added in Xapian 1.0.18.\n"
50862 		"\n"
50863 		"Parameters:\n"
50864 		"-----------\n"
50865 		"\n"
50866 		"term:  The term to add. \n"
50867 		""},
50868 	 { (char *)"Document_remove_posting", _wrap_Document_remove_posting, METH_VARARGS, (char *)"\n"
50869 		"\n"
50870 		"\n"
50871 		"Remove a posting of a term from the document.\n"
50872 		"\n"
50873 		"void Xapian::Document::remove_posting(const std::string &tname,\n"
50874 		"Xapian::termpos tpos, Xapian::termcount wdfdec=1)\n"
50875 		"\n"
50876 		"Note that the term will still index the document even if all\n"
50877 		"occurrences are removed. To remove a term from a document completely,\n"
50878 		"use remove_term().\n"
50879 		"\n"
50880 		"Parameters:\n"
50881 		"-----------\n"
50882 		"\n"
50883 		"tname:  The name of the term.\n"
50884 		"\n"
50885 		"tpos:  The position of the term.\n"
50886 		"\n"
50887 		"wdfdec:  The decrement that will be applied to the wdf when removing\n"
50888 		"this posting. The wdf will not go below the value of 0.\n"
50889 		"\n"
50890 		"Parameters:\n"
50891 		"-----------\n"
50892 		"\n"
50893 		"Xapian::InvalidArgumentError:  will be thrown if the term is not at\n"
50894 		"the position specified in the position list for this term in this\n"
50895 		"document.\n"
50896 		"\n"
50897 		"Xapian::InvalidArgumentError:  will be thrown if the term is not in\n"
50898 		"the document \n"
50899 		""},
50900 	 { (char *)"Document_remove_postings", _wrap_Document_remove_postings, METH_VARARGS, (char *)"\n"
50901 		"\n"
50902 		"\n"
50903 		"Remove a range of postings for a term.\n"
50904 		"\n"
50905 		"Xapian::termpos Xapian::Document::remove_postings(const std::string\n"
50906 		"&term, Xapian::termpos term_pos_first, Xapian::termpos term_pos_last,\n"
50907 		"Xapian::termcount wdf_dec=1)\n"
50908 		"\n"
50909 		"Any instances of the term at positions >= term_pos_first and <=\n"
50910 		"term_pos_last will be removed, and the wdf reduced by wdf_dec for each\n"
50911 		"instance removed (the wdf will not ever go below zero though).\n"
50912 		"\n"
50913 		"It's OK if the term doesn't occur in the range of positions specified\n"
50914 		"(unlike  remove_posting()). And if term_pos_first > term_pos_last,\n"
50915 		"this method does nothing.\n"
50916 		"\n"
50917 		"The number of postings removed.\n"
50918 		"\n"
50919 		"Parameters:\n"
50920 		"-----------\n"
50921 		"\n"
50922 		"Xapian::InvalidArgumentError:  will be thrown if the term is not in\n"
50923 		"the document\n"
50924 		"\n"
50925 		"Added in Xapian 1.4.8. \n"
50926 		""},
50927 	 { (char *)"Document_remove_term", _wrap_Document_remove_term, METH_VARARGS, (char *)"\n"
50928 		"\n"
50929 		"\n"
50930 		"Remove a term and all postings associated with it.\n"
50931 		"\n"
50932 		"void Xapian::Document::remove_term(const std::string &tname)\n"
50933 		"\n"
50934 		"Parameters:\n"
50935 		"-----------\n"
50936 		"\n"
50937 		"tname:  The name of the term.\n"
50938 		"\n"
50939 		"Parameters:\n"
50940 		"-----------\n"
50941 		"\n"
50942 		"Xapian::InvalidArgumentError:  will be thrown if the term is not in\n"
50943 		"the document \n"
50944 		""},
50945 	 { (char *)"Document_clear_terms", (PyCFunction)_wrap_Document_clear_terms, METH_O, (char *)"\n"
50946 		"\n"
50947 		"\n"
50948 		"Remove all terms (and postings) from the document.\n"
50949 		"\n"
50950 		"void Xapian::Document::clear_terms() \n"
50951 		""},
50952 	 { (char *)"Document_termlist_count", (PyCFunction)_wrap_Document_termlist_count, METH_O, (char *)"\n"
50953 		"\n"
50954 		"\n"
50955 		"The length of the termlist - i.e.\n"
50956 		"\n"
50957 		"Xapian::termcount Xapian::Document::termlist_count() const\n"
50958 		"\n"
50959 		"the number of different terms which index this document. \n"
50960 		""},
50961 	 { (char *)"Document__termlist_begin", (PyCFunction)_wrap_Document__termlist_begin, METH_O, (char *)"\n"
50962 		"\n"
50963 		"\n"
50964 		"Iterator for the terms in this document.\n"
50965 		"\n"
50966 		"TermIterator Xapian::Document::termlist_begin() const \n"
50967 		""},
50968 	 { (char *)"Document__termlist_end", (PyCFunction)_wrap_Document__termlist_end, METH_O, (char *)"\n"
50969 		"\n"
50970 		"\n"
50971 		"Equivalent end iterator for termlist_begin().\n"
50972 		"\n"
50973 		"TermIterator Xapian::Document::termlist_end() const \n"
50974 		""},
50975 	 { (char *)"Document_values_count", (PyCFunction)_wrap_Document_values_count, METH_O, (char *)"\n"
50976 		"\n"
50977 		"\n"
50978 		"Count the values in this document.\n"
50979 		"\n"
50980 		"Xapian::termcount Xapian::Document::values_count() const \n"
50981 		""},
50982 	 { (char *)"Document__values_begin", (PyCFunction)_wrap_Document__values_begin, METH_O, (char *)"\n"
50983 		"\n"
50984 		"\n"
50985 		"Iterator for the values in this document.\n"
50986 		"\n"
50987 		"ValueIterator Xapian::Document::values_begin() const \n"
50988 		""},
50989 	 { (char *)"Document__values_end", (PyCFunction)_wrap_Document__values_end, METH_O, (char *)"\n"
50990 		"\n"
50991 		"\n"
50992 		"Equivalent end iterator for values_begin().\n"
50993 		"\n"
50994 		"ValueIterator Xapian::Document::values_end() const \n"
50995 		""},
50996 	 { (char *)"Document_get_docid", (PyCFunction)_wrap_Document_get_docid, METH_O, (char *)"\n"
50997 		"\n"
50998 		"\n"
50999 		"Get the document id which is associated with this document (if any).\n"
51000 		"\n"
51001 		"docid Xapian::Document::get_docid() const\n"
51002 		"\n"
51003 		"NB If multiple databases are being searched together, then this will\n"
51004 		"be the document id in the individual database, not the merged\n"
51005 		"database!\n"
51006 		"\n"
51007 		"If this document came from a database, return the document id in that\n"
51008 		"database. Otherwise, return 0 (in Xapian 1.0.22/1.2.4 or later; prior\n"
51009 		"to this the returned value was uninitialised). \n"
51010 		""},
51011 	 { (char *)"Document_serialise", (PyCFunction)_wrap_Document_serialise, METH_O, (char *)"\n"
51012 		"\n"
51013 		"\n"
51014 		"Serialise document into a string.\n"
51015 		"\n"
51016 		"std::string Xapian::Document::serialise() const\n"
51017 		"\n"
51018 		"The document representation may change between Xapian releases: even\n"
51019 		"between minor versions. However, it is guaranteed not to change if the\n"
51020 		"remote database protocol has not changed between releases. \n"
51021 		""},
51022 	 { (char *)"Document_unserialise", (PyCFunction)_wrap_Document_unserialise, METH_O, NULL},
51023 	 { (char *)"Document___str__", (PyCFunction)_wrap_Document___str__, METH_O, (char *)"\n"
51024 		"\n"
51025 		"\n"
51026 		"Return a string describing this object.\n"
51027 		"\n"
51028 		"std::string Xapian::Document::get_description() const \n"
51029 		""},
51030 	 { (char *)"Document_swigregister", Document_swigregister, METH_VARARGS, NULL},
51031 	 { (char *)"Document_swiginit", Document_swiginit, METH_VARARGS, NULL},
51032 	 { (char *)"new_Registry", (PyCFunction)_wrap_new_Registry, METH_NOARGS, (char *)"\n"
51033 		"\n"
51034 		"\n"
51035 		"Default constructor.\n"
51036 		"\n"
51037 		"Xapian::Registry::Registry()\n"
51038 		"\n"
51039 		"The registry will contain all standard subclasses of user-subclassable\n"
51040 		"classes. \n"
51041 		""},
51042 	 { (char *)"delete_Registry", (PyCFunction)_wrap_delete_Registry, METH_O, (char *)"Xapian::Registry::~Registry() "},
51043 	 { (char *)"Registry_register_weighting_scheme", _wrap_Registry_register_weighting_scheme, METH_VARARGS, (char *)"\n"
51044 		"\n"
51045 		"\n"
51046 		"Register a weighting scheme.\n"
51047 		"\n"
51048 		"void Xapian::Registry::register_weighting_scheme(const Xapian::Weight\n"
51049 		"&wt)\n"
51050 		"\n"
51051 		"Parameters:\n"
51052 		"-----------\n"
51053 		"\n"
51054 		"wt:  The weighting scheme to register. \n"
51055 		""},
51056 	 { (char *)"Registry_get_weighting_scheme", _wrap_Registry_get_weighting_scheme, METH_VARARGS, (char *)"\n"
51057 		"\n"
51058 		"\n"
51059 		"Get the weighting scheme given a name.\n"
51060 		"\n"
51061 		"const Xapian::Weight* Xapian::Registry::get_weighting_scheme(const\n"
51062 		"std::string &name) const\n"
51063 		"\n"
51064 		"Parameters:\n"
51065 		"-----------\n"
51066 		"\n"
51067 		"name:  The name of the weighting scheme to find.\n"
51068 		"\n"
51069 		"An object with the requested name, or NULL if the weighting scheme\n"
51070 		"could not be found. The returned object is owned by the registry and\n"
51071 		"so must not be deleted by the caller. \n"
51072 		""},
51073 	 { (char *)"Registry_register_posting_source", _wrap_Registry_register_posting_source, METH_VARARGS, (char *)"\n"
51074 		"\n"
51075 		"\n"
51076 		"Register a user-defined posting source class.\n"
51077 		"\n"
51078 		"void Xapian::Registry::register_posting_source(const\n"
51079 		"Xapian::PostingSource &source)\n"
51080 		"\n"
51081 		"Parameters:\n"
51082 		"-----------\n"
51083 		"\n"
51084 		"source:  The posting source to register. \n"
51085 		""},
51086 	 { (char *)"Registry_get_posting_source", _wrap_Registry_get_posting_source, METH_VARARGS, (char *)"\n"
51087 		"\n"
51088 		"\n"
51089 		"Get a posting source given a name.\n"
51090 		"\n"
51091 		"const Xapian::PostingSource*\n"
51092 		"Xapian::Registry::get_posting_source(const std::string &name) const\n"
51093 		"\n"
51094 		"Parameters:\n"
51095 		"-----------\n"
51096 		"\n"
51097 		"name:  The name of the posting source to find.\n"
51098 		"\n"
51099 		"An object with the requested name, or NULL if the posting source could\n"
51100 		"not be found. The returned object is owned by the registry and so must\n"
51101 		"not be deleted by the caller. \n"
51102 		""},
51103 	 { (char *)"Registry_register_match_spy", _wrap_Registry_register_match_spy, METH_VARARGS, (char *)"\n"
51104 		"\n"
51105 		"\n"
51106 		"Register a user-defined match spy class.\n"
51107 		"\n"
51108 		"void Xapian::Registry::register_match_spy(const Xapian::MatchSpy &spy)\n"
51109 		"\n"
51110 		"Parameters:\n"
51111 		"-----------\n"
51112 		"\n"
51113 		"spy:  The match spy to register. \n"
51114 		""},
51115 	 { (char *)"Registry_get_match_spy", _wrap_Registry_get_match_spy, METH_VARARGS, (char *)"\n"
51116 		"\n"
51117 		"\n"
51118 		"Get a match spy given a name.\n"
51119 		"\n"
51120 		"const Xapian::MatchSpy* Xapian::Registry::get_match_spy(const\n"
51121 		"std::string &name) const\n"
51122 		"\n"
51123 		"Parameters:\n"
51124 		"-----------\n"
51125 		"\n"
51126 		"name:  The name of the match spy to find.\n"
51127 		"\n"
51128 		"An object with the requested name, or NULL if the match spy could not\n"
51129 		"be found. The returned object is owned by the registry and so must not\n"
51130 		"be deleted by the caller. \n"
51131 		""},
51132 	 { (char *)"Registry_register_lat_long_metric", _wrap_Registry_register_lat_long_metric, METH_VARARGS, (char *)"\n"
51133 		"\n"
51134 		"\n"
51135 		"Register a user-defined lat-long metric class.\n"
51136 		"\n"
51137 		"void Xapian::Registry::register_lat_long_metric(const\n"
51138 		"Xapian::LatLongMetric &metric) \n"
51139 		""},
51140 	 { (char *)"Registry_get_lat_long_metric", _wrap_Registry_get_lat_long_metric, METH_VARARGS, (char *)"\n"
51141 		"\n"
51142 		"\n"
51143 		"Get a lat-long metric given a name.\n"
51144 		"\n"
51145 		"const Xapian::LatLongMetric*\n"
51146 		"Xapian::Registry::get_lat_long_metric(const std::string &name) const\n"
51147 		"\n"
51148 		"The returned metric is owned by the registry object.\n"
51149 		"\n"
51150 		"Returns NULL if the metric could not be found. \n"
51151 		""},
51152 	 { (char *)"Registry_swigregister", Registry_swigregister, METH_VARARGS, NULL},
51153 	 { (char *)"Registry_swiginit", Registry_swiginit, METH_VARARGS, NULL},
51154 	 { (char *)"delete_Query", (PyCFunction)_wrap_delete_Query, METH_O, (char *)"\n"
51155 		"\n"
51156 		"\n"
51157 		"Destructor.\n"
51158 		"\n"
51159 		"Xapian::Query::~Query() \n"
51160 		""},
51161 	 { (char *)"Query__get_terms_begin", (PyCFunction)_wrap_Query__get_terms_begin, METH_O, (char *)"\n"
51162 		"\n"
51163 		"\n"
51164 		"Begin iterator for terms in the query object.\n"
51165 		"\n"
51166 		"const TermIterator Xapian::Query::get_terms_begin() const\n"
51167 		"\n"
51168 		"The iterator returns terms in ascending query position order, and will\n"
51169 		"return the same term in each unique position it occurs in. If you want\n"
51170 		"the terms in sorted order and without duplicates, see\n"
51171 		"get_unique_terms_begin(). \n"
51172 		""},
51173 	 { (char *)"Query__get_terms_end", (PyCFunction)_wrap_Query__get_terms_end, METH_O, (char *)"\n"
51174 		"\n"
51175 		"\n"
51176 		"End iterator for terms in the query object.\n"
51177 		"\n"
51178 		"const TermIterator Xapian::Query::get_terms_end() const \n"
51179 		""},
51180 	 { (char *)"Query_get_unique_terms_begin", (PyCFunction)_wrap_Query_get_unique_terms_begin, METH_O, (char *)"\n"
51181 		"\n"
51182 		"\n"
51183 		"Begin iterator for unique terms in the query object.\n"
51184 		"\n"
51185 		"const TermIterator Xapian::Query::get_unique_terms_begin() const\n"
51186 		"\n"
51187 		"Terms are sorted and terms with the same name removed from the list.\n"
51188 		"\n"
51189 		"If you want the terms in ascending query position order, see\n"
51190 		"get_terms_begin(). \n"
51191 		""},
51192 	 { (char *)"Query_get_unique_terms_end", (PyCFunction)_wrap_Query_get_unique_terms_end, METH_O, (char *)"\n"
51193 		"\n"
51194 		"\n"
51195 		"End iterator for unique terms in the query object.\n"
51196 		"\n"
51197 		"const TermIterator Xapian::Query::get_unique_terms_end() const \n"
51198 		""},
51199 	 { (char *)"Query_get_length", (PyCFunction)_wrap_Query_get_length, METH_O, (char *)"\n"
51200 		"\n"
51201 		"\n"
51202 		"Return the length of this query object.\n"
51203 		"\n"
51204 		"Xapian::termcount Xapian::Query::get_length() const \n"
51205 		""},
51206 	 { (char *)"Query_empty", (PyCFunction)_wrap_Query_empty, METH_O, (char *)"\n"
51207 		"\n"
51208 		"\n"
51209 		"Check if this query is Xapian::Query::MatchNothing.\n"
51210 		"\n"
51211 		"bool Xapian::Query::empty() const \n"
51212 		""},
51213 	 { (char *)"Query_serialise", (PyCFunction)_wrap_Query_serialise, METH_O, (char *)"\n"
51214 		"\n"
51215 		"\n"
51216 		"Serialise this object into a string.\n"
51217 		"\n"
51218 		"std::string Xapian::Query::serialise() const \n"
51219 		""},
51220 	 { (char *)"Query_unserialise", _wrap_Query_unserialise, METH_VARARGS, NULL},
51221 	 { (char *)"Query_get_type", (PyCFunction)_wrap_Query_get_type, METH_O, (char *)"\n"
51222 		"\n"
51223 		"\n"
51224 		"Get the type of the top level of the query.\n"
51225 		"\n"
51226 		"op Xapian::Query::get_type() const \n"
51227 		""},
51228 	 { (char *)"Query_get_num_subqueries", (PyCFunction)_wrap_Query_get_num_subqueries, METH_O, (char *)"\n"
51229 		"\n"
51230 		"\n"
51231 		"Get the number of subqueries of the top level query.\n"
51232 		"\n"
51233 		"size_t Xapian::Query::get_num_subqueries() const \n"
51234 		""},
51235 	 { (char *)"Query_get_subquery", _wrap_Query_get_subquery, METH_VARARGS, (char *)"\n"
51236 		"\n"
51237 		"\n"
51238 		"Read a top level subquery.\n"
51239 		"\n"
51240 		"const Query Xapian::Query::get_subquery(size_t n) const\n"
51241 		"\n"
51242 		"Parameters:\n"
51243 		"-----------\n"
51244 		"\n"
51245 		"n:  Return the n-th subquery (starting from 0) - only valid when 0 <=\n"
51246 		"n < get_num_subqueries(). \n"
51247 		""},
51248 	 { (char *)"Query___str__", (PyCFunction)_wrap_Query___str__, METH_O, (char *)"\n"
51249 		"\n"
51250 		"\n"
51251 		"Return a string describing this object.\n"
51252 		"\n"
51253 		"std::string Xapian::Query::get_description() const \n"
51254 		""},
51255 	 { (char *)"new_Query", _wrap_new_Query, METH_VARARGS, (char *)"\n"
51256 		"\n"
51257 		"\n"
51258 		"Construct with just an operator.\n"
51259 		"\n"
51260 		"Xapian::Query::Query(Query::op op_)\n"
51261 		"\n"
51262 		"Parameters:\n"
51263 		"-----------\n"
51264 		"\n"
51265 		"op_:  The operator to use - currently only OP_INVALID is useful. \n"
51266 		""},
51267 	 { (char *)"Query_swigregister", Query_swigregister, METH_VARARGS, NULL},
51268 	 { (char *)"Query_swiginit", Query_swiginit, METH_VARARGS, NULL},
51269 	 { (char *)"new_StemImplementation", (PyCFunction)_wrap_new_StemImplementation, METH_O, (char *)"\n"
51270 		"\n"
51271 		"\n"
51272 		"Default constructor.\n"
51273 		"\n"
51274 		"Xapian::StemImplementation::StemImplementation() \n"
51275 		""},
51276 	 { (char *)"delete_StemImplementation", (PyCFunction)_wrap_delete_StemImplementation, METH_O, (char *)"\n"
51277 		"\n"
51278 		"\n"
51279 		"Virtual destructor.\n"
51280 		"\n"
51281 		"virtual Xapian::StemImplementation::~StemImplementation() \n"
51282 		""},
51283 	 { (char *)"StemImplementation___call__", _wrap_StemImplementation___call__, METH_VARARGS, NULL},
51284 	 { (char *)"StemImplementation___str__", (PyCFunction)_wrap_StemImplementation___str__, METH_O, (char *)"\n"
51285 		"\n"
51286 		"\n"
51287 		"Return a string describing this object.\n"
51288 		"\n"
51289 		"virtual std::string Xapian::StemImplementation::get_description()\n"
51290 		"const =0 \n"
51291 		""},
51292 	 { (char *)"disown_StemImplementation", (PyCFunction)_wrap_disown_StemImplementation, METH_O, NULL},
51293 	 { (char *)"StemImplementation_swigregister", StemImplementation_swigregister, METH_VARARGS, NULL},
51294 	 { (char *)"StemImplementation_swiginit", StemImplementation_swiginit, METH_VARARGS, NULL},
51295 	 { (char *)"new_Stem", _wrap_new_Stem, METH_VARARGS, (char *)"\n"
51296 		"\n"
51297 		"\n"
51298 		"Construct a Xapian::Stem object with a user-provided stemming\n"
51299 		"algorithm.\n"
51300 		"\n"
51301 		"Xapian::Stem::Stem(StemImplementation *p)\n"
51302 		"\n"
51303 		"You can subclass Xapian::StemImplementation to implement your own\n"
51304 		"stemming algorithm (or to wrap a third-party algorithm) and then wrap\n"
51305 		"your implementation in a Xapian::Stem object to pass to the Xapian\n"
51306 		"API.\n"
51307 		"\n"
51308 		"Parameters:\n"
51309 		"-----------\n"
51310 		"\n"
51311 		"p:  The user-subclassed StemImplementation object. This is reference\n"
51312 		"counted, and so will be automatically deleted by the Xapian::Stem\n"
51313 		"wrapper when no longer required. \n"
51314 		""},
51315 	 { (char *)"delete_Stem", (PyCFunction)_wrap_delete_Stem, METH_O, (char *)"\n"
51316 		"\n"
51317 		"\n"
51318 		"Destructor.\n"
51319 		"\n"
51320 		"Xapian::Stem::~Stem() \n"
51321 		""},
51322 	 { (char *)"Stem___call__", _wrap_Stem___call__, METH_VARARGS, NULL},
51323 	 { (char *)"Stem_is_none", (PyCFunction)_wrap_Stem_is_none, METH_O, (char *)"\n"
51324 		"\n"
51325 		"\n"
51326 		"Return true if this is a no-op stemmer.\n"
51327 		"\n"
51328 		"bool Xapian::Stem::is_none() const \n"
51329 		""},
51330 	 { (char *)"Stem___str__", (PyCFunction)_wrap_Stem___str__, METH_O, (char *)"\n"
51331 		"\n"
51332 		"\n"
51333 		"Return a string describing this object.\n"
51334 		"\n"
51335 		"std::string Xapian::Stem::get_description() const \n"
51336 		""},
51337 	 { (char *)"Stem_get_available_languages", (PyCFunction)_wrap_Stem_get_available_languages, METH_NOARGS, NULL},
51338 	 { (char *)"Stem_swigregister", Stem_swigregister, METH_VARARGS, NULL},
51339 	 { (char *)"Stem_swiginit", Stem_swiginit, METH_VARARGS, NULL},
51340 	 { (char *)"new_TermGenerator", (PyCFunction)_wrap_new_TermGenerator, METH_NOARGS, (char *)"\n"
51341 		"\n"
51342 		"\n"
51343 		"Default constructor.\n"
51344 		"\n"
51345 		"Xapian::TermGenerator::TermGenerator() \n"
51346 		""},
51347 	 { (char *)"delete_TermGenerator", (PyCFunction)_wrap_delete_TermGenerator, METH_O, (char *)"\n"
51348 		"\n"
51349 		"\n"
51350 		"Destructor.\n"
51351 		"\n"
51352 		"Xapian::TermGenerator::~TermGenerator() \n"
51353 		""},
51354 	 { (char *)"TermGenerator_set_stemmer", _wrap_TermGenerator_set_stemmer, METH_VARARGS, (char *)"\n"
51355 		"\n"
51356 		"\n"
51357 		"Set the Xapian::Stem object to be used for generating stemmed terms.\n"
51358 		"\n"
51359 		"void Xapian::TermGenerator::set_stemmer(const Xapian::Stem &stemmer)\n"
51360 		"\n"
51361 		""},
51362 	 { (char *)"TermGenerator_set_stopper", _wrap_TermGenerator_set_stopper, METH_VARARGS, (char *)"\n"
51363 		"\n"
51364 		"\n"
51365 		"Set the Xapian::Stopper object to be used for identifying stopwords.\n"
51366 		"\n"
51367 		"void Xapian::TermGenerator::set_stopper(const Xapian::Stopper\n"
51368 		"*stop=NULL)\n"
51369 		"\n"
51370 		"Stemmed forms of stopwords aren't indexed, but unstemmed forms still\n"
51371 		"are so that searches for phrases including stop words still work.\n"
51372 		"\n"
51373 		"Parameters:\n"
51374 		"-----------\n"
51375 		"\n"
51376 		"stop:  The Stopper object to set (default NULL, which means no\n"
51377 		"stopwords). \n"
51378 		""},
51379 	 { (char *)"TermGenerator_set_document", _wrap_TermGenerator_set_document, METH_VARARGS, (char *)"\n"
51380 		"\n"
51381 		"\n"
51382 		"Set the current document.\n"
51383 		"\n"
51384 		"void Xapian::TermGenerator::set_document(const Xapian::Document &doc)\n"
51385 		"\n"
51386 		""},
51387 	 { (char *)"TermGenerator_get_document", (PyCFunction)_wrap_TermGenerator_get_document, METH_O, (char *)"\n"
51388 		"\n"
51389 		"\n"
51390 		"Get the current document.\n"
51391 		"\n"
51392 		"const Xapian::Document& Xapian::TermGenerator::get_document() const \n"
51393 		""},
51394 	 { (char *)"TermGenerator_set_database", _wrap_TermGenerator_set_database, METH_VARARGS, (char *)"\n"
51395 		"\n"
51396 		"\n"
51397 		"Set the database to index spelling data to.\n"
51398 		"\n"
51399 		"void Xapian::TermGenerator::set_database(const\n"
51400 		"Xapian::WritableDatabase &db) \n"
51401 		""},
51402 	 { (char *)"TermGenerator_set_flags", _wrap_TermGenerator_set_flags, METH_VARARGS, (char *)"\n"
51403 		"\n"
51404 		"\n"
51405 		"Set flags.\n"
51406 		"\n"
51407 		"flags Xapian::TermGenerator::set_flags(flags toggle, flags\n"
51408 		"mask=flags(0))\n"
51409 		"\n"
51410 		"The new value of flags is: (flags & mask) ^ toggle\n"
51411 		"\n"
51412 		"To just set the flags, pass the new flags in toggle and the default\n"
51413 		"value for mask.\n"
51414 		"\n"
51415 		"Parameters:\n"
51416 		"-----------\n"
51417 		"\n"
51418 		"toggle:  Flags to XOR.\n"
51419 		"\n"
51420 		"mask:  Flags to AND with first.\n"
51421 		"\n"
51422 		"The old flags setting. \n"
51423 		""},
51424 	 { (char *)"TermGenerator_set_stemming_strategy", _wrap_TermGenerator_set_stemming_strategy, METH_VARARGS, (char *)"\n"
51425 		"\n"
51426 		"\n"
51427 		"Set the stemming strategy.\n"
51428 		"\n"
51429 		"void Xapian::TermGenerator::set_stemming_strategy(stem_strategy\n"
51430 		"strategy)\n"
51431 		"\n"
51432 		"This method controls how the stemming algorithm is applied. It was new\n"
51433 		"in Xapian 1.3.1.\n"
51434 		"\n"
51435 		"Parameters:\n"
51436 		"-----------\n"
51437 		"\n"
51438 		"strategy:  The strategy to use - possible values are: STEM_NONE: Don't\n"
51439 		"perform any stemming - only unstemmed terms are generated.\n"
51440 		"\n"
51441 		"STEM_SOME: Generate both stemmed (with a \"Z\" prefix) and unstemmed\n"
51442 		"terms. No positional information is stored for unstemmed terms. This\n"
51443 		"is the default strategy.\n"
51444 		"\n"
51445 		"STEM_SOME_FULL_POS: Like STEM_SOME but positional information is\n"
51446 		"stored for both stemmed and unstemmed terms. Added in Xapian 1.4.8.\n"
51447 		"\n"
51448 		"STEM_ALL: Generate only stemmed terms (but without a \"Z\" prefix).\n"
51449 		"\n"
51450 		"STEM_ALL_Z: Generate only stemmed terms (with a \"Z\" prefix). \n"
51451 		""},
51452 	 { (char *)"TermGenerator_set_stopper_strategy", _wrap_TermGenerator_set_stopper_strategy, METH_VARARGS, (char *)"\n"
51453 		"\n"
51454 		"\n"
51455 		"Set the stopper strategy.\n"
51456 		"\n"
51457 		"void Xapian::TermGenerator::set_stopper_strategy(stop_strategy\n"
51458 		"strategy)\n"
51459 		"\n"
51460 		"The method controls how the stopper is used. It was added in Xapian\n"
51461 		"1.4.1.\n"
51462 		"\n"
51463 		"You need to also call  set_stopper() for this to have any effect.\n"
51464 		"\n"
51465 		"Parameters:\n"
51466 		"-----------\n"
51467 		"\n"
51468 		"strategy:  The strategy to use - possible values are: STOP_NONE: Don't\n"
51469 		"use the stopper.\n"
51470 		"\n"
51471 		"STOP_ALL: If a word is identified as a stop word, skip it completely.\n"
51472 		"\n"
51473 		"STOP_STEMMED: If a word is identified as a stop word, index its\n"
51474 		"unstemmed form but skip the stem. Unstemmed forms are indexed with\n"
51475 		"positional information by default, so this allows searches for phrases\n"
51476 		"containing stopwords to be supported. (This is the default mode). \n"
51477 		""},
51478 	 { (char *)"TermGenerator_set_max_word_length", _wrap_TermGenerator_set_max_word_length, METH_VARARGS, (char *)"\n"
51479 		"\n"
51480 		"\n"
51481 		"Set the maximum length word to index.\n"
51482 		"\n"
51483 		"void Xapian::TermGenerator::set_max_word_length(unsigned\n"
51484 		"max_word_length)\n"
51485 		"\n"
51486 		"The limit is on the length of a word prior to stemming and prior to\n"
51487 		"adding any term prefix.\n"
51488 		"\n"
51489 		"The backends mostly impose a limit on the length of terms (often of\n"
51490 		"about 240 bytes), but it's generally useful to have a lower limit to\n"
51491 		"help prevent the index being bloated by useless junk terms from trying\n"
51492 		"to indexing things like binary data, uuencoded data, ASCII art, etc.\n"
51493 		"\n"
51494 		"This method was new in Xapian 1.3.1.\n"
51495 		"\n"
51496 		"Parameters:\n"
51497 		"-----------\n"
51498 		"\n"
51499 		"max_word_length:  The maximum length word to index, in bytes in UTF-8\n"
51500 		"representation. Default is 64. \n"
51501 		""},
51502 	 { (char *)"TermGenerator_index_text", _wrap_TermGenerator_index_text, METH_VARARGS, (char *)"\n"
51503 		"\n"
51504 		"\n"
51505 		"Index some text in a std::string.\n"
51506 		"\n"
51507 		"void Xapian::TermGenerator::index_text(const std::string &text,\n"
51508 		"Xapian::termcount wdf_inc=1, const std::string &prefix=std::string())\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_index_text_without_positions", _wrap_TermGenerator_index_text_without_positions, METH_VARARGS, (char *)"\n"
51520 		"\n"
51521 		"\n"
51522 		"Index some text in a std::string without positional information.\n"
51523 		"\n"
51524 		"void Xapian::TermGenerator::index_text_without_positions(const\n"
51525 		"std::string &text, Xapian::termcount wdf_inc=1, const std::string\n"
51526 		"&prefix=std::string())\n"
51527 		"\n"
51528 		"Just like index_text, but no positional information is generated. This\n"
51529 		"means that the database will be significantly smaller, but that phrase\n"
51530 		"searching and NEAR won't be supported.\n"
51531 		"\n"
51532 		"Parameters:\n"
51533 		"-----------\n"
51534 		"\n"
51535 		"text:  The text to index.\n"
51536 		"\n"
51537 		"wdf_inc:  The wdf increment (default 1).\n"
51538 		"\n"
51539 		"prefix:  The term prefix to use (default is no prefix). \n"
51540 		""},
51541 	 { (char *)"TermGenerator_increase_termpos", _wrap_TermGenerator_increase_termpos, METH_VARARGS, (char *)"\n"
51542 		"\n"
51543 		"\n"
51544 		"Increase the term position used by index_text.\n"
51545 		"\n"
51546 		"void Xapian::TermGenerator::increase_termpos(Xapian::termpos\n"
51547 		"delta=100)\n"
51548 		"\n"
51549 		"This can be used between indexing text from different fields or other\n"
51550 		"places to prevent phrase searches from spanning between them (e.g.\n"
51551 		"between the title and body text, or between two chapters in a book).\n"
51552 		"\n"
51553 		"Parameters:\n"
51554 		"-----------\n"
51555 		"\n"
51556 		"delta:  Amount to increase the term position by (default: 100). \n"
51557 		""},
51558 	 { (char *)"TermGenerator_get_termpos", (PyCFunction)_wrap_TermGenerator_get_termpos, METH_O, (char *)"\n"
51559 		"\n"
51560 		"\n"
51561 		"Get the current term position.\n"
51562 		"\n"
51563 		"Xapian::termpos Xapian::TermGenerator::get_termpos() const \n"
51564 		""},
51565 	 { (char *)"TermGenerator_set_termpos", _wrap_TermGenerator_set_termpos, METH_VARARGS, (char *)"\n"
51566 		"\n"
51567 		"\n"
51568 		"Set the current term position.\n"
51569 		"\n"
51570 		"void Xapian::TermGenerator::set_termpos(Xapian::termpos termpos)\n"
51571 		"\n"
51572 		"Parameters:\n"
51573 		"-----------\n"
51574 		"\n"
51575 		"termpos:  The new term position to set. \n"
51576 		""},
51577 	 { (char *)"TermGenerator___str__", (PyCFunction)_wrap_TermGenerator___str__, METH_O, (char *)"\n"
51578 		"\n"
51579 		"\n"
51580 		"Return a string describing this object.\n"
51581 		"\n"
51582 		"std::string Xapian::TermGenerator::get_description() const \n"
51583 		""},
51584 	 { (char *)"TermGenerator_swigregister", TermGenerator_swigregister, METH_VARARGS, NULL},
51585 	 { (char *)"TermGenerator_swiginit", TermGenerator_swiginit, METH_VARARGS, NULL},
51586 	 { (char *)"new_MSet", (PyCFunction)_wrap_new_MSet, METH_NOARGS, (char *)"\n"
51587 		"\n"
51588 		"\n"
51589 		"Default constructor.\n"
51590 		"\n"
51591 		"Xapian::MSet::MSet()\n"
51592 		"\n"
51593 		"Creates an empty MSet, mostly useful as a placeholder. \n"
51594 		""},
51595 	 { (char *)"delete_MSet", (PyCFunction)_wrap_delete_MSet, METH_O, (char *)"\n"
51596 		"\n"
51597 		"\n"
51598 		"Destructor.\n"
51599 		"\n"
51600 		"Xapian::MSet::~MSet() \n"
51601 		""},
51602 	 { (char *)"MSet_convert_to_percent", _wrap_MSet_convert_to_percent, METH_VARARGS, (char *)"\n"
51603 		"\n"
51604 		"\n"
51605 		"Convert the weight of the current iterator position to a percentage.\n"
51606 		"\n"
51607 		"int Xapian::MSet::convert_to_percent(const MSetIterator &it) const\n"
51608 		"\n"
51609 		"The matching document with the highest weight will get 100% if it\n"
51610 		"matches all the weighted query terms, and proportionally less if it\n"
51611 		"only matches some, and other weights are scaled by the same factor.\n"
51612 		"\n"
51613 		"Documents with a non-zero score will always score at least 1%.\n"
51614 		"\n"
51615 		"Note that these generally aren't percentages of anything meaningful\n"
51616 		"(unless you use a custom weighting formula where they are!) \n"
51617 		""},
51618 	 { (char *)"MSet_get_termfreq", _wrap_MSet_get_termfreq, METH_VARARGS, (char *)"\n"
51619 		"\n"
51620 		"\n"
51621 		"Get the termfreq of a term.\n"
51622 		"\n"
51623 		"Xapian::doccount Xapian::MSet::get_termfreq(const std::string &term)\n"
51624 		"const\n"
51625 		"\n"
51626 		"The number of documents which term occurs in. This considers all\n"
51627 		"documents in the database being searched, so gives the same answer as\n"
51628 		"db.get_termfreq(term) (but is more efficient for query terms as it\n"
51629 		"returns a value cached during the search.) \n"
51630 		""},
51631 	 { (char *)"MSet_get_termweight", _wrap_MSet_get_termweight, METH_VARARGS, (char *)"\n"
51632 		"\n"
51633 		"\n"
51634 		"Get the term weight of a term.\n"
51635 		"\n"
51636 		"double Xapian::MSet::get_termweight(const std::string &term) const\n"
51637 		"\n"
51638 		"The maximum weight that term could have contributed to a document. \n"
51639 		""},
51640 	 { (char *)"MSet_get_firstitem", (PyCFunction)_wrap_MSet_get_firstitem, METH_O, (char *)"\n"
51641 		"\n"
51642 		"\n"
51643 		"Rank of first item in this MSet.\n"
51644 		"\n"
51645 		"Xapian::doccount Xapian::MSet::get_firstitem() const\n"
51646 		"\n"
51647 		"This is the parameter first passed to Xapian::Enquire::get_mset(). \n"
51648 		""},
51649 	 { (char *)"MSet_get_matches_lower_bound", (PyCFunction)_wrap_MSet_get_matches_lower_bound, METH_O, (char *)"\n"
51650 		"\n"
51651 		"\n"
51652 		"Lower bound on the total number of matching documents.\n"
51653 		"\n"
51654 		"Xapian::doccount Xapian::MSet::get_matches_lower_bound() const \n"
51655 		""},
51656 	 { (char *)"MSet_get_matches_estimated", (PyCFunction)_wrap_MSet_get_matches_estimated, METH_O, (char *)"\n"
51657 		"\n"
51658 		"\n"
51659 		"Estimate of the total number of matching documents.\n"
51660 		"\n"
51661 		"Xapian::doccount Xapian::MSet::get_matches_estimated() const \n"
51662 		""},
51663 	 { (char *)"MSet_get_matches_upper_bound", (PyCFunction)_wrap_MSet_get_matches_upper_bound, METH_O, (char *)"\n"
51664 		"\n"
51665 		"\n"
51666 		"Upper bound on the total number of matching documents.\n"
51667 		"\n"
51668 		"Xapian::doccount Xapian::MSet::get_matches_upper_bound() const \n"
51669 		""},
51670 	 { (char *)"MSet_get_uncollapsed_matches_lower_bound", (PyCFunction)_wrap_MSet_get_uncollapsed_matches_lower_bound, METH_O, (char *)"\n"
51671 		"\n"
51672 		"\n"
51673 		"Lower bound on the total number of matching documents before\n"
51674 		"collapsing.\n"
51675 		"\n"
51676 		"Xapian::doccount Xapian::MSet::get_uncollapsed_matches_lower_bound()\n"
51677 		"const\n"
51678 		"\n"
51679 		"Conceptually the same as get_matches_lower_bound() for the same query\n"
51680 		"without any collapse part (though the actual value may differ). \n"
51681 		""},
51682 	 { (char *)"MSet_get_uncollapsed_matches_estimated", (PyCFunction)_wrap_MSet_get_uncollapsed_matches_estimated, METH_O, (char *)"\n"
51683 		"\n"
51684 		"\n"
51685 		"Estimate of the total number of matching documents before collapsing.\n"
51686 		"\n"
51687 		"Xapian::doccount Xapian::MSet::get_uncollapsed_matches_estimated()\n"
51688 		"const\n"
51689 		"\n"
51690 		"Conceptually the same as get_matches_estimated() for the same query\n"
51691 		"without any collapse part (though the actual value may differ). \n"
51692 		""},
51693 	 { (char *)"MSet_get_uncollapsed_matches_upper_bound", (PyCFunction)_wrap_MSet_get_uncollapsed_matches_upper_bound, METH_O, (char *)"\n"
51694 		"\n"
51695 		"\n"
51696 		"Upper bound on the total number of matching documents before\n"
51697 		"collapsing.\n"
51698 		"\n"
51699 		"Xapian::doccount Xapian::MSet::get_uncollapsed_matches_upper_bound()\n"
51700 		"const\n"
51701 		"\n"
51702 		"Conceptually the same as get_matches_upper_bound() for the same query\n"
51703 		"without any collapse part (though the actual value may differ). \n"
51704 		""},
51705 	 { (char *)"MSet_get_max_attained", (PyCFunction)_wrap_MSet_get_max_attained, METH_O, (char *)"\n"
51706 		"\n"
51707 		"\n"
51708 		"The maximum weight attained by any document.\n"
51709 		"\n"
51710 		"double Xapian::MSet::get_max_attained() const \n"
51711 		""},
51712 	 { (char *)"MSet_get_max_possible", (PyCFunction)_wrap_MSet_get_max_possible, METH_O, (char *)"\n"
51713 		"\n"
51714 		"\n"
51715 		"The maximum possible weight any document could achieve.\n"
51716 		"\n"
51717 		"double Xapian::MSet::get_max_possible() const \n"
51718 		""},
51719 	 { (char *)"MSet_snippet", _wrap_MSet_snippet, METH_VARARGS, (char *)"\n"
51720 		"\n"
51721 		"\n"
51722 		"Generate a snippet.\n"
51723 		"\n"
51724 		"std::string Xapian::MSet::snippet(const std::string &text, size_t\n"
51725 		"length=500, const Xapian::Stem &stemmer=Xapian::Stem(), unsigned\n"
51726 		"flags=SNIPPET_BACKGROUND_MODEL|SNIPPET_EXHAUSTIVE, const std::string\n"
51727 		"&hi_start=\"<b>\", const std::string &hi_end=\"</b>\", const\n"
51728 		"std::string &omit=\"...\") const\n"
51729 		"\n"
51730 		"This method selects a continuous run of words from text, based mainly\n"
51731 		"on where the query matches (currently terms, exact phrases and\n"
51732 		"wildcards are taken into account). If flag SNIPPET_BACKGROUND_MODEL is\n"
51733 		"used (which it is by default) then the selection algorithm also\n"
51734 		"considers the non-query terms in the text with the aim of showing a\n"
51735 		"context which provides more useful information.\n"
51736 		"\n"
51737 		"The size of the text selected can be controlled by the length\n"
51738 		"parameter, which specifies a number of bytes of text to aim to select.\n"
51739 		"However slightly more text may be selected. Also the size of any\n"
51740 		"escaping, highlighting or omission markers is not considered.\n"
51741 		"\n"
51742 		"The returned text is escaped to make it suitable for use in HTML\n"
51743 		"(though beware that in upstream releases 1.4.5 and earlier this\n"
51744 		"escaping was sometimes incomplete), and matches with the query will be\n"
51745 		"highlighted using hi_start and hi_end.\n"
51746 		"\n"
51747 		"If the snippet seems to start or end mid-sentence, then omit is\n"
51748 		"prepended or append (respectively) to indicate this.\n"
51749 		"\n"
51750 		"The same stemming algorithm which was used to build the query should\n"
51751 		"be specified in stemmer.\n"
51752 		"\n"
51753 		"And flags contains flags controlling behaviour.\n"
51754 		"\n"
51755 		"Added in 1.3.5. \n"
51756 		""},
51757 	 { (char *)"MSet_fetch", _wrap_MSet_fetch, METH_VARARGS, (char *)"\n"
51758 		"\n"
51759 		"\n"
51760 		"Prefetch hint the whole MSet.\n"
51761 		"\n"
51762 		"void Xapian::MSet::fetch() const\n"
51763 		"\n"
51764 		"For a remote database, this may start a pipelined fetch of the\n"
51765 		"requested documents from the remote server.\n"
51766 		"\n"
51767 		"For a disk-based database, this may send prefetch hints to the\n"
51768 		"operating system such that the disk blocks the requested documents are\n"
51769 		"stored in are more likely to be in the cache when we come to actually\n"
51770 		"read them. \n"
51771 		""},
51772 	 { (char *)"MSet_size", (PyCFunction)_wrap_MSet_size, METH_O, (char *)"\n"
51773 		"\n"
51774 		"\n"
51775 		"Return number of items in this MSet object.\n"
51776 		"\n"
51777 		"Xapian::doccount Xapian::MSet::size() const \n"
51778 		""},
51779 	 { (char *)"MSet_empty", (PyCFunction)_wrap_MSet_empty, METH_O, (char *)"\n"
51780 		"\n"
51781 		"\n"
51782 		"Return true if this MSet object is empty.\n"
51783 		"\n"
51784 		"bool Xapian::MSet::empty() const \n"
51785 		""},
51786 	 { (char *)"MSet__begin", (PyCFunction)_wrap_MSet__begin, METH_O, (char *)"\n"
51787 		"\n"
51788 		"\n"
51789 		"Return iterator pointing to the first item in this MSet.\n"
51790 		"\n"
51791 		"MSetIterator Xapian::MSet::begin() const \n"
51792 		""},
51793 	 { (char *)"MSet__end", (PyCFunction)_wrap_MSet__end, METH_O, (char *)"\n"
51794 		"\n"
51795 		"\n"
51796 		"Return iterator pointing to just after the last item in this MSet.\n"
51797 		"\n"
51798 		"MSetIterator Xapian::MSet::end() const \n"
51799 		""},
51800 	 { (char *)"MSet_back", (PyCFunction)_wrap_MSet_back, METH_O, (char *)"\n"
51801 		"\n"
51802 		"\n"
51803 		"Return iterator pointing to the last object in this MSet.\n"
51804 		"\n"
51805 		"MSetIterator Xapian::MSet::back() const \n"
51806 		""},
51807 	 { (char *)"MSet___str__", (PyCFunction)_wrap_MSet___str__, METH_O, (char *)"\n"
51808 		"\n"
51809 		"\n"
51810 		"Return a string describing this object.\n"
51811 		"\n"
51812 		"std::string Xapian::MSet::get_description() const \n"
51813 		""},
51814 	 { (char *)"MSet_items_get", (PyCFunction)_wrap_MSet_items_get, METH_O, NULL},
51815 	 { (char *)"MSet___cmp__", _wrap_MSet___cmp__, METH_VARARGS, NULL},
51816 	 { (char *)"MSet_get_docid", _wrap_MSet_get_docid, METH_VARARGS, NULL},
51817 	 { (char *)"MSet_get_document", _wrap_MSet_get_document, METH_VARARGS, NULL},
51818 	 { (char *)"MSet__get_hit_internal", _wrap_MSet__get_hit_internal, METH_VARARGS, (char *)"\n"
51819 		"Get an item from the MSet.\n"
51820 		"\n"
51821 		"The supplied index is relative to the start of the MSet, not the absolute rank\n"
51822 		"of the item. \n"
51823 		""},
51824 	 { (char *)"MSet_get_document_percentage", _wrap_MSet_get_document_percentage, METH_VARARGS, NULL},
51825 	 { (char *)"MSet_swigregister", MSet_swigregister, METH_VARARGS, NULL},
51826 	 { (char *)"MSet_swiginit", MSet_swiginit, METH_VARARGS, NULL},
51827 	 { (char *)"_MSetIterator_mset_set", _wrap__MSetIterator_mset_set, METH_VARARGS, NULL},
51828 	 { (char *)"_MSetIterator_mset_get", (PyCFunction)_wrap__MSetIterator_mset_get, METH_O, NULL},
51829 	 { (char *)"_MSetIterator_off_from_end_set", _wrap__MSetIterator_off_from_end_set, METH_VARARGS, NULL},
51830 	 { (char *)"_MSetIterator_off_from_end_get", (PyCFunction)_wrap__MSetIterator_off_from_end_get, METH_O, NULL},
51831 	 { (char *)"new__MSetIterator", (PyCFunction)_wrap_new__MSetIterator, METH_NOARGS, (char *)"\n"
51832 		"\n"
51833 		"\n"
51834 		"Create an unpositioned MSetIterator.\n"
51835 		"\n"
51836 		"Xapian::MSetIterator::MSetIterator() \n"
51837 		""},
51838 	 { (char *)"_MSetIterator_get_rank", (PyCFunction)_wrap__MSetIterator_get_rank, METH_O, (char *)"\n"
51839 		"\n"
51840 		"\n"
51841 		"Return the MSet rank for the current position.\n"
51842 		"\n"
51843 		"Xapian::doccount Xapian::MSetIterator::get_rank() const\n"
51844 		"\n"
51845 		"The rank of mset[0] is mset.get_firstitem(). \n"
51846 		""},
51847 	 { (char *)"_MSetIterator_get_document", (PyCFunction)_wrap__MSetIterator_get_document, METH_O, (char *)"\n"
51848 		"\n"
51849 		"\n"
51850 		"Get the Document object for the current position.\n"
51851 		"\n"
51852 		"Xapian::Document Xapian::MSetIterator::get_document() const \n"
51853 		""},
51854 	 { (char *)"_MSetIterator_get_weight", (PyCFunction)_wrap__MSetIterator_get_weight, METH_O, (char *)"\n"
51855 		"\n"
51856 		"\n"
51857 		"Get the weight for the current position.\n"
51858 		"\n"
51859 		"double Xapian::MSetIterator::get_weight() const \n"
51860 		""},
51861 	 { (char *)"_MSetIterator_get_collapse_key", (PyCFunction)_wrap__MSetIterator_get_collapse_key, METH_O, (char *)"\n"
51862 		"\n"
51863 		"\n"
51864 		"Return the collapse key for the current position.\n"
51865 		"\n"
51866 		"std::string Xapian::MSetIterator::get_collapse_key() const\n"
51867 		"\n"
51868 		"If collapsing isn't in use, an empty string will be returned. \n"
51869 		""},
51870 	 { (char *)"_MSetIterator_get_collapse_count", (PyCFunction)_wrap__MSetIterator_get_collapse_count, METH_O, (char *)"\n"
51871 		"\n"
51872 		"\n"
51873 		"Return a count of the number of collapses done onto the current key.\n"
51874 		"\n"
51875 		"Xapian::doccount Xapian::MSetIterator::get_collapse_count() const\n"
51876 		"\n"
51877 		"This starts at 0, and is incremented each time an item is eliminated\n"
51878 		"because its key is the same as that of the current item (as returned\n"
51879 		"by get_collapse_key()).\n"
51880 		"\n"
51881 		"Note that this is NOT necessarily one less than the total number of\n"
51882 		"matching documents with this collapse key due to various optimisations\n"
51883 		"implemented in the matcher - for example, it can skip documents\n"
51884 		"completely if it can prove their weight wouldn't be enough to make the\n"
51885 		"result set.\n"
51886 		"\n"
51887 		"You can say is that if get_collapse_count() > 0 then there are >=\n"
51888 		"get_collapse_count() other documents with the current collapse key.\n"
51889 		"But if get_collapse_count() == 0 then there may or may not be other\n"
51890 		"such documents. \n"
51891 		""},
51892 	 { (char *)"_MSetIterator_get_sort_key", (PyCFunction)_wrap__MSetIterator_get_sort_key, METH_O, (char *)"\n"
51893 		"\n"
51894 		"\n"
51895 		"Return the sort key for the current position.\n"
51896 		"\n"
51897 		"std::string Xapian::MSetIterator::get_sort_key() const\n"
51898 		"\n"
51899 		"If sorting didn't use a key then an empty string will be returned.\n"
51900 		"\n"
51901 		"Added in Xapian 1.4.6. \n"
51902 		""},
51903 	 { (char *)"_MSetIterator_get_percent", (PyCFunction)_wrap__MSetIterator_get_percent, METH_O, (char *)"\n"
51904 		"\n"
51905 		"\n"
51906 		"Convert the weight of the current iterator position to a percentage.\n"
51907 		"\n"
51908 		"int Xapian::MSetIterator::get_percent() const\n"
51909 		"\n"
51910 		"The matching document with the highest weight will get 100% if it\n"
51911 		"matches all the weighted query terms, and proportionally less if it\n"
51912 		"only matches some, and other weights are scaled by the same factor.\n"
51913 		"\n"
51914 		"Documents with a non-zero score will always score at least 1%.\n"
51915 		"\n"
51916 		"Note that these generally aren't percentages of anything meaningful\n"
51917 		"(unless you use a custom weighting formula where they are!) \n"
51918 		""},
51919 	 { (char *)"_MSetIterator___str__", (PyCFunction)_wrap__MSetIterator___str__, METH_O, (char *)"\n"
51920 		"\n"
51921 		"\n"
51922 		"Return a string describing this object.\n"
51923 		"\n"
51924 		"std::string Xapian::MSetIterator::get_description() const \n"
51925 		""},
51926 	 { (char *)"_MSetIterator___eq__", _wrap__MSetIterator___eq__, METH_VARARGS, NULL},
51927 	 { (char *)"_MSetIterator___ne__", _wrap__MSetIterator___ne__, METH_VARARGS, NULL},
51928 	 { (char *)"_MSetIterator_equals", _wrap__MSetIterator_equals, METH_VARARGS, NULL},
51929 	 { (char *)"_MSetIterator_get_docid", (PyCFunction)_wrap__MSetIterator_get_docid, METH_O, NULL},
51930 	 { (char *)"_MSetIterator_next", (PyCFunction)_wrap__MSetIterator_next, METH_O, NULL},
51931 	 { (char *)"_MSetIterator_prev", (PyCFunction)_wrap__MSetIterator_prev, METH_O, NULL},
51932 	 { (char *)"delete__MSetIterator", (PyCFunction)_wrap_delete__MSetIterator, METH_O, NULL},
51933 	 { (char *)"_MSetIterator_swigregister", _MSetIterator_swigregister, METH_VARARGS, NULL},
51934 	 { (char *)"_MSetIterator_swiginit", _MSetIterator_swiginit, METH_VARARGS, NULL},
51935 	 { (char *)"new_ESet", (PyCFunction)_wrap_new_ESet, METH_NOARGS, (char *)"\n"
51936 		"\n"
51937 		"\n"
51938 		"Default constructor.\n"
51939 		"\n"
51940 		"Xapian::ESet::ESet()\n"
51941 		"\n"
51942 		"Creates an empty ESet, mostly useful as a placeholder. \n"
51943 		""},
51944 	 { (char *)"delete_ESet", (PyCFunction)_wrap_delete_ESet, METH_O, (char *)"\n"
51945 		"\n"
51946 		"\n"
51947 		"Destructor.\n"
51948 		"\n"
51949 		"Xapian::ESet::~ESet() \n"
51950 		""},
51951 	 { (char *)"ESet_size", (PyCFunction)_wrap_ESet_size, METH_O, (char *)"\n"
51952 		"\n"
51953 		"\n"
51954 		"Return number of items in this ESet object.\n"
51955 		"\n"
51956 		"Xapian::doccount Xapian::ESet::size() const \n"
51957 		""},
51958 	 { (char *)"ESet_empty", (PyCFunction)_wrap_ESet_empty, METH_O, (char *)"\n"
51959 		"\n"
51960 		"\n"
51961 		"Return true if this ESet object is empty.\n"
51962 		"\n"
51963 		"bool Xapian::ESet::empty() const \n"
51964 		""},
51965 	 { (char *)"ESet_get_ebound", (PyCFunction)_wrap_ESet_get_ebound, METH_O, (char *)"\n"
51966 		"\n"
51967 		"\n"
51968 		"Return a bound on the full size of this ESet object.\n"
51969 		"\n"
51970 		"Xapian::termcount Xapian::ESet::get_ebound() const\n"
51971 		"\n"
51972 		"This is a bound on size() if get_eset() had been called with maxitems\n"
51973 		"set high enough that all results were returned. \n"
51974 		""},
51975 	 { (char *)"ESet__begin", (PyCFunction)_wrap_ESet__begin, METH_O, (char *)"\n"
51976 		"\n"
51977 		"\n"
51978 		"Return iterator pointing to the first item in this ESet.\n"
51979 		"\n"
51980 		"ESetIterator Xapian::ESet::begin() const \n"
51981 		""},
51982 	 { (char *)"ESet__end", (PyCFunction)_wrap_ESet__end, METH_O, (char *)"\n"
51983 		"\n"
51984 		"\n"
51985 		"Return iterator pointing to just after the last item in this ESet.\n"
51986 		"\n"
51987 		"ESetIterator Xapian::ESet::end() const \n"
51988 		""},
51989 	 { (char *)"ESet_back", (PyCFunction)_wrap_ESet_back, METH_O, (char *)"\n"
51990 		"\n"
51991 		"\n"
51992 		"Return iterator pointing to the last object in this ESet.\n"
51993 		"\n"
51994 		"ESetIterator Xapian::ESet::back() const \n"
51995 		""},
51996 	 { (char *)"ESet___str__", (PyCFunction)_wrap_ESet___str__, METH_O, (char *)"\n"
51997 		"\n"
51998 		"\n"
51999 		"Return a string describing this object.\n"
52000 		"\n"
52001 		"std::string Xapian::ESet::get_description() const \n"
52002 		""},
52003 	 { (char *)"ESet_items_get", (PyCFunction)_wrap_ESet_items_get, METH_O, NULL},
52004 	 { (char *)"ESet_swigregister", ESet_swigregister, METH_VARARGS, NULL},
52005 	 { (char *)"ESet_swiginit", ESet_swiginit, METH_VARARGS, NULL},
52006 	 { (char *)"_ESetIterator_eset_set", _wrap__ESetIterator_eset_set, METH_VARARGS, NULL},
52007 	 { (char *)"_ESetIterator_eset_get", (PyCFunction)_wrap__ESetIterator_eset_get, METH_O, NULL},
52008 	 { (char *)"_ESetIterator_off_from_end_set", _wrap__ESetIterator_off_from_end_set, METH_VARARGS, NULL},
52009 	 { (char *)"_ESetIterator_off_from_end_get", (PyCFunction)_wrap__ESetIterator_off_from_end_get, METH_O, NULL},
52010 	 { (char *)"new__ESetIterator", (PyCFunction)_wrap_new__ESetIterator, METH_NOARGS, (char *)"\n"
52011 		"\n"
52012 		"\n"
52013 		"Create an unpositioned ESetIterator.\n"
52014 		"\n"
52015 		"Xapian::ESetIterator::ESetIterator() \n"
52016 		""},
52017 	 { (char *)"_ESetIterator_get_weight", (PyCFunction)_wrap__ESetIterator_get_weight, METH_O, (char *)"\n"
52018 		"\n"
52019 		"\n"
52020 		"Get the weight for the current position.\n"
52021 		"\n"
52022 		"double Xapian::ESetIterator::get_weight() const \n"
52023 		""},
52024 	 { (char *)"_ESetIterator___str__", (PyCFunction)_wrap__ESetIterator___str__, METH_O, (char *)"\n"
52025 		"\n"
52026 		"\n"
52027 		"Return a string describing this object.\n"
52028 		"\n"
52029 		"std::string Xapian::ESetIterator::get_description() const \n"
52030 		""},
52031 	 { (char *)"_ESetIterator___eq__", _wrap__ESetIterator___eq__, METH_VARARGS, NULL},
52032 	 { (char *)"_ESetIterator___ne__", _wrap__ESetIterator___ne__, METH_VARARGS, NULL},
52033 	 { (char *)"_ESetIterator_equals", _wrap__ESetIterator_equals, METH_VARARGS, NULL},
52034 	 { (char *)"_ESetIterator_get_term", (PyCFunction)_wrap__ESetIterator_get_term, METH_O, NULL},
52035 	 { (char *)"_ESetIterator_next", (PyCFunction)_wrap__ESetIterator_next, METH_O, NULL},
52036 	 { (char *)"_ESetIterator_prev", (PyCFunction)_wrap__ESetIterator_prev, METH_O, NULL},
52037 	 { (char *)"delete__ESetIterator", (PyCFunction)_wrap_delete__ESetIterator, METH_O, NULL},
52038 	 { (char *)"_ESetIterator_swigregister", _ESetIterator_swigregister, METH_VARARGS, NULL},
52039 	 { (char *)"_ESetIterator_swiginit", _ESetIterator_swiginit, METH_VARARGS, NULL},
52040 	 { (char *)"__eq__", _wrap___eq__, METH_VARARGS, NULL},
52041 	 { (char *)"__lt__", _wrap___lt__, METH_VARARGS, NULL},
52042 	 { (char *)"__gt__", _wrap___gt__, METH_VARARGS, NULL},
52043 	 { (char *)"__ge__", _wrap___ge__, METH_VARARGS, NULL},
52044 	 { (char *)"__le__", _wrap___le__, METH_VARARGS, NULL},
52045 	 { (char *)"__add__", _wrap___add__, METH_VARARGS, NULL},
52046 	 { (char *)"new_RSet", (PyCFunction)_wrap_new_RSet, METH_NOARGS, (char *)"\n"
52047 		"\n"
52048 		"\n"
52049 		"Default constructor.\n"
52050 		"\n"
52051 		"Xapian::RSet::RSet() \n"
52052 		""},
52053 	 { (char *)"delete_RSet", (PyCFunction)_wrap_delete_RSet, METH_O, (char *)"\n"
52054 		"\n"
52055 		"\n"
52056 		"Destructor.\n"
52057 		"\n"
52058 		"Xapian::RSet::~RSet() \n"
52059 		""},
52060 	 { (char *)"RSet_size", (PyCFunction)_wrap_RSet_size, METH_O, (char *)"\n"
52061 		"\n"
52062 		"\n"
52063 		"The number of documents in this R-Set.\n"
52064 		"\n"
52065 		"Xapian::doccount Xapian::RSet::size() const \n"
52066 		""},
52067 	 { (char *)"RSet_empty", (PyCFunction)_wrap_RSet_empty, METH_O, (char *)"\n"
52068 		"\n"
52069 		"\n"
52070 		"Test if this R-Set is empty.\n"
52071 		"\n"
52072 		"bool Xapian::RSet::empty() const \n"
52073 		""},
52074 	 { (char *)"RSet_add_document", _wrap_RSet_add_document, METH_VARARGS, (char *)"\n"
52075 		"\n"
52076 		"\n"
52077 		"Add a document to the relevance set.\n"
52078 		"\n"
52079 		"void Xapian::RSet::add_document(const Xapian::MSetIterator &i) \n"
52080 		""},
52081 	 { (char *)"RSet_remove_document", _wrap_RSet_remove_document, METH_VARARGS, (char *)"\n"
52082 		"\n"
52083 		"\n"
52084 		"Remove a document from the relevance set.\n"
52085 		"\n"
52086 		"void Xapian::RSet::remove_document(const Xapian::MSetIterator &i) \n"
52087 		""},
52088 	 { (char *)"RSet_contains", _wrap_RSet_contains, METH_VARARGS, (char *)"\n"
52089 		"\n"
52090 		"\n"
52091 		"Test if a given document in the relevance set.\n"
52092 		"\n"
52093 		"bool Xapian::RSet::contains(const Xapian::MSetIterator &i) const \n"
52094 		""},
52095 	 { (char *)"RSet___str__", (PyCFunction)_wrap_RSet___str__, METH_O, (char *)"\n"
52096 		"\n"
52097 		"\n"
52098 		"Return a string describing this object.\n"
52099 		"\n"
52100 		"std::string Xapian::RSet::get_description() const \n"
52101 		""},
52102 	 { (char *)"RSet_swigregister", RSet_swigregister, METH_VARARGS, NULL},
52103 	 { (char *)"RSet_swiginit", RSet_swiginit, METH_VARARGS, NULL},
52104 	 { (char *)"new_MatchDecider", (PyCFunction)_wrap_new_MatchDecider, METH_O, (char *)"\n"
52105 		"\n"
52106 		"\n"
52107 		"Default constructor.\n"
52108 		"\n"
52109 		"Xapian::MatchDecider::MatchDecider() \n"
52110 		""},
52111 	 { (char *)"MatchDecider___call__", _wrap_MatchDecider___call__, METH_VARARGS, NULL},
52112 	 { (char *)"delete_MatchDecider", (PyCFunction)_wrap_delete_MatchDecider, METH_O, (char *)"\n"
52113 		"\n"
52114 		"\n"
52115 		"Destructor.\n"
52116 		"\n"
52117 		"virtual Xapian::MatchDecider::~MatchDecider() \n"
52118 		""},
52119 	 { (char *)"disown_MatchDecider", (PyCFunction)_wrap_disown_MatchDecider, METH_O, NULL},
52120 	 { (char *)"MatchDecider_swigregister", MatchDecider_swigregister, METH_VARARGS, NULL},
52121 	 { (char *)"MatchDecider_swiginit", MatchDecider_swiginit, METH_VARARGS, NULL},
52122 	 { (char *)"new_Enquire", (PyCFunction)_wrap_new_Enquire, METH_O, (char *)"\n"
52123 		"\n"
52124 		"\n"
52125 		"Create a Xapian::Enquire object.\n"
52126 		"\n"
52127 		"Xapian::Enquire::Enquire(const Database &database, ErrorHandler\n"
52128 		"*errorhandler_)\n"
52129 		"\n"
52130 		"This specification cannot be changed once the Xapian::Enquire is\n"
52131 		"opened: you must create a new Xapian::Enquire object to access a\n"
52132 		"different database, or set of databases.\n"
52133 		"\n"
52134 		"The database supplied must have been initialised (ie, must not be the\n"
52135 		"result of calling the Database::Database() constructor). If you need\n"
52136 		"to handle a situation where you have no databases gracefully, a\n"
52137 		"database created with DB_BACKEND_INMEMORY can be passed here to\n"
52138 		"provide a completely empty database.\n"
52139 		"\n"
52140 		"Parameters:\n"
52141 		"-----------\n"
52142 		"\n"
52143 		"database:  Specification of the database or databases to use.\n"
52144 		"\n"
52145 		"errorhandler_:  This parameter is deprecated (since Xapian 1.3.1), and\n"
52146 		"as of 1.3.5 it's ignored completely.\n"
52147 		"\n"
52148 		"Parameters:\n"
52149 		"-----------\n"
52150 		"\n"
52151 		"Xapian::InvalidArgumentError:  will be thrown if an empty Database\n"
52152 		"object is supplied. \n"
52153 		""},
52154 	 { (char *)"delete_Enquire", (PyCFunction)_wrap_delete_Enquire, METH_O, (char *)"\n"
52155 		"\n"
52156 		"\n"
52157 		"Close the Xapian::Enquire object.\n"
52158 		"\n"
52159 		"Xapian::Enquire::~Enquire() \n"
52160 		""},
52161 	 { (char *)"Enquire_set_query", _wrap_Enquire_set_query, METH_VARARGS, (char *)"\n"
52162 		"\n"
52163 		"\n"
52164 		"Set the query to run.\n"
52165 		"\n"
52166 		"void Xapian::Enquire::set_query(const Xapian::Query &query,\n"
52167 		"Xapian::termcount qlen=0)\n"
52168 		"\n"
52169 		"Parameters:\n"
52170 		"-----------\n"
52171 		"\n"
52172 		"query:  the new query to run.\n"
52173 		"\n"
52174 		"qlen:  the query length to use in weight calculations - by default the\n"
52175 		"sum of the wqf of all terms is used. \n"
52176 		""},
52177 	 { (char *)"Enquire_get_query", (PyCFunction)_wrap_Enquire_get_query, METH_O, (char *)"\n"
52178 		"\n"
52179 		"\n"
52180 		"Get the current query.\n"
52181 		"\n"
52182 		"const Xapian::Query& Xapian::Enquire::get_query() const\n"
52183 		"\n"
52184 		"If called before set_query(), this will return a default initialised\n"
52185 		"Query object. \n"
52186 		""},
52187 	 { (char *)"Enquire_add_matchspy", _wrap_Enquire_add_matchspy, METH_VARARGS, (char *)"\n"
52188 		"\n"
52189 		"\n"
52190 		"Add a matchspy.\n"
52191 		"\n"
52192 		"void Xapian::Enquire::add_matchspy(MatchSpy *spy)\n"
52193 		"\n"
52194 		"This matchspy will be called with some of the documents which match\n"
52195 		"the query, during the match process. Exactly which of the matching\n"
52196 		"documents are passed to it depends on exactly when certain\n"
52197 		"optimisations occur during the match process, but it can be controlled\n"
52198 		"to some extent by setting the checkatleast parameter to  get_mset().\n"
52199 		"\n"
52200 		"In particular, if there are enough matching documents, at least the\n"
52201 		"number specified by checkatleast will be passed to the matchspy. This\n"
52202 		"means that you can force the matchspy to be shown all matching\n"
52203 		"documents by setting checkatleast to the number of documents in the\n"
52204 		"database.\n"
52205 		"\n"
52206 		"Parameters:\n"
52207 		"-----------\n"
52208 		"\n"
52209 		"spy:  The MatchSpy subclass to add. The caller must ensure that this\n"
52210 		"remains valid while the Enquire object remains active, or until\n"
52211 		"clear_matchspies() is called. \n"
52212 		""},
52213 	 { (char *)"Enquire_clear_matchspies", (PyCFunction)_wrap_Enquire_clear_matchspies, METH_O, (char *)"\n"
52214 		"\n"
52215 		"\n"
52216 		"Remove all the matchspies.\n"
52217 		"\n"
52218 		"void Xapian::Enquire::clear_matchspies() \n"
52219 		""},
52220 	 { (char *)"Enquire_set_weighting_scheme", _wrap_Enquire_set_weighting_scheme, METH_VARARGS, (char *)"\n"
52221 		"\n"
52222 		"\n"
52223 		"Set the weighting scheme to use for queries.\n"
52224 		"\n"
52225 		"void Xapian::Enquire::set_weighting_scheme(const Weight &weight_)\n"
52226 		"\n"
52227 		"Parameters:\n"
52228 		"-----------\n"
52229 		"\n"
52230 		"weight_:  the new weighting scheme. If no weighting scheme is\n"
52231 		"specified, the default is BM25 with the default parameters. \n"
52232 		""},
52233 	 { (char *)"Enquire_set_expansion_scheme", _wrap_Enquire_set_expansion_scheme, METH_VARARGS, (char *)"\n"
52234 		"\n"
52235 		"\n"
52236 		"Set the weighting scheme to use for expansion.\n"
52237 		"\n"
52238 		"void Xapian::Enquire::set_expansion_scheme(const std::string\n"
52239 		"&eweightname_, double expand_k_=1.0) const\n"
52240 		"\n"
52241 		"If you don't call this method, the default is as if you'd used:\n"
52242 		"\n"
52243 		"get_expansion_scheme(\"trad\");\n"
52244 		"\n"
52245 		"Parameters:\n"
52246 		"-----------\n"
52247 		"\n"
52248 		"eweightname_:  A string in lowercase specifying the name of the scheme\n"
52249 		"to be used. The following schemes are currently available: \"bo1\" :\n"
52250 		"The Bo1 scheme for query expansion. \"trad\" : The TradWeight scheme\n"
52251 		"for query expansion.\n"
52252 		"\n"
52253 		"expand_k_:  The parameter required for TradWeight query expansion. A\n"
52254 		"default value of 1.0 is used if none is specified. \n"
52255 		""},
52256 	 { (char *)"Enquire_set_collapse_key", _wrap_Enquire_set_collapse_key, METH_VARARGS, (char *)"\n"
52257 		"\n"
52258 		"\n"
52259 		"Set the collapse key to use for queries.\n"
52260 		"\n"
52261 		"void Xapian::Enquire::set_collapse_key(Xapian::valueno collapse_key,\n"
52262 		"Xapian::doccount collapse_max=1)\n"
52263 		"\n"
52264 		"Parameters:\n"
52265 		"-----------\n"
52266 		"\n"
52267 		"collapse_key:  value number to collapse on - at most one MSet entry\n"
52268 		"with each particular value will be returned (default is\n"
52269 		"Xapian::BAD_VALUENO which means no collapsing).\n"
52270 		"\n"
52271 		"collapse_max:  Max number of items with the same key to leave after\n"
52272 		"collapsing (default 1).\n"
52273 		"\n"
52274 		"The MSet returned by get_mset() will have only the \"best\" (at most)\n"
52275 		"collapse_max entries with each particular value of collapse_key\n"
52276 		"(\"best\" being highest ranked - i.e. highest weight or highest\n"
52277 		"sorting key).\n"
52278 		"\n"
52279 		"An example use might be to create a value for each document containing\n"
52280 		"an MD5 hash of the document contents. Then duplicate documents from\n"
52281 		"different sources can be eliminated at search time by collapsing with\n"
52282 		"collapse_max = 1 (it's better to eliminate duplicates at index time,\n"
52283 		"but this may not be always be possible - for example the search may be\n"
52284 		"over more than one Xapian database).\n"
52285 		"\n"
52286 		"Another use is to group matches in a particular category (e.g. you\n"
52287 		"might collapse a mailing list search on the Subject: so that there's\n"
52288 		"only one result per discussion thread). In this case you can use\n"
52289 		"get_collapse_count() to give the user some idea how many other results\n"
52290 		"there are. And if you index the Subject: as a boolean term as well as\n"
52291 		"putting it in a value, you can offer a link to a non-collapsed search\n"
52292 		"restricted to that thread using a boolean filter. \n"
52293 		""},
52294 	 { (char *)"Enquire_set_docid_order", _wrap_Enquire_set_docid_order, METH_VARARGS, (char *)"\n"
52295 		"\n"
52296 		"\n"
52297 		"Set sort order for document IDs.\n"
52298 		"\n"
52299 		"void Xapian::Enquire::set_docid_order(docid_order order)\n"
52300 		"\n"
52301 		"This order only has an effect on documents which would otherwise have\n"
52302 		"equal rank. When ordering by relevance without a sort key, this means\n"
52303 		"documents with equal weight. For a boolean match with no sort key,\n"
52304 		"this means all documents. And if a sort key is used, this means\n"
52305 		"documents with the same sort key (and also equal weight if ordering on\n"
52306 		"relevance before or after the sort key).\n"
52307 		"\n"
52308 		"Parameters:\n"
52309 		"-----------\n"
52310 		"\n"
52311 		"order:  This can be:  Xapian::Enquire::ASCENDING docids sort in\n"
52312 		"ascending order (default)\n"
52313 		"\n"
52314 		"Xapian::Enquire::DESCENDING docids sort in descending order\n"
52315 		"\n"
52316 		"Xapian::Enquire::DONT_CARE docids sort in whatever order is most\n"
52317 		"efficient for the backend\n"
52318 		"\n"
52319 		"Note: If you add documents in strict date order, then a boolean search\n"
52320 		"- i.e. set_weighting_scheme(Xapian::BoolWeight()) - with\n"
52321 		"set_docid_order(Xapian::Enquire::DESCENDING) is an efficient way to\n"
52322 		"perform \"sort by date, newest first\", and with\n"
52323 		"set_docid_order(Xapian::Enquire::ASCENDING) a very efficient way to\n"
52324 		"perform \"sort by date, oldest first\". \n"
52325 		""},
52326 	 { (char *)"Enquire_set_cutoff", _wrap_Enquire_set_cutoff, METH_VARARGS, (char *)"\n"
52327 		"\n"
52328 		"\n"
52329 		"Set the percentage and/or weight cutoffs.\n"
52330 		"\n"
52331 		"void Xapian::Enquire::set_cutoff(int percent_cutoff, double\n"
52332 		"weight_cutoff=0)\n"
52333 		"\n"
52334 		"Parameters:\n"
52335 		"-----------\n"
52336 		"\n"
52337 		"percent_cutoff:  Minimum percentage score for returned documents. If a\n"
52338 		"document has a lower percentage score than this, it will not appear in\n"
52339 		"the MSet. If your intention is to return only matches which contain\n"
52340 		"all the terms in the query, then it's more efficient to use\n"
52341 		"Xapian::Query::OP_AND instead of Xapian::Query::OP_OR in the query\n"
52342 		"than to use set_cutoff(100). (default 0 => no percentage cut-off).\n"
52343 		"\n"
52344 		"weight_cutoff:  Minimum weight for a document to be returned. If a\n"
52345 		"document has a lower score that this, it will not appear in the MSet.\n"
52346 		"It is usually only possible to choose an appropriate weight for cutoff\n"
52347 		"based on the results of a previous run of the same query; this is thus\n"
52348 		"mainly useful for alerting operations. The other potential use is with\n"
52349 		"a user specified weighting scheme. (default 0 => no weight cut-off).\n"
52350 		"\n"
52351 		""},
52352 	 { (char *)"Enquire_set_sort_by_relevance", (PyCFunction)_wrap_Enquire_set_sort_by_relevance, METH_O, (char *)"\n"
52353 		"\n"
52354 		"\n"
52355 		"Set the sorting to be by relevance only.\n"
52356 		"\n"
52357 		"void Xapian::Enquire::set_sort_by_relevance()\n"
52358 		"\n"
52359 		"This is the default. \n"
52360 		""},
52361 	 { (char *)"Enquire_set_sort_by_value", _wrap_Enquire_set_sort_by_value, METH_VARARGS, (char *)"\n"
52362 		"\n"
52363 		"\n"
52364 		"Set the sorting to be by value only.\n"
52365 		"\n"
52366 		"void Xapian::Enquire::set_sort_by_value(Xapian::valueno sort_key, bool\n"
52367 		"reverse)\n"
52368 		"\n"
52369 		"Note that sorting by values uses a string comparison, so to use this\n"
52370 		"to sort by a numeric value you'll need to store the numeric values in\n"
52371 		"a manner which sorts appropriately. For example, you could use\n"
52372 		"Xapian::sortable_serialise() (which works for floating point numbers\n"
52373 		"as well as integers), or store numbers padded with leading zeros or\n"
52374 		"spaces, or with the number of digits prepended.\n"
52375 		"\n"
52376 		"Parameters:\n"
52377 		"-----------\n"
52378 		"\n"
52379 		"sort_key:  value number to sort on.\n"
52380 		"\n"
52381 		"reverse:  If true, reverses the sort order. \n"
52382 		""},
52383 	 { (char *)"Enquire_set_sort_by_key", _wrap_Enquire_set_sort_by_key, METH_VARARGS, (char *)"\n"
52384 		"\n"
52385 		"\n"
52386 		"Set the sorting to be by key generated from values only.\n"
52387 		"\n"
52388 		"void Xapian::Enquire::set_sort_by_key(Xapian::KeyMaker *sorter, bool\n"
52389 		"reverse)\n"
52390 		"\n"
52391 		"Parameters:\n"
52392 		"-----------\n"
52393 		"\n"
52394 		"sorter:  The functor to use for generating keys.\n"
52395 		"\n"
52396 		"reverse:  If true, reverses the sort order. \n"
52397 		""},
52398 	 { (char *)"Enquire_set_sort_by_value_then_relevance", _wrap_Enquire_set_sort_by_value_then_relevance, METH_VARARGS, (char *)"\n"
52399 		"\n"
52400 		"\n"
52401 		"Set the sorting to be by value, then by relevance for documents with\n"
52402 		"the same value.\n"
52403 		"\n"
52404 		"void Xapian::Enquire::set_sort_by_value_then_relevance(Xapian::valueno\n"
52405 		"sort_key, bool reverse)\n"
52406 		"\n"
52407 		"Note that sorting by values uses a string comparison, so to use this\n"
52408 		"to sort by a numeric value you'll need to store the numeric values in\n"
52409 		"a manner which sorts appropriately. For example, you could use\n"
52410 		"Xapian::sortable_serialise() (which works for floating point numbers\n"
52411 		"as well as integers), or store numbers padded with leading zeros or\n"
52412 		"spaces, or with the number of digits prepended.\n"
52413 		"\n"
52414 		"Parameters:\n"
52415 		"-----------\n"
52416 		"\n"
52417 		"sort_key:  value number to sort on.\n"
52418 		"\n"
52419 		"reverse:  If true, reverses the sort order. \n"
52420 		""},
52421 	 { (char *)"Enquire_set_sort_by_key_then_relevance", _wrap_Enquire_set_sort_by_key_then_relevance, METH_VARARGS, (char *)"\n"
52422 		"\n"
52423 		"\n"
52424 		"Set the sorting to be by keys generated from values, then by relevance\n"
52425 		"for documents with identical keys.\n"
52426 		"\n"
52427 		"void Xapian::Enquire::set_sort_by_key_then_relevance(Xapian::KeyMaker\n"
52428 		"*sorter, bool reverse)\n"
52429 		"\n"
52430 		"Parameters:\n"
52431 		"-----------\n"
52432 		"\n"
52433 		"sorter:  The functor to use for generating keys.\n"
52434 		"\n"
52435 		"reverse:  If true, reverses the sort order. \n"
52436 		""},
52437 	 { (char *)"Enquire_set_sort_by_relevance_then_value", _wrap_Enquire_set_sort_by_relevance_then_value, METH_VARARGS, (char *)"\n"
52438 		"\n"
52439 		"\n"
52440 		"Set the sorting to be by relevance then value.\n"
52441 		"\n"
52442 		"void Xapian::Enquire::set_sort_by_relevance_then_value(Xapian::valueno\n"
52443 		"sort_key, bool reverse)\n"
52444 		"\n"
52445 		"Note that sorting by values uses a string comparison, so to use this\n"
52446 		"to sort by a numeric value you'll need to store the numeric values in\n"
52447 		"a manner which sorts appropriately. For example, you could use\n"
52448 		"Xapian::sortable_serialise() (which works for floating point numbers\n"
52449 		"as well as integers), or store numbers padded with leading zeros or\n"
52450 		"spaces, or with the number of digits prepended.\n"
52451 		"\n"
52452 		"Note that with the default BM25 weighting scheme parameters, non-\n"
52453 		"identical documents will rarely have the same weight, so this setting\n"
52454 		"will give very similar results to set_sort_by_relevance(). It becomes\n"
52455 		"more useful with particular BM25 parameter settings (e.g.\n"
52456 		"BM25Weight(1,0,1,0,0)) or custom weighting schemes.\n"
52457 		"\n"
52458 		"Parameters:\n"
52459 		"-----------\n"
52460 		"\n"
52461 		"sort_key:  value number to sort on.\n"
52462 		"\n"
52463 		"reverse:  If true, reverses the sort order of sort_key. Beware that in\n"
52464 		"1.2.16 and earlier, the sense of this parameter was incorrectly\n"
52465 		"inverted and inconsistent with the other set_sort_by_... methods. This\n"
52466 		"was fixed in 1.2.17, so make that version a minimum requirement if\n"
52467 		"this detail matters to your application. \n"
52468 		""},
52469 	 { (char *)"Enquire_set_sort_by_relevance_then_key", _wrap_Enquire_set_sort_by_relevance_then_key, METH_VARARGS, (char *)"\n"
52470 		"\n"
52471 		"\n"
52472 		"Set the sorting to be by relevance, then by keys generated from\n"
52473 		"values.\n"
52474 		"\n"
52475 		"void Xapian::Enquire::set_sort_by_relevance_then_key(Xapian::KeyMaker\n"
52476 		"*sorter, bool reverse)\n"
52477 		"\n"
52478 		"Note that with the default BM25 weighting scheme parameters, non-\n"
52479 		"identical documents will rarely have the same weight, so this setting\n"
52480 		"will give very similar results to set_sort_by_relevance(). It becomes\n"
52481 		"more useful with particular BM25 parameter settings (e.g.\n"
52482 		"BM25Weight(1,0,1,0,0)) or custom weighting schemes.\n"
52483 		"\n"
52484 		"Parameters:\n"
52485 		"-----------\n"
52486 		"\n"
52487 		"sorter:  The functor to use for generating keys.\n"
52488 		"\n"
52489 		"reverse:  If true, reverses the sort order of the generated keys.\n"
52490 		"Beware that in 1.2.16 and earlier, the sense of this parameter was\n"
52491 		"incorrectly inverted and inconsistent with the other set_sort_by_...\n"
52492 		"methods. This was fixed in 1.2.17, so make that version a minimum\n"
52493 		"requirement if this detail matters to your application. \n"
52494 		""},
52495 	 { (char *)"Enquire_set_time_limit", _wrap_Enquire_set_time_limit, METH_VARARGS, (char *)"\n"
52496 		"\n"
52497 		"\n"
52498 		"Set a time limit for the match.\n"
52499 		"\n"
52500 		"void Xapian::Enquire::set_time_limit(double time_limit)\n"
52501 		"\n"
52502 		"Matches with check_at_least set high can take a long time in some\n"
52503 		"cases. You can set a time limit on this, after which check_at_least\n"
52504 		"will be turned off.\n"
52505 		"\n"
52506 		"Parameters:\n"
52507 		"-----------\n"
52508 		"\n"
52509 		"time_limit:  time in seconds after which to disable check_at_least\n"
52510 		"(default: 0.0 which means no time limit)\n"
52511 		"\n"
52512 		"Limitations:\n"
52513 		"\n"
52514 		"This feature is currently supported on platforms which support POSIX\n"
52515 		"interval timers. Interaction with the remote backend when using\n"
52516 		"multiple databases may have bugs. There's not currently a way to force\n"
52517 		"the match to end after a certain time. \n"
52518 		""},
52519 	 { (char *)"Enquire_get_mset", _wrap_Enquire_get_mset, METH_VARARGS, (char *)"\n"
52520 		"\n"
52521 		"\n"
52522 		"Get (a portion of) the match set for the current query.\n"
52523 		"\n"
52524 		"MSet Xapian::Enquire::get_mset(Xapian::doccount first,\n"
52525 		"Xapian::doccount maxitems, const RSet *omrset, const MatchDecider\n"
52526 		"*mdecider=0) const\n"
52527 		"\n"
52528 		"Parameters:\n"
52529 		"-----------\n"
52530 		"\n"
52531 		"first:  the first item in the result set to return. A value of zero\n"
52532 		"corresponds to the first item returned being that with the highest\n"
52533 		"score. A value of 10 corresponds to the first 10 items being ignored,\n"
52534 		"and the returned items starting at the eleventh.\n"
52535 		"\n"
52536 		"maxitems:  the maximum number of items to return. If you want all\n"
52537 		"matches, then you can pass the result of calling get_doccount() on the\n"
52538 		"Database object (though if you are doing this so you can filter\n"
52539 		"results, you are likely to get much better performance by using\n"
52540 		"Xapian's match-time filtering features instead). You can pass 0 for\n"
52541 		"maxitems which will give you an empty MSet with valid statistics (such\n"
52542 		"as get_matches_estimated()) calculated without looking at any\n"
52543 		"postings, which is very quick, but means the estimates may be more\n"
52544 		"approximate and the bounds may be much looser.\n"
52545 		"\n"
52546 		"omrset:  the relevance set to use when performing the query.\n"
52547 		"\n"
52548 		"mdecider:  a decision functor to use to decide whether a given\n"
52549 		"document should be put in the MSet.\n"
52550 		"\n"
52551 		"A Xapian::MSet object containing the results of the query.\n"
52552 		"\n"
52553 		"Parameters:\n"
52554 		"-----------\n"
52555 		"\n"
52556 		"Xapian::InvalidArgumentError:  See class documentation. \n"
52557 		""},
52558 	 { (char *)"Enquire_get_eset", _wrap_Enquire_get_eset, METH_VARARGS, (char *)"\n"
52559 		"\n"
52560 		"\n"
52561 		"Get the expand set for the given rset.\n"
52562 		"\n"
52563 		"ESet Xapian::Enquire::get_eset(Xapian::termcount maxitems, const RSet\n"
52564 		"&rset, int flags, double k, const Xapian::ExpandDecider\n"
52565 		"*edecider=NULL, double min_wt=0.0) const\n"
52566 		"\n"
52567 		"Parameters:\n"
52568 		"-----------\n"
52569 		"\n"
52570 		"maxitems:  the maximum number of items to return.\n"
52571 		"\n"
52572 		"rset:  the relevance set to use when performing the expand operation.\n"
52573 		"\n"
52574 		"flags:  zero or more of these values |-ed together:\n"
52575 		"Xapian::Enquire::INCLUDE_QUERY_TERMS query terms may be returned from\n"
52576 		"expand\n"
52577 		"\n"
52578 		"Xapian::Enquire::USE_EXACT_TERMFREQ for multi dbs, calculate the exact\n"
52579 		"termfreq; otherwise an approximation is used which can greatly improve\n"
52580 		"efficiency, but still returns good results.\n"
52581 		"\n"
52582 		"k:  the parameter k in the query expansion algorithm (default is 1.0)\n"
52583 		"\n"
52584 		"edecider:  a decision functor to use to decide whether a given term\n"
52585 		"should be put in the ESet\n"
52586 		"\n"
52587 		"min_wt:  the minimum weight for included terms\n"
52588 		"\n"
52589 		"An ESet object containing the results of the expand.\n"
52590 		"\n"
52591 		"Parameters:\n"
52592 		"-----------\n"
52593 		"\n"
52594 		"Xapian::InvalidArgumentError:  See class documentation. \n"
52595 		""},
52596 	 { (char *)"Enquire__get_matching_terms_begin", _wrap_Enquire__get_matching_terms_begin, METH_VARARGS, (char *)"\n"
52597 		"\n"
52598 		"\n"
52599 		"Get terms which match a given document, by match set item.\n"
52600 		"\n"
52601 		"TermIterator Xapian::Enquire::get_matching_terms_begin(const\n"
52602 		"MSetIterator &it) const\n"
52603 		"\n"
52604 		"This method returns the terms in the current query which match the\n"
52605 		"given document.\n"
52606 		"\n"
52607 		"If the underlying database has suitable support, using this call\n"
52608 		"(rather than passing a Xapian::docid) will enable the system to ensure\n"
52609 		"that the correct data is returned, and that the document has not been\n"
52610 		"deleted or changed since the query was performed.\n"
52611 		"\n"
52612 		"Parameters:\n"
52613 		"-----------\n"
52614 		"\n"
52615 		"it:  The iterator for which to retrieve the matching terms.\n"
52616 		"\n"
52617 		"An iterator returning the terms which match the document. The terms\n"
52618 		"will be returned (as far as this makes any sense) in the same order as\n"
52619 		"the terms in the query. Terms will not occur more than once, even if\n"
52620 		"they do in the query.\n"
52621 		"\n"
52622 		"Parameters:\n"
52623 		"-----------\n"
52624 		"\n"
52625 		"Xapian::InvalidArgumentError:  See class documentation.\n"
52626 		"\n"
52627 		"Xapian::DocNotFoundError:  The document specified could not be found\n"
52628 		"in the database. \n"
52629 		""},
52630 	 { (char *)"Enquire__get_matching_terms_end", _wrap_Enquire__get_matching_terms_end, METH_VARARGS, (char *)"\n"
52631 		"\n"
52632 		"\n"
52633 		"End iterator corresponding to get_matching_terms_begin()\n"
52634 		"\n"
52635 		"TermIterator Xapian::Enquire::get_matching_terms_end(const\n"
52636 		"MSetIterator &) const \n"
52637 		""},
52638 	 { (char *)"Enquire___str__", (PyCFunction)_wrap_Enquire___str__, METH_O, (char *)"\n"
52639 		"\n"
52640 		"\n"
52641 		"Return a string describing this object.\n"
52642 		"\n"
52643 		"std::string Xapian::Enquire::get_description() const \n"
52644 		""},
52645 	 { (char *)"Enquire_swigregister", Enquire_swigregister, METH_VARARGS, NULL},
52646 	 { (char *)"Enquire_swiginit", Enquire_swiginit, METH_VARARGS, NULL},
52647 	 { (char *)"new_ExpandDecider", (PyCFunction)_wrap_new_ExpandDecider, METH_O, (char *)"\n"
52648 		"\n"
52649 		"\n"
52650 		"Default constructor.\n"
52651 		"\n"
52652 		"Xapian::ExpandDecider::ExpandDecider() \n"
52653 		""},
52654 	 { (char *)"ExpandDecider___call__", _wrap_ExpandDecider___call__, METH_VARARGS, NULL},
52655 	 { (char *)"delete_ExpandDecider", (PyCFunction)_wrap_delete_ExpandDecider, METH_O, (char *)"\n"
52656 		"\n"
52657 		"\n"
52658 		"Virtual destructor, because we have virtual methods.\n"
52659 		"\n"
52660 		"virtual Xapian::ExpandDecider::~ExpandDecider() \n"
52661 		""},
52662 	 { (char *)"ExpandDecider_release", (PyCFunction)_wrap_ExpandDecider_release, METH_O, (char *)"\n"
52663 		"\n"
52664 		"\n"
52665 		"Start reference counting this object.\n"
52666 		"\n"
52667 		"const ExpandDecider* Xapian::ExpandDecider::release() const\n"
52668 		"\n"
52669 		"You can hand ownership of a dynamically allocated ExpandDecider object\n"
52670 		"to Xapian by calling release() and then passing the object to a Xapian\n"
52671 		"method. Xapian will arrange to delete the object once it is no longer\n"
52672 		"required. \n"
52673 		""},
52674 	 { (char *)"disown_ExpandDecider", (PyCFunction)_wrap_disown_ExpandDecider, METH_O, NULL},
52675 	 { (char *)"ExpandDecider_swigregister", ExpandDecider_swigregister, METH_VARARGS, NULL},
52676 	 { (char *)"ExpandDecider_swiginit", ExpandDecider_swiginit, METH_VARARGS, NULL},
52677 	 { (char *)"new_ExpandDeciderAnd", _wrap_new_ExpandDeciderAnd, METH_VARARGS, (char *)"\n"
52678 		"\n"
52679 		"\n"
52680 		"Compatibility method.\n"
52681 		"\n"
52682 		"Xapian::ExpandDeciderAnd::ExpandDeciderAnd(const ExpandDecider\n"
52683 		"*first_, const ExpandDecider *second_)\n"
52684 		"\n"
52685 		"Parameters:\n"
52686 		"-----------\n"
52687 		"\n"
52688 		"first_:  First ExpandDecider object to test with.\n"
52689 		"\n"
52690 		"second_:   ExpandDecider object to test with if first_ accepts. \n"
52691 		""},
52692 	 { (char *)"delete_ExpandDeciderAnd", (PyCFunction)_wrap_delete_ExpandDeciderAnd, METH_O, NULL},
52693 	 { (char *)"ExpandDeciderAnd_swigregister", ExpandDeciderAnd_swigregister, METH_VARARGS, NULL},
52694 	 { (char *)"ExpandDeciderAnd_swiginit", ExpandDeciderAnd_swiginit, METH_VARARGS, NULL},
52695 	 { (char *)"new_ExpandDeciderFilterPrefix", (PyCFunction)_wrap_new_ExpandDeciderFilterPrefix, METH_O, (char *)"\n"
52696 		"\n"
52697 		"\n"
52698 		"The parameter specify the prefix of terms to be retained.\n"
52699 		"\n"
52700 		"Xapian::ExpandDeciderFilterPrefix::ExpandDeciderFilterPrefix(const\n"
52701 		"std::string &prefix_)\n"
52702 		"\n"
52703 		"Parameters:\n"
52704 		"-----------\n"
52705 		"\n"
52706 		"prefix_:  restrict terms to the particular prefix_ \n"
52707 		""},
52708 	 { (char *)"delete_ExpandDeciderFilterPrefix", (PyCFunction)_wrap_delete_ExpandDeciderFilterPrefix, METH_O, NULL},
52709 	 { (char *)"ExpandDeciderFilterPrefix_swigregister", ExpandDeciderFilterPrefix_swigregister, METH_VARARGS, NULL},
52710 	 { (char *)"ExpandDeciderFilterPrefix_swiginit", ExpandDeciderFilterPrefix_swiginit, METH_VARARGS, NULL},
52711 	 { (char *)"new_KeyMaker", (PyCFunction)_wrap_new_KeyMaker, METH_O, (char *)"\n"
52712 		"\n"
52713 		"\n"
52714 		"Default constructor.\n"
52715 		"\n"
52716 		"Xapian::KeyMaker::KeyMaker() \n"
52717 		""},
52718 	 { (char *)"KeyMaker___call__", _wrap_KeyMaker___call__, METH_VARARGS, NULL},
52719 	 { (char *)"delete_KeyMaker", (PyCFunction)_wrap_delete_KeyMaker, METH_O, (char *)"\n"
52720 		"\n"
52721 		"\n"
52722 		"Virtual destructor, because we have virtual methods.\n"
52723 		"\n"
52724 		"virtual Xapian::KeyMaker::~KeyMaker() \n"
52725 		""},
52726 	 { (char *)"KeyMaker_release", (PyCFunction)_wrap_KeyMaker_release, METH_O, (char *)"\n"
52727 		"\n"
52728 		"\n"
52729 		"Start reference counting this object.\n"
52730 		"\n"
52731 		"const KeyMaker* Xapian::KeyMaker::release() const\n"
52732 		"\n"
52733 		"You can hand ownership of a dynamically allocated KeyMaker object to\n"
52734 		"Xapian by calling release() and then passing the object to a Xapian\n"
52735 		"method. Xapian will arrange to delete the object once it is no longer\n"
52736 		"required. \n"
52737 		""},
52738 	 { (char *)"disown_KeyMaker", (PyCFunction)_wrap_disown_KeyMaker, METH_O, NULL},
52739 	 { (char *)"KeyMaker_swigregister", KeyMaker_swigregister, METH_VARARGS, NULL},
52740 	 { (char *)"KeyMaker_swiginit", KeyMaker_swiginit, METH_VARARGS, NULL},
52741 	 { (char *)"new_MultiValueKeyMaker", (PyCFunction)_wrap_new_MultiValueKeyMaker, METH_NOARGS, (char *)"\n"
52742 		"\n"
52743 		"\n"
52744 		"Construct a MultiValueKeyMaker from a pair of iterators.\n"
52745 		"\n"
52746 		"Xapian::MultiValueKeyMaker::MultiValueKeyMaker(Iterator begin,\n"
52747 		"Iterator end)\n"
52748 		"\n"
52749 		"The iterators must be a begin/end pair returning Xapian::valueno (or a\n"
52750 		"compatible type) when dereferenced. \n"
52751 		""},
52752 	 { (char *)"MultiValueKeyMaker_add_value", _wrap_MultiValueKeyMaker_add_value, METH_VARARGS, (char *)"\n"
52753 		"\n"
52754 		"\n"
52755 		"Add a value slot to the list to build a key from.\n"
52756 		"\n"
52757 		"void Xapian::MultiValueKeyMaker::add_value(Xapian::valueno slot, bool\n"
52758 		"reverse=false, const std::string &defvalue=std::string())\n"
52759 		"\n"
52760 		"Parameters:\n"
52761 		"-----------\n"
52762 		"\n"
52763 		"slot:  The value slot to add\n"
52764 		"\n"
52765 		"reverse:  Adjust values from this slot to reverse their sort order\n"
52766 		"(default: false)\n"
52767 		"\n"
52768 		"defvalue:  Value to use for documents which don't have a value set in\n"
52769 		"this slot (default: empty). This can be used to make such documents\n"
52770 		"sort after all others by passing get_value_upper_bound(slot) + \"x\"\n"
52771 		"this is guaranteed to be greater than any value in this slot. \n"
52772 		""},
52773 	 { (char *)"delete_MultiValueKeyMaker", (PyCFunction)_wrap_delete_MultiValueKeyMaker, METH_O, NULL},
52774 	 { (char *)"MultiValueKeyMaker_swigregister", MultiValueKeyMaker_swigregister, METH_VARARGS, NULL},
52775 	 { (char *)"MultiValueKeyMaker_swiginit", MultiValueKeyMaker_swiginit, METH_VARARGS, NULL},
52776 	 { (char *)"new_Stopper", (PyCFunction)_wrap_new_Stopper, METH_O, (char *)"\n"
52777 		"\n"
52778 		"\n"
52779 		"Default constructor.\n"
52780 		"\n"
52781 		"Xapian::Stopper::Stopper() \n"
52782 		""},
52783 	 { (char *)"Stopper___call__", _wrap_Stopper___call__, METH_VARARGS, NULL},
52784 	 { (char *)"delete_Stopper", (PyCFunction)_wrap_delete_Stopper, METH_O, (char *)"\n"
52785 		"\n"
52786 		"\n"
52787 		"Class has virtual methods, so provide a virtual destructor.\n"
52788 		"\n"
52789 		"virtual Xapian::Stopper::~Stopper() \n"
52790 		""},
52791 	 { (char *)"Stopper___str__", (PyCFunction)_wrap_Stopper___str__, METH_O, (char *)"\n"
52792 		"\n"
52793 		"\n"
52794 		"Return a string describing this object.\n"
52795 		"\n"
52796 		"virtual std::string Xapian::Stopper::get_description() const \n"
52797 		""},
52798 	 { (char *)"Stopper_release", (PyCFunction)_wrap_Stopper_release, METH_O, (char *)"\n"
52799 		"\n"
52800 		"\n"
52801 		"Start reference counting this object.\n"
52802 		"\n"
52803 		"const Stopper* Xapian::Stopper::release() const\n"
52804 		"\n"
52805 		"You can hand ownership of a dynamically allocated Stopper object to\n"
52806 		"Xapian by calling release() and then passing the object to a Xapian\n"
52807 		"method. Xapian will arrange to delete the object once it is no longer\n"
52808 		"required. \n"
52809 		""},
52810 	 { (char *)"disown_Stopper", (PyCFunction)_wrap_disown_Stopper, METH_O, NULL},
52811 	 { (char *)"Stopper_swigregister", Stopper_swigregister, METH_VARARGS, NULL},
52812 	 { (char *)"Stopper_swiginit", Stopper_swiginit, METH_VARARGS, NULL},
52813 	 { (char *)"SimpleStopper_add", _wrap_SimpleStopper_add, METH_VARARGS, (char *)"\n"
52814 		"\n"
52815 		"\n"
52816 		"Add a single stop word.\n"
52817 		"\n"
52818 		"void Xapian::SimpleStopper::add(const std::string &word) \n"
52819 		""},
52820 	 { (char *)"new_SimpleStopper", _wrap_new_SimpleStopper, METH_VARARGS, (char *)"\n"
52821 		"\n"
52822 		"\n"
52823 		"Initialise from a pair of iterators.\n"
52824 		"\n"
52825 		"Xapian::SimpleStopper::SimpleStopper(Iterator begin, Iterator end)\n"
52826 		"\n"
52827 		"Xapian includes stop list files for many languages. You can initialise\n"
52828 		"from a file like that: \n"
52829 		""},
52830 	 { (char *)"delete_SimpleStopper", (PyCFunction)_wrap_delete_SimpleStopper, METH_O, NULL},
52831 	 { (char *)"SimpleStopper_swigregister", SimpleStopper_swigregister, METH_VARARGS, NULL},
52832 	 { (char *)"SimpleStopper_swiginit", SimpleStopper_swiginit, METH_VARARGS, NULL},
52833 	 { (char *)"new_RangeProcessor", _wrap_new_RangeProcessor, METH_VARARGS, (char *)"\n"
52834 		"\n"
52835 		"\n"
52836 		"Constructor.\n"
52837 		"\n"
52838 		"Xapian::RangeProcessor::RangeProcessor(Xapian::valueno slot_, const\n"
52839 		"std::string &str_=std::string(), unsigned flags_=0)\n"
52840 		"\n"
52841 		"Parameters:\n"
52842 		"-----------\n"
52843 		"\n"
52844 		"slot_:  Which value slot to generate ranges over.\n"
52845 		"\n"
52846 		"str_:  A string to look for to recognise values as belonging to this\n"
52847 		"range (as a prefix by default, or as a suffix if flags\n"
52848 		"Xapian::RP_SUFFIX is specified).\n"
52849 		"\n"
52850 		"flags_:  Zero or more of the following flags, combined with bitwise-or\n"
52851 		"(| in C++): Xapian::RP_SUFFIX - require str_ as a suffix instead of a\n"
52852 		"prefix.\n"
52853 		"\n"
52854 		"Xapian::RP_REPEATED - optionally allow str_ on both ends of the range\n"
52855 		"- e.g. $1..$10 or 5m..50m. By default a prefix is only checked for on\n"
52856 		"the start (e.g. date:1/1/1980..31/12/1989), and a suffix only on the\n"
52857 		"end (e.g. 2..12kg). \n"
52858 		""},
52859 	 { (char *)"delete_RangeProcessor", (PyCFunction)_wrap_delete_RangeProcessor, METH_O, (char *)"\n"
52860 		"\n"
52861 		"\n"
52862 		"Destructor.\n"
52863 		"\n"
52864 		"virtual Xapian::RangeProcessor::~RangeProcessor() \n"
52865 		""},
52866 	 { (char *)"RangeProcessor_check_range", _wrap_RangeProcessor_check_range, METH_VARARGS, (char *)"\n"
52867 		"\n"
52868 		"\n"
52869 		"Check prefix/suffix on range.\n"
52870 		"\n"
52871 		"Xapian::Query Xapian::RangeProcessor::check_range(const std::string\n"
52872 		"&b, const std::string &e)\n"
52873 		"\n"
52874 		"If they match, remove the prefix/suffix and then call operator()() to\n"
52875 		"try to handle the range. \n"
52876 		""},
52877 	 { (char *)"RangeProcessor___call__", _wrap_RangeProcessor___call__, METH_VARARGS, NULL},
52878 	 { (char *)"RangeProcessor_release", (PyCFunction)_wrap_RangeProcessor_release, METH_O, (char *)"\n"
52879 		"\n"
52880 		"\n"
52881 		"Start reference counting this object.\n"
52882 		"\n"
52883 		"const RangeProcessor* Xapian::RangeProcessor::release() const\n"
52884 		"\n"
52885 		"You can hand ownership of a dynamically allocated RangeProcessor\n"
52886 		"object to Xapian by calling release() and then passing the object to a\n"
52887 		"Xapian method. Xapian will arrange to delete the object once it is no\n"
52888 		"longer required. \n"
52889 		""},
52890 	 { (char *)"disown_RangeProcessor", (PyCFunction)_wrap_disown_RangeProcessor, METH_O, NULL},
52891 	 { (char *)"RangeProcessor_swigregister", RangeProcessor_swigregister, METH_VARARGS, NULL},
52892 	 { (char *)"RangeProcessor_swiginit", RangeProcessor_swiginit, METH_VARARGS, NULL},
52893 	 { (char *)"new_DateRangeProcessor", _wrap_new_DateRangeProcessor, METH_VARARGS, (char *)"\n"
52894 		"\n"
52895 		"\n"
52896 		"Constructor.\n"
52897 		"\n"
52898 		"Xapian::DateRangeProcessor::DateRangeProcessor(Xapian::valueno slot_,\n"
52899 		"const std::string &str_, unsigned flags_=0, int epoch_year_=1970)\n"
52900 		"\n"
52901 		"Parameters:\n"
52902 		"-----------\n"
52903 		"\n"
52904 		"slot_:  The value slot number to query.\n"
52905 		"\n"
52906 		"str_:  A string to look for to recognise values as belonging to this\n"
52907 		"date range.\n"
52908 		"\n"
52909 		"flags_:  Zero or more of the following flags, combined with bitwise-\n"
52910 		"or: Xapian::RP_SUFFIX - require str_ as a suffix instead of a prefix.\n"
52911 		"\n"
52912 		"Xapian::RP_REPEATED - optionally allow str_ on both ends of the range\n"
52913 		"- e.g. $1..$10 or 5m..50m. By default a prefix is only checked for on\n"
52914 		"the start (e.g. date:1/1/1980..31/12/1989), and a suffix only on the\n"
52915 		"end (e.g. 2..12kg).\n"
52916 		"\n"
52917 		"Xapian::RP_DATE_PREFER_MDY - interpret ambiguous dates as\n"
52918 		"month/day/year rather than day/month/year.\n"
52919 		"\n"
52920 		"epoch_year_:  Year to use as the epoch for dates with 2 digit years\n"
52921 		"(default: 1970, so 1/1/69 is 2069 while 1/1/70 is 1970).\n"
52922 		"\n"
52923 		"The string supplied in str_ is used by operator() to decide whether\n"
52924 		"the pair of strings supplied to it constitute a valid range. If\n"
52925 		"prefix_ is true, the first value in a range must begin with str_ (and\n"
52926 		"the second value may optionally begin with str_); if prefix_ is false,\n"
52927 		"the second value in a range must end with str_ (and the first value\n"
52928 		"may optionally end with str_).\n"
52929 		"\n"
52930 		"If str_ is empty, the Xapian::RP_SUFFIX and Xapian::RP_REPEATED are\n"
52931 		"irrelevant, and no special strings are required at the start or end of\n"
52932 		"the strings defining the range.\n"
52933 		"\n"
52934 		"The remainder of both strings defining the endpoints must be valid\n"
52935 		"dates.\n"
52936 		"\n"
52937 		"For example, if str_ is \"created:\", Xapian::RP_SUFFIX is not\n"
52938 		"specified, and the range processor has been added to the queryparser,\n"
52939 		"the queryparser will accept \"created:1/1/2000..31/12/2001\". \n"
52940 		""},
52941 	 { (char *)"delete_DateRangeProcessor", (PyCFunction)_wrap_delete_DateRangeProcessor, METH_O, NULL},
52942 	 { (char *)"DateRangeProcessor_swigregister", DateRangeProcessor_swigregister, METH_VARARGS, NULL},
52943 	 { (char *)"DateRangeProcessor_swiginit", DateRangeProcessor_swiginit, METH_VARARGS, NULL},
52944 	 { (char *)"new_NumberRangeProcessor", _wrap_new_NumberRangeProcessor, METH_VARARGS, (char *)"\n"
52945 		"\n"
52946 		"\n"
52947 		"Constructor.\n"
52948 		"\n"
52949 		"Xapian::NumberRangeProcessor::NumberRangeProcessor(Xapian::valueno\n"
52950 		"slot_, const std::string &str_=std::string(), unsigned flags_=0)\n"
52951 		"\n"
52952 		"Parameters:\n"
52953 		"-----------\n"
52954 		"\n"
52955 		"slot_:  The value slot number to query.\n"
52956 		"\n"
52957 		"str_:  A string to look for to recognise values as belonging to this\n"
52958 		"numeric range.\n"
52959 		"\n"
52960 		"flags_:  Zero or more of the following flags, combined with bitwise-\n"
52961 		"or: Xapian::RP_SUFFIX - require str_ as a suffix instead of a prefix.\n"
52962 		"\n"
52963 		"Xapian::RP_REPEATED - optionally allow str_ on both ends of the range\n"
52964 		"- e.g. $1..$10 or 5m..50m. By default a prefix is only checked for on\n"
52965 		"the start (e.g. date:1/1/1980..31/12/1989), and a suffix only on the\n"
52966 		"end (e.g. 2..12kg).\n"
52967 		"\n"
52968 		"The string supplied in str_ is used by operator() to decide whether\n"
52969 		"the pair of strings supplied to it constitute a valid range. If\n"
52970 		"prefix_ is true, the first value in a range must begin with str_ (and\n"
52971 		"the second value may optionally begin with str_); if prefix_ is false,\n"
52972 		"the second value in a range must end with str_ (and the first value\n"
52973 		"may optionally end with str_).\n"
52974 		"\n"
52975 		"If str_ is empty, the setting of prefix_ is irrelevant, and no special\n"
52976 		"strings are required at the start or end of the strings defining the\n"
52977 		"range.\n"
52978 		"\n"
52979 		"The remainder of both strings defining the endpoints must be valid\n"
52980 		"floating point numbers. (FIXME: define format recognised).\n"
52981 		"\n"
52982 		"For example, if str_ is \"$\" and prefix_ is true, and the range\n"
52983 		"processor has been added to the queryparser, the queryparser will\n"
52984 		"accept \"$10..50\" or \"$10..$50\", but not \"10..50\" or \"10..$50\"\n"
52985 		"as valid ranges. If str_ is \"kg\" and prefix_ is false, the\n"
52986 		"queryparser will accept \"10..50kg\" or \"10kg..50kg\", but not\n"
52987 		"\"10..50\" or \"10kg..50\" as valid ranges. \n"
52988 		""},
52989 	 { (char *)"delete_NumberRangeProcessor", (PyCFunction)_wrap_delete_NumberRangeProcessor, METH_O, NULL},
52990 	 { (char *)"NumberRangeProcessor_swigregister", NumberRangeProcessor_swigregister, METH_VARARGS, NULL},
52991 	 { (char *)"NumberRangeProcessor_swiginit", NumberRangeProcessor_swiginit, METH_VARARGS, NULL},
52992 	 { (char *)"new_ValueRangeProcessor", (PyCFunction)_wrap_new_ValueRangeProcessor, METH_O, (char *)"\n"
52993 		"\n"
52994 		"\n"
52995 		"Default constructor.\n"
52996 		"\n"
52997 		"Xapian::ValueRangeProcessor::ValueRangeProcessor() \n"
52998 		""},
52999 	 { (char *)"delete_ValueRangeProcessor", (PyCFunction)_wrap_delete_ValueRangeProcessor, METH_O, (char *)"\n"
53000 		"\n"
53001 		"\n"
53002 		"Destructor.\n"
53003 		"\n"
53004 		"virtual Xapian::ValueRangeProcessor::~ValueRangeProcessor() \n"
53005 		""},
53006 	 { (char *)"ValueRangeProcessor___call__", _wrap_ValueRangeProcessor___call__, METH_VARARGS, NULL},
53007 	 { (char *)"ValueRangeProcessor_release", (PyCFunction)_wrap_ValueRangeProcessor_release, METH_O, (char *)"\n"
53008 		"\n"
53009 		"\n"
53010 		"Start reference counting this object.\n"
53011 		"\n"
53012 		"const ValueRangeProcessor* Xapian::ValueRangeProcessor::release()\n"
53013 		"const\n"
53014 		"\n"
53015 		"You can hand ownership of a dynamically allocated ValueRangeProcessor\n"
53016 		"object to Xapian by calling release() and then passing the object to a\n"
53017 		"Xapian method. Xapian will arrange to delete the object once it is no\n"
53018 		"longer required. \n"
53019 		""},
53020 	 { (char *)"disown_ValueRangeProcessor", (PyCFunction)_wrap_disown_ValueRangeProcessor, METH_O, NULL},
53021 	 { (char *)"ValueRangeProcessor_swigregister", ValueRangeProcessor_swigregister, METH_VARARGS, NULL},
53022 	 { (char *)"ValueRangeProcessor_swiginit", ValueRangeProcessor_swiginit, METH_VARARGS, NULL},
53023 	 { (char *)"new_StringValueRangeProcessor", _wrap_new_StringValueRangeProcessor, METH_VARARGS, (char *)"\n"
53024 		"\n"
53025 		"\n"
53026 		"Constructor.\n"
53027 		"\n"
53028 		"Xapian::StringValueRangeProcessor::StringValueRangeProcessor(Xapian::valueno\n"
53029 		"slot_, const std::string &str_, bool prefix_=true)\n"
53030 		"\n"
53031 		"Parameters:\n"
53032 		"-----------\n"
53033 		"\n"
53034 		"slot_:  The value number to return from operator().\n"
53035 		"\n"
53036 		"str_:  A string to look for to recognise values as belonging to this\n"
53037 		"range.\n"
53038 		"\n"
53039 		"prefix_:  Flag specifying whether to check for str_ as a prefix or a\n"
53040 		"suffix. \n"
53041 		""},
53042 	 { (char *)"delete_StringValueRangeProcessor", (PyCFunction)_wrap_delete_StringValueRangeProcessor, METH_O, NULL},
53043 	 { (char *)"StringValueRangeProcessor_swigregister", StringValueRangeProcessor_swigregister, METH_VARARGS, NULL},
53044 	 { (char *)"StringValueRangeProcessor_swiginit", StringValueRangeProcessor_swiginit, METH_VARARGS, NULL},
53045 	 { (char *)"new_DateValueRangeProcessor", _wrap_new_DateValueRangeProcessor, METH_VARARGS, (char *)"\n"
53046 		"\n"
53047 		"\n"
53048 		"Constructor.\n"
53049 		"\n"
53050 		"Xapian::DateValueRangeProcessor::DateValueRangeProcessor(Xapian::valueno\n"
53051 		"slot_, const char *str_, bool prefix_=true, bool prefer_mdy_=false,\n"
53052 		"int epoch_year_=1970)\n"
53053 		"\n"
53054 		"This is like the previous version, but with const char * instead of\n"
53055 		"std::string - we need this overload as otherwise\n"
53056 		"DateValueRangeProcessor(1, \"date:\") quietly interprets the second\n"
53057 		"argument as a boolean in preference to std::string. If you want to be\n"
53058 		"compatible with 1.2.12 and earlier, then explicitly convert to\n"
53059 		"std::string, i.e.: DateValueRangeProcessor(1, std::string(\"date:\"))\n"
53060 		"\n"
53061 		"Parameters:\n"
53062 		"-----------\n"
53063 		"\n"
53064 		"slot_:  The value number to return from operator().\n"
53065 		"\n"
53066 		"str_:  A string to look for to recognise values as belonging to this\n"
53067 		"date range.\n"
53068 		"\n"
53069 		"prefix_:  Whether to look for the string at the start or end of the\n"
53070 		"values. If true, the string is a prefix; if false, the string is a\n"
53071 		"suffix (default: true).\n"
53072 		"\n"
53073 		"prefer_mdy_:  Should ambiguous dates be interpreted as month/day/year\n"
53074 		"rather than day/month/year? (default: false)\n"
53075 		"\n"
53076 		"epoch_year_:  Year to use as the epoch for dates with 2 digit years\n"
53077 		"(default: 1970, so 1/1/69 is 2069 while 1/1/70 is 1970).\n"
53078 		"\n"
53079 		"The string supplied in str_ is used by operator() to decide whether\n"
53080 		"the pair of strings supplied to it constitute a valid range. If\n"
53081 		"prefix_ is true, the first value in a range must begin with str_ (and\n"
53082 		"the second value may optionally begin with str_); if prefix_ is false,\n"
53083 		"the second value in a range must end with str_ (and the first value\n"
53084 		"may optionally end with str_).\n"
53085 		"\n"
53086 		"If str_ is empty, the setting of prefix_ is irrelevant, and no special\n"
53087 		"strings are required at the start or end of the strings defining the\n"
53088 		"range.\n"
53089 		"\n"
53090 		"The remainder of both strings defining the endpoints must be valid\n"
53091 		"dates.\n"
53092 		"\n"
53093 		"For example, if str_ is \"created:\" and prefix_ is true, and the\n"
53094 		"range processor has been added to the queryparser, the queryparser\n"
53095 		"will accept \"created:1/1/2000..31/12/2001\". \n"
53096 		""},
53097 	 { (char *)"delete_DateValueRangeProcessor", (PyCFunction)_wrap_delete_DateValueRangeProcessor, METH_O, NULL},
53098 	 { (char *)"DateValueRangeProcessor_swigregister", DateValueRangeProcessor_swigregister, METH_VARARGS, NULL},
53099 	 { (char *)"DateValueRangeProcessor_swiginit", DateValueRangeProcessor_swiginit, METH_VARARGS, NULL},
53100 	 { (char *)"new_NumberValueRangeProcessor", _wrap_new_NumberValueRangeProcessor, METH_VARARGS, (char *)"\n"
53101 		"\n"
53102 		"\n"
53103 		"Constructor.\n"
53104 		"\n"
53105 		"Xapian::NumberValueRangeProcessor::NumberValueRangeProcessor(Xapian::valueno\n"
53106 		"slot_, const std::string &str_, bool prefix_=true)\n"
53107 		"\n"
53108 		"Parameters:\n"
53109 		"-----------\n"
53110 		"\n"
53111 		"slot_:  The value number to return from operator().\n"
53112 		"\n"
53113 		"str_:  A string to look for to recognise values as belonging to this\n"
53114 		"numeric range.\n"
53115 		"\n"
53116 		"prefix_:  Whether to look for the string at the start or end of the\n"
53117 		"values. If true, the string is a prefix; if false, the string is a\n"
53118 		"suffix (default: true).\n"
53119 		"\n"
53120 		"The string supplied in str_ is used by operator() to decide whether\n"
53121 		"the pair of strings supplied to it constitute a valid range. If\n"
53122 		"prefix_ is true, the first value in a range must begin with str_ (and\n"
53123 		"the second value may optionally begin with str_); if prefix_ is false,\n"
53124 		"the second value in a range must end with str_ (and the first value\n"
53125 		"may optionally end with str_).\n"
53126 		"\n"
53127 		"If str_ is empty, the setting of prefix_ is irrelevant, and no special\n"
53128 		"strings are required at the start or end of the strings defining the\n"
53129 		"range.\n"
53130 		"\n"
53131 		"The remainder of both strings defining the endpoints must be valid\n"
53132 		"floating point numbers. (FIXME: define format recognised).\n"
53133 		"\n"
53134 		"For example, if str_ is \"$\" and prefix_ is true, and the range\n"
53135 		"processor has been added to the queryparser, the queryparser will\n"
53136 		"accept \"$10..50\" or \"$10..$50\", but not \"10..50\" or \"10..$50\"\n"
53137 		"as valid ranges. If str_ is \"kg\" and prefix_ is false, the\n"
53138 		"queryparser will accept \"10..50kg\" or \"10kg..50kg\", but not\n"
53139 		"\"10..50\" or \"10kg..50\" as valid ranges. \n"
53140 		""},
53141 	 { (char *)"delete_NumberValueRangeProcessor", (PyCFunction)_wrap_delete_NumberValueRangeProcessor, METH_O, NULL},
53142 	 { (char *)"NumberValueRangeProcessor_swigregister", NumberValueRangeProcessor_swigregister, METH_VARARGS, NULL},
53143 	 { (char *)"NumberValueRangeProcessor_swiginit", NumberValueRangeProcessor_swiginit, METH_VARARGS, NULL},
53144 	 { (char *)"new_FieldProcessor", (PyCFunction)_wrap_new_FieldProcessor, METH_O, (char *)"\n"
53145 		"\n"
53146 		"\n"
53147 		"Default constructor.\n"
53148 		"\n"
53149 		"Xapian::FieldProcessor::FieldProcessor() \n"
53150 		""},
53151 	 { (char *)"delete_FieldProcessor", (PyCFunction)_wrap_delete_FieldProcessor, METH_O, (char *)"\n"
53152 		"\n"
53153 		"\n"
53154 		"Destructor.\n"
53155 		"\n"
53156 		"virtual Xapian::FieldProcessor::~FieldProcessor() \n"
53157 		""},
53158 	 { (char *)"FieldProcessor___call__", _wrap_FieldProcessor___call__, METH_VARARGS, NULL},
53159 	 { (char *)"FieldProcessor_release", (PyCFunction)_wrap_FieldProcessor_release, METH_O, (char *)"\n"
53160 		"\n"
53161 		"\n"
53162 		"Start reference counting this object.\n"
53163 		"\n"
53164 		"const FieldProcessor* Xapian::FieldProcessor::release() const\n"
53165 		"\n"
53166 		"You can hand ownership of a dynamically allocated FieldProcessor\n"
53167 		"object to Xapian by calling release() and then passing the object to a\n"
53168 		"Xapian method. Xapian will arrange to delete the object once it is no\n"
53169 		"longer required. \n"
53170 		""},
53171 	 { (char *)"disown_FieldProcessor", (PyCFunction)_wrap_disown_FieldProcessor, METH_O, NULL},
53172 	 { (char *)"FieldProcessor_swigregister", FieldProcessor_swigregister, METH_VARARGS, NULL},
53173 	 { (char *)"FieldProcessor_swiginit", FieldProcessor_swiginit, METH_VARARGS, NULL},
53174 	 { (char *)"new_QueryParser", (PyCFunction)_wrap_new_QueryParser, METH_NOARGS, (char *)"\n"
53175 		"\n"
53176 		"\n"
53177 		"Default constructor.\n"
53178 		"\n"
53179 		"Xapian::QueryParser::QueryParser() \n"
53180 		""},
53181 	 { (char *)"delete_QueryParser", (PyCFunction)_wrap_delete_QueryParser, METH_O, (char *)"\n"
53182 		"\n"
53183 		"\n"
53184 		"Destructor.\n"
53185 		"\n"
53186 		"Xapian::QueryParser::~QueryParser() \n"
53187 		""},
53188 	 { (char *)"QueryParser_set_stemmer", _wrap_QueryParser_set_stemmer, METH_VARARGS, (char *)"\n"
53189 		"\n"
53190 		"\n"
53191 		"Set the stemmer.\n"
53192 		"\n"
53193 		"void Xapian::QueryParser::set_stemmer(const Xapian::Stem &stemmer)\n"
53194 		"\n"
53195 		"This sets the stemming algorithm which will be used by the query\n"
53196 		"parser. The stemming algorithm will be used according to the stemming\n"
53197 		"strategy set by set_stemming_strategy(). As of 1.3.1, this defaults to\n"
53198 		"STEM_SOME, but in earlier versions the default was STEM_NONE. If you\n"
53199 		"want to work with older versions, you should explicitly set a stemming\n"
53200 		"strategy as well as setting a stemmer, otherwise your stemmer won't\n"
53201 		"actually be used.\n"
53202 		"\n"
53203 		"Parameters:\n"
53204 		"-----------\n"
53205 		"\n"
53206 		"stemmer:  The Xapian::Stem object to set. \n"
53207 		""},
53208 	 { (char *)"QueryParser_set_stemming_strategy", _wrap_QueryParser_set_stemming_strategy, METH_VARARGS, (char *)"\n"
53209 		"\n"
53210 		"\n"
53211 		"Set the stemming strategy.\n"
53212 		"\n"
53213 		"void Xapian::QueryParser::set_stemming_strategy(stem_strategy\n"
53214 		"strategy)\n"
53215 		"\n"
53216 		"This controls how the query parser will apply the stemming algorithm.\n"
53217 		"Note that the stemming algorithm is only applied to words in free-text\n"
53218 		"fields - boolean filter terms are never stemmed.\n"
53219 		"\n"
53220 		"Parameters:\n"
53221 		"-----------\n"
53222 		"\n"
53223 		"strategy:  The strategy to use - possible values are: STEM_NONE: Don't\n"
53224 		"perform any stemming. (default in Xapian <= 1.3.0)\n"
53225 		"\n"
53226 		"STEM_SOME: Stem all terms except for those which start with a capital\n"
53227 		"letter, or are followed by certain characters (currently: (/@<>=*[{\"\n"
53228 		"), or are used with operators which need positional information.\n"
53229 		"Stemmed terms are prefixed with 'Z'. (default in Xapian >= 1.3.1)\n"
53230 		"\n"
53231 		"STEM_SOME_FULL_POS: Like STEM_SOME but also stems terms used with\n"
53232 		"operators which need positional information. Added in Xapian 1.4.8.\n"
53233 		"\n"
53234 		"STEM_ALL: Stem all terms (note: no 'Z' prefix is added).\n"
53235 		"\n"
53236 		"STEM_ALL_Z: Stem all terms (note: 'Z' prefix is added). (new in Xapian\n"
53237 		"1.2.11 and 1.3.1) \n"
53238 		""},
53239 	 { (char *)"QueryParser_set_stopper", _wrap_QueryParser_set_stopper, METH_VARARGS, (char *)"\n"
53240 		"\n"
53241 		"\n"
53242 		"Set the stopper.\n"
53243 		"\n"
53244 		"void Xapian::QueryParser::set_stopper(const Stopper *stop=NULL)\n"
53245 		"\n"
53246 		"Parameters:\n"
53247 		"-----------\n"
53248 		"\n"
53249 		"stop:  The Stopper object to set (default NULL, which means no\n"
53250 		"stopwords). \n"
53251 		""},
53252 	 { (char *)"QueryParser_set_default_op", _wrap_QueryParser_set_default_op, METH_VARARGS, (char *)"\n"
53253 		"\n"
53254 		"\n"
53255 		"Set the default operator.\n"
53256 		"\n"
53257 		"void Xapian::QueryParser::set_default_op(Query::op default_op)\n"
53258 		"\n"
53259 		"Parameters:\n"
53260 		"-----------\n"
53261 		"\n"
53262 		"default_op:  The operator to use to combine non-filter query items\n"
53263 		"when no explicit operator is used.\n"
53264 		"\n"
53265 		"So for example, 'weather forecast' is parsed as if it were 'weather OR\n"
53266 		"forecast' by default.\n"
53267 		"\n"
53268 		"The most useful values for this are OP_OR (the default) and OP_AND.\n"
53269 		"OP_NEAR, OP_PHRASE, OP_ELITE_SET, OP_SYNONYM and OP_MAX are also\n"
53270 		"permitted. Passing other values will result in InvalidArgumentError\n"
53271 		"being thrown. \n"
53272 		""},
53273 	 { (char *)"QueryParser_get_default_op", (PyCFunction)_wrap_QueryParser_get_default_op, METH_O, (char *)"\n"
53274 		"\n"
53275 		"\n"
53276 		"Get the current default operator.\n"
53277 		"\n"
53278 		"Query::op Xapian::QueryParser::get_default_op() const \n"
53279 		""},
53280 	 { (char *)"QueryParser_set_database", _wrap_QueryParser_set_database, METH_VARARGS, (char *)"\n"
53281 		"\n"
53282 		"\n"
53283 		"Specify the database being searched.\n"
53284 		"\n"
53285 		"void Xapian::QueryParser::set_database(const Database &db)\n"
53286 		"\n"
53287 		"Parameters:\n"
53288 		"-----------\n"
53289 		"\n"
53290 		"db:  The database to use for spelling correction\n"
53291 		"(FLAG_SPELLING_CORRECTION), and synonyms (FLAG_SYNONYM,\n"
53292 		"FLAG_AUTO_SYNONYMS, and FLAG_AUTO_MULTIWORD_SYNONYMS). \n"
53293 		""},
53294 	 { (char *)"QueryParser_set_max_expansion", _wrap_QueryParser_set_max_expansion, METH_VARARGS, (char *)"\n"
53295 		"\n"
53296 		"\n"
53297 		"Specify the maximum expansion of a wildcard and/or partial term.\n"
53298 		"\n"
53299 		"void Xapian::QueryParser::set_max_expansion(Xapian::termcount\n"
53300 		"max_expansion, int max_type=Xapian::Query::WILDCARD_LIMIT_ERROR,\n"
53301 		"unsigned flags=FLAG_WILDCARD|FLAG_PARTIAL)\n"
53302 		"\n"
53303 		"Note: you must also set FLAG_WILDCARD and/or FLAG_PARTIAL in the flags\n"
53304 		"parameter to  parse_query() for this setting to have anything to\n"
53305 		"affect.\n"
53306 		"\n"
53307 		"If you don't call this method, the default settings are no limit on\n"
53308 		"wildcard expansion, and partial terms expanding to the most frequent\n"
53309 		"100 terms - i.e. as if you'd called:\n"
53310 		"\n"
53311 		"set_max_expansion(0); set_max_expansion(100,\n"
53312 		"Xapian::Query::WILDCARD_LIMIT_MOST_FREQUENT,\n"
53313 		"Xapian::QueryParser::FLAG_PARTIAL);\n"
53314 		"\n"
53315 		"Parameters:\n"
53316 		"-----------\n"
53317 		"\n"
53318 		"max_expansion:  The maximum number of terms each wildcard in the query\n"
53319 		"can expand to, or 0 for no limit (which is the default).\n"
53320 		"\n"
53321 		"max_type:    Xapian::Query::WILDCARD_LIMIT_ERROR,\n"
53322 		"Xapian::Query::WILDCARD_LIMIT_FIRST or\n"
53323 		"Xapian::Query::WILDCARD_LIMIT_MOST_FREQUENT (default:\n"
53324 		"Xapian::Query::WILDCARD_LIMIT_ERROR).\n"
53325 		"\n"
53326 		"flags:  What to set the limit for (default:\n"
53327 		"FLAG_WILDCARD|FLAG_PARTIAL, setting the limit for both wildcards and\n"
53328 		"partial terms).\n"
53329 		"\n"
53330 		"1.3.3 \n"
53331 		""},
53332 	 { (char *)"QueryParser_set_max_wildcard_expansion", _wrap_QueryParser_set_max_wildcard_expansion, METH_VARARGS, (char *)"\n"
53333 		"\n"
53334 		"\n"
53335 		"Specify the maximum expansion of a wildcard.\n"
53336 		"\n"
53337 		"void\n"
53338 		"Xapian::QueryParser::set_max_wildcard_expansion(Xapian::termcount)\n"
53339 		"\n"
53340 		"If any wildcard expands to more than max_expansion terms, an exception\n"
53341 		"will be thrown.\n"
53342 		"\n"
53343 		"This method is provided for API compatibility with Xapian 1.2.x and is\n"
53344 		"deprecated - replace it with:\n"
53345 		"\n"
53346 		"set_max_wildcard_expansion(max_expansion,\n"
53347 		"Xapian::Query::WILDCARD_LIMIT_ERROR,\n"
53348 		"Xapian::QueryParser::FLAG_WILDCARD); \n"
53349 		""},
53350 	 { (char *)"QueryParser_parse_query", _wrap_QueryParser_parse_query, METH_VARARGS, (char *)"\n"
53351 		"\n"
53352 		"\n"
53353 		"Parse a query.\n"
53354 		"\n"
53355 		"Query Xapian::QueryParser::parse_query(const std::string\n"
53356 		"&query_string, unsigned flags=FLAG_DEFAULT, const std::string\n"
53357 		"&default_prefix=std::string())\n"
53358 		"\n"
53359 		"Parameters:\n"
53360 		"-----------\n"
53361 		"\n"
53362 		"query_string:  A free-text query as entered by a user\n"
53363 		"\n"
53364 		"flags:  Zero or more QueryParser::feature_flag specifying what\n"
53365 		"features the QueryParser should support. Combine multiple values with\n"
53366 		"bitwise-or (|) (default FLAG_DEFAULT).\n"
53367 		"\n"
53368 		"default_prefix:  The default term prefix to use (default none). For\n"
53369 		"example, you can pass \"A\" when parsing an \"Author\" field.\n"
53370 		"\n"
53371 		"Parameters:\n"
53372 		"-----------\n"
53373 		"\n"
53374 		"If:  the query string can't be parsed, then Xapian::QueryParserError\n"
53375 		"is thrown. You can get an English error message to report to the user\n"
53376 		"by catching it and calling get_msg() on the caught exception. The\n"
53377 		"current possible values (in case you want to translate them) are:\n"
53378 		"\n"
53379 		"Unknown range operation\n"
53380 		"\n"
53381 		"parse error\n"
53382 		"\n"
53383 		"Syntax: <expression> AND <expression>\n"
53384 		"\n"
53385 		"Syntax: <expression> AND NOT <expression>\n"
53386 		"\n"
53387 		"Syntax: <expression> NOT <expression>\n"
53388 		"\n"
53389 		"Syntax: <expression> OR <expression>\n"
53390 		"\n"
53391 		"Syntax: <expression> XOR <expression> \n"
53392 		""},
53393 	 { (char *)"QueryParser_add_prefix", _wrap_QueryParser_add_prefix, METH_VARARGS, (char *)"\n"
53394 		"\n"
53395 		"\n"
53396 		"Register a FieldProcessor.\n"
53397 		"\n"
53398 		"void Xapian::QueryParser::add_prefix(const std::string &field,\n"
53399 		"Xapian::FieldProcessor *proc) \n"
53400 		""},
53401 	 { (char *)"QueryParser_add_boolean_prefix", _wrap_QueryParser_add_boolean_prefix, METH_VARARGS, (char *)"\n"
53402 		"\n"
53403 		"\n"
53404 		"Register a FieldProcessor for a boolean prefix.\n"
53405 		"\n"
53406 		"void Xapian::QueryParser::add_boolean_prefix(const std::string &field,\n"
53407 		"Xapian::FieldProcessor *proc, bool exclusive)\n"
53408 		"\n"
53409 		"This is an older version of this method - use the version with the\n"
53410 		"grouping parameter in preference to this one. \n"
53411 		""},
53412 	 { (char *)"QueryParser__stoplist_begin", (PyCFunction)_wrap_QueryParser__stoplist_begin, METH_O, (char *)"\n"
53413 		"\n"
53414 		"\n"
53415 		"Begin iterator over terms omitted from the query as stopwords.\n"
53416 		"\n"
53417 		"TermIterator Xapian::QueryParser::stoplist_begin() const \n"
53418 		""},
53419 	 { (char *)"QueryParser__stoplist_end", (PyCFunction)_wrap_QueryParser__stoplist_end, METH_O, (char *)"\n"
53420 		"\n"
53421 		"\n"
53422 		"End iterator over terms omitted from the query as stopwords.\n"
53423 		"\n"
53424 		"TermIterator Xapian::QueryParser::stoplist_end() const \n"
53425 		""},
53426 	 { (char *)"QueryParser__unstem_begin", _wrap_QueryParser__unstem_begin, METH_VARARGS, (char *)"\n"
53427 		"\n"
53428 		"\n"
53429 		"Begin iterator over unstemmed forms of the given stemmed query term.\n"
53430 		"\n"
53431 		"TermIterator Xapian::QueryParser::unstem_begin(const std::string\n"
53432 		"&term) const \n"
53433 		""},
53434 	 { (char *)"QueryParser__unstem_end", _wrap_QueryParser__unstem_end, METH_VARARGS, (char *)"\n"
53435 		"\n"
53436 		"\n"
53437 		"End iterator over unstemmed forms of the given stemmed query term.\n"
53438 		"\n"
53439 		"TermIterator Xapian::QueryParser::unstem_end(const std::string &)\n"
53440 		"const \n"
53441 		""},
53442 	 { (char *)"QueryParser_add_rangeprocessor", _wrap_QueryParser_add_rangeprocessor, METH_VARARGS, (char *)"\n"
53443 		"\n"
53444 		"\n"
53445 		"Register a RangeProcessor.\n"
53446 		"\n"
53447 		"void Xapian::QueryParser::add_rangeprocessor(Xapian::RangeProcessor\n"
53448 		"*range_proc, const std::string *grouping=NULL) \n"
53449 		""},
53450 	 { (char *)"QueryParser_add_valuerangeprocessor", _wrap_QueryParser_add_valuerangeprocessor, METH_VARARGS, (char *)"\n"
53451 		"\n"
53452 		"\n"
53453 		"Register a ValueRangeProcessor.\n"
53454 		"\n"
53455 		"void\n"
53456 		"Xapian::QueryParser::add_valuerangeprocessor(Xapian::ValueRangeProcessor\n"
53457 		"*vrproc)\n"
53458 		"\n"
53459 		"This method is provided for API compatibility with Xapian 1.2.x and is\n"
53460 		"deprecated - use  add_rangeprocessor() with a RangeProcessor instead.\n"
53461 		"\n"
53462 		"Compatibility shim. \n"
53463 		""},
53464 	 { (char *)"QueryParser_get_corrected_query_string", (PyCFunction)_wrap_QueryParser_get_corrected_query_string, METH_O, (char *)"\n"
53465 		"\n"
53466 		"\n"
53467 		"Get the spelling-corrected query string.\n"
53468 		"\n"
53469 		"std::string Xapian::QueryParser::get_corrected_query_string() const\n"
53470 		"\n"
53471 		"This will only be set if FLAG_SPELLING_CORRECTION is specified when\n"
53472 		"QueryParser::parse_query() was last called.\n"
53473 		"\n"
53474 		"If there were no corrections, an empty string is returned. \n"
53475 		""},
53476 	 { (char *)"QueryParser___str__", (PyCFunction)_wrap_QueryParser___str__, METH_O, (char *)"\n"
53477 		"\n"
53478 		"\n"
53479 		"Return a string describing this object.\n"
53480 		"\n"
53481 		"std::string Xapian::QueryParser::get_description() const \n"
53482 		""},
53483 	 { (char *)"QueryParser_swigregister", QueryParser_swigregister, METH_VARARGS, NULL},
53484 	 { (char *)"QueryParser_swiginit", QueryParser_swiginit, METH_VARARGS, NULL},
53485 	 { (char *)"sortable_serialise", (PyCFunction)_wrap_sortable_serialise, METH_O, NULL},
53486 	 { (char *)"sortable_unserialise", (PyCFunction)_wrap_sortable_unserialise, METH_O, NULL},
53487 	 { (char *)"new_ValueSetMatchDecider", _wrap_new_ValueSetMatchDecider, METH_VARARGS, (char *)"\n"
53488 		"\n"
53489 		"\n"
53490 		"Construct a ValueSetMatchDecider.\n"
53491 		"\n"
53492 		"Xapian::ValueSetMatchDecider::ValueSetMatchDecider(Xapian::valueno\n"
53493 		"slot, bool inclusive_)\n"
53494 		"\n"
53495 		"Parameters:\n"
53496 		"-----------\n"
53497 		"\n"
53498 		"slot:  The value slot number to look in.\n"
53499 		"\n"
53500 		"inclusive_:  If true, match decider accepts documents which have a\n"
53501 		"value in the specified slot which is a member of the test set; if\n"
53502 		"false, match decider accepts documents which do not have a value in\n"
53503 		"the specified slot. \n"
53504 		""},
53505 	 { (char *)"ValueSetMatchDecider_add_value", _wrap_ValueSetMatchDecider_add_value, METH_VARARGS, (char *)"\n"
53506 		"\n"
53507 		"\n"
53508 		"Add a value to the test set.\n"
53509 		"\n"
53510 		"void Xapian::ValueSetMatchDecider::add_value(const std::string &value)\n"
53511 		"\n"
53512 		"Parameters:\n"
53513 		"-----------\n"
53514 		"\n"
53515 		"value:  The value to add to the test set. \n"
53516 		""},
53517 	 { (char *)"ValueSetMatchDecider_remove_value", _wrap_ValueSetMatchDecider_remove_value, METH_VARARGS, (char *)"\n"
53518 		"\n"
53519 		"\n"
53520 		"Remove a value from the test set.\n"
53521 		"\n"
53522 		"void Xapian::ValueSetMatchDecider::remove_value(const std::string\n"
53523 		"&value)\n"
53524 		"\n"
53525 		"Parameters:\n"
53526 		"-----------\n"
53527 		"\n"
53528 		"value:  The value to remove from the test set. \n"
53529 		""},
53530 	 { (char *)"delete_ValueSetMatchDecider", (PyCFunction)_wrap_delete_ValueSetMatchDecider, METH_O, NULL},
53531 	 { (char *)"ValueSetMatchDecider_swigregister", ValueSetMatchDecider_swigregister, METH_VARARGS, NULL},
53532 	 { (char *)"ValueSetMatchDecider_swiginit", ValueSetMatchDecider_swiginit, METH_VARARGS, NULL},
53533 	 { (char *)"delete_Weight", (PyCFunction)_wrap_delete_Weight, METH_O, (char *)"\n"
53534 		"\n"
53535 		"\n"
53536 		"Virtual destructor, because we have virtual methods.\n"
53537 		"\n"
53538 		"virtual Xapian::Weight::~Weight() \n"
53539 		""},
53540 	 { (char *)"Weight_name", (PyCFunction)_wrap_Weight_name, METH_O, (char *)"\n"
53541 		"\n"
53542 		"\n"
53543 		"Return the name of this weighting scheme.\n"
53544 		"\n"
53545 		"virtual std::string Xapian::Weight::name() const\n"
53546 		"\n"
53547 		"This name is used by the remote backend. It is passed along with the\n"
53548 		"serialised parameters to the remote server so that it knows which\n"
53549 		"class to create.\n"
53550 		"\n"
53551 		"Return the full namespace-qualified name of your class here - if your\n"
53552 		"class is called FooWeight, return \"FooWeight\" from this method (\n"
53553 		"Xapian::BM25Weight returns \"Xapian::BM25Weight\" here).\n"
53554 		"\n"
53555 		"If you don't want to support the remote backend, you can use the\n"
53556 		"default implementation which simply returns an empty string. \n"
53557 		""},
53558 	 { (char *)"Weight_get_sumpart", _wrap_Weight_get_sumpart, METH_VARARGS, (char *)"\n"
53559 		"\n"
53560 		"\n"
53561 		"Calculate the weight contribution for this object's term to a\n"
53562 		"document.\n"
53563 		"\n"
53564 		"virtual double Xapian::Weight::get_sumpart(Xapian::termcount wdf,\n"
53565 		"Xapian::termcount doclen, Xapian::termcount uniqterms) const =0\n"
53566 		"\n"
53567 		"The parameters give information about the document which may be used\n"
53568 		"in the calculations:\n"
53569 		"\n"
53570 		"Parameters:\n"
53571 		"-----------\n"
53572 		"\n"
53573 		"wdf:  The within document frequency of the term in the document.\n"
53574 		"\n"
53575 		"doclen:  The document's length (unnormalised).\n"
53576 		"\n"
53577 		"uniqterms:  Number of unique terms in the document (used for absolute\n"
53578 		"smoothing). \n"
53579 		""},
53580 	 { (char *)"Weight_get_maxpart", (PyCFunction)_wrap_Weight_get_maxpart, METH_O, (char *)"\n"
53581 		"\n"
53582 		"\n"
53583 		"Return an upper bound on what get_sumpart() can return for any\n"
53584 		"document.\n"
53585 		"\n"
53586 		"virtual double Xapian::Weight::get_maxpart() const =0\n"
53587 		"\n"
53588 		"This information is used by the matcher to perform various\n"
53589 		"optimisations, so strive to make the bound as tight as possible. \n"
53590 		""},
53591 	 { (char *)"Weight_get_sumextra", _wrap_Weight_get_sumextra, METH_VARARGS, (char *)"\n"
53592 		"\n"
53593 		"\n"
53594 		"Calculate the term-independent weight component for a document.\n"
53595 		"\n"
53596 		"virtual double Xapian::Weight::get_sumextra(Xapian::termcount doclen,\n"
53597 		"Xapian::termcount uniqterms) const =0\n"
53598 		"\n"
53599 		"The parameter gives information about the document which may be used\n"
53600 		"in the calculations:\n"
53601 		"\n"
53602 		"Parameters:\n"
53603 		"-----------\n"
53604 		"\n"
53605 		"doclen:  The document's length (unnormalised).\n"
53606 		"\n"
53607 		"uniqterms:  The number of unique terms in the document. \n"
53608 		""},
53609 	 { (char *)"Weight_get_maxextra", (PyCFunction)_wrap_Weight_get_maxextra, METH_O, (char *)"\n"
53610 		"\n"
53611 		"\n"
53612 		"Return an upper bound on what get_sumextra() can return for any\n"
53613 		"document.\n"
53614 		"\n"
53615 		"virtual double Xapian::Weight::get_maxextra() const =0\n"
53616 		"\n"
53617 		"This information is used by the matcher to perform various\n"
53618 		"optimisations, so strive to make the bound as tight as possible. \n"
53619 		""},
53620 	 { (char *)"Weight_swigregister", Weight_swigregister, METH_VARARGS, NULL},
53621 	 { (char *)"new_BoolWeight", (PyCFunction)_wrap_new_BoolWeight, METH_NOARGS, (char *)"\n"
53622 		"\n"
53623 		"\n"
53624 		"Construct a BoolWeight.\n"
53625 		"\n"
53626 		"Xapian::BoolWeight::BoolWeight() \n"
53627 		""},
53628 	 { (char *)"delete_BoolWeight", (PyCFunction)_wrap_delete_BoolWeight, METH_O, NULL},
53629 	 { (char *)"BoolWeight_swigregister", BoolWeight_swigregister, METH_VARARGS, NULL},
53630 	 { (char *)"BoolWeight_swiginit", BoolWeight_swiginit, METH_VARARGS, NULL},
53631 	 { (char *)"new_TfIdfWeight", _wrap_new_TfIdfWeight, METH_VARARGS, (char *)"\n"
53632 		"\n"
53633 		"\n"
53634 		"Construct a TfIdfWeight using the default normalizations (\"ntn\").\n"
53635 		"\n"
53636 		"Xapian::TfIdfWeight::TfIdfWeight() \n"
53637 		""},
53638 	 { (char *)"delete_TfIdfWeight", (PyCFunction)_wrap_delete_TfIdfWeight, METH_O, NULL},
53639 	 { (char *)"TfIdfWeight_swigregister", TfIdfWeight_swigregister, METH_VARARGS, NULL},
53640 	 { (char *)"TfIdfWeight_swiginit", TfIdfWeight_swiginit, METH_VARARGS, NULL},
53641 	 { (char *)"new_BM25Weight", _wrap_new_BM25Weight, METH_VARARGS, (char *)"Xapian::BM25Weight::BM25Weight() "},
53642 	 { (char *)"delete_BM25Weight", (PyCFunction)_wrap_delete_BM25Weight, METH_O, NULL},
53643 	 { (char *)"BM25Weight_swigregister", BM25Weight_swigregister, METH_VARARGS, NULL},
53644 	 { (char *)"BM25Weight_swiginit", BM25Weight_swiginit, METH_VARARGS, NULL},
53645 	 { (char *)"new_BM25PlusWeight", _wrap_new_BM25PlusWeight, METH_VARARGS, (char *)"Xapian::BM25PlusWeight::BM25PlusWeight() "},
53646 	 { (char *)"delete_BM25PlusWeight", (PyCFunction)_wrap_delete_BM25PlusWeight, METH_O, NULL},
53647 	 { (char *)"BM25PlusWeight_swigregister", BM25PlusWeight_swigregister, METH_VARARGS, NULL},
53648 	 { (char *)"BM25PlusWeight_swiginit", BM25PlusWeight_swiginit, METH_VARARGS, NULL},
53649 	 { (char *)"new_TradWeight", _wrap_new_TradWeight, METH_VARARGS, (char *)"\n"
53650 		"\n"
53651 		"\n"
53652 		"Construct a TradWeight.\n"
53653 		"\n"
53654 		"Xapian::TradWeight::TradWeight(double k=1.0)\n"
53655 		"\n"
53656 		"Parameters:\n"
53657 		"-----------\n"
53658 		"\n"
53659 		"k:  A non-negative parameter controlling how influential within-\n"
53660 		"document- frequency (wdf) and document length are. k=0 means that wdf\n"
53661 		"and document length don't affect the weights. The larger k is, the\n"
53662 		"more they do. (default 1) \n"
53663 		""},
53664 	 { (char *)"delete_TradWeight", (PyCFunction)_wrap_delete_TradWeight, METH_O, NULL},
53665 	 { (char *)"TradWeight_swigregister", TradWeight_swigregister, METH_VARARGS, NULL},
53666 	 { (char *)"TradWeight_swiginit", TradWeight_swiginit, METH_VARARGS, NULL},
53667 	 { (char *)"new_InL2Weight", _wrap_new_InL2Weight, METH_VARARGS, (char *)"Xapian::InL2Weight::InL2Weight() "},
53668 	 { (char *)"delete_InL2Weight", (PyCFunction)_wrap_delete_InL2Weight, METH_O, NULL},
53669 	 { (char *)"InL2Weight_swigregister", InL2Weight_swigregister, METH_VARARGS, NULL},
53670 	 { (char *)"InL2Weight_swiginit", InL2Weight_swiginit, METH_VARARGS, NULL},
53671 	 { (char *)"new_IfB2Weight", _wrap_new_IfB2Weight, METH_VARARGS, (char *)"Xapian::IfB2Weight::IfB2Weight() "},
53672 	 { (char *)"delete_IfB2Weight", (PyCFunction)_wrap_delete_IfB2Weight, METH_O, NULL},
53673 	 { (char *)"IfB2Weight_swigregister", IfB2Weight_swigregister, METH_VARARGS, NULL},
53674 	 { (char *)"IfB2Weight_swiginit", IfB2Weight_swiginit, METH_VARARGS, NULL},
53675 	 { (char *)"new_IneB2Weight", _wrap_new_IneB2Weight, METH_VARARGS, (char *)"Xapian::IneB2Weight::IneB2Weight() "},
53676 	 { (char *)"delete_IneB2Weight", (PyCFunction)_wrap_delete_IneB2Weight, METH_O, NULL},
53677 	 { (char *)"IneB2Weight_swigregister", IneB2Weight_swigregister, METH_VARARGS, NULL},
53678 	 { (char *)"IneB2Weight_swiginit", IneB2Weight_swiginit, METH_VARARGS, NULL},
53679 	 { (char *)"new_BB2Weight", _wrap_new_BB2Weight, METH_VARARGS, (char *)"Xapian::BB2Weight::BB2Weight() "},
53680 	 { (char *)"delete_BB2Weight", (PyCFunction)_wrap_delete_BB2Weight, METH_O, NULL},
53681 	 { (char *)"BB2Weight_swigregister", BB2Weight_swigregister, METH_VARARGS, NULL},
53682 	 { (char *)"BB2Weight_swiginit", BB2Weight_swiginit, METH_VARARGS, NULL},
53683 	 { (char *)"new_DLHWeight", (PyCFunction)_wrap_new_DLHWeight, METH_NOARGS, (char *)"Xapian::DLHWeight::DLHWeight() "},
53684 	 { (char *)"delete_DLHWeight", (PyCFunction)_wrap_delete_DLHWeight, METH_O, NULL},
53685 	 { (char *)"DLHWeight_swigregister", DLHWeight_swigregister, METH_VARARGS, NULL},
53686 	 { (char *)"DLHWeight_swiginit", DLHWeight_swiginit, METH_VARARGS, NULL},
53687 	 { (char *)"new_PL2Weight", _wrap_new_PL2Weight, METH_VARARGS, (char *)"Xapian::PL2Weight::PL2Weight() "},
53688 	 { (char *)"delete_PL2Weight", (PyCFunction)_wrap_delete_PL2Weight, METH_O, NULL},
53689 	 { (char *)"PL2Weight_swigregister", PL2Weight_swigregister, METH_VARARGS, NULL},
53690 	 { (char *)"PL2Weight_swiginit", PL2Weight_swiginit, METH_VARARGS, NULL},
53691 	 { (char *)"new_PL2PlusWeight", _wrap_new_PL2PlusWeight, METH_VARARGS, (char *)"Xapian::PL2PlusWeight::PL2PlusWeight() "},
53692 	 { (char *)"delete_PL2PlusWeight", (PyCFunction)_wrap_delete_PL2PlusWeight, METH_O, NULL},
53693 	 { (char *)"PL2PlusWeight_swigregister", PL2PlusWeight_swigregister, METH_VARARGS, NULL},
53694 	 { (char *)"PL2PlusWeight_swiginit", PL2PlusWeight_swiginit, METH_VARARGS, NULL},
53695 	 { (char *)"new_DPHWeight", (PyCFunction)_wrap_new_DPHWeight, METH_NOARGS, (char *)"\n"
53696 		"\n"
53697 		"\n"
53698 		"Construct a DPHWeight.\n"
53699 		"\n"
53700 		"Xapian::DPHWeight::DPHWeight() \n"
53701 		""},
53702 	 { (char *)"delete_DPHWeight", (PyCFunction)_wrap_delete_DPHWeight, METH_O, NULL},
53703 	 { (char *)"DPHWeight_swigregister", DPHWeight_swigregister, METH_VARARGS, NULL},
53704 	 { (char *)"DPHWeight_swiginit", DPHWeight_swiginit, METH_VARARGS, NULL},
53705 	 { (char *)"new_LMWeight", _wrap_new_LMWeight, METH_VARARGS, (char *)"\n"
53706 		"\n"
53707 		"\n"
53708 		"Construct a LMWeight.\n"
53709 		"\n"
53710 		"Xapian::LMWeight::LMWeight(double param_log_=0.0, type_smoothing\n"
53711 		"select_smoothing_=TWO_STAGE_SMOOTHING, double param_smoothing1_=-1.0,\n"
53712 		"double param_smoothing2_=-1.0)\n"
53713 		"\n"
53714 		"Parameters:\n"
53715 		"-----------\n"
53716 		"\n"
53717 		"param_log_:  A non-negative parameter controlling how much to clamp\n"
53718 		"negative values returned by the log. The log is calculated by\n"
53719 		"multiplying the actual weight by param_log. If param_log is 0.0, then\n"
53720 		"the document length upper bound will be used (default: document length\n"
53721 		"upper bound)\n"
53722 		"\n"
53723 		"select_smoothing_:  A parameter of type enum type_smoothing. This\n"
53724 		"parameter controls which smoothing type to use. (default:\n"
53725 		"TWO_STAGE_SMOOTHING)\n"
53726 		"\n"
53727 		"param_smoothing1_:  A non-negative parameter for smoothing whose\n"
53728 		"meaning depends on select_smoothing_. In JELINEK_MERCER_SMOOTHING, it\n"
53729 		"plays the role of estimation and in DIRICHLET_SMOOTHING the role of\n"
53730 		"query modelling. (default JELINEK_MERCER, ABSOLUTE, TWOSTAGE(0.7),\n"
53731 		"DIRCHLET(2000))\n"
53732 		"\n"
53733 		"param_smoothing2_:  A non-negative parameter which is used with\n"
53734 		"TWO_STAGE_SMOOTHING as parameter for Dirichlet's smoothing (default:\n"
53735 		"2000) and as parameter delta to control the scale of the tf lower\n"
53736 		"bound in the DIRICHLET_PLUS_SMOOTHING (default 0.05). \n"
53737 		""},
53738 	 { (char *)"delete_LMWeight", (PyCFunction)_wrap_delete_LMWeight, METH_O, NULL},
53739 	 { (char *)"LMWeight_swigregister", LMWeight_swigregister, METH_VARARGS, NULL},
53740 	 { (char *)"LMWeight_swiginit", LMWeight_swiginit, METH_VARARGS, NULL},
53741 	 { (char *)"CoordWeight_init", _wrap_CoordWeight_init, METH_VARARGS, (char *)"\n"
53742 		"\n"
53743 		"\n"
53744 		"Allow the subclass to perform any initialisation it needs to.\n"
53745 		"\n"
53746 		"void Xapian::CoordWeight::init(double factor_)\n"
53747 		"\n"
53748 		"Parameters:\n"
53749 		"-----------\n"
53750 		"\n"
53751 		"factor:  Any scaling factor (e.g. from OP_SCALE_WEIGHT). If the Weight\n"
53752 		"object is for the term-independent weight supplied by\n"
53753 		"get_sumextra()/get_maxextra(), then init(0.0) is called (starting from\n"
53754 		"Xapian 1.2.11 and 1.3.1 - earlier versions failed to call init() for\n"
53755 		"such Weight objects). \n"
53756 		""},
53757 	 { (char *)"new_CoordWeight", (PyCFunction)_wrap_new_CoordWeight, METH_NOARGS, (char *)"\n"
53758 		"\n"
53759 		"\n"
53760 		"Construct a CoordWeight.\n"
53761 		"\n"
53762 		"Xapian::CoordWeight::CoordWeight() \n"
53763 		""},
53764 	 { (char *)"delete_CoordWeight", (PyCFunction)_wrap_delete_CoordWeight, METH_O, NULL},
53765 	 { (char *)"CoordWeight_swigregister", CoordWeight_swigregister, METH_VARARGS, NULL},
53766 	 { (char *)"CoordWeight_swiginit", CoordWeight_swiginit, METH_VARARGS, NULL},
53767 	 { (char *)"new_Compactor", (PyCFunction)_wrap_new_Compactor, METH_O, (char *)"Xapian::Compactor::Compactor() "},
53768 	 { (char *)"delete_Compactor", (PyCFunction)_wrap_delete_Compactor, METH_O, (char *)"\n"
53769 		"virtual\n"
53770 		"Xapian::Compactor::~Compactor() \n"
53771 		""},
53772 	 { (char *)"Compactor_set_block_size", _wrap_Compactor_set_block_size, METH_VARARGS, (char *)"\n"
53773 		"\n"
53774 		"\n"
53775 		"Set the block size to use for tables in the output database.\n"
53776 		"\n"
53777 		"void Xapian::Compactor::set_block_size(size_t block_size)\n"
53778 		"\n"
53779 		"Parameters:\n"
53780 		"-----------\n"
53781 		"\n"
53782 		"block_size:  The block size to use. Valid block sizes are currently\n"
53783 		"powers of two between 2048 and 65536, with the default being 8192, but\n"
53784 		"the valid sizes and default may change in the future. \n"
53785 		""},
53786 	 { (char *)"Compactor_set_renumber", _wrap_Compactor_set_renumber, METH_VARARGS, (char *)"\n"
53787 		"\n"
53788 		"\n"
53789 		"Set whether to preserve existing document id values.\n"
53790 		"\n"
53791 		"void Xapian::Compactor::set_renumber(bool renumber)\n"
53792 		"\n"
53793 		"Parameters:\n"
53794 		"-----------\n"
53795 		"\n"
53796 		"renumber:  The default is true, which means that document ids will be\n"
53797 		"renumbered - currently by applying the same offset to all the document\n"
53798 		"ids in a particular source database.\n"
53799 		"\n"
53800 		"If false, then the document ids must be unique over all source\n"
53801 		"databases. Currently the ranges of document ids in each source must\n"
53802 		"not overlap either, though this restriction may be removed in the\n"
53803 		"future. \n"
53804 		""},
53805 	 { (char *)"Compactor_set_multipass", _wrap_Compactor_set_multipass, METH_VARARGS, (char *)"\n"
53806 		"\n"
53807 		"\n"
53808 		"Set whether to merge postlists in multiple passes.\n"
53809 		"\n"
53810 		"void Xapian::Compactor::set_multipass(bool multipass)\n"
53811 		"\n"
53812 		"Parameters:\n"
53813 		"-----------\n"
53814 		"\n"
53815 		"multipass:  If true and merging more than 3 databases, merge the\n"
53816 		"postlists in multiple passes, which is generally faster but requires\n"
53817 		"more disk space for temporary files. By default we don't do this. \n"
53818 		""},
53819 	 { (char *)"Compactor_set_compaction_level", _wrap_Compactor_set_compaction_level, METH_VARARGS, (char *)"\n"
53820 		"\n"
53821 		"\n"
53822 		"Set the compaction level.\n"
53823 		"\n"
53824 		"void Xapian::Compactor::set_compaction_level(compaction_level\n"
53825 		"compaction)\n"
53826 		"\n"
53827 		"Parameters:\n"
53828 		"-----------\n"
53829 		"\n"
53830 		"compaction:  Available values are:  Xapian::Compactor::STANDARD -\n"
53831 		"Don't split items unnecessarily.\n"
53832 		"\n"
53833 		"Xapian::Compactor::FULL - Split items whenever it saves space (the\n"
53834 		"default).\n"
53835 		"\n"
53836 		"Xapian::Compactor::FULLER - Allow oversize items to save more space\n"
53837 		"(not recommended if you ever plan to update the compacted database).\n"
53838 		"\n"
53839 		""},
53840 	 { (char *)"Compactor_set_destdir", _wrap_Compactor_set_destdir, METH_VARARGS, (char *)"\n"
53841 		"\n"
53842 		"\n"
53843 		"Set where to write the output.\n"
53844 		"\n"
53845 		"void Xapian::Compactor::set_destdir(const std::string &destdir)\n"
53846 		"\n"
53847 		"Deprecated Use Database::compact(destdir[, compactor]) instead.\n"
53848 		"\n"
53849 		"Parameters:\n"
53850 		"-----------\n"
53851 		"\n"
53852 		"destdir:  Output path. This can be the same as an input if that input\n"
53853 		"is a stub database (in which case the database(s) listed in the stub\n"
53854 		"will be compacted to a new database and then the stub will be\n"
53855 		"atomically updated to point to this new database). \n"
53856 		""},
53857 	 { (char *)"Compactor_add_source", _wrap_Compactor_add_source, METH_VARARGS, (char *)"\n"
53858 		"\n"
53859 		"\n"
53860 		"Add a source database.\n"
53861 		"\n"
53862 		"void Xapian::Compactor::add_source(const std::string &srcdir)\n"
53863 		"\n"
53864 		"Deprecated Use Database::compact(destdir[, compactor]) instead.\n"
53865 		"\n"
53866 		"Parameters:\n"
53867 		"-----------\n"
53868 		"\n"
53869 		"srcdir:  The path to the source database to add. \n"
53870 		""},
53871 	 { (char *)"Compactor_compact", (PyCFunction)_wrap_Compactor_compact, METH_O, (char *)"\n"
53872 		"\n"
53873 		"\n"
53874 		"Perform the actual compaction/merging operation.\n"
53875 		"\n"
53876 		"void Xapian::Compactor::compact()\n"
53877 		"\n"
53878 		"Deprecated Use Database::compact(destdir[, compactor]) instead. \n"
53879 		""},
53880 	 { (char *)"Compactor_set_status", _wrap_Compactor_set_status, METH_VARARGS, (char *)"\n"
53881 		"\n"
53882 		"\n"
53883 		"Update progress.\n"
53884 		"\n"
53885 		"virtual void Xapian::Compactor::set_status(const std::string &table,\n"
53886 		"const std::string &status)\n"
53887 		"\n"
53888 		"Subclass this method if you want to get progress updates during\n"
53889 		"compaction. This is called for each table first with empty status, And\n"
53890 		"then one or more times with non-empty status.\n"
53891 		"\n"
53892 		"The default implementation does nothing.\n"
53893 		"\n"
53894 		"Parameters:\n"
53895 		"-----------\n"
53896 		"\n"
53897 		"table:  The table currently being compacted.\n"
53898 		"\n"
53899 		"status:  A status message. \n"
53900 		""},
53901 	 { (char *)"Compactor_resolve_duplicate_metadata", _wrap_Compactor_resolve_duplicate_metadata, METH_VARARGS, (char *)"\n"
53902 		"\n"
53903 		"\n"
53904 		"Resolve multiple user metadata entries with the same key.\n"
53905 		"\n"
53906 		"virtual std::string\n"
53907 		"Xapian::Compactor::resolve_duplicate_metadata(const std::string &key,\n"
53908 		"size_t num_tags, const std::string tags[])\n"
53909 		"\n"
53910 		"When merging, if the same user metadata key is set in more than one\n"
53911 		"input, then this method is called to allow this to be resolving in an\n"
53912 		"appropriate way.\n"
53913 		"\n"
53914 		"The default implementation just returns tags[0].\n"
53915 		"\n"
53916 		"For multipass this will currently get called multiple times for the\n"
53917 		"same key if there are duplicates to resolve in each pass, but this may\n"
53918 		"change in the future.\n"
53919 		"\n"
53920 		"Since 1.4.6, an implementation of this method can return an empty\n"
53921 		"string to indicate that the appropriate result is to not set a value\n"
53922 		"for this user metadata key in the output database. In older versions,\n"
53923 		"you should not return an empty string.\n"
53924 		"\n"
53925 		"Parameters:\n"
53926 		"-----------\n"
53927 		"\n"
53928 		"key:  The metadata key with duplicate entries.\n"
53929 		"\n"
53930 		"num_tags:  How many tags there are.\n"
53931 		"\n"
53932 		"tags:  An array of num_tags strings containing the tags to merge. \n"
53933 		""},
53934 	 { (char *)"disown_Compactor", (PyCFunction)_wrap_disown_Compactor, METH_O, NULL},
53935 	 { (char *)"Compactor_swigregister", Compactor_swigregister, METH_VARARGS, NULL},
53936 	 { (char *)"Compactor_swiginit", Compactor_swiginit, METH_VARARGS, NULL},
53937 	 { (char *)"new_PostingSource", (PyCFunction)_wrap_new_PostingSource, METH_O, (char *)"\n"
53938 		"\n"
53939 		"\n"
53940 		"Allow subclasses to be instantiated.\n"
53941 		"\n"
53942 		"Xapian::PostingSource::PostingSource() \n"
53943 		""},
53944 	 { (char *)"delete_PostingSource", (PyCFunction)_wrap_delete_PostingSource, METH_O, (char *)"\n"
53945 		"virtual\n"
53946 		"Xapian::PostingSource::~PostingSource() \n"
53947 		""},
53948 	 { (char *)"PostingSource_get_termfreq_min", (PyCFunction)_wrap_PostingSource_get_termfreq_min, METH_O, (char *)"\n"
53949 		"\n"
53950 		"\n"
53951 		"A lower bound on the number of documents this object can return.\n"
53952 		"\n"
53953 		"virtual Xapian::doccount Xapian::PostingSource::get_termfreq_min()\n"
53954 		"const =0\n"
53955 		"\n"
53956 		"Xapian will always call init() on a PostingSource before calling this\n"
53957 		"for the first time. \n"
53958 		""},
53959 	 { (char *)"PostingSource_get_termfreq_est", (PyCFunction)_wrap_PostingSource_get_termfreq_est, METH_O, (char *)"\n"
53960 		"\n"
53961 		"\n"
53962 		"An estimate of the number of documents this object can return.\n"
53963 		"\n"
53964 		"virtual Xapian::doccount Xapian::PostingSource::get_termfreq_est()\n"
53965 		"const =0\n"
53966 		"\n"
53967 		"It must always be true that:\n"
53968 		"\n"
53969 		"get_termfreq_min() <= get_termfreq_est() <= get_termfreq_max()\n"
53970 		"\n"
53971 		"Xapian will always call init() on a PostingSource before calling this\n"
53972 		"for the first time. \n"
53973 		""},
53974 	 { (char *)"PostingSource_get_termfreq_max", (PyCFunction)_wrap_PostingSource_get_termfreq_max, METH_O, (char *)"\n"
53975 		"\n"
53976 		"\n"
53977 		"An upper bound on the number of documents this object can return.\n"
53978 		"\n"
53979 		"virtual Xapian::doccount Xapian::PostingSource::get_termfreq_max()\n"
53980 		"const =0\n"
53981 		"\n"
53982 		"Xapian will always call init() on a PostingSource before calling this\n"
53983 		"for the first time. \n"
53984 		""},
53985 	 { (char *)"PostingSource_set_maxweight", _wrap_PostingSource_set_maxweight, METH_VARARGS, (char *)"\n"
53986 		"\n"
53987 		"\n"
53988 		"Specify an upper bound on what get_weight() will return from now on.\n"
53989 		"\n"
53990 		"void Xapian::PostingSource::set_maxweight(double max_weight)\n"
53991 		"\n"
53992 		"This upper bound is used by the matcher to perform various\n"
53993 		"optimisations, so if you can return a good bound, then matches will\n"
53994 		"generally run faster.\n"
53995 		"\n"
53996 		"This method should be called after calling init(), and may be called\n"
53997 		"during iteration if the upper bound drops. It is probably only useful\n"
53998 		"to call from subclasses (it was actually a \"protected\" method prior\n"
53999 		"to Xapian 1.3.4, but that makes it tricky to wrap for other\n"
54000 		"languages).\n"
54001 		"\n"
54002 		"It is valid for the posting source to have returned a higher value\n"
54003 		"from get_weight() earlier in the iteration, but the posting source\n"
54004 		"must not return a higher value from get_weight() than the currently\n"
54005 		"set upper bound, and the upper bound must not be increased (until\n"
54006 		"init() has been called).\n"
54007 		"\n"
54008 		"If you don't call this method, the upper bound will default to 0, for\n"
54009 		"convenience when implementing \"weight-less\" PostingSource\n"
54010 		"subclasses.\n"
54011 		"\n"
54012 		"Parameters:\n"
54013 		"-----------\n"
54014 		"\n"
54015 		"max_weight:  The upper bound to set. \n"
54016 		""},
54017 	 { (char *)"PostingSource_get_maxweight", (PyCFunction)_wrap_PostingSource_get_maxweight, METH_O, (char *)"\n"
54018 		"\n"
54019 		"\n"
54020 		"Return the currently set upper bound on what get_weight() can return.\n"
54021 		"\n"
54022 		"double Xapian::PostingSource::get_maxweight() const \n"
54023 		""},
54024 	 { (char *)"PostingSource_get_weight", (PyCFunction)_wrap_PostingSource_get_weight, METH_O, (char *)"\n"
54025 		"\n"
54026 		"\n"
54027 		"Return the weight contribution for the current document.\n"
54028 		"\n"
54029 		"virtual double Xapian::PostingSource::get_weight() const\n"
54030 		"\n"
54031 		"This default implementation always returns 0, for convenience when\n"
54032 		"implementing \"weight-less\" PostingSource subclasses.\n"
54033 		"\n"
54034 		"This method may assume that it will only be called when there is a\n"
54035 		"\"current document\". In detail: Xapian will always call init() on a\n"
54036 		"PostingSource before calling this for the first time. It will also\n"
54037 		"only call this if the PostingSource reports that it is pointing to a\n"
54038 		"valid document (ie, it will not call it before calling at least one of\n"
54039 		"next(), skip_to() or check(), and will ensure that the PostingSource\n"
54040 		"is not at the end by calling at_end()). \n"
54041 		""},
54042 	 { (char *)"PostingSource_get_docid", (PyCFunction)_wrap_PostingSource_get_docid, METH_O, (char *)"\n"
54043 		"\n"
54044 		"\n"
54045 		"Return the current docid.\n"
54046 		"\n"
54047 		"virtual Xapian::docid Xapian::PostingSource::get_docid() const =0\n"
54048 		"\n"
54049 		"This method may assume that it will only be called when there is a\n"
54050 		"\"current document\". See  get_weight() for details.\n"
54051 		"\n"
54052 		"Note: in the case of a multi-database search, the returned docid\n"
54053 		"should be in the single subdatabase relevant to this posting source.\n"
54054 		"See the  init() method for details. \n"
54055 		""},
54056 	 { (char *)"PostingSource_next", _wrap_PostingSource_next, METH_VARARGS, (char *)"\n"
54057 		"\n"
54058 		"\n"
54059 		"Advance the current position to the next matching document.\n"
54060 		"\n"
54061 		"virtual void Xapian::PostingSource::next(double min_wt)=0\n"
54062 		"\n"
54063 		"The PostingSource starts before the first entry in the list, so\n"
54064 		"next(), skip_to() or check() must be called before any methods which\n"
54065 		"need the context of the current position.\n"
54066 		"\n"
54067 		"Xapian will always call init() on a PostingSource before calling this\n"
54068 		"for the first time.\n"
54069 		"\n"
54070 		"Parameters:\n"
54071 		"-----------\n"
54072 		"\n"
54073 		"min_wt:  The minimum weight contribution that is needed (this is just\n"
54074 		"a hint which subclasses may ignore). \n"
54075 		""},
54076 	 { (char *)"PostingSource_skip_to", _wrap_PostingSource_skip_to, METH_VARARGS, (char *)"\n"
54077 		"\n"
54078 		"\n"
54079 		"Advance to the specified docid.\n"
54080 		"\n"
54081 		"virtual void Xapian::PostingSource::skip_to(Xapian::docid did, double\n"
54082 		"min_wt)\n"
54083 		"\n"
54084 		"If the specified docid isn't in the list, position ourselves on the\n"
54085 		"first document after it (or at_end() if no greater docids are\n"
54086 		"present).\n"
54087 		"\n"
54088 		"If the current position is already the specified docid, this method\n"
54089 		"will leave the position unmodified.\n"
54090 		"\n"
54091 		"If the specified docid is earlier than the current position, the\n"
54092 		"behaviour is unspecified. A sensible behaviour would be to leave the\n"
54093 		"current position unmodified, but it is also reasonable to move to the\n"
54094 		"specified docid.\n"
54095 		"\n"
54096 		"The default implementation calls next() repeatedly, which works but\n"
54097 		"skip_to() can often be implemented much more efficiently.\n"
54098 		"\n"
54099 		"Xapian will always call init() on a PostingSource before calling this\n"
54100 		"for the first time.\n"
54101 		"\n"
54102 		"Note: in the case of a multi-database search, the docid specified is\n"
54103 		"the docid in the single subdatabase relevant to this posting source.\n"
54104 		"See the  init() method for details.\n"
54105 		"\n"
54106 		"Parameters:\n"
54107 		"-----------\n"
54108 		"\n"
54109 		"did:  The document id to advance to.\n"
54110 		"\n"
54111 		"min_wt:  The minimum weight contribution that is needed (this is just\n"
54112 		"a hint which subclasses may ignore). \n"
54113 		""},
54114 	 { (char *)"PostingSource_check", _wrap_PostingSource_check, METH_VARARGS, (char *)"\n"
54115 		"\n"
54116 		"\n"
54117 		"Check if the specified docid occurs.\n"
54118 		"\n"
54119 		"virtual bool Xapian::PostingSource::check(Xapian::docid did, double\n"
54120 		"min_wt)\n"
54121 		"\n"
54122 		"The caller is required to ensure that the specified document id did\n"
54123 		"actually exists in the database. If it does, it must move to that\n"
54124 		"document id, and return true. If it does not, it may either:\n"
54125 		"\n"
54126 		"return true, having moved to a definite position (including\n"
54127 		"\"at_end\"), which must be the same position as skip_to() would have\n"
54128 		"moved to.\n"
54129 		"\n"
54130 		"or\n"
54131 		"\n"
54132 		"return false, having moved to an \"indeterminate\" position, such that\n"
54133 		"a subsequent call to next() or skip_to() will move to the next\n"
54134 		"matching position after did.\n"
54135 		"\n"
54136 		"Generally, this method should act like skip_to() and return true if\n"
54137 		"that can be done at little extra cost.\n"
54138 		"\n"
54139 		"Otherwise it should simply check if a particular docid is present,\n"
54140 		"returning true if it is, and false if it isn't.\n"
54141 		"\n"
54142 		"The default implementation calls skip_to() and always returns true.\n"
54143 		"\n"
54144 		"Xapian will always call init() on a PostingSource before calling this\n"
54145 		"for the first time.\n"
54146 		"\n"
54147 		"Note: in the case of a multi-database search, the docid specified is\n"
54148 		"the docid in the single subdatabase relevant to this posting source.\n"
54149 		"See the  init() method for details.\n"
54150 		"\n"
54151 		"Parameters:\n"
54152 		"-----------\n"
54153 		"\n"
54154 		"did:  The document id to check.\n"
54155 		"\n"
54156 		"min_wt:  The minimum weight contribution that is needed (this is just\n"
54157 		"a hint which subclasses may ignore). \n"
54158 		""},
54159 	 { (char *)"PostingSource_at_end", (PyCFunction)_wrap_PostingSource_at_end, METH_O, (char *)"\n"
54160 		"\n"
54161 		"\n"
54162 		"Return true if the current position is past the last entry in this\n"
54163 		"list.\n"
54164 		"\n"
54165 		"virtual bool Xapian::PostingSource::at_end() const =0\n"
54166 		"\n"
54167 		"At least one of  next(),  skip_to() or  check() will be called before\n"
54168 		"this method is first called. \n"
54169 		""},
54170 	 { (char *)"PostingSource_name", (PyCFunction)_wrap_PostingSource_name, METH_O, (char *)"\n"
54171 		"\n"
54172 		"\n"
54173 		"Name of the posting source class.\n"
54174 		"\n"
54175 		"virtual std::string Xapian::PostingSource::name() const\n"
54176 		"\n"
54177 		"This is used when serialising and unserialising posting sources; for\n"
54178 		"example, for performing remote searches.\n"
54179 		"\n"
54180 		"If the subclass is in a C++ namespace, the namespace should be\n"
54181 		"included in the name, using \"::\" as a separator. For example, for a\n"
54182 		"PostingSource subclass called \"FooPostingSource\" in the \"Xapian\"\n"
54183 		"namespace the result of this call should be\n"
54184 		"\"Xapian::FooPostingSource\".\n"
54185 		"\n"
54186 		"This should only be implemented if serialise() and unserialise() are\n"
54187 		"also implemented. The default implementation returns an empty string.\n"
54188 		"\n"
54189 		"If this returns an empty string, Xapian will assume that serialise()\n"
54190 		"and unserialise() are not implemented. \n"
54191 		""},
54192 	 { (char *)"PostingSource_init", _wrap_PostingSource_init, METH_VARARGS, (char *)"\n"
54193 		"\n"
54194 		"\n"
54195 		"Set this PostingSource to the start of the list of postings.\n"
54196 		"\n"
54197 		"virtual void Xapian::PostingSource::init(const Database &db)=0\n"
54198 		"\n"
54199 		"This is called automatically by the matcher prior to each query being\n"
54200 		"processed.\n"
54201 		"\n"
54202 		"If a PostingSource is used for multiple searches,  init() will\n"
54203 		"therefore be called multiple times, and must handle this by using the\n"
54204 		"database passed in the most recent call.\n"
54205 		"\n"
54206 		"Parameters:\n"
54207 		"-----------\n"
54208 		"\n"
54209 		"db:  The database which the PostingSource should iterate through.\n"
54210 		"\n"
54211 		"Note: in the case of a multi-database search, a separate PostingSource\n"
54212 		"will be used for each database (the separate PostingSources will be\n"
54213 		"obtained using  clone()), and each PostingSource will be passed one of\n"
54214 		"the sub-databases as the db parameter here. The db parameter will\n"
54215 		"therefore always refer to a single database. All docids passed to, or\n"
54216 		"returned from, the PostingSource refer to docids in that single\n"
54217 		"database, rather than in the multi- database. \n"
54218 		""},
54219 	 { (char *)"PostingSource___str__", (PyCFunction)_wrap_PostingSource___str__, METH_O, (char *)"\n"
54220 		"\n"
54221 		"\n"
54222 		"Return a string describing this object.\n"
54223 		"\n"
54224 		"virtual std::string Xapian::PostingSource::get_description() const\n"
54225 		"\n"
54226 		"This default implementation returns a generic answer. This default it\n"
54227 		"provided to avoid forcing those deriving their own PostingSource\n"
54228 		"subclass from having to implement this (they may not care what\n"
54229 		"get_description() gives for their subclass). \n"
54230 		""},
54231 	 { (char *)"PostingSource_release", (PyCFunction)_wrap_PostingSource_release, METH_O, (char *)"\n"
54232 		"\n"
54233 		"\n"
54234 		"Start reference counting this object.\n"
54235 		"\n"
54236 		"const PostingSource* Xapian::PostingSource::release() const\n"
54237 		"\n"
54238 		"You can hand ownership of a dynamically allocated PostingSource object\n"
54239 		"to Xapian by calling release() and then passing the object to a Xapian\n"
54240 		"method. Xapian will arrange to delete the object once it is no longer\n"
54241 		"required. \n"
54242 		""},
54243 	 { (char *)"disown_PostingSource", (PyCFunction)_wrap_disown_PostingSource, METH_O, NULL},
54244 	 { (char *)"PostingSource_swigregister", PostingSource_swigregister, METH_VARARGS, NULL},
54245 	 { (char *)"PostingSource_swiginit", PostingSource_swiginit, METH_VARARGS, NULL},
54246 	 { (char *)"new_ValuePostingSource", _wrap_new_ValuePostingSource, METH_VARARGS, (char *)"\n"
54247 		"\n"
54248 		"\n"
54249 		"Construct a ValuePostingSource.\n"
54250 		"\n"
54251 		"Xapian::ValuePostingSource::ValuePostingSource(Xapian::valueno slot_)\n"
54252 		"\n"
54253 		"Parameters:\n"
54254 		"-----------\n"
54255 		"\n"
54256 		"slot_:  The value slot to read values from. \n"
54257 		""},
54258 	 { (char *)"ValuePostingSource_get_termfreq_min", (PyCFunction)_wrap_ValuePostingSource_get_termfreq_min, METH_O, (char *)"\n"
54259 		"\n"
54260 		"\n"
54261 		"A lower bound on the number of documents this object can return.\n"
54262 		"\n"
54263 		"Xapian::doccount Xapian::ValuePostingSource::get_termfreq_min() const\n"
54264 		"\n"
54265 		"Xapian will always call init() on a PostingSource before calling this\n"
54266 		"for the first time. \n"
54267 		""},
54268 	 { (char *)"ValuePostingSource_get_termfreq_est", (PyCFunction)_wrap_ValuePostingSource_get_termfreq_est, METH_O, (char *)"\n"
54269 		"\n"
54270 		"\n"
54271 		"An estimate of the number of documents this object can return.\n"
54272 		"\n"
54273 		"Xapian::doccount Xapian::ValuePostingSource::get_termfreq_est() const\n"
54274 		"\n"
54275 		"It must always be true that:\n"
54276 		"\n"
54277 		"get_termfreq_min() <= get_termfreq_est() <= get_termfreq_max()\n"
54278 		"\n"
54279 		"Xapian will always call init() on a PostingSource before calling this\n"
54280 		"for the first time. \n"
54281 		""},
54282 	 { (char *)"ValuePostingSource_get_termfreq_max", (PyCFunction)_wrap_ValuePostingSource_get_termfreq_max, METH_O, (char *)"\n"
54283 		"\n"
54284 		"\n"
54285 		"An upper bound on the number of documents this object can return.\n"
54286 		"\n"
54287 		"Xapian::doccount Xapian::ValuePostingSource::get_termfreq_max() const\n"
54288 		"\n"
54289 		"Xapian will always call init() on a PostingSource before calling this\n"
54290 		"for the first time. \n"
54291 		""},
54292 	 { (char *)"ValuePostingSource_next", _wrap_ValuePostingSource_next, METH_VARARGS, (char *)"\n"
54293 		"\n"
54294 		"\n"
54295 		"Advance the current position to the next matching document.\n"
54296 		"\n"
54297 		"void Xapian::ValuePostingSource::next(double min_wt)\n"
54298 		"\n"
54299 		"The PostingSource starts before the first entry in the list, so\n"
54300 		"next(), skip_to() or check() must be called before any methods which\n"
54301 		"need the context of the current position.\n"
54302 		"\n"
54303 		"Xapian will always call init() on a PostingSource before calling this\n"
54304 		"for the first time.\n"
54305 		"\n"
54306 		"Parameters:\n"
54307 		"-----------\n"
54308 		"\n"
54309 		"min_wt:  The minimum weight contribution that is needed (this is just\n"
54310 		"a hint which subclasses may ignore). \n"
54311 		""},
54312 	 { (char *)"ValuePostingSource_skip_to", _wrap_ValuePostingSource_skip_to, METH_VARARGS, (char *)"\n"
54313 		"\n"
54314 		"\n"
54315 		"Advance to the specified docid.\n"
54316 		"\n"
54317 		"void Xapian::ValuePostingSource::skip_to(Xapian::docid min_docid,\n"
54318 		"double min_wt)\n"
54319 		"\n"
54320 		"If the specified docid isn't in the list, position ourselves on the\n"
54321 		"first document after it (or at_end() if no greater docids are\n"
54322 		"present).\n"
54323 		"\n"
54324 		"If the current position is already the specified docid, this method\n"
54325 		"will leave the position unmodified.\n"
54326 		"\n"
54327 		"If the specified docid is earlier than the current position, the\n"
54328 		"behaviour is unspecified. A sensible behaviour would be to leave the\n"
54329 		"current position unmodified, but it is also reasonable to move to the\n"
54330 		"specified docid.\n"
54331 		"\n"
54332 		"The default implementation calls next() repeatedly, which works but\n"
54333 		"skip_to() can often be implemented much more efficiently.\n"
54334 		"\n"
54335 		"Xapian will always call init() on a PostingSource before calling this\n"
54336 		"for the first time.\n"
54337 		"\n"
54338 		"Note: in the case of a multi-database search, the docid specified is\n"
54339 		"the docid in the single subdatabase relevant to this posting source.\n"
54340 		"See the  init() method for details.\n"
54341 		"\n"
54342 		"Parameters:\n"
54343 		"-----------\n"
54344 		"\n"
54345 		"did:  The document id to advance to.\n"
54346 		"\n"
54347 		"min_wt:  The minimum weight contribution that is needed (this is just\n"
54348 		"a hint which subclasses may ignore). \n"
54349 		""},
54350 	 { (char *)"ValuePostingSource_check", _wrap_ValuePostingSource_check, METH_VARARGS, (char *)"\n"
54351 		"\n"
54352 		"\n"
54353 		"Check if the specified docid occurs.\n"
54354 		"\n"
54355 		"bool Xapian::ValuePostingSource::check(Xapian::docid min_docid, double\n"
54356 		"min_wt)\n"
54357 		"\n"
54358 		"The caller is required to ensure that the specified document id did\n"
54359 		"actually exists in the database. If it does, it must move to that\n"
54360 		"document id, and return true. If it does not, it may either:\n"
54361 		"\n"
54362 		"return true, having moved to a definite position (including\n"
54363 		"\"at_end\"), which must be the same position as skip_to() would have\n"
54364 		"moved to.\n"
54365 		"\n"
54366 		"or\n"
54367 		"\n"
54368 		"return false, having moved to an \"indeterminate\" position, such that\n"
54369 		"a subsequent call to next() or skip_to() will move to the next\n"
54370 		"matching position after did.\n"
54371 		"\n"
54372 		"Generally, this method should act like skip_to() and return true if\n"
54373 		"that can be done at little extra cost.\n"
54374 		"\n"
54375 		"Otherwise it should simply check if a particular docid is present,\n"
54376 		"returning true if it is, and false if it isn't.\n"
54377 		"\n"
54378 		"The default implementation calls skip_to() and always returns true.\n"
54379 		"\n"
54380 		"Xapian will always call init() on a PostingSource before calling this\n"
54381 		"for the first time.\n"
54382 		"\n"
54383 		"Note: in the case of a multi-database search, the docid specified is\n"
54384 		"the docid in the single subdatabase relevant to this posting source.\n"
54385 		"See the  init() method for details.\n"
54386 		"\n"
54387 		"Parameters:\n"
54388 		"-----------\n"
54389 		"\n"
54390 		"did:  The document id to check.\n"
54391 		"\n"
54392 		"min_wt:  The minimum weight contribution that is needed (this is just\n"
54393 		"a hint which subclasses may ignore). \n"
54394 		""},
54395 	 { (char *)"ValuePostingSource_at_end", (PyCFunction)_wrap_ValuePostingSource_at_end, METH_O, (char *)"\n"
54396 		"\n"
54397 		"\n"
54398 		"Return true if the current position is past the last entry in this\n"
54399 		"list.\n"
54400 		"\n"
54401 		"bool Xapian::ValuePostingSource::at_end() const\n"
54402 		"\n"
54403 		"At least one of  next(),  skip_to() or  check() will be called before\n"
54404 		"this method is first called. \n"
54405 		""},
54406 	 { (char *)"ValuePostingSource_get_docid", (PyCFunction)_wrap_ValuePostingSource_get_docid, METH_O, (char *)"\n"
54407 		"\n"
54408 		"\n"
54409 		"Return the current docid.\n"
54410 		"\n"
54411 		"Xapian::docid Xapian::ValuePostingSource::get_docid() const\n"
54412 		"\n"
54413 		"This method may assume that it will only be called when there is a\n"
54414 		"\"current document\". See  get_weight() for details.\n"
54415 		"\n"
54416 		"Note: in the case of a multi-database search, the returned docid\n"
54417 		"should be in the single subdatabase relevant to this posting source.\n"
54418 		"See the  init() method for details. \n"
54419 		""},
54420 	 { (char *)"ValuePostingSource_init", _wrap_ValuePostingSource_init, METH_VARARGS, (char *)"\n"
54421 		"\n"
54422 		"\n"
54423 		"Set this PostingSource to the start of the list of postings.\n"
54424 		"\n"
54425 		"void Xapian::ValuePostingSource::init(const Database &db_)\n"
54426 		"\n"
54427 		"This is called automatically by the matcher prior to each query being\n"
54428 		"processed.\n"
54429 		"\n"
54430 		"If a PostingSource is used for multiple searches,  init() will\n"
54431 		"therefore be called multiple times, and must handle this by using the\n"
54432 		"database passed in the most recent call.\n"
54433 		"\n"
54434 		"Parameters:\n"
54435 		"-----------\n"
54436 		"\n"
54437 		"db:  The database which the PostingSource should iterate through.\n"
54438 		"\n"
54439 		"Note: in the case of a multi-database search, a separate PostingSource\n"
54440 		"will be used for each database (the separate PostingSources will be\n"
54441 		"obtained using  clone()), and each PostingSource will be passed one of\n"
54442 		"the sub-databases as the db parameter here. The db parameter will\n"
54443 		"therefore always refer to a single database. All docids passed to, or\n"
54444 		"returned from, the PostingSource refer to docids in that single\n"
54445 		"database, rather than in the multi- database. \n"
54446 		""},
54447 	 { (char *)"ValuePostingSource_get_database", (PyCFunction)_wrap_ValuePostingSource_get_database, METH_O, (char *)"\n"
54448 		"\n"
54449 		"\n"
54450 		"The database we're reading values from.\n"
54451 		"\n"
54452 		"Xapian::Database Xapian::ValuePostingSource::get_database() const\n"
54453 		"\n"
54454 		"Added in 1.2.23 and 1.3.5. \n"
54455 		""},
54456 	 { (char *)"ValuePostingSource_get_slot", (PyCFunction)_wrap_ValuePostingSource_get_slot, METH_O, (char *)"\n"
54457 		"\n"
54458 		"\n"
54459 		"The slot we're reading values from.\n"
54460 		"\n"
54461 		"Xapian::valueno Xapian::ValuePostingSource::get_slot() const\n"
54462 		"\n"
54463 		"Added in 1.2.23 and 1.3.5. \n"
54464 		""},
54465 	 { (char *)"ValuePostingSource_get_value", (PyCFunction)_wrap_ValuePostingSource_get_value, METH_O, (char *)"\n"
54466 		"\n"
54467 		"\n"
54468 		"Read current value.\n"
54469 		"\n"
54470 		"std::string Xapian::ValuePostingSource::get_value() const\n"
54471 		"\n"
54472 		"Added in 1.2.23 and 1.3.5. \n"
54473 		""},
54474 	 { (char *)"ValuePostingSource_done", (PyCFunction)_wrap_ValuePostingSource_done, METH_O, (char *)"\n"
54475 		"\n"
54476 		"\n"
54477 		"End the iteration.\n"
54478 		"\n"
54479 		"void Xapian::ValuePostingSource::done()\n"
54480 		"\n"
54481 		"Calls to at_end() will return true after calling this method.\n"
54482 		"\n"
54483 		"Added in 1.2.23 and 1.3.5. \n"
54484 		""},
54485 	 { (char *)"ValuePostingSource_get_started", (PyCFunction)_wrap_ValuePostingSource_get_started, METH_O, (char *)"\n"
54486 		"\n"
54487 		"\n"
54488 		"Flag indicating if we've started (true if we have).\n"
54489 		"\n"
54490 		"bool Xapian::ValuePostingSource::get_started() const\n"
54491 		"\n"
54492 		"Added in 1.2.23 and 1.3.5. \n"
54493 		""},
54494 	 { (char *)"ValuePostingSource_set_termfreq_min", _wrap_ValuePostingSource_set_termfreq_min, METH_VARARGS, (char *)"\n"
54495 		"\n"
54496 		"\n"
54497 		"Set a lower bound on the term frequency.\n"
54498 		"\n"
54499 		"void Xapian::ValuePostingSource::set_termfreq_min(Xapian::doccount\n"
54500 		"termfreq_min_)\n"
54501 		"\n"
54502 		"Subclasses should set this if they are overriding the next(),\n"
54503 		"skip_to() or check() methods to return fewer documents.\n"
54504 		"\n"
54505 		"Added in 1.2.23 and 1.3.5. \n"
54506 		""},
54507 	 { (char *)"ValuePostingSource_set_termfreq_est", _wrap_ValuePostingSource_set_termfreq_est, METH_VARARGS, (char *)"\n"
54508 		"\n"
54509 		"\n"
54510 		"An estimate of the term frequency.\n"
54511 		"\n"
54512 		"void Xapian::ValuePostingSource::set_termfreq_est(Xapian::doccount\n"
54513 		"termfreq_est_)\n"
54514 		"\n"
54515 		"Subclasses should set this if they are overriding the next(),\n"
54516 		"skip_to() or check() methods.\n"
54517 		"\n"
54518 		"Added in 1.2.23 and 1.3.5. \n"
54519 		""},
54520 	 { (char *)"ValuePostingSource_set_termfreq_max", _wrap_ValuePostingSource_set_termfreq_max, METH_VARARGS, (char *)"\n"
54521 		"\n"
54522 		"\n"
54523 		"An upper bound on the term frequency.\n"
54524 		"\n"
54525 		"void Xapian::ValuePostingSource::set_termfreq_max(Xapian::doccount\n"
54526 		"termfreq_max_)\n"
54527 		"\n"
54528 		"Subclasses should set this if they are overriding the next(),\n"
54529 		"skip_to() or check() methods.\n"
54530 		"\n"
54531 		"Added in 1.2.23 and 1.3.5. \n"
54532 		""},
54533 	 { (char *)"delete_ValuePostingSource", (PyCFunction)_wrap_delete_ValuePostingSource, METH_O, NULL},
54534 	 { (char *)"disown_ValuePostingSource", (PyCFunction)_wrap_disown_ValuePostingSource, METH_O, NULL},
54535 	 { (char *)"ValuePostingSource_swigregister", ValuePostingSource_swigregister, METH_VARARGS, NULL},
54536 	 { (char *)"ValuePostingSource_swiginit", ValuePostingSource_swiginit, METH_VARARGS, NULL},
54537 	 { (char *)"new_ValueWeightPostingSource", _wrap_new_ValueWeightPostingSource, METH_VARARGS, (char *)"\n"
54538 		"\n"
54539 		"\n"
54540 		"Construct a ValueWeightPostingSource.\n"
54541 		"\n"
54542 		"Xapian::ValueWeightPostingSource::ValueWeightPostingSource(Xapian::valueno\n"
54543 		"slot_)\n"
54544 		"\n"
54545 		"Parameters:\n"
54546 		"-----------\n"
54547 		"\n"
54548 		"slot_:  The value slot to read values from. \n"
54549 		""},
54550 	 { (char *)"ValueWeightPostingSource_get_weight", (PyCFunction)_wrap_ValueWeightPostingSource_get_weight, METH_O, (char *)"\n"
54551 		"\n"
54552 		"\n"
54553 		"Return the weight contribution for the current document.\n"
54554 		"\n"
54555 		"double Xapian::ValueWeightPostingSource::get_weight() const\n"
54556 		"\n"
54557 		"This default implementation always returns 0, for convenience when\n"
54558 		"implementing \"weight-less\" PostingSource subclasses.\n"
54559 		"\n"
54560 		"This method may assume that it will only be called when there is a\n"
54561 		"\"current document\". In detail: Xapian will always call init() on a\n"
54562 		"PostingSource before calling this for the first time. It will also\n"
54563 		"only call this if the PostingSource reports that it is pointing to a\n"
54564 		"valid document (ie, it will not call it before calling at least one of\n"
54565 		"next(), skip_to() or check(), and will ensure that the PostingSource\n"
54566 		"is not at the end by calling at_end()). \n"
54567 		""},
54568 	 { (char *)"ValueWeightPostingSource_name", (PyCFunction)_wrap_ValueWeightPostingSource_name, METH_O, (char *)"\n"
54569 		"\n"
54570 		"\n"
54571 		"Name of the posting source class.\n"
54572 		"\n"
54573 		"std::string Xapian::ValueWeightPostingSource::name() const\n"
54574 		"\n"
54575 		"This is used when serialising and unserialising posting sources; for\n"
54576 		"example, for performing remote searches.\n"
54577 		"\n"
54578 		"If the subclass is in a C++ namespace, the namespace should be\n"
54579 		"included in the name, using \"::\" as a separator. For example, for a\n"
54580 		"PostingSource subclass called \"FooPostingSource\" in the \"Xapian\"\n"
54581 		"namespace the result of this call should be\n"
54582 		"\"Xapian::FooPostingSource\".\n"
54583 		"\n"
54584 		"This should only be implemented if serialise() and unserialise() are\n"
54585 		"also implemented. The default implementation returns an empty string.\n"
54586 		"\n"
54587 		"If this returns an empty string, Xapian will assume that serialise()\n"
54588 		"and unserialise() are not implemented. \n"
54589 		""},
54590 	 { (char *)"ValueWeightPostingSource_init", _wrap_ValueWeightPostingSource_init, METH_VARARGS, (char *)"\n"
54591 		"\n"
54592 		"\n"
54593 		"Set this PostingSource to the start of the list of postings.\n"
54594 		"\n"
54595 		"void Xapian::ValueWeightPostingSource::init(const Database &db_)\n"
54596 		"\n"
54597 		"This is called automatically by the matcher prior to each query being\n"
54598 		"processed.\n"
54599 		"\n"
54600 		"If a PostingSource is used for multiple searches,  init() will\n"
54601 		"therefore be called multiple times, and must handle this by using the\n"
54602 		"database passed in the most recent call.\n"
54603 		"\n"
54604 		"Parameters:\n"
54605 		"-----------\n"
54606 		"\n"
54607 		"db:  The database which the PostingSource should iterate through.\n"
54608 		"\n"
54609 		"Note: in the case of a multi-database search, a separate PostingSource\n"
54610 		"will be used for each database (the separate PostingSources will be\n"
54611 		"obtained using  clone()), and each PostingSource will be passed one of\n"
54612 		"the sub-databases as the db parameter here. The db parameter will\n"
54613 		"therefore always refer to a single database. All docids passed to, or\n"
54614 		"returned from, the PostingSource refer to docids in that single\n"
54615 		"database, rather than in the multi- database. \n"
54616 		""},
54617 	 { (char *)"ValueWeightPostingSource___str__", (PyCFunction)_wrap_ValueWeightPostingSource___str__, METH_O, (char *)"\n"
54618 		"\n"
54619 		"\n"
54620 		"Return a string describing this object.\n"
54621 		"\n"
54622 		"std::string Xapian::ValueWeightPostingSource::get_description() const\n"
54623 		"\n"
54624 		"This default implementation returns a generic answer. This default it\n"
54625 		"provided to avoid forcing those deriving their own PostingSource\n"
54626 		"subclass from having to implement this (they may not care what\n"
54627 		"get_description() gives for their subclass). \n"
54628 		""},
54629 	 { (char *)"delete_ValueWeightPostingSource", (PyCFunction)_wrap_delete_ValueWeightPostingSource, METH_O, NULL},
54630 	 { (char *)"disown_ValueWeightPostingSource", (PyCFunction)_wrap_disown_ValueWeightPostingSource, METH_O, NULL},
54631 	 { (char *)"ValueWeightPostingSource_swigregister", ValueWeightPostingSource_swigregister, METH_VARARGS, NULL},
54632 	 { (char *)"ValueWeightPostingSource_swiginit", ValueWeightPostingSource_swiginit, METH_VARARGS, NULL},
54633 	 { (char *)"new_DecreasingValueWeightPostingSource", _wrap_new_DecreasingValueWeightPostingSource, METH_VARARGS, (char *)"\n"
54634 		"\n"
54635 		"\n"
54636 		"Construct a DecreasingValueWeightPostingSource.\n"
54637 		"\n"
54638 		"Xapian::DecreasingValueWeightPostingSource::DecreasingValueWeightPostingSource(Xapian::valueno\n"
54639 		"slot_, Xapian::docid range_start_=0, Xapian::docid range_end_=0)\n"
54640 		"\n"
54641 		"Parameters:\n"
54642 		"-----------\n"
54643 		"\n"
54644 		"slot_:  The value slot to read values from.\n"
54645 		"\n"
54646 		"range_start_:  Start of range of docids for which weights are known to\n"
54647 		"be decreasing (default: first docid)\n"
54648 		"\n"
54649 		"range_end_:  End of range of docids for which weights are known to be\n"
54650 		"decreasing (default: last docid) \n"
54651 		""},
54652 	 { (char *)"delete_DecreasingValueWeightPostingSource", (PyCFunction)_wrap_delete_DecreasingValueWeightPostingSource, METH_O, NULL},
54653 	 { (char *)"DecreasingValueWeightPostingSource_swigregister", DecreasingValueWeightPostingSource_swigregister, METH_VARARGS, NULL},
54654 	 { (char *)"DecreasingValueWeightPostingSource_swiginit", DecreasingValueWeightPostingSource_swiginit, METH_VARARGS, NULL},
54655 	 { (char *)"new_ValueMapPostingSource", (PyCFunction)_wrap_new_ValueMapPostingSource, METH_O, (char *)"\n"
54656 		"\n"
54657 		"\n"
54658 		"Construct a ValueMapPostingSource.\n"
54659 		"\n"
54660 		"Xapian::ValueMapPostingSource::ValueMapPostingSource(Xapian::valueno\n"
54661 		"slot_)\n"
54662 		"\n"
54663 		"Parameters:\n"
54664 		"-----------\n"
54665 		"\n"
54666 		"slot_:  The value slot to read values from. \n"
54667 		""},
54668 	 { (char *)"ValueMapPostingSource_add_mapping", _wrap_ValueMapPostingSource_add_mapping, METH_VARARGS, (char *)"\n"
54669 		"\n"
54670 		"\n"
54671 		"Add a mapping.\n"
54672 		"\n"
54673 		"void Xapian::ValueMapPostingSource::add_mapping(const std::string\n"
54674 		"&key, double wt)\n"
54675 		"\n"
54676 		"Parameters:\n"
54677 		"-----------\n"
54678 		"\n"
54679 		"key:  The key looked up from the value slot.\n"
54680 		"\n"
54681 		"wt:  The weight to give this key. \n"
54682 		""},
54683 	 { (char *)"ValueMapPostingSource_clear_mappings", (PyCFunction)_wrap_ValueMapPostingSource_clear_mappings, METH_O, (char *)"\n"
54684 		"\n"
54685 		"\n"
54686 		"Clear all mappings.\n"
54687 		"\n"
54688 		"void Xapian::ValueMapPostingSource::clear_mappings() \n"
54689 		""},
54690 	 { (char *)"ValueMapPostingSource_set_default_weight", _wrap_ValueMapPostingSource_set_default_weight, METH_VARARGS, (char *)"\n"
54691 		"\n"
54692 		"\n"
54693 		"Set a default weight for document values not in the map.\n"
54694 		"\n"
54695 		"void Xapian::ValueMapPostingSource::set_default_weight(double wt)\n"
54696 		"\n"
54697 		"Parameters:\n"
54698 		"-----------\n"
54699 		"\n"
54700 		"wt:  The weight to set as the default. \n"
54701 		""},
54702 	 { (char *)"delete_ValueMapPostingSource", (PyCFunction)_wrap_delete_ValueMapPostingSource, METH_O, NULL},
54703 	 { (char *)"ValueMapPostingSource_swigregister", ValueMapPostingSource_swigregister, METH_VARARGS, NULL},
54704 	 { (char *)"ValueMapPostingSource_swiginit", ValueMapPostingSource_swiginit, METH_VARARGS, NULL},
54705 	 { (char *)"new_FixedWeightPostingSource", (PyCFunction)_wrap_new_FixedWeightPostingSource, METH_O, (char *)"\n"
54706 		"\n"
54707 		"\n"
54708 		"Construct a FixedWeightPostingSource.\n"
54709 		"\n"
54710 		"Xapian::FixedWeightPostingSource::FixedWeightPostingSource(double wt)\n"
54711 		"\n"
54712 		"Parameters:\n"
54713 		"-----------\n"
54714 		"\n"
54715 		"wt:  The fixed weight to return. \n"
54716 		""},
54717 	 { (char *)"delete_FixedWeightPostingSource", (PyCFunction)_wrap_delete_FixedWeightPostingSource, METH_O, NULL},
54718 	 { (char *)"FixedWeightPostingSource_swigregister", FixedWeightPostingSource_swigregister, METH_VARARGS, NULL},
54719 	 { (char *)"FixedWeightPostingSource_swiginit", FixedWeightPostingSource_swiginit, METH_VARARGS, NULL},
54720 	 { (char *)"new_MatchSpy", (PyCFunction)_wrap_new_MatchSpy, METH_O, (char *)"\n"
54721 		"\n"
54722 		"\n"
54723 		"Default constructor, needed by subclass constructors.\n"
54724 		"\n"
54725 		"Xapian::MatchSpy::MatchSpy() \n"
54726 		""},
54727 	 { (char *)"delete_MatchSpy", (PyCFunction)_wrap_delete_MatchSpy, METH_O, (char *)"\n"
54728 		"\n"
54729 		"\n"
54730 		"Virtual destructor, because we have virtual methods.\n"
54731 		"\n"
54732 		"virtual Xapian::MatchSpy::~MatchSpy() \n"
54733 		""},
54734 	 { (char *)"MatchSpy___call__", _wrap_MatchSpy___call__, METH_VARARGS, NULL},
54735 	 { (char *)"MatchSpy_name", (PyCFunction)_wrap_MatchSpy_name, METH_O, (char *)"\n"
54736 		"\n"
54737 		"\n"
54738 		"Return the name of this match spy.\n"
54739 		"\n"
54740 		"virtual std::string Xapian::MatchSpy::name() const\n"
54741 		"\n"
54742 		"This name is used by the remote backend. It is passed with the\n"
54743 		"serialised parameters to the remote server so that it knows which\n"
54744 		"class to create.\n"
54745 		"\n"
54746 		"Return the full namespace-qualified name of your class here - if your\n"
54747 		"class is called MyApp::FooMatchSpy, return \"MyApp::FooMatchSpy\" from\n"
54748 		"this method.\n"
54749 		"\n"
54750 		"If you don't want to support the remote backend in your match spy, you\n"
54751 		"can use the default implementation which simply throws\n"
54752 		"Xapian::UnimplementedError. \n"
54753 		""},
54754 	 { (char *)"MatchSpy_merge_results", _wrap_MatchSpy_merge_results, METH_VARARGS, (char *)"\n"
54755 		"\n"
54756 		"\n"
54757 		"Unserialise some results, and merge them into this matchspy.\n"
54758 		"\n"
54759 		"virtual void Xapian::MatchSpy::merge_results(const std::string\n"
54760 		"&serialised)\n"
54761 		"\n"
54762 		"The order in which results are merged should not be significant, since\n"
54763 		"this order is not specified (and will vary depending on the speed of\n"
54764 		"the search in each sub-database).\n"
54765 		"\n"
54766 		"If you don't want to support the remote backend in your match spy, you\n"
54767 		"can use the default implementation which simply throws\n"
54768 		"Xapian::UnimplementedError.\n"
54769 		"\n"
54770 		"Parameters:\n"
54771 		"-----------\n"
54772 		"\n"
54773 		"serialised:  A string containing the serialised results. \n"
54774 		""},
54775 	 { (char *)"MatchSpy___str__", (PyCFunction)_wrap_MatchSpy___str__, METH_O, (char *)"\n"
54776 		"\n"
54777 		"\n"
54778 		"Return a string describing this object.\n"
54779 		"\n"
54780 		"virtual std::string Xapian::MatchSpy::get_description() const\n"
54781 		"\n"
54782 		"This default implementation returns a generic answer, to avoid forcing\n"
54783 		"those deriving their own MatchSpy subclasses from having to implement\n"
54784 		"this (they may not care what get_description() gives for their\n"
54785 		"subclass). \n"
54786 		""},
54787 	 { (char *)"MatchSpy_release", (PyCFunction)_wrap_MatchSpy_release, METH_O, (char *)"\n"
54788 		"\n"
54789 		"\n"
54790 		"Start reference counting this object.\n"
54791 		"\n"
54792 		"const MatchSpy* Xapian::MatchSpy::release() const\n"
54793 		"\n"
54794 		"You can hand ownership of a dynamically allocated MatchSpy object to\n"
54795 		"Xapian by calling release() and then passing the object to a Xapian\n"
54796 		"method. Xapian will arrange to delete the object once it is no longer\n"
54797 		"required. \n"
54798 		""},
54799 	 { (char *)"disown_MatchSpy", (PyCFunction)_wrap_disown_MatchSpy, METH_O, NULL},
54800 	 { (char *)"MatchSpy_swigregister", MatchSpy_swigregister, METH_VARARGS, NULL},
54801 	 { (char *)"MatchSpy_swiginit", MatchSpy_swiginit, METH_VARARGS, NULL},
54802 	 { (char *)"new_ValueCountMatchSpy", _wrap_new_ValueCountMatchSpy, METH_VARARGS, (char *)"\n"
54803 		"\n"
54804 		"\n"
54805 		"Construct a MatchSpy which counts the values in a particular slot.\n"
54806 		"\n"
54807 		"Xapian::ValueCountMatchSpy::ValueCountMatchSpy(Xapian::valueno slot_)\n"
54808 		"\n"
54809 		""},
54810 	 { (char *)"ValueCountMatchSpy_get_total", (PyCFunction)_wrap_ValueCountMatchSpy_get_total, METH_O, (char *)"\n"
54811 		"\n"
54812 		"\n"
54813 		"Return the total number of documents tallied.\n"
54814 		"\n"
54815 		"size_t Xapian::ValueCountMatchSpy::get_total() const \n"
54816 		""},
54817 	 { (char *)"ValueCountMatchSpy_values_begin", (PyCFunction)_wrap_ValueCountMatchSpy_values_begin, METH_O, (char *)"\n"
54818 		"\n"
54819 		"\n"
54820 		"Get an iterator over the values seen in the slot.\n"
54821 		"\n"
54822 		"TermIterator Xapian::ValueCountMatchSpy::values_begin() const\n"
54823 		"\n"
54824 		"Items will be returned in ascending alphabetical order.\n"
54825 		"\n"
54826 		"During the iteration, the frequency of the current value can be\n"
54827 		"obtained with the get_termfreq() method on the iterator. \n"
54828 		""},
54829 	 { (char *)"ValueCountMatchSpy_values_end", (PyCFunction)_wrap_ValueCountMatchSpy_values_end, METH_O, (char *)"\n"
54830 		"\n"
54831 		"\n"
54832 		"End iterator corresponding to values_begin()\n"
54833 		"\n"
54834 		"TermIterator Xapian::ValueCountMatchSpy::values_end() const \n"
54835 		""},
54836 	 { (char *)"ValueCountMatchSpy_top_values_begin", _wrap_ValueCountMatchSpy_top_values_begin, METH_VARARGS, (char *)"\n"
54837 		"\n"
54838 		"\n"
54839 		"Get an iterator over the most frequent values seen in the slot.\n"
54840 		"\n"
54841 		"TermIterator Xapian::ValueCountMatchSpy::top_values_begin(size_t\n"
54842 		"maxvalues) const\n"
54843 		"\n"
54844 		"Items will be returned in descending order of frequency. Values with\n"
54845 		"the same frequency will be returned in ascending alphabetical order.\n"
54846 		"\n"
54847 		"During the iteration, the frequency of the current value can be\n"
54848 		"obtained with the get_termfreq() method on the iterator.\n"
54849 		"\n"
54850 		"Parameters:\n"
54851 		"-----------\n"
54852 		"\n"
54853 		"maxvalues:  The maximum number of values to return. \n"
54854 		""},
54855 	 { (char *)"ValueCountMatchSpy_top_values_end", _wrap_ValueCountMatchSpy_top_values_end, METH_VARARGS, (char *)"\n"
54856 		"\n"
54857 		"\n"
54858 		"End iterator corresponding to top_values_begin()\n"
54859 		"\n"
54860 		"TermIterator Xapian::ValueCountMatchSpy::top_values_end(size_t) const\n"
54861 		"\n"
54862 		""},
54863 	 { (char *)"delete_ValueCountMatchSpy", (PyCFunction)_wrap_delete_ValueCountMatchSpy, METH_O, NULL},
54864 	 { (char *)"ValueCountMatchSpy_swigregister", ValueCountMatchSpy_swigregister, METH_VARARGS, NULL},
54865 	 { (char *)"ValueCountMatchSpy_swiginit", ValueCountMatchSpy_swiginit, METH_VARARGS, NULL},
54866 	 { (char *)"miles_to_metres", (PyCFunction)_wrap_miles_to_metres, METH_O, NULL},
54867 	 { (char *)"metres_to_miles", (PyCFunction)_wrap_metres_to_miles, METH_O, NULL},
54868 	 { (char *)"LatLongCoord_latitude_set", _wrap_LatLongCoord_latitude_set, METH_VARARGS, NULL},
54869 	 { (char *)"LatLongCoord_latitude_get", (PyCFunction)_wrap_LatLongCoord_latitude_get, METH_O, NULL},
54870 	 { (char *)"LatLongCoord_longitude_set", _wrap_LatLongCoord_longitude_set, METH_VARARGS, NULL},
54871 	 { (char *)"LatLongCoord_longitude_get", (PyCFunction)_wrap_LatLongCoord_longitude_get, METH_O, NULL},
54872 	 { (char *)"new_LatLongCoord", _wrap_new_LatLongCoord, METH_VARARGS, (char *)"\n"
54873 		"\n"
54874 		"\n"
54875 		"Construct a coordinate.\n"
54876 		"\n"
54877 		"Xapian::LatLongCoord::LatLongCoord(double latitude_, double\n"
54878 		"longitude_)\n"
54879 		"\n"
54880 		"If the supplied longitude is out of the standard range, it will be\n"
54881 		"normalised to the range 0 <= longitude < 360.\n"
54882 		"\n"
54883 		"If you want to avoid the checks (for example, you know that your\n"
54884 		"values are already in range), you can use the alternate constructor to\n"
54885 		"construct an uninitialised coordinate, and then set the latitude and\n"
54886 		"longitude directly.\n"
54887 		"\n"
54888 		"Parameters:\n"
54889 		"-----------\n"
54890 		"\n"
54891 		"InvalidArgumentError:  the supplied latitude is out of range. \n"
54892 		""},
54893 	 { (char *)"LatLongCoord_unserialise", _wrap_LatLongCoord_unserialise, METH_VARARGS, (char *)"\n"
54894 		"\n"
54895 		"\n"
54896 		"Unserialise a buffer and set this object to its coordinate.\n"
54897 		"\n"
54898 		"void Xapian::LatLongCoord::unserialise(const char **ptr, const char\n"
54899 		"*end)\n"
54900 		"\n"
54901 		"The buffer may contain further data after that for the coordinate.\n"
54902 		"\n"
54903 		"Parameters:\n"
54904 		"-----------\n"
54905 		"\n"
54906 		"ptr:  A pointer to the start of the string. This will be updated to\n"
54907 		"point to the end of the data representing the coordinate.\n"
54908 		"\n"
54909 		"end:  A pointer to the end of the string.\n"
54910 		"\n"
54911 		"Parameters:\n"
54912 		"-----------\n"
54913 		"\n"
54914 		"Xapian::SerialisationError:  if the string does not start with a valid\n"
54915 		"serialised latitude- longitude pair. \n"
54916 		""},
54917 	 { (char *)"LatLongCoord_serialise", (PyCFunction)_wrap_LatLongCoord_serialise, METH_O, (char *)"\n"
54918 		"\n"
54919 		"\n"
54920 		"Return a serialised representation of the coordinate.\n"
54921 		"\n"
54922 		"std::string Xapian::LatLongCoord::serialise() const \n"
54923 		""},
54924 	 { (char *)"LatLongCoord___str__", (PyCFunction)_wrap_LatLongCoord___str__, METH_O, (char *)"\n"
54925 		"\n"
54926 		"\n"
54927 		"Return a string describing this object.\n"
54928 		"\n"
54929 		"std::string Xapian::LatLongCoord::get_description() const \n"
54930 		""},
54931 	 { (char *)"delete_LatLongCoord", (PyCFunction)_wrap_delete_LatLongCoord, METH_O, NULL},
54932 	 { (char *)"LatLongCoord_swigregister", LatLongCoord_swigregister, METH_VARARGS, NULL},
54933 	 { (char *)"LatLongCoord_swiginit", LatLongCoord_swiginit, METH_VARARGS, NULL},
54934 	 { (char *)"new_LatLongCoordsIterator", (PyCFunction)_wrap_new_LatLongCoordsIterator, METH_NOARGS, (char *)"\n"
54935 		"\n"
54936 		"\n"
54937 		"Default constructor. Produces an uninitialised iterator.\n"
54938 		"\n"
54939 		"Xapian::LatLongCoordsIterator::LatLongCoordsIterator() \n"
54940 		""},
54941 	 { (char *)"LatLongCoordsIterator___eq__", _wrap_LatLongCoordsIterator___eq__, METH_VARARGS, NULL},
54942 	 { (char *)"LatLongCoordsIterator_equals", _wrap_LatLongCoordsIterator_equals, METH_VARARGS, NULL},
54943 	 { (char *)"LatLongCoordsIterator_get_coord", (PyCFunction)_wrap_LatLongCoordsIterator_get_coord, METH_O, NULL},
54944 	 { (char *)"LatLongCoordsIterator_next", (PyCFunction)_wrap_LatLongCoordsIterator_next, METH_O, NULL},
54945 	 { (char *)"delete_LatLongCoordsIterator", (PyCFunction)_wrap_delete_LatLongCoordsIterator, METH_O, NULL},
54946 	 { (char *)"LatLongCoordsIterator_swigregister", LatLongCoordsIterator_swigregister, METH_VARARGS, NULL},
54947 	 { (char *)"LatLongCoordsIterator_swiginit", LatLongCoordsIterator_swiginit, METH_VARARGS, NULL},
54948 	 { (char *)"LatLongCoords_begin", (PyCFunction)_wrap_LatLongCoords_begin, METH_O, (char *)"\n"
54949 		"\n"
54950 		"\n"
54951 		"Get a begin iterator for the coordinates.\n"
54952 		"\n"
54953 		"LatLongCoordsIterator Xapian::LatLongCoords::begin() const \n"
54954 		""},
54955 	 { (char *)"LatLongCoords_end", (PyCFunction)_wrap_LatLongCoords_end, METH_O, (char *)"\n"
54956 		"\n"
54957 		"\n"
54958 		"Get an end iterator for the coordinates.\n"
54959 		"\n"
54960 		"LatLongCoordsIterator Xapian::LatLongCoords::end() const \n"
54961 		""},
54962 	 { (char *)"LatLongCoords_size", (PyCFunction)_wrap_LatLongCoords_size, METH_O, (char *)"\n"
54963 		"\n"
54964 		"\n"
54965 		"Get the number of coordinates in the container.\n"
54966 		"\n"
54967 		"size_t Xapian::LatLongCoords::size() const \n"
54968 		""},
54969 	 { (char *)"LatLongCoords_empty", (PyCFunction)_wrap_LatLongCoords_empty, METH_O, (char *)"\n"
54970 		"\n"
54971 		"\n"
54972 		"Return true if and only if there are no coordinates in the container.\n"
54973 		"\n"
54974 		"bool Xapian::LatLongCoords::empty() const \n"
54975 		""},
54976 	 { (char *)"LatLongCoords_append", _wrap_LatLongCoords_append, METH_VARARGS, (char *)"\n"
54977 		"\n"
54978 		"\n"
54979 		"Append a coordinate to the end of the sequence.\n"
54980 		"\n"
54981 		"void Xapian::LatLongCoords::append(const LatLongCoord &coord) \n"
54982 		""},
54983 	 { (char *)"new_LatLongCoords", _wrap_new_LatLongCoords, METH_VARARGS, (char *)"\n"
54984 		"\n"
54985 		"\n"
54986 		"Construct a container holding one coordinate.\n"
54987 		"\n"
54988 		"Xapian::LatLongCoords::LatLongCoords(const LatLongCoord &coord) \n"
54989 		""},
54990 	 { (char *)"LatLongCoords_unserialise", _wrap_LatLongCoords_unserialise, METH_VARARGS, (char *)"\n"
54991 		"\n"
54992 		"\n"
54993 		"Unserialise a string and set this object to the coordinates in it.\n"
54994 		"\n"
54995 		"void Xapian::LatLongCoords::unserialise(const std::string &serialised)\n"
54996 		"\n"
54997 		"Parameters:\n"
54998 		"-----------\n"
54999 		"\n"
55000 		"serialised:  the string to unserialise the coordinates from.\n"
55001 		"\n"
55002 		"Parameters:\n"
55003 		"-----------\n"
55004 		"\n"
55005 		"Xapian::SerialisationError:  if the string does not contain a valid\n"
55006 		"serialised latitude-longitude pair, or contains junk at the end of it.\n"
55007 		"\n"
55008 		""},
55009 	 { (char *)"LatLongCoords_serialise", (PyCFunction)_wrap_LatLongCoords_serialise, METH_O, (char *)"\n"
55010 		"\n"
55011 		"\n"
55012 		"Return a serialised form of the coordinate list.\n"
55013 		"\n"
55014 		"std::string Xapian::LatLongCoords::serialise() const \n"
55015 		""},
55016 	 { (char *)"LatLongCoords___str__", (PyCFunction)_wrap_LatLongCoords___str__, METH_O, (char *)"\n"
55017 		"\n"
55018 		"\n"
55019 		"Return a string describing this object.\n"
55020 		"\n"
55021 		"std::string Xapian::LatLongCoords::get_description() const \n"
55022 		""},
55023 	 { (char *)"delete_LatLongCoords", (PyCFunction)_wrap_delete_LatLongCoords, METH_O, NULL},
55024 	 { (char *)"LatLongCoords_swigregister", LatLongCoords_swigregister, METH_VARARGS, NULL},
55025 	 { (char *)"LatLongCoords_swiginit", LatLongCoords_swiginit, METH_VARARGS, NULL},
55026 	 { (char *)"__ne__", _wrap___ne__, METH_VARARGS, NULL},
55027 	 { (char *)"delete_LatLongMetric", (PyCFunction)_wrap_delete_LatLongMetric, METH_O, (char *)"\n"
55028 		"\n"
55029 		"\n"
55030 		"Destructor.\n"
55031 		"\n"
55032 		"virtual Xapian::LatLongMetric::~LatLongMetric() \n"
55033 		""},
55034 	 { (char *)"LatLongMetric_pointwise_distance", _wrap_LatLongMetric_pointwise_distance, METH_VARARGS, (char *)"\n"
55035 		"\n"
55036 		"\n"
55037 		"Return the distance between two coordinates, in metres.\n"
55038 		"\n"
55039 		"virtual double Xapian::LatLongMetric::pointwise_distance(const\n"
55040 		"LatLongCoord &a, const LatLongCoord &b) const =0 \n"
55041 		""},
55042 	 { (char *)"LatLongMetric___call__", _wrap_LatLongMetric___call__, METH_VARARGS, NULL},
55043 	 { (char *)"LatLongMetric_name", (PyCFunction)_wrap_LatLongMetric_name, METH_O, (char *)"\n"
55044 		"\n"
55045 		"\n"
55046 		"Return the full name of the metric.\n"
55047 		"\n"
55048 		"virtual std::string Xapian::LatLongMetric::name() const =0\n"
55049 		"\n"
55050 		"This is used when serialising and unserialising metrics; for example,\n"
55051 		"for performing remote searches.\n"
55052 		"\n"
55053 		"If the subclass is in a C++ namespace, the namespace should be\n"
55054 		"included in the name, using \"::\" as a separator. For example, for a\n"
55055 		"LatLongMetric subclass called \"FooLatLongMetric\" in the \"Xapian\"\n"
55056 		"namespace the result of this call should be\n"
55057 		"\"Xapian::FooLatLongMetric\". \n"
55058 		""},
55059 	 { (char *)"new_LatLongMetric", (PyCFunction)_wrap_new_LatLongMetric, METH_O, NULL},
55060 	 { (char *)"disown_LatLongMetric", (PyCFunction)_wrap_disown_LatLongMetric, METH_O, NULL},
55061 	 { (char *)"LatLongMetric_swigregister", LatLongMetric_swigregister, METH_VARARGS, NULL},
55062 	 { (char *)"LatLongMetric_swiginit", LatLongMetric_swiginit, METH_VARARGS, NULL},
55063 	 { (char *)"new_GreatCircleMetric", _wrap_new_GreatCircleMetric, METH_VARARGS, (char *)"\n"
55064 		"\n"
55065 		"\n"
55066 		"Construct a GreatCircleMetric using a specified radius.\n"
55067 		"\n"
55068 		"Xapian::GreatCircleMetric::GreatCircleMetric(double radius_)\n"
55069 		"\n"
55070 		"This is useful for data sets in which the points are not on Earth (eg,\n"
55071 		"a database of features on Mars).\n"
55072 		"\n"
55073 		"Parameters:\n"
55074 		"-----------\n"
55075 		"\n"
55076 		"radius_:  The radius of the sphere to use, in metres. \n"
55077 		""},
55078 	 { (char *)"delete_GreatCircleMetric", (PyCFunction)_wrap_delete_GreatCircleMetric, METH_O, NULL},
55079 	 { (char *)"GreatCircleMetric_swigregister", GreatCircleMetric_swigregister, METH_VARARGS, NULL},
55080 	 { (char *)"GreatCircleMetric_swiginit", GreatCircleMetric_swiginit, METH_VARARGS, NULL},
55081 	 { (char *)"new_LatLongDistancePostingSource", _wrap_new_LatLongDistancePostingSource, METH_VARARGS, (char *)"\n"
55082 		"\n"
55083 		"\n"
55084 		"Construct a new posting source which returns only documents within\n"
55085 		"range of one of the central coordinates.\n"
55086 		"\n"
55087 		"Xapian::LatLongDistancePostingSource::LatLongDistancePostingSource(Xapian::valueno\n"
55088 		"slot_, const LatLongCoords &centre_, double max_range_=0.0, double\n"
55089 		"k1_=1000.0, double k2_=1.0)\n"
55090 		"\n"
55091 		"Parameters:\n"
55092 		"-----------\n"
55093 		"\n"
55094 		"slot_:  The value slot to read values from.\n"
55095 		"\n"
55096 		"centre_:  The centre point to use for distance calculations.\n"
55097 		"\n"
55098 		"max_range_:  The maximum distance for documents which are returned.\n"
55099 		"\n"
55100 		"k1_:  The k1 constant to use in the weighting function.\n"
55101 		"\n"
55102 		"k2_:  The k2 constant to use in the weighting function.\n"
55103 		"\n"
55104 		"Xapian::GreatCircleMetric is used as the metric. \n"
55105 		""},
55106 	 { (char *)"delete_LatLongDistancePostingSource", (PyCFunction)_wrap_delete_LatLongDistancePostingSource, METH_O, (char *)"\n"
55107 		"Xapian::LatLongDistancePostingSource::~LatLongDistancePostingSource()\n"
55108 		"\n"
55109 		""},
55110 	 { (char *)"LatLongDistancePostingSource_swigregister", LatLongDistancePostingSource_swigregister, METH_VARARGS, NULL},
55111 	 { (char *)"LatLongDistancePostingSource_swiginit", LatLongDistancePostingSource_swiginit, METH_VARARGS, NULL},
55112 	 { (char *)"new_LatLongDistanceKeyMaker", _wrap_new_LatLongDistanceKeyMaker, METH_VARARGS, (char *)"\n"
55113 		"\n"
55114 		"\n"
55115 		"Construct a LatLongDistanceKeyMaker.\n"
55116 		"\n"
55117 		"Xapian::LatLongDistanceKeyMaker::LatLongDistanceKeyMaker(Xapian::valueno\n"
55118 		"slot_, const LatLongCoord &centre_)\n"
55119 		"\n"
55120 		"Parameters:\n"
55121 		"-----------\n"
55122 		"\n"
55123 		"slot_:  Value slot to use.\n"
55124 		"\n"
55125 		"centre_:  Point to calculate distance from.\n"
55126 		"\n"
55127 		"Xapian::GreatCircleMetric is used as the metric.\n"
55128 		"\n"
55129 		"Documents where no value is set are assumed to be a large distance\n"
55130 		"away. \n"
55131 		""},
55132 	 { (char *)"delete_LatLongDistanceKeyMaker", (PyCFunction)_wrap_delete_LatLongDistanceKeyMaker, METH_O, (char *)"Xapian::LatLongDistanceKeyMaker::~LatLongDistanceKeyMaker() "},
55133 	 { (char *)"LatLongDistanceKeyMaker_swigregister", LatLongDistanceKeyMaker_swigregister, METH_VARARGS, NULL},
55134 	 { (char *)"LatLongDistanceKeyMaker_swiginit", LatLongDistanceKeyMaker_swiginit, METH_VARARGS, NULL},
55135 	 { (char *)"Database_add_database", _wrap_Database_add_database, METH_VARARGS, (char *)"\n"
55136 		"\n"
55137 		"\n"
55138 		"Add an existing database (or group of databases) to those accessed by\n"
55139 		"this object.\n"
55140 		"\n"
55141 		"void Xapian::Database::add_database(const Database &database)\n"
55142 		"\n"
55143 		"Parameters:\n"
55144 		"-----------\n"
55145 		"\n"
55146 		"database:  the database(s) to add. \n"
55147 		""},
55148 	 { (char *)"Database_size", (PyCFunction)_wrap_Database_size, METH_O, (char *)"\n"
55149 		"\n"
55150 		"\n"
55151 		"Return number of shards in this Database object.\n"
55152 		"\n"
55153 		"size_t Xapian::Database::size() const \n"
55154 		""},
55155 	 { (char *)"new_Database", _wrap_new_Database, METH_VARARGS, (char *)"\n"
55156 		"\n"
55157 		"\n"
55158 		"Copying is allowed.\n"
55159 		"\n"
55160 		"Xapian::Database::Database(const Database &other)\n"
55161 		"\n"
55162 		"The internals are reference counted, so copying is cheap.\n"
55163 		"\n"
55164 		"Parameters:\n"
55165 		"-----------\n"
55166 		"\n"
55167 		"other:  The object to copy. \n"
55168 		""},
55169 	 { (char *)"delete_Database", (PyCFunction)_wrap_delete_Database, METH_O, (char *)"\n"
55170 		"\n"
55171 		"\n"
55172 		"Destroy this handle on the database.\n"
55173 		"\n"
55174 		"virtual Xapian::Database::~Database()\n"
55175 		"\n"
55176 		"If there are no copies of this object remaining, the database(s) will\n"
55177 		"be closed. \n"
55178 		""},
55179 	 { (char *)"Database_reopen", (PyCFunction)_wrap_Database_reopen, METH_O, (char *)"\n"
55180 		"\n"
55181 		"\n"
55182 		"Re-open the database.\n"
55183 		"\n"
55184 		"bool Xapian::Database::reopen()\n"
55185 		"\n"
55186 		"This re-opens the database(s) to the latest available version(s). It\n"
55187 		"can be used either to make sure the latest results are returned, or to\n"
55188 		"recover from a Xapian::DatabaseModifiedError.\n"
55189 		"\n"
55190 		"Calling reopen() on a database which has been closed (with  close())\n"
55191 		"will always raise a Xapian::DatabaseError.\n"
55192 		"\n"
55193 		"true if the database might have been reopened (if false is returned,\n"
55194 		"the database definitely hasn't been reopened, which applications may\n"
55195 		"find useful when caching results, etc). In Xapian < 1.3.0, this method\n"
55196 		"did not return a value. \n"
55197 		""},
55198 	 { (char *)"Database_close", (PyCFunction)_wrap_Database_close, METH_O, (char *)"\n"
55199 		"\n"
55200 		"\n"
55201 		"Close the database.\n"
55202 		"\n"
55203 		"virtual void Xapian::Database::close()\n"
55204 		"\n"
55205 		"This closes the database and closes all its file handles.\n"
55206 		"\n"
55207 		"For a WritableDatabase, if a transaction is active it will be aborted,\n"
55208 		"while if no transaction is active commit() will be implicitly called.\n"
55209 		"Also the write lock is released.\n"
55210 		"\n"
55211 		"Closing a database cannot be undone - in particular, calling reopen()\n"
55212 		"after close() will not reopen it, but will instead throw a\n"
55213 		"Xapian::DatabaseError exception.\n"
55214 		"\n"
55215 		"Calling close() again on a database which has already been closed has\n"
55216 		"no effect (and doesn't raise an exception).\n"
55217 		"\n"
55218 		"After close() has been called, calls to other methods of the database,\n"
55219 		"and to methods of other objects associated with the database, will\n"
55220 		"either:\n"
55221 		"\n"
55222 		"behave exactly as they would have done if the database had not been\n"
55223 		"closed (this can only happen if all the required data is cached)\n"
55224 		"\n"
55225 		"raise a Xapian::DatabaseError exception indicating that the database\n"
55226 		"is closed.\n"
55227 		"\n"
55228 		"The reason for this behaviour is that otherwise we'd have to check\n"
55229 		"that the database is still open on every method call on every object\n"
55230 		"associated with a Database, when in many cases they are working on\n"
55231 		"data which has already been loaded and so they are able to just behave\n"
55232 		"correctly.\n"
55233 		"\n"
55234 		"This method was added in Xapian 1.1.0. \n"
55235 		""},
55236 	 { (char *)"Database___str__", (PyCFunction)_wrap_Database___str__, METH_O, (char *)"\n"
55237 		"\n"
55238 		"\n"
55239 		"Return a string describing this object.\n"
55240 		"\n"
55241 		"virtual std::string Xapian::Database::get_description() const \n"
55242 		""},
55243 	 { (char *)"Database__postlist_begin", _wrap_Database__postlist_begin, METH_VARARGS, (char *)"\n"
55244 		"\n"
55245 		"\n"
55246 		"An iterator pointing to the start of the postlist for a given term.\n"
55247 		"\n"
55248 		"PostingIterator Xapian::Database::postlist_begin(const std::string\n"
55249 		"&tname) const\n"
55250 		"\n"
55251 		"Parameters:\n"
55252 		"-----------\n"
55253 		"\n"
55254 		"tname:  The termname to iterate postings for. If the term name is the\n"
55255 		"empty string, the iterator returned will list all the documents in the\n"
55256 		"database. Such an iterator will always return a WDF value of 1, since\n"
55257 		"there is no obvious meaning for this quantity in this case. \n"
55258 		""},
55259 	 { (char *)"Database__postlist_end", _wrap_Database__postlist_end, METH_VARARGS, (char *)"\n"
55260 		"\n"
55261 		"\n"
55262 		"Corresponding end iterator to postlist_begin().\n"
55263 		"\n"
55264 		"PostingIterator Xapian::Database::postlist_end(const std::string &)\n"
55265 		"const \n"
55266 		""},
55267 	 { (char *)"Database__termlist_begin", _wrap_Database__termlist_begin, METH_VARARGS, (char *)"\n"
55268 		"\n"
55269 		"\n"
55270 		"An iterator pointing to the start of the termlist for a given\n"
55271 		"document.\n"
55272 		"\n"
55273 		"TermIterator Xapian::Database::termlist_begin(Xapian::docid did) const\n"
55274 		"\n"
55275 		"Parameters:\n"
55276 		"-----------\n"
55277 		"\n"
55278 		"did:  The document id of the document to iterate terms for. \n"
55279 		""},
55280 	 { (char *)"Database__termlist_end", _wrap_Database__termlist_end, METH_VARARGS, (char *)"\n"
55281 		"\n"
55282 		"\n"
55283 		"Corresponding end iterator to termlist_begin().\n"
55284 		"\n"
55285 		"TermIterator Xapian::Database::termlist_end(Xapian::docid) const \n"
55286 		""},
55287 	 { (char *)"Database_has_positions", (PyCFunction)_wrap_Database_has_positions, METH_O, (char *)"\n"
55288 		"\n"
55289 		"\n"
55290 		"Does this database have any positional information?\n"
55291 		"\n"
55292 		"bool Xapian::Database::has_positions() const \n"
55293 		""},
55294 	 { (char *)"Database__positionlist_begin", _wrap_Database__positionlist_begin, METH_VARARGS, (char *)"\n"
55295 		"\n"
55296 		"\n"
55297 		"An iterator pointing to the start of the position list for a given\n"
55298 		"term in a given document.\n"
55299 		"\n"
55300 		"PositionIterator Xapian::Database::positionlist_begin(Xapian::docid\n"
55301 		"did, const std::string &tname) const \n"
55302 		""},
55303 	 { (char *)"Database__positionlist_end", _wrap_Database__positionlist_end, METH_VARARGS, (char *)"\n"
55304 		"\n"
55305 		"\n"
55306 		"Corresponding end iterator to positionlist_begin().\n"
55307 		"\n"
55308 		"PositionIterator Xapian::Database::positionlist_end(Xapian::docid,\n"
55309 		"const std::string &) const \n"
55310 		""},
55311 	 { (char *)"Database__allterms_begin", _wrap_Database__allterms_begin, METH_VARARGS, (char *)"\n"
55312 		"\n"
55313 		"\n"
55314 		"An iterator which runs across all terms with a given prefix.\n"
55315 		"\n"
55316 		"TermIterator Xapian::Database::allterms_begin(const std::string\n"
55317 		"&prefix=std::string()) const\n"
55318 		"\n"
55319 		"Parameters:\n"
55320 		"-----------\n"
55321 		"\n"
55322 		"prefix:  The prefix to restrict the returned terms to (default:\n"
55323 		"iterate all terms) \n"
55324 		""},
55325 	 { (char *)"Database__allterms_end", _wrap_Database__allterms_end, METH_VARARGS, (char *)"\n"
55326 		"\n"
55327 		"\n"
55328 		"Corresponding end iterator to allterms_begin(prefix).\n"
55329 		"\n"
55330 		"TermIterator Xapian::Database::allterms_end(const std::string\n"
55331 		"&=std::string()) const \n"
55332 		""},
55333 	 { (char *)"Database_get_doccount", (PyCFunction)_wrap_Database_get_doccount, METH_O, (char *)"\n"
55334 		"\n"
55335 		"\n"
55336 		"Get the number of documents in the database.\n"
55337 		"\n"
55338 		"Xapian::doccount Xapian::Database::get_doccount() const \n"
55339 		""},
55340 	 { (char *)"Database_get_lastdocid", (PyCFunction)_wrap_Database_get_lastdocid, METH_O, (char *)"\n"
55341 		"\n"
55342 		"\n"
55343 		"Get the highest document id which has been used in the database.\n"
55344 		"\n"
55345 		"Xapian::docid Xapian::Database::get_lastdocid() const \n"
55346 		""},
55347 	 { (char *)"Database_get_avlength", (PyCFunction)_wrap_Database_get_avlength, METH_O, (char *)"\n"
55348 		"\n"
55349 		"\n"
55350 		"Get the average length of the documents in the database.\n"
55351 		"\n"
55352 		"Xapian::doclength Xapian::Database::get_avlength() const \n"
55353 		""},
55354 	 { (char *)"Database_get_average_length", (PyCFunction)_wrap_Database_get_average_length, METH_O, (char *)"\n"
55355 		"\n"
55356 		"\n"
55357 		"New name for get_avlength().\n"
55358 		"\n"
55359 		"double Xapian::Database::get_average_length() const\n"
55360 		"\n"
55361 		"Added for forward compatibility with the next release series.\n"
55362 		"\n"
55363 		"1.4.17. \n"
55364 		""},
55365 	 { (char *)"Database_get_total_length", (PyCFunction)_wrap_Database_get_total_length, METH_O, (char *)"\n"
55366 		"\n"
55367 		"\n"
55368 		"Get the total length of all the documents in the database.\n"
55369 		"\n"
55370 		"Xapian::totallength Xapian::Database::get_total_length() const\n"
55371 		"\n"
55372 		"Added in Xapian 1.4.5. \n"
55373 		""},
55374 	 { (char *)"Database_get_termfreq", _wrap_Database_get_termfreq, METH_VARARGS, (char *)"\n"
55375 		"\n"
55376 		"\n"
55377 		"Get the number of documents in the database indexed by a given term.\n"
55378 		"\n"
55379 		"Xapian::doccount Xapian::Database::get_termfreq(const std::string\n"
55380 		"&tname) const \n"
55381 		""},
55382 	 { (char *)"Database_term_exists", _wrap_Database_term_exists, METH_VARARGS, (char *)"\n"
55383 		"\n"
55384 		"\n"
55385 		"Check if a given term exists in the database.\n"
55386 		"\n"
55387 		"bool Xapian::Database::term_exists(const std::string &tname) const\n"
55388 		"\n"
55389 		"Parameters:\n"
55390 		"-----------\n"
55391 		"\n"
55392 		"tname:  The term to test the existence of.\n"
55393 		"\n"
55394 		"true if and only if the term exists in the database. This is the same\n"
55395 		"as (get_termfreq(tname) != 0), but will often be more efficient. \n"
55396 		""},
55397 	 { (char *)"Database_get_collection_freq", _wrap_Database_get_collection_freq, METH_VARARGS, (char *)"\n"
55398 		"\n"
55399 		"\n"
55400 		"Return the total number of occurrences of the given term.\n"
55401 		"\n"
55402 		"Xapian::termcount Xapian::Database::get_collection_freq(const\n"
55403 		"std::string &tname) const\n"
55404 		"\n"
55405 		"This is the sum of the number of occurrences of the term in each\n"
55406 		"document it indexes: i.e., the sum of the within document frequencies\n"
55407 		"of the term.\n"
55408 		"\n"
55409 		"Parameters:\n"
55410 		"-----------\n"
55411 		"\n"
55412 		"tname:  The term whose collection frequency is being requested. \n"
55413 		""},
55414 	 { (char *)"Database_get_value_freq", _wrap_Database_get_value_freq, METH_VARARGS, (char *)"\n"
55415 		"\n"
55416 		"\n"
55417 		"Return the frequency of a given value slot.\n"
55418 		"\n"
55419 		"Xapian::doccount Xapian::Database::get_value_freq(Xapian::valueno\n"
55420 		"slot) const\n"
55421 		"\n"
55422 		"This is the number of documents which have a (non-empty) value stored\n"
55423 		"in the slot.\n"
55424 		"\n"
55425 		"Parameters:\n"
55426 		"-----------\n"
55427 		"\n"
55428 		"slot:  The value slot to examine. \n"
55429 		""},
55430 	 { (char *)"Database_get_value_lower_bound", _wrap_Database_get_value_lower_bound, METH_VARARGS, (char *)"\n"
55431 		"\n"
55432 		"\n"
55433 		"Get a lower bound on the values stored in the given value slot.\n"
55434 		"\n"
55435 		"std::string Xapian::Database::get_value_lower_bound(Xapian::valueno\n"
55436 		"slot) const\n"
55437 		"\n"
55438 		"If there are no values stored in the given value slot, this will\n"
55439 		"return an empty string.\n"
55440 		"\n"
55441 		"Parameters:\n"
55442 		"-----------\n"
55443 		"\n"
55444 		"slot:  The value slot to examine. \n"
55445 		""},
55446 	 { (char *)"Database_get_value_upper_bound", _wrap_Database_get_value_upper_bound, METH_VARARGS, (char *)"\n"
55447 		"\n"
55448 		"\n"
55449 		"Get an upper bound on the values stored in the given value slot.\n"
55450 		"\n"
55451 		"std::string Xapian::Database::get_value_upper_bound(Xapian::valueno\n"
55452 		"slot) const\n"
55453 		"\n"
55454 		"If there are no values stored in the given value slot, this will\n"
55455 		"return an empty string.\n"
55456 		"\n"
55457 		"Parameters:\n"
55458 		"-----------\n"
55459 		"\n"
55460 		"slot:  The value slot to examine. \n"
55461 		""},
55462 	 { (char *)"Database_get_doclength_lower_bound", (PyCFunction)_wrap_Database_get_doclength_lower_bound, METH_O, (char *)"\n"
55463 		"\n"
55464 		"\n"
55465 		"Get a lower bound on the length of a document in this DB.\n"
55466 		"\n"
55467 		"Xapian::termcount Xapian::Database::get_doclength_lower_bound() const\n"
55468 		"\n"
55469 		"This bound does not include any zero-length documents. \n"
55470 		""},
55471 	 { (char *)"Database_get_doclength_upper_bound", (PyCFunction)_wrap_Database_get_doclength_upper_bound, METH_O, (char *)"\n"
55472 		"\n"
55473 		"\n"
55474 		"Get an upper bound on the length of a document in this DB.\n"
55475 		"\n"
55476 		"Xapian::termcount Xapian::Database::get_doclength_upper_bound() const\n"
55477 		"\n"
55478 		""},
55479 	 { (char *)"Database_get_wdf_upper_bound", _wrap_Database_get_wdf_upper_bound, METH_VARARGS, (char *)"\n"
55480 		"\n"
55481 		"\n"
55482 		"Get an upper bound on the wdf of term term.\n"
55483 		"\n"
55484 		"Xapian::termcount Xapian::Database::get_wdf_upper_bound(const\n"
55485 		"std::string &term) const \n"
55486 		""},
55487 	 { (char *)"Database_valuestream_begin", _wrap_Database_valuestream_begin, METH_VARARGS, (char *)"\n"
55488 		"\n"
55489 		"\n"
55490 		"Return an iterator over the value in slot slot for each document.\n"
55491 		"\n"
55492 		"ValueIterator Xapian::Database::valuestream_begin(Xapian::valueno\n"
55493 		"slot) const \n"
55494 		""},
55495 	 { (char *)"Database_valuestream_end", _wrap_Database_valuestream_end, METH_VARARGS, (char *)"\n"
55496 		"\n"
55497 		"\n"
55498 		"Return end iterator corresponding to valuestream_begin().\n"
55499 		"\n"
55500 		"ValueIterator Xapian::Database::valuestream_end(Xapian::valueno) const\n"
55501 		"\n"
55502 		""},
55503 	 { (char *)"Database_get_doclength", _wrap_Database_get_doclength, METH_VARARGS, (char *)"\n"
55504 		"\n"
55505 		"\n"
55506 		"Get the length of a document.\n"
55507 		"\n"
55508 		"Xapian::termcount Xapian::Database::get_doclength(Xapian::docid did)\n"
55509 		"const \n"
55510 		""},
55511 	 { (char *)"Database_get_unique_terms", _wrap_Database_get_unique_terms, METH_VARARGS, (char *)"\n"
55512 		"\n"
55513 		"\n"
55514 		"Get the number of unique terms in document.\n"
55515 		"\n"
55516 		"Xapian::termcount Xapian::Database::get_unique_terms(Xapian::docid\n"
55517 		"did) const \n"
55518 		""},
55519 	 { (char *)"Database_keep_alive", (PyCFunction)_wrap_Database_keep_alive, METH_O, (char *)"\n"
55520 		"\n"
55521 		"\n"
55522 		"Send a \"keep-alive\" to remote databases to stop them timing out.\n"
55523 		"\n"
55524 		"void Xapian::Database::keep_alive()\n"
55525 		"\n"
55526 		"Has no effect on non-remote databases. \n"
55527 		""},
55528 	 { (char *)"Database_get_document", _wrap_Database_get_document, METH_VARARGS, (char *)"\n"
55529 		"\n"
55530 		"\n"
55531 		"Get a document from the database, given its document id.\n"
55532 		"\n"
55533 		"Xapian::Document Xapian::Database::get_document(Xapian::docid did,\n"
55534 		"unsigned flags) const\n"
55535 		"\n"
55536 		"This method returns a Xapian::Document object which provides the\n"
55537 		"information about a document.\n"
55538 		"\n"
55539 		"Parameters:\n"
55540 		"-----------\n"
55541 		"\n"
55542 		"did:  The document id of the document to retrieve.\n"
55543 		"\n"
55544 		"flags:  Zero or more flags bitwise-or-ed together (currently only\n"
55545 		"Xapian::DOC_ASSUME_VALID is supported).\n"
55546 		"\n"
55547 		"A Xapian::Document object containing the document data\n"
55548 		"\n"
55549 		"Parameters:\n"
55550 		"-----------\n"
55551 		"\n"
55552 		"Xapian::DocNotFoundError:  The document specified could not be found\n"
55553 		"in the database.\n"
55554 		"\n"
55555 		"Xapian::InvalidArgumentError:  did was 0, which is not a valid\n"
55556 		"document id. \n"
55557 		""},
55558 	 { (char *)"Database_get_spelling_suggestion", _wrap_Database_get_spelling_suggestion, METH_VARARGS, (char *)"\n"
55559 		"\n"
55560 		"\n"
55561 		"Suggest a spelling correction.\n"
55562 		"\n"
55563 		"std::string Xapian::Database::get_spelling_suggestion(const\n"
55564 		"std::string &word, unsigned max_edit_distance=2) const\n"
55565 		"\n"
55566 		"Parameters:\n"
55567 		"-----------\n"
55568 		"\n"
55569 		"word:  The potentially misspelled word.\n"
55570 		"\n"
55571 		"max_edit_distance:  Only consider words which are at most\n"
55572 		"max_edit_distance edits from word. An edit is a character insertion,\n"
55573 		"deletion, or the transposition of two adjacent characters (default is\n"
55574 		"2). \n"
55575 		""},
55576 	 { (char *)"Database__spellings_begin", (PyCFunction)_wrap_Database__spellings_begin, METH_O, (char *)"\n"
55577 		"\n"
55578 		"\n"
55579 		"An iterator which returns all the spelling correction targets.\n"
55580 		"\n"
55581 		"Xapian::TermIterator Xapian::Database::spellings_begin() const\n"
55582 		"\n"
55583 		"This returns all the words which are considered as targets for the\n"
55584 		"spelling correction algorithm. The frequency of each word is available\n"
55585 		"as the term frequency of each entry in the returned iterator. \n"
55586 		""},
55587 	 { (char *)"Database__spellings_end", (PyCFunction)_wrap_Database__spellings_end, METH_O, (char *)"\n"
55588 		"\n"
55589 		"\n"
55590 		"Corresponding end iterator to spellings_begin().\n"
55591 		"\n"
55592 		"Xapian::TermIterator Xapian::Database::spellings_end() const \n"
55593 		""},
55594 	 { (char *)"Database__synonyms_begin", _wrap_Database__synonyms_begin, METH_VARARGS, (char *)"\n"
55595 		"\n"
55596 		"\n"
55597 		"An iterator which returns all the synonyms for a given term.\n"
55598 		"\n"
55599 		"Xapian::TermIterator Xapian::Database::synonyms_begin(const\n"
55600 		"std::string &term) const\n"
55601 		"\n"
55602 		"Parameters:\n"
55603 		"-----------\n"
55604 		"\n"
55605 		"term:  The term to return synonyms for. \n"
55606 		""},
55607 	 { (char *)"Database__synonyms_end", _wrap_Database__synonyms_end, METH_VARARGS, (char *)"\n"
55608 		"\n"
55609 		"\n"
55610 		"Corresponding end iterator to synonyms_begin(term).\n"
55611 		"\n"
55612 		"Xapian::TermIterator Xapian::Database::synonyms_end(const std::string\n"
55613 		"&) const \n"
55614 		""},
55615 	 { (char *)"Database__synonym_keys_begin", _wrap_Database__synonym_keys_begin, METH_VARARGS, (char *)"\n"
55616 		"\n"
55617 		"\n"
55618 		"An iterator which returns all terms which have synonyms.\n"
55619 		"\n"
55620 		"Xapian::TermIterator Xapian::Database::synonym_keys_begin(const\n"
55621 		"std::string &prefix=std::string()) const\n"
55622 		"\n"
55623 		"Parameters:\n"
55624 		"-----------\n"
55625 		"\n"
55626 		"prefix:  If non-empty, only terms with this prefix are returned. \n"
55627 		""},
55628 	 { (char *)"Database__synonym_keys_end", _wrap_Database__synonym_keys_end, METH_VARARGS, (char *)"\n"
55629 		"\n"
55630 		"\n"
55631 		"Corresponding end iterator to synonym_keys_begin(prefix).\n"
55632 		"\n"
55633 		"Xapian::TermIterator Xapian::Database::synonym_keys_end(const\n"
55634 		"std::string &=std::string()) const \n"
55635 		""},
55636 	 { (char *)"Database_get_metadata", _wrap_Database_get_metadata, METH_VARARGS, (char *)"\n"
55637 		"\n"
55638 		"\n"
55639 		"Get the user-specified metadata associated with a given key.\n"
55640 		"\n"
55641 		"std::string Xapian::Database::get_metadata(const std::string &key)\n"
55642 		"const\n"
55643 		"\n"
55644 		"User-specified metadata allows you to store arbitrary information in\n"
55645 		"the form of (key, value) pairs. See  WritableDatabase::set_metadata()\n"
55646 		"for more information.\n"
55647 		"\n"
55648 		"When invoked on a Xapian::Database object representing multiple\n"
55649 		"databases, currently only the metadata for the first is considered but\n"
55650 		"this behaviour may change in the future.\n"
55651 		"\n"
55652 		"If there is no piece of metadata associated with the specified key, an\n"
55653 		"empty string is returned (this applies even for backends which don't\n"
55654 		"support metadata).\n"
55655 		"\n"
55656 		"Empty keys are not valid, and specifying one will cause an exception.\n"
55657 		"\n"
55658 		"Parameters:\n"
55659 		"-----------\n"
55660 		"\n"
55661 		"key:  The key of the metadata item to access.\n"
55662 		"\n"
55663 		"The retrieved metadata item's value.\n"
55664 		"\n"
55665 		"Parameters:\n"
55666 		"-----------\n"
55667 		"\n"
55668 		"Xapian::InvalidArgumentError:  will be thrown if the key supplied is\n"
55669 		"empty. \n"
55670 		""},
55671 	 { (char *)"Database__metadata_keys_begin", _wrap_Database__metadata_keys_begin, METH_VARARGS, (char *)"\n"
55672 		"\n"
55673 		"\n"
55674 		"An iterator which returns all user-specified metadata keys.\n"
55675 		"\n"
55676 		"Xapian::TermIterator Xapian::Database::metadata_keys_begin(const\n"
55677 		"std::string &prefix=std::string()) const\n"
55678 		"\n"
55679 		"When invoked on a Xapian::Database object representing multiple\n"
55680 		"databases, currently only the metadata for the first is considered but\n"
55681 		"this behaviour may change in the future.\n"
55682 		"\n"
55683 		"If the backend doesn't support metadata, then this method returns an\n"
55684 		"iterator which compares equal to that returned by metadata_keys_end().\n"
55685 		"\n"
55686 		"Parameters:\n"
55687 		"-----------\n"
55688 		"\n"
55689 		"prefix:  If non-empty, only keys with this prefix are returned.\n"
55690 		"\n"
55691 		"Parameters:\n"
55692 		"-----------\n"
55693 		"\n"
55694 		"Xapian::UnimplementedError:  will be thrown if the backend implements\n"
55695 		"user-specified metadata, but doesn't implement iterating its keys\n"
55696 		"(currently this happens for the InMemory backend). \n"
55697 		""},
55698 	 { (char *)"Database__metadata_keys_end", _wrap_Database__metadata_keys_end, METH_VARARGS, (char *)"\n"
55699 		"\n"
55700 		"\n"
55701 		"Corresponding end iterator to metadata_keys_begin().\n"
55702 		"\n"
55703 		"Xapian::TermIterator Xapian::Database::metadata_keys_end(const\n"
55704 		"std::string &=std::string()) const \n"
55705 		""},
55706 	 { (char *)"Database_get_uuid", (PyCFunction)_wrap_Database_get_uuid, METH_O, (char *)"\n"
55707 		"\n"
55708 		"\n"
55709 		"Get a UUID for the database.\n"
55710 		"\n"
55711 		"std::string Xapian::Database::get_uuid() const\n"
55712 		"\n"
55713 		"The UUID will persist for the lifetime of the database.\n"
55714 		"\n"
55715 		"Replicas (eg, made with the replication protocol, or by copying all\n"
55716 		"the database files) will have the same UUID. However, copies (made\n"
55717 		"with copydatabase, or xapian-compact) will have different UUIDs.\n"
55718 		"\n"
55719 		"If the backend does not support UUIDs or this database has no\n"
55720 		"subdatabases, the UUID will be empty.\n"
55721 		"\n"
55722 		"If this database has multiple sub-databases, the UUID string will\n"
55723 		"contain the UUIDs of all the sub-databases. \n"
55724 		""},
55725 	 { (char *)"Database_locked", (PyCFunction)_wrap_Database_locked, METH_O, (char *)"\n"
55726 		"\n"
55727 		"\n"
55728 		"Test if this database is currently locked for writing.\n"
55729 		"\n"
55730 		"bool Xapian::Database::locked() const\n"
55731 		"\n"
55732 		"If the underlying object is actually a WritableDatabase, always\n"
55733 		"returns true.\n"
55734 		"\n"
55735 		"Otherwise tests if there's a writer holding the lock (or if we can't\n"
55736 		"test for a lock without taking it on the current platform, throw\n"
55737 		"Xapian::UnimplementedError). If there's an error while trying to test\n"
55738 		"the lock, throws Xapian::DatabaseLockError.\n"
55739 		"\n"
55740 		"For multi-databases, this tests each sub-database and returns true if\n"
55741 		"any of them are locked. \n"
55742 		""},
55743 	 { (char *)"Database_get_revision", (PyCFunction)_wrap_Database_get_revision, METH_O, (char *)"\n"
55744 		"\n"
55745 		"\n"
55746 		"Get the revision of the database.\n"
55747 		"\n"
55748 		"Xapian::rev Xapian::Database::get_revision() const\n"
55749 		"\n"
55750 		"The revision is an unsigned integer which increases with each commit.\n"
55751 		"\n"
55752 		"The database must have exactly one sub-database, which must be of type\n"
55753 		"chert or glass. Otherwise an exception will be thrown.\n"
55754 		"\n"
55755 		"Experimental - seehttps://xapian.org/docs/deprecation#experimental-\n"
55756 		"features \n"
55757 		""},
55758 	 { (char *)"Database_check", _wrap_Database_check, METH_VARARGS, NULL},
55759 	 { (char *)"Database_compact", _wrap_Database_compact, METH_VARARGS, (char *)"\n"
55760 		"\n"
55761 		"\n"
55762 		"Produce a compact version of this database.\n"
55763 		"\n"
55764 		"void Xapian::Database::compact(int fd, unsigned flags, int block_size,\n"
55765 		"Xapian::Compactor &compactor)\n"
55766 		"\n"
55767 		"New 1.3.4. Various methods of the Compactor class were deprecated in\n"
55768 		"1.3.4.\n"
55769 		"\n"
55770 		"The compactor functor allows handling progress output and specifying\n"
55771 		"how user metadata is merged.\n"
55772 		"\n"
55773 		"This variant writes a single-file database to the specified file\n"
55774 		"descriptor. Only the glass backend supports such databases, so this\n"
55775 		"form is only supported for this backend.\n"
55776 		"\n"
55777 		"Parameters:\n"
55778 		"-----------\n"
55779 		"\n"
55780 		"fd:  File descriptor to write the compact version to. The descriptor\n"
55781 		"needs to be readable and writable (open with O_RDWR) and seekable. The\n"
55782 		"current file offset is used, allowing compacting to a single file\n"
55783 		"database embedded within another file. Xapian takes ownership of the\n"
55784 		"file descriptor and will close it before returning.\n"
55785 		"\n"
55786 		"flags:  Any of the following combined using bitwise-or (| in C++):\n"
55787 		"Xapian::DBCOMPACT_NO_RENUMBER By default the document ids will be\n"
55788 		"renumbered the output - currently by applying the same offset to all\n"
55789 		"the document ids in a particular source database. If this flag is\n"
55790 		"specified, then this renumbering doesn't happen, but all the document\n"
55791 		"ids must be unique over all source databases. Currently the ranges of\n"
55792 		"document ids in each source must not overlap either, though this\n"
55793 		"restriction may be removed in the future.\n"
55794 		"\n"
55795 		"Xapian::DBCOMPACT_MULTIPASS If merging more than 3 databases, merge\n"
55796 		"the postlists in multiple passes, which is generally faster but\n"
55797 		"requires more disk space for temporary files.\n"
55798 		"\n"
55799 		"Xapian::DBCOMPACT_SINGLE_FILE Produce a single-file database (only\n"
55800 		"supported for glass currently) - this flag is implied in this form and\n"
55801 		"need not be specified explicitly.\n"
55802 		"\n"
55803 		"block_size:  This specifies the block size (in bytes) for to use for\n"
55804 		"the output. For glass, the block size must be a power of 2 between\n"
55805 		"2048 and 65536 (inclusive), and the default (also used if an invalid\n"
55806 		"value is passed) is 8192 bytes.\n"
55807 		"\n"
55808 		"compactor:  Functor \n"
55809 		""},
55810 	 { (char *)"Database_swigregister", Database_swigregister, METH_VARARGS, NULL},
55811 	 { (char *)"Database_swiginit", Database_swiginit, METH_VARARGS, NULL},
55812 	 { (char *)"delete_WritableDatabase", (PyCFunction)_wrap_delete_WritableDatabase, METH_O, (char *)"\n"
55813 		"\n"
55814 		"\n"
55815 		"Destroy this handle on the database.\n"
55816 		"\n"
55817 		"virtual Xapian::WritableDatabase::~WritableDatabase()\n"
55818 		"\n"
55819 		"If no other handles to this database remain, the database will be\n"
55820 		"closed.\n"
55821 		"\n"
55822 		"If a transaction is active cancel_transaction() will be implicitly\n"
55823 		"called; if no transaction is active commit() will be implicitly\n"
55824 		"called, but any exception will be swallowed (because throwing\n"
55825 		"exceptions in C++ destructors is problematic). If you aren't using\n"
55826 		"transactions and want to know about any failure to commit changes,\n"
55827 		"call commit() explicitly before the destructor gets called. \n"
55828 		""},
55829 	 { (char *)"new_WritableDatabase", _wrap_new_WritableDatabase, METH_VARARGS, (char *)"\n"
55830 		"\n"
55831 		"\n"
55832 		"Copying is allowed.\n"
55833 		"\n"
55834 		"Xapian::WritableDatabase::WritableDatabase(const WritableDatabase\n"
55835 		"&other)\n"
55836 		"\n"
55837 		"The internals are reference counted, so copying is cheap.\n"
55838 		"\n"
55839 		"Parameters:\n"
55840 		"-----------\n"
55841 		"\n"
55842 		"other:  The object to copy. \n"
55843 		""},
55844 	 { (char *)"WritableDatabase_commit", (PyCFunction)_wrap_WritableDatabase_commit, METH_O, (char *)"\n"
55845 		"\n"
55846 		"\n"
55847 		"Commit any pending modifications made to the database.\n"
55848 		"\n"
55849 		"void Xapian::WritableDatabase::commit()\n"
55850 		"\n"
55851 		"For efficiency reasons, when performing multiple updates to a database\n"
55852 		"it is best (indeed, almost essential) to make as many modifications as\n"
55853 		"memory will permit in a single pass through the database. To ensure\n"
55854 		"this, Xapian batches up modifications.\n"
55855 		"\n"
55856 		"This method may be called at any time to commit any pending\n"
55857 		"modifications to the database.\n"
55858 		"\n"
55859 		"If any of the modifications fail, an exception will be thrown and the\n"
55860 		"database will be left in a state in which each separate addition,\n"
55861 		"replacement or deletion operation has either been fully performed or\n"
55862 		"not performed at all: it is then up to the application to work out\n"
55863 		"which operations need to be repeated.\n"
55864 		"\n"
55865 		"It's not valid to call commit() within a transaction.\n"
55866 		"\n"
55867 		"Beware of calling commit() too frequently: this will make indexing\n"
55868 		"take much longer.\n"
55869 		"\n"
55870 		"Note that commit() need not be called explicitly: it will be called\n"
55871 		"automatically when the database is closed, or when a sufficient number\n"
55872 		"of modifications have been made. By default, this is every 10000\n"
55873 		"documents added, deleted, or modified. This value is rather\n"
55874 		"conservative, and if you have a machine with plenty of memory, you can\n"
55875 		"improve indexing throughput dramatically by setting\n"
55876 		"XAPIAN_FLUSH_THRESHOLD in the environment to a larger value.\n"
55877 		"\n"
55878 		"This method was new in Xapian 1.1.0 - in earlier versions it was\n"
55879 		"called flush().\n"
55880 		"\n"
55881 		"Parameters:\n"
55882 		"-----------\n"
55883 		"\n"
55884 		"Xapian::DatabaseError:  will be thrown if a problem occurs while\n"
55885 		"modifying the database.\n"
55886 		"\n"
55887 		"Xapian::DatabaseCorruptError:  will be thrown if the database is in a\n"
55888 		"corrupt state. \n"
55889 		""},
55890 	 { (char *)"WritableDatabase_flush", (PyCFunction)_wrap_WritableDatabase_flush, METH_O, (char *)"\n"
55891 		"\n"
55892 		"\n"
55893 		"Pre-1.1.0 name for commit().\n"
55894 		"\n"
55895 		"void Xapian::WritableDatabase::flush()\n"
55896 		"\n"
55897 		"Use commit() instead. \n"
55898 		""},
55899 	 { (char *)"WritableDatabase_begin_transaction", _wrap_WritableDatabase_begin_transaction, METH_VARARGS, (char *)"\n"
55900 		"\n"
55901 		"\n"
55902 		"Begin a transaction.\n"
55903 		"\n"
55904 		"void Xapian::WritableDatabase::begin_transaction(bool flushed=true)\n"
55905 		"\n"
55906 		"In Xapian a transaction is a group of modifications to the database\n"
55907 		"which are linked such that either all will be applied simultaneously\n"
55908 		"or none will be applied at all. Even in the case of a power failure,\n"
55909 		"this characteristic should be preserved (as long as the filesystem\n"
55910 		"isn't corrupted, etc).\n"
55911 		"\n"
55912 		"A transaction is started with begin_transaction() and can either be\n"
55913 		"committed by calling commit_transaction() or aborted by calling\n"
55914 		"cancel_transaction().\n"
55915 		"\n"
55916 		"By default, a transaction implicitly calls commit() before and after\n"
55917 		"so that the modifications stand and fall without affecting\n"
55918 		"modifications before or after.\n"
55919 		"\n"
55920 		"The downside of these implicit calls to commit() is that small\n"
55921 		"transactions can harm indexing performance in the same way that\n"
55922 		"explicitly calling commit() frequently can.\n"
55923 		"\n"
55924 		"If you're applying atomic groups of changes and only wish to ensure\n"
55925 		"that each group is either applied or not applied, then you can prevent\n"
55926 		"the automatic commit() before and after the transaction by starting\n"
55927 		"the transaction with begin_transaction(false). However, if\n"
55928 		"cancel_transaction is called (or if commit_transaction isn't called\n"
55929 		"before the WritableDatabase object is destroyed) then any changes\n"
55930 		"which were pending before the transaction began will also be\n"
55931 		"discarded.\n"
55932 		"\n"
55933 		"Transactions aren't currently supported by the InMemory backend.\n"
55934 		"\n"
55935 		"Parameters:\n"
55936 		"-----------\n"
55937 		"\n"
55938 		"flushed:  Is this a flushed transaction? By default transactions are\n"
55939 		"\"flushed\", which means that committing a transaction will ensure\n"
55940 		"those changes are permanently written to the database. By contrast,\n"
55941 		"unflushed transactions only ensure that changes within the transaction\n"
55942 		"are either all applied or all aren't.\n"
55943 		"\n"
55944 		"Parameters:\n"
55945 		"-----------\n"
55946 		"\n"
55947 		"Xapian::UnimplementedError:  will be thrown if transactions are not\n"
55948 		"available for this database type.\n"
55949 		"\n"
55950 		"Xapian::InvalidOperationError:  will be thrown if this is called at an\n"
55951 		"invalid time, such as when a transaction is already in progress. \n"
55952 		""},
55953 	 { (char *)"WritableDatabase_commit_transaction", (PyCFunction)_wrap_WritableDatabase_commit_transaction, METH_O, (char *)"\n"
55954 		"\n"
55955 		"\n"
55956 		"Complete the transaction currently in progress.\n"
55957 		"\n"
55958 		"void Xapian::WritableDatabase::commit_transaction()\n"
55959 		"\n"
55960 		"If this method completes successfully and this is a flushed\n"
55961 		"transaction, all the database modifications made during the\n"
55962 		"transaction will have been committed to the database.\n"
55963 		"\n"
55964 		"If an error occurs, an exception will be thrown, and none of the\n"
55965 		"modifications made to the database during the transaction will have\n"
55966 		"been applied to the database.\n"
55967 		"\n"
55968 		"In all cases the transaction will no longer be in progress.\n"
55969 		"\n"
55970 		"Parameters:\n"
55971 		"-----------\n"
55972 		"\n"
55973 		"Xapian::DatabaseError:  will be thrown if a problem occurs while\n"
55974 		"modifying the database.\n"
55975 		"\n"
55976 		"Xapian::DatabaseCorruptError:  will be thrown if the database is in a\n"
55977 		"corrupt state.\n"
55978 		"\n"
55979 		"Xapian::InvalidOperationError:  will be thrown if a transaction is not\n"
55980 		"currently in progress.\n"
55981 		"\n"
55982 		"Xapian::UnimplementedError:  will be thrown if transactions are not\n"
55983 		"available for this database type. \n"
55984 		""},
55985 	 { (char *)"WritableDatabase_cancel_transaction", (PyCFunction)_wrap_WritableDatabase_cancel_transaction, METH_O, (char *)"\n"
55986 		"\n"
55987 		"\n"
55988 		"Abort the transaction currently in progress, discarding the pending\n"
55989 		"modifications made to the database.\n"
55990 		"\n"
55991 		"void Xapian::WritableDatabase::cancel_transaction()\n"
55992 		"\n"
55993 		"If an error occurs in this method, an exception will be thrown, but\n"
55994 		"the transaction will be cancelled anyway.\n"
55995 		"\n"
55996 		"Parameters:\n"
55997 		"-----------\n"
55998 		"\n"
55999 		"Xapian::DatabaseError:  will be thrown if a problem occurs while\n"
56000 		"modifying the database.\n"
56001 		"\n"
56002 		"Xapian::DatabaseCorruptError:  will be thrown if the database is in a\n"
56003 		"corrupt state.\n"
56004 		"\n"
56005 		"Xapian::InvalidOperationError:  will be thrown if a transaction is not\n"
56006 		"currently in progress.\n"
56007 		"\n"
56008 		"Xapian::UnimplementedError:  will be thrown if transactions are not\n"
56009 		"available for this database type. \n"
56010 		""},
56011 	 { (char *)"WritableDatabase_add_document", _wrap_WritableDatabase_add_document, METH_VARARGS, (char *)"\n"
56012 		"\n"
56013 		"\n"
56014 		"Add a new document to the database.\n"
56015 		"\n"
56016 		"Xapian::docid Xapian::WritableDatabase::add_document(const\n"
56017 		"Xapian::Document &document)\n"
56018 		"\n"
56019 		"This method adds the specified document to the database, returning a\n"
56020 		"newly allocated document ID. Automatically allocated document IDs come\n"
56021 		"from a per-database monotonically increasing counter, so IDs from\n"
56022 		"deleted documents won't be reused.\n"
56023 		"\n"
56024 		"If you want to specify the document ID to be used, you should call\n"
56025 		"replace_document() instead.\n"
56026 		"\n"
56027 		"Note that changes to the database won't be immediately committed to\n"
56028 		"disk; see commit() for more details.\n"
56029 		"\n"
56030 		"As with all database modification operations, the effect is atomic:\n"
56031 		"the document will either be fully added, or the document fails to be\n"
56032 		"added and an exception is thrown (possibly at a later time when\n"
56033 		"commit() is called or the database is closed).\n"
56034 		"\n"
56035 		"Parameters:\n"
56036 		"-----------\n"
56037 		"\n"
56038 		"document:  The new document to be added.\n"
56039 		"\n"
56040 		"The document ID of the newly added document.\n"
56041 		"\n"
56042 		"Parameters:\n"
56043 		"-----------\n"
56044 		"\n"
56045 		"Xapian::DatabaseError:  will be thrown if a problem occurs while\n"
56046 		"writing to the database.\n"
56047 		"\n"
56048 		"Xapian::DatabaseCorruptError:  will be thrown if the database is in a\n"
56049 		"corrupt state. \n"
56050 		""},
56051 	 { (char *)"WritableDatabase_delete_document", _wrap_WritableDatabase_delete_document, METH_VARARGS, (char *)"\n"
56052 		"\n"
56053 		"\n"
56054 		"Delete any documents indexed by a term from the database.\n"
56055 		"\n"
56056 		"void Xapian::WritableDatabase::delete_document(const std::string\n"
56057 		"&unique_term)\n"
56058 		"\n"
56059 		"This method removes any documents indexed by the specified term from\n"
56060 		"the database.\n"
56061 		"\n"
56062 		"A major use is for convenience when UIDs from another system are\n"
56063 		"mapped to terms in Xapian, although this method has other uses (for\n"
56064 		"example, you could add a \"deletion date\" term to documents at index\n"
56065 		"time and use this method to delete all documents due for deletion on a\n"
56066 		"particular date).\n"
56067 		"\n"
56068 		"Parameters:\n"
56069 		"-----------\n"
56070 		"\n"
56071 		"unique_term:  The term to remove references to.\n"
56072 		"\n"
56073 		"Parameters:\n"
56074 		"-----------\n"
56075 		"\n"
56076 		"Xapian::DatabaseError:  will be thrown if a problem occurs while\n"
56077 		"writing to the database.\n"
56078 		"\n"
56079 		"Xapian::DatabaseCorruptError:  will be thrown if the database is in a\n"
56080 		"corrupt state. \n"
56081 		""},
56082 	 { (char *)"WritableDatabase_replace_document", _wrap_WritableDatabase_replace_document, METH_VARARGS, (char *)"\n"
56083 		"\n"
56084 		"\n"
56085 		"Replace any documents matching a term.\n"
56086 		"\n"
56087 		"Xapian::docid Xapian::WritableDatabase::replace_document(const\n"
56088 		"std::string &unique_term, const Xapian::Document &document)\n"
56089 		"\n"
56090 		"This method replaces any documents indexed by the specified term with\n"
56091 		"the specified document. If any documents are indexed by the term, the\n"
56092 		"lowest document ID will be used for the document, otherwise a new\n"
56093 		"document ID will be generated as for add_document.\n"
56094 		"\n"
56095 		"One common use is to allow UIDs from another system to easily be\n"
56096 		"mapped to terms in Xapian. Note that this method doesn't automatically\n"
56097 		"add unique_term as a term, so you'll need to call\n"
56098 		"document.add_term(unique_term) first when using replace_document() in\n"
56099 		"this way.\n"
56100 		"\n"
56101 		"Note that changes to the database won't be immediately committed to\n"
56102 		"disk; see commit() for more details.\n"
56103 		"\n"
56104 		"As with all database modification operations, the effect is atomic:\n"
56105 		"the document(s) will either be fully replaced, or the document(s) fail\n"
56106 		"to be replaced and an exception is thrown (possibly at a later time\n"
56107 		"when commit() is called or the database is closed).\n"
56108 		"\n"
56109 		"Parameters:\n"
56110 		"-----------\n"
56111 		"\n"
56112 		"unique_term:  The \"unique\" term.\n"
56113 		"\n"
56114 		"document:  The new document.\n"
56115 		"\n"
56116 		"The document ID that document was given.\n"
56117 		"\n"
56118 		"Parameters:\n"
56119 		"-----------\n"
56120 		"\n"
56121 		"Xapian::DatabaseError:  will be thrown if a problem occurs while\n"
56122 		"writing to the database.\n"
56123 		"\n"
56124 		"Xapian::DatabaseCorruptError:  will be thrown if the database is in a\n"
56125 		"corrupt state. \n"
56126 		""},
56127 	 { (char *)"WritableDatabase_add_spelling", _wrap_WritableDatabase_add_spelling, METH_VARARGS, (char *)"\n"
56128 		"\n"
56129 		"\n"
56130 		"Add a word to the spelling dictionary.\n"
56131 		"\n"
56132 		"void Xapian::WritableDatabase::add_spelling(const std::string &word,\n"
56133 		"Xapian::termcount freqinc=1) const\n"
56134 		"\n"
56135 		"If the word is already present, its frequency is increased.\n"
56136 		"\n"
56137 		"Parameters:\n"
56138 		"-----------\n"
56139 		"\n"
56140 		"word:  The word to add.\n"
56141 		"\n"
56142 		"freqinc:  How much to increase its frequency by (default 1). \n"
56143 		""},
56144 	 { (char *)"WritableDatabase_remove_spelling", _wrap_WritableDatabase_remove_spelling, METH_VARARGS, (char *)"\n"
56145 		"\n"
56146 		"\n"
56147 		"Remove a word from the spelling dictionary.\n"
56148 		"\n"
56149 		"void Xapian::WritableDatabase::remove_spelling(const std::string\n"
56150 		"&word, Xapian::termcount freqdec=1) const\n"
56151 		"\n"
56152 		"The word's frequency is decreased, and if would become zero or less\n"
56153 		"then the word is removed completely.\n"
56154 		"\n"
56155 		"Parameters:\n"
56156 		"-----------\n"
56157 		"\n"
56158 		"word:  The word to remove.\n"
56159 		"\n"
56160 		"freqdec:  How much to decrease its frequency by (default 1). \n"
56161 		""},
56162 	 { (char *)"WritableDatabase_add_synonym", _wrap_WritableDatabase_add_synonym, METH_VARARGS, (char *)"\n"
56163 		"\n"
56164 		"\n"
56165 		"Add a synonym for a term.\n"
56166 		"\n"
56167 		"void Xapian::WritableDatabase::add_synonym(const std::string &term,\n"
56168 		"const std::string &synonym) const\n"
56169 		"\n"
56170 		"Parameters:\n"
56171 		"-----------\n"
56172 		"\n"
56173 		"term:  The term to add a synonym for.\n"
56174 		"\n"
56175 		"synonym:  The synonym to add. If this is already a synonym for term,\n"
56176 		"then no action is taken. \n"
56177 		""},
56178 	 { (char *)"WritableDatabase_remove_synonym", _wrap_WritableDatabase_remove_synonym, METH_VARARGS, (char *)"\n"
56179 		"\n"
56180 		"\n"
56181 		"Remove a synonym for a term.\n"
56182 		"\n"
56183 		"void Xapian::WritableDatabase::remove_synonym(const std::string &term,\n"
56184 		"const std::string &synonym) const\n"
56185 		"\n"
56186 		"Parameters:\n"
56187 		"-----------\n"
56188 		"\n"
56189 		"term:  The term to remove a synonym for.\n"
56190 		"\n"
56191 		"synonym:  The synonym to remove. If this isn't currently a synonym for\n"
56192 		"term, then no action is taken. \n"
56193 		""},
56194 	 { (char *)"WritableDatabase_clear_synonyms", _wrap_WritableDatabase_clear_synonyms, METH_VARARGS, (char *)"\n"
56195 		"\n"
56196 		"\n"
56197 		"Remove all synonyms for a term.\n"
56198 		"\n"
56199 		"void Xapian::WritableDatabase::clear_synonyms(const std::string &term)\n"
56200 		"const\n"
56201 		"\n"
56202 		"Parameters:\n"
56203 		"-----------\n"
56204 		"\n"
56205 		"term:  The term to remove all synonyms for. If the term has no\n"
56206 		"synonyms, no action is taken. \n"
56207 		""},
56208 	 { (char *)"WritableDatabase_set_metadata", _wrap_WritableDatabase_set_metadata, METH_VARARGS, (char *)"\n"
56209 		"\n"
56210 		"\n"
56211 		"Set the user-specified metadata associated with a given key.\n"
56212 		"\n"
56213 		"void Xapian::WritableDatabase::set_metadata(const std::string &key,\n"
56214 		"const std::string &metadata)\n"
56215 		"\n"
56216 		"This method sets the metadata value associated with a given key. If\n"
56217 		"there is already a metadata value stored in the database with the same\n"
56218 		"key, the old value is replaced. If you want to delete an existing item\n"
56219 		"of metadata, just set its value to the empty string.\n"
56220 		"\n"
56221 		"User-specified metadata allows you to store arbitrary information in\n"
56222 		"the form of (key, value) pairs.\n"
56223 		"\n"
56224 		"There's no hard limit on the number of metadata items, or the size of\n"
56225 		"the metadata values. Metadata keys have a limited length, which depend\n"
56226 		"on the backend. We recommend limiting them to 200 bytes. Empty keys\n"
56227 		"are not valid, and specifying one will cause an exception.\n"
56228 		"\n"
56229 		"Metadata modifications are committed to disk in the same way as\n"
56230 		"modifications to the documents in the database are: i.e.,\n"
56231 		"modifications are atomic, and won't be committed to disk immediately\n"
56232 		"(see commit() for more details). This allows metadata to be used to\n"
56233 		"link databases with versioned external resources by storing the\n"
56234 		"appropriate version number in a metadata item.\n"
56235 		"\n"
56236 		"You can also use the metadata to store arbitrary extra information\n"
56237 		"associated with terms, documents, or postings by encoding the termname\n"
56238 		"and/or document id into the metadata key.\n"
56239 		"\n"
56240 		"Parameters:\n"
56241 		"-----------\n"
56242 		"\n"
56243 		"key:  The key of the metadata item to set.\n"
56244 		"\n"
56245 		"metadata:  The value of the metadata item to set.\n"
56246 		"\n"
56247 		"Parameters:\n"
56248 		"-----------\n"
56249 		"\n"
56250 		"Xapian::DatabaseError:  will be thrown if a problem occurs while\n"
56251 		"writing to the database.\n"
56252 		"\n"
56253 		"Xapian::DatabaseCorruptError:  will be thrown if the database is in a\n"
56254 		"corrupt state.\n"
56255 		"\n"
56256 		"Xapian::InvalidArgumentError:  will be thrown if the key supplied is\n"
56257 		"empty.\n"
56258 		"\n"
56259 		"Xapian::UnimplementedError:  will be thrown if the database backend in\n"
56260 		"use doesn't support user- specified metadata. \n"
56261 		""},
56262 	 { (char *)"WritableDatabase_swigregister", WritableDatabase_swigregister, METH_VARARGS, NULL},
56263 	 { (char *)"WritableDatabase_swiginit", WritableDatabase_swiginit, METH_VARARGS, NULL},
56264 	 { (char *)"open_stub", _wrap_open_stub, METH_VARARGS, (char *)"\n"
56265 		"\n"
56266 		"\n"
56267 		"Construct a WritableDatabase object for a stub database file.\n"
56268 		"\n"
56269 		"WritableDatabase Xapian::Auto::open_stub(const std::string &file, int\n"
56270 		"action)\n"
56271 		"\n"
56272 		"The stub database file must contain serialised parameters for exactly\n"
56273 		"one database.\n"
56274 		"\n"
56275 		"Parameters:\n"
56276 		"-----------\n"
56277 		"\n"
56278 		"file:  pathname of the stub database file.\n"
56279 		"\n"
56280 		"action:  determines handling of existing/non-existing database:\n"
56281 		"Xapian::DB_CREATE fail if database already exist, otherwise create new\n"
56282 		"database.\n"
56283 		"\n"
56284 		"Xapian::DB_CREATE_OR_OPEN open existing database, or create new\n"
56285 		"database if none exists.\n"
56286 		"\n"
56287 		"Xapian::DB_CREATE_OR_OVERWRITE overwrite existing database, or create\n"
56288 		"new database if none exists.\n"
56289 		"\n"
56290 		"Xapian::DB_OPEN open existing database, failing if none exists. \n"
56291 		""},
56292 	 { (char *)"inmemory_open", (PyCFunction)_wrap_inmemory_open, METH_NOARGS, (char *)"\n"
56293 		"\n"
56294 		"\n"
56295 		"Construct a WritableDatabase object for a new, empty InMemory\n"
56296 		"database.\n"
56297 		"\n"
56298 		"WritableDatabase Xapian::InMemory::open()\n"
56299 		"\n"
56300 		"Only a writable InMemory database can be created, since a read-only\n"
56301 		"one would always remain empty. \n"
56302 		""},
56303 	 { (char *)"chert_open", _wrap_chert_open, METH_VARARGS, (char *)"\n"
56304 		"\n"
56305 		"\n"
56306 		"Construct a Database object for update access to a Chert database.\n"
56307 		"\n"
56308 		"WritableDatabase Xapian::Chert::open(const std::string &dir, int\n"
56309 		"action, int block_size=0)\n"
56310 		"\n"
56311 		"Parameters:\n"
56312 		"-----------\n"
56313 		"\n"
56314 		"dir:  pathname of the directory containing the database.\n"
56315 		"\n"
56316 		"action:  determines handling of existing/non-existing database:\n"
56317 		"Xapian::DB_CREATE fail if database already exist, otherwise create new\n"
56318 		"database.\n"
56319 		"\n"
56320 		"Xapian::DB_CREATE_OR_OPEN open existing database, or create new\n"
56321 		"database if none exists.\n"
56322 		"\n"
56323 		"Xapian::DB_CREATE_OR_OVERWRITE overwrite existing database, or create\n"
56324 		"new database if none exists.\n"
56325 		"\n"
56326 		"Xapian::DB_OPEN open existing database, failing if none exists.\n"
56327 		"\n"
56328 		"block_size:  the Btree blocksize to use (in bytes), which must be a\n"
56329 		"power of two between 2048 and 65536 (inclusive). The default (also\n"
56330 		"used if an invalid value if passed) is 8192 bytes. This parameter is\n"
56331 		"ignored when opening an existing database. \n"
56332 		""},
56333 	 { (char *)"remote_open", _wrap_remote_open, METH_VARARGS, (char *)"\n"
56334 		"\n"
56335 		"\n"
56336 		"Construct a Database object for read-only access to a remote database\n"
56337 		"accessed via a program.\n"
56338 		"\n"
56339 		"Database Xapian::Remote::open(const std::string &program, const\n"
56340 		"std::string &args, useconds_t timeout=10000)\n"
56341 		"\n"
56342 		"Access to the remote database is done by running an external program\n"
56343 		"and communicating with it on stdin/stdout.\n"
56344 		"\n"
56345 		"Parameters:\n"
56346 		"-----------\n"
56347 		"\n"
56348 		"program:  the external program to run.\n"
56349 		"\n"
56350 		"args:  space-separated list of arguments to pass to program.\n"
56351 		"\n"
56352 		"timeout:  timeout in milliseconds. If this timeout is exceeded for any\n"
56353 		"individual operation on the remote database then\n"
56354 		"Xapian::NetworkTimeoutError is thrown. A timeout of 0 means don't\n"
56355 		"timeout. (Default is 10000ms, which is 10 seconds). \n"
56356 		""},
56357 	 { (char *)"remote_open_writable", _wrap_remote_open_writable, METH_VARARGS, (char *)"\n"
56358 		"\n"
56359 		"\n"
56360 		"Construct a WritableDatabase object for update access to a remote\n"
56361 		"database accessed via a program.\n"
56362 		"\n"
56363 		"WritableDatabase Xapian::Remote::open_writable(const std::string\n"
56364 		"&program, const std::string &args, useconds_t timeout=0, int flags=0)\n"
56365 		"\n"
56366 		"Access to the remote database is done by running an external program\n"
56367 		"and communicating with it on stdin/stdout.\n"
56368 		"\n"
56369 		"Parameters:\n"
56370 		"-----------\n"
56371 		"\n"
56372 		"program:  the external program to run.\n"
56373 		"\n"
56374 		"args:  space-separated list of arguments to pass to program.\n"
56375 		"\n"
56376 		"timeout:  timeout in milliseconds. If this timeout is exceeded for any\n"
56377 		"individual operation on the remote database then\n"
56378 		"Xapian::NetworkTimeoutError is thrown. (Default is 0, which means\n"
56379 		"don't timeout).\n"
56380 		"\n"
56381 		"flags:   Xapian::DB_RETRY_LOCK or 0. \n"
56382 		""},
56383 	 { NULL, NULL, 0, NULL }
56384 };
56385 
56386 
56387 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
56388 
_p_Xapian__WritableDatabaseTo_p_Xapian__Database(void * x,int * SWIGUNUSEDPARM (newmemory))56389 static void *_p_Xapian__WritableDatabaseTo_p_Xapian__Database(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56390     return (void *)((Xapian::Database *)  ((Xapian::WritableDatabase *) x));
56391 }
_p_Xapian__GreatCircleMetricTo_p_Xapian__LatLongMetric(void * x,int * SWIGUNUSEDPARM (newmemory))56392 static void *_p_Xapian__GreatCircleMetricTo_p_Xapian__LatLongMetric(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56393     return (void *)((Xapian::LatLongMetric *)  ((Xapian::GreatCircleMetric *) x));
56394 }
_p_Xapian__ValueSetMatchDeciderTo_p_Xapian__MatchDecider(void * x,int * SWIGUNUSEDPARM (newmemory))56395 static void *_p_Xapian__ValueSetMatchDeciderTo_p_Xapian__MatchDecider(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56396     return (void *)((Xapian::MatchDecider *)  ((Xapian::ValueSetMatchDecider *) x));
56397 }
_p_Xapian__ExpandDeciderFilterPrefixTo_p_Xapian__ExpandDecider(void * x,int * SWIGUNUSEDPARM (newmemory))56398 static void *_p_Xapian__ExpandDeciderFilterPrefixTo_p_Xapian__ExpandDecider(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56399     return (void *)((Xapian::ExpandDecider *)  ((Xapian::ExpandDeciderFilterPrefix *) x));
56400 }
_p_Xapian__ExpandDeciderAndTo_p_Xapian__ExpandDecider(void * x,int * SWIGUNUSEDPARM (newmemory))56401 static void *_p_Xapian__ExpandDeciderAndTo_p_Xapian__ExpandDecider(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56402     return (void *)((Xapian::ExpandDecider *)  ((Xapian::ExpandDeciderAnd *) x));
56403 }
_p_Xapian__ExpandDeciderFilterTermsTo_p_Xapian__ExpandDecider(void * x,int * SWIGUNUSEDPARM (newmemory))56404 static void *_p_Xapian__ExpandDeciderFilterTermsTo_p_Xapian__ExpandDecider(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56405     return (void *)((Xapian::ExpandDecider *)  ((Xapian::ExpandDeciderFilterTerms *) x));
56406 }
_p_Xapian__NetworkTimeoutErrorTo_p_Xapian__NetworkError(void * x,int * SWIGUNUSEDPARM (newmemory))56407 static void *_p_Xapian__NetworkTimeoutErrorTo_p_Xapian__NetworkError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56408     return (void *)((Xapian::NetworkError *)  ((Xapian::NetworkTimeoutError *) x));
56409 }
_p_Xapian__MultiValueKeyMakerTo_p_Xapian__KeyMaker(void * x,int * SWIGUNUSEDPARM (newmemory))56410 static void *_p_Xapian__MultiValueKeyMakerTo_p_Xapian__KeyMaker(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56411     return (void *)((Xapian::KeyMaker *)  ((Xapian::MultiValueKeyMaker *) x));
56412 }
_p_Xapian__LatLongDistanceKeyMakerTo_p_Xapian__KeyMaker(void * x,int * SWIGUNUSEDPARM (newmemory))56413 static void *_p_Xapian__LatLongDistanceKeyMakerTo_p_Xapian__KeyMaker(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56414     return (void *)((Xapian::KeyMaker *)  ((Xapian::LatLongDistanceKeyMaker *) x));
56415 }
_p_Xapian__AssertionErrorTo_p_Xapian__LogicError(void * x,int * SWIGUNUSEDPARM (newmemory))56416 static void *_p_Xapian__AssertionErrorTo_p_Xapian__LogicError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56417     return (void *)((Xapian::LogicError *)  ((Xapian::AssertionError *) x));
56418 }
_p_Xapian__InvalidOperationErrorTo_p_Xapian__LogicError(void * x,int * SWIGUNUSEDPARM (newmemory))56419 static void *_p_Xapian__InvalidOperationErrorTo_p_Xapian__LogicError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56420     return (void *)((Xapian::LogicError *)  ((Xapian::InvalidOperationError *) x));
56421 }
_p_Xapian__UnimplementedErrorTo_p_Xapian__LogicError(void * x,int * SWIGUNUSEDPARM (newmemory))56422 static void *_p_Xapian__UnimplementedErrorTo_p_Xapian__LogicError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56423     return (void *)((Xapian::LogicError *)  ((Xapian::UnimplementedError *) x));
56424 }
_p_Xapian__InvalidArgumentErrorTo_p_Xapian__LogicError(void * x,int * SWIGUNUSEDPARM (newmemory))56425 static void *_p_Xapian__InvalidArgumentErrorTo_p_Xapian__LogicError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56426     return (void *)((Xapian::LogicError *)  ((Xapian::InvalidArgumentError *) x));
56427 }
_p_Xapian__ValuePostingSourceTo_p_Xapian__PostingSource(void * x,int * SWIGUNUSEDPARM (newmemory))56428 static void *_p_Xapian__ValuePostingSourceTo_p_Xapian__PostingSource(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56429     return (void *)((Xapian::PostingSource *)  ((Xapian::ValuePostingSource *) x));
56430 }
_p_Xapian__ValueWeightPostingSourceTo_p_Xapian__PostingSource(void * x,int * SWIGUNUSEDPARM (newmemory))56431 static void *_p_Xapian__ValueWeightPostingSourceTo_p_Xapian__PostingSource(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56432     return (void *)((Xapian::PostingSource *) (Xapian::ValuePostingSource *) ((Xapian::ValueWeightPostingSource *) x));
56433 }
_p_Xapian__DecreasingValueWeightPostingSourceTo_p_Xapian__PostingSource(void * x,int * SWIGUNUSEDPARM (newmemory))56434 static void *_p_Xapian__DecreasingValueWeightPostingSourceTo_p_Xapian__PostingSource(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56435     return (void *)((Xapian::PostingSource *) (Xapian::ValuePostingSource *)(Xapian::ValueWeightPostingSource *) ((Xapian::DecreasingValueWeightPostingSource *) x));
56436 }
_p_Xapian__ValueMapPostingSourceTo_p_Xapian__PostingSource(void * x,int * SWIGUNUSEDPARM (newmemory))56437 static void *_p_Xapian__ValueMapPostingSourceTo_p_Xapian__PostingSource(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56438     return (void *)((Xapian::PostingSource *) (Xapian::ValuePostingSource *) ((Xapian::ValueMapPostingSource *) x));
56439 }
_p_Xapian__FixedWeightPostingSourceTo_p_Xapian__PostingSource(void * x,int * SWIGUNUSEDPARM (newmemory))56440 static void *_p_Xapian__FixedWeightPostingSourceTo_p_Xapian__PostingSource(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56441     return (void *)((Xapian::PostingSource *)  ((Xapian::FixedWeightPostingSource *) x));
56442 }
_p_Xapian__LatLongDistancePostingSourceTo_p_Xapian__PostingSource(void * x,int * SWIGUNUSEDPARM (newmemory))56443 static void *_p_Xapian__LatLongDistancePostingSourceTo_p_Xapian__PostingSource(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56444     return (void *)((Xapian::PostingSource *) (Xapian::ValuePostingSource *) ((Xapian::LatLongDistancePostingSource *) x));
56445 }
_p_Xapian__ValueWeightPostingSourceTo_p_Xapian__ValuePostingSource(void * x,int * SWIGUNUSEDPARM (newmemory))56446 static void *_p_Xapian__ValueWeightPostingSourceTo_p_Xapian__ValuePostingSource(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56447     return (void *)((Xapian::ValuePostingSource *)  ((Xapian::ValueWeightPostingSource *) x));
56448 }
_p_Xapian__DecreasingValueWeightPostingSourceTo_p_Xapian__ValuePostingSource(void * x,int * SWIGUNUSEDPARM (newmemory))56449 static void *_p_Xapian__DecreasingValueWeightPostingSourceTo_p_Xapian__ValuePostingSource(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56450     return (void *)((Xapian::ValuePostingSource *) (Xapian::ValueWeightPostingSource *) ((Xapian::DecreasingValueWeightPostingSource *) x));
56451 }
_p_Xapian__ValueMapPostingSourceTo_p_Xapian__ValuePostingSource(void * x,int * SWIGUNUSEDPARM (newmemory))56452 static void *_p_Xapian__ValueMapPostingSourceTo_p_Xapian__ValuePostingSource(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56453     return (void *)((Xapian::ValuePostingSource *)  ((Xapian::ValueMapPostingSource *) x));
56454 }
_p_Xapian__LatLongDistancePostingSourceTo_p_Xapian__ValuePostingSource(void * x,int * SWIGUNUSEDPARM (newmemory))56455 static void *_p_Xapian__LatLongDistancePostingSourceTo_p_Xapian__ValuePostingSource(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56456     return (void *)((Xapian::ValuePostingSource *)  ((Xapian::LatLongDistancePostingSource *) x));
56457 }
_p_Xapian__DecreasingValueWeightPostingSourceTo_p_Xapian__ValueWeightPostingSource(void * x,int * SWIGUNUSEDPARM (newmemory))56458 static void *_p_Xapian__DecreasingValueWeightPostingSourceTo_p_Xapian__ValueWeightPostingSource(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56459     return (void *)((Xapian::ValueWeightPostingSource *)  ((Xapian::DecreasingValueWeightPostingSource *) x));
56460 }
_p_Xapian__DPHWeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))56461 static void *_p_Xapian__DPHWeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56462     return (void *)((Xapian::Weight *)  ((Xapian::DPHWeight *) x));
56463 }
_p_Xapian__PL2WeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))56464 static void *_p_Xapian__PL2WeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56465     return (void *)((Xapian::Weight *)  ((Xapian::PL2Weight *) x));
56466 }
_p_Xapian__DLHWeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))56467 static void *_p_Xapian__DLHWeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56468     return (void *)((Xapian::Weight *)  ((Xapian::DLHWeight *) x));
56469 }
_p_Xapian__BB2WeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))56470 static void *_p_Xapian__BB2WeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56471     return (void *)((Xapian::Weight *)  ((Xapian::BB2Weight *) x));
56472 }
_p_Xapian__IneB2WeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))56473 static void *_p_Xapian__IneB2WeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56474     return (void *)((Xapian::Weight *)  ((Xapian::IneB2Weight *) x));
56475 }
_p_Xapian__IfB2WeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))56476 static void *_p_Xapian__IfB2WeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56477     return (void *)((Xapian::Weight *)  ((Xapian::IfB2Weight *) x));
56478 }
_p_Xapian__InL2WeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))56479 static void *_p_Xapian__InL2WeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56480     return (void *)((Xapian::Weight *)  ((Xapian::InL2Weight *) x));
56481 }
_p_Xapian__TradWeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))56482 static void *_p_Xapian__TradWeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56483     return (void *)((Xapian::Weight *)  ((Xapian::TradWeight *) x));
56484 }
_p_Xapian__TfIdfWeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))56485 static void *_p_Xapian__TfIdfWeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56486     return (void *)((Xapian::Weight *)  ((Xapian::TfIdfWeight *) x));
56487 }
_p_Xapian__BoolWeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))56488 static void *_p_Xapian__BoolWeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56489     return (void *)((Xapian::Weight *)  ((Xapian::BoolWeight *) x));
56490 }
_p_Xapian__CoordWeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))56491 static void *_p_Xapian__CoordWeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56492     return (void *)((Xapian::Weight *)  ((Xapian::CoordWeight *) x));
56493 }
_p_Xapian__LMWeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))56494 static void *_p_Xapian__LMWeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56495     return (void *)((Xapian::Weight *)  ((Xapian::LMWeight *) x));
56496 }
_p_Xapian__PL2PlusWeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))56497 static void *_p_Xapian__PL2PlusWeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56498     return (void *)((Xapian::Weight *)  ((Xapian::PL2PlusWeight *) x));
56499 }
_p_Xapian__BM25PlusWeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))56500 static void *_p_Xapian__BM25PlusWeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56501     return (void *)((Xapian::Weight *)  ((Xapian::BM25PlusWeight *) x));
56502 }
_p_Xapian__BM25WeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))56503 static void *_p_Xapian__BM25WeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56504     return (void *)((Xapian::Weight *)  ((Xapian::BM25Weight *) x));
56505 }
_p_Xapian__ValueCountMatchSpyTo_p_Xapian__MatchSpy(void * x,int * SWIGUNUSEDPARM (newmemory))56506 static void *_p_Xapian__ValueCountMatchSpyTo_p_Xapian__MatchSpy(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56507     return (void *)((Xapian::MatchSpy *)  ((Xapian::ValueCountMatchSpy *) x));
56508 }
_p_Xapian__SimpleStopperTo_p_Xapian__Stopper(void * x,int * SWIGUNUSEDPARM (newmemory))56509 static void *_p_Xapian__SimpleStopperTo_p_Xapian__Stopper(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56510     return (void *)((Xapian::Stopper *)  ((Xapian::SimpleStopper *) x));
56511 }
_p_Xapian__DatabaseVersionErrorTo_p_Xapian__DatabaseOpeningError(void * x,int * SWIGUNUSEDPARM (newmemory))56512 static void *_p_Xapian__DatabaseVersionErrorTo_p_Xapian__DatabaseOpeningError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56513     return (void *)((Xapian::DatabaseOpeningError *)  ((Xapian::DatabaseVersionError *) x));
56514 }
_p_Xapian__DatabaseNotFoundErrorTo_p_Xapian__DatabaseOpeningError(void * x,int * SWIGUNUSEDPARM (newmemory))56515 static void *_p_Xapian__DatabaseNotFoundErrorTo_p_Xapian__DatabaseOpeningError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56516     return (void *)((Xapian::DatabaseOpeningError *)  ((Xapian::DatabaseNotFoundError *) x));
56517 }
_p_Xapian__DatabaseVersionErrorTo_p_Xapian__DatabaseError(void * x,int * SWIGUNUSEDPARM (newmemory))56518 static void *_p_Xapian__DatabaseVersionErrorTo_p_Xapian__DatabaseError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56519     return (void *)((Xapian::DatabaseError *) (Xapian::DatabaseOpeningError *) ((Xapian::DatabaseVersionError *) x));
56520 }
_p_Xapian__DatabaseLockErrorTo_p_Xapian__DatabaseError(void * x,int * SWIGUNUSEDPARM (newmemory))56521 static void *_p_Xapian__DatabaseLockErrorTo_p_Xapian__DatabaseError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56522     return (void *)((Xapian::DatabaseError *)  ((Xapian::DatabaseLockError *) x));
56523 }
_p_Xapian__DatabaseModifiedErrorTo_p_Xapian__DatabaseError(void * x,int * SWIGUNUSEDPARM (newmemory))56524 static void *_p_Xapian__DatabaseModifiedErrorTo_p_Xapian__DatabaseError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56525     return (void *)((Xapian::DatabaseError *)  ((Xapian::DatabaseModifiedError *) x));
56526 }
_p_Xapian__DatabaseOpeningErrorTo_p_Xapian__DatabaseError(void * x,int * SWIGUNUSEDPARM (newmemory))56527 static void *_p_Xapian__DatabaseOpeningErrorTo_p_Xapian__DatabaseError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56528     return (void *)((Xapian::DatabaseError *)  ((Xapian::DatabaseOpeningError *) x));
56529 }
_p_Xapian__DatabaseClosedErrorTo_p_Xapian__DatabaseError(void * x,int * SWIGUNUSEDPARM (newmemory))56530 static void *_p_Xapian__DatabaseClosedErrorTo_p_Xapian__DatabaseError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56531     return (void *)((Xapian::DatabaseError *)  ((Xapian::DatabaseClosedError *) x));
56532 }
_p_Xapian__DatabaseNotFoundErrorTo_p_Xapian__DatabaseError(void * x,int * SWIGUNUSEDPARM (newmemory))56533 static void *_p_Xapian__DatabaseNotFoundErrorTo_p_Xapian__DatabaseError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56534     return (void *)((Xapian::DatabaseError *) (Xapian::DatabaseOpeningError *) ((Xapian::DatabaseNotFoundError *) x));
56535 }
_p_Xapian__DatabaseCreateErrorTo_p_Xapian__DatabaseError(void * x,int * SWIGUNUSEDPARM (newmemory))56536 static void *_p_Xapian__DatabaseCreateErrorTo_p_Xapian__DatabaseError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56537     return (void *)((Xapian::DatabaseError *)  ((Xapian::DatabaseCreateError *) x));
56538 }
_p_Xapian__DatabaseCorruptErrorTo_p_Xapian__DatabaseError(void * x,int * SWIGUNUSEDPARM (newmemory))56539 static void *_p_Xapian__DatabaseCorruptErrorTo_p_Xapian__DatabaseError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56540     return (void *)((Xapian::DatabaseError *)  ((Xapian::DatabaseCorruptError *) x));
56541 }
_p_Xapian__DocNotFoundErrorTo_p_Xapian__RuntimeError(void * x,int * SWIGUNUSEDPARM (newmemory))56542 static void *_p_Xapian__DocNotFoundErrorTo_p_Xapian__RuntimeError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56543     return (void *)((Xapian::RuntimeError *)  ((Xapian::DocNotFoundError *) x));
56544 }
_p_Xapian__WildcardErrorTo_p_Xapian__RuntimeError(void * x,int * SWIGUNUSEDPARM (newmemory))56545 static void *_p_Xapian__WildcardErrorTo_p_Xapian__RuntimeError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56546     return (void *)((Xapian::RuntimeError *)  ((Xapian::WildcardError *) x));
56547 }
_p_Xapian__DatabaseNotFoundErrorTo_p_Xapian__RuntimeError(void * x,int * SWIGUNUSEDPARM (newmemory))56548 static void *_p_Xapian__DatabaseNotFoundErrorTo_p_Xapian__RuntimeError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56549     return (void *)((Xapian::RuntimeError *) (Xapian::DatabaseError *)(Xapian::DatabaseOpeningError *) ((Xapian::DatabaseNotFoundError *) x));
56550 }
_p_Xapian__DatabaseLockErrorTo_p_Xapian__RuntimeError(void * x,int * SWIGUNUSEDPARM (newmemory))56551 static void *_p_Xapian__DatabaseLockErrorTo_p_Xapian__RuntimeError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56552     return (void *)((Xapian::RuntimeError *) (Xapian::DatabaseError *) ((Xapian::DatabaseLockError *) x));
56553 }
_p_Xapian__NetworkTimeoutErrorTo_p_Xapian__RuntimeError(void * x,int * SWIGUNUSEDPARM (newmemory))56554 static void *_p_Xapian__NetworkTimeoutErrorTo_p_Xapian__RuntimeError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56555     return (void *)((Xapian::RuntimeError *) (Xapian::NetworkError *) ((Xapian::NetworkTimeoutError *) x));
56556 }
_p_Xapian__FeatureUnavailableErrorTo_p_Xapian__RuntimeError(void * x,int * SWIGUNUSEDPARM (newmemory))56557 static void *_p_Xapian__FeatureUnavailableErrorTo_p_Xapian__RuntimeError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56558     return (void *)((Xapian::RuntimeError *)  ((Xapian::FeatureUnavailableError *) x));
56559 }
_p_Xapian__DatabaseCreateErrorTo_p_Xapian__RuntimeError(void * x,int * SWIGUNUSEDPARM (newmemory))56560 static void *_p_Xapian__DatabaseCreateErrorTo_p_Xapian__RuntimeError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56561     return (void *)((Xapian::RuntimeError *) (Xapian::DatabaseError *) ((Xapian::DatabaseCreateError *) x));
56562 }
_p_Xapian__InternalErrorTo_p_Xapian__RuntimeError(void * x,int * SWIGUNUSEDPARM (newmemory))56563 static void *_p_Xapian__InternalErrorTo_p_Xapian__RuntimeError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56564     return (void *)((Xapian::RuntimeError *)  ((Xapian::InternalError *) x));
56565 }
_p_Xapian__DatabaseModifiedErrorTo_p_Xapian__RuntimeError(void * x,int * SWIGUNUSEDPARM (newmemory))56566 static void *_p_Xapian__DatabaseModifiedErrorTo_p_Xapian__RuntimeError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56567     return (void *)((Xapian::RuntimeError *) (Xapian::DatabaseError *) ((Xapian::DatabaseModifiedError *) x));
56568 }
_p_Xapian__DatabaseClosedErrorTo_p_Xapian__RuntimeError(void * x,int * SWIGUNUSEDPARM (newmemory))56569 static void *_p_Xapian__DatabaseClosedErrorTo_p_Xapian__RuntimeError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56570     return (void *)((Xapian::RuntimeError *) (Xapian::DatabaseError *) ((Xapian::DatabaseClosedError *) x));
56571 }
_p_Xapian__DatabaseErrorTo_p_Xapian__RuntimeError(void * x,int * SWIGUNUSEDPARM (newmemory))56572 static void *_p_Xapian__DatabaseErrorTo_p_Xapian__RuntimeError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56573     return (void *)((Xapian::RuntimeError *)  ((Xapian::DatabaseError *) x));
56574 }
_p_Xapian__DatabaseOpeningErrorTo_p_Xapian__RuntimeError(void * x,int * SWIGUNUSEDPARM (newmemory))56575 static void *_p_Xapian__DatabaseOpeningErrorTo_p_Xapian__RuntimeError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56576     return (void *)((Xapian::RuntimeError *) (Xapian::DatabaseError *) ((Xapian::DatabaseOpeningError *) x));
56577 }
_p_Xapian__RangeErrorTo_p_Xapian__RuntimeError(void * x,int * SWIGUNUSEDPARM (newmemory))56578 static void *_p_Xapian__RangeErrorTo_p_Xapian__RuntimeError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56579     return (void *)((Xapian::RuntimeError *)  ((Xapian::RangeError *) x));
56580 }
_p_Xapian__SerialisationErrorTo_p_Xapian__RuntimeError(void * x,int * SWIGUNUSEDPARM (newmemory))56581 static void *_p_Xapian__SerialisationErrorTo_p_Xapian__RuntimeError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56582     return (void *)((Xapian::RuntimeError *)  ((Xapian::SerialisationError *) x));
56583 }
_p_Xapian__DatabaseVersionErrorTo_p_Xapian__RuntimeError(void * x,int * SWIGUNUSEDPARM (newmemory))56584 static void *_p_Xapian__DatabaseVersionErrorTo_p_Xapian__RuntimeError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56585     return (void *)((Xapian::RuntimeError *) (Xapian::DatabaseError *)(Xapian::DatabaseOpeningError *) ((Xapian::DatabaseVersionError *) x));
56586 }
_p_Xapian__NetworkErrorTo_p_Xapian__RuntimeError(void * x,int * SWIGUNUSEDPARM (newmemory))56587 static void *_p_Xapian__NetworkErrorTo_p_Xapian__RuntimeError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56588     return (void *)((Xapian::RuntimeError *)  ((Xapian::NetworkError *) x));
56589 }
_p_Xapian__DatabaseCorruptErrorTo_p_Xapian__RuntimeError(void * x,int * SWIGUNUSEDPARM (newmemory))56590 static void *_p_Xapian__DatabaseCorruptErrorTo_p_Xapian__RuntimeError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56591     return (void *)((Xapian::RuntimeError *) (Xapian::DatabaseError *) ((Xapian::DatabaseCorruptError *) x));
56592 }
_p_Xapian__QueryParserErrorTo_p_Xapian__RuntimeError(void * x,int * SWIGUNUSEDPARM (newmemory))56593 static void *_p_Xapian__QueryParserErrorTo_p_Xapian__RuntimeError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56594     return (void *)((Xapian::RuntimeError *)  ((Xapian::QueryParserError *) x));
56595 }
_p_Xapian__DateValueRangeProcessorTo_p_Xapian__StringValueRangeProcessor(void * x,int * SWIGUNUSEDPARM (newmemory))56596 static void *_p_Xapian__DateValueRangeProcessorTo_p_Xapian__StringValueRangeProcessor(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56597     return (void *)((Xapian::StringValueRangeProcessor *)  ((Xapian::DateValueRangeProcessor *) x));
56598 }
_p_Xapian__NumberValueRangeProcessorTo_p_Xapian__StringValueRangeProcessor(void * x,int * SWIGUNUSEDPARM (newmemory))56599 static void *_p_Xapian__NumberValueRangeProcessorTo_p_Xapian__StringValueRangeProcessor(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56600     return (void *)((Xapian::StringValueRangeProcessor *)  ((Xapian::NumberValueRangeProcessor *) x));
56601 }
_p_Xapian__StringValueRangeProcessorTo_p_Xapian__ValueRangeProcessor(void * x,int * SWIGUNUSEDPARM (newmemory))56602 static void *_p_Xapian__StringValueRangeProcessorTo_p_Xapian__ValueRangeProcessor(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56603     return (void *)((Xapian::ValueRangeProcessor *)  ((Xapian::StringValueRangeProcessor *) x));
56604 }
_p_Xapian__DateValueRangeProcessorTo_p_Xapian__ValueRangeProcessor(void * x,int * SWIGUNUSEDPARM (newmemory))56605 static void *_p_Xapian__DateValueRangeProcessorTo_p_Xapian__ValueRangeProcessor(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56606     return (void *)((Xapian::ValueRangeProcessor *) (Xapian::StringValueRangeProcessor *) ((Xapian::DateValueRangeProcessor *) x));
56607 }
_p_Xapian__NumberValueRangeProcessorTo_p_Xapian__ValueRangeProcessor(void * x,int * SWIGUNUSEDPARM (newmemory))56608 static void *_p_Xapian__NumberValueRangeProcessorTo_p_Xapian__ValueRangeProcessor(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56609     return (void *)((Xapian::ValueRangeProcessor *) (Xapian::StringValueRangeProcessor *) ((Xapian::NumberValueRangeProcessor *) x));
56610 }
_p_Xapian__DateRangeProcessorTo_p_Xapian__RangeProcessor(void * x,int * SWIGUNUSEDPARM (newmemory))56611 static void *_p_Xapian__DateRangeProcessorTo_p_Xapian__RangeProcessor(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56612     return (void *)((Xapian::RangeProcessor *)  ((Xapian::DateRangeProcessor *) x));
56613 }
_p_Xapian__NumberRangeProcessorTo_p_Xapian__RangeProcessor(void * x,int * SWIGUNUSEDPARM (newmemory))56614 static void *_p_Xapian__NumberRangeProcessorTo_p_Xapian__RangeProcessor(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56615     return (void *)((Xapian::RangeProcessor *)  ((Xapian::NumberRangeProcessor *) x));
56616 }
_p_Xapian__DocNotFoundErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56617 static void *_p_Xapian__DocNotFoundErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56618     return (void *)((Xapian::Error *) (Xapian::RuntimeError *) ((Xapian::DocNotFoundError *) x));
56619 }
_p_Xapian__WildcardErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56620 static void *_p_Xapian__WildcardErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56621     return (void *)((Xapian::Error *) (Xapian::RuntimeError *) ((Xapian::WildcardError *) x));
56622 }
_p_Xapian__DatabaseNotFoundErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56623 static void *_p_Xapian__DatabaseNotFoundErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56624     return (void *)((Xapian::Error *) (Xapian::RuntimeError *)(Xapian::DatabaseError *)(Xapian::DatabaseOpeningError *) ((Xapian::DatabaseNotFoundError *) x));
56625 }
_p_Xapian__DatabaseLockErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56626 static void *_p_Xapian__DatabaseLockErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56627     return (void *)((Xapian::Error *) (Xapian::RuntimeError *)(Xapian::DatabaseError *) ((Xapian::DatabaseLockError *) x));
56628 }
_p_Xapian__LogicErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56629 static void *_p_Xapian__LogicErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56630     return (void *)((Xapian::Error *)  ((Xapian::LogicError *) x));
56631 }
_p_Xapian__DatabaseCreateErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56632 static void *_p_Xapian__DatabaseCreateErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56633     return (void *)((Xapian::Error *) (Xapian::RuntimeError *)(Xapian::DatabaseError *) ((Xapian::DatabaseCreateError *) x));
56634 }
_p_Xapian__FeatureUnavailableErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56635 static void *_p_Xapian__FeatureUnavailableErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56636     return (void *)((Xapian::Error *) (Xapian::RuntimeError *) ((Xapian::FeatureUnavailableError *) x));
56637 }
_p_Xapian__NetworkTimeoutErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56638 static void *_p_Xapian__NetworkTimeoutErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56639     return (void *)((Xapian::Error *) (Xapian::RuntimeError *)(Xapian::NetworkError *) ((Xapian::NetworkTimeoutError *) x));
56640 }
_p_Xapian__InternalErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56641 static void *_p_Xapian__InternalErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56642     return (void *)((Xapian::Error *) (Xapian::RuntimeError *) ((Xapian::InternalError *) x));
56643 }
_p_Xapian__DatabaseModifiedErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56644 static void *_p_Xapian__DatabaseModifiedErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56645     return (void *)((Xapian::Error *) (Xapian::RuntimeError *)(Xapian::DatabaseError *) ((Xapian::DatabaseModifiedError *) x));
56646 }
_p_Xapian__UnimplementedErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56647 static void *_p_Xapian__UnimplementedErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56648     return (void *)((Xapian::Error *) (Xapian::LogicError *) ((Xapian::UnimplementedError *) x));
56649 }
_p_Xapian__DatabaseClosedErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56650 static void *_p_Xapian__DatabaseClosedErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56651     return (void *)((Xapian::Error *) (Xapian::RuntimeError *)(Xapian::DatabaseError *) ((Xapian::DatabaseClosedError *) x));
56652 }
_p_Xapian__DatabaseErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56653 static void *_p_Xapian__DatabaseErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56654     return (void *)((Xapian::Error *) (Xapian::RuntimeError *) ((Xapian::DatabaseError *) x));
56655 }
_p_Xapian__RuntimeErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56656 static void *_p_Xapian__RuntimeErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56657     return (void *)((Xapian::Error *)  ((Xapian::RuntimeError *) x));
56658 }
_p_Xapian__DatabaseOpeningErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56659 static void *_p_Xapian__DatabaseOpeningErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56660     return (void *)((Xapian::Error *) (Xapian::RuntimeError *)(Xapian::DatabaseError *) ((Xapian::DatabaseOpeningError *) x));
56661 }
_p_Xapian__RangeErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56662 static void *_p_Xapian__RangeErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56663     return (void *)((Xapian::Error *) (Xapian::RuntimeError *) ((Xapian::RangeError *) x));
56664 }
_p_Xapian__DatabaseVersionErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56665 static void *_p_Xapian__DatabaseVersionErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56666     return (void *)((Xapian::Error *) (Xapian::RuntimeError *)(Xapian::DatabaseError *)(Xapian::DatabaseOpeningError *) ((Xapian::DatabaseVersionError *) x));
56667 }
_p_Xapian__InvalidOperationErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56668 static void *_p_Xapian__InvalidOperationErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56669     return (void *)((Xapian::Error *) (Xapian::LogicError *) ((Xapian::InvalidOperationError *) x));
56670 }
_p_Xapian__AssertionErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56671 static void *_p_Xapian__AssertionErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56672     return (void *)((Xapian::Error *) (Xapian::LogicError *) ((Xapian::AssertionError *) x));
56673 }
_p_Xapian__SerialisationErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56674 static void *_p_Xapian__SerialisationErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56675     return (void *)((Xapian::Error *) (Xapian::RuntimeError *) ((Xapian::SerialisationError *) x));
56676 }
_p_Xapian__NetworkErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56677 static void *_p_Xapian__NetworkErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56678     return (void *)((Xapian::Error *) (Xapian::RuntimeError *) ((Xapian::NetworkError *) x));
56679 }
_p_Xapian__DatabaseCorruptErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56680 static void *_p_Xapian__DatabaseCorruptErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56681     return (void *)((Xapian::Error *) (Xapian::RuntimeError *)(Xapian::DatabaseError *) ((Xapian::DatabaseCorruptError *) x));
56682 }
_p_Xapian__InvalidArgumentErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56683 static void *_p_Xapian__InvalidArgumentErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56684     return (void *)((Xapian::Error *) (Xapian::LogicError *) ((Xapian::InvalidArgumentError *) x));
56685 }
_p_Xapian__QueryParserErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56686 static void *_p_Xapian__QueryParserErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56687     return (void *)((Xapian::Error *) (Xapian::RuntimeError *) ((Xapian::QueryParserError *) x));
56688 }
56689 static swig_type_info _swigt__p_Xapian__AssertionError = {"_p_Xapian__AssertionError", "Xapian::AssertionError *", 0, 0, (void*)0, 0};
56690 static swig_type_info _swigt__p_Xapian__BB2Weight = {"_p_Xapian__BB2Weight", "Xapian::BB2Weight *", 0, 0, (void*)0, 0};
56691 static swig_type_info _swigt__p_Xapian__BM25PlusWeight = {"_p_Xapian__BM25PlusWeight", "Xapian::BM25PlusWeight *", 0, 0, (void*)0, 0};
56692 static swig_type_info _swigt__p_Xapian__BM25Weight = {"_p_Xapian__BM25Weight", "Xapian::BM25Weight *", 0, 0, (void*)0, 0};
56693 static swig_type_info _swigt__p_Xapian__BoolWeight = {"_p_Xapian__BoolWeight", "Xapian::BoolWeight *", 0, 0, (void*)0, 0};
56694 static swig_type_info _swigt__p_Xapian__Compactor = {"_p_Xapian__Compactor", "Xapian::Compactor *", 0, 0, (void*)0, 0};
56695 static swig_type_info _swigt__p_Xapian__CoordWeight = {"_p_Xapian__CoordWeight", "Xapian::CoordWeight *", 0, 0, (void*)0, 0};
56696 static swig_type_info _swigt__p_Xapian__DLHWeight = {"_p_Xapian__DLHWeight", "Xapian::DLHWeight *", 0, 0, (void*)0, 0};
56697 static swig_type_info _swigt__p_Xapian__DPHWeight = {"_p_Xapian__DPHWeight", "Xapian::DPHWeight *", 0, 0, (void*)0, 0};
56698 static swig_type_info _swigt__p_Xapian__Database = {"_p_Xapian__Database", "Xapian::Database *", 0, 0, (void*)0, 0};
56699 static swig_type_info _swigt__p_Xapian__DatabaseClosedError = {"_p_Xapian__DatabaseClosedError", "Xapian::DatabaseClosedError *", 0, 0, (void*)0, 0};
56700 static swig_type_info _swigt__p_Xapian__DatabaseCorruptError = {"_p_Xapian__DatabaseCorruptError", "Xapian::DatabaseCorruptError *", 0, 0, (void*)0, 0};
56701 static swig_type_info _swigt__p_Xapian__DatabaseCreateError = {"_p_Xapian__DatabaseCreateError", "Xapian::DatabaseCreateError *", 0, 0, (void*)0, 0};
56702 static swig_type_info _swigt__p_Xapian__DatabaseError = {"_p_Xapian__DatabaseError", "Xapian::DatabaseError *", 0, 0, (void*)0, 0};
56703 static swig_type_info _swigt__p_Xapian__DatabaseLockError = {"_p_Xapian__DatabaseLockError", "Xapian::DatabaseLockError *", 0, 0, (void*)0, 0};
56704 static swig_type_info _swigt__p_Xapian__DatabaseModifiedError = {"_p_Xapian__DatabaseModifiedError", "Xapian::DatabaseModifiedError *", 0, 0, (void*)0, 0};
56705 static swig_type_info _swigt__p_Xapian__DatabaseNotFoundError = {"_p_Xapian__DatabaseNotFoundError", "Xapian::DatabaseNotFoundError *", 0, 0, (void*)0, 0};
56706 static swig_type_info _swigt__p_Xapian__DatabaseOpeningError = {"_p_Xapian__DatabaseOpeningError", "Xapian::DatabaseOpeningError *", 0, 0, (void*)0, 0};
56707 static swig_type_info _swigt__p_Xapian__DatabaseVersionError = {"_p_Xapian__DatabaseVersionError", "Xapian::DatabaseVersionError *", 0, 0, (void*)0, 0};
56708 static swig_type_info _swigt__p_Xapian__DateRangeProcessor = {"_p_Xapian__DateRangeProcessor", "Xapian::DateRangeProcessor *", 0, 0, (void*)0, 0};
56709 static swig_type_info _swigt__p_Xapian__DateValueRangeProcessor = {"_p_Xapian__DateValueRangeProcessor", "Xapian::DateValueRangeProcessor *", 0, 0, (void*)0, 0};
56710 static swig_type_info _swigt__p_Xapian__DecreasingValueWeightPostingSource = {"_p_Xapian__DecreasingValueWeightPostingSource", "Xapian::DecreasingValueWeightPostingSource *", 0, 0, (void*)0, 0};
56711 static swig_type_info _swigt__p_Xapian__DocNotFoundError = {"_p_Xapian__DocNotFoundError", "Xapian::DocNotFoundError *", 0, 0, (void*)0, 0};
56712 static swig_type_info _swigt__p_Xapian__Document = {"_p_Xapian__Document", "Xapian::Document *", 0, 0, (void*)0, 0};
56713 static swig_type_info _swigt__p_Xapian__ESet = {"_p_Xapian__ESet", "Xapian::ESet *", 0, 0, (void*)0, 0};
56714 static swig_type_info _swigt__p_Xapian__ESetIterator = {"_p_Xapian__ESetIterator", "Xapian::ESetIterator *", 0, 0, (void*)0, 0};
56715 static swig_type_info _swigt__p_Xapian__Enquire = {"_p_Xapian__Enquire", "Xapian::Enquire *", 0, 0, (void*)0, 0};
56716 static swig_type_info _swigt__p_Xapian__Error = {"_p_Xapian__Error", "Xapian::Error *", 0, 0, (void*)0, 0};
56717 static swig_type_info _swigt__p_Xapian__ExpandDecider = {"_p_Xapian__ExpandDecider", "Xapian::ExpandDecider *", 0, 0, (void*)0, 0};
56718 static swig_type_info _swigt__p_Xapian__ExpandDeciderFilterTerms = {"_p_Xapian__ExpandDeciderFilterTerms", 0, 0, 0, 0, 0};
56719 static swig_type_info _swigt__p_Xapian__ExpandDeciderAnd = {"_p_Xapian__ExpandDeciderAnd", "Xapian::ExpandDeciderAnd *", 0, 0, (void*)0, 0};
56720 static swig_type_info _swigt__p_Xapian__ExpandDeciderFilterPrefix = {"_p_Xapian__ExpandDeciderFilterPrefix", "Xapian::ExpandDeciderFilterPrefix *", 0, 0, (void*)0, 0};
56721 static swig_type_info _swigt__p_Xapian__FeatureUnavailableError = {"_p_Xapian__FeatureUnavailableError", "Xapian::FeatureUnavailableError *", 0, 0, (void*)0, 0};
56722 static swig_type_info _swigt__p_Xapian__FieldProcessor = {"_p_Xapian__FieldProcessor", "Xapian::FieldProcessor *", 0, 0, (void*)0, 0};
56723 static swig_type_info _swigt__p_Xapian__FixedWeightPostingSource = {"_p_Xapian__FixedWeightPostingSource", "Xapian::FixedWeightPostingSource *", 0, 0, (void*)0, 0};
56724 static swig_type_info _swigt__p_Xapian__GreatCircleMetric = {"_p_Xapian__GreatCircleMetric", "Xapian::GreatCircleMetric *", 0, 0, (void*)0, 0};
56725 static swig_type_info _swigt__p_Xapian__IfB2Weight = {"_p_Xapian__IfB2Weight", "Xapian::IfB2Weight *", 0, 0, (void*)0, 0};
56726 static swig_type_info _swigt__p_Xapian__InL2Weight = {"_p_Xapian__InL2Weight", "Xapian::InL2Weight *", 0, 0, (void*)0, 0};
56727 static swig_type_info _swigt__p_Xapian__IneB2Weight = {"_p_Xapian__IneB2Weight", "Xapian::IneB2Weight *", 0, 0, (void*)0, 0};
56728 static swig_type_info _swigt__p_Xapian__InternalError = {"_p_Xapian__InternalError", "Xapian::InternalError *", 0, 0, (void*)0, 0};
56729 static swig_type_info _swigt__p_Xapian__InvalidArgumentError = {"_p_Xapian__InvalidArgumentError", "Xapian::InvalidArgumentError *", 0, 0, (void*)0, 0};
56730 static swig_type_info _swigt__p_Xapian__InvalidOperationError = {"_p_Xapian__InvalidOperationError", "Xapian::InvalidOperationError *", 0, 0, (void*)0, 0};
56731 static swig_type_info _swigt__p_Xapian__KeyMaker = {"_p_Xapian__KeyMaker", "Xapian::KeyMaker *", 0, 0, (void*)0, 0};
56732 static swig_type_info _swigt__p_Xapian__LMWeight = {"_p_Xapian__LMWeight", "Xapian::LMWeight *", 0, 0, (void*)0, 0};
56733 static swig_type_info _swigt__p_Xapian__LatLongCoord = {"_p_Xapian__LatLongCoord", "Xapian::LatLongCoord *", 0, 0, (void*)0, 0};
56734 static swig_type_info _swigt__p_Xapian__LatLongCoords = {"_p_Xapian__LatLongCoords", "Xapian::LatLongCoords *", 0, 0, (void*)0, 0};
56735 static swig_type_info _swigt__p_Xapian__LatLongCoordsIterator = {"_p_Xapian__LatLongCoordsIterator", "Xapian::LatLongCoordsIterator *", 0, 0, (void*)0, 0};
56736 static swig_type_info _swigt__p_Xapian__LatLongDistanceKeyMaker = {"_p_Xapian__LatLongDistanceKeyMaker", "Xapian::LatLongDistanceKeyMaker *", 0, 0, (void*)0, 0};
56737 static swig_type_info _swigt__p_Xapian__LatLongDistancePostingSource = {"_p_Xapian__LatLongDistancePostingSource", "Xapian::LatLongDistancePostingSource *", 0, 0, (void*)0, 0};
56738 static swig_type_info _swigt__p_Xapian__LatLongMetric = {"_p_Xapian__LatLongMetric", "Xapian::LatLongMetric *", 0, 0, (void*)0, 0};
56739 static swig_type_info _swigt__p_Xapian__LogicError = {"_p_Xapian__LogicError", "Xapian::LogicError *", 0, 0, (void*)0, 0};
56740 static swig_type_info _swigt__p_Xapian__MSet = {"_p_Xapian__MSet", "Xapian::MSet *", 0, 0, (void*)0, 0};
56741 static swig_type_info _swigt__p_Xapian__MSetIterator = {"_p_Xapian__MSetIterator", "Xapian::MSetIterator *", 0, 0, (void*)0, 0};
56742 static swig_type_info _swigt__p_Xapian__MatchDecider = {"_p_Xapian__MatchDecider", "Xapian::MatchDecider *", 0, 0, (void*)0, 0};
56743 static swig_type_info _swigt__p_Xapian__MatchSpy = {"_p_Xapian__MatchSpy", "Xapian::MatchSpy *", 0, 0, (void*)0, 0};
56744 static swig_type_info _swigt__p_Xapian__MultiValueKeyMaker = {"_p_Xapian__MultiValueKeyMaker", "Xapian::MultiValueKeyMaker *", 0, 0, (void*)0, 0};
56745 static swig_type_info _swigt__p_Xapian__NetworkError = {"_p_Xapian__NetworkError", "Xapian::NetworkError *", 0, 0, (void*)0, 0};
56746 static swig_type_info _swigt__p_Xapian__NetworkTimeoutError = {"_p_Xapian__NetworkTimeoutError", "Xapian::NetworkTimeoutError *", 0, 0, (void*)0, 0};
56747 static swig_type_info _swigt__p_Xapian__NumberRangeProcessor = {"_p_Xapian__NumberRangeProcessor", "Xapian::NumberRangeProcessor *", 0, 0, (void*)0, 0};
56748 static swig_type_info _swigt__p_Xapian__NumberValueRangeProcessor = {"_p_Xapian__NumberValueRangeProcessor", "Xapian::NumberValueRangeProcessor *", 0, 0, (void*)0, 0};
56749 static swig_type_info _swigt__p_Xapian__PL2PlusWeight = {"_p_Xapian__PL2PlusWeight", "Xapian::PL2PlusWeight *", 0, 0, (void*)0, 0};
56750 static swig_type_info _swigt__p_Xapian__PL2Weight = {"_p_Xapian__PL2Weight", "Xapian::PL2Weight *", 0, 0, (void*)0, 0};
56751 static swig_type_info _swigt__p_Xapian__PositionIterator = {"_p_Xapian__PositionIterator", "Xapian::PositionIterator *", 0, 0, (void*)0, 0};
56752 static swig_type_info _swigt__p_Xapian__PostingIterator = {"_p_Xapian__PostingIterator", "Xapian::PostingIterator *", 0, 0, (void*)0, 0};
56753 static swig_type_info _swigt__p_Xapian__PostingSource = {"_p_Xapian__PostingSource", "Xapian::PostingSource *", 0, 0, (void*)0, 0};
56754 static swig_type_info _swigt__p_Xapian__Query = {"_p_Xapian__Query", "Xapian::Query *", 0, 0, (void*)0, 0};
56755 static swig_type_info _swigt__p_Xapian__QueryParser = {"_p_Xapian__QueryParser", "Xapian::QueryParser *", 0, 0, (void*)0, 0};
56756 static swig_type_info _swigt__p_Xapian__QueryParserError = {"_p_Xapian__QueryParserError", "Xapian::QueryParserError *", 0, 0, (void*)0, 0};
56757 static swig_type_info _swigt__p_Xapian__RSet = {"_p_Xapian__RSet", "Xapian::RSet *", 0, 0, (void*)0, 0};
56758 static swig_type_info _swigt__p_Xapian__RangeError = {"_p_Xapian__RangeError", "Xapian::RangeError *", 0, 0, (void*)0, 0};
56759 static swig_type_info _swigt__p_Xapian__RangeProcessor = {"_p_Xapian__RangeProcessor", "Xapian::RangeProcessor *", 0, 0, (void*)0, 0};
56760 static swig_type_info _swigt__p_Xapian__Registry = {"_p_Xapian__Registry", "Xapian::Registry *", 0, 0, (void*)0, 0};
56761 static swig_type_info _swigt__p_Xapian__RuntimeError = {"_p_Xapian__RuntimeError", "Xapian::RuntimeError *", 0, 0, (void*)0, 0};
56762 static swig_type_info _swigt__p_Xapian__SerialisationError = {"_p_Xapian__SerialisationError", "Xapian::SerialisationError *", 0, 0, (void*)0, 0};
56763 static swig_type_info _swigt__p_Xapian__SimpleStopper = {"_p_Xapian__SimpleStopper", "Xapian::SimpleStopper *", 0, 0, (void*)0, 0};
56764 static swig_type_info _swigt__p_Xapian__Stem = {"_p_Xapian__Stem", "Xapian::Stem *", 0, 0, (void*)0, 0};
56765 static swig_type_info _swigt__p_Xapian__StemImplementation = {"_p_Xapian__StemImplementation", "Xapian::StemImplementation *", 0, 0, (void*)0, 0};
56766 static swig_type_info _swigt__p_Xapian__Stopper = {"_p_Xapian__Stopper", "Xapian::Stopper *", 0, 0, (void*)0, 0};
56767 static swig_type_info _swigt__p_Xapian__StringValueRangeProcessor = {"_p_Xapian__StringValueRangeProcessor", "Xapian::StringValueRangeProcessor *", 0, 0, (void*)0, 0};
56768 static swig_type_info _swigt__p_Xapian__TermGenerator = {"_p_Xapian__TermGenerator", "Xapian::TermGenerator *", 0, 0, (void*)0, 0};
56769 static swig_type_info _swigt__p_Xapian__TermIterator = {"_p_Xapian__TermIterator", "Xapian::TermIterator *", 0, 0, (void*)0, 0};
56770 static swig_type_info _swigt__p_Xapian__TfIdfWeight = {"_p_Xapian__TfIdfWeight", "Xapian::TfIdfWeight *", 0, 0, (void*)0, 0};
56771 static swig_type_info _swigt__p_Xapian__TradWeight = {"_p_Xapian__TradWeight", "Xapian::TradWeight *", 0, 0, (void*)0, 0};
56772 static swig_type_info _swigt__p_Xapian__UnimplementedError = {"_p_Xapian__UnimplementedError", "Xapian::UnimplementedError *", 0, 0, (void*)0, 0};
56773 static swig_type_info _swigt__p_Xapian__ValueCountMatchSpy = {"_p_Xapian__ValueCountMatchSpy", "Xapian::ValueCountMatchSpy *", 0, 0, (void*)0, 0};
56774 static swig_type_info _swigt__p_Xapian__ValueIterator = {"_p_Xapian__ValueIterator", "Xapian::ValueIterator *", 0, 0, (void*)0, 0};
56775 static swig_type_info _swigt__p_Xapian__ValueMapPostingSource = {"_p_Xapian__ValueMapPostingSource", "Xapian::ValueMapPostingSource *", 0, 0, (void*)0, 0};
56776 static swig_type_info _swigt__p_Xapian__ValuePostingSource = {"_p_Xapian__ValuePostingSource", "Xapian::ValuePostingSource *", 0, 0, (void*)0, 0};
56777 static swig_type_info _swigt__p_Xapian__ValueRangeProcessor = {"_p_Xapian__ValueRangeProcessor", "Xapian::ValueRangeProcessor *", 0, 0, (void*)0, 0};
56778 static swig_type_info _swigt__p_Xapian__ValueSetMatchDecider = {"_p_Xapian__ValueSetMatchDecider", "Xapian::ValueSetMatchDecider *", 0, 0, (void*)0, 0};
56779 static swig_type_info _swigt__p_Xapian__ValueWeightPostingSource = {"_p_Xapian__ValueWeightPostingSource", "Xapian::ValueWeightPostingSource *", 0, 0, (void*)0, 0};
56780 static swig_type_info _swigt__p_Xapian__Weight = {"_p_Xapian__Weight", "Xapian::Weight *", 0, 0, (void*)0, 0};
56781 static swig_type_info _swigt__p_Xapian__WildcardError = {"_p_Xapian__WildcardError", "Xapian::WildcardError *", 0, 0, (void*)0, 0};
56782 static swig_type_info _swigt__p_Xapian__WritableDatabase = {"_p_Xapian__WritableDatabase", "Xapian::WritableDatabase *", 0, 0, (void*)0, 0};
56783 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
56784 static swig_type_info _swigt__p_compaction_level = {"_p_compaction_level", "compaction_level *", 0, 0, (void*)0, 0};
56785 static swig_type_info _swigt__p_docid_order = {"_p_docid_order", "docid_order *", 0, 0, (void*)0, 0};
56786 static swig_type_info _swigt__p_double = {"_p_double", "Xapian::doclength *|double *|Xapian::weight *", 0, 0, (void*)0, 0};
56787 static swig_type_info _swigt__p_feature_flag = {"_p_feature_flag", "feature_flag *", 0, 0, (void*)0, 0};
56788 static swig_type_info _swigt__p_flags = {"_p_flags", "flags *", 0, 0, (void*)0, 0};
56789 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};
56790 static swig_type_info _swigt__p_std__invalid_argument = {"_p_std__invalid_argument", "std::invalid_argument *", 0, 0, (void*)0, 0};
56791 static swig_type_info _swigt__p_std__ostream = {"_p_std__ostream", "std::ostream *", 0, 0, (void*)0, 0};
56792 static swig_type_info _swigt__p_std__string = {"_p_std__string", "std::string *", 0, 0, (void*)0, 0};
56793 static swig_type_info _swigt__p_stem_strategy = {"_p_stem_strategy", "stem_strategy *", 0, 0, (void*)0, 0};
56794 static swig_type_info _swigt__p_stop_strategy = {"_p_stop_strategy", "stop_strategy *", 0, 0, (void*)0, 0};
56795 static swig_type_info _swigt__p_swig__SwigPyIterator = {"_p_swig__SwigPyIterator", "swig::SwigPyIterator *", 0, 0, (void*)0, 0};
56796 static swig_type_info _swigt__p_type_smoothing = {"_p_type_smoothing", "type_smoothing *", 0, 0, (void*)0, 0};
56797 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};
56798 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "Xapian::rev *|unsigned long *|Xapian::totallength *", 0, 0, (void*)0, 0};
56799 
56800 static swig_type_info *swig_type_initial[] = {
56801   &_swigt__p_Xapian__AssertionError,
56802   &_swigt__p_Xapian__BB2Weight,
56803   &_swigt__p_Xapian__BM25PlusWeight,
56804   &_swigt__p_Xapian__BM25Weight,
56805   &_swigt__p_Xapian__BoolWeight,
56806   &_swigt__p_Xapian__Compactor,
56807   &_swigt__p_Xapian__CoordWeight,
56808   &_swigt__p_Xapian__DLHWeight,
56809   &_swigt__p_Xapian__DPHWeight,
56810   &_swigt__p_Xapian__Database,
56811   &_swigt__p_Xapian__DatabaseClosedError,
56812   &_swigt__p_Xapian__DatabaseCorruptError,
56813   &_swigt__p_Xapian__DatabaseCreateError,
56814   &_swigt__p_Xapian__DatabaseError,
56815   &_swigt__p_Xapian__DatabaseLockError,
56816   &_swigt__p_Xapian__DatabaseModifiedError,
56817   &_swigt__p_Xapian__DatabaseNotFoundError,
56818   &_swigt__p_Xapian__DatabaseOpeningError,
56819   &_swigt__p_Xapian__DatabaseVersionError,
56820   &_swigt__p_Xapian__DateRangeProcessor,
56821   &_swigt__p_Xapian__DateValueRangeProcessor,
56822   &_swigt__p_Xapian__DecreasingValueWeightPostingSource,
56823   &_swigt__p_Xapian__DocNotFoundError,
56824   &_swigt__p_Xapian__Document,
56825   &_swigt__p_Xapian__ESet,
56826   &_swigt__p_Xapian__ESetIterator,
56827   &_swigt__p_Xapian__Enquire,
56828   &_swigt__p_Xapian__Error,
56829   &_swigt__p_Xapian__ExpandDecider,
56830   &_swigt__p_Xapian__ExpandDeciderAnd,
56831   &_swigt__p_Xapian__ExpandDeciderFilterPrefix,
56832   &_swigt__p_Xapian__ExpandDeciderFilterTerms,
56833   &_swigt__p_Xapian__FeatureUnavailableError,
56834   &_swigt__p_Xapian__FieldProcessor,
56835   &_swigt__p_Xapian__FixedWeightPostingSource,
56836   &_swigt__p_Xapian__GreatCircleMetric,
56837   &_swigt__p_Xapian__IfB2Weight,
56838   &_swigt__p_Xapian__InL2Weight,
56839   &_swigt__p_Xapian__IneB2Weight,
56840   &_swigt__p_Xapian__InternalError,
56841   &_swigt__p_Xapian__InvalidArgumentError,
56842   &_swigt__p_Xapian__InvalidOperationError,
56843   &_swigt__p_Xapian__KeyMaker,
56844   &_swigt__p_Xapian__LMWeight,
56845   &_swigt__p_Xapian__LatLongCoord,
56846   &_swigt__p_Xapian__LatLongCoords,
56847   &_swigt__p_Xapian__LatLongCoordsIterator,
56848   &_swigt__p_Xapian__LatLongDistanceKeyMaker,
56849   &_swigt__p_Xapian__LatLongDistancePostingSource,
56850   &_swigt__p_Xapian__LatLongMetric,
56851   &_swigt__p_Xapian__LogicError,
56852   &_swigt__p_Xapian__MSet,
56853   &_swigt__p_Xapian__MSetIterator,
56854   &_swigt__p_Xapian__MatchDecider,
56855   &_swigt__p_Xapian__MatchSpy,
56856   &_swigt__p_Xapian__MultiValueKeyMaker,
56857   &_swigt__p_Xapian__NetworkError,
56858   &_swigt__p_Xapian__NetworkTimeoutError,
56859   &_swigt__p_Xapian__NumberRangeProcessor,
56860   &_swigt__p_Xapian__NumberValueRangeProcessor,
56861   &_swigt__p_Xapian__PL2PlusWeight,
56862   &_swigt__p_Xapian__PL2Weight,
56863   &_swigt__p_Xapian__PositionIterator,
56864   &_swigt__p_Xapian__PostingIterator,
56865   &_swigt__p_Xapian__PostingSource,
56866   &_swigt__p_Xapian__Query,
56867   &_swigt__p_Xapian__QueryParser,
56868   &_swigt__p_Xapian__QueryParserError,
56869   &_swigt__p_Xapian__RSet,
56870   &_swigt__p_Xapian__RangeError,
56871   &_swigt__p_Xapian__RangeProcessor,
56872   &_swigt__p_Xapian__Registry,
56873   &_swigt__p_Xapian__RuntimeError,
56874   &_swigt__p_Xapian__SerialisationError,
56875   &_swigt__p_Xapian__SimpleStopper,
56876   &_swigt__p_Xapian__Stem,
56877   &_swigt__p_Xapian__StemImplementation,
56878   &_swigt__p_Xapian__Stopper,
56879   &_swigt__p_Xapian__StringValueRangeProcessor,
56880   &_swigt__p_Xapian__TermGenerator,
56881   &_swigt__p_Xapian__TermIterator,
56882   &_swigt__p_Xapian__TfIdfWeight,
56883   &_swigt__p_Xapian__TradWeight,
56884   &_swigt__p_Xapian__UnimplementedError,
56885   &_swigt__p_Xapian__ValueCountMatchSpy,
56886   &_swigt__p_Xapian__ValueIterator,
56887   &_swigt__p_Xapian__ValueMapPostingSource,
56888   &_swigt__p_Xapian__ValuePostingSource,
56889   &_swigt__p_Xapian__ValueRangeProcessor,
56890   &_swigt__p_Xapian__ValueSetMatchDecider,
56891   &_swigt__p_Xapian__ValueWeightPostingSource,
56892   &_swigt__p_Xapian__Weight,
56893   &_swigt__p_Xapian__WildcardError,
56894   &_swigt__p_Xapian__WritableDatabase,
56895   &_swigt__p_char,
56896   &_swigt__p_compaction_level,
56897   &_swigt__p_docid_order,
56898   &_swigt__p_double,
56899   &_swigt__p_feature_flag,
56900   &_swigt__p_flags,
56901   &_swigt__p_int,
56902   &_swigt__p_std__invalid_argument,
56903   &_swigt__p_std__ostream,
56904   &_swigt__p_std__string,
56905   &_swigt__p_stem_strategy,
56906   &_swigt__p_stop_strategy,
56907   &_swigt__p_swig__SwigPyIterator,
56908   &_swigt__p_type_smoothing,
56909   &_swigt__p_unsigned_int,
56910   &_swigt__p_unsigned_long,
56911 };
56912 
56913 static swig_cast_info _swigc__p_Xapian__AssertionError[] = {  {&_swigt__p_Xapian__AssertionError, 0, 0, 0},{0, 0, 0, 0}};
56914 static swig_cast_info _swigc__p_Xapian__BB2Weight[] = {  {&_swigt__p_Xapian__BB2Weight, 0, 0, 0},{0, 0, 0, 0}};
56915 static swig_cast_info _swigc__p_Xapian__BM25PlusWeight[] = {  {&_swigt__p_Xapian__BM25PlusWeight, 0, 0, 0},{0, 0, 0, 0}};
56916 static swig_cast_info _swigc__p_Xapian__BM25Weight[] = {  {&_swigt__p_Xapian__BM25Weight, 0, 0, 0},{0, 0, 0, 0}};
56917 static swig_cast_info _swigc__p_Xapian__BoolWeight[] = {  {&_swigt__p_Xapian__BoolWeight, 0, 0, 0},{0, 0, 0, 0}};
56918 static swig_cast_info _swigc__p_Xapian__Compactor[] = {  {&_swigt__p_Xapian__Compactor, 0, 0, 0},{0, 0, 0, 0}};
56919 static swig_cast_info _swigc__p_Xapian__CoordWeight[] = {  {&_swigt__p_Xapian__CoordWeight, 0, 0, 0},{0, 0, 0, 0}};
56920 static swig_cast_info _swigc__p_Xapian__DLHWeight[] = {  {&_swigt__p_Xapian__DLHWeight, 0, 0, 0},{0, 0, 0, 0}};
56921 static swig_cast_info _swigc__p_Xapian__DPHWeight[] = {  {&_swigt__p_Xapian__DPHWeight, 0, 0, 0},{0, 0, 0, 0}};
56922 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}};
56923 static swig_cast_info _swigc__p_Xapian__DatabaseClosedError[] = {  {&_swigt__p_Xapian__DatabaseClosedError, 0, 0, 0},{0, 0, 0, 0}};
56924 static swig_cast_info _swigc__p_Xapian__DatabaseCorruptError[] = {  {&_swigt__p_Xapian__DatabaseCorruptError, 0, 0, 0},{0, 0, 0, 0}};
56925 static swig_cast_info _swigc__p_Xapian__DatabaseCreateError[] = {  {&_swigt__p_Xapian__DatabaseCreateError, 0, 0, 0},{0, 0, 0, 0}};
56926 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}};
56927 static swig_cast_info _swigc__p_Xapian__DatabaseLockError[] = {  {&_swigt__p_Xapian__DatabaseLockError, 0, 0, 0},{0, 0, 0, 0}};
56928 static swig_cast_info _swigc__p_Xapian__DatabaseModifiedError[] = {  {&_swigt__p_Xapian__DatabaseModifiedError, 0, 0, 0},{0, 0, 0, 0}};
56929 static swig_cast_info _swigc__p_Xapian__DatabaseNotFoundError[] = {  {&_swigt__p_Xapian__DatabaseNotFoundError, 0, 0, 0},{0, 0, 0, 0}};
56930 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}};
56931 static swig_cast_info _swigc__p_Xapian__DatabaseVersionError[] = {  {&_swigt__p_Xapian__DatabaseVersionError, 0, 0, 0},{0, 0, 0, 0}};
56932 static swig_cast_info _swigc__p_Xapian__DateRangeProcessor[] = {  {&_swigt__p_Xapian__DateRangeProcessor, 0, 0, 0},{0, 0, 0, 0}};
56933 static swig_cast_info _swigc__p_Xapian__DateValueRangeProcessor[] = {  {&_swigt__p_Xapian__DateValueRangeProcessor, 0, 0, 0},{0, 0, 0, 0}};
56934 static swig_cast_info _swigc__p_Xapian__DecreasingValueWeightPostingSource[] = {  {&_swigt__p_Xapian__DecreasingValueWeightPostingSource, 0, 0, 0},{0, 0, 0, 0}};
56935 static swig_cast_info _swigc__p_Xapian__DocNotFoundError[] = {  {&_swigt__p_Xapian__DocNotFoundError, 0, 0, 0},{0, 0, 0, 0}};
56936 static swig_cast_info _swigc__p_Xapian__Document[] = {  {&_swigt__p_Xapian__Document, 0, 0, 0},{0, 0, 0, 0}};
56937 static swig_cast_info _swigc__p_Xapian__ESet[] = {  {&_swigt__p_Xapian__ESet, 0, 0, 0},{0, 0, 0, 0}};
56938 static swig_cast_info _swigc__p_Xapian__ESetIterator[] = {  {&_swigt__p_Xapian__ESetIterator, 0, 0, 0},{0, 0, 0, 0}};
56939 static swig_cast_info _swigc__p_Xapian__Enquire[] = {  {&_swigt__p_Xapian__Enquire, 0, 0, 0},{0, 0, 0, 0}};
56940 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}};
56941 static swig_cast_info _swigc__p_Xapian__ExpandDeciderFilterTerms[] = {{&_swigt__p_Xapian__ExpandDeciderFilterTerms, 0, 0, 0},{0, 0, 0, 0}};
56942 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}};
56943 static swig_cast_info _swigc__p_Xapian__ExpandDeciderAnd[] = {  {&_swigt__p_Xapian__ExpandDeciderAnd, 0, 0, 0},{0, 0, 0, 0}};
56944 static swig_cast_info _swigc__p_Xapian__ExpandDeciderFilterPrefix[] = {  {&_swigt__p_Xapian__ExpandDeciderFilterPrefix, 0, 0, 0},{0, 0, 0, 0}};
56945 static swig_cast_info _swigc__p_Xapian__FeatureUnavailableError[] = {  {&_swigt__p_Xapian__FeatureUnavailableError, 0, 0, 0},{0, 0, 0, 0}};
56946 static swig_cast_info _swigc__p_Xapian__FieldProcessor[] = {  {&_swigt__p_Xapian__FieldProcessor, 0, 0, 0},{0, 0, 0, 0}};
56947 static swig_cast_info _swigc__p_Xapian__FixedWeightPostingSource[] = {  {&_swigt__p_Xapian__FixedWeightPostingSource, 0, 0, 0},{0, 0, 0, 0}};
56948 static swig_cast_info _swigc__p_Xapian__GreatCircleMetric[] = {  {&_swigt__p_Xapian__GreatCircleMetric, 0, 0, 0},{0, 0, 0, 0}};
56949 static swig_cast_info _swigc__p_Xapian__IfB2Weight[] = {  {&_swigt__p_Xapian__IfB2Weight, 0, 0, 0},{0, 0, 0, 0}};
56950 static swig_cast_info _swigc__p_Xapian__InL2Weight[] = {  {&_swigt__p_Xapian__InL2Weight, 0, 0, 0},{0, 0, 0, 0}};
56951 static swig_cast_info _swigc__p_Xapian__IneB2Weight[] = {  {&_swigt__p_Xapian__IneB2Weight, 0, 0, 0},{0, 0, 0, 0}};
56952 static swig_cast_info _swigc__p_Xapian__InternalError[] = {  {&_swigt__p_Xapian__InternalError, 0, 0, 0},{0, 0, 0, 0}};
56953 static swig_cast_info _swigc__p_Xapian__InvalidArgumentError[] = {  {&_swigt__p_Xapian__InvalidArgumentError, 0, 0, 0},{0, 0, 0, 0}};
56954 static swig_cast_info _swigc__p_Xapian__InvalidOperationError[] = {  {&_swigt__p_Xapian__InvalidOperationError, 0, 0, 0},{0, 0, 0, 0}};
56955 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}};
56956 static swig_cast_info _swigc__p_Xapian__LMWeight[] = {  {&_swigt__p_Xapian__LMWeight, 0, 0, 0},{0, 0, 0, 0}};
56957 static swig_cast_info _swigc__p_Xapian__LatLongCoord[] = {  {&_swigt__p_Xapian__LatLongCoord, 0, 0, 0},{0, 0, 0, 0}};
56958 static swig_cast_info _swigc__p_Xapian__LatLongCoords[] = {  {&_swigt__p_Xapian__LatLongCoords, 0, 0, 0},{0, 0, 0, 0}};
56959 static swig_cast_info _swigc__p_Xapian__LatLongCoordsIterator[] = {  {&_swigt__p_Xapian__LatLongCoordsIterator, 0, 0, 0},{0, 0, 0, 0}};
56960 static swig_cast_info _swigc__p_Xapian__LatLongDistanceKeyMaker[] = {  {&_swigt__p_Xapian__LatLongDistanceKeyMaker, 0, 0, 0},{0, 0, 0, 0}};
56961 static swig_cast_info _swigc__p_Xapian__LatLongDistancePostingSource[] = {  {&_swigt__p_Xapian__LatLongDistancePostingSource, 0, 0, 0},{0, 0, 0, 0}};
56962 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}};
56963 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}};
56964 static swig_cast_info _swigc__p_Xapian__MSet[] = {  {&_swigt__p_Xapian__MSet, 0, 0, 0},{0, 0, 0, 0}};
56965 static swig_cast_info _swigc__p_Xapian__MSetIterator[] = {  {&_swigt__p_Xapian__MSetIterator, 0, 0, 0},{0, 0, 0, 0}};
56966 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}};
56967 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}};
56968 static swig_cast_info _swigc__p_Xapian__MultiValueKeyMaker[] = {  {&_swigt__p_Xapian__MultiValueKeyMaker, 0, 0, 0},{0, 0, 0, 0}};
56969 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}};
56970 static swig_cast_info _swigc__p_Xapian__NetworkTimeoutError[] = {  {&_swigt__p_Xapian__NetworkTimeoutError, 0, 0, 0},{0, 0, 0, 0}};
56971 static swig_cast_info _swigc__p_Xapian__NumberRangeProcessor[] = {  {&_swigt__p_Xapian__NumberRangeProcessor, 0, 0, 0},{0, 0, 0, 0}};
56972 static swig_cast_info _swigc__p_Xapian__NumberValueRangeProcessor[] = {  {&_swigt__p_Xapian__NumberValueRangeProcessor, 0, 0, 0},{0, 0, 0, 0}};
56973 static swig_cast_info _swigc__p_Xapian__PL2PlusWeight[] = {  {&_swigt__p_Xapian__PL2PlusWeight, 0, 0, 0},{0, 0, 0, 0}};
56974 static swig_cast_info _swigc__p_Xapian__PL2Weight[] = {  {&_swigt__p_Xapian__PL2Weight, 0, 0, 0},{0, 0, 0, 0}};
56975 static swig_cast_info _swigc__p_Xapian__PositionIterator[] = {  {&_swigt__p_Xapian__PositionIterator, 0, 0, 0},{0, 0, 0, 0}};
56976 static swig_cast_info _swigc__p_Xapian__PostingIterator[] = {  {&_swigt__p_Xapian__PostingIterator, 0, 0, 0},{0, 0, 0, 0}};
56977 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}};
56978 static swig_cast_info _swigc__p_Xapian__Query[] = {  {&_swigt__p_Xapian__Query, 0, 0, 0},{0, 0, 0, 0}};
56979 static swig_cast_info _swigc__p_Xapian__QueryParser[] = {  {&_swigt__p_Xapian__QueryParser, 0, 0, 0},{0, 0, 0, 0}};
56980 static swig_cast_info _swigc__p_Xapian__QueryParserError[] = {  {&_swigt__p_Xapian__QueryParserError, 0, 0, 0},{0, 0, 0, 0}};
56981 static swig_cast_info _swigc__p_Xapian__RSet[] = {  {&_swigt__p_Xapian__RSet, 0, 0, 0},{0, 0, 0, 0}};
56982 static swig_cast_info _swigc__p_Xapian__RangeError[] = {  {&_swigt__p_Xapian__RangeError, 0, 0, 0},{0, 0, 0, 0}};
56983 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}};
56984 static swig_cast_info _swigc__p_Xapian__Registry[] = {  {&_swigt__p_Xapian__Registry, 0, 0, 0},{0, 0, 0, 0}};
56985 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}};
56986 static swig_cast_info _swigc__p_Xapian__SerialisationError[] = {  {&_swigt__p_Xapian__SerialisationError, 0, 0, 0},{0, 0, 0, 0}};
56987 static swig_cast_info _swigc__p_Xapian__SimpleStopper[] = {  {&_swigt__p_Xapian__SimpleStopper, 0, 0, 0},{0, 0, 0, 0}};
56988 static swig_cast_info _swigc__p_Xapian__Stem[] = {  {&_swigt__p_Xapian__Stem, 0, 0, 0},{0, 0, 0, 0}};
56989 static swig_cast_info _swigc__p_Xapian__StemImplementation[] = {  {&_swigt__p_Xapian__StemImplementation, 0, 0, 0},{0, 0, 0, 0}};
56990 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}};
56991 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}};
56992 static swig_cast_info _swigc__p_Xapian__TermGenerator[] = {  {&_swigt__p_Xapian__TermGenerator, 0, 0, 0},{0, 0, 0, 0}};
56993 static swig_cast_info _swigc__p_Xapian__TermIterator[] = {  {&_swigt__p_Xapian__TermIterator, 0, 0, 0},{0, 0, 0, 0}};
56994 static swig_cast_info _swigc__p_Xapian__TfIdfWeight[] = {  {&_swigt__p_Xapian__TfIdfWeight, 0, 0, 0},{0, 0, 0, 0}};
56995 static swig_cast_info _swigc__p_Xapian__TradWeight[] = {  {&_swigt__p_Xapian__TradWeight, 0, 0, 0},{0, 0, 0, 0}};
56996 static swig_cast_info _swigc__p_Xapian__UnimplementedError[] = {  {&_swigt__p_Xapian__UnimplementedError, 0, 0, 0},{0, 0, 0, 0}};
56997 static swig_cast_info _swigc__p_Xapian__ValueCountMatchSpy[] = {  {&_swigt__p_Xapian__ValueCountMatchSpy, 0, 0, 0},{0, 0, 0, 0}};
56998 static swig_cast_info _swigc__p_Xapian__ValueIterator[] = {  {&_swigt__p_Xapian__ValueIterator, 0, 0, 0},{0, 0, 0, 0}};
56999 static swig_cast_info _swigc__p_Xapian__ValueMapPostingSource[] = {  {&_swigt__p_Xapian__ValueMapPostingSource, 0, 0, 0},{0, 0, 0, 0}};
57000 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}};
57001 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}};
57002 static swig_cast_info _swigc__p_Xapian__ValueSetMatchDecider[] = {  {&_swigt__p_Xapian__ValueSetMatchDecider, 0, 0, 0},{0, 0, 0, 0}};
57003 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}};
57004 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}};
57005 static swig_cast_info _swigc__p_Xapian__WildcardError[] = {  {&_swigt__p_Xapian__WildcardError, 0, 0, 0},{0, 0, 0, 0}};
57006 static swig_cast_info _swigc__p_Xapian__WritableDatabase[] = {  {&_swigt__p_Xapian__WritableDatabase, 0, 0, 0},{0, 0, 0, 0}};
57007 static swig_cast_info _swigc__p_char[] = {  {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
57008 static swig_cast_info _swigc__p_compaction_level[] = {  {&_swigt__p_compaction_level, 0, 0, 0},{0, 0, 0, 0}};
57009 static swig_cast_info _swigc__p_docid_order[] = {  {&_swigt__p_docid_order, 0, 0, 0},{0, 0, 0, 0}};
57010 static swig_cast_info _swigc__p_double[] = {  {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
57011 static swig_cast_info _swigc__p_feature_flag[] = {  {&_swigt__p_feature_flag, 0, 0, 0},{0, 0, 0, 0}};
57012 static swig_cast_info _swigc__p_flags[] = {  {&_swigt__p_flags, 0, 0, 0},{0, 0, 0, 0}};
57013 static swig_cast_info _swigc__p_int[] = {  {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
57014 static swig_cast_info _swigc__p_std__invalid_argument[] = {  {&_swigt__p_std__invalid_argument, 0, 0, 0},{0, 0, 0, 0}};
57015 static swig_cast_info _swigc__p_std__ostream[] = {  {&_swigt__p_std__ostream, 0, 0, 0},{0, 0, 0, 0}};
57016 static swig_cast_info _swigc__p_std__string[] = {  {&_swigt__p_std__string, 0, 0, 0},{0, 0, 0, 0}};
57017 static swig_cast_info _swigc__p_stem_strategy[] = {  {&_swigt__p_stem_strategy, 0, 0, 0},{0, 0, 0, 0}};
57018 static swig_cast_info _swigc__p_stop_strategy[] = {  {&_swigt__p_stop_strategy, 0, 0, 0},{0, 0, 0, 0}};
57019 static swig_cast_info _swigc__p_swig__SwigPyIterator[] = {  {&_swigt__p_swig__SwigPyIterator, 0, 0, 0},{0, 0, 0, 0}};
57020 static swig_cast_info _swigc__p_type_smoothing[] = {  {&_swigt__p_type_smoothing, 0, 0, 0},{0, 0, 0, 0}};
57021 static swig_cast_info _swigc__p_unsigned_int[] = {  {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
57022 static swig_cast_info _swigc__p_unsigned_long[] = {  {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
57023 
57024 static swig_cast_info *swig_cast_initial[] = {
57025   _swigc__p_Xapian__AssertionError,
57026   _swigc__p_Xapian__BB2Weight,
57027   _swigc__p_Xapian__BM25PlusWeight,
57028   _swigc__p_Xapian__BM25Weight,
57029   _swigc__p_Xapian__BoolWeight,
57030   _swigc__p_Xapian__Compactor,
57031   _swigc__p_Xapian__CoordWeight,
57032   _swigc__p_Xapian__DLHWeight,
57033   _swigc__p_Xapian__DPHWeight,
57034   _swigc__p_Xapian__Database,
57035   _swigc__p_Xapian__DatabaseClosedError,
57036   _swigc__p_Xapian__DatabaseCorruptError,
57037   _swigc__p_Xapian__DatabaseCreateError,
57038   _swigc__p_Xapian__DatabaseError,
57039   _swigc__p_Xapian__DatabaseLockError,
57040   _swigc__p_Xapian__DatabaseModifiedError,
57041   _swigc__p_Xapian__DatabaseNotFoundError,
57042   _swigc__p_Xapian__DatabaseOpeningError,
57043   _swigc__p_Xapian__DatabaseVersionError,
57044   _swigc__p_Xapian__DateRangeProcessor,
57045   _swigc__p_Xapian__DateValueRangeProcessor,
57046   _swigc__p_Xapian__DecreasingValueWeightPostingSource,
57047   _swigc__p_Xapian__DocNotFoundError,
57048   _swigc__p_Xapian__Document,
57049   _swigc__p_Xapian__ESet,
57050   _swigc__p_Xapian__ESetIterator,
57051   _swigc__p_Xapian__Enquire,
57052   _swigc__p_Xapian__Error,
57053   _swigc__p_Xapian__ExpandDecider,
57054   _swigc__p_Xapian__ExpandDeciderAnd,
57055   _swigc__p_Xapian__ExpandDeciderFilterPrefix,
57056   _swigc__p_Xapian__ExpandDeciderFilterTerms,
57057   _swigc__p_Xapian__FeatureUnavailableError,
57058   _swigc__p_Xapian__FieldProcessor,
57059   _swigc__p_Xapian__FixedWeightPostingSource,
57060   _swigc__p_Xapian__GreatCircleMetric,
57061   _swigc__p_Xapian__IfB2Weight,
57062   _swigc__p_Xapian__InL2Weight,
57063   _swigc__p_Xapian__IneB2Weight,
57064   _swigc__p_Xapian__InternalError,
57065   _swigc__p_Xapian__InvalidArgumentError,
57066   _swigc__p_Xapian__InvalidOperationError,
57067   _swigc__p_Xapian__KeyMaker,
57068   _swigc__p_Xapian__LMWeight,
57069   _swigc__p_Xapian__LatLongCoord,
57070   _swigc__p_Xapian__LatLongCoords,
57071   _swigc__p_Xapian__LatLongCoordsIterator,
57072   _swigc__p_Xapian__LatLongDistanceKeyMaker,
57073   _swigc__p_Xapian__LatLongDistancePostingSource,
57074   _swigc__p_Xapian__LatLongMetric,
57075   _swigc__p_Xapian__LogicError,
57076   _swigc__p_Xapian__MSet,
57077   _swigc__p_Xapian__MSetIterator,
57078   _swigc__p_Xapian__MatchDecider,
57079   _swigc__p_Xapian__MatchSpy,
57080   _swigc__p_Xapian__MultiValueKeyMaker,
57081   _swigc__p_Xapian__NetworkError,
57082   _swigc__p_Xapian__NetworkTimeoutError,
57083   _swigc__p_Xapian__NumberRangeProcessor,
57084   _swigc__p_Xapian__NumberValueRangeProcessor,
57085   _swigc__p_Xapian__PL2PlusWeight,
57086   _swigc__p_Xapian__PL2Weight,
57087   _swigc__p_Xapian__PositionIterator,
57088   _swigc__p_Xapian__PostingIterator,
57089   _swigc__p_Xapian__PostingSource,
57090   _swigc__p_Xapian__Query,
57091   _swigc__p_Xapian__QueryParser,
57092   _swigc__p_Xapian__QueryParserError,
57093   _swigc__p_Xapian__RSet,
57094   _swigc__p_Xapian__RangeError,
57095   _swigc__p_Xapian__RangeProcessor,
57096   _swigc__p_Xapian__Registry,
57097   _swigc__p_Xapian__RuntimeError,
57098   _swigc__p_Xapian__SerialisationError,
57099   _swigc__p_Xapian__SimpleStopper,
57100   _swigc__p_Xapian__Stem,
57101   _swigc__p_Xapian__StemImplementation,
57102   _swigc__p_Xapian__Stopper,
57103   _swigc__p_Xapian__StringValueRangeProcessor,
57104   _swigc__p_Xapian__TermGenerator,
57105   _swigc__p_Xapian__TermIterator,
57106   _swigc__p_Xapian__TfIdfWeight,
57107   _swigc__p_Xapian__TradWeight,
57108   _swigc__p_Xapian__UnimplementedError,
57109   _swigc__p_Xapian__ValueCountMatchSpy,
57110   _swigc__p_Xapian__ValueIterator,
57111   _swigc__p_Xapian__ValueMapPostingSource,
57112   _swigc__p_Xapian__ValuePostingSource,
57113   _swigc__p_Xapian__ValueRangeProcessor,
57114   _swigc__p_Xapian__ValueSetMatchDecider,
57115   _swigc__p_Xapian__ValueWeightPostingSource,
57116   _swigc__p_Xapian__Weight,
57117   _swigc__p_Xapian__WildcardError,
57118   _swigc__p_Xapian__WritableDatabase,
57119   _swigc__p_char,
57120   _swigc__p_compaction_level,
57121   _swigc__p_docid_order,
57122   _swigc__p_double,
57123   _swigc__p_feature_flag,
57124   _swigc__p_flags,
57125   _swigc__p_int,
57126   _swigc__p_std__invalid_argument,
57127   _swigc__p_std__ostream,
57128   _swigc__p_std__string,
57129   _swigc__p_stem_strategy,
57130   _swigc__p_stop_strategy,
57131   _swigc__p_swig__SwigPyIterator,
57132   _swigc__p_type_smoothing,
57133   _swigc__p_unsigned_int,
57134   _swigc__p_unsigned_long,
57135 };
57136 
57137 
57138 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
57139 
57140 static swig_const_info swig_const_table[] = {
57141 {0, 0, 0, 0.0, 0, 0}};
57142 
57143 #ifdef __cplusplus
57144 }
57145 #endif
57146 /* -----------------------------------------------------------------------------
57147  * Type initialization:
57148  * This problem is tough by the requirement that no dynamic
57149  * memory is used. Also, since swig_type_info structures store pointers to
57150  * swig_cast_info structures and swig_cast_info structures store pointers back
57151  * to swig_type_info structures, we need some lookup code at initialization.
57152  * The idea is that swig generates all the structures that are needed.
57153  * The runtime then collects these partially filled structures.
57154  * The SWIG_InitializeModule function takes these initial arrays out of
57155  * swig_module, and does all the lookup, filling in the swig_module.types
57156  * array with the correct data and linking the correct swig_cast_info
57157  * structures together.
57158  *
57159  * The generated swig_type_info structures are assigned statically to an initial
57160  * array. We just loop through that array, and handle each type individually.
57161  * First we lookup if this type has been already loaded, and if so, use the
57162  * loaded structure instead of the generated one. Then we have to fill in the
57163  * cast linked list. The cast data is initially stored in something like a
57164  * two-dimensional array. Each row corresponds to a type (there are the same
57165  * number of rows as there are in the swig_type_initial array). Each entry in
57166  * a column is one of the swig_cast_info structures for that type.
57167  * The cast_initial array is actually an array of arrays, because each row has
57168  * a variable number of columns. So to actually build the cast linked list,
57169  * we find the array of casts associated with the type, and loop through it
57170  * adding the casts to the list. The one last trick we need to do is making
57171  * sure the type pointer in the swig_cast_info struct is correct.
57172  *
57173  * First off, we lookup the cast->type name to see if it is already loaded.
57174  * There are three cases to handle:
57175  *  1) If the cast->type has already been loaded AND the type we are adding
57176  *     casting info to has not been loaded (it is in this module), THEN we
57177  *     replace the cast->type pointer with the type pointer that has already
57178  *     been loaded.
57179  *  2) If BOTH types (the one we are adding casting info to, and the
57180  *     cast->type) are loaded, THEN the cast info has already been loaded by
57181  *     the previous module so we just ignore it.
57182  *  3) Finally, if cast->type has not already been loaded, then we add that
57183  *     swig_cast_info to the linked list (because the cast->type) pointer will
57184  *     be correct.
57185  * ----------------------------------------------------------------------------- */
57186 
57187 #ifdef __cplusplus
57188 extern "C" {
57189 #if 0
57190 } /* c-mode */
57191 #endif
57192 #endif
57193 
57194 #if 0
57195 #define SWIGRUNTIME_DEBUG
57196 #endif
57197 
57198 
57199 SWIGRUNTIME void
SWIG_InitializeModule(void * clientdata)57200 SWIG_InitializeModule(void *clientdata) {
57201   size_t i;
57202   swig_module_info *module_head, *iter;
57203   int init;
57204 
57205   /* check to see if the circular list has been setup, if not, set it up */
57206   if (swig_module.next==0) {
57207     /* Initialize the swig_module */
57208     swig_module.type_initial = swig_type_initial;
57209     swig_module.cast_initial = swig_cast_initial;
57210     swig_module.next = &swig_module;
57211     init = 1;
57212   } else {
57213     init = 0;
57214   }
57215 
57216   /* Try and load any already created modules */
57217   module_head = SWIG_GetModule(clientdata);
57218   if (!module_head) {
57219     /* This is the first module loaded for this interpreter */
57220     /* so set the swig module into the interpreter */
57221     SWIG_SetModule(clientdata, &swig_module);
57222   } else {
57223     /* the interpreter has loaded a SWIG module, but has it loaded this one? */
57224     iter=module_head;
57225     do {
57226       if (iter==&swig_module) {
57227         /* Our module is already in the list, so there's nothing more to do. */
57228         return;
57229       }
57230       iter=iter->next;
57231     } while (iter!= module_head);
57232 
57233     /* otherwise we must add our module into the list */
57234     swig_module.next = module_head->next;
57235     module_head->next = &swig_module;
57236   }
57237 
57238   /* When multiple interpreters are used, a module could have already been initialized in
57239        a different interpreter, but not yet have a pointer in this interpreter.
57240        In this case, we do not want to continue adding types... everything should be
57241        set up already */
57242   if (init == 0) return;
57243 
57244   /* Now work on filling in swig_module.types */
57245 #ifdef SWIGRUNTIME_DEBUG
57246   printf("SWIG_InitializeModule: size %d\n", swig_module.size);
57247 #endif
57248   for (i = 0; i < swig_module.size; ++i) {
57249     swig_type_info *type = 0;
57250     swig_type_info *ret;
57251     swig_cast_info *cast;
57252 
57253 #ifdef SWIGRUNTIME_DEBUG
57254     printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
57255 #endif
57256 
57257     /* if there is another module already loaded */
57258     if (swig_module.next != &swig_module) {
57259       type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
57260     }
57261     if (type) {
57262       /* Overwrite clientdata field */
57263 #ifdef SWIGRUNTIME_DEBUG
57264       printf("SWIG_InitializeModule: found type %s\n", type->name);
57265 #endif
57266       if (swig_module.type_initial[i]->clientdata) {
57267         type->clientdata = swig_module.type_initial[i]->clientdata;
57268 #ifdef SWIGRUNTIME_DEBUG
57269         printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
57270 #endif
57271       }
57272     } else {
57273       type = swig_module.type_initial[i];
57274     }
57275 
57276     /* Insert casting types */
57277     cast = swig_module.cast_initial[i];
57278     while (cast->type) {
57279       /* Don't need to add information already in the list */
57280       ret = 0;
57281 #ifdef SWIGRUNTIME_DEBUG
57282       printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
57283 #endif
57284       if (swig_module.next != &swig_module) {
57285         ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
57286 #ifdef SWIGRUNTIME_DEBUG
57287         if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
57288 #endif
57289       }
57290       if (ret) {
57291         if (type == swig_module.type_initial[i]) {
57292 #ifdef SWIGRUNTIME_DEBUG
57293           printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
57294 #endif
57295           cast->type = ret;
57296           ret = 0;
57297         } else {
57298           /* Check for casting already in the list */
57299           swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
57300 #ifdef SWIGRUNTIME_DEBUG
57301           if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
57302 #endif
57303           if (!ocast) ret = 0;
57304         }
57305       }
57306 
57307       if (!ret) {
57308 #ifdef SWIGRUNTIME_DEBUG
57309         printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
57310 #endif
57311         if (type->cast) {
57312           type->cast->prev = cast;
57313           cast->next = type->cast;
57314         }
57315         type->cast = cast;
57316       }
57317       cast++;
57318     }
57319     /* Set entry in modules->types array equal to the type */
57320     swig_module.types[i] = type;
57321   }
57322   swig_module.types[i] = 0;
57323 
57324 #ifdef SWIGRUNTIME_DEBUG
57325   printf("**** SWIG_InitializeModule: Cast List ******\n");
57326   for (i = 0; i < swig_module.size; ++i) {
57327     int j = 0;
57328     swig_cast_info *cast = swig_module.cast_initial[i];
57329     printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
57330     while (cast->type) {
57331       printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
57332       cast++;
57333       ++j;
57334     }
57335     printf("---- Total casts: %d\n",j);
57336   }
57337   printf("**** SWIG_InitializeModule: Cast List ******\n");
57338 #endif
57339 }
57340 
57341 /* This function will propagate the clientdata field of type to
57342 * any new swig_type_info structures that have been added into the list
57343 * of equivalent types.  It is like calling
57344 * SWIG_TypeClientData(type, clientdata) a second time.
57345 */
57346 SWIGRUNTIME void
SWIG_PropagateClientData(void)57347 SWIG_PropagateClientData(void) {
57348   size_t i;
57349   swig_cast_info *equiv;
57350   static int init_run = 0;
57351 
57352   if (init_run) return;
57353   init_run = 1;
57354 
57355   for (i = 0; i < swig_module.size; i++) {
57356     if (swig_module.types[i]->clientdata) {
57357       equiv = swig_module.types[i]->cast;
57358       while (equiv) {
57359         if (!equiv->converter) {
57360           if (equiv->type && !equiv->type->clientdata)
57361           SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
57362         }
57363         equiv = equiv->next;
57364       }
57365     }
57366   }
57367 }
57368 
57369 #ifdef __cplusplus
57370 #if 0
57371 {
57372   /* c-mode */
57373 #endif
57374 }
57375 #endif
57376 
57377 
57378 
57379 #ifdef __cplusplus
57380 extern "C" {
57381 #endif
57382 
57383   /* Python-specific SWIG API */
57384 #define SWIG_newvarlink()                             SWIG_Python_newvarlink()
57385 #define SWIG_addvarlink(p, name, get_attr, set_attr)  SWIG_Python_addvarlink(p, name, get_attr, set_attr)
57386 #define SWIG_InstallConstants(d, constants)           SWIG_Python_InstallConstants(d, constants)
57387 
57388   /* -----------------------------------------------------------------------------
57389    * global variable support code.
57390    * ----------------------------------------------------------------------------- */
57391 
57392   typedef struct swig_globalvar {
57393     char       *name;                  /* Name of global variable */
57394     PyObject *(*get_attr)(void);       /* Return the current value */
57395     int       (*set_attr)(PyObject *); /* Set the value */
57396     struct swig_globalvar *next;
57397   } swig_globalvar;
57398 
57399   typedef struct swig_varlinkobject {
57400     PyObject_HEAD
57401     swig_globalvar *vars;
57402   } swig_varlinkobject;
57403 
57404   SWIGINTERN PyObject *
swig_varlink_repr(swig_varlinkobject * SWIGUNUSEDPARM (v))57405   swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
57406 #if PY_VERSION_HEX >= 0x03000000
57407     return PyUnicode_InternFromString("<Swig global variables>");
57408 #else
57409     return PyString_FromString("<Swig global variables>");
57410 #endif
57411   }
57412 
57413   SWIGINTERN PyObject *
swig_varlink_str(swig_varlinkobject * v)57414   swig_varlink_str(swig_varlinkobject *v) {
57415 #if PY_VERSION_HEX >= 0x03000000
57416     PyObject *str = PyUnicode_InternFromString("(");
57417     PyObject *tail;
57418     PyObject *joined;
57419     swig_globalvar *var;
57420     for (var = v->vars; var; var=var->next) {
57421       tail = PyUnicode_FromString(var->name);
57422       joined = PyUnicode_Concat(str, tail);
57423       Py_DecRef(str);
57424       Py_DecRef(tail);
57425       str = joined;
57426       if (var->next) {
57427         tail = PyUnicode_InternFromString(", ");
57428         joined = PyUnicode_Concat(str, tail);
57429         Py_DecRef(str);
57430         Py_DecRef(tail);
57431         str = joined;
57432       }
57433     }
57434     tail = PyUnicode_InternFromString(")");
57435     joined = PyUnicode_Concat(str, tail);
57436     Py_DecRef(str);
57437     Py_DecRef(tail);
57438     str = joined;
57439 #else
57440     PyObject *str = PyString_FromString("(");
57441     swig_globalvar *var;
57442     for (var = v->vars; var; var=var->next) {
57443       PyString_ConcatAndDel(&str,PyString_FromString(var->name));
57444       if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
57445     }
57446     PyString_ConcatAndDel(&str,PyString_FromString(")"));
57447 #endif
57448     return str;
57449   }
57450 
57451   SWIGINTERN int
swig_varlink_print(swig_varlinkobject * v,FILE * fp,int SWIGUNUSEDPARM (flags))57452   swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
57453     char *tmp;
57454     PyObject *str = swig_varlink_str(v);
57455     fprintf(fp,"Swig global variables ");
57456     fprintf(fp,"%s\n", tmp = SWIG_Python_str_AsChar(str));
57457     SWIG_Python_str_DelForPy3(tmp);
57458     Py_DECREF(str);
57459     return 0;
57460   }
57461 
57462   SWIGINTERN void
swig_varlink_dealloc(swig_varlinkobject * v)57463   swig_varlink_dealloc(swig_varlinkobject *v) {
57464     swig_globalvar *var = v->vars;
57465     while (var) {
57466       swig_globalvar *n = var->next;
57467       free(var->name);
57468       free(var);
57469       var = n;
57470     }
57471   }
57472 
57473   SWIGINTERN PyObject *
swig_varlink_getattr(swig_varlinkobject * v,char * n)57474   swig_varlink_getattr(swig_varlinkobject *v, char *n) {
57475     PyObject *res = NULL;
57476     swig_globalvar *var = v->vars;
57477     while (var) {
57478       if (strcmp(var->name,n) == 0) {
57479         res = (*var->get_attr)();
57480         break;
57481       }
57482       var = var->next;
57483     }
57484     if (res == NULL && !PyErr_Occurred()) {
57485       PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n);
57486     }
57487     return res;
57488   }
57489 
57490   SWIGINTERN int
swig_varlink_setattr(swig_varlinkobject * v,char * n,PyObject * p)57491   swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
57492     int res = 1;
57493     swig_globalvar *var = v->vars;
57494     while (var) {
57495       if (strcmp(var->name,n) == 0) {
57496         res = (*var->set_attr)(p);
57497         break;
57498       }
57499       var = var->next;
57500     }
57501     if (res == 1 && !PyErr_Occurred()) {
57502       PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n);
57503     }
57504     return res;
57505   }
57506 
57507   SWIGINTERN PyTypeObject*
swig_varlink_type(void)57508   swig_varlink_type(void) {
57509     static char varlink__doc__[] = "Swig var link object";
57510     static PyTypeObject varlink_type;
57511     static int type_init = 0;
57512     if (!type_init) {
57513       const PyTypeObject tmp = {
57514 #if PY_VERSION_HEX >= 0x03000000
57515         PyVarObject_HEAD_INIT(NULL, 0)
57516 #else
57517         PyObject_HEAD_INIT(NULL)
57518         0,                                  /* ob_size */
57519 #endif
57520         (char *)"swigvarlink",              /* tp_name */
57521         sizeof(swig_varlinkobject),         /* tp_basicsize */
57522         0,                                  /* tp_itemsize */
57523         (destructor) swig_varlink_dealloc,  /* tp_dealloc */
57524         (printfunc) swig_varlink_print,     /* tp_print */
57525         (getattrfunc) swig_varlink_getattr, /* tp_getattr */
57526         (setattrfunc) swig_varlink_setattr, /* tp_setattr */
57527         0,                                  /* tp_compare */
57528         (reprfunc) swig_varlink_repr,       /* tp_repr */
57529         0,                                  /* tp_as_number */
57530         0,                                  /* tp_as_sequence */
57531         0,                                  /* tp_as_mapping */
57532         0,                                  /* tp_hash */
57533         0,                                  /* tp_call */
57534         (reprfunc) swig_varlink_str,        /* tp_str */
57535         0,                                  /* tp_getattro */
57536         0,                                  /* tp_setattro */
57537         0,                                  /* tp_as_buffer */
57538         0,                                  /* tp_flags */
57539         varlink__doc__,                     /* tp_doc */
57540         0,                                  /* tp_traverse */
57541         0,                                  /* tp_clear */
57542         0,                                  /* tp_richcompare */
57543         0,                                  /* tp_weaklistoffset */
57544 #if PY_VERSION_HEX >= 0x02020000
57545         0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
57546 #endif
57547 #if PY_VERSION_HEX >= 0x02030000
57548         0,                                  /* tp_del */
57549 #endif
57550 #if PY_VERSION_HEX >= 0x02060000
57551         0,                                  /* tp_version_tag */
57552 #endif
57553 #if PY_VERSION_HEX >= 0x03040000
57554         0,                                  /* tp_finalize */
57555 #endif
57556 #ifdef COUNT_ALLOCS
57557         0,                                  /* tp_allocs */
57558         0,                                  /* tp_frees */
57559         0,                                  /* tp_maxalloc */
57560 #if PY_VERSION_HEX >= 0x02050000
57561         0,                                  /* tp_prev */
57562 #endif
57563         0                                   /* tp_next */
57564 #endif
57565       };
57566       varlink_type = tmp;
57567       type_init = 1;
57568 #if PY_VERSION_HEX < 0x02020000
57569       varlink_type.ob_type = &PyType_Type;
57570 #else
57571       if (PyType_Ready(&varlink_type) < 0)
57572       return NULL;
57573 #endif
57574     }
57575     return &varlink_type;
57576   }
57577 
57578   /* Create a variable linking object for use later */
57579   SWIGINTERN PyObject *
SWIG_Python_newvarlink(void)57580   SWIG_Python_newvarlink(void) {
57581     swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
57582     if (result) {
57583       result->vars = 0;
57584     }
57585     return ((PyObject*) result);
57586   }
57587 
57588   SWIGINTERN void
SWIG_Python_addvarlink(PyObject * p,char * name,PyObject * (* get_attr)(void),int (* set_attr)(PyObject * p))57589   SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
57590     swig_varlinkobject *v = (swig_varlinkobject *) p;
57591     swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
57592     if (gv) {
57593       size_t size = strlen(name)+1;
57594       gv->name = (char *)malloc(size);
57595       if (gv->name) {
57596         strncpy(gv->name,name,size);
57597         gv->get_attr = get_attr;
57598         gv->set_attr = set_attr;
57599         gv->next = v->vars;
57600       }
57601     }
57602     v->vars = gv;
57603   }
57604 
57605   SWIGINTERN PyObject *
SWIG_globals(void)57606   SWIG_globals(void) {
57607     static PyObject *_SWIG_globals = 0;
57608     if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
57609     return _SWIG_globals;
57610   }
57611 
57612   /* -----------------------------------------------------------------------------
57613    * constants/methods manipulation
57614    * ----------------------------------------------------------------------------- */
57615 
57616   /* Install Constants */
57617   SWIGINTERN void
SWIG_Python_InstallConstants(PyObject * d,swig_const_info constants[])57618   SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
57619     PyObject *obj = 0;
57620     size_t i;
57621     for (i = 0; constants[i].type; ++i) {
57622       switch(constants[i].type) {
57623       case SWIG_PY_POINTER:
57624         obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
57625         break;
57626       case SWIG_PY_BINARY:
57627         obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
57628         break;
57629       default:
57630         obj = 0;
57631         break;
57632       }
57633       if (obj) {
57634         PyDict_SetItemString(d, constants[i].name, obj);
57635         Py_DECREF(obj);
57636       }
57637     }
57638   }
57639 
57640   /* -----------------------------------------------------------------------------*/
57641   /* Fix SwigMethods to carry the callback ptrs when needed */
57642   /* -----------------------------------------------------------------------------*/
57643 
57644   SWIGINTERN void
SWIG_Python_FixMethods(PyMethodDef * methods,swig_const_info * const_table,swig_type_info ** types,swig_type_info ** types_initial)57645   SWIG_Python_FixMethods(PyMethodDef *methods,
57646     swig_const_info *const_table,
57647     swig_type_info **types,
57648     swig_type_info **types_initial) {
57649     size_t i;
57650     for (i = 0; methods[i].ml_name; ++i) {
57651       const char *c = methods[i].ml_doc;
57652       if (!c) continue;
57653       c = strstr(c, "swig_ptr: ");
57654       if (c) {
57655         int j;
57656         swig_const_info *ci = 0;
57657         const char *name = c + 10;
57658         for (j = 0; const_table[j].type; ++j) {
57659           if (strncmp(const_table[j].name, name,
57660               strlen(const_table[j].name)) == 0) {
57661             ci = &(const_table[j]);
57662             break;
57663           }
57664         }
57665         if (ci) {
57666           void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
57667           if (ptr) {
57668             size_t shift = (ci->ptype) - types;
57669             swig_type_info *ty = types_initial[shift];
57670             size_t ldoc = (c - methods[i].ml_doc);
57671             size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
57672             char *ndoc = (char*)malloc(ldoc + lptr + 10);
57673             if (ndoc) {
57674               char *buff = ndoc;
57675               memcpy(buff, methods[i].ml_doc, ldoc);
57676               buff += ldoc;
57677               memcpy(buff, "swig_ptr: ", 10);
57678               buff += 10;
57679               SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
57680               methods[i].ml_doc = ndoc;
57681             }
57682           }
57683         }
57684       }
57685     }
57686   }
57687 
57688 #ifdef __cplusplus
57689 }
57690 #endif
57691 
57692 /* -----------------------------------------------------------------------------*
57693  *  Partial Init method
57694  * -----------------------------------------------------------------------------*/
57695 
57696 #ifdef __cplusplus
57697 extern "C"
57698 #endif
57699 
57700 SWIGEXPORT
57701 #if PY_VERSION_HEX >= 0x03000000
57702 PyObject*
57703 #else
57704 void
57705 #endif
SWIG_init(void)57706 SWIG_init(void) {
57707   PyObject *m, *d, *md;
57708 #if PY_VERSION_HEX >= 0x03000000
57709   static struct PyModuleDef SWIG_module = {
57710 # if PY_VERSION_HEX >= 0x03020000
57711     PyModuleDef_HEAD_INIT,
57712 # else
57713     {
57714       PyObject_HEAD_INIT(NULL)
57715       NULL, /* m_init */
57716       0,    /* m_index */
57717       NULL, /* m_copy */
57718     },
57719 # endif
57720     (char *) SWIG_name,
57721     NULL,
57722     -1,
57723     SwigMethods,
57724     NULL,
57725     NULL,
57726     NULL,
57727     NULL
57728   };
57729 #endif
57730 
57731 #if defined(SWIGPYTHON_BUILTIN)
57732   static SwigPyClientData SwigPyObject_clientdata = {
57733     0, 0, 0, 0, 0, 0, 0
57734   };
57735   static PyGetSetDef this_getset_def = {
57736     (char *)"this", &SwigPyBuiltin_ThisClosure, NULL, NULL, NULL
57737   };
57738   static SwigPyGetSet thisown_getset_closure = {
57739     (PyCFunction) SwigPyObject_own,
57740     (PyCFunction) SwigPyObject_own
57741   };
57742   static PyGetSetDef thisown_getset_def = {
57743     (char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL, &thisown_getset_closure
57744   };
57745   PyTypeObject *builtin_pytype;
57746   int builtin_base_count;
57747   swig_type_info *builtin_basetype;
57748   PyObject *tuple;
57749   PyGetSetDescrObject *static_getset;
57750   PyTypeObject *metatype;
57751   PyTypeObject *swigpyobject;
57752   SwigPyClientData *cd;
57753   PyObject *public_interface, *public_symbol;
57754   PyObject *this_descr;
57755   PyObject *thisown_descr;
57756   PyObject *self = 0;
57757   int i;
57758 
57759   (void)builtin_pytype;
57760   (void)builtin_base_count;
57761   (void)builtin_basetype;
57762   (void)tuple;
57763   (void)static_getset;
57764   (void)self;
57765 
57766   /* Metaclass is used to implement static member variables */
57767   metatype = SwigPyObjectType();
57768   assert(metatype);
57769 #endif
57770 
57771   /* Fix SwigMethods to carry the callback ptrs when needed */
57772   SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
57773 
57774 #if PY_VERSION_HEX >= 0x03000000
57775   m = PyModule_Create(&SWIG_module);
57776 #else
57777   m = Py_InitModule((char *) SWIG_name, SwigMethods);
57778 #endif
57779 
57780   md = d = PyModule_GetDict(m);
57781   (void)md;
57782 
57783   SWIG_InitializeModule(0);
57784 
57785 #ifdef SWIGPYTHON_BUILTIN
57786   swigpyobject = SwigPyObject_TypeOnce();
57787 
57788   SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject");
57789   assert(SwigPyObject_stype);
57790   cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
57791   if (!cd) {
57792     SwigPyObject_stype->clientdata = &SwigPyObject_clientdata;
57793     SwigPyObject_clientdata.pytype = swigpyobject;
57794   } else if (swigpyobject->tp_basicsize != cd->pytype->tp_basicsize) {
57795     PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules.");
57796 # if PY_VERSION_HEX >= 0x03000000
57797     return NULL;
57798 # else
57799     return;
57800 # endif
57801   }
57802 
57803   /* All objects have a 'this' attribute */
57804   this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def);
57805   (void)this_descr;
57806 
57807   /* All objects have a 'thisown' attribute */
57808   thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def);
57809   (void)thisown_descr;
57810 
57811   public_interface = PyList_New(0);
57812   public_symbol = 0;
57813   (void)public_symbol;
57814 
57815   PyDict_SetItemString(md, "__all__", public_interface);
57816   Py_DECREF(public_interface);
57817   for (i = 0; SwigMethods[i].ml_name != NULL; ++i)
57818   SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name);
57819   for (i = 0; swig_const_table[i].name != 0; ++i)
57820   SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name);
57821 #endif
57822 
57823   SWIG_InstallConstants(d,swig_const_table);
57824 
57825   SWIG_Python_SetConstant(d, "MSET_DID",SWIG_From_int(static_cast< int >(0)));
57826   SWIG_Python_SetConstant(d, "MSET_WT",SWIG_From_int(static_cast< int >(1)));
57827   SWIG_Python_SetConstant(d, "MSET_RANK",SWIG_From_int(static_cast< int >(2)));
57828   SWIG_Python_SetConstant(d, "MSET_PERCENT",SWIG_From_int(static_cast< int >(3)));
57829   SWIG_Python_SetConstant(d, "MSET_DOCUMENT",SWIG_From_int(static_cast< int >(4)));
57830   SWIG_Python_SetConstant(d, "ESET_TNAME",SWIG_From_int(static_cast< int >(0)));
57831   SWIG_Python_SetConstant(d, "ESET_WT",SWIG_From_int(static_cast< int >(1)));
57832   SWIG_Python_SetConstant(d, "BAD_VALUENO",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(Xapian::BAD_VALUENO)));
57833   SWIG_Python_SetConstant(d, "DB_CREATE",SWIG_From_int(static_cast< int >(Xapian::DB_CREATE)));
57834   SWIG_Python_SetConstant(d, "DB_CREATE_OR_OPEN",SWIG_From_int(static_cast< int >(Xapian::DB_CREATE_OR_OPEN)));
57835   SWIG_Python_SetConstant(d, "DB_CREATE_OR_OVERWRITE",SWIG_From_int(static_cast< int >(Xapian::DB_CREATE_OR_OVERWRITE)));
57836   SWIG_Python_SetConstant(d, "DB_OPEN",SWIG_From_int(static_cast< int >(Xapian::DB_OPEN)));
57837   SWIG_Python_SetConstant(d, "DB_NO_SYNC",SWIG_From_int(static_cast< int >(Xapian::DB_NO_SYNC)));
57838   SWIG_Python_SetConstant(d, "DB_FULL_SYNC",SWIG_From_int(static_cast< int >(Xapian::DB_FULL_SYNC)));
57839   SWIG_Python_SetConstant(d, "DB_DANGEROUS",SWIG_From_int(static_cast< int >(Xapian::DB_DANGEROUS)));
57840   SWIG_Python_SetConstant(d, "DB_NO_TERMLIST",SWIG_From_int(static_cast< int >(Xapian::DB_NO_TERMLIST)));
57841   SWIG_Python_SetConstant(d, "DB_BACKEND_CHERT",SWIG_From_int(static_cast< int >(Xapian::DB_BACKEND_CHERT)));
57842   SWIG_Python_SetConstant(d, "DB_BACKEND_GLASS",SWIG_From_int(static_cast< int >(Xapian::DB_BACKEND_GLASS)));
57843   SWIG_Python_SetConstant(d, "DB_BACKEND_INMEMORY",SWIG_From_int(static_cast< int >(Xapian::DB_BACKEND_INMEMORY)));
57844   SWIG_Python_SetConstant(d, "DB_BACKEND_STUB",SWIG_From_int(static_cast< int >(Xapian::DB_BACKEND_STUB)));
57845   SWIG_Python_SetConstant(d, "DB_RETRY_LOCK",SWIG_From_int(static_cast< int >(Xapian::DB_RETRY_LOCK)));
57846   SWIG_Python_SetConstant(d, "DBCHECK_SHORT_TREE",SWIG_From_int(static_cast< int >(Xapian::DBCHECK_SHORT_TREE)));
57847   SWIG_Python_SetConstant(d, "DBCHECK_FULL_TREE",SWIG_From_int(static_cast< int >(Xapian::DBCHECK_FULL_TREE)));
57848   SWIG_Python_SetConstant(d, "DBCHECK_SHOW_FREELIST",SWIG_From_int(static_cast< int >(Xapian::DBCHECK_SHOW_FREELIST)));
57849   SWIG_Python_SetConstant(d, "DBCHECK_SHOW_STATS",SWIG_From_int(static_cast< int >(Xapian::DBCHECK_SHOW_STATS)));
57850   SWIG_Python_SetConstant(d, "DBCHECK_FIX",SWIG_From_int(static_cast< int >(Xapian::DBCHECK_FIX)));
57851   SWIG_Python_SetConstant(d, "DBCOMPACT_MULTIPASS",SWIG_From_int(static_cast< int >(Xapian::DBCOMPACT_MULTIPASS)));
57852   SWIG_Python_SetConstant(d, "DBCOMPACT_NO_RENUMBER",SWIG_From_int(static_cast< int >(Xapian::DBCOMPACT_NO_RENUMBER)));
57853   SWIG_Python_SetConstant(d, "DBCOMPACT_SINGLE_FILE",SWIG_From_int(static_cast< int >(Xapian::DBCOMPACT_SINGLE_FILE)));
57854   SWIG_Python_SetConstant(d, "DOC_ASSUME_VALID",SWIG_From_int(static_cast< int >(Xapian::DOC_ASSUME_VALID)));
57855   SWIG_Python_SetConstant(d, "Query_OP_AND",SWIG_From_int(static_cast< int >(Xapian::Query::OP_AND)));
57856   SWIG_Python_SetConstant(d, "Query_OP_OR",SWIG_From_int(static_cast< int >(Xapian::Query::OP_OR)));
57857   SWIG_Python_SetConstant(d, "Query_OP_AND_NOT",SWIG_From_int(static_cast< int >(Xapian::Query::OP_AND_NOT)));
57858   SWIG_Python_SetConstant(d, "Query_OP_XOR",SWIG_From_int(static_cast< int >(Xapian::Query::OP_XOR)));
57859   SWIG_Python_SetConstant(d, "Query_OP_AND_MAYBE",SWIG_From_int(static_cast< int >(Xapian::Query::OP_AND_MAYBE)));
57860   SWIG_Python_SetConstant(d, "Query_OP_FILTER",SWIG_From_int(static_cast< int >(Xapian::Query::OP_FILTER)));
57861   SWIG_Python_SetConstant(d, "Query_OP_NEAR",SWIG_From_int(static_cast< int >(Xapian::Query::OP_NEAR)));
57862   SWIG_Python_SetConstant(d, "Query_OP_PHRASE",SWIG_From_int(static_cast< int >(Xapian::Query::OP_PHRASE)));
57863   SWIG_Python_SetConstant(d, "Query_OP_VALUE_RANGE",SWIG_From_int(static_cast< int >(Xapian::Query::OP_VALUE_RANGE)));
57864   SWIG_Python_SetConstant(d, "Query_OP_SCALE_WEIGHT",SWIG_From_int(static_cast< int >(Xapian::Query::OP_SCALE_WEIGHT)));
57865   SWIG_Python_SetConstant(d, "Query_OP_ELITE_SET",SWIG_From_int(static_cast< int >(Xapian::Query::OP_ELITE_SET)));
57866   SWIG_Python_SetConstant(d, "Query_OP_VALUE_GE",SWIG_From_int(static_cast< int >(Xapian::Query::OP_VALUE_GE)));
57867   SWIG_Python_SetConstant(d, "Query_OP_VALUE_LE",SWIG_From_int(static_cast< int >(Xapian::Query::OP_VALUE_LE)));
57868   SWIG_Python_SetConstant(d, "Query_OP_SYNONYM",SWIG_From_int(static_cast< int >(Xapian::Query::OP_SYNONYM)));
57869   SWIG_Python_SetConstant(d, "Query_OP_MAX",SWIG_From_int(static_cast< int >(Xapian::Query::OP_MAX)));
57870   SWIG_Python_SetConstant(d, "Query_OP_WILDCARD",SWIG_From_int(static_cast< int >(Xapian::Query::OP_WILDCARD)));
57871   SWIG_Python_SetConstant(d, "Query_OP_INVALID",SWIG_From_int(static_cast< int >(Xapian::Query::OP_INVALID)));
57872   SWIG_Python_SetConstant(d, "Query_WILDCARD_LIMIT_ERROR",SWIG_From_int(static_cast< int >(Xapian::Query::WILDCARD_LIMIT_ERROR)));
57873   SWIG_Python_SetConstant(d, "Query_WILDCARD_LIMIT_FIRST",SWIG_From_int(static_cast< int >(Xapian::Query::WILDCARD_LIMIT_FIRST)));
57874   SWIG_Python_SetConstant(d, "Query_WILDCARD_LIMIT_MOST_FREQUENT",SWIG_From_int(static_cast< int >(Xapian::Query::WILDCARD_LIMIT_MOST_FREQUENT)));
57875   SWIG_Python_SetConstant(d, "TermGenerator_FLAG_SPELLING",SWIG_From_int(static_cast< int >(Xapian::TermGenerator::FLAG_SPELLING)));
57876   SWIG_Python_SetConstant(d, "TermGenerator_FLAG_CJK_NGRAM",SWIG_From_int(static_cast< int >(Xapian::TermGenerator::FLAG_CJK_NGRAM)));
57877   SWIG_Python_SetConstant(d, "TermGenerator_STEM_NONE",SWIG_From_int(static_cast< int >(Xapian::TermGenerator::STEM_NONE)));
57878   SWIG_Python_SetConstant(d, "TermGenerator_STEM_SOME",SWIG_From_int(static_cast< int >(Xapian::TermGenerator::STEM_SOME)));
57879   SWIG_Python_SetConstant(d, "TermGenerator_STEM_ALL",SWIG_From_int(static_cast< int >(Xapian::TermGenerator::STEM_ALL)));
57880   SWIG_Python_SetConstant(d, "TermGenerator_STEM_ALL_Z",SWIG_From_int(static_cast< int >(Xapian::TermGenerator::STEM_ALL_Z)));
57881   SWIG_Python_SetConstant(d, "TermGenerator_STEM_SOME_FULL_POS",SWIG_From_int(static_cast< int >(Xapian::TermGenerator::STEM_SOME_FULL_POS)));
57882   SWIG_Python_SetConstant(d, "TermGenerator_STOP_NONE",SWIG_From_int(static_cast< int >(Xapian::TermGenerator::STOP_NONE)));
57883   SWIG_Python_SetConstant(d, "TermGenerator_STOP_ALL",SWIG_From_int(static_cast< int >(Xapian::TermGenerator::STOP_ALL)));
57884   SWIG_Python_SetConstant(d, "TermGenerator_STOP_STEMMED",SWIG_From_int(static_cast< int >(Xapian::TermGenerator::STOP_STEMMED)));
57885   SWIG_Python_SetConstant(d, "MSet_SNIPPET_BACKGROUND_MODEL",SWIG_From_int(static_cast< int >(Xapian::MSet::SNIPPET_BACKGROUND_MODEL)));
57886   SWIG_Python_SetConstant(d, "MSet_SNIPPET_EXHAUSTIVE",SWIG_From_int(static_cast< int >(Xapian::MSet::SNIPPET_EXHAUSTIVE)));
57887   SWIG_Python_SetConstant(d, "MSet_SNIPPET_EMPTY_WITHOUT_MATCH",SWIG_From_int(static_cast< int >(Xapian::MSet::SNIPPET_EMPTY_WITHOUT_MATCH)));
57888   SWIG_Python_SetConstant(d, "MSet_SNIPPET_CJK_NGRAM",SWIG_From_int(static_cast< int >(Xapian::MSet::SNIPPET_CJK_NGRAM)));
57889   SWIG_Python_SetConstant(d, "Enquire_ASCENDING",SWIG_From_int(static_cast< int >(Xapian::Enquire::ASCENDING)));
57890   SWIG_Python_SetConstant(d, "Enquire_DESCENDING",SWIG_From_int(static_cast< int >(Xapian::Enquire::DESCENDING)));
57891   SWIG_Python_SetConstant(d, "Enquire_DONT_CARE",SWIG_From_int(static_cast< int >(Xapian::Enquire::DONT_CARE)));
57892   SWIG_Python_SetConstant(d, "Enquire_INCLUDE_QUERY_TERMS",SWIG_From_int(static_cast< int >(Xapian::Enquire::INCLUDE_QUERY_TERMS)));
57893   SWIG_Python_SetConstant(d, "Enquire_USE_EXACT_TERMFREQ",SWIG_From_int(static_cast< int >(Xapian::Enquire::USE_EXACT_TERMFREQ)));
57894   SWIG_Python_SetConstant(d, "RP_SUFFIX",SWIG_From_int(static_cast< int >(Xapian::RP_SUFFIX)));
57895   SWIG_Python_SetConstant(d, "RP_REPEATED",SWIG_From_int(static_cast< int >(Xapian::RP_REPEATED)));
57896   SWIG_Python_SetConstant(d, "RP_DATE_PREFER_MDY",SWIG_From_int(static_cast< int >(Xapian::RP_DATE_PREFER_MDY)));
57897   SWIG_Python_SetConstant(d, "QueryParser_FLAG_BOOLEAN",SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_BOOLEAN)));
57898   SWIG_Python_SetConstant(d, "QueryParser_FLAG_PHRASE",SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_PHRASE)));
57899   SWIG_Python_SetConstant(d, "QueryParser_FLAG_LOVEHATE",SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_LOVEHATE)));
57900   SWIG_Python_SetConstant(d, "QueryParser_FLAG_BOOLEAN_ANY_CASE",SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_BOOLEAN_ANY_CASE)));
57901   SWIG_Python_SetConstant(d, "QueryParser_FLAG_WILDCARD",SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_WILDCARD)));
57902   SWIG_Python_SetConstant(d, "QueryParser_FLAG_PURE_NOT",SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_PURE_NOT)));
57903   SWIG_Python_SetConstant(d, "QueryParser_FLAG_PARTIAL",SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_PARTIAL)));
57904   SWIG_Python_SetConstant(d, "QueryParser_FLAG_SPELLING_CORRECTION",SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_SPELLING_CORRECTION)));
57905   SWIG_Python_SetConstant(d, "QueryParser_FLAG_SYNONYM",SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_SYNONYM)));
57906   SWIG_Python_SetConstant(d, "QueryParser_FLAG_AUTO_SYNONYMS",SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_AUTO_SYNONYMS)));
57907   SWIG_Python_SetConstant(d, "QueryParser_FLAG_AUTO_MULTIWORD_SYNONYMS",SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_AUTO_MULTIWORD_SYNONYMS)));
57908   SWIG_Python_SetConstant(d, "QueryParser_FLAG_CJK_NGRAM",SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_CJK_NGRAM)));
57909   SWIG_Python_SetConstant(d, "QueryParser_FLAG_ACCUMULATE",SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_ACCUMULATE)));
57910   SWIG_Python_SetConstant(d, "QueryParser_FLAG_DEFAULT",SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_DEFAULT)));
57911   SWIG_Python_SetConstant(d, "QueryParser_STEM_NONE",SWIG_From_int(static_cast< int >(Xapian::QueryParser::STEM_NONE)));
57912   SWIG_Python_SetConstant(d, "QueryParser_STEM_SOME",SWIG_From_int(static_cast< int >(Xapian::QueryParser::STEM_SOME)));
57913   SWIG_Python_SetConstant(d, "QueryParser_STEM_ALL",SWIG_From_int(static_cast< int >(Xapian::QueryParser::STEM_ALL)));
57914   SWIG_Python_SetConstant(d, "QueryParser_STEM_ALL_Z",SWIG_From_int(static_cast< int >(Xapian::QueryParser::STEM_ALL_Z)));
57915   SWIG_Python_SetConstant(d, "QueryParser_STEM_SOME_FULL_POS",SWIG_From_int(static_cast< int >(Xapian::QueryParser::STEM_SOME_FULL_POS)));
57916   SWIG_Python_SetConstant(d, "Weight_TWO_STAGE_SMOOTHING",SWIG_From_int(static_cast< int >(Xapian::Weight::TWO_STAGE_SMOOTHING)));
57917   SWIG_Python_SetConstant(d, "Weight_DIRICHLET_SMOOTHING",SWIG_From_int(static_cast< int >(Xapian::Weight::DIRICHLET_SMOOTHING)));
57918   SWIG_Python_SetConstant(d, "Weight_ABSOLUTE_DISCOUNT_SMOOTHING",SWIG_From_int(static_cast< int >(Xapian::Weight::ABSOLUTE_DISCOUNT_SMOOTHING)));
57919   SWIG_Python_SetConstant(d, "Weight_JELINEK_MERCER_SMOOTHING",SWIG_From_int(static_cast< int >(Xapian::Weight::JELINEK_MERCER_SMOOTHING)));
57920   SWIG_Python_SetConstant(d, "Weight_DIRICHLET_PLUS_SMOOTHING",SWIG_From_int(static_cast< int >(Xapian::Weight::DIRICHLET_PLUS_SMOOTHING)));
57921   SWIG_Python_SetConstant(d, "Compactor_STANDARD",SWIG_From_int(static_cast< int >(Xapian::Compactor::STANDARD)));
57922   SWIG_Python_SetConstant(d, "Compactor_FULL",SWIG_From_int(static_cast< int >(Xapian::Compactor::FULL)));
57923   SWIG_Python_SetConstant(d, "Compactor_FULLER",SWIG_From_int(static_cast< int >(Xapian::Compactor::FULLER)));
57924 
57925   /* Initialize threading */
57926   SWIG_PYTHON_INITIALIZE_THREADS;
57927 #if PY_VERSION_HEX >= 0x03000000
57928   return m;
57929 #else
57930   return;
57931 #endif
57932 }
57933 
57934