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 
12 #ifndef SWIGTCL
13 #define SWIGTCL
14 #endif
15 
16 
17 #ifdef __cplusplus
18 /* SwigValueWrapper is described in swig.swg */
19 template<typename T> class SwigValueWrapper {
20   struct SwigMovePointer {
21     T *ptr;
SwigMovePointerSwigValueWrapper::SwigMovePointer22     SwigMovePointer(T *p) : ptr(p) { }
~SwigMovePointerSwigValueWrapper::SwigMovePointer23     ~SwigMovePointer() { delete ptr; }
operator =SwigValueWrapper::SwigMovePointer24     SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
25   } pointer;
26   SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27   SwigValueWrapper(const SwigValueWrapper<T>& rhs);
28 public:
SwigValueWrapper()29   SwigValueWrapper() : pointer(0) { }
operator =(const T & t)30   SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
operator T&() const31   operator T&() const { return *pointer.ptr; }
operator &()32   T *operator&() { return pointer.ptr; }
33 };
34 
SwigValueInit()35 template <typename T> T SwigValueInit() {
36   return T();
37 }
38 #endif
39 
40 /* -----------------------------------------------------------------------------
41  *  This section contains generic SWIG labels for method/variable
42  *  declarations/attributes, and other compiler dependent labels.
43  * ----------------------------------------------------------------------------- */
44 
45 /* template workaround for compilers that cannot correctly implement the C++ standard */
46 #ifndef SWIGTEMPLATEDISAMBIGUATOR
47 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
48 #  define SWIGTEMPLATEDISAMBIGUATOR template
49 # elif defined(__HP_aCC)
50 /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
51 /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
52 #  define SWIGTEMPLATEDISAMBIGUATOR template
53 # else
54 #  define SWIGTEMPLATEDISAMBIGUATOR
55 # endif
56 #endif
57 
58 /* inline attribute */
59 #ifndef SWIGINLINE
60 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
61 #   define SWIGINLINE inline
62 # else
63 #   define SWIGINLINE
64 # endif
65 #endif
66 
67 /* attribute recognised by some compilers to avoid 'unused' warnings */
68 #ifndef SWIGUNUSED
69 # if defined(__GNUC__)
70 #   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
71 #     define SWIGUNUSED __attribute__ ((__unused__))
72 #   else
73 #     define SWIGUNUSED
74 #   endif
75 # elif defined(__ICC)
76 #   define SWIGUNUSED __attribute__ ((__unused__))
77 # else
78 #   define SWIGUNUSED
79 # endif
80 #endif
81 
82 #ifndef SWIG_MSC_UNSUPPRESS_4505
83 # if defined(_MSC_VER)
84 #   pragma warning(disable : 4505) /* unreferenced local function has been removed */
85 # endif
86 #endif
87 
88 #ifndef SWIGUNUSEDPARM
89 # ifdef __cplusplus
90 #   define SWIGUNUSEDPARM(p)
91 # else
92 #   define SWIGUNUSEDPARM(p) p SWIGUNUSED
93 # endif
94 #endif
95 
96 /* internal SWIG method */
97 #ifndef SWIGINTERN
98 # define SWIGINTERN static SWIGUNUSED
99 #endif
100 
101 /* internal inline SWIG method */
102 #ifndef SWIGINTERNINLINE
103 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
104 #endif
105 
106 /* exporting methods */
107 #if defined(__GNUC__)
108 #  if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
109 #    ifndef GCC_HASCLASSVISIBILITY
110 #      define GCC_HASCLASSVISIBILITY
111 #    endif
112 #  endif
113 #endif
114 
115 #ifndef SWIGEXPORT
116 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
117 #   if defined(STATIC_LINKED)
118 #     define SWIGEXPORT
119 #   else
120 #     define SWIGEXPORT __declspec(dllexport)
121 #   endif
122 # else
123 #   if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
124 #     define SWIGEXPORT __attribute__ ((visibility("default")))
125 #   else
126 #     define SWIGEXPORT
127 #   endif
128 # endif
129 #endif
130 
131 /* calling conventions for Windows */
132 #ifndef SWIGSTDCALL
133 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
134 #   define SWIGSTDCALL __stdcall
135 # else
136 #   define SWIGSTDCALL
137 # endif
138 #endif
139 
140 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
141 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
142 # define _CRT_SECURE_NO_DEPRECATE
143 #endif
144 
145 /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
146 #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
147 # define _SCL_SECURE_NO_DEPRECATE
148 #endif
149 
150 /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
151 #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
152 # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
153 #endif
154 
155 /* Intel's compiler complains if a variable which was never initialised is
156  * cast to void, which is a common idiom which we use to indicate that we
157  * are aware a variable isn't used.  So we just silence that warning.
158  * See: https://github.com/swig/swig/issues/192 for more discussion.
159  */
160 #ifdef __INTEL_COMPILER
161 # pragma warning disable 592
162 #endif
163 
164 
165 #include <stdio.h>
166 #include <tcl.h>
167 #include <errno.h>
168 #include <stdlib.h>
169 #include <stdarg.h>
170 #include <ctype.h>
171 
172 /* -----------------------------------------------------------------------------
173  * swigrun.swg
174  *
175  * This file contains generic C API SWIG runtime support for pointer
176  * type checking.
177  * ----------------------------------------------------------------------------- */
178 
179 /* This should only be incremented when either the layout of swig_type_info changes,
180    or for whatever reason, the runtime changes incompatibly */
181 #define SWIG_RUNTIME_VERSION "4"
182 
183 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
184 #ifdef SWIG_TYPE_TABLE
185 # define SWIG_QUOTE_STRING(x) #x
186 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
187 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
188 #else
189 # define SWIG_TYPE_TABLE_NAME
190 #endif
191 
192 /*
193   You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
194   creating a static or dynamic library from the SWIG runtime code.
195   In 99.9% of the cases, SWIG just needs to declare them as 'static'.
196 
197   But only do this if strictly necessary, ie, if you have problems
198   with your compiler or suchlike.
199 */
200 
201 #ifndef SWIGRUNTIME
202 # define SWIGRUNTIME SWIGINTERN
203 #endif
204 
205 #ifndef SWIGRUNTIMEINLINE
206 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
207 #endif
208 
209 /*  Generic buffer size */
210 #ifndef SWIG_BUFFER_SIZE
211 # define SWIG_BUFFER_SIZE 1024
212 #endif
213 
214 /* Flags for pointer conversions */
215 #define SWIG_POINTER_DISOWN        0x1
216 #define SWIG_CAST_NEW_MEMORY       0x2
217 
218 /* Flags for new pointer objects */
219 #define SWIG_POINTER_OWN           0x1
220 
221 
222 /*
223    Flags/methods for returning states.
224 
225    The SWIG conversion methods, as ConvertPtr, return an integer
226    that tells if the conversion was successful or not. And if not,
227    an error code can be returned (see swigerrors.swg for the codes).
228 
229    Use the following macros/flags to set or process the returning
230    states.
231 
232    In old versions of SWIG, code such as the following was usually written:
233 
234      if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
235        // success code
236      } else {
237        //fail code
238      }
239 
240    Now you can be more explicit:
241 
242     int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
243     if (SWIG_IsOK(res)) {
244       // success code
245     } else {
246       // fail code
247     }
248 
249    which is the same really, but now you can also do
250 
251     Type *ptr;
252     int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
253     if (SWIG_IsOK(res)) {
254       // success code
255       if (SWIG_IsNewObj(res) {
256         ...
257 	delete *ptr;
258       } else {
259         ...
260       }
261     } else {
262       // fail code
263     }
264 
265    I.e., now SWIG_ConvertPtr can return new objects and you can
266    identify the case and take care of the deallocation. Of course that
267    also requires SWIG_ConvertPtr to return new result values, such as
268 
269       int SWIG_ConvertPtr(obj, ptr,...) {
270         if (<obj is ok>) {
271           if (<need new object>) {
272             *ptr = <ptr to new allocated object>;
273             return SWIG_NEWOBJ;
274           } else {
275             *ptr = <ptr to old object>;
276             return SWIG_OLDOBJ;
277           }
278         } else {
279           return SWIG_BADOBJ;
280         }
281       }
282 
283    Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
284    more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
285    SWIG errors code.
286 
287    Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
288    allows to return the 'cast rank', for example, if you have this
289 
290        int food(double)
291        int fooi(int);
292 
293    and you call
294 
295       food(1)   // cast rank '1'  (1 -> 1.0)
296       fooi(1)   // cast rank '0'
297 
298    just use the SWIG_AddCast()/SWIG_CheckState()
299 */
300 
301 #define SWIG_OK                    (0)
302 #define SWIG_ERROR                 (-1)
303 #define SWIG_IsOK(r)               (r >= 0)
304 #define SWIG_ArgError(r)           ((r != SWIG_ERROR) ? r : SWIG_TypeError)
305 
306 /* The CastRankLimit says how many bits are used for the cast rank */
307 #define SWIG_CASTRANKLIMIT         (1 << 8)
308 /* The NewMask denotes the object was created (using new/malloc) */
309 #define SWIG_NEWOBJMASK            (SWIG_CASTRANKLIMIT  << 1)
310 /* The TmpMask is for in/out typemaps that use temporal objects */
311 #define SWIG_TMPOBJMASK            (SWIG_NEWOBJMASK << 1)
312 /* Simple returning values */
313 #define SWIG_BADOBJ                (SWIG_ERROR)
314 #define SWIG_OLDOBJ                (SWIG_OK)
315 #define SWIG_NEWOBJ                (SWIG_OK | SWIG_NEWOBJMASK)
316 #define SWIG_TMPOBJ                (SWIG_OK | SWIG_TMPOBJMASK)
317 /* Check, add and del mask methods */
318 #define SWIG_AddNewMask(r)         (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
319 #define SWIG_DelNewMask(r)         (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
320 #define SWIG_IsNewObj(r)           (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
321 #define SWIG_AddTmpMask(r)         (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
322 #define SWIG_DelTmpMask(r)         (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
323 #define SWIG_IsTmpObj(r)           (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
324 
325 /* Cast-Rank Mode */
326 #if defined(SWIG_CASTRANK_MODE)
327 #  ifndef SWIG_TypeRank
328 #    define SWIG_TypeRank             unsigned long
329 #  endif
330 #  ifndef SWIG_MAXCASTRANK            /* Default cast allowed */
331 #    define SWIG_MAXCASTRANK          (2)
332 #  endif
333 #  define SWIG_CASTRANKMASK          ((SWIG_CASTRANKLIMIT) -1)
334 #  define SWIG_CastRank(r)           (r & SWIG_CASTRANKMASK)
SWIG_AddCast(int r)335 SWIGINTERNINLINE int SWIG_AddCast(int r) {
336   return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
337 }
SWIG_CheckState(int r)338 SWIGINTERNINLINE int SWIG_CheckState(int r) {
339   return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
340 }
341 #else /* no cast-rank mode */
342 #  define SWIG_AddCast(r) (r)
343 #  define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
344 #endif
345 
346 
347 #include <string.h>
348 
349 #ifdef __cplusplus
350 extern "C" {
351 #endif
352 
353 typedef void *(*swig_converter_func)(void *, int *);
354 typedef struct swig_type_info *(*swig_dycast_func)(void **);
355 
356 /* Structure to store information on one type */
357 typedef struct swig_type_info {
358   const char             *name;			/* mangled name of this type */
359   const char             *str;			/* human readable name of this type */
360   swig_dycast_func        dcast;		/* dynamic cast function down a hierarchy */
361   struct swig_cast_info  *cast;			/* linked list of types that can cast into this type */
362   void                   *clientdata;		/* language specific type data */
363   int                    owndata;		/* flag if the structure owns the clientdata */
364 } swig_type_info;
365 
366 /* Structure to store a type and conversion function used for casting */
367 typedef struct swig_cast_info {
368   swig_type_info         *type;			/* pointer to type that is equivalent to this type */
369   swig_converter_func     converter;		/* function to cast the void pointers */
370   struct swig_cast_info  *next;			/* pointer to next cast in linked list */
371   struct swig_cast_info  *prev;			/* pointer to the previous cast */
372 } swig_cast_info;
373 
374 /* Structure used to store module information
375  * Each module generates one structure like this, and the runtime collects
376  * all of these structures and stores them in a circularly linked list.*/
377 typedef struct swig_module_info {
378   swig_type_info         **types;		/* Array of pointers to swig_type_info structures that are in this module */
379   size_t                 size;		        /* Number of types in this module */
380   struct swig_module_info *next;		/* Pointer to next element in circularly linked list */
381   swig_type_info         **type_initial;	/* Array of initially generated type structures */
382   swig_cast_info         **cast_initial;	/* Array of initially generated casting structures */
383   void                    *clientdata;		/* Language specific module data */
384 } swig_module_info;
385 
386 /*
387   Compare two type names skipping the space characters, therefore
388   "char*" == "char *" and "Class<int>" == "Class<int >", etc.
389 
390   Return 0 when the two name types are equivalent, as in
391   strncmp, but skipping ' '.
392 */
393 SWIGRUNTIME int
SWIG_TypeNameComp(const char * f1,const char * l1,const char * f2,const char * l2)394 SWIG_TypeNameComp(const char *f1, const char *l1,
395 		  const char *f2, const char *l2) {
396   for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
397     while ((*f1 == ' ') && (f1 != l1)) ++f1;
398     while ((*f2 == ' ') && (f2 != l2)) ++f2;
399     if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
400   }
401   return (int)((l1 - f1) - (l2 - f2));
402 }
403 
404 /*
405   Check type equivalence in a name list like <name1>|<name2>|...
406   Return 0 if equal, -1 if nb < tb, 1 if nb > tb
407 */
408 SWIGRUNTIME int
SWIG_TypeCmp(const char * nb,const char * tb)409 SWIG_TypeCmp(const char *nb, const char *tb) {
410   int equiv = 1;
411   const char* te = tb + strlen(tb);
412   const char* ne = nb;
413   while (equiv != 0 && *ne) {
414     for (nb = ne; *ne; ++ne) {
415       if (*ne == '|') break;
416     }
417     equiv = SWIG_TypeNameComp(nb, ne, tb, te);
418     if (*ne) ++ne;
419   }
420   return equiv;
421 }
422 
423 /*
424   Check type equivalence in a name list like <name1>|<name2>|...
425   Return 0 if not equal, 1 if equal
426 */
427 SWIGRUNTIME int
SWIG_TypeEquiv(const char * nb,const char * tb)428 SWIG_TypeEquiv(const char *nb, const char *tb) {
429   return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
430 }
431 
432 /*
433   Check the typename
434 */
435 SWIGRUNTIME swig_cast_info *
SWIG_TypeCheck(const char * c,swig_type_info * ty)436 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
437   if (ty) {
438     swig_cast_info *iter = ty->cast;
439     while (iter) {
440       if (strcmp(iter->type->name, c) == 0) {
441         if (iter == ty->cast)
442           return iter;
443         /* Move iter to the top of the linked list */
444         iter->prev->next = iter->next;
445         if (iter->next)
446           iter->next->prev = iter->prev;
447         iter->next = ty->cast;
448         iter->prev = 0;
449         if (ty->cast) ty->cast->prev = iter;
450         ty->cast = iter;
451         return iter;
452       }
453       iter = iter->next;
454     }
455   }
456   return 0;
457 }
458 
459 /*
460   Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
461 */
462 SWIGRUNTIME swig_cast_info *
SWIG_TypeCheckStruct(swig_type_info * from,swig_type_info * ty)463 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
464   if (ty) {
465     swig_cast_info *iter = ty->cast;
466     while (iter) {
467       if (iter->type == from) {
468         if (iter == ty->cast)
469           return iter;
470         /* Move iter to the top of the linked list */
471         iter->prev->next = iter->next;
472         if (iter->next)
473           iter->next->prev = iter->prev;
474         iter->next = ty->cast;
475         iter->prev = 0;
476         if (ty->cast) ty->cast->prev = iter;
477         ty->cast = iter;
478         return iter;
479       }
480       iter = iter->next;
481     }
482   }
483   return 0;
484 }
485 
486 /*
487   Cast a pointer up an inheritance hierarchy
488 */
489 SWIGRUNTIMEINLINE void *
SWIG_TypeCast(swig_cast_info * ty,void * ptr,int * newmemory)490 SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
491   return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
492 }
493 
494 /*
495    Dynamic pointer casting. Down an inheritance hierarchy
496 */
497 SWIGRUNTIME swig_type_info *
SWIG_TypeDynamicCast(swig_type_info * ty,void ** ptr)498 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
499   swig_type_info *lastty = ty;
500   if (!ty || !ty->dcast) return ty;
501   while (ty && (ty->dcast)) {
502     ty = (*ty->dcast)(ptr);
503     if (ty) lastty = ty;
504   }
505   return lastty;
506 }
507 
508 /*
509   Return the name associated with this type
510 */
511 SWIGRUNTIMEINLINE const char *
SWIG_TypeName(const swig_type_info * ty)512 SWIG_TypeName(const swig_type_info *ty) {
513   return ty->name;
514 }
515 
516 /*
517   Return the pretty name associated with this type,
518   that is an unmangled type name in a form presentable to the user.
519 */
520 SWIGRUNTIME const char *
SWIG_TypePrettyName(const swig_type_info * type)521 SWIG_TypePrettyName(const swig_type_info *type) {
522   /* The "str" field contains the equivalent pretty names of the
523      type, separated by vertical-bar characters.  We choose
524      to print the last name, as it is often (?) the most
525      specific. */
526   if (!type) return NULL;
527   if (type->str != NULL) {
528     const char *last_name = type->str;
529     const char *s;
530     for (s = type->str; *s; s++)
531       if (*s == '|') last_name = s+1;
532     return last_name;
533   }
534   else
535     return type->name;
536 }
537 
538 /*
539    Set the clientdata field for a type
540 */
541 SWIGRUNTIME void
SWIG_TypeClientData(swig_type_info * ti,void * clientdata)542 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
543   swig_cast_info *cast = ti->cast;
544   /* if (ti->clientdata == clientdata) return; */
545   ti->clientdata = clientdata;
546 
547   while (cast) {
548     if (!cast->converter) {
549       swig_type_info *tc = cast->type;
550       if (!tc->clientdata) {
551 	SWIG_TypeClientData(tc, clientdata);
552       }
553     }
554     cast = cast->next;
555   }
556 }
557 SWIGRUNTIME void
SWIG_TypeNewClientData(swig_type_info * ti,void * clientdata)558 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
559   SWIG_TypeClientData(ti, clientdata);
560   ti->owndata = 1;
561 }
562 
563 /*
564   Search for a swig_type_info structure only by mangled name
565   Search is a O(log #types)
566 
567   We start searching at module start, and finish searching when start == end.
568   Note: if start == end at the beginning of the function, we go all the way around
569   the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
SWIG_MangledTypeQueryModule(swig_module_info * start,swig_module_info * end,const char * name)572 SWIG_MangledTypeQueryModule(swig_module_info *start,
573                             swig_module_info *end,
574 		            const char *name) {
575   swig_module_info *iter = start;
576   do {
577     if (iter->size) {
578       size_t l = 0;
579       size_t r = iter->size - 1;
580       do {
581 	/* since l+r >= 0, we can (>> 1) instead (/ 2) */
582 	size_t i = (l + r) >> 1;
583 	const char *iname = iter->types[i]->name;
584 	if (iname) {
585 	  int compare = strcmp(name, iname);
586 	  if (compare == 0) {
587 	    return iter->types[i];
588 	  } else if (compare < 0) {
589 	    if (i) {
590 	      r = i - 1;
591 	    } else {
592 	      break;
593 	    }
594 	  } else if (compare > 0) {
595 	    l = i + 1;
596 	  }
597 	} else {
598 	  break; /* should never happen */
599 	}
600       } while (l <= r);
601     }
602     iter = iter->next;
603   } while (iter != end);
604   return 0;
605 }
606 
607 /*
608   Search for a swig_type_info structure for either a mangled name or a human readable name.
609   It first searches the mangled names of the types, which is a O(log #types)
610   If a type is not found it then searches the human readable names, which is O(#types).
611 
612   We start searching at module start, and finish searching when start == end.
613   Note: if start == end at the beginning of the function, we go all the way around
614   the circular list.
615 */
616 SWIGRUNTIME swig_type_info *
SWIG_TypeQueryModule(swig_module_info * start,swig_module_info * end,const char * name)617 SWIG_TypeQueryModule(swig_module_info *start,
618                      swig_module_info *end,
619 		     const char *name) {
620   /* STEP 1: Search the name field using binary search */
621   swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
622   if (ret) {
623     return ret;
624   } else {
625     /* STEP 2: If the type hasn't been found, do a complete search
626        of the str field (the human readable name) */
627     swig_module_info *iter = start;
628     do {
629       size_t i = 0;
630       for (; i < iter->size; ++i) {
631 	if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
632 	  return iter->types[i];
633       }
634       iter = iter->next;
635     } while (iter != end);
636   }
637 
638   /* neither found a match */
639   return 0;
640 }
641 
642 /*
643    Pack binary data into a string
644 */
645 SWIGRUNTIME char *
SWIG_PackData(char * c,void * ptr,size_t sz)646 SWIG_PackData(char *c, void *ptr, size_t sz) {
647   static const char hex[17] = "0123456789abcdef";
648   const unsigned char *u = (unsigned char *) ptr;
649   const unsigned char *eu =  u + sz;
650   for (; u != eu; ++u) {
651     unsigned char uu = *u;
652     *(c++) = hex[(uu & 0xf0) >> 4];
653     *(c++) = hex[uu & 0xf];
654   }
655   return c;
656 }
657 
658 /*
659    Unpack binary data from a string
660 */
661 SWIGRUNTIME const char *
SWIG_UnpackData(const char * c,void * ptr,size_t sz)662 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
663   unsigned char *u = (unsigned char *) ptr;
664   const unsigned char *eu = u + sz;
665   for (; u != eu; ++u) {
666     char d = *(c++);
667     unsigned char uu;
668     if ((d >= '0') && (d <= '9'))
669       uu = (unsigned char)((d - '0') << 4);
670     else if ((d >= 'a') && (d <= 'f'))
671       uu = (unsigned char)((d - ('a'-10)) << 4);
672     else
673       return (char *) 0;
674     d = *(c++);
675     if ((d >= '0') && (d <= '9'))
676       uu |= (unsigned char)(d - '0');
677     else if ((d >= 'a') && (d <= 'f'))
678       uu |= (unsigned char)(d - ('a'-10));
679     else
680       return (char *) 0;
681     *u = uu;
682   }
683   return c;
684 }
685 
686 /*
687    Pack 'void *' into a string buffer.
688 */
689 SWIGRUNTIME char *
SWIG_PackVoidPtr(char * buff,void * ptr,const char * name,size_t bsz)690 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
691   char *r = buff;
692   if ((2*sizeof(void *) + 2) > bsz) return 0;
693   *(r++) = '_';
694   r = SWIG_PackData(r,&ptr,sizeof(void *));
695   if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
696   strcpy(r,name);
697   return buff;
698 }
699 
700 SWIGRUNTIME const char *
SWIG_UnpackVoidPtr(const char * c,void ** ptr,const char * name)701 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
702   if (*c != '_') {
703     if (strcmp(c,"NULL") == 0) {
704       *ptr = (void *) 0;
705       return name;
706     } else {
707       return 0;
708     }
709   }
710   return SWIG_UnpackData(++c,ptr,sizeof(void *));
711 }
712 
713 SWIGRUNTIME char *
SWIG_PackDataName(char * buff,void * ptr,size_t sz,const char * name,size_t bsz)714 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
715   char *r = buff;
716   size_t lname = (name ? strlen(name) : 0);
717   if ((2*sz + 2 + lname) > bsz) return 0;
718   *(r++) = '_';
719   r = SWIG_PackData(r,ptr,sz);
720   if (lname) {
721     strncpy(r,name,lname+1);
722   } else {
723     *r = 0;
724   }
725   return buff;
726 }
727 
728 SWIGRUNTIME const char *
SWIG_UnpackDataName(const char * c,void * ptr,size_t sz,const char * name)729 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
730   if (*c != '_') {
731     if (strcmp(c,"NULL") == 0) {
732       memset(ptr,0,sz);
733       return name;
734     } else {
735       return 0;
736     }
737   }
738   return SWIG_UnpackData(++c,ptr,sz);
739 }
740 
741 #ifdef __cplusplus
742 }
743 #endif
744 
745 /*  Errors in SWIG */
746 #define  SWIG_UnknownError    	   -1
747 #define  SWIG_IOError        	   -2
748 #define  SWIG_RuntimeError   	   -3
749 #define  SWIG_IndexError     	   -4
750 #define  SWIG_TypeError      	   -5
751 #define  SWIG_DivisionByZero 	   -6
752 #define  SWIG_OverflowError  	   -7
753 #define  SWIG_SyntaxError    	   -8
754 #define  SWIG_ValueError     	   -9
755 #define  SWIG_SystemError    	   -10
756 #define  SWIG_AttributeError 	   -11
757 #define  SWIG_MemoryError    	   -12
758 #define  SWIG_NullReferenceError   -13
759 
760 
761 
762 /* -----------------------------------------------------------------------------
763  * error manipulation
764  * ----------------------------------------------------------------------------- */
765 
766 SWIGINTERN const char*
SWIG_Tcl_ErrorType(int code)767 SWIG_Tcl_ErrorType(int code) {
768   const char* type = 0;
769   switch(code) {
770   case SWIG_MemoryError:
771     type = "MemoryError";
772     break;
773   case SWIG_IOError:
774     type = "IOError";
775     break;
776   case SWIG_RuntimeError:
777     type = "RuntimeError";
778     break;
779   case SWIG_IndexError:
780     type = "IndexError";
781     break;
782   case SWIG_TypeError:
783     type = "TypeError";
784     break;
785   case SWIG_DivisionByZero:
786     type = "ZeroDivisionError";
787     break;
788   case SWIG_OverflowError:
789     type = "OverflowError";
790     break;
791   case SWIG_SyntaxError:
792     type = "SyntaxError";
793     break;
794   case SWIG_ValueError:
795     type = "ValueError";
796     break;
797   case SWIG_SystemError:
798     type = "SystemError";
799     break;
800   case SWIG_AttributeError:
801     type = "AttributeError";
802     break;
803   default:
804     type = "RuntimeError";
805   }
806   return type;
807 }
808 
809 
810 SWIGINTERN void
SWIG_Tcl_SetErrorObj(Tcl_Interp * interp,const char * ctype,Tcl_Obj * obj)811 SWIG_Tcl_SetErrorObj(Tcl_Interp *interp, const char *ctype, Tcl_Obj *obj)
812 {
813   Tcl_ResetResult(interp);
814   Tcl_SetObjResult(interp, obj);
815   Tcl_SetErrorCode(interp, "SWIG", ctype, NULL);
816 }
817 
818 SWIGINTERN void
SWIG_Tcl_SetErrorMsg(Tcl_Interp * interp,const char * ctype,const char * mesg)819 SWIG_Tcl_SetErrorMsg(Tcl_Interp *interp, const char *ctype, const char *mesg)
820 {
821   Tcl_ResetResult(interp);
822   Tcl_SetErrorCode(interp, "SWIG", ctype, NULL);
823   Tcl_AppendResult(interp, ctype, " ", mesg, NULL);
824   /*
825   Tcl_AddErrorInfo(interp, ctype);
826   Tcl_AddErrorInfo(interp, " ");
827   Tcl_AddErrorInfo(interp, mesg);
828   */
829 }
830 
831 SWIGINTERNINLINE void
SWIG_Tcl_AddErrorMsg(Tcl_Interp * interp,const char * mesg)832 SWIG_Tcl_AddErrorMsg(Tcl_Interp *interp, const char* mesg)
833 {
834   Tcl_AddErrorInfo(interp, mesg);
835 }
836 
837 
838 
839 /* -----------------------------------------------------------------------------
840  * SWIG API. Portion that goes into the runtime
841  * ----------------------------------------------------------------------------- */
842 #ifdef __cplusplus
843 extern "C" {
844 #endif
845 
846 /* -----------------------------------------------------------------------------
847  * Constant declarations
848  * ----------------------------------------------------------------------------- */
849 
850 /* Constant Types */
851 #define SWIG_TCL_POINTER 4
852 #define SWIG_TCL_BINARY  5
853 
854 /* Constant information structure */
855 typedef struct swig_const_info {
856     int type;
857     char *name;
858     long lvalue;
859     double dvalue;
860     void   *pvalue;
861     swig_type_info **ptype;
862 } swig_const_info;
863 
864 typedef int   (*swig_wrapper)(ClientData, Tcl_Interp *, int, Tcl_Obj *CONST []);
865 typedef int   (*swig_wrapper_func)(ClientData, Tcl_Interp *, int, Tcl_Obj *CONST []);
866 typedef char *(*swig_variable_func)(ClientData, Tcl_Interp *, char *, char *, int);
867 typedef void  (*swig_delete_func)(ClientData);
868 
869 typedef struct swig_method {
870   const char     *name;
871   swig_wrapper   method;
872 } swig_method;
873 
874 typedef struct swig_attribute {
875   const char     *name;
876   swig_wrapper   getmethod;
877   swig_wrapper   setmethod;
878 } swig_attribute;
879 
880 typedef struct swig_class {
881   const char         *name;
882   swig_type_info   **type;
883   swig_wrapper       constructor;
884   void              (*destructor)(void *);
885   swig_method        *methods;
886   swig_attribute     *attributes;
887   struct swig_class **bases;
888   const char              **base_names;
889   swig_module_info   *module;
890   Tcl_HashTable       hashtable;
891 } swig_class;
892 
893 typedef struct swig_instance {
894   Tcl_Obj       *thisptr;
895   void          *thisvalue;
896   swig_class   *classptr;
897   int            destroy;
898   Tcl_Command    cmdtok;
899 } swig_instance;
900 
901 /* Structure for command table */
902 typedef struct {
903   const char *name;
904   int       (*wrapper)(ClientData, Tcl_Interp *, int, Tcl_Obj *CONST []);
905   ClientData  clientdata;
906 } swig_command_info;
907 
908 /* Structure for variable linking table */
909 typedef struct {
910   const char *name;
911   void *addr;
912   char * (*get)(ClientData, Tcl_Interp *, char *, char *, int);
913   char * (*set)(ClientData, Tcl_Interp *, char *, char *, int);
914 } swig_var_info;
915 
916 
917 /* -----------------------------------------------------------------------------*
918  *  Install a constant object
919  * -----------------------------------------------------------------------------*/
920 
921 static Tcl_HashTable   swigconstTable;
922 static int             swigconstTableinit = 0;
923 
924 SWIGINTERN void
SWIG_Tcl_SetConstantObj(Tcl_Interp * interp,const char * name,Tcl_Obj * obj)925 SWIG_Tcl_SetConstantObj(Tcl_Interp *interp, const char* name, Tcl_Obj *obj) {
926   int newobj;
927   Tcl_ObjSetVar2(interp,Tcl_NewStringObj(name,-1), NULL, obj, TCL_GLOBAL_ONLY);
928   Tcl_SetHashValue(Tcl_CreateHashEntry(&swigconstTable, name, &newobj), (ClientData) obj);
929 }
930 
931 SWIGINTERN Tcl_Obj *
SWIG_Tcl_GetConstantObj(const char * key)932 SWIG_Tcl_GetConstantObj(const char *key) {
933   Tcl_HashEntry *entryPtr;
934   if (!swigconstTableinit) return 0;
935   entryPtr = Tcl_FindHashEntry(&swigconstTable, key);
936   if (entryPtr) {
937     return (Tcl_Obj *) Tcl_GetHashValue(entryPtr);
938   }
939   return 0;
940 }
941 
942 #ifdef __cplusplus
943 }
944 #endif
945 
946 
947 
948 /* -----------------------------------------------------------------------------
949  * tclrun.swg
950  *
951  * This file contains the runtime support for Tcl modules and includes
952  * code for managing global variables and pointer type checking.
953  * ----------------------------------------------------------------------------- */
954 
955 /* Common SWIG API */
956 
957 /* for raw pointers */
958 #define SWIG_ConvertPtr(oc, ptr, ty, flags)             SWIG_Tcl_ConvertPtr(interp, oc, ptr, ty, flags)
959 #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Tcl_NewPointerObj(ptr, type, flags)
960 
961 /* for raw packed data */
962 #define SWIG_ConvertPacked(obj, ptr, sz, ty)            SWIG_Tcl_ConvertPacked(interp, obj, ptr, sz, ty)
963 #define SWIG_NewPackedObj(ptr, sz, type)                SWIG_Tcl_NewPackedObj(ptr, sz, type)
964 
965 /* for class or struct pointers */
966 #define SWIG_ConvertInstance(obj, pptr, type, flags)    SWIG_Tcl_ConvertPtr(interp, obj, pptr, type, flags)
967 #define SWIG_NewInstanceObj(thisvalue, type, flags)     SWIG_Tcl_NewInstanceObj(interp, thisvalue, type, flags)
968 
969 /* for C or C++ function pointers */
970 #define SWIG_ConvertFunctionPtr(obj, pptr, type)        SWIG_Tcl_ConvertPtr(interp, obj, pptr, type, 0)
971 #define SWIG_NewFunctionPtrObj(ptr, type)               SWIG_Tcl_NewPointerObj(ptr, type, 0)
972 
973 /* for C++ member pointers, ie, member methods */
974 #define SWIG_ConvertMember(obj, ptr, sz, ty)            SWIG_Tcl_ConvertPacked(interp,obj, ptr, sz, ty)
975 #define SWIG_NewMemberObj(ptr, sz, type)                SWIG_Tcl_NewPackedObj(ptr, sz, type)
976 
977 
978 /* Runtime API */
979 
980 #define SWIG_GetModule(clientdata)                      SWIG_Tcl_GetModule((Tcl_Interp *) (clientdata))
981 #define SWIG_SetModule(clientdata, pointer)          	SWIG_Tcl_SetModule((Tcl_Interp *) (clientdata), pointer)
982 
983 
984 /* Error manipulation */
985 
986 #define SWIG_ErrorType(code)                            SWIG_Tcl_ErrorType(code)
987 #define SWIG_Error(code, msg)            		SWIG_Tcl_SetErrorMsg(interp, SWIG_Tcl_ErrorType(code), msg)
988 #define SWIG_fail                        		goto fail
989 
990 
991 /* Tcl-specific SWIG API */
992 
993 #define SWIG_Acquire(ptr)                               SWIG_Tcl_Acquire(ptr)
994 #define SWIG_MethodCommand                           	SWIG_Tcl_MethodCommand
995 #define SWIG_Disown(ptr)                             	SWIG_Tcl_Disown(ptr)
996 #define SWIG_ConvertPtrFromString(c, ptr, ty, flags) 	SWIG_Tcl_ConvertPtrFromString(interp, c, ptr, ty, flags)
997 #define SWIG_MakePtr(c, ptr, ty, flags)              	SWIG_Tcl_MakePtr(c, ptr, ty, flags)
998 #define SWIG_PointerTypeFromString(c)                	SWIG_Tcl_PointerTypeFromString(c)
999 #define SWIG_GetArgs                                 	SWIG_Tcl_GetArgs
1000 #define SWIG_GetConstantObj(key)                     	SWIG_Tcl_GetConstantObj(key)
1001 #define SWIG_ObjectConstructor                       	SWIG_Tcl_ObjectConstructor
1002 #define SWIG_Thisown(ptr)                            	SWIG_Tcl_Thisown(ptr)
1003 #define SWIG_ObjectDelete                            	SWIG_Tcl_ObjectDelete
1004 
1005 
1006 #define SWIG_TCL_DECL_ARGS_2(arg1, arg2)                (Tcl_Interp *interp SWIGUNUSED, arg1, arg2)
1007 #define SWIG_TCL_CALL_ARGS_2(arg1, arg2)                (interp, arg1, arg2)
1008 /* -----------------------------------------------------------------------------
1009  * pointers/data manipulation
1010  * ----------------------------------------------------------------------------- */
1011 
1012 /* For backward compatibility only */
1013 #define SWIG_POINTER_EXCEPTION  0
1014 #define SWIG_GetConstant        SWIG_GetConstantObj
1015 #define SWIG_Tcl_GetConstant    SWIG_Tcl_GetConstantObj
1016 
1017 #if TCL_MAJOR_VERSION >= 8 && TCL_MINOR_VERSION >= 5
1018 #define SWIG_TCL_HASHTABLE_INIT {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
1019 #else
1020 #define SWIG_TCL_HASHTABLE_INIT {0}
1021 #endif
1022 
1023 #include "assert.h"
1024 
1025 #ifdef __cplusplus
1026 extern "C" {
1027 #endif
1028 
1029 /* Object support */
1030 
1031 SWIGRUNTIME Tcl_HashTable*
SWIG_Tcl_ObjectTable(void)1032 SWIG_Tcl_ObjectTable(void) {
1033   static Tcl_HashTable  swigobjectTable;
1034   static int            swigobjectTableinit = 0;
1035   if (!swigobjectTableinit) {
1036     Tcl_InitHashTable(&swigobjectTable, TCL_ONE_WORD_KEYS);
1037     swigobjectTableinit = 1;
1038   }
1039   return &swigobjectTable;
1040 }
1041 
1042 /* Acquire ownership of a pointer */
1043 SWIGRUNTIME void
SWIG_Tcl_Acquire(void * ptr)1044 SWIG_Tcl_Acquire(void *ptr) {
1045   int newobj;
1046   Tcl_CreateHashEntry(SWIG_Tcl_ObjectTable(), (char *) ptr, &newobj);
1047 }
1048 
1049 SWIGRUNTIME int
SWIG_Tcl_Thisown(void * ptr)1050 SWIG_Tcl_Thisown(void *ptr) {
1051   if (Tcl_FindHashEntry(SWIG_Tcl_ObjectTable(), (char *) ptr)) {
1052     return 1;
1053   }
1054   return 0;
1055 }
1056 
1057 /* Disown a pointer.  Returns 1 if we owned it to begin with */
1058 SWIGRUNTIME int
SWIG_Tcl_Disown(void * ptr)1059 SWIG_Tcl_Disown(void *ptr) {
1060   Tcl_HashEntry *entryPtr = Tcl_FindHashEntry(SWIG_Tcl_ObjectTable(), (char *) ptr);
1061   if (entryPtr) {
1062     Tcl_DeleteHashEntry(entryPtr);
1063     return 1;
1064   }
1065   return 0;
1066 }
1067 
1068 /* Convert a pointer value */
1069 SWIGRUNTIME int
SWIG_Tcl_ConvertPtrFromString(Tcl_Interp * interp,const char * c,void ** ptr,swig_type_info * ty,int flags)1070 SWIG_Tcl_ConvertPtrFromString(Tcl_Interp *interp, const char *c, void **ptr, swig_type_info *ty, int flags) {
1071   swig_cast_info *tc;
1072   /* Pointer values must start with leading underscore */
1073   while (*c != '_') {
1074     *ptr = (void *) 0;
1075     if (strcmp(c,"NULL") == 0) return SWIG_OK;
1076 
1077     /* Empty string: not a pointer */
1078     if (*c == 0) return SWIG_ERROR;
1079 
1080     /* Hmmm. It could be an object name. */
1081 
1082     /* Check if this is a command at all. Prevents <c> cget -this         */
1083     /* from being called when c is not a command, firing the unknown proc */
1084     if (Tcl_VarEval(interp,"info commands ", c, (char *) NULL) == TCL_OK) {
1085       Tcl_Obj *result = Tcl_GetObjResult(interp);
1086       if (*(Tcl_GetStringFromObj(result, NULL)) == 0) {
1087         /* It's not a command, so it can't be a pointer */
1088         Tcl_ResetResult(interp);
1089         return SWIG_ERROR;
1090       }
1091     } else {
1092       /* This will only fail if the argument is multiple words. */
1093       /* Multiple words are also not commands.                  */
1094       Tcl_ResetResult(interp);
1095       return SWIG_ERROR;
1096     }
1097 
1098     /* Check if this is really a SWIG pointer */
1099     if (Tcl_VarEval(interp,c," cget -this", (char *) NULL) != TCL_OK) {
1100       Tcl_ResetResult(interp);
1101       return SWIG_ERROR;
1102     }
1103 
1104     c = Tcl_GetStringFromObj(Tcl_GetObjResult(interp), NULL);
1105   }
1106 
1107   c++;
1108   c = SWIG_UnpackData(c,ptr,sizeof(void *));
1109   if (ty) {
1110     tc = c ? SWIG_TypeCheck(c,ty) : 0;
1111     if (!tc) {
1112       return SWIG_ERROR;
1113     }
1114     if (flags & SWIG_POINTER_DISOWN) {
1115       SWIG_Disown((void *) *ptr);
1116     }
1117     {
1118       int newmemory = 0;
1119       *ptr = SWIG_TypeCast(tc,(void *) *ptr,&newmemory);
1120       assert(!newmemory); /* newmemory handling not yet implemented */
1121     }
1122   }
1123   return SWIG_OK;
1124 }
1125 
1126 /* Convert a pointer value */
1127 SWIGRUNTIMEINLINE int
SWIG_Tcl_ConvertPtr(Tcl_Interp * interp,Tcl_Obj * oc,void ** ptr,swig_type_info * ty,int flags)1128 SWIG_Tcl_ConvertPtr(Tcl_Interp *interp, Tcl_Obj *oc, void **ptr, swig_type_info *ty, int flags) {
1129   return SWIG_Tcl_ConvertPtrFromString(interp, Tcl_GetStringFromObj(oc,NULL), ptr, ty, flags);
1130 }
1131 
1132 /* Convert a pointer value */
1133 SWIGRUNTIME char *
SWIG_Tcl_PointerTypeFromString(char * c)1134 SWIG_Tcl_PointerTypeFromString(char *c) {
1135   char d;
1136   /* Pointer values must start with leading underscore. NULL has no type */
1137   if (*c != '_') {
1138     return 0;
1139   }
1140   c++;
1141   /* Extract hex value from pointer */
1142   while ((d = *c)) {
1143     if (!(((d >= '0') && (d <= '9')) || ((d >= 'a') && (d <= 'f')))) break;
1144     c++;
1145   }
1146   return c;
1147 }
1148 
1149 /* Convert a packed value value */
1150 SWIGRUNTIME int
SWIG_Tcl_ConvertPacked(Tcl_Interp * SWIGUNUSEDPARM (interp),Tcl_Obj * obj,void * ptr,int sz,swig_type_info * ty)1151 SWIG_Tcl_ConvertPacked(Tcl_Interp *SWIGUNUSEDPARM(interp) , Tcl_Obj *obj, void *ptr, int sz, swig_type_info *ty) {
1152   swig_cast_info *tc;
1153   const char  *c;
1154 
1155   if (!obj) goto type_error;
1156   c = Tcl_GetStringFromObj(obj,NULL);
1157   /* Pointer values must start with leading underscore */
1158   if (*c != '_') goto type_error;
1159   c++;
1160   c = SWIG_UnpackData(c,ptr,sz);
1161   if (ty) {
1162     tc = SWIG_TypeCheck(c,ty);
1163     if (!tc) goto type_error;
1164   }
1165   return SWIG_OK;
1166 
1167  type_error:
1168 
1169   return SWIG_ERROR;
1170 }
1171 
1172 
1173 /* Take a pointer and convert it to a string */
1174 SWIGRUNTIME void
SWIG_Tcl_MakePtr(char * c,void * ptr,swig_type_info * ty,int SWIGUNUSEDPARM (flags))1175 SWIG_Tcl_MakePtr(char *c, void *ptr, swig_type_info *ty, int SWIGUNUSEDPARM(flags)) {
1176   if (ptr) {
1177     *(c++) = '_';
1178     c = SWIG_PackData(c,&ptr,sizeof(void *));
1179     strcpy(c,ty->name);
1180   } else {
1181     strcpy(c,"NULL");
1182   }
1183 }
1184 
1185 /* Create a new pointer object */
1186 SWIGRUNTIMEINLINE Tcl_Obj *
SWIG_Tcl_NewPointerObj(void * ptr,swig_type_info * type,int flags)1187 SWIG_Tcl_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
1188   Tcl_Obj *robj;
1189   char result[SWIG_BUFFER_SIZE];
1190   SWIG_MakePtr(result,ptr,type,flags);
1191   robj = Tcl_NewStringObj(result,-1);
1192   return robj;
1193 }
1194 
1195 SWIGRUNTIME Tcl_Obj *
SWIG_Tcl_NewPackedObj(void * ptr,int sz,swig_type_info * type)1196 SWIG_Tcl_NewPackedObj(void *ptr, int sz, swig_type_info *type) {
1197   char result[1024];
1198   char *r = result;
1199   if ((2*sz + 1 + strlen(type->name)) > 1000) return 0;
1200   *(r++) = '_';
1201   r = SWIG_PackData(r,ptr,sz);
1202   strcpy(r,type->name);
1203   return Tcl_NewStringObj(result,-1);
1204 }
1205 
1206 /* -----------------------------------------------------------------------------*
1207  *  Get type list
1208  * -----------------------------------------------------------------------------*/
1209 
1210 SWIGRUNTIME swig_module_info *
SWIG_Tcl_GetModule(Tcl_Interp * interp)1211 SWIG_Tcl_GetModule(Tcl_Interp *interp) {
1212   const char *data;
1213   swig_module_info *ret = 0;
1214 
1215   /* first check if pointer already created */
1216   data = Tcl_GetVar(interp, (char *)"swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, TCL_GLOBAL_ONLY);
1217   if (data) {
1218     SWIG_UnpackData(data, &ret, sizeof(swig_type_info **));
1219   }
1220 
1221   return ret;
1222 }
1223 
1224 SWIGRUNTIME void
SWIG_Tcl_SetModule(Tcl_Interp * interp,swig_module_info * module)1225 SWIG_Tcl_SetModule(Tcl_Interp *interp, swig_module_info *module) {
1226   char buf[SWIG_BUFFER_SIZE];
1227   char *data;
1228 
1229   /* create a new pointer */
1230   data = SWIG_PackData(buf, &module, sizeof(swig_type_info **));
1231   *data = 0;
1232   Tcl_SetVar(interp, (char *)"swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, buf, TCL_GLOBAL_ONLY);
1233 }
1234 
1235 /* -----------------------------------------------------------------------------*
1236  *  Object auxiliaries
1237  * -----------------------------------------------------------------------------*/
1238 
1239 
1240 SWIGRUNTIME void
SWIG_Tcl_ObjectDelete(ClientData clientData)1241 SWIG_Tcl_ObjectDelete(ClientData clientData) {
1242   swig_instance *si = (swig_instance *) clientData;
1243   if (!si) return;
1244   if (si->destroy && SWIG_Disown(si->thisvalue)) {
1245     if (si->classptr->destructor) {
1246       (si->classptr->destructor)(si->thisvalue);
1247     }
1248   }
1249   Tcl_DecrRefCount(si->thisptr);
1250   free(si);
1251 }
1252 
1253 /* Function to invoke object methods given an instance */
1254 SWIGRUNTIME int
SWIG_Tcl_MethodCommand(ClientData clientData,Tcl_Interp * interp,int objc,Tcl_Obj * CONST _objv[])1255 SWIG_Tcl_MethodCommand(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST _objv[]) {
1256   char *method,   *attrname;
1257   swig_instance   *inst = (swig_instance *) clientData;
1258   swig_method     *meth;
1259   swig_attribute  *attr;
1260   Tcl_Obj         *oldarg;
1261   Tcl_Obj         **objv;
1262   int              rcode;
1263   swig_class      *cls;
1264   swig_class      *cls_stack[64];
1265   int              cls_stack_bi[64];
1266   int              cls_stack_top = 0;
1267   int              numconf = 2;
1268   int              bi;
1269 
1270   objv = (Tcl_Obj **) _objv;
1271   if (objc < 2) {
1272     Tcl_SetResult(interp, (char *) "wrong # args.", TCL_STATIC);
1273     return TCL_ERROR;
1274   }
1275   method = Tcl_GetStringFromObj(objv[1],NULL);
1276   if (strcmp(method,"-acquire") == 0) {
1277     inst->destroy = 1;
1278     SWIG_Acquire(inst->thisvalue);
1279     return TCL_OK;
1280   }
1281   if (strcmp(method,"-disown") == 0) {
1282     if (inst->destroy) {
1283       SWIG_Disown(inst->thisvalue);
1284     }
1285     inst->destroy = 0;
1286     return TCL_OK;
1287   }
1288   if (strcmp(method,"-delete") == 0) {
1289     Tcl_DeleteCommandFromToken(interp,inst->cmdtok);
1290     return TCL_OK;
1291   }
1292   cls_stack[cls_stack_top] = inst->classptr;
1293   cls_stack_bi[cls_stack_top] = -1;
1294   while (1) {
1295     Tcl_HashEntry* hashentry;
1296     bi = cls_stack_bi[cls_stack_top];
1297     cls = cls_stack[cls_stack_top];
1298     if (bi != -1) {
1299       if (!cls->bases[bi] && cls->base_names[bi]) {
1300         /* lookup and cache the base class */
1301 	swig_type_info *info = SWIG_TypeQueryModule(cls->module, cls->module, cls->base_names[bi]);
1302 	if (info) cls->bases[bi] = (swig_class *) info->clientdata;
1303       }
1304       cls = cls->bases[bi];
1305       if (cls) {
1306         cls_stack_bi[cls_stack_top]++;
1307         cls_stack_top++;
1308         cls_stack[cls_stack_top] = cls;
1309         cls_stack_bi[cls_stack_top] = -1;
1310         continue;
1311       }
1312     }
1313     if (!cls) {
1314       cls_stack_top--;
1315       if (cls_stack_top < 0) break;
1316       else continue;
1317     }
1318     cls_stack_bi[cls_stack_top]++;
1319 
1320     hashentry = Tcl_FindHashEntry(&(cls->hashtable), method);
1321     if (hashentry) {
1322         ClientData cd = Tcl_GetHashValue(hashentry);
1323         swig_wrapper method_wrapper = (swig_wrapper)cd;
1324         oldarg = objv[1];
1325         objv[1] = inst->thisptr;
1326         Tcl_IncrRefCount(inst->thisptr);
1327         rcode = (method_wrapper)(clientData,interp,objc,objv);
1328         objv[1] = oldarg;
1329         Tcl_DecrRefCount(inst->thisptr);
1330         return rcode;
1331     }
1332     /* Check class methods for a match */
1333     if (strcmp(method,"cget") == 0) {
1334       if (objc < 3) {
1335         Tcl_SetResult(interp, (char *) "wrong # args.", TCL_STATIC);
1336         return TCL_ERROR;
1337       }
1338       attrname = Tcl_GetStringFromObj(objv[2],NULL);
1339       attr = cls->attributes;
1340       while (attr && attr->name) {
1341         if ((strcmp(attr->name, attrname) == 0) && (attr->getmethod)) {
1342           oldarg = objv[1];
1343           objv[1] = inst->thisptr;
1344           Tcl_IncrRefCount(inst->thisptr);
1345           rcode = (*attr->getmethod)(clientData,interp,2, objv);
1346           objv[1] = oldarg;
1347           Tcl_DecrRefCount(inst->thisptr);
1348           return rcode;
1349         }
1350         attr++;
1351       }
1352       if (strcmp(attrname, "-this") == 0) {
1353         Tcl_SetObjResult(interp, Tcl_DuplicateObj(inst->thisptr));
1354         return TCL_OK;
1355       }
1356       if (strcmp(attrname, "-thisown") == 0) {
1357         if (SWIG_Thisown(inst->thisvalue)) {
1358           Tcl_SetResult(interp,(char*)"1",TCL_STATIC);
1359         } else {
1360           Tcl_SetResult(interp,(char*)"0",TCL_STATIC);
1361         }
1362         return TCL_OK;
1363       }
1364     } else if (strcmp(method, "configure") == 0) {
1365       int i;
1366       if (objc < 4) {
1367         Tcl_SetResult(interp, (char *) "wrong # args.", TCL_STATIC);
1368         return TCL_ERROR;
1369       }
1370       i = 2;
1371       while (i < objc) {
1372         attrname = Tcl_GetStringFromObj(objv[i],NULL);
1373         attr = cls->attributes;
1374         while (attr && attr->name) {
1375           if ((strcmp(attr->name, attrname) == 0) && (attr->setmethod)) {
1376             oldarg = objv[i];
1377             objv[i] = inst->thisptr;
1378             Tcl_IncrRefCount(inst->thisptr);
1379             rcode = (*attr->setmethod)(clientData,interp,3, &objv[i-1]);
1380             objv[i] = oldarg;
1381             Tcl_DecrRefCount(inst->thisptr);
1382             if (rcode != TCL_OK) return rcode;
1383             numconf += 2;
1384           }
1385           attr++;
1386         }
1387         i+=2;
1388       }
1389     }
1390   }
1391   if (strcmp(method,"configure") == 0) {
1392     if (numconf >= objc) {
1393       return TCL_OK;
1394     } else {
1395       Tcl_SetResult(interp,(char *) "Invalid attribute name.", TCL_STATIC);
1396       return TCL_ERROR;
1397     }
1398   }
1399   if (strcmp(method,"cget") == 0) {
1400     Tcl_SetResult(interp,(char *) "Invalid attribute name.", TCL_STATIC);
1401     return TCL_ERROR;
1402   }
1403   Tcl_SetResult(interp, (char *) "Invalid method. Must be one of: configure cget -acquire -disown -delete", TCL_STATIC);
1404   cls = inst->classptr;
1405   bi = 0;
1406   while (cls) {
1407     meth = cls->methods;
1408     while (meth && meth->name) {
1409       char *cr = (char *) Tcl_GetStringResult(interp);
1410       size_t meth_len = strlen(meth->name);
1411       char* where = strchr(cr,':');
1412       while(where) {
1413         where = strstr(where, meth->name);
1414         if(where) {
1415           if(where[-1] == ' ' && (where[meth_len] == ' ' || where[meth_len]==0)) {
1416             break;
1417           } else {
1418             where++;
1419           }
1420         }
1421       }
1422 
1423       if (!where)
1424         Tcl_AppendElement(interp, (char *) meth->name);
1425       meth++;
1426     }
1427     cls = inst->classptr->bases[bi++];
1428   }
1429   return TCL_ERROR;
1430 }
1431 
1432 /* This function takes the current result and turns it into an object command */
1433 SWIGRUNTIME Tcl_Obj *
SWIG_Tcl_NewInstanceObj(Tcl_Interp * interp,void * thisvalue,swig_type_info * type,int flags)1434 SWIG_Tcl_NewInstanceObj(Tcl_Interp *interp, void *thisvalue, swig_type_info *type, int flags) {
1435   Tcl_Obj *robj = SWIG_NewPointerObj(thisvalue, type,0);
1436   /* Check to see if this pointer belongs to a class or not */
1437   if (thisvalue && (type->clientdata) && (interp)) {
1438     Tcl_CmdInfo    ci;
1439     char          *name;
1440     name = Tcl_GetStringFromObj(robj,NULL);
1441     if (!Tcl_GetCommandInfo(interp,name, &ci) || (flags)) {
1442       swig_instance *newinst = (swig_instance *) malloc(sizeof(swig_instance));
1443       newinst->thisptr = Tcl_DuplicateObj(robj);
1444       Tcl_IncrRefCount(newinst->thisptr);
1445       newinst->thisvalue = thisvalue;
1446       newinst->classptr = (swig_class *) type->clientdata;
1447       newinst->destroy = flags;
1448       newinst->cmdtok = Tcl_CreateObjCommand(interp, Tcl_GetStringFromObj(robj,NULL), (swig_wrapper_func) SWIG_MethodCommand, (ClientData) newinst, (swig_delete_func) SWIG_ObjectDelete);
1449       if (flags) {
1450         SWIG_Acquire(thisvalue);
1451       }
1452     }
1453   }
1454   return robj;
1455 }
1456 
1457 /* Function to create objects */
1458 SWIGRUNTIME int
SWIG_Tcl_ObjectConstructor(ClientData clientData,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])1459 SWIG_Tcl_ObjectConstructor(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
1460   Tcl_Obj          *newObj = 0;
1461   void             *thisvalue = 0;
1462   swig_instance   *newinst = 0;
1463   swig_class      *classptr = (swig_class *) clientData;
1464   swig_wrapper     cons = 0;
1465   char             *name = 0;
1466   int               firstarg = 0;
1467   int               thisarg = 0;
1468   int               destroy = 1;
1469 
1470   if (!classptr) {
1471     Tcl_SetResult(interp, (char *) "swig: internal runtime error. No class object defined.", TCL_STATIC);
1472     return TCL_ERROR;
1473   }
1474   cons = classptr->constructor;
1475   if (objc > 1) {
1476     char *s = Tcl_GetStringFromObj(objv[1],NULL);
1477     if (strcmp(s,"-this") == 0) {
1478       thisarg = 2;
1479       cons = 0;
1480     } else if (strcmp(s,"-args") == 0) {
1481       firstarg = 1;
1482     } else if (objc == 2) {
1483       firstarg = 1;
1484       name = s;
1485     } else if (objc >= 3) {
1486       char *s1;
1487       name = s;
1488       s1 = Tcl_GetStringFromObj(objv[2],NULL);
1489       if (strcmp(s1,"-this") == 0) {
1490 	thisarg = 3;
1491 	cons = 0;
1492       } else {
1493 	firstarg = 1;
1494       }
1495     }
1496   }
1497   if (cons) {
1498     int result;
1499     result = (*cons)(0, interp, objc-firstarg, &objv[firstarg]);
1500     if (result != TCL_OK) {
1501       return result;
1502     }
1503     newObj = Tcl_DuplicateObj(Tcl_GetObjResult(interp));
1504     if (!name) name = Tcl_GetStringFromObj(newObj,NULL);
1505   } else if (thisarg > 0) {
1506     if (thisarg < objc) {
1507       destroy = 0;
1508       newObj = Tcl_DuplicateObj(objv[thisarg]);
1509       if (!name) name = Tcl_GetStringFromObj(newObj,NULL);
1510     } else {
1511       Tcl_SetResult(interp, (char *) "wrong # args.", TCL_STATIC);
1512       return TCL_ERROR;
1513     }
1514   } else {
1515     Tcl_SetResult(interp, (char *) "No constructor available.", TCL_STATIC);
1516     return TCL_ERROR;
1517   }
1518   if (SWIG_Tcl_ConvertPtr(interp,newObj, (void **) &thisvalue, *(classptr->type), 0) != SWIG_OK) {
1519     Tcl_DecrRefCount(newObj);
1520     return TCL_ERROR;
1521   }
1522   newinst = (swig_instance *) malloc(sizeof(swig_instance));
1523   newinst->thisptr = newObj;
1524   Tcl_IncrRefCount(newObj);
1525   newinst->thisvalue = thisvalue;
1526   newinst->classptr = classptr;
1527   newinst->destroy = destroy;
1528   if (destroy) {
1529     SWIG_Acquire(thisvalue);
1530   }
1531   newinst->cmdtok = Tcl_CreateObjCommand(interp,name, (swig_wrapper) SWIG_MethodCommand, (ClientData) newinst, (swig_delete_func) SWIG_ObjectDelete);
1532   return TCL_OK;
1533 }
1534 
1535 /* -----------------------------------------------------------------------------*
1536  *   Get arguments
1537  * -----------------------------------------------------------------------------*/
1538 SWIGRUNTIME int
SWIG_Tcl_GetArgs(Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[],const char * fmt,...)1539 SWIG_Tcl_GetArgs(Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[], const char *fmt, ...) {
1540   int        argno = 0, opt = 0;
1541   long       tempi;
1542   double     tempd;
1543   const char *c;
1544   va_list    ap;
1545   void      *vptr;
1546   Tcl_Obj   *obj = 0;
1547   swig_type_info *ty;
1548 
1549   va_start(ap,fmt);
1550   for (c = fmt; (*c && (*c != ':') && (*c != ';')); c++,argno++) {
1551     if (*c == '|') {
1552       opt = 1;
1553       c++;
1554     }
1555     if (argno >= (objc-1)) {
1556       if (!opt) {
1557         Tcl_SetResult(interp, (char *) "Wrong number of arguments ", TCL_STATIC);
1558         goto argerror;
1559       } else {
1560         va_end(ap);
1561         return TCL_OK;
1562       }
1563     }
1564 
1565     vptr = va_arg(ap,void *);
1566     if (vptr) {
1567       if (isupper(*c)) {
1568         obj = SWIG_Tcl_GetConstantObj(Tcl_GetStringFromObj(objv[argno+1],0));
1569         if (!obj) obj = objv[argno+1];
1570       } else {
1571         obj = objv[argno+1];
1572       }
1573       switch(*c) {
1574       case 'i': case 'I':
1575       case 'l': case 'L':
1576       case 'h': case 'H':
1577       case 'b': case 'B':
1578         if (Tcl_GetLongFromObj(interp,obj,&tempi) != TCL_OK) goto argerror;
1579         if ((*c == 'i') || (*c == 'I')) *((int *)vptr) = (int)tempi;
1580         else if ((*c == 'l') || (*c == 'L')) *((long *)vptr) = (long)tempi;
1581         else if ((*c == 'h') || (*c == 'H')) *((short*)vptr) = (short)tempi;
1582         else if ((*c == 'b') || (*c == 'B')) *((unsigned char *)vptr) = (unsigned char)tempi;
1583         break;
1584       case 'f': case 'F':
1585       case 'd': case 'D':
1586         if (Tcl_GetDoubleFromObj(interp,obj,&tempd) != TCL_OK) goto argerror;
1587         if ((*c == 'f') || (*c == 'F')) *((float *) vptr) = (float)tempd;
1588         else if ((*c == 'd') || (*c == 'D')) *((double*) vptr) = tempd;
1589         break;
1590       case 's': case 'S':
1591         if (*(c+1) == '#') {
1592           int *vlptr = (int *) va_arg(ap, void *);
1593           *((char **) vptr) = Tcl_GetStringFromObj(obj, vlptr);
1594           c++;
1595         } else {
1596           *((char **)vptr) = Tcl_GetStringFromObj(obj,NULL);
1597         }
1598         break;
1599       case 'c': case 'C':
1600         *((char *)vptr) = *(Tcl_GetStringFromObj(obj,NULL));
1601         break;
1602       case 'p': case 'P':
1603         ty = (swig_type_info *) va_arg(ap, void *);
1604         if (SWIG_Tcl_ConvertPtr(interp, obj, (void **) vptr, ty, 0) != SWIG_OK) goto argerror;
1605         break;
1606       case 'o': case 'O':
1607         *((Tcl_Obj **)vptr) = objv[argno+1];
1608         break;
1609       default:
1610         break;
1611       }
1612     }
1613   }
1614 
1615   if ((*c != ';') && ((objc-1) > argno)) {
1616     Tcl_SetResult(interp, (char *) "Wrong # args.", TCL_STATIC);
1617     goto argerror;
1618   }
1619   va_end(ap);
1620   return TCL_OK;
1621 
1622  argerror:
1623   {
1624     char temp[32];
1625     sprintf(temp,"%d", argno+1);
1626     c = strchr(fmt,':');
1627     if (!c) c = strchr(fmt,';');
1628     if (!c) c = (char *)"";
1629     Tcl_AppendResult(interp,c," argument ", temp, NULL);
1630     va_end(ap);
1631     return TCL_ERROR;
1632   }
1633 }
1634 
1635 #ifdef __cplusplus
1636 }
1637 #endif
1638 
1639 
1640 
1641 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
1642 
1643 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
1644 
1645 
1646 
1647   #define SWIG_exception(code, msg) do { SWIG_Error(code, msg); return TCL_ERROR;; } while(0)
1648 
1649 
1650 /* -------- TYPES TABLE (BEGIN) -------- */
1651 
1652 #define SWIGTYPE_p_Xapian__BB2Weight swig_types[0]
1653 #define SWIGTYPE_p_Xapian__BM25PlusWeight swig_types[1]
1654 #define SWIGTYPE_p_Xapian__BM25Weight swig_types[2]
1655 #define SWIGTYPE_p_Xapian__BoolWeight swig_types[3]
1656 #define SWIGTYPE_p_Xapian__Compactor swig_types[4]
1657 #define SWIGTYPE_p_Xapian__CoordWeight swig_types[5]
1658 #define SWIGTYPE_p_Xapian__DLHWeight swig_types[6]
1659 #define SWIGTYPE_p_Xapian__DPHWeight swig_types[7]
1660 #define SWIGTYPE_p_Xapian__Database swig_types[8]
1661 #define SWIGTYPE_p_Xapian__DateRangeProcessor swig_types[9]
1662 #define SWIGTYPE_p_Xapian__DateValueRangeProcessor swig_types[10]
1663 #define SWIGTYPE_p_Xapian__DecreasingValueWeightPostingSource swig_types[11]
1664 #define SWIGTYPE_p_Xapian__Document swig_types[12]
1665 #define SWIGTYPE_p_Xapian__ESet swig_types[13]
1666 #define SWIGTYPE_p_Xapian__ESetIterator swig_types[14]
1667 #define SWIGTYPE_p_Xapian__Enquire swig_types[15]
1668 #define SWIGTYPE_p_Xapian__ExpandDecider swig_types[16]
1669 #define SWIGTYPE_p_Xapian__ExpandDeciderAnd swig_types[17]
1670 #define SWIGTYPE_p_Xapian__ExpandDeciderFilterPrefix swig_types[18]
1671 #define SWIGTYPE_p_Xapian__ExpandDeciderFilterTerms swig_types[19]
1672 #define SWIGTYPE_p_Xapian__FieldProcessor swig_types[20]
1673 #define SWIGTYPE_p_Xapian__FixedWeightPostingSource swig_types[21]
1674 #define SWIGTYPE_p_Xapian__GreatCircleMetric swig_types[22]
1675 #define SWIGTYPE_p_Xapian__IfB2Weight swig_types[23]
1676 #define SWIGTYPE_p_Xapian__InL2Weight swig_types[24]
1677 #define SWIGTYPE_p_Xapian__IneB2Weight swig_types[25]
1678 #define SWIGTYPE_p_Xapian__KeyMaker swig_types[26]
1679 #define SWIGTYPE_p_Xapian__LMWeight swig_types[27]
1680 #define SWIGTYPE_p_Xapian__LatLongCoord swig_types[28]
1681 #define SWIGTYPE_p_Xapian__LatLongCoords swig_types[29]
1682 #define SWIGTYPE_p_Xapian__LatLongCoordsIterator swig_types[30]
1683 #define SWIGTYPE_p_Xapian__LatLongDistanceKeyMaker swig_types[31]
1684 #define SWIGTYPE_p_Xapian__LatLongDistancePostingSource swig_types[32]
1685 #define SWIGTYPE_p_Xapian__LatLongMetric swig_types[33]
1686 #define SWIGTYPE_p_Xapian__MSet swig_types[34]
1687 #define SWIGTYPE_p_Xapian__MSetIterator swig_types[35]
1688 #define SWIGTYPE_p_Xapian__MatchDecider swig_types[36]
1689 #define SWIGTYPE_p_Xapian__MatchSpy swig_types[37]
1690 #define SWIGTYPE_p_Xapian__MultiValueKeyMaker swig_types[38]
1691 #define SWIGTYPE_p_Xapian__NumberRangeProcessor swig_types[39]
1692 #define SWIGTYPE_p_Xapian__NumberValueRangeProcessor swig_types[40]
1693 #define SWIGTYPE_p_Xapian__PL2PlusWeight swig_types[41]
1694 #define SWIGTYPE_p_Xapian__PL2Weight swig_types[42]
1695 #define SWIGTYPE_p_Xapian__PositionIterator swig_types[43]
1696 #define SWIGTYPE_p_Xapian__PostingIterator swig_types[44]
1697 #define SWIGTYPE_p_Xapian__PostingSource swig_types[45]
1698 #define SWIGTYPE_p_Xapian__Query swig_types[46]
1699 #define SWIGTYPE_p_Xapian__QueryParser swig_types[47]
1700 #define SWIGTYPE_p_Xapian__RSet swig_types[48]
1701 #define SWIGTYPE_p_Xapian__RangeProcessor swig_types[49]
1702 #define SWIGTYPE_p_Xapian__Registry swig_types[50]
1703 #define SWIGTYPE_p_Xapian__SimpleStopper swig_types[51]
1704 #define SWIGTYPE_p_Xapian__Stem swig_types[52]
1705 #define SWIGTYPE_p_Xapian__StemImplementation swig_types[53]
1706 #define SWIGTYPE_p_Xapian__Stopper swig_types[54]
1707 #define SWIGTYPE_p_Xapian__StringValueRangeProcessor swig_types[55]
1708 #define SWIGTYPE_p_Xapian__TermGenerator swig_types[56]
1709 #define SWIGTYPE_p_Xapian__TermIterator swig_types[57]
1710 #define SWIGTYPE_p_Xapian__TfIdfWeight swig_types[58]
1711 #define SWIGTYPE_p_Xapian__TradWeight swig_types[59]
1712 #define SWIGTYPE_p_Xapian__ValueCountMatchSpy swig_types[60]
1713 #define SWIGTYPE_p_Xapian__ValueIterator swig_types[61]
1714 #define SWIGTYPE_p_Xapian__ValueMapPostingSource swig_types[62]
1715 #define SWIGTYPE_p_Xapian__ValuePostingSource swig_types[63]
1716 #define SWIGTYPE_p_Xapian__ValueRangeProcessor swig_types[64]
1717 #define SWIGTYPE_p_Xapian__ValueSetMatchDecider swig_types[65]
1718 #define SWIGTYPE_p_Xapian__ValueWeightPostingSource swig_types[66]
1719 #define SWIGTYPE_p_Xapian__Weight swig_types[67]
1720 #define SWIGTYPE_p_Xapian__WritableDatabase swig_types[68]
1721 #define SWIGTYPE_p_char swig_types[69]
1722 #define SWIGTYPE_p_compaction_level swig_types[70]
1723 #define SWIGTYPE_p_docid_order swig_types[71]
1724 #define SWIGTYPE_p_double swig_types[72]
1725 #define SWIGTYPE_p_feature_flag swig_types[73]
1726 #define SWIGTYPE_p_flags swig_types[74]
1727 #define SWIGTYPE_p_int swig_types[75]
1728 #define SWIGTYPE_p_std__string swig_types[76]
1729 #define SWIGTYPE_p_stem_strategy swig_types[77]
1730 #define SWIGTYPE_p_stop_strategy swig_types[78]
1731 #define SWIGTYPE_p_type_smoothing swig_types[79]
1732 #define SWIGTYPE_p_unsigned_int swig_types[80]
1733 #define SWIGTYPE_p_unsigned_long swig_types[81]
1734 #define SWIGTYPE_std__ptrdiff_t swig_types[82]
1735 #define SWIGTYPE_std__size_t swig_types[83]
1736 static swig_type_info *swig_types[85];
1737 static swig_module_info swig_module = {swig_types, 84, 0, 0, 0, 0};
1738 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1739 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1740 
1741 /* -------- TYPES TABLE (END) -------- */
1742 
1743 #define SWIG_init    Xapian_Init
1744 #define SWIG_name    "xapian"
1745 #define SWIG_prefix  "xapian::"
1746 #define SWIG_namespace "xapian"
1747 
1748 #define SWIG_version "1.4.18"
1749 
1750 #define SWIGVERSION 0x030013
1751 #define SWIG_VERSION SWIGVERSION
1752 
1753 
1754 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
1755 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
1756 
1757 
1758 #include <stdexcept>
1759 
1760 
1761 
1762 #ifdef __cplusplus
1763 extern "C" {
1764 #endif
1765 #ifdef MAC_TCL
1766 #pragma export on
1767 #endif
1768 SWIGEXPORT int SWIG_init(Tcl_Interp *);
1769 #ifdef MAC_TCL
1770 #pragma export off
1771 #endif
1772 #ifdef __cplusplus
1773 }
1774 #endif
1775 
1776 /* Compatibility version for TCL stubs */
1777 #ifndef SWIG_TCL_STUBS_VERSION
1778 #define SWIG_TCL_STUBS_VERSION "8.1"
1779 #endif
1780 
1781 
1782 
1783 /* tcl.i: SWIG interface file for the Tcl bindings
1784  *
1785  * Copyright (c) 2006,2007,2011,2012,2015,2019 Olly Betts
1786  *
1787  * This program is free software; you can redistribute it and/or
1788  * modify it under the terms of the GNU General Public License as
1789  * published by the Free Software Foundation; either version 2 of the
1790  * License, or (at your option) any later version.
1791  *
1792  * This program is distributed in the hope that it will be useful,
1793  * but WITHOUT ANY WARRANTY; without even the implied warranty of
1794  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1795  * GNU General Public License for more details.
1796  *
1797  * You should have received a copy of the GNU General Public License
1798  * along with this program; if not, write to the Free Software
1799  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
1800  * USA
1801  */
1802 
1803 
1804 /** @file
1805  * @brief Header for SWIG interface file for Xapian.
1806  */
1807 /* Copyright (C) 2005,2006,2007,2008,2009,2011,2012,2013,2014,2015,2016 Olly Betts
1808  *
1809  * This program is free software; you can redistribute it and/or
1810  * modify it under the terms of the GNU General Public License as
1811  * published by the Free Software Foundation; either version 2 of the
1812  * License, or (at your option) any later version.
1813  *
1814  * This program is distributed in the hope that it will be useful,
1815  * but WITHOUT ANY WARRANTY; without even the implied warranty of
1816  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1817  * GNU General Public License for more details.
1818  *
1819  * You should have received a copy of the GNU General Public License
1820  * along with this program; if not, write to the Free Software
1821  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
1822  * USA
1823  */
1824 
1825 // Disable any deprecation warnings for Xapian methods/functions/classes.
1826 #define XAPIAN_DEPRECATED(D) D
1827 
1828 #include <xapian.h>
1829 
1830 #include <fstream>
1831 #include <iostream>
1832 #include <string>
1833 #include <vector>
1834 
1835 using namespace std;
1836 
1837 // If a backend has been disabled in xapian-core (manually or automatically) we
1838 // include a stub definition here so the bindings can still be built.
1839 namespace Xapian {
1840 
1841 
1842 
1843 #ifndef XAPIAN_HAS_CHERT_BACKEND
1844     namespace Chert {
open(const string &)1845 	static Database open(const string &) {
1846 	    throw FeatureUnavailableError("Chert backend not supported");
1847 	}
open(const string &,int,int=0)1848 	static WritableDatabase open(const string &, int, int = 0) {
1849 	    throw FeatureUnavailableError("Chert backend not supported");
1850 	}
1851     }
1852 #endif
1853 
1854 #ifndef XAPIAN_HAS_INMEMORY_BACKEND
1855     namespace InMemory {
open()1856 	static WritableDatabase open() {
1857 	    throw FeatureUnavailableError("InMemory backend not supported");
1858 	}
1859     }
1860 #endif
1861 
1862 
1863 
1864 
1865 #ifndef XAPIAN_HAS_REMOTE_BACKEND
1866     namespace Remote {
open(const string &,unsigned int,useconds_t=0,useconds_t=0)1867 	static Database open(const string &, unsigned int, useconds_t = 0, useconds_t = 0) {
1868 	    throw FeatureUnavailableError("Remote backend not supported");
1869 	}
1870 
open_writable(const string &,unsigned int,useconds_t=0,useconds_t=0,int=0)1871 	static WritableDatabase open_writable(const string &, unsigned int, useconds_t = 0, useconds_t = 0, int = 0) {
1872 	    throw FeatureUnavailableError("Remote backend not supported");
1873 	}
1874 
open(const string &,const string &,useconds_t=0)1875 	static Database open(const string &, const string &, useconds_t = 0) {
1876 	    throw FeatureUnavailableError("Remote backend not supported");
1877 	}
1878 
open_writable(const string &,const string &,useconds_t=0,int=0)1879 	static WritableDatabase open_writable(const string &, const string &, useconds_t = 0, int = 0) {
1880 	    throw FeatureUnavailableError("Remote backend not supported");
1881 	}
1882     }
1883 #endif
1884 
1885 }
1886 
1887 
1888 #include <typeinfo>
1889 #include <stdexcept>
1890 
1891 
1892 #include <string>
1893 
1894 
1895 #include <algorithm>
1896 
1897 
1898 #include <vector>
1899 
SwigString_FromString(const std::string & s)1900 Tcl_Obj* SwigString_FromString(const std::string &s) {
1901     return Tcl_NewStringObj(s.data(), (int)s.length());
1902 }
1903 
Tcl_GetBoolFromObj(Tcl_Interp * interp,Tcl_Obj * o,bool * val)1904 int Tcl_GetBoolFromObj(Tcl_Interp *interp, Tcl_Obj *o, bool *val) {
1905   int v;
1906   int res = Tcl_GetBooleanFromObj(interp, o, &v);
1907   if (res == TCL_OK) {
1908     *val = v ? true : false;
1909   }
1910   return res;
1911 }
1912 
SwigString_AsString(Tcl_Interp * interp,Tcl_Obj * o,std::string * val)1913 int SwigString_AsString(Tcl_Interp *interp, Tcl_Obj *o, std::string *val) {
1914     int len;
1915     const char* temp = Tcl_GetStringFromObj(o, &len);
1916     if (temp == NULL)
1917         return TCL_ERROR;
1918     val->assign(temp, len);
1919     return TCL_OK;
1920 }
1921 
1922 // behaviour of this is such as the real Tcl_GetIntFromObj
1923 template <typename Type>
SwigInt_As(Tcl_Interp * interp,Tcl_Obj * o,Type * val)1924 int SwigInt_As(Tcl_Interp *interp, Tcl_Obj *o, Type *val) {
1925     int temp_val, return_val;
1926     return_val = Tcl_GetIntFromObj(interp, o, &temp_val);
1927     *val = (Type) temp_val;
1928     return return_val;
1929 }
1930 
1931 // behaviour of this is such as the real Tcl_GetDoubleFromObj
1932 template <typename Type>
SwigDouble_As(Tcl_Interp * interp,Tcl_Obj * o,Type * val)1933 int SwigDouble_As(Tcl_Interp *interp, Tcl_Obj *o, Type *val) {
1934     int return_val;
1935     double temp_val;
1936     return_val = Tcl_GetDoubleFromObj(interp, o, &temp_val);
1937     *val = (Type) temp_val;
1938     return return_val;
1939 }
1940 
1941 
1942 
1943 #include <map>
1944 
1945 
1946 #include <utility>
1947 
1948 
1949 class XapianSWIGQueryItor {
1950     Tcl_Interp *interp;
1951 
1952     Tcl_Obj ** items;
1953 
1954     int n;
1955 
1956   public:
1957     typedef std::random_access_iterator_tag iterator_category;
1958     typedef Xapian::Query value_type;
1959     typedef Xapian::termcount_diff difference_type;
1960     typedef Xapian::Query * pointer;
1961     typedef Xapian::Query & reference;
1962 
XapianSWIGQueryItor()1963     XapianSWIGQueryItor()
1964 	: n(0) { }
1965 
XapianSWIGQueryItor(Tcl_Interp * interp_,Tcl_Obj ** items_,int n_)1966     XapianSWIGQueryItor(Tcl_Interp * interp_, Tcl_Obj **items_, int n_)
1967 	: interp(interp_), items(items_), n(n_) { }
1968 
operator ++()1969     XapianSWIGQueryItor & operator++() {
1970 	++items;
1971 	--n;
1972 	return *this;
1973     }
1974 
operator *() const1975     Xapian::Query operator*() const {
1976 	Tcl_Obj* item = *items;
1977 	Xapian::Query* subq = 0;
1978 	if (SWIG_ConvertPtr(item, (void **)&subq,
1979 			    SWIGTYPE_p_Xapian__Query, 0) == TCL_OK) {
1980 	    return *subq;
1981 	}
1982 
1983 	int len;
1984 	const char *p = Tcl_GetStringFromObj(item, &len);
1985 	return Xapian::Query(string(p, len));
1986     }
1987 
operator ==(const XapianSWIGQueryItor & o)1988     bool operator==(const XapianSWIGQueryItor & o) {
1989 	return n == o.n;
1990     }
1991 
operator !=(const XapianSWIGQueryItor & o)1992     bool operator!=(const XapianSWIGQueryItor & o) {
1993 	return !(*this == o);
1994     }
1995 
operator -(const XapianSWIGQueryItor & o) const1996     difference_type operator-(const XapianSWIGQueryItor &o) const {
1997 	// Note: n counts *DOWN*, so reverse subtract.
1998 	return o.n - n;
1999     }
2000 };
2001 
2002 
2003 
XapianTclHandleError(Tcl_Interp * interp,const Xapian::Error & e)2004 static int XapianTclHandleError(Tcl_Interp * interp, const Xapian::Error &e) {
2005     Tcl_ResetResult(interp);
2006     Tcl_SetErrorCode(interp, "XAPIAN", e.get_type(), NULL);
2007     Tcl_AppendResult(interp, e.get_msg().c_str(), NULL);
2008     return TCL_ERROR;
2009 }
2010 
XapianTclHandleError(Tcl_Interp * interp)2011 static int XapianTclHandleError(Tcl_Interp * interp) {
2012     Tcl_ResetResult(interp);
2013     Tcl_SetErrorCode(interp, "XAPIAN ?", NULL);
2014     Tcl_AppendResult(interp, "Unknown Error", NULL);
2015     return TCL_ERROR;
2016 }
2017 
2018 
2019 /* xapian-headers.i: Getting SWIG to parse Xapian's C++ headers.
2020  *
2021  * Copyright 2004,2006,2011,2012,2013,2014,2015,2016,2019,2020 Olly Betts
2022  * Copyright 2014 Assem Chelli
2023  *
2024  * This program is free software; you can redistribute it and/or
2025  * modify it under the terms of the GNU General Public License as
2026  * published by the Free Software Foundation; either version 2 of the
2027  * License, or (at your option) any later version.
2028  *
2029  * This program is distributed in the hope that it will be useful,
2030  * but WITHOUT ANY WARRANTY; without even the implied warranty of
2031  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2032  * GNU General Public License for more details.
2033  *
2034  * You should have received a copy of the GNU General Public License
2035  * along with this program; if not, write to the Free Software
2036  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
2037  * USA
2038  */
2039 
2040 
2041 #include <limits.h>
2042 #if !defined(SWIG_NO_LLONG_MAX)
2043 # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
2044 #   define LLONG_MAX __LONG_LONG_MAX__
2045 #   define LLONG_MIN (-LLONG_MAX - 1LL)
2046 #   define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
2047 # endif
2048 #endif
2049 
2050 
2051 SWIGINTERNINLINE Tcl_Obj *
SWIG_FromCharPtrAndSize(const char * carray,size_t size)2052 SWIG_FromCharPtrAndSize(const char* carray, size_t size)
2053 {
2054   return (size < INT_MAX) ? Tcl_NewStringObj(carray, static_cast< int >(size)) : NULL;
2055 }
2056 
2057 
2058 SWIGINTERNINLINE Tcl_Obj *
SWIG_FromCharPtr(const char * cptr)2059 SWIG_FromCharPtr(const char *cptr)
2060 {
2061   return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
2062 }
2063 
2064 
2065 SWIGINTERNINLINE Tcl_Obj*
SWIG_From_long(long value)2066 SWIG_From_long  (long value)
2067 {
2068   if (((long) INT_MIN <= value) && (value <= (long) INT_MAX)) {
2069     return Tcl_NewIntObj(static_cast< int >(value));
2070   } else {
2071     return Tcl_NewLongObj(value);
2072   }
2073 }
2074 
2075 
2076 SWIGINTERNINLINE Tcl_Obj *
SWIG_From_int(int value)2077 SWIG_From_int  (int value)
2078 {
2079   return SWIG_From_long  (value);
2080 }
2081 
2082 
2083 #include <stdio.h>
2084 #if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
2085 # ifndef snprintf
2086 #  define snprintf _snprintf
2087 # endif
2088 #endif
2089 
2090 
2091 SWIGINTERNINLINE Tcl_Obj*
SWIG_From_unsigned_SS_long(unsigned long value)2092 SWIG_From_unsigned_SS_long  (unsigned long value)
2093 {
2094   if (value < (unsigned long) LONG_MAX) {
2095     return SWIG_From_long  (static_cast< long >(value));
2096   } else {
2097     char temp[256];
2098     sprintf(temp, "%lu", value);
2099     return Tcl_NewStringObj(temp,-1);
2100   }
2101 }
2102 
2103 
2104 SWIGINTERNINLINE Tcl_Obj *
SWIG_From_unsigned_SS_int(unsigned int value)2105 SWIG_From_unsigned_SS_int  (unsigned int value)
2106 {
2107   return SWIG_From_unsigned_SS_long  (value);
2108 }
2109 
2110 
2111 SWIGINTERN int
SWIG_TCL_DECL_ARGS_2(Tcl_Obj * obj,unsigned long * val)2112 SWIG_AsVal_unsigned_SS_long SWIG_TCL_DECL_ARGS_2(Tcl_Obj *obj, unsigned long *val) {
2113   long v;
2114   if (Tcl_GetLongFromObj(0,obj, &v) == TCL_OK) {
2115     if (v >= 0) {
2116       if (val) *val = (unsigned long) v;
2117       return SWIG_OK;
2118     }
2119     /* If v is negative, then this could be a negative number, or an
2120        unsigned value which doesn't fit in a signed long, so try to
2121        get it as a string so we can distinguish these cases. */
2122   }
2123   {
2124     int len = 0;
2125     const char *nptr = Tcl_GetStringFromObj(obj, &len);
2126     if (nptr && len > 0) {
2127       char *endptr;
2128       unsigned long v;
2129       if (*nptr == '-') return SWIG_OverflowError;
2130       errno = 0;
2131       v = strtoul(nptr, &endptr,0);
2132       if (nptr[0] == '\0' || *endptr != '\0')
2133 	return SWIG_TypeError;
2134       if (v == ULONG_MAX && errno == ERANGE) {
2135 	errno = 0;
2136 	return SWIG_OverflowError;
2137       } else {
2138 	if (*endptr == '\0') {
2139 	  if (val) *val = v;
2140 	  return SWIG_OK;
2141 	}
2142       }
2143     }
2144   }
2145 
2146   return SWIG_TypeError;
2147 }
2148 
2149 
2150 SWIGINTERN int
SWIG_TCL_DECL_ARGS_2(Tcl_Obj * obj,unsigned int * val)2151 SWIG_AsVal_unsigned_SS_int SWIG_TCL_DECL_ARGS_2(Tcl_Obj * obj, unsigned int *val)
2152 {
2153   unsigned long v;
2154   int res = SWIG_AsVal_unsigned_SS_long SWIG_TCL_CALL_ARGS_2(obj, &v);
2155   if (SWIG_IsOK(res)) {
2156     if ((v > UINT_MAX)) {
2157       return SWIG_OverflowError;
2158     } else {
2159       if (val) *val = static_cast< unsigned int >(v);
2160     }
2161   }
2162   return res;
2163 }
2164 
2165 
2166 SWIGINTERNINLINE Tcl_Obj *
SWIG_From_std_string(const std::string & s)2167 SWIG_From_std_string  (const std::string& s)
2168 {
2169   return SWIG_FromCharPtrAndSize(s.data(), s.size());
2170 }
2171 
Xapian_PositionIterator_equals(Xapian::PositionIterator const * self,Xapian::PositionIterator const & o)2172 SWIGINTERN bool Xapian_PositionIterator_equals(Xapian::PositionIterator const *self,Xapian::PositionIterator const &o){ return *self == o; }
2173 
2174   #define SWIG_From_bool   Tcl_NewBooleanObj
2175 
Xapian_PositionIterator_get_termpos(Xapian::PositionIterator const * self)2176 SWIGINTERN Xapian::termpos Xapian_PositionIterator_get_termpos(Xapian::PositionIterator const *self){ return **self; }
Xapian_PositionIterator_next(Xapian::PositionIterator * self)2177 SWIGINTERN void Xapian_PositionIterator_next(Xapian::PositionIterator *self){ ++(*self); }
Xapian_PostingIterator_equals(Xapian::PostingIterator const * self,Xapian::PostingIterator const & o)2178 SWIGINTERN bool Xapian_PostingIterator_equals(Xapian::PostingIterator const *self,Xapian::PostingIterator const &o){ return *self == o; }
Xapian_PostingIterator_get_docid(Xapian::PostingIterator const * self)2179 SWIGINTERN Xapian::docid Xapian_PostingIterator_get_docid(Xapian::PostingIterator const *self){ return **self; }
Xapian_PostingIterator_next(Xapian::PostingIterator * self)2180 SWIGINTERN void Xapian_PostingIterator_next(Xapian::PostingIterator *self){ ++(*self); }
2181 
2182 SWIGINTERN int
SWIG_AsCharPtrAndSize(Tcl_Obj * obj,char ** cptr,size_t * psize,int * alloc)2183 SWIG_AsCharPtrAndSize(Tcl_Obj *obj, char** cptr, size_t* psize, int *alloc)
2184 {
2185   int len = 0;
2186   char *cstr = Tcl_GetStringFromObj(obj, &len);
2187   if (cstr) {
2188     if (cptr)  *cptr = cstr;
2189     if (psize) *psize = len + 1;
2190     if (alloc) *alloc = SWIG_OLDOBJ;
2191     return SWIG_OK;
2192   }
2193   return SWIG_TypeError;
2194 }
2195 
2196 
2197 SWIGINTERN int
SWIG_TCL_DECL_ARGS_2(Tcl_Obj * obj,std::string ** val)2198 SWIG_AsPtr_std_string SWIG_TCL_DECL_ARGS_2(Tcl_Obj * obj, std::string **val)
2199 {
2200   char* buf = 0 ; size_t size = 0; int alloc = SWIG_OLDOBJ;
2201   if (SWIG_IsOK((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc)))) {
2202     if (buf) {
2203       if (val) *val = new std::string(buf, size - 1);
2204       if (alloc == SWIG_NEWOBJ) delete[] buf;
2205       return SWIG_NEWOBJ;
2206     } else {
2207       if (val) *val = 0;
2208       return SWIG_OLDOBJ;
2209     }
2210   } else {
2211     static int init = 0;
2212     static swig_type_info* descriptor = 0;
2213     if (!init) {
2214       descriptor = SWIG_TypeQuery("std::string" " *");
2215       init = 1;
2216     }
2217     if (descriptor) {
2218       std::string *vptr;
2219       int res = SWIG_ConvertPtr(obj, (void**)&vptr, descriptor, 0);
2220       if (SWIG_IsOK(res) && val) *val = vptr;
2221       return res;
2222     }
2223   }
2224   return SWIG_ERROR;
2225 }
2226 
Xapian_TermIterator_equals(Xapian::TermIterator const * self,Xapian::TermIterator const & o)2227 SWIGINTERN bool Xapian_TermIterator_equals(Xapian::TermIterator const *self,Xapian::TermIterator const &o){ return *self == o; }
Xapian_TermIterator_get_term(Xapian::TermIterator const * self)2228 SWIGINTERN std::string Xapian_TermIterator_get_term(Xapian::TermIterator const *self){ return **self; }
Xapian_TermIterator_next(Xapian::TermIterator * self)2229 SWIGINTERN void Xapian_TermIterator_next(Xapian::TermIterator *self){ ++(*self); }
Xapian_ValueIterator_equals(Xapian::ValueIterator const * self,Xapian::ValueIterator const & o)2230 SWIGINTERN bool Xapian_ValueIterator_equals(Xapian::ValueIterator const *self,Xapian::ValueIterator const &o){ return *self == o; }
Xapian_ValueIterator_get_value(Xapian::ValueIterator const * self)2231 SWIGINTERN std::string Xapian_ValueIterator_get_value(Xapian::ValueIterator const *self){ return **self; }
Xapian_ValueIterator_next(Xapian::ValueIterator * self)2232 SWIGINTERN void Xapian_ValueIterator_next(Xapian::ValueIterator *self){ ++(*self); }
2233 
2234 SWIGINTERN int
SWIG_TCL_DECL_ARGS_2(Tcl_Obj * obj,double * val)2235 SWIG_AsVal_double SWIG_TCL_DECL_ARGS_2(Tcl_Obj *obj, double *val)
2236 {
2237   double v;
2238   if (Tcl_GetDoubleFromObj(0, obj, &v) == TCL_OK) {
2239     if (val) *val = v;
2240     return SWIG_OK;
2241   }
2242   return SWIG_TypeError;
2243 }
2244 
2245 
2246 SWIGINTERN int
SWIG_TCL_DECL_ARGS_2(Tcl_Obj * obj,long * val)2247 SWIG_AsVal_long SWIG_TCL_DECL_ARGS_2(Tcl_Obj *obj, long* val)
2248 {
2249   long v;
2250   if (Tcl_GetLongFromObj(0,obj, &v) == TCL_OK) {
2251     if (val) *val = (long) v;
2252     return SWIG_OK;
2253   }
2254   return SWIG_TypeError;
2255 }
2256 
2257 
2258 SWIGINTERN int
SWIG_TCL_DECL_ARGS_2(Tcl_Obj * obj,int * val)2259 SWIG_AsVal_int SWIG_TCL_DECL_ARGS_2(Tcl_Obj * obj, int *val)
2260 {
2261   long v;
2262   int res = SWIG_AsVal_long SWIG_TCL_CALL_ARGS_2(obj, &v);
2263   if (SWIG_IsOK(res)) {
2264     if ((v < INT_MIN || v > INT_MAX)) {
2265       return SWIG_OverflowError;
2266     } else {
2267       if (val) *val = static_cast< int >(v);
2268     }
2269   }
2270   return res;
2271 }
2272 
2273 
2274 #if defined(LLONG_MAX) && !defined(SWIG_LONG_LONG_AVAILABLE)
2275 #  define SWIG_LONG_LONG_AVAILABLE
2276 #endif
2277 
2278 
2279 #ifdef SWIG_LONG_LONG_AVAILABLE
2280 SWIGINTERNINLINE Tcl_Obj*
SWIG_From_long_SS_long(long long value)2281 SWIG_From_long_SS_long  (long long value)
2282 {
2283   if (((long long) LONG_MIN <= value) && (value <= (long long) LONG_MAX)) {
2284     return SWIG_From_long  (static_cast< long >(value));
2285   } else {
2286     char temp[256];
2287     sprintf(temp, "%lld", value);
2288     return Tcl_NewStringObj(temp,-1);
2289   }
2290 }
2291 #endif
2292 
2293 
2294 #ifdef SWIG_LONG_LONG_AVAILABLE
2295 SWIGINTERNINLINE Tcl_Obj*
SWIG_From_unsigned_SS_long_SS_long(unsigned long long value)2296 SWIG_From_unsigned_SS_long_SS_long  (unsigned long long value)
2297 {
2298   if (value < (unsigned long long) LONG_MAX) {
2299     return SWIG_From_long_SS_long  (static_cast< long long >(value));
2300   } else {
2301     char temp[256];
2302     sprintf(temp, "%llu", value);
2303     return Tcl_NewStringObj(temp,-1);
2304   }
2305 }
2306 #endif
2307 
2308 
2309 SWIGINTERNINLINE Tcl_Obj *
SWIG_From_size_t(size_t value)2310 SWIG_From_size_t  (size_t value)
2311 {
2312 #ifdef SWIG_LONG_LONG_AVAILABLE
2313   if (sizeof(size_t) <= sizeof(unsigned long)) {
2314 #endif
2315     return SWIG_From_unsigned_SS_long  (static_cast< unsigned long >(value));
2316 #ifdef SWIG_LONG_LONG_AVAILABLE
2317   } else {
2318     /* assume sizeof(size_t) <= sizeof(unsigned long long) */
2319     return SWIG_From_unsigned_SS_long_SS_long  (static_cast< unsigned long long >(value));
2320   }
2321 #endif
2322 }
2323 
2324 
2325 #include <stdlib.h>
2326 #ifdef _MSC_VER
2327 # ifndef strtoull
2328 #  define strtoull _strtoui64
2329 # endif
2330 # ifndef strtoll
2331 #  define strtoll _strtoi64
2332 # endif
2333 #endif
2334 
2335 
2336 #ifdef SWIG_LONG_LONG_AVAILABLE
2337 SWIGINTERN int
SWIG_TCL_DECL_ARGS_2(Tcl_Obj * obj,unsigned long long * val)2338 SWIG_AsVal_unsigned_SS_long_SS_long SWIG_TCL_DECL_ARGS_2(Tcl_Obj *obj, unsigned long long *val)
2339 {
2340   long v;
2341   if (Tcl_GetLongFromObj(0,obj, &v) == TCL_OK) {
2342     if (val) *val = (unsigned long) v;
2343     return SWIG_OK;
2344   } else {
2345     int len = 0;
2346     const char *nptr = Tcl_GetStringFromObj(obj, &len);
2347     if (nptr && len > 0) {
2348       char *endptr;
2349       unsigned long long v;
2350       if (*nptr == '-') return SWIG_OverflowError;
2351       errno = 0;
2352       v = strtoull(nptr, &endptr,0);
2353       if (nptr[0] == '\0' || *endptr != '\0')
2354 	return SWIG_TypeError;
2355       if (v == ULLONG_MAX && errno == ERANGE) {
2356 	errno = 0;
2357 	return SWIG_OverflowError;
2358       } else {
2359 	if (*endptr == '\0') {
2360 	  if (val) *val = v;
2361 	  return SWIG_OK;
2362 	}
2363       }
2364     }
2365   }
2366   return SWIG_TypeError;
2367 }
2368 #endif
2369 
2370 
2371 SWIGINTERNINLINE int
SWIG_TCL_DECL_ARGS_2(Tcl_Obj * obj,size_t * val)2372 SWIG_AsVal_size_t SWIG_TCL_DECL_ARGS_2(Tcl_Obj * obj, size_t *val)
2373 {
2374   int res = SWIG_TypeError;
2375 #ifdef SWIG_LONG_LONG_AVAILABLE
2376   if (sizeof(size_t) <= sizeof(unsigned long)) {
2377 #endif
2378     unsigned long v;
2379     res = SWIG_AsVal_unsigned_SS_long SWIG_TCL_CALL_ARGS_2(obj, val ? &v : 0);
2380     if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2381 #ifdef SWIG_LONG_LONG_AVAILABLE
2382   } else if (sizeof(size_t) <= sizeof(unsigned long long)) {
2383     unsigned long long v;
2384     res = SWIG_AsVal_unsigned_SS_long_SS_long SWIG_TCL_CALL_ARGS_2(obj, val ? &v : 0);
2385     if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2386   }
2387 #endif
2388   return res;
2389 }
2390 
2391 
2392 SWIGINTERN int
SWIG_TCL_DECL_ARGS_2(Tcl_Obj * obj,bool * val)2393 SWIG_AsVal_bool SWIG_TCL_DECL_ARGS_2(Tcl_Obj *obj, bool *val)
2394 {
2395   int v;
2396   if (Tcl_GetBooleanFromObj(0, obj, &v) == TCL_OK) {
2397     if (val) *val = v ? true : false;
2398     return SWIG_OK;
2399   }
2400   return SWIG_TypeError;
2401 }
2402 
2403 
2404   #define SWIG_From_double   Tcl_NewDoubleObj
2405 
Xapian_MSet_get_docid(Xapian::MSet const * self,Xapian::doccount i)2406 SWIGINTERN Xapian::docid Xapian_MSet_get_docid(Xapian::MSet const *self,Xapian::doccount i){
2407 	return *(*self)[i];
2408     }
Xapian_MSet_get_document(Xapian::MSet const * self,Xapian::doccount i)2409 SWIGINTERN Xapian::Document Xapian_MSet_get_document(Xapian::MSet const *self,Xapian::doccount i){
2410 	return (*self)[i].get_document();
2411     }
Xapian_MSet_get_hit(Xapian::MSet const * self,Xapian::doccount i)2412 SWIGINTERN Xapian::MSetIterator Xapian_MSet_get_hit(Xapian::MSet const *self,Xapian::doccount i){
2413 	return (*self)[i];
2414     }
Xapian_MSet_get_document_percentage(Xapian::MSet const * self,Xapian::doccount i)2415 SWIGINTERN int Xapian_MSet_get_document_percentage(Xapian::MSet const *self,Xapian::doccount i){
2416 	return self->convert_to_percent((*self)[i]);
2417     }
Xapian_MSetIterator_equals(Xapian::MSetIterator const * self,Xapian::MSetIterator const & o)2418 SWIGINTERN bool Xapian_MSetIterator_equals(Xapian::MSetIterator const *self,Xapian::MSetIterator const &o){ return *self == o; }
Xapian_MSetIterator_get_docid(Xapian::MSetIterator const * self)2419 SWIGINTERN Xapian::docid Xapian_MSetIterator_get_docid(Xapian::MSetIterator const *self){ return **self; }
Xapian_MSetIterator_next(Xapian::MSetIterator * self)2420 SWIGINTERN void Xapian_MSetIterator_next(Xapian::MSetIterator *self){ ++(*self); }
Xapian_MSetIterator_prev(Xapian::MSetIterator * self)2421 SWIGINTERN void Xapian_MSetIterator_prev(Xapian::MSetIterator *self){ --(*self); }
Xapian_ESetIterator_equals(Xapian::ESetIterator const * self,Xapian::ESetIterator const & o)2422 SWIGINTERN bool Xapian_ESetIterator_equals(Xapian::ESetIterator const *self,Xapian::ESetIterator const &o){ return *self == o; }
Xapian_ESetIterator_get_term(Xapian::ESetIterator const * self)2423 SWIGINTERN std::string Xapian_ESetIterator_get_term(Xapian::ESetIterator const *self){ return **self; }
Xapian_ESetIterator_next(Xapian::ESetIterator * self)2424 SWIGINTERN void Xapian_ESetIterator_next(Xapian::ESetIterator *self){ ++(*self); }
Xapian_ESetIterator_prev(Xapian::ESetIterator * self)2425 SWIGINTERN void Xapian_ESetIterator_prev(Xapian::ESetIterator *self){ --(*self); }
Xapian_Enquire_get_matching_terms(Xapian::Enquire const * self,Xapian::MSetIterator const & item)2426 SWIGINTERN std::pair< Xapian::TermIterator,Xapian::TermIterator > Xapian_Enquire_get_matching_terms(Xapian::Enquire const *self,Xapian::MSetIterator const &item){
2427 	return std::make_pair(self->get_matching_terms_begin(item),
2428 			      self->get_matching_terms_end(item));
2429     }
new_Xapian_SimpleStopper__SWIG_2(std::string const & file)2430 SWIGINTERN Xapian::SimpleStopper *new_Xapian_SimpleStopper__SWIG_2(std::string const &file){
2431 	ifstream in_file(file.c_str());
2432 	if (!in_file.is_open())
2433 	    throw Xapian::InvalidArgumentError("Stopword file not found: " + file);
2434 	istream_iterator<std::string> in_iter(in_file);
2435 	istream_iterator<std::string> eof;
2436 	return new Xapian::SimpleStopper(in_iter, eof);
2437     }
Xapian_LatLongCoordsIterator_equals(Xapian::LatLongCoordsIterator const * self,Xapian::LatLongCoordsIterator const & o)2438 SWIGINTERN bool Xapian_LatLongCoordsIterator_equals(Xapian::LatLongCoordsIterator const *self,Xapian::LatLongCoordsIterator const &o){ return *self == o; }
Xapian_LatLongCoordsIterator_get_coord(Xapian::LatLongCoordsIterator const * self)2439 SWIGINTERN Xapian::LatLongCoord Xapian_LatLongCoordsIterator_get_coord(Xapian::LatLongCoordsIterator const *self){ return **self; }
Xapian_LatLongCoordsIterator_next(Xapian::LatLongCoordsIterator * self)2440 SWIGINTERN void Xapian_LatLongCoordsIterator_next(Xapian::LatLongCoordsIterator *self){ ++(*self); }
2441 
2442 
2443 
2444 #ifdef __cplusplus
2445 extern "C" {
2446 #endif
2447 SWIGINTERN int
_wrap_version_string(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])2448 _wrap_version_string(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2449   char *result = 0 ;
2450 
2451   if (SWIG_GetArgs(interp, objc, objv,":xapian::version_string ") == TCL_ERROR) SWIG_fail;
2452   result = (char *)Xapian::version_string();
2453   Tcl_SetObjResult(interp,SWIG_FromCharPtr((const char *)result));
2454   return TCL_OK;
2455 fail:
2456   return TCL_ERROR;
2457 }
2458 
2459 
2460 SWIGINTERN int
_wrap_major_version(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])2461 _wrap_major_version(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2462   int result;
2463 
2464   if (SWIG_GetArgs(interp, objc, objv,":xapian::major_version ") == TCL_ERROR) SWIG_fail;
2465   result = (int)Xapian::major_version();
2466   Tcl_SetObjResult(interp,SWIG_From_int(static_cast< int >(result)));
2467   return TCL_OK;
2468 fail:
2469   return TCL_ERROR;
2470 }
2471 
2472 
2473 SWIGINTERN int
_wrap_minor_version(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])2474 _wrap_minor_version(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2475   int result;
2476 
2477   if (SWIG_GetArgs(interp, objc, objv,":xapian::minor_version ") == TCL_ERROR) SWIG_fail;
2478   result = (int)Xapian::minor_version();
2479   Tcl_SetObjResult(interp,SWIG_From_int(static_cast< int >(result)));
2480   return TCL_OK;
2481 fail:
2482   return TCL_ERROR;
2483 }
2484 
2485 
2486 SWIGINTERN int
_wrap_revision(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])2487 _wrap_revision(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2488   int result;
2489 
2490   if (SWIG_GetArgs(interp, objc, objv,":xapian::revision ") == TCL_ERROR) SWIG_fail;
2491   result = (int)Xapian::revision();
2492   Tcl_SetObjResult(interp,SWIG_From_int(static_cast< int >(result)));
2493   return TCL_OK;
2494 fail:
2495   return TCL_ERROR;
2496 }
2497 
2498 
2499 SWIGINTERN int
_wrap_new_PositionIterator__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])2500 _wrap_new_PositionIterator__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2501   Xapian::PositionIterator *arg1 = 0 ;
2502   void *argp1 ;
2503   int res1 = 0 ;
2504   Xapian::PositionIterator *result = 0 ;
2505 
2506   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_PositionIterator o ",(void *)0) == TCL_ERROR) SWIG_fail;
2507   res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_Xapian__PositionIterator,  0 );
2508   if (!SWIG_IsOK(res1)) {
2509     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PositionIterator" "', argument " "1"" of type '" "Xapian::PositionIterator const &""'");
2510   }
2511   if (!argp1) {
2512     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PositionIterator" "', argument " "1"" of type '" "Xapian::PositionIterator const &""'");
2513   }
2514   arg1 = reinterpret_cast< Xapian::PositionIterator * >(argp1);
2515   {
2516     try {
2517       result = (Xapian::PositionIterator *)new Xapian::PositionIterator((Xapian::PositionIterator const &)*arg1);
2518     } catch (const Xapian::Error &e) {
2519       return XapianTclHandleError(interp, e);
2520     } catch (...) {
2521       return XapianTclHandleError(interp);
2522     }
2523   }
2524   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__PositionIterator,0));
2525   return TCL_OK;
2526 fail:
2527   return TCL_ERROR;
2528 }
2529 
2530 
2531 SWIGINTERN int
_wrap_new_PositionIterator__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])2532 _wrap_new_PositionIterator__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2533   Xapian::PositionIterator *result = 0 ;
2534 
2535   if (SWIG_GetArgs(interp, objc, objv,":xapian::new_PositionIterator ") == TCL_ERROR) SWIG_fail;
2536   {
2537     try {
2538       result = (Xapian::PositionIterator *)new Xapian::PositionIterator();
2539     } catch (const Xapian::Error &e) {
2540       return XapianTclHandleError(interp, e);
2541     } catch (...) {
2542       return XapianTclHandleError(interp);
2543     }
2544   }
2545   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__PositionIterator,0));
2546   return TCL_OK;
2547 fail:
2548   return TCL_ERROR;
2549 }
2550 
2551 
2552 SWIGINTERN int
_wrap_new_PositionIterator(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])2553 _wrap_new_PositionIterator(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2554   Tcl_Obj *CONST *argv = objv+1;
2555   int argc = objc-1;
2556   if (argc == 0) {
2557     return _wrap_new_PositionIterator__SWIG_1(clientData, interp, objc, argv - 1);
2558   }
2559   if (argc == 1) {
2560     int _v;
2561     void *vptr = 0;
2562     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__PositionIterator, 0);
2563     _v = SWIG_CheckState(res);
2564     if (_v) {
2565       return _wrap_new_PositionIterator__SWIG_0(clientData, interp, objc, argv - 1);
2566     }
2567   }
2568 
2569   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_PositionIterator'.\n"
2570     "  Possible C/C++ prototypes are:\n"
2571     "    Xapian::PositionIterator::PositionIterator(Xapian::PositionIterator const &)\n"
2572     "    Xapian::PositionIterator::PositionIterator()\n", TCL_STATIC);
2573   return TCL_ERROR;
2574 }
2575 
2576 
2577 SWIGINTERN int
_wrap_delete_PositionIterator(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])2578 _wrap_delete_PositionIterator(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2579   Xapian::PositionIterator *arg1 = (Xapian::PositionIterator *) 0 ;
2580   void *argp1 = 0 ;
2581   int res1 = 0 ;
2582 
2583   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_PositionIterator self ",(void *)0) == TCL_ERROR) SWIG_fail;
2584   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PositionIterator, SWIG_POINTER_DISOWN |  0 );
2585   if (!SWIG_IsOK(res1)) {
2586     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PositionIterator" "', argument " "1"" of type '" "Xapian::PositionIterator *""'");
2587   }
2588   arg1 = reinterpret_cast< Xapian::PositionIterator * >(argp1);
2589   {
2590     try {
2591       delete arg1;
2592     } catch (const Xapian::Error &e) {
2593       return XapianTclHandleError(interp, e);
2594     } catch (...) {
2595       return XapianTclHandleError(interp);
2596     }
2597   }
2598 
2599   return TCL_OK;
2600 fail:
2601   return TCL_ERROR;
2602 }
2603 
2604 
2605 SWIGINTERN int
_wrap_PositionIterator_skip_to(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])2606 _wrap_PositionIterator_skip_to(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2607   Xapian::PositionIterator *arg1 = (Xapian::PositionIterator *) 0 ;
2608   Xapian::termpos arg2 ;
2609   void *argp1 = 0 ;
2610   int res1 = 0 ;
2611   unsigned int val2 ;
2612   int ecode2 = 0 ;
2613 
2614   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::PositionIterator_skip_to self termpos ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
2615   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PositionIterator, 0 |  0 );
2616   if (!SWIG_IsOK(res1)) {
2617     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PositionIterator_skip_to" "', argument " "1"" of type '" "Xapian::PositionIterator *""'");
2618   }
2619   arg1 = reinterpret_cast< Xapian::PositionIterator * >(argp1);
2620   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
2621   if (!SWIG_IsOK(ecode2)) {
2622     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PositionIterator_skip_to" "', argument " "2"" of type '" "Xapian::termpos""'");
2623   }
2624   arg2 = static_cast< Xapian::termpos >(val2);
2625   {
2626     try {
2627       (arg1)->skip_to(arg2);
2628     } catch (const Xapian::Error &e) {
2629       return XapianTclHandleError(interp, e);
2630     } catch (...) {
2631       return XapianTclHandleError(interp);
2632     }
2633   }
2634 
2635   return TCL_OK;
2636 fail:
2637   return TCL_ERROR;
2638 }
2639 
2640 
2641 SWIGINTERN int
_wrap_PositionIterator_get_description(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])2642 _wrap_PositionIterator_get_description(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2643   Xapian::PositionIterator *arg1 = (Xapian::PositionIterator *) 0 ;
2644   void *argp1 = 0 ;
2645   int res1 = 0 ;
2646   std::string result;
2647 
2648   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::PositionIterator_get_description self ",(void *)0) == TCL_ERROR) SWIG_fail;
2649   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PositionIterator, 0 |  0 );
2650   if (!SWIG_IsOK(res1)) {
2651     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PositionIterator_get_description" "', argument " "1"" of type '" "Xapian::PositionIterator const *""'");
2652   }
2653   arg1 = reinterpret_cast< Xapian::PositionIterator * >(argp1);
2654   {
2655     try {
2656       result = ((Xapian::PositionIterator const *)arg1)->get_description();
2657     } catch (const Xapian::Error &e) {
2658       return XapianTclHandleError(interp, e);
2659     } catch (...) {
2660       return XapianTclHandleError(interp);
2661     }
2662   }
2663   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
2664   return TCL_OK;
2665 fail:
2666   return TCL_ERROR;
2667 }
2668 
2669 
2670 SWIGINTERN int
_wrap_PositionIterator_equals(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])2671 _wrap_PositionIterator_equals(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2672   Xapian::PositionIterator *arg1 = (Xapian::PositionIterator *) 0 ;
2673   Xapian::PositionIterator *arg2 = 0 ;
2674   void *argp1 = 0 ;
2675   int res1 = 0 ;
2676   void *argp2 ;
2677   int res2 = 0 ;
2678   bool result;
2679 
2680   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::PositionIterator_equals self o ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
2681   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PositionIterator, 0 |  0 );
2682   if (!SWIG_IsOK(res1)) {
2683     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PositionIterator_equals" "', argument " "1"" of type '" "Xapian::PositionIterator const *""'");
2684   }
2685   arg1 = reinterpret_cast< Xapian::PositionIterator * >(argp1);
2686   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__PositionIterator,  0 );
2687   if (!SWIG_IsOK(res2)) {
2688     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PositionIterator_equals" "', argument " "2"" of type '" "Xapian::PositionIterator const &""'");
2689   }
2690   if (!argp2) {
2691     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PositionIterator_equals" "', argument " "2"" of type '" "Xapian::PositionIterator const &""'");
2692   }
2693   arg2 = reinterpret_cast< Xapian::PositionIterator * >(argp2);
2694   {
2695     try {
2696       result = (bool)Xapian_PositionIterator_equals((Xapian::PositionIterator const *)arg1,(Xapian::PositionIterator const &)*arg2);
2697     } catch (const Xapian::Error &e) {
2698       return XapianTclHandleError(interp, e);
2699     } catch (...) {
2700       return XapianTclHandleError(interp);
2701     }
2702   }
2703   Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
2704   return TCL_OK;
2705 fail:
2706   return TCL_ERROR;
2707 }
2708 
2709 
2710 SWIGINTERN int
_wrap_PositionIterator_get_termpos(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])2711 _wrap_PositionIterator_get_termpos(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2712   Xapian::PositionIterator *arg1 = (Xapian::PositionIterator *) 0 ;
2713   void *argp1 = 0 ;
2714   int res1 = 0 ;
2715   Xapian::termpos result;
2716 
2717   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::PositionIterator_get_termpos self ",(void *)0) == TCL_ERROR) SWIG_fail;
2718   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PositionIterator, 0 |  0 );
2719   if (!SWIG_IsOK(res1)) {
2720     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PositionIterator_get_termpos" "', argument " "1"" of type '" "Xapian::PositionIterator const *""'");
2721   }
2722   arg1 = reinterpret_cast< Xapian::PositionIterator * >(argp1);
2723   {
2724     try {
2725       result = (Xapian::termpos)Xapian_PositionIterator_get_termpos((Xapian::PositionIterator const *)arg1);
2726     } catch (const Xapian::Error &e) {
2727       return XapianTclHandleError(interp, e);
2728     } catch (...) {
2729       return XapianTclHandleError(interp);
2730     }
2731   }
2732   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
2733   return TCL_OK;
2734 fail:
2735   return TCL_ERROR;
2736 }
2737 
2738 
2739 SWIGINTERN int
_wrap_PositionIterator_next(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])2740 _wrap_PositionIterator_next(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2741   Xapian::PositionIterator *arg1 = (Xapian::PositionIterator *) 0 ;
2742   void *argp1 = 0 ;
2743   int res1 = 0 ;
2744 
2745   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::PositionIterator_next self ",(void *)0) == TCL_ERROR) SWIG_fail;
2746   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PositionIterator, 0 |  0 );
2747   if (!SWIG_IsOK(res1)) {
2748     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PositionIterator_next" "', argument " "1"" of type '" "Xapian::PositionIterator *""'");
2749   }
2750   arg1 = reinterpret_cast< Xapian::PositionIterator * >(argp1);
2751   {
2752     try {
2753       Xapian_PositionIterator_next(arg1);
2754     } catch (const Xapian::Error &e) {
2755       return XapianTclHandleError(interp, e);
2756     } catch (...) {
2757       return XapianTclHandleError(interp);
2758     }
2759   }
2760 
2761   return TCL_OK;
2762 fail:
2763   return TCL_ERROR;
2764 }
2765 
2766 
swig_delete_PositionIterator(void * obj)2767 SWIGINTERN void swig_delete_PositionIterator(void *obj) {
2768 Xapian::PositionIterator *arg1 = (Xapian::PositionIterator *) obj;
2769 delete arg1;
2770 }
2771 static swig_method swig_Xapian_PositionIterator_methods[] = {
2772     {"skip_to", _wrap_PositionIterator_skip_to},
2773     {"get_description", _wrap_PositionIterator_get_description},
2774     {"equals", _wrap_PositionIterator_equals},
2775     {"get_termpos", _wrap_PositionIterator_get_termpos},
2776     {"next", _wrap_PositionIterator_next},
2777     {0,0}
2778 };
2779 static swig_attribute swig_Xapian_PositionIterator_attributes[] = {
2780     {0,0,0}
2781 };
2782 static swig_class *swig_Xapian_PositionIterator_bases[] = {0};
2783 static const char * swig_Xapian_PositionIterator_base_names[] = {0};
2784 static swig_class _wrap_class_Xapian_PositionIterator = { "PositionIterator", &SWIGTYPE_p_Xapian__PositionIterator,_wrap_new_PositionIterator, swig_delete_PositionIterator, swig_Xapian_PositionIterator_methods, swig_Xapian_PositionIterator_attributes, swig_Xapian_PositionIterator_bases,swig_Xapian_PositionIterator_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
2785 SWIGINTERN int
_wrap_new_PostingIterator__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])2786 _wrap_new_PostingIterator__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2787   Xapian::PostingIterator *arg1 = 0 ;
2788   void *argp1 ;
2789   int res1 = 0 ;
2790   Xapian::PostingIterator *result = 0 ;
2791 
2792   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_PostingIterator o ",(void *)0) == TCL_ERROR) SWIG_fail;
2793   res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_Xapian__PostingIterator,  0 );
2794   if (!SWIG_IsOK(res1)) {
2795     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostingIterator" "', argument " "1"" of type '" "Xapian::PostingIterator const &""'");
2796   }
2797   if (!argp1) {
2798     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostingIterator" "', argument " "1"" of type '" "Xapian::PostingIterator const &""'");
2799   }
2800   arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
2801   {
2802     try {
2803       result = (Xapian::PostingIterator *)new Xapian::PostingIterator((Xapian::PostingIterator const &)*arg1);
2804     } catch (const Xapian::Error &e) {
2805       return XapianTclHandleError(interp, e);
2806     } catch (...) {
2807       return XapianTclHandleError(interp);
2808     }
2809   }
2810   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__PostingIterator,0));
2811   return TCL_OK;
2812 fail:
2813   return TCL_ERROR;
2814 }
2815 
2816 
2817 SWIGINTERN int
_wrap_new_PostingIterator__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])2818 _wrap_new_PostingIterator__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2819   Xapian::PostingIterator *result = 0 ;
2820 
2821   if (SWIG_GetArgs(interp, objc, objv,":xapian::new_PostingIterator ") == TCL_ERROR) SWIG_fail;
2822   {
2823     try {
2824       result = (Xapian::PostingIterator *)new Xapian::PostingIterator();
2825     } catch (const Xapian::Error &e) {
2826       return XapianTclHandleError(interp, e);
2827     } catch (...) {
2828       return XapianTclHandleError(interp);
2829     }
2830   }
2831   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__PostingIterator,0));
2832   return TCL_OK;
2833 fail:
2834   return TCL_ERROR;
2835 }
2836 
2837 
2838 SWIGINTERN int
_wrap_new_PostingIterator(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])2839 _wrap_new_PostingIterator(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2840   Tcl_Obj *CONST *argv = objv+1;
2841   int argc = objc-1;
2842   if (argc == 0) {
2843     return _wrap_new_PostingIterator__SWIG_1(clientData, interp, objc, argv - 1);
2844   }
2845   if (argc == 1) {
2846     int _v;
2847     void *vptr = 0;
2848     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__PostingIterator, 0);
2849     _v = SWIG_CheckState(res);
2850     if (_v) {
2851       return _wrap_new_PostingIterator__SWIG_0(clientData, interp, objc, argv - 1);
2852     }
2853   }
2854 
2855   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_PostingIterator'.\n"
2856     "  Possible C/C++ prototypes are:\n"
2857     "    Xapian::PostingIterator::PostingIterator(Xapian::PostingIterator const &)\n"
2858     "    Xapian::PostingIterator::PostingIterator()\n", TCL_STATIC);
2859   return TCL_ERROR;
2860 }
2861 
2862 
2863 SWIGINTERN int
_wrap_delete_PostingIterator(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])2864 _wrap_delete_PostingIterator(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2865   Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
2866   void *argp1 = 0 ;
2867   int res1 = 0 ;
2868 
2869   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_PostingIterator self ",(void *)0) == TCL_ERROR) SWIG_fail;
2870   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PostingIterator, SWIG_POINTER_DISOWN |  0 );
2871   if (!SWIG_IsOK(res1)) {
2872     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PostingIterator" "', argument " "1"" of type '" "Xapian::PostingIterator *""'");
2873   }
2874   arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
2875   {
2876     try {
2877       delete arg1;
2878     } catch (const Xapian::Error &e) {
2879       return XapianTclHandleError(interp, e);
2880     } catch (...) {
2881       return XapianTclHandleError(interp);
2882     }
2883   }
2884 
2885   return TCL_OK;
2886 fail:
2887   return TCL_ERROR;
2888 }
2889 
2890 
2891 SWIGINTERN int
_wrap_PostingIterator_get_wdf(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])2892 _wrap_PostingIterator_get_wdf(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2893   Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
2894   void *argp1 = 0 ;
2895   int res1 = 0 ;
2896   Xapian::termcount result;
2897 
2898   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::PostingIterator_get_wdf self ",(void *)0) == TCL_ERROR) SWIG_fail;
2899   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PostingIterator, 0 |  0 );
2900   if (!SWIG_IsOK(res1)) {
2901     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingIterator_get_wdf" "', argument " "1"" of type '" "Xapian::PostingIterator const *""'");
2902   }
2903   arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
2904   {
2905     try {
2906       result = (Xapian::termcount)((Xapian::PostingIterator const *)arg1)->get_wdf();
2907     } catch (const Xapian::Error &e) {
2908       return XapianTclHandleError(interp, e);
2909     } catch (...) {
2910       return XapianTclHandleError(interp);
2911     }
2912   }
2913   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
2914   return TCL_OK;
2915 fail:
2916   return TCL_ERROR;
2917 }
2918 
2919 
2920 SWIGINTERN int
_wrap_PostingIterator_get_doclength(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])2921 _wrap_PostingIterator_get_doclength(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2922   Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
2923   void *argp1 = 0 ;
2924   int res1 = 0 ;
2925   Xapian::termcount result;
2926 
2927   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::PostingIterator_get_doclength self ",(void *)0) == TCL_ERROR) SWIG_fail;
2928   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PostingIterator, 0 |  0 );
2929   if (!SWIG_IsOK(res1)) {
2930     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingIterator_get_doclength" "', argument " "1"" of type '" "Xapian::PostingIterator const *""'");
2931   }
2932   arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
2933   {
2934     try {
2935       result = (Xapian::termcount)((Xapian::PostingIterator const *)arg1)->get_doclength();
2936     } catch (const Xapian::Error &e) {
2937       return XapianTclHandleError(interp, e);
2938     } catch (...) {
2939       return XapianTclHandleError(interp);
2940     }
2941   }
2942   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
2943   return TCL_OK;
2944 fail:
2945   return TCL_ERROR;
2946 }
2947 
2948 
2949 SWIGINTERN int
_wrap_PostingIterator_get_unique_terms(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])2950 _wrap_PostingIterator_get_unique_terms(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2951   Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
2952   void *argp1 = 0 ;
2953   int res1 = 0 ;
2954   Xapian::termcount result;
2955 
2956   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::PostingIterator_get_unique_terms self ",(void *)0) == TCL_ERROR) SWIG_fail;
2957   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PostingIterator, 0 |  0 );
2958   if (!SWIG_IsOK(res1)) {
2959     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingIterator_get_unique_terms" "', argument " "1"" of type '" "Xapian::PostingIterator const *""'");
2960   }
2961   arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
2962   {
2963     try {
2964       result = (Xapian::termcount)((Xapian::PostingIterator const *)arg1)->get_unique_terms();
2965     } catch (const Xapian::Error &e) {
2966       return XapianTclHandleError(interp, e);
2967     } catch (...) {
2968       return XapianTclHandleError(interp);
2969     }
2970   }
2971   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
2972   return TCL_OK;
2973 fail:
2974   return TCL_ERROR;
2975 }
2976 
2977 
2978 SWIGINTERN int
_wrap_PostingIterator_positionlist_begin(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])2979 _wrap_PostingIterator_positionlist_begin(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2980   Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
2981   void *argp1 = 0 ;
2982   int res1 = 0 ;
2983   Xapian::PositionIterator result;
2984 
2985   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::PostingIterator_positionlist_begin self ",(void *)0) == TCL_ERROR) SWIG_fail;
2986   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PostingIterator, 0 |  0 );
2987   if (!SWIG_IsOK(res1)) {
2988     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingIterator_positionlist_begin" "', argument " "1"" of type '" "Xapian::PostingIterator const *""'");
2989   }
2990   arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
2991   {
2992     try {
2993       result = ((Xapian::PostingIterator const *)arg1)->positionlist_begin();
2994     } catch (const Xapian::Error &e) {
2995       return XapianTclHandleError(interp, e);
2996     } catch (...) {
2997       return XapianTclHandleError(interp);
2998     }
2999   }
3000   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::PositionIterator(static_cast< const Xapian::PositionIterator& >(result))), SWIGTYPE_p_Xapian__PositionIterator, SWIG_POINTER_OWN | 0 ));
3001   return TCL_OK;
3002 fail:
3003   return TCL_ERROR;
3004 }
3005 
3006 
3007 SWIGINTERN int
_wrap_PostingIterator_positionlist_end(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])3008 _wrap_PostingIterator_positionlist_end(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3009   Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
3010   void *argp1 = 0 ;
3011   int res1 = 0 ;
3012   Xapian::PositionIterator result;
3013 
3014   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::PostingIterator_positionlist_end self ",(void *)0) == TCL_ERROR) SWIG_fail;
3015   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PostingIterator, 0 |  0 );
3016   if (!SWIG_IsOK(res1)) {
3017     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingIterator_positionlist_end" "', argument " "1"" of type '" "Xapian::PostingIterator const *""'");
3018   }
3019   arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
3020   {
3021     try {
3022       result = ((Xapian::PostingIterator const *)arg1)->positionlist_end();
3023     } catch (const Xapian::Error &e) {
3024       return XapianTclHandleError(interp, e);
3025     } catch (...) {
3026       return XapianTclHandleError(interp);
3027     }
3028   }
3029   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::PositionIterator(static_cast< const Xapian::PositionIterator& >(result))), SWIGTYPE_p_Xapian__PositionIterator, SWIG_POINTER_OWN | 0 ));
3030   return TCL_OK;
3031 fail:
3032   return TCL_ERROR;
3033 }
3034 
3035 
3036 SWIGINTERN int
_wrap_PostingIterator_skip_to(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])3037 _wrap_PostingIterator_skip_to(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3038   Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
3039   Xapian::docid arg2 ;
3040   void *argp1 = 0 ;
3041   int res1 = 0 ;
3042   unsigned int val2 ;
3043   int ecode2 = 0 ;
3044 
3045   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::PostingIterator_skip_to self did ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
3046   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PostingIterator, 0 |  0 );
3047   if (!SWIG_IsOK(res1)) {
3048     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingIterator_skip_to" "', argument " "1"" of type '" "Xapian::PostingIterator *""'");
3049   }
3050   arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
3051   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
3052   if (!SWIG_IsOK(ecode2)) {
3053     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PostingIterator_skip_to" "', argument " "2"" of type '" "Xapian::docid""'");
3054   }
3055   arg2 = static_cast< Xapian::docid >(val2);
3056   {
3057     try {
3058       (arg1)->skip_to(arg2);
3059     } catch (const Xapian::Error &e) {
3060       return XapianTclHandleError(interp, e);
3061     } catch (...) {
3062       return XapianTclHandleError(interp);
3063     }
3064   }
3065 
3066   return TCL_OK;
3067 fail:
3068   return TCL_ERROR;
3069 }
3070 
3071 
3072 SWIGINTERN int
_wrap_PostingIterator_get_description(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])3073 _wrap_PostingIterator_get_description(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3074   Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
3075   void *argp1 = 0 ;
3076   int res1 = 0 ;
3077   std::string result;
3078 
3079   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::PostingIterator_get_description self ",(void *)0) == TCL_ERROR) SWIG_fail;
3080   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PostingIterator, 0 |  0 );
3081   if (!SWIG_IsOK(res1)) {
3082     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingIterator_get_description" "', argument " "1"" of type '" "Xapian::PostingIterator const *""'");
3083   }
3084   arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
3085   {
3086     try {
3087       result = ((Xapian::PostingIterator const *)arg1)->get_description();
3088     } catch (const Xapian::Error &e) {
3089       return XapianTclHandleError(interp, e);
3090     } catch (...) {
3091       return XapianTclHandleError(interp);
3092     }
3093   }
3094   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
3095   return TCL_OK;
3096 fail:
3097   return TCL_ERROR;
3098 }
3099 
3100 
3101 SWIGINTERN int
_wrap_PostingIterator_equals(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])3102 _wrap_PostingIterator_equals(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3103   Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
3104   Xapian::PostingIterator *arg2 = 0 ;
3105   void *argp1 = 0 ;
3106   int res1 = 0 ;
3107   void *argp2 ;
3108   int res2 = 0 ;
3109   bool result;
3110 
3111   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::PostingIterator_equals self o ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
3112   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PostingIterator, 0 |  0 );
3113   if (!SWIG_IsOK(res1)) {
3114     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingIterator_equals" "', argument " "1"" of type '" "Xapian::PostingIterator const *""'");
3115   }
3116   arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
3117   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__PostingIterator,  0 );
3118   if (!SWIG_IsOK(res2)) {
3119     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostingIterator_equals" "', argument " "2"" of type '" "Xapian::PostingIterator const &""'");
3120   }
3121   if (!argp2) {
3122     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostingIterator_equals" "', argument " "2"" of type '" "Xapian::PostingIterator const &""'");
3123   }
3124   arg2 = reinterpret_cast< Xapian::PostingIterator * >(argp2);
3125   {
3126     try {
3127       result = (bool)Xapian_PostingIterator_equals((Xapian::PostingIterator const *)arg1,(Xapian::PostingIterator const &)*arg2);
3128     } catch (const Xapian::Error &e) {
3129       return XapianTclHandleError(interp, e);
3130     } catch (...) {
3131       return XapianTclHandleError(interp);
3132     }
3133   }
3134   Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
3135   return TCL_OK;
3136 fail:
3137   return TCL_ERROR;
3138 }
3139 
3140 
3141 SWIGINTERN int
_wrap_PostingIterator_get_docid(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])3142 _wrap_PostingIterator_get_docid(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3143   Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
3144   void *argp1 = 0 ;
3145   int res1 = 0 ;
3146   Xapian::docid result;
3147 
3148   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::PostingIterator_get_docid self ",(void *)0) == TCL_ERROR) SWIG_fail;
3149   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PostingIterator, 0 |  0 );
3150   if (!SWIG_IsOK(res1)) {
3151     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingIterator_get_docid" "', argument " "1"" of type '" "Xapian::PostingIterator const *""'");
3152   }
3153   arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
3154   {
3155     try {
3156       result = (Xapian::docid)Xapian_PostingIterator_get_docid((Xapian::PostingIterator const *)arg1);
3157     } catch (const Xapian::Error &e) {
3158       return XapianTclHandleError(interp, e);
3159     } catch (...) {
3160       return XapianTclHandleError(interp);
3161     }
3162   }
3163   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
3164   return TCL_OK;
3165 fail:
3166   return TCL_ERROR;
3167 }
3168 
3169 
3170 SWIGINTERN int
_wrap_PostingIterator_next(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])3171 _wrap_PostingIterator_next(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3172   Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
3173   void *argp1 = 0 ;
3174   int res1 = 0 ;
3175 
3176   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::PostingIterator_next self ",(void *)0) == TCL_ERROR) SWIG_fail;
3177   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PostingIterator, 0 |  0 );
3178   if (!SWIG_IsOK(res1)) {
3179     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingIterator_next" "', argument " "1"" of type '" "Xapian::PostingIterator *""'");
3180   }
3181   arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
3182   {
3183     try {
3184       Xapian_PostingIterator_next(arg1);
3185     } catch (const Xapian::Error &e) {
3186       return XapianTclHandleError(interp, e);
3187     } catch (...) {
3188       return XapianTclHandleError(interp);
3189     }
3190   }
3191 
3192   return TCL_OK;
3193 fail:
3194   return TCL_ERROR;
3195 }
3196 
3197 
swig_delete_PostingIterator(void * obj)3198 SWIGINTERN void swig_delete_PostingIterator(void *obj) {
3199 Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) obj;
3200 delete arg1;
3201 }
3202 static swig_method swig_Xapian_PostingIterator_methods[] = {
3203     {"get_wdf", _wrap_PostingIterator_get_wdf},
3204     {"get_doclength", _wrap_PostingIterator_get_doclength},
3205     {"get_unique_terms", _wrap_PostingIterator_get_unique_terms},
3206     {"positionlist_begin", _wrap_PostingIterator_positionlist_begin},
3207     {"positionlist_end", _wrap_PostingIterator_positionlist_end},
3208     {"skip_to", _wrap_PostingIterator_skip_to},
3209     {"get_description", _wrap_PostingIterator_get_description},
3210     {"equals", _wrap_PostingIterator_equals},
3211     {"get_docid", _wrap_PostingIterator_get_docid},
3212     {"next", _wrap_PostingIterator_next},
3213     {0,0}
3214 };
3215 static swig_attribute swig_Xapian_PostingIterator_attributes[] = {
3216     {0,0,0}
3217 };
3218 static swig_class *swig_Xapian_PostingIterator_bases[] = {0};
3219 static const char * swig_Xapian_PostingIterator_base_names[] = {0};
3220 static swig_class _wrap_class_Xapian_PostingIterator = { "PostingIterator", &SWIGTYPE_p_Xapian__PostingIterator,_wrap_new_PostingIterator, swig_delete_PostingIterator, swig_Xapian_PostingIterator_methods, swig_Xapian_PostingIterator_attributes, swig_Xapian_PostingIterator_bases,swig_Xapian_PostingIterator_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
3221 SWIGINTERN int
_wrap_new_TermIterator__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])3222 _wrap_new_TermIterator__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3223   Xapian::TermIterator *arg1 = 0 ;
3224   void *argp1 ;
3225   int res1 = 0 ;
3226   Xapian::TermIterator *result = 0 ;
3227 
3228   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_TermIterator o ",(void *)0) == TCL_ERROR) SWIG_fail;
3229   res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_Xapian__TermIterator,  0 );
3230   if (!SWIG_IsOK(res1)) {
3231     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TermIterator" "', argument " "1"" of type '" "Xapian::TermIterator const &""'");
3232   }
3233   if (!argp1) {
3234     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TermIterator" "', argument " "1"" of type '" "Xapian::TermIterator const &""'");
3235   }
3236   arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
3237   {
3238     try {
3239       result = (Xapian::TermIterator *)new Xapian::TermIterator((Xapian::TermIterator const &)*arg1);
3240     } catch (const Xapian::Error &e) {
3241       return XapianTclHandleError(interp, e);
3242     } catch (...) {
3243       return XapianTclHandleError(interp);
3244     }
3245   }
3246   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__TermIterator,0));
3247   return TCL_OK;
3248 fail:
3249   return TCL_ERROR;
3250 }
3251 
3252 
3253 SWIGINTERN int
_wrap_new_TermIterator__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])3254 _wrap_new_TermIterator__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3255   Xapian::TermIterator *result = 0 ;
3256 
3257   if (SWIG_GetArgs(interp, objc, objv,":xapian::new_TermIterator ") == TCL_ERROR) SWIG_fail;
3258   {
3259     try {
3260       result = (Xapian::TermIterator *)new Xapian::TermIterator();
3261     } catch (const Xapian::Error &e) {
3262       return XapianTclHandleError(interp, e);
3263     } catch (...) {
3264       return XapianTclHandleError(interp);
3265     }
3266   }
3267   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__TermIterator,0));
3268   return TCL_OK;
3269 fail:
3270   return TCL_ERROR;
3271 }
3272 
3273 
3274 SWIGINTERN int
_wrap_new_TermIterator(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])3275 _wrap_new_TermIterator(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3276   Tcl_Obj *CONST *argv = objv+1;
3277   int argc = objc-1;
3278   if (argc == 0) {
3279     return _wrap_new_TermIterator__SWIG_1(clientData, interp, objc, argv - 1);
3280   }
3281   if (argc == 1) {
3282     int _v;
3283     void *vptr = 0;
3284     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__TermIterator, 0);
3285     _v = SWIG_CheckState(res);
3286     if (_v) {
3287       return _wrap_new_TermIterator__SWIG_0(clientData, interp, objc, argv - 1);
3288     }
3289   }
3290 
3291   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_TermIterator'.\n"
3292     "  Possible C/C++ prototypes are:\n"
3293     "    Xapian::TermIterator::TermIterator(Xapian::TermIterator const &)\n"
3294     "    Xapian::TermIterator::TermIterator()\n", TCL_STATIC);
3295   return TCL_ERROR;
3296 }
3297 
3298 
3299 SWIGINTERN int
_wrap_delete_TermIterator(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])3300 _wrap_delete_TermIterator(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3301   Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
3302   void *argp1 = 0 ;
3303   int res1 = 0 ;
3304 
3305   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_TermIterator self ",(void *)0) == TCL_ERROR) SWIG_fail;
3306   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_DISOWN |  0 );
3307   if (!SWIG_IsOK(res1)) {
3308     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TermIterator" "', argument " "1"" of type '" "Xapian::TermIterator *""'");
3309   }
3310   arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
3311   {
3312     try {
3313       delete arg1;
3314     } catch (const Xapian::Error &e) {
3315       return XapianTclHandleError(interp, e);
3316     } catch (...) {
3317       return XapianTclHandleError(interp);
3318     }
3319   }
3320 
3321   return TCL_OK;
3322 fail:
3323   return TCL_ERROR;
3324 }
3325 
3326 
3327 SWIGINTERN int
_wrap_TermIterator_get_wdf(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])3328 _wrap_TermIterator_get_wdf(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3329   Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
3330   void *argp1 = 0 ;
3331   int res1 = 0 ;
3332   Xapian::termcount result;
3333 
3334   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::TermIterator_get_wdf self ",(void *)0) == TCL_ERROR) SWIG_fail;
3335   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TermIterator, 0 |  0 );
3336   if (!SWIG_IsOK(res1)) {
3337     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermIterator_get_wdf" "', argument " "1"" of type '" "Xapian::TermIterator const *""'");
3338   }
3339   arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
3340   {
3341     try {
3342       result = (Xapian::termcount)((Xapian::TermIterator const *)arg1)->get_wdf();
3343     } catch (const Xapian::Error &e) {
3344       return XapianTclHandleError(interp, e);
3345     } catch (...) {
3346       return XapianTclHandleError(interp);
3347     }
3348   }
3349   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
3350   return TCL_OK;
3351 fail:
3352   return TCL_ERROR;
3353 }
3354 
3355 
3356 SWIGINTERN int
_wrap_TermIterator_get_termfreq(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])3357 _wrap_TermIterator_get_termfreq(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3358   Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
3359   void *argp1 = 0 ;
3360   int res1 = 0 ;
3361   Xapian::doccount result;
3362 
3363   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::TermIterator_get_termfreq self ",(void *)0) == TCL_ERROR) SWIG_fail;
3364   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TermIterator, 0 |  0 );
3365   if (!SWIG_IsOK(res1)) {
3366     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermIterator_get_termfreq" "', argument " "1"" of type '" "Xapian::TermIterator const *""'");
3367   }
3368   arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
3369   {
3370     try {
3371       result = (Xapian::doccount)((Xapian::TermIterator const *)arg1)->get_termfreq();
3372     } catch (const Xapian::Error &e) {
3373       return XapianTclHandleError(interp, e);
3374     } catch (...) {
3375       return XapianTclHandleError(interp);
3376     }
3377   }
3378   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
3379   return TCL_OK;
3380 fail:
3381   return TCL_ERROR;
3382 }
3383 
3384 
3385 SWIGINTERN int
_wrap_TermIterator_positionlist_count(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])3386 _wrap_TermIterator_positionlist_count(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3387   Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
3388   void *argp1 = 0 ;
3389   int res1 = 0 ;
3390   Xapian::termcount result;
3391 
3392   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::TermIterator_positionlist_count self ",(void *)0) == TCL_ERROR) SWIG_fail;
3393   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TermIterator, 0 |  0 );
3394   if (!SWIG_IsOK(res1)) {
3395     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermIterator_positionlist_count" "', argument " "1"" of type '" "Xapian::TermIterator const *""'");
3396   }
3397   arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
3398   {
3399     try {
3400       result = (Xapian::termcount)((Xapian::TermIterator const *)arg1)->positionlist_count();
3401     } catch (const Xapian::Error &e) {
3402       return XapianTclHandleError(interp, e);
3403     } catch (...) {
3404       return XapianTclHandleError(interp);
3405     }
3406   }
3407   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
3408   return TCL_OK;
3409 fail:
3410   return TCL_ERROR;
3411 }
3412 
3413 
3414 SWIGINTERN int
_wrap_TermIterator_positionlist_begin(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])3415 _wrap_TermIterator_positionlist_begin(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3416   Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
3417   void *argp1 = 0 ;
3418   int res1 = 0 ;
3419   Xapian::PositionIterator result;
3420 
3421   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::TermIterator_positionlist_begin self ",(void *)0) == TCL_ERROR) SWIG_fail;
3422   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TermIterator, 0 |  0 );
3423   if (!SWIG_IsOK(res1)) {
3424     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermIterator_positionlist_begin" "', argument " "1"" of type '" "Xapian::TermIterator const *""'");
3425   }
3426   arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
3427   {
3428     try {
3429       result = ((Xapian::TermIterator const *)arg1)->positionlist_begin();
3430     } catch (const Xapian::Error &e) {
3431       return XapianTclHandleError(interp, e);
3432     } catch (...) {
3433       return XapianTclHandleError(interp);
3434     }
3435   }
3436   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::PositionIterator(static_cast< const Xapian::PositionIterator& >(result))), SWIGTYPE_p_Xapian__PositionIterator, SWIG_POINTER_OWN | 0 ));
3437   return TCL_OK;
3438 fail:
3439   return TCL_ERROR;
3440 }
3441 
3442 
3443 SWIGINTERN int
_wrap_TermIterator_positionlist_end(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])3444 _wrap_TermIterator_positionlist_end(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3445   Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
3446   void *argp1 = 0 ;
3447   int res1 = 0 ;
3448   Xapian::PositionIterator result;
3449 
3450   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::TermIterator_positionlist_end self ",(void *)0) == TCL_ERROR) SWIG_fail;
3451   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TermIterator, 0 |  0 );
3452   if (!SWIG_IsOK(res1)) {
3453     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermIterator_positionlist_end" "', argument " "1"" of type '" "Xapian::TermIterator const *""'");
3454   }
3455   arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
3456   {
3457     try {
3458       result = ((Xapian::TermIterator const *)arg1)->positionlist_end();
3459     } catch (const Xapian::Error &e) {
3460       return XapianTclHandleError(interp, e);
3461     } catch (...) {
3462       return XapianTclHandleError(interp);
3463     }
3464   }
3465   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::PositionIterator(static_cast< const Xapian::PositionIterator& >(result))), SWIGTYPE_p_Xapian__PositionIterator, SWIG_POINTER_OWN | 0 ));
3466   return TCL_OK;
3467 fail:
3468   return TCL_ERROR;
3469 }
3470 
3471 
3472 SWIGINTERN int
_wrap_TermIterator_skip_to(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])3473 _wrap_TermIterator_skip_to(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3474   Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
3475   std::string *arg2 = 0 ;
3476   void *argp1 = 0 ;
3477   int res1 = 0 ;
3478   int res2 = SWIG_OLDOBJ ;
3479 
3480   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::TermIterator_skip_to self term ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
3481   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TermIterator, 0 |  0 );
3482   if (!SWIG_IsOK(res1)) {
3483     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermIterator_skip_to" "', argument " "1"" of type '" "Xapian::TermIterator *""'");
3484   }
3485   arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
3486   {
3487     std::string *ptr = (std::string *)0;
3488     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
3489     if (!SWIG_IsOK(res2)) {
3490       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TermIterator_skip_to" "', argument " "2"" of type '" "std::string const &""'");
3491     }
3492     if (!ptr) {
3493       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TermIterator_skip_to" "', argument " "2"" of type '" "std::string const &""'");
3494     }
3495     arg2 = ptr;
3496   }
3497   {
3498     try {
3499       (arg1)->skip_to((std::string const &)*arg2);
3500     } catch (const Xapian::Error &e) {
3501       return XapianTclHandleError(interp, e);
3502     } catch (...) {
3503       return XapianTclHandleError(interp);
3504     }
3505   }
3506 
3507   if (SWIG_IsNewObj(res2)) delete arg2;
3508   return TCL_OK;
3509 fail:
3510   if (SWIG_IsNewObj(res2)) delete arg2;
3511   return TCL_ERROR;
3512 }
3513 
3514 
3515 SWIGINTERN int
_wrap_TermIterator_get_description(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])3516 _wrap_TermIterator_get_description(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3517   Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
3518   void *argp1 = 0 ;
3519   int res1 = 0 ;
3520   std::string result;
3521 
3522   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::TermIterator_get_description self ",(void *)0) == TCL_ERROR) SWIG_fail;
3523   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TermIterator, 0 |  0 );
3524   if (!SWIG_IsOK(res1)) {
3525     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermIterator_get_description" "', argument " "1"" of type '" "Xapian::TermIterator const *""'");
3526   }
3527   arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
3528   {
3529     try {
3530       result = ((Xapian::TermIterator const *)arg1)->get_description();
3531     } catch (const Xapian::Error &e) {
3532       return XapianTclHandleError(interp, e);
3533     } catch (...) {
3534       return XapianTclHandleError(interp);
3535     }
3536   }
3537   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
3538   return TCL_OK;
3539 fail:
3540   return TCL_ERROR;
3541 }
3542 
3543 
3544 SWIGINTERN int
_wrap_TermIterator_equals(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])3545 _wrap_TermIterator_equals(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3546   Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
3547   Xapian::TermIterator *arg2 = 0 ;
3548   void *argp1 = 0 ;
3549   int res1 = 0 ;
3550   void *argp2 ;
3551   int res2 = 0 ;
3552   bool result;
3553 
3554   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::TermIterator_equals self o ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
3555   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TermIterator, 0 |  0 );
3556   if (!SWIG_IsOK(res1)) {
3557     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermIterator_equals" "', argument " "1"" of type '" "Xapian::TermIterator const *""'");
3558   }
3559   arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
3560   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__TermIterator,  0 );
3561   if (!SWIG_IsOK(res2)) {
3562     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TermIterator_equals" "', argument " "2"" of type '" "Xapian::TermIterator const &""'");
3563   }
3564   if (!argp2) {
3565     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TermIterator_equals" "', argument " "2"" of type '" "Xapian::TermIterator const &""'");
3566   }
3567   arg2 = reinterpret_cast< Xapian::TermIterator * >(argp2);
3568   {
3569     try {
3570       result = (bool)Xapian_TermIterator_equals((Xapian::TermIterator const *)arg1,(Xapian::TermIterator const &)*arg2);
3571     } catch (const Xapian::Error &e) {
3572       return XapianTclHandleError(interp, e);
3573     } catch (...) {
3574       return XapianTclHandleError(interp);
3575     }
3576   }
3577   Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
3578   return TCL_OK;
3579 fail:
3580   return TCL_ERROR;
3581 }
3582 
3583 
3584 SWIGINTERN int
_wrap_TermIterator_get_term(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])3585 _wrap_TermIterator_get_term(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3586   Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
3587   void *argp1 = 0 ;
3588   int res1 = 0 ;
3589   std::string result;
3590 
3591   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::TermIterator_get_term self ",(void *)0) == TCL_ERROR) SWIG_fail;
3592   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TermIterator, 0 |  0 );
3593   if (!SWIG_IsOK(res1)) {
3594     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermIterator_get_term" "', argument " "1"" of type '" "Xapian::TermIterator const *""'");
3595   }
3596   arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
3597   {
3598     try {
3599       result = Xapian_TermIterator_get_term((Xapian::TermIterator const *)arg1);
3600     } catch (const Xapian::Error &e) {
3601       return XapianTclHandleError(interp, e);
3602     } catch (...) {
3603       return XapianTclHandleError(interp);
3604     }
3605   }
3606   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
3607   return TCL_OK;
3608 fail:
3609   return TCL_ERROR;
3610 }
3611 
3612 
3613 SWIGINTERN int
_wrap_TermIterator_next(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])3614 _wrap_TermIterator_next(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3615   Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
3616   void *argp1 = 0 ;
3617   int res1 = 0 ;
3618 
3619   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::TermIterator_next self ",(void *)0) == TCL_ERROR) SWIG_fail;
3620   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TermIterator, 0 |  0 );
3621   if (!SWIG_IsOK(res1)) {
3622     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermIterator_next" "', argument " "1"" of type '" "Xapian::TermIterator *""'");
3623   }
3624   arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
3625   {
3626     try {
3627       Xapian_TermIterator_next(arg1);
3628     } catch (const Xapian::Error &e) {
3629       return XapianTclHandleError(interp, e);
3630     } catch (...) {
3631       return XapianTclHandleError(interp);
3632     }
3633   }
3634 
3635   return TCL_OK;
3636 fail:
3637   return TCL_ERROR;
3638 }
3639 
3640 
swig_delete_TermIterator(void * obj)3641 SWIGINTERN void swig_delete_TermIterator(void *obj) {
3642 Xapian::TermIterator *arg1 = (Xapian::TermIterator *) obj;
3643 delete arg1;
3644 }
3645 static swig_method swig_Xapian_TermIterator_methods[] = {
3646     {"get_wdf", _wrap_TermIterator_get_wdf},
3647     {"get_termfreq", _wrap_TermIterator_get_termfreq},
3648     {"positionlist_count", _wrap_TermIterator_positionlist_count},
3649     {"positionlist_begin", _wrap_TermIterator_positionlist_begin},
3650     {"positionlist_end", _wrap_TermIterator_positionlist_end},
3651     {"skip_to", _wrap_TermIterator_skip_to},
3652     {"get_description", _wrap_TermIterator_get_description},
3653     {"equals", _wrap_TermIterator_equals},
3654     {"get_term", _wrap_TermIterator_get_term},
3655     {"next", _wrap_TermIterator_next},
3656     {0,0}
3657 };
3658 static swig_attribute swig_Xapian_TermIterator_attributes[] = {
3659     {0,0,0}
3660 };
3661 static swig_class *swig_Xapian_TermIterator_bases[] = {0};
3662 static const char * swig_Xapian_TermIterator_base_names[] = {0};
3663 static swig_class _wrap_class_Xapian_TermIterator = { "TermIterator", &SWIGTYPE_p_Xapian__TermIterator,_wrap_new_TermIterator, swig_delete_TermIterator, swig_Xapian_TermIterator_methods, swig_Xapian_TermIterator_attributes, swig_Xapian_TermIterator_bases,swig_Xapian_TermIterator_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
3664 SWIGINTERN int
_wrap_new_ValueIterator__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])3665 _wrap_new_ValueIterator__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3666   Xapian::ValueIterator *arg1 = 0 ;
3667   void *argp1 ;
3668   int res1 = 0 ;
3669   Xapian::ValueIterator *result = 0 ;
3670 
3671   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_ValueIterator o ",(void *)0) == TCL_ERROR) SWIG_fail;
3672   res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_Xapian__ValueIterator,  0 );
3673   if (!SWIG_IsOK(res1)) {
3674     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ValueIterator" "', argument " "1"" of type '" "Xapian::ValueIterator const &""'");
3675   }
3676   if (!argp1) {
3677     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ValueIterator" "', argument " "1"" of type '" "Xapian::ValueIterator const &""'");
3678   }
3679   arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
3680   {
3681     try {
3682       result = (Xapian::ValueIterator *)new Xapian::ValueIterator((Xapian::ValueIterator const &)*arg1);
3683     } catch (const Xapian::Error &e) {
3684       return XapianTclHandleError(interp, e);
3685     } catch (...) {
3686       return XapianTclHandleError(interp);
3687     }
3688   }
3689   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ValueIterator,0));
3690   return TCL_OK;
3691 fail:
3692   return TCL_ERROR;
3693 }
3694 
3695 
3696 SWIGINTERN int
_wrap_new_ValueIterator__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])3697 _wrap_new_ValueIterator__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3698   Xapian::ValueIterator *result = 0 ;
3699 
3700   if (SWIG_GetArgs(interp, objc, objv,":xapian::new_ValueIterator ") == TCL_ERROR) SWIG_fail;
3701   {
3702     try {
3703       result = (Xapian::ValueIterator *)new Xapian::ValueIterator();
3704     } catch (const Xapian::Error &e) {
3705       return XapianTclHandleError(interp, e);
3706     } catch (...) {
3707       return XapianTclHandleError(interp);
3708     }
3709   }
3710   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ValueIterator,0));
3711   return TCL_OK;
3712 fail:
3713   return TCL_ERROR;
3714 }
3715 
3716 
3717 SWIGINTERN int
_wrap_new_ValueIterator(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])3718 _wrap_new_ValueIterator(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3719   Tcl_Obj *CONST *argv = objv+1;
3720   int argc = objc-1;
3721   if (argc == 0) {
3722     return _wrap_new_ValueIterator__SWIG_1(clientData, interp, objc, argv - 1);
3723   }
3724   if (argc == 1) {
3725     int _v;
3726     void *vptr = 0;
3727     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__ValueIterator, 0);
3728     _v = SWIG_CheckState(res);
3729     if (_v) {
3730       return _wrap_new_ValueIterator__SWIG_0(clientData, interp, objc, argv - 1);
3731     }
3732   }
3733 
3734   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_ValueIterator'.\n"
3735     "  Possible C/C++ prototypes are:\n"
3736     "    Xapian::ValueIterator::ValueIterator(Xapian::ValueIterator const &)\n"
3737     "    Xapian::ValueIterator::ValueIterator()\n", TCL_STATIC);
3738   return TCL_ERROR;
3739 }
3740 
3741 
3742 SWIGINTERN int
_wrap_delete_ValueIterator(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])3743 _wrap_delete_ValueIterator(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3744   Xapian::ValueIterator *arg1 = (Xapian::ValueIterator *) 0 ;
3745   void *argp1 = 0 ;
3746   int res1 = 0 ;
3747 
3748   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_ValueIterator self ",(void *)0) == TCL_ERROR) SWIG_fail;
3749   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValueIterator, SWIG_POINTER_DISOWN |  0 );
3750   if (!SWIG_IsOK(res1)) {
3751     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ValueIterator" "', argument " "1"" of type '" "Xapian::ValueIterator *""'");
3752   }
3753   arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
3754   {
3755     try {
3756       delete arg1;
3757     } catch (const Xapian::Error &e) {
3758       return XapianTclHandleError(interp, e);
3759     } catch (...) {
3760       return XapianTclHandleError(interp);
3761     }
3762   }
3763 
3764   return TCL_OK;
3765 fail:
3766   return TCL_ERROR;
3767 }
3768 
3769 
3770 SWIGINTERN int
_wrap_ValueIterator_get_docid(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])3771 _wrap_ValueIterator_get_docid(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3772   Xapian::ValueIterator *arg1 = (Xapian::ValueIterator *) 0 ;
3773   void *argp1 = 0 ;
3774   int res1 = 0 ;
3775   Xapian::docid result;
3776 
3777   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::ValueIterator_get_docid self ",(void *)0) == TCL_ERROR) SWIG_fail;
3778   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValueIterator, 0 |  0 );
3779   if (!SWIG_IsOK(res1)) {
3780     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueIterator_get_docid" "', argument " "1"" of type '" "Xapian::ValueIterator const *""'");
3781   }
3782   arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
3783   {
3784     try {
3785       result = (Xapian::docid)((Xapian::ValueIterator const *)arg1)->get_docid();
3786     } catch (const Xapian::Error &e) {
3787       return XapianTclHandleError(interp, e);
3788     } catch (...) {
3789       return XapianTclHandleError(interp);
3790     }
3791   }
3792   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
3793   return TCL_OK;
3794 fail:
3795   return TCL_ERROR;
3796 }
3797 
3798 
3799 SWIGINTERN int
_wrap_ValueIterator_get_valueno(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])3800 _wrap_ValueIterator_get_valueno(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3801   Xapian::ValueIterator *arg1 = (Xapian::ValueIterator *) 0 ;
3802   void *argp1 = 0 ;
3803   int res1 = 0 ;
3804   Xapian::valueno result;
3805 
3806   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::ValueIterator_get_valueno self ",(void *)0) == TCL_ERROR) SWIG_fail;
3807   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValueIterator, 0 |  0 );
3808   if (!SWIG_IsOK(res1)) {
3809     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueIterator_get_valueno" "', argument " "1"" of type '" "Xapian::ValueIterator const *""'");
3810   }
3811   arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
3812   {
3813     try {
3814       result = (Xapian::valueno)((Xapian::ValueIterator const *)arg1)->get_valueno();
3815     } catch (const Xapian::Error &e) {
3816       return XapianTclHandleError(interp, e);
3817     } catch (...) {
3818       return XapianTclHandleError(interp);
3819     }
3820   }
3821   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
3822   return TCL_OK;
3823 fail:
3824   return TCL_ERROR;
3825 }
3826 
3827 
3828 SWIGINTERN int
_wrap_ValueIterator_skip_to(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])3829 _wrap_ValueIterator_skip_to(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3830   Xapian::ValueIterator *arg1 = (Xapian::ValueIterator *) 0 ;
3831   Xapian::docid arg2 ;
3832   void *argp1 = 0 ;
3833   int res1 = 0 ;
3834   unsigned int val2 ;
3835   int ecode2 = 0 ;
3836 
3837   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::ValueIterator_skip_to self docid_or_slot ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
3838   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValueIterator, 0 |  0 );
3839   if (!SWIG_IsOK(res1)) {
3840     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueIterator_skip_to" "', argument " "1"" of type '" "Xapian::ValueIterator *""'");
3841   }
3842   arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
3843   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
3844   if (!SWIG_IsOK(ecode2)) {
3845     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ValueIterator_skip_to" "', argument " "2"" of type '" "Xapian::docid""'");
3846   }
3847   arg2 = static_cast< Xapian::docid >(val2);
3848   {
3849     try {
3850       (arg1)->skip_to(arg2);
3851     } catch (const Xapian::Error &e) {
3852       return XapianTclHandleError(interp, e);
3853     } catch (...) {
3854       return XapianTclHandleError(interp);
3855     }
3856   }
3857 
3858   return TCL_OK;
3859 fail:
3860   return TCL_ERROR;
3861 }
3862 
3863 
3864 SWIGINTERN int
_wrap_ValueIterator_check(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])3865 _wrap_ValueIterator_check(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3866   Xapian::ValueIterator *arg1 = (Xapian::ValueIterator *) 0 ;
3867   Xapian::docid arg2 ;
3868   void *argp1 = 0 ;
3869   int res1 = 0 ;
3870   unsigned int val2 ;
3871   int ecode2 = 0 ;
3872   bool result;
3873 
3874   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::ValueIterator_check self docid ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
3875   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValueIterator, 0 |  0 );
3876   if (!SWIG_IsOK(res1)) {
3877     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueIterator_check" "', argument " "1"" of type '" "Xapian::ValueIterator *""'");
3878   }
3879   arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
3880   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
3881   if (!SWIG_IsOK(ecode2)) {
3882     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ValueIterator_check" "', argument " "2"" of type '" "Xapian::docid""'");
3883   }
3884   arg2 = static_cast< Xapian::docid >(val2);
3885   {
3886     try {
3887       result = (bool)(arg1)->check(arg2);
3888     } catch (const Xapian::Error &e) {
3889       return XapianTclHandleError(interp, e);
3890     } catch (...) {
3891       return XapianTclHandleError(interp);
3892     }
3893   }
3894   Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
3895   return TCL_OK;
3896 fail:
3897   return TCL_ERROR;
3898 }
3899 
3900 
3901 SWIGINTERN int
_wrap_ValueIterator_get_description(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])3902 _wrap_ValueIterator_get_description(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3903   Xapian::ValueIterator *arg1 = (Xapian::ValueIterator *) 0 ;
3904   void *argp1 = 0 ;
3905   int res1 = 0 ;
3906   std::string result;
3907 
3908   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::ValueIterator_get_description self ",(void *)0) == TCL_ERROR) SWIG_fail;
3909   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValueIterator, 0 |  0 );
3910   if (!SWIG_IsOK(res1)) {
3911     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueIterator_get_description" "', argument " "1"" of type '" "Xapian::ValueIterator const *""'");
3912   }
3913   arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
3914   {
3915     try {
3916       result = ((Xapian::ValueIterator const *)arg1)->get_description();
3917     } catch (const Xapian::Error &e) {
3918       return XapianTclHandleError(interp, e);
3919     } catch (...) {
3920       return XapianTclHandleError(interp);
3921     }
3922   }
3923   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
3924   return TCL_OK;
3925 fail:
3926   return TCL_ERROR;
3927 }
3928 
3929 
3930 SWIGINTERN int
_wrap_ValueIterator_equals(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])3931 _wrap_ValueIterator_equals(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3932   Xapian::ValueIterator *arg1 = (Xapian::ValueIterator *) 0 ;
3933   Xapian::ValueIterator *arg2 = 0 ;
3934   void *argp1 = 0 ;
3935   int res1 = 0 ;
3936   void *argp2 ;
3937   int res2 = 0 ;
3938   bool result;
3939 
3940   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::ValueIterator_equals self o ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
3941   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValueIterator, 0 |  0 );
3942   if (!SWIG_IsOK(res1)) {
3943     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueIterator_equals" "', argument " "1"" of type '" "Xapian::ValueIterator const *""'");
3944   }
3945   arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
3946   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__ValueIterator,  0 );
3947   if (!SWIG_IsOK(res2)) {
3948     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ValueIterator_equals" "', argument " "2"" of type '" "Xapian::ValueIterator const &""'");
3949   }
3950   if (!argp2) {
3951     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ValueIterator_equals" "', argument " "2"" of type '" "Xapian::ValueIterator const &""'");
3952   }
3953   arg2 = reinterpret_cast< Xapian::ValueIterator * >(argp2);
3954   {
3955     try {
3956       result = (bool)Xapian_ValueIterator_equals((Xapian::ValueIterator const *)arg1,(Xapian::ValueIterator const &)*arg2);
3957     } catch (const Xapian::Error &e) {
3958       return XapianTclHandleError(interp, e);
3959     } catch (...) {
3960       return XapianTclHandleError(interp);
3961     }
3962   }
3963   Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
3964   return TCL_OK;
3965 fail:
3966   return TCL_ERROR;
3967 }
3968 
3969 
3970 SWIGINTERN int
_wrap_ValueIterator_get_value(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])3971 _wrap_ValueIterator_get_value(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3972   Xapian::ValueIterator *arg1 = (Xapian::ValueIterator *) 0 ;
3973   void *argp1 = 0 ;
3974   int res1 = 0 ;
3975   std::string result;
3976 
3977   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::ValueIterator_get_value self ",(void *)0) == TCL_ERROR) SWIG_fail;
3978   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValueIterator, 0 |  0 );
3979   if (!SWIG_IsOK(res1)) {
3980     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueIterator_get_value" "', argument " "1"" of type '" "Xapian::ValueIterator const *""'");
3981   }
3982   arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
3983   {
3984     try {
3985       result = Xapian_ValueIterator_get_value((Xapian::ValueIterator const *)arg1);
3986     } catch (const Xapian::Error &e) {
3987       return XapianTclHandleError(interp, e);
3988     } catch (...) {
3989       return XapianTclHandleError(interp);
3990     }
3991   }
3992   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
3993   return TCL_OK;
3994 fail:
3995   return TCL_ERROR;
3996 }
3997 
3998 
3999 SWIGINTERN int
_wrap_ValueIterator_next(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])4000 _wrap_ValueIterator_next(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4001   Xapian::ValueIterator *arg1 = (Xapian::ValueIterator *) 0 ;
4002   void *argp1 = 0 ;
4003   int res1 = 0 ;
4004 
4005   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::ValueIterator_next self ",(void *)0) == TCL_ERROR) SWIG_fail;
4006   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValueIterator, 0 |  0 );
4007   if (!SWIG_IsOK(res1)) {
4008     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueIterator_next" "', argument " "1"" of type '" "Xapian::ValueIterator *""'");
4009   }
4010   arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
4011   {
4012     try {
4013       Xapian_ValueIterator_next(arg1);
4014     } catch (const Xapian::Error &e) {
4015       return XapianTclHandleError(interp, e);
4016     } catch (...) {
4017       return XapianTclHandleError(interp);
4018     }
4019   }
4020 
4021   return TCL_OK;
4022 fail:
4023   return TCL_ERROR;
4024 }
4025 
4026 
swig_delete_ValueIterator(void * obj)4027 SWIGINTERN void swig_delete_ValueIterator(void *obj) {
4028 Xapian::ValueIterator *arg1 = (Xapian::ValueIterator *) obj;
4029 delete arg1;
4030 }
4031 static swig_method swig_Xapian_ValueIterator_methods[] = {
4032     {"get_docid", _wrap_ValueIterator_get_docid},
4033     {"get_valueno", _wrap_ValueIterator_get_valueno},
4034     {"skip_to", _wrap_ValueIterator_skip_to},
4035     {"check", _wrap_ValueIterator_check},
4036     {"get_description", _wrap_ValueIterator_get_description},
4037     {"equals", _wrap_ValueIterator_equals},
4038     {"get_value", _wrap_ValueIterator_get_value},
4039     {"next", _wrap_ValueIterator_next},
4040     {0,0}
4041 };
4042 static swig_attribute swig_Xapian_ValueIterator_attributes[] = {
4043     {0,0,0}
4044 };
4045 static swig_class *swig_Xapian_ValueIterator_bases[] = {0};
4046 static const char * swig_Xapian_ValueIterator_base_names[] = {0};
4047 static swig_class _wrap_class_Xapian_ValueIterator = { "ValueIterator", &SWIGTYPE_p_Xapian__ValueIterator,_wrap_new_ValueIterator, swig_delete_ValueIterator, swig_Xapian_ValueIterator_methods, swig_Xapian_ValueIterator_attributes, swig_Xapian_ValueIterator_bases,swig_Xapian_ValueIterator_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
4048 SWIGINTERN int
_wrap_new_Document__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])4049 _wrap_new_Document__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4050   Xapian::Document *arg1 = 0 ;
4051   void *argp1 ;
4052   int res1 = 0 ;
4053   Xapian::Document *result = 0 ;
4054 
4055   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_Document other ",(void *)0) == TCL_ERROR) SWIG_fail;
4056   res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_Xapian__Document,  0 );
4057   if (!SWIG_IsOK(res1)) {
4058     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Document" "', argument " "1"" of type '" "Xapian::Document const &""'");
4059   }
4060   if (!argp1) {
4061     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Document" "', argument " "1"" of type '" "Xapian::Document const &""'");
4062   }
4063   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
4064   {
4065     try {
4066       result = (Xapian::Document *)new Xapian::Document((Xapian::Document const &)*arg1);
4067     } catch (const Xapian::Error &e) {
4068       return XapianTclHandleError(interp, e);
4069     } catch (...) {
4070       return XapianTclHandleError(interp);
4071     }
4072   }
4073   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Document,0));
4074   return TCL_OK;
4075 fail:
4076   return TCL_ERROR;
4077 }
4078 
4079 
4080 SWIGINTERN int
_wrap_new_Document__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])4081 _wrap_new_Document__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4082   Xapian::Document *result = 0 ;
4083 
4084   if (SWIG_GetArgs(interp, objc, objv,":xapian::new_Document ") == TCL_ERROR) SWIG_fail;
4085   {
4086     try {
4087       result = (Xapian::Document *)new Xapian::Document();
4088     } catch (const Xapian::Error &e) {
4089       return XapianTclHandleError(interp, e);
4090     } catch (...) {
4091       return XapianTclHandleError(interp);
4092     }
4093   }
4094   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Document,0));
4095   return TCL_OK;
4096 fail:
4097   return TCL_ERROR;
4098 }
4099 
4100 
4101 SWIGINTERN int
_wrap_new_Document(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])4102 _wrap_new_Document(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4103   Tcl_Obj *CONST *argv = objv+1;
4104   int argc = objc-1;
4105   if (argc == 0) {
4106     return _wrap_new_Document__SWIG_1(clientData, interp, objc, argv - 1);
4107   }
4108   if (argc == 1) {
4109     int _v;
4110     void *vptr = 0;
4111     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Document, 0);
4112     _v = SWIG_CheckState(res);
4113     if (_v) {
4114       return _wrap_new_Document__SWIG_0(clientData, interp, objc, argv - 1);
4115     }
4116   }
4117 
4118   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_Document'.\n"
4119     "  Possible C/C++ prototypes are:\n"
4120     "    Xapian::Document::Document(Xapian::Document const &)\n"
4121     "    Xapian::Document::Document()\n", TCL_STATIC);
4122   return TCL_ERROR;
4123 }
4124 
4125 
4126 SWIGINTERN int
_wrap_delete_Document(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])4127 _wrap_delete_Document(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4128   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
4129   void *argp1 = 0 ;
4130   int res1 = 0 ;
4131 
4132   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_Document self ",(void *)0) == TCL_ERROR) SWIG_fail;
4133   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Document, SWIG_POINTER_DISOWN |  0 );
4134   if (!SWIG_IsOK(res1)) {
4135     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Document" "', argument " "1"" of type '" "Xapian::Document *""'");
4136   }
4137   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
4138   {
4139     try {
4140       delete arg1;
4141     } catch (const Xapian::Error &e) {
4142       return XapianTclHandleError(interp, e);
4143     } catch (...) {
4144       return XapianTclHandleError(interp);
4145     }
4146   }
4147 
4148   return TCL_OK;
4149 fail:
4150   return TCL_ERROR;
4151 }
4152 
4153 
4154 SWIGINTERN int
_wrap_Document_get_value(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])4155 _wrap_Document_get_value(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4156   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
4157   Xapian::valueno arg2 ;
4158   void *argp1 = 0 ;
4159   int res1 = 0 ;
4160   unsigned int val2 ;
4161   int ecode2 = 0 ;
4162   std::string result;
4163 
4164   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Document_get_value self slot ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
4165   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
4166   if (!SWIG_IsOK(res1)) {
4167     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_get_value" "', argument " "1"" of type '" "Xapian::Document const *""'");
4168   }
4169   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
4170   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
4171   if (!SWIG_IsOK(ecode2)) {
4172     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Document_get_value" "', argument " "2"" of type '" "Xapian::valueno""'");
4173   }
4174   arg2 = static_cast< Xapian::valueno >(val2);
4175   {
4176     try {
4177       result = ((Xapian::Document const *)arg1)->get_value(arg2);
4178     } catch (const Xapian::Error &e) {
4179       return XapianTclHandleError(interp, e);
4180     } catch (...) {
4181       return XapianTclHandleError(interp);
4182     }
4183   }
4184   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
4185   return TCL_OK;
4186 fail:
4187   return TCL_ERROR;
4188 }
4189 
4190 
4191 SWIGINTERN int
_wrap_Document_add_value(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])4192 _wrap_Document_add_value(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4193   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
4194   Xapian::valueno arg2 ;
4195   std::string *arg3 = 0 ;
4196   void *argp1 = 0 ;
4197   int res1 = 0 ;
4198   unsigned int val2 ;
4199   int ecode2 = 0 ;
4200   int res3 = SWIG_OLDOBJ ;
4201 
4202   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::Document_add_value self slot value ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
4203   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
4204   if (!SWIG_IsOK(res1)) {
4205     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_add_value" "', argument " "1"" of type '" "Xapian::Document *""'");
4206   }
4207   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
4208   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
4209   if (!SWIG_IsOK(ecode2)) {
4210     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Document_add_value" "', argument " "2"" of type '" "Xapian::valueno""'");
4211   }
4212   arg2 = static_cast< Xapian::valueno >(val2);
4213   {
4214     std::string *ptr = (std::string *)0;
4215     res3 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[3], &ptr);
4216     if (!SWIG_IsOK(res3)) {
4217       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Document_add_value" "', argument " "3"" of type '" "std::string const &""'");
4218     }
4219     if (!ptr) {
4220       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Document_add_value" "', argument " "3"" of type '" "std::string const &""'");
4221     }
4222     arg3 = ptr;
4223   }
4224   {
4225     try {
4226       (arg1)->add_value(arg2,(std::string const &)*arg3);
4227     } catch (const Xapian::Error &e) {
4228       return XapianTclHandleError(interp, e);
4229     } catch (...) {
4230       return XapianTclHandleError(interp);
4231     }
4232   }
4233 
4234   if (SWIG_IsNewObj(res3)) delete arg3;
4235   return TCL_OK;
4236 fail:
4237   if (SWIG_IsNewObj(res3)) delete arg3;
4238   return TCL_ERROR;
4239 }
4240 
4241 
4242 SWIGINTERN int
_wrap_Document_remove_value(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])4243 _wrap_Document_remove_value(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4244   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
4245   Xapian::valueno arg2 ;
4246   void *argp1 = 0 ;
4247   int res1 = 0 ;
4248   unsigned int val2 ;
4249   int ecode2 = 0 ;
4250 
4251   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Document_remove_value self slot ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
4252   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
4253   if (!SWIG_IsOK(res1)) {
4254     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_remove_value" "', argument " "1"" of type '" "Xapian::Document *""'");
4255   }
4256   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
4257   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
4258   if (!SWIG_IsOK(ecode2)) {
4259     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Document_remove_value" "', argument " "2"" of type '" "Xapian::valueno""'");
4260   }
4261   arg2 = static_cast< Xapian::valueno >(val2);
4262   {
4263     try {
4264       (arg1)->remove_value(arg2);
4265     } catch (const Xapian::Error &e) {
4266       return XapianTclHandleError(interp, e);
4267     } catch (...) {
4268       return XapianTclHandleError(interp);
4269     }
4270   }
4271 
4272   return TCL_OK;
4273 fail:
4274   return TCL_ERROR;
4275 }
4276 
4277 
4278 SWIGINTERN int
_wrap_Document_clear_values(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])4279 _wrap_Document_clear_values(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4280   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
4281   void *argp1 = 0 ;
4282   int res1 = 0 ;
4283 
4284   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Document_clear_values self ",(void *)0) == TCL_ERROR) SWIG_fail;
4285   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
4286   if (!SWIG_IsOK(res1)) {
4287     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_clear_values" "', argument " "1"" of type '" "Xapian::Document *""'");
4288   }
4289   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
4290   {
4291     try {
4292       (arg1)->clear_values();
4293     } catch (const Xapian::Error &e) {
4294       return XapianTclHandleError(interp, e);
4295     } catch (...) {
4296       return XapianTclHandleError(interp);
4297     }
4298   }
4299 
4300   return TCL_OK;
4301 fail:
4302   return TCL_ERROR;
4303 }
4304 
4305 
4306 SWIGINTERN int
_wrap_Document_get_data(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])4307 _wrap_Document_get_data(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4308   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
4309   void *argp1 = 0 ;
4310   int res1 = 0 ;
4311   std::string result;
4312 
4313   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Document_get_data self ",(void *)0) == TCL_ERROR) SWIG_fail;
4314   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
4315   if (!SWIG_IsOK(res1)) {
4316     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_get_data" "', argument " "1"" of type '" "Xapian::Document const *""'");
4317   }
4318   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
4319   {
4320     try {
4321       result = ((Xapian::Document const *)arg1)->get_data();
4322     } catch (const Xapian::Error &e) {
4323       return XapianTclHandleError(interp, e);
4324     } catch (...) {
4325       return XapianTclHandleError(interp);
4326     }
4327   }
4328   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
4329   return TCL_OK;
4330 fail:
4331   return TCL_ERROR;
4332 }
4333 
4334 
4335 SWIGINTERN int
_wrap_Document_set_data(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])4336 _wrap_Document_set_data(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4337   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
4338   std::string *arg2 = 0 ;
4339   void *argp1 = 0 ;
4340   int res1 = 0 ;
4341   int res2 = SWIG_OLDOBJ ;
4342 
4343   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Document_set_data self data ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
4344   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
4345   if (!SWIG_IsOK(res1)) {
4346     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_set_data" "', argument " "1"" of type '" "Xapian::Document *""'");
4347   }
4348   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
4349   {
4350     std::string *ptr = (std::string *)0;
4351     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
4352     if (!SWIG_IsOK(res2)) {
4353       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Document_set_data" "', argument " "2"" of type '" "std::string const &""'");
4354     }
4355     if (!ptr) {
4356       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Document_set_data" "', argument " "2"" of type '" "std::string const &""'");
4357     }
4358     arg2 = ptr;
4359   }
4360   {
4361     try {
4362       (arg1)->set_data((std::string const &)*arg2);
4363     } catch (const Xapian::Error &e) {
4364       return XapianTclHandleError(interp, e);
4365     } catch (...) {
4366       return XapianTclHandleError(interp);
4367     }
4368   }
4369 
4370   if (SWIG_IsNewObj(res2)) delete arg2;
4371   return TCL_OK;
4372 fail:
4373   if (SWIG_IsNewObj(res2)) delete arg2;
4374   return TCL_ERROR;
4375 }
4376 
4377 
4378 SWIGINTERN int
_wrap_Document_add_posting__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])4379 _wrap_Document_add_posting__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4380   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
4381   std::string *arg2 = 0 ;
4382   Xapian::termpos arg3 ;
4383   Xapian::termcount arg4 ;
4384   void *argp1 = 0 ;
4385   int res1 = 0 ;
4386   int res2 = SWIG_OLDOBJ ;
4387   unsigned int val3 ;
4388   int ecode3 = 0 ;
4389   unsigned int val4 ;
4390   int ecode4 = 0 ;
4391 
4392   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::Document_add_posting self tname tpos wdfinc ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
4393   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
4394   if (!SWIG_IsOK(res1)) {
4395     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_add_posting" "', argument " "1"" of type '" "Xapian::Document *""'");
4396   }
4397   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
4398   {
4399     std::string *ptr = (std::string *)0;
4400     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
4401     if (!SWIG_IsOK(res2)) {
4402       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Document_add_posting" "', argument " "2"" of type '" "std::string const &""'");
4403     }
4404     if (!ptr) {
4405       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Document_add_posting" "', argument " "2"" of type '" "std::string const &""'");
4406     }
4407     arg2 = ptr;
4408   }
4409   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
4410   if (!SWIG_IsOK(ecode3)) {
4411     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Document_add_posting" "', argument " "3"" of type '" "Xapian::termpos""'");
4412   }
4413   arg3 = static_cast< Xapian::termpos >(val3);
4414   ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
4415   if (!SWIG_IsOK(ecode4)) {
4416     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Document_add_posting" "', argument " "4"" of type '" "Xapian::termcount""'");
4417   }
4418   arg4 = static_cast< Xapian::termcount >(val4);
4419   {
4420     try {
4421       (arg1)->add_posting((std::string const &)*arg2,arg3,arg4);
4422     } catch (const Xapian::Error &e) {
4423       return XapianTclHandleError(interp, e);
4424     } catch (...) {
4425       return XapianTclHandleError(interp);
4426     }
4427   }
4428 
4429   if (SWIG_IsNewObj(res2)) delete arg2;
4430   return TCL_OK;
4431 fail:
4432   if (SWIG_IsNewObj(res2)) delete arg2;
4433   return TCL_ERROR;
4434 }
4435 
4436 
4437 SWIGINTERN int
_wrap_Document_add_posting__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])4438 _wrap_Document_add_posting__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4439   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
4440   std::string *arg2 = 0 ;
4441   Xapian::termpos arg3 ;
4442   void *argp1 = 0 ;
4443   int res1 = 0 ;
4444   int res2 = SWIG_OLDOBJ ;
4445   unsigned int val3 ;
4446   int ecode3 = 0 ;
4447 
4448   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::Document_add_posting self tname tpos ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
4449   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
4450   if (!SWIG_IsOK(res1)) {
4451     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_add_posting" "', argument " "1"" of type '" "Xapian::Document *""'");
4452   }
4453   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
4454   {
4455     std::string *ptr = (std::string *)0;
4456     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
4457     if (!SWIG_IsOK(res2)) {
4458       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Document_add_posting" "', argument " "2"" of type '" "std::string const &""'");
4459     }
4460     if (!ptr) {
4461       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Document_add_posting" "', argument " "2"" of type '" "std::string const &""'");
4462     }
4463     arg2 = ptr;
4464   }
4465   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
4466   if (!SWIG_IsOK(ecode3)) {
4467     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Document_add_posting" "', argument " "3"" of type '" "Xapian::termpos""'");
4468   }
4469   arg3 = static_cast< Xapian::termpos >(val3);
4470   {
4471     try {
4472       (arg1)->add_posting((std::string const &)*arg2,arg3);
4473     } catch (const Xapian::Error &e) {
4474       return XapianTclHandleError(interp, e);
4475     } catch (...) {
4476       return XapianTclHandleError(interp);
4477     }
4478   }
4479 
4480   if (SWIG_IsNewObj(res2)) delete arg2;
4481   return TCL_OK;
4482 fail:
4483   if (SWIG_IsNewObj(res2)) delete arg2;
4484   return TCL_ERROR;
4485 }
4486 
4487 
4488 SWIGINTERN int
_wrap_Document_add_posting(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])4489 _wrap_Document_add_posting(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4490   Tcl_Obj *CONST *argv = objv+1;
4491   int argc = objc-1;
4492   if (argc == 3) {
4493     int _v;
4494     void *vptr = 0;
4495     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Document, 0);
4496     _v = SWIG_CheckState(res);
4497     if (_v) {
4498       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
4499       _v = SWIG_CheckState(res);
4500       if (_v) {
4501         {
4502           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
4503           _v = SWIG_CheckState(res);
4504         }
4505         if (_v) {
4506           return _wrap_Document_add_posting__SWIG_1(clientData, interp, objc, argv - 1);
4507         }
4508       }
4509     }
4510   }
4511   if (argc == 4) {
4512     int _v;
4513     void *vptr = 0;
4514     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Document, 0);
4515     _v = SWIG_CheckState(res);
4516     if (_v) {
4517       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
4518       _v = SWIG_CheckState(res);
4519       if (_v) {
4520         {
4521           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
4522           _v = SWIG_CheckState(res);
4523         }
4524         if (_v) {
4525           {
4526             int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
4527             _v = SWIG_CheckState(res);
4528           }
4529           if (_v) {
4530             return _wrap_Document_add_posting__SWIG_0(clientData, interp, objc, argv - 1);
4531           }
4532         }
4533       }
4534     }
4535   }
4536 
4537   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'Document_add_posting'.\n"
4538     "  Possible C/C++ prototypes are:\n"
4539     "    Xapian::Document::add_posting(std::string const &,Xapian::termpos,Xapian::termcount)\n"
4540     "    Xapian::Document::add_posting(std::string const &,Xapian::termpos)\n", TCL_STATIC);
4541   return TCL_ERROR;
4542 }
4543 
4544 
4545 SWIGINTERN int
_wrap_Document_add_term__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])4546 _wrap_Document_add_term__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4547   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
4548   std::string *arg2 = 0 ;
4549   Xapian::termcount arg3 ;
4550   void *argp1 = 0 ;
4551   int res1 = 0 ;
4552   int res2 = SWIG_OLDOBJ ;
4553   unsigned int val3 ;
4554   int ecode3 = 0 ;
4555 
4556   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::Document_add_term self tname wdfinc ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
4557   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
4558   if (!SWIG_IsOK(res1)) {
4559     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_add_term" "', argument " "1"" of type '" "Xapian::Document *""'");
4560   }
4561   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
4562   {
4563     std::string *ptr = (std::string *)0;
4564     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
4565     if (!SWIG_IsOK(res2)) {
4566       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Document_add_term" "', argument " "2"" of type '" "std::string const &""'");
4567     }
4568     if (!ptr) {
4569       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Document_add_term" "', argument " "2"" of type '" "std::string const &""'");
4570     }
4571     arg2 = ptr;
4572   }
4573   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
4574   if (!SWIG_IsOK(ecode3)) {
4575     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Document_add_term" "', argument " "3"" of type '" "Xapian::termcount""'");
4576   }
4577   arg3 = static_cast< Xapian::termcount >(val3);
4578   {
4579     try {
4580       (arg1)->add_term((std::string const &)*arg2,arg3);
4581     } catch (const Xapian::Error &e) {
4582       return XapianTclHandleError(interp, e);
4583     } catch (...) {
4584       return XapianTclHandleError(interp);
4585     }
4586   }
4587 
4588   if (SWIG_IsNewObj(res2)) delete arg2;
4589   return TCL_OK;
4590 fail:
4591   if (SWIG_IsNewObj(res2)) delete arg2;
4592   return TCL_ERROR;
4593 }
4594 
4595 
4596 SWIGINTERN int
_wrap_Document_add_term__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])4597 _wrap_Document_add_term__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4598   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
4599   std::string *arg2 = 0 ;
4600   void *argp1 = 0 ;
4601   int res1 = 0 ;
4602   int res2 = SWIG_OLDOBJ ;
4603 
4604   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Document_add_term self tname ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
4605   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
4606   if (!SWIG_IsOK(res1)) {
4607     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_add_term" "', argument " "1"" of type '" "Xapian::Document *""'");
4608   }
4609   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
4610   {
4611     std::string *ptr = (std::string *)0;
4612     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
4613     if (!SWIG_IsOK(res2)) {
4614       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Document_add_term" "', argument " "2"" of type '" "std::string const &""'");
4615     }
4616     if (!ptr) {
4617       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Document_add_term" "', argument " "2"" of type '" "std::string const &""'");
4618     }
4619     arg2 = ptr;
4620   }
4621   {
4622     try {
4623       (arg1)->add_term((std::string const &)*arg2);
4624     } catch (const Xapian::Error &e) {
4625       return XapianTclHandleError(interp, e);
4626     } catch (...) {
4627       return XapianTclHandleError(interp);
4628     }
4629   }
4630 
4631   if (SWIG_IsNewObj(res2)) delete arg2;
4632   return TCL_OK;
4633 fail:
4634   if (SWIG_IsNewObj(res2)) delete arg2;
4635   return TCL_ERROR;
4636 }
4637 
4638 
4639 SWIGINTERN int
_wrap_Document_add_term(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])4640 _wrap_Document_add_term(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4641   Tcl_Obj *CONST *argv = objv+1;
4642   int argc = objc-1;
4643   if (argc == 2) {
4644     int _v;
4645     void *vptr = 0;
4646     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Document, 0);
4647     _v = SWIG_CheckState(res);
4648     if (_v) {
4649       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
4650       _v = SWIG_CheckState(res);
4651       if (_v) {
4652         return _wrap_Document_add_term__SWIG_1(clientData, interp, objc, argv - 1);
4653       }
4654     }
4655   }
4656   if (argc == 3) {
4657     int _v;
4658     void *vptr = 0;
4659     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Document, 0);
4660     _v = SWIG_CheckState(res);
4661     if (_v) {
4662       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
4663       _v = SWIG_CheckState(res);
4664       if (_v) {
4665         {
4666           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
4667           _v = SWIG_CheckState(res);
4668         }
4669         if (_v) {
4670           return _wrap_Document_add_term__SWIG_0(clientData, interp, objc, argv - 1);
4671         }
4672       }
4673     }
4674   }
4675 
4676   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'Document_add_term'.\n"
4677     "  Possible C/C++ prototypes are:\n"
4678     "    Xapian::Document::add_term(std::string const &,Xapian::termcount)\n"
4679     "    Xapian::Document::add_term(std::string const &)\n", TCL_STATIC);
4680   return TCL_ERROR;
4681 }
4682 
4683 
4684 SWIGINTERN int
_wrap_Document_add_boolean_term(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])4685 _wrap_Document_add_boolean_term(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4686   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
4687   std::string *arg2 = 0 ;
4688   void *argp1 = 0 ;
4689   int res1 = 0 ;
4690   int res2 = SWIG_OLDOBJ ;
4691 
4692   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Document_add_boolean_term self term ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
4693   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
4694   if (!SWIG_IsOK(res1)) {
4695     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_add_boolean_term" "', argument " "1"" of type '" "Xapian::Document *""'");
4696   }
4697   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
4698   {
4699     std::string *ptr = (std::string *)0;
4700     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
4701     if (!SWIG_IsOK(res2)) {
4702       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Document_add_boolean_term" "', argument " "2"" of type '" "std::string const &""'");
4703     }
4704     if (!ptr) {
4705       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Document_add_boolean_term" "', argument " "2"" of type '" "std::string const &""'");
4706     }
4707     arg2 = ptr;
4708   }
4709   {
4710     try {
4711       (arg1)->add_boolean_term((std::string const &)*arg2);
4712     } catch (const Xapian::Error &e) {
4713       return XapianTclHandleError(interp, e);
4714     } catch (...) {
4715       return XapianTclHandleError(interp);
4716     }
4717   }
4718 
4719   if (SWIG_IsNewObj(res2)) delete arg2;
4720   return TCL_OK;
4721 fail:
4722   if (SWIG_IsNewObj(res2)) delete arg2;
4723   return TCL_ERROR;
4724 }
4725 
4726 
4727 SWIGINTERN int
_wrap_Document_remove_posting__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])4728 _wrap_Document_remove_posting__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4729   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
4730   std::string *arg2 = 0 ;
4731   Xapian::termpos arg3 ;
4732   Xapian::termcount arg4 ;
4733   void *argp1 = 0 ;
4734   int res1 = 0 ;
4735   int res2 = SWIG_OLDOBJ ;
4736   unsigned int val3 ;
4737   int ecode3 = 0 ;
4738   unsigned int val4 ;
4739   int ecode4 = 0 ;
4740 
4741   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::Document_remove_posting self tname tpos wdfdec ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
4742   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
4743   if (!SWIG_IsOK(res1)) {
4744     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_remove_posting" "', argument " "1"" of type '" "Xapian::Document *""'");
4745   }
4746   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
4747   {
4748     std::string *ptr = (std::string *)0;
4749     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
4750     if (!SWIG_IsOK(res2)) {
4751       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Document_remove_posting" "', argument " "2"" of type '" "std::string const &""'");
4752     }
4753     if (!ptr) {
4754       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Document_remove_posting" "', argument " "2"" of type '" "std::string const &""'");
4755     }
4756     arg2 = ptr;
4757   }
4758   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
4759   if (!SWIG_IsOK(ecode3)) {
4760     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Document_remove_posting" "', argument " "3"" of type '" "Xapian::termpos""'");
4761   }
4762   arg3 = static_cast< Xapian::termpos >(val3);
4763   ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
4764   if (!SWIG_IsOK(ecode4)) {
4765     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Document_remove_posting" "', argument " "4"" of type '" "Xapian::termcount""'");
4766   }
4767   arg4 = static_cast< Xapian::termcount >(val4);
4768   {
4769     try {
4770       (arg1)->remove_posting((std::string const &)*arg2,arg3,arg4);
4771     } catch (const Xapian::Error &e) {
4772       return XapianTclHandleError(interp, e);
4773     } catch (...) {
4774       return XapianTclHandleError(interp);
4775     }
4776   }
4777 
4778   if (SWIG_IsNewObj(res2)) delete arg2;
4779   return TCL_OK;
4780 fail:
4781   if (SWIG_IsNewObj(res2)) delete arg2;
4782   return TCL_ERROR;
4783 }
4784 
4785 
4786 SWIGINTERN int
_wrap_Document_remove_posting__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])4787 _wrap_Document_remove_posting__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4788   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
4789   std::string *arg2 = 0 ;
4790   Xapian::termpos arg3 ;
4791   void *argp1 = 0 ;
4792   int res1 = 0 ;
4793   int res2 = SWIG_OLDOBJ ;
4794   unsigned int val3 ;
4795   int ecode3 = 0 ;
4796 
4797   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::Document_remove_posting self tname tpos ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
4798   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
4799   if (!SWIG_IsOK(res1)) {
4800     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_remove_posting" "', argument " "1"" of type '" "Xapian::Document *""'");
4801   }
4802   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
4803   {
4804     std::string *ptr = (std::string *)0;
4805     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
4806     if (!SWIG_IsOK(res2)) {
4807       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Document_remove_posting" "', argument " "2"" of type '" "std::string const &""'");
4808     }
4809     if (!ptr) {
4810       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Document_remove_posting" "', argument " "2"" of type '" "std::string const &""'");
4811     }
4812     arg2 = ptr;
4813   }
4814   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
4815   if (!SWIG_IsOK(ecode3)) {
4816     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Document_remove_posting" "', argument " "3"" of type '" "Xapian::termpos""'");
4817   }
4818   arg3 = static_cast< Xapian::termpos >(val3);
4819   {
4820     try {
4821       (arg1)->remove_posting((std::string const &)*arg2,arg3);
4822     } catch (const Xapian::Error &e) {
4823       return XapianTclHandleError(interp, e);
4824     } catch (...) {
4825       return XapianTclHandleError(interp);
4826     }
4827   }
4828 
4829   if (SWIG_IsNewObj(res2)) delete arg2;
4830   return TCL_OK;
4831 fail:
4832   if (SWIG_IsNewObj(res2)) delete arg2;
4833   return TCL_ERROR;
4834 }
4835 
4836 
4837 SWIGINTERN int
_wrap_Document_remove_posting(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])4838 _wrap_Document_remove_posting(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4839   Tcl_Obj *CONST *argv = objv+1;
4840   int argc = objc-1;
4841   if (argc == 3) {
4842     int _v;
4843     void *vptr = 0;
4844     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Document, 0);
4845     _v = SWIG_CheckState(res);
4846     if (_v) {
4847       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
4848       _v = SWIG_CheckState(res);
4849       if (_v) {
4850         {
4851           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
4852           _v = SWIG_CheckState(res);
4853         }
4854         if (_v) {
4855           return _wrap_Document_remove_posting__SWIG_1(clientData, interp, objc, argv - 1);
4856         }
4857       }
4858     }
4859   }
4860   if (argc == 4) {
4861     int _v;
4862     void *vptr = 0;
4863     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Document, 0);
4864     _v = SWIG_CheckState(res);
4865     if (_v) {
4866       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
4867       _v = SWIG_CheckState(res);
4868       if (_v) {
4869         {
4870           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
4871           _v = SWIG_CheckState(res);
4872         }
4873         if (_v) {
4874           {
4875             int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
4876             _v = SWIG_CheckState(res);
4877           }
4878           if (_v) {
4879             return _wrap_Document_remove_posting__SWIG_0(clientData, interp, objc, argv - 1);
4880           }
4881         }
4882       }
4883     }
4884   }
4885 
4886   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'Document_remove_posting'.\n"
4887     "  Possible C/C++ prototypes are:\n"
4888     "    Xapian::Document::remove_posting(std::string const &,Xapian::termpos,Xapian::termcount)\n"
4889     "    Xapian::Document::remove_posting(std::string const &,Xapian::termpos)\n", TCL_STATIC);
4890   return TCL_ERROR;
4891 }
4892 
4893 
4894 SWIGINTERN int
_wrap_Document_remove_postings__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])4895 _wrap_Document_remove_postings__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4896   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
4897   std::string *arg2 = 0 ;
4898   Xapian::termpos arg3 ;
4899   Xapian::termpos arg4 ;
4900   Xapian::termcount arg5 ;
4901   void *argp1 = 0 ;
4902   int res1 = 0 ;
4903   int res2 = SWIG_OLDOBJ ;
4904   unsigned int val3 ;
4905   int ecode3 = 0 ;
4906   unsigned int val4 ;
4907   int ecode4 = 0 ;
4908   unsigned int val5 ;
4909   int ecode5 = 0 ;
4910   Xapian::termpos result;
4911 
4912   if (SWIG_GetArgs(interp, objc, objv,"ooooo:xapian::Document_remove_postings self term term_pos_first term_pos_last wdf_dec ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
4913   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
4914   if (!SWIG_IsOK(res1)) {
4915     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_remove_postings" "', argument " "1"" of type '" "Xapian::Document *""'");
4916   }
4917   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
4918   {
4919     std::string *ptr = (std::string *)0;
4920     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
4921     if (!SWIG_IsOK(res2)) {
4922       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Document_remove_postings" "', argument " "2"" of type '" "std::string const &""'");
4923     }
4924     if (!ptr) {
4925       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Document_remove_postings" "', argument " "2"" of type '" "std::string const &""'");
4926     }
4927     arg2 = ptr;
4928   }
4929   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
4930   if (!SWIG_IsOK(ecode3)) {
4931     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Document_remove_postings" "', argument " "3"" of type '" "Xapian::termpos""'");
4932   }
4933   arg3 = static_cast< Xapian::termpos >(val3);
4934   ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
4935   if (!SWIG_IsOK(ecode4)) {
4936     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Document_remove_postings" "', argument " "4"" of type '" "Xapian::termpos""'");
4937   }
4938   arg4 = static_cast< Xapian::termpos >(val4);
4939   ecode5 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
4940   if (!SWIG_IsOK(ecode5)) {
4941     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Document_remove_postings" "', argument " "5"" of type '" "Xapian::termcount""'");
4942   }
4943   arg5 = static_cast< Xapian::termcount >(val5);
4944   {
4945     try {
4946       result = (Xapian::termpos)(arg1)->remove_postings((std::string const &)*arg2,arg3,arg4,arg5);
4947     } catch (const Xapian::Error &e) {
4948       return XapianTclHandleError(interp, e);
4949     } catch (...) {
4950       return XapianTclHandleError(interp);
4951     }
4952   }
4953   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
4954   if (SWIG_IsNewObj(res2)) delete arg2;
4955   return TCL_OK;
4956 fail:
4957   if (SWIG_IsNewObj(res2)) delete arg2;
4958   return TCL_ERROR;
4959 }
4960 
4961 
4962 SWIGINTERN int
_wrap_Document_remove_postings__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])4963 _wrap_Document_remove_postings__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4964   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
4965   std::string *arg2 = 0 ;
4966   Xapian::termpos arg3 ;
4967   Xapian::termpos arg4 ;
4968   void *argp1 = 0 ;
4969   int res1 = 0 ;
4970   int res2 = SWIG_OLDOBJ ;
4971   unsigned int val3 ;
4972   int ecode3 = 0 ;
4973   unsigned int val4 ;
4974   int ecode4 = 0 ;
4975   Xapian::termpos result;
4976 
4977   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::Document_remove_postings self term term_pos_first term_pos_last ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
4978   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
4979   if (!SWIG_IsOK(res1)) {
4980     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_remove_postings" "', argument " "1"" of type '" "Xapian::Document *""'");
4981   }
4982   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
4983   {
4984     std::string *ptr = (std::string *)0;
4985     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
4986     if (!SWIG_IsOK(res2)) {
4987       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Document_remove_postings" "', argument " "2"" of type '" "std::string const &""'");
4988     }
4989     if (!ptr) {
4990       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Document_remove_postings" "', argument " "2"" of type '" "std::string const &""'");
4991     }
4992     arg2 = ptr;
4993   }
4994   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
4995   if (!SWIG_IsOK(ecode3)) {
4996     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Document_remove_postings" "', argument " "3"" of type '" "Xapian::termpos""'");
4997   }
4998   arg3 = static_cast< Xapian::termpos >(val3);
4999   ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
5000   if (!SWIG_IsOK(ecode4)) {
5001     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Document_remove_postings" "', argument " "4"" of type '" "Xapian::termpos""'");
5002   }
5003   arg4 = static_cast< Xapian::termpos >(val4);
5004   {
5005     try {
5006       result = (Xapian::termpos)(arg1)->remove_postings((std::string const &)*arg2,arg3,arg4);
5007     } catch (const Xapian::Error &e) {
5008       return XapianTclHandleError(interp, e);
5009     } catch (...) {
5010       return XapianTclHandleError(interp);
5011     }
5012   }
5013   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
5014   if (SWIG_IsNewObj(res2)) delete arg2;
5015   return TCL_OK;
5016 fail:
5017   if (SWIG_IsNewObj(res2)) delete arg2;
5018   return TCL_ERROR;
5019 }
5020 
5021 
5022 SWIGINTERN int
_wrap_Document_remove_postings(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])5023 _wrap_Document_remove_postings(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5024   Tcl_Obj *CONST *argv = objv+1;
5025   int argc = objc-1;
5026   if (argc == 4) {
5027     int _v;
5028     void *vptr = 0;
5029     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Document, 0);
5030     _v = SWIG_CheckState(res);
5031     if (_v) {
5032       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
5033       _v = SWIG_CheckState(res);
5034       if (_v) {
5035         {
5036           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
5037           _v = SWIG_CheckState(res);
5038         }
5039         if (_v) {
5040           {
5041             int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
5042             _v = SWIG_CheckState(res);
5043           }
5044           if (_v) {
5045             return _wrap_Document_remove_postings__SWIG_1(clientData, interp, objc, argv - 1);
5046           }
5047         }
5048       }
5049     }
5050   }
5051   if (argc == 5) {
5052     int _v;
5053     void *vptr = 0;
5054     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Document, 0);
5055     _v = SWIG_CheckState(res);
5056     if (_v) {
5057       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
5058       _v = SWIG_CheckState(res);
5059       if (_v) {
5060         {
5061           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
5062           _v = SWIG_CheckState(res);
5063         }
5064         if (_v) {
5065           {
5066             int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
5067             _v = SWIG_CheckState(res);
5068           }
5069           if (_v) {
5070             {
5071               int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[4], NULL);
5072               _v = SWIG_CheckState(res);
5073             }
5074             if (_v) {
5075               return _wrap_Document_remove_postings__SWIG_0(clientData, interp, objc, argv - 1);
5076             }
5077           }
5078         }
5079       }
5080     }
5081   }
5082 
5083   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'Document_remove_postings'.\n"
5084     "  Possible C/C++ prototypes are:\n"
5085     "    Xapian::Document::remove_postings(std::string const &,Xapian::termpos,Xapian::termpos,Xapian::termcount)\n"
5086     "    Xapian::Document::remove_postings(std::string const &,Xapian::termpos,Xapian::termpos)\n", TCL_STATIC);
5087   return TCL_ERROR;
5088 }
5089 
5090 
5091 SWIGINTERN int
_wrap_Document_remove_term(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])5092 _wrap_Document_remove_term(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5093   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
5094   std::string *arg2 = 0 ;
5095   void *argp1 = 0 ;
5096   int res1 = 0 ;
5097   int res2 = SWIG_OLDOBJ ;
5098 
5099   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Document_remove_term self tname ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
5100   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
5101   if (!SWIG_IsOK(res1)) {
5102     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_remove_term" "', argument " "1"" of type '" "Xapian::Document *""'");
5103   }
5104   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
5105   {
5106     std::string *ptr = (std::string *)0;
5107     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
5108     if (!SWIG_IsOK(res2)) {
5109       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Document_remove_term" "', argument " "2"" of type '" "std::string const &""'");
5110     }
5111     if (!ptr) {
5112       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Document_remove_term" "', argument " "2"" of type '" "std::string const &""'");
5113     }
5114     arg2 = ptr;
5115   }
5116   {
5117     try {
5118       (arg1)->remove_term((std::string const &)*arg2);
5119     } catch (const Xapian::Error &e) {
5120       return XapianTclHandleError(interp, e);
5121     } catch (...) {
5122       return XapianTclHandleError(interp);
5123     }
5124   }
5125 
5126   if (SWIG_IsNewObj(res2)) delete arg2;
5127   return TCL_OK;
5128 fail:
5129   if (SWIG_IsNewObj(res2)) delete arg2;
5130   return TCL_ERROR;
5131 }
5132 
5133 
5134 SWIGINTERN int
_wrap_Document_clear_terms(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])5135 _wrap_Document_clear_terms(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5136   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
5137   void *argp1 = 0 ;
5138   int res1 = 0 ;
5139 
5140   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Document_clear_terms self ",(void *)0) == TCL_ERROR) SWIG_fail;
5141   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
5142   if (!SWIG_IsOK(res1)) {
5143     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_clear_terms" "', argument " "1"" of type '" "Xapian::Document *""'");
5144   }
5145   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
5146   {
5147     try {
5148       (arg1)->clear_terms();
5149     } catch (const Xapian::Error &e) {
5150       return XapianTclHandleError(interp, e);
5151     } catch (...) {
5152       return XapianTclHandleError(interp);
5153     }
5154   }
5155 
5156   return TCL_OK;
5157 fail:
5158   return TCL_ERROR;
5159 }
5160 
5161 
5162 SWIGINTERN int
_wrap_Document_termlist_count(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])5163 _wrap_Document_termlist_count(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5164   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
5165   void *argp1 = 0 ;
5166   int res1 = 0 ;
5167   Xapian::termcount result;
5168 
5169   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Document_termlist_count self ",(void *)0) == TCL_ERROR) SWIG_fail;
5170   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
5171   if (!SWIG_IsOK(res1)) {
5172     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_termlist_count" "', argument " "1"" of type '" "Xapian::Document const *""'");
5173   }
5174   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
5175   {
5176     try {
5177       result = (Xapian::termcount)((Xapian::Document const *)arg1)->termlist_count();
5178     } catch (const Xapian::Error &e) {
5179       return XapianTclHandleError(interp, e);
5180     } catch (...) {
5181       return XapianTclHandleError(interp);
5182     }
5183   }
5184   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
5185   return TCL_OK;
5186 fail:
5187   return TCL_ERROR;
5188 }
5189 
5190 
5191 SWIGINTERN int
_wrap_Document_termlist_begin(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])5192 _wrap_Document_termlist_begin(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5193   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
5194   void *argp1 = 0 ;
5195   int res1 = 0 ;
5196   Xapian::TermIterator result;
5197 
5198   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Document_termlist_begin self ",(void *)0) == TCL_ERROR) SWIG_fail;
5199   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
5200   if (!SWIG_IsOK(res1)) {
5201     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_termlist_begin" "', argument " "1"" of type '" "Xapian::Document const *""'");
5202   }
5203   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
5204   {
5205     try {
5206       result = ((Xapian::Document const *)arg1)->termlist_begin();
5207     } catch (const Xapian::Error &e) {
5208       return XapianTclHandleError(interp, e);
5209     } catch (...) {
5210       return XapianTclHandleError(interp);
5211     }
5212   }
5213   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN | 0 ));
5214   return TCL_OK;
5215 fail:
5216   return TCL_ERROR;
5217 }
5218 
5219 
5220 SWIGINTERN int
_wrap_Document_termlist_end(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])5221 _wrap_Document_termlist_end(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5222   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
5223   void *argp1 = 0 ;
5224   int res1 = 0 ;
5225   Xapian::TermIterator result;
5226 
5227   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Document_termlist_end self ",(void *)0) == TCL_ERROR) SWIG_fail;
5228   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
5229   if (!SWIG_IsOK(res1)) {
5230     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_termlist_end" "', argument " "1"" of type '" "Xapian::Document const *""'");
5231   }
5232   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
5233   {
5234     try {
5235       result = ((Xapian::Document const *)arg1)->termlist_end();
5236     } catch (const Xapian::Error &e) {
5237       return XapianTclHandleError(interp, e);
5238     } catch (...) {
5239       return XapianTclHandleError(interp);
5240     }
5241   }
5242   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN | 0 ));
5243   return TCL_OK;
5244 fail:
5245   return TCL_ERROR;
5246 }
5247 
5248 
5249 SWIGINTERN int
_wrap_Document_values_count(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])5250 _wrap_Document_values_count(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5251   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
5252   void *argp1 = 0 ;
5253   int res1 = 0 ;
5254   Xapian::termcount result;
5255 
5256   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Document_values_count self ",(void *)0) == TCL_ERROR) SWIG_fail;
5257   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
5258   if (!SWIG_IsOK(res1)) {
5259     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_values_count" "', argument " "1"" of type '" "Xapian::Document const *""'");
5260   }
5261   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
5262   {
5263     try {
5264       result = (Xapian::termcount)((Xapian::Document const *)arg1)->values_count();
5265     } catch (const Xapian::Error &e) {
5266       return XapianTclHandleError(interp, e);
5267     } catch (...) {
5268       return XapianTclHandleError(interp);
5269     }
5270   }
5271   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
5272   return TCL_OK;
5273 fail:
5274   return TCL_ERROR;
5275 }
5276 
5277 
5278 SWIGINTERN int
_wrap_Document_values_begin(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])5279 _wrap_Document_values_begin(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5280   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
5281   void *argp1 = 0 ;
5282   int res1 = 0 ;
5283   Xapian::ValueIterator result;
5284 
5285   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Document_values_begin self ",(void *)0) == TCL_ERROR) SWIG_fail;
5286   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
5287   if (!SWIG_IsOK(res1)) {
5288     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_values_begin" "', argument " "1"" of type '" "Xapian::Document const *""'");
5289   }
5290   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
5291   {
5292     try {
5293       result = ((Xapian::Document const *)arg1)->values_begin();
5294     } catch (const Xapian::Error &e) {
5295       return XapianTclHandleError(interp, e);
5296     } catch (...) {
5297       return XapianTclHandleError(interp);
5298     }
5299   }
5300   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::ValueIterator(static_cast< const Xapian::ValueIterator& >(result))), SWIGTYPE_p_Xapian__ValueIterator, SWIG_POINTER_OWN | 0 ));
5301   return TCL_OK;
5302 fail:
5303   return TCL_ERROR;
5304 }
5305 
5306 
5307 SWIGINTERN int
_wrap_Document_values_end(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])5308 _wrap_Document_values_end(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5309   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
5310   void *argp1 = 0 ;
5311   int res1 = 0 ;
5312   Xapian::ValueIterator result;
5313 
5314   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Document_values_end self ",(void *)0) == TCL_ERROR) SWIG_fail;
5315   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
5316   if (!SWIG_IsOK(res1)) {
5317     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_values_end" "', argument " "1"" of type '" "Xapian::Document const *""'");
5318   }
5319   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
5320   {
5321     try {
5322       result = ((Xapian::Document const *)arg1)->values_end();
5323     } catch (const Xapian::Error &e) {
5324       return XapianTclHandleError(interp, e);
5325     } catch (...) {
5326       return XapianTclHandleError(interp);
5327     }
5328   }
5329   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::ValueIterator(static_cast< const Xapian::ValueIterator& >(result))), SWIGTYPE_p_Xapian__ValueIterator, SWIG_POINTER_OWN | 0 ));
5330   return TCL_OK;
5331 fail:
5332   return TCL_ERROR;
5333 }
5334 
5335 
5336 SWIGINTERN int
_wrap_Document_get_docid(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])5337 _wrap_Document_get_docid(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5338   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
5339   void *argp1 = 0 ;
5340   int res1 = 0 ;
5341   Xapian::docid result;
5342 
5343   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Document_get_docid self ",(void *)0) == TCL_ERROR) SWIG_fail;
5344   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
5345   if (!SWIG_IsOK(res1)) {
5346     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_get_docid" "', argument " "1"" of type '" "Xapian::Document const *""'");
5347   }
5348   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
5349   {
5350     try {
5351       result = (Xapian::docid)((Xapian::Document const *)arg1)->get_docid();
5352     } catch (const Xapian::Error &e) {
5353       return XapianTclHandleError(interp, e);
5354     } catch (...) {
5355       return XapianTclHandleError(interp);
5356     }
5357   }
5358   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
5359   return TCL_OK;
5360 fail:
5361   return TCL_ERROR;
5362 }
5363 
5364 
5365 SWIGINTERN int
_wrap_Document_serialise(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])5366 _wrap_Document_serialise(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5367   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
5368   void *argp1 = 0 ;
5369   int res1 = 0 ;
5370   std::string result;
5371 
5372   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Document_serialise self ",(void *)0) == TCL_ERROR) SWIG_fail;
5373   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
5374   if (!SWIG_IsOK(res1)) {
5375     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_serialise" "', argument " "1"" of type '" "Xapian::Document const *""'");
5376   }
5377   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
5378   {
5379     try {
5380       result = ((Xapian::Document const *)arg1)->serialise();
5381     } catch (const Xapian::Error &e) {
5382       return XapianTclHandleError(interp, e);
5383     } catch (...) {
5384       return XapianTclHandleError(interp);
5385     }
5386   }
5387   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
5388   return TCL_OK;
5389 fail:
5390   return TCL_ERROR;
5391 }
5392 
5393 
5394 SWIGINTERN int
_wrap_Document_unserialise(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])5395 _wrap_Document_unserialise(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5396   std::string *arg1 = 0 ;
5397   int res1 = SWIG_OLDOBJ ;
5398   Xapian::Document result;
5399 
5400   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Document_unserialise serialised ",(void *)0) == TCL_ERROR) SWIG_fail;
5401   {
5402     std::string *ptr = (std::string *)0;
5403     res1 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[1], &ptr);
5404     if (!SWIG_IsOK(res1)) {
5405       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_unserialise" "', argument " "1"" of type '" "std::string const &""'");
5406     }
5407     if (!ptr) {
5408       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Document_unserialise" "', argument " "1"" of type '" "std::string const &""'");
5409     }
5410     arg1 = ptr;
5411   }
5412   {
5413     try {
5414       result = Xapian::Document::unserialise((std::string const &)*arg1);
5415     } catch (const Xapian::Error &e) {
5416       return XapianTclHandleError(interp, e);
5417     } catch (...) {
5418       return XapianTclHandleError(interp);
5419     }
5420   }
5421   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::Document(static_cast< const Xapian::Document& >(result))), SWIGTYPE_p_Xapian__Document, SWIG_POINTER_OWN | 0 ));
5422   if (SWIG_IsNewObj(res1)) delete arg1;
5423   return TCL_OK;
5424 fail:
5425   if (SWIG_IsNewObj(res1)) delete arg1;
5426   return TCL_ERROR;
5427 }
5428 
5429 
5430 SWIGINTERN int
_wrap_Document_get_description(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])5431 _wrap_Document_get_description(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5432   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
5433   void *argp1 = 0 ;
5434   int res1 = 0 ;
5435   std::string result;
5436 
5437   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Document_get_description self ",(void *)0) == TCL_ERROR) SWIG_fail;
5438   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
5439   if (!SWIG_IsOK(res1)) {
5440     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_get_description" "', argument " "1"" of type '" "Xapian::Document const *""'");
5441   }
5442   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
5443   {
5444     try {
5445       result = ((Xapian::Document const *)arg1)->get_description();
5446     } catch (const Xapian::Error &e) {
5447       return XapianTclHandleError(interp, e);
5448     } catch (...) {
5449       return XapianTclHandleError(interp);
5450     }
5451   }
5452   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
5453   return TCL_OK;
5454 fail:
5455   return TCL_ERROR;
5456 }
5457 
5458 
swig_delete_Document(void * obj)5459 SWIGINTERN void swig_delete_Document(void *obj) {
5460 Xapian::Document *arg1 = (Xapian::Document *) obj;
5461 delete arg1;
5462 }
5463 static swig_method swig_Xapian_Document_methods[] = {
5464     {"get_value", _wrap_Document_get_value},
5465     {"add_value", _wrap_Document_add_value},
5466     {"remove_value", _wrap_Document_remove_value},
5467     {"clear_values", _wrap_Document_clear_values},
5468     {"get_data", _wrap_Document_get_data},
5469     {"set_data", _wrap_Document_set_data},
5470     {"add_posting", _wrap_Document_add_posting},
5471     {"add_term", _wrap_Document_add_term},
5472     {"add_boolean_term", _wrap_Document_add_boolean_term},
5473     {"remove_posting", _wrap_Document_remove_posting},
5474     {"remove_postings", _wrap_Document_remove_postings},
5475     {"remove_term", _wrap_Document_remove_term},
5476     {"clear_terms", _wrap_Document_clear_terms},
5477     {"termlist_count", _wrap_Document_termlist_count},
5478     {"termlist_begin", _wrap_Document_termlist_begin},
5479     {"termlist_end", _wrap_Document_termlist_end},
5480     {"values_count", _wrap_Document_values_count},
5481     {"values_begin", _wrap_Document_values_begin},
5482     {"values_end", _wrap_Document_values_end},
5483     {"get_docid", _wrap_Document_get_docid},
5484     {"serialise", _wrap_Document_serialise},
5485     {"get_description", _wrap_Document_get_description},
5486     {0,0}
5487 };
5488 static swig_attribute swig_Xapian_Document_attributes[] = {
5489     {0,0,0}
5490 };
5491 static swig_class *swig_Xapian_Document_bases[] = {0};
5492 static const char * swig_Xapian_Document_base_names[] = {0};
5493 static swig_class _wrap_class_Xapian_Document = { "Document", &SWIGTYPE_p_Xapian__Document,_wrap_new_Document, swig_delete_Document, swig_Xapian_Document_methods, swig_Xapian_Document_attributes, swig_Xapian_Document_bases,swig_Xapian_Document_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
5494 SWIGINTERN int
_wrap_new_Registry__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])5495 _wrap_new_Registry__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5496   Xapian::Registry *arg1 = 0 ;
5497   void *argp1 ;
5498   int res1 = 0 ;
5499   Xapian::Registry *result = 0 ;
5500 
5501   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_Registry other ",(void *)0) == TCL_ERROR) SWIG_fail;
5502   res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_Xapian__Registry,  0 );
5503   if (!SWIG_IsOK(res1)) {
5504     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Registry" "', argument " "1"" of type '" "Xapian::Registry const &""'");
5505   }
5506   if (!argp1) {
5507     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Registry" "', argument " "1"" of type '" "Xapian::Registry const &""'");
5508   }
5509   arg1 = reinterpret_cast< Xapian::Registry * >(argp1);
5510   {
5511     try {
5512       result = (Xapian::Registry *)new Xapian::Registry((Xapian::Registry const &)*arg1);
5513     } catch (const Xapian::Error &e) {
5514       return XapianTclHandleError(interp, e);
5515     } catch (...) {
5516       return XapianTclHandleError(interp);
5517     }
5518   }
5519   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Registry,0));
5520   return TCL_OK;
5521 fail:
5522   return TCL_ERROR;
5523 }
5524 
5525 
5526 SWIGINTERN int
_wrap_new_Registry__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])5527 _wrap_new_Registry__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5528   Xapian::Registry *result = 0 ;
5529 
5530   if (SWIG_GetArgs(interp, objc, objv,":xapian::new_Registry ") == TCL_ERROR) SWIG_fail;
5531   {
5532     try {
5533       result = (Xapian::Registry *)new Xapian::Registry();
5534     } catch (const Xapian::Error &e) {
5535       return XapianTclHandleError(interp, e);
5536     } catch (...) {
5537       return XapianTclHandleError(interp);
5538     }
5539   }
5540   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Registry,0));
5541   return TCL_OK;
5542 fail:
5543   return TCL_ERROR;
5544 }
5545 
5546 
5547 SWIGINTERN int
_wrap_new_Registry(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])5548 _wrap_new_Registry(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5549   Tcl_Obj *CONST *argv = objv+1;
5550   int argc = objc-1;
5551   if (argc == 0) {
5552     return _wrap_new_Registry__SWIG_1(clientData, interp, objc, argv - 1);
5553   }
5554   if (argc == 1) {
5555     int _v;
5556     void *vptr = 0;
5557     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Registry, 0);
5558     _v = SWIG_CheckState(res);
5559     if (_v) {
5560       return _wrap_new_Registry__SWIG_0(clientData, interp, objc, argv - 1);
5561     }
5562   }
5563 
5564   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_Registry'.\n"
5565     "  Possible C/C++ prototypes are:\n"
5566     "    Xapian::Registry::Registry(Xapian::Registry const &)\n"
5567     "    Xapian::Registry::Registry()\n", TCL_STATIC);
5568   return TCL_ERROR;
5569 }
5570 
5571 
5572 SWIGINTERN int
_wrap_delete_Registry(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])5573 _wrap_delete_Registry(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5574   Xapian::Registry *arg1 = (Xapian::Registry *) 0 ;
5575   void *argp1 = 0 ;
5576   int res1 = 0 ;
5577 
5578   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_Registry self ",(void *)0) == TCL_ERROR) SWIG_fail;
5579   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Registry, SWIG_POINTER_DISOWN |  0 );
5580   if (!SWIG_IsOK(res1)) {
5581     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Registry" "', argument " "1"" of type '" "Xapian::Registry *""'");
5582   }
5583   arg1 = reinterpret_cast< Xapian::Registry * >(argp1);
5584   {
5585     try {
5586       delete arg1;
5587     } catch (const Xapian::Error &e) {
5588       return XapianTclHandleError(interp, e);
5589     } catch (...) {
5590       return XapianTclHandleError(interp);
5591     }
5592   }
5593 
5594   return TCL_OK;
5595 fail:
5596   return TCL_ERROR;
5597 }
5598 
5599 
5600 SWIGINTERN int
_wrap_Registry_register_weighting_scheme(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])5601 _wrap_Registry_register_weighting_scheme(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5602   Xapian::Registry *arg1 = (Xapian::Registry *) 0 ;
5603   Xapian::Weight *arg2 = 0 ;
5604   void *argp1 = 0 ;
5605   int res1 = 0 ;
5606   void *argp2 ;
5607   int res2 = 0 ;
5608 
5609   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Registry_register_weighting_scheme self wt ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
5610   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Registry, 0 |  0 );
5611   if (!SWIG_IsOK(res1)) {
5612     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Registry_register_weighting_scheme" "', argument " "1"" of type '" "Xapian::Registry *""'");
5613   }
5614   arg1 = reinterpret_cast< Xapian::Registry * >(argp1);
5615   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__Weight,  0 );
5616   if (!SWIG_IsOK(res2)) {
5617     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Registry_register_weighting_scheme" "', argument " "2"" of type '" "Xapian::Weight const &""'");
5618   }
5619   if (!argp2) {
5620     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Registry_register_weighting_scheme" "', argument " "2"" of type '" "Xapian::Weight const &""'");
5621   }
5622   arg2 = reinterpret_cast< Xapian::Weight * >(argp2);
5623   {
5624     try {
5625       (arg1)->register_weighting_scheme((Xapian::Weight const &)*arg2);
5626     } catch (const Xapian::Error &e) {
5627       return XapianTclHandleError(interp, e);
5628     } catch (...) {
5629       return XapianTclHandleError(interp);
5630     }
5631   }
5632 
5633   return TCL_OK;
5634 fail:
5635   return TCL_ERROR;
5636 }
5637 
5638 
5639 SWIGINTERN int
_wrap_Registry_get_weighting_scheme(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])5640 _wrap_Registry_get_weighting_scheme(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5641   Xapian::Registry *arg1 = (Xapian::Registry *) 0 ;
5642   std::string *arg2 = 0 ;
5643   void *argp1 = 0 ;
5644   int res1 = 0 ;
5645   int res2 = SWIG_OLDOBJ ;
5646   Xapian::Weight *result = 0 ;
5647 
5648   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Registry_get_weighting_scheme self name ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
5649   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Registry, 0 |  0 );
5650   if (!SWIG_IsOK(res1)) {
5651     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Registry_get_weighting_scheme" "', argument " "1"" of type '" "Xapian::Registry const *""'");
5652   }
5653   arg1 = reinterpret_cast< Xapian::Registry * >(argp1);
5654   {
5655     std::string *ptr = (std::string *)0;
5656     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
5657     if (!SWIG_IsOK(res2)) {
5658       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Registry_get_weighting_scheme" "', argument " "2"" of type '" "std::string const &""'");
5659     }
5660     if (!ptr) {
5661       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Registry_get_weighting_scheme" "', argument " "2"" of type '" "std::string const &""'");
5662     }
5663     arg2 = ptr;
5664   }
5665   {
5666     try {
5667       result = (Xapian::Weight *)((Xapian::Registry const *)arg1)->get_weighting_scheme((std::string const &)*arg2);
5668     } catch (const Xapian::Error &e) {
5669       return XapianTclHandleError(interp, e);
5670     } catch (...) {
5671       return XapianTclHandleError(interp);
5672     }
5673   }
5674   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Weight,0));
5675   if (SWIG_IsNewObj(res2)) delete arg2;
5676   return TCL_OK;
5677 fail:
5678   if (SWIG_IsNewObj(res2)) delete arg2;
5679   return TCL_ERROR;
5680 }
5681 
5682 
5683 SWIGINTERN int
_wrap_Registry_register_posting_source(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])5684 _wrap_Registry_register_posting_source(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5685   Xapian::Registry *arg1 = (Xapian::Registry *) 0 ;
5686   Xapian::PostingSource *arg2 = 0 ;
5687   void *argp1 = 0 ;
5688   int res1 = 0 ;
5689   void *argp2 ;
5690   int res2 = 0 ;
5691 
5692   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Registry_register_posting_source self source ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
5693   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Registry, 0 |  0 );
5694   if (!SWIG_IsOK(res1)) {
5695     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Registry_register_posting_source" "', argument " "1"" of type '" "Xapian::Registry *""'");
5696   }
5697   arg1 = reinterpret_cast< Xapian::Registry * >(argp1);
5698   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__PostingSource,  0 );
5699   if (!SWIG_IsOK(res2)) {
5700     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Registry_register_posting_source" "', argument " "2"" of type '" "Xapian::PostingSource const &""'");
5701   }
5702   if (!argp2) {
5703     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Registry_register_posting_source" "', argument " "2"" of type '" "Xapian::PostingSource const &""'");
5704   }
5705   arg2 = reinterpret_cast< Xapian::PostingSource * >(argp2);
5706   {
5707     try {
5708       (arg1)->register_posting_source((Xapian::PostingSource const &)*arg2);
5709     } catch (const Xapian::Error &e) {
5710       return XapianTclHandleError(interp, e);
5711     } catch (...) {
5712       return XapianTclHandleError(interp);
5713     }
5714   }
5715 
5716   return TCL_OK;
5717 fail:
5718   return TCL_ERROR;
5719 }
5720 
5721 
5722 SWIGINTERN int
_wrap_Registry_get_posting_source(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])5723 _wrap_Registry_get_posting_source(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5724   Xapian::Registry *arg1 = (Xapian::Registry *) 0 ;
5725   std::string *arg2 = 0 ;
5726   void *argp1 = 0 ;
5727   int res1 = 0 ;
5728   int res2 = SWIG_OLDOBJ ;
5729   Xapian::PostingSource *result = 0 ;
5730 
5731   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Registry_get_posting_source self name ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
5732   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Registry, 0 |  0 );
5733   if (!SWIG_IsOK(res1)) {
5734     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Registry_get_posting_source" "', argument " "1"" of type '" "Xapian::Registry const *""'");
5735   }
5736   arg1 = reinterpret_cast< Xapian::Registry * >(argp1);
5737   {
5738     std::string *ptr = (std::string *)0;
5739     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
5740     if (!SWIG_IsOK(res2)) {
5741       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Registry_get_posting_source" "', argument " "2"" of type '" "std::string const &""'");
5742     }
5743     if (!ptr) {
5744       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Registry_get_posting_source" "', argument " "2"" of type '" "std::string const &""'");
5745     }
5746     arg2 = ptr;
5747   }
5748   {
5749     try {
5750       result = (Xapian::PostingSource *)((Xapian::Registry const *)arg1)->get_posting_source((std::string const &)*arg2);
5751     } catch (const Xapian::Error &e) {
5752       return XapianTclHandleError(interp, e);
5753     } catch (...) {
5754       return XapianTclHandleError(interp);
5755     }
5756   }
5757   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__PostingSource,0));
5758   if (SWIG_IsNewObj(res2)) delete arg2;
5759   return TCL_OK;
5760 fail:
5761   if (SWIG_IsNewObj(res2)) delete arg2;
5762   return TCL_ERROR;
5763 }
5764 
5765 
5766 SWIGINTERN int
_wrap_Registry_register_match_spy(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])5767 _wrap_Registry_register_match_spy(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5768   Xapian::Registry *arg1 = (Xapian::Registry *) 0 ;
5769   Xapian::MatchSpy *arg2 = 0 ;
5770   void *argp1 = 0 ;
5771   int res1 = 0 ;
5772   void *argp2 ;
5773   int res2 = 0 ;
5774 
5775   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Registry_register_match_spy self spy ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
5776   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Registry, 0 |  0 );
5777   if (!SWIG_IsOK(res1)) {
5778     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Registry_register_match_spy" "', argument " "1"" of type '" "Xapian::Registry *""'");
5779   }
5780   arg1 = reinterpret_cast< Xapian::Registry * >(argp1);
5781   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__MatchSpy,  0 );
5782   if (!SWIG_IsOK(res2)) {
5783     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Registry_register_match_spy" "', argument " "2"" of type '" "Xapian::MatchSpy const &""'");
5784   }
5785   if (!argp2) {
5786     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Registry_register_match_spy" "', argument " "2"" of type '" "Xapian::MatchSpy const &""'");
5787   }
5788   arg2 = reinterpret_cast< Xapian::MatchSpy * >(argp2);
5789   {
5790     try {
5791       (arg1)->register_match_spy((Xapian::MatchSpy const &)*arg2);
5792     } catch (const Xapian::Error &e) {
5793       return XapianTclHandleError(interp, e);
5794     } catch (...) {
5795       return XapianTclHandleError(interp);
5796     }
5797   }
5798 
5799   return TCL_OK;
5800 fail:
5801   return TCL_ERROR;
5802 }
5803 
5804 
5805 SWIGINTERN int
_wrap_Registry_get_match_spy(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])5806 _wrap_Registry_get_match_spy(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5807   Xapian::Registry *arg1 = (Xapian::Registry *) 0 ;
5808   std::string *arg2 = 0 ;
5809   void *argp1 = 0 ;
5810   int res1 = 0 ;
5811   int res2 = SWIG_OLDOBJ ;
5812   Xapian::MatchSpy *result = 0 ;
5813 
5814   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Registry_get_match_spy self name ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
5815   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Registry, 0 |  0 );
5816   if (!SWIG_IsOK(res1)) {
5817     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Registry_get_match_spy" "', argument " "1"" of type '" "Xapian::Registry const *""'");
5818   }
5819   arg1 = reinterpret_cast< Xapian::Registry * >(argp1);
5820   {
5821     std::string *ptr = (std::string *)0;
5822     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
5823     if (!SWIG_IsOK(res2)) {
5824       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Registry_get_match_spy" "', argument " "2"" of type '" "std::string const &""'");
5825     }
5826     if (!ptr) {
5827       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Registry_get_match_spy" "', argument " "2"" of type '" "std::string const &""'");
5828     }
5829     arg2 = ptr;
5830   }
5831   {
5832     try {
5833       result = (Xapian::MatchSpy *)((Xapian::Registry const *)arg1)->get_match_spy((std::string const &)*arg2);
5834     } catch (const Xapian::Error &e) {
5835       return XapianTclHandleError(interp, e);
5836     } catch (...) {
5837       return XapianTclHandleError(interp);
5838     }
5839   }
5840   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__MatchSpy,0));
5841   if (SWIG_IsNewObj(res2)) delete arg2;
5842   return TCL_OK;
5843 fail:
5844   if (SWIG_IsNewObj(res2)) delete arg2;
5845   return TCL_ERROR;
5846 }
5847 
5848 
5849 SWIGINTERN int
_wrap_Registry_register_lat_long_metric(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])5850 _wrap_Registry_register_lat_long_metric(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5851   Xapian::Registry *arg1 = (Xapian::Registry *) 0 ;
5852   Xapian::LatLongMetric *arg2 = 0 ;
5853   void *argp1 = 0 ;
5854   int res1 = 0 ;
5855   void *argp2 ;
5856   int res2 = 0 ;
5857 
5858   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Registry_register_lat_long_metric self metric ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
5859   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Registry, 0 |  0 );
5860   if (!SWIG_IsOK(res1)) {
5861     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Registry_register_lat_long_metric" "', argument " "1"" of type '" "Xapian::Registry *""'");
5862   }
5863   arg1 = reinterpret_cast< Xapian::Registry * >(argp1);
5864   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__LatLongMetric,  0 );
5865   if (!SWIG_IsOK(res2)) {
5866     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Registry_register_lat_long_metric" "', argument " "2"" of type '" "Xapian::LatLongMetric const &""'");
5867   }
5868   if (!argp2) {
5869     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Registry_register_lat_long_metric" "', argument " "2"" of type '" "Xapian::LatLongMetric const &""'");
5870   }
5871   arg2 = reinterpret_cast< Xapian::LatLongMetric * >(argp2);
5872   {
5873     try {
5874       (arg1)->register_lat_long_metric((Xapian::LatLongMetric const &)*arg2);
5875     } catch (const Xapian::Error &e) {
5876       return XapianTclHandleError(interp, e);
5877     } catch (...) {
5878       return XapianTclHandleError(interp);
5879     }
5880   }
5881 
5882   return TCL_OK;
5883 fail:
5884   return TCL_ERROR;
5885 }
5886 
5887 
5888 SWIGINTERN int
_wrap_Registry_get_lat_long_metric(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])5889 _wrap_Registry_get_lat_long_metric(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5890   Xapian::Registry *arg1 = (Xapian::Registry *) 0 ;
5891   std::string *arg2 = 0 ;
5892   void *argp1 = 0 ;
5893   int res1 = 0 ;
5894   int res2 = SWIG_OLDOBJ ;
5895   Xapian::LatLongMetric *result = 0 ;
5896 
5897   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Registry_get_lat_long_metric self name ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
5898   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Registry, 0 |  0 );
5899   if (!SWIG_IsOK(res1)) {
5900     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Registry_get_lat_long_metric" "', argument " "1"" of type '" "Xapian::Registry const *""'");
5901   }
5902   arg1 = reinterpret_cast< Xapian::Registry * >(argp1);
5903   {
5904     std::string *ptr = (std::string *)0;
5905     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
5906     if (!SWIG_IsOK(res2)) {
5907       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Registry_get_lat_long_metric" "', argument " "2"" of type '" "std::string const &""'");
5908     }
5909     if (!ptr) {
5910       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Registry_get_lat_long_metric" "', argument " "2"" of type '" "std::string const &""'");
5911     }
5912     arg2 = ptr;
5913   }
5914   {
5915     try {
5916       result = (Xapian::LatLongMetric *)((Xapian::Registry const *)arg1)->get_lat_long_metric((std::string const &)*arg2);
5917     } catch (const Xapian::Error &e) {
5918       return XapianTclHandleError(interp, e);
5919     } catch (...) {
5920       return XapianTclHandleError(interp);
5921     }
5922   }
5923   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongMetric,0));
5924   if (SWIG_IsNewObj(res2)) delete arg2;
5925   return TCL_OK;
5926 fail:
5927   if (SWIG_IsNewObj(res2)) delete arg2;
5928   return TCL_ERROR;
5929 }
5930 
5931 
swig_delete_Registry(void * obj)5932 SWIGINTERN void swig_delete_Registry(void *obj) {
5933 Xapian::Registry *arg1 = (Xapian::Registry *) obj;
5934 delete arg1;
5935 }
5936 static swig_method swig_Xapian_Registry_methods[] = {
5937     {"register_weighting_scheme", _wrap_Registry_register_weighting_scheme},
5938     {"get_weighting_scheme", _wrap_Registry_get_weighting_scheme},
5939     {"register_posting_source", _wrap_Registry_register_posting_source},
5940     {"get_posting_source", _wrap_Registry_get_posting_source},
5941     {"register_match_spy", _wrap_Registry_register_match_spy},
5942     {"get_match_spy", _wrap_Registry_get_match_spy},
5943     {"register_lat_long_metric", _wrap_Registry_register_lat_long_metric},
5944     {"get_lat_long_metric", _wrap_Registry_get_lat_long_metric},
5945     {0,0}
5946 };
5947 static swig_attribute swig_Xapian_Registry_attributes[] = {
5948     {0,0,0}
5949 };
5950 static swig_class *swig_Xapian_Registry_bases[] = {0};
5951 static const char * swig_Xapian_Registry_base_names[] = {0};
5952 static swig_class _wrap_class_Xapian_Registry = { "Registry", &SWIGTYPE_p_Xapian__Registry,_wrap_new_Registry, swig_delete_Registry, swig_Xapian_Registry_methods, swig_Xapian_Registry_attributes, swig_Xapian_Registry_bases,swig_Xapian_Registry_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
_wrap_Query_MatchNothing_get(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,char * name1,char * name2,int flags)5953 SWIGINTERN const char *_wrap_Query_MatchNothing_get(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, char *name1, char *name2, int flags) {
5954   Tcl_Obj *value = 0;
5955 
5956   value = SWIG_NewInstanceObj(SWIG_as_voidptr(&Xapian::Query::MatchNothing), SWIGTYPE_p_Xapian__Query, 0 );
5957   if (value) {
5958     Tcl_SetVar2(interp,name1,name2,Tcl_GetStringFromObj(value,NULL), flags);
5959     Tcl_DecrRefCount(value);
5960   }
5961   return NULL;
5962 }
5963 
5964 
swig_readonly(ClientData clientData SWIGUNUSED,Tcl_Interp * interp SWIGUNUSED,char * name1 SWIGUNUSED,char * name2 SWIGUNUSED,int flags SWIGUNUSED)5965 SWIGINTERN const char *swig_readonly(ClientData clientData SWIGUNUSED, Tcl_Interp *interp SWIGUNUSED, char *name1 SWIGUNUSED, char *name2 SWIGUNUSED, int flags SWIGUNUSED) {
5966   return "Variable is read-only";
5967 }
5968 
5969 
_wrap_Query_MatchAll_get(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,char * name1,char * name2,int flags)5970 SWIGINTERN const char *_wrap_Query_MatchAll_get(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, char *name1, char *name2, int flags) {
5971   Tcl_Obj *value = 0;
5972 
5973   value = SWIG_NewInstanceObj(SWIG_as_voidptr(&Xapian::Query::MatchAll), SWIGTYPE_p_Xapian__Query, 0 );
5974   if (value) {
5975     Tcl_SetVar2(interp,name1,name2,Tcl_GetStringFromObj(value,NULL), flags);
5976     Tcl_DecrRefCount(value);
5977   }
5978   return NULL;
5979 }
5980 
5981 
5982 SWIGINTERN int
_wrap_new_Query__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])5983 _wrap_new_Query__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5984   Xapian::Query *result = 0 ;
5985 
5986   if (SWIG_GetArgs(interp, objc, objv,":xapian::new_Query ") == TCL_ERROR) SWIG_fail;
5987   {
5988     try {
5989       result = (Xapian::Query *)new Xapian::Query();
5990     } catch (const Xapian::Error &e) {
5991       return XapianTclHandleError(interp, e);
5992     } catch (...) {
5993       return XapianTclHandleError(interp);
5994     }
5995   }
5996   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query,0));
5997   return TCL_OK;
5998 fail:
5999   return TCL_ERROR;
6000 }
6001 
6002 
6003 SWIGINTERN int
_wrap_delete_Query(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])6004 _wrap_delete_Query(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6005   Xapian::Query *arg1 = (Xapian::Query *) 0 ;
6006   void *argp1 = 0 ;
6007   int res1 = 0 ;
6008 
6009   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_Query self ",(void *)0) == TCL_ERROR) SWIG_fail;
6010   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Query, SWIG_POINTER_DISOWN |  0 );
6011   if (!SWIG_IsOK(res1)) {
6012     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Query" "', argument " "1"" of type '" "Xapian::Query *""'");
6013   }
6014   arg1 = reinterpret_cast< Xapian::Query * >(argp1);
6015   {
6016     try {
6017       delete arg1;
6018     } catch (const Xapian::Error &e) {
6019       return XapianTclHandleError(interp, e);
6020     } catch (...) {
6021       return XapianTclHandleError(interp);
6022     }
6023   }
6024 
6025   return TCL_OK;
6026 fail:
6027   return TCL_ERROR;
6028 }
6029 
6030 
6031 SWIGINTERN int
_wrap_new_Query__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])6032 _wrap_new_Query__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6033   Xapian::Query *arg1 = 0 ;
6034   void *argp1 ;
6035   int res1 = 0 ;
6036   Xapian::Query *result = 0 ;
6037 
6038   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_Query o ",(void *)0) == TCL_ERROR) SWIG_fail;
6039   res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_Xapian__Query,  0 );
6040   if (!SWIG_IsOK(res1)) {
6041     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query const &""'");
6042   }
6043   if (!argp1) {
6044     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query const &""'");
6045   }
6046   arg1 = reinterpret_cast< Xapian::Query * >(argp1);
6047   {
6048     try {
6049       result = (Xapian::Query *)new Xapian::Query((Xapian::Query const &)*arg1);
6050     } catch (const Xapian::Error &e) {
6051       return XapianTclHandleError(interp, e);
6052     } catch (...) {
6053       return XapianTclHandleError(interp);
6054     }
6055   }
6056   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query,0));
6057   return TCL_OK;
6058 fail:
6059   return TCL_ERROR;
6060 }
6061 
6062 
6063 SWIGINTERN int
_wrap_new_Query__SWIG_2(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])6064 _wrap_new_Query__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6065   std::string *arg1 = 0 ;
6066   Xapian::termcount arg2 ;
6067   Xapian::termpos arg3 ;
6068   int res1 = SWIG_OLDOBJ ;
6069   unsigned int val2 ;
6070   int ecode2 = 0 ;
6071   unsigned int val3 ;
6072   int ecode3 = 0 ;
6073   Xapian::Query *result = 0 ;
6074 
6075   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::new_Query term wqf pos ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
6076   {
6077     std::string *ptr = (std::string *)0;
6078     res1 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[1], &ptr);
6079     if (!SWIG_IsOK(res1)) {
6080       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Query" "', argument " "1"" of type '" "std::string const &""'");
6081     }
6082     if (!ptr) {
6083       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "1"" of type '" "std::string const &""'");
6084     }
6085     arg1 = ptr;
6086   }
6087   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
6088   if (!SWIG_IsOK(ecode2)) {
6089     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Query" "', argument " "2"" of type '" "Xapian::termcount""'");
6090   }
6091   arg2 = static_cast< Xapian::termcount >(val2);
6092   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
6093   if (!SWIG_IsOK(ecode3)) {
6094     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Query" "', argument " "3"" of type '" "Xapian::termpos""'");
6095   }
6096   arg3 = static_cast< Xapian::termpos >(val3);
6097   {
6098     try {
6099       result = (Xapian::Query *)new Xapian::Query((std::string const &)*arg1,arg2,arg3);
6100     } catch (const Xapian::Error &e) {
6101       return XapianTclHandleError(interp, e);
6102     } catch (...) {
6103       return XapianTclHandleError(interp);
6104     }
6105   }
6106   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query,0));
6107   if (SWIG_IsNewObj(res1)) delete arg1;
6108   return TCL_OK;
6109 fail:
6110   if (SWIG_IsNewObj(res1)) delete arg1;
6111   return TCL_ERROR;
6112 }
6113 
6114 
6115 SWIGINTERN int
_wrap_new_Query__SWIG_3(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])6116 _wrap_new_Query__SWIG_3(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6117   std::string *arg1 = 0 ;
6118   Xapian::termcount arg2 ;
6119   int res1 = SWIG_OLDOBJ ;
6120   unsigned int val2 ;
6121   int ecode2 = 0 ;
6122   Xapian::Query *result = 0 ;
6123 
6124   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::new_Query term wqf ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
6125   {
6126     std::string *ptr = (std::string *)0;
6127     res1 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[1], &ptr);
6128     if (!SWIG_IsOK(res1)) {
6129       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Query" "', argument " "1"" of type '" "std::string const &""'");
6130     }
6131     if (!ptr) {
6132       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "1"" of type '" "std::string const &""'");
6133     }
6134     arg1 = ptr;
6135   }
6136   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
6137   if (!SWIG_IsOK(ecode2)) {
6138     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Query" "', argument " "2"" of type '" "Xapian::termcount""'");
6139   }
6140   arg2 = static_cast< Xapian::termcount >(val2);
6141   {
6142     try {
6143       result = (Xapian::Query *)new Xapian::Query((std::string const &)*arg1,arg2);
6144     } catch (const Xapian::Error &e) {
6145       return XapianTclHandleError(interp, e);
6146     } catch (...) {
6147       return XapianTclHandleError(interp);
6148     }
6149   }
6150   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query,0));
6151   if (SWIG_IsNewObj(res1)) delete arg1;
6152   return TCL_OK;
6153 fail:
6154   if (SWIG_IsNewObj(res1)) delete arg1;
6155   return TCL_ERROR;
6156 }
6157 
6158 
6159 SWIGINTERN int
_wrap_new_Query__SWIG_4(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])6160 _wrap_new_Query__SWIG_4(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6161   std::string *arg1 = 0 ;
6162   int res1 = SWIG_OLDOBJ ;
6163   Xapian::Query *result = 0 ;
6164 
6165   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_Query term ",(void *)0) == TCL_ERROR) SWIG_fail;
6166   {
6167     std::string *ptr = (std::string *)0;
6168     res1 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[1], &ptr);
6169     if (!SWIG_IsOK(res1)) {
6170       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Query" "', argument " "1"" of type '" "std::string const &""'");
6171     }
6172     if (!ptr) {
6173       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "1"" of type '" "std::string const &""'");
6174     }
6175     arg1 = ptr;
6176   }
6177   {
6178     try {
6179       result = (Xapian::Query *)new Xapian::Query((std::string const &)*arg1);
6180     } catch (const Xapian::Error &e) {
6181       return XapianTclHandleError(interp, e);
6182     } catch (...) {
6183       return XapianTclHandleError(interp);
6184     }
6185   }
6186   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query,0));
6187   if (SWIG_IsNewObj(res1)) delete arg1;
6188   return TCL_OK;
6189 fail:
6190   if (SWIG_IsNewObj(res1)) delete arg1;
6191   return TCL_ERROR;
6192 }
6193 
6194 
6195 SWIGINTERN int
_wrap_new_Query__SWIG_5(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])6196 _wrap_new_Query__SWIG_5(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6197   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
6198   void *argp1 = 0 ;
6199   int res1 = 0 ;
6200   Xapian::Query *result = 0 ;
6201 
6202   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_Query source ",(void *)0) == TCL_ERROR) SWIG_fail;
6203   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
6204   if (!SWIG_IsOK(res1)) {
6205     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::PostingSource *""'");
6206   }
6207   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
6208   {
6209     try {
6210       result = (Xapian::Query *)new Xapian::Query(arg1);
6211     } catch (const Xapian::Error &e) {
6212       return XapianTclHandleError(interp, e);
6213     } catch (...) {
6214       return XapianTclHandleError(interp);
6215     }
6216   }
6217   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query,0));
6218   return TCL_OK;
6219 fail:
6220   return TCL_ERROR;
6221 }
6222 
6223 
6224 SWIGINTERN int
_wrap_new_Query__SWIG_6(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])6225 _wrap_new_Query__SWIG_6(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6226   double arg1 ;
6227   Xapian::Query *arg2 = 0 ;
6228   double val1 ;
6229   int ecode1 = 0 ;
6230   void *argp2 ;
6231   int res2 = 0 ;
6232   Xapian::Query *result = 0 ;
6233 
6234   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::new_Query factor subquery ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
6235   ecode1 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
6236   if (!SWIG_IsOK(ecode1)) {
6237     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Query" "', argument " "1"" of type '" "double""'");
6238   }
6239   arg1 = static_cast< double >(val1);
6240   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__Query,  0 );
6241   if (!SWIG_IsOK(res2)) {
6242     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Query" "', argument " "2"" of type '" "Xapian::Query const &""'");
6243   }
6244   if (!argp2) {
6245     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "2"" of type '" "Xapian::Query const &""'");
6246   }
6247   arg2 = reinterpret_cast< Xapian::Query * >(argp2);
6248   {
6249     try {
6250       result = (Xapian::Query *)new Xapian::Query(arg1,(Xapian::Query const &)*arg2);
6251     } catch (const Xapian::Error &e) {
6252       return XapianTclHandleError(interp, e);
6253     } catch (...) {
6254       return XapianTclHandleError(interp);
6255     }
6256   }
6257   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query,0));
6258   return TCL_OK;
6259 fail:
6260   return TCL_ERROR;
6261 }
6262 
6263 
6264 SWIGINTERN int
_wrap_new_Query__SWIG_7(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])6265 _wrap_new_Query__SWIG_7(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6266   Xapian::Query::op arg1 ;
6267   Xapian::Query *arg2 = 0 ;
6268   double arg3 ;
6269   int val1 ;
6270   int ecode1 = 0 ;
6271   void *argp2 ;
6272   int res2 = 0 ;
6273   double val3 ;
6274   int ecode3 = 0 ;
6275   Xapian::Query *result = 0 ;
6276 
6277   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::new_Query op_ subquery factor ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
6278   ecode1 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
6279   if (!SWIG_IsOK(ecode1)) {
6280     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query::op""'");
6281   }
6282   arg1 = static_cast< Xapian::Query::op >(val1);
6283   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__Query,  0 );
6284   if (!SWIG_IsOK(res2)) {
6285     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Query" "', argument " "2"" of type '" "Xapian::Query const &""'");
6286   }
6287   if (!argp2) {
6288     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "2"" of type '" "Xapian::Query const &""'");
6289   }
6290   arg2 = reinterpret_cast< Xapian::Query * >(argp2);
6291   ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
6292   if (!SWIG_IsOK(ecode3)) {
6293     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Query" "', argument " "3"" of type '" "double""'");
6294   }
6295   arg3 = static_cast< double >(val3);
6296   {
6297     try {
6298       result = (Xapian::Query *)new Xapian::Query(arg1,(Xapian::Query const &)*arg2,arg3);
6299     } catch (const Xapian::Error &e) {
6300       return XapianTclHandleError(interp, e);
6301     } catch (...) {
6302       return XapianTclHandleError(interp);
6303     }
6304   }
6305   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query,0));
6306   return TCL_OK;
6307 fail:
6308   return TCL_ERROR;
6309 }
6310 
6311 
6312 SWIGINTERN int
_wrap_new_Query__SWIG_8(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])6313 _wrap_new_Query__SWIG_8(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6314   Xapian::Query::op arg1 ;
6315   Xapian::Query *arg2 = 0 ;
6316   Xapian::Query *arg3 = 0 ;
6317   int val1 ;
6318   int ecode1 = 0 ;
6319   void *argp2 ;
6320   int res2 = 0 ;
6321   void *argp3 ;
6322   int res3 = 0 ;
6323   Xapian::Query *result = 0 ;
6324 
6325   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::new_Query op_ a b ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
6326   ecode1 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
6327   if (!SWIG_IsOK(ecode1)) {
6328     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query::op""'");
6329   }
6330   arg1 = static_cast< Xapian::Query::op >(val1);
6331   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__Query,  0 );
6332   if (!SWIG_IsOK(res2)) {
6333     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Query" "', argument " "2"" of type '" "Xapian::Query const &""'");
6334   }
6335   if (!argp2) {
6336     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "2"" of type '" "Xapian::Query const &""'");
6337   }
6338   arg2 = reinterpret_cast< Xapian::Query * >(argp2);
6339   res3 = SWIG_ConvertPtr(objv[3], &argp3, SWIGTYPE_p_Xapian__Query,  0 );
6340   if (!SWIG_IsOK(res3)) {
6341     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Query" "', argument " "3"" of type '" "Xapian::Query const &""'");
6342   }
6343   if (!argp3) {
6344     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "3"" of type '" "Xapian::Query const &""'");
6345   }
6346   arg3 = reinterpret_cast< Xapian::Query * >(argp3);
6347   {
6348     try {
6349       result = (Xapian::Query *)new Xapian::Query(arg1,(Xapian::Query const &)*arg2,(Xapian::Query const &)*arg3);
6350     } catch (const Xapian::Error &e) {
6351       return XapianTclHandleError(interp, e);
6352     } catch (...) {
6353       return XapianTclHandleError(interp);
6354     }
6355   }
6356   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query,0));
6357   return TCL_OK;
6358 fail:
6359   return TCL_ERROR;
6360 }
6361 
6362 
6363 SWIGINTERN int
_wrap_new_Query__SWIG_9(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])6364 _wrap_new_Query__SWIG_9(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6365   Xapian::Query::op arg1 ;
6366   std::string *arg2 = 0 ;
6367   std::string *arg3 = 0 ;
6368   int val1 ;
6369   int ecode1 = 0 ;
6370   int res2 = SWIG_OLDOBJ ;
6371   int res3 = SWIG_OLDOBJ ;
6372   Xapian::Query *result = 0 ;
6373 
6374   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::new_Query op_ a b ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
6375   ecode1 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
6376   if (!SWIG_IsOK(ecode1)) {
6377     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query::op""'");
6378   }
6379   arg1 = static_cast< Xapian::Query::op >(val1);
6380   {
6381     std::string *ptr = (std::string *)0;
6382     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
6383     if (!SWIG_IsOK(res2)) {
6384       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Query" "', argument " "2"" of type '" "std::string const &""'");
6385     }
6386     if (!ptr) {
6387       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "2"" of type '" "std::string const &""'");
6388     }
6389     arg2 = ptr;
6390   }
6391   {
6392     std::string *ptr = (std::string *)0;
6393     res3 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[3], &ptr);
6394     if (!SWIG_IsOK(res3)) {
6395       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Query" "', argument " "3"" of type '" "std::string const &""'");
6396     }
6397     if (!ptr) {
6398       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "3"" of type '" "std::string const &""'");
6399     }
6400     arg3 = ptr;
6401   }
6402   {
6403     try {
6404       result = (Xapian::Query *)new Xapian::Query(arg1,(std::string const &)*arg2,(std::string const &)*arg3);
6405     } catch (const Xapian::Error &e) {
6406       return XapianTclHandleError(interp, e);
6407     } catch (...) {
6408       return XapianTclHandleError(interp);
6409     }
6410   }
6411   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query,0));
6412   if (SWIG_IsNewObj(res2)) delete arg2;
6413   if (SWIG_IsNewObj(res3)) delete arg3;
6414   return TCL_OK;
6415 fail:
6416   if (SWIG_IsNewObj(res2)) delete arg2;
6417   if (SWIG_IsNewObj(res3)) delete arg3;
6418   return TCL_ERROR;
6419 }
6420 
6421 
6422 SWIGINTERN int
_wrap_new_Query__SWIG_10(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])6423 _wrap_new_Query__SWIG_10(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6424   Xapian::Query::op arg1 ;
6425   Xapian::valueno arg2 ;
6426   std::string *arg3 = 0 ;
6427   int val1 ;
6428   int ecode1 = 0 ;
6429   unsigned int val2 ;
6430   int ecode2 = 0 ;
6431   int res3 = SWIG_OLDOBJ ;
6432   Xapian::Query *result = 0 ;
6433 
6434   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::new_Query op_ slot range_limit ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
6435   ecode1 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
6436   if (!SWIG_IsOK(ecode1)) {
6437     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query::op""'");
6438   }
6439   arg1 = static_cast< Xapian::Query::op >(val1);
6440   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
6441   if (!SWIG_IsOK(ecode2)) {
6442     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Query" "', argument " "2"" of type '" "Xapian::valueno""'");
6443   }
6444   arg2 = static_cast< Xapian::valueno >(val2);
6445   {
6446     std::string *ptr = (std::string *)0;
6447     res3 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[3], &ptr);
6448     if (!SWIG_IsOK(res3)) {
6449       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Query" "', argument " "3"" of type '" "std::string const &""'");
6450     }
6451     if (!ptr) {
6452       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "3"" of type '" "std::string const &""'");
6453     }
6454     arg3 = ptr;
6455   }
6456   {
6457     try {
6458       result = (Xapian::Query *)new Xapian::Query(arg1,arg2,(std::string const &)*arg3);
6459     } catch (const Xapian::Error &e) {
6460       return XapianTclHandleError(interp, e);
6461     } catch (...) {
6462       return XapianTclHandleError(interp);
6463     }
6464   }
6465   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query,0));
6466   if (SWIG_IsNewObj(res3)) delete arg3;
6467   return TCL_OK;
6468 fail:
6469   if (SWIG_IsNewObj(res3)) delete arg3;
6470   return TCL_ERROR;
6471 }
6472 
6473 
6474 SWIGINTERN int
_wrap_new_Query__SWIG_11(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])6475 _wrap_new_Query__SWIG_11(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6476   Xapian::Query::op arg1 ;
6477   Xapian::valueno arg2 ;
6478   std::string *arg3 = 0 ;
6479   std::string *arg4 = 0 ;
6480   int val1 ;
6481   int ecode1 = 0 ;
6482   unsigned int val2 ;
6483   int ecode2 = 0 ;
6484   int res3 = SWIG_OLDOBJ ;
6485   int res4 = SWIG_OLDOBJ ;
6486   Xapian::Query *result = 0 ;
6487 
6488   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::new_Query op_ slot range_lower range_upper ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
6489   ecode1 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
6490   if (!SWIG_IsOK(ecode1)) {
6491     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query::op""'");
6492   }
6493   arg1 = static_cast< Xapian::Query::op >(val1);
6494   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
6495   if (!SWIG_IsOK(ecode2)) {
6496     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Query" "', argument " "2"" of type '" "Xapian::valueno""'");
6497   }
6498   arg2 = static_cast< Xapian::valueno >(val2);
6499   {
6500     std::string *ptr = (std::string *)0;
6501     res3 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[3], &ptr);
6502     if (!SWIG_IsOK(res3)) {
6503       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Query" "', argument " "3"" of type '" "std::string const &""'");
6504     }
6505     if (!ptr) {
6506       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "3"" of type '" "std::string const &""'");
6507     }
6508     arg3 = ptr;
6509   }
6510   {
6511     std::string *ptr = (std::string *)0;
6512     res4 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[4], &ptr);
6513     if (!SWIG_IsOK(res4)) {
6514       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Query" "', argument " "4"" of type '" "std::string const &""'");
6515     }
6516     if (!ptr) {
6517       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "4"" of type '" "std::string const &""'");
6518     }
6519     arg4 = ptr;
6520   }
6521   {
6522     try {
6523       result = (Xapian::Query *)new Xapian::Query(arg1,arg2,(std::string const &)*arg3,(std::string const &)*arg4);
6524     } catch (const Xapian::Error &e) {
6525       return XapianTclHandleError(interp, e);
6526     } catch (...) {
6527       return XapianTclHandleError(interp);
6528     }
6529   }
6530   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query,0));
6531   if (SWIG_IsNewObj(res3)) delete arg3;
6532   if (SWIG_IsNewObj(res4)) delete arg4;
6533   return TCL_OK;
6534 fail:
6535   if (SWIG_IsNewObj(res3)) delete arg3;
6536   if (SWIG_IsNewObj(res4)) delete arg4;
6537   return TCL_ERROR;
6538 }
6539 
6540 
6541 SWIGINTERN int
_wrap_new_Query__SWIG_12(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])6542 _wrap_new_Query__SWIG_12(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6543   Xapian::Query::op arg1 ;
6544   std::string *arg2 = 0 ;
6545   Xapian::termcount arg3 ;
6546   int arg4 ;
6547   Xapian::Query::op arg5 ;
6548   int val1 ;
6549   int ecode1 = 0 ;
6550   int res2 = SWIG_OLDOBJ ;
6551   unsigned int val3 ;
6552   int ecode3 = 0 ;
6553   int val4 ;
6554   int ecode4 = 0 ;
6555   int val5 ;
6556   int ecode5 = 0 ;
6557   Xapian::Query *result = 0 ;
6558 
6559   if (SWIG_GetArgs(interp, objc, objv,"ooooo:xapian::new_Query op_ pattern max_expansion max_type combiner ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
6560   ecode1 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
6561   if (!SWIG_IsOK(ecode1)) {
6562     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query::op""'");
6563   }
6564   arg1 = static_cast< Xapian::Query::op >(val1);
6565   {
6566     std::string *ptr = (std::string *)0;
6567     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
6568     if (!SWIG_IsOK(res2)) {
6569       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Query" "', argument " "2"" of type '" "std::string const &""'");
6570     }
6571     if (!ptr) {
6572       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "2"" of type '" "std::string const &""'");
6573     }
6574     arg2 = ptr;
6575   }
6576   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
6577   if (!SWIG_IsOK(ecode3)) {
6578     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Query" "', argument " "3"" of type '" "Xapian::termcount""'");
6579   }
6580   arg3 = static_cast< Xapian::termcount >(val3);
6581   ecode4 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
6582   if (!SWIG_IsOK(ecode4)) {
6583     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Query" "', argument " "4"" of type '" "int""'");
6584   }
6585   arg4 = static_cast< int >(val4);
6586   ecode5 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
6587   if (!SWIG_IsOK(ecode5)) {
6588     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Query" "', argument " "5"" of type '" "Xapian::Query::op""'");
6589   }
6590   arg5 = static_cast< Xapian::Query::op >(val5);
6591   {
6592     try {
6593       result = (Xapian::Query *)new Xapian::Query(arg1,(std::string const &)*arg2,arg3,arg4,arg5);
6594     } catch (const Xapian::Error &e) {
6595       return XapianTclHandleError(interp, e);
6596     } catch (...) {
6597       return XapianTclHandleError(interp);
6598     }
6599   }
6600   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query,0));
6601   if (SWIG_IsNewObj(res2)) delete arg2;
6602   return TCL_OK;
6603 fail:
6604   if (SWIG_IsNewObj(res2)) delete arg2;
6605   return TCL_ERROR;
6606 }
6607 
6608 
6609 SWIGINTERN int
_wrap_new_Query__SWIG_13(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])6610 _wrap_new_Query__SWIG_13(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6611   Xapian::Query::op arg1 ;
6612   std::string *arg2 = 0 ;
6613   Xapian::termcount arg3 ;
6614   int arg4 ;
6615   int val1 ;
6616   int ecode1 = 0 ;
6617   int res2 = SWIG_OLDOBJ ;
6618   unsigned int val3 ;
6619   int ecode3 = 0 ;
6620   int val4 ;
6621   int ecode4 = 0 ;
6622   Xapian::Query *result = 0 ;
6623 
6624   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::new_Query op_ pattern max_expansion max_type ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
6625   ecode1 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
6626   if (!SWIG_IsOK(ecode1)) {
6627     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query::op""'");
6628   }
6629   arg1 = static_cast< Xapian::Query::op >(val1);
6630   {
6631     std::string *ptr = (std::string *)0;
6632     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
6633     if (!SWIG_IsOK(res2)) {
6634       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Query" "', argument " "2"" of type '" "std::string const &""'");
6635     }
6636     if (!ptr) {
6637       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "2"" of type '" "std::string const &""'");
6638     }
6639     arg2 = ptr;
6640   }
6641   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
6642   if (!SWIG_IsOK(ecode3)) {
6643     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Query" "', argument " "3"" of type '" "Xapian::termcount""'");
6644   }
6645   arg3 = static_cast< Xapian::termcount >(val3);
6646   ecode4 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
6647   if (!SWIG_IsOK(ecode4)) {
6648     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Query" "', argument " "4"" of type '" "int""'");
6649   }
6650   arg4 = static_cast< int >(val4);
6651   {
6652     try {
6653       result = (Xapian::Query *)new Xapian::Query(arg1,(std::string const &)*arg2,arg3,arg4);
6654     } catch (const Xapian::Error &e) {
6655       return XapianTclHandleError(interp, e);
6656     } catch (...) {
6657       return XapianTclHandleError(interp);
6658     }
6659   }
6660   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query,0));
6661   if (SWIG_IsNewObj(res2)) delete arg2;
6662   return TCL_OK;
6663 fail:
6664   if (SWIG_IsNewObj(res2)) delete arg2;
6665   return TCL_ERROR;
6666 }
6667 
6668 
6669 SWIGINTERN int
_wrap_new_Query__SWIG_14(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])6670 _wrap_new_Query__SWIG_14(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6671   Xapian::Query::op arg1 ;
6672   std::string *arg2 = 0 ;
6673   Xapian::termcount arg3 ;
6674   int val1 ;
6675   int ecode1 = 0 ;
6676   int res2 = SWIG_OLDOBJ ;
6677   unsigned int val3 ;
6678   int ecode3 = 0 ;
6679   Xapian::Query *result = 0 ;
6680 
6681   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::new_Query op_ pattern max_expansion ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
6682   ecode1 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
6683   if (!SWIG_IsOK(ecode1)) {
6684     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query::op""'");
6685   }
6686   arg1 = static_cast< Xapian::Query::op >(val1);
6687   {
6688     std::string *ptr = (std::string *)0;
6689     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
6690     if (!SWIG_IsOK(res2)) {
6691       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Query" "', argument " "2"" of type '" "std::string const &""'");
6692     }
6693     if (!ptr) {
6694       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "2"" of type '" "std::string const &""'");
6695     }
6696     arg2 = ptr;
6697   }
6698   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
6699   if (!SWIG_IsOK(ecode3)) {
6700     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Query" "', argument " "3"" of type '" "Xapian::termcount""'");
6701   }
6702   arg3 = static_cast< Xapian::termcount >(val3);
6703   {
6704     try {
6705       result = (Xapian::Query *)new Xapian::Query(arg1,(std::string const &)*arg2,arg3);
6706     } catch (const Xapian::Error &e) {
6707       return XapianTclHandleError(interp, e);
6708     } catch (...) {
6709       return XapianTclHandleError(interp);
6710     }
6711   }
6712   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query,0));
6713   if (SWIG_IsNewObj(res2)) delete arg2;
6714   return TCL_OK;
6715 fail:
6716   if (SWIG_IsNewObj(res2)) delete arg2;
6717   return TCL_ERROR;
6718 }
6719 
6720 
6721 SWIGINTERN int
_wrap_new_Query__SWIG_15(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])6722 _wrap_new_Query__SWIG_15(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6723   Xapian::Query::op arg1 ;
6724   std::string *arg2 = 0 ;
6725   int val1 ;
6726   int ecode1 = 0 ;
6727   int res2 = SWIG_OLDOBJ ;
6728   Xapian::Query *result = 0 ;
6729 
6730   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::new_Query op_ pattern ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
6731   ecode1 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
6732   if (!SWIG_IsOK(ecode1)) {
6733     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query::op""'");
6734   }
6735   arg1 = static_cast< Xapian::Query::op >(val1);
6736   {
6737     std::string *ptr = (std::string *)0;
6738     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
6739     if (!SWIG_IsOK(res2)) {
6740       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Query" "', argument " "2"" of type '" "std::string const &""'");
6741     }
6742     if (!ptr) {
6743       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "2"" of type '" "std::string const &""'");
6744     }
6745     arg2 = ptr;
6746   }
6747   {
6748     try {
6749       result = (Xapian::Query *)new Xapian::Query(arg1,(std::string const &)*arg2);
6750     } catch (const Xapian::Error &e) {
6751       return XapianTclHandleError(interp, e);
6752     } catch (...) {
6753       return XapianTclHandleError(interp);
6754     }
6755   }
6756   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query,0));
6757   if (SWIG_IsNewObj(res2)) delete arg2;
6758   return TCL_OK;
6759 fail:
6760   if (SWIG_IsNewObj(res2)) delete arg2;
6761   return TCL_ERROR;
6762 }
6763 
6764 
6765 SWIGINTERN int
_wrap_new_Query__SWIG_18(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])6766 _wrap_new_Query__SWIG_18(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6767   Xapian::Query::op arg1 ;
6768   XapianSWIGQueryItor arg2 ;
6769   XapianSWIGQueryItor arg3 ;
6770   Xapian::termcount arg4 ;
6771   int val1 ;
6772   int ecode1 = 0 ;
6773   unsigned int val4 ;
6774   int ecode4 = 0 ;
6775   Xapian::Query *result = 0 ;
6776 
6777   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::new_Query op_ qbegin qend ?parameter? ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
6778   ecode1 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
6779   if (!SWIG_IsOK(ecode1)) {
6780     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query::op""'");
6781   }
6782   arg1 = static_cast< Xapian::Query::op >(val1);
6783   {
6784     Tcl_Obj ** items;
6785     int numitems;
6786     if (Tcl_ListObjGetElements(interp, objv[2], &numitems, &items) != TCL_OK) {
6787       return TCL_ERROR;
6788     }
6789     arg2 = XapianSWIGQueryItor(interp, items, numitems);
6790     // arg3 is default initialised where SWIG declares it.
6791   }
6792   ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val4);
6793   if (!SWIG_IsOK(ecode4)) {
6794     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Query" "', argument " "4"" of type '" "Xapian::termcount""'");
6795   }
6796   arg4 = static_cast< Xapian::termcount >(val4);
6797   {
6798     try {
6799       result = (Xapian::Query *)new Xapian::Query(arg1,arg2,arg3,arg4);
6800     } catch (const Xapian::Error &e) {
6801       return XapianTclHandleError(interp, e);
6802     } catch (...) {
6803       return XapianTclHandleError(interp);
6804     }
6805   }
6806   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query,0));
6807   return TCL_OK;
6808 fail:
6809   return TCL_ERROR;
6810 }
6811 
6812 
6813 SWIGINTERN int
_wrap_new_Query__SWIG_19(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])6814 _wrap_new_Query__SWIG_19(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6815   Xapian::Query::op arg1 ;
6816   XapianSWIGQueryItor arg2 ;
6817   XapianSWIGQueryItor arg3 ;
6818   int val1 ;
6819   int ecode1 = 0 ;
6820   Xapian::Query *result = 0 ;
6821 
6822   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::new_Query op_ qbegin ?qend? ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
6823   ecode1 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
6824   if (!SWIG_IsOK(ecode1)) {
6825     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query::op""'");
6826   }
6827   arg1 = static_cast< Xapian::Query::op >(val1);
6828   {
6829     Tcl_Obj ** items;
6830     int numitems;
6831     if (Tcl_ListObjGetElements(interp, objv[2], &numitems, &items) != TCL_OK) {
6832       return TCL_ERROR;
6833     }
6834     arg2 = XapianSWIGQueryItor(interp, items, numitems);
6835     // arg3 is default initialised where SWIG declares it.
6836   }
6837   {
6838     try {
6839       result = (Xapian::Query *)new Xapian::Query(arg1,arg2,arg3);
6840     } catch (const Xapian::Error &e) {
6841       return XapianTclHandleError(interp, e);
6842     } catch (...) {
6843       return XapianTclHandleError(interp);
6844     }
6845   }
6846   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query,0));
6847   return TCL_OK;
6848 fail:
6849   return TCL_ERROR;
6850 }
6851 
6852 
6853 SWIGINTERN int
_wrap_Query_get_terms_begin(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])6854 _wrap_Query_get_terms_begin(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6855   Xapian::Query *arg1 = (Xapian::Query *) 0 ;
6856   void *argp1 = 0 ;
6857   int res1 = 0 ;
6858   Xapian::TermIterator result;
6859 
6860   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Query_get_terms_begin self ",(void *)0) == TCL_ERROR) SWIG_fail;
6861   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Query, 0 |  0 );
6862   if (!SWIG_IsOK(res1)) {
6863     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Query_get_terms_begin" "', argument " "1"" of type '" "Xapian::Query const *""'");
6864   }
6865   arg1 = reinterpret_cast< Xapian::Query * >(argp1);
6866   {
6867     try {
6868       result = ((Xapian::Query const *)arg1)->get_terms_begin();
6869     } catch (const Xapian::Error &e) {
6870       return XapianTclHandleError(interp, e);
6871     } catch (...) {
6872       return XapianTclHandleError(interp);
6873     }
6874   }
6875   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN | 0 ));
6876   return TCL_OK;
6877 fail:
6878   return TCL_ERROR;
6879 }
6880 
6881 
6882 SWIGINTERN int
_wrap_Query_get_terms_end(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])6883 _wrap_Query_get_terms_end(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6884   Xapian::Query *arg1 = (Xapian::Query *) 0 ;
6885   void *argp1 = 0 ;
6886   int res1 = 0 ;
6887   Xapian::TermIterator result;
6888 
6889   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Query_get_terms_end self ",(void *)0) == TCL_ERROR) SWIG_fail;
6890   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Query, 0 |  0 );
6891   if (!SWIG_IsOK(res1)) {
6892     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Query_get_terms_end" "', argument " "1"" of type '" "Xapian::Query const *""'");
6893   }
6894   arg1 = reinterpret_cast< Xapian::Query * >(argp1);
6895   {
6896     try {
6897       result = ((Xapian::Query const *)arg1)->get_terms_end();
6898     } catch (const Xapian::Error &e) {
6899       return XapianTclHandleError(interp, e);
6900     } catch (...) {
6901       return XapianTclHandleError(interp);
6902     }
6903   }
6904   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN | 0 ));
6905   return TCL_OK;
6906 fail:
6907   return TCL_ERROR;
6908 }
6909 
6910 
6911 SWIGINTERN int
_wrap_Query_get_unique_terms_begin(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])6912 _wrap_Query_get_unique_terms_begin(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6913   Xapian::Query *arg1 = (Xapian::Query *) 0 ;
6914   void *argp1 = 0 ;
6915   int res1 = 0 ;
6916   Xapian::TermIterator result;
6917 
6918   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Query_get_unique_terms_begin self ",(void *)0) == TCL_ERROR) SWIG_fail;
6919   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Query, 0 |  0 );
6920   if (!SWIG_IsOK(res1)) {
6921     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Query_get_unique_terms_begin" "', argument " "1"" of type '" "Xapian::Query const *""'");
6922   }
6923   arg1 = reinterpret_cast< Xapian::Query * >(argp1);
6924   {
6925     try {
6926       result = ((Xapian::Query const *)arg1)->get_unique_terms_begin();
6927     } catch (const Xapian::Error &e) {
6928       return XapianTclHandleError(interp, e);
6929     } catch (...) {
6930       return XapianTclHandleError(interp);
6931     }
6932   }
6933   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN | 0 ));
6934   return TCL_OK;
6935 fail:
6936   return TCL_ERROR;
6937 }
6938 
6939 
6940 SWIGINTERN int
_wrap_Query_get_unique_terms_end(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])6941 _wrap_Query_get_unique_terms_end(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6942   Xapian::Query *arg1 = (Xapian::Query *) 0 ;
6943   void *argp1 = 0 ;
6944   int res1 = 0 ;
6945   Xapian::TermIterator result;
6946 
6947   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Query_get_unique_terms_end self ",(void *)0) == TCL_ERROR) SWIG_fail;
6948   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Query, 0 |  0 );
6949   if (!SWIG_IsOK(res1)) {
6950     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Query_get_unique_terms_end" "', argument " "1"" of type '" "Xapian::Query const *""'");
6951   }
6952   arg1 = reinterpret_cast< Xapian::Query * >(argp1);
6953   {
6954     try {
6955       result = ((Xapian::Query const *)arg1)->get_unique_terms_end();
6956     } catch (const Xapian::Error &e) {
6957       return XapianTclHandleError(interp, e);
6958     } catch (...) {
6959       return XapianTclHandleError(interp);
6960     }
6961   }
6962   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN | 0 ));
6963   return TCL_OK;
6964 fail:
6965   return TCL_ERROR;
6966 }
6967 
6968 
6969 SWIGINTERN int
_wrap_Query_get_length(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])6970 _wrap_Query_get_length(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6971   Xapian::Query *arg1 = (Xapian::Query *) 0 ;
6972   void *argp1 = 0 ;
6973   int res1 = 0 ;
6974   Xapian::termcount result;
6975 
6976   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Query_get_length self ",(void *)0) == TCL_ERROR) SWIG_fail;
6977   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Query, 0 |  0 );
6978   if (!SWIG_IsOK(res1)) {
6979     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Query_get_length" "', argument " "1"" of type '" "Xapian::Query const *""'");
6980   }
6981   arg1 = reinterpret_cast< Xapian::Query * >(argp1);
6982   {
6983     try {
6984       result = (Xapian::termcount)((Xapian::Query const *)arg1)->get_length();
6985     } catch (const Xapian::Error &e) {
6986       return XapianTclHandleError(interp, e);
6987     } catch (...) {
6988       return XapianTclHandleError(interp);
6989     }
6990   }
6991   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
6992   return TCL_OK;
6993 fail:
6994   return TCL_ERROR;
6995 }
6996 
6997 
6998 SWIGINTERN int
_wrap_Query_empty(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])6999 _wrap_Query_empty(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7000   Xapian::Query *arg1 = (Xapian::Query *) 0 ;
7001   void *argp1 = 0 ;
7002   int res1 = 0 ;
7003   bool result;
7004 
7005   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Query_empty self ",(void *)0) == TCL_ERROR) SWIG_fail;
7006   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Query, 0 |  0 );
7007   if (!SWIG_IsOK(res1)) {
7008     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Query_empty" "', argument " "1"" of type '" "Xapian::Query const *""'");
7009   }
7010   arg1 = reinterpret_cast< Xapian::Query * >(argp1);
7011   {
7012     try {
7013       result = (bool)((Xapian::Query const *)arg1)->empty();
7014     } catch (const Xapian::Error &e) {
7015       return XapianTclHandleError(interp, e);
7016     } catch (...) {
7017       return XapianTclHandleError(interp);
7018     }
7019   }
7020   Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
7021   return TCL_OK;
7022 fail:
7023   return TCL_ERROR;
7024 }
7025 
7026 
7027 SWIGINTERN int
_wrap_Query_serialise(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])7028 _wrap_Query_serialise(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7029   Xapian::Query *arg1 = (Xapian::Query *) 0 ;
7030   void *argp1 = 0 ;
7031   int res1 = 0 ;
7032   std::string result;
7033 
7034   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Query_serialise self ",(void *)0) == TCL_ERROR) SWIG_fail;
7035   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Query, 0 |  0 );
7036   if (!SWIG_IsOK(res1)) {
7037     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Query_serialise" "', argument " "1"" of type '" "Xapian::Query const *""'");
7038   }
7039   arg1 = reinterpret_cast< Xapian::Query * >(argp1);
7040   {
7041     try {
7042       result = ((Xapian::Query const *)arg1)->serialise();
7043     } catch (const Xapian::Error &e) {
7044       return XapianTclHandleError(interp, e);
7045     } catch (...) {
7046       return XapianTclHandleError(interp);
7047     }
7048   }
7049   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
7050   return TCL_OK;
7051 fail:
7052   return TCL_ERROR;
7053 }
7054 
7055 
7056 SWIGINTERN int
_wrap_Query_unserialise__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])7057 _wrap_Query_unserialise__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7058   std::string *arg1 = 0 ;
7059   Xapian::Registry *arg2 = 0 ;
7060   int res1 = SWIG_OLDOBJ ;
7061   void *argp2 ;
7062   int res2 = 0 ;
7063   Xapian::Query result;
7064 
7065   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Query_unserialise serialised reg ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
7066   {
7067     std::string *ptr = (std::string *)0;
7068     res1 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[1], &ptr);
7069     if (!SWIG_IsOK(res1)) {
7070       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Query_unserialise" "', argument " "1"" of type '" "std::string const &""'");
7071     }
7072     if (!ptr) {
7073       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Query_unserialise" "', argument " "1"" of type '" "std::string const &""'");
7074     }
7075     arg1 = ptr;
7076   }
7077   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__Registry,  0 );
7078   if (!SWIG_IsOK(res2)) {
7079     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Query_unserialise" "', argument " "2"" of type '" "Xapian::Registry const &""'");
7080   }
7081   if (!argp2) {
7082     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Query_unserialise" "', argument " "2"" of type '" "Xapian::Registry const &""'");
7083   }
7084   arg2 = reinterpret_cast< Xapian::Registry * >(argp2);
7085   {
7086     try {
7087       result = Xapian::Query::unserialise((std::string const &)*arg1,(Xapian::Registry const &)*arg2);
7088     } catch (const Xapian::Error &e) {
7089       return XapianTclHandleError(interp, e);
7090     } catch (...) {
7091       return XapianTclHandleError(interp);
7092     }
7093   }
7094   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::Query(static_cast< const Xapian::Query& >(result))), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_OWN | 0 ));
7095   if (SWIG_IsNewObj(res1)) delete arg1;
7096   return TCL_OK;
7097 fail:
7098   if (SWIG_IsNewObj(res1)) delete arg1;
7099   return TCL_ERROR;
7100 }
7101 
7102 
7103 SWIGINTERN int
_wrap_Query_unserialise__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])7104 _wrap_Query_unserialise__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7105   std::string *arg1 = 0 ;
7106   int res1 = SWIG_OLDOBJ ;
7107   Xapian::Query result;
7108 
7109   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Query_unserialise serialised ",(void *)0) == TCL_ERROR) SWIG_fail;
7110   {
7111     std::string *ptr = (std::string *)0;
7112     res1 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[1], &ptr);
7113     if (!SWIG_IsOK(res1)) {
7114       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Query_unserialise" "', argument " "1"" of type '" "std::string const &""'");
7115     }
7116     if (!ptr) {
7117       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Query_unserialise" "', argument " "1"" of type '" "std::string const &""'");
7118     }
7119     arg1 = ptr;
7120   }
7121   {
7122     try {
7123       result = Xapian::Query::unserialise((std::string const &)*arg1);
7124     } catch (const Xapian::Error &e) {
7125       return XapianTclHandleError(interp, e);
7126     } catch (...) {
7127       return XapianTclHandleError(interp);
7128     }
7129   }
7130   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::Query(static_cast< const Xapian::Query& >(result))), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_OWN | 0 ));
7131   if (SWIG_IsNewObj(res1)) delete arg1;
7132   return TCL_OK;
7133 fail:
7134   if (SWIG_IsNewObj(res1)) delete arg1;
7135   return TCL_ERROR;
7136 }
7137 
7138 
7139 SWIGINTERN int
_wrap_Query_unserialise(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])7140 _wrap_Query_unserialise(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7141   Tcl_Obj *CONST *argv = objv+1;
7142   int argc = objc-1;
7143   if (argc == 1) {
7144     int _v;
7145     int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[0], (std::string**)(0));
7146     _v = SWIG_CheckState(res);
7147     if (_v) {
7148       return _wrap_Query_unserialise__SWIG_1(clientData, interp, objc, argv - 1);
7149     }
7150   }
7151   if (argc == 2) {
7152     int _v;
7153     int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[0], (std::string**)(0));
7154     _v = SWIG_CheckState(res);
7155     if (_v) {
7156       void *vptr = 0;
7157       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Xapian__Registry, 0);
7158       _v = SWIG_CheckState(res);
7159       if (_v) {
7160         return _wrap_Query_unserialise__SWIG_0(clientData, interp, objc, argv - 1);
7161       }
7162     }
7163   }
7164 
7165   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'Query_unserialise'.\n"
7166     "  Possible C/C++ prototypes are:\n"
7167     "    Xapian::Query::unserialise(std::string const &,Xapian::Registry const &)\n"
7168     "    Xapian::Query::unserialise(std::string const &)\n", TCL_STATIC);
7169   return TCL_ERROR;
7170 }
7171 
7172 
7173 SWIGINTERN int
_wrap_Query_get_type(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])7174 _wrap_Query_get_type(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7175   Xapian::Query *arg1 = (Xapian::Query *) 0 ;
7176   void *argp1 = 0 ;
7177   int res1 = 0 ;
7178   Xapian::Query::op result;
7179 
7180   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Query_get_type self ",(void *)0) == TCL_ERROR) SWIG_fail;
7181   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Query, 0 |  0 );
7182   if (!SWIG_IsOK(res1)) {
7183     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Query_get_type" "', argument " "1"" of type '" "Xapian::Query const *""'");
7184   }
7185   arg1 = reinterpret_cast< Xapian::Query * >(argp1);
7186   {
7187     try {
7188       result = (Xapian::Query::op)((Xapian::Query const *)arg1)->get_type();
7189     } catch (const Xapian::Error &e) {
7190       return XapianTclHandleError(interp, e);
7191     } catch (...) {
7192       return XapianTclHandleError(interp);
7193     }
7194   }
7195   Tcl_SetObjResult(interp,SWIG_From_int(static_cast< int >(result)));
7196   return TCL_OK;
7197 fail:
7198   return TCL_ERROR;
7199 }
7200 
7201 
7202 SWIGINTERN int
_wrap_Query_get_num_subqueries(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])7203 _wrap_Query_get_num_subqueries(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7204   Xapian::Query *arg1 = (Xapian::Query *) 0 ;
7205   void *argp1 = 0 ;
7206   int res1 = 0 ;
7207   size_t result;
7208 
7209   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Query_get_num_subqueries self ",(void *)0) == TCL_ERROR) SWIG_fail;
7210   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Query, 0 |  0 );
7211   if (!SWIG_IsOK(res1)) {
7212     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Query_get_num_subqueries" "', argument " "1"" of type '" "Xapian::Query const *""'");
7213   }
7214   arg1 = reinterpret_cast< Xapian::Query * >(argp1);
7215   {
7216     try {
7217       result = ((Xapian::Query const *)arg1)->get_num_subqueries();
7218     } catch (const Xapian::Error &e) {
7219       return XapianTclHandleError(interp, e);
7220     } catch (...) {
7221       return XapianTclHandleError(interp);
7222     }
7223   }
7224   Tcl_SetObjResult(interp,SWIG_From_size_t(static_cast< size_t >(result)));
7225   return TCL_OK;
7226 fail:
7227   return TCL_ERROR;
7228 }
7229 
7230 
7231 SWIGINTERN int
_wrap_Query_get_subquery(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])7232 _wrap_Query_get_subquery(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7233   Xapian::Query *arg1 = (Xapian::Query *) 0 ;
7234   size_t arg2 ;
7235   void *argp1 = 0 ;
7236   int res1 = 0 ;
7237   size_t val2 ;
7238   int ecode2 = 0 ;
7239   Xapian::Query result;
7240 
7241   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Query_get_subquery self n ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
7242   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Query, 0 |  0 );
7243   if (!SWIG_IsOK(res1)) {
7244     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Query_get_subquery" "', argument " "1"" of type '" "Xapian::Query const *""'");
7245   }
7246   arg1 = reinterpret_cast< Xapian::Query * >(argp1);
7247   ecode2 = SWIG_AsVal_size_t SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
7248   if (!SWIG_IsOK(ecode2)) {
7249     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Query_get_subquery" "', argument " "2"" of type '" "size_t""'");
7250   }
7251   arg2 = static_cast< size_t >(val2);
7252   {
7253     try {
7254       result = ((Xapian::Query const *)arg1)->get_subquery(arg2);
7255     } catch (const Xapian::Error &e) {
7256       return XapianTclHandleError(interp, e);
7257     } catch (...) {
7258       return XapianTclHandleError(interp);
7259     }
7260   }
7261   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::Query(static_cast< const Xapian::Query& >(result))), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_OWN | 0 ));
7262   return TCL_OK;
7263 fail:
7264   return TCL_ERROR;
7265 }
7266 
7267 
7268 SWIGINTERN int
_wrap_Query_get_description(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])7269 _wrap_Query_get_description(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7270   Xapian::Query *arg1 = (Xapian::Query *) 0 ;
7271   void *argp1 = 0 ;
7272   int res1 = 0 ;
7273   std::string result;
7274 
7275   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Query_get_description self ",(void *)0) == TCL_ERROR) SWIG_fail;
7276   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Query, 0 |  0 );
7277   if (!SWIG_IsOK(res1)) {
7278     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Query_get_description" "', argument " "1"" of type '" "Xapian::Query const *""'");
7279   }
7280   arg1 = reinterpret_cast< Xapian::Query * >(argp1);
7281   {
7282     try {
7283       result = ((Xapian::Query const *)arg1)->get_description();
7284     } catch (const Xapian::Error &e) {
7285       return XapianTclHandleError(interp, e);
7286     } catch (...) {
7287       return XapianTclHandleError(interp);
7288     }
7289   }
7290   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
7291   return TCL_OK;
7292 fail:
7293   return TCL_ERROR;
7294 }
7295 
7296 
7297 SWIGINTERN int
_wrap_new_Query__SWIG_20(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])7298 _wrap_new_Query__SWIG_20(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7299   Xapian::Query::op arg1 ;
7300   int val1 ;
7301   int ecode1 = 0 ;
7302   Xapian::Query *result = 0 ;
7303 
7304   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_Query op_ ",(void *)0) == TCL_ERROR) SWIG_fail;
7305   ecode1 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
7306   if (!SWIG_IsOK(ecode1)) {
7307     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query::op""'");
7308   }
7309   arg1 = static_cast< Xapian::Query::op >(val1);
7310   {
7311     try {
7312       result = (Xapian::Query *)new Xapian::Query(arg1);
7313     } catch (const Xapian::Error &e) {
7314       return XapianTclHandleError(interp, e);
7315     } catch (...) {
7316       return XapianTclHandleError(interp);
7317     }
7318   }
7319   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query,0));
7320   return TCL_OK;
7321 fail:
7322   return TCL_ERROR;
7323 }
7324 
7325 
7326 SWIGINTERN int
_wrap_new_Query(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])7327 _wrap_new_Query(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7328   Tcl_Obj *CONST *argv = objv+1;
7329   int argc = objc-1;
7330   if (argc == 0) {
7331     return _wrap_new_Query__SWIG_0(clientData, interp, objc, argv - 1);
7332   }
7333   if (argc == 1) {
7334     int _v;
7335     void *vptr = 0;
7336     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Query, 0);
7337     _v = SWIG_CheckState(res);
7338     if (_v) {
7339       return _wrap_new_Query__SWIG_1(clientData, interp, objc, argv - 1);
7340     }
7341   }
7342   if (argc == 1) {
7343     int _v;
7344     void *vptr = 0;
7345     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__PostingSource, 0);
7346     _v = SWIG_CheckState(res);
7347     if (_v) {
7348       return _wrap_new_Query__SWIG_5(clientData, interp, objc, argv - 1);
7349     }
7350   }
7351   if (argc == 1) {
7352     int _v;
7353     {
7354       int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
7355       _v = SWIG_CheckState(res);
7356     }
7357     if (_v) {
7358       return _wrap_new_Query__SWIG_20(clientData, interp, objc, argv - 1);
7359     }
7360   }
7361   if (argc == 1) {
7362     int _v;
7363     int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[0], (std::string**)(0));
7364     _v = SWIG_CheckState(res);
7365     if (_v) {
7366       return _wrap_new_Query__SWIG_4(clientData, interp, objc, argv - 1);
7367     }
7368   }
7369   if (argc == 2) {
7370     int _v;
7371     {
7372       int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
7373       _v = SWIG_CheckState(res);
7374     }
7375     if (_v) {
7376       {
7377         int dummy;
7378         _v = (Tcl_ListObjLength(interp, argv[1], &dummy) == TCL_OK);
7379         /* FIXME: if we add more array typemaps, we'll need to check the elements
7380              * of the array here to disambiguate. */
7381       }
7382       if (_v) {
7383         if (argc <= 2) {
7384           return _wrap_new_Query__SWIG_19(clientData, interp, objc, argv - 1);
7385         }
7386         return _wrap_new_Query__SWIG_19(clientData, interp, objc, argv - 1);
7387       }
7388     }
7389   }
7390   if (argc == 2) {
7391     int _v;
7392     {
7393       int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
7394       _v = SWIG_CheckState(res);
7395     }
7396     if (_v) {
7397       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
7398       _v = SWIG_CheckState(res);
7399       if (_v) {
7400         return _wrap_new_Query__SWIG_15(clientData, interp, objc, argv - 1);
7401       }
7402     }
7403   }
7404   if (argc == 2) {
7405     int _v;
7406     {
7407       int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
7408       _v = SWIG_CheckState(res);
7409     }
7410     if (_v) {
7411       void *vptr = 0;
7412       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Xapian__Query, 0);
7413       _v = SWIG_CheckState(res);
7414       if (_v) {
7415         return _wrap_new_Query__SWIG_6(clientData, interp, objc, argv - 1);
7416       }
7417     }
7418   }
7419   if (argc == 2) {
7420     int _v;
7421     int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[0], (std::string**)(0));
7422     _v = SWIG_CheckState(res);
7423     if (_v) {
7424       {
7425         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
7426         _v = SWIG_CheckState(res);
7427       }
7428       if (_v) {
7429         return _wrap_new_Query__SWIG_3(clientData, interp, objc, argv - 1);
7430       }
7431     }
7432   }
7433   if (argc == 3) {
7434     int _v;
7435     {
7436       int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
7437       _v = SWIG_CheckState(res);
7438     }
7439     if (_v) {
7440       void *vptr = 0;
7441       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Xapian__Query, 0);
7442       _v = SWIG_CheckState(res);
7443       if (_v) {
7444         void *vptr = 0;
7445         int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_Xapian__Query, 0);
7446         _v = SWIG_CheckState(res);
7447         if (_v) {
7448           return _wrap_new_Query__SWIG_8(clientData, interp, objc, argv - 1);
7449         }
7450       }
7451     }
7452   }
7453   if (argc == 3) {
7454     int _v;
7455     {
7456       int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
7457       _v = SWIG_CheckState(res);
7458     }
7459     if (_v) {
7460       void *vptr = 0;
7461       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Xapian__Query, 0);
7462       _v = SWIG_CheckState(res);
7463       if (_v) {
7464         {
7465           int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
7466           _v = SWIG_CheckState(res);
7467         }
7468         if (_v) {
7469           return _wrap_new_Query__SWIG_7(clientData, interp, objc, argv - 1);
7470         }
7471       }
7472     }
7473   }
7474   if (argc == 3) {
7475     int _v;
7476     {
7477       int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
7478       _v = SWIG_CheckState(res);
7479     }
7480     if (_v) {
7481       {
7482         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
7483         _v = SWIG_CheckState(res);
7484       }
7485       if (_v) {
7486         int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[2], (std::string**)(0));
7487         _v = SWIG_CheckState(res);
7488         if (_v) {
7489           return _wrap_new_Query__SWIG_10(clientData, interp, objc, argv - 1);
7490         }
7491       }
7492     }
7493   }
7494   if (argc == 3) {
7495     int _v;
7496     {
7497       int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
7498       _v = SWIG_CheckState(res);
7499     }
7500     if (_v) {
7501       {
7502         int dummy;
7503         _v = (Tcl_ListObjLength(interp, argv[1], &dummy) == TCL_OK);
7504         /* FIXME: if we add more array typemaps, we'll need to check the elements
7505              * of the array here to disambiguate. */
7506       }
7507       if (_v) {
7508         {
7509           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
7510           _v = SWIG_CheckState(res);
7511         }
7512         if (_v) {
7513           return _wrap_new_Query__SWIG_18(clientData, interp, objc, argv - 1);
7514         }
7515       }
7516     }
7517   }
7518   if (argc == 3) {
7519     int _v;
7520     {
7521       int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
7522       _v = SWIG_CheckState(res);
7523     }
7524     if (_v) {
7525       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
7526       _v = SWIG_CheckState(res);
7527       if (_v) {
7528         {
7529           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
7530           _v = SWIG_CheckState(res);
7531         }
7532         if (_v) {
7533           return _wrap_new_Query__SWIG_14(clientData, interp, objc, argv - 1);
7534         }
7535       }
7536     }
7537   }
7538   if (argc == 3) {
7539     int _v;
7540     {
7541       int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
7542       _v = SWIG_CheckState(res);
7543     }
7544     if (_v) {
7545       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
7546       _v = SWIG_CheckState(res);
7547       if (_v) {
7548         int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[2], (std::string**)(0));
7549         _v = SWIG_CheckState(res);
7550         if (_v) {
7551           return _wrap_new_Query__SWIG_9(clientData, interp, objc, argv - 1);
7552         }
7553       }
7554     }
7555   }
7556   if (argc == 3) {
7557     int _v;
7558     int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[0], (std::string**)(0));
7559     _v = SWIG_CheckState(res);
7560     if (_v) {
7561       {
7562         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
7563         _v = SWIG_CheckState(res);
7564       }
7565       if (_v) {
7566         {
7567           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
7568           _v = SWIG_CheckState(res);
7569         }
7570         if (_v) {
7571           return _wrap_new_Query__SWIG_2(clientData, interp, objc, argv - 1);
7572         }
7573       }
7574     }
7575   }
7576   if (argc == 4) {
7577     int _v;
7578     {
7579       int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
7580       _v = SWIG_CheckState(res);
7581     }
7582     if (_v) {
7583       {
7584         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
7585         _v = SWIG_CheckState(res);
7586       }
7587       if (_v) {
7588         int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[2], (std::string**)(0));
7589         _v = SWIG_CheckState(res);
7590         if (_v) {
7591           int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[3], (std::string**)(0));
7592           _v = SWIG_CheckState(res);
7593           if (_v) {
7594             return _wrap_new_Query__SWIG_11(clientData, interp, objc, argv - 1);
7595           }
7596         }
7597       }
7598     }
7599   }
7600   if (argc == 4) {
7601     int _v;
7602     {
7603       int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
7604       _v = SWIG_CheckState(res);
7605     }
7606     if (_v) {
7607       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
7608       _v = SWIG_CheckState(res);
7609       if (_v) {
7610         {
7611           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
7612           _v = SWIG_CheckState(res);
7613         }
7614         if (_v) {
7615           {
7616             int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
7617             _v = SWIG_CheckState(res);
7618           }
7619           if (_v) {
7620             return _wrap_new_Query__SWIG_13(clientData, interp, objc, argv - 1);
7621           }
7622         }
7623       }
7624     }
7625   }
7626   if (argc == 5) {
7627     int _v;
7628     {
7629       int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
7630       _v = SWIG_CheckState(res);
7631     }
7632     if (_v) {
7633       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
7634       _v = SWIG_CheckState(res);
7635       if (_v) {
7636         {
7637           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
7638           _v = SWIG_CheckState(res);
7639         }
7640         if (_v) {
7641           {
7642             int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
7643             _v = SWIG_CheckState(res);
7644           }
7645           if (_v) {
7646             {
7647               int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[4], NULL);
7648               _v = SWIG_CheckState(res);
7649             }
7650             if (_v) {
7651               return _wrap_new_Query__SWIG_12(clientData, interp, objc, argv - 1);
7652             }
7653           }
7654         }
7655       }
7656     }
7657   }
7658 
7659   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_Query'.\n"
7660     "  Possible C/C++ prototypes are:\n"
7661     "    Xapian::Query::Query()\n"
7662     "    Xapian::Query::Query(Xapian::Query const &)\n"
7663     "    Xapian::Query::Query(std::string const &,Xapian::termcount,Xapian::termpos)\n"
7664     "    Xapian::Query::Query(std::string const &,Xapian::termcount)\n"
7665     "    Xapian::Query::Query(std::string const &)\n"
7666     "    Xapian::Query::Query(Xapian::PostingSource *)\n"
7667     "    Xapian::Query::Query(double,Xapian::Query const &)\n"
7668     "    Xapian::Query::Query(Xapian::Query::op,Xapian::Query const &,double)\n"
7669     "    Xapian::Query::Query(Xapian::Query::op,Xapian::Query const &,Xapian::Query const &)\n"
7670     "    Xapian::Query::Query(Xapian::Query::op,std::string const &,std::string const &)\n"
7671     "    Xapian::Query::Query(Xapian::Query::op,Xapian::valueno,std::string const &)\n"
7672     "    Xapian::Query::Query(Xapian::Query::op,Xapian::valueno,std::string const &,std::string const &)\n"
7673     "    Xapian::Query::Query(Xapian::Query::op,std::string const &,Xapian::termcount,int,Xapian::Query::op)\n"
7674     "    Xapian::Query::Query(Xapian::Query::op,std::string const &,Xapian::termcount,int)\n"
7675     "    Xapian::Query::Query(Xapian::Query::op,std::string const &,Xapian::termcount)\n"
7676     "    Xapian::Query::Query(Xapian::Query::op,std::string const &)\n"
7677     "    Xapian::Query::Query(Xapian::Query::op,XapianSWIGQueryItor,XapianSWIGQueryItor,Xapian::termcount)\n"
7678     "    Xapian::Query::Query(Xapian::Query::op,XapianSWIGQueryItor,XapianSWIGQueryItor)\n"
7679     "    Xapian::Query::Query(Xapian::Query::op)\n", TCL_STATIC);
7680   return TCL_ERROR;
7681 }
7682 
7683 
swig_delete_Query(void * obj)7684 SWIGINTERN void swig_delete_Query(void *obj) {
7685 Xapian::Query *arg1 = (Xapian::Query *) obj;
7686 delete arg1;
7687 }
7688 static swig_method swig_Xapian_Query_methods[] = {
7689     {"get_terms_begin", _wrap_Query_get_terms_begin},
7690     {"get_terms_end", _wrap_Query_get_terms_end},
7691     {"get_unique_terms_begin", _wrap_Query_get_unique_terms_begin},
7692     {"get_unique_terms_end", _wrap_Query_get_unique_terms_end},
7693     {"get_length", _wrap_Query_get_length},
7694     {"empty", _wrap_Query_empty},
7695     {"serialise", _wrap_Query_serialise},
7696     {"get_type", _wrap_Query_get_type},
7697     {"get_num_subqueries", _wrap_Query_get_num_subqueries},
7698     {"get_subquery", _wrap_Query_get_subquery},
7699     {"get_description", _wrap_Query_get_description},
7700     {0,0}
7701 };
7702 static swig_attribute swig_Xapian_Query_attributes[] = {
7703     {0,0,0}
7704 };
7705 static swig_class *swig_Xapian_Query_bases[] = {0};
7706 static const char * swig_Xapian_Query_base_names[] = {0};
7707 static swig_class _wrap_class_Xapian_Query = { "Query", &SWIGTYPE_p_Xapian__Query,_wrap_new_Query, swig_delete_Query, swig_Xapian_Query_methods, swig_Xapian_Query_attributes, swig_Xapian_Query_bases,swig_Xapian_Query_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
7708 SWIGINTERN int
_wrap_new_Stem__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])7709 _wrap_new_Stem__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7710   Xapian::Stem *arg1 = 0 ;
7711   void *argp1 ;
7712   int res1 = 0 ;
7713   Xapian::Stem *result = 0 ;
7714 
7715   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_Stem o ",(void *)0) == TCL_ERROR) SWIG_fail;
7716   res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_Xapian__Stem,  0 );
7717   if (!SWIG_IsOK(res1)) {
7718     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Stem" "', argument " "1"" of type '" "Xapian::Stem const &""'");
7719   }
7720   if (!argp1) {
7721     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Stem" "', argument " "1"" of type '" "Xapian::Stem const &""'");
7722   }
7723   arg1 = reinterpret_cast< Xapian::Stem * >(argp1);
7724   {
7725     try {
7726       result = (Xapian::Stem *)new Xapian::Stem((Xapian::Stem const &)*arg1);
7727     } catch (const Xapian::Error &e) {
7728       return XapianTclHandleError(interp, e);
7729     } catch (...) {
7730       return XapianTclHandleError(interp);
7731     }
7732   }
7733   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Stem,0));
7734   return TCL_OK;
7735 fail:
7736   return TCL_ERROR;
7737 }
7738 
7739 
7740 SWIGINTERN int
_wrap_new_Stem__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])7741 _wrap_new_Stem__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7742   std::string *arg1 = 0 ;
7743   int res1 = SWIG_OLDOBJ ;
7744   Xapian::Stem *result = 0 ;
7745 
7746   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_Stem language ",(void *)0) == TCL_ERROR) SWIG_fail;
7747   {
7748     std::string *ptr = (std::string *)0;
7749     res1 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[1], &ptr);
7750     if (!SWIG_IsOK(res1)) {
7751       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Stem" "', argument " "1"" of type '" "std::string const &""'");
7752     }
7753     if (!ptr) {
7754       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Stem" "', argument " "1"" of type '" "std::string const &""'");
7755     }
7756     arg1 = ptr;
7757   }
7758   {
7759     try {
7760       result = (Xapian::Stem *)new Xapian::Stem((std::string const &)*arg1);
7761     } catch (const Xapian::Error &e) {
7762       return XapianTclHandleError(interp, e);
7763     } catch (...) {
7764       return XapianTclHandleError(interp);
7765     }
7766   }
7767   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Stem,0));
7768   if (SWIG_IsNewObj(res1)) delete arg1;
7769   return TCL_OK;
7770 fail:
7771   if (SWIG_IsNewObj(res1)) delete arg1;
7772   return TCL_ERROR;
7773 }
7774 
7775 
7776 SWIGINTERN int
_wrap_new_Stem__SWIG_2(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])7777 _wrap_new_Stem__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7778   std::string *arg1 = 0 ;
7779   bool arg2 ;
7780   int res1 = SWIG_OLDOBJ ;
7781   bool val2 ;
7782   int ecode2 = 0 ;
7783   Xapian::Stem *result = 0 ;
7784 
7785   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::new_Stem language fallback ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
7786   {
7787     std::string *ptr = (std::string *)0;
7788     res1 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[1], &ptr);
7789     if (!SWIG_IsOK(res1)) {
7790       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Stem" "', argument " "1"" of type '" "std::string const &""'");
7791     }
7792     if (!ptr) {
7793       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Stem" "', argument " "1"" of type '" "std::string const &""'");
7794     }
7795     arg1 = ptr;
7796   }
7797   ecode2 = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
7798   if (!SWIG_IsOK(ecode2)) {
7799     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Stem" "', argument " "2"" of type '" "bool""'");
7800   }
7801   arg2 = static_cast< bool >(val2);
7802   {
7803     try {
7804       result = (Xapian::Stem *)new Xapian::Stem((std::string const &)*arg1,arg2);
7805     } catch (const Xapian::Error &e) {
7806       return XapianTclHandleError(interp, e);
7807     } catch (...) {
7808       return XapianTclHandleError(interp);
7809     }
7810   }
7811   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Stem,0));
7812   if (SWIG_IsNewObj(res1)) delete arg1;
7813   return TCL_OK;
7814 fail:
7815   if (SWIG_IsNewObj(res1)) delete arg1;
7816   return TCL_ERROR;
7817 }
7818 
7819 
7820 SWIGINTERN int
_wrap_new_Stem__SWIG_3(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])7821 _wrap_new_Stem__SWIG_3(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7822   Xapian::StemImplementation *arg1 = (Xapian::StemImplementation *) 0 ;
7823   void *argp1 = 0 ;
7824   int res1 = 0 ;
7825   Xapian::Stem *result = 0 ;
7826 
7827   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_Stem p ",(void *)0) == TCL_ERROR) SWIG_fail;
7828   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__StemImplementation, 0 |  0 );
7829   if (!SWIG_IsOK(res1)) {
7830     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Stem" "', argument " "1"" of type '" "Xapian::StemImplementation *""'");
7831   }
7832   arg1 = reinterpret_cast< Xapian::StemImplementation * >(argp1);
7833   {
7834     try {
7835       result = (Xapian::Stem *)new Xapian::Stem(arg1);
7836     } catch (const Xapian::Error &e) {
7837       return XapianTclHandleError(interp, e);
7838     } catch (...) {
7839       return XapianTclHandleError(interp);
7840     }
7841   }
7842   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Stem,0));
7843   return TCL_OK;
7844 fail:
7845   return TCL_ERROR;
7846 }
7847 
7848 
7849 SWIGINTERN int
_wrap_new_Stem(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])7850 _wrap_new_Stem(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7851   Tcl_Obj *CONST *argv = objv+1;
7852   int argc = objc-1;
7853   if (argc == 1) {
7854     int _v;
7855     void *vptr = 0;
7856     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Stem, 0);
7857     _v = SWIG_CheckState(res);
7858     if (_v) {
7859       return _wrap_new_Stem__SWIG_0(clientData, interp, objc, argv - 1);
7860     }
7861   }
7862   if (argc == 1) {
7863     int _v;
7864     void *vptr = 0;
7865     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__StemImplementation, 0);
7866     _v = SWIG_CheckState(res);
7867     if (_v) {
7868       return _wrap_new_Stem__SWIG_3(clientData, interp, objc, argv - 1);
7869     }
7870   }
7871   if (argc == 1) {
7872     int _v;
7873     int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[0], (std::string**)(0));
7874     _v = SWIG_CheckState(res);
7875     if (_v) {
7876       return _wrap_new_Stem__SWIG_1(clientData, interp, objc, argv - 1);
7877     }
7878   }
7879   if (argc == 2) {
7880     int _v;
7881     int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[0], (std::string**)(0));
7882     _v = SWIG_CheckState(res);
7883     if (_v) {
7884       {
7885         int res = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
7886         _v = SWIG_CheckState(res);
7887       }
7888       if (_v) {
7889         return _wrap_new_Stem__SWIG_2(clientData, interp, objc, argv - 1);
7890       }
7891     }
7892   }
7893 
7894   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_Stem'.\n"
7895     "  Possible C/C++ prototypes are:\n"
7896     "    Xapian::Stem::Stem(Xapian::Stem const &)\n"
7897     "    Xapian::Stem::Stem(std::string const &)\n"
7898     "    Xapian::Stem::Stem(std::string const &,bool)\n"
7899     "    Xapian::Stem::Stem(Xapian::StemImplementation *)\n", TCL_STATIC);
7900   return TCL_ERROR;
7901 }
7902 
7903 
7904 SWIGINTERN int
_wrap_delete_Stem(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])7905 _wrap_delete_Stem(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7906   Xapian::Stem *arg1 = (Xapian::Stem *) 0 ;
7907   void *argp1 = 0 ;
7908   int res1 = 0 ;
7909 
7910   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_Stem self ",(void *)0) == TCL_ERROR) SWIG_fail;
7911   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Stem, SWIG_POINTER_DISOWN |  0 );
7912   if (!SWIG_IsOK(res1)) {
7913     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Stem" "', argument " "1"" of type '" "Xapian::Stem *""'");
7914   }
7915   arg1 = reinterpret_cast< Xapian::Stem * >(argp1);
7916   {
7917     try {
7918       delete arg1;
7919     } catch (const Xapian::Error &e) {
7920       return XapianTclHandleError(interp, e);
7921     } catch (...) {
7922       return XapianTclHandleError(interp);
7923     }
7924   }
7925 
7926   return TCL_OK;
7927 fail:
7928   return TCL_ERROR;
7929 }
7930 
7931 
7932 SWIGINTERN int
_wrap_Stem_apply(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])7933 _wrap_Stem_apply(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7934   Xapian::Stem *arg1 = (Xapian::Stem *) 0 ;
7935   std::string *arg2 = 0 ;
7936   void *argp1 = 0 ;
7937   int res1 = 0 ;
7938   int res2 = SWIG_OLDOBJ ;
7939   std::string result;
7940 
7941   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Stem_apply self word ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
7942   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Stem, 0 |  0 );
7943   if (!SWIG_IsOK(res1)) {
7944     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Stem_apply" "', argument " "1"" of type '" "Xapian::Stem const *""'");
7945   }
7946   arg1 = reinterpret_cast< Xapian::Stem * >(argp1);
7947   {
7948     std::string *ptr = (std::string *)0;
7949     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
7950     if (!SWIG_IsOK(res2)) {
7951       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Stem_apply" "', argument " "2"" of type '" "std::string const &""'");
7952     }
7953     if (!ptr) {
7954       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Stem_apply" "', argument " "2"" of type '" "std::string const &""'");
7955     }
7956     arg2 = ptr;
7957   }
7958   {
7959     try {
7960       result = ((Xapian::Stem const *)arg1)->operator ()((std::string const &)*arg2);
7961     } catch (const Xapian::Error &e) {
7962       return XapianTclHandleError(interp, e);
7963     } catch (...) {
7964       return XapianTclHandleError(interp);
7965     }
7966   }
7967   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
7968   if (SWIG_IsNewObj(res2)) delete arg2;
7969   return TCL_OK;
7970 fail:
7971   if (SWIG_IsNewObj(res2)) delete arg2;
7972   return TCL_ERROR;
7973 }
7974 
7975 
7976 SWIGINTERN int
_wrap_Stem_is_none(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])7977 _wrap_Stem_is_none(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7978   Xapian::Stem *arg1 = (Xapian::Stem *) 0 ;
7979   void *argp1 = 0 ;
7980   int res1 = 0 ;
7981   bool result;
7982 
7983   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Stem_is_none self ",(void *)0) == TCL_ERROR) SWIG_fail;
7984   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Stem, 0 |  0 );
7985   if (!SWIG_IsOK(res1)) {
7986     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Stem_is_none" "', argument " "1"" of type '" "Xapian::Stem const *""'");
7987   }
7988   arg1 = reinterpret_cast< Xapian::Stem * >(argp1);
7989   {
7990     try {
7991       result = (bool)((Xapian::Stem const *)arg1)->is_none();
7992     } catch (const Xapian::Error &e) {
7993       return XapianTclHandleError(interp, e);
7994     } catch (...) {
7995       return XapianTclHandleError(interp);
7996     }
7997   }
7998   Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
7999   return TCL_OK;
8000 fail:
8001   return TCL_ERROR;
8002 }
8003 
8004 
8005 SWIGINTERN int
_wrap_Stem_get_description(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])8006 _wrap_Stem_get_description(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
8007   Xapian::Stem *arg1 = (Xapian::Stem *) 0 ;
8008   void *argp1 = 0 ;
8009   int res1 = 0 ;
8010   std::string result;
8011 
8012   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Stem_get_description self ",(void *)0) == TCL_ERROR) SWIG_fail;
8013   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Stem, 0 |  0 );
8014   if (!SWIG_IsOK(res1)) {
8015     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Stem_get_description" "', argument " "1"" of type '" "Xapian::Stem const *""'");
8016   }
8017   arg1 = reinterpret_cast< Xapian::Stem * >(argp1);
8018   {
8019     try {
8020       result = ((Xapian::Stem const *)arg1)->get_description();
8021     } catch (const Xapian::Error &e) {
8022       return XapianTclHandleError(interp, e);
8023     } catch (...) {
8024       return XapianTclHandleError(interp);
8025     }
8026   }
8027   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
8028   return TCL_OK;
8029 fail:
8030   return TCL_ERROR;
8031 }
8032 
8033 
8034 SWIGINTERN int
_wrap_Stem_get_available_languages(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])8035 _wrap_Stem_get_available_languages(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
8036   std::string result;
8037 
8038   if (SWIG_GetArgs(interp, objc, objv,":xapian::Stem_get_available_languages ") == TCL_ERROR) SWIG_fail;
8039   {
8040     try {
8041       result = Xapian::Stem::get_available_languages();
8042     } catch (const Xapian::Error &e) {
8043       return XapianTclHandleError(interp, e);
8044     } catch (...) {
8045       return XapianTclHandleError(interp);
8046     }
8047   }
8048   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
8049   return TCL_OK;
8050 fail:
8051   return TCL_ERROR;
8052 }
8053 
8054 
swig_delete_Stem(void * obj)8055 SWIGINTERN void swig_delete_Stem(void *obj) {
8056 Xapian::Stem *arg1 = (Xapian::Stem *) obj;
8057 delete arg1;
8058 }
8059 static swig_method swig_Xapian_Stem_methods[] = {
8060     {"apply", _wrap_Stem_apply},
8061     {"is_none", _wrap_Stem_is_none},
8062     {"get_description", _wrap_Stem_get_description},
8063     {0,0}
8064 };
8065 static swig_attribute swig_Xapian_Stem_attributes[] = {
8066     {0,0,0}
8067 };
8068 static swig_class *swig_Xapian_Stem_bases[] = {0};
8069 static const char * swig_Xapian_Stem_base_names[] = {0};
8070 static swig_class _wrap_class_Xapian_Stem = { "Stem", &SWIGTYPE_p_Xapian__Stem,_wrap_new_Stem, swig_delete_Stem, swig_Xapian_Stem_methods, swig_Xapian_Stem_attributes, swig_Xapian_Stem_bases,swig_Xapian_Stem_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
8071 SWIGINTERN int
_wrap_new_TermGenerator(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])8072 _wrap_new_TermGenerator(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
8073   Xapian::TermGenerator *result = 0 ;
8074 
8075   if (SWIG_GetArgs(interp, objc, objv,":xapian::new_TermGenerator ") == TCL_ERROR) SWIG_fail;
8076   {
8077     try {
8078       result = (Xapian::TermGenerator *)new Xapian::TermGenerator();
8079     } catch (const Xapian::Error &e) {
8080       return XapianTclHandleError(interp, e);
8081     } catch (...) {
8082       return XapianTclHandleError(interp);
8083     }
8084   }
8085   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__TermGenerator,0));
8086   return TCL_OK;
8087 fail:
8088   return TCL_ERROR;
8089 }
8090 
8091 
8092 SWIGINTERN int
_wrap_delete_TermGenerator(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])8093 _wrap_delete_TermGenerator(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
8094   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
8095   void *argp1 = 0 ;
8096   int res1 = 0 ;
8097 
8098   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_TermGenerator self ",(void *)0) == TCL_ERROR) SWIG_fail;
8099   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TermGenerator, SWIG_POINTER_DISOWN |  0 );
8100   if (!SWIG_IsOK(res1)) {
8101     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TermGenerator" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
8102   }
8103   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
8104   {
8105     try {
8106       delete arg1;
8107     } catch (const Xapian::Error &e) {
8108       return XapianTclHandleError(interp, e);
8109     } catch (...) {
8110       return XapianTclHandleError(interp);
8111     }
8112   }
8113 
8114   return TCL_OK;
8115 fail:
8116   return TCL_ERROR;
8117 }
8118 
8119 
8120 SWIGINTERN int
_wrap_TermGenerator_set_stemmer(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])8121 _wrap_TermGenerator_set_stemmer(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
8122   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
8123   Xapian::Stem *arg2 = 0 ;
8124   void *argp1 = 0 ;
8125   int res1 = 0 ;
8126   void *argp2 ;
8127   int res2 = 0 ;
8128 
8129   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::TermGenerator_set_stemmer self stemmer ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
8130   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
8131   if (!SWIG_IsOK(res1)) {
8132     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_set_stemmer" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
8133   }
8134   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
8135   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__Stem,  0 );
8136   if (!SWIG_IsOK(res2)) {
8137     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TermGenerator_set_stemmer" "', argument " "2"" of type '" "Xapian::Stem const &""'");
8138   }
8139   if (!argp2) {
8140     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TermGenerator_set_stemmer" "', argument " "2"" of type '" "Xapian::Stem const &""'");
8141   }
8142   arg2 = reinterpret_cast< Xapian::Stem * >(argp2);
8143   {
8144     try {
8145       (arg1)->set_stemmer((Xapian::Stem const &)*arg2);
8146     } catch (const Xapian::Error &e) {
8147       return XapianTclHandleError(interp, e);
8148     } catch (...) {
8149       return XapianTclHandleError(interp);
8150     }
8151   }
8152 
8153   return TCL_OK;
8154 fail:
8155   return TCL_ERROR;
8156 }
8157 
8158 
8159 SWIGINTERN int
_wrap_TermGenerator_set_stopper__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])8160 _wrap_TermGenerator_set_stopper__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
8161   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
8162   Xapian::Stopper *arg2 = (Xapian::Stopper *) 0 ;
8163   void *argp1 = 0 ;
8164   int res1 = 0 ;
8165   void *argp2 = 0 ;
8166   int res2 = 0 ;
8167 
8168   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::TermGenerator_set_stopper self stop ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
8169   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
8170   if (!SWIG_IsOK(res1)) {
8171     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_set_stopper" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
8172   }
8173   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
8174   res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_Xapian__Stopper, 0 |  0 );
8175   if (!SWIG_IsOK(res2)) {
8176     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TermGenerator_set_stopper" "', argument " "2"" of type '" "Xapian::Stopper const *""'");
8177   }
8178   arg2 = reinterpret_cast< Xapian::Stopper * >(argp2);
8179   {
8180     try {
8181       (arg1)->set_stopper((Xapian::Stopper const *)arg2);
8182     } catch (const Xapian::Error &e) {
8183       return XapianTclHandleError(interp, e);
8184     } catch (...) {
8185       return XapianTclHandleError(interp);
8186     }
8187   }
8188 
8189   return TCL_OK;
8190 fail:
8191   return TCL_ERROR;
8192 }
8193 
8194 
8195 SWIGINTERN int
_wrap_TermGenerator_set_stopper__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])8196 _wrap_TermGenerator_set_stopper__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
8197   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
8198   void *argp1 = 0 ;
8199   int res1 = 0 ;
8200 
8201   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::TermGenerator_set_stopper self ",(void *)0) == TCL_ERROR) SWIG_fail;
8202   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
8203   if (!SWIG_IsOK(res1)) {
8204     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_set_stopper" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
8205   }
8206   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
8207   {
8208     try {
8209       (arg1)->set_stopper();
8210     } catch (const Xapian::Error &e) {
8211       return XapianTclHandleError(interp, e);
8212     } catch (...) {
8213       return XapianTclHandleError(interp);
8214     }
8215   }
8216 
8217   return TCL_OK;
8218 fail:
8219   return TCL_ERROR;
8220 }
8221 
8222 
8223 SWIGINTERN int
_wrap_TermGenerator_set_stopper(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])8224 _wrap_TermGenerator_set_stopper(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
8225   Tcl_Obj *CONST *argv = objv+1;
8226   int argc = objc-1;
8227   if (argc == 1) {
8228     int _v;
8229     void *vptr = 0;
8230     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__TermGenerator, 0);
8231     _v = SWIG_CheckState(res);
8232     if (_v) {
8233       return _wrap_TermGenerator_set_stopper__SWIG_1(clientData, interp, objc, argv - 1);
8234     }
8235   }
8236   if (argc == 2) {
8237     int _v;
8238     void *vptr = 0;
8239     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__TermGenerator, 0);
8240     _v = SWIG_CheckState(res);
8241     if (_v) {
8242       void *vptr = 0;
8243       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Xapian__Stopper, 0);
8244       _v = SWIG_CheckState(res);
8245       if (_v) {
8246         return _wrap_TermGenerator_set_stopper__SWIG_0(clientData, interp, objc, argv - 1);
8247       }
8248     }
8249   }
8250 
8251   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'TermGenerator_set_stopper'.\n"
8252     "  Possible C/C++ prototypes are:\n"
8253     "    Xapian::TermGenerator::set_stopper(Xapian::Stopper const *)\n"
8254     "    Xapian::TermGenerator::set_stopper()\n", TCL_STATIC);
8255   return TCL_ERROR;
8256 }
8257 
8258 
8259 SWIGINTERN int
_wrap_TermGenerator_set_document(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])8260 _wrap_TermGenerator_set_document(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
8261   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
8262   Xapian::Document *arg2 = 0 ;
8263   void *argp1 = 0 ;
8264   int res1 = 0 ;
8265   void *argp2 ;
8266   int res2 = 0 ;
8267 
8268   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::TermGenerator_set_document self doc ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
8269   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
8270   if (!SWIG_IsOK(res1)) {
8271     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_set_document" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
8272   }
8273   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
8274   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__Document,  0 );
8275   if (!SWIG_IsOK(res2)) {
8276     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TermGenerator_set_document" "', argument " "2"" of type '" "Xapian::Document const &""'");
8277   }
8278   if (!argp2) {
8279     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TermGenerator_set_document" "', argument " "2"" of type '" "Xapian::Document const &""'");
8280   }
8281   arg2 = reinterpret_cast< Xapian::Document * >(argp2);
8282   {
8283     try {
8284       (arg1)->set_document((Xapian::Document const &)*arg2);
8285     } catch (const Xapian::Error &e) {
8286       return XapianTclHandleError(interp, e);
8287     } catch (...) {
8288       return XapianTclHandleError(interp);
8289     }
8290   }
8291 
8292   return TCL_OK;
8293 fail:
8294   return TCL_ERROR;
8295 }
8296 
8297 
8298 SWIGINTERN int
_wrap_TermGenerator_get_document(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])8299 _wrap_TermGenerator_get_document(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
8300   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
8301   void *argp1 = 0 ;
8302   int res1 = 0 ;
8303   Xapian::Document *result = 0 ;
8304 
8305   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::TermGenerator_get_document self ",(void *)0) == TCL_ERROR) SWIG_fail;
8306   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
8307   if (!SWIG_IsOK(res1)) {
8308     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_get_document" "', argument " "1"" of type '" "Xapian::TermGenerator const *""'");
8309   }
8310   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
8311   {
8312     try {
8313       result = (Xapian::Document *) &((Xapian::TermGenerator const *)arg1)->get_document();
8314     } catch (const Xapian::Error &e) {
8315       return XapianTclHandleError(interp, e);
8316     } catch (...) {
8317       return XapianTclHandleError(interp);
8318     }
8319   }
8320   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Document,0));
8321   return TCL_OK;
8322 fail:
8323   return TCL_ERROR;
8324 }
8325 
8326 
8327 SWIGINTERN int
_wrap_TermGenerator_set_database(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])8328 _wrap_TermGenerator_set_database(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
8329   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
8330   Xapian::WritableDatabase *arg2 = 0 ;
8331   void *argp1 = 0 ;
8332   int res1 = 0 ;
8333   void *argp2 ;
8334   int res2 = 0 ;
8335 
8336   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::TermGenerator_set_database self db ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
8337   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
8338   if (!SWIG_IsOK(res1)) {
8339     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_set_database" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
8340   }
8341   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
8342   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__WritableDatabase,  0 );
8343   if (!SWIG_IsOK(res2)) {
8344     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TermGenerator_set_database" "', argument " "2"" of type '" "Xapian::WritableDatabase const &""'");
8345   }
8346   if (!argp2) {
8347     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TermGenerator_set_database" "', argument " "2"" of type '" "Xapian::WritableDatabase const &""'");
8348   }
8349   arg2 = reinterpret_cast< Xapian::WritableDatabase * >(argp2);
8350   {
8351     try {
8352       (arg1)->set_database((Xapian::WritableDatabase const &)*arg2);
8353     } catch (const Xapian::Error &e) {
8354       return XapianTclHandleError(interp, e);
8355     } catch (...) {
8356       return XapianTclHandleError(interp);
8357     }
8358   }
8359 
8360   return TCL_OK;
8361 fail:
8362   return TCL_ERROR;
8363 }
8364 
8365 
8366 SWIGINTERN int
_wrap_TermGenerator_set_flags__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])8367 _wrap_TermGenerator_set_flags__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
8368   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
8369   Xapian::TermGenerator::flags arg2 ;
8370   Xapian::TermGenerator::flags arg3 ;
8371   void *argp1 = 0 ;
8372   int res1 = 0 ;
8373   int val2 ;
8374   int ecode2 = 0 ;
8375   int val3 ;
8376   int ecode3 = 0 ;
8377   Xapian::TermGenerator::flags result;
8378 
8379   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::TermGenerator_set_flags self toggle mask ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
8380   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
8381   if (!SWIG_IsOK(res1)) {
8382     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_set_flags" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
8383   }
8384   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
8385   ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
8386   if (!SWIG_IsOK(ecode2)) {
8387     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TermGenerator_set_flags" "', argument " "2"" of type '" "Xapian::TermGenerator::flags""'");
8388   }
8389   arg2 = static_cast< Xapian::TermGenerator::flags >(val2);
8390   ecode3 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
8391   if (!SWIG_IsOK(ecode3)) {
8392     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TermGenerator_set_flags" "', argument " "3"" of type '" "Xapian::TermGenerator::flags""'");
8393   }
8394   arg3 = static_cast< Xapian::TermGenerator::flags >(val3);
8395   {
8396     try {
8397       result = (Xapian::TermGenerator::flags)(arg1)->set_flags(arg2,arg3);
8398     } catch (const Xapian::Error &e) {
8399       return XapianTclHandleError(interp, e);
8400     } catch (...) {
8401       return XapianTclHandleError(interp);
8402     }
8403   }
8404   Tcl_SetObjResult(interp,SWIG_From_int(static_cast< int >(result)));
8405   return TCL_OK;
8406 fail:
8407   return TCL_ERROR;
8408 }
8409 
8410 
8411 SWIGINTERN int
_wrap_TermGenerator_set_flags__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])8412 _wrap_TermGenerator_set_flags__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
8413   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
8414   Xapian::TermGenerator::flags arg2 ;
8415   void *argp1 = 0 ;
8416   int res1 = 0 ;
8417   int val2 ;
8418   int ecode2 = 0 ;
8419   Xapian::TermGenerator::flags result;
8420 
8421   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::TermGenerator_set_flags self toggle ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
8422   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
8423   if (!SWIG_IsOK(res1)) {
8424     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_set_flags" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
8425   }
8426   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
8427   ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
8428   if (!SWIG_IsOK(ecode2)) {
8429     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TermGenerator_set_flags" "', argument " "2"" of type '" "Xapian::TermGenerator::flags""'");
8430   }
8431   arg2 = static_cast< Xapian::TermGenerator::flags >(val2);
8432   {
8433     try {
8434       result = (Xapian::TermGenerator::flags)(arg1)->set_flags(arg2);
8435     } catch (const Xapian::Error &e) {
8436       return XapianTclHandleError(interp, e);
8437     } catch (...) {
8438       return XapianTclHandleError(interp);
8439     }
8440   }
8441   Tcl_SetObjResult(interp,SWIG_From_int(static_cast< int >(result)));
8442   return TCL_OK;
8443 fail:
8444   return TCL_ERROR;
8445 }
8446 
8447 
8448 SWIGINTERN int
_wrap_TermGenerator_set_flags(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])8449 _wrap_TermGenerator_set_flags(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
8450   Tcl_Obj *CONST *argv = objv+1;
8451   int argc = objc-1;
8452   if (argc == 2) {
8453     int _v;
8454     void *vptr = 0;
8455     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__TermGenerator, 0);
8456     _v = SWIG_CheckState(res);
8457     if (_v) {
8458       {
8459         int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
8460         _v = SWIG_CheckState(res);
8461       }
8462       if (_v) {
8463         return _wrap_TermGenerator_set_flags__SWIG_1(clientData, interp, objc, argv - 1);
8464       }
8465     }
8466   }
8467   if (argc == 3) {
8468     int _v;
8469     void *vptr = 0;
8470     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__TermGenerator, 0);
8471     _v = SWIG_CheckState(res);
8472     if (_v) {
8473       {
8474         int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
8475         _v = SWIG_CheckState(res);
8476       }
8477       if (_v) {
8478         {
8479           int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
8480           _v = SWIG_CheckState(res);
8481         }
8482         if (_v) {
8483           return _wrap_TermGenerator_set_flags__SWIG_0(clientData, interp, objc, argv - 1);
8484         }
8485       }
8486     }
8487   }
8488 
8489   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'TermGenerator_set_flags'.\n"
8490     "  Possible C/C++ prototypes are:\n"
8491     "    Xapian::TermGenerator::set_flags(Xapian::TermGenerator::flags,Xapian::TermGenerator::flags)\n"
8492     "    Xapian::TermGenerator::set_flags(Xapian::TermGenerator::flags)\n", TCL_STATIC);
8493   return TCL_ERROR;
8494 }
8495 
8496 
8497 SWIGINTERN int
_wrap_TermGenerator_set_stemming_strategy(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])8498 _wrap_TermGenerator_set_stemming_strategy(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
8499   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
8500   Xapian::TermGenerator::stem_strategy arg2 ;
8501   void *argp1 = 0 ;
8502   int res1 = 0 ;
8503   int val2 ;
8504   int ecode2 = 0 ;
8505 
8506   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::TermGenerator_set_stemming_strategy self strategy ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
8507   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
8508   if (!SWIG_IsOK(res1)) {
8509     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_set_stemming_strategy" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
8510   }
8511   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
8512   ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
8513   if (!SWIG_IsOK(ecode2)) {
8514     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TermGenerator_set_stemming_strategy" "', argument " "2"" of type '" "Xapian::TermGenerator::stem_strategy""'");
8515   }
8516   arg2 = static_cast< Xapian::TermGenerator::stem_strategy >(val2);
8517   {
8518     try {
8519       (arg1)->set_stemming_strategy(arg2);
8520     } catch (const Xapian::Error &e) {
8521       return XapianTclHandleError(interp, e);
8522     } catch (...) {
8523       return XapianTclHandleError(interp);
8524     }
8525   }
8526 
8527   return TCL_OK;
8528 fail:
8529   return TCL_ERROR;
8530 }
8531 
8532 
8533 SWIGINTERN int
_wrap_TermGenerator_set_stopper_strategy(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])8534 _wrap_TermGenerator_set_stopper_strategy(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
8535   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
8536   Xapian::TermGenerator::stop_strategy arg2 ;
8537   void *argp1 = 0 ;
8538   int res1 = 0 ;
8539   int val2 ;
8540   int ecode2 = 0 ;
8541 
8542   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::TermGenerator_set_stopper_strategy self strategy ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
8543   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
8544   if (!SWIG_IsOK(res1)) {
8545     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_set_stopper_strategy" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
8546   }
8547   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
8548   ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
8549   if (!SWIG_IsOK(ecode2)) {
8550     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TermGenerator_set_stopper_strategy" "', argument " "2"" of type '" "Xapian::TermGenerator::stop_strategy""'");
8551   }
8552   arg2 = static_cast< Xapian::TermGenerator::stop_strategy >(val2);
8553   {
8554     try {
8555       (arg1)->set_stopper_strategy(arg2);
8556     } catch (const Xapian::Error &e) {
8557       return XapianTclHandleError(interp, e);
8558     } catch (...) {
8559       return XapianTclHandleError(interp);
8560     }
8561   }
8562 
8563   return TCL_OK;
8564 fail:
8565   return TCL_ERROR;
8566 }
8567 
8568 
8569 SWIGINTERN int
_wrap_TermGenerator_set_max_word_length(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])8570 _wrap_TermGenerator_set_max_word_length(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
8571   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
8572   unsigned int arg2 ;
8573   void *argp1 = 0 ;
8574   int res1 = 0 ;
8575   unsigned int val2 ;
8576   int ecode2 = 0 ;
8577 
8578   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::TermGenerator_set_max_word_length self max_word_length ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
8579   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
8580   if (!SWIG_IsOK(res1)) {
8581     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_set_max_word_length" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
8582   }
8583   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
8584   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
8585   if (!SWIG_IsOK(ecode2)) {
8586     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TermGenerator_set_max_word_length" "', argument " "2"" of type '" "unsigned int""'");
8587   }
8588   arg2 = static_cast< unsigned int >(val2);
8589   {
8590     try {
8591       (arg1)->set_max_word_length(arg2);
8592     } catch (const Xapian::Error &e) {
8593       return XapianTclHandleError(interp, e);
8594     } catch (...) {
8595       return XapianTclHandleError(interp);
8596     }
8597   }
8598 
8599   return TCL_OK;
8600 fail:
8601   return TCL_ERROR;
8602 }
8603 
8604 
8605 SWIGINTERN int
_wrap_TermGenerator_index_text__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])8606 _wrap_TermGenerator_index_text__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
8607   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
8608   std::string *arg2 = 0 ;
8609   Xapian::termcount arg3 ;
8610   std::string *arg4 = 0 ;
8611   void *argp1 = 0 ;
8612   int res1 = 0 ;
8613   int res2 = SWIG_OLDOBJ ;
8614   unsigned int val3 ;
8615   int ecode3 = 0 ;
8616   int res4 = SWIG_OLDOBJ ;
8617 
8618   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::TermGenerator_index_text self text wdf_inc prefix ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
8619   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
8620   if (!SWIG_IsOK(res1)) {
8621     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_index_text" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
8622   }
8623   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
8624   {
8625     std::string *ptr = (std::string *)0;
8626     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
8627     if (!SWIG_IsOK(res2)) {
8628       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TermGenerator_index_text" "', argument " "2"" of type '" "std::string const &""'");
8629     }
8630     if (!ptr) {
8631       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TermGenerator_index_text" "', argument " "2"" of type '" "std::string const &""'");
8632     }
8633     arg2 = ptr;
8634   }
8635   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
8636   if (!SWIG_IsOK(ecode3)) {
8637     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TermGenerator_index_text" "', argument " "3"" of type '" "Xapian::termcount""'");
8638   }
8639   arg3 = static_cast< Xapian::termcount >(val3);
8640   {
8641     std::string *ptr = (std::string *)0;
8642     res4 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[4], &ptr);
8643     if (!SWIG_IsOK(res4)) {
8644       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TermGenerator_index_text" "', argument " "4"" of type '" "std::string const &""'");
8645     }
8646     if (!ptr) {
8647       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TermGenerator_index_text" "', argument " "4"" of type '" "std::string const &""'");
8648     }
8649     arg4 = ptr;
8650   }
8651   {
8652     try {
8653       (arg1)->index_text((std::string const &)*arg2,arg3,(std::string const &)*arg4);
8654     } catch (const Xapian::Error &e) {
8655       return XapianTclHandleError(interp, e);
8656     } catch (...) {
8657       return XapianTclHandleError(interp);
8658     }
8659   }
8660 
8661   if (SWIG_IsNewObj(res2)) delete arg2;
8662   if (SWIG_IsNewObj(res4)) delete arg4;
8663   return TCL_OK;
8664 fail:
8665   if (SWIG_IsNewObj(res2)) delete arg2;
8666   if (SWIG_IsNewObj(res4)) delete arg4;
8667   return TCL_ERROR;
8668 }
8669 
8670 
8671 SWIGINTERN int
_wrap_TermGenerator_index_text__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])8672 _wrap_TermGenerator_index_text__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
8673   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
8674   std::string *arg2 = 0 ;
8675   Xapian::termcount arg3 ;
8676   void *argp1 = 0 ;
8677   int res1 = 0 ;
8678   int res2 = SWIG_OLDOBJ ;
8679   unsigned int val3 ;
8680   int ecode3 = 0 ;
8681 
8682   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::TermGenerator_index_text self text wdf_inc ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
8683   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
8684   if (!SWIG_IsOK(res1)) {
8685     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_index_text" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
8686   }
8687   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
8688   {
8689     std::string *ptr = (std::string *)0;
8690     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
8691     if (!SWIG_IsOK(res2)) {
8692       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TermGenerator_index_text" "', argument " "2"" of type '" "std::string const &""'");
8693     }
8694     if (!ptr) {
8695       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TermGenerator_index_text" "', argument " "2"" of type '" "std::string const &""'");
8696     }
8697     arg2 = ptr;
8698   }
8699   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
8700   if (!SWIG_IsOK(ecode3)) {
8701     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TermGenerator_index_text" "', argument " "3"" of type '" "Xapian::termcount""'");
8702   }
8703   arg3 = static_cast< Xapian::termcount >(val3);
8704   {
8705     try {
8706       (arg1)->index_text((std::string const &)*arg2,arg3);
8707     } catch (const Xapian::Error &e) {
8708       return XapianTclHandleError(interp, e);
8709     } catch (...) {
8710       return XapianTclHandleError(interp);
8711     }
8712   }
8713 
8714   if (SWIG_IsNewObj(res2)) delete arg2;
8715   return TCL_OK;
8716 fail:
8717   if (SWIG_IsNewObj(res2)) delete arg2;
8718   return TCL_ERROR;
8719 }
8720 
8721 
8722 SWIGINTERN int
_wrap_TermGenerator_index_text__SWIG_2(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])8723 _wrap_TermGenerator_index_text__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
8724   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
8725   std::string *arg2 = 0 ;
8726   void *argp1 = 0 ;
8727   int res1 = 0 ;
8728   int res2 = SWIG_OLDOBJ ;
8729 
8730   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::TermGenerator_index_text self text ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
8731   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
8732   if (!SWIG_IsOK(res1)) {
8733     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_index_text" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
8734   }
8735   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
8736   {
8737     std::string *ptr = (std::string *)0;
8738     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
8739     if (!SWIG_IsOK(res2)) {
8740       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TermGenerator_index_text" "', argument " "2"" of type '" "std::string const &""'");
8741     }
8742     if (!ptr) {
8743       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TermGenerator_index_text" "', argument " "2"" of type '" "std::string const &""'");
8744     }
8745     arg2 = ptr;
8746   }
8747   {
8748     try {
8749       (arg1)->index_text((std::string const &)*arg2);
8750     } catch (const Xapian::Error &e) {
8751       return XapianTclHandleError(interp, e);
8752     } catch (...) {
8753       return XapianTclHandleError(interp);
8754     }
8755   }
8756 
8757   if (SWIG_IsNewObj(res2)) delete arg2;
8758   return TCL_OK;
8759 fail:
8760   if (SWIG_IsNewObj(res2)) delete arg2;
8761   return TCL_ERROR;
8762 }
8763 
8764 
8765 SWIGINTERN int
_wrap_TermGenerator_index_text(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])8766 _wrap_TermGenerator_index_text(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
8767   Tcl_Obj *CONST *argv = objv+1;
8768   int argc = objc-1;
8769   if (argc == 2) {
8770     int _v;
8771     void *vptr = 0;
8772     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__TermGenerator, 0);
8773     _v = SWIG_CheckState(res);
8774     if (_v) {
8775       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
8776       _v = SWIG_CheckState(res);
8777       if (_v) {
8778         return _wrap_TermGenerator_index_text__SWIG_2(clientData, interp, objc, argv - 1);
8779       }
8780     }
8781   }
8782   if (argc == 3) {
8783     int _v;
8784     void *vptr = 0;
8785     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__TermGenerator, 0);
8786     _v = SWIG_CheckState(res);
8787     if (_v) {
8788       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
8789       _v = SWIG_CheckState(res);
8790       if (_v) {
8791         {
8792           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
8793           _v = SWIG_CheckState(res);
8794         }
8795         if (_v) {
8796           return _wrap_TermGenerator_index_text__SWIG_1(clientData, interp, objc, argv - 1);
8797         }
8798       }
8799     }
8800   }
8801   if (argc == 4) {
8802     int _v;
8803     void *vptr = 0;
8804     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__TermGenerator, 0);
8805     _v = SWIG_CheckState(res);
8806     if (_v) {
8807       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
8808       _v = SWIG_CheckState(res);
8809       if (_v) {
8810         {
8811           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
8812           _v = SWIG_CheckState(res);
8813         }
8814         if (_v) {
8815           int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[3], (std::string**)(0));
8816           _v = SWIG_CheckState(res);
8817           if (_v) {
8818             return _wrap_TermGenerator_index_text__SWIG_0(clientData, interp, objc, argv - 1);
8819           }
8820         }
8821       }
8822     }
8823   }
8824 
8825   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'TermGenerator_index_text'.\n"
8826     "  Possible C/C++ prototypes are:\n"
8827     "    Xapian::TermGenerator::index_text(std::string const &,Xapian::termcount,std::string const &)\n"
8828     "    Xapian::TermGenerator::index_text(std::string const &,Xapian::termcount)\n"
8829     "    Xapian::TermGenerator::index_text(std::string const &)\n", TCL_STATIC);
8830   return TCL_ERROR;
8831 }
8832 
8833 
8834 SWIGINTERN int
_wrap_TermGenerator_index_text_without_positions__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])8835 _wrap_TermGenerator_index_text_without_positions__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
8836   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
8837   std::string *arg2 = 0 ;
8838   Xapian::termcount arg3 ;
8839   std::string *arg4 = 0 ;
8840   void *argp1 = 0 ;
8841   int res1 = 0 ;
8842   int res2 = SWIG_OLDOBJ ;
8843   unsigned int val3 ;
8844   int ecode3 = 0 ;
8845   int res4 = SWIG_OLDOBJ ;
8846 
8847   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::TermGenerator_index_text_without_positions self text wdf_inc prefix ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
8848   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
8849   if (!SWIG_IsOK(res1)) {
8850     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_index_text_without_positions" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
8851   }
8852   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
8853   {
8854     std::string *ptr = (std::string *)0;
8855     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
8856     if (!SWIG_IsOK(res2)) {
8857       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TermGenerator_index_text_without_positions" "', argument " "2"" of type '" "std::string const &""'");
8858     }
8859     if (!ptr) {
8860       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TermGenerator_index_text_without_positions" "', argument " "2"" of type '" "std::string const &""'");
8861     }
8862     arg2 = ptr;
8863   }
8864   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
8865   if (!SWIG_IsOK(ecode3)) {
8866     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TermGenerator_index_text_without_positions" "', argument " "3"" of type '" "Xapian::termcount""'");
8867   }
8868   arg3 = static_cast< Xapian::termcount >(val3);
8869   {
8870     std::string *ptr = (std::string *)0;
8871     res4 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[4], &ptr);
8872     if (!SWIG_IsOK(res4)) {
8873       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TermGenerator_index_text_without_positions" "', argument " "4"" of type '" "std::string const &""'");
8874     }
8875     if (!ptr) {
8876       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TermGenerator_index_text_without_positions" "', argument " "4"" of type '" "std::string const &""'");
8877     }
8878     arg4 = ptr;
8879   }
8880   {
8881     try {
8882       (arg1)->index_text_without_positions((std::string const &)*arg2,arg3,(std::string const &)*arg4);
8883     } catch (const Xapian::Error &e) {
8884       return XapianTclHandleError(interp, e);
8885     } catch (...) {
8886       return XapianTclHandleError(interp);
8887     }
8888   }
8889 
8890   if (SWIG_IsNewObj(res2)) delete arg2;
8891   if (SWIG_IsNewObj(res4)) delete arg4;
8892   return TCL_OK;
8893 fail:
8894   if (SWIG_IsNewObj(res2)) delete arg2;
8895   if (SWIG_IsNewObj(res4)) delete arg4;
8896   return TCL_ERROR;
8897 }
8898 
8899 
8900 SWIGINTERN int
_wrap_TermGenerator_index_text_without_positions__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])8901 _wrap_TermGenerator_index_text_without_positions__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
8902   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
8903   std::string *arg2 = 0 ;
8904   Xapian::termcount arg3 ;
8905   void *argp1 = 0 ;
8906   int res1 = 0 ;
8907   int res2 = SWIG_OLDOBJ ;
8908   unsigned int val3 ;
8909   int ecode3 = 0 ;
8910 
8911   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::TermGenerator_index_text_without_positions self text wdf_inc ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
8912   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
8913   if (!SWIG_IsOK(res1)) {
8914     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_index_text_without_positions" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
8915   }
8916   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
8917   {
8918     std::string *ptr = (std::string *)0;
8919     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
8920     if (!SWIG_IsOK(res2)) {
8921       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TermGenerator_index_text_without_positions" "', argument " "2"" of type '" "std::string const &""'");
8922     }
8923     if (!ptr) {
8924       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TermGenerator_index_text_without_positions" "', argument " "2"" of type '" "std::string const &""'");
8925     }
8926     arg2 = ptr;
8927   }
8928   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
8929   if (!SWIG_IsOK(ecode3)) {
8930     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TermGenerator_index_text_without_positions" "', argument " "3"" of type '" "Xapian::termcount""'");
8931   }
8932   arg3 = static_cast< Xapian::termcount >(val3);
8933   {
8934     try {
8935       (arg1)->index_text_without_positions((std::string const &)*arg2,arg3);
8936     } catch (const Xapian::Error &e) {
8937       return XapianTclHandleError(interp, e);
8938     } catch (...) {
8939       return XapianTclHandleError(interp);
8940     }
8941   }
8942 
8943   if (SWIG_IsNewObj(res2)) delete arg2;
8944   return TCL_OK;
8945 fail:
8946   if (SWIG_IsNewObj(res2)) delete arg2;
8947   return TCL_ERROR;
8948 }
8949 
8950 
8951 SWIGINTERN int
_wrap_TermGenerator_index_text_without_positions__SWIG_2(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])8952 _wrap_TermGenerator_index_text_without_positions__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
8953   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
8954   std::string *arg2 = 0 ;
8955   void *argp1 = 0 ;
8956   int res1 = 0 ;
8957   int res2 = SWIG_OLDOBJ ;
8958 
8959   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::TermGenerator_index_text_without_positions self text ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
8960   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
8961   if (!SWIG_IsOK(res1)) {
8962     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_index_text_without_positions" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
8963   }
8964   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
8965   {
8966     std::string *ptr = (std::string *)0;
8967     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
8968     if (!SWIG_IsOK(res2)) {
8969       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TermGenerator_index_text_without_positions" "', argument " "2"" of type '" "std::string const &""'");
8970     }
8971     if (!ptr) {
8972       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TermGenerator_index_text_without_positions" "', argument " "2"" of type '" "std::string const &""'");
8973     }
8974     arg2 = ptr;
8975   }
8976   {
8977     try {
8978       (arg1)->index_text_without_positions((std::string const &)*arg2);
8979     } catch (const Xapian::Error &e) {
8980       return XapianTclHandleError(interp, e);
8981     } catch (...) {
8982       return XapianTclHandleError(interp);
8983     }
8984   }
8985 
8986   if (SWIG_IsNewObj(res2)) delete arg2;
8987   return TCL_OK;
8988 fail:
8989   if (SWIG_IsNewObj(res2)) delete arg2;
8990   return TCL_ERROR;
8991 }
8992 
8993 
8994 SWIGINTERN int
_wrap_TermGenerator_index_text_without_positions(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])8995 _wrap_TermGenerator_index_text_without_positions(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
8996   Tcl_Obj *CONST *argv = objv+1;
8997   int argc = objc-1;
8998   if (argc == 2) {
8999     int _v;
9000     void *vptr = 0;
9001     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__TermGenerator, 0);
9002     _v = SWIG_CheckState(res);
9003     if (_v) {
9004       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
9005       _v = SWIG_CheckState(res);
9006       if (_v) {
9007         return _wrap_TermGenerator_index_text_without_positions__SWIG_2(clientData, interp, objc, argv - 1);
9008       }
9009     }
9010   }
9011   if (argc == 3) {
9012     int _v;
9013     void *vptr = 0;
9014     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__TermGenerator, 0);
9015     _v = SWIG_CheckState(res);
9016     if (_v) {
9017       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
9018       _v = SWIG_CheckState(res);
9019       if (_v) {
9020         {
9021           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
9022           _v = SWIG_CheckState(res);
9023         }
9024         if (_v) {
9025           return _wrap_TermGenerator_index_text_without_positions__SWIG_1(clientData, interp, objc, argv - 1);
9026         }
9027       }
9028     }
9029   }
9030   if (argc == 4) {
9031     int _v;
9032     void *vptr = 0;
9033     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__TermGenerator, 0);
9034     _v = SWIG_CheckState(res);
9035     if (_v) {
9036       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
9037       _v = SWIG_CheckState(res);
9038       if (_v) {
9039         {
9040           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
9041           _v = SWIG_CheckState(res);
9042         }
9043         if (_v) {
9044           int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[3], (std::string**)(0));
9045           _v = SWIG_CheckState(res);
9046           if (_v) {
9047             return _wrap_TermGenerator_index_text_without_positions__SWIG_0(clientData, interp, objc, argv - 1);
9048           }
9049         }
9050       }
9051     }
9052   }
9053 
9054   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'TermGenerator_index_text_without_positions'.\n"
9055     "  Possible C/C++ prototypes are:\n"
9056     "    Xapian::TermGenerator::index_text_without_positions(std::string const &,Xapian::termcount,std::string const &)\n"
9057     "    Xapian::TermGenerator::index_text_without_positions(std::string const &,Xapian::termcount)\n"
9058     "    Xapian::TermGenerator::index_text_without_positions(std::string const &)\n", TCL_STATIC);
9059   return TCL_ERROR;
9060 }
9061 
9062 
9063 SWIGINTERN int
_wrap_TermGenerator_increase_termpos__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])9064 _wrap_TermGenerator_increase_termpos__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
9065   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
9066   Xapian::termpos arg2 ;
9067   void *argp1 = 0 ;
9068   int res1 = 0 ;
9069   unsigned int val2 ;
9070   int ecode2 = 0 ;
9071 
9072   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::TermGenerator_increase_termpos self delta ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
9073   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
9074   if (!SWIG_IsOK(res1)) {
9075     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_increase_termpos" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
9076   }
9077   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
9078   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
9079   if (!SWIG_IsOK(ecode2)) {
9080     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TermGenerator_increase_termpos" "', argument " "2"" of type '" "Xapian::termpos""'");
9081   }
9082   arg2 = static_cast< Xapian::termpos >(val2);
9083   {
9084     try {
9085       (arg1)->increase_termpos(arg2);
9086     } catch (const Xapian::Error &e) {
9087       return XapianTclHandleError(interp, e);
9088     } catch (...) {
9089       return XapianTclHandleError(interp);
9090     }
9091   }
9092 
9093   return TCL_OK;
9094 fail:
9095   return TCL_ERROR;
9096 }
9097 
9098 
9099 SWIGINTERN int
_wrap_TermGenerator_increase_termpos__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])9100 _wrap_TermGenerator_increase_termpos__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
9101   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
9102   void *argp1 = 0 ;
9103   int res1 = 0 ;
9104 
9105   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::TermGenerator_increase_termpos self ",(void *)0) == TCL_ERROR) SWIG_fail;
9106   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
9107   if (!SWIG_IsOK(res1)) {
9108     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_increase_termpos" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
9109   }
9110   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
9111   {
9112     try {
9113       (arg1)->increase_termpos();
9114     } catch (const Xapian::Error &e) {
9115       return XapianTclHandleError(interp, e);
9116     } catch (...) {
9117       return XapianTclHandleError(interp);
9118     }
9119   }
9120 
9121   return TCL_OK;
9122 fail:
9123   return TCL_ERROR;
9124 }
9125 
9126 
9127 SWIGINTERN int
_wrap_TermGenerator_increase_termpos(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])9128 _wrap_TermGenerator_increase_termpos(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
9129   Tcl_Obj *CONST *argv = objv+1;
9130   int argc = objc-1;
9131   if (argc == 1) {
9132     int _v;
9133     void *vptr = 0;
9134     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__TermGenerator, 0);
9135     _v = SWIG_CheckState(res);
9136     if (_v) {
9137       return _wrap_TermGenerator_increase_termpos__SWIG_1(clientData, interp, objc, argv - 1);
9138     }
9139   }
9140   if (argc == 2) {
9141     int _v;
9142     void *vptr = 0;
9143     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__TermGenerator, 0);
9144     _v = SWIG_CheckState(res);
9145     if (_v) {
9146       {
9147         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
9148         _v = SWIG_CheckState(res);
9149       }
9150       if (_v) {
9151         return _wrap_TermGenerator_increase_termpos__SWIG_0(clientData, interp, objc, argv - 1);
9152       }
9153     }
9154   }
9155 
9156   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'TermGenerator_increase_termpos'.\n"
9157     "  Possible C/C++ prototypes are:\n"
9158     "    Xapian::TermGenerator::increase_termpos(Xapian::termpos)\n"
9159     "    Xapian::TermGenerator::increase_termpos()\n", TCL_STATIC);
9160   return TCL_ERROR;
9161 }
9162 
9163 
9164 SWIGINTERN int
_wrap_TermGenerator_get_termpos(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])9165 _wrap_TermGenerator_get_termpos(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
9166   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
9167   void *argp1 = 0 ;
9168   int res1 = 0 ;
9169   Xapian::termpos result;
9170 
9171   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::TermGenerator_get_termpos self ",(void *)0) == TCL_ERROR) SWIG_fail;
9172   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
9173   if (!SWIG_IsOK(res1)) {
9174     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_get_termpos" "', argument " "1"" of type '" "Xapian::TermGenerator const *""'");
9175   }
9176   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
9177   {
9178     try {
9179       result = (Xapian::termpos)((Xapian::TermGenerator const *)arg1)->get_termpos();
9180     } catch (const Xapian::Error &e) {
9181       return XapianTclHandleError(interp, e);
9182     } catch (...) {
9183       return XapianTclHandleError(interp);
9184     }
9185   }
9186   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
9187   return TCL_OK;
9188 fail:
9189   return TCL_ERROR;
9190 }
9191 
9192 
9193 SWIGINTERN int
_wrap_TermGenerator_set_termpos(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])9194 _wrap_TermGenerator_set_termpos(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
9195   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
9196   Xapian::termpos arg2 ;
9197   void *argp1 = 0 ;
9198   int res1 = 0 ;
9199   unsigned int val2 ;
9200   int ecode2 = 0 ;
9201 
9202   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::TermGenerator_set_termpos self termpos ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
9203   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
9204   if (!SWIG_IsOK(res1)) {
9205     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_set_termpos" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
9206   }
9207   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
9208   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
9209   if (!SWIG_IsOK(ecode2)) {
9210     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TermGenerator_set_termpos" "', argument " "2"" of type '" "Xapian::termpos""'");
9211   }
9212   arg2 = static_cast< Xapian::termpos >(val2);
9213   {
9214     try {
9215       (arg1)->set_termpos(arg2);
9216     } catch (const Xapian::Error &e) {
9217       return XapianTclHandleError(interp, e);
9218     } catch (...) {
9219       return XapianTclHandleError(interp);
9220     }
9221   }
9222 
9223   return TCL_OK;
9224 fail:
9225   return TCL_ERROR;
9226 }
9227 
9228 
9229 SWIGINTERN int
_wrap_TermGenerator_get_description(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])9230 _wrap_TermGenerator_get_description(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
9231   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
9232   void *argp1 = 0 ;
9233   int res1 = 0 ;
9234   std::string result;
9235 
9236   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::TermGenerator_get_description self ",(void *)0) == TCL_ERROR) SWIG_fail;
9237   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
9238   if (!SWIG_IsOK(res1)) {
9239     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_get_description" "', argument " "1"" of type '" "Xapian::TermGenerator const *""'");
9240   }
9241   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
9242   {
9243     try {
9244       result = ((Xapian::TermGenerator const *)arg1)->get_description();
9245     } catch (const Xapian::Error &e) {
9246       return XapianTclHandleError(interp, e);
9247     } catch (...) {
9248       return XapianTclHandleError(interp);
9249     }
9250   }
9251   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
9252   return TCL_OK;
9253 fail:
9254   return TCL_ERROR;
9255 }
9256 
9257 
swig_delete_TermGenerator(void * obj)9258 SWIGINTERN void swig_delete_TermGenerator(void *obj) {
9259 Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) obj;
9260 delete arg1;
9261 }
9262 static swig_method swig_Xapian_TermGenerator_methods[] = {
9263     {"set_stemmer", _wrap_TermGenerator_set_stemmer},
9264     {"set_stopper", _wrap_TermGenerator_set_stopper},
9265     {"set_document", _wrap_TermGenerator_set_document},
9266     {"get_document", _wrap_TermGenerator_get_document},
9267     {"set_database", _wrap_TermGenerator_set_database},
9268     {"set_flags", _wrap_TermGenerator_set_flags},
9269     {"set_stemming_strategy", _wrap_TermGenerator_set_stemming_strategy},
9270     {"set_stopper_strategy", _wrap_TermGenerator_set_stopper_strategy},
9271     {"set_max_word_length", _wrap_TermGenerator_set_max_word_length},
9272     {"index_text", _wrap_TermGenerator_index_text},
9273     {"index_text_without_positions", _wrap_TermGenerator_index_text_without_positions},
9274     {"increase_termpos", _wrap_TermGenerator_increase_termpos},
9275     {"get_termpos", _wrap_TermGenerator_get_termpos},
9276     {"set_termpos", _wrap_TermGenerator_set_termpos},
9277     {"get_description", _wrap_TermGenerator_get_description},
9278     {0,0}
9279 };
9280 static swig_attribute swig_Xapian_TermGenerator_attributes[] = {
9281     {0,0,0}
9282 };
9283 static swig_class *swig_Xapian_TermGenerator_bases[] = {0};
9284 static const char * swig_Xapian_TermGenerator_base_names[] = {0};
9285 static swig_class _wrap_class_Xapian_TermGenerator = { "TermGenerator", &SWIGTYPE_p_Xapian__TermGenerator,_wrap_new_TermGenerator, swig_delete_TermGenerator, swig_Xapian_TermGenerator_methods, swig_Xapian_TermGenerator_attributes, swig_Xapian_TermGenerator_bases,swig_Xapian_TermGenerator_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
9286 SWIGINTERN int
_wrap_new_MSet__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])9287 _wrap_new_MSet__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
9288   Xapian::MSet *arg1 = 0 ;
9289   void *argp1 ;
9290   int res1 = 0 ;
9291   Xapian::MSet *result = 0 ;
9292 
9293   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_MSet o ",(void *)0) == TCL_ERROR) SWIG_fail;
9294   res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_Xapian__MSet,  0 );
9295   if (!SWIG_IsOK(res1)) {
9296     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MSet" "', argument " "1"" of type '" "Xapian::MSet const &""'");
9297   }
9298   if (!argp1) {
9299     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MSet" "', argument " "1"" of type '" "Xapian::MSet const &""'");
9300   }
9301   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
9302   {
9303     try {
9304       result = (Xapian::MSet *)new Xapian::MSet((Xapian::MSet const &)*arg1);
9305     } catch (const Xapian::Error &e) {
9306       return XapianTclHandleError(interp, e);
9307     } catch (...) {
9308       return XapianTclHandleError(interp);
9309     }
9310   }
9311   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__MSet,0));
9312   return TCL_OK;
9313 fail:
9314   return TCL_ERROR;
9315 }
9316 
9317 
9318 SWIGINTERN int
_wrap_new_MSet__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])9319 _wrap_new_MSet__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
9320   Xapian::MSet *result = 0 ;
9321 
9322   if (SWIG_GetArgs(interp, objc, objv,":xapian::new_MSet ") == TCL_ERROR) SWIG_fail;
9323   {
9324     try {
9325       result = (Xapian::MSet *)new Xapian::MSet();
9326     } catch (const Xapian::Error &e) {
9327       return XapianTclHandleError(interp, e);
9328     } catch (...) {
9329       return XapianTclHandleError(interp);
9330     }
9331   }
9332   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__MSet,0));
9333   return TCL_OK;
9334 fail:
9335   return TCL_ERROR;
9336 }
9337 
9338 
9339 SWIGINTERN int
_wrap_new_MSet(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])9340 _wrap_new_MSet(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
9341   Tcl_Obj *CONST *argv = objv+1;
9342   int argc = objc-1;
9343   if (argc == 0) {
9344     return _wrap_new_MSet__SWIG_1(clientData, interp, objc, argv - 1);
9345   }
9346   if (argc == 1) {
9347     int _v;
9348     void *vptr = 0;
9349     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__MSet, 0);
9350     _v = SWIG_CheckState(res);
9351     if (_v) {
9352       return _wrap_new_MSet__SWIG_0(clientData, interp, objc, argv - 1);
9353     }
9354   }
9355 
9356   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_MSet'.\n"
9357     "  Possible C/C++ prototypes are:\n"
9358     "    Xapian::MSet::MSet(Xapian::MSet const &)\n"
9359     "    Xapian::MSet::MSet()\n", TCL_STATIC);
9360   return TCL_ERROR;
9361 }
9362 
9363 
9364 SWIGINTERN int
_wrap_delete_MSet(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])9365 _wrap_delete_MSet(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
9366   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
9367   void *argp1 = 0 ;
9368   int res1 = 0 ;
9369 
9370   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_MSet self ",(void *)0) == TCL_ERROR) SWIG_fail;
9371   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSet, SWIG_POINTER_DISOWN |  0 );
9372   if (!SWIG_IsOK(res1)) {
9373     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MSet" "', argument " "1"" of type '" "Xapian::MSet *""'");
9374   }
9375   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
9376   {
9377     try {
9378       delete arg1;
9379     } catch (const Xapian::Error &e) {
9380       return XapianTclHandleError(interp, e);
9381     } catch (...) {
9382       return XapianTclHandleError(interp);
9383     }
9384   }
9385 
9386   return TCL_OK;
9387 fail:
9388   return TCL_ERROR;
9389 }
9390 
9391 
9392 SWIGINTERN int
_wrap_MSet_convert_to_percent__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])9393 _wrap_MSet_convert_to_percent__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
9394   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
9395   double arg2 ;
9396   void *argp1 = 0 ;
9397   int res1 = 0 ;
9398   double val2 ;
9399   int ecode2 = 0 ;
9400   int result;
9401 
9402   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::MSet_convert_to_percent self weight ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
9403   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
9404   if (!SWIG_IsOK(res1)) {
9405     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_convert_to_percent" "', argument " "1"" of type '" "Xapian::MSet const *""'");
9406   }
9407   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
9408   ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
9409   if (!SWIG_IsOK(ecode2)) {
9410     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MSet_convert_to_percent" "', argument " "2"" of type '" "double""'");
9411   }
9412   arg2 = static_cast< double >(val2);
9413   {
9414     try {
9415       result = (int)((Xapian::MSet const *)arg1)->convert_to_percent(arg2);
9416     } catch (const Xapian::Error &e) {
9417       return XapianTclHandleError(interp, e);
9418     } catch (...) {
9419       return XapianTclHandleError(interp);
9420     }
9421   }
9422   Tcl_SetObjResult(interp,SWIG_From_int(static_cast< int >(result)));
9423   return TCL_OK;
9424 fail:
9425   return TCL_ERROR;
9426 }
9427 
9428 
9429 SWIGINTERN int
_wrap_MSet_convert_to_percent__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])9430 _wrap_MSet_convert_to_percent__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
9431   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
9432   Xapian::MSetIterator *arg2 = 0 ;
9433   void *argp1 = 0 ;
9434   int res1 = 0 ;
9435   void *argp2 ;
9436   int res2 = 0 ;
9437   int result;
9438 
9439   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::MSet_convert_to_percent self it ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
9440   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
9441   if (!SWIG_IsOK(res1)) {
9442     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_convert_to_percent" "', argument " "1"" of type '" "Xapian::MSet const *""'");
9443   }
9444   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
9445   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0 );
9446   if (!SWIG_IsOK(res2)) {
9447     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSet_convert_to_percent" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
9448   }
9449   if (!argp2) {
9450     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_convert_to_percent" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
9451   }
9452   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
9453   {
9454     try {
9455       result = (int)((Xapian::MSet const *)arg1)->convert_to_percent((Xapian::MSetIterator const &)*arg2);
9456     } catch (const Xapian::Error &e) {
9457       return XapianTclHandleError(interp, e);
9458     } catch (...) {
9459       return XapianTclHandleError(interp);
9460     }
9461   }
9462   Tcl_SetObjResult(interp,SWIG_From_int(static_cast< int >(result)));
9463   return TCL_OK;
9464 fail:
9465   return TCL_ERROR;
9466 }
9467 
9468 
9469 SWIGINTERN int
_wrap_MSet_convert_to_percent(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])9470 _wrap_MSet_convert_to_percent(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
9471   Tcl_Obj *CONST *argv = objv+1;
9472   int argc = objc-1;
9473   if (argc == 2) {
9474     int _v;
9475     void *vptr = 0;
9476     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__MSet, 0);
9477     _v = SWIG_CheckState(res);
9478     if (_v) {
9479       void *vptr = 0;
9480       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Xapian__MSetIterator, 0);
9481       _v = SWIG_CheckState(res);
9482       if (_v) {
9483         return _wrap_MSet_convert_to_percent__SWIG_1(clientData, interp, objc, argv - 1);
9484       }
9485     }
9486   }
9487   if (argc == 2) {
9488     int _v;
9489     void *vptr = 0;
9490     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__MSet, 0);
9491     _v = SWIG_CheckState(res);
9492     if (_v) {
9493       {
9494         int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
9495         _v = SWIG_CheckState(res);
9496       }
9497       if (_v) {
9498         return _wrap_MSet_convert_to_percent__SWIG_0(clientData, interp, objc, argv - 1);
9499       }
9500     }
9501   }
9502 
9503   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'MSet_convert_to_percent'.\n"
9504     "  Possible C/C++ prototypes are:\n"
9505     "    Xapian::MSet::convert_to_percent(double) const\n"
9506     "    Xapian::MSet::convert_to_percent(Xapian::MSetIterator const &) const\n", TCL_STATIC);
9507   return TCL_ERROR;
9508 }
9509 
9510 
9511 SWIGINTERN int
_wrap_MSet_get_termfreq(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])9512 _wrap_MSet_get_termfreq(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
9513   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
9514   std::string *arg2 = 0 ;
9515   void *argp1 = 0 ;
9516   int res1 = 0 ;
9517   int res2 = SWIG_OLDOBJ ;
9518   Xapian::doccount result;
9519 
9520   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::MSet_get_termfreq self term ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
9521   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
9522   if (!SWIG_IsOK(res1)) {
9523     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_get_termfreq" "', argument " "1"" of type '" "Xapian::MSet const *""'");
9524   }
9525   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
9526   {
9527     std::string *ptr = (std::string *)0;
9528     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
9529     if (!SWIG_IsOK(res2)) {
9530       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSet_get_termfreq" "', argument " "2"" of type '" "std::string const &""'");
9531     }
9532     if (!ptr) {
9533       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_get_termfreq" "', argument " "2"" of type '" "std::string const &""'");
9534     }
9535     arg2 = ptr;
9536   }
9537   {
9538     try {
9539       result = (Xapian::doccount)((Xapian::MSet const *)arg1)->get_termfreq((std::string const &)*arg2);
9540     } catch (const Xapian::Error &e) {
9541       return XapianTclHandleError(interp, e);
9542     } catch (...) {
9543       return XapianTclHandleError(interp);
9544     }
9545   }
9546   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
9547   if (SWIG_IsNewObj(res2)) delete arg2;
9548   return TCL_OK;
9549 fail:
9550   if (SWIG_IsNewObj(res2)) delete arg2;
9551   return TCL_ERROR;
9552 }
9553 
9554 
9555 SWIGINTERN int
_wrap_MSet_get_termweight(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])9556 _wrap_MSet_get_termweight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
9557   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
9558   std::string *arg2 = 0 ;
9559   void *argp1 = 0 ;
9560   int res1 = 0 ;
9561   int res2 = SWIG_OLDOBJ ;
9562   double result;
9563 
9564   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::MSet_get_termweight self term ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
9565   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
9566   if (!SWIG_IsOK(res1)) {
9567     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_get_termweight" "', argument " "1"" of type '" "Xapian::MSet const *""'");
9568   }
9569   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
9570   {
9571     std::string *ptr = (std::string *)0;
9572     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
9573     if (!SWIG_IsOK(res2)) {
9574       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSet_get_termweight" "', argument " "2"" of type '" "std::string const &""'");
9575     }
9576     if (!ptr) {
9577       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_get_termweight" "', argument " "2"" of type '" "std::string const &""'");
9578     }
9579     arg2 = ptr;
9580   }
9581   {
9582     try {
9583       result = (double)((Xapian::MSet const *)arg1)->get_termweight((std::string const &)*arg2);
9584     } catch (const Xapian::Error &e) {
9585       return XapianTclHandleError(interp, e);
9586     } catch (...) {
9587       return XapianTclHandleError(interp);
9588     }
9589   }
9590   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
9591   if (SWIG_IsNewObj(res2)) delete arg2;
9592   return TCL_OK;
9593 fail:
9594   if (SWIG_IsNewObj(res2)) delete arg2;
9595   return TCL_ERROR;
9596 }
9597 
9598 
9599 SWIGINTERN int
_wrap_MSet_get_firstitem(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])9600 _wrap_MSet_get_firstitem(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
9601   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
9602   void *argp1 = 0 ;
9603   int res1 = 0 ;
9604   Xapian::doccount result;
9605 
9606   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::MSet_get_firstitem self ",(void *)0) == TCL_ERROR) SWIG_fail;
9607   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
9608   if (!SWIG_IsOK(res1)) {
9609     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_get_firstitem" "', argument " "1"" of type '" "Xapian::MSet const *""'");
9610   }
9611   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
9612   {
9613     try {
9614       result = (Xapian::doccount)((Xapian::MSet const *)arg1)->get_firstitem();
9615     } catch (const Xapian::Error &e) {
9616       return XapianTclHandleError(interp, e);
9617     } catch (...) {
9618       return XapianTclHandleError(interp);
9619     }
9620   }
9621   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
9622   return TCL_OK;
9623 fail:
9624   return TCL_ERROR;
9625 }
9626 
9627 
9628 SWIGINTERN int
_wrap_MSet_get_matches_lower_bound(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])9629 _wrap_MSet_get_matches_lower_bound(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
9630   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
9631   void *argp1 = 0 ;
9632   int res1 = 0 ;
9633   Xapian::doccount result;
9634 
9635   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::MSet_get_matches_lower_bound self ",(void *)0) == TCL_ERROR) SWIG_fail;
9636   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
9637   if (!SWIG_IsOK(res1)) {
9638     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_get_matches_lower_bound" "', argument " "1"" of type '" "Xapian::MSet const *""'");
9639   }
9640   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
9641   {
9642     try {
9643       result = (Xapian::doccount)((Xapian::MSet const *)arg1)->get_matches_lower_bound();
9644     } catch (const Xapian::Error &e) {
9645       return XapianTclHandleError(interp, e);
9646     } catch (...) {
9647       return XapianTclHandleError(interp);
9648     }
9649   }
9650   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
9651   return TCL_OK;
9652 fail:
9653   return TCL_ERROR;
9654 }
9655 
9656 
9657 SWIGINTERN int
_wrap_MSet_get_matches_estimated(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])9658 _wrap_MSet_get_matches_estimated(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
9659   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
9660   void *argp1 = 0 ;
9661   int res1 = 0 ;
9662   Xapian::doccount result;
9663 
9664   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::MSet_get_matches_estimated self ",(void *)0) == TCL_ERROR) SWIG_fail;
9665   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
9666   if (!SWIG_IsOK(res1)) {
9667     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_get_matches_estimated" "', argument " "1"" of type '" "Xapian::MSet const *""'");
9668   }
9669   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
9670   {
9671     try {
9672       result = (Xapian::doccount)((Xapian::MSet const *)arg1)->get_matches_estimated();
9673     } catch (const Xapian::Error &e) {
9674       return XapianTclHandleError(interp, e);
9675     } catch (...) {
9676       return XapianTclHandleError(interp);
9677     }
9678   }
9679   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
9680   return TCL_OK;
9681 fail:
9682   return TCL_ERROR;
9683 }
9684 
9685 
9686 SWIGINTERN int
_wrap_MSet_get_matches_upper_bound(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])9687 _wrap_MSet_get_matches_upper_bound(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
9688   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
9689   void *argp1 = 0 ;
9690   int res1 = 0 ;
9691   Xapian::doccount result;
9692 
9693   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::MSet_get_matches_upper_bound self ",(void *)0) == TCL_ERROR) SWIG_fail;
9694   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
9695   if (!SWIG_IsOK(res1)) {
9696     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_get_matches_upper_bound" "', argument " "1"" of type '" "Xapian::MSet const *""'");
9697   }
9698   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
9699   {
9700     try {
9701       result = (Xapian::doccount)((Xapian::MSet const *)arg1)->get_matches_upper_bound();
9702     } catch (const Xapian::Error &e) {
9703       return XapianTclHandleError(interp, e);
9704     } catch (...) {
9705       return XapianTclHandleError(interp);
9706     }
9707   }
9708   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
9709   return TCL_OK;
9710 fail:
9711   return TCL_ERROR;
9712 }
9713 
9714 
9715 SWIGINTERN int
_wrap_MSet_get_uncollapsed_matches_lower_bound(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])9716 _wrap_MSet_get_uncollapsed_matches_lower_bound(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
9717   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
9718   void *argp1 = 0 ;
9719   int res1 = 0 ;
9720   Xapian::doccount result;
9721 
9722   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::MSet_get_uncollapsed_matches_lower_bound self ",(void *)0) == TCL_ERROR) SWIG_fail;
9723   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
9724   if (!SWIG_IsOK(res1)) {
9725     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_get_uncollapsed_matches_lower_bound" "', argument " "1"" of type '" "Xapian::MSet const *""'");
9726   }
9727   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
9728   {
9729     try {
9730       result = (Xapian::doccount)((Xapian::MSet const *)arg1)->get_uncollapsed_matches_lower_bound();
9731     } catch (const Xapian::Error &e) {
9732       return XapianTclHandleError(interp, e);
9733     } catch (...) {
9734       return XapianTclHandleError(interp);
9735     }
9736   }
9737   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
9738   return TCL_OK;
9739 fail:
9740   return TCL_ERROR;
9741 }
9742 
9743 
9744 SWIGINTERN int
_wrap_MSet_get_uncollapsed_matches_estimated(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])9745 _wrap_MSet_get_uncollapsed_matches_estimated(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
9746   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
9747   void *argp1 = 0 ;
9748   int res1 = 0 ;
9749   Xapian::doccount result;
9750 
9751   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::MSet_get_uncollapsed_matches_estimated self ",(void *)0) == TCL_ERROR) SWIG_fail;
9752   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
9753   if (!SWIG_IsOK(res1)) {
9754     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_get_uncollapsed_matches_estimated" "', argument " "1"" of type '" "Xapian::MSet const *""'");
9755   }
9756   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
9757   {
9758     try {
9759       result = (Xapian::doccount)((Xapian::MSet const *)arg1)->get_uncollapsed_matches_estimated();
9760     } catch (const Xapian::Error &e) {
9761       return XapianTclHandleError(interp, e);
9762     } catch (...) {
9763       return XapianTclHandleError(interp);
9764     }
9765   }
9766   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
9767   return TCL_OK;
9768 fail:
9769   return TCL_ERROR;
9770 }
9771 
9772 
9773 SWIGINTERN int
_wrap_MSet_get_uncollapsed_matches_upper_bound(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])9774 _wrap_MSet_get_uncollapsed_matches_upper_bound(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
9775   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
9776   void *argp1 = 0 ;
9777   int res1 = 0 ;
9778   Xapian::doccount result;
9779 
9780   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::MSet_get_uncollapsed_matches_upper_bound self ",(void *)0) == TCL_ERROR) SWIG_fail;
9781   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
9782   if (!SWIG_IsOK(res1)) {
9783     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_get_uncollapsed_matches_upper_bound" "', argument " "1"" of type '" "Xapian::MSet const *""'");
9784   }
9785   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
9786   {
9787     try {
9788       result = (Xapian::doccount)((Xapian::MSet const *)arg1)->get_uncollapsed_matches_upper_bound();
9789     } catch (const Xapian::Error &e) {
9790       return XapianTclHandleError(interp, e);
9791     } catch (...) {
9792       return XapianTclHandleError(interp);
9793     }
9794   }
9795   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
9796   return TCL_OK;
9797 fail:
9798   return TCL_ERROR;
9799 }
9800 
9801 
9802 SWIGINTERN int
_wrap_MSet_get_max_attained(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])9803 _wrap_MSet_get_max_attained(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
9804   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
9805   void *argp1 = 0 ;
9806   int res1 = 0 ;
9807   double result;
9808 
9809   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::MSet_get_max_attained self ",(void *)0) == TCL_ERROR) SWIG_fail;
9810   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
9811   if (!SWIG_IsOK(res1)) {
9812     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_get_max_attained" "', argument " "1"" of type '" "Xapian::MSet const *""'");
9813   }
9814   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
9815   {
9816     try {
9817       result = (double)((Xapian::MSet const *)arg1)->get_max_attained();
9818     } catch (const Xapian::Error &e) {
9819       return XapianTclHandleError(interp, e);
9820     } catch (...) {
9821       return XapianTclHandleError(interp);
9822     }
9823   }
9824   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
9825   return TCL_OK;
9826 fail:
9827   return TCL_ERROR;
9828 }
9829 
9830 
9831 SWIGINTERN int
_wrap_MSet_get_max_possible(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])9832 _wrap_MSet_get_max_possible(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
9833   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
9834   void *argp1 = 0 ;
9835   int res1 = 0 ;
9836   double result;
9837 
9838   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::MSet_get_max_possible self ",(void *)0) == TCL_ERROR) SWIG_fail;
9839   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
9840   if (!SWIG_IsOK(res1)) {
9841     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_get_max_possible" "', argument " "1"" of type '" "Xapian::MSet const *""'");
9842   }
9843   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
9844   {
9845     try {
9846       result = (double)((Xapian::MSet const *)arg1)->get_max_possible();
9847     } catch (const Xapian::Error &e) {
9848       return XapianTclHandleError(interp, e);
9849     } catch (...) {
9850       return XapianTclHandleError(interp);
9851     }
9852   }
9853   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
9854   return TCL_OK;
9855 fail:
9856   return TCL_ERROR;
9857 }
9858 
9859 
9860 SWIGINTERN int
_wrap_MSet_snippet__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])9861 _wrap_MSet_snippet__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
9862   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
9863   std::string *arg2 = 0 ;
9864   size_t arg3 ;
9865   Xapian::Stem *arg4 = 0 ;
9866   unsigned int arg5 ;
9867   std::string *arg6 = 0 ;
9868   std::string *arg7 = 0 ;
9869   std::string *arg8 = 0 ;
9870   void *argp1 = 0 ;
9871   int res1 = 0 ;
9872   int res2 = SWIG_OLDOBJ ;
9873   size_t val3 ;
9874   int ecode3 = 0 ;
9875   void *argp4 ;
9876   int res4 = 0 ;
9877   unsigned int val5 ;
9878   int ecode5 = 0 ;
9879   int res6 = SWIG_OLDOBJ ;
9880   int res7 = SWIG_OLDOBJ ;
9881   int res8 = SWIG_OLDOBJ ;
9882   std::string result;
9883 
9884   if (SWIG_GetArgs(interp, objc, objv,"oooooooo:xapian::MSet_snippet self text length stemmer flags hi_start hi_end omit ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
9885   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
9886   if (!SWIG_IsOK(res1)) {
9887     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_snippet" "', argument " "1"" of type '" "Xapian::MSet const *""'");
9888   }
9889   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
9890   {
9891     std::string *ptr = (std::string *)0;
9892     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
9893     if (!SWIG_IsOK(res2)) {
9894       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSet_snippet" "', argument " "2"" of type '" "std::string const &""'");
9895     }
9896     if (!ptr) {
9897       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "2"" of type '" "std::string const &""'");
9898     }
9899     arg2 = ptr;
9900   }
9901   ecode3 = SWIG_AsVal_size_t SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
9902   if (!SWIG_IsOK(ecode3)) {
9903     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MSet_snippet" "', argument " "3"" of type '" "size_t""'");
9904   }
9905   arg3 = static_cast< size_t >(val3);
9906   res4 = SWIG_ConvertPtr(objv[4], &argp4, SWIGTYPE_p_Xapian__Stem,  0 );
9907   if (!SWIG_IsOK(res4)) {
9908     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "MSet_snippet" "', argument " "4"" of type '" "Xapian::Stem const &""'");
9909   }
9910   if (!argp4) {
9911     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "4"" of type '" "Xapian::Stem const &""'");
9912   }
9913   arg4 = reinterpret_cast< Xapian::Stem * >(argp4);
9914   ecode5 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
9915   if (!SWIG_IsOK(ecode5)) {
9916     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "MSet_snippet" "', argument " "5"" of type '" "unsigned int""'");
9917   }
9918   arg5 = static_cast< unsigned int >(val5);
9919   {
9920     std::string *ptr = (std::string *)0;
9921     res6 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[6], &ptr);
9922     if (!SWIG_IsOK(res6)) {
9923       SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "MSet_snippet" "', argument " "6"" of type '" "std::string const &""'");
9924     }
9925     if (!ptr) {
9926       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "6"" of type '" "std::string const &""'");
9927     }
9928     arg6 = ptr;
9929   }
9930   {
9931     std::string *ptr = (std::string *)0;
9932     res7 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[7], &ptr);
9933     if (!SWIG_IsOK(res7)) {
9934       SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "MSet_snippet" "', argument " "7"" of type '" "std::string const &""'");
9935     }
9936     if (!ptr) {
9937       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "7"" of type '" "std::string const &""'");
9938     }
9939     arg7 = ptr;
9940   }
9941   {
9942     std::string *ptr = (std::string *)0;
9943     res8 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[8], &ptr);
9944     if (!SWIG_IsOK(res8)) {
9945       SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "MSet_snippet" "', argument " "8"" of type '" "std::string const &""'");
9946     }
9947     if (!ptr) {
9948       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "8"" of type '" "std::string const &""'");
9949     }
9950     arg8 = ptr;
9951   }
9952   {
9953     try {
9954       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);
9955     } catch (const Xapian::Error &e) {
9956       return XapianTclHandleError(interp, e);
9957     } catch (...) {
9958       return XapianTclHandleError(interp);
9959     }
9960   }
9961   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
9962   if (SWIG_IsNewObj(res2)) delete arg2;
9963   if (SWIG_IsNewObj(res6)) delete arg6;
9964   if (SWIG_IsNewObj(res7)) delete arg7;
9965   if (SWIG_IsNewObj(res8)) delete arg8;
9966   return TCL_OK;
9967 fail:
9968   if (SWIG_IsNewObj(res2)) delete arg2;
9969   if (SWIG_IsNewObj(res6)) delete arg6;
9970   if (SWIG_IsNewObj(res7)) delete arg7;
9971   if (SWIG_IsNewObj(res8)) delete arg8;
9972   return TCL_ERROR;
9973 }
9974 
9975 
9976 SWIGINTERN int
_wrap_MSet_snippet__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])9977 _wrap_MSet_snippet__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
9978   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
9979   std::string *arg2 = 0 ;
9980   size_t arg3 ;
9981   Xapian::Stem *arg4 = 0 ;
9982   unsigned int arg5 ;
9983   std::string *arg6 = 0 ;
9984   std::string *arg7 = 0 ;
9985   void *argp1 = 0 ;
9986   int res1 = 0 ;
9987   int res2 = SWIG_OLDOBJ ;
9988   size_t val3 ;
9989   int ecode3 = 0 ;
9990   void *argp4 ;
9991   int res4 = 0 ;
9992   unsigned int val5 ;
9993   int ecode5 = 0 ;
9994   int res6 = SWIG_OLDOBJ ;
9995   int res7 = SWIG_OLDOBJ ;
9996   std::string result;
9997 
9998   if (SWIG_GetArgs(interp, objc, objv,"ooooooo:xapian::MSet_snippet self text length stemmer flags hi_start hi_end ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
9999   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
10000   if (!SWIG_IsOK(res1)) {
10001     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_snippet" "', argument " "1"" of type '" "Xapian::MSet const *""'");
10002   }
10003   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
10004   {
10005     std::string *ptr = (std::string *)0;
10006     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
10007     if (!SWIG_IsOK(res2)) {
10008       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSet_snippet" "', argument " "2"" of type '" "std::string const &""'");
10009     }
10010     if (!ptr) {
10011       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "2"" of type '" "std::string const &""'");
10012     }
10013     arg2 = ptr;
10014   }
10015   ecode3 = SWIG_AsVal_size_t SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
10016   if (!SWIG_IsOK(ecode3)) {
10017     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MSet_snippet" "', argument " "3"" of type '" "size_t""'");
10018   }
10019   arg3 = static_cast< size_t >(val3);
10020   res4 = SWIG_ConvertPtr(objv[4], &argp4, SWIGTYPE_p_Xapian__Stem,  0 );
10021   if (!SWIG_IsOK(res4)) {
10022     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "MSet_snippet" "', argument " "4"" of type '" "Xapian::Stem const &""'");
10023   }
10024   if (!argp4) {
10025     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "4"" of type '" "Xapian::Stem const &""'");
10026   }
10027   arg4 = reinterpret_cast< Xapian::Stem * >(argp4);
10028   ecode5 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
10029   if (!SWIG_IsOK(ecode5)) {
10030     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "MSet_snippet" "', argument " "5"" of type '" "unsigned int""'");
10031   }
10032   arg5 = static_cast< unsigned int >(val5);
10033   {
10034     std::string *ptr = (std::string *)0;
10035     res6 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[6], &ptr);
10036     if (!SWIG_IsOK(res6)) {
10037       SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "MSet_snippet" "', argument " "6"" of type '" "std::string const &""'");
10038     }
10039     if (!ptr) {
10040       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "6"" of type '" "std::string const &""'");
10041     }
10042     arg6 = ptr;
10043   }
10044   {
10045     std::string *ptr = (std::string *)0;
10046     res7 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[7], &ptr);
10047     if (!SWIG_IsOK(res7)) {
10048       SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "MSet_snippet" "', argument " "7"" of type '" "std::string const &""'");
10049     }
10050     if (!ptr) {
10051       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "7"" of type '" "std::string const &""'");
10052     }
10053     arg7 = ptr;
10054   }
10055   {
10056     try {
10057       result = ((Xapian::MSet const *)arg1)->snippet((std::string const &)*arg2,arg3,(Xapian::Stem const &)*arg4,arg5,(std::string const &)*arg6,(std::string const &)*arg7);
10058     } catch (const Xapian::Error &e) {
10059       return XapianTclHandleError(interp, e);
10060     } catch (...) {
10061       return XapianTclHandleError(interp);
10062     }
10063   }
10064   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
10065   if (SWIG_IsNewObj(res2)) delete arg2;
10066   if (SWIG_IsNewObj(res6)) delete arg6;
10067   if (SWIG_IsNewObj(res7)) delete arg7;
10068   return TCL_OK;
10069 fail:
10070   if (SWIG_IsNewObj(res2)) delete arg2;
10071   if (SWIG_IsNewObj(res6)) delete arg6;
10072   if (SWIG_IsNewObj(res7)) delete arg7;
10073   return TCL_ERROR;
10074 }
10075 
10076 
10077 SWIGINTERN int
_wrap_MSet_snippet__SWIG_2(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])10078 _wrap_MSet_snippet__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
10079   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
10080   std::string *arg2 = 0 ;
10081   size_t arg3 ;
10082   Xapian::Stem *arg4 = 0 ;
10083   unsigned int arg5 ;
10084   std::string *arg6 = 0 ;
10085   void *argp1 = 0 ;
10086   int res1 = 0 ;
10087   int res2 = SWIG_OLDOBJ ;
10088   size_t val3 ;
10089   int ecode3 = 0 ;
10090   void *argp4 ;
10091   int res4 = 0 ;
10092   unsigned int val5 ;
10093   int ecode5 = 0 ;
10094   int res6 = SWIG_OLDOBJ ;
10095   std::string result;
10096 
10097   if (SWIG_GetArgs(interp, objc, objv,"oooooo:xapian::MSet_snippet self text length stemmer flags hi_start ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
10098   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
10099   if (!SWIG_IsOK(res1)) {
10100     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_snippet" "', argument " "1"" of type '" "Xapian::MSet const *""'");
10101   }
10102   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
10103   {
10104     std::string *ptr = (std::string *)0;
10105     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
10106     if (!SWIG_IsOK(res2)) {
10107       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSet_snippet" "', argument " "2"" of type '" "std::string const &""'");
10108     }
10109     if (!ptr) {
10110       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "2"" of type '" "std::string const &""'");
10111     }
10112     arg2 = ptr;
10113   }
10114   ecode3 = SWIG_AsVal_size_t SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
10115   if (!SWIG_IsOK(ecode3)) {
10116     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MSet_snippet" "', argument " "3"" of type '" "size_t""'");
10117   }
10118   arg3 = static_cast< size_t >(val3);
10119   res4 = SWIG_ConvertPtr(objv[4], &argp4, SWIGTYPE_p_Xapian__Stem,  0 );
10120   if (!SWIG_IsOK(res4)) {
10121     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "MSet_snippet" "', argument " "4"" of type '" "Xapian::Stem const &""'");
10122   }
10123   if (!argp4) {
10124     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "4"" of type '" "Xapian::Stem const &""'");
10125   }
10126   arg4 = reinterpret_cast< Xapian::Stem * >(argp4);
10127   ecode5 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
10128   if (!SWIG_IsOK(ecode5)) {
10129     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "MSet_snippet" "', argument " "5"" of type '" "unsigned int""'");
10130   }
10131   arg5 = static_cast< unsigned int >(val5);
10132   {
10133     std::string *ptr = (std::string *)0;
10134     res6 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[6], &ptr);
10135     if (!SWIG_IsOK(res6)) {
10136       SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "MSet_snippet" "', argument " "6"" of type '" "std::string const &""'");
10137     }
10138     if (!ptr) {
10139       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "6"" of type '" "std::string const &""'");
10140     }
10141     arg6 = ptr;
10142   }
10143   {
10144     try {
10145       result = ((Xapian::MSet const *)arg1)->snippet((std::string const &)*arg2,arg3,(Xapian::Stem const &)*arg4,arg5,(std::string const &)*arg6);
10146     } catch (const Xapian::Error &e) {
10147       return XapianTclHandleError(interp, e);
10148     } catch (...) {
10149       return XapianTclHandleError(interp);
10150     }
10151   }
10152   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
10153   if (SWIG_IsNewObj(res2)) delete arg2;
10154   if (SWIG_IsNewObj(res6)) delete arg6;
10155   return TCL_OK;
10156 fail:
10157   if (SWIG_IsNewObj(res2)) delete arg2;
10158   if (SWIG_IsNewObj(res6)) delete arg6;
10159   return TCL_ERROR;
10160 }
10161 
10162 
10163 SWIGINTERN int
_wrap_MSet_snippet__SWIG_3(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])10164 _wrap_MSet_snippet__SWIG_3(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
10165   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
10166   std::string *arg2 = 0 ;
10167   size_t arg3 ;
10168   Xapian::Stem *arg4 = 0 ;
10169   unsigned int arg5 ;
10170   void *argp1 = 0 ;
10171   int res1 = 0 ;
10172   int res2 = SWIG_OLDOBJ ;
10173   size_t val3 ;
10174   int ecode3 = 0 ;
10175   void *argp4 ;
10176   int res4 = 0 ;
10177   unsigned int val5 ;
10178   int ecode5 = 0 ;
10179   std::string result;
10180 
10181   if (SWIG_GetArgs(interp, objc, objv,"ooooo:xapian::MSet_snippet self text length stemmer flags ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
10182   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
10183   if (!SWIG_IsOK(res1)) {
10184     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_snippet" "', argument " "1"" of type '" "Xapian::MSet const *""'");
10185   }
10186   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
10187   {
10188     std::string *ptr = (std::string *)0;
10189     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
10190     if (!SWIG_IsOK(res2)) {
10191       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSet_snippet" "', argument " "2"" of type '" "std::string const &""'");
10192     }
10193     if (!ptr) {
10194       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "2"" of type '" "std::string const &""'");
10195     }
10196     arg2 = ptr;
10197   }
10198   ecode3 = SWIG_AsVal_size_t SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
10199   if (!SWIG_IsOK(ecode3)) {
10200     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MSet_snippet" "', argument " "3"" of type '" "size_t""'");
10201   }
10202   arg3 = static_cast< size_t >(val3);
10203   res4 = SWIG_ConvertPtr(objv[4], &argp4, SWIGTYPE_p_Xapian__Stem,  0 );
10204   if (!SWIG_IsOK(res4)) {
10205     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "MSet_snippet" "', argument " "4"" of type '" "Xapian::Stem const &""'");
10206   }
10207   if (!argp4) {
10208     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "4"" of type '" "Xapian::Stem const &""'");
10209   }
10210   arg4 = reinterpret_cast< Xapian::Stem * >(argp4);
10211   ecode5 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
10212   if (!SWIG_IsOK(ecode5)) {
10213     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "MSet_snippet" "', argument " "5"" of type '" "unsigned int""'");
10214   }
10215   arg5 = static_cast< unsigned int >(val5);
10216   {
10217     try {
10218       result = ((Xapian::MSet const *)arg1)->snippet((std::string const &)*arg2,arg3,(Xapian::Stem const &)*arg4,arg5);
10219     } catch (const Xapian::Error &e) {
10220       return XapianTclHandleError(interp, e);
10221     } catch (...) {
10222       return XapianTclHandleError(interp);
10223     }
10224   }
10225   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
10226   if (SWIG_IsNewObj(res2)) delete arg2;
10227   return TCL_OK;
10228 fail:
10229   if (SWIG_IsNewObj(res2)) delete arg2;
10230   return TCL_ERROR;
10231 }
10232 
10233 
10234 SWIGINTERN int
_wrap_MSet_snippet__SWIG_4(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])10235 _wrap_MSet_snippet__SWIG_4(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
10236   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
10237   std::string *arg2 = 0 ;
10238   size_t arg3 ;
10239   Xapian::Stem *arg4 = 0 ;
10240   void *argp1 = 0 ;
10241   int res1 = 0 ;
10242   int res2 = SWIG_OLDOBJ ;
10243   size_t val3 ;
10244   int ecode3 = 0 ;
10245   void *argp4 ;
10246   int res4 = 0 ;
10247   std::string result;
10248 
10249   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::MSet_snippet self text length stemmer ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
10250   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
10251   if (!SWIG_IsOK(res1)) {
10252     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_snippet" "', argument " "1"" of type '" "Xapian::MSet const *""'");
10253   }
10254   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
10255   {
10256     std::string *ptr = (std::string *)0;
10257     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
10258     if (!SWIG_IsOK(res2)) {
10259       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSet_snippet" "', argument " "2"" of type '" "std::string const &""'");
10260     }
10261     if (!ptr) {
10262       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "2"" of type '" "std::string const &""'");
10263     }
10264     arg2 = ptr;
10265   }
10266   ecode3 = SWIG_AsVal_size_t SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
10267   if (!SWIG_IsOK(ecode3)) {
10268     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MSet_snippet" "', argument " "3"" of type '" "size_t""'");
10269   }
10270   arg3 = static_cast< size_t >(val3);
10271   res4 = SWIG_ConvertPtr(objv[4], &argp4, SWIGTYPE_p_Xapian__Stem,  0 );
10272   if (!SWIG_IsOK(res4)) {
10273     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "MSet_snippet" "', argument " "4"" of type '" "Xapian::Stem const &""'");
10274   }
10275   if (!argp4) {
10276     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "4"" of type '" "Xapian::Stem const &""'");
10277   }
10278   arg4 = reinterpret_cast< Xapian::Stem * >(argp4);
10279   {
10280     try {
10281       result = ((Xapian::MSet const *)arg1)->snippet((std::string const &)*arg2,arg3,(Xapian::Stem const &)*arg4);
10282     } catch (const Xapian::Error &e) {
10283       return XapianTclHandleError(interp, e);
10284     } catch (...) {
10285       return XapianTclHandleError(interp);
10286     }
10287   }
10288   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
10289   if (SWIG_IsNewObj(res2)) delete arg2;
10290   return TCL_OK;
10291 fail:
10292   if (SWIG_IsNewObj(res2)) delete arg2;
10293   return TCL_ERROR;
10294 }
10295 
10296 
10297 SWIGINTERN int
_wrap_MSet_snippet__SWIG_5(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])10298 _wrap_MSet_snippet__SWIG_5(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
10299   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
10300   std::string *arg2 = 0 ;
10301   size_t arg3 ;
10302   void *argp1 = 0 ;
10303   int res1 = 0 ;
10304   int res2 = SWIG_OLDOBJ ;
10305   size_t val3 ;
10306   int ecode3 = 0 ;
10307   std::string result;
10308 
10309   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::MSet_snippet self text length ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
10310   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
10311   if (!SWIG_IsOK(res1)) {
10312     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_snippet" "', argument " "1"" of type '" "Xapian::MSet const *""'");
10313   }
10314   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
10315   {
10316     std::string *ptr = (std::string *)0;
10317     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
10318     if (!SWIG_IsOK(res2)) {
10319       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSet_snippet" "', argument " "2"" of type '" "std::string const &""'");
10320     }
10321     if (!ptr) {
10322       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "2"" of type '" "std::string const &""'");
10323     }
10324     arg2 = ptr;
10325   }
10326   ecode3 = SWIG_AsVal_size_t SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
10327   if (!SWIG_IsOK(ecode3)) {
10328     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MSet_snippet" "', argument " "3"" of type '" "size_t""'");
10329   }
10330   arg3 = static_cast< size_t >(val3);
10331   {
10332     try {
10333       result = ((Xapian::MSet const *)arg1)->snippet((std::string const &)*arg2,arg3);
10334     } catch (const Xapian::Error &e) {
10335       return XapianTclHandleError(interp, e);
10336     } catch (...) {
10337       return XapianTclHandleError(interp);
10338     }
10339   }
10340   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
10341   if (SWIG_IsNewObj(res2)) delete arg2;
10342   return TCL_OK;
10343 fail:
10344   if (SWIG_IsNewObj(res2)) delete arg2;
10345   return TCL_ERROR;
10346 }
10347 
10348 
10349 SWIGINTERN int
_wrap_MSet_snippet__SWIG_6(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])10350 _wrap_MSet_snippet__SWIG_6(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
10351   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
10352   std::string *arg2 = 0 ;
10353   void *argp1 = 0 ;
10354   int res1 = 0 ;
10355   int res2 = SWIG_OLDOBJ ;
10356   std::string result;
10357 
10358   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::MSet_snippet self text ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
10359   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
10360   if (!SWIG_IsOK(res1)) {
10361     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_snippet" "', argument " "1"" of type '" "Xapian::MSet const *""'");
10362   }
10363   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
10364   {
10365     std::string *ptr = (std::string *)0;
10366     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
10367     if (!SWIG_IsOK(res2)) {
10368       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSet_snippet" "', argument " "2"" of type '" "std::string const &""'");
10369     }
10370     if (!ptr) {
10371       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "2"" of type '" "std::string const &""'");
10372     }
10373     arg2 = ptr;
10374   }
10375   {
10376     try {
10377       result = ((Xapian::MSet const *)arg1)->snippet((std::string const &)*arg2);
10378     } catch (const Xapian::Error &e) {
10379       return XapianTclHandleError(interp, e);
10380     } catch (...) {
10381       return XapianTclHandleError(interp);
10382     }
10383   }
10384   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
10385   if (SWIG_IsNewObj(res2)) delete arg2;
10386   return TCL_OK;
10387 fail:
10388   if (SWIG_IsNewObj(res2)) delete arg2;
10389   return TCL_ERROR;
10390 }
10391 
10392 
10393 SWIGINTERN int
_wrap_MSet_snippet(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])10394 _wrap_MSet_snippet(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
10395   Tcl_Obj *CONST *argv = objv+1;
10396   int argc = objc-1;
10397   if (argc == 2) {
10398     int _v;
10399     void *vptr = 0;
10400     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__MSet, 0);
10401     _v = SWIG_CheckState(res);
10402     if (_v) {
10403       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
10404       _v = SWIG_CheckState(res);
10405       if (_v) {
10406         return _wrap_MSet_snippet__SWIG_6(clientData, interp, objc, argv - 1);
10407       }
10408     }
10409   }
10410   if (argc == 3) {
10411     int _v;
10412     void *vptr = 0;
10413     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__MSet, 0);
10414     _v = SWIG_CheckState(res);
10415     if (_v) {
10416       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
10417       _v = SWIG_CheckState(res);
10418       if (_v) {
10419         {
10420           int res = SWIG_AsVal_size_t SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
10421           _v = SWIG_CheckState(res);
10422         }
10423         if (_v) {
10424           return _wrap_MSet_snippet__SWIG_5(clientData, interp, objc, argv - 1);
10425         }
10426       }
10427     }
10428   }
10429   if (argc == 4) {
10430     int _v;
10431     void *vptr = 0;
10432     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__MSet, 0);
10433     _v = SWIG_CheckState(res);
10434     if (_v) {
10435       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
10436       _v = SWIG_CheckState(res);
10437       if (_v) {
10438         {
10439           int res = SWIG_AsVal_size_t SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
10440           _v = SWIG_CheckState(res);
10441         }
10442         if (_v) {
10443           void *vptr = 0;
10444           int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_Xapian__Stem, 0);
10445           _v = SWIG_CheckState(res);
10446           if (_v) {
10447             return _wrap_MSet_snippet__SWIG_4(clientData, interp, objc, argv - 1);
10448           }
10449         }
10450       }
10451     }
10452   }
10453   if (argc == 5) {
10454     int _v;
10455     void *vptr = 0;
10456     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__MSet, 0);
10457     _v = SWIG_CheckState(res);
10458     if (_v) {
10459       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
10460       _v = SWIG_CheckState(res);
10461       if (_v) {
10462         {
10463           int res = SWIG_AsVal_size_t SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
10464           _v = SWIG_CheckState(res);
10465         }
10466         if (_v) {
10467           void *vptr = 0;
10468           int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_Xapian__Stem, 0);
10469           _v = SWIG_CheckState(res);
10470           if (_v) {
10471             {
10472               int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[4], NULL);
10473               _v = SWIG_CheckState(res);
10474             }
10475             if (_v) {
10476               return _wrap_MSet_snippet__SWIG_3(clientData, interp, objc, argv - 1);
10477             }
10478           }
10479         }
10480       }
10481     }
10482   }
10483   if (argc == 6) {
10484     int _v;
10485     void *vptr = 0;
10486     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__MSet, 0);
10487     _v = SWIG_CheckState(res);
10488     if (_v) {
10489       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
10490       _v = SWIG_CheckState(res);
10491       if (_v) {
10492         {
10493           int res = SWIG_AsVal_size_t SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
10494           _v = SWIG_CheckState(res);
10495         }
10496         if (_v) {
10497           void *vptr = 0;
10498           int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_Xapian__Stem, 0);
10499           _v = SWIG_CheckState(res);
10500           if (_v) {
10501             {
10502               int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[4], NULL);
10503               _v = SWIG_CheckState(res);
10504             }
10505             if (_v) {
10506               int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[5], (std::string**)(0));
10507               _v = SWIG_CheckState(res);
10508               if (_v) {
10509                 return _wrap_MSet_snippet__SWIG_2(clientData, interp, objc, argv - 1);
10510               }
10511             }
10512           }
10513         }
10514       }
10515     }
10516   }
10517   if (argc == 7) {
10518     int _v;
10519     void *vptr = 0;
10520     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__MSet, 0);
10521     _v = SWIG_CheckState(res);
10522     if (_v) {
10523       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
10524       _v = SWIG_CheckState(res);
10525       if (_v) {
10526         {
10527           int res = SWIG_AsVal_size_t SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
10528           _v = SWIG_CheckState(res);
10529         }
10530         if (_v) {
10531           void *vptr = 0;
10532           int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_Xapian__Stem, 0);
10533           _v = SWIG_CheckState(res);
10534           if (_v) {
10535             {
10536               int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[4], NULL);
10537               _v = SWIG_CheckState(res);
10538             }
10539             if (_v) {
10540               int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[5], (std::string**)(0));
10541               _v = SWIG_CheckState(res);
10542               if (_v) {
10543                 int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[6], (std::string**)(0));
10544                 _v = SWIG_CheckState(res);
10545                 if (_v) {
10546                   return _wrap_MSet_snippet__SWIG_1(clientData, interp, objc, argv - 1);
10547                 }
10548               }
10549             }
10550           }
10551         }
10552       }
10553     }
10554   }
10555   if (argc == 8) {
10556     int _v;
10557     void *vptr = 0;
10558     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__MSet, 0);
10559     _v = SWIG_CheckState(res);
10560     if (_v) {
10561       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
10562       _v = SWIG_CheckState(res);
10563       if (_v) {
10564         {
10565           int res = SWIG_AsVal_size_t SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
10566           _v = SWIG_CheckState(res);
10567         }
10568         if (_v) {
10569           void *vptr = 0;
10570           int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_Xapian__Stem, 0);
10571           _v = SWIG_CheckState(res);
10572           if (_v) {
10573             {
10574               int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[4], NULL);
10575               _v = SWIG_CheckState(res);
10576             }
10577             if (_v) {
10578               int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[5], (std::string**)(0));
10579               _v = SWIG_CheckState(res);
10580               if (_v) {
10581                 int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[6], (std::string**)(0));
10582                 _v = SWIG_CheckState(res);
10583                 if (_v) {
10584                   int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[7], (std::string**)(0));
10585                   _v = SWIG_CheckState(res);
10586                   if (_v) {
10587                     return _wrap_MSet_snippet__SWIG_0(clientData, interp, objc, argv - 1);
10588                   }
10589                 }
10590               }
10591             }
10592           }
10593         }
10594       }
10595     }
10596   }
10597 
10598   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'MSet_snippet'.\n"
10599     "  Possible C/C++ prototypes are:\n"
10600     "    Xapian::MSet::snippet(std::string const &,size_t,Xapian::Stem const &,unsigned int,std::string const &,std::string const &,std::string const &) const\n"
10601     "    Xapian::MSet::snippet(std::string const &,size_t,Xapian::Stem const &,unsigned int,std::string const &,std::string const &) const\n"
10602     "    Xapian::MSet::snippet(std::string const &,size_t,Xapian::Stem const &,unsigned int,std::string const &) const\n"
10603     "    Xapian::MSet::snippet(std::string const &,size_t,Xapian::Stem const &,unsigned int) const\n"
10604     "    Xapian::MSet::snippet(std::string const &,size_t,Xapian::Stem const &) const\n"
10605     "    Xapian::MSet::snippet(std::string const &,size_t) const\n"
10606     "    Xapian::MSet::snippet(std::string const &) const\n", TCL_STATIC);
10607   return TCL_ERROR;
10608 }
10609 
10610 
10611 SWIGINTERN int
_wrap_MSet_fetch__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])10612 _wrap_MSet_fetch__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
10613   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
10614   Xapian::MSetIterator *arg2 = 0 ;
10615   Xapian::MSetIterator *arg3 = 0 ;
10616   void *argp1 = 0 ;
10617   int res1 = 0 ;
10618   void *argp2 ;
10619   int res2 = 0 ;
10620   void *argp3 ;
10621   int res3 = 0 ;
10622 
10623   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::MSet_fetch self begin end ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
10624   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
10625   if (!SWIG_IsOK(res1)) {
10626     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_fetch" "', argument " "1"" of type '" "Xapian::MSet const *""'");
10627   }
10628   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
10629   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0 );
10630   if (!SWIG_IsOK(res2)) {
10631     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSet_fetch" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
10632   }
10633   if (!argp2) {
10634     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_fetch" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
10635   }
10636   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
10637   res3 = SWIG_ConvertPtr(objv[3], &argp3, SWIGTYPE_p_Xapian__MSetIterator,  0 );
10638   if (!SWIG_IsOK(res3)) {
10639     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MSet_fetch" "', argument " "3"" of type '" "Xapian::MSetIterator const &""'");
10640   }
10641   if (!argp3) {
10642     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_fetch" "', argument " "3"" of type '" "Xapian::MSetIterator const &""'");
10643   }
10644   arg3 = reinterpret_cast< Xapian::MSetIterator * >(argp3);
10645   {
10646     try {
10647       ((Xapian::MSet const *)arg1)->fetch((Xapian::MSetIterator const &)*arg2,(Xapian::MSetIterator const &)*arg3);
10648     } catch (const Xapian::Error &e) {
10649       return XapianTclHandleError(interp, e);
10650     } catch (...) {
10651       return XapianTclHandleError(interp);
10652     }
10653   }
10654 
10655   return TCL_OK;
10656 fail:
10657   return TCL_ERROR;
10658 }
10659 
10660 
10661 SWIGINTERN int
_wrap_MSet_fetch__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])10662 _wrap_MSet_fetch__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
10663   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
10664   Xapian::MSetIterator *arg2 = 0 ;
10665   void *argp1 = 0 ;
10666   int res1 = 0 ;
10667   void *argp2 ;
10668   int res2 = 0 ;
10669 
10670   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::MSet_fetch self item ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
10671   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
10672   if (!SWIG_IsOK(res1)) {
10673     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_fetch" "', argument " "1"" of type '" "Xapian::MSet const *""'");
10674   }
10675   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
10676   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0 );
10677   if (!SWIG_IsOK(res2)) {
10678     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSet_fetch" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
10679   }
10680   if (!argp2) {
10681     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_fetch" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
10682   }
10683   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
10684   {
10685     try {
10686       ((Xapian::MSet const *)arg1)->fetch((Xapian::MSetIterator const &)*arg2);
10687     } catch (const Xapian::Error &e) {
10688       return XapianTclHandleError(interp, e);
10689     } catch (...) {
10690       return XapianTclHandleError(interp);
10691     }
10692   }
10693 
10694   return TCL_OK;
10695 fail:
10696   return TCL_ERROR;
10697 }
10698 
10699 
10700 SWIGINTERN int
_wrap_MSet_fetch__SWIG_2(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])10701 _wrap_MSet_fetch__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
10702   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
10703   void *argp1 = 0 ;
10704   int res1 = 0 ;
10705 
10706   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::MSet_fetch self ",(void *)0) == TCL_ERROR) SWIG_fail;
10707   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
10708   if (!SWIG_IsOK(res1)) {
10709     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_fetch" "', argument " "1"" of type '" "Xapian::MSet const *""'");
10710   }
10711   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
10712   {
10713     try {
10714       ((Xapian::MSet const *)arg1)->fetch();
10715     } catch (const Xapian::Error &e) {
10716       return XapianTclHandleError(interp, e);
10717     } catch (...) {
10718       return XapianTclHandleError(interp);
10719     }
10720   }
10721 
10722   return TCL_OK;
10723 fail:
10724   return TCL_ERROR;
10725 }
10726 
10727 
10728 SWIGINTERN int
_wrap_MSet_fetch(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])10729 _wrap_MSet_fetch(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
10730   Tcl_Obj *CONST *argv = objv+1;
10731   int argc = objc-1;
10732   if (argc == 1) {
10733     int _v;
10734     void *vptr = 0;
10735     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__MSet, 0);
10736     _v = SWIG_CheckState(res);
10737     if (_v) {
10738       return _wrap_MSet_fetch__SWIG_2(clientData, interp, objc, argv - 1);
10739     }
10740   }
10741   if (argc == 2) {
10742     int _v;
10743     void *vptr = 0;
10744     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__MSet, 0);
10745     _v = SWIG_CheckState(res);
10746     if (_v) {
10747       void *vptr = 0;
10748       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Xapian__MSetIterator, 0);
10749       _v = SWIG_CheckState(res);
10750       if (_v) {
10751         return _wrap_MSet_fetch__SWIG_1(clientData, interp, objc, argv - 1);
10752       }
10753     }
10754   }
10755   if (argc == 3) {
10756     int _v;
10757     void *vptr = 0;
10758     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__MSet, 0);
10759     _v = SWIG_CheckState(res);
10760     if (_v) {
10761       void *vptr = 0;
10762       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Xapian__MSetIterator, 0);
10763       _v = SWIG_CheckState(res);
10764       if (_v) {
10765         void *vptr = 0;
10766         int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_Xapian__MSetIterator, 0);
10767         _v = SWIG_CheckState(res);
10768         if (_v) {
10769           return _wrap_MSet_fetch__SWIG_0(clientData, interp, objc, argv - 1);
10770         }
10771       }
10772     }
10773   }
10774 
10775   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'MSet_fetch'.\n"
10776     "  Possible C/C++ prototypes are:\n"
10777     "    Xapian::MSet::fetch(Xapian::MSetIterator const &,Xapian::MSetIterator const &) const\n"
10778     "    Xapian::MSet::fetch(Xapian::MSetIterator const &) const\n"
10779     "    Xapian::MSet::fetch() const\n", TCL_STATIC);
10780   return TCL_ERROR;
10781 }
10782 
10783 
10784 SWIGINTERN int
_wrap_MSet_size(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])10785 _wrap_MSet_size(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
10786   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
10787   void *argp1 = 0 ;
10788   int res1 = 0 ;
10789   Xapian::doccount result;
10790 
10791   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::MSet_size self ",(void *)0) == TCL_ERROR) SWIG_fail;
10792   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
10793   if (!SWIG_IsOK(res1)) {
10794     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_size" "', argument " "1"" of type '" "Xapian::MSet const *""'");
10795   }
10796   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
10797   {
10798     try {
10799       result = (Xapian::doccount)((Xapian::MSet const *)arg1)->size();
10800     } catch (const Xapian::Error &e) {
10801       return XapianTclHandleError(interp, e);
10802     } catch (...) {
10803       return XapianTclHandleError(interp);
10804     }
10805   }
10806   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
10807   return TCL_OK;
10808 fail:
10809   return TCL_ERROR;
10810 }
10811 
10812 
10813 SWIGINTERN int
_wrap_MSet_empty(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])10814 _wrap_MSet_empty(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
10815   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
10816   void *argp1 = 0 ;
10817   int res1 = 0 ;
10818   bool result;
10819 
10820   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::MSet_empty self ",(void *)0) == TCL_ERROR) SWIG_fail;
10821   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
10822   if (!SWIG_IsOK(res1)) {
10823     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_empty" "', argument " "1"" of type '" "Xapian::MSet const *""'");
10824   }
10825   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
10826   {
10827     try {
10828       result = (bool)((Xapian::MSet const *)arg1)->empty();
10829     } catch (const Xapian::Error &e) {
10830       return XapianTclHandleError(interp, e);
10831     } catch (...) {
10832       return XapianTclHandleError(interp);
10833     }
10834   }
10835   Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
10836   return TCL_OK;
10837 fail:
10838   return TCL_ERROR;
10839 }
10840 
10841 
10842 SWIGINTERN int
_wrap_MSet_begin(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])10843 _wrap_MSet_begin(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
10844   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
10845   void *argp1 = 0 ;
10846   int res1 = 0 ;
10847   Xapian::MSetIterator result;
10848 
10849   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::MSet_begin self ",(void *)0) == TCL_ERROR) SWIG_fail;
10850   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
10851   if (!SWIG_IsOK(res1)) {
10852     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_begin" "', argument " "1"" of type '" "Xapian::MSet const *""'");
10853   }
10854   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
10855   {
10856     try {
10857       result = ((Xapian::MSet const *)arg1)->begin();
10858     } catch (const Xapian::Error &e) {
10859       return XapianTclHandleError(interp, e);
10860     } catch (...) {
10861       return XapianTclHandleError(interp);
10862     }
10863   }
10864   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::MSetIterator(static_cast< const Xapian::MSetIterator& >(result))), SWIGTYPE_p_Xapian__MSetIterator, SWIG_POINTER_OWN | 0 ));
10865   return TCL_OK;
10866 fail:
10867   return TCL_ERROR;
10868 }
10869 
10870 
10871 SWIGINTERN int
_wrap_MSet_end(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])10872 _wrap_MSet_end(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
10873   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
10874   void *argp1 = 0 ;
10875   int res1 = 0 ;
10876   Xapian::MSetIterator result;
10877 
10878   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::MSet_end self ",(void *)0) == TCL_ERROR) SWIG_fail;
10879   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
10880   if (!SWIG_IsOK(res1)) {
10881     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_end" "', argument " "1"" of type '" "Xapian::MSet const *""'");
10882   }
10883   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
10884   {
10885     try {
10886       result = ((Xapian::MSet const *)arg1)->end();
10887     } catch (const Xapian::Error &e) {
10888       return XapianTclHandleError(interp, e);
10889     } catch (...) {
10890       return XapianTclHandleError(interp);
10891     }
10892   }
10893   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::MSetIterator(static_cast< const Xapian::MSetIterator& >(result))), SWIGTYPE_p_Xapian__MSetIterator, SWIG_POINTER_OWN | 0 ));
10894   return TCL_OK;
10895 fail:
10896   return TCL_ERROR;
10897 }
10898 
10899 
10900 SWIGINTERN int
_wrap_MSet_back(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])10901 _wrap_MSet_back(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
10902   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
10903   void *argp1 = 0 ;
10904   int res1 = 0 ;
10905   Xapian::MSetIterator result;
10906 
10907   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::MSet_back self ",(void *)0) == TCL_ERROR) SWIG_fail;
10908   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
10909   if (!SWIG_IsOK(res1)) {
10910     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_back" "', argument " "1"" of type '" "Xapian::MSet const *""'");
10911   }
10912   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
10913   {
10914     try {
10915       result = ((Xapian::MSet const *)arg1)->back();
10916     } catch (const Xapian::Error &e) {
10917       return XapianTclHandleError(interp, e);
10918     } catch (...) {
10919       return XapianTclHandleError(interp);
10920     }
10921   }
10922   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::MSetIterator(static_cast< const Xapian::MSetIterator& >(result))), SWIGTYPE_p_Xapian__MSetIterator, SWIG_POINTER_OWN | 0 ));
10923   return TCL_OK;
10924 fail:
10925   return TCL_ERROR;
10926 }
10927 
10928 
10929 SWIGINTERN int
_wrap_MSet_get_description(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])10930 _wrap_MSet_get_description(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
10931   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
10932   void *argp1 = 0 ;
10933   int res1 = 0 ;
10934   std::string result;
10935 
10936   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::MSet_get_description self ",(void *)0) == TCL_ERROR) SWIG_fail;
10937   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
10938   if (!SWIG_IsOK(res1)) {
10939     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_get_description" "', argument " "1"" of type '" "Xapian::MSet const *""'");
10940   }
10941   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
10942   {
10943     try {
10944       result = ((Xapian::MSet const *)arg1)->get_description();
10945     } catch (const Xapian::Error &e) {
10946       return XapianTclHandleError(interp, e);
10947     } catch (...) {
10948       return XapianTclHandleError(interp);
10949     }
10950   }
10951   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
10952   return TCL_OK;
10953 fail:
10954   return TCL_ERROR;
10955 }
10956 
10957 
10958 SWIGINTERN int
_wrap_MSet_get_docid(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])10959 _wrap_MSet_get_docid(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
10960   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
10961   Xapian::doccount arg2 ;
10962   void *argp1 = 0 ;
10963   int res1 = 0 ;
10964   unsigned int val2 ;
10965   int ecode2 = 0 ;
10966   Xapian::docid result;
10967 
10968   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::MSet_get_docid self i ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
10969   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
10970   if (!SWIG_IsOK(res1)) {
10971     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_get_docid" "', argument " "1"" of type '" "Xapian::MSet const *""'");
10972   }
10973   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
10974   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
10975   if (!SWIG_IsOK(ecode2)) {
10976     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MSet_get_docid" "', argument " "2"" of type '" "Xapian::doccount""'");
10977   }
10978   arg2 = static_cast< Xapian::doccount >(val2);
10979   {
10980     try {
10981       result = (Xapian::docid)Xapian_MSet_get_docid((Xapian::MSet const *)arg1,arg2);
10982     } catch (const Xapian::Error &e) {
10983       return XapianTclHandleError(interp, e);
10984     } catch (...) {
10985       return XapianTclHandleError(interp);
10986     }
10987   }
10988   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
10989   return TCL_OK;
10990 fail:
10991   return TCL_ERROR;
10992 }
10993 
10994 
10995 SWIGINTERN int
_wrap_MSet_get_document(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])10996 _wrap_MSet_get_document(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
10997   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
10998   Xapian::doccount arg2 ;
10999   void *argp1 = 0 ;
11000   int res1 = 0 ;
11001   unsigned int val2 ;
11002   int ecode2 = 0 ;
11003   Xapian::Document result;
11004 
11005   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::MSet_get_document self i ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
11006   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
11007   if (!SWIG_IsOK(res1)) {
11008     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_get_document" "', argument " "1"" of type '" "Xapian::MSet const *""'");
11009   }
11010   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
11011   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
11012   if (!SWIG_IsOK(ecode2)) {
11013     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MSet_get_document" "', argument " "2"" of type '" "Xapian::doccount""'");
11014   }
11015   arg2 = static_cast< Xapian::doccount >(val2);
11016   {
11017     try {
11018       result = Xapian_MSet_get_document((Xapian::MSet const *)arg1,arg2);
11019     } catch (const Xapian::Error &e) {
11020       return XapianTclHandleError(interp, e);
11021     } catch (...) {
11022       return XapianTclHandleError(interp);
11023     }
11024   }
11025   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::Document(static_cast< const Xapian::Document& >(result))), SWIGTYPE_p_Xapian__Document, SWIG_POINTER_OWN | 0 ));
11026   return TCL_OK;
11027 fail:
11028   return TCL_ERROR;
11029 }
11030 
11031 
11032 SWIGINTERN int
_wrap_MSet_get_hit(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])11033 _wrap_MSet_get_hit(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
11034   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
11035   Xapian::doccount arg2 ;
11036   void *argp1 = 0 ;
11037   int res1 = 0 ;
11038   unsigned int val2 ;
11039   int ecode2 = 0 ;
11040   Xapian::MSetIterator result;
11041 
11042   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::MSet_get_hit self i ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
11043   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
11044   if (!SWIG_IsOK(res1)) {
11045     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_get_hit" "', argument " "1"" of type '" "Xapian::MSet const *""'");
11046   }
11047   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
11048   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
11049   if (!SWIG_IsOK(ecode2)) {
11050     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MSet_get_hit" "', argument " "2"" of type '" "Xapian::doccount""'");
11051   }
11052   arg2 = static_cast< Xapian::doccount >(val2);
11053   {
11054     try {
11055       result = Xapian_MSet_get_hit((Xapian::MSet const *)arg1,arg2);
11056     } catch (const Xapian::Error &e) {
11057       return XapianTclHandleError(interp, e);
11058     } catch (...) {
11059       return XapianTclHandleError(interp);
11060     }
11061   }
11062   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::MSetIterator(static_cast< const Xapian::MSetIterator& >(result))), SWIGTYPE_p_Xapian__MSetIterator, SWIG_POINTER_OWN | 0 ));
11063   return TCL_OK;
11064 fail:
11065   return TCL_ERROR;
11066 }
11067 
11068 
11069 SWIGINTERN int
_wrap_MSet_get_document_percentage(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])11070 _wrap_MSet_get_document_percentage(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
11071   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
11072   Xapian::doccount arg2 ;
11073   void *argp1 = 0 ;
11074   int res1 = 0 ;
11075   unsigned int val2 ;
11076   int ecode2 = 0 ;
11077   int result;
11078 
11079   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::MSet_get_document_percentage self i ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
11080   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
11081   if (!SWIG_IsOK(res1)) {
11082     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_get_document_percentage" "', argument " "1"" of type '" "Xapian::MSet const *""'");
11083   }
11084   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
11085   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
11086   if (!SWIG_IsOK(ecode2)) {
11087     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MSet_get_document_percentage" "', argument " "2"" of type '" "Xapian::doccount""'");
11088   }
11089   arg2 = static_cast< Xapian::doccount >(val2);
11090   {
11091     try {
11092       result = (int)Xapian_MSet_get_document_percentage((Xapian::MSet const *)arg1,arg2);
11093     } catch (const Xapian::Error &e) {
11094       return XapianTclHandleError(interp, e);
11095     } catch (...) {
11096       return XapianTclHandleError(interp);
11097     }
11098   }
11099   Tcl_SetObjResult(interp,SWIG_From_int(static_cast< int >(result)));
11100   return TCL_OK;
11101 fail:
11102   return TCL_ERROR;
11103 }
11104 
11105 
swig_delete_MSet(void * obj)11106 SWIGINTERN void swig_delete_MSet(void *obj) {
11107 Xapian::MSet *arg1 = (Xapian::MSet *) obj;
11108 delete arg1;
11109 }
11110 static swig_method swig_Xapian_MSet_methods[] = {
11111     {"convert_to_percent", _wrap_MSet_convert_to_percent},
11112     {"get_termfreq", _wrap_MSet_get_termfreq},
11113     {"get_termweight", _wrap_MSet_get_termweight},
11114     {"get_firstitem", _wrap_MSet_get_firstitem},
11115     {"get_matches_lower_bound", _wrap_MSet_get_matches_lower_bound},
11116     {"get_matches_estimated", _wrap_MSet_get_matches_estimated},
11117     {"get_matches_upper_bound", _wrap_MSet_get_matches_upper_bound},
11118     {"get_uncollapsed_matches_lower_bound", _wrap_MSet_get_uncollapsed_matches_lower_bound},
11119     {"get_uncollapsed_matches_estimated", _wrap_MSet_get_uncollapsed_matches_estimated},
11120     {"get_uncollapsed_matches_upper_bound", _wrap_MSet_get_uncollapsed_matches_upper_bound},
11121     {"get_max_attained", _wrap_MSet_get_max_attained},
11122     {"get_max_possible", _wrap_MSet_get_max_possible},
11123     {"snippet", _wrap_MSet_snippet},
11124     {"fetch", _wrap_MSet_fetch},
11125     {"size", _wrap_MSet_size},
11126     {"empty", _wrap_MSet_empty},
11127     {"begin", _wrap_MSet_begin},
11128     {"end", _wrap_MSet_end},
11129     {"back", _wrap_MSet_back},
11130     {"get_description", _wrap_MSet_get_description},
11131     {"get_docid", _wrap_MSet_get_docid},
11132     {"get_document", _wrap_MSet_get_document},
11133     {"get_hit", _wrap_MSet_get_hit},
11134     {"get_document_percentage", _wrap_MSet_get_document_percentage},
11135     {0,0}
11136 };
11137 static swig_attribute swig_Xapian_MSet_attributes[] = {
11138     {0,0,0}
11139 };
11140 static swig_class *swig_Xapian_MSet_bases[] = {0};
11141 static const char * swig_Xapian_MSet_base_names[] = {0};
11142 static swig_class _wrap_class_Xapian_MSet = { "MSet", &SWIGTYPE_p_Xapian__MSet,_wrap_new_MSet, swig_delete_MSet, swig_Xapian_MSet_methods, swig_Xapian_MSet_attributes, swig_Xapian_MSet_bases,swig_Xapian_MSet_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
11143 SWIGINTERN int
_wrap_MSetIterator_mset_set(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])11144 _wrap_MSetIterator_mset_set(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
11145   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
11146   Xapian::MSet *arg2 = (Xapian::MSet *) 0 ;
11147   void *argp1 = 0 ;
11148   int res1 = 0 ;
11149   void *argp2 = 0 ;
11150   int res2 = 0 ;
11151 
11152   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::MSetIterator_mset_set self mset ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
11153   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
11154   if (!SWIG_IsOK(res1)) {
11155     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSetIterator_mset_set" "', argument " "1"" of type '" "Xapian::MSetIterator *""'");
11156   }
11157   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
11158   res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
11159   if (!SWIG_IsOK(res2)) {
11160     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSetIterator_mset_set" "', argument " "2"" of type '" "Xapian::MSet *""'");
11161   }
11162   arg2 = reinterpret_cast< Xapian::MSet * >(argp2);
11163   if (arg1) (arg1)->mset = *arg2;
11164 
11165   return TCL_OK;
11166 fail:
11167   return TCL_ERROR;
11168 }
11169 
11170 
11171 SWIGINTERN int
_wrap_MSetIterator_mset_get(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])11172 _wrap_MSetIterator_mset_get(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
11173   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
11174   void *argp1 = 0 ;
11175   int res1 = 0 ;
11176   Xapian::MSet *result = 0 ;
11177 
11178   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::MSetIterator_mset_get self ",(void *)0) == TCL_ERROR) SWIG_fail;
11179   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
11180   if (!SWIG_IsOK(res1)) {
11181     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSetIterator_mset_get" "', argument " "1"" of type '" "Xapian::MSetIterator *""'");
11182   }
11183   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
11184   result = (Xapian::MSet *)& ((arg1)->mset);
11185   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__MSet,0));
11186   return TCL_OK;
11187 fail:
11188   return TCL_ERROR;
11189 }
11190 
11191 
11192 SWIGINTERN int
_wrap_MSetIterator_off_from_end_set(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])11193 _wrap_MSetIterator_off_from_end_set(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
11194   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
11195   Xapian::MSet::size_type arg2 ;
11196   void *argp1 = 0 ;
11197   int res1 = 0 ;
11198   unsigned int val2 ;
11199   int ecode2 = 0 ;
11200 
11201   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::MSetIterator_off_from_end_set self off_from_end ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
11202   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
11203   if (!SWIG_IsOK(res1)) {
11204     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSetIterator_off_from_end_set" "', argument " "1"" of type '" "Xapian::MSetIterator *""'");
11205   }
11206   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
11207   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
11208   if (!SWIG_IsOK(ecode2)) {
11209     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MSetIterator_off_from_end_set" "', argument " "2"" of type '" "Xapian::MSet::size_type""'");
11210   }
11211   arg2 = static_cast< Xapian::MSet::size_type >(val2);
11212   if (arg1) (arg1)->off_from_end = arg2;
11213 
11214   return TCL_OK;
11215 fail:
11216   return TCL_ERROR;
11217 }
11218 
11219 
11220 SWIGINTERN int
_wrap_MSetIterator_off_from_end_get(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])11221 _wrap_MSetIterator_off_from_end_get(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
11222   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
11223   void *argp1 = 0 ;
11224   int res1 = 0 ;
11225   Xapian::MSet::size_type result;
11226 
11227   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::MSetIterator_off_from_end_get self ",(void *)0) == TCL_ERROR) SWIG_fail;
11228   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
11229   if (!SWIG_IsOK(res1)) {
11230     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSetIterator_off_from_end_get" "', argument " "1"" of type '" "Xapian::MSetIterator *""'");
11231   }
11232   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
11233   result = (Xapian::MSet::size_type) ((arg1)->off_from_end);
11234   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
11235   return TCL_OK;
11236 fail:
11237   return TCL_ERROR;
11238 }
11239 
11240 
11241 SWIGINTERN int
_wrap_new_MSetIterator(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])11242 _wrap_new_MSetIterator(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
11243   Xapian::MSetIterator *result = 0 ;
11244 
11245   if (SWIG_GetArgs(interp, objc, objv,":xapian::new_MSetIterator ") == TCL_ERROR) SWIG_fail;
11246   {
11247     try {
11248       result = (Xapian::MSetIterator *)new Xapian::MSetIterator();
11249     } catch (const Xapian::Error &e) {
11250       return XapianTclHandleError(interp, e);
11251     } catch (...) {
11252       return XapianTclHandleError(interp);
11253     }
11254   }
11255   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__MSetIterator,0));
11256   return TCL_OK;
11257 fail:
11258   return TCL_ERROR;
11259 }
11260 
11261 
11262 SWIGINTERN int
_wrap_MSetIterator_get_rank(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])11263 _wrap_MSetIterator_get_rank(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
11264   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
11265   void *argp1 = 0 ;
11266   int res1 = 0 ;
11267   Xapian::doccount result;
11268 
11269   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::MSetIterator_get_rank self ",(void *)0) == TCL_ERROR) SWIG_fail;
11270   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
11271   if (!SWIG_IsOK(res1)) {
11272     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSetIterator_get_rank" "', argument " "1"" of type '" "Xapian::MSetIterator const *""'");
11273   }
11274   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
11275   {
11276     try {
11277       result = (Xapian::doccount)((Xapian::MSetIterator const *)arg1)->get_rank();
11278     } catch (const Xapian::Error &e) {
11279       return XapianTclHandleError(interp, e);
11280     } catch (...) {
11281       return XapianTclHandleError(interp);
11282     }
11283   }
11284   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
11285   return TCL_OK;
11286 fail:
11287   return TCL_ERROR;
11288 }
11289 
11290 
11291 SWIGINTERN int
_wrap_MSetIterator_get_document(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])11292 _wrap_MSetIterator_get_document(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
11293   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
11294   void *argp1 = 0 ;
11295   int res1 = 0 ;
11296   Xapian::Document result;
11297 
11298   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::MSetIterator_get_document self ",(void *)0) == TCL_ERROR) SWIG_fail;
11299   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
11300   if (!SWIG_IsOK(res1)) {
11301     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSetIterator_get_document" "', argument " "1"" of type '" "Xapian::MSetIterator const *""'");
11302   }
11303   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
11304   {
11305     try {
11306       result = ((Xapian::MSetIterator const *)arg1)->get_document();
11307     } catch (const Xapian::Error &e) {
11308       return XapianTclHandleError(interp, e);
11309     } catch (...) {
11310       return XapianTclHandleError(interp);
11311     }
11312   }
11313   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::Document(static_cast< const Xapian::Document& >(result))), SWIGTYPE_p_Xapian__Document, SWIG_POINTER_OWN | 0 ));
11314   return TCL_OK;
11315 fail:
11316   return TCL_ERROR;
11317 }
11318 
11319 
11320 SWIGINTERN int
_wrap_MSetIterator_get_weight(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])11321 _wrap_MSetIterator_get_weight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
11322   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
11323   void *argp1 = 0 ;
11324   int res1 = 0 ;
11325   double result;
11326 
11327   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::MSetIterator_get_weight self ",(void *)0) == TCL_ERROR) SWIG_fail;
11328   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
11329   if (!SWIG_IsOK(res1)) {
11330     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSetIterator_get_weight" "', argument " "1"" of type '" "Xapian::MSetIterator const *""'");
11331   }
11332   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
11333   {
11334     try {
11335       result = (double)((Xapian::MSetIterator const *)arg1)->get_weight();
11336     } catch (const Xapian::Error &e) {
11337       return XapianTclHandleError(interp, e);
11338     } catch (...) {
11339       return XapianTclHandleError(interp);
11340     }
11341   }
11342   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
11343   return TCL_OK;
11344 fail:
11345   return TCL_ERROR;
11346 }
11347 
11348 
11349 SWIGINTERN int
_wrap_MSetIterator_get_collapse_key(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])11350 _wrap_MSetIterator_get_collapse_key(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
11351   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
11352   void *argp1 = 0 ;
11353   int res1 = 0 ;
11354   std::string result;
11355 
11356   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::MSetIterator_get_collapse_key self ",(void *)0) == TCL_ERROR) SWIG_fail;
11357   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
11358   if (!SWIG_IsOK(res1)) {
11359     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSetIterator_get_collapse_key" "', argument " "1"" of type '" "Xapian::MSetIterator const *""'");
11360   }
11361   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
11362   {
11363     try {
11364       result = ((Xapian::MSetIterator const *)arg1)->get_collapse_key();
11365     } catch (const Xapian::Error &e) {
11366       return XapianTclHandleError(interp, e);
11367     } catch (...) {
11368       return XapianTclHandleError(interp);
11369     }
11370   }
11371   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
11372   return TCL_OK;
11373 fail:
11374   return TCL_ERROR;
11375 }
11376 
11377 
11378 SWIGINTERN int
_wrap_MSetIterator_get_collapse_count(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])11379 _wrap_MSetIterator_get_collapse_count(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
11380   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
11381   void *argp1 = 0 ;
11382   int res1 = 0 ;
11383   Xapian::doccount result;
11384 
11385   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::MSetIterator_get_collapse_count self ",(void *)0) == TCL_ERROR) SWIG_fail;
11386   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
11387   if (!SWIG_IsOK(res1)) {
11388     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSetIterator_get_collapse_count" "', argument " "1"" of type '" "Xapian::MSetIterator const *""'");
11389   }
11390   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
11391   {
11392     try {
11393       result = (Xapian::doccount)((Xapian::MSetIterator const *)arg1)->get_collapse_count();
11394     } catch (const Xapian::Error &e) {
11395       return XapianTclHandleError(interp, e);
11396     } catch (...) {
11397       return XapianTclHandleError(interp);
11398     }
11399   }
11400   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
11401   return TCL_OK;
11402 fail:
11403   return TCL_ERROR;
11404 }
11405 
11406 
11407 SWIGINTERN int
_wrap_MSetIterator_get_sort_key(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])11408 _wrap_MSetIterator_get_sort_key(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
11409   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
11410   void *argp1 = 0 ;
11411   int res1 = 0 ;
11412   std::string result;
11413 
11414   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::MSetIterator_get_sort_key self ",(void *)0) == TCL_ERROR) SWIG_fail;
11415   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
11416   if (!SWIG_IsOK(res1)) {
11417     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSetIterator_get_sort_key" "', argument " "1"" of type '" "Xapian::MSetIterator const *""'");
11418   }
11419   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
11420   {
11421     try {
11422       result = ((Xapian::MSetIterator const *)arg1)->get_sort_key();
11423     } catch (const Xapian::Error &e) {
11424       return XapianTclHandleError(interp, e);
11425     } catch (...) {
11426       return XapianTclHandleError(interp);
11427     }
11428   }
11429   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
11430   return TCL_OK;
11431 fail:
11432   return TCL_ERROR;
11433 }
11434 
11435 
11436 SWIGINTERN int
_wrap_MSetIterator_get_percent(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])11437 _wrap_MSetIterator_get_percent(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
11438   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
11439   void *argp1 = 0 ;
11440   int res1 = 0 ;
11441   int result;
11442 
11443   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::MSetIterator_get_percent self ",(void *)0) == TCL_ERROR) SWIG_fail;
11444   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
11445   if (!SWIG_IsOK(res1)) {
11446     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSetIterator_get_percent" "', argument " "1"" of type '" "Xapian::MSetIterator const *""'");
11447   }
11448   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
11449   {
11450     try {
11451       result = (int)((Xapian::MSetIterator const *)arg1)->get_percent();
11452     } catch (const Xapian::Error &e) {
11453       return XapianTclHandleError(interp, e);
11454     } catch (...) {
11455       return XapianTclHandleError(interp);
11456     }
11457   }
11458   Tcl_SetObjResult(interp,SWIG_From_int(static_cast< int >(result)));
11459   return TCL_OK;
11460 fail:
11461   return TCL_ERROR;
11462 }
11463 
11464 
11465 SWIGINTERN int
_wrap_MSetIterator_get_description(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])11466 _wrap_MSetIterator_get_description(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
11467   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
11468   void *argp1 = 0 ;
11469   int res1 = 0 ;
11470   std::string result;
11471 
11472   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::MSetIterator_get_description self ",(void *)0) == TCL_ERROR) SWIG_fail;
11473   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
11474   if (!SWIG_IsOK(res1)) {
11475     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSetIterator_get_description" "', argument " "1"" of type '" "Xapian::MSetIterator const *""'");
11476   }
11477   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
11478   {
11479     try {
11480       result = ((Xapian::MSetIterator const *)arg1)->get_description();
11481     } catch (const Xapian::Error &e) {
11482       return XapianTclHandleError(interp, e);
11483     } catch (...) {
11484       return XapianTclHandleError(interp);
11485     }
11486   }
11487   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
11488   return TCL_OK;
11489 fail:
11490   return TCL_ERROR;
11491 }
11492 
11493 
11494 SWIGINTERN int
_wrap_MSetIterator_equals(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])11495 _wrap_MSetIterator_equals(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
11496   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
11497   Xapian::MSetIterator *arg2 = 0 ;
11498   void *argp1 = 0 ;
11499   int res1 = 0 ;
11500   void *argp2 ;
11501   int res2 = 0 ;
11502   bool result;
11503 
11504   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::MSetIterator_equals self o ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
11505   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
11506   if (!SWIG_IsOK(res1)) {
11507     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSetIterator_equals" "', argument " "1"" of type '" "Xapian::MSetIterator const *""'");
11508   }
11509   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
11510   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0 );
11511   if (!SWIG_IsOK(res2)) {
11512     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSetIterator_equals" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
11513   }
11514   if (!argp2) {
11515     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSetIterator_equals" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
11516   }
11517   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
11518   {
11519     try {
11520       result = (bool)Xapian_MSetIterator_equals((Xapian::MSetIterator const *)arg1,(Xapian::MSetIterator const &)*arg2);
11521     } catch (const Xapian::Error &e) {
11522       return XapianTclHandleError(interp, e);
11523     } catch (...) {
11524       return XapianTclHandleError(interp);
11525     }
11526   }
11527   Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
11528   return TCL_OK;
11529 fail:
11530   return TCL_ERROR;
11531 }
11532 
11533 
11534 SWIGINTERN int
_wrap_MSetIterator_get_docid(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])11535 _wrap_MSetIterator_get_docid(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
11536   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
11537   void *argp1 = 0 ;
11538   int res1 = 0 ;
11539   Xapian::docid result;
11540 
11541   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::MSetIterator_get_docid self ",(void *)0) == TCL_ERROR) SWIG_fail;
11542   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
11543   if (!SWIG_IsOK(res1)) {
11544     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSetIterator_get_docid" "', argument " "1"" of type '" "Xapian::MSetIterator const *""'");
11545   }
11546   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
11547   {
11548     try {
11549       result = (Xapian::docid)Xapian_MSetIterator_get_docid((Xapian::MSetIterator const *)arg1);
11550     } catch (const Xapian::Error &e) {
11551       return XapianTclHandleError(interp, e);
11552     } catch (...) {
11553       return XapianTclHandleError(interp);
11554     }
11555   }
11556   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
11557   return TCL_OK;
11558 fail:
11559   return TCL_ERROR;
11560 }
11561 
11562 
11563 SWIGINTERN int
_wrap_MSetIterator_next(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])11564 _wrap_MSetIterator_next(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
11565   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
11566   void *argp1 = 0 ;
11567   int res1 = 0 ;
11568 
11569   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::MSetIterator_next self ",(void *)0) == TCL_ERROR) SWIG_fail;
11570   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
11571   if (!SWIG_IsOK(res1)) {
11572     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSetIterator_next" "', argument " "1"" of type '" "Xapian::MSetIterator *""'");
11573   }
11574   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
11575   {
11576     try {
11577       Xapian_MSetIterator_next(arg1);
11578     } catch (const Xapian::Error &e) {
11579       return XapianTclHandleError(interp, e);
11580     } catch (...) {
11581       return XapianTclHandleError(interp);
11582     }
11583   }
11584 
11585   return TCL_OK;
11586 fail:
11587   return TCL_ERROR;
11588 }
11589 
11590 
11591 SWIGINTERN int
_wrap_MSetIterator_prev(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])11592 _wrap_MSetIterator_prev(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
11593   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
11594   void *argp1 = 0 ;
11595   int res1 = 0 ;
11596 
11597   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::MSetIterator_prev self ",(void *)0) == TCL_ERROR) SWIG_fail;
11598   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
11599   if (!SWIG_IsOK(res1)) {
11600     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSetIterator_prev" "', argument " "1"" of type '" "Xapian::MSetIterator *""'");
11601   }
11602   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
11603   {
11604     try {
11605       Xapian_MSetIterator_prev(arg1);
11606     } catch (const Xapian::Error &e) {
11607       return XapianTclHandleError(interp, e);
11608     } catch (...) {
11609       return XapianTclHandleError(interp);
11610     }
11611   }
11612 
11613   return TCL_OK;
11614 fail:
11615   return TCL_ERROR;
11616 }
11617 
11618 
11619 SWIGINTERN int
_wrap_delete_MSetIterator(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])11620 _wrap_delete_MSetIterator(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
11621   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
11622   void *argp1 = 0 ;
11623   int res1 = 0 ;
11624 
11625   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_MSetIterator self ",(void *)0) == TCL_ERROR) SWIG_fail;
11626   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MSetIterator, SWIG_POINTER_DISOWN |  0 );
11627   if (!SWIG_IsOK(res1)) {
11628     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MSetIterator" "', argument " "1"" of type '" "Xapian::MSetIterator *""'");
11629   }
11630   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
11631   {
11632     try {
11633       delete arg1;
11634     } catch (const Xapian::Error &e) {
11635       return XapianTclHandleError(interp, e);
11636     } catch (...) {
11637       return XapianTclHandleError(interp);
11638     }
11639   }
11640 
11641   return TCL_OK;
11642 fail:
11643   return TCL_ERROR;
11644 }
11645 
11646 
swig_delete_MSetIterator(void * obj)11647 SWIGINTERN void swig_delete_MSetIterator(void *obj) {
11648 Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) obj;
11649 delete arg1;
11650 }
11651 static swig_method swig_Xapian_MSetIterator_methods[] = {
11652     {"get_rank", _wrap_MSetIterator_get_rank},
11653     {"get_document", _wrap_MSetIterator_get_document},
11654     {"get_weight", _wrap_MSetIterator_get_weight},
11655     {"get_collapse_key", _wrap_MSetIterator_get_collapse_key},
11656     {"get_collapse_count", _wrap_MSetIterator_get_collapse_count},
11657     {"get_sort_key", _wrap_MSetIterator_get_sort_key},
11658     {"get_percent", _wrap_MSetIterator_get_percent},
11659     {"get_description", _wrap_MSetIterator_get_description},
11660     {"equals", _wrap_MSetIterator_equals},
11661     {"get_docid", _wrap_MSetIterator_get_docid},
11662     {"next", _wrap_MSetIterator_next},
11663     {"prev", _wrap_MSetIterator_prev},
11664     {0,0}
11665 };
11666 static swig_attribute swig_Xapian_MSetIterator_attributes[] = {
11667     { "-mset",_wrap_MSetIterator_mset_get, _wrap_MSetIterator_mset_set},
11668     { "-off_from_end",_wrap_MSetIterator_off_from_end_get, _wrap_MSetIterator_off_from_end_set},
11669     {0,0,0}
11670 };
11671 static swig_class *swig_Xapian_MSetIterator_bases[] = {0};
11672 static const char * swig_Xapian_MSetIterator_base_names[] = {0};
11673 static swig_class _wrap_class_Xapian_MSetIterator = { "MSetIterator", &SWIGTYPE_p_Xapian__MSetIterator,_wrap_new_MSetIterator, swig_delete_MSetIterator, swig_Xapian_MSetIterator_methods, swig_Xapian_MSetIterator_attributes, swig_Xapian_MSetIterator_bases,swig_Xapian_MSetIterator_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
11674 SWIGINTERN int
_wrap_a_____SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])11675 _wrap_a_____SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
11676   Xapian::MSetIterator::difference_type arg1 ;
11677   Xapian::MSetIterator *arg2 = 0 ;
11678   int val1 ;
11679   int ecode1 = 0 ;
11680   void *argp2 ;
11681   int res2 = 0 ;
11682   Xapian::MSetIterator result;
11683 
11684   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::+ n it ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
11685   ecode1 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
11686   if (!SWIG_IsOK(ecode1)) {
11687     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "+" "', argument " "1"" of type '" "Xapian::MSetIterator::difference_type""'");
11688   }
11689   arg1 = static_cast< Xapian::MSetIterator::difference_type >(val1);
11690   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0 );
11691   if (!SWIG_IsOK(res2)) {
11692     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "+" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
11693   }
11694   if (!argp2) {
11695     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "+" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
11696   }
11697   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
11698   {
11699     try {
11700       result = Xapian::operator +(arg1,(Xapian::MSetIterator const &)*arg2);
11701     } catch (const Xapian::Error &e) {
11702       return XapianTclHandleError(interp, e);
11703     } catch (...) {
11704       return XapianTclHandleError(interp);
11705     }
11706   }
11707   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::MSetIterator(static_cast< const Xapian::MSetIterator& >(result))), SWIGTYPE_p_Xapian__MSetIterator, SWIG_POINTER_OWN | 0 ));
11708   return TCL_OK;
11709 fail:
11710   return TCL_ERROR;
11711 }
11712 
11713 
11714 SWIGINTERN int
_wrap_new_ESet__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])11715 _wrap_new_ESet__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
11716   Xapian::ESet *arg1 = 0 ;
11717   void *argp1 ;
11718   int res1 = 0 ;
11719   Xapian::ESet *result = 0 ;
11720 
11721   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_ESet o ",(void *)0) == TCL_ERROR) SWIG_fail;
11722   res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_Xapian__ESet,  0 );
11723   if (!SWIG_IsOK(res1)) {
11724     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ESet" "', argument " "1"" of type '" "Xapian::ESet const &""'");
11725   }
11726   if (!argp1) {
11727     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ESet" "', argument " "1"" of type '" "Xapian::ESet const &""'");
11728   }
11729   arg1 = reinterpret_cast< Xapian::ESet * >(argp1);
11730   {
11731     try {
11732       result = (Xapian::ESet *)new Xapian::ESet((Xapian::ESet const &)*arg1);
11733     } catch (const Xapian::Error &e) {
11734       return XapianTclHandleError(interp, e);
11735     } catch (...) {
11736       return XapianTclHandleError(interp);
11737     }
11738   }
11739   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ESet,0));
11740   return TCL_OK;
11741 fail:
11742   return TCL_ERROR;
11743 }
11744 
11745 
11746 SWIGINTERN int
_wrap_new_ESet__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])11747 _wrap_new_ESet__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
11748   Xapian::ESet *result = 0 ;
11749 
11750   if (SWIG_GetArgs(interp, objc, objv,":xapian::new_ESet ") == TCL_ERROR) SWIG_fail;
11751   {
11752     try {
11753       result = (Xapian::ESet *)new Xapian::ESet();
11754     } catch (const Xapian::Error &e) {
11755       return XapianTclHandleError(interp, e);
11756     } catch (...) {
11757       return XapianTclHandleError(interp);
11758     }
11759   }
11760   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ESet,0));
11761   return TCL_OK;
11762 fail:
11763   return TCL_ERROR;
11764 }
11765 
11766 
11767 SWIGINTERN int
_wrap_new_ESet(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])11768 _wrap_new_ESet(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
11769   Tcl_Obj *CONST *argv = objv+1;
11770   int argc = objc-1;
11771   if (argc == 0) {
11772     return _wrap_new_ESet__SWIG_1(clientData, interp, objc, argv - 1);
11773   }
11774   if (argc == 1) {
11775     int _v;
11776     void *vptr = 0;
11777     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__ESet, 0);
11778     _v = SWIG_CheckState(res);
11779     if (_v) {
11780       return _wrap_new_ESet__SWIG_0(clientData, interp, objc, argv - 1);
11781     }
11782   }
11783 
11784   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_ESet'.\n"
11785     "  Possible C/C++ prototypes are:\n"
11786     "    Xapian::ESet::ESet(Xapian::ESet const &)\n"
11787     "    Xapian::ESet::ESet()\n", TCL_STATIC);
11788   return TCL_ERROR;
11789 }
11790 
11791 
11792 SWIGINTERN int
_wrap_delete_ESet(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])11793 _wrap_delete_ESet(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
11794   Xapian::ESet *arg1 = (Xapian::ESet *) 0 ;
11795   void *argp1 = 0 ;
11796   int res1 = 0 ;
11797 
11798   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_ESet self ",(void *)0) == TCL_ERROR) SWIG_fail;
11799   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ESet, SWIG_POINTER_DISOWN |  0 );
11800   if (!SWIG_IsOK(res1)) {
11801     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ESet" "', argument " "1"" of type '" "Xapian::ESet *""'");
11802   }
11803   arg1 = reinterpret_cast< Xapian::ESet * >(argp1);
11804   {
11805     try {
11806       delete arg1;
11807     } catch (const Xapian::Error &e) {
11808       return XapianTclHandleError(interp, e);
11809     } catch (...) {
11810       return XapianTclHandleError(interp);
11811     }
11812   }
11813 
11814   return TCL_OK;
11815 fail:
11816   return TCL_ERROR;
11817 }
11818 
11819 
11820 SWIGINTERN int
_wrap_ESet_size(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])11821 _wrap_ESet_size(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
11822   Xapian::ESet *arg1 = (Xapian::ESet *) 0 ;
11823   void *argp1 = 0 ;
11824   int res1 = 0 ;
11825   Xapian::doccount result;
11826 
11827   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::ESet_size self ",(void *)0) == TCL_ERROR) SWIG_fail;
11828   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ESet, 0 |  0 );
11829   if (!SWIG_IsOK(res1)) {
11830     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESet_size" "', argument " "1"" of type '" "Xapian::ESet const *""'");
11831   }
11832   arg1 = reinterpret_cast< Xapian::ESet * >(argp1);
11833   {
11834     try {
11835       result = (Xapian::doccount)((Xapian::ESet const *)arg1)->size();
11836     } catch (const Xapian::Error &e) {
11837       return XapianTclHandleError(interp, e);
11838     } catch (...) {
11839       return XapianTclHandleError(interp);
11840     }
11841   }
11842   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
11843   return TCL_OK;
11844 fail:
11845   return TCL_ERROR;
11846 }
11847 
11848 
11849 SWIGINTERN int
_wrap_ESet_empty(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])11850 _wrap_ESet_empty(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
11851   Xapian::ESet *arg1 = (Xapian::ESet *) 0 ;
11852   void *argp1 = 0 ;
11853   int res1 = 0 ;
11854   bool result;
11855 
11856   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::ESet_empty self ",(void *)0) == TCL_ERROR) SWIG_fail;
11857   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ESet, 0 |  0 );
11858   if (!SWIG_IsOK(res1)) {
11859     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESet_empty" "', argument " "1"" of type '" "Xapian::ESet const *""'");
11860   }
11861   arg1 = reinterpret_cast< Xapian::ESet * >(argp1);
11862   {
11863     try {
11864       result = (bool)((Xapian::ESet const *)arg1)->empty();
11865     } catch (const Xapian::Error &e) {
11866       return XapianTclHandleError(interp, e);
11867     } catch (...) {
11868       return XapianTclHandleError(interp);
11869     }
11870   }
11871   Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
11872   return TCL_OK;
11873 fail:
11874   return TCL_ERROR;
11875 }
11876 
11877 
11878 SWIGINTERN int
_wrap_ESet_get_ebound(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])11879 _wrap_ESet_get_ebound(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
11880   Xapian::ESet *arg1 = (Xapian::ESet *) 0 ;
11881   void *argp1 = 0 ;
11882   int res1 = 0 ;
11883   Xapian::termcount result;
11884 
11885   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::ESet_get_ebound self ",(void *)0) == TCL_ERROR) SWIG_fail;
11886   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ESet, 0 |  0 );
11887   if (!SWIG_IsOK(res1)) {
11888     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESet_get_ebound" "', argument " "1"" of type '" "Xapian::ESet const *""'");
11889   }
11890   arg1 = reinterpret_cast< Xapian::ESet * >(argp1);
11891   {
11892     try {
11893       result = (Xapian::termcount)((Xapian::ESet const *)arg1)->get_ebound();
11894     } catch (const Xapian::Error &e) {
11895       return XapianTclHandleError(interp, e);
11896     } catch (...) {
11897       return XapianTclHandleError(interp);
11898     }
11899   }
11900   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
11901   return TCL_OK;
11902 fail:
11903   return TCL_ERROR;
11904 }
11905 
11906 
11907 SWIGINTERN int
_wrap_ESet_begin(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])11908 _wrap_ESet_begin(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
11909   Xapian::ESet *arg1 = (Xapian::ESet *) 0 ;
11910   void *argp1 = 0 ;
11911   int res1 = 0 ;
11912   Xapian::ESetIterator result;
11913 
11914   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::ESet_begin self ",(void *)0) == TCL_ERROR) SWIG_fail;
11915   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ESet, 0 |  0 );
11916   if (!SWIG_IsOK(res1)) {
11917     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESet_begin" "', argument " "1"" of type '" "Xapian::ESet const *""'");
11918   }
11919   arg1 = reinterpret_cast< Xapian::ESet * >(argp1);
11920   {
11921     try {
11922       result = ((Xapian::ESet const *)arg1)->begin();
11923     } catch (const Xapian::Error &e) {
11924       return XapianTclHandleError(interp, e);
11925     } catch (...) {
11926       return XapianTclHandleError(interp);
11927     }
11928   }
11929   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::ESetIterator(static_cast< const Xapian::ESetIterator& >(result))), SWIGTYPE_p_Xapian__ESetIterator, SWIG_POINTER_OWN | 0 ));
11930   return TCL_OK;
11931 fail:
11932   return TCL_ERROR;
11933 }
11934 
11935 
11936 SWIGINTERN int
_wrap_ESet_end(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])11937 _wrap_ESet_end(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
11938   Xapian::ESet *arg1 = (Xapian::ESet *) 0 ;
11939   void *argp1 = 0 ;
11940   int res1 = 0 ;
11941   Xapian::ESetIterator result;
11942 
11943   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::ESet_end self ",(void *)0) == TCL_ERROR) SWIG_fail;
11944   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ESet, 0 |  0 );
11945   if (!SWIG_IsOK(res1)) {
11946     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESet_end" "', argument " "1"" of type '" "Xapian::ESet const *""'");
11947   }
11948   arg1 = reinterpret_cast< Xapian::ESet * >(argp1);
11949   {
11950     try {
11951       result = ((Xapian::ESet const *)arg1)->end();
11952     } catch (const Xapian::Error &e) {
11953       return XapianTclHandleError(interp, e);
11954     } catch (...) {
11955       return XapianTclHandleError(interp);
11956     }
11957   }
11958   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::ESetIterator(static_cast< const Xapian::ESetIterator& >(result))), SWIGTYPE_p_Xapian__ESetIterator, SWIG_POINTER_OWN | 0 ));
11959   return TCL_OK;
11960 fail:
11961   return TCL_ERROR;
11962 }
11963 
11964 
11965 SWIGINTERN int
_wrap_ESet_back(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])11966 _wrap_ESet_back(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
11967   Xapian::ESet *arg1 = (Xapian::ESet *) 0 ;
11968   void *argp1 = 0 ;
11969   int res1 = 0 ;
11970   Xapian::ESetIterator result;
11971 
11972   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::ESet_back self ",(void *)0) == TCL_ERROR) SWIG_fail;
11973   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ESet, 0 |  0 );
11974   if (!SWIG_IsOK(res1)) {
11975     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESet_back" "', argument " "1"" of type '" "Xapian::ESet const *""'");
11976   }
11977   arg1 = reinterpret_cast< Xapian::ESet * >(argp1);
11978   {
11979     try {
11980       result = ((Xapian::ESet const *)arg1)->back();
11981     } catch (const Xapian::Error &e) {
11982       return XapianTclHandleError(interp, e);
11983     } catch (...) {
11984       return XapianTclHandleError(interp);
11985     }
11986   }
11987   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::ESetIterator(static_cast< const Xapian::ESetIterator& >(result))), SWIGTYPE_p_Xapian__ESetIterator, SWIG_POINTER_OWN | 0 ));
11988   return TCL_OK;
11989 fail:
11990   return TCL_ERROR;
11991 }
11992 
11993 
11994 SWIGINTERN int
_wrap_ESet_get_description(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])11995 _wrap_ESet_get_description(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
11996   Xapian::ESet *arg1 = (Xapian::ESet *) 0 ;
11997   void *argp1 = 0 ;
11998   int res1 = 0 ;
11999   std::string result;
12000 
12001   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::ESet_get_description self ",(void *)0) == TCL_ERROR) SWIG_fail;
12002   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ESet, 0 |  0 );
12003   if (!SWIG_IsOK(res1)) {
12004     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESet_get_description" "', argument " "1"" of type '" "Xapian::ESet const *""'");
12005   }
12006   arg1 = reinterpret_cast< Xapian::ESet * >(argp1);
12007   {
12008     try {
12009       result = ((Xapian::ESet const *)arg1)->get_description();
12010     } catch (const Xapian::Error &e) {
12011       return XapianTclHandleError(interp, e);
12012     } catch (...) {
12013       return XapianTclHandleError(interp);
12014     }
12015   }
12016   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
12017   return TCL_OK;
12018 fail:
12019   return TCL_ERROR;
12020 }
12021 
12022 
swig_delete_ESet(void * obj)12023 SWIGINTERN void swig_delete_ESet(void *obj) {
12024 Xapian::ESet *arg1 = (Xapian::ESet *) obj;
12025 delete arg1;
12026 }
12027 static swig_method swig_Xapian_ESet_methods[] = {
12028     {"size", _wrap_ESet_size},
12029     {"empty", _wrap_ESet_empty},
12030     {"get_ebound", _wrap_ESet_get_ebound},
12031     {"begin", _wrap_ESet_begin},
12032     {"end", _wrap_ESet_end},
12033     {"back", _wrap_ESet_back},
12034     {"get_description", _wrap_ESet_get_description},
12035     {0,0}
12036 };
12037 static swig_attribute swig_Xapian_ESet_attributes[] = {
12038     {0,0,0}
12039 };
12040 static swig_class *swig_Xapian_ESet_bases[] = {0};
12041 static const char * swig_Xapian_ESet_base_names[] = {0};
12042 static swig_class _wrap_class_Xapian_ESet = { "ESet", &SWIGTYPE_p_Xapian__ESet,_wrap_new_ESet, swig_delete_ESet, swig_Xapian_ESet_methods, swig_Xapian_ESet_attributes, swig_Xapian_ESet_bases,swig_Xapian_ESet_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
12043 SWIGINTERN int
_wrap_ESetIterator_eset_set(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])12044 _wrap_ESetIterator_eset_set(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
12045   Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
12046   Xapian::ESet *arg2 = (Xapian::ESet *) 0 ;
12047   void *argp1 = 0 ;
12048   int res1 = 0 ;
12049   void *argp2 = 0 ;
12050   int res2 = 0 ;
12051 
12052   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::ESetIterator_eset_set self eset ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
12053   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ESetIterator, 0 |  0 );
12054   if (!SWIG_IsOK(res1)) {
12055     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESetIterator_eset_set" "', argument " "1"" of type '" "Xapian::ESetIterator *""'");
12056   }
12057   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
12058   res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_Xapian__ESet, 0 |  0 );
12059   if (!SWIG_IsOK(res2)) {
12060     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ESetIterator_eset_set" "', argument " "2"" of type '" "Xapian::ESet *""'");
12061   }
12062   arg2 = reinterpret_cast< Xapian::ESet * >(argp2);
12063   if (arg1) (arg1)->eset = *arg2;
12064 
12065   return TCL_OK;
12066 fail:
12067   return TCL_ERROR;
12068 }
12069 
12070 
12071 SWIGINTERN int
_wrap_ESetIterator_eset_get(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])12072 _wrap_ESetIterator_eset_get(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
12073   Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
12074   void *argp1 = 0 ;
12075   int res1 = 0 ;
12076   Xapian::ESet *result = 0 ;
12077 
12078   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::ESetIterator_eset_get self ",(void *)0) == TCL_ERROR) SWIG_fail;
12079   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ESetIterator, 0 |  0 );
12080   if (!SWIG_IsOK(res1)) {
12081     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESetIterator_eset_get" "', argument " "1"" of type '" "Xapian::ESetIterator *""'");
12082   }
12083   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
12084   result = (Xapian::ESet *)& ((arg1)->eset);
12085   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ESet,0));
12086   return TCL_OK;
12087 fail:
12088   return TCL_ERROR;
12089 }
12090 
12091 
12092 SWIGINTERN int
_wrap_ESetIterator_off_from_end_set(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])12093 _wrap_ESetIterator_off_from_end_set(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
12094   Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
12095   Xapian::ESet::size_type arg2 ;
12096   void *argp1 = 0 ;
12097   int res1 = 0 ;
12098   unsigned int val2 ;
12099   int ecode2 = 0 ;
12100 
12101   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::ESetIterator_off_from_end_set self off_from_end ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
12102   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ESetIterator, 0 |  0 );
12103   if (!SWIG_IsOK(res1)) {
12104     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESetIterator_off_from_end_set" "', argument " "1"" of type '" "Xapian::ESetIterator *""'");
12105   }
12106   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
12107   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
12108   if (!SWIG_IsOK(ecode2)) {
12109     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ESetIterator_off_from_end_set" "', argument " "2"" of type '" "Xapian::ESet::size_type""'");
12110   }
12111   arg2 = static_cast< Xapian::ESet::size_type >(val2);
12112   if (arg1) (arg1)->off_from_end = arg2;
12113 
12114   return TCL_OK;
12115 fail:
12116   return TCL_ERROR;
12117 }
12118 
12119 
12120 SWIGINTERN int
_wrap_ESetIterator_off_from_end_get(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])12121 _wrap_ESetIterator_off_from_end_get(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
12122   Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
12123   void *argp1 = 0 ;
12124   int res1 = 0 ;
12125   Xapian::ESet::size_type result;
12126 
12127   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::ESetIterator_off_from_end_get self ",(void *)0) == TCL_ERROR) SWIG_fail;
12128   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ESetIterator, 0 |  0 );
12129   if (!SWIG_IsOK(res1)) {
12130     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESetIterator_off_from_end_get" "', argument " "1"" of type '" "Xapian::ESetIterator *""'");
12131   }
12132   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
12133   result = (Xapian::ESet::size_type) ((arg1)->off_from_end);
12134   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
12135   return TCL_OK;
12136 fail:
12137   return TCL_ERROR;
12138 }
12139 
12140 
12141 SWIGINTERN int
_wrap_new_ESetIterator(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])12142 _wrap_new_ESetIterator(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
12143   Xapian::ESetIterator *result = 0 ;
12144 
12145   if (SWIG_GetArgs(interp, objc, objv,":xapian::new_ESetIterator ") == TCL_ERROR) SWIG_fail;
12146   {
12147     try {
12148       result = (Xapian::ESetIterator *)new Xapian::ESetIterator();
12149     } catch (const Xapian::Error &e) {
12150       return XapianTclHandleError(interp, e);
12151     } catch (...) {
12152       return XapianTclHandleError(interp);
12153     }
12154   }
12155   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ESetIterator,0));
12156   return TCL_OK;
12157 fail:
12158   return TCL_ERROR;
12159 }
12160 
12161 
12162 SWIGINTERN int
_wrap_ESetIterator_get_weight(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])12163 _wrap_ESetIterator_get_weight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
12164   Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
12165   void *argp1 = 0 ;
12166   int res1 = 0 ;
12167   double result;
12168 
12169   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::ESetIterator_get_weight self ",(void *)0) == TCL_ERROR) SWIG_fail;
12170   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ESetIterator, 0 |  0 );
12171   if (!SWIG_IsOK(res1)) {
12172     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESetIterator_get_weight" "', argument " "1"" of type '" "Xapian::ESetIterator const *""'");
12173   }
12174   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
12175   {
12176     try {
12177       result = (double)((Xapian::ESetIterator const *)arg1)->get_weight();
12178     } catch (const Xapian::Error &e) {
12179       return XapianTclHandleError(interp, e);
12180     } catch (...) {
12181       return XapianTclHandleError(interp);
12182     }
12183   }
12184   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
12185   return TCL_OK;
12186 fail:
12187   return TCL_ERROR;
12188 }
12189 
12190 
12191 SWIGINTERN int
_wrap_ESetIterator_get_description(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])12192 _wrap_ESetIterator_get_description(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
12193   Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
12194   void *argp1 = 0 ;
12195   int res1 = 0 ;
12196   std::string result;
12197 
12198   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::ESetIterator_get_description self ",(void *)0) == TCL_ERROR) SWIG_fail;
12199   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ESetIterator, 0 |  0 );
12200   if (!SWIG_IsOK(res1)) {
12201     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESetIterator_get_description" "', argument " "1"" of type '" "Xapian::ESetIterator const *""'");
12202   }
12203   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
12204   {
12205     try {
12206       result = ((Xapian::ESetIterator const *)arg1)->get_description();
12207     } catch (const Xapian::Error &e) {
12208       return XapianTclHandleError(interp, e);
12209     } catch (...) {
12210       return XapianTclHandleError(interp);
12211     }
12212   }
12213   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
12214   return TCL_OK;
12215 fail:
12216   return TCL_ERROR;
12217 }
12218 
12219 
12220 SWIGINTERN int
_wrap_ESetIterator_equals(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])12221 _wrap_ESetIterator_equals(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
12222   Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
12223   Xapian::ESetIterator *arg2 = 0 ;
12224   void *argp1 = 0 ;
12225   int res1 = 0 ;
12226   void *argp2 ;
12227   int res2 = 0 ;
12228   bool result;
12229 
12230   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::ESetIterator_equals self o ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
12231   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ESetIterator, 0 |  0 );
12232   if (!SWIG_IsOK(res1)) {
12233     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESetIterator_equals" "', argument " "1"" of type '" "Xapian::ESetIterator const *""'");
12234   }
12235   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
12236   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__ESetIterator,  0 );
12237   if (!SWIG_IsOK(res2)) {
12238     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ESetIterator_equals" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'");
12239   }
12240   if (!argp2) {
12241     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ESetIterator_equals" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'");
12242   }
12243   arg2 = reinterpret_cast< Xapian::ESetIterator * >(argp2);
12244   {
12245     try {
12246       result = (bool)Xapian_ESetIterator_equals((Xapian::ESetIterator const *)arg1,(Xapian::ESetIterator const &)*arg2);
12247     } catch (const Xapian::Error &e) {
12248       return XapianTclHandleError(interp, e);
12249     } catch (...) {
12250       return XapianTclHandleError(interp);
12251     }
12252   }
12253   Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
12254   return TCL_OK;
12255 fail:
12256   return TCL_ERROR;
12257 }
12258 
12259 
12260 SWIGINTERN int
_wrap_ESetIterator_get_term(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])12261 _wrap_ESetIterator_get_term(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
12262   Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
12263   void *argp1 = 0 ;
12264   int res1 = 0 ;
12265   std::string result;
12266 
12267   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::ESetIterator_get_term self ",(void *)0) == TCL_ERROR) SWIG_fail;
12268   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ESetIterator, 0 |  0 );
12269   if (!SWIG_IsOK(res1)) {
12270     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESetIterator_get_term" "', argument " "1"" of type '" "Xapian::ESetIterator const *""'");
12271   }
12272   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
12273   {
12274     try {
12275       result = Xapian_ESetIterator_get_term((Xapian::ESetIterator const *)arg1);
12276     } catch (const Xapian::Error &e) {
12277       return XapianTclHandleError(interp, e);
12278     } catch (...) {
12279       return XapianTclHandleError(interp);
12280     }
12281   }
12282   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
12283   return TCL_OK;
12284 fail:
12285   return TCL_ERROR;
12286 }
12287 
12288 
12289 SWIGINTERN int
_wrap_ESetIterator_next(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])12290 _wrap_ESetIterator_next(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
12291   Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
12292   void *argp1 = 0 ;
12293   int res1 = 0 ;
12294 
12295   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::ESetIterator_next self ",(void *)0) == TCL_ERROR) SWIG_fail;
12296   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ESetIterator, 0 |  0 );
12297   if (!SWIG_IsOK(res1)) {
12298     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESetIterator_next" "', argument " "1"" of type '" "Xapian::ESetIterator *""'");
12299   }
12300   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
12301   {
12302     try {
12303       Xapian_ESetIterator_next(arg1);
12304     } catch (const Xapian::Error &e) {
12305       return XapianTclHandleError(interp, e);
12306     } catch (...) {
12307       return XapianTclHandleError(interp);
12308     }
12309   }
12310 
12311   return TCL_OK;
12312 fail:
12313   return TCL_ERROR;
12314 }
12315 
12316 
12317 SWIGINTERN int
_wrap_ESetIterator_prev(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])12318 _wrap_ESetIterator_prev(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
12319   Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
12320   void *argp1 = 0 ;
12321   int res1 = 0 ;
12322 
12323   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::ESetIterator_prev self ",(void *)0) == TCL_ERROR) SWIG_fail;
12324   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ESetIterator, 0 |  0 );
12325   if (!SWIG_IsOK(res1)) {
12326     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESetIterator_prev" "', argument " "1"" of type '" "Xapian::ESetIterator *""'");
12327   }
12328   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
12329   {
12330     try {
12331       Xapian_ESetIterator_prev(arg1);
12332     } catch (const Xapian::Error &e) {
12333       return XapianTclHandleError(interp, e);
12334     } catch (...) {
12335       return XapianTclHandleError(interp);
12336     }
12337   }
12338 
12339   return TCL_OK;
12340 fail:
12341   return TCL_ERROR;
12342 }
12343 
12344 
12345 SWIGINTERN int
_wrap_delete_ESetIterator(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])12346 _wrap_delete_ESetIterator(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
12347   Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
12348   void *argp1 = 0 ;
12349   int res1 = 0 ;
12350 
12351   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_ESetIterator self ",(void *)0) == TCL_ERROR) SWIG_fail;
12352   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ESetIterator, SWIG_POINTER_DISOWN |  0 );
12353   if (!SWIG_IsOK(res1)) {
12354     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ESetIterator" "', argument " "1"" of type '" "Xapian::ESetIterator *""'");
12355   }
12356   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
12357   {
12358     try {
12359       delete arg1;
12360     } catch (const Xapian::Error &e) {
12361       return XapianTclHandleError(interp, e);
12362     } catch (...) {
12363       return XapianTclHandleError(interp);
12364     }
12365   }
12366 
12367   return TCL_OK;
12368 fail:
12369   return TCL_ERROR;
12370 }
12371 
12372 
swig_delete_ESetIterator(void * obj)12373 SWIGINTERN void swig_delete_ESetIterator(void *obj) {
12374 Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) obj;
12375 delete arg1;
12376 }
12377 static swig_method swig_Xapian_ESetIterator_methods[] = {
12378     {"get_weight", _wrap_ESetIterator_get_weight},
12379     {"get_description", _wrap_ESetIterator_get_description},
12380     {"equals", _wrap_ESetIterator_equals},
12381     {"get_term", _wrap_ESetIterator_get_term},
12382     {"next", _wrap_ESetIterator_next},
12383     {"prev", _wrap_ESetIterator_prev},
12384     {0,0}
12385 };
12386 static swig_attribute swig_Xapian_ESetIterator_attributes[] = {
12387     { "-eset",_wrap_ESetIterator_eset_get, _wrap_ESetIterator_eset_set},
12388     { "-off_from_end",_wrap_ESetIterator_off_from_end_get, _wrap_ESetIterator_off_from_end_set},
12389     {0,0,0}
12390 };
12391 static swig_class *swig_Xapian_ESetIterator_bases[] = {0};
12392 static const char * swig_Xapian_ESetIterator_base_names[] = {0};
12393 static swig_class _wrap_class_Xapian_ESetIterator = { "ESetIterator", &SWIGTYPE_p_Xapian__ESetIterator,_wrap_new_ESetIterator, swig_delete_ESetIterator, swig_Xapian_ESetIterator_methods, swig_Xapian_ESetIterator_attributes, swig_Xapian_ESetIterator_bases,swig_Xapian_ESetIterator_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
12394 SWIGINTERN int
_wrap_a_____SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])12395 _wrap_a_____SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
12396   Xapian::ESetIterator::difference_type arg1 ;
12397   Xapian::ESetIterator *arg2 = 0 ;
12398   int val1 ;
12399   int ecode1 = 0 ;
12400   void *argp2 ;
12401   int res2 = 0 ;
12402   Xapian::ESetIterator result;
12403 
12404   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::+ n it ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
12405   ecode1 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
12406   if (!SWIG_IsOK(ecode1)) {
12407     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "+" "', argument " "1"" of type '" "Xapian::ESetIterator::difference_type""'");
12408   }
12409   arg1 = static_cast< Xapian::ESetIterator::difference_type >(val1);
12410   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__ESetIterator,  0 );
12411   if (!SWIG_IsOK(res2)) {
12412     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "+" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'");
12413   }
12414   if (!argp2) {
12415     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "+" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'");
12416   }
12417   arg2 = reinterpret_cast< Xapian::ESetIterator * >(argp2);
12418   {
12419     try {
12420       result = Xapian::operator +(arg1,(Xapian::ESetIterator const &)*arg2);
12421     } catch (const Xapian::Error &e) {
12422       return XapianTclHandleError(interp, e);
12423     } catch (...) {
12424       return XapianTclHandleError(interp);
12425     }
12426   }
12427   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::ESetIterator(static_cast< const Xapian::ESetIterator& >(result))), SWIGTYPE_p_Xapian__ESetIterator, SWIG_POINTER_OWN | 0 ));
12428   return TCL_OK;
12429 fail:
12430   return TCL_ERROR;
12431 }
12432 
12433 
12434 SWIGINTERN int
_wrap_a___(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])12435 _wrap_a___(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
12436   Tcl_Obj *CONST *argv = objv+1;
12437   int argc = objc-1;
12438   if (argc == 2) {
12439     int _v;
12440     {
12441       int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
12442       _v = SWIG_CheckState(res);
12443     }
12444     if (_v) {
12445       void *vptr = 0;
12446       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Xapian__MSetIterator, 0);
12447       _v = SWIG_CheckState(res);
12448       if (_v) {
12449         return _wrap_a_____SWIG_0(clientData, interp, objc, argv - 1);
12450       }
12451     }
12452   }
12453   if (argc == 2) {
12454     int _v;
12455     {
12456       int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
12457       _v = SWIG_CheckState(res);
12458     }
12459     if (_v) {
12460       void *vptr = 0;
12461       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Xapian__ESetIterator, 0);
12462       _v = SWIG_CheckState(res);
12463       if (_v) {
12464         return _wrap_a_____SWIG_1(clientData, interp, objc, argv - 1);
12465       }
12466     }
12467   }
12468 
12469   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function '+'.\n"
12470     "  Possible C/C++ prototypes are:\n"
12471     "    Xapian::operator +(Xapian::MSetIterator::difference_type,Xapian::MSetIterator const &)\n"
12472     "    Xapian::operator +(Xapian::ESetIterator::difference_type,Xapian::ESetIterator const &)\n", TCL_STATIC);
12473   return TCL_ERROR;
12474 }
12475 
12476 
12477 SWIGINTERN int
_wrap_new_RSet__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])12478 _wrap_new_RSet__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
12479   Xapian::RSet *arg1 = 0 ;
12480   void *argp1 ;
12481   int res1 = 0 ;
12482   Xapian::RSet *result = 0 ;
12483 
12484   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_RSet rset ",(void *)0) == TCL_ERROR) SWIG_fail;
12485   res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_Xapian__RSet,  0 );
12486   if (!SWIG_IsOK(res1)) {
12487     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RSet" "', argument " "1"" of type '" "Xapian::RSet const &""'");
12488   }
12489   if (!argp1) {
12490     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RSet" "', argument " "1"" of type '" "Xapian::RSet const &""'");
12491   }
12492   arg1 = reinterpret_cast< Xapian::RSet * >(argp1);
12493   {
12494     try {
12495       result = (Xapian::RSet *)new Xapian::RSet((Xapian::RSet const &)*arg1);
12496     } catch (const Xapian::Error &e) {
12497       return XapianTclHandleError(interp, e);
12498     } catch (...) {
12499       return XapianTclHandleError(interp);
12500     }
12501   }
12502   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__RSet,0));
12503   return TCL_OK;
12504 fail:
12505   return TCL_ERROR;
12506 }
12507 
12508 
12509 SWIGINTERN int
_wrap_new_RSet__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])12510 _wrap_new_RSet__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
12511   Xapian::RSet *result = 0 ;
12512 
12513   if (SWIG_GetArgs(interp, objc, objv,":xapian::new_RSet ") == TCL_ERROR) SWIG_fail;
12514   {
12515     try {
12516       result = (Xapian::RSet *)new Xapian::RSet();
12517     } catch (const Xapian::Error &e) {
12518       return XapianTclHandleError(interp, e);
12519     } catch (...) {
12520       return XapianTclHandleError(interp);
12521     }
12522   }
12523   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__RSet,0));
12524   return TCL_OK;
12525 fail:
12526   return TCL_ERROR;
12527 }
12528 
12529 
12530 SWIGINTERN int
_wrap_new_RSet(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])12531 _wrap_new_RSet(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
12532   Tcl_Obj *CONST *argv = objv+1;
12533   int argc = objc-1;
12534   if (argc == 0) {
12535     return _wrap_new_RSet__SWIG_1(clientData, interp, objc, argv - 1);
12536   }
12537   if (argc == 1) {
12538     int _v;
12539     void *vptr = 0;
12540     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__RSet, 0);
12541     _v = SWIG_CheckState(res);
12542     if (_v) {
12543       return _wrap_new_RSet__SWIG_0(clientData, interp, objc, argv - 1);
12544     }
12545   }
12546 
12547   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_RSet'.\n"
12548     "  Possible C/C++ prototypes are:\n"
12549     "    Xapian::RSet::RSet(Xapian::RSet const &)\n"
12550     "    Xapian::RSet::RSet()\n", TCL_STATIC);
12551   return TCL_ERROR;
12552 }
12553 
12554 
12555 SWIGINTERN int
_wrap_delete_RSet(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])12556 _wrap_delete_RSet(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
12557   Xapian::RSet *arg1 = (Xapian::RSet *) 0 ;
12558   void *argp1 = 0 ;
12559   int res1 = 0 ;
12560 
12561   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_RSet self ",(void *)0) == TCL_ERROR) SWIG_fail;
12562   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__RSet, SWIG_POINTER_DISOWN |  0 );
12563   if (!SWIG_IsOK(res1)) {
12564     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RSet" "', argument " "1"" of type '" "Xapian::RSet *""'");
12565   }
12566   arg1 = reinterpret_cast< Xapian::RSet * >(argp1);
12567   {
12568     try {
12569       delete arg1;
12570     } catch (const Xapian::Error &e) {
12571       return XapianTclHandleError(interp, e);
12572     } catch (...) {
12573       return XapianTclHandleError(interp);
12574     }
12575   }
12576 
12577   return TCL_OK;
12578 fail:
12579   return TCL_ERROR;
12580 }
12581 
12582 
12583 SWIGINTERN int
_wrap_RSet_size(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])12584 _wrap_RSet_size(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
12585   Xapian::RSet *arg1 = (Xapian::RSet *) 0 ;
12586   void *argp1 = 0 ;
12587   int res1 = 0 ;
12588   Xapian::doccount result;
12589 
12590   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::RSet_size self ",(void *)0) == TCL_ERROR) SWIG_fail;
12591   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__RSet, 0 |  0 );
12592   if (!SWIG_IsOK(res1)) {
12593     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RSet_size" "', argument " "1"" of type '" "Xapian::RSet const *""'");
12594   }
12595   arg1 = reinterpret_cast< Xapian::RSet * >(argp1);
12596   {
12597     try {
12598       result = (Xapian::doccount)((Xapian::RSet const *)arg1)->size();
12599     } catch (const Xapian::Error &e) {
12600       return XapianTclHandleError(interp, e);
12601     } catch (...) {
12602       return XapianTclHandleError(interp);
12603     }
12604   }
12605   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
12606   return TCL_OK;
12607 fail:
12608   return TCL_ERROR;
12609 }
12610 
12611 
12612 SWIGINTERN int
_wrap_RSet_empty(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])12613 _wrap_RSet_empty(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
12614   Xapian::RSet *arg1 = (Xapian::RSet *) 0 ;
12615   void *argp1 = 0 ;
12616   int res1 = 0 ;
12617   bool result;
12618 
12619   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::RSet_empty self ",(void *)0) == TCL_ERROR) SWIG_fail;
12620   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__RSet, 0 |  0 );
12621   if (!SWIG_IsOK(res1)) {
12622     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RSet_empty" "', argument " "1"" of type '" "Xapian::RSet const *""'");
12623   }
12624   arg1 = reinterpret_cast< Xapian::RSet * >(argp1);
12625   {
12626     try {
12627       result = (bool)((Xapian::RSet const *)arg1)->empty();
12628     } catch (const Xapian::Error &e) {
12629       return XapianTclHandleError(interp, e);
12630     } catch (...) {
12631       return XapianTclHandleError(interp);
12632     }
12633   }
12634   Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
12635   return TCL_OK;
12636 fail:
12637   return TCL_ERROR;
12638 }
12639 
12640 
12641 SWIGINTERN int
_wrap_RSet_add_document__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])12642 _wrap_RSet_add_document__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
12643   Xapian::RSet *arg1 = (Xapian::RSet *) 0 ;
12644   Xapian::docid arg2 ;
12645   void *argp1 = 0 ;
12646   int res1 = 0 ;
12647   unsigned int val2 ;
12648   int ecode2 = 0 ;
12649 
12650   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::RSet_add_document self did ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
12651   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__RSet, 0 |  0 );
12652   if (!SWIG_IsOK(res1)) {
12653     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RSet_add_document" "', argument " "1"" of type '" "Xapian::RSet *""'");
12654   }
12655   arg1 = reinterpret_cast< Xapian::RSet * >(argp1);
12656   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
12657   if (!SWIG_IsOK(ecode2)) {
12658     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RSet_add_document" "', argument " "2"" of type '" "Xapian::docid""'");
12659   }
12660   arg2 = static_cast< Xapian::docid >(val2);
12661   {
12662     try {
12663       (arg1)->add_document(arg2);
12664     } catch (const Xapian::Error &e) {
12665       return XapianTclHandleError(interp, e);
12666     } catch (...) {
12667       return XapianTclHandleError(interp);
12668     }
12669   }
12670 
12671   return TCL_OK;
12672 fail:
12673   return TCL_ERROR;
12674 }
12675 
12676 
12677 SWIGINTERN int
_wrap_RSet_add_document__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])12678 _wrap_RSet_add_document__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
12679   Xapian::RSet *arg1 = (Xapian::RSet *) 0 ;
12680   Xapian::MSetIterator *arg2 = 0 ;
12681   void *argp1 = 0 ;
12682   int res1 = 0 ;
12683   void *argp2 ;
12684   int res2 = 0 ;
12685 
12686   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::RSet_add_document self i ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
12687   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__RSet, 0 |  0 );
12688   if (!SWIG_IsOK(res1)) {
12689     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RSet_add_document" "', argument " "1"" of type '" "Xapian::RSet *""'");
12690   }
12691   arg1 = reinterpret_cast< Xapian::RSet * >(argp1);
12692   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0 );
12693   if (!SWIG_IsOK(res2)) {
12694     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RSet_add_document" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
12695   }
12696   if (!argp2) {
12697     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RSet_add_document" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
12698   }
12699   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
12700   {
12701     try {
12702       (arg1)->add_document((Xapian::MSetIterator const &)*arg2);
12703     } catch (const Xapian::Error &e) {
12704       return XapianTclHandleError(interp, e);
12705     } catch (...) {
12706       return XapianTclHandleError(interp);
12707     }
12708   }
12709 
12710   return TCL_OK;
12711 fail:
12712   return TCL_ERROR;
12713 }
12714 
12715 
12716 SWIGINTERN int
_wrap_RSet_add_document(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])12717 _wrap_RSet_add_document(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
12718   Tcl_Obj *CONST *argv = objv+1;
12719   int argc = objc-1;
12720   if (argc == 2) {
12721     int _v;
12722     void *vptr = 0;
12723     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__RSet, 0);
12724     _v = SWIG_CheckState(res);
12725     if (_v) {
12726       void *vptr = 0;
12727       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Xapian__MSetIterator, 0);
12728       _v = SWIG_CheckState(res);
12729       if (_v) {
12730         return _wrap_RSet_add_document__SWIG_1(clientData, interp, objc, argv - 1);
12731       }
12732     }
12733   }
12734   if (argc == 2) {
12735     int _v;
12736     void *vptr = 0;
12737     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__RSet, 0);
12738     _v = SWIG_CheckState(res);
12739     if (_v) {
12740       {
12741         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
12742         _v = SWIG_CheckState(res);
12743       }
12744       if (_v) {
12745         return _wrap_RSet_add_document__SWIG_0(clientData, interp, objc, argv - 1);
12746       }
12747     }
12748   }
12749 
12750   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'RSet_add_document'.\n"
12751     "  Possible C/C++ prototypes are:\n"
12752     "    Xapian::RSet::add_document(Xapian::docid)\n"
12753     "    Xapian::RSet::add_document(Xapian::MSetIterator const &)\n", TCL_STATIC);
12754   return TCL_ERROR;
12755 }
12756 
12757 
12758 SWIGINTERN int
_wrap_RSet_remove_document__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])12759 _wrap_RSet_remove_document__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
12760   Xapian::RSet *arg1 = (Xapian::RSet *) 0 ;
12761   Xapian::docid arg2 ;
12762   void *argp1 = 0 ;
12763   int res1 = 0 ;
12764   unsigned int val2 ;
12765   int ecode2 = 0 ;
12766 
12767   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::RSet_remove_document self did ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
12768   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__RSet, 0 |  0 );
12769   if (!SWIG_IsOK(res1)) {
12770     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RSet_remove_document" "', argument " "1"" of type '" "Xapian::RSet *""'");
12771   }
12772   arg1 = reinterpret_cast< Xapian::RSet * >(argp1);
12773   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
12774   if (!SWIG_IsOK(ecode2)) {
12775     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RSet_remove_document" "', argument " "2"" of type '" "Xapian::docid""'");
12776   }
12777   arg2 = static_cast< Xapian::docid >(val2);
12778   {
12779     try {
12780       (arg1)->remove_document(arg2);
12781     } catch (const Xapian::Error &e) {
12782       return XapianTclHandleError(interp, e);
12783     } catch (...) {
12784       return XapianTclHandleError(interp);
12785     }
12786   }
12787 
12788   return TCL_OK;
12789 fail:
12790   return TCL_ERROR;
12791 }
12792 
12793 
12794 SWIGINTERN int
_wrap_RSet_remove_document__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])12795 _wrap_RSet_remove_document__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
12796   Xapian::RSet *arg1 = (Xapian::RSet *) 0 ;
12797   Xapian::MSetIterator *arg2 = 0 ;
12798   void *argp1 = 0 ;
12799   int res1 = 0 ;
12800   void *argp2 ;
12801   int res2 = 0 ;
12802 
12803   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::RSet_remove_document self i ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
12804   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__RSet, 0 |  0 );
12805   if (!SWIG_IsOK(res1)) {
12806     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RSet_remove_document" "', argument " "1"" of type '" "Xapian::RSet *""'");
12807   }
12808   arg1 = reinterpret_cast< Xapian::RSet * >(argp1);
12809   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0 );
12810   if (!SWIG_IsOK(res2)) {
12811     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RSet_remove_document" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
12812   }
12813   if (!argp2) {
12814     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RSet_remove_document" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
12815   }
12816   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
12817   {
12818     try {
12819       (arg1)->remove_document((Xapian::MSetIterator const &)*arg2);
12820     } catch (const Xapian::Error &e) {
12821       return XapianTclHandleError(interp, e);
12822     } catch (...) {
12823       return XapianTclHandleError(interp);
12824     }
12825   }
12826 
12827   return TCL_OK;
12828 fail:
12829   return TCL_ERROR;
12830 }
12831 
12832 
12833 SWIGINTERN int
_wrap_RSet_remove_document(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])12834 _wrap_RSet_remove_document(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
12835   Tcl_Obj *CONST *argv = objv+1;
12836   int argc = objc-1;
12837   if (argc == 2) {
12838     int _v;
12839     void *vptr = 0;
12840     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__RSet, 0);
12841     _v = SWIG_CheckState(res);
12842     if (_v) {
12843       void *vptr = 0;
12844       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Xapian__MSetIterator, 0);
12845       _v = SWIG_CheckState(res);
12846       if (_v) {
12847         return _wrap_RSet_remove_document__SWIG_1(clientData, interp, objc, argv - 1);
12848       }
12849     }
12850   }
12851   if (argc == 2) {
12852     int _v;
12853     void *vptr = 0;
12854     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__RSet, 0);
12855     _v = SWIG_CheckState(res);
12856     if (_v) {
12857       {
12858         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
12859         _v = SWIG_CheckState(res);
12860       }
12861       if (_v) {
12862         return _wrap_RSet_remove_document__SWIG_0(clientData, interp, objc, argv - 1);
12863       }
12864     }
12865   }
12866 
12867   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'RSet_remove_document'.\n"
12868     "  Possible C/C++ prototypes are:\n"
12869     "    Xapian::RSet::remove_document(Xapian::docid)\n"
12870     "    Xapian::RSet::remove_document(Xapian::MSetIterator const &)\n", TCL_STATIC);
12871   return TCL_ERROR;
12872 }
12873 
12874 
12875 SWIGINTERN int
_wrap_RSet_contains__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])12876 _wrap_RSet_contains__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
12877   Xapian::RSet *arg1 = (Xapian::RSet *) 0 ;
12878   Xapian::docid arg2 ;
12879   void *argp1 = 0 ;
12880   int res1 = 0 ;
12881   unsigned int val2 ;
12882   int ecode2 = 0 ;
12883   bool result;
12884 
12885   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::RSet_contains self did ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
12886   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__RSet, 0 |  0 );
12887   if (!SWIG_IsOK(res1)) {
12888     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RSet_contains" "', argument " "1"" of type '" "Xapian::RSet const *""'");
12889   }
12890   arg1 = reinterpret_cast< Xapian::RSet * >(argp1);
12891   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
12892   if (!SWIG_IsOK(ecode2)) {
12893     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RSet_contains" "', argument " "2"" of type '" "Xapian::docid""'");
12894   }
12895   arg2 = static_cast< Xapian::docid >(val2);
12896   {
12897     try {
12898       result = (bool)((Xapian::RSet const *)arg1)->contains(arg2);
12899     } catch (const Xapian::Error &e) {
12900       return XapianTclHandleError(interp, e);
12901     } catch (...) {
12902       return XapianTclHandleError(interp);
12903     }
12904   }
12905   Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
12906   return TCL_OK;
12907 fail:
12908   return TCL_ERROR;
12909 }
12910 
12911 
12912 SWIGINTERN int
_wrap_RSet_contains__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])12913 _wrap_RSet_contains__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
12914   Xapian::RSet *arg1 = (Xapian::RSet *) 0 ;
12915   Xapian::MSetIterator *arg2 = 0 ;
12916   void *argp1 = 0 ;
12917   int res1 = 0 ;
12918   void *argp2 ;
12919   int res2 = 0 ;
12920   bool result;
12921 
12922   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::RSet_contains self i ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
12923   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__RSet, 0 |  0 );
12924   if (!SWIG_IsOK(res1)) {
12925     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RSet_contains" "', argument " "1"" of type '" "Xapian::RSet const *""'");
12926   }
12927   arg1 = reinterpret_cast< Xapian::RSet * >(argp1);
12928   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0 );
12929   if (!SWIG_IsOK(res2)) {
12930     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RSet_contains" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
12931   }
12932   if (!argp2) {
12933     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RSet_contains" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
12934   }
12935   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
12936   {
12937     try {
12938       result = (bool)((Xapian::RSet const *)arg1)->contains((Xapian::MSetIterator const &)*arg2);
12939     } catch (const Xapian::Error &e) {
12940       return XapianTclHandleError(interp, e);
12941     } catch (...) {
12942       return XapianTclHandleError(interp);
12943     }
12944   }
12945   Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
12946   return TCL_OK;
12947 fail:
12948   return TCL_ERROR;
12949 }
12950 
12951 
12952 SWIGINTERN int
_wrap_RSet_contains(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])12953 _wrap_RSet_contains(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
12954   Tcl_Obj *CONST *argv = objv+1;
12955   int argc = objc-1;
12956   if (argc == 2) {
12957     int _v;
12958     void *vptr = 0;
12959     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__RSet, 0);
12960     _v = SWIG_CheckState(res);
12961     if (_v) {
12962       void *vptr = 0;
12963       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Xapian__MSetIterator, 0);
12964       _v = SWIG_CheckState(res);
12965       if (_v) {
12966         return _wrap_RSet_contains__SWIG_1(clientData, interp, objc, argv - 1);
12967       }
12968     }
12969   }
12970   if (argc == 2) {
12971     int _v;
12972     void *vptr = 0;
12973     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__RSet, 0);
12974     _v = SWIG_CheckState(res);
12975     if (_v) {
12976       {
12977         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
12978         _v = SWIG_CheckState(res);
12979       }
12980       if (_v) {
12981         return _wrap_RSet_contains__SWIG_0(clientData, interp, objc, argv - 1);
12982       }
12983     }
12984   }
12985 
12986   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'RSet_contains'.\n"
12987     "  Possible C/C++ prototypes are:\n"
12988     "    Xapian::RSet::contains(Xapian::docid) const\n"
12989     "    Xapian::RSet::contains(Xapian::MSetIterator const &) const\n", TCL_STATIC);
12990   return TCL_ERROR;
12991 }
12992 
12993 
12994 SWIGINTERN int
_wrap_RSet_get_description(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])12995 _wrap_RSet_get_description(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
12996   Xapian::RSet *arg1 = (Xapian::RSet *) 0 ;
12997   void *argp1 = 0 ;
12998   int res1 = 0 ;
12999   std::string result;
13000 
13001   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::RSet_get_description self ",(void *)0) == TCL_ERROR) SWIG_fail;
13002   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__RSet, 0 |  0 );
13003   if (!SWIG_IsOK(res1)) {
13004     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RSet_get_description" "', argument " "1"" of type '" "Xapian::RSet const *""'");
13005   }
13006   arg1 = reinterpret_cast< Xapian::RSet * >(argp1);
13007   {
13008     try {
13009       result = ((Xapian::RSet const *)arg1)->get_description();
13010     } catch (const Xapian::Error &e) {
13011       return XapianTclHandleError(interp, e);
13012     } catch (...) {
13013       return XapianTclHandleError(interp);
13014     }
13015   }
13016   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
13017   return TCL_OK;
13018 fail:
13019   return TCL_ERROR;
13020 }
13021 
13022 
swig_delete_RSet(void * obj)13023 SWIGINTERN void swig_delete_RSet(void *obj) {
13024 Xapian::RSet *arg1 = (Xapian::RSet *) obj;
13025 delete arg1;
13026 }
13027 static swig_method swig_Xapian_RSet_methods[] = {
13028     {"size", _wrap_RSet_size},
13029     {"empty", _wrap_RSet_empty},
13030     {"add_document", _wrap_RSet_add_document},
13031     {"remove_document", _wrap_RSet_remove_document},
13032     {"contains", _wrap_RSet_contains},
13033     {"get_description", _wrap_RSet_get_description},
13034     {0,0}
13035 };
13036 static swig_attribute swig_Xapian_RSet_attributes[] = {
13037     {0,0,0}
13038 };
13039 static swig_class *swig_Xapian_RSet_bases[] = {0};
13040 static const char * swig_Xapian_RSet_base_names[] = {0};
13041 static swig_class _wrap_class_Xapian_RSet = { "RSet", &SWIGTYPE_p_Xapian__RSet,_wrap_new_RSet, swig_delete_RSet, swig_Xapian_RSet_methods, swig_Xapian_RSet_attributes, swig_Xapian_RSet_bases,swig_Xapian_RSet_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
13042 SWIGINTERN int
_wrap_MatchDecider_apply(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])13043 _wrap_MatchDecider_apply(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
13044   Xapian::MatchDecider *arg1 = (Xapian::MatchDecider *) 0 ;
13045   Xapian::Document *arg2 = 0 ;
13046   void *argp1 = 0 ;
13047   int res1 = 0 ;
13048   void *argp2 ;
13049   int res2 = 0 ;
13050   bool result;
13051 
13052   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::MatchDecider_apply self doc ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
13053   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MatchDecider, 0 |  0 );
13054   if (!SWIG_IsOK(res1)) {
13055     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MatchDecider_apply" "', argument " "1"" of type '" "Xapian::MatchDecider const *""'");
13056   }
13057   arg1 = reinterpret_cast< Xapian::MatchDecider * >(argp1);
13058   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__Document,  0 );
13059   if (!SWIG_IsOK(res2)) {
13060     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MatchDecider_apply" "', argument " "2"" of type '" "Xapian::Document const &""'");
13061   }
13062   if (!argp2) {
13063     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MatchDecider_apply" "', argument " "2"" of type '" "Xapian::Document const &""'");
13064   }
13065   arg2 = reinterpret_cast< Xapian::Document * >(argp2);
13066   {
13067     try {
13068       result = (bool)((Xapian::MatchDecider const *)arg1)->operator ()((Xapian::Document const &)*arg2);
13069     } catch (const Xapian::Error &e) {
13070       return XapianTclHandleError(interp, e);
13071     } catch (...) {
13072       return XapianTclHandleError(interp);
13073     }
13074   }
13075   Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
13076   return TCL_OK;
13077 fail:
13078   return TCL_ERROR;
13079 }
13080 
13081 
13082 SWIGINTERN int
_wrap_delete_MatchDecider(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])13083 _wrap_delete_MatchDecider(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
13084   Xapian::MatchDecider *arg1 = (Xapian::MatchDecider *) 0 ;
13085   void *argp1 = 0 ;
13086   int res1 = 0 ;
13087 
13088   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_MatchDecider self ",(void *)0) == TCL_ERROR) SWIG_fail;
13089   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MatchDecider, SWIG_POINTER_DISOWN |  0 );
13090   if (!SWIG_IsOK(res1)) {
13091     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MatchDecider" "', argument " "1"" of type '" "Xapian::MatchDecider *""'");
13092   }
13093   arg1 = reinterpret_cast< Xapian::MatchDecider * >(argp1);
13094   {
13095     try {
13096       delete arg1;
13097     } catch (const Xapian::Error &e) {
13098       return XapianTclHandleError(interp, e);
13099     } catch (...) {
13100       return XapianTclHandleError(interp);
13101     }
13102   }
13103 
13104   return TCL_OK;
13105 fail:
13106   return TCL_ERROR;
13107 }
13108 
13109 
swig_delete_MatchDecider(void * obj)13110 SWIGINTERN void swig_delete_MatchDecider(void *obj) {
13111 Xapian::MatchDecider *arg1 = (Xapian::MatchDecider *) obj;
13112 delete arg1;
13113 }
13114 static swig_method swig_Xapian_MatchDecider_methods[] = {
13115     {"apply", _wrap_MatchDecider_apply},
13116     {0,0}
13117 };
13118 static swig_attribute swig_Xapian_MatchDecider_attributes[] = {
13119     {0,0,0}
13120 };
13121 static swig_class *swig_Xapian_MatchDecider_bases[] = {0};
13122 static const char * swig_Xapian_MatchDecider_base_names[] = {0};
13123 static swig_class _wrap_class_Xapian_MatchDecider = { "MatchDecider", &SWIGTYPE_p_Xapian__MatchDecider,0, swig_delete_MatchDecider, swig_Xapian_MatchDecider_methods, swig_Xapian_MatchDecider_attributes, swig_Xapian_MatchDecider_bases,swig_Xapian_MatchDecider_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
13124 SWIGINTERN int
_wrap_new_Enquire__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])13125 _wrap_new_Enquire__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
13126   Xapian::Enquire *arg1 = 0 ;
13127   void *argp1 ;
13128   int res1 = 0 ;
13129   Xapian::Enquire *result = 0 ;
13130 
13131   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_Enquire other ",(void *)0) == TCL_ERROR) SWIG_fail;
13132   res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_Xapian__Enquire,  0 );
13133   if (!SWIG_IsOK(res1)) {
13134     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Enquire" "', argument " "1"" of type '" "Xapian::Enquire const &""'");
13135   }
13136   if (!argp1) {
13137     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Enquire" "', argument " "1"" of type '" "Xapian::Enquire const &""'");
13138   }
13139   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
13140   {
13141     try {
13142       result = (Xapian::Enquire *)new Xapian::Enquire((Xapian::Enquire const &)*arg1);
13143     } catch (const Xapian::Error &e) {
13144       return XapianTclHandleError(interp, e);
13145     } catch (...) {
13146       return XapianTclHandleError(interp);
13147     }
13148   }
13149   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Enquire,0));
13150   return TCL_OK;
13151 fail:
13152   return TCL_ERROR;
13153 }
13154 
13155 
13156 SWIGINTERN int
_wrap_new_Enquire__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])13157 _wrap_new_Enquire__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
13158   Xapian::Database *arg1 = 0 ;
13159   void *argp1 ;
13160   int res1 = 0 ;
13161   Xapian::Enquire *result = 0 ;
13162 
13163   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_Enquire database ",(void *)0) == TCL_ERROR) SWIG_fail;
13164   res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_Xapian__Database,  0 );
13165   if (!SWIG_IsOK(res1)) {
13166     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Enquire" "', argument " "1"" of type '" "Xapian::Database const &""'");
13167   }
13168   if (!argp1) {
13169     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Enquire" "', argument " "1"" of type '" "Xapian::Database const &""'");
13170   }
13171   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
13172   {
13173     try {
13174       result = (Xapian::Enquire *)new Xapian::Enquire((Xapian::Database const &)*arg1);
13175     } catch (const Xapian::Error &e) {
13176       return XapianTclHandleError(interp, e);
13177     } catch (...) {
13178       return XapianTclHandleError(interp);
13179     }
13180   }
13181   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Enquire,0));
13182   return TCL_OK;
13183 fail:
13184   return TCL_ERROR;
13185 }
13186 
13187 
13188 SWIGINTERN int
_wrap_new_Enquire(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])13189 _wrap_new_Enquire(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
13190   Tcl_Obj *CONST *argv = objv+1;
13191   int argc = objc-1;
13192   if (argc == 1) {
13193     int _v;
13194     void *vptr = 0;
13195     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Enquire, 0);
13196     _v = SWIG_CheckState(res);
13197     if (_v) {
13198       return _wrap_new_Enquire__SWIG_0(clientData, interp, objc, argv - 1);
13199     }
13200   }
13201   if (argc == 1) {
13202     int _v;
13203     void *vptr = 0;
13204     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Database, 0);
13205     _v = SWIG_CheckState(res);
13206     if (_v) {
13207       return _wrap_new_Enquire__SWIG_1(clientData, interp, objc, argv - 1);
13208     }
13209   }
13210 
13211   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_Enquire'.\n"
13212     "  Possible C/C++ prototypes are:\n"
13213     "    Xapian::Enquire::Enquire(Xapian::Enquire const &)\n"
13214     "    Xapian::Enquire::Enquire(Xapian::Database const &)\n", TCL_STATIC);
13215   return TCL_ERROR;
13216 }
13217 
13218 
13219 SWIGINTERN int
_wrap_delete_Enquire(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])13220 _wrap_delete_Enquire(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
13221   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
13222   void *argp1 = 0 ;
13223   int res1 = 0 ;
13224 
13225   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_Enquire self ",(void *)0) == TCL_ERROR) SWIG_fail;
13226   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Enquire, SWIG_POINTER_DISOWN |  0 );
13227   if (!SWIG_IsOK(res1)) {
13228     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Enquire" "', argument " "1"" of type '" "Xapian::Enquire *""'");
13229   }
13230   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
13231   {
13232     try {
13233       delete arg1;
13234     } catch (const Xapian::Error &e) {
13235       return XapianTclHandleError(interp, e);
13236     } catch (...) {
13237       return XapianTclHandleError(interp);
13238     }
13239   }
13240 
13241   return TCL_OK;
13242 fail:
13243   return TCL_ERROR;
13244 }
13245 
13246 
13247 SWIGINTERN int
_wrap_Enquire_set_query__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])13248 _wrap_Enquire_set_query__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
13249   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
13250   Xapian::Query *arg2 = 0 ;
13251   Xapian::termcount arg3 ;
13252   void *argp1 = 0 ;
13253   int res1 = 0 ;
13254   void *argp2 ;
13255   int res2 = 0 ;
13256   unsigned int val3 ;
13257   int ecode3 = 0 ;
13258 
13259   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::Enquire_set_query self query qlen ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
13260   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
13261   if (!SWIG_IsOK(res1)) {
13262     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_query" "', argument " "1"" of type '" "Xapian::Enquire *""'");
13263   }
13264   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
13265   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__Query,  0 );
13266   if (!SWIG_IsOK(res2)) {
13267     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Enquire_set_query" "', argument " "2"" of type '" "Xapian::Query const &""'");
13268   }
13269   if (!argp2) {
13270     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire_set_query" "', argument " "2"" of type '" "Xapian::Query const &""'");
13271   }
13272   arg2 = reinterpret_cast< Xapian::Query * >(argp2);
13273   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
13274   if (!SWIG_IsOK(ecode3)) {
13275     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_set_query" "', argument " "3"" of type '" "Xapian::termcount""'");
13276   }
13277   arg3 = static_cast< Xapian::termcount >(val3);
13278   {
13279     try {
13280       (arg1)->set_query((Xapian::Query const &)*arg2,arg3);
13281     } catch (const Xapian::Error &e) {
13282       return XapianTclHandleError(interp, e);
13283     } catch (...) {
13284       return XapianTclHandleError(interp);
13285     }
13286   }
13287 
13288   return TCL_OK;
13289 fail:
13290   return TCL_ERROR;
13291 }
13292 
13293 
13294 SWIGINTERN int
_wrap_Enquire_set_query__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])13295 _wrap_Enquire_set_query__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
13296   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
13297   Xapian::Query *arg2 = 0 ;
13298   void *argp1 = 0 ;
13299   int res1 = 0 ;
13300   void *argp2 ;
13301   int res2 = 0 ;
13302 
13303   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Enquire_set_query self query ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
13304   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
13305   if (!SWIG_IsOK(res1)) {
13306     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_query" "', argument " "1"" of type '" "Xapian::Enquire *""'");
13307   }
13308   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
13309   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__Query,  0 );
13310   if (!SWIG_IsOK(res2)) {
13311     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Enquire_set_query" "', argument " "2"" of type '" "Xapian::Query const &""'");
13312   }
13313   if (!argp2) {
13314     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire_set_query" "', argument " "2"" of type '" "Xapian::Query const &""'");
13315   }
13316   arg2 = reinterpret_cast< Xapian::Query * >(argp2);
13317   {
13318     try {
13319       (arg1)->set_query((Xapian::Query const &)*arg2);
13320     } catch (const Xapian::Error &e) {
13321       return XapianTclHandleError(interp, e);
13322     } catch (...) {
13323       return XapianTclHandleError(interp);
13324     }
13325   }
13326 
13327   return TCL_OK;
13328 fail:
13329   return TCL_ERROR;
13330 }
13331 
13332 
13333 SWIGINTERN int
_wrap_Enquire_set_query(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])13334 _wrap_Enquire_set_query(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
13335   Tcl_Obj *CONST *argv = objv+1;
13336   int argc = objc-1;
13337   if (argc == 2) {
13338     int _v;
13339     void *vptr = 0;
13340     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Enquire, 0);
13341     _v = SWIG_CheckState(res);
13342     if (_v) {
13343       void *vptr = 0;
13344       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Xapian__Query, 0);
13345       _v = SWIG_CheckState(res);
13346       if (_v) {
13347         return _wrap_Enquire_set_query__SWIG_1(clientData, interp, objc, argv - 1);
13348       }
13349     }
13350   }
13351   if (argc == 3) {
13352     int _v;
13353     void *vptr = 0;
13354     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Enquire, 0);
13355     _v = SWIG_CheckState(res);
13356     if (_v) {
13357       void *vptr = 0;
13358       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Xapian__Query, 0);
13359       _v = SWIG_CheckState(res);
13360       if (_v) {
13361         {
13362           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
13363           _v = SWIG_CheckState(res);
13364         }
13365         if (_v) {
13366           return _wrap_Enquire_set_query__SWIG_0(clientData, interp, objc, argv - 1);
13367         }
13368       }
13369     }
13370   }
13371 
13372   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'Enquire_set_query'.\n"
13373     "  Possible C/C++ prototypes are:\n"
13374     "    Xapian::Enquire::set_query(Xapian::Query const &,Xapian::termcount)\n"
13375     "    Xapian::Enquire::set_query(Xapian::Query const &)\n", TCL_STATIC);
13376   return TCL_ERROR;
13377 }
13378 
13379 
13380 SWIGINTERN int
_wrap_Enquire_get_query(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])13381 _wrap_Enquire_get_query(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
13382   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
13383   void *argp1 = 0 ;
13384   int res1 = 0 ;
13385   Xapian::Query *result = 0 ;
13386 
13387   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Enquire_get_query self ",(void *)0) == TCL_ERROR) SWIG_fail;
13388   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
13389   if (!SWIG_IsOK(res1)) {
13390     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_query" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
13391   }
13392   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
13393   {
13394     try {
13395       result = (Xapian::Query *) &((Xapian::Enquire const *)arg1)->get_query();
13396     } catch (const Xapian::Error &e) {
13397       return XapianTclHandleError(interp, e);
13398     } catch (...) {
13399       return XapianTclHandleError(interp);
13400     }
13401   }
13402   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query,0));
13403   return TCL_OK;
13404 fail:
13405   return TCL_ERROR;
13406 }
13407 
13408 
13409 SWIGINTERN int
_wrap_Enquire_add_matchspy(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])13410 _wrap_Enquire_add_matchspy(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
13411   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
13412   Xapian::MatchSpy *arg2 = (Xapian::MatchSpy *) 0 ;
13413   void *argp1 = 0 ;
13414   int res1 = 0 ;
13415   void *argp2 = 0 ;
13416   int res2 = 0 ;
13417 
13418   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Enquire_add_matchspy self spy ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
13419   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
13420   if (!SWIG_IsOK(res1)) {
13421     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_add_matchspy" "', argument " "1"" of type '" "Xapian::Enquire *""'");
13422   }
13423   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
13424   res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_Xapian__MatchSpy, 0 |  0 );
13425   if (!SWIG_IsOK(res2)) {
13426     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Enquire_add_matchspy" "', argument " "2"" of type '" "Xapian::MatchSpy *""'");
13427   }
13428   arg2 = reinterpret_cast< Xapian::MatchSpy * >(argp2);
13429   {
13430     try {
13431       (arg1)->add_matchspy(arg2);
13432     } catch (const Xapian::Error &e) {
13433       return XapianTclHandleError(interp, e);
13434     } catch (...) {
13435       return XapianTclHandleError(interp);
13436     }
13437   }
13438 
13439   return TCL_OK;
13440 fail:
13441   return TCL_ERROR;
13442 }
13443 
13444 
13445 SWIGINTERN int
_wrap_Enquire_clear_matchspies(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])13446 _wrap_Enquire_clear_matchspies(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
13447   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
13448   void *argp1 = 0 ;
13449   int res1 = 0 ;
13450 
13451   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Enquire_clear_matchspies self ",(void *)0) == TCL_ERROR) SWIG_fail;
13452   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
13453   if (!SWIG_IsOK(res1)) {
13454     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_clear_matchspies" "', argument " "1"" of type '" "Xapian::Enquire *""'");
13455   }
13456   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
13457   {
13458     try {
13459       (arg1)->clear_matchspies();
13460     } catch (const Xapian::Error &e) {
13461       return XapianTclHandleError(interp, e);
13462     } catch (...) {
13463       return XapianTclHandleError(interp);
13464     }
13465   }
13466 
13467   return TCL_OK;
13468 fail:
13469   return TCL_ERROR;
13470 }
13471 
13472 
13473 SWIGINTERN int
_wrap_Enquire_set_weighting_scheme(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])13474 _wrap_Enquire_set_weighting_scheme(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
13475   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
13476   Xapian::Weight *arg2 = 0 ;
13477   void *argp1 = 0 ;
13478   int res1 = 0 ;
13479   void *argp2 ;
13480   int res2 = 0 ;
13481 
13482   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Enquire_set_weighting_scheme self weight_ ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
13483   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
13484   if (!SWIG_IsOK(res1)) {
13485     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_weighting_scheme" "', argument " "1"" of type '" "Xapian::Enquire *""'");
13486   }
13487   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
13488   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__Weight,  0 );
13489   if (!SWIG_IsOK(res2)) {
13490     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Enquire_set_weighting_scheme" "', argument " "2"" of type '" "Xapian::Weight const &""'");
13491   }
13492   if (!argp2) {
13493     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire_set_weighting_scheme" "', argument " "2"" of type '" "Xapian::Weight const &""'");
13494   }
13495   arg2 = reinterpret_cast< Xapian::Weight * >(argp2);
13496   {
13497     try {
13498       (arg1)->set_weighting_scheme((Xapian::Weight const &)*arg2);
13499     } catch (const Xapian::Error &e) {
13500       return XapianTclHandleError(interp, e);
13501     } catch (...) {
13502       return XapianTclHandleError(interp);
13503     }
13504   }
13505 
13506   return TCL_OK;
13507 fail:
13508   return TCL_ERROR;
13509 }
13510 
13511 
13512 SWIGINTERN int
_wrap_Enquire_set_expansion_scheme__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])13513 _wrap_Enquire_set_expansion_scheme__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
13514   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
13515   std::string *arg2 = 0 ;
13516   double arg3 ;
13517   void *argp1 = 0 ;
13518   int res1 = 0 ;
13519   int res2 = SWIG_OLDOBJ ;
13520   double val3 ;
13521   int ecode3 = 0 ;
13522 
13523   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::Enquire_set_expansion_scheme self eweightname_ expand_k_ ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
13524   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
13525   if (!SWIG_IsOK(res1)) {
13526     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_expansion_scheme" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
13527   }
13528   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
13529   {
13530     std::string *ptr = (std::string *)0;
13531     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
13532     if (!SWIG_IsOK(res2)) {
13533       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Enquire_set_expansion_scheme" "', argument " "2"" of type '" "std::string const &""'");
13534     }
13535     if (!ptr) {
13536       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire_set_expansion_scheme" "', argument " "2"" of type '" "std::string const &""'");
13537     }
13538     arg2 = ptr;
13539   }
13540   ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
13541   if (!SWIG_IsOK(ecode3)) {
13542     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_set_expansion_scheme" "', argument " "3"" of type '" "double""'");
13543   }
13544   arg3 = static_cast< double >(val3);
13545   {
13546     try {
13547       ((Xapian::Enquire const *)arg1)->set_expansion_scheme((std::string const &)*arg2,arg3);
13548     } catch (const Xapian::Error &e) {
13549       return XapianTclHandleError(interp, e);
13550     } catch (...) {
13551       return XapianTclHandleError(interp);
13552     }
13553   }
13554 
13555   if (SWIG_IsNewObj(res2)) delete arg2;
13556   return TCL_OK;
13557 fail:
13558   if (SWIG_IsNewObj(res2)) delete arg2;
13559   return TCL_ERROR;
13560 }
13561 
13562 
13563 SWIGINTERN int
_wrap_Enquire_set_expansion_scheme__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])13564 _wrap_Enquire_set_expansion_scheme__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
13565   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
13566   std::string *arg2 = 0 ;
13567   void *argp1 = 0 ;
13568   int res1 = 0 ;
13569   int res2 = SWIG_OLDOBJ ;
13570 
13571   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Enquire_set_expansion_scheme self eweightname_ ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
13572   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
13573   if (!SWIG_IsOK(res1)) {
13574     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_expansion_scheme" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
13575   }
13576   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
13577   {
13578     std::string *ptr = (std::string *)0;
13579     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
13580     if (!SWIG_IsOK(res2)) {
13581       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Enquire_set_expansion_scheme" "', argument " "2"" of type '" "std::string const &""'");
13582     }
13583     if (!ptr) {
13584       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire_set_expansion_scheme" "', argument " "2"" of type '" "std::string const &""'");
13585     }
13586     arg2 = ptr;
13587   }
13588   {
13589     try {
13590       ((Xapian::Enquire const *)arg1)->set_expansion_scheme((std::string const &)*arg2);
13591     } catch (const Xapian::Error &e) {
13592       return XapianTclHandleError(interp, e);
13593     } catch (...) {
13594       return XapianTclHandleError(interp);
13595     }
13596   }
13597 
13598   if (SWIG_IsNewObj(res2)) delete arg2;
13599   return TCL_OK;
13600 fail:
13601   if (SWIG_IsNewObj(res2)) delete arg2;
13602   return TCL_ERROR;
13603 }
13604 
13605 
13606 SWIGINTERN int
_wrap_Enquire_set_expansion_scheme(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])13607 _wrap_Enquire_set_expansion_scheme(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
13608   Tcl_Obj *CONST *argv = objv+1;
13609   int argc = objc-1;
13610   if (argc == 2) {
13611     int _v;
13612     void *vptr = 0;
13613     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Enquire, 0);
13614     _v = SWIG_CheckState(res);
13615     if (_v) {
13616       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
13617       _v = SWIG_CheckState(res);
13618       if (_v) {
13619         return _wrap_Enquire_set_expansion_scheme__SWIG_1(clientData, interp, objc, argv - 1);
13620       }
13621     }
13622   }
13623   if (argc == 3) {
13624     int _v;
13625     void *vptr = 0;
13626     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Enquire, 0);
13627     _v = SWIG_CheckState(res);
13628     if (_v) {
13629       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
13630       _v = SWIG_CheckState(res);
13631       if (_v) {
13632         {
13633           int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
13634           _v = SWIG_CheckState(res);
13635         }
13636         if (_v) {
13637           return _wrap_Enquire_set_expansion_scheme__SWIG_0(clientData, interp, objc, argv - 1);
13638         }
13639       }
13640     }
13641   }
13642 
13643   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'Enquire_set_expansion_scheme'.\n"
13644     "  Possible C/C++ prototypes are:\n"
13645     "    Xapian::Enquire::set_expansion_scheme(std::string const &,double) const\n"
13646     "    Xapian::Enquire::set_expansion_scheme(std::string const &) const\n", TCL_STATIC);
13647   return TCL_ERROR;
13648 }
13649 
13650 
13651 SWIGINTERN int
_wrap_Enquire_set_collapse_key__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])13652 _wrap_Enquire_set_collapse_key__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
13653   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
13654   Xapian::valueno arg2 ;
13655   Xapian::doccount arg3 ;
13656   void *argp1 = 0 ;
13657   int res1 = 0 ;
13658   unsigned int val2 ;
13659   int ecode2 = 0 ;
13660   unsigned int val3 ;
13661   int ecode3 = 0 ;
13662 
13663   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::Enquire_set_collapse_key self collapse_key collapse_max ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
13664   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
13665   if (!SWIG_IsOK(res1)) {
13666     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_collapse_key" "', argument " "1"" of type '" "Xapian::Enquire *""'");
13667   }
13668   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
13669   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
13670   if (!SWIG_IsOK(ecode2)) {
13671     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_set_collapse_key" "', argument " "2"" of type '" "Xapian::valueno""'");
13672   }
13673   arg2 = static_cast< Xapian::valueno >(val2);
13674   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
13675   if (!SWIG_IsOK(ecode3)) {
13676     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_set_collapse_key" "', argument " "3"" of type '" "Xapian::doccount""'");
13677   }
13678   arg3 = static_cast< Xapian::doccount >(val3);
13679   {
13680     try {
13681       (arg1)->set_collapse_key(arg2,arg3);
13682     } catch (const Xapian::Error &e) {
13683       return XapianTclHandleError(interp, e);
13684     } catch (...) {
13685       return XapianTclHandleError(interp);
13686     }
13687   }
13688 
13689   return TCL_OK;
13690 fail:
13691   return TCL_ERROR;
13692 }
13693 
13694 
13695 SWIGINTERN int
_wrap_Enquire_set_collapse_key__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])13696 _wrap_Enquire_set_collapse_key__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
13697   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
13698   Xapian::valueno arg2 ;
13699   void *argp1 = 0 ;
13700   int res1 = 0 ;
13701   unsigned int val2 ;
13702   int ecode2 = 0 ;
13703 
13704   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Enquire_set_collapse_key self collapse_key ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
13705   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
13706   if (!SWIG_IsOK(res1)) {
13707     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_collapse_key" "', argument " "1"" of type '" "Xapian::Enquire *""'");
13708   }
13709   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
13710   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
13711   if (!SWIG_IsOK(ecode2)) {
13712     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_set_collapse_key" "', argument " "2"" of type '" "Xapian::valueno""'");
13713   }
13714   arg2 = static_cast< Xapian::valueno >(val2);
13715   {
13716     try {
13717       (arg1)->set_collapse_key(arg2);
13718     } catch (const Xapian::Error &e) {
13719       return XapianTclHandleError(interp, e);
13720     } catch (...) {
13721       return XapianTclHandleError(interp);
13722     }
13723   }
13724 
13725   return TCL_OK;
13726 fail:
13727   return TCL_ERROR;
13728 }
13729 
13730 
13731 SWIGINTERN int
_wrap_Enquire_set_collapse_key(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])13732 _wrap_Enquire_set_collapse_key(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
13733   Tcl_Obj *CONST *argv = objv+1;
13734   int argc = objc-1;
13735   if (argc == 2) {
13736     int _v;
13737     void *vptr = 0;
13738     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Enquire, 0);
13739     _v = SWIG_CheckState(res);
13740     if (_v) {
13741       {
13742         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
13743         _v = SWIG_CheckState(res);
13744       }
13745       if (_v) {
13746         return _wrap_Enquire_set_collapse_key__SWIG_1(clientData, interp, objc, argv - 1);
13747       }
13748     }
13749   }
13750   if (argc == 3) {
13751     int _v;
13752     void *vptr = 0;
13753     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Enquire, 0);
13754     _v = SWIG_CheckState(res);
13755     if (_v) {
13756       {
13757         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
13758         _v = SWIG_CheckState(res);
13759       }
13760       if (_v) {
13761         {
13762           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
13763           _v = SWIG_CheckState(res);
13764         }
13765         if (_v) {
13766           return _wrap_Enquire_set_collapse_key__SWIG_0(clientData, interp, objc, argv - 1);
13767         }
13768       }
13769     }
13770   }
13771 
13772   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'Enquire_set_collapse_key'.\n"
13773     "  Possible C/C++ prototypes are:\n"
13774     "    Xapian::Enquire::set_collapse_key(Xapian::valueno,Xapian::doccount)\n"
13775     "    Xapian::Enquire::set_collapse_key(Xapian::valueno)\n", TCL_STATIC);
13776   return TCL_ERROR;
13777 }
13778 
13779 
13780 SWIGINTERN int
_wrap_Enquire_set_docid_order(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])13781 _wrap_Enquire_set_docid_order(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
13782   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
13783   Xapian::Enquire::docid_order arg2 ;
13784   void *argp1 = 0 ;
13785   int res1 = 0 ;
13786   int val2 ;
13787   int ecode2 = 0 ;
13788 
13789   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Enquire_set_docid_order self order ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
13790   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
13791   if (!SWIG_IsOK(res1)) {
13792     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_docid_order" "', argument " "1"" of type '" "Xapian::Enquire *""'");
13793   }
13794   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
13795   ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
13796   if (!SWIG_IsOK(ecode2)) {
13797     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_set_docid_order" "', argument " "2"" of type '" "Xapian::Enquire::docid_order""'");
13798   }
13799   arg2 = static_cast< Xapian::Enquire::docid_order >(val2);
13800   {
13801     try {
13802       (arg1)->set_docid_order(arg2);
13803     } catch (const Xapian::Error &e) {
13804       return XapianTclHandleError(interp, e);
13805     } catch (...) {
13806       return XapianTclHandleError(interp);
13807     }
13808   }
13809 
13810   return TCL_OK;
13811 fail:
13812   return TCL_ERROR;
13813 }
13814 
13815 
13816 SWIGINTERN int
_wrap_Enquire_set_cutoff__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])13817 _wrap_Enquire_set_cutoff__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
13818   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
13819   int arg2 ;
13820   double arg3 ;
13821   void *argp1 = 0 ;
13822   int res1 = 0 ;
13823   int val2 ;
13824   int ecode2 = 0 ;
13825   double val3 ;
13826   int ecode3 = 0 ;
13827 
13828   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::Enquire_set_cutoff self percent_cutoff weight_cutoff ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
13829   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
13830   if (!SWIG_IsOK(res1)) {
13831     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_cutoff" "', argument " "1"" of type '" "Xapian::Enquire *""'");
13832   }
13833   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
13834   ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
13835   if (!SWIG_IsOK(ecode2)) {
13836     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_set_cutoff" "', argument " "2"" of type '" "int""'");
13837   }
13838   arg2 = static_cast< int >(val2);
13839   ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
13840   if (!SWIG_IsOK(ecode3)) {
13841     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_set_cutoff" "', argument " "3"" of type '" "double""'");
13842   }
13843   arg3 = static_cast< double >(val3);
13844   {
13845     try {
13846       (arg1)->set_cutoff(arg2,arg3);
13847     } catch (const Xapian::Error &e) {
13848       return XapianTclHandleError(interp, e);
13849     } catch (...) {
13850       return XapianTclHandleError(interp);
13851     }
13852   }
13853 
13854   return TCL_OK;
13855 fail:
13856   return TCL_ERROR;
13857 }
13858 
13859 
13860 SWIGINTERN int
_wrap_Enquire_set_cutoff__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])13861 _wrap_Enquire_set_cutoff__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
13862   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
13863   int arg2 ;
13864   void *argp1 = 0 ;
13865   int res1 = 0 ;
13866   int val2 ;
13867   int ecode2 = 0 ;
13868 
13869   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Enquire_set_cutoff self percent_cutoff ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
13870   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
13871   if (!SWIG_IsOK(res1)) {
13872     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_cutoff" "', argument " "1"" of type '" "Xapian::Enquire *""'");
13873   }
13874   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
13875   ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
13876   if (!SWIG_IsOK(ecode2)) {
13877     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_set_cutoff" "', argument " "2"" of type '" "int""'");
13878   }
13879   arg2 = static_cast< int >(val2);
13880   {
13881     try {
13882       (arg1)->set_cutoff(arg2);
13883     } catch (const Xapian::Error &e) {
13884       return XapianTclHandleError(interp, e);
13885     } catch (...) {
13886       return XapianTclHandleError(interp);
13887     }
13888   }
13889 
13890   return TCL_OK;
13891 fail:
13892   return TCL_ERROR;
13893 }
13894 
13895 
13896 SWIGINTERN int
_wrap_Enquire_set_cutoff(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])13897 _wrap_Enquire_set_cutoff(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
13898   Tcl_Obj *CONST *argv = objv+1;
13899   int argc = objc-1;
13900   if (argc == 2) {
13901     int _v;
13902     void *vptr = 0;
13903     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Enquire, 0);
13904     _v = SWIG_CheckState(res);
13905     if (_v) {
13906       {
13907         int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
13908         _v = SWIG_CheckState(res);
13909       }
13910       if (_v) {
13911         return _wrap_Enquire_set_cutoff__SWIG_1(clientData, interp, objc, argv - 1);
13912       }
13913     }
13914   }
13915   if (argc == 3) {
13916     int _v;
13917     void *vptr = 0;
13918     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Enquire, 0);
13919     _v = SWIG_CheckState(res);
13920     if (_v) {
13921       {
13922         int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
13923         _v = SWIG_CheckState(res);
13924       }
13925       if (_v) {
13926         {
13927           int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
13928           _v = SWIG_CheckState(res);
13929         }
13930         if (_v) {
13931           return _wrap_Enquire_set_cutoff__SWIG_0(clientData, interp, objc, argv - 1);
13932         }
13933       }
13934     }
13935   }
13936 
13937   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'Enquire_set_cutoff'.\n"
13938     "  Possible C/C++ prototypes are:\n"
13939     "    Xapian::Enquire::set_cutoff(int,double)\n"
13940     "    Xapian::Enquire::set_cutoff(int)\n", TCL_STATIC);
13941   return TCL_ERROR;
13942 }
13943 
13944 
13945 SWIGINTERN int
_wrap_Enquire_set_sort_by_relevance(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])13946 _wrap_Enquire_set_sort_by_relevance(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
13947   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
13948   void *argp1 = 0 ;
13949   int res1 = 0 ;
13950 
13951   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Enquire_set_sort_by_relevance self ",(void *)0) == TCL_ERROR) SWIG_fail;
13952   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
13953   if (!SWIG_IsOK(res1)) {
13954     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_sort_by_relevance" "', argument " "1"" of type '" "Xapian::Enquire *""'");
13955   }
13956   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
13957   {
13958     try {
13959       (arg1)->set_sort_by_relevance();
13960     } catch (const Xapian::Error &e) {
13961       return XapianTclHandleError(interp, e);
13962     } catch (...) {
13963       return XapianTclHandleError(interp);
13964     }
13965   }
13966 
13967   return TCL_OK;
13968 fail:
13969   return TCL_ERROR;
13970 }
13971 
13972 
13973 SWIGINTERN int
_wrap_Enquire_set_sort_by_value(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])13974 _wrap_Enquire_set_sort_by_value(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
13975   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
13976   Xapian::valueno arg2 ;
13977   bool arg3 ;
13978   void *argp1 = 0 ;
13979   int res1 = 0 ;
13980   unsigned int val2 ;
13981   int ecode2 = 0 ;
13982   bool val3 ;
13983   int ecode3 = 0 ;
13984 
13985   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::Enquire_set_sort_by_value self sort_key reverse ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
13986   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
13987   if (!SWIG_IsOK(res1)) {
13988     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_sort_by_value" "', argument " "1"" of type '" "Xapian::Enquire *""'");
13989   }
13990   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
13991   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
13992   if (!SWIG_IsOK(ecode2)) {
13993     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_set_sort_by_value" "', argument " "2"" of type '" "Xapian::valueno""'");
13994   }
13995   arg2 = static_cast< Xapian::valueno >(val2);
13996   ecode3 = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
13997   if (!SWIG_IsOK(ecode3)) {
13998     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_set_sort_by_value" "', argument " "3"" of type '" "bool""'");
13999   }
14000   arg3 = static_cast< bool >(val3);
14001   {
14002     try {
14003       (arg1)->set_sort_by_value(arg2,arg3);
14004     } catch (const Xapian::Error &e) {
14005       return XapianTclHandleError(interp, e);
14006     } catch (...) {
14007       return XapianTclHandleError(interp);
14008     }
14009   }
14010 
14011   return TCL_OK;
14012 fail:
14013   return TCL_ERROR;
14014 }
14015 
14016 
14017 SWIGINTERN int
_wrap_Enquire_set_sort_by_key(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])14018 _wrap_Enquire_set_sort_by_key(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
14019   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
14020   Xapian::KeyMaker *arg2 = (Xapian::KeyMaker *) 0 ;
14021   bool arg3 ;
14022   void *argp1 = 0 ;
14023   int res1 = 0 ;
14024   void *argp2 = 0 ;
14025   int res2 = 0 ;
14026   bool val3 ;
14027   int ecode3 = 0 ;
14028 
14029   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::Enquire_set_sort_by_key self sorter reverse ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
14030   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
14031   if (!SWIG_IsOK(res1)) {
14032     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_sort_by_key" "', argument " "1"" of type '" "Xapian::Enquire *""'");
14033   }
14034   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
14035   res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_Xapian__KeyMaker, 0 |  0 );
14036   if (!SWIG_IsOK(res2)) {
14037     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Enquire_set_sort_by_key" "', argument " "2"" of type '" "Xapian::KeyMaker *""'");
14038   }
14039   arg2 = reinterpret_cast< Xapian::KeyMaker * >(argp2);
14040   ecode3 = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
14041   if (!SWIG_IsOK(ecode3)) {
14042     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_set_sort_by_key" "', argument " "3"" of type '" "bool""'");
14043   }
14044   arg3 = static_cast< bool >(val3);
14045   {
14046     try {
14047       (arg1)->set_sort_by_key(arg2,arg3);
14048     } catch (const Xapian::Error &e) {
14049       return XapianTclHandleError(interp, e);
14050     } catch (...) {
14051       return XapianTclHandleError(interp);
14052     }
14053   }
14054 
14055   return TCL_OK;
14056 fail:
14057   return TCL_ERROR;
14058 }
14059 
14060 
14061 SWIGINTERN int
_wrap_Enquire_set_sort_by_value_then_relevance(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])14062 _wrap_Enquire_set_sort_by_value_then_relevance(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
14063   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
14064   Xapian::valueno arg2 ;
14065   bool arg3 ;
14066   void *argp1 = 0 ;
14067   int res1 = 0 ;
14068   unsigned int val2 ;
14069   int ecode2 = 0 ;
14070   bool val3 ;
14071   int ecode3 = 0 ;
14072 
14073   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::Enquire_set_sort_by_value_then_relevance self sort_key reverse ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
14074   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
14075   if (!SWIG_IsOK(res1)) {
14076     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_sort_by_value_then_relevance" "', argument " "1"" of type '" "Xapian::Enquire *""'");
14077   }
14078   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
14079   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
14080   if (!SWIG_IsOK(ecode2)) {
14081     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_set_sort_by_value_then_relevance" "', argument " "2"" of type '" "Xapian::valueno""'");
14082   }
14083   arg2 = static_cast< Xapian::valueno >(val2);
14084   ecode3 = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
14085   if (!SWIG_IsOK(ecode3)) {
14086     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_set_sort_by_value_then_relevance" "', argument " "3"" of type '" "bool""'");
14087   }
14088   arg3 = static_cast< bool >(val3);
14089   {
14090     try {
14091       (arg1)->set_sort_by_value_then_relevance(arg2,arg3);
14092     } catch (const Xapian::Error &e) {
14093       return XapianTclHandleError(interp, e);
14094     } catch (...) {
14095       return XapianTclHandleError(interp);
14096     }
14097   }
14098 
14099   return TCL_OK;
14100 fail:
14101   return TCL_ERROR;
14102 }
14103 
14104 
14105 SWIGINTERN int
_wrap_Enquire_set_sort_by_key_then_relevance(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])14106 _wrap_Enquire_set_sort_by_key_then_relevance(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
14107   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
14108   Xapian::KeyMaker *arg2 = (Xapian::KeyMaker *) 0 ;
14109   bool arg3 ;
14110   void *argp1 = 0 ;
14111   int res1 = 0 ;
14112   void *argp2 = 0 ;
14113   int res2 = 0 ;
14114   bool val3 ;
14115   int ecode3 = 0 ;
14116 
14117   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::Enquire_set_sort_by_key_then_relevance self sorter reverse ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
14118   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
14119   if (!SWIG_IsOK(res1)) {
14120     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_sort_by_key_then_relevance" "', argument " "1"" of type '" "Xapian::Enquire *""'");
14121   }
14122   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
14123   res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_Xapian__KeyMaker, 0 |  0 );
14124   if (!SWIG_IsOK(res2)) {
14125     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Enquire_set_sort_by_key_then_relevance" "', argument " "2"" of type '" "Xapian::KeyMaker *""'");
14126   }
14127   arg2 = reinterpret_cast< Xapian::KeyMaker * >(argp2);
14128   ecode3 = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
14129   if (!SWIG_IsOK(ecode3)) {
14130     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_set_sort_by_key_then_relevance" "', argument " "3"" of type '" "bool""'");
14131   }
14132   arg3 = static_cast< bool >(val3);
14133   {
14134     try {
14135       (arg1)->set_sort_by_key_then_relevance(arg2,arg3);
14136     } catch (const Xapian::Error &e) {
14137       return XapianTclHandleError(interp, e);
14138     } catch (...) {
14139       return XapianTclHandleError(interp);
14140     }
14141   }
14142 
14143   return TCL_OK;
14144 fail:
14145   return TCL_ERROR;
14146 }
14147 
14148 
14149 SWIGINTERN int
_wrap_Enquire_set_sort_by_relevance_then_value(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])14150 _wrap_Enquire_set_sort_by_relevance_then_value(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
14151   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
14152   Xapian::valueno arg2 ;
14153   bool arg3 ;
14154   void *argp1 = 0 ;
14155   int res1 = 0 ;
14156   unsigned int val2 ;
14157   int ecode2 = 0 ;
14158   bool val3 ;
14159   int ecode3 = 0 ;
14160 
14161   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::Enquire_set_sort_by_relevance_then_value self sort_key reverse ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
14162   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
14163   if (!SWIG_IsOK(res1)) {
14164     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_sort_by_relevance_then_value" "', argument " "1"" of type '" "Xapian::Enquire *""'");
14165   }
14166   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
14167   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
14168   if (!SWIG_IsOK(ecode2)) {
14169     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_set_sort_by_relevance_then_value" "', argument " "2"" of type '" "Xapian::valueno""'");
14170   }
14171   arg2 = static_cast< Xapian::valueno >(val2);
14172   ecode3 = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
14173   if (!SWIG_IsOK(ecode3)) {
14174     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_set_sort_by_relevance_then_value" "', argument " "3"" of type '" "bool""'");
14175   }
14176   arg3 = static_cast< bool >(val3);
14177   {
14178     try {
14179       (arg1)->set_sort_by_relevance_then_value(arg2,arg3);
14180     } catch (const Xapian::Error &e) {
14181       return XapianTclHandleError(interp, e);
14182     } catch (...) {
14183       return XapianTclHandleError(interp);
14184     }
14185   }
14186 
14187   return TCL_OK;
14188 fail:
14189   return TCL_ERROR;
14190 }
14191 
14192 
14193 SWIGINTERN int
_wrap_Enquire_set_sort_by_relevance_then_key(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])14194 _wrap_Enquire_set_sort_by_relevance_then_key(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
14195   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
14196   Xapian::KeyMaker *arg2 = (Xapian::KeyMaker *) 0 ;
14197   bool arg3 ;
14198   void *argp1 = 0 ;
14199   int res1 = 0 ;
14200   void *argp2 = 0 ;
14201   int res2 = 0 ;
14202   bool val3 ;
14203   int ecode3 = 0 ;
14204 
14205   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::Enquire_set_sort_by_relevance_then_key self sorter reverse ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
14206   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
14207   if (!SWIG_IsOK(res1)) {
14208     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_sort_by_relevance_then_key" "', argument " "1"" of type '" "Xapian::Enquire *""'");
14209   }
14210   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
14211   res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_Xapian__KeyMaker, 0 |  0 );
14212   if (!SWIG_IsOK(res2)) {
14213     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Enquire_set_sort_by_relevance_then_key" "', argument " "2"" of type '" "Xapian::KeyMaker *""'");
14214   }
14215   arg2 = reinterpret_cast< Xapian::KeyMaker * >(argp2);
14216   ecode3 = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
14217   if (!SWIG_IsOK(ecode3)) {
14218     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_set_sort_by_relevance_then_key" "', argument " "3"" of type '" "bool""'");
14219   }
14220   arg3 = static_cast< bool >(val3);
14221   {
14222     try {
14223       (arg1)->set_sort_by_relevance_then_key(arg2,arg3);
14224     } catch (const Xapian::Error &e) {
14225       return XapianTclHandleError(interp, e);
14226     } catch (...) {
14227       return XapianTclHandleError(interp);
14228     }
14229   }
14230 
14231   return TCL_OK;
14232 fail:
14233   return TCL_ERROR;
14234 }
14235 
14236 
14237 SWIGINTERN int
_wrap_Enquire_set_time_limit(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])14238 _wrap_Enquire_set_time_limit(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
14239   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
14240   double arg2 ;
14241   void *argp1 = 0 ;
14242   int res1 = 0 ;
14243   double val2 ;
14244   int ecode2 = 0 ;
14245 
14246   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Enquire_set_time_limit self time_limit ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
14247   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
14248   if (!SWIG_IsOK(res1)) {
14249     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_time_limit" "', argument " "1"" of type '" "Xapian::Enquire *""'");
14250   }
14251   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
14252   ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
14253   if (!SWIG_IsOK(ecode2)) {
14254     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_set_time_limit" "', argument " "2"" of type '" "double""'");
14255   }
14256   arg2 = static_cast< double >(val2);
14257   {
14258     try {
14259       (arg1)->set_time_limit(arg2);
14260     } catch (const Xapian::Error &e) {
14261       return XapianTclHandleError(interp, e);
14262     } catch (...) {
14263       return XapianTclHandleError(interp);
14264     }
14265   }
14266 
14267   return TCL_OK;
14268 fail:
14269   return TCL_ERROR;
14270 }
14271 
14272 
14273 SWIGINTERN int
_wrap_Enquire_get_mset__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])14274 _wrap_Enquire_get_mset__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
14275   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
14276   Xapian::doccount arg2 ;
14277   Xapian::doccount arg3 ;
14278   Xapian::doccount arg4 ;
14279   Xapian::RSet *arg5 = (Xapian::RSet *) 0 ;
14280   Xapian::MatchDecider *arg6 = (Xapian::MatchDecider *) 0 ;
14281   void *argp1 = 0 ;
14282   int res1 = 0 ;
14283   unsigned int val2 ;
14284   int ecode2 = 0 ;
14285   unsigned int val3 ;
14286   int ecode3 = 0 ;
14287   unsigned int val4 ;
14288   int ecode4 = 0 ;
14289   void *argp5 = 0 ;
14290   int res5 = 0 ;
14291   void *argp6 = 0 ;
14292   int res6 = 0 ;
14293   Xapian::MSet result;
14294 
14295   if (SWIG_GetArgs(interp, objc, objv,"oooooo:xapian::Enquire_get_mset self first maxitems checkatleast omrset mdecider ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
14296   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
14297   if (!SWIG_IsOK(res1)) {
14298     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_mset" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
14299   }
14300   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
14301   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
14302   if (!SWIG_IsOK(ecode2)) {
14303     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_get_mset" "', argument " "2"" of type '" "Xapian::doccount""'");
14304   }
14305   arg2 = static_cast< Xapian::doccount >(val2);
14306   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
14307   if (!SWIG_IsOK(ecode3)) {
14308     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_get_mset" "', argument " "3"" of type '" "Xapian::doccount""'");
14309   }
14310   arg3 = static_cast< Xapian::doccount >(val3);
14311   ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
14312   if (!SWIG_IsOK(ecode4)) {
14313     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Enquire_get_mset" "', argument " "4"" of type '" "Xapian::doccount""'");
14314   }
14315   arg4 = static_cast< Xapian::doccount >(val4);
14316   res5 = SWIG_ConvertPtr(objv[5], &argp5,SWIGTYPE_p_Xapian__RSet, 0 |  0 );
14317   if (!SWIG_IsOK(res5)) {
14318     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Enquire_get_mset" "', argument " "5"" of type '" "Xapian::RSet const *""'");
14319   }
14320   arg5 = reinterpret_cast< Xapian::RSet * >(argp5);
14321   res6 = SWIG_ConvertPtr(objv[6], &argp6,SWIGTYPE_p_Xapian__MatchDecider, 0 |  0 );
14322   if (!SWIG_IsOK(res6)) {
14323     SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "Enquire_get_mset" "', argument " "6"" of type '" "Xapian::MatchDecider const *""'");
14324   }
14325   arg6 = reinterpret_cast< Xapian::MatchDecider * >(argp6);
14326   {
14327     try {
14328       result = ((Xapian::Enquire const *)arg1)->get_mset(arg2,arg3,arg4,(Xapian::RSet const *)arg5,(Xapian::MatchDecider const *)arg6);
14329     } catch (const Xapian::Error &e) {
14330       return XapianTclHandleError(interp, e);
14331     } catch (...) {
14332       return XapianTclHandleError(interp);
14333     }
14334   }
14335   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::MSet(static_cast< const Xapian::MSet& >(result))), SWIGTYPE_p_Xapian__MSet, SWIG_POINTER_OWN | 0 ));
14336   return TCL_OK;
14337 fail:
14338   return TCL_ERROR;
14339 }
14340 
14341 
14342 SWIGINTERN int
_wrap_Enquire_get_mset__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])14343 _wrap_Enquire_get_mset__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
14344   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
14345   Xapian::doccount arg2 ;
14346   Xapian::doccount arg3 ;
14347   Xapian::doccount arg4 ;
14348   Xapian::RSet *arg5 = (Xapian::RSet *) 0 ;
14349   void *argp1 = 0 ;
14350   int res1 = 0 ;
14351   unsigned int val2 ;
14352   int ecode2 = 0 ;
14353   unsigned int val3 ;
14354   int ecode3 = 0 ;
14355   unsigned int val4 ;
14356   int ecode4 = 0 ;
14357   void *argp5 = 0 ;
14358   int res5 = 0 ;
14359   Xapian::MSet result;
14360 
14361   if (SWIG_GetArgs(interp, objc, objv,"ooooo:xapian::Enquire_get_mset self first maxitems checkatleast omrset ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
14362   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
14363   if (!SWIG_IsOK(res1)) {
14364     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_mset" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
14365   }
14366   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
14367   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
14368   if (!SWIG_IsOK(ecode2)) {
14369     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_get_mset" "', argument " "2"" of type '" "Xapian::doccount""'");
14370   }
14371   arg2 = static_cast< Xapian::doccount >(val2);
14372   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
14373   if (!SWIG_IsOK(ecode3)) {
14374     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_get_mset" "', argument " "3"" of type '" "Xapian::doccount""'");
14375   }
14376   arg3 = static_cast< Xapian::doccount >(val3);
14377   ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
14378   if (!SWIG_IsOK(ecode4)) {
14379     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Enquire_get_mset" "', argument " "4"" of type '" "Xapian::doccount""'");
14380   }
14381   arg4 = static_cast< Xapian::doccount >(val4);
14382   res5 = SWIG_ConvertPtr(objv[5], &argp5,SWIGTYPE_p_Xapian__RSet, 0 |  0 );
14383   if (!SWIG_IsOK(res5)) {
14384     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Enquire_get_mset" "', argument " "5"" of type '" "Xapian::RSet const *""'");
14385   }
14386   arg5 = reinterpret_cast< Xapian::RSet * >(argp5);
14387   {
14388     try {
14389       result = ((Xapian::Enquire const *)arg1)->get_mset(arg2,arg3,arg4,(Xapian::RSet const *)arg5);
14390     } catch (const Xapian::Error &e) {
14391       return XapianTclHandleError(interp, e);
14392     } catch (...) {
14393       return XapianTclHandleError(interp);
14394     }
14395   }
14396   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::MSet(static_cast< const Xapian::MSet& >(result))), SWIGTYPE_p_Xapian__MSet, SWIG_POINTER_OWN | 0 ));
14397   return TCL_OK;
14398 fail:
14399   return TCL_ERROR;
14400 }
14401 
14402 
14403 SWIGINTERN int
_wrap_Enquire_get_mset__SWIG_2(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])14404 _wrap_Enquire_get_mset__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
14405   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
14406   Xapian::doccount arg2 ;
14407   Xapian::doccount arg3 ;
14408   Xapian::doccount arg4 ;
14409   void *argp1 = 0 ;
14410   int res1 = 0 ;
14411   unsigned int val2 ;
14412   int ecode2 = 0 ;
14413   unsigned int val3 ;
14414   int ecode3 = 0 ;
14415   unsigned int val4 ;
14416   int ecode4 = 0 ;
14417   Xapian::MSet result;
14418 
14419   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::Enquire_get_mset self first maxitems checkatleast ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
14420   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
14421   if (!SWIG_IsOK(res1)) {
14422     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_mset" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
14423   }
14424   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
14425   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
14426   if (!SWIG_IsOK(ecode2)) {
14427     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_get_mset" "', argument " "2"" of type '" "Xapian::doccount""'");
14428   }
14429   arg2 = static_cast< Xapian::doccount >(val2);
14430   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
14431   if (!SWIG_IsOK(ecode3)) {
14432     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_get_mset" "', argument " "3"" of type '" "Xapian::doccount""'");
14433   }
14434   arg3 = static_cast< Xapian::doccount >(val3);
14435   ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
14436   if (!SWIG_IsOK(ecode4)) {
14437     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Enquire_get_mset" "', argument " "4"" of type '" "Xapian::doccount""'");
14438   }
14439   arg4 = static_cast< Xapian::doccount >(val4);
14440   {
14441     try {
14442       result = ((Xapian::Enquire const *)arg1)->get_mset(arg2,arg3,arg4);
14443     } catch (const Xapian::Error &e) {
14444       return XapianTclHandleError(interp, e);
14445     } catch (...) {
14446       return XapianTclHandleError(interp);
14447     }
14448   }
14449   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::MSet(static_cast< const Xapian::MSet& >(result))), SWIGTYPE_p_Xapian__MSet, SWIG_POINTER_OWN | 0 ));
14450   return TCL_OK;
14451 fail:
14452   return TCL_ERROR;
14453 }
14454 
14455 
14456 SWIGINTERN int
_wrap_Enquire_get_mset__SWIG_3(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])14457 _wrap_Enquire_get_mset__SWIG_3(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
14458   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
14459   Xapian::doccount arg2 ;
14460   Xapian::doccount arg3 ;
14461   void *argp1 = 0 ;
14462   int res1 = 0 ;
14463   unsigned int val2 ;
14464   int ecode2 = 0 ;
14465   unsigned int val3 ;
14466   int ecode3 = 0 ;
14467   Xapian::MSet result;
14468 
14469   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::Enquire_get_mset self first maxitems ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
14470   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
14471   if (!SWIG_IsOK(res1)) {
14472     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_mset" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
14473   }
14474   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
14475   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
14476   if (!SWIG_IsOK(ecode2)) {
14477     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_get_mset" "', argument " "2"" of type '" "Xapian::doccount""'");
14478   }
14479   arg2 = static_cast< Xapian::doccount >(val2);
14480   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
14481   if (!SWIG_IsOK(ecode3)) {
14482     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_get_mset" "', argument " "3"" of type '" "Xapian::doccount""'");
14483   }
14484   arg3 = static_cast< Xapian::doccount >(val3);
14485   {
14486     try {
14487       result = ((Xapian::Enquire const *)arg1)->get_mset(arg2,arg3);
14488     } catch (const Xapian::Error &e) {
14489       return XapianTclHandleError(interp, e);
14490     } catch (...) {
14491       return XapianTclHandleError(interp);
14492     }
14493   }
14494   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::MSet(static_cast< const Xapian::MSet& >(result))), SWIGTYPE_p_Xapian__MSet, SWIG_POINTER_OWN | 0 ));
14495   return TCL_OK;
14496 fail:
14497   return TCL_ERROR;
14498 }
14499 
14500 
14501 SWIGINTERN int
_wrap_Enquire_get_mset__SWIG_4(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])14502 _wrap_Enquire_get_mset__SWIG_4(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
14503   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
14504   Xapian::doccount arg2 ;
14505   Xapian::doccount arg3 ;
14506   Xapian::RSet *arg4 = (Xapian::RSet *) 0 ;
14507   Xapian::MatchDecider *arg5 = (Xapian::MatchDecider *) 0 ;
14508   void *argp1 = 0 ;
14509   int res1 = 0 ;
14510   unsigned int val2 ;
14511   int ecode2 = 0 ;
14512   unsigned int val3 ;
14513   int ecode3 = 0 ;
14514   void *argp4 = 0 ;
14515   int res4 = 0 ;
14516   void *argp5 = 0 ;
14517   int res5 = 0 ;
14518   Xapian::MSet result;
14519 
14520   if (SWIG_GetArgs(interp, objc, objv,"ooooo:xapian::Enquire_get_mset self first maxitems omrset mdecider ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
14521   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
14522   if (!SWIG_IsOK(res1)) {
14523     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_mset" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
14524   }
14525   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
14526   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
14527   if (!SWIG_IsOK(ecode2)) {
14528     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_get_mset" "', argument " "2"" of type '" "Xapian::doccount""'");
14529   }
14530   arg2 = static_cast< Xapian::doccount >(val2);
14531   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
14532   if (!SWIG_IsOK(ecode3)) {
14533     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_get_mset" "', argument " "3"" of type '" "Xapian::doccount""'");
14534   }
14535   arg3 = static_cast< Xapian::doccount >(val3);
14536   res4 = SWIG_ConvertPtr(objv[4], &argp4,SWIGTYPE_p_Xapian__RSet, 0 |  0 );
14537   if (!SWIG_IsOK(res4)) {
14538     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Enquire_get_mset" "', argument " "4"" of type '" "Xapian::RSet const *""'");
14539   }
14540   arg4 = reinterpret_cast< Xapian::RSet * >(argp4);
14541   res5 = SWIG_ConvertPtr(objv[5], &argp5,SWIGTYPE_p_Xapian__MatchDecider, 0 |  0 );
14542   if (!SWIG_IsOK(res5)) {
14543     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Enquire_get_mset" "', argument " "5"" of type '" "Xapian::MatchDecider const *""'");
14544   }
14545   arg5 = reinterpret_cast< Xapian::MatchDecider * >(argp5);
14546   {
14547     try {
14548       result = ((Xapian::Enquire const *)arg1)->get_mset(arg2,arg3,(Xapian::RSet const *)arg4,(Xapian::MatchDecider const *)arg5);
14549     } catch (const Xapian::Error &e) {
14550       return XapianTclHandleError(interp, e);
14551     } catch (...) {
14552       return XapianTclHandleError(interp);
14553     }
14554   }
14555   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::MSet(static_cast< const Xapian::MSet& >(result))), SWIGTYPE_p_Xapian__MSet, SWIG_POINTER_OWN | 0 ));
14556   return TCL_OK;
14557 fail:
14558   return TCL_ERROR;
14559 }
14560 
14561 
14562 SWIGINTERN int
_wrap_Enquire_get_mset__SWIG_5(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])14563 _wrap_Enquire_get_mset__SWIG_5(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
14564   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
14565   Xapian::doccount arg2 ;
14566   Xapian::doccount arg3 ;
14567   Xapian::RSet *arg4 = (Xapian::RSet *) 0 ;
14568   void *argp1 = 0 ;
14569   int res1 = 0 ;
14570   unsigned int val2 ;
14571   int ecode2 = 0 ;
14572   unsigned int val3 ;
14573   int ecode3 = 0 ;
14574   void *argp4 = 0 ;
14575   int res4 = 0 ;
14576   Xapian::MSet result;
14577 
14578   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::Enquire_get_mset self first maxitems omrset ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
14579   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
14580   if (!SWIG_IsOK(res1)) {
14581     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_mset" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
14582   }
14583   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
14584   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
14585   if (!SWIG_IsOK(ecode2)) {
14586     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_get_mset" "', argument " "2"" of type '" "Xapian::doccount""'");
14587   }
14588   arg2 = static_cast< Xapian::doccount >(val2);
14589   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
14590   if (!SWIG_IsOK(ecode3)) {
14591     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_get_mset" "', argument " "3"" of type '" "Xapian::doccount""'");
14592   }
14593   arg3 = static_cast< Xapian::doccount >(val3);
14594   res4 = SWIG_ConvertPtr(objv[4], &argp4,SWIGTYPE_p_Xapian__RSet, 0 |  0 );
14595   if (!SWIG_IsOK(res4)) {
14596     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Enquire_get_mset" "', argument " "4"" of type '" "Xapian::RSet const *""'");
14597   }
14598   arg4 = reinterpret_cast< Xapian::RSet * >(argp4);
14599   {
14600     try {
14601       result = ((Xapian::Enquire const *)arg1)->get_mset(arg2,arg3,(Xapian::RSet const *)arg4);
14602     } catch (const Xapian::Error &e) {
14603       return XapianTclHandleError(interp, e);
14604     } catch (...) {
14605       return XapianTclHandleError(interp);
14606     }
14607   }
14608   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::MSet(static_cast< const Xapian::MSet& >(result))), SWIGTYPE_p_Xapian__MSet, SWIG_POINTER_OWN | 0 ));
14609   return TCL_OK;
14610 fail:
14611   return TCL_ERROR;
14612 }
14613 
14614 
14615 SWIGINTERN int
_wrap_Enquire_get_mset(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])14616 _wrap_Enquire_get_mset(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
14617   Tcl_Obj *CONST *argv = objv+1;
14618   int argc = objc-1;
14619   if (argc == 3) {
14620     int _v;
14621     void *vptr = 0;
14622     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Enquire, 0);
14623     _v = SWIG_CheckState(res);
14624     if (_v) {
14625       {
14626         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
14627         _v = SWIG_CheckState(res);
14628       }
14629       if (_v) {
14630         {
14631           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
14632           _v = SWIG_CheckState(res);
14633         }
14634         if (_v) {
14635           return _wrap_Enquire_get_mset__SWIG_3(clientData, interp, objc, argv - 1);
14636         }
14637       }
14638     }
14639   }
14640   if (argc == 4) {
14641     int _v;
14642     void *vptr = 0;
14643     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Enquire, 0);
14644     _v = SWIG_CheckState(res);
14645     if (_v) {
14646       {
14647         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
14648         _v = SWIG_CheckState(res);
14649       }
14650       if (_v) {
14651         {
14652           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
14653           _v = SWIG_CheckState(res);
14654         }
14655         if (_v) {
14656           void *vptr = 0;
14657           int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_Xapian__RSet, 0);
14658           _v = SWIG_CheckState(res);
14659           if (_v) {
14660             return _wrap_Enquire_get_mset__SWIG_5(clientData, interp, objc, argv - 1);
14661           }
14662         }
14663       }
14664     }
14665   }
14666   if (argc == 4) {
14667     int _v;
14668     void *vptr = 0;
14669     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Enquire, 0);
14670     _v = SWIG_CheckState(res);
14671     if (_v) {
14672       {
14673         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
14674         _v = SWIG_CheckState(res);
14675       }
14676       if (_v) {
14677         {
14678           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
14679           _v = SWIG_CheckState(res);
14680         }
14681         if (_v) {
14682           {
14683             int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
14684             _v = SWIG_CheckState(res);
14685           }
14686           if (_v) {
14687             return _wrap_Enquire_get_mset__SWIG_2(clientData, interp, objc, argv - 1);
14688           }
14689         }
14690       }
14691     }
14692   }
14693   if (argc == 5) {
14694     int _v;
14695     void *vptr = 0;
14696     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Enquire, 0);
14697     _v = SWIG_CheckState(res);
14698     if (_v) {
14699       {
14700         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
14701         _v = SWIG_CheckState(res);
14702       }
14703       if (_v) {
14704         {
14705           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
14706           _v = SWIG_CheckState(res);
14707         }
14708         if (_v) {
14709           void *vptr = 0;
14710           int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_Xapian__RSet, 0);
14711           _v = SWIG_CheckState(res);
14712           if (_v) {
14713             void *vptr = 0;
14714             int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_Xapian__MatchDecider, 0);
14715             _v = SWIG_CheckState(res);
14716             if (_v) {
14717               return _wrap_Enquire_get_mset__SWIG_4(clientData, interp, objc, argv - 1);
14718             }
14719           }
14720         }
14721       }
14722     }
14723   }
14724   if (argc == 5) {
14725     int _v;
14726     void *vptr = 0;
14727     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Enquire, 0);
14728     _v = SWIG_CheckState(res);
14729     if (_v) {
14730       {
14731         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
14732         _v = SWIG_CheckState(res);
14733       }
14734       if (_v) {
14735         {
14736           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
14737           _v = SWIG_CheckState(res);
14738         }
14739         if (_v) {
14740           {
14741             int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
14742             _v = SWIG_CheckState(res);
14743           }
14744           if (_v) {
14745             void *vptr = 0;
14746             int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_Xapian__RSet, 0);
14747             _v = SWIG_CheckState(res);
14748             if (_v) {
14749               return _wrap_Enquire_get_mset__SWIG_1(clientData, interp, objc, argv - 1);
14750             }
14751           }
14752         }
14753       }
14754     }
14755   }
14756   if (argc == 6) {
14757     int _v;
14758     void *vptr = 0;
14759     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Enquire, 0);
14760     _v = SWIG_CheckState(res);
14761     if (_v) {
14762       {
14763         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
14764         _v = SWIG_CheckState(res);
14765       }
14766       if (_v) {
14767         {
14768           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
14769           _v = SWIG_CheckState(res);
14770         }
14771         if (_v) {
14772           {
14773             int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
14774             _v = SWIG_CheckState(res);
14775           }
14776           if (_v) {
14777             void *vptr = 0;
14778             int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_Xapian__RSet, 0);
14779             _v = SWIG_CheckState(res);
14780             if (_v) {
14781               void *vptr = 0;
14782               int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_Xapian__MatchDecider, 0);
14783               _v = SWIG_CheckState(res);
14784               if (_v) {
14785                 return _wrap_Enquire_get_mset__SWIG_0(clientData, interp, objc, argv - 1);
14786               }
14787             }
14788           }
14789         }
14790       }
14791     }
14792   }
14793 
14794   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'Enquire_get_mset'.\n"
14795     "  Possible C/C++ prototypes are:\n"
14796     "    Xapian::Enquire::get_mset(Xapian::doccount,Xapian::doccount,Xapian::doccount,Xapian::RSet const *,Xapian::MatchDecider const *) const\n"
14797     "    Xapian::Enquire::get_mset(Xapian::doccount,Xapian::doccount,Xapian::doccount,Xapian::RSet const *) const\n"
14798     "    Xapian::Enquire::get_mset(Xapian::doccount,Xapian::doccount,Xapian::doccount) const\n"
14799     "    Xapian::Enquire::get_mset(Xapian::doccount,Xapian::doccount) const\n"
14800     "    Xapian::Enquire::get_mset(Xapian::doccount,Xapian::doccount,Xapian::RSet const *,Xapian::MatchDecider const *) const\n"
14801     "    Xapian::Enquire::get_mset(Xapian::doccount,Xapian::doccount,Xapian::RSet const *) const\n", TCL_STATIC);
14802   return TCL_ERROR;
14803 }
14804 
14805 
14806 SWIGINTERN int
_wrap_Enquire_get_eset__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])14807 _wrap_Enquire_get_eset__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
14808   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
14809   Xapian::termcount arg2 ;
14810   Xapian::RSet *arg3 = 0 ;
14811   int arg4 ;
14812   Xapian::ExpandDecider *arg5 = (Xapian::ExpandDecider *) 0 ;
14813   double arg6 ;
14814   void *argp1 = 0 ;
14815   int res1 = 0 ;
14816   unsigned int val2 ;
14817   int ecode2 = 0 ;
14818   void *argp3 ;
14819   int res3 = 0 ;
14820   int val4 ;
14821   int ecode4 = 0 ;
14822   void *argp5 = 0 ;
14823   int res5 = 0 ;
14824   double val6 ;
14825   int ecode6 = 0 ;
14826   Xapian::ESet result;
14827 
14828   if (SWIG_GetArgs(interp, objc, objv,"oooooo:xapian::Enquire_get_eset self maxitems omrset flags edecider min_wt ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
14829   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
14830   if (!SWIG_IsOK(res1)) {
14831     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_eset" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
14832   }
14833   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
14834   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
14835   if (!SWIG_IsOK(ecode2)) {
14836     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_get_eset" "', argument " "2"" of type '" "Xapian::termcount""'");
14837   }
14838   arg2 = static_cast< Xapian::termcount >(val2);
14839   res3 = SWIG_ConvertPtr(objv[3], &argp3, SWIGTYPE_p_Xapian__RSet,  0 );
14840   if (!SWIG_IsOK(res3)) {
14841     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
14842   }
14843   if (!argp3) {
14844     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
14845   }
14846   arg3 = reinterpret_cast< Xapian::RSet * >(argp3);
14847   ecode4 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
14848   if (!SWIG_IsOK(ecode4)) {
14849     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Enquire_get_eset" "', argument " "4"" of type '" "int""'");
14850   }
14851   arg4 = static_cast< int >(val4);
14852   res5 = SWIG_ConvertPtr(objv[5], &argp5,SWIGTYPE_p_Xapian__ExpandDecider, 0 |  0 );
14853   if (!SWIG_IsOK(res5)) {
14854     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Enquire_get_eset" "', argument " "5"" of type '" "Xapian::ExpandDecider const *""'");
14855   }
14856   arg5 = reinterpret_cast< Xapian::ExpandDecider * >(argp5);
14857   ecode6 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[6], &val6);
14858   if (!SWIG_IsOK(ecode6)) {
14859     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Enquire_get_eset" "', argument " "6"" of type '" "double""'");
14860   }
14861   arg6 = static_cast< double >(val6);
14862   {
14863     try {
14864       result = ((Xapian::Enquire const *)arg1)->get_eset(arg2,(Xapian::RSet const &)*arg3,arg4,(Xapian::ExpandDecider const *)arg5,arg6);
14865     } catch (const Xapian::Error &e) {
14866       return XapianTclHandleError(interp, e);
14867     } catch (...) {
14868       return XapianTclHandleError(interp);
14869     }
14870   }
14871   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::ESet(static_cast< const Xapian::ESet& >(result))), SWIGTYPE_p_Xapian__ESet, SWIG_POINTER_OWN | 0 ));
14872   return TCL_OK;
14873 fail:
14874   return TCL_ERROR;
14875 }
14876 
14877 
14878 SWIGINTERN int
_wrap_Enquire_get_eset__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])14879 _wrap_Enquire_get_eset__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
14880   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
14881   Xapian::termcount arg2 ;
14882   Xapian::RSet *arg3 = 0 ;
14883   int arg4 ;
14884   Xapian::ExpandDecider *arg5 = (Xapian::ExpandDecider *) 0 ;
14885   void *argp1 = 0 ;
14886   int res1 = 0 ;
14887   unsigned int val2 ;
14888   int ecode2 = 0 ;
14889   void *argp3 ;
14890   int res3 = 0 ;
14891   int val4 ;
14892   int ecode4 = 0 ;
14893   void *argp5 = 0 ;
14894   int res5 = 0 ;
14895   Xapian::ESet result;
14896 
14897   if (SWIG_GetArgs(interp, objc, objv,"ooooo:xapian::Enquire_get_eset self maxitems omrset flags edecider ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
14898   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
14899   if (!SWIG_IsOK(res1)) {
14900     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_eset" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
14901   }
14902   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
14903   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
14904   if (!SWIG_IsOK(ecode2)) {
14905     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_get_eset" "', argument " "2"" of type '" "Xapian::termcount""'");
14906   }
14907   arg2 = static_cast< Xapian::termcount >(val2);
14908   res3 = SWIG_ConvertPtr(objv[3], &argp3, SWIGTYPE_p_Xapian__RSet,  0 );
14909   if (!SWIG_IsOK(res3)) {
14910     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
14911   }
14912   if (!argp3) {
14913     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
14914   }
14915   arg3 = reinterpret_cast< Xapian::RSet * >(argp3);
14916   ecode4 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
14917   if (!SWIG_IsOK(ecode4)) {
14918     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Enquire_get_eset" "', argument " "4"" of type '" "int""'");
14919   }
14920   arg4 = static_cast< int >(val4);
14921   res5 = SWIG_ConvertPtr(objv[5], &argp5,SWIGTYPE_p_Xapian__ExpandDecider, 0 |  0 );
14922   if (!SWIG_IsOK(res5)) {
14923     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Enquire_get_eset" "', argument " "5"" of type '" "Xapian::ExpandDecider const *""'");
14924   }
14925   arg5 = reinterpret_cast< Xapian::ExpandDecider * >(argp5);
14926   {
14927     try {
14928       result = ((Xapian::Enquire const *)arg1)->get_eset(arg2,(Xapian::RSet const &)*arg3,arg4,(Xapian::ExpandDecider const *)arg5);
14929     } catch (const Xapian::Error &e) {
14930       return XapianTclHandleError(interp, e);
14931     } catch (...) {
14932       return XapianTclHandleError(interp);
14933     }
14934   }
14935   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::ESet(static_cast< const Xapian::ESet& >(result))), SWIGTYPE_p_Xapian__ESet, SWIG_POINTER_OWN | 0 ));
14936   return TCL_OK;
14937 fail:
14938   return TCL_ERROR;
14939 }
14940 
14941 
14942 SWIGINTERN int
_wrap_Enquire_get_eset__SWIG_2(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])14943 _wrap_Enquire_get_eset__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
14944   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
14945   Xapian::termcount arg2 ;
14946   Xapian::RSet *arg3 = 0 ;
14947   int arg4 ;
14948   void *argp1 = 0 ;
14949   int res1 = 0 ;
14950   unsigned int val2 ;
14951   int ecode2 = 0 ;
14952   void *argp3 ;
14953   int res3 = 0 ;
14954   int val4 ;
14955   int ecode4 = 0 ;
14956   Xapian::ESet result;
14957 
14958   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::Enquire_get_eset self maxitems omrset flags ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
14959   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
14960   if (!SWIG_IsOK(res1)) {
14961     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_eset" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
14962   }
14963   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
14964   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
14965   if (!SWIG_IsOK(ecode2)) {
14966     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_get_eset" "', argument " "2"" of type '" "Xapian::termcount""'");
14967   }
14968   arg2 = static_cast< Xapian::termcount >(val2);
14969   res3 = SWIG_ConvertPtr(objv[3], &argp3, SWIGTYPE_p_Xapian__RSet,  0 );
14970   if (!SWIG_IsOK(res3)) {
14971     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
14972   }
14973   if (!argp3) {
14974     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
14975   }
14976   arg3 = reinterpret_cast< Xapian::RSet * >(argp3);
14977   ecode4 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
14978   if (!SWIG_IsOK(ecode4)) {
14979     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Enquire_get_eset" "', argument " "4"" of type '" "int""'");
14980   }
14981   arg4 = static_cast< int >(val4);
14982   {
14983     try {
14984       result = ((Xapian::Enquire const *)arg1)->get_eset(arg2,(Xapian::RSet const &)*arg3,arg4);
14985     } catch (const Xapian::Error &e) {
14986       return XapianTclHandleError(interp, e);
14987     } catch (...) {
14988       return XapianTclHandleError(interp);
14989     }
14990   }
14991   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::ESet(static_cast< const Xapian::ESet& >(result))), SWIGTYPE_p_Xapian__ESet, SWIG_POINTER_OWN | 0 ));
14992   return TCL_OK;
14993 fail:
14994   return TCL_ERROR;
14995 }
14996 
14997 
14998 SWIGINTERN int
_wrap_Enquire_get_eset__SWIG_3(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])14999 _wrap_Enquire_get_eset__SWIG_3(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
15000   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
15001   Xapian::termcount arg2 ;
15002   Xapian::RSet *arg3 = 0 ;
15003   void *argp1 = 0 ;
15004   int res1 = 0 ;
15005   unsigned int val2 ;
15006   int ecode2 = 0 ;
15007   void *argp3 ;
15008   int res3 = 0 ;
15009   Xapian::ESet result;
15010 
15011   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::Enquire_get_eset self maxitems omrset ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
15012   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
15013   if (!SWIG_IsOK(res1)) {
15014     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_eset" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
15015   }
15016   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
15017   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
15018   if (!SWIG_IsOK(ecode2)) {
15019     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_get_eset" "', argument " "2"" of type '" "Xapian::termcount""'");
15020   }
15021   arg2 = static_cast< Xapian::termcount >(val2);
15022   res3 = SWIG_ConvertPtr(objv[3], &argp3, SWIGTYPE_p_Xapian__RSet,  0 );
15023   if (!SWIG_IsOK(res3)) {
15024     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
15025   }
15026   if (!argp3) {
15027     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
15028   }
15029   arg3 = reinterpret_cast< Xapian::RSet * >(argp3);
15030   {
15031     try {
15032       result = ((Xapian::Enquire const *)arg1)->get_eset(arg2,(Xapian::RSet const &)*arg3);
15033     } catch (const Xapian::Error &e) {
15034       return XapianTclHandleError(interp, e);
15035     } catch (...) {
15036       return XapianTclHandleError(interp);
15037     }
15038   }
15039   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::ESet(static_cast< const Xapian::ESet& >(result))), SWIGTYPE_p_Xapian__ESet, SWIG_POINTER_OWN | 0 ));
15040   return TCL_OK;
15041 fail:
15042   return TCL_ERROR;
15043 }
15044 
15045 
15046 SWIGINTERN int
_wrap_Enquire_get_eset__SWIG_4(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])15047 _wrap_Enquire_get_eset__SWIG_4(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
15048   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
15049   Xapian::termcount arg2 ;
15050   Xapian::RSet *arg3 = 0 ;
15051   Xapian::ExpandDecider *arg4 = (Xapian::ExpandDecider *) 0 ;
15052   void *argp1 = 0 ;
15053   int res1 = 0 ;
15054   unsigned int val2 ;
15055   int ecode2 = 0 ;
15056   void *argp3 ;
15057   int res3 = 0 ;
15058   void *argp4 = 0 ;
15059   int res4 = 0 ;
15060   Xapian::ESet result;
15061 
15062   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::Enquire_get_eset self maxitems omrset edecider ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
15063   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
15064   if (!SWIG_IsOK(res1)) {
15065     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_eset" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
15066   }
15067   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
15068   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
15069   if (!SWIG_IsOK(ecode2)) {
15070     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_get_eset" "', argument " "2"" of type '" "Xapian::termcount""'");
15071   }
15072   arg2 = static_cast< Xapian::termcount >(val2);
15073   res3 = SWIG_ConvertPtr(objv[3], &argp3, SWIGTYPE_p_Xapian__RSet,  0 );
15074   if (!SWIG_IsOK(res3)) {
15075     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
15076   }
15077   if (!argp3) {
15078     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
15079   }
15080   arg3 = reinterpret_cast< Xapian::RSet * >(argp3);
15081   res4 = SWIG_ConvertPtr(objv[4], &argp4,SWIGTYPE_p_Xapian__ExpandDecider, 0 |  0 );
15082   if (!SWIG_IsOK(res4)) {
15083     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Enquire_get_eset" "', argument " "4"" of type '" "Xapian::ExpandDecider const *""'");
15084   }
15085   arg4 = reinterpret_cast< Xapian::ExpandDecider * >(argp4);
15086   {
15087     try {
15088       result = ((Xapian::Enquire const *)arg1)->get_eset(arg2,(Xapian::RSet const &)*arg3,(Xapian::ExpandDecider const *)arg4);
15089     } catch (const Xapian::Error &e) {
15090       return XapianTclHandleError(interp, e);
15091     } catch (...) {
15092       return XapianTclHandleError(interp);
15093     }
15094   }
15095   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::ESet(static_cast< const Xapian::ESet& >(result))), SWIGTYPE_p_Xapian__ESet, SWIG_POINTER_OWN | 0 ));
15096   return TCL_OK;
15097 fail:
15098   return TCL_ERROR;
15099 }
15100 
15101 
15102 SWIGINTERN int
_wrap_Enquire_get_eset__SWIG_5(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])15103 _wrap_Enquire_get_eset__SWIG_5(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
15104   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
15105   Xapian::termcount arg2 ;
15106   Xapian::RSet *arg3 = 0 ;
15107   int arg4 ;
15108   double arg5 ;
15109   Xapian::ExpandDecider *arg6 = (Xapian::ExpandDecider *) 0 ;
15110   double arg7 ;
15111   void *argp1 = 0 ;
15112   int res1 = 0 ;
15113   unsigned int val2 ;
15114   int ecode2 = 0 ;
15115   void *argp3 ;
15116   int res3 = 0 ;
15117   int val4 ;
15118   int ecode4 = 0 ;
15119   double val5 ;
15120   int ecode5 = 0 ;
15121   void *argp6 = 0 ;
15122   int res6 = 0 ;
15123   double val7 ;
15124   int ecode7 = 0 ;
15125   Xapian::ESet result;
15126 
15127   if (SWIG_GetArgs(interp, objc, objv,"ooooooo:xapian::Enquire_get_eset self maxitems rset flags k edecider min_wt ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
15128   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
15129   if (!SWIG_IsOK(res1)) {
15130     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_eset" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
15131   }
15132   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
15133   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
15134   if (!SWIG_IsOK(ecode2)) {
15135     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_get_eset" "', argument " "2"" of type '" "Xapian::termcount""'");
15136   }
15137   arg2 = static_cast< Xapian::termcount >(val2);
15138   res3 = SWIG_ConvertPtr(objv[3], &argp3, SWIGTYPE_p_Xapian__RSet,  0 );
15139   if (!SWIG_IsOK(res3)) {
15140     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
15141   }
15142   if (!argp3) {
15143     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
15144   }
15145   arg3 = reinterpret_cast< Xapian::RSet * >(argp3);
15146   ecode4 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
15147   if (!SWIG_IsOK(ecode4)) {
15148     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Enquire_get_eset" "', argument " "4"" of type '" "int""'");
15149   }
15150   arg4 = static_cast< int >(val4);
15151   ecode5 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
15152   if (!SWIG_IsOK(ecode5)) {
15153     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Enquire_get_eset" "', argument " "5"" of type '" "double""'");
15154   }
15155   arg5 = static_cast< double >(val5);
15156   res6 = SWIG_ConvertPtr(objv[6], &argp6,SWIGTYPE_p_Xapian__ExpandDecider, 0 |  0 );
15157   if (!SWIG_IsOK(res6)) {
15158     SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "Enquire_get_eset" "', argument " "6"" of type '" "Xapian::ExpandDecider const *""'");
15159   }
15160   arg6 = reinterpret_cast< Xapian::ExpandDecider * >(argp6);
15161   ecode7 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[7], &val7);
15162   if (!SWIG_IsOK(ecode7)) {
15163     SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Enquire_get_eset" "', argument " "7"" of type '" "double""'");
15164   }
15165   arg7 = static_cast< double >(val7);
15166   {
15167     try {
15168       result = ((Xapian::Enquire const *)arg1)->get_eset(arg2,(Xapian::RSet const &)*arg3,arg4,arg5,(Xapian::ExpandDecider const *)arg6,arg7);
15169     } catch (const Xapian::Error &e) {
15170       return XapianTclHandleError(interp, e);
15171     } catch (...) {
15172       return XapianTclHandleError(interp);
15173     }
15174   }
15175   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::ESet(static_cast< const Xapian::ESet& >(result))), SWIGTYPE_p_Xapian__ESet, SWIG_POINTER_OWN | 0 ));
15176   return TCL_OK;
15177 fail:
15178   return TCL_ERROR;
15179 }
15180 
15181 
15182 SWIGINTERN int
_wrap_Enquire_get_eset__SWIG_6(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])15183 _wrap_Enquire_get_eset__SWIG_6(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
15184   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
15185   Xapian::termcount arg2 ;
15186   Xapian::RSet *arg3 = 0 ;
15187   int arg4 ;
15188   double arg5 ;
15189   Xapian::ExpandDecider *arg6 = (Xapian::ExpandDecider *) 0 ;
15190   void *argp1 = 0 ;
15191   int res1 = 0 ;
15192   unsigned int val2 ;
15193   int ecode2 = 0 ;
15194   void *argp3 ;
15195   int res3 = 0 ;
15196   int val4 ;
15197   int ecode4 = 0 ;
15198   double val5 ;
15199   int ecode5 = 0 ;
15200   void *argp6 = 0 ;
15201   int res6 = 0 ;
15202   Xapian::ESet result;
15203 
15204   if (SWIG_GetArgs(interp, objc, objv,"oooooo:xapian::Enquire_get_eset self maxitems rset flags k edecider ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
15205   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
15206   if (!SWIG_IsOK(res1)) {
15207     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_eset" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
15208   }
15209   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
15210   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
15211   if (!SWIG_IsOK(ecode2)) {
15212     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_get_eset" "', argument " "2"" of type '" "Xapian::termcount""'");
15213   }
15214   arg2 = static_cast< Xapian::termcount >(val2);
15215   res3 = SWIG_ConvertPtr(objv[3], &argp3, SWIGTYPE_p_Xapian__RSet,  0 );
15216   if (!SWIG_IsOK(res3)) {
15217     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
15218   }
15219   if (!argp3) {
15220     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
15221   }
15222   arg3 = reinterpret_cast< Xapian::RSet * >(argp3);
15223   ecode4 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
15224   if (!SWIG_IsOK(ecode4)) {
15225     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Enquire_get_eset" "', argument " "4"" of type '" "int""'");
15226   }
15227   arg4 = static_cast< int >(val4);
15228   ecode5 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
15229   if (!SWIG_IsOK(ecode5)) {
15230     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Enquire_get_eset" "', argument " "5"" of type '" "double""'");
15231   }
15232   arg5 = static_cast< double >(val5);
15233   res6 = SWIG_ConvertPtr(objv[6], &argp6,SWIGTYPE_p_Xapian__ExpandDecider, 0 |  0 );
15234   if (!SWIG_IsOK(res6)) {
15235     SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "Enquire_get_eset" "', argument " "6"" of type '" "Xapian::ExpandDecider const *""'");
15236   }
15237   arg6 = reinterpret_cast< Xapian::ExpandDecider * >(argp6);
15238   {
15239     try {
15240       result = ((Xapian::Enquire const *)arg1)->get_eset(arg2,(Xapian::RSet const &)*arg3,arg4,arg5,(Xapian::ExpandDecider const *)arg6);
15241     } catch (const Xapian::Error &e) {
15242       return XapianTclHandleError(interp, e);
15243     } catch (...) {
15244       return XapianTclHandleError(interp);
15245     }
15246   }
15247   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::ESet(static_cast< const Xapian::ESet& >(result))), SWIGTYPE_p_Xapian__ESet, SWIG_POINTER_OWN | 0 ));
15248   return TCL_OK;
15249 fail:
15250   return TCL_ERROR;
15251 }
15252 
15253 
15254 SWIGINTERN int
_wrap_Enquire_get_eset__SWIG_7(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])15255 _wrap_Enquire_get_eset__SWIG_7(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
15256   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
15257   Xapian::termcount arg2 ;
15258   Xapian::RSet *arg3 = 0 ;
15259   int arg4 ;
15260   double arg5 ;
15261   void *argp1 = 0 ;
15262   int res1 = 0 ;
15263   unsigned int val2 ;
15264   int ecode2 = 0 ;
15265   void *argp3 ;
15266   int res3 = 0 ;
15267   int val4 ;
15268   int ecode4 = 0 ;
15269   double val5 ;
15270   int ecode5 = 0 ;
15271   Xapian::ESet result;
15272 
15273   if (SWIG_GetArgs(interp, objc, objv,"ooooo:xapian::Enquire_get_eset self maxitems rset flags k ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
15274   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
15275   if (!SWIG_IsOK(res1)) {
15276     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_eset" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
15277   }
15278   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
15279   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
15280   if (!SWIG_IsOK(ecode2)) {
15281     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_get_eset" "', argument " "2"" of type '" "Xapian::termcount""'");
15282   }
15283   arg2 = static_cast< Xapian::termcount >(val2);
15284   res3 = SWIG_ConvertPtr(objv[3], &argp3, SWIGTYPE_p_Xapian__RSet,  0 );
15285   if (!SWIG_IsOK(res3)) {
15286     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
15287   }
15288   if (!argp3) {
15289     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
15290   }
15291   arg3 = reinterpret_cast< Xapian::RSet * >(argp3);
15292   ecode4 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
15293   if (!SWIG_IsOK(ecode4)) {
15294     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Enquire_get_eset" "', argument " "4"" of type '" "int""'");
15295   }
15296   arg4 = static_cast< int >(val4);
15297   ecode5 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
15298   if (!SWIG_IsOK(ecode5)) {
15299     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Enquire_get_eset" "', argument " "5"" of type '" "double""'");
15300   }
15301   arg5 = static_cast< double >(val5);
15302   {
15303     try {
15304       result = ((Xapian::Enquire const *)arg1)->get_eset(arg2,(Xapian::RSet const &)*arg3,arg4,arg5);
15305     } catch (const Xapian::Error &e) {
15306       return XapianTclHandleError(interp, e);
15307     } catch (...) {
15308       return XapianTclHandleError(interp);
15309     }
15310   }
15311   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::ESet(static_cast< const Xapian::ESet& >(result))), SWIGTYPE_p_Xapian__ESet, SWIG_POINTER_OWN | 0 ));
15312   return TCL_OK;
15313 fail:
15314   return TCL_ERROR;
15315 }
15316 
15317 
15318 SWIGINTERN int
_wrap_Enquire_get_eset(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])15319 _wrap_Enquire_get_eset(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
15320   Tcl_Obj *CONST *argv = objv+1;
15321   int argc = objc-1;
15322   if (argc == 3) {
15323     int _v;
15324     void *vptr = 0;
15325     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Enquire, 0);
15326     _v = SWIG_CheckState(res);
15327     if (_v) {
15328       {
15329         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
15330         _v = SWIG_CheckState(res);
15331       }
15332       if (_v) {
15333         void *vptr = 0;
15334         int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_Xapian__RSet, 0);
15335         _v = SWIG_CheckState(res);
15336         if (_v) {
15337           return _wrap_Enquire_get_eset__SWIG_3(clientData, interp, objc, argv - 1);
15338         }
15339       }
15340     }
15341   }
15342   if (argc == 4) {
15343     int _v;
15344     void *vptr = 0;
15345     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Enquire, 0);
15346     _v = SWIG_CheckState(res);
15347     if (_v) {
15348       {
15349         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
15350         _v = SWIG_CheckState(res);
15351       }
15352       if (_v) {
15353         void *vptr = 0;
15354         int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_Xapian__RSet, 0);
15355         _v = SWIG_CheckState(res);
15356         if (_v) {
15357           void *vptr = 0;
15358           int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_Xapian__ExpandDecider, 0);
15359           _v = SWIG_CheckState(res);
15360           if (_v) {
15361             return _wrap_Enquire_get_eset__SWIG_4(clientData, interp, objc, argv - 1);
15362           }
15363         }
15364       }
15365     }
15366   }
15367   if (argc == 4) {
15368     int _v;
15369     void *vptr = 0;
15370     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Enquire, 0);
15371     _v = SWIG_CheckState(res);
15372     if (_v) {
15373       {
15374         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
15375         _v = SWIG_CheckState(res);
15376       }
15377       if (_v) {
15378         void *vptr = 0;
15379         int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_Xapian__RSet, 0);
15380         _v = SWIG_CheckState(res);
15381         if (_v) {
15382           {
15383             int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
15384             _v = SWIG_CheckState(res);
15385           }
15386           if (_v) {
15387             return _wrap_Enquire_get_eset__SWIG_2(clientData, interp, objc, argv - 1);
15388           }
15389         }
15390       }
15391     }
15392   }
15393   if (argc == 5) {
15394     int _v;
15395     void *vptr = 0;
15396     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Enquire, 0);
15397     _v = SWIG_CheckState(res);
15398     if (_v) {
15399       {
15400         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
15401         _v = SWIG_CheckState(res);
15402       }
15403       if (_v) {
15404         void *vptr = 0;
15405         int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_Xapian__RSet, 0);
15406         _v = SWIG_CheckState(res);
15407         if (_v) {
15408           {
15409             int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
15410             _v = SWIG_CheckState(res);
15411           }
15412           if (_v) {
15413             void *vptr = 0;
15414             int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_Xapian__ExpandDecider, 0);
15415             _v = SWIG_CheckState(res);
15416             if (_v) {
15417               return _wrap_Enquire_get_eset__SWIG_1(clientData, interp, objc, argv - 1);
15418             }
15419           }
15420         }
15421       }
15422     }
15423   }
15424   if (argc == 5) {
15425     int _v;
15426     void *vptr = 0;
15427     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Enquire, 0);
15428     _v = SWIG_CheckState(res);
15429     if (_v) {
15430       {
15431         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
15432         _v = SWIG_CheckState(res);
15433       }
15434       if (_v) {
15435         void *vptr = 0;
15436         int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_Xapian__RSet, 0);
15437         _v = SWIG_CheckState(res);
15438         if (_v) {
15439           {
15440             int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
15441             _v = SWIG_CheckState(res);
15442           }
15443           if (_v) {
15444             {
15445               int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[4], NULL);
15446               _v = SWIG_CheckState(res);
15447             }
15448             if (_v) {
15449               return _wrap_Enquire_get_eset__SWIG_7(clientData, interp, objc, argv - 1);
15450             }
15451           }
15452         }
15453       }
15454     }
15455   }
15456   if (argc == 6) {
15457     int _v;
15458     void *vptr = 0;
15459     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Enquire, 0);
15460     _v = SWIG_CheckState(res);
15461     if (_v) {
15462       {
15463         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
15464         _v = SWIG_CheckState(res);
15465       }
15466       if (_v) {
15467         void *vptr = 0;
15468         int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_Xapian__RSet, 0);
15469         _v = SWIG_CheckState(res);
15470         if (_v) {
15471           {
15472             int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
15473             _v = SWIG_CheckState(res);
15474           }
15475           if (_v) {
15476             void *vptr = 0;
15477             int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_Xapian__ExpandDecider, 0);
15478             _v = SWIG_CheckState(res);
15479             if (_v) {
15480               {
15481                 int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[5], NULL);
15482                 _v = SWIG_CheckState(res);
15483               }
15484               if (_v) {
15485                 return _wrap_Enquire_get_eset__SWIG_0(clientData, interp, objc, argv - 1);
15486               }
15487             }
15488           }
15489         }
15490       }
15491     }
15492   }
15493   if (argc == 6) {
15494     int _v;
15495     void *vptr = 0;
15496     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Enquire, 0);
15497     _v = SWIG_CheckState(res);
15498     if (_v) {
15499       {
15500         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
15501         _v = SWIG_CheckState(res);
15502       }
15503       if (_v) {
15504         void *vptr = 0;
15505         int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_Xapian__RSet, 0);
15506         _v = SWIG_CheckState(res);
15507         if (_v) {
15508           {
15509             int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
15510             _v = SWIG_CheckState(res);
15511           }
15512           if (_v) {
15513             {
15514               int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[4], NULL);
15515               _v = SWIG_CheckState(res);
15516             }
15517             if (_v) {
15518               void *vptr = 0;
15519               int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_Xapian__ExpandDecider, 0);
15520               _v = SWIG_CheckState(res);
15521               if (_v) {
15522                 return _wrap_Enquire_get_eset__SWIG_6(clientData, interp, objc, argv - 1);
15523               }
15524             }
15525           }
15526         }
15527       }
15528     }
15529   }
15530   if (argc == 7) {
15531     int _v;
15532     void *vptr = 0;
15533     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Enquire, 0);
15534     _v = SWIG_CheckState(res);
15535     if (_v) {
15536       {
15537         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
15538         _v = SWIG_CheckState(res);
15539       }
15540       if (_v) {
15541         void *vptr = 0;
15542         int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_Xapian__RSet, 0);
15543         _v = SWIG_CheckState(res);
15544         if (_v) {
15545           {
15546             int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
15547             _v = SWIG_CheckState(res);
15548           }
15549           if (_v) {
15550             {
15551               int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[4], NULL);
15552               _v = SWIG_CheckState(res);
15553             }
15554             if (_v) {
15555               void *vptr = 0;
15556               int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_Xapian__ExpandDecider, 0);
15557               _v = SWIG_CheckState(res);
15558               if (_v) {
15559                 {
15560                   int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[6], NULL);
15561                   _v = SWIG_CheckState(res);
15562                 }
15563                 if (_v) {
15564                   return _wrap_Enquire_get_eset__SWIG_5(clientData, interp, objc, argv - 1);
15565                 }
15566               }
15567             }
15568           }
15569         }
15570       }
15571     }
15572   }
15573 
15574   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'Enquire_get_eset'.\n"
15575     "  Possible C/C++ prototypes are:\n"
15576     "    Xapian::Enquire::get_eset(Xapian::termcount,Xapian::RSet const &,int,Xapian::ExpandDecider const *,double) const\n"
15577     "    Xapian::Enquire::get_eset(Xapian::termcount,Xapian::RSet const &,int,Xapian::ExpandDecider const *) const\n"
15578     "    Xapian::Enquire::get_eset(Xapian::termcount,Xapian::RSet const &,int) const\n"
15579     "    Xapian::Enquire::get_eset(Xapian::termcount,Xapian::RSet const &) const\n"
15580     "    Xapian::Enquire::get_eset(Xapian::termcount,Xapian::RSet const &,Xapian::ExpandDecider const *) const\n"
15581     "    Xapian::Enquire::get_eset(Xapian::termcount,Xapian::RSet const &,int,double,Xapian::ExpandDecider const *,double) const\n"
15582     "    Xapian::Enquire::get_eset(Xapian::termcount,Xapian::RSet const &,int,double,Xapian::ExpandDecider const *) const\n"
15583     "    Xapian::Enquire::get_eset(Xapian::termcount,Xapian::RSet const &,int,double) const\n", TCL_STATIC);
15584   return TCL_ERROR;
15585 }
15586 
15587 
15588 SWIGINTERN int
_wrap_Enquire_get_matching_terms_begin__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])15589 _wrap_Enquire_get_matching_terms_begin__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
15590   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
15591   Xapian::docid arg2 ;
15592   void *argp1 = 0 ;
15593   int res1 = 0 ;
15594   unsigned int val2 ;
15595   int ecode2 = 0 ;
15596   Xapian::TermIterator result;
15597 
15598   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Enquire_get_matching_terms_begin self did ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
15599   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
15600   if (!SWIG_IsOK(res1)) {
15601     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_matching_terms_begin" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
15602   }
15603   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
15604   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
15605   if (!SWIG_IsOK(ecode2)) {
15606     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_get_matching_terms_begin" "', argument " "2"" of type '" "Xapian::docid""'");
15607   }
15608   arg2 = static_cast< Xapian::docid >(val2);
15609   {
15610     try {
15611       result = ((Xapian::Enquire const *)arg1)->get_matching_terms_begin(arg2);
15612     } catch (const Xapian::Error &e) {
15613       return XapianTclHandleError(interp, e);
15614     } catch (...) {
15615       return XapianTclHandleError(interp);
15616     }
15617   }
15618   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN | 0 ));
15619   return TCL_OK;
15620 fail:
15621   return TCL_ERROR;
15622 }
15623 
15624 
15625 SWIGINTERN int
_wrap_Enquire_get_matching_terms_end__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])15626 _wrap_Enquire_get_matching_terms_end__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
15627   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
15628   Xapian::docid arg2 ;
15629   void *argp1 = 0 ;
15630   int res1 = 0 ;
15631   unsigned int val2 ;
15632   int ecode2 = 0 ;
15633   Xapian::TermIterator result;
15634 
15635   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Enquire_get_matching_terms_end self Xapian::docid ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
15636   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
15637   if (!SWIG_IsOK(res1)) {
15638     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_matching_terms_end" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
15639   }
15640   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
15641   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
15642   if (!SWIG_IsOK(ecode2)) {
15643     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_get_matching_terms_end" "', argument " "2"" of type '" "Xapian::docid""'");
15644   }
15645   arg2 = static_cast< Xapian::docid >(val2);
15646   {
15647     try {
15648       result = ((Xapian::Enquire const *)arg1)->get_matching_terms_end(arg2);
15649     } catch (const Xapian::Error &e) {
15650       return XapianTclHandleError(interp, e);
15651     } catch (...) {
15652       return XapianTclHandleError(interp);
15653     }
15654   }
15655   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN | 0 ));
15656   return TCL_OK;
15657 fail:
15658   return TCL_ERROR;
15659 }
15660 
15661 
15662 SWIGINTERN int
_wrap_Enquire_get_matching_terms_begin__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])15663 _wrap_Enquire_get_matching_terms_begin__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
15664   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
15665   Xapian::MSetIterator *arg2 = 0 ;
15666   void *argp1 = 0 ;
15667   int res1 = 0 ;
15668   void *argp2 ;
15669   int res2 = 0 ;
15670   Xapian::TermIterator result;
15671 
15672   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Enquire_get_matching_terms_begin self it ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
15673   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
15674   if (!SWIG_IsOK(res1)) {
15675     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_matching_terms_begin" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
15676   }
15677   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
15678   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0 );
15679   if (!SWIG_IsOK(res2)) {
15680     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Enquire_get_matching_terms_begin" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
15681   }
15682   if (!argp2) {
15683     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire_get_matching_terms_begin" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
15684   }
15685   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
15686   {
15687     try {
15688       result = ((Xapian::Enquire const *)arg1)->get_matching_terms_begin((Xapian::MSetIterator const &)*arg2);
15689     } catch (const Xapian::Error &e) {
15690       return XapianTclHandleError(interp, e);
15691     } catch (...) {
15692       return XapianTclHandleError(interp);
15693     }
15694   }
15695   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN | 0 ));
15696   return TCL_OK;
15697 fail:
15698   return TCL_ERROR;
15699 }
15700 
15701 
15702 SWIGINTERN int
_wrap_Enquire_get_matching_terms_begin(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])15703 _wrap_Enquire_get_matching_terms_begin(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
15704   Tcl_Obj *CONST *argv = objv+1;
15705   int argc = objc-1;
15706   if (argc == 2) {
15707     int _v;
15708     void *vptr = 0;
15709     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Enquire, 0);
15710     _v = SWIG_CheckState(res);
15711     if (_v) {
15712       void *vptr = 0;
15713       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Xapian__MSetIterator, 0);
15714       _v = SWIG_CheckState(res);
15715       if (_v) {
15716         return _wrap_Enquire_get_matching_terms_begin__SWIG_1(clientData, interp, objc, argv - 1);
15717       }
15718     }
15719   }
15720   if (argc == 2) {
15721     int _v;
15722     void *vptr = 0;
15723     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Enquire, 0);
15724     _v = SWIG_CheckState(res);
15725     if (_v) {
15726       {
15727         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
15728         _v = SWIG_CheckState(res);
15729       }
15730       if (_v) {
15731         return _wrap_Enquire_get_matching_terms_begin__SWIG_0(clientData, interp, objc, argv - 1);
15732       }
15733     }
15734   }
15735 
15736   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'Enquire_get_matching_terms_begin'.\n"
15737     "  Possible C/C++ prototypes are:\n"
15738     "    Xapian::Enquire::get_matching_terms_begin(Xapian::docid) const\n"
15739     "    Xapian::Enquire::get_matching_terms_begin(Xapian::MSetIterator const &) const\n", TCL_STATIC);
15740   return TCL_ERROR;
15741 }
15742 
15743 
15744 SWIGINTERN int
_wrap_Enquire_get_matching_terms_end__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])15745 _wrap_Enquire_get_matching_terms_end__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
15746   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
15747   Xapian::MSetIterator *arg2 = 0 ;
15748   void *argp1 = 0 ;
15749   int res1 = 0 ;
15750   void *argp2 ;
15751   int res2 = 0 ;
15752   Xapian::TermIterator result;
15753 
15754   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Enquire_get_matching_terms_end self Xapian::MSetIterator const & ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
15755   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
15756   if (!SWIG_IsOK(res1)) {
15757     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_matching_terms_end" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
15758   }
15759   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
15760   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0 );
15761   if (!SWIG_IsOK(res2)) {
15762     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Enquire_get_matching_terms_end" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
15763   }
15764   if (!argp2) {
15765     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire_get_matching_terms_end" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
15766   }
15767   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
15768   {
15769     try {
15770       result = ((Xapian::Enquire const *)arg1)->get_matching_terms_end((Xapian::MSetIterator const &)*arg2);
15771     } catch (const Xapian::Error &e) {
15772       return XapianTclHandleError(interp, e);
15773     } catch (...) {
15774       return XapianTclHandleError(interp);
15775     }
15776   }
15777   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN | 0 ));
15778   return TCL_OK;
15779 fail:
15780   return TCL_ERROR;
15781 }
15782 
15783 
15784 SWIGINTERN int
_wrap_Enquire_get_matching_terms_end(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])15785 _wrap_Enquire_get_matching_terms_end(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
15786   Tcl_Obj *CONST *argv = objv+1;
15787   int argc = objc-1;
15788   if (argc == 2) {
15789     int _v;
15790     void *vptr = 0;
15791     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Enquire, 0);
15792     _v = SWIG_CheckState(res);
15793     if (_v) {
15794       void *vptr = 0;
15795       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Xapian__MSetIterator, 0);
15796       _v = SWIG_CheckState(res);
15797       if (_v) {
15798         return _wrap_Enquire_get_matching_terms_end__SWIG_1(clientData, interp, objc, argv - 1);
15799       }
15800     }
15801   }
15802   if (argc == 2) {
15803     int _v;
15804     void *vptr = 0;
15805     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Enquire, 0);
15806     _v = SWIG_CheckState(res);
15807     if (_v) {
15808       {
15809         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
15810         _v = SWIG_CheckState(res);
15811       }
15812       if (_v) {
15813         return _wrap_Enquire_get_matching_terms_end__SWIG_0(clientData, interp, objc, argv - 1);
15814       }
15815     }
15816   }
15817 
15818   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'Enquire_get_matching_terms_end'.\n"
15819     "  Possible C/C++ prototypes are:\n"
15820     "    Xapian::Enquire::get_matching_terms_end(Xapian::docid) const\n"
15821     "    Xapian::Enquire::get_matching_terms_end(Xapian::MSetIterator const &) const\n", TCL_STATIC);
15822   return TCL_ERROR;
15823 }
15824 
15825 
15826 SWIGINTERN int
_wrap_Enquire_get_description(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])15827 _wrap_Enquire_get_description(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
15828   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
15829   void *argp1 = 0 ;
15830   int res1 = 0 ;
15831   std::string result;
15832 
15833   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Enquire_get_description self ",(void *)0) == TCL_ERROR) SWIG_fail;
15834   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
15835   if (!SWIG_IsOK(res1)) {
15836     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_description" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
15837   }
15838   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
15839   {
15840     try {
15841       result = ((Xapian::Enquire const *)arg1)->get_description();
15842     } catch (const Xapian::Error &e) {
15843       return XapianTclHandleError(interp, e);
15844     } catch (...) {
15845       return XapianTclHandleError(interp);
15846     }
15847   }
15848   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
15849   return TCL_OK;
15850 fail:
15851   return TCL_ERROR;
15852 }
15853 
15854 
15855 SWIGINTERN int
_wrap_Enquire_get_matching_terms(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])15856 _wrap_Enquire_get_matching_terms(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
15857   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
15858   Xapian::MSetIterator *arg2 = 0 ;
15859   void *argp1 = 0 ;
15860   int res1 = 0 ;
15861   void *argp2 ;
15862   int res2 = 0 ;
15863   std::pair< Xapian::TermIterator,Xapian::TermIterator > result;
15864 
15865   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Enquire_get_matching_terms self item ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
15866   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
15867   if (!SWIG_IsOK(res1)) {
15868     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_matching_terms" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
15869   }
15870   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
15871   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0 );
15872   if (!SWIG_IsOK(res2)) {
15873     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Enquire_get_matching_terms" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
15874   }
15875   if (!argp2) {
15876     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire_get_matching_terms" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
15877   }
15878   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
15879   {
15880     try {
15881       result = Xapian_Enquire_get_matching_terms((Xapian::Enquire const *)arg1,(Xapian::MSetIterator const &)*arg2);
15882     } catch (const Xapian::Error &e) {
15883       return XapianTclHandleError(interp, e);
15884     } catch (...) {
15885       return XapianTclHandleError(interp);
15886     }
15887   }
15888   {
15889     Tcl_Obj * list = Tcl_NewListObj(0, NULL);
15890 
15891     for (Xapian::TermIterator i = (&result)->first; i != (&result)->second; ++i) {
15892       Tcl_Obj * str = Tcl_NewStringObj((*i).data(), (*i).length());
15893       if (Tcl_ListObjAppendElement(interp, list, str) != TCL_OK)
15894       return TCL_ERROR;
15895     }
15896     Tcl_SetObjResult(interp, list);
15897   }
15898   return TCL_OK;
15899 fail:
15900   return TCL_ERROR;
15901 }
15902 
15903 
swig_delete_Enquire(void * obj)15904 SWIGINTERN void swig_delete_Enquire(void *obj) {
15905 Xapian::Enquire *arg1 = (Xapian::Enquire *) obj;
15906 delete arg1;
15907 }
15908 static swig_method swig_Xapian_Enquire_methods[] = {
15909     {"set_query", _wrap_Enquire_set_query},
15910     {"get_query", _wrap_Enquire_get_query},
15911     {"add_matchspy", _wrap_Enquire_add_matchspy},
15912     {"clear_matchspies", _wrap_Enquire_clear_matchspies},
15913     {"set_weighting_scheme", _wrap_Enquire_set_weighting_scheme},
15914     {"set_expansion_scheme", _wrap_Enquire_set_expansion_scheme},
15915     {"set_collapse_key", _wrap_Enquire_set_collapse_key},
15916     {"set_docid_order", _wrap_Enquire_set_docid_order},
15917     {"set_cutoff", _wrap_Enquire_set_cutoff},
15918     {"set_sort_by_relevance", _wrap_Enquire_set_sort_by_relevance},
15919     {"set_sort_by_value", _wrap_Enquire_set_sort_by_value},
15920     {"set_sort_by_key", _wrap_Enquire_set_sort_by_key},
15921     {"set_sort_by_value_then_relevance", _wrap_Enquire_set_sort_by_value_then_relevance},
15922     {"set_sort_by_key_then_relevance", _wrap_Enquire_set_sort_by_key_then_relevance},
15923     {"set_sort_by_relevance_then_value", _wrap_Enquire_set_sort_by_relevance_then_value},
15924     {"set_sort_by_relevance_then_key", _wrap_Enquire_set_sort_by_relevance_then_key},
15925     {"set_time_limit", _wrap_Enquire_set_time_limit},
15926     {"get_mset", _wrap_Enquire_get_mset},
15927     {"get_eset", _wrap_Enquire_get_eset},
15928     {"get_matching_terms_begin", _wrap_Enquire_get_matching_terms_begin},
15929     {"get_matching_terms_end", _wrap_Enquire_get_matching_terms_end},
15930     {"get_description", _wrap_Enquire_get_description},
15931     {"get_matching_terms", _wrap_Enquire_get_matching_terms},
15932     {0,0}
15933 };
15934 static swig_attribute swig_Xapian_Enquire_attributes[] = {
15935     {0,0,0}
15936 };
15937 static swig_class *swig_Xapian_Enquire_bases[] = {0};
15938 static const char * swig_Xapian_Enquire_base_names[] = {0};
15939 static swig_class _wrap_class_Xapian_Enquire = { "Enquire", &SWIGTYPE_p_Xapian__Enquire,_wrap_new_Enquire, swig_delete_Enquire, swig_Xapian_Enquire_methods, swig_Xapian_Enquire_attributes, swig_Xapian_Enquire_bases,swig_Xapian_Enquire_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
15940 SWIGINTERN int
_wrap_ExpandDecider_apply(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])15941 _wrap_ExpandDecider_apply(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
15942   Xapian::ExpandDecider *arg1 = (Xapian::ExpandDecider *) 0 ;
15943   std::string *arg2 = 0 ;
15944   void *argp1 = 0 ;
15945   int res1 = 0 ;
15946   int res2 = SWIG_OLDOBJ ;
15947   bool result;
15948 
15949   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::ExpandDecider_apply self term ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
15950   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ExpandDecider, 0 |  0 );
15951   if (!SWIG_IsOK(res1)) {
15952     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ExpandDecider_apply" "', argument " "1"" of type '" "Xapian::ExpandDecider const *""'");
15953   }
15954   arg1 = reinterpret_cast< Xapian::ExpandDecider * >(argp1);
15955   {
15956     std::string *ptr = (std::string *)0;
15957     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
15958     if (!SWIG_IsOK(res2)) {
15959       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ExpandDecider_apply" "', argument " "2"" of type '" "std::string const &""'");
15960     }
15961     if (!ptr) {
15962       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ExpandDecider_apply" "', argument " "2"" of type '" "std::string const &""'");
15963     }
15964     arg2 = ptr;
15965   }
15966   {
15967     try {
15968       result = (bool)((Xapian::ExpandDecider const *)arg1)->operator ()((std::string const &)*arg2);
15969     } catch (const Xapian::Error &e) {
15970       return XapianTclHandleError(interp, e);
15971     } catch (...) {
15972       return XapianTclHandleError(interp);
15973     }
15974   }
15975   Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
15976   if (SWIG_IsNewObj(res2)) delete arg2;
15977   return TCL_OK;
15978 fail:
15979   if (SWIG_IsNewObj(res2)) delete arg2;
15980   return TCL_ERROR;
15981 }
15982 
15983 
15984 SWIGINTERN int
_wrap_delete_ExpandDecider(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])15985 _wrap_delete_ExpandDecider(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
15986   Xapian::ExpandDecider *arg1 = (Xapian::ExpandDecider *) 0 ;
15987   void *argp1 = 0 ;
15988   int res1 = 0 ;
15989 
15990   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_ExpandDecider self ",(void *)0) == TCL_ERROR) SWIG_fail;
15991   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ExpandDecider, SWIG_POINTER_DISOWN |  0 );
15992   if (!SWIG_IsOK(res1)) {
15993     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ExpandDecider" "', argument " "1"" of type '" "Xapian::ExpandDecider *""'");
15994   }
15995   arg1 = reinterpret_cast< Xapian::ExpandDecider * >(argp1);
15996   {
15997     try {
15998       delete arg1;
15999     } catch (const Xapian::Error &e) {
16000       return XapianTclHandleError(interp, e);
16001     } catch (...) {
16002       return XapianTclHandleError(interp);
16003     }
16004   }
16005 
16006   return TCL_OK;
16007 fail:
16008   return TCL_ERROR;
16009 }
16010 
16011 
16012 SWIGINTERN int
_wrap_ExpandDecider_release(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])16013 _wrap_ExpandDecider_release(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
16014   Xapian::ExpandDecider *arg1 = (Xapian::ExpandDecider *) 0 ;
16015   void *argp1 = 0 ;
16016   int res1 = 0 ;
16017   Xapian::ExpandDecider *result = 0 ;
16018 
16019   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::ExpandDecider_release self ",(void *)0) == TCL_ERROR) SWIG_fail;
16020   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ExpandDecider, 0 |  0 );
16021   if (!SWIG_IsOK(res1)) {
16022     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ExpandDecider_release" "', argument " "1"" of type '" "Xapian::ExpandDecider const *""'");
16023   }
16024   arg1 = reinterpret_cast< Xapian::ExpandDecider * >(argp1);
16025   {
16026     try {
16027       result = (Xapian::ExpandDecider *)((Xapian::ExpandDecider const *)arg1)->release();
16028     } catch (const Xapian::Error &e) {
16029       return XapianTclHandleError(interp, e);
16030     } catch (...) {
16031       return XapianTclHandleError(interp);
16032     }
16033   }
16034   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ExpandDecider,0));
16035   return TCL_OK;
16036 fail:
16037   return TCL_ERROR;
16038 }
16039 
16040 
swig_delete_ExpandDecider(void * obj)16041 SWIGINTERN void swig_delete_ExpandDecider(void *obj) {
16042 Xapian::ExpandDecider *arg1 = (Xapian::ExpandDecider *) obj;
16043 delete arg1;
16044 }
16045 static swig_method swig_Xapian_ExpandDecider_methods[] = {
16046     {"apply", _wrap_ExpandDecider_apply},
16047     {"release", _wrap_ExpandDecider_release},
16048     {0,0}
16049 };
16050 static swig_attribute swig_Xapian_ExpandDecider_attributes[] = {
16051     {0,0,0}
16052 };
16053 static swig_class *swig_Xapian_ExpandDecider_bases[] = {0};
16054 static const char * swig_Xapian_ExpandDecider_base_names[] = {0};
16055 static swig_class _wrap_class_Xapian_ExpandDecider = { "ExpandDecider", &SWIGTYPE_p_Xapian__ExpandDecider,0, swig_delete_ExpandDecider, swig_Xapian_ExpandDecider_methods, swig_Xapian_ExpandDecider_attributes, swig_Xapian_ExpandDecider_bases,swig_Xapian_ExpandDecider_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
16056 SWIGINTERN int
_wrap_new_ExpandDeciderAnd(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])16057 _wrap_new_ExpandDeciderAnd(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
16058   Xapian::ExpandDecider *arg1 = 0 ;
16059   Xapian::ExpandDecider *arg2 = 0 ;
16060   void *argp1 ;
16061   int res1 = 0 ;
16062   void *argp2 ;
16063   int res2 = 0 ;
16064   Xapian::ExpandDeciderAnd *result = 0 ;
16065 
16066   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::new_ExpandDeciderAnd first_ second_ ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
16067   res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_Xapian__ExpandDecider,  0 );
16068   if (!SWIG_IsOK(res1)) {
16069     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ExpandDeciderAnd" "', argument " "1"" of type '" "Xapian::ExpandDecider const &""'");
16070   }
16071   if (!argp1) {
16072     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ExpandDeciderAnd" "', argument " "1"" of type '" "Xapian::ExpandDecider const &""'");
16073   }
16074   arg1 = reinterpret_cast< Xapian::ExpandDecider * >(argp1);
16075   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__ExpandDecider,  0 );
16076   if (!SWIG_IsOK(res2)) {
16077     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ExpandDeciderAnd" "', argument " "2"" of type '" "Xapian::ExpandDecider const &""'");
16078   }
16079   if (!argp2) {
16080     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ExpandDeciderAnd" "', argument " "2"" of type '" "Xapian::ExpandDecider const &""'");
16081   }
16082   arg2 = reinterpret_cast< Xapian::ExpandDecider * >(argp2);
16083   {
16084     try {
16085       result = (Xapian::ExpandDeciderAnd *)new Xapian::ExpandDeciderAnd((Xapian::ExpandDecider const &)*arg1,(Xapian::ExpandDecider const &)*arg2);
16086     } catch (const Xapian::Error &e) {
16087       return XapianTclHandleError(interp, e);
16088     } catch (...) {
16089       return XapianTclHandleError(interp);
16090     }
16091   }
16092   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ExpandDeciderAnd,0));
16093   return TCL_OK;
16094 fail:
16095   return TCL_ERROR;
16096 }
16097 
16098 
16099 SWIGINTERN int
_wrap_ExpandDeciderAnd_apply(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])16100 _wrap_ExpandDeciderAnd_apply(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
16101   Xapian::ExpandDeciderAnd *arg1 = (Xapian::ExpandDeciderAnd *) 0 ;
16102   std::string *arg2 = 0 ;
16103   void *argp1 = 0 ;
16104   int res1 = 0 ;
16105   int res2 = SWIG_OLDOBJ ;
16106   bool result;
16107 
16108   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::ExpandDeciderAnd_apply self term ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
16109   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ExpandDeciderAnd, 0 |  0 );
16110   if (!SWIG_IsOK(res1)) {
16111     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ExpandDeciderAnd_apply" "', argument " "1"" of type '" "Xapian::ExpandDeciderAnd const *""'");
16112   }
16113   arg1 = reinterpret_cast< Xapian::ExpandDeciderAnd * >(argp1);
16114   {
16115     std::string *ptr = (std::string *)0;
16116     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
16117     if (!SWIG_IsOK(res2)) {
16118       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ExpandDeciderAnd_apply" "', argument " "2"" of type '" "std::string const &""'");
16119     }
16120     if (!ptr) {
16121       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ExpandDeciderAnd_apply" "', argument " "2"" of type '" "std::string const &""'");
16122     }
16123     arg2 = ptr;
16124   }
16125   {
16126     try {
16127       result = (bool)((Xapian::ExpandDeciderAnd const *)arg1)->operator ()((std::string const &)*arg2);
16128     } catch (const Xapian::Error &e) {
16129       return XapianTclHandleError(interp, e);
16130     } catch (...) {
16131       return XapianTclHandleError(interp);
16132     }
16133   }
16134   Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
16135   if (SWIG_IsNewObj(res2)) delete arg2;
16136   return TCL_OK;
16137 fail:
16138   if (SWIG_IsNewObj(res2)) delete arg2;
16139   return TCL_ERROR;
16140 }
16141 
16142 
16143 SWIGINTERN int
_wrap_delete_ExpandDeciderAnd(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])16144 _wrap_delete_ExpandDeciderAnd(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
16145   Xapian::ExpandDeciderAnd *arg1 = (Xapian::ExpandDeciderAnd *) 0 ;
16146   void *argp1 = 0 ;
16147   int res1 = 0 ;
16148 
16149   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_ExpandDeciderAnd self ",(void *)0) == TCL_ERROR) SWIG_fail;
16150   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ExpandDeciderAnd, SWIG_POINTER_DISOWN |  0 );
16151   if (!SWIG_IsOK(res1)) {
16152     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ExpandDeciderAnd" "', argument " "1"" of type '" "Xapian::ExpandDeciderAnd *""'");
16153   }
16154   arg1 = reinterpret_cast< Xapian::ExpandDeciderAnd * >(argp1);
16155   {
16156     try {
16157       delete arg1;
16158     } catch (const Xapian::Error &e) {
16159       return XapianTclHandleError(interp, e);
16160     } catch (...) {
16161       return XapianTclHandleError(interp);
16162     }
16163   }
16164 
16165   return TCL_OK;
16166 fail:
16167   return TCL_ERROR;
16168 }
16169 
16170 
swig_delete_ExpandDeciderAnd(void * obj)16171 SWIGINTERN void swig_delete_ExpandDeciderAnd(void *obj) {
16172 Xapian::ExpandDeciderAnd *arg1 = (Xapian::ExpandDeciderAnd *) obj;
16173 delete arg1;
16174 }
16175 static swig_method swig_Xapian_ExpandDeciderAnd_methods[] = {
16176     {"apply", _wrap_ExpandDeciderAnd_apply},
16177     {0,0}
16178 };
16179 static swig_attribute swig_Xapian_ExpandDeciderAnd_attributes[] = {
16180     {0,0,0}
16181 };
16182 static swig_class *swig_Xapian_ExpandDeciderAnd_bases[] = {0,0};
16183 static const char * swig_Xapian_ExpandDeciderAnd_base_names[] = {"Xapian::ExpandDecider *",0};
16184 static swig_class _wrap_class_Xapian_ExpandDeciderAnd = { "ExpandDeciderAnd", &SWIGTYPE_p_Xapian__ExpandDeciderAnd,_wrap_new_ExpandDeciderAnd, swig_delete_ExpandDeciderAnd, swig_Xapian_ExpandDeciderAnd_methods, swig_Xapian_ExpandDeciderAnd_attributes, swig_Xapian_ExpandDeciderAnd_bases,swig_Xapian_ExpandDeciderAnd_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
16185 SWIGINTERN int
_wrap_new_ExpandDeciderFilterPrefix(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])16186 _wrap_new_ExpandDeciderFilterPrefix(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
16187   std::string *arg1 = 0 ;
16188   int res1 = SWIG_OLDOBJ ;
16189   Xapian::ExpandDeciderFilterPrefix *result = 0 ;
16190 
16191   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_ExpandDeciderFilterPrefix prefix_ ",(void *)0) == TCL_ERROR) SWIG_fail;
16192   {
16193     std::string *ptr = (std::string *)0;
16194     res1 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[1], &ptr);
16195     if (!SWIG_IsOK(res1)) {
16196       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ExpandDeciderFilterPrefix" "', argument " "1"" of type '" "std::string const &""'");
16197     }
16198     if (!ptr) {
16199       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ExpandDeciderFilterPrefix" "', argument " "1"" of type '" "std::string const &""'");
16200     }
16201     arg1 = ptr;
16202   }
16203   {
16204     try {
16205       result = (Xapian::ExpandDeciderFilterPrefix *)new Xapian::ExpandDeciderFilterPrefix((std::string const &)*arg1);
16206     } catch (const Xapian::Error &e) {
16207       return XapianTclHandleError(interp, e);
16208     } catch (...) {
16209       return XapianTclHandleError(interp);
16210     }
16211   }
16212   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ExpandDeciderFilterPrefix,0));
16213   if (SWIG_IsNewObj(res1)) delete arg1;
16214   return TCL_OK;
16215 fail:
16216   if (SWIG_IsNewObj(res1)) delete arg1;
16217   return TCL_ERROR;
16218 }
16219 
16220 
16221 SWIGINTERN int
_wrap_ExpandDeciderFilterPrefix_apply(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])16222 _wrap_ExpandDeciderFilterPrefix_apply(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
16223   Xapian::ExpandDeciderFilterPrefix *arg1 = (Xapian::ExpandDeciderFilterPrefix *) 0 ;
16224   std::string *arg2 = 0 ;
16225   void *argp1 = 0 ;
16226   int res1 = 0 ;
16227   int res2 = SWIG_OLDOBJ ;
16228   bool result;
16229 
16230   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::ExpandDeciderFilterPrefix_apply self term ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
16231   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ExpandDeciderFilterPrefix, 0 |  0 );
16232   if (!SWIG_IsOK(res1)) {
16233     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ExpandDeciderFilterPrefix_apply" "', argument " "1"" of type '" "Xapian::ExpandDeciderFilterPrefix const *""'");
16234   }
16235   arg1 = reinterpret_cast< Xapian::ExpandDeciderFilterPrefix * >(argp1);
16236   {
16237     std::string *ptr = (std::string *)0;
16238     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
16239     if (!SWIG_IsOK(res2)) {
16240       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ExpandDeciderFilterPrefix_apply" "', argument " "2"" of type '" "std::string const &""'");
16241     }
16242     if (!ptr) {
16243       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ExpandDeciderFilterPrefix_apply" "', argument " "2"" of type '" "std::string const &""'");
16244     }
16245     arg2 = ptr;
16246   }
16247   {
16248     try {
16249       result = (bool)((Xapian::ExpandDeciderFilterPrefix const *)arg1)->operator ()((std::string const &)*arg2);
16250     } catch (const Xapian::Error &e) {
16251       return XapianTclHandleError(interp, e);
16252     } catch (...) {
16253       return XapianTclHandleError(interp);
16254     }
16255   }
16256   Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
16257   if (SWIG_IsNewObj(res2)) delete arg2;
16258   return TCL_OK;
16259 fail:
16260   if (SWIG_IsNewObj(res2)) delete arg2;
16261   return TCL_ERROR;
16262 }
16263 
16264 
16265 SWIGINTERN int
_wrap_delete_ExpandDeciderFilterPrefix(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])16266 _wrap_delete_ExpandDeciderFilterPrefix(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
16267   Xapian::ExpandDeciderFilterPrefix *arg1 = (Xapian::ExpandDeciderFilterPrefix *) 0 ;
16268   void *argp1 = 0 ;
16269   int res1 = 0 ;
16270 
16271   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_ExpandDeciderFilterPrefix self ",(void *)0) == TCL_ERROR) SWIG_fail;
16272   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ExpandDeciderFilterPrefix, SWIG_POINTER_DISOWN |  0 );
16273   if (!SWIG_IsOK(res1)) {
16274     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ExpandDeciderFilterPrefix" "', argument " "1"" of type '" "Xapian::ExpandDeciderFilterPrefix *""'");
16275   }
16276   arg1 = reinterpret_cast< Xapian::ExpandDeciderFilterPrefix * >(argp1);
16277   {
16278     try {
16279       delete arg1;
16280     } catch (const Xapian::Error &e) {
16281       return XapianTclHandleError(interp, e);
16282     } catch (...) {
16283       return XapianTclHandleError(interp);
16284     }
16285   }
16286 
16287   return TCL_OK;
16288 fail:
16289   return TCL_ERROR;
16290 }
16291 
16292 
swig_delete_ExpandDeciderFilterPrefix(void * obj)16293 SWIGINTERN void swig_delete_ExpandDeciderFilterPrefix(void *obj) {
16294 Xapian::ExpandDeciderFilterPrefix *arg1 = (Xapian::ExpandDeciderFilterPrefix *) obj;
16295 delete arg1;
16296 }
16297 static swig_method swig_Xapian_ExpandDeciderFilterPrefix_methods[] = {
16298     {"apply", _wrap_ExpandDeciderFilterPrefix_apply},
16299     {0,0}
16300 };
16301 static swig_attribute swig_Xapian_ExpandDeciderFilterPrefix_attributes[] = {
16302     {0,0,0}
16303 };
16304 static swig_class *swig_Xapian_ExpandDeciderFilterPrefix_bases[] = {0,0};
16305 static const char * swig_Xapian_ExpandDeciderFilterPrefix_base_names[] = {"Xapian::ExpandDecider *",0};
16306 static swig_class _wrap_class_Xapian_ExpandDeciderFilterPrefix = { "ExpandDeciderFilterPrefix", &SWIGTYPE_p_Xapian__ExpandDeciderFilterPrefix,_wrap_new_ExpandDeciderFilterPrefix, swig_delete_ExpandDeciderFilterPrefix, swig_Xapian_ExpandDeciderFilterPrefix_methods, swig_Xapian_ExpandDeciderFilterPrefix_attributes, swig_Xapian_ExpandDeciderFilterPrefix_bases,swig_Xapian_ExpandDeciderFilterPrefix_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
16307 SWIGINTERN int
_wrap_KeyMaker_apply(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])16308 _wrap_KeyMaker_apply(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
16309   Xapian::KeyMaker *arg1 = (Xapian::KeyMaker *) 0 ;
16310   Xapian::Document *arg2 = 0 ;
16311   void *argp1 = 0 ;
16312   int res1 = 0 ;
16313   void *argp2 ;
16314   int res2 = 0 ;
16315   std::string result;
16316 
16317   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::KeyMaker_apply self doc ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
16318   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__KeyMaker, 0 |  0 );
16319   if (!SWIG_IsOK(res1)) {
16320     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyMaker_apply" "', argument " "1"" of type '" "Xapian::KeyMaker const *""'");
16321   }
16322   arg1 = reinterpret_cast< Xapian::KeyMaker * >(argp1);
16323   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__Document,  0 );
16324   if (!SWIG_IsOK(res2)) {
16325     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KeyMaker_apply" "', argument " "2"" of type '" "Xapian::Document const &""'");
16326   }
16327   if (!argp2) {
16328     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KeyMaker_apply" "', argument " "2"" of type '" "Xapian::Document const &""'");
16329   }
16330   arg2 = reinterpret_cast< Xapian::Document * >(argp2);
16331   {
16332     try {
16333       result = ((Xapian::KeyMaker const *)arg1)->operator ()((Xapian::Document const &)*arg2);
16334     } catch (const Xapian::Error &e) {
16335       return XapianTclHandleError(interp, e);
16336     } catch (...) {
16337       return XapianTclHandleError(interp);
16338     }
16339   }
16340   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
16341   return TCL_OK;
16342 fail:
16343   return TCL_ERROR;
16344 }
16345 
16346 
16347 SWIGINTERN int
_wrap_delete_KeyMaker(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])16348 _wrap_delete_KeyMaker(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
16349   Xapian::KeyMaker *arg1 = (Xapian::KeyMaker *) 0 ;
16350   void *argp1 = 0 ;
16351   int res1 = 0 ;
16352 
16353   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_KeyMaker self ",(void *)0) == TCL_ERROR) SWIG_fail;
16354   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__KeyMaker, SWIG_POINTER_DISOWN |  0 );
16355   if (!SWIG_IsOK(res1)) {
16356     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_KeyMaker" "', argument " "1"" of type '" "Xapian::KeyMaker *""'");
16357   }
16358   arg1 = reinterpret_cast< Xapian::KeyMaker * >(argp1);
16359   {
16360     try {
16361       delete arg1;
16362     } catch (const Xapian::Error &e) {
16363       return XapianTclHandleError(interp, e);
16364     } catch (...) {
16365       return XapianTclHandleError(interp);
16366     }
16367   }
16368 
16369   return TCL_OK;
16370 fail:
16371   return TCL_ERROR;
16372 }
16373 
16374 
16375 SWIGINTERN int
_wrap_KeyMaker_release(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])16376 _wrap_KeyMaker_release(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
16377   Xapian::KeyMaker *arg1 = (Xapian::KeyMaker *) 0 ;
16378   void *argp1 = 0 ;
16379   int res1 = 0 ;
16380   Xapian::KeyMaker *result = 0 ;
16381 
16382   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::KeyMaker_release self ",(void *)0) == TCL_ERROR) SWIG_fail;
16383   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__KeyMaker, 0 |  0 );
16384   if (!SWIG_IsOK(res1)) {
16385     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyMaker_release" "', argument " "1"" of type '" "Xapian::KeyMaker const *""'");
16386   }
16387   arg1 = reinterpret_cast< Xapian::KeyMaker * >(argp1);
16388   {
16389     try {
16390       result = (Xapian::KeyMaker *)((Xapian::KeyMaker const *)arg1)->release();
16391     } catch (const Xapian::Error &e) {
16392       return XapianTclHandleError(interp, e);
16393     } catch (...) {
16394       return XapianTclHandleError(interp);
16395     }
16396   }
16397   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__KeyMaker,0));
16398   return TCL_OK;
16399 fail:
16400   return TCL_ERROR;
16401 }
16402 
16403 
swig_delete_KeyMaker(void * obj)16404 SWIGINTERN void swig_delete_KeyMaker(void *obj) {
16405 Xapian::KeyMaker *arg1 = (Xapian::KeyMaker *) obj;
16406 delete arg1;
16407 }
16408 static swig_method swig_Xapian_KeyMaker_methods[] = {
16409     {"apply", _wrap_KeyMaker_apply},
16410     {"release", _wrap_KeyMaker_release},
16411     {0,0}
16412 };
16413 static swig_attribute swig_Xapian_KeyMaker_attributes[] = {
16414     {0,0,0}
16415 };
16416 static swig_class *swig_Xapian_KeyMaker_bases[] = {0};
16417 static const char * swig_Xapian_KeyMaker_base_names[] = {0};
16418 static swig_class _wrap_class_Xapian_KeyMaker = { "KeyMaker", &SWIGTYPE_p_Xapian__KeyMaker,0, swig_delete_KeyMaker, swig_Xapian_KeyMaker_methods, swig_Xapian_KeyMaker_attributes, swig_Xapian_KeyMaker_bases,swig_Xapian_KeyMaker_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
16419 SWIGINTERN int
_wrap_new_MultiValueKeyMaker(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])16420 _wrap_new_MultiValueKeyMaker(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
16421   Xapian::MultiValueKeyMaker *result = 0 ;
16422 
16423   if (SWIG_GetArgs(interp, objc, objv,":xapian::new_MultiValueKeyMaker ") == TCL_ERROR) SWIG_fail;
16424   {
16425     try {
16426       result = (Xapian::MultiValueKeyMaker *)new Xapian::MultiValueKeyMaker();
16427     } catch (const Xapian::Error &e) {
16428       return XapianTclHandleError(interp, e);
16429     } catch (...) {
16430       return XapianTclHandleError(interp);
16431     }
16432   }
16433   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__MultiValueKeyMaker,0));
16434   return TCL_OK;
16435 fail:
16436   return TCL_ERROR;
16437 }
16438 
16439 
16440 SWIGINTERN int
_wrap_MultiValueKeyMaker_apply(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])16441 _wrap_MultiValueKeyMaker_apply(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
16442   Xapian::MultiValueKeyMaker *arg1 = (Xapian::MultiValueKeyMaker *) 0 ;
16443   Xapian::Document *arg2 = 0 ;
16444   void *argp1 = 0 ;
16445   int res1 = 0 ;
16446   void *argp2 ;
16447   int res2 = 0 ;
16448   std::string result;
16449 
16450   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::MultiValueKeyMaker_apply self doc ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
16451   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MultiValueKeyMaker, 0 |  0 );
16452   if (!SWIG_IsOK(res1)) {
16453     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultiValueKeyMaker_apply" "', argument " "1"" of type '" "Xapian::MultiValueKeyMaker const *""'");
16454   }
16455   arg1 = reinterpret_cast< Xapian::MultiValueKeyMaker * >(argp1);
16456   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__Document,  0 );
16457   if (!SWIG_IsOK(res2)) {
16458     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MultiValueKeyMaker_apply" "', argument " "2"" of type '" "Xapian::Document const &""'");
16459   }
16460   if (!argp2) {
16461     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MultiValueKeyMaker_apply" "', argument " "2"" of type '" "Xapian::Document const &""'");
16462   }
16463   arg2 = reinterpret_cast< Xapian::Document * >(argp2);
16464   {
16465     try {
16466       result = ((Xapian::MultiValueKeyMaker const *)arg1)->operator ()((Xapian::Document const &)*arg2);
16467     } catch (const Xapian::Error &e) {
16468       return XapianTclHandleError(interp, e);
16469     } catch (...) {
16470       return XapianTclHandleError(interp);
16471     }
16472   }
16473   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
16474   return TCL_OK;
16475 fail:
16476   return TCL_ERROR;
16477 }
16478 
16479 
16480 SWIGINTERN int
_wrap_MultiValueKeyMaker_add_value__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])16481 _wrap_MultiValueKeyMaker_add_value__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
16482   Xapian::MultiValueKeyMaker *arg1 = (Xapian::MultiValueKeyMaker *) 0 ;
16483   Xapian::valueno arg2 ;
16484   bool arg3 ;
16485   std::string *arg4 = 0 ;
16486   void *argp1 = 0 ;
16487   int res1 = 0 ;
16488   unsigned int val2 ;
16489   int ecode2 = 0 ;
16490   bool val3 ;
16491   int ecode3 = 0 ;
16492   int res4 = SWIG_OLDOBJ ;
16493 
16494   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::MultiValueKeyMaker_add_value self slot reverse defvalue ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
16495   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MultiValueKeyMaker, 0 |  0 );
16496   if (!SWIG_IsOK(res1)) {
16497     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultiValueKeyMaker_add_value" "', argument " "1"" of type '" "Xapian::MultiValueKeyMaker *""'");
16498   }
16499   arg1 = reinterpret_cast< Xapian::MultiValueKeyMaker * >(argp1);
16500   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
16501   if (!SWIG_IsOK(ecode2)) {
16502     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MultiValueKeyMaker_add_value" "', argument " "2"" of type '" "Xapian::valueno""'");
16503   }
16504   arg2 = static_cast< Xapian::valueno >(val2);
16505   ecode3 = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
16506   if (!SWIG_IsOK(ecode3)) {
16507     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MultiValueKeyMaker_add_value" "', argument " "3"" of type '" "bool""'");
16508   }
16509   arg3 = static_cast< bool >(val3);
16510   {
16511     std::string *ptr = (std::string *)0;
16512     res4 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[4], &ptr);
16513     if (!SWIG_IsOK(res4)) {
16514       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "MultiValueKeyMaker_add_value" "', argument " "4"" of type '" "std::string const &""'");
16515     }
16516     if (!ptr) {
16517       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MultiValueKeyMaker_add_value" "', argument " "4"" of type '" "std::string const &""'");
16518     }
16519     arg4 = ptr;
16520   }
16521   {
16522     try {
16523       (arg1)->add_value(arg2,arg3,(std::string const &)*arg4);
16524     } catch (const Xapian::Error &e) {
16525       return XapianTclHandleError(interp, e);
16526     } catch (...) {
16527       return XapianTclHandleError(interp);
16528     }
16529   }
16530 
16531   if (SWIG_IsNewObj(res4)) delete arg4;
16532   return TCL_OK;
16533 fail:
16534   if (SWIG_IsNewObj(res4)) delete arg4;
16535   return TCL_ERROR;
16536 }
16537 
16538 
16539 SWIGINTERN int
_wrap_MultiValueKeyMaker_add_value__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])16540 _wrap_MultiValueKeyMaker_add_value__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
16541   Xapian::MultiValueKeyMaker *arg1 = (Xapian::MultiValueKeyMaker *) 0 ;
16542   Xapian::valueno arg2 ;
16543   bool arg3 ;
16544   void *argp1 = 0 ;
16545   int res1 = 0 ;
16546   unsigned int val2 ;
16547   int ecode2 = 0 ;
16548   bool val3 ;
16549   int ecode3 = 0 ;
16550 
16551   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::MultiValueKeyMaker_add_value self slot reverse ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
16552   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MultiValueKeyMaker, 0 |  0 );
16553   if (!SWIG_IsOK(res1)) {
16554     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultiValueKeyMaker_add_value" "', argument " "1"" of type '" "Xapian::MultiValueKeyMaker *""'");
16555   }
16556   arg1 = reinterpret_cast< Xapian::MultiValueKeyMaker * >(argp1);
16557   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
16558   if (!SWIG_IsOK(ecode2)) {
16559     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MultiValueKeyMaker_add_value" "', argument " "2"" of type '" "Xapian::valueno""'");
16560   }
16561   arg2 = static_cast< Xapian::valueno >(val2);
16562   ecode3 = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
16563   if (!SWIG_IsOK(ecode3)) {
16564     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MultiValueKeyMaker_add_value" "', argument " "3"" of type '" "bool""'");
16565   }
16566   arg3 = static_cast< bool >(val3);
16567   {
16568     try {
16569       (arg1)->add_value(arg2,arg3);
16570     } catch (const Xapian::Error &e) {
16571       return XapianTclHandleError(interp, e);
16572     } catch (...) {
16573       return XapianTclHandleError(interp);
16574     }
16575   }
16576 
16577   return TCL_OK;
16578 fail:
16579   return TCL_ERROR;
16580 }
16581 
16582 
16583 SWIGINTERN int
_wrap_MultiValueKeyMaker_add_value__SWIG_2(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])16584 _wrap_MultiValueKeyMaker_add_value__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
16585   Xapian::MultiValueKeyMaker *arg1 = (Xapian::MultiValueKeyMaker *) 0 ;
16586   Xapian::valueno arg2 ;
16587   void *argp1 = 0 ;
16588   int res1 = 0 ;
16589   unsigned int val2 ;
16590   int ecode2 = 0 ;
16591 
16592   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::MultiValueKeyMaker_add_value self slot ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
16593   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MultiValueKeyMaker, 0 |  0 );
16594   if (!SWIG_IsOK(res1)) {
16595     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultiValueKeyMaker_add_value" "', argument " "1"" of type '" "Xapian::MultiValueKeyMaker *""'");
16596   }
16597   arg1 = reinterpret_cast< Xapian::MultiValueKeyMaker * >(argp1);
16598   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
16599   if (!SWIG_IsOK(ecode2)) {
16600     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MultiValueKeyMaker_add_value" "', argument " "2"" of type '" "Xapian::valueno""'");
16601   }
16602   arg2 = static_cast< Xapian::valueno >(val2);
16603   {
16604     try {
16605       (arg1)->add_value(arg2);
16606     } catch (const Xapian::Error &e) {
16607       return XapianTclHandleError(interp, e);
16608     } catch (...) {
16609       return XapianTclHandleError(interp);
16610     }
16611   }
16612 
16613   return TCL_OK;
16614 fail:
16615   return TCL_ERROR;
16616 }
16617 
16618 
16619 SWIGINTERN int
_wrap_MultiValueKeyMaker_add_value(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])16620 _wrap_MultiValueKeyMaker_add_value(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
16621   Tcl_Obj *CONST *argv = objv+1;
16622   int argc = objc-1;
16623   if (argc == 2) {
16624     int _v;
16625     void *vptr = 0;
16626     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__MultiValueKeyMaker, 0);
16627     _v = SWIG_CheckState(res);
16628     if (_v) {
16629       {
16630         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
16631         _v = SWIG_CheckState(res);
16632       }
16633       if (_v) {
16634         return _wrap_MultiValueKeyMaker_add_value__SWIG_2(clientData, interp, objc, argv - 1);
16635       }
16636     }
16637   }
16638   if (argc == 3) {
16639     int _v;
16640     void *vptr = 0;
16641     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__MultiValueKeyMaker, 0);
16642     _v = SWIG_CheckState(res);
16643     if (_v) {
16644       {
16645         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
16646         _v = SWIG_CheckState(res);
16647       }
16648       if (_v) {
16649         {
16650           int res = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
16651           _v = SWIG_CheckState(res);
16652         }
16653         if (_v) {
16654           return _wrap_MultiValueKeyMaker_add_value__SWIG_1(clientData, interp, objc, argv - 1);
16655         }
16656       }
16657     }
16658   }
16659   if (argc == 4) {
16660     int _v;
16661     void *vptr = 0;
16662     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__MultiValueKeyMaker, 0);
16663     _v = SWIG_CheckState(res);
16664     if (_v) {
16665       {
16666         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
16667         _v = SWIG_CheckState(res);
16668       }
16669       if (_v) {
16670         {
16671           int res = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
16672           _v = SWIG_CheckState(res);
16673         }
16674         if (_v) {
16675           int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[3], (std::string**)(0));
16676           _v = SWIG_CheckState(res);
16677           if (_v) {
16678             return _wrap_MultiValueKeyMaker_add_value__SWIG_0(clientData, interp, objc, argv - 1);
16679           }
16680         }
16681       }
16682     }
16683   }
16684 
16685   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'MultiValueKeyMaker_add_value'.\n"
16686     "  Possible C/C++ prototypes are:\n"
16687     "    Xapian::MultiValueKeyMaker::add_value(Xapian::valueno,bool,std::string const &)\n"
16688     "    Xapian::MultiValueKeyMaker::add_value(Xapian::valueno,bool)\n"
16689     "    Xapian::MultiValueKeyMaker::add_value(Xapian::valueno)\n", TCL_STATIC);
16690   return TCL_ERROR;
16691 }
16692 
16693 
16694 SWIGINTERN int
_wrap_delete_MultiValueKeyMaker(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])16695 _wrap_delete_MultiValueKeyMaker(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
16696   Xapian::MultiValueKeyMaker *arg1 = (Xapian::MultiValueKeyMaker *) 0 ;
16697   void *argp1 = 0 ;
16698   int res1 = 0 ;
16699 
16700   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_MultiValueKeyMaker self ",(void *)0) == TCL_ERROR) SWIG_fail;
16701   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MultiValueKeyMaker, SWIG_POINTER_DISOWN |  0 );
16702   if (!SWIG_IsOK(res1)) {
16703     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MultiValueKeyMaker" "', argument " "1"" of type '" "Xapian::MultiValueKeyMaker *""'");
16704   }
16705   arg1 = reinterpret_cast< Xapian::MultiValueKeyMaker * >(argp1);
16706   {
16707     try {
16708       delete arg1;
16709     } catch (const Xapian::Error &e) {
16710       return XapianTclHandleError(interp, e);
16711     } catch (...) {
16712       return XapianTclHandleError(interp);
16713     }
16714   }
16715 
16716   return TCL_OK;
16717 fail:
16718   return TCL_ERROR;
16719 }
16720 
16721 
swig_delete_MultiValueKeyMaker(void * obj)16722 SWIGINTERN void swig_delete_MultiValueKeyMaker(void *obj) {
16723 Xapian::MultiValueKeyMaker *arg1 = (Xapian::MultiValueKeyMaker *) obj;
16724 delete arg1;
16725 }
16726 static swig_method swig_Xapian_MultiValueKeyMaker_methods[] = {
16727     {"apply", _wrap_MultiValueKeyMaker_apply},
16728     {"add_value", _wrap_MultiValueKeyMaker_add_value},
16729     {0,0}
16730 };
16731 static swig_attribute swig_Xapian_MultiValueKeyMaker_attributes[] = {
16732     {0,0,0}
16733 };
16734 static swig_class *swig_Xapian_MultiValueKeyMaker_bases[] = {0,0};
16735 static const char * swig_Xapian_MultiValueKeyMaker_base_names[] = {"Xapian::KeyMaker *",0};
16736 static swig_class _wrap_class_Xapian_MultiValueKeyMaker = { "MultiValueKeyMaker", &SWIGTYPE_p_Xapian__MultiValueKeyMaker,_wrap_new_MultiValueKeyMaker, swig_delete_MultiValueKeyMaker, swig_Xapian_MultiValueKeyMaker_methods, swig_Xapian_MultiValueKeyMaker_attributes, swig_Xapian_MultiValueKeyMaker_bases,swig_Xapian_MultiValueKeyMaker_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
16737 SWIGINTERN int
_wrap_Stopper_apply(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])16738 _wrap_Stopper_apply(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
16739   Xapian::Stopper *arg1 = (Xapian::Stopper *) 0 ;
16740   std::string *arg2 = 0 ;
16741   void *argp1 = 0 ;
16742   int res1 = 0 ;
16743   int res2 = SWIG_OLDOBJ ;
16744   bool result;
16745 
16746   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Stopper_apply self term ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
16747   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Stopper, 0 |  0 );
16748   if (!SWIG_IsOK(res1)) {
16749     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Stopper_apply" "', argument " "1"" of type '" "Xapian::Stopper const *""'");
16750   }
16751   arg1 = reinterpret_cast< Xapian::Stopper * >(argp1);
16752   {
16753     std::string *ptr = (std::string *)0;
16754     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
16755     if (!SWIG_IsOK(res2)) {
16756       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Stopper_apply" "', argument " "2"" of type '" "std::string const &""'");
16757     }
16758     if (!ptr) {
16759       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Stopper_apply" "', argument " "2"" of type '" "std::string const &""'");
16760     }
16761     arg2 = ptr;
16762   }
16763   {
16764     try {
16765       result = (bool)((Xapian::Stopper const *)arg1)->operator ()((std::string const &)*arg2);
16766     } catch (const Xapian::Error &e) {
16767       return XapianTclHandleError(interp, e);
16768     } catch (...) {
16769       return XapianTclHandleError(interp);
16770     }
16771   }
16772   Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
16773   if (SWIG_IsNewObj(res2)) delete arg2;
16774   return TCL_OK;
16775 fail:
16776   if (SWIG_IsNewObj(res2)) delete arg2;
16777   return TCL_ERROR;
16778 }
16779 
16780 
16781 SWIGINTERN int
_wrap_delete_Stopper(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])16782 _wrap_delete_Stopper(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
16783   Xapian::Stopper *arg1 = (Xapian::Stopper *) 0 ;
16784   void *argp1 = 0 ;
16785   int res1 = 0 ;
16786 
16787   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_Stopper self ",(void *)0) == TCL_ERROR) SWIG_fail;
16788   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Stopper, SWIG_POINTER_DISOWN |  0 );
16789   if (!SWIG_IsOK(res1)) {
16790     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Stopper" "', argument " "1"" of type '" "Xapian::Stopper *""'");
16791   }
16792   arg1 = reinterpret_cast< Xapian::Stopper * >(argp1);
16793   {
16794     try {
16795       delete arg1;
16796     } catch (const Xapian::Error &e) {
16797       return XapianTclHandleError(interp, e);
16798     } catch (...) {
16799       return XapianTclHandleError(interp);
16800     }
16801   }
16802 
16803   return TCL_OK;
16804 fail:
16805   return TCL_ERROR;
16806 }
16807 
16808 
16809 SWIGINTERN int
_wrap_Stopper_get_description(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])16810 _wrap_Stopper_get_description(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
16811   Xapian::Stopper *arg1 = (Xapian::Stopper *) 0 ;
16812   void *argp1 = 0 ;
16813   int res1 = 0 ;
16814   std::string result;
16815 
16816   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Stopper_get_description self ",(void *)0) == TCL_ERROR) SWIG_fail;
16817   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Stopper, 0 |  0 );
16818   if (!SWIG_IsOK(res1)) {
16819     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Stopper_get_description" "', argument " "1"" of type '" "Xapian::Stopper const *""'");
16820   }
16821   arg1 = reinterpret_cast< Xapian::Stopper * >(argp1);
16822   {
16823     try {
16824       result = ((Xapian::Stopper const *)arg1)->get_description();
16825     } catch (const Xapian::Error &e) {
16826       return XapianTclHandleError(interp, e);
16827     } catch (...) {
16828       return XapianTclHandleError(interp);
16829     }
16830   }
16831   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
16832   return TCL_OK;
16833 fail:
16834   return TCL_ERROR;
16835 }
16836 
16837 
16838 SWIGINTERN int
_wrap_Stopper_release(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])16839 _wrap_Stopper_release(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
16840   Xapian::Stopper *arg1 = (Xapian::Stopper *) 0 ;
16841   void *argp1 = 0 ;
16842   int res1 = 0 ;
16843   Xapian::Stopper *result = 0 ;
16844 
16845   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Stopper_release self ",(void *)0) == TCL_ERROR) SWIG_fail;
16846   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Stopper, 0 |  0 );
16847   if (!SWIG_IsOK(res1)) {
16848     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Stopper_release" "', argument " "1"" of type '" "Xapian::Stopper const *""'");
16849   }
16850   arg1 = reinterpret_cast< Xapian::Stopper * >(argp1);
16851   {
16852     try {
16853       result = (Xapian::Stopper *)((Xapian::Stopper const *)arg1)->release();
16854     } catch (const Xapian::Error &e) {
16855       return XapianTclHandleError(interp, e);
16856     } catch (...) {
16857       return XapianTclHandleError(interp);
16858     }
16859   }
16860   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Stopper,0));
16861   return TCL_OK;
16862 fail:
16863   return TCL_ERROR;
16864 }
16865 
16866 
swig_delete_Stopper(void * obj)16867 SWIGINTERN void swig_delete_Stopper(void *obj) {
16868 Xapian::Stopper *arg1 = (Xapian::Stopper *) obj;
16869 delete arg1;
16870 }
16871 static swig_method swig_Xapian_Stopper_methods[] = {
16872     {"apply", _wrap_Stopper_apply},
16873     {"get_description", _wrap_Stopper_get_description},
16874     {"release", _wrap_Stopper_release},
16875     {0,0}
16876 };
16877 static swig_attribute swig_Xapian_Stopper_attributes[] = {
16878     {0,0,0}
16879 };
16880 static swig_class *swig_Xapian_Stopper_bases[] = {0};
16881 static const char * swig_Xapian_Stopper_base_names[] = {0};
16882 static swig_class _wrap_class_Xapian_Stopper = { "Stopper", &SWIGTYPE_p_Xapian__Stopper,0, swig_delete_Stopper, swig_Xapian_Stopper_methods, swig_Xapian_Stopper_attributes, swig_Xapian_Stopper_bases,swig_Xapian_Stopper_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
16883 SWIGINTERN int
_wrap_new_SimpleStopper__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])16884 _wrap_new_SimpleStopper__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
16885   Xapian::SimpleStopper *result = 0 ;
16886 
16887   if (SWIG_GetArgs(interp, objc, objv,":xapian::new_SimpleStopper ") == TCL_ERROR) SWIG_fail;
16888   {
16889     try {
16890       result = (Xapian::SimpleStopper *)new Xapian::SimpleStopper();
16891     } catch (const Xapian::Error &e) {
16892       return XapianTclHandleError(interp, e);
16893     } catch (...) {
16894       return XapianTclHandleError(interp);
16895     }
16896   }
16897   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__SimpleStopper,0));
16898   return TCL_OK;
16899 fail:
16900   return TCL_ERROR;
16901 }
16902 
16903 
16904 SWIGINTERN int
_wrap_SimpleStopper_add(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])16905 _wrap_SimpleStopper_add(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
16906   Xapian::SimpleStopper *arg1 = (Xapian::SimpleStopper *) 0 ;
16907   std::string *arg2 = 0 ;
16908   void *argp1 = 0 ;
16909   int res1 = 0 ;
16910   int res2 = SWIG_OLDOBJ ;
16911 
16912   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::SimpleStopper_add self word ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
16913   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__SimpleStopper, 0 |  0 );
16914   if (!SWIG_IsOK(res1)) {
16915     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimpleStopper_add" "', argument " "1"" of type '" "Xapian::SimpleStopper *""'");
16916   }
16917   arg1 = reinterpret_cast< Xapian::SimpleStopper * >(argp1);
16918   {
16919     std::string *ptr = (std::string *)0;
16920     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
16921     if (!SWIG_IsOK(res2)) {
16922       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimpleStopper_add" "', argument " "2"" of type '" "std::string const &""'");
16923     }
16924     if (!ptr) {
16925       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimpleStopper_add" "', argument " "2"" of type '" "std::string const &""'");
16926     }
16927     arg2 = ptr;
16928   }
16929   {
16930     try {
16931       (arg1)->add((std::string const &)*arg2);
16932     } catch (const Xapian::Error &e) {
16933       return XapianTclHandleError(interp, e);
16934     } catch (...) {
16935       return XapianTclHandleError(interp);
16936     }
16937   }
16938 
16939   if (SWIG_IsNewObj(res2)) delete arg2;
16940   return TCL_OK;
16941 fail:
16942   if (SWIG_IsNewObj(res2)) delete arg2;
16943   return TCL_ERROR;
16944 }
16945 
16946 
16947 SWIGINTERN int
_wrap_SimpleStopper_apply(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])16948 _wrap_SimpleStopper_apply(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
16949   Xapian::SimpleStopper *arg1 = (Xapian::SimpleStopper *) 0 ;
16950   std::string *arg2 = 0 ;
16951   void *argp1 = 0 ;
16952   int res1 = 0 ;
16953   int res2 = SWIG_OLDOBJ ;
16954   bool result;
16955 
16956   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::SimpleStopper_apply self term ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
16957   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__SimpleStopper, 0 |  0 );
16958   if (!SWIG_IsOK(res1)) {
16959     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimpleStopper_apply" "', argument " "1"" of type '" "Xapian::SimpleStopper const *""'");
16960   }
16961   arg1 = reinterpret_cast< Xapian::SimpleStopper * >(argp1);
16962   {
16963     std::string *ptr = (std::string *)0;
16964     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
16965     if (!SWIG_IsOK(res2)) {
16966       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimpleStopper_apply" "', argument " "2"" of type '" "std::string const &""'");
16967     }
16968     if (!ptr) {
16969       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimpleStopper_apply" "', argument " "2"" of type '" "std::string const &""'");
16970     }
16971     arg2 = ptr;
16972   }
16973   {
16974     try {
16975       result = (bool)((Xapian::SimpleStopper const *)arg1)->operator ()((std::string const &)*arg2);
16976     } catch (const Xapian::Error &e) {
16977       return XapianTclHandleError(interp, e);
16978     } catch (...) {
16979       return XapianTclHandleError(interp);
16980     }
16981   }
16982   Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
16983   if (SWIG_IsNewObj(res2)) delete arg2;
16984   return TCL_OK;
16985 fail:
16986   if (SWIG_IsNewObj(res2)) delete arg2;
16987   return TCL_ERROR;
16988 }
16989 
16990 
16991 SWIGINTERN int
_wrap_SimpleStopper_get_description(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])16992 _wrap_SimpleStopper_get_description(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
16993   Xapian::SimpleStopper *arg1 = (Xapian::SimpleStopper *) 0 ;
16994   void *argp1 = 0 ;
16995   int res1 = 0 ;
16996   std::string result;
16997 
16998   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::SimpleStopper_get_description self ",(void *)0) == TCL_ERROR) SWIG_fail;
16999   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__SimpleStopper, 0 |  0 );
17000   if (!SWIG_IsOK(res1)) {
17001     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimpleStopper_get_description" "', argument " "1"" of type '" "Xapian::SimpleStopper const *""'");
17002   }
17003   arg1 = reinterpret_cast< Xapian::SimpleStopper * >(argp1);
17004   {
17005     try {
17006       result = ((Xapian::SimpleStopper const *)arg1)->get_description();
17007     } catch (const Xapian::Error &e) {
17008       return XapianTclHandleError(interp, e);
17009     } catch (...) {
17010       return XapianTclHandleError(interp);
17011     }
17012   }
17013   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
17014   return TCL_OK;
17015 fail:
17016   return TCL_ERROR;
17017 }
17018 
17019 
17020 SWIGINTERN int
_wrap_new_SimpleStopper__SWIG_2(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])17021 _wrap_new_SimpleStopper__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
17022   std::string *arg1 = 0 ;
17023   int res1 = SWIG_OLDOBJ ;
17024   Xapian::SimpleStopper *result = 0 ;
17025 
17026   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_SimpleStopper file ",(void *)0) == TCL_ERROR) SWIG_fail;
17027   {
17028     std::string *ptr = (std::string *)0;
17029     res1 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[1], &ptr);
17030     if (!SWIG_IsOK(res1)) {
17031       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SimpleStopper" "', argument " "1"" of type '" "std::string const &""'");
17032     }
17033     if (!ptr) {
17034       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SimpleStopper" "', argument " "1"" of type '" "std::string const &""'");
17035     }
17036     arg1 = ptr;
17037   }
17038   {
17039     try {
17040       result = (Xapian::SimpleStopper *)new_Xapian_SimpleStopper__SWIG_2((std::string const &)*arg1);
17041     } catch (const Xapian::Error &e) {
17042       return XapianTclHandleError(interp, e);
17043     } catch (...) {
17044       return XapianTclHandleError(interp);
17045     }
17046   }
17047   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__SimpleStopper,0));
17048   if (SWIG_IsNewObj(res1)) delete arg1;
17049   return TCL_OK;
17050 fail:
17051   if (SWIG_IsNewObj(res1)) delete arg1;
17052   return TCL_ERROR;
17053 }
17054 
17055 
17056 SWIGINTERN int
_wrap_new_SimpleStopper(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])17057 _wrap_new_SimpleStopper(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
17058   Tcl_Obj *CONST *argv = objv+1;
17059   int argc = objc-1;
17060   if (argc == 0) {
17061     return _wrap_new_SimpleStopper__SWIG_0(clientData, interp, objc, argv - 1);
17062   }
17063   if (argc == 1) {
17064     int _v;
17065     int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[0], (std::string**)(0));
17066     _v = SWIG_CheckState(res);
17067     if (_v) {
17068       return _wrap_new_SimpleStopper__SWIG_2(clientData, interp, objc, argv - 1);
17069     }
17070   }
17071 
17072   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_SimpleStopper'.\n"
17073     "  Possible C/C++ prototypes are:\n"
17074     "    Xapian::SimpleStopper::SimpleStopper()\n"
17075     "    Xapian::SimpleStopper::SimpleStopper(std::string const &)\n", TCL_STATIC);
17076   return TCL_ERROR;
17077 }
17078 
17079 
17080 SWIGINTERN int
_wrap_delete_SimpleStopper(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])17081 _wrap_delete_SimpleStopper(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
17082   Xapian::SimpleStopper *arg1 = (Xapian::SimpleStopper *) 0 ;
17083   void *argp1 = 0 ;
17084   int res1 = 0 ;
17085 
17086   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_SimpleStopper self ",(void *)0) == TCL_ERROR) SWIG_fail;
17087   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__SimpleStopper, SWIG_POINTER_DISOWN |  0 );
17088   if (!SWIG_IsOK(res1)) {
17089     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SimpleStopper" "', argument " "1"" of type '" "Xapian::SimpleStopper *""'");
17090   }
17091   arg1 = reinterpret_cast< Xapian::SimpleStopper * >(argp1);
17092   {
17093     try {
17094       delete arg1;
17095     } catch (const Xapian::Error &e) {
17096       return XapianTclHandleError(interp, e);
17097     } catch (...) {
17098       return XapianTclHandleError(interp);
17099     }
17100   }
17101 
17102   return TCL_OK;
17103 fail:
17104   return TCL_ERROR;
17105 }
17106 
17107 
swig_delete_SimpleStopper(void * obj)17108 SWIGINTERN void swig_delete_SimpleStopper(void *obj) {
17109 Xapian::SimpleStopper *arg1 = (Xapian::SimpleStopper *) obj;
17110 delete arg1;
17111 }
17112 static swig_method swig_Xapian_SimpleStopper_methods[] = {
17113     {"add", _wrap_SimpleStopper_add},
17114     {"apply", _wrap_SimpleStopper_apply},
17115     {"get_description", _wrap_SimpleStopper_get_description},
17116     {0,0}
17117 };
17118 static swig_attribute swig_Xapian_SimpleStopper_attributes[] = {
17119     {0,0,0}
17120 };
17121 static swig_class *swig_Xapian_SimpleStopper_bases[] = {0,0};
17122 static const char * swig_Xapian_SimpleStopper_base_names[] = {"Xapian::Stopper *",0};
17123 static swig_class _wrap_class_Xapian_SimpleStopper = { "SimpleStopper", &SWIGTYPE_p_Xapian__SimpleStopper,_wrap_new_SimpleStopper, swig_delete_SimpleStopper, swig_Xapian_SimpleStopper_methods, swig_Xapian_SimpleStopper_attributes, swig_Xapian_SimpleStopper_bases,swig_Xapian_SimpleStopper_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
17124 SWIGINTERN int
_wrap_new_RangeProcessor__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])17125 _wrap_new_RangeProcessor__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
17126   Xapian::RangeProcessor *result = 0 ;
17127 
17128   if (SWIG_GetArgs(interp, objc, objv,":xapian::new_RangeProcessor ") == TCL_ERROR) SWIG_fail;
17129   {
17130     try {
17131       result = (Xapian::RangeProcessor *)new Xapian::RangeProcessor();
17132     } catch (const Xapian::Error &e) {
17133       return XapianTclHandleError(interp, e);
17134     } catch (...) {
17135       return XapianTclHandleError(interp);
17136     }
17137   }
17138   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__RangeProcessor,0));
17139   return TCL_OK;
17140 fail:
17141   return TCL_ERROR;
17142 }
17143 
17144 
17145 SWIGINTERN int
_wrap_new_RangeProcessor__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])17146 _wrap_new_RangeProcessor__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
17147   Xapian::valueno arg1 ;
17148   std::string *arg2 = 0 ;
17149   unsigned int arg3 ;
17150   unsigned int val1 ;
17151   int ecode1 = 0 ;
17152   int res2 = SWIG_OLDOBJ ;
17153   unsigned int val3 ;
17154   int ecode3 = 0 ;
17155   Xapian::RangeProcessor *result = 0 ;
17156 
17157   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::new_RangeProcessor slot_ str_ flags_ ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
17158   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
17159   if (!SWIG_IsOK(ecode1)) {
17160     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
17161   }
17162   arg1 = static_cast< Xapian::valueno >(val1);
17163   {
17164     std::string *ptr = (std::string *)0;
17165     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
17166     if (!SWIG_IsOK(res2)) {
17167       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_RangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
17168     }
17169     if (!ptr) {
17170       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
17171     }
17172     arg2 = ptr;
17173   }
17174   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
17175   if (!SWIG_IsOK(ecode3)) {
17176     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RangeProcessor" "', argument " "3"" of type '" "unsigned int""'");
17177   }
17178   arg3 = static_cast< unsigned int >(val3);
17179   {
17180     try {
17181       result = (Xapian::RangeProcessor *)new Xapian::RangeProcessor(arg1,(std::string const &)*arg2,arg3);
17182     } catch (const Xapian::Error &e) {
17183       return XapianTclHandleError(interp, e);
17184     } catch (...) {
17185       return XapianTclHandleError(interp);
17186     }
17187   }
17188   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__RangeProcessor,0));
17189   if (SWIG_IsNewObj(res2)) delete arg2;
17190   return TCL_OK;
17191 fail:
17192   if (SWIG_IsNewObj(res2)) delete arg2;
17193   return TCL_ERROR;
17194 }
17195 
17196 
17197 SWIGINTERN int
_wrap_new_RangeProcessor__SWIG_2(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])17198 _wrap_new_RangeProcessor__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
17199   Xapian::valueno arg1 ;
17200   std::string *arg2 = 0 ;
17201   unsigned int val1 ;
17202   int ecode1 = 0 ;
17203   int res2 = SWIG_OLDOBJ ;
17204   Xapian::RangeProcessor *result = 0 ;
17205 
17206   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::new_RangeProcessor slot_ str_ ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
17207   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
17208   if (!SWIG_IsOK(ecode1)) {
17209     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
17210   }
17211   arg1 = static_cast< Xapian::valueno >(val1);
17212   {
17213     std::string *ptr = (std::string *)0;
17214     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
17215     if (!SWIG_IsOK(res2)) {
17216       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_RangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
17217     }
17218     if (!ptr) {
17219       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
17220     }
17221     arg2 = ptr;
17222   }
17223   {
17224     try {
17225       result = (Xapian::RangeProcessor *)new Xapian::RangeProcessor(arg1,(std::string const &)*arg2);
17226     } catch (const Xapian::Error &e) {
17227       return XapianTclHandleError(interp, e);
17228     } catch (...) {
17229       return XapianTclHandleError(interp);
17230     }
17231   }
17232   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__RangeProcessor,0));
17233   if (SWIG_IsNewObj(res2)) delete arg2;
17234   return TCL_OK;
17235 fail:
17236   if (SWIG_IsNewObj(res2)) delete arg2;
17237   return TCL_ERROR;
17238 }
17239 
17240 
17241 SWIGINTERN int
_wrap_new_RangeProcessor__SWIG_3(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])17242 _wrap_new_RangeProcessor__SWIG_3(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
17243   Xapian::valueno arg1 ;
17244   unsigned int val1 ;
17245   int ecode1 = 0 ;
17246   Xapian::RangeProcessor *result = 0 ;
17247 
17248   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_RangeProcessor slot_ ",(void *)0) == TCL_ERROR) SWIG_fail;
17249   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
17250   if (!SWIG_IsOK(ecode1)) {
17251     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
17252   }
17253   arg1 = static_cast< Xapian::valueno >(val1);
17254   {
17255     try {
17256       result = (Xapian::RangeProcessor *)new Xapian::RangeProcessor(arg1);
17257     } catch (const Xapian::Error &e) {
17258       return XapianTclHandleError(interp, e);
17259     } catch (...) {
17260       return XapianTclHandleError(interp);
17261     }
17262   }
17263   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__RangeProcessor,0));
17264   return TCL_OK;
17265 fail:
17266   return TCL_ERROR;
17267 }
17268 
17269 
17270 SWIGINTERN int
_wrap_new_RangeProcessor(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])17271 _wrap_new_RangeProcessor(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
17272   Tcl_Obj *CONST *argv = objv+1;
17273   int argc = objc-1;
17274   if (argc == 0) {
17275     return _wrap_new_RangeProcessor__SWIG_0(clientData, interp, objc, argv - 1);
17276   }
17277   if (argc == 1) {
17278     int _v;
17279     {
17280       int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
17281       _v = SWIG_CheckState(res);
17282     }
17283     if (_v) {
17284       return _wrap_new_RangeProcessor__SWIG_3(clientData, interp, objc, argv - 1);
17285     }
17286   }
17287   if (argc == 2) {
17288     int _v;
17289     {
17290       int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
17291       _v = SWIG_CheckState(res);
17292     }
17293     if (_v) {
17294       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
17295       _v = SWIG_CheckState(res);
17296       if (_v) {
17297         return _wrap_new_RangeProcessor__SWIG_2(clientData, interp, objc, argv - 1);
17298       }
17299     }
17300   }
17301   if (argc == 3) {
17302     int _v;
17303     {
17304       int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
17305       _v = SWIG_CheckState(res);
17306     }
17307     if (_v) {
17308       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
17309       _v = SWIG_CheckState(res);
17310       if (_v) {
17311         {
17312           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
17313           _v = SWIG_CheckState(res);
17314         }
17315         if (_v) {
17316           return _wrap_new_RangeProcessor__SWIG_1(clientData, interp, objc, argv - 1);
17317         }
17318       }
17319     }
17320   }
17321 
17322   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_RangeProcessor'.\n"
17323     "  Possible C/C++ prototypes are:\n"
17324     "    Xapian::RangeProcessor::RangeProcessor()\n"
17325     "    Xapian::RangeProcessor::RangeProcessor(Xapian::valueno,std::string const &,unsigned int)\n"
17326     "    Xapian::RangeProcessor::RangeProcessor(Xapian::valueno,std::string const &)\n"
17327     "    Xapian::RangeProcessor::RangeProcessor(Xapian::valueno)\n", TCL_STATIC);
17328   return TCL_ERROR;
17329 }
17330 
17331 
17332 SWIGINTERN int
_wrap_delete_RangeProcessor(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])17333 _wrap_delete_RangeProcessor(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
17334   Xapian::RangeProcessor *arg1 = (Xapian::RangeProcessor *) 0 ;
17335   void *argp1 = 0 ;
17336   int res1 = 0 ;
17337 
17338   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_RangeProcessor self ",(void *)0) == TCL_ERROR) SWIG_fail;
17339   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__RangeProcessor, SWIG_POINTER_DISOWN |  0 );
17340   if (!SWIG_IsOK(res1)) {
17341     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RangeProcessor" "', argument " "1"" of type '" "Xapian::RangeProcessor *""'");
17342   }
17343   arg1 = reinterpret_cast< Xapian::RangeProcessor * >(argp1);
17344   {
17345     try {
17346       delete arg1;
17347     } catch (const Xapian::Error &e) {
17348       return XapianTclHandleError(interp, e);
17349     } catch (...) {
17350       return XapianTclHandleError(interp);
17351     }
17352   }
17353 
17354   return TCL_OK;
17355 fail:
17356   return TCL_ERROR;
17357 }
17358 
17359 
17360 SWIGINTERN int
_wrap_RangeProcessor_check_range(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])17361 _wrap_RangeProcessor_check_range(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
17362   Xapian::RangeProcessor *arg1 = (Xapian::RangeProcessor *) 0 ;
17363   std::string *arg2 = 0 ;
17364   std::string *arg3 = 0 ;
17365   void *argp1 = 0 ;
17366   int res1 = 0 ;
17367   int res2 = SWIG_OLDOBJ ;
17368   int res3 = SWIG_OLDOBJ ;
17369   Xapian::Query result;
17370 
17371   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::RangeProcessor_check_range self b e ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
17372   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__RangeProcessor, 0 |  0 );
17373   if (!SWIG_IsOK(res1)) {
17374     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RangeProcessor_check_range" "', argument " "1"" of type '" "Xapian::RangeProcessor *""'");
17375   }
17376   arg1 = reinterpret_cast< Xapian::RangeProcessor * >(argp1);
17377   {
17378     std::string *ptr = (std::string *)0;
17379     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
17380     if (!SWIG_IsOK(res2)) {
17381       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RangeProcessor_check_range" "', argument " "2"" of type '" "std::string const &""'");
17382     }
17383     if (!ptr) {
17384       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RangeProcessor_check_range" "', argument " "2"" of type '" "std::string const &""'");
17385     }
17386     arg2 = ptr;
17387   }
17388   {
17389     std::string *ptr = (std::string *)0;
17390     res3 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[3], &ptr);
17391     if (!SWIG_IsOK(res3)) {
17392       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RangeProcessor_check_range" "', argument " "3"" of type '" "std::string const &""'");
17393     }
17394     if (!ptr) {
17395       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RangeProcessor_check_range" "', argument " "3"" of type '" "std::string const &""'");
17396     }
17397     arg3 = ptr;
17398   }
17399   {
17400     try {
17401       result = (arg1)->check_range((std::string const &)*arg2,(std::string const &)*arg3);
17402     } catch (const Xapian::Error &e) {
17403       return XapianTclHandleError(interp, e);
17404     } catch (...) {
17405       return XapianTclHandleError(interp);
17406     }
17407   }
17408   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::Query(static_cast< const Xapian::Query& >(result))), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_OWN | 0 ));
17409   if (SWIG_IsNewObj(res2)) delete arg2;
17410   if (SWIG_IsNewObj(res3)) delete arg3;
17411   return TCL_OK;
17412 fail:
17413   if (SWIG_IsNewObj(res2)) delete arg2;
17414   if (SWIG_IsNewObj(res3)) delete arg3;
17415   return TCL_ERROR;
17416 }
17417 
17418 
17419 SWIGINTERN int
_wrap_RangeProcessor_apply(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])17420 _wrap_RangeProcessor_apply(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
17421   Xapian::RangeProcessor *arg1 = (Xapian::RangeProcessor *) 0 ;
17422   std::string *arg2 = 0 ;
17423   std::string *arg3 = 0 ;
17424   void *argp1 = 0 ;
17425   int res1 = 0 ;
17426   int res2 = SWIG_OLDOBJ ;
17427   int res3 = SWIG_OLDOBJ ;
17428   Xapian::Query result;
17429 
17430   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::RangeProcessor_apply self begin end ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
17431   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__RangeProcessor, 0 |  0 );
17432   if (!SWIG_IsOK(res1)) {
17433     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RangeProcessor_apply" "', argument " "1"" of type '" "Xapian::RangeProcessor *""'");
17434   }
17435   arg1 = reinterpret_cast< Xapian::RangeProcessor * >(argp1);
17436   {
17437     std::string *ptr = (std::string *)0;
17438     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
17439     if (!SWIG_IsOK(res2)) {
17440       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RangeProcessor_apply" "', argument " "2"" of type '" "std::string const &""'");
17441     }
17442     if (!ptr) {
17443       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RangeProcessor_apply" "', argument " "2"" of type '" "std::string const &""'");
17444     }
17445     arg2 = ptr;
17446   }
17447   {
17448     std::string *ptr = (std::string *)0;
17449     res3 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[3], &ptr);
17450     if (!SWIG_IsOK(res3)) {
17451       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RangeProcessor_apply" "', argument " "3"" of type '" "std::string const &""'");
17452     }
17453     if (!ptr) {
17454       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RangeProcessor_apply" "', argument " "3"" of type '" "std::string const &""'");
17455     }
17456     arg3 = ptr;
17457   }
17458   {
17459     try {
17460       result = (arg1)->operator ()((std::string const &)*arg2,(std::string const &)*arg3);
17461     } catch (const Xapian::Error &e) {
17462       return XapianTclHandleError(interp, e);
17463     } catch (...) {
17464       return XapianTclHandleError(interp);
17465     }
17466   }
17467   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::Query(static_cast< const Xapian::Query& >(result))), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_OWN | 0 ));
17468   if (SWIG_IsNewObj(res2)) delete arg2;
17469   if (SWIG_IsNewObj(res3)) delete arg3;
17470   return TCL_OK;
17471 fail:
17472   if (SWIG_IsNewObj(res2)) delete arg2;
17473   if (SWIG_IsNewObj(res3)) delete arg3;
17474   return TCL_ERROR;
17475 }
17476 
17477 
17478 SWIGINTERN int
_wrap_RangeProcessor_release(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])17479 _wrap_RangeProcessor_release(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
17480   Xapian::RangeProcessor *arg1 = (Xapian::RangeProcessor *) 0 ;
17481   void *argp1 = 0 ;
17482   int res1 = 0 ;
17483   Xapian::RangeProcessor *result = 0 ;
17484 
17485   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::RangeProcessor_release self ",(void *)0) == TCL_ERROR) SWIG_fail;
17486   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__RangeProcessor, 0 |  0 );
17487   if (!SWIG_IsOK(res1)) {
17488     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RangeProcessor_release" "', argument " "1"" of type '" "Xapian::RangeProcessor const *""'");
17489   }
17490   arg1 = reinterpret_cast< Xapian::RangeProcessor * >(argp1);
17491   {
17492     try {
17493       result = (Xapian::RangeProcessor *)((Xapian::RangeProcessor const *)arg1)->release();
17494     } catch (const Xapian::Error &e) {
17495       return XapianTclHandleError(interp, e);
17496     } catch (...) {
17497       return XapianTclHandleError(interp);
17498     }
17499   }
17500   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__RangeProcessor,0));
17501   return TCL_OK;
17502 fail:
17503   return TCL_ERROR;
17504 }
17505 
17506 
swig_delete_RangeProcessor(void * obj)17507 SWIGINTERN void swig_delete_RangeProcessor(void *obj) {
17508 Xapian::RangeProcessor *arg1 = (Xapian::RangeProcessor *) obj;
17509 delete arg1;
17510 }
17511 static swig_method swig_Xapian_RangeProcessor_methods[] = {
17512     {"check_range", _wrap_RangeProcessor_check_range},
17513     {"apply", _wrap_RangeProcessor_apply},
17514     {"release", _wrap_RangeProcessor_release},
17515     {0,0}
17516 };
17517 static swig_attribute swig_Xapian_RangeProcessor_attributes[] = {
17518     {0,0,0}
17519 };
17520 static swig_class *swig_Xapian_RangeProcessor_bases[] = {0};
17521 static const char * swig_Xapian_RangeProcessor_base_names[] = {0};
17522 static swig_class _wrap_class_Xapian_RangeProcessor = { "RangeProcessor", &SWIGTYPE_p_Xapian__RangeProcessor,_wrap_new_RangeProcessor, swig_delete_RangeProcessor, swig_Xapian_RangeProcessor_methods, swig_Xapian_RangeProcessor_attributes, swig_Xapian_RangeProcessor_bases,swig_Xapian_RangeProcessor_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
17523 SWIGINTERN int
_wrap_new_DateRangeProcessor__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])17524 _wrap_new_DateRangeProcessor__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
17525   Xapian::valueno arg1 ;
17526   unsigned int arg2 ;
17527   int arg3 ;
17528   unsigned int val1 ;
17529   int ecode1 = 0 ;
17530   unsigned int val2 ;
17531   int ecode2 = 0 ;
17532   int val3 ;
17533   int ecode3 = 0 ;
17534   Xapian::DateRangeProcessor *result = 0 ;
17535 
17536   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::new_DateRangeProcessor slot_ flags_ epoch_year_ ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
17537   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
17538   if (!SWIG_IsOK(ecode1)) {
17539     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
17540   }
17541   arg1 = static_cast< Xapian::valueno >(val1);
17542   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
17543   if (!SWIG_IsOK(ecode2)) {
17544     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DateRangeProcessor" "', argument " "2"" of type '" "unsigned int""'");
17545   }
17546   arg2 = static_cast< unsigned int >(val2);
17547   ecode3 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
17548   if (!SWIG_IsOK(ecode3)) {
17549     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DateRangeProcessor" "', argument " "3"" of type '" "int""'");
17550   }
17551   arg3 = static_cast< int >(val3);
17552   {
17553     try {
17554       result = (Xapian::DateRangeProcessor *)new Xapian::DateRangeProcessor(arg1,arg2,arg3);
17555     } catch (const Xapian::Error &e) {
17556       return XapianTclHandleError(interp, e);
17557     } catch (...) {
17558       return XapianTclHandleError(interp);
17559     }
17560   }
17561   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DateRangeProcessor,0));
17562   return TCL_OK;
17563 fail:
17564   return TCL_ERROR;
17565 }
17566 
17567 
17568 SWIGINTERN int
_wrap_new_DateRangeProcessor__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])17569 _wrap_new_DateRangeProcessor__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
17570   Xapian::valueno arg1 ;
17571   unsigned int arg2 ;
17572   unsigned int val1 ;
17573   int ecode1 = 0 ;
17574   unsigned int val2 ;
17575   int ecode2 = 0 ;
17576   Xapian::DateRangeProcessor *result = 0 ;
17577 
17578   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::new_DateRangeProcessor slot_ flags_ ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
17579   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
17580   if (!SWIG_IsOK(ecode1)) {
17581     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
17582   }
17583   arg1 = static_cast< Xapian::valueno >(val1);
17584   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
17585   if (!SWIG_IsOK(ecode2)) {
17586     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DateRangeProcessor" "', argument " "2"" of type '" "unsigned int""'");
17587   }
17588   arg2 = static_cast< unsigned int >(val2);
17589   {
17590     try {
17591       result = (Xapian::DateRangeProcessor *)new Xapian::DateRangeProcessor(arg1,arg2);
17592     } catch (const Xapian::Error &e) {
17593       return XapianTclHandleError(interp, e);
17594     } catch (...) {
17595       return XapianTclHandleError(interp);
17596     }
17597   }
17598   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DateRangeProcessor,0));
17599   return TCL_OK;
17600 fail:
17601   return TCL_ERROR;
17602 }
17603 
17604 
17605 SWIGINTERN int
_wrap_new_DateRangeProcessor__SWIG_2(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])17606 _wrap_new_DateRangeProcessor__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
17607   Xapian::valueno arg1 ;
17608   unsigned int val1 ;
17609   int ecode1 = 0 ;
17610   Xapian::DateRangeProcessor *result = 0 ;
17611 
17612   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_DateRangeProcessor slot_ ",(void *)0) == TCL_ERROR) SWIG_fail;
17613   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
17614   if (!SWIG_IsOK(ecode1)) {
17615     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
17616   }
17617   arg1 = static_cast< Xapian::valueno >(val1);
17618   {
17619     try {
17620       result = (Xapian::DateRangeProcessor *)new Xapian::DateRangeProcessor(arg1);
17621     } catch (const Xapian::Error &e) {
17622       return XapianTclHandleError(interp, e);
17623     } catch (...) {
17624       return XapianTclHandleError(interp);
17625     }
17626   }
17627   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DateRangeProcessor,0));
17628   return TCL_OK;
17629 fail:
17630   return TCL_ERROR;
17631 }
17632 
17633 
17634 SWIGINTERN int
_wrap_new_DateRangeProcessor__SWIG_3(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])17635 _wrap_new_DateRangeProcessor__SWIG_3(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
17636   Xapian::valueno arg1 ;
17637   std::string *arg2 = 0 ;
17638   unsigned int arg3 ;
17639   int arg4 ;
17640   unsigned int val1 ;
17641   int ecode1 = 0 ;
17642   int res2 = SWIG_OLDOBJ ;
17643   unsigned int val3 ;
17644   int ecode3 = 0 ;
17645   int val4 ;
17646   int ecode4 = 0 ;
17647   Xapian::DateRangeProcessor *result = 0 ;
17648 
17649   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::new_DateRangeProcessor slot_ str_ flags_ epoch_year_ ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
17650   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
17651   if (!SWIG_IsOK(ecode1)) {
17652     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
17653   }
17654   arg1 = static_cast< Xapian::valueno >(val1);
17655   {
17656     std::string *ptr = (std::string *)0;
17657     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
17658     if (!SWIG_IsOK(res2)) {
17659       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DateRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
17660     }
17661     if (!ptr) {
17662       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DateRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
17663     }
17664     arg2 = ptr;
17665   }
17666   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
17667   if (!SWIG_IsOK(ecode3)) {
17668     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DateRangeProcessor" "', argument " "3"" of type '" "unsigned int""'");
17669   }
17670   arg3 = static_cast< unsigned int >(val3);
17671   ecode4 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
17672   if (!SWIG_IsOK(ecode4)) {
17673     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DateRangeProcessor" "', argument " "4"" of type '" "int""'");
17674   }
17675   arg4 = static_cast< int >(val4);
17676   {
17677     try {
17678       result = (Xapian::DateRangeProcessor *)new Xapian::DateRangeProcessor(arg1,(std::string const &)*arg2,arg3,arg4);
17679     } catch (const Xapian::Error &e) {
17680       return XapianTclHandleError(interp, e);
17681     } catch (...) {
17682       return XapianTclHandleError(interp);
17683     }
17684   }
17685   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DateRangeProcessor,0));
17686   if (SWIG_IsNewObj(res2)) delete arg2;
17687   return TCL_OK;
17688 fail:
17689   if (SWIG_IsNewObj(res2)) delete arg2;
17690   return TCL_ERROR;
17691 }
17692 
17693 
17694 SWIGINTERN int
_wrap_new_DateRangeProcessor__SWIG_4(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])17695 _wrap_new_DateRangeProcessor__SWIG_4(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
17696   Xapian::valueno arg1 ;
17697   std::string *arg2 = 0 ;
17698   unsigned int arg3 ;
17699   unsigned int val1 ;
17700   int ecode1 = 0 ;
17701   int res2 = SWIG_OLDOBJ ;
17702   unsigned int val3 ;
17703   int ecode3 = 0 ;
17704   Xapian::DateRangeProcessor *result = 0 ;
17705 
17706   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::new_DateRangeProcessor slot_ str_ flags_ ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
17707   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
17708   if (!SWIG_IsOK(ecode1)) {
17709     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
17710   }
17711   arg1 = static_cast< Xapian::valueno >(val1);
17712   {
17713     std::string *ptr = (std::string *)0;
17714     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
17715     if (!SWIG_IsOK(res2)) {
17716       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DateRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
17717     }
17718     if (!ptr) {
17719       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DateRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
17720     }
17721     arg2 = ptr;
17722   }
17723   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
17724   if (!SWIG_IsOK(ecode3)) {
17725     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DateRangeProcessor" "', argument " "3"" of type '" "unsigned int""'");
17726   }
17727   arg3 = static_cast< unsigned int >(val3);
17728   {
17729     try {
17730       result = (Xapian::DateRangeProcessor *)new Xapian::DateRangeProcessor(arg1,(std::string const &)*arg2,arg3);
17731     } catch (const Xapian::Error &e) {
17732       return XapianTclHandleError(interp, e);
17733     } catch (...) {
17734       return XapianTclHandleError(interp);
17735     }
17736   }
17737   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DateRangeProcessor,0));
17738   if (SWIG_IsNewObj(res2)) delete arg2;
17739   return TCL_OK;
17740 fail:
17741   if (SWIG_IsNewObj(res2)) delete arg2;
17742   return TCL_ERROR;
17743 }
17744 
17745 
17746 SWIGINTERN int
_wrap_new_DateRangeProcessor__SWIG_5(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])17747 _wrap_new_DateRangeProcessor__SWIG_5(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
17748   Xapian::valueno arg1 ;
17749   std::string *arg2 = 0 ;
17750   unsigned int val1 ;
17751   int ecode1 = 0 ;
17752   int res2 = SWIG_OLDOBJ ;
17753   Xapian::DateRangeProcessor *result = 0 ;
17754 
17755   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::new_DateRangeProcessor slot_ str_ ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
17756   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
17757   if (!SWIG_IsOK(ecode1)) {
17758     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
17759   }
17760   arg1 = static_cast< Xapian::valueno >(val1);
17761   {
17762     std::string *ptr = (std::string *)0;
17763     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
17764     if (!SWIG_IsOK(res2)) {
17765       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DateRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
17766     }
17767     if (!ptr) {
17768       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DateRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
17769     }
17770     arg2 = ptr;
17771   }
17772   {
17773     try {
17774       result = (Xapian::DateRangeProcessor *)new Xapian::DateRangeProcessor(arg1,(std::string const &)*arg2);
17775     } catch (const Xapian::Error &e) {
17776       return XapianTclHandleError(interp, e);
17777     } catch (...) {
17778       return XapianTclHandleError(interp);
17779     }
17780   }
17781   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DateRangeProcessor,0));
17782   if (SWIG_IsNewObj(res2)) delete arg2;
17783   return TCL_OK;
17784 fail:
17785   if (SWIG_IsNewObj(res2)) delete arg2;
17786   return TCL_ERROR;
17787 }
17788 
17789 
17790 SWIGINTERN int
_wrap_new_DateRangeProcessor(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])17791 _wrap_new_DateRangeProcessor(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
17792   Tcl_Obj *CONST *argv = objv+1;
17793   int argc = objc-1;
17794   if (argc == 1) {
17795     int _v;
17796     {
17797       int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
17798       _v = SWIG_CheckState(res);
17799     }
17800     if (_v) {
17801       return _wrap_new_DateRangeProcessor__SWIG_2(clientData, interp, objc, argv - 1);
17802     }
17803   }
17804   if (argc == 2) {
17805     int _v;
17806     {
17807       int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
17808       _v = SWIG_CheckState(res);
17809     }
17810     if (_v) {
17811       {
17812         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
17813         _v = SWIG_CheckState(res);
17814       }
17815       if (_v) {
17816         return _wrap_new_DateRangeProcessor__SWIG_1(clientData, interp, objc, argv - 1);
17817       }
17818     }
17819   }
17820   if (argc == 2) {
17821     int _v;
17822     {
17823       int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
17824       _v = SWIG_CheckState(res);
17825     }
17826     if (_v) {
17827       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
17828       _v = SWIG_CheckState(res);
17829       if (_v) {
17830         return _wrap_new_DateRangeProcessor__SWIG_5(clientData, interp, objc, argv - 1);
17831       }
17832     }
17833   }
17834   if (argc == 3) {
17835     int _v;
17836     {
17837       int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
17838       _v = SWIG_CheckState(res);
17839     }
17840     if (_v) {
17841       {
17842         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
17843         _v = SWIG_CheckState(res);
17844       }
17845       if (_v) {
17846         {
17847           int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
17848           _v = SWIG_CheckState(res);
17849         }
17850         if (_v) {
17851           return _wrap_new_DateRangeProcessor__SWIG_0(clientData, interp, objc, argv - 1);
17852         }
17853       }
17854     }
17855   }
17856   if (argc == 3) {
17857     int _v;
17858     {
17859       int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
17860       _v = SWIG_CheckState(res);
17861     }
17862     if (_v) {
17863       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
17864       _v = SWIG_CheckState(res);
17865       if (_v) {
17866         {
17867           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
17868           _v = SWIG_CheckState(res);
17869         }
17870         if (_v) {
17871           return _wrap_new_DateRangeProcessor__SWIG_4(clientData, interp, objc, argv - 1);
17872         }
17873       }
17874     }
17875   }
17876   if (argc == 4) {
17877     int _v;
17878     {
17879       int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
17880       _v = SWIG_CheckState(res);
17881     }
17882     if (_v) {
17883       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
17884       _v = SWIG_CheckState(res);
17885       if (_v) {
17886         {
17887           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
17888           _v = SWIG_CheckState(res);
17889         }
17890         if (_v) {
17891           {
17892             int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
17893             _v = SWIG_CheckState(res);
17894           }
17895           if (_v) {
17896             return _wrap_new_DateRangeProcessor__SWIG_3(clientData, interp, objc, argv - 1);
17897           }
17898         }
17899       }
17900     }
17901   }
17902 
17903   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_DateRangeProcessor'.\n"
17904     "  Possible C/C++ prototypes are:\n"
17905     "    Xapian::DateRangeProcessor::DateRangeProcessor(Xapian::valueno,unsigned int,int)\n"
17906     "    Xapian::DateRangeProcessor::DateRangeProcessor(Xapian::valueno,unsigned int)\n"
17907     "    Xapian::DateRangeProcessor::DateRangeProcessor(Xapian::valueno)\n"
17908     "    Xapian::DateRangeProcessor::DateRangeProcessor(Xapian::valueno,std::string const &,unsigned int,int)\n"
17909     "    Xapian::DateRangeProcessor::DateRangeProcessor(Xapian::valueno,std::string const &,unsigned int)\n"
17910     "    Xapian::DateRangeProcessor::DateRangeProcessor(Xapian::valueno,std::string const &)\n", TCL_STATIC);
17911   return TCL_ERROR;
17912 }
17913 
17914 
17915 SWIGINTERN int
_wrap_DateRangeProcessor_apply(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])17916 _wrap_DateRangeProcessor_apply(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
17917   Xapian::DateRangeProcessor *arg1 = (Xapian::DateRangeProcessor *) 0 ;
17918   std::string *arg2 = 0 ;
17919   std::string *arg3 = 0 ;
17920   void *argp1 = 0 ;
17921   int res1 = 0 ;
17922   int res2 = SWIG_OLDOBJ ;
17923   int res3 = SWIG_OLDOBJ ;
17924   Xapian::Query result;
17925 
17926   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::DateRangeProcessor_apply self begin end ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
17927   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__DateRangeProcessor, 0 |  0 );
17928   if (!SWIG_IsOK(res1)) {
17929     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateRangeProcessor_apply" "', argument " "1"" of type '" "Xapian::DateRangeProcessor *""'");
17930   }
17931   arg1 = reinterpret_cast< Xapian::DateRangeProcessor * >(argp1);
17932   {
17933     std::string *ptr = (std::string *)0;
17934     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
17935     if (!SWIG_IsOK(res2)) {
17936       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateRangeProcessor_apply" "', argument " "2"" of type '" "std::string const &""'");
17937     }
17938     if (!ptr) {
17939       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateRangeProcessor_apply" "', argument " "2"" of type '" "std::string const &""'");
17940     }
17941     arg2 = ptr;
17942   }
17943   {
17944     std::string *ptr = (std::string *)0;
17945     res3 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[3], &ptr);
17946     if (!SWIG_IsOK(res3)) {
17947       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DateRangeProcessor_apply" "', argument " "3"" of type '" "std::string const &""'");
17948     }
17949     if (!ptr) {
17950       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateRangeProcessor_apply" "', argument " "3"" of type '" "std::string const &""'");
17951     }
17952     arg3 = ptr;
17953   }
17954   {
17955     try {
17956       result = (arg1)->operator ()((std::string const &)*arg2,(std::string const &)*arg3);
17957     } catch (const Xapian::Error &e) {
17958       return XapianTclHandleError(interp, e);
17959     } catch (...) {
17960       return XapianTclHandleError(interp);
17961     }
17962   }
17963   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::Query(static_cast< const Xapian::Query& >(result))), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_OWN | 0 ));
17964   if (SWIG_IsNewObj(res2)) delete arg2;
17965   if (SWIG_IsNewObj(res3)) delete arg3;
17966   return TCL_OK;
17967 fail:
17968   if (SWIG_IsNewObj(res2)) delete arg2;
17969   if (SWIG_IsNewObj(res3)) delete arg3;
17970   return TCL_ERROR;
17971 }
17972 
17973 
17974 SWIGINTERN int
_wrap_delete_DateRangeProcessor(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])17975 _wrap_delete_DateRangeProcessor(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
17976   Xapian::DateRangeProcessor *arg1 = (Xapian::DateRangeProcessor *) 0 ;
17977   void *argp1 = 0 ;
17978   int res1 = 0 ;
17979 
17980   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_DateRangeProcessor self ",(void *)0) == TCL_ERROR) SWIG_fail;
17981   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__DateRangeProcessor, SWIG_POINTER_DISOWN |  0 );
17982   if (!SWIG_IsOK(res1)) {
17983     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DateRangeProcessor" "', argument " "1"" of type '" "Xapian::DateRangeProcessor *""'");
17984   }
17985   arg1 = reinterpret_cast< Xapian::DateRangeProcessor * >(argp1);
17986   {
17987     try {
17988       delete arg1;
17989     } catch (const Xapian::Error &e) {
17990       return XapianTclHandleError(interp, e);
17991     } catch (...) {
17992       return XapianTclHandleError(interp);
17993     }
17994   }
17995 
17996   return TCL_OK;
17997 fail:
17998   return TCL_ERROR;
17999 }
18000 
18001 
swig_delete_DateRangeProcessor(void * obj)18002 SWIGINTERN void swig_delete_DateRangeProcessor(void *obj) {
18003 Xapian::DateRangeProcessor *arg1 = (Xapian::DateRangeProcessor *) obj;
18004 delete arg1;
18005 }
18006 static swig_method swig_Xapian_DateRangeProcessor_methods[] = {
18007     {"apply", _wrap_DateRangeProcessor_apply},
18008     {0,0}
18009 };
18010 static swig_attribute swig_Xapian_DateRangeProcessor_attributes[] = {
18011     {0,0,0}
18012 };
18013 static swig_class *swig_Xapian_DateRangeProcessor_bases[] = {0,0};
18014 static const char * swig_Xapian_DateRangeProcessor_base_names[] = {"Xapian::RangeProcessor *",0};
18015 static swig_class _wrap_class_Xapian_DateRangeProcessor = { "DateRangeProcessor", &SWIGTYPE_p_Xapian__DateRangeProcessor,_wrap_new_DateRangeProcessor, swig_delete_DateRangeProcessor, swig_Xapian_DateRangeProcessor_methods, swig_Xapian_DateRangeProcessor_attributes, swig_Xapian_DateRangeProcessor_bases,swig_Xapian_DateRangeProcessor_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
18016 SWIGINTERN int
_wrap_new_NumberRangeProcessor__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])18017 _wrap_new_NumberRangeProcessor__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
18018   Xapian::valueno arg1 ;
18019   std::string *arg2 = 0 ;
18020   unsigned int arg3 ;
18021   unsigned int val1 ;
18022   int ecode1 = 0 ;
18023   int res2 = SWIG_OLDOBJ ;
18024   unsigned int val3 ;
18025   int ecode3 = 0 ;
18026   Xapian::NumberRangeProcessor *result = 0 ;
18027 
18028   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::new_NumberRangeProcessor slot_ str_ flags_ ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
18029   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
18030   if (!SWIG_IsOK(ecode1)) {
18031     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NumberRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
18032   }
18033   arg1 = static_cast< Xapian::valueno >(val1);
18034   {
18035     std::string *ptr = (std::string *)0;
18036     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
18037     if (!SWIG_IsOK(res2)) {
18038       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NumberRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
18039     }
18040     if (!ptr) {
18041       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NumberRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
18042     }
18043     arg2 = ptr;
18044   }
18045   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
18046   if (!SWIG_IsOK(ecode3)) {
18047     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NumberRangeProcessor" "', argument " "3"" of type '" "unsigned int""'");
18048   }
18049   arg3 = static_cast< unsigned int >(val3);
18050   {
18051     try {
18052       result = (Xapian::NumberRangeProcessor *)new Xapian::NumberRangeProcessor(arg1,(std::string const &)*arg2,arg3);
18053     } catch (const Xapian::Error &e) {
18054       return XapianTclHandleError(interp, e);
18055     } catch (...) {
18056       return XapianTclHandleError(interp);
18057     }
18058   }
18059   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__NumberRangeProcessor,0));
18060   if (SWIG_IsNewObj(res2)) delete arg2;
18061   return TCL_OK;
18062 fail:
18063   if (SWIG_IsNewObj(res2)) delete arg2;
18064   return TCL_ERROR;
18065 }
18066 
18067 
18068 SWIGINTERN int
_wrap_new_NumberRangeProcessor__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])18069 _wrap_new_NumberRangeProcessor__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
18070   Xapian::valueno arg1 ;
18071   std::string *arg2 = 0 ;
18072   unsigned int val1 ;
18073   int ecode1 = 0 ;
18074   int res2 = SWIG_OLDOBJ ;
18075   Xapian::NumberRangeProcessor *result = 0 ;
18076 
18077   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::new_NumberRangeProcessor slot_ str_ ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
18078   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
18079   if (!SWIG_IsOK(ecode1)) {
18080     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NumberRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
18081   }
18082   arg1 = static_cast< Xapian::valueno >(val1);
18083   {
18084     std::string *ptr = (std::string *)0;
18085     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
18086     if (!SWIG_IsOK(res2)) {
18087       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NumberRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
18088     }
18089     if (!ptr) {
18090       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NumberRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
18091     }
18092     arg2 = ptr;
18093   }
18094   {
18095     try {
18096       result = (Xapian::NumberRangeProcessor *)new Xapian::NumberRangeProcessor(arg1,(std::string const &)*arg2);
18097     } catch (const Xapian::Error &e) {
18098       return XapianTclHandleError(interp, e);
18099     } catch (...) {
18100       return XapianTclHandleError(interp);
18101     }
18102   }
18103   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__NumberRangeProcessor,0));
18104   if (SWIG_IsNewObj(res2)) delete arg2;
18105   return TCL_OK;
18106 fail:
18107   if (SWIG_IsNewObj(res2)) delete arg2;
18108   return TCL_ERROR;
18109 }
18110 
18111 
18112 SWIGINTERN int
_wrap_new_NumberRangeProcessor__SWIG_2(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])18113 _wrap_new_NumberRangeProcessor__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
18114   Xapian::valueno arg1 ;
18115   unsigned int val1 ;
18116   int ecode1 = 0 ;
18117   Xapian::NumberRangeProcessor *result = 0 ;
18118 
18119   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_NumberRangeProcessor slot_ ",(void *)0) == TCL_ERROR) SWIG_fail;
18120   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
18121   if (!SWIG_IsOK(ecode1)) {
18122     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NumberRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
18123   }
18124   arg1 = static_cast< Xapian::valueno >(val1);
18125   {
18126     try {
18127       result = (Xapian::NumberRangeProcessor *)new Xapian::NumberRangeProcessor(arg1);
18128     } catch (const Xapian::Error &e) {
18129       return XapianTclHandleError(interp, e);
18130     } catch (...) {
18131       return XapianTclHandleError(interp);
18132     }
18133   }
18134   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__NumberRangeProcessor,0));
18135   return TCL_OK;
18136 fail:
18137   return TCL_ERROR;
18138 }
18139 
18140 
18141 SWIGINTERN int
_wrap_new_NumberRangeProcessor(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])18142 _wrap_new_NumberRangeProcessor(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
18143   Tcl_Obj *CONST *argv = objv+1;
18144   int argc = objc-1;
18145   if (argc == 1) {
18146     int _v;
18147     {
18148       int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
18149       _v = SWIG_CheckState(res);
18150     }
18151     if (_v) {
18152       return _wrap_new_NumberRangeProcessor__SWIG_2(clientData, interp, objc, argv - 1);
18153     }
18154   }
18155   if (argc == 2) {
18156     int _v;
18157     {
18158       int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
18159       _v = SWIG_CheckState(res);
18160     }
18161     if (_v) {
18162       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
18163       _v = SWIG_CheckState(res);
18164       if (_v) {
18165         return _wrap_new_NumberRangeProcessor__SWIG_1(clientData, interp, objc, argv - 1);
18166       }
18167     }
18168   }
18169   if (argc == 3) {
18170     int _v;
18171     {
18172       int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
18173       _v = SWIG_CheckState(res);
18174     }
18175     if (_v) {
18176       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
18177       _v = SWIG_CheckState(res);
18178       if (_v) {
18179         {
18180           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
18181           _v = SWIG_CheckState(res);
18182         }
18183         if (_v) {
18184           return _wrap_new_NumberRangeProcessor__SWIG_0(clientData, interp, objc, argv - 1);
18185         }
18186       }
18187     }
18188   }
18189 
18190   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_NumberRangeProcessor'.\n"
18191     "  Possible C/C++ prototypes are:\n"
18192     "    Xapian::NumberRangeProcessor::NumberRangeProcessor(Xapian::valueno,std::string const &,unsigned int)\n"
18193     "    Xapian::NumberRangeProcessor::NumberRangeProcessor(Xapian::valueno,std::string const &)\n"
18194     "    Xapian::NumberRangeProcessor::NumberRangeProcessor(Xapian::valueno)\n", TCL_STATIC);
18195   return TCL_ERROR;
18196 }
18197 
18198 
18199 SWIGINTERN int
_wrap_NumberRangeProcessor_apply(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])18200 _wrap_NumberRangeProcessor_apply(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
18201   Xapian::NumberRangeProcessor *arg1 = (Xapian::NumberRangeProcessor *) 0 ;
18202   std::string *arg2 = 0 ;
18203   std::string *arg3 = 0 ;
18204   void *argp1 = 0 ;
18205   int res1 = 0 ;
18206   int res2 = SWIG_OLDOBJ ;
18207   int res3 = SWIG_OLDOBJ ;
18208   Xapian::Query result;
18209 
18210   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::NumberRangeProcessor_apply self begin end ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
18211   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__NumberRangeProcessor, 0 |  0 );
18212   if (!SWIG_IsOK(res1)) {
18213     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NumberRangeProcessor_apply" "', argument " "1"" of type '" "Xapian::NumberRangeProcessor *""'");
18214   }
18215   arg1 = reinterpret_cast< Xapian::NumberRangeProcessor * >(argp1);
18216   {
18217     std::string *ptr = (std::string *)0;
18218     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
18219     if (!SWIG_IsOK(res2)) {
18220       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NumberRangeProcessor_apply" "', argument " "2"" of type '" "std::string const &""'");
18221     }
18222     if (!ptr) {
18223       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NumberRangeProcessor_apply" "', argument " "2"" of type '" "std::string const &""'");
18224     }
18225     arg2 = ptr;
18226   }
18227   {
18228     std::string *ptr = (std::string *)0;
18229     res3 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[3], &ptr);
18230     if (!SWIG_IsOK(res3)) {
18231       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "NumberRangeProcessor_apply" "', argument " "3"" of type '" "std::string const &""'");
18232     }
18233     if (!ptr) {
18234       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NumberRangeProcessor_apply" "', argument " "3"" of type '" "std::string const &""'");
18235     }
18236     arg3 = ptr;
18237   }
18238   {
18239     try {
18240       result = (arg1)->operator ()((std::string const &)*arg2,(std::string const &)*arg3);
18241     } catch (const Xapian::Error &e) {
18242       return XapianTclHandleError(interp, e);
18243     } catch (...) {
18244       return XapianTclHandleError(interp);
18245     }
18246   }
18247   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::Query(static_cast< const Xapian::Query& >(result))), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_OWN | 0 ));
18248   if (SWIG_IsNewObj(res2)) delete arg2;
18249   if (SWIG_IsNewObj(res3)) delete arg3;
18250   return TCL_OK;
18251 fail:
18252   if (SWIG_IsNewObj(res2)) delete arg2;
18253   if (SWIG_IsNewObj(res3)) delete arg3;
18254   return TCL_ERROR;
18255 }
18256 
18257 
18258 SWIGINTERN int
_wrap_delete_NumberRangeProcessor(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])18259 _wrap_delete_NumberRangeProcessor(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
18260   Xapian::NumberRangeProcessor *arg1 = (Xapian::NumberRangeProcessor *) 0 ;
18261   void *argp1 = 0 ;
18262   int res1 = 0 ;
18263 
18264   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_NumberRangeProcessor self ",(void *)0) == TCL_ERROR) SWIG_fail;
18265   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__NumberRangeProcessor, SWIG_POINTER_DISOWN |  0 );
18266   if (!SWIG_IsOK(res1)) {
18267     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NumberRangeProcessor" "', argument " "1"" of type '" "Xapian::NumberRangeProcessor *""'");
18268   }
18269   arg1 = reinterpret_cast< Xapian::NumberRangeProcessor * >(argp1);
18270   {
18271     try {
18272       delete arg1;
18273     } catch (const Xapian::Error &e) {
18274       return XapianTclHandleError(interp, e);
18275     } catch (...) {
18276       return XapianTclHandleError(interp);
18277     }
18278   }
18279 
18280   return TCL_OK;
18281 fail:
18282   return TCL_ERROR;
18283 }
18284 
18285 
swig_delete_NumberRangeProcessor(void * obj)18286 SWIGINTERN void swig_delete_NumberRangeProcessor(void *obj) {
18287 Xapian::NumberRangeProcessor *arg1 = (Xapian::NumberRangeProcessor *) obj;
18288 delete arg1;
18289 }
18290 static swig_method swig_Xapian_NumberRangeProcessor_methods[] = {
18291     {"apply", _wrap_NumberRangeProcessor_apply},
18292     {0,0}
18293 };
18294 static swig_attribute swig_Xapian_NumberRangeProcessor_attributes[] = {
18295     {0,0,0}
18296 };
18297 static swig_class *swig_Xapian_NumberRangeProcessor_bases[] = {0,0};
18298 static const char * swig_Xapian_NumberRangeProcessor_base_names[] = {"Xapian::RangeProcessor *",0};
18299 static swig_class _wrap_class_Xapian_NumberRangeProcessor = { "NumberRangeProcessor", &SWIGTYPE_p_Xapian__NumberRangeProcessor,_wrap_new_NumberRangeProcessor, swig_delete_NumberRangeProcessor, swig_Xapian_NumberRangeProcessor_methods, swig_Xapian_NumberRangeProcessor_attributes, swig_Xapian_NumberRangeProcessor_bases,swig_Xapian_NumberRangeProcessor_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
18300 SWIGINTERN int
_wrap_delete_ValueRangeProcessor(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])18301 _wrap_delete_ValueRangeProcessor(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
18302   Xapian::ValueRangeProcessor *arg1 = (Xapian::ValueRangeProcessor *) 0 ;
18303   void *argp1 = 0 ;
18304   int res1 = 0 ;
18305 
18306   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_ValueRangeProcessor self ",(void *)0) == TCL_ERROR) SWIG_fail;
18307   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValueRangeProcessor, SWIG_POINTER_DISOWN |  0 );
18308   if (!SWIG_IsOK(res1)) {
18309     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ValueRangeProcessor" "', argument " "1"" of type '" "Xapian::ValueRangeProcessor *""'");
18310   }
18311   arg1 = reinterpret_cast< Xapian::ValueRangeProcessor * >(argp1);
18312   {
18313     try {
18314       delete arg1;
18315     } catch (const Xapian::Error &e) {
18316       return XapianTclHandleError(interp, e);
18317     } catch (...) {
18318       return XapianTclHandleError(interp);
18319     }
18320   }
18321 
18322   return TCL_OK;
18323 fail:
18324   return TCL_ERROR;
18325 }
18326 
18327 
18328 SWIGINTERN int
_wrap_ValueRangeProcessor_apply(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])18329 _wrap_ValueRangeProcessor_apply(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
18330   Xapian::ValueRangeProcessor *arg1 = (Xapian::ValueRangeProcessor *) 0 ;
18331   std::string *arg2 = 0 ;
18332   std::string *arg3 = 0 ;
18333   void *argp1 = 0 ;
18334   int res1 = 0 ;
18335   void *argp2 = 0 ;
18336   int res2 = 0 ;
18337   void *argp3 = 0 ;
18338   int res3 = 0 ;
18339   Xapian::valueno result;
18340 
18341   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::ValueRangeProcessor_apply self begin end ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
18342   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValueRangeProcessor, 0 |  0 );
18343   if (!SWIG_IsOK(res1)) {
18344     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueRangeProcessor_apply" "', argument " "1"" of type '" "Xapian::ValueRangeProcessor *""'");
18345   }
18346   arg1 = reinterpret_cast< Xapian::ValueRangeProcessor * >(argp1);
18347   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_std__string,  0 );
18348   if (!SWIG_IsOK(res2)) {
18349     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ValueRangeProcessor_apply" "', argument " "2"" of type '" "std::string &""'");
18350   }
18351   if (!argp2) {
18352     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ValueRangeProcessor_apply" "', argument " "2"" of type '" "std::string &""'");
18353   }
18354   arg2 = reinterpret_cast< std::string * >(argp2);
18355   res3 = SWIG_ConvertPtr(objv[3], &argp3, SWIGTYPE_p_std__string,  0 );
18356   if (!SWIG_IsOK(res3)) {
18357     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ValueRangeProcessor_apply" "', argument " "3"" of type '" "std::string &""'");
18358   }
18359   if (!argp3) {
18360     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ValueRangeProcessor_apply" "', argument " "3"" of type '" "std::string &""'");
18361   }
18362   arg3 = reinterpret_cast< std::string * >(argp3);
18363   {
18364     try {
18365       result = (Xapian::valueno)(arg1)->operator ()(*arg2,*arg3);
18366     } catch (const Xapian::Error &e) {
18367       return XapianTclHandleError(interp, e);
18368     } catch (...) {
18369       return XapianTclHandleError(interp);
18370     }
18371   }
18372   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
18373   return TCL_OK;
18374 fail:
18375   return TCL_ERROR;
18376 }
18377 
18378 
18379 SWIGINTERN int
_wrap_ValueRangeProcessor_release(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])18380 _wrap_ValueRangeProcessor_release(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
18381   Xapian::ValueRangeProcessor *arg1 = (Xapian::ValueRangeProcessor *) 0 ;
18382   void *argp1 = 0 ;
18383   int res1 = 0 ;
18384   Xapian::ValueRangeProcessor *result = 0 ;
18385 
18386   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::ValueRangeProcessor_release self ",(void *)0) == TCL_ERROR) SWIG_fail;
18387   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValueRangeProcessor, 0 |  0 );
18388   if (!SWIG_IsOK(res1)) {
18389     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueRangeProcessor_release" "', argument " "1"" of type '" "Xapian::ValueRangeProcessor const *""'");
18390   }
18391   arg1 = reinterpret_cast< Xapian::ValueRangeProcessor * >(argp1);
18392   {
18393     try {
18394       result = (Xapian::ValueRangeProcessor *)((Xapian::ValueRangeProcessor const *)arg1)->release();
18395     } catch (const Xapian::Error &e) {
18396       return XapianTclHandleError(interp, e);
18397     } catch (...) {
18398       return XapianTclHandleError(interp);
18399     }
18400   }
18401   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ValueRangeProcessor,0));
18402   return TCL_OK;
18403 fail:
18404   return TCL_ERROR;
18405 }
18406 
18407 
swig_delete_ValueRangeProcessor(void * obj)18408 SWIGINTERN void swig_delete_ValueRangeProcessor(void *obj) {
18409 Xapian::ValueRangeProcessor *arg1 = (Xapian::ValueRangeProcessor *) obj;
18410 delete arg1;
18411 }
18412 static swig_method swig_Xapian_ValueRangeProcessor_methods[] = {
18413     {"apply", _wrap_ValueRangeProcessor_apply},
18414     {"release", _wrap_ValueRangeProcessor_release},
18415     {0,0}
18416 };
18417 static swig_attribute swig_Xapian_ValueRangeProcessor_attributes[] = {
18418     {0,0,0}
18419 };
18420 static swig_class *swig_Xapian_ValueRangeProcessor_bases[] = {0};
18421 static const char * swig_Xapian_ValueRangeProcessor_base_names[] = {0};
18422 static swig_class _wrap_class_Xapian_ValueRangeProcessor = { "ValueRangeProcessor", &SWIGTYPE_p_Xapian__ValueRangeProcessor,0, swig_delete_ValueRangeProcessor, swig_Xapian_ValueRangeProcessor_methods, swig_Xapian_ValueRangeProcessor_attributes, swig_Xapian_ValueRangeProcessor_bases,swig_Xapian_ValueRangeProcessor_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
18423 SWIGINTERN int
_wrap_new_StringValueRangeProcessor__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])18424 _wrap_new_StringValueRangeProcessor__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
18425   Xapian::valueno arg1 ;
18426   unsigned int val1 ;
18427   int ecode1 = 0 ;
18428   Xapian::StringValueRangeProcessor *result = 0 ;
18429 
18430   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_StringValueRangeProcessor slot_ ",(void *)0) == TCL_ERROR) SWIG_fail;
18431   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
18432   if (!SWIG_IsOK(ecode1)) {
18433     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StringValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
18434   }
18435   arg1 = static_cast< Xapian::valueno >(val1);
18436   {
18437     try {
18438       result = (Xapian::StringValueRangeProcessor *)new Xapian::StringValueRangeProcessor(arg1);
18439     } catch (const Xapian::Error &e) {
18440       return XapianTclHandleError(interp, e);
18441     } catch (...) {
18442       return XapianTclHandleError(interp);
18443     }
18444   }
18445   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__StringValueRangeProcessor,0));
18446   return TCL_OK;
18447 fail:
18448   return TCL_ERROR;
18449 }
18450 
18451 
18452 SWIGINTERN int
_wrap_new_StringValueRangeProcessor__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])18453 _wrap_new_StringValueRangeProcessor__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
18454   Xapian::valueno arg1 ;
18455   std::string *arg2 = 0 ;
18456   bool arg3 ;
18457   unsigned int val1 ;
18458   int ecode1 = 0 ;
18459   int res2 = SWIG_OLDOBJ ;
18460   bool val3 ;
18461   int ecode3 = 0 ;
18462   Xapian::StringValueRangeProcessor *result = 0 ;
18463 
18464   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::new_StringValueRangeProcessor slot_ str_ prefix_ ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
18465   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
18466   if (!SWIG_IsOK(ecode1)) {
18467     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StringValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
18468   }
18469   arg1 = static_cast< Xapian::valueno >(val1);
18470   {
18471     std::string *ptr = (std::string *)0;
18472     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
18473     if (!SWIG_IsOK(res2)) {
18474       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_StringValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
18475     }
18476     if (!ptr) {
18477       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StringValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
18478     }
18479     arg2 = ptr;
18480   }
18481   ecode3 = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
18482   if (!SWIG_IsOK(ecode3)) {
18483     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_StringValueRangeProcessor" "', argument " "3"" of type '" "bool""'");
18484   }
18485   arg3 = static_cast< bool >(val3);
18486   {
18487     try {
18488       result = (Xapian::StringValueRangeProcessor *)new Xapian::StringValueRangeProcessor(arg1,(std::string const &)*arg2,arg3);
18489     } catch (const Xapian::Error &e) {
18490       return XapianTclHandleError(interp, e);
18491     } catch (...) {
18492       return XapianTclHandleError(interp);
18493     }
18494   }
18495   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__StringValueRangeProcessor,0));
18496   if (SWIG_IsNewObj(res2)) delete arg2;
18497   return TCL_OK;
18498 fail:
18499   if (SWIG_IsNewObj(res2)) delete arg2;
18500   return TCL_ERROR;
18501 }
18502 
18503 
18504 SWIGINTERN int
_wrap_new_StringValueRangeProcessor__SWIG_2(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])18505 _wrap_new_StringValueRangeProcessor__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
18506   Xapian::valueno arg1 ;
18507   std::string *arg2 = 0 ;
18508   unsigned int val1 ;
18509   int ecode1 = 0 ;
18510   int res2 = SWIG_OLDOBJ ;
18511   Xapian::StringValueRangeProcessor *result = 0 ;
18512 
18513   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::new_StringValueRangeProcessor slot_ str_ ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
18514   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
18515   if (!SWIG_IsOK(ecode1)) {
18516     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StringValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
18517   }
18518   arg1 = static_cast< Xapian::valueno >(val1);
18519   {
18520     std::string *ptr = (std::string *)0;
18521     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
18522     if (!SWIG_IsOK(res2)) {
18523       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_StringValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
18524     }
18525     if (!ptr) {
18526       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StringValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
18527     }
18528     arg2 = ptr;
18529   }
18530   {
18531     try {
18532       result = (Xapian::StringValueRangeProcessor *)new Xapian::StringValueRangeProcessor(arg1,(std::string const &)*arg2);
18533     } catch (const Xapian::Error &e) {
18534       return XapianTclHandleError(interp, e);
18535     } catch (...) {
18536       return XapianTclHandleError(interp);
18537     }
18538   }
18539   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__StringValueRangeProcessor,0));
18540   if (SWIG_IsNewObj(res2)) delete arg2;
18541   return TCL_OK;
18542 fail:
18543   if (SWIG_IsNewObj(res2)) delete arg2;
18544   return TCL_ERROR;
18545 }
18546 
18547 
18548 SWIGINTERN int
_wrap_new_StringValueRangeProcessor(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])18549 _wrap_new_StringValueRangeProcessor(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
18550   Tcl_Obj *CONST *argv = objv+1;
18551   int argc = objc-1;
18552   if (argc == 1) {
18553     int _v;
18554     {
18555       int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
18556       _v = SWIG_CheckState(res);
18557     }
18558     if (_v) {
18559       return _wrap_new_StringValueRangeProcessor__SWIG_0(clientData, interp, objc, argv - 1);
18560     }
18561   }
18562   if (argc == 2) {
18563     int _v;
18564     {
18565       int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
18566       _v = SWIG_CheckState(res);
18567     }
18568     if (_v) {
18569       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
18570       _v = SWIG_CheckState(res);
18571       if (_v) {
18572         return _wrap_new_StringValueRangeProcessor__SWIG_2(clientData, interp, objc, argv - 1);
18573       }
18574     }
18575   }
18576   if (argc == 3) {
18577     int _v;
18578     {
18579       int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
18580       _v = SWIG_CheckState(res);
18581     }
18582     if (_v) {
18583       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
18584       _v = SWIG_CheckState(res);
18585       if (_v) {
18586         {
18587           int res = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
18588           _v = SWIG_CheckState(res);
18589         }
18590         if (_v) {
18591           return _wrap_new_StringValueRangeProcessor__SWIG_1(clientData, interp, objc, argv - 1);
18592         }
18593       }
18594     }
18595   }
18596 
18597   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_StringValueRangeProcessor'.\n"
18598     "  Possible C/C++ prototypes are:\n"
18599     "    Xapian::StringValueRangeProcessor::StringValueRangeProcessor(Xapian::valueno)\n"
18600     "    Xapian::StringValueRangeProcessor::StringValueRangeProcessor(Xapian::valueno,std::string const &,bool)\n"
18601     "    Xapian::StringValueRangeProcessor::StringValueRangeProcessor(Xapian::valueno,std::string const &)\n", TCL_STATIC);
18602   return TCL_ERROR;
18603 }
18604 
18605 
18606 SWIGINTERN int
_wrap_StringValueRangeProcessor_apply(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])18607 _wrap_StringValueRangeProcessor_apply(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
18608   Xapian::StringValueRangeProcessor *arg1 = (Xapian::StringValueRangeProcessor *) 0 ;
18609   std::string *arg2 = 0 ;
18610   std::string *arg3 = 0 ;
18611   void *argp1 = 0 ;
18612   int res1 = 0 ;
18613   void *argp2 = 0 ;
18614   int res2 = 0 ;
18615   void *argp3 = 0 ;
18616   int res3 = 0 ;
18617   Xapian::valueno result;
18618 
18619   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::StringValueRangeProcessor_apply self begin end ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
18620   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__StringValueRangeProcessor, 0 |  0 );
18621   if (!SWIG_IsOK(res1)) {
18622     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringValueRangeProcessor_apply" "', argument " "1"" of type '" "Xapian::StringValueRangeProcessor *""'");
18623   }
18624   arg1 = reinterpret_cast< Xapian::StringValueRangeProcessor * >(argp1);
18625   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_std__string,  0 );
18626   if (!SWIG_IsOK(res2)) {
18627     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StringValueRangeProcessor_apply" "', argument " "2"" of type '" "std::string &""'");
18628   }
18629   if (!argp2) {
18630     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StringValueRangeProcessor_apply" "', argument " "2"" of type '" "std::string &""'");
18631   }
18632   arg2 = reinterpret_cast< std::string * >(argp2);
18633   res3 = SWIG_ConvertPtr(objv[3], &argp3, SWIGTYPE_p_std__string,  0 );
18634   if (!SWIG_IsOK(res3)) {
18635     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "StringValueRangeProcessor_apply" "', argument " "3"" of type '" "std::string &""'");
18636   }
18637   if (!argp3) {
18638     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StringValueRangeProcessor_apply" "', argument " "3"" of type '" "std::string &""'");
18639   }
18640   arg3 = reinterpret_cast< std::string * >(argp3);
18641   {
18642     try {
18643       result = (Xapian::valueno)(arg1)->operator ()(*arg2,*arg3);
18644     } catch (const Xapian::Error &e) {
18645       return XapianTclHandleError(interp, e);
18646     } catch (...) {
18647       return XapianTclHandleError(interp);
18648     }
18649   }
18650   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
18651   return TCL_OK;
18652 fail:
18653   return TCL_ERROR;
18654 }
18655 
18656 
18657 SWIGINTERN int
_wrap_delete_StringValueRangeProcessor(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])18658 _wrap_delete_StringValueRangeProcessor(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
18659   Xapian::StringValueRangeProcessor *arg1 = (Xapian::StringValueRangeProcessor *) 0 ;
18660   void *argp1 = 0 ;
18661   int res1 = 0 ;
18662 
18663   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_StringValueRangeProcessor self ",(void *)0) == TCL_ERROR) SWIG_fail;
18664   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__StringValueRangeProcessor, SWIG_POINTER_DISOWN |  0 );
18665   if (!SWIG_IsOK(res1)) {
18666     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StringValueRangeProcessor" "', argument " "1"" of type '" "Xapian::StringValueRangeProcessor *""'");
18667   }
18668   arg1 = reinterpret_cast< Xapian::StringValueRangeProcessor * >(argp1);
18669   {
18670     try {
18671       delete arg1;
18672     } catch (const Xapian::Error &e) {
18673       return XapianTclHandleError(interp, e);
18674     } catch (...) {
18675       return XapianTclHandleError(interp);
18676     }
18677   }
18678 
18679   return TCL_OK;
18680 fail:
18681   return TCL_ERROR;
18682 }
18683 
18684 
swig_delete_StringValueRangeProcessor(void * obj)18685 SWIGINTERN void swig_delete_StringValueRangeProcessor(void *obj) {
18686 Xapian::StringValueRangeProcessor *arg1 = (Xapian::StringValueRangeProcessor *) obj;
18687 delete arg1;
18688 }
18689 static swig_method swig_Xapian_StringValueRangeProcessor_methods[] = {
18690     {"apply", _wrap_StringValueRangeProcessor_apply},
18691     {0,0}
18692 };
18693 static swig_attribute swig_Xapian_StringValueRangeProcessor_attributes[] = {
18694     {0,0,0}
18695 };
18696 static swig_class *swig_Xapian_StringValueRangeProcessor_bases[] = {0,0};
18697 static const char * swig_Xapian_StringValueRangeProcessor_base_names[] = {"Xapian::ValueRangeProcessor *",0};
18698 static swig_class _wrap_class_Xapian_StringValueRangeProcessor = { "StringValueRangeProcessor", &SWIGTYPE_p_Xapian__StringValueRangeProcessor,_wrap_new_StringValueRangeProcessor, swig_delete_StringValueRangeProcessor, swig_Xapian_StringValueRangeProcessor_methods, swig_Xapian_StringValueRangeProcessor_attributes, swig_Xapian_StringValueRangeProcessor_bases,swig_Xapian_StringValueRangeProcessor_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
18699 SWIGINTERN int
_wrap_new_DateValueRangeProcessor__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])18700 _wrap_new_DateValueRangeProcessor__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
18701   Xapian::valueno arg1 ;
18702   bool arg2 ;
18703   int arg3 ;
18704   unsigned int val1 ;
18705   int ecode1 = 0 ;
18706   bool val2 ;
18707   int ecode2 = 0 ;
18708   int val3 ;
18709   int ecode3 = 0 ;
18710   Xapian::DateValueRangeProcessor *result = 0 ;
18711 
18712   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::new_DateValueRangeProcessor slot_ prefer_mdy_ epoch_year_ ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
18713   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
18714   if (!SWIG_IsOK(ecode1)) {
18715     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
18716   }
18717   arg1 = static_cast< Xapian::valueno >(val1);
18718   ecode2 = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
18719   if (!SWIG_IsOK(ecode2)) {
18720     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DateValueRangeProcessor" "', argument " "2"" of type '" "bool""'");
18721   }
18722   arg2 = static_cast< bool >(val2);
18723   ecode3 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
18724   if (!SWIG_IsOK(ecode3)) {
18725     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DateValueRangeProcessor" "', argument " "3"" of type '" "int""'");
18726   }
18727   arg3 = static_cast< int >(val3);
18728   {
18729     try {
18730       result = (Xapian::DateValueRangeProcessor *)new Xapian::DateValueRangeProcessor(arg1,arg2,arg3);
18731     } catch (const Xapian::Error &e) {
18732       return XapianTclHandleError(interp, e);
18733     } catch (...) {
18734       return XapianTclHandleError(interp);
18735     }
18736   }
18737   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DateValueRangeProcessor,0));
18738   return TCL_OK;
18739 fail:
18740   return TCL_ERROR;
18741 }
18742 
18743 
18744 SWIGINTERN int
_wrap_new_DateValueRangeProcessor__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])18745 _wrap_new_DateValueRangeProcessor__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
18746   Xapian::valueno arg1 ;
18747   bool arg2 ;
18748   unsigned int val1 ;
18749   int ecode1 = 0 ;
18750   bool val2 ;
18751   int ecode2 = 0 ;
18752   Xapian::DateValueRangeProcessor *result = 0 ;
18753 
18754   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::new_DateValueRangeProcessor slot_ prefer_mdy_ ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
18755   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
18756   if (!SWIG_IsOK(ecode1)) {
18757     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
18758   }
18759   arg1 = static_cast< Xapian::valueno >(val1);
18760   ecode2 = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
18761   if (!SWIG_IsOK(ecode2)) {
18762     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DateValueRangeProcessor" "', argument " "2"" of type '" "bool""'");
18763   }
18764   arg2 = static_cast< bool >(val2);
18765   {
18766     try {
18767       result = (Xapian::DateValueRangeProcessor *)new Xapian::DateValueRangeProcessor(arg1,arg2);
18768     } catch (const Xapian::Error &e) {
18769       return XapianTclHandleError(interp, e);
18770     } catch (...) {
18771       return XapianTclHandleError(interp);
18772     }
18773   }
18774   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DateValueRangeProcessor,0));
18775   return TCL_OK;
18776 fail:
18777   return TCL_ERROR;
18778 }
18779 
18780 
18781 SWIGINTERN int
_wrap_new_DateValueRangeProcessor__SWIG_2(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])18782 _wrap_new_DateValueRangeProcessor__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
18783   Xapian::valueno arg1 ;
18784   unsigned int val1 ;
18785   int ecode1 = 0 ;
18786   Xapian::DateValueRangeProcessor *result = 0 ;
18787 
18788   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_DateValueRangeProcessor slot_ ",(void *)0) == TCL_ERROR) SWIG_fail;
18789   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
18790   if (!SWIG_IsOK(ecode1)) {
18791     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
18792   }
18793   arg1 = static_cast< Xapian::valueno >(val1);
18794   {
18795     try {
18796       result = (Xapian::DateValueRangeProcessor *)new Xapian::DateValueRangeProcessor(arg1);
18797     } catch (const Xapian::Error &e) {
18798       return XapianTclHandleError(interp, e);
18799     } catch (...) {
18800       return XapianTclHandleError(interp);
18801     }
18802   }
18803   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DateValueRangeProcessor,0));
18804   return TCL_OK;
18805 fail:
18806   return TCL_ERROR;
18807 }
18808 
18809 
18810 SWIGINTERN int
_wrap_new_DateValueRangeProcessor__SWIG_3(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])18811 _wrap_new_DateValueRangeProcessor__SWIG_3(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
18812   Xapian::valueno arg1 ;
18813   std::string *arg2 = 0 ;
18814   bool arg3 ;
18815   bool arg4 ;
18816   int arg5 ;
18817   unsigned int val1 ;
18818   int ecode1 = 0 ;
18819   int res2 = SWIG_OLDOBJ ;
18820   bool val3 ;
18821   int ecode3 = 0 ;
18822   bool val4 ;
18823   int ecode4 = 0 ;
18824   int val5 ;
18825   int ecode5 = 0 ;
18826   Xapian::DateValueRangeProcessor *result = 0 ;
18827 
18828   if (SWIG_GetArgs(interp, objc, objv,"ooooo:xapian::new_DateValueRangeProcessor slot_ str_ prefix_ prefer_mdy_ epoch_year_ ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
18829   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
18830   if (!SWIG_IsOK(ecode1)) {
18831     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
18832   }
18833   arg1 = static_cast< Xapian::valueno >(val1);
18834   {
18835     std::string *ptr = (std::string *)0;
18836     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
18837     if (!SWIG_IsOK(res2)) {
18838       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DateValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
18839     }
18840     if (!ptr) {
18841       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DateValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
18842     }
18843     arg2 = ptr;
18844   }
18845   ecode3 = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
18846   if (!SWIG_IsOK(ecode3)) {
18847     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DateValueRangeProcessor" "', argument " "3"" of type '" "bool""'");
18848   }
18849   arg3 = static_cast< bool >(val3);
18850   ecode4 = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
18851   if (!SWIG_IsOK(ecode4)) {
18852     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DateValueRangeProcessor" "', argument " "4"" of type '" "bool""'");
18853   }
18854   arg4 = static_cast< bool >(val4);
18855   ecode5 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
18856   if (!SWIG_IsOK(ecode5)) {
18857     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DateValueRangeProcessor" "', argument " "5"" of type '" "int""'");
18858   }
18859   arg5 = static_cast< int >(val5);
18860   {
18861     try {
18862       result = (Xapian::DateValueRangeProcessor *)new Xapian::DateValueRangeProcessor(arg1,(std::string const &)*arg2,arg3,arg4,arg5);
18863     } catch (const Xapian::Error &e) {
18864       return XapianTclHandleError(interp, e);
18865     } catch (...) {
18866       return XapianTclHandleError(interp);
18867     }
18868   }
18869   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DateValueRangeProcessor,0));
18870   if (SWIG_IsNewObj(res2)) delete arg2;
18871   return TCL_OK;
18872 fail:
18873   if (SWIG_IsNewObj(res2)) delete arg2;
18874   return TCL_ERROR;
18875 }
18876 
18877 
18878 SWIGINTERN int
_wrap_new_DateValueRangeProcessor__SWIG_4(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])18879 _wrap_new_DateValueRangeProcessor__SWIG_4(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
18880   Xapian::valueno arg1 ;
18881   std::string *arg2 = 0 ;
18882   bool arg3 ;
18883   bool arg4 ;
18884   unsigned int val1 ;
18885   int ecode1 = 0 ;
18886   int res2 = SWIG_OLDOBJ ;
18887   bool val3 ;
18888   int ecode3 = 0 ;
18889   bool val4 ;
18890   int ecode4 = 0 ;
18891   Xapian::DateValueRangeProcessor *result = 0 ;
18892 
18893   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::new_DateValueRangeProcessor slot_ str_ prefix_ prefer_mdy_ ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
18894   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
18895   if (!SWIG_IsOK(ecode1)) {
18896     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
18897   }
18898   arg1 = static_cast< Xapian::valueno >(val1);
18899   {
18900     std::string *ptr = (std::string *)0;
18901     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
18902     if (!SWIG_IsOK(res2)) {
18903       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DateValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
18904     }
18905     if (!ptr) {
18906       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DateValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
18907     }
18908     arg2 = ptr;
18909   }
18910   ecode3 = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
18911   if (!SWIG_IsOK(ecode3)) {
18912     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DateValueRangeProcessor" "', argument " "3"" of type '" "bool""'");
18913   }
18914   arg3 = static_cast< bool >(val3);
18915   ecode4 = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
18916   if (!SWIG_IsOK(ecode4)) {
18917     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DateValueRangeProcessor" "', argument " "4"" of type '" "bool""'");
18918   }
18919   arg4 = static_cast< bool >(val4);
18920   {
18921     try {
18922       result = (Xapian::DateValueRangeProcessor *)new Xapian::DateValueRangeProcessor(arg1,(std::string const &)*arg2,arg3,arg4);
18923     } catch (const Xapian::Error &e) {
18924       return XapianTclHandleError(interp, e);
18925     } catch (...) {
18926       return XapianTclHandleError(interp);
18927     }
18928   }
18929   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DateValueRangeProcessor,0));
18930   if (SWIG_IsNewObj(res2)) delete arg2;
18931   return TCL_OK;
18932 fail:
18933   if (SWIG_IsNewObj(res2)) delete arg2;
18934   return TCL_ERROR;
18935 }
18936 
18937 
18938 SWIGINTERN int
_wrap_new_DateValueRangeProcessor__SWIG_5(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])18939 _wrap_new_DateValueRangeProcessor__SWIG_5(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
18940   Xapian::valueno arg1 ;
18941   std::string *arg2 = 0 ;
18942   bool arg3 ;
18943   unsigned int val1 ;
18944   int ecode1 = 0 ;
18945   int res2 = SWIG_OLDOBJ ;
18946   bool val3 ;
18947   int ecode3 = 0 ;
18948   Xapian::DateValueRangeProcessor *result = 0 ;
18949 
18950   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::new_DateValueRangeProcessor slot_ str_ prefix_ ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
18951   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
18952   if (!SWIG_IsOK(ecode1)) {
18953     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
18954   }
18955   arg1 = static_cast< Xapian::valueno >(val1);
18956   {
18957     std::string *ptr = (std::string *)0;
18958     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
18959     if (!SWIG_IsOK(res2)) {
18960       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DateValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
18961     }
18962     if (!ptr) {
18963       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DateValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
18964     }
18965     arg2 = ptr;
18966   }
18967   ecode3 = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
18968   if (!SWIG_IsOK(ecode3)) {
18969     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DateValueRangeProcessor" "', argument " "3"" of type '" "bool""'");
18970   }
18971   arg3 = static_cast< bool >(val3);
18972   {
18973     try {
18974       result = (Xapian::DateValueRangeProcessor *)new Xapian::DateValueRangeProcessor(arg1,(std::string const &)*arg2,arg3);
18975     } catch (const Xapian::Error &e) {
18976       return XapianTclHandleError(interp, e);
18977     } catch (...) {
18978       return XapianTclHandleError(interp);
18979     }
18980   }
18981   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DateValueRangeProcessor,0));
18982   if (SWIG_IsNewObj(res2)) delete arg2;
18983   return TCL_OK;
18984 fail:
18985   if (SWIG_IsNewObj(res2)) delete arg2;
18986   return TCL_ERROR;
18987 }
18988 
18989 
18990 SWIGINTERN int
_wrap_new_DateValueRangeProcessor__SWIG_6(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])18991 _wrap_new_DateValueRangeProcessor__SWIG_6(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
18992   Xapian::valueno arg1 ;
18993   std::string *arg2 = 0 ;
18994   unsigned int val1 ;
18995   int ecode1 = 0 ;
18996   int res2 = SWIG_OLDOBJ ;
18997   Xapian::DateValueRangeProcessor *result = 0 ;
18998 
18999   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::new_DateValueRangeProcessor slot_ str_ ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
19000   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
19001   if (!SWIG_IsOK(ecode1)) {
19002     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
19003   }
19004   arg1 = static_cast< Xapian::valueno >(val1);
19005   {
19006     std::string *ptr = (std::string *)0;
19007     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
19008     if (!SWIG_IsOK(res2)) {
19009       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DateValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
19010     }
19011     if (!ptr) {
19012       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DateValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
19013     }
19014     arg2 = ptr;
19015   }
19016   {
19017     try {
19018       result = (Xapian::DateValueRangeProcessor *)new Xapian::DateValueRangeProcessor(arg1,(std::string const &)*arg2);
19019     } catch (const Xapian::Error &e) {
19020       return XapianTclHandleError(interp, e);
19021     } catch (...) {
19022       return XapianTclHandleError(interp);
19023     }
19024   }
19025   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DateValueRangeProcessor,0));
19026   if (SWIG_IsNewObj(res2)) delete arg2;
19027   return TCL_OK;
19028 fail:
19029   if (SWIG_IsNewObj(res2)) delete arg2;
19030   return TCL_ERROR;
19031 }
19032 
19033 
19034 SWIGINTERN int
_wrap_new_DateValueRangeProcessor(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])19035 _wrap_new_DateValueRangeProcessor(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
19036   Tcl_Obj *CONST *argv = objv+1;
19037   int argc = objc-1;
19038   if (argc == 1) {
19039     int _v;
19040     {
19041       int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
19042       _v = SWIG_CheckState(res);
19043     }
19044     if (_v) {
19045       return _wrap_new_DateValueRangeProcessor__SWIG_2(clientData, interp, objc, argv - 1);
19046     }
19047   }
19048   if (argc == 2) {
19049     int _v;
19050     {
19051       int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
19052       _v = SWIG_CheckState(res);
19053     }
19054     if (_v) {
19055       {
19056         int res = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
19057         _v = SWIG_CheckState(res);
19058       }
19059       if (_v) {
19060         return _wrap_new_DateValueRangeProcessor__SWIG_1(clientData, interp, objc, argv - 1);
19061       }
19062     }
19063   }
19064   if (argc == 2) {
19065     int _v;
19066     {
19067       int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
19068       _v = SWIG_CheckState(res);
19069     }
19070     if (_v) {
19071       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
19072       _v = SWIG_CheckState(res);
19073       if (_v) {
19074         return _wrap_new_DateValueRangeProcessor__SWIG_6(clientData, interp, objc, argv - 1);
19075       }
19076     }
19077   }
19078   if (argc == 3) {
19079     int _v;
19080     {
19081       int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
19082       _v = SWIG_CheckState(res);
19083     }
19084     if (_v) {
19085       {
19086         int res = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
19087         _v = SWIG_CheckState(res);
19088       }
19089       if (_v) {
19090         {
19091           int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
19092           _v = SWIG_CheckState(res);
19093         }
19094         if (_v) {
19095           return _wrap_new_DateValueRangeProcessor__SWIG_0(clientData, interp, objc, argv - 1);
19096         }
19097       }
19098     }
19099   }
19100   if (argc == 3) {
19101     int _v;
19102     {
19103       int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
19104       _v = SWIG_CheckState(res);
19105     }
19106     if (_v) {
19107       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
19108       _v = SWIG_CheckState(res);
19109       if (_v) {
19110         {
19111           int res = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
19112           _v = SWIG_CheckState(res);
19113         }
19114         if (_v) {
19115           return _wrap_new_DateValueRangeProcessor__SWIG_5(clientData, interp, objc, argv - 1);
19116         }
19117       }
19118     }
19119   }
19120   if (argc == 4) {
19121     int _v;
19122     {
19123       int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
19124       _v = SWIG_CheckState(res);
19125     }
19126     if (_v) {
19127       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
19128       _v = SWIG_CheckState(res);
19129       if (_v) {
19130         {
19131           int res = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
19132           _v = SWIG_CheckState(res);
19133         }
19134         if (_v) {
19135           {
19136             int res = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
19137             _v = SWIG_CheckState(res);
19138           }
19139           if (_v) {
19140             return _wrap_new_DateValueRangeProcessor__SWIG_4(clientData, interp, objc, argv - 1);
19141           }
19142         }
19143       }
19144     }
19145   }
19146   if (argc == 5) {
19147     int _v;
19148     {
19149       int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
19150       _v = SWIG_CheckState(res);
19151     }
19152     if (_v) {
19153       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
19154       _v = SWIG_CheckState(res);
19155       if (_v) {
19156         {
19157           int res = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
19158           _v = SWIG_CheckState(res);
19159         }
19160         if (_v) {
19161           {
19162             int res = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
19163             _v = SWIG_CheckState(res);
19164           }
19165           if (_v) {
19166             {
19167               int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[4], NULL);
19168               _v = SWIG_CheckState(res);
19169             }
19170             if (_v) {
19171               return _wrap_new_DateValueRangeProcessor__SWIG_3(clientData, interp, objc, argv - 1);
19172             }
19173           }
19174         }
19175       }
19176     }
19177   }
19178 
19179   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_DateValueRangeProcessor'.\n"
19180     "  Possible C/C++ prototypes are:\n"
19181     "    Xapian::DateValueRangeProcessor::DateValueRangeProcessor(Xapian::valueno,bool,int)\n"
19182     "    Xapian::DateValueRangeProcessor::DateValueRangeProcessor(Xapian::valueno,bool)\n"
19183     "    Xapian::DateValueRangeProcessor::DateValueRangeProcessor(Xapian::valueno)\n"
19184     "    Xapian::DateValueRangeProcessor::DateValueRangeProcessor(Xapian::valueno,std::string const &,bool,bool,int)\n"
19185     "    Xapian::DateValueRangeProcessor::DateValueRangeProcessor(Xapian::valueno,std::string const &,bool,bool)\n"
19186     "    Xapian::DateValueRangeProcessor::DateValueRangeProcessor(Xapian::valueno,std::string const &,bool)\n"
19187     "    Xapian::DateValueRangeProcessor::DateValueRangeProcessor(Xapian::valueno,std::string const &)\n", TCL_STATIC);
19188   return TCL_ERROR;
19189 }
19190 
19191 
19192 SWIGINTERN int
_wrap_DateValueRangeProcessor_apply(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])19193 _wrap_DateValueRangeProcessor_apply(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
19194   Xapian::DateValueRangeProcessor *arg1 = (Xapian::DateValueRangeProcessor *) 0 ;
19195   std::string *arg2 = 0 ;
19196   std::string *arg3 = 0 ;
19197   void *argp1 = 0 ;
19198   int res1 = 0 ;
19199   void *argp2 = 0 ;
19200   int res2 = 0 ;
19201   void *argp3 = 0 ;
19202   int res3 = 0 ;
19203   Xapian::valueno result;
19204 
19205   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::DateValueRangeProcessor_apply self begin end ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
19206   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__DateValueRangeProcessor, 0 |  0 );
19207   if (!SWIG_IsOK(res1)) {
19208     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateValueRangeProcessor_apply" "', argument " "1"" of type '" "Xapian::DateValueRangeProcessor *""'");
19209   }
19210   arg1 = reinterpret_cast< Xapian::DateValueRangeProcessor * >(argp1);
19211   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_std__string,  0 );
19212   if (!SWIG_IsOK(res2)) {
19213     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateValueRangeProcessor_apply" "', argument " "2"" of type '" "std::string &""'");
19214   }
19215   if (!argp2) {
19216     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateValueRangeProcessor_apply" "', argument " "2"" of type '" "std::string &""'");
19217   }
19218   arg2 = reinterpret_cast< std::string * >(argp2);
19219   res3 = SWIG_ConvertPtr(objv[3], &argp3, SWIGTYPE_p_std__string,  0 );
19220   if (!SWIG_IsOK(res3)) {
19221     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DateValueRangeProcessor_apply" "', argument " "3"" of type '" "std::string &""'");
19222   }
19223   if (!argp3) {
19224     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateValueRangeProcessor_apply" "', argument " "3"" of type '" "std::string &""'");
19225   }
19226   arg3 = reinterpret_cast< std::string * >(argp3);
19227   {
19228     try {
19229       result = (Xapian::valueno)(arg1)->operator ()(*arg2,*arg3);
19230     } catch (const Xapian::Error &e) {
19231       return XapianTclHandleError(interp, e);
19232     } catch (...) {
19233       return XapianTclHandleError(interp);
19234     }
19235   }
19236   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
19237   return TCL_OK;
19238 fail:
19239   return TCL_ERROR;
19240 }
19241 
19242 
19243 SWIGINTERN int
_wrap_delete_DateValueRangeProcessor(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])19244 _wrap_delete_DateValueRangeProcessor(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
19245   Xapian::DateValueRangeProcessor *arg1 = (Xapian::DateValueRangeProcessor *) 0 ;
19246   void *argp1 = 0 ;
19247   int res1 = 0 ;
19248 
19249   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_DateValueRangeProcessor self ",(void *)0) == TCL_ERROR) SWIG_fail;
19250   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__DateValueRangeProcessor, SWIG_POINTER_DISOWN |  0 );
19251   if (!SWIG_IsOK(res1)) {
19252     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DateValueRangeProcessor" "', argument " "1"" of type '" "Xapian::DateValueRangeProcessor *""'");
19253   }
19254   arg1 = reinterpret_cast< Xapian::DateValueRangeProcessor * >(argp1);
19255   {
19256     try {
19257       delete arg1;
19258     } catch (const Xapian::Error &e) {
19259       return XapianTclHandleError(interp, e);
19260     } catch (...) {
19261       return XapianTclHandleError(interp);
19262     }
19263   }
19264 
19265   return TCL_OK;
19266 fail:
19267   return TCL_ERROR;
19268 }
19269 
19270 
swig_delete_DateValueRangeProcessor(void * obj)19271 SWIGINTERN void swig_delete_DateValueRangeProcessor(void *obj) {
19272 Xapian::DateValueRangeProcessor *arg1 = (Xapian::DateValueRangeProcessor *) obj;
19273 delete arg1;
19274 }
19275 static swig_method swig_Xapian_DateValueRangeProcessor_methods[] = {
19276     {"apply", _wrap_DateValueRangeProcessor_apply},
19277     {0,0}
19278 };
19279 static swig_attribute swig_Xapian_DateValueRangeProcessor_attributes[] = {
19280     {0,0,0}
19281 };
19282 static swig_class *swig_Xapian_DateValueRangeProcessor_bases[] = {0,0};
19283 static const char * swig_Xapian_DateValueRangeProcessor_base_names[] = {"Xapian::StringValueRangeProcessor *",0};
19284 static swig_class _wrap_class_Xapian_DateValueRangeProcessor = { "DateValueRangeProcessor", &SWIGTYPE_p_Xapian__DateValueRangeProcessor,_wrap_new_DateValueRangeProcessor, swig_delete_DateValueRangeProcessor, swig_Xapian_DateValueRangeProcessor_methods, swig_Xapian_DateValueRangeProcessor_attributes, swig_Xapian_DateValueRangeProcessor_bases,swig_Xapian_DateValueRangeProcessor_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
19285 SWIGINTERN int
_wrap_new_NumberValueRangeProcessor__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])19286 _wrap_new_NumberValueRangeProcessor__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
19287   Xapian::valueno arg1 ;
19288   unsigned int val1 ;
19289   int ecode1 = 0 ;
19290   Xapian::NumberValueRangeProcessor *result = 0 ;
19291 
19292   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_NumberValueRangeProcessor slot_ ",(void *)0) == TCL_ERROR) SWIG_fail;
19293   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
19294   if (!SWIG_IsOK(ecode1)) {
19295     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NumberValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
19296   }
19297   arg1 = static_cast< Xapian::valueno >(val1);
19298   {
19299     try {
19300       result = (Xapian::NumberValueRangeProcessor *)new Xapian::NumberValueRangeProcessor(arg1);
19301     } catch (const Xapian::Error &e) {
19302       return XapianTclHandleError(interp, e);
19303     } catch (...) {
19304       return XapianTclHandleError(interp);
19305     }
19306   }
19307   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__NumberValueRangeProcessor,0));
19308   return TCL_OK;
19309 fail:
19310   return TCL_ERROR;
19311 }
19312 
19313 
19314 SWIGINTERN int
_wrap_new_NumberValueRangeProcessor__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])19315 _wrap_new_NumberValueRangeProcessor__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
19316   Xapian::valueno arg1 ;
19317   std::string *arg2 = 0 ;
19318   bool arg3 ;
19319   unsigned int val1 ;
19320   int ecode1 = 0 ;
19321   int res2 = SWIG_OLDOBJ ;
19322   bool val3 ;
19323   int ecode3 = 0 ;
19324   Xapian::NumberValueRangeProcessor *result = 0 ;
19325 
19326   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::new_NumberValueRangeProcessor slot_ str_ prefix_ ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
19327   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
19328   if (!SWIG_IsOK(ecode1)) {
19329     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NumberValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
19330   }
19331   arg1 = static_cast< Xapian::valueno >(val1);
19332   {
19333     std::string *ptr = (std::string *)0;
19334     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
19335     if (!SWIG_IsOK(res2)) {
19336       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NumberValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
19337     }
19338     if (!ptr) {
19339       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NumberValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
19340     }
19341     arg2 = ptr;
19342   }
19343   ecode3 = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
19344   if (!SWIG_IsOK(ecode3)) {
19345     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NumberValueRangeProcessor" "', argument " "3"" of type '" "bool""'");
19346   }
19347   arg3 = static_cast< bool >(val3);
19348   {
19349     try {
19350       result = (Xapian::NumberValueRangeProcessor *)new Xapian::NumberValueRangeProcessor(arg1,(std::string const &)*arg2,arg3);
19351     } catch (const Xapian::Error &e) {
19352       return XapianTclHandleError(interp, e);
19353     } catch (...) {
19354       return XapianTclHandleError(interp);
19355     }
19356   }
19357   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__NumberValueRangeProcessor,0));
19358   if (SWIG_IsNewObj(res2)) delete arg2;
19359   return TCL_OK;
19360 fail:
19361   if (SWIG_IsNewObj(res2)) delete arg2;
19362   return TCL_ERROR;
19363 }
19364 
19365 
19366 SWIGINTERN int
_wrap_new_NumberValueRangeProcessor__SWIG_2(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])19367 _wrap_new_NumberValueRangeProcessor__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
19368   Xapian::valueno arg1 ;
19369   std::string *arg2 = 0 ;
19370   unsigned int val1 ;
19371   int ecode1 = 0 ;
19372   int res2 = SWIG_OLDOBJ ;
19373   Xapian::NumberValueRangeProcessor *result = 0 ;
19374 
19375   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::new_NumberValueRangeProcessor slot_ str_ ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
19376   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
19377   if (!SWIG_IsOK(ecode1)) {
19378     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NumberValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
19379   }
19380   arg1 = static_cast< Xapian::valueno >(val1);
19381   {
19382     std::string *ptr = (std::string *)0;
19383     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
19384     if (!SWIG_IsOK(res2)) {
19385       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NumberValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
19386     }
19387     if (!ptr) {
19388       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NumberValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
19389     }
19390     arg2 = ptr;
19391   }
19392   {
19393     try {
19394       result = (Xapian::NumberValueRangeProcessor *)new Xapian::NumberValueRangeProcessor(arg1,(std::string const &)*arg2);
19395     } catch (const Xapian::Error &e) {
19396       return XapianTclHandleError(interp, e);
19397     } catch (...) {
19398       return XapianTclHandleError(interp);
19399     }
19400   }
19401   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__NumberValueRangeProcessor,0));
19402   if (SWIG_IsNewObj(res2)) delete arg2;
19403   return TCL_OK;
19404 fail:
19405   if (SWIG_IsNewObj(res2)) delete arg2;
19406   return TCL_ERROR;
19407 }
19408 
19409 
19410 SWIGINTERN int
_wrap_new_NumberValueRangeProcessor(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])19411 _wrap_new_NumberValueRangeProcessor(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
19412   Tcl_Obj *CONST *argv = objv+1;
19413   int argc = objc-1;
19414   if (argc == 1) {
19415     int _v;
19416     {
19417       int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
19418       _v = SWIG_CheckState(res);
19419     }
19420     if (_v) {
19421       return _wrap_new_NumberValueRangeProcessor__SWIG_0(clientData, interp, objc, argv - 1);
19422     }
19423   }
19424   if (argc == 2) {
19425     int _v;
19426     {
19427       int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
19428       _v = SWIG_CheckState(res);
19429     }
19430     if (_v) {
19431       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
19432       _v = SWIG_CheckState(res);
19433       if (_v) {
19434         return _wrap_new_NumberValueRangeProcessor__SWIG_2(clientData, interp, objc, argv - 1);
19435       }
19436     }
19437   }
19438   if (argc == 3) {
19439     int _v;
19440     {
19441       int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
19442       _v = SWIG_CheckState(res);
19443     }
19444     if (_v) {
19445       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
19446       _v = SWIG_CheckState(res);
19447       if (_v) {
19448         {
19449           int res = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
19450           _v = SWIG_CheckState(res);
19451         }
19452         if (_v) {
19453           return _wrap_new_NumberValueRangeProcessor__SWIG_1(clientData, interp, objc, argv - 1);
19454         }
19455       }
19456     }
19457   }
19458 
19459   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_NumberValueRangeProcessor'.\n"
19460     "  Possible C/C++ prototypes are:\n"
19461     "    Xapian::NumberValueRangeProcessor::NumberValueRangeProcessor(Xapian::valueno)\n"
19462     "    Xapian::NumberValueRangeProcessor::NumberValueRangeProcessor(Xapian::valueno,std::string const &,bool)\n"
19463     "    Xapian::NumberValueRangeProcessor::NumberValueRangeProcessor(Xapian::valueno,std::string const &)\n", TCL_STATIC);
19464   return TCL_ERROR;
19465 }
19466 
19467 
19468 SWIGINTERN int
_wrap_NumberValueRangeProcessor_apply(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])19469 _wrap_NumberValueRangeProcessor_apply(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
19470   Xapian::NumberValueRangeProcessor *arg1 = (Xapian::NumberValueRangeProcessor *) 0 ;
19471   std::string *arg2 = 0 ;
19472   std::string *arg3 = 0 ;
19473   void *argp1 = 0 ;
19474   int res1 = 0 ;
19475   void *argp2 = 0 ;
19476   int res2 = 0 ;
19477   void *argp3 = 0 ;
19478   int res3 = 0 ;
19479   Xapian::valueno result;
19480 
19481   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::NumberValueRangeProcessor_apply self begin end ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
19482   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__NumberValueRangeProcessor, 0 |  0 );
19483   if (!SWIG_IsOK(res1)) {
19484     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NumberValueRangeProcessor_apply" "', argument " "1"" of type '" "Xapian::NumberValueRangeProcessor *""'");
19485   }
19486   arg1 = reinterpret_cast< Xapian::NumberValueRangeProcessor * >(argp1);
19487   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_std__string,  0 );
19488   if (!SWIG_IsOK(res2)) {
19489     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NumberValueRangeProcessor_apply" "', argument " "2"" of type '" "std::string &""'");
19490   }
19491   if (!argp2) {
19492     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NumberValueRangeProcessor_apply" "', argument " "2"" of type '" "std::string &""'");
19493   }
19494   arg2 = reinterpret_cast< std::string * >(argp2);
19495   res3 = SWIG_ConvertPtr(objv[3], &argp3, SWIGTYPE_p_std__string,  0 );
19496   if (!SWIG_IsOK(res3)) {
19497     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "NumberValueRangeProcessor_apply" "', argument " "3"" of type '" "std::string &""'");
19498   }
19499   if (!argp3) {
19500     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NumberValueRangeProcessor_apply" "', argument " "3"" of type '" "std::string &""'");
19501   }
19502   arg3 = reinterpret_cast< std::string * >(argp3);
19503   {
19504     try {
19505       result = (Xapian::valueno)(arg1)->operator ()(*arg2,*arg3);
19506     } catch (const Xapian::Error &e) {
19507       return XapianTclHandleError(interp, e);
19508     } catch (...) {
19509       return XapianTclHandleError(interp);
19510     }
19511   }
19512   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
19513   return TCL_OK;
19514 fail:
19515   return TCL_ERROR;
19516 }
19517 
19518 
19519 SWIGINTERN int
_wrap_delete_NumberValueRangeProcessor(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])19520 _wrap_delete_NumberValueRangeProcessor(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
19521   Xapian::NumberValueRangeProcessor *arg1 = (Xapian::NumberValueRangeProcessor *) 0 ;
19522   void *argp1 = 0 ;
19523   int res1 = 0 ;
19524 
19525   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_NumberValueRangeProcessor self ",(void *)0) == TCL_ERROR) SWIG_fail;
19526   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__NumberValueRangeProcessor, SWIG_POINTER_DISOWN |  0 );
19527   if (!SWIG_IsOK(res1)) {
19528     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NumberValueRangeProcessor" "', argument " "1"" of type '" "Xapian::NumberValueRangeProcessor *""'");
19529   }
19530   arg1 = reinterpret_cast< Xapian::NumberValueRangeProcessor * >(argp1);
19531   {
19532     try {
19533       delete arg1;
19534     } catch (const Xapian::Error &e) {
19535       return XapianTclHandleError(interp, e);
19536     } catch (...) {
19537       return XapianTclHandleError(interp);
19538     }
19539   }
19540 
19541   return TCL_OK;
19542 fail:
19543   return TCL_ERROR;
19544 }
19545 
19546 
swig_delete_NumberValueRangeProcessor(void * obj)19547 SWIGINTERN void swig_delete_NumberValueRangeProcessor(void *obj) {
19548 Xapian::NumberValueRangeProcessor *arg1 = (Xapian::NumberValueRangeProcessor *) obj;
19549 delete arg1;
19550 }
19551 static swig_method swig_Xapian_NumberValueRangeProcessor_methods[] = {
19552     {"apply", _wrap_NumberValueRangeProcessor_apply},
19553     {0,0}
19554 };
19555 static swig_attribute swig_Xapian_NumberValueRangeProcessor_attributes[] = {
19556     {0,0,0}
19557 };
19558 static swig_class *swig_Xapian_NumberValueRangeProcessor_bases[] = {0,0};
19559 static const char * swig_Xapian_NumberValueRangeProcessor_base_names[] = {"Xapian::StringValueRangeProcessor *",0};
19560 static swig_class _wrap_class_Xapian_NumberValueRangeProcessor = { "NumberValueRangeProcessor", &SWIGTYPE_p_Xapian__NumberValueRangeProcessor,_wrap_new_NumberValueRangeProcessor, swig_delete_NumberValueRangeProcessor, swig_Xapian_NumberValueRangeProcessor_methods, swig_Xapian_NumberValueRangeProcessor_attributes, swig_Xapian_NumberValueRangeProcessor_bases,swig_Xapian_NumberValueRangeProcessor_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
19561 SWIGINTERN int
_wrap_delete_FieldProcessor(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])19562 _wrap_delete_FieldProcessor(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
19563   Xapian::FieldProcessor *arg1 = (Xapian::FieldProcessor *) 0 ;
19564   void *argp1 = 0 ;
19565   int res1 = 0 ;
19566 
19567   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_FieldProcessor self ",(void *)0) == TCL_ERROR) SWIG_fail;
19568   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__FieldProcessor, SWIG_POINTER_DISOWN |  0 );
19569   if (!SWIG_IsOK(res1)) {
19570     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FieldProcessor" "', argument " "1"" of type '" "Xapian::FieldProcessor *""'");
19571   }
19572   arg1 = reinterpret_cast< Xapian::FieldProcessor * >(argp1);
19573   {
19574     try {
19575       delete arg1;
19576     } catch (const Xapian::Error &e) {
19577       return XapianTclHandleError(interp, e);
19578     } catch (...) {
19579       return XapianTclHandleError(interp);
19580     }
19581   }
19582 
19583   return TCL_OK;
19584 fail:
19585   return TCL_ERROR;
19586 }
19587 
19588 
19589 SWIGINTERN int
_wrap_FieldProcessor_apply(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])19590 _wrap_FieldProcessor_apply(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
19591   Xapian::FieldProcessor *arg1 = (Xapian::FieldProcessor *) 0 ;
19592   std::string *arg2 = 0 ;
19593   void *argp1 = 0 ;
19594   int res1 = 0 ;
19595   int res2 = SWIG_OLDOBJ ;
19596   Xapian::Query result;
19597 
19598   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::FieldProcessor_apply self str ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
19599   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__FieldProcessor, 0 |  0 );
19600   if (!SWIG_IsOK(res1)) {
19601     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FieldProcessor_apply" "', argument " "1"" of type '" "Xapian::FieldProcessor *""'");
19602   }
19603   arg1 = reinterpret_cast< Xapian::FieldProcessor * >(argp1);
19604   {
19605     std::string *ptr = (std::string *)0;
19606     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
19607     if (!SWIG_IsOK(res2)) {
19608       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FieldProcessor_apply" "', argument " "2"" of type '" "std::string const &""'");
19609     }
19610     if (!ptr) {
19611       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FieldProcessor_apply" "', argument " "2"" of type '" "std::string const &""'");
19612     }
19613     arg2 = ptr;
19614   }
19615   {
19616     try {
19617       result = (arg1)->operator ()((std::string const &)*arg2);
19618     } catch (const Xapian::Error &e) {
19619       return XapianTclHandleError(interp, e);
19620     } catch (...) {
19621       return XapianTclHandleError(interp);
19622     }
19623   }
19624   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::Query(static_cast< const Xapian::Query& >(result))), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_OWN | 0 ));
19625   if (SWIG_IsNewObj(res2)) delete arg2;
19626   return TCL_OK;
19627 fail:
19628   if (SWIG_IsNewObj(res2)) delete arg2;
19629   return TCL_ERROR;
19630 }
19631 
19632 
19633 SWIGINTERN int
_wrap_FieldProcessor_release(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])19634 _wrap_FieldProcessor_release(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
19635   Xapian::FieldProcessor *arg1 = (Xapian::FieldProcessor *) 0 ;
19636   void *argp1 = 0 ;
19637   int res1 = 0 ;
19638   Xapian::FieldProcessor *result = 0 ;
19639 
19640   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::FieldProcessor_release self ",(void *)0) == TCL_ERROR) SWIG_fail;
19641   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__FieldProcessor, 0 |  0 );
19642   if (!SWIG_IsOK(res1)) {
19643     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FieldProcessor_release" "', argument " "1"" of type '" "Xapian::FieldProcessor const *""'");
19644   }
19645   arg1 = reinterpret_cast< Xapian::FieldProcessor * >(argp1);
19646   {
19647     try {
19648       result = (Xapian::FieldProcessor *)((Xapian::FieldProcessor const *)arg1)->release();
19649     } catch (const Xapian::Error &e) {
19650       return XapianTclHandleError(interp, e);
19651     } catch (...) {
19652       return XapianTclHandleError(interp);
19653     }
19654   }
19655   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__FieldProcessor,0));
19656   return TCL_OK;
19657 fail:
19658   return TCL_ERROR;
19659 }
19660 
19661 
swig_delete_FieldProcessor(void * obj)19662 SWIGINTERN void swig_delete_FieldProcessor(void *obj) {
19663 Xapian::FieldProcessor *arg1 = (Xapian::FieldProcessor *) obj;
19664 delete arg1;
19665 }
19666 static swig_method swig_Xapian_FieldProcessor_methods[] = {
19667     {"apply", _wrap_FieldProcessor_apply},
19668     {"release", _wrap_FieldProcessor_release},
19669     {0,0}
19670 };
19671 static swig_attribute swig_Xapian_FieldProcessor_attributes[] = {
19672     {0,0,0}
19673 };
19674 static swig_class *swig_Xapian_FieldProcessor_bases[] = {0};
19675 static const char * swig_Xapian_FieldProcessor_base_names[] = {0};
19676 static swig_class _wrap_class_Xapian_FieldProcessor = { "FieldProcessor", &SWIGTYPE_p_Xapian__FieldProcessor,0, swig_delete_FieldProcessor, swig_Xapian_FieldProcessor_methods, swig_Xapian_FieldProcessor_attributes, swig_Xapian_FieldProcessor_bases,swig_Xapian_FieldProcessor_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
19677 SWIGINTERN int
_wrap_new_QueryParser(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])19678 _wrap_new_QueryParser(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
19679   Xapian::QueryParser *result = 0 ;
19680 
19681   if (SWIG_GetArgs(interp, objc, objv,":xapian::new_QueryParser ") == TCL_ERROR) SWIG_fail;
19682   {
19683     try {
19684       result = (Xapian::QueryParser *)new Xapian::QueryParser();
19685     } catch (const Xapian::Error &e) {
19686       return XapianTclHandleError(interp, e);
19687     } catch (...) {
19688       return XapianTclHandleError(interp);
19689     }
19690   }
19691   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__QueryParser,0));
19692   return TCL_OK;
19693 fail:
19694   return TCL_ERROR;
19695 }
19696 
19697 
19698 SWIGINTERN int
_wrap_delete_QueryParser(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])19699 _wrap_delete_QueryParser(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
19700   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
19701   void *argp1 = 0 ;
19702   int res1 = 0 ;
19703 
19704   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_QueryParser self ",(void *)0) == TCL_ERROR) SWIG_fail;
19705   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__QueryParser, SWIG_POINTER_DISOWN |  0 );
19706   if (!SWIG_IsOK(res1)) {
19707     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_QueryParser" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
19708   }
19709   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
19710   {
19711     try {
19712       delete arg1;
19713     } catch (const Xapian::Error &e) {
19714       return XapianTclHandleError(interp, e);
19715     } catch (...) {
19716       return XapianTclHandleError(interp);
19717     }
19718   }
19719 
19720   return TCL_OK;
19721 fail:
19722   return TCL_ERROR;
19723 }
19724 
19725 
19726 SWIGINTERN int
_wrap_QueryParser_set_stemmer(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])19727 _wrap_QueryParser_set_stemmer(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
19728   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
19729   Xapian::Stem *arg2 = 0 ;
19730   void *argp1 = 0 ;
19731   int res1 = 0 ;
19732   void *argp2 ;
19733   int res2 = 0 ;
19734 
19735   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::QueryParser_set_stemmer self stemmer ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
19736   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
19737   if (!SWIG_IsOK(res1)) {
19738     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_set_stemmer" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
19739   }
19740   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
19741   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__Stem,  0 );
19742   if (!SWIG_IsOK(res2)) {
19743     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_set_stemmer" "', argument " "2"" of type '" "Xapian::Stem const &""'");
19744   }
19745   if (!argp2) {
19746     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_set_stemmer" "', argument " "2"" of type '" "Xapian::Stem const &""'");
19747   }
19748   arg2 = reinterpret_cast< Xapian::Stem * >(argp2);
19749   {
19750     try {
19751       (arg1)->set_stemmer((Xapian::Stem const &)*arg2);
19752     } catch (const Xapian::Error &e) {
19753       return XapianTclHandleError(interp, e);
19754     } catch (...) {
19755       return XapianTclHandleError(interp);
19756     }
19757   }
19758 
19759   return TCL_OK;
19760 fail:
19761   return TCL_ERROR;
19762 }
19763 
19764 
19765 SWIGINTERN int
_wrap_QueryParser_set_stemming_strategy(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])19766 _wrap_QueryParser_set_stemming_strategy(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
19767   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
19768   Xapian::QueryParser::stem_strategy arg2 ;
19769   void *argp1 = 0 ;
19770   int res1 = 0 ;
19771   int val2 ;
19772   int ecode2 = 0 ;
19773 
19774   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::QueryParser_set_stemming_strategy self strategy ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
19775   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
19776   if (!SWIG_IsOK(res1)) {
19777     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_set_stemming_strategy" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
19778   }
19779   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
19780   ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
19781   if (!SWIG_IsOK(ecode2)) {
19782     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryParser_set_stemming_strategy" "', argument " "2"" of type '" "Xapian::QueryParser::stem_strategy""'");
19783   }
19784   arg2 = static_cast< Xapian::QueryParser::stem_strategy >(val2);
19785   {
19786     try {
19787       (arg1)->set_stemming_strategy(arg2);
19788     } catch (const Xapian::Error &e) {
19789       return XapianTclHandleError(interp, e);
19790     } catch (...) {
19791       return XapianTclHandleError(interp);
19792     }
19793   }
19794 
19795   return TCL_OK;
19796 fail:
19797   return TCL_ERROR;
19798 }
19799 
19800 
19801 SWIGINTERN int
_wrap_QueryParser_set_stopper__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])19802 _wrap_QueryParser_set_stopper__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
19803   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
19804   Xapian::Stopper *arg2 = (Xapian::Stopper *) 0 ;
19805   void *argp1 = 0 ;
19806   int res1 = 0 ;
19807   void *argp2 = 0 ;
19808   int res2 = 0 ;
19809 
19810   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::QueryParser_set_stopper self stop ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
19811   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
19812   if (!SWIG_IsOK(res1)) {
19813     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_set_stopper" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
19814   }
19815   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
19816   res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_Xapian__Stopper, 0 |  0 );
19817   if (!SWIG_IsOK(res2)) {
19818     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_set_stopper" "', argument " "2"" of type '" "Xapian::Stopper const *""'");
19819   }
19820   arg2 = reinterpret_cast< Xapian::Stopper * >(argp2);
19821   {
19822     try {
19823       (arg1)->set_stopper((Xapian::Stopper const *)arg2);
19824     } catch (const Xapian::Error &e) {
19825       return XapianTclHandleError(interp, e);
19826     } catch (...) {
19827       return XapianTclHandleError(interp);
19828     }
19829   }
19830 
19831   return TCL_OK;
19832 fail:
19833   return TCL_ERROR;
19834 }
19835 
19836 
19837 SWIGINTERN int
_wrap_QueryParser_set_stopper__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])19838 _wrap_QueryParser_set_stopper__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
19839   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
19840   void *argp1 = 0 ;
19841   int res1 = 0 ;
19842 
19843   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::QueryParser_set_stopper self ",(void *)0) == TCL_ERROR) SWIG_fail;
19844   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
19845   if (!SWIG_IsOK(res1)) {
19846     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_set_stopper" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
19847   }
19848   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
19849   {
19850     try {
19851       (arg1)->set_stopper();
19852     } catch (const Xapian::Error &e) {
19853       return XapianTclHandleError(interp, e);
19854     } catch (...) {
19855       return XapianTclHandleError(interp);
19856     }
19857   }
19858 
19859   return TCL_OK;
19860 fail:
19861   return TCL_ERROR;
19862 }
19863 
19864 
19865 SWIGINTERN int
_wrap_QueryParser_set_stopper(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])19866 _wrap_QueryParser_set_stopper(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
19867   Tcl_Obj *CONST *argv = objv+1;
19868   int argc = objc-1;
19869   if (argc == 1) {
19870     int _v;
19871     void *vptr = 0;
19872     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__QueryParser, 0);
19873     _v = SWIG_CheckState(res);
19874     if (_v) {
19875       return _wrap_QueryParser_set_stopper__SWIG_1(clientData, interp, objc, argv - 1);
19876     }
19877   }
19878   if (argc == 2) {
19879     int _v;
19880     void *vptr = 0;
19881     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__QueryParser, 0);
19882     _v = SWIG_CheckState(res);
19883     if (_v) {
19884       void *vptr = 0;
19885       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Xapian__Stopper, 0);
19886       _v = SWIG_CheckState(res);
19887       if (_v) {
19888         return _wrap_QueryParser_set_stopper__SWIG_0(clientData, interp, objc, argv - 1);
19889       }
19890     }
19891   }
19892 
19893   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'QueryParser_set_stopper'.\n"
19894     "  Possible C/C++ prototypes are:\n"
19895     "    Xapian::QueryParser::set_stopper(Xapian::Stopper const *)\n"
19896     "    Xapian::QueryParser::set_stopper()\n", TCL_STATIC);
19897   return TCL_ERROR;
19898 }
19899 
19900 
19901 SWIGINTERN int
_wrap_QueryParser_set_default_op(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])19902 _wrap_QueryParser_set_default_op(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
19903   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
19904   Xapian::Query::op arg2 ;
19905   void *argp1 = 0 ;
19906   int res1 = 0 ;
19907   int val2 ;
19908   int ecode2 = 0 ;
19909 
19910   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::QueryParser_set_default_op self default_op ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
19911   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
19912   if (!SWIG_IsOK(res1)) {
19913     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_set_default_op" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
19914   }
19915   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
19916   ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
19917   if (!SWIG_IsOK(ecode2)) {
19918     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryParser_set_default_op" "', argument " "2"" of type '" "Xapian::Query::op""'");
19919   }
19920   arg2 = static_cast< Xapian::Query::op >(val2);
19921   {
19922     try {
19923       (arg1)->set_default_op(arg2);
19924     } catch (const Xapian::Error &e) {
19925       return XapianTclHandleError(interp, e);
19926     } catch (...) {
19927       return XapianTclHandleError(interp);
19928     }
19929   }
19930 
19931   return TCL_OK;
19932 fail:
19933   return TCL_ERROR;
19934 }
19935 
19936 
19937 SWIGINTERN int
_wrap_QueryParser_get_default_op(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])19938 _wrap_QueryParser_get_default_op(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
19939   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
19940   void *argp1 = 0 ;
19941   int res1 = 0 ;
19942   Xapian::Query::op result;
19943 
19944   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::QueryParser_get_default_op self ",(void *)0) == TCL_ERROR) SWIG_fail;
19945   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
19946   if (!SWIG_IsOK(res1)) {
19947     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_get_default_op" "', argument " "1"" of type '" "Xapian::QueryParser const *""'");
19948   }
19949   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
19950   {
19951     try {
19952       result = (Xapian::Query::op)((Xapian::QueryParser const *)arg1)->get_default_op();
19953     } catch (const Xapian::Error &e) {
19954       return XapianTclHandleError(interp, e);
19955     } catch (...) {
19956       return XapianTclHandleError(interp);
19957     }
19958   }
19959   Tcl_SetObjResult(interp,SWIG_From_int(static_cast< int >(result)));
19960   return TCL_OK;
19961 fail:
19962   return TCL_ERROR;
19963 }
19964 
19965 
19966 SWIGINTERN int
_wrap_QueryParser_set_database(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])19967 _wrap_QueryParser_set_database(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
19968   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
19969   Xapian::Database *arg2 = 0 ;
19970   void *argp1 = 0 ;
19971   int res1 = 0 ;
19972   void *argp2 ;
19973   int res2 = 0 ;
19974 
19975   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::QueryParser_set_database self db ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
19976   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
19977   if (!SWIG_IsOK(res1)) {
19978     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_set_database" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
19979   }
19980   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
19981   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__Database,  0 );
19982   if (!SWIG_IsOK(res2)) {
19983     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_set_database" "', argument " "2"" of type '" "Xapian::Database const &""'");
19984   }
19985   if (!argp2) {
19986     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_set_database" "', argument " "2"" of type '" "Xapian::Database const &""'");
19987   }
19988   arg2 = reinterpret_cast< Xapian::Database * >(argp2);
19989   {
19990     try {
19991       (arg1)->set_database((Xapian::Database const &)*arg2);
19992     } catch (const Xapian::Error &e) {
19993       return XapianTclHandleError(interp, e);
19994     } catch (...) {
19995       return XapianTclHandleError(interp);
19996     }
19997   }
19998 
19999   return TCL_OK;
20000 fail:
20001   return TCL_ERROR;
20002 }
20003 
20004 
20005 SWIGINTERN int
_wrap_QueryParser_set_max_expansion__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])20006 _wrap_QueryParser_set_max_expansion__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
20007   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
20008   Xapian::termcount arg2 ;
20009   int arg3 ;
20010   unsigned int arg4 ;
20011   void *argp1 = 0 ;
20012   int res1 = 0 ;
20013   unsigned int val2 ;
20014   int ecode2 = 0 ;
20015   int val3 ;
20016   int ecode3 = 0 ;
20017   unsigned int val4 ;
20018   int ecode4 = 0 ;
20019 
20020   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::QueryParser_set_max_expansion self max_expansion max_type flags ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
20021   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
20022   if (!SWIG_IsOK(res1)) {
20023     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_set_max_expansion" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
20024   }
20025   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
20026   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
20027   if (!SWIG_IsOK(ecode2)) {
20028     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryParser_set_max_expansion" "', argument " "2"" of type '" "Xapian::termcount""'");
20029   }
20030   arg2 = static_cast< Xapian::termcount >(val2);
20031   ecode3 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
20032   if (!SWIG_IsOK(ecode3)) {
20033     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "QueryParser_set_max_expansion" "', argument " "3"" of type '" "int""'");
20034   }
20035   arg3 = static_cast< int >(val3);
20036   ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
20037   if (!SWIG_IsOK(ecode4)) {
20038     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "QueryParser_set_max_expansion" "', argument " "4"" of type '" "unsigned int""'");
20039   }
20040   arg4 = static_cast< unsigned int >(val4);
20041   {
20042     try {
20043       (arg1)->set_max_expansion(arg2,arg3,arg4);
20044     } catch (const Xapian::Error &e) {
20045       return XapianTclHandleError(interp, e);
20046     } catch (...) {
20047       return XapianTclHandleError(interp);
20048     }
20049   }
20050 
20051   return TCL_OK;
20052 fail:
20053   return TCL_ERROR;
20054 }
20055 
20056 
20057 SWIGINTERN int
_wrap_QueryParser_set_max_expansion__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])20058 _wrap_QueryParser_set_max_expansion__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
20059   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
20060   Xapian::termcount arg2 ;
20061   int arg3 ;
20062   void *argp1 = 0 ;
20063   int res1 = 0 ;
20064   unsigned int val2 ;
20065   int ecode2 = 0 ;
20066   int val3 ;
20067   int ecode3 = 0 ;
20068 
20069   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::QueryParser_set_max_expansion self max_expansion max_type ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
20070   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
20071   if (!SWIG_IsOK(res1)) {
20072     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_set_max_expansion" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
20073   }
20074   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
20075   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
20076   if (!SWIG_IsOK(ecode2)) {
20077     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryParser_set_max_expansion" "', argument " "2"" of type '" "Xapian::termcount""'");
20078   }
20079   arg2 = static_cast< Xapian::termcount >(val2);
20080   ecode3 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
20081   if (!SWIG_IsOK(ecode3)) {
20082     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "QueryParser_set_max_expansion" "', argument " "3"" of type '" "int""'");
20083   }
20084   arg3 = static_cast< int >(val3);
20085   {
20086     try {
20087       (arg1)->set_max_expansion(arg2,arg3);
20088     } catch (const Xapian::Error &e) {
20089       return XapianTclHandleError(interp, e);
20090     } catch (...) {
20091       return XapianTclHandleError(interp);
20092     }
20093   }
20094 
20095   return TCL_OK;
20096 fail:
20097   return TCL_ERROR;
20098 }
20099 
20100 
20101 SWIGINTERN int
_wrap_QueryParser_set_max_expansion__SWIG_2(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])20102 _wrap_QueryParser_set_max_expansion__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
20103   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
20104   Xapian::termcount arg2 ;
20105   void *argp1 = 0 ;
20106   int res1 = 0 ;
20107   unsigned int val2 ;
20108   int ecode2 = 0 ;
20109 
20110   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::QueryParser_set_max_expansion self max_expansion ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
20111   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
20112   if (!SWIG_IsOK(res1)) {
20113     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_set_max_expansion" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
20114   }
20115   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
20116   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
20117   if (!SWIG_IsOK(ecode2)) {
20118     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryParser_set_max_expansion" "', argument " "2"" of type '" "Xapian::termcount""'");
20119   }
20120   arg2 = static_cast< Xapian::termcount >(val2);
20121   {
20122     try {
20123       (arg1)->set_max_expansion(arg2);
20124     } catch (const Xapian::Error &e) {
20125       return XapianTclHandleError(interp, e);
20126     } catch (...) {
20127       return XapianTclHandleError(interp);
20128     }
20129   }
20130 
20131   return TCL_OK;
20132 fail:
20133   return TCL_ERROR;
20134 }
20135 
20136 
20137 SWIGINTERN int
_wrap_QueryParser_set_max_expansion(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])20138 _wrap_QueryParser_set_max_expansion(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
20139   Tcl_Obj *CONST *argv = objv+1;
20140   int argc = objc-1;
20141   if (argc == 2) {
20142     int _v;
20143     void *vptr = 0;
20144     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__QueryParser, 0);
20145     _v = SWIG_CheckState(res);
20146     if (_v) {
20147       {
20148         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
20149         _v = SWIG_CheckState(res);
20150       }
20151       if (_v) {
20152         return _wrap_QueryParser_set_max_expansion__SWIG_2(clientData, interp, objc, argv - 1);
20153       }
20154     }
20155   }
20156   if (argc == 3) {
20157     int _v;
20158     void *vptr = 0;
20159     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__QueryParser, 0);
20160     _v = SWIG_CheckState(res);
20161     if (_v) {
20162       {
20163         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
20164         _v = SWIG_CheckState(res);
20165       }
20166       if (_v) {
20167         {
20168           int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
20169           _v = SWIG_CheckState(res);
20170         }
20171         if (_v) {
20172           return _wrap_QueryParser_set_max_expansion__SWIG_1(clientData, interp, objc, argv - 1);
20173         }
20174       }
20175     }
20176   }
20177   if (argc == 4) {
20178     int _v;
20179     void *vptr = 0;
20180     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__QueryParser, 0);
20181     _v = SWIG_CheckState(res);
20182     if (_v) {
20183       {
20184         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
20185         _v = SWIG_CheckState(res);
20186       }
20187       if (_v) {
20188         {
20189           int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
20190           _v = SWIG_CheckState(res);
20191         }
20192         if (_v) {
20193           {
20194             int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
20195             _v = SWIG_CheckState(res);
20196           }
20197           if (_v) {
20198             return _wrap_QueryParser_set_max_expansion__SWIG_0(clientData, interp, objc, argv - 1);
20199           }
20200         }
20201       }
20202     }
20203   }
20204 
20205   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'QueryParser_set_max_expansion'.\n"
20206     "  Possible C/C++ prototypes are:\n"
20207     "    Xapian::QueryParser::set_max_expansion(Xapian::termcount,int,unsigned int)\n"
20208     "    Xapian::QueryParser::set_max_expansion(Xapian::termcount,int)\n"
20209     "    Xapian::QueryParser::set_max_expansion(Xapian::termcount)\n", TCL_STATIC);
20210   return TCL_ERROR;
20211 }
20212 
20213 
20214 SWIGINTERN int
_wrap_QueryParser_set_max_wildcard_expansion(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])20215 _wrap_QueryParser_set_max_wildcard_expansion(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
20216   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
20217   Xapian::termcount arg2 ;
20218   void *argp1 = 0 ;
20219   int res1 = 0 ;
20220   unsigned int val2 ;
20221   int ecode2 = 0 ;
20222 
20223   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::QueryParser_set_max_wildcard_expansion self Xapian::termcount ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
20224   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
20225   if (!SWIG_IsOK(res1)) {
20226     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_set_max_wildcard_expansion" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
20227   }
20228   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
20229   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
20230   if (!SWIG_IsOK(ecode2)) {
20231     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryParser_set_max_wildcard_expansion" "', argument " "2"" of type '" "Xapian::termcount""'");
20232   }
20233   arg2 = static_cast< Xapian::termcount >(val2);
20234   {
20235     try {
20236       (arg1)->set_max_wildcard_expansion(arg2);
20237     } catch (const Xapian::Error &e) {
20238       return XapianTclHandleError(interp, e);
20239     } catch (...) {
20240       return XapianTclHandleError(interp);
20241     }
20242   }
20243 
20244   return TCL_OK;
20245 fail:
20246   return TCL_ERROR;
20247 }
20248 
20249 
20250 SWIGINTERN int
_wrap_QueryParser_parse_query__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])20251 _wrap_QueryParser_parse_query__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
20252   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
20253   std::string *arg2 = 0 ;
20254   unsigned int arg3 ;
20255   std::string *arg4 = 0 ;
20256   void *argp1 = 0 ;
20257   int res1 = 0 ;
20258   int res2 = SWIG_OLDOBJ ;
20259   unsigned int val3 ;
20260   int ecode3 = 0 ;
20261   int res4 = SWIG_OLDOBJ ;
20262   Xapian::Query result;
20263 
20264   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::QueryParser_parse_query self query_string flags default_prefix ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
20265   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
20266   if (!SWIG_IsOK(res1)) {
20267     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_parse_query" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
20268   }
20269   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
20270   {
20271     std::string *ptr = (std::string *)0;
20272     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
20273     if (!SWIG_IsOK(res2)) {
20274       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_parse_query" "', argument " "2"" of type '" "std::string const &""'");
20275     }
20276     if (!ptr) {
20277       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_parse_query" "', argument " "2"" of type '" "std::string const &""'");
20278     }
20279     arg2 = ptr;
20280   }
20281   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
20282   if (!SWIG_IsOK(ecode3)) {
20283     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "QueryParser_parse_query" "', argument " "3"" of type '" "unsigned int""'");
20284   }
20285   arg3 = static_cast< unsigned int >(val3);
20286   {
20287     std::string *ptr = (std::string *)0;
20288     res4 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[4], &ptr);
20289     if (!SWIG_IsOK(res4)) {
20290       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "QueryParser_parse_query" "', argument " "4"" of type '" "std::string const &""'");
20291     }
20292     if (!ptr) {
20293       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_parse_query" "', argument " "4"" of type '" "std::string const &""'");
20294     }
20295     arg4 = ptr;
20296   }
20297   {
20298     try {
20299       result = (arg1)->parse_query((std::string const &)*arg2,arg3,(std::string const &)*arg4);
20300     } catch (const Xapian::Error &e) {
20301       return XapianTclHandleError(interp, e);
20302     } catch (...) {
20303       return XapianTclHandleError(interp);
20304     }
20305   }
20306   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::Query(static_cast< const Xapian::Query& >(result))), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_OWN | 0 ));
20307   if (SWIG_IsNewObj(res2)) delete arg2;
20308   if (SWIG_IsNewObj(res4)) delete arg4;
20309   return TCL_OK;
20310 fail:
20311   if (SWIG_IsNewObj(res2)) delete arg2;
20312   if (SWIG_IsNewObj(res4)) delete arg4;
20313   return TCL_ERROR;
20314 }
20315 
20316 
20317 SWIGINTERN int
_wrap_QueryParser_parse_query__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])20318 _wrap_QueryParser_parse_query__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
20319   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
20320   std::string *arg2 = 0 ;
20321   unsigned int arg3 ;
20322   void *argp1 = 0 ;
20323   int res1 = 0 ;
20324   int res2 = SWIG_OLDOBJ ;
20325   unsigned int val3 ;
20326   int ecode3 = 0 ;
20327   Xapian::Query result;
20328 
20329   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::QueryParser_parse_query self query_string flags ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
20330   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
20331   if (!SWIG_IsOK(res1)) {
20332     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_parse_query" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
20333   }
20334   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
20335   {
20336     std::string *ptr = (std::string *)0;
20337     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
20338     if (!SWIG_IsOK(res2)) {
20339       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_parse_query" "', argument " "2"" of type '" "std::string const &""'");
20340     }
20341     if (!ptr) {
20342       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_parse_query" "', argument " "2"" of type '" "std::string const &""'");
20343     }
20344     arg2 = ptr;
20345   }
20346   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
20347   if (!SWIG_IsOK(ecode3)) {
20348     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "QueryParser_parse_query" "', argument " "3"" of type '" "unsigned int""'");
20349   }
20350   arg3 = static_cast< unsigned int >(val3);
20351   {
20352     try {
20353       result = (arg1)->parse_query((std::string const &)*arg2,arg3);
20354     } catch (const Xapian::Error &e) {
20355       return XapianTclHandleError(interp, e);
20356     } catch (...) {
20357       return XapianTclHandleError(interp);
20358     }
20359   }
20360   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::Query(static_cast< const Xapian::Query& >(result))), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_OWN | 0 ));
20361   if (SWIG_IsNewObj(res2)) delete arg2;
20362   return TCL_OK;
20363 fail:
20364   if (SWIG_IsNewObj(res2)) delete arg2;
20365   return TCL_ERROR;
20366 }
20367 
20368 
20369 SWIGINTERN int
_wrap_QueryParser_parse_query__SWIG_2(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])20370 _wrap_QueryParser_parse_query__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
20371   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
20372   std::string *arg2 = 0 ;
20373   void *argp1 = 0 ;
20374   int res1 = 0 ;
20375   int res2 = SWIG_OLDOBJ ;
20376   Xapian::Query result;
20377 
20378   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::QueryParser_parse_query self query_string ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
20379   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
20380   if (!SWIG_IsOK(res1)) {
20381     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_parse_query" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
20382   }
20383   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
20384   {
20385     std::string *ptr = (std::string *)0;
20386     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
20387     if (!SWIG_IsOK(res2)) {
20388       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_parse_query" "', argument " "2"" of type '" "std::string const &""'");
20389     }
20390     if (!ptr) {
20391       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_parse_query" "', argument " "2"" of type '" "std::string const &""'");
20392     }
20393     arg2 = ptr;
20394   }
20395   {
20396     try {
20397       result = (arg1)->parse_query((std::string const &)*arg2);
20398     } catch (const Xapian::Error &e) {
20399       return XapianTclHandleError(interp, e);
20400     } catch (...) {
20401       return XapianTclHandleError(interp);
20402     }
20403   }
20404   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::Query(static_cast< const Xapian::Query& >(result))), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_OWN | 0 ));
20405   if (SWIG_IsNewObj(res2)) delete arg2;
20406   return TCL_OK;
20407 fail:
20408   if (SWIG_IsNewObj(res2)) delete arg2;
20409   return TCL_ERROR;
20410 }
20411 
20412 
20413 SWIGINTERN int
_wrap_QueryParser_parse_query(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])20414 _wrap_QueryParser_parse_query(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
20415   Tcl_Obj *CONST *argv = objv+1;
20416   int argc = objc-1;
20417   if (argc == 2) {
20418     int _v;
20419     void *vptr = 0;
20420     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__QueryParser, 0);
20421     _v = SWIG_CheckState(res);
20422     if (_v) {
20423       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
20424       _v = SWIG_CheckState(res);
20425       if (_v) {
20426         return _wrap_QueryParser_parse_query__SWIG_2(clientData, interp, objc, argv - 1);
20427       }
20428     }
20429   }
20430   if (argc == 3) {
20431     int _v;
20432     void *vptr = 0;
20433     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__QueryParser, 0);
20434     _v = SWIG_CheckState(res);
20435     if (_v) {
20436       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
20437       _v = SWIG_CheckState(res);
20438       if (_v) {
20439         {
20440           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
20441           _v = SWIG_CheckState(res);
20442         }
20443         if (_v) {
20444           return _wrap_QueryParser_parse_query__SWIG_1(clientData, interp, objc, argv - 1);
20445         }
20446       }
20447     }
20448   }
20449   if (argc == 4) {
20450     int _v;
20451     void *vptr = 0;
20452     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__QueryParser, 0);
20453     _v = SWIG_CheckState(res);
20454     if (_v) {
20455       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
20456       _v = SWIG_CheckState(res);
20457       if (_v) {
20458         {
20459           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
20460           _v = SWIG_CheckState(res);
20461         }
20462         if (_v) {
20463           int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[3], (std::string**)(0));
20464           _v = SWIG_CheckState(res);
20465           if (_v) {
20466             return _wrap_QueryParser_parse_query__SWIG_0(clientData, interp, objc, argv - 1);
20467           }
20468         }
20469       }
20470     }
20471   }
20472 
20473   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'QueryParser_parse_query'.\n"
20474     "  Possible C/C++ prototypes are:\n"
20475     "    Xapian::QueryParser::parse_query(std::string const &,unsigned int,std::string const &)\n"
20476     "    Xapian::QueryParser::parse_query(std::string const &,unsigned int)\n"
20477     "    Xapian::QueryParser::parse_query(std::string const &)\n", TCL_STATIC);
20478   return TCL_ERROR;
20479 }
20480 
20481 
20482 SWIGINTERN int
_wrap_QueryParser_add_prefix__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])20483 _wrap_QueryParser_add_prefix__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
20484   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
20485   std::string *arg2 = 0 ;
20486   std::string *arg3 = 0 ;
20487   void *argp1 = 0 ;
20488   int res1 = 0 ;
20489   int res2 = SWIG_OLDOBJ ;
20490   int res3 = SWIG_OLDOBJ ;
20491 
20492   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::QueryParser_add_prefix self field prefix ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
20493   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
20494   if (!SWIG_IsOK(res1)) {
20495     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_add_prefix" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
20496   }
20497   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
20498   {
20499     std::string *ptr = (std::string *)0;
20500     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
20501     if (!SWIG_IsOK(res2)) {
20502       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_add_prefix" "', argument " "2"" of type '" "std::string const &""'");
20503     }
20504     if (!ptr) {
20505       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_add_prefix" "', argument " "2"" of type '" "std::string const &""'");
20506     }
20507     arg2 = ptr;
20508   }
20509   {
20510     std::string *ptr = (std::string *)0;
20511     res3 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[3], &ptr);
20512     if (!SWIG_IsOK(res3)) {
20513       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QueryParser_add_prefix" "', argument " "3"" of type '" "std::string const &""'");
20514     }
20515     if (!ptr) {
20516       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_add_prefix" "', argument " "3"" of type '" "std::string const &""'");
20517     }
20518     arg3 = ptr;
20519   }
20520   {
20521     try {
20522       (arg1)->add_prefix((std::string const &)*arg2,(std::string const &)*arg3);
20523     } catch (const Xapian::Error &e) {
20524       return XapianTclHandleError(interp, e);
20525     } catch (...) {
20526       return XapianTclHandleError(interp);
20527     }
20528   }
20529 
20530   if (SWIG_IsNewObj(res2)) delete arg2;
20531   if (SWIG_IsNewObj(res3)) delete arg3;
20532   return TCL_OK;
20533 fail:
20534   if (SWIG_IsNewObj(res2)) delete arg2;
20535   if (SWIG_IsNewObj(res3)) delete arg3;
20536   return TCL_ERROR;
20537 }
20538 
20539 
20540 SWIGINTERN int
_wrap_QueryParser_add_prefix__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])20541 _wrap_QueryParser_add_prefix__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
20542   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
20543   std::string *arg2 = 0 ;
20544   Xapian::FieldProcessor *arg3 = (Xapian::FieldProcessor *) 0 ;
20545   void *argp1 = 0 ;
20546   int res1 = 0 ;
20547   int res2 = SWIG_OLDOBJ ;
20548   void *argp3 = 0 ;
20549   int res3 = 0 ;
20550 
20551   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::QueryParser_add_prefix self field proc ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
20552   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
20553   if (!SWIG_IsOK(res1)) {
20554     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_add_prefix" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
20555   }
20556   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
20557   {
20558     std::string *ptr = (std::string *)0;
20559     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
20560     if (!SWIG_IsOK(res2)) {
20561       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_add_prefix" "', argument " "2"" of type '" "std::string const &""'");
20562     }
20563     if (!ptr) {
20564       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_add_prefix" "', argument " "2"" of type '" "std::string const &""'");
20565     }
20566     arg2 = ptr;
20567   }
20568   res3 = SWIG_ConvertPtr(objv[3], &argp3,SWIGTYPE_p_Xapian__FieldProcessor, 0 |  0 );
20569   if (!SWIG_IsOK(res3)) {
20570     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QueryParser_add_prefix" "', argument " "3"" of type '" "Xapian::FieldProcessor *""'");
20571   }
20572   arg3 = reinterpret_cast< Xapian::FieldProcessor * >(argp3);
20573   {
20574     try {
20575       (arg1)->add_prefix((std::string const &)*arg2,arg3);
20576     } catch (const Xapian::Error &e) {
20577       return XapianTclHandleError(interp, e);
20578     } catch (...) {
20579       return XapianTclHandleError(interp);
20580     }
20581   }
20582 
20583   if (SWIG_IsNewObj(res2)) delete arg2;
20584   return TCL_OK;
20585 fail:
20586   if (SWIG_IsNewObj(res2)) delete arg2;
20587   return TCL_ERROR;
20588 }
20589 
20590 
20591 SWIGINTERN int
_wrap_QueryParser_add_prefix(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])20592 _wrap_QueryParser_add_prefix(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
20593   Tcl_Obj *CONST *argv = objv+1;
20594   int argc = objc-1;
20595   if (argc == 3) {
20596     int _v;
20597     void *vptr = 0;
20598     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__QueryParser, 0);
20599     _v = SWIG_CheckState(res);
20600     if (_v) {
20601       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
20602       _v = SWIG_CheckState(res);
20603       if (_v) {
20604         void *vptr = 0;
20605         int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_Xapian__FieldProcessor, 0);
20606         _v = SWIG_CheckState(res);
20607         if (_v) {
20608           return _wrap_QueryParser_add_prefix__SWIG_1(clientData, interp, objc, argv - 1);
20609         }
20610       }
20611     }
20612   }
20613   if (argc == 3) {
20614     int _v;
20615     void *vptr = 0;
20616     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__QueryParser, 0);
20617     _v = SWIG_CheckState(res);
20618     if (_v) {
20619       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
20620       _v = SWIG_CheckState(res);
20621       if (_v) {
20622         int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[2], (std::string**)(0));
20623         _v = SWIG_CheckState(res);
20624         if (_v) {
20625           return _wrap_QueryParser_add_prefix__SWIG_0(clientData, interp, objc, argv - 1);
20626         }
20627       }
20628     }
20629   }
20630 
20631   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'QueryParser_add_prefix'.\n"
20632     "  Possible C/C++ prototypes are:\n"
20633     "    Xapian::QueryParser::add_prefix(std::string const &,std::string const &)\n"
20634     "    Xapian::QueryParser::add_prefix(std::string const &,Xapian::FieldProcessor *)\n", TCL_STATIC);
20635   return TCL_ERROR;
20636 }
20637 
20638 
20639 SWIGINTERN int
_wrap_QueryParser_add_boolean_prefix__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])20640 _wrap_QueryParser_add_boolean_prefix__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
20641   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
20642   std::string *arg2 = 0 ;
20643   std::string *arg3 = 0 ;
20644   std::string *arg4 = (std::string *) 0 ;
20645   void *argp1 = 0 ;
20646   int res1 = 0 ;
20647   int res2 = SWIG_OLDOBJ ;
20648   int res3 = SWIG_OLDOBJ ;
20649   void *argp4 = 0 ;
20650   int res4 = 0 ;
20651 
20652   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::QueryParser_add_boolean_prefix self field prefix grouping ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
20653   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
20654   if (!SWIG_IsOK(res1)) {
20655     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_add_boolean_prefix" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
20656   }
20657   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
20658   {
20659     std::string *ptr = (std::string *)0;
20660     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
20661     if (!SWIG_IsOK(res2)) {
20662       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_add_boolean_prefix" "', argument " "2"" of type '" "std::string const &""'");
20663     }
20664     if (!ptr) {
20665       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_add_boolean_prefix" "', argument " "2"" of type '" "std::string const &""'");
20666     }
20667     arg2 = ptr;
20668   }
20669   {
20670     std::string *ptr = (std::string *)0;
20671     res3 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[3], &ptr);
20672     if (!SWIG_IsOK(res3)) {
20673       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QueryParser_add_boolean_prefix" "', argument " "3"" of type '" "std::string const &""'");
20674     }
20675     if (!ptr) {
20676       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_add_boolean_prefix" "', argument " "3"" of type '" "std::string const &""'");
20677     }
20678     arg3 = ptr;
20679   }
20680   res4 = SWIG_ConvertPtr(objv[4], &argp4,SWIGTYPE_p_std__string, 0 |  0 );
20681   if (!SWIG_IsOK(res4)) {
20682     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "QueryParser_add_boolean_prefix" "', argument " "4"" of type '" "std::string const *""'");
20683   }
20684   arg4 = reinterpret_cast< std::string * >(argp4);
20685   {
20686     try {
20687       (arg1)->add_boolean_prefix((std::string const &)*arg2,(std::string const &)*arg3,(std::string const *)arg4);
20688     } catch (const Xapian::Error &e) {
20689       return XapianTclHandleError(interp, e);
20690     } catch (...) {
20691       return XapianTclHandleError(interp);
20692     }
20693   }
20694 
20695   if (SWIG_IsNewObj(res2)) delete arg2;
20696   if (SWIG_IsNewObj(res3)) delete arg3;
20697   return TCL_OK;
20698 fail:
20699   if (SWIG_IsNewObj(res2)) delete arg2;
20700   if (SWIG_IsNewObj(res3)) delete arg3;
20701   return TCL_ERROR;
20702 }
20703 
20704 
20705 SWIGINTERN int
_wrap_QueryParser_add_boolean_prefix__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])20706 _wrap_QueryParser_add_boolean_prefix__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
20707   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
20708   std::string *arg2 = 0 ;
20709   std::string *arg3 = 0 ;
20710   void *argp1 = 0 ;
20711   int res1 = 0 ;
20712   int res2 = SWIG_OLDOBJ ;
20713   int res3 = SWIG_OLDOBJ ;
20714 
20715   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::QueryParser_add_boolean_prefix self field prefix ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
20716   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
20717   if (!SWIG_IsOK(res1)) {
20718     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_add_boolean_prefix" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
20719   }
20720   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
20721   {
20722     std::string *ptr = (std::string *)0;
20723     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
20724     if (!SWIG_IsOK(res2)) {
20725       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_add_boolean_prefix" "', argument " "2"" of type '" "std::string const &""'");
20726     }
20727     if (!ptr) {
20728       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_add_boolean_prefix" "', argument " "2"" of type '" "std::string const &""'");
20729     }
20730     arg2 = ptr;
20731   }
20732   {
20733     std::string *ptr = (std::string *)0;
20734     res3 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[3], &ptr);
20735     if (!SWIG_IsOK(res3)) {
20736       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QueryParser_add_boolean_prefix" "', argument " "3"" of type '" "std::string const &""'");
20737     }
20738     if (!ptr) {
20739       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_add_boolean_prefix" "', argument " "3"" of type '" "std::string const &""'");
20740     }
20741     arg3 = ptr;
20742   }
20743   {
20744     try {
20745       (arg1)->add_boolean_prefix((std::string const &)*arg2,(std::string const &)*arg3);
20746     } catch (const Xapian::Error &e) {
20747       return XapianTclHandleError(interp, e);
20748     } catch (...) {
20749       return XapianTclHandleError(interp);
20750     }
20751   }
20752 
20753   if (SWIG_IsNewObj(res2)) delete arg2;
20754   if (SWIG_IsNewObj(res3)) delete arg3;
20755   return TCL_OK;
20756 fail:
20757   if (SWIG_IsNewObj(res2)) delete arg2;
20758   if (SWIG_IsNewObj(res3)) delete arg3;
20759   return TCL_ERROR;
20760 }
20761 
20762 
20763 SWIGINTERN int
_wrap_QueryParser_add_boolean_prefix__SWIG_2(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])20764 _wrap_QueryParser_add_boolean_prefix__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
20765   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
20766   std::string *arg2 = 0 ;
20767   std::string *arg3 = 0 ;
20768   bool arg4 ;
20769   void *argp1 = 0 ;
20770   int res1 = 0 ;
20771   int res2 = SWIG_OLDOBJ ;
20772   int res3 = SWIG_OLDOBJ ;
20773   bool val4 ;
20774   int ecode4 = 0 ;
20775 
20776   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::QueryParser_add_boolean_prefix self field prefix exclusive ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
20777   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
20778   if (!SWIG_IsOK(res1)) {
20779     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_add_boolean_prefix" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
20780   }
20781   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
20782   {
20783     std::string *ptr = (std::string *)0;
20784     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
20785     if (!SWIG_IsOK(res2)) {
20786       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_add_boolean_prefix" "', argument " "2"" of type '" "std::string const &""'");
20787     }
20788     if (!ptr) {
20789       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_add_boolean_prefix" "', argument " "2"" of type '" "std::string const &""'");
20790     }
20791     arg2 = ptr;
20792   }
20793   {
20794     std::string *ptr = (std::string *)0;
20795     res3 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[3], &ptr);
20796     if (!SWIG_IsOK(res3)) {
20797       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QueryParser_add_boolean_prefix" "', argument " "3"" of type '" "std::string const &""'");
20798     }
20799     if (!ptr) {
20800       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_add_boolean_prefix" "', argument " "3"" of type '" "std::string const &""'");
20801     }
20802     arg3 = ptr;
20803   }
20804   ecode4 = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
20805   if (!SWIG_IsOK(ecode4)) {
20806     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "QueryParser_add_boolean_prefix" "', argument " "4"" of type '" "bool""'");
20807   }
20808   arg4 = static_cast< bool >(val4);
20809   {
20810     try {
20811       (arg1)->add_boolean_prefix((std::string const &)*arg2,(std::string const &)*arg3,arg4);
20812     } catch (const Xapian::Error &e) {
20813       return XapianTclHandleError(interp, e);
20814     } catch (...) {
20815       return XapianTclHandleError(interp);
20816     }
20817   }
20818 
20819   if (SWIG_IsNewObj(res2)) delete arg2;
20820   if (SWIG_IsNewObj(res3)) delete arg3;
20821   return TCL_OK;
20822 fail:
20823   if (SWIG_IsNewObj(res2)) delete arg2;
20824   if (SWIG_IsNewObj(res3)) delete arg3;
20825   return TCL_ERROR;
20826 }
20827 
20828 
20829 SWIGINTERN int
_wrap_QueryParser_add_boolean_prefix__SWIG_3(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])20830 _wrap_QueryParser_add_boolean_prefix__SWIG_3(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
20831   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
20832   std::string *arg2 = 0 ;
20833   Xapian::FieldProcessor *arg3 = (Xapian::FieldProcessor *) 0 ;
20834   std::string *arg4 = (std::string *) 0 ;
20835   void *argp1 = 0 ;
20836   int res1 = 0 ;
20837   int res2 = SWIG_OLDOBJ ;
20838   void *argp3 = 0 ;
20839   int res3 = 0 ;
20840   void *argp4 = 0 ;
20841   int res4 = 0 ;
20842 
20843   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::QueryParser_add_boolean_prefix self field proc grouping ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
20844   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
20845   if (!SWIG_IsOK(res1)) {
20846     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_add_boolean_prefix" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
20847   }
20848   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
20849   {
20850     std::string *ptr = (std::string *)0;
20851     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
20852     if (!SWIG_IsOK(res2)) {
20853       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_add_boolean_prefix" "', argument " "2"" of type '" "std::string const &""'");
20854     }
20855     if (!ptr) {
20856       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_add_boolean_prefix" "', argument " "2"" of type '" "std::string const &""'");
20857     }
20858     arg2 = ptr;
20859   }
20860   res3 = SWIG_ConvertPtr(objv[3], &argp3,SWIGTYPE_p_Xapian__FieldProcessor, 0 |  0 );
20861   if (!SWIG_IsOK(res3)) {
20862     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QueryParser_add_boolean_prefix" "', argument " "3"" of type '" "Xapian::FieldProcessor *""'");
20863   }
20864   arg3 = reinterpret_cast< Xapian::FieldProcessor * >(argp3);
20865   res4 = SWIG_ConvertPtr(objv[4], &argp4,SWIGTYPE_p_std__string, 0 |  0 );
20866   if (!SWIG_IsOK(res4)) {
20867     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "QueryParser_add_boolean_prefix" "', argument " "4"" of type '" "std::string const *""'");
20868   }
20869   arg4 = reinterpret_cast< std::string * >(argp4);
20870   {
20871     try {
20872       (arg1)->add_boolean_prefix((std::string const &)*arg2,arg3,(std::string const *)arg4);
20873     } catch (const Xapian::Error &e) {
20874       return XapianTclHandleError(interp, e);
20875     } catch (...) {
20876       return XapianTclHandleError(interp);
20877     }
20878   }
20879 
20880   if (SWIG_IsNewObj(res2)) delete arg2;
20881   return TCL_OK;
20882 fail:
20883   if (SWIG_IsNewObj(res2)) delete arg2;
20884   return TCL_ERROR;
20885 }
20886 
20887 
20888 SWIGINTERN int
_wrap_QueryParser_add_boolean_prefix__SWIG_4(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])20889 _wrap_QueryParser_add_boolean_prefix__SWIG_4(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
20890   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
20891   std::string *arg2 = 0 ;
20892   Xapian::FieldProcessor *arg3 = (Xapian::FieldProcessor *) 0 ;
20893   void *argp1 = 0 ;
20894   int res1 = 0 ;
20895   int res2 = SWIG_OLDOBJ ;
20896   void *argp3 = 0 ;
20897   int res3 = 0 ;
20898 
20899   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::QueryParser_add_boolean_prefix self field proc ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
20900   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
20901   if (!SWIG_IsOK(res1)) {
20902     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_add_boolean_prefix" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
20903   }
20904   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
20905   {
20906     std::string *ptr = (std::string *)0;
20907     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
20908     if (!SWIG_IsOK(res2)) {
20909       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_add_boolean_prefix" "', argument " "2"" of type '" "std::string const &""'");
20910     }
20911     if (!ptr) {
20912       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_add_boolean_prefix" "', argument " "2"" of type '" "std::string const &""'");
20913     }
20914     arg2 = ptr;
20915   }
20916   res3 = SWIG_ConvertPtr(objv[3], &argp3,SWIGTYPE_p_Xapian__FieldProcessor, 0 |  0 );
20917   if (!SWIG_IsOK(res3)) {
20918     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QueryParser_add_boolean_prefix" "', argument " "3"" of type '" "Xapian::FieldProcessor *""'");
20919   }
20920   arg3 = reinterpret_cast< Xapian::FieldProcessor * >(argp3);
20921   {
20922     try {
20923       (arg1)->add_boolean_prefix((std::string const &)*arg2,arg3);
20924     } catch (const Xapian::Error &e) {
20925       return XapianTclHandleError(interp, e);
20926     } catch (...) {
20927       return XapianTclHandleError(interp);
20928     }
20929   }
20930 
20931   if (SWIG_IsNewObj(res2)) delete arg2;
20932   return TCL_OK;
20933 fail:
20934   if (SWIG_IsNewObj(res2)) delete arg2;
20935   return TCL_ERROR;
20936 }
20937 
20938 
20939 SWIGINTERN int
_wrap_QueryParser_add_boolean_prefix__SWIG_5(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])20940 _wrap_QueryParser_add_boolean_prefix__SWIG_5(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
20941   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
20942   std::string *arg2 = 0 ;
20943   Xapian::FieldProcessor *arg3 = (Xapian::FieldProcessor *) 0 ;
20944   bool arg4 ;
20945   void *argp1 = 0 ;
20946   int res1 = 0 ;
20947   int res2 = SWIG_OLDOBJ ;
20948   void *argp3 = 0 ;
20949   int res3 = 0 ;
20950   bool val4 ;
20951   int ecode4 = 0 ;
20952 
20953   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::QueryParser_add_boolean_prefix self field proc exclusive ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
20954   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
20955   if (!SWIG_IsOK(res1)) {
20956     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_add_boolean_prefix" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
20957   }
20958   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
20959   {
20960     std::string *ptr = (std::string *)0;
20961     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
20962     if (!SWIG_IsOK(res2)) {
20963       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_add_boolean_prefix" "', argument " "2"" of type '" "std::string const &""'");
20964     }
20965     if (!ptr) {
20966       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_add_boolean_prefix" "', argument " "2"" of type '" "std::string const &""'");
20967     }
20968     arg2 = ptr;
20969   }
20970   res3 = SWIG_ConvertPtr(objv[3], &argp3,SWIGTYPE_p_Xapian__FieldProcessor, 0 |  0 );
20971   if (!SWIG_IsOK(res3)) {
20972     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QueryParser_add_boolean_prefix" "', argument " "3"" of type '" "Xapian::FieldProcessor *""'");
20973   }
20974   arg3 = reinterpret_cast< Xapian::FieldProcessor * >(argp3);
20975   ecode4 = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
20976   if (!SWIG_IsOK(ecode4)) {
20977     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "QueryParser_add_boolean_prefix" "', argument " "4"" of type '" "bool""'");
20978   }
20979   arg4 = static_cast< bool >(val4);
20980   {
20981     try {
20982       (arg1)->add_boolean_prefix((std::string const &)*arg2,arg3,arg4);
20983     } catch (const Xapian::Error &e) {
20984       return XapianTclHandleError(interp, e);
20985     } catch (...) {
20986       return XapianTclHandleError(interp);
20987     }
20988   }
20989 
20990   if (SWIG_IsNewObj(res2)) delete arg2;
20991   return TCL_OK;
20992 fail:
20993   if (SWIG_IsNewObj(res2)) delete arg2;
20994   return TCL_ERROR;
20995 }
20996 
20997 
20998 SWIGINTERN int
_wrap_QueryParser_add_boolean_prefix(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])20999 _wrap_QueryParser_add_boolean_prefix(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
21000   Tcl_Obj *CONST *argv = objv+1;
21001   int argc = objc-1;
21002   if (argc == 3) {
21003     int _v;
21004     void *vptr = 0;
21005     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__QueryParser, 0);
21006     _v = SWIG_CheckState(res);
21007     if (_v) {
21008       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
21009       _v = SWIG_CheckState(res);
21010       if (_v) {
21011         void *vptr = 0;
21012         int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_Xapian__FieldProcessor, 0);
21013         _v = SWIG_CheckState(res);
21014         if (_v) {
21015           return _wrap_QueryParser_add_boolean_prefix__SWIG_4(clientData, interp, objc, argv - 1);
21016         }
21017       }
21018     }
21019   }
21020   if (argc == 3) {
21021     int _v;
21022     void *vptr = 0;
21023     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__QueryParser, 0);
21024     _v = SWIG_CheckState(res);
21025     if (_v) {
21026       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
21027       _v = SWIG_CheckState(res);
21028       if (_v) {
21029         int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[2], (std::string**)(0));
21030         _v = SWIG_CheckState(res);
21031         if (_v) {
21032           return _wrap_QueryParser_add_boolean_prefix__SWIG_1(clientData, interp, objc, argv - 1);
21033         }
21034       }
21035     }
21036   }
21037   if (argc == 4) {
21038     int _v;
21039     void *vptr = 0;
21040     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__QueryParser, 0);
21041     _v = SWIG_CheckState(res);
21042     if (_v) {
21043       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
21044       _v = SWIG_CheckState(res);
21045       if (_v) {
21046         void *vptr = 0;
21047         int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_Xapian__FieldProcessor, 0);
21048         _v = SWIG_CheckState(res);
21049         if (_v) {
21050           {
21051             int res = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
21052             _v = SWIG_CheckState(res);
21053           }
21054           if (_v) {
21055             return _wrap_QueryParser_add_boolean_prefix__SWIG_5(clientData, interp, objc, argv - 1);
21056           }
21057         }
21058       }
21059     }
21060   }
21061   if (argc == 4) {
21062     int _v;
21063     void *vptr = 0;
21064     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__QueryParser, 0);
21065     _v = SWIG_CheckState(res);
21066     if (_v) {
21067       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
21068       _v = SWIG_CheckState(res);
21069       if (_v) {
21070         void *vptr = 0;
21071         int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_Xapian__FieldProcessor, 0);
21072         _v = SWIG_CheckState(res);
21073         if (_v) {
21074           int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[3], (std::string**)(0));
21075           _v = SWIG_CheckState(res);
21076           if (_v) {
21077             return _wrap_QueryParser_add_boolean_prefix__SWIG_3(clientData, interp, objc, argv - 1);
21078           }
21079         }
21080       }
21081     }
21082   }
21083   if (argc == 4) {
21084     int _v;
21085     void *vptr = 0;
21086     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__QueryParser, 0);
21087     _v = SWIG_CheckState(res);
21088     if (_v) {
21089       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
21090       _v = SWIG_CheckState(res);
21091       if (_v) {
21092         int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[2], (std::string**)(0));
21093         _v = SWIG_CheckState(res);
21094         if (_v) {
21095           {
21096             int res = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
21097             _v = SWIG_CheckState(res);
21098           }
21099           if (_v) {
21100             return _wrap_QueryParser_add_boolean_prefix__SWIG_2(clientData, interp, objc, argv - 1);
21101           }
21102         }
21103       }
21104     }
21105   }
21106   if (argc == 4) {
21107     int _v;
21108     void *vptr = 0;
21109     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__QueryParser, 0);
21110     _v = SWIG_CheckState(res);
21111     if (_v) {
21112       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
21113       _v = SWIG_CheckState(res);
21114       if (_v) {
21115         int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[2], (std::string**)(0));
21116         _v = SWIG_CheckState(res);
21117         if (_v) {
21118           int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[3], (std::string**)(0));
21119           _v = SWIG_CheckState(res);
21120           if (_v) {
21121             return _wrap_QueryParser_add_boolean_prefix__SWIG_0(clientData, interp, objc, argv - 1);
21122           }
21123         }
21124       }
21125     }
21126   }
21127 
21128   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'QueryParser_add_boolean_prefix'.\n"
21129     "  Possible C/C++ prototypes are:\n"
21130     "    Xapian::QueryParser::add_boolean_prefix(std::string const &,std::string const &,std::string const *)\n"
21131     "    Xapian::QueryParser::add_boolean_prefix(std::string const &,std::string const &)\n"
21132     "    Xapian::QueryParser::add_boolean_prefix(std::string const &,std::string const &,bool)\n"
21133     "    Xapian::QueryParser::add_boolean_prefix(std::string const &,Xapian::FieldProcessor *,std::string const *)\n"
21134     "    Xapian::QueryParser::add_boolean_prefix(std::string const &,Xapian::FieldProcessor *)\n"
21135     "    Xapian::QueryParser::add_boolean_prefix(std::string const &,Xapian::FieldProcessor *,bool)\n", TCL_STATIC);
21136   return TCL_ERROR;
21137 }
21138 
21139 
21140 SWIGINTERN int
_wrap_QueryParser_stoplist_begin(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])21141 _wrap_QueryParser_stoplist_begin(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
21142   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
21143   void *argp1 = 0 ;
21144   int res1 = 0 ;
21145   Xapian::TermIterator result;
21146 
21147   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::QueryParser_stoplist_begin self ",(void *)0) == TCL_ERROR) SWIG_fail;
21148   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
21149   if (!SWIG_IsOK(res1)) {
21150     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_stoplist_begin" "', argument " "1"" of type '" "Xapian::QueryParser const *""'");
21151   }
21152   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
21153   {
21154     try {
21155       result = ((Xapian::QueryParser const *)arg1)->stoplist_begin();
21156     } catch (const Xapian::Error &e) {
21157       return XapianTclHandleError(interp, e);
21158     } catch (...) {
21159       return XapianTclHandleError(interp);
21160     }
21161   }
21162   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN | 0 ));
21163   return TCL_OK;
21164 fail:
21165   return TCL_ERROR;
21166 }
21167 
21168 
21169 SWIGINTERN int
_wrap_QueryParser_stoplist_end(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])21170 _wrap_QueryParser_stoplist_end(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
21171   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
21172   void *argp1 = 0 ;
21173   int res1 = 0 ;
21174   Xapian::TermIterator result;
21175 
21176   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::QueryParser_stoplist_end self ",(void *)0) == TCL_ERROR) SWIG_fail;
21177   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
21178   if (!SWIG_IsOK(res1)) {
21179     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_stoplist_end" "', argument " "1"" of type '" "Xapian::QueryParser const *""'");
21180   }
21181   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
21182   {
21183     try {
21184       result = ((Xapian::QueryParser const *)arg1)->stoplist_end();
21185     } catch (const Xapian::Error &e) {
21186       return XapianTclHandleError(interp, e);
21187     } catch (...) {
21188       return XapianTclHandleError(interp);
21189     }
21190   }
21191   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN | 0 ));
21192   return TCL_OK;
21193 fail:
21194   return TCL_ERROR;
21195 }
21196 
21197 
21198 SWIGINTERN int
_wrap_QueryParser_unstem_begin(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])21199 _wrap_QueryParser_unstem_begin(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
21200   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
21201   std::string *arg2 = 0 ;
21202   void *argp1 = 0 ;
21203   int res1 = 0 ;
21204   int res2 = SWIG_OLDOBJ ;
21205   Xapian::TermIterator result;
21206 
21207   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::QueryParser_unstem_begin self term ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
21208   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
21209   if (!SWIG_IsOK(res1)) {
21210     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_unstem_begin" "', argument " "1"" of type '" "Xapian::QueryParser const *""'");
21211   }
21212   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
21213   {
21214     std::string *ptr = (std::string *)0;
21215     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
21216     if (!SWIG_IsOK(res2)) {
21217       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_unstem_begin" "', argument " "2"" of type '" "std::string const &""'");
21218     }
21219     if (!ptr) {
21220       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_unstem_begin" "', argument " "2"" of type '" "std::string const &""'");
21221     }
21222     arg2 = ptr;
21223   }
21224   {
21225     try {
21226       result = ((Xapian::QueryParser const *)arg1)->unstem_begin((std::string const &)*arg2);
21227     } catch (const Xapian::Error &e) {
21228       return XapianTclHandleError(interp, e);
21229     } catch (...) {
21230       return XapianTclHandleError(interp);
21231     }
21232   }
21233   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN | 0 ));
21234   if (SWIG_IsNewObj(res2)) delete arg2;
21235   return TCL_OK;
21236 fail:
21237   if (SWIG_IsNewObj(res2)) delete arg2;
21238   return TCL_ERROR;
21239 }
21240 
21241 
21242 SWIGINTERN int
_wrap_QueryParser_unstem_end(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])21243 _wrap_QueryParser_unstem_end(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
21244   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
21245   std::string *arg2 = 0 ;
21246   void *argp1 = 0 ;
21247   int res1 = 0 ;
21248   int res2 = SWIG_OLDOBJ ;
21249   Xapian::TermIterator result;
21250 
21251   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::QueryParser_unstem_end self std::string const & ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
21252   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
21253   if (!SWIG_IsOK(res1)) {
21254     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_unstem_end" "', argument " "1"" of type '" "Xapian::QueryParser const *""'");
21255   }
21256   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
21257   {
21258     std::string *ptr = (std::string *)0;
21259     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
21260     if (!SWIG_IsOK(res2)) {
21261       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_unstem_end" "', argument " "2"" of type '" "std::string const &""'");
21262     }
21263     if (!ptr) {
21264       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_unstem_end" "', argument " "2"" of type '" "std::string const &""'");
21265     }
21266     arg2 = ptr;
21267   }
21268   {
21269     try {
21270       result = ((Xapian::QueryParser const *)arg1)->unstem_end((std::string const &)*arg2);
21271     } catch (const Xapian::Error &e) {
21272       return XapianTclHandleError(interp, e);
21273     } catch (...) {
21274       return XapianTclHandleError(interp);
21275     }
21276   }
21277   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN | 0 ));
21278   if (SWIG_IsNewObj(res2)) delete arg2;
21279   return TCL_OK;
21280 fail:
21281   if (SWIG_IsNewObj(res2)) delete arg2;
21282   return TCL_ERROR;
21283 }
21284 
21285 
21286 SWIGINTERN int
_wrap_QueryParser_add_rangeprocessor__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])21287 _wrap_QueryParser_add_rangeprocessor__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
21288   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
21289   Xapian::RangeProcessor *arg2 = (Xapian::RangeProcessor *) 0 ;
21290   std::string *arg3 = (std::string *) 0 ;
21291   void *argp1 = 0 ;
21292   int res1 = 0 ;
21293   void *argp2 = 0 ;
21294   int res2 = 0 ;
21295   void *argp3 = 0 ;
21296   int res3 = 0 ;
21297 
21298   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::QueryParser_add_rangeprocessor self range_proc grouping ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
21299   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
21300   if (!SWIG_IsOK(res1)) {
21301     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_add_rangeprocessor" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
21302   }
21303   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
21304   res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_Xapian__RangeProcessor, 0 |  0 );
21305   if (!SWIG_IsOK(res2)) {
21306     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_add_rangeprocessor" "', argument " "2"" of type '" "Xapian::RangeProcessor *""'");
21307   }
21308   arg2 = reinterpret_cast< Xapian::RangeProcessor * >(argp2);
21309   res3 = SWIG_ConvertPtr(objv[3], &argp3,SWIGTYPE_p_std__string, 0 |  0 );
21310   if (!SWIG_IsOK(res3)) {
21311     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QueryParser_add_rangeprocessor" "', argument " "3"" of type '" "std::string const *""'");
21312   }
21313   arg3 = reinterpret_cast< std::string * >(argp3);
21314   {
21315     try {
21316       (arg1)->add_rangeprocessor(arg2,(std::string const *)arg3);
21317     } catch (const Xapian::Error &e) {
21318       return XapianTclHandleError(interp, e);
21319     } catch (...) {
21320       return XapianTclHandleError(interp);
21321     }
21322   }
21323 
21324   return TCL_OK;
21325 fail:
21326   return TCL_ERROR;
21327 }
21328 
21329 
21330 SWIGINTERN int
_wrap_QueryParser_add_rangeprocessor__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])21331 _wrap_QueryParser_add_rangeprocessor__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
21332   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
21333   Xapian::RangeProcessor *arg2 = (Xapian::RangeProcessor *) 0 ;
21334   void *argp1 = 0 ;
21335   int res1 = 0 ;
21336   void *argp2 = 0 ;
21337   int res2 = 0 ;
21338 
21339   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::QueryParser_add_rangeprocessor self range_proc ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
21340   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
21341   if (!SWIG_IsOK(res1)) {
21342     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_add_rangeprocessor" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
21343   }
21344   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
21345   res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_Xapian__RangeProcessor, 0 |  0 );
21346   if (!SWIG_IsOK(res2)) {
21347     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_add_rangeprocessor" "', argument " "2"" of type '" "Xapian::RangeProcessor *""'");
21348   }
21349   arg2 = reinterpret_cast< Xapian::RangeProcessor * >(argp2);
21350   {
21351     try {
21352       (arg1)->add_rangeprocessor(arg2);
21353     } catch (const Xapian::Error &e) {
21354       return XapianTclHandleError(interp, e);
21355     } catch (...) {
21356       return XapianTclHandleError(interp);
21357     }
21358   }
21359 
21360   return TCL_OK;
21361 fail:
21362   return TCL_ERROR;
21363 }
21364 
21365 
21366 SWIGINTERN int
_wrap_QueryParser_add_rangeprocessor(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])21367 _wrap_QueryParser_add_rangeprocessor(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
21368   Tcl_Obj *CONST *argv = objv+1;
21369   int argc = objc-1;
21370   if (argc == 2) {
21371     int _v;
21372     void *vptr = 0;
21373     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__QueryParser, 0);
21374     _v = SWIG_CheckState(res);
21375     if (_v) {
21376       void *vptr = 0;
21377       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Xapian__RangeProcessor, 0);
21378       _v = SWIG_CheckState(res);
21379       if (_v) {
21380         return _wrap_QueryParser_add_rangeprocessor__SWIG_1(clientData, interp, objc, argv - 1);
21381       }
21382     }
21383   }
21384   if (argc == 3) {
21385     int _v;
21386     void *vptr = 0;
21387     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__QueryParser, 0);
21388     _v = SWIG_CheckState(res);
21389     if (_v) {
21390       void *vptr = 0;
21391       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Xapian__RangeProcessor, 0);
21392       _v = SWIG_CheckState(res);
21393       if (_v) {
21394         int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[2], (std::string**)(0));
21395         _v = SWIG_CheckState(res);
21396         if (_v) {
21397           return _wrap_QueryParser_add_rangeprocessor__SWIG_0(clientData, interp, objc, argv - 1);
21398         }
21399       }
21400     }
21401   }
21402 
21403   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'QueryParser_add_rangeprocessor'.\n"
21404     "  Possible C/C++ prototypes are:\n"
21405     "    Xapian::QueryParser::add_rangeprocessor(Xapian::RangeProcessor *,std::string const *)\n"
21406     "    Xapian::QueryParser::add_rangeprocessor(Xapian::RangeProcessor *)\n", TCL_STATIC);
21407   return TCL_ERROR;
21408 }
21409 
21410 
21411 SWIGINTERN int
_wrap_QueryParser_add_valuerangeprocessor(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])21412 _wrap_QueryParser_add_valuerangeprocessor(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
21413   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
21414   Xapian::ValueRangeProcessor *arg2 = (Xapian::ValueRangeProcessor *) 0 ;
21415   void *argp1 = 0 ;
21416   int res1 = 0 ;
21417   void *argp2 = 0 ;
21418   int res2 = 0 ;
21419 
21420   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::QueryParser_add_valuerangeprocessor self vrproc ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
21421   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
21422   if (!SWIG_IsOK(res1)) {
21423     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_add_valuerangeprocessor" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
21424   }
21425   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
21426   res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_Xapian__ValueRangeProcessor, 0 |  0 );
21427   if (!SWIG_IsOK(res2)) {
21428     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_add_valuerangeprocessor" "', argument " "2"" of type '" "Xapian::ValueRangeProcessor *""'");
21429   }
21430   arg2 = reinterpret_cast< Xapian::ValueRangeProcessor * >(argp2);
21431   {
21432     try {
21433       (arg1)->add_valuerangeprocessor(arg2);
21434     } catch (const Xapian::Error &e) {
21435       return XapianTclHandleError(interp, e);
21436     } catch (...) {
21437       return XapianTclHandleError(interp);
21438     }
21439   }
21440 
21441   return TCL_OK;
21442 fail:
21443   return TCL_ERROR;
21444 }
21445 
21446 
21447 SWIGINTERN int
_wrap_QueryParser_get_corrected_query_string(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])21448 _wrap_QueryParser_get_corrected_query_string(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
21449   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
21450   void *argp1 = 0 ;
21451   int res1 = 0 ;
21452   std::string result;
21453 
21454   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::QueryParser_get_corrected_query_string self ",(void *)0) == TCL_ERROR) SWIG_fail;
21455   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
21456   if (!SWIG_IsOK(res1)) {
21457     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_get_corrected_query_string" "', argument " "1"" of type '" "Xapian::QueryParser const *""'");
21458   }
21459   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
21460   {
21461     try {
21462       result = ((Xapian::QueryParser const *)arg1)->get_corrected_query_string();
21463     } catch (const Xapian::Error &e) {
21464       return XapianTclHandleError(interp, e);
21465     } catch (...) {
21466       return XapianTclHandleError(interp);
21467     }
21468   }
21469   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
21470   return TCL_OK;
21471 fail:
21472   return TCL_ERROR;
21473 }
21474 
21475 
21476 SWIGINTERN int
_wrap_QueryParser_get_description(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])21477 _wrap_QueryParser_get_description(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
21478   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
21479   void *argp1 = 0 ;
21480   int res1 = 0 ;
21481   std::string result;
21482 
21483   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::QueryParser_get_description self ",(void *)0) == TCL_ERROR) SWIG_fail;
21484   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
21485   if (!SWIG_IsOK(res1)) {
21486     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_get_description" "', argument " "1"" of type '" "Xapian::QueryParser const *""'");
21487   }
21488   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
21489   {
21490     try {
21491       result = ((Xapian::QueryParser const *)arg1)->get_description();
21492     } catch (const Xapian::Error &e) {
21493       return XapianTclHandleError(interp, e);
21494     } catch (...) {
21495       return XapianTclHandleError(interp);
21496     }
21497   }
21498   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
21499   return TCL_OK;
21500 fail:
21501   return TCL_ERROR;
21502 }
21503 
21504 
swig_delete_QueryParser(void * obj)21505 SWIGINTERN void swig_delete_QueryParser(void *obj) {
21506 Xapian::QueryParser *arg1 = (Xapian::QueryParser *) obj;
21507 delete arg1;
21508 }
21509 static swig_method swig_Xapian_QueryParser_methods[] = {
21510     {"set_stemmer", _wrap_QueryParser_set_stemmer},
21511     {"set_stemming_strategy", _wrap_QueryParser_set_stemming_strategy},
21512     {"set_stopper", _wrap_QueryParser_set_stopper},
21513     {"set_default_op", _wrap_QueryParser_set_default_op},
21514     {"get_default_op", _wrap_QueryParser_get_default_op},
21515     {"set_database", _wrap_QueryParser_set_database},
21516     {"set_max_expansion", _wrap_QueryParser_set_max_expansion},
21517     {"set_max_wildcard_expansion", _wrap_QueryParser_set_max_wildcard_expansion},
21518     {"parse_query", _wrap_QueryParser_parse_query},
21519     {"add_prefix", _wrap_QueryParser_add_prefix},
21520     {"add_boolean_prefix", _wrap_QueryParser_add_boolean_prefix},
21521     {"stoplist_begin", _wrap_QueryParser_stoplist_begin},
21522     {"stoplist_end", _wrap_QueryParser_stoplist_end},
21523     {"unstem_begin", _wrap_QueryParser_unstem_begin},
21524     {"unstem_end", _wrap_QueryParser_unstem_end},
21525     {"add_rangeprocessor", _wrap_QueryParser_add_rangeprocessor},
21526     {"add_valuerangeprocessor", _wrap_QueryParser_add_valuerangeprocessor},
21527     {"get_corrected_query_string", _wrap_QueryParser_get_corrected_query_string},
21528     {"get_description", _wrap_QueryParser_get_description},
21529     {0,0}
21530 };
21531 static swig_attribute swig_Xapian_QueryParser_attributes[] = {
21532     {0,0,0}
21533 };
21534 static swig_class *swig_Xapian_QueryParser_bases[] = {0};
21535 static const char * swig_Xapian_QueryParser_base_names[] = {0};
21536 static swig_class _wrap_class_Xapian_QueryParser = { "QueryParser", &SWIGTYPE_p_Xapian__QueryParser,_wrap_new_QueryParser, swig_delete_QueryParser, swig_Xapian_QueryParser_methods, swig_Xapian_QueryParser_attributes, swig_Xapian_QueryParser_bases,swig_Xapian_QueryParser_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
21537 SWIGINTERN int
_wrap_sortable_serialise(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])21538 _wrap_sortable_serialise(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
21539   double arg1 ;
21540   double val1 ;
21541   int ecode1 = 0 ;
21542   std::string result;
21543 
21544   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::sortable_serialise value ",(void *)0) == TCL_ERROR) SWIG_fail;
21545   ecode1 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
21546   if (!SWIG_IsOK(ecode1)) {
21547     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "sortable_serialise" "', argument " "1"" of type '" "double""'");
21548   }
21549   arg1 = static_cast< double >(val1);
21550   {
21551     try {
21552       result = Xapian::sortable_serialise(arg1);
21553     } catch (const Xapian::Error &e) {
21554       return XapianTclHandleError(interp, e);
21555     } catch (...) {
21556       return XapianTclHandleError(interp);
21557     }
21558   }
21559   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
21560   return TCL_OK;
21561 fail:
21562   return TCL_ERROR;
21563 }
21564 
21565 
21566 SWIGINTERN int
_wrap_sortable_unserialise(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])21567 _wrap_sortable_unserialise(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
21568   std::string *arg1 = 0 ;
21569   int res1 = SWIG_OLDOBJ ;
21570   double result;
21571 
21572   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::sortable_unserialise serialised ",(void *)0) == TCL_ERROR) SWIG_fail;
21573   {
21574     std::string *ptr = (std::string *)0;
21575     res1 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[1], &ptr);
21576     if (!SWIG_IsOK(res1)) {
21577       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sortable_unserialise" "', argument " "1"" of type '" "std::string const &""'");
21578     }
21579     if (!ptr) {
21580       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "sortable_unserialise" "', argument " "1"" of type '" "std::string const &""'");
21581     }
21582     arg1 = ptr;
21583   }
21584   {
21585     try {
21586       result = (double)Xapian::sortable_unserialise((std::string const &)*arg1);
21587     } catch (const Xapian::Error &e) {
21588       return XapianTclHandleError(interp, e);
21589     } catch (...) {
21590       return XapianTclHandleError(interp);
21591     }
21592   }
21593   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
21594   if (SWIG_IsNewObj(res1)) delete arg1;
21595   return TCL_OK;
21596 fail:
21597   if (SWIG_IsNewObj(res1)) delete arg1;
21598   return TCL_ERROR;
21599 }
21600 
21601 
21602 SWIGINTERN int
_wrap_new_ValueSetMatchDecider(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])21603 _wrap_new_ValueSetMatchDecider(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
21604   Xapian::valueno arg1 ;
21605   bool arg2 ;
21606   unsigned int val1 ;
21607   int ecode1 = 0 ;
21608   bool val2 ;
21609   int ecode2 = 0 ;
21610   Xapian::ValueSetMatchDecider *result = 0 ;
21611 
21612   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::new_ValueSetMatchDecider slot inclusive_ ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
21613   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
21614   if (!SWIG_IsOK(ecode1)) {
21615     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ValueSetMatchDecider" "', argument " "1"" of type '" "Xapian::valueno""'");
21616   }
21617   arg1 = static_cast< Xapian::valueno >(val1);
21618   ecode2 = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
21619   if (!SWIG_IsOK(ecode2)) {
21620     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ValueSetMatchDecider" "', argument " "2"" of type '" "bool""'");
21621   }
21622   arg2 = static_cast< bool >(val2);
21623   {
21624     try {
21625       result = (Xapian::ValueSetMatchDecider *)new Xapian::ValueSetMatchDecider(arg1,arg2);
21626     } catch (const Xapian::Error &e) {
21627       return XapianTclHandleError(interp, e);
21628     } catch (...) {
21629       return XapianTclHandleError(interp);
21630     }
21631   }
21632   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ValueSetMatchDecider,0));
21633   return TCL_OK;
21634 fail:
21635   return TCL_ERROR;
21636 }
21637 
21638 
21639 SWIGINTERN int
_wrap_ValueSetMatchDecider_add_value(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])21640 _wrap_ValueSetMatchDecider_add_value(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
21641   Xapian::ValueSetMatchDecider *arg1 = (Xapian::ValueSetMatchDecider *) 0 ;
21642   std::string *arg2 = 0 ;
21643   void *argp1 = 0 ;
21644   int res1 = 0 ;
21645   int res2 = SWIG_OLDOBJ ;
21646 
21647   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::ValueSetMatchDecider_add_value self value ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
21648   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValueSetMatchDecider, 0 |  0 );
21649   if (!SWIG_IsOK(res1)) {
21650     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueSetMatchDecider_add_value" "', argument " "1"" of type '" "Xapian::ValueSetMatchDecider *""'");
21651   }
21652   arg1 = reinterpret_cast< Xapian::ValueSetMatchDecider * >(argp1);
21653   {
21654     std::string *ptr = (std::string *)0;
21655     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
21656     if (!SWIG_IsOK(res2)) {
21657       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ValueSetMatchDecider_add_value" "', argument " "2"" of type '" "std::string const &""'");
21658     }
21659     if (!ptr) {
21660       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ValueSetMatchDecider_add_value" "', argument " "2"" of type '" "std::string const &""'");
21661     }
21662     arg2 = ptr;
21663   }
21664   {
21665     try {
21666       (arg1)->add_value((std::string const &)*arg2);
21667     } catch (const Xapian::Error &e) {
21668       return XapianTclHandleError(interp, e);
21669     } catch (...) {
21670       return XapianTclHandleError(interp);
21671     }
21672   }
21673 
21674   if (SWIG_IsNewObj(res2)) delete arg2;
21675   return TCL_OK;
21676 fail:
21677   if (SWIG_IsNewObj(res2)) delete arg2;
21678   return TCL_ERROR;
21679 }
21680 
21681 
21682 SWIGINTERN int
_wrap_ValueSetMatchDecider_remove_value(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])21683 _wrap_ValueSetMatchDecider_remove_value(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
21684   Xapian::ValueSetMatchDecider *arg1 = (Xapian::ValueSetMatchDecider *) 0 ;
21685   std::string *arg2 = 0 ;
21686   void *argp1 = 0 ;
21687   int res1 = 0 ;
21688   int res2 = SWIG_OLDOBJ ;
21689 
21690   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::ValueSetMatchDecider_remove_value self value ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
21691   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValueSetMatchDecider, 0 |  0 );
21692   if (!SWIG_IsOK(res1)) {
21693     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueSetMatchDecider_remove_value" "', argument " "1"" of type '" "Xapian::ValueSetMatchDecider *""'");
21694   }
21695   arg1 = reinterpret_cast< Xapian::ValueSetMatchDecider * >(argp1);
21696   {
21697     std::string *ptr = (std::string *)0;
21698     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
21699     if (!SWIG_IsOK(res2)) {
21700       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ValueSetMatchDecider_remove_value" "', argument " "2"" of type '" "std::string const &""'");
21701     }
21702     if (!ptr) {
21703       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ValueSetMatchDecider_remove_value" "', argument " "2"" of type '" "std::string const &""'");
21704     }
21705     arg2 = ptr;
21706   }
21707   {
21708     try {
21709       (arg1)->remove_value((std::string const &)*arg2);
21710     } catch (const Xapian::Error &e) {
21711       return XapianTclHandleError(interp, e);
21712     } catch (...) {
21713       return XapianTclHandleError(interp);
21714     }
21715   }
21716 
21717   if (SWIG_IsNewObj(res2)) delete arg2;
21718   return TCL_OK;
21719 fail:
21720   if (SWIG_IsNewObj(res2)) delete arg2;
21721   return TCL_ERROR;
21722 }
21723 
21724 
21725 SWIGINTERN int
_wrap_ValueSetMatchDecider_apply(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])21726 _wrap_ValueSetMatchDecider_apply(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
21727   Xapian::ValueSetMatchDecider *arg1 = (Xapian::ValueSetMatchDecider *) 0 ;
21728   Xapian::Document *arg2 = 0 ;
21729   void *argp1 = 0 ;
21730   int res1 = 0 ;
21731   void *argp2 ;
21732   int res2 = 0 ;
21733   bool result;
21734 
21735   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::ValueSetMatchDecider_apply self doc ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
21736   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValueSetMatchDecider, 0 |  0 );
21737   if (!SWIG_IsOK(res1)) {
21738     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueSetMatchDecider_apply" "', argument " "1"" of type '" "Xapian::ValueSetMatchDecider const *""'");
21739   }
21740   arg1 = reinterpret_cast< Xapian::ValueSetMatchDecider * >(argp1);
21741   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__Document,  0 );
21742   if (!SWIG_IsOK(res2)) {
21743     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ValueSetMatchDecider_apply" "', argument " "2"" of type '" "Xapian::Document const &""'");
21744   }
21745   if (!argp2) {
21746     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ValueSetMatchDecider_apply" "', argument " "2"" of type '" "Xapian::Document const &""'");
21747   }
21748   arg2 = reinterpret_cast< Xapian::Document * >(argp2);
21749   {
21750     try {
21751       result = (bool)((Xapian::ValueSetMatchDecider const *)arg1)->operator ()((Xapian::Document const &)*arg2);
21752     } catch (const Xapian::Error &e) {
21753       return XapianTclHandleError(interp, e);
21754     } catch (...) {
21755       return XapianTclHandleError(interp);
21756     }
21757   }
21758   Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
21759   return TCL_OK;
21760 fail:
21761   return TCL_ERROR;
21762 }
21763 
21764 
21765 SWIGINTERN int
_wrap_delete_ValueSetMatchDecider(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])21766 _wrap_delete_ValueSetMatchDecider(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
21767   Xapian::ValueSetMatchDecider *arg1 = (Xapian::ValueSetMatchDecider *) 0 ;
21768   void *argp1 = 0 ;
21769   int res1 = 0 ;
21770 
21771   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_ValueSetMatchDecider self ",(void *)0) == TCL_ERROR) SWIG_fail;
21772   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValueSetMatchDecider, SWIG_POINTER_DISOWN |  0 );
21773   if (!SWIG_IsOK(res1)) {
21774     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ValueSetMatchDecider" "', argument " "1"" of type '" "Xapian::ValueSetMatchDecider *""'");
21775   }
21776   arg1 = reinterpret_cast< Xapian::ValueSetMatchDecider * >(argp1);
21777   {
21778     try {
21779       delete arg1;
21780     } catch (const Xapian::Error &e) {
21781       return XapianTclHandleError(interp, e);
21782     } catch (...) {
21783       return XapianTclHandleError(interp);
21784     }
21785   }
21786 
21787   return TCL_OK;
21788 fail:
21789   return TCL_ERROR;
21790 }
21791 
21792 
swig_delete_ValueSetMatchDecider(void * obj)21793 SWIGINTERN void swig_delete_ValueSetMatchDecider(void *obj) {
21794 Xapian::ValueSetMatchDecider *arg1 = (Xapian::ValueSetMatchDecider *) obj;
21795 delete arg1;
21796 }
21797 static swig_method swig_Xapian_ValueSetMatchDecider_methods[] = {
21798     {"add_value", _wrap_ValueSetMatchDecider_add_value},
21799     {"remove_value", _wrap_ValueSetMatchDecider_remove_value},
21800     {"apply", _wrap_ValueSetMatchDecider_apply},
21801     {0,0}
21802 };
21803 static swig_attribute swig_Xapian_ValueSetMatchDecider_attributes[] = {
21804     {0,0,0}
21805 };
21806 static swig_class *swig_Xapian_ValueSetMatchDecider_bases[] = {0,0};
21807 static const char * swig_Xapian_ValueSetMatchDecider_base_names[] = {"Xapian::MatchDecider *",0};
21808 static swig_class _wrap_class_Xapian_ValueSetMatchDecider = { "ValueSetMatchDecider", &SWIGTYPE_p_Xapian__ValueSetMatchDecider,_wrap_new_ValueSetMatchDecider, swig_delete_ValueSetMatchDecider, swig_Xapian_ValueSetMatchDecider_methods, swig_Xapian_ValueSetMatchDecider_attributes, swig_Xapian_ValueSetMatchDecider_bases,swig_Xapian_ValueSetMatchDecider_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
21809 SWIGINTERN int
_wrap_delete_Weight(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])21810 _wrap_delete_Weight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
21811   Xapian::Weight *arg1 = (Xapian::Weight *) 0 ;
21812   void *argp1 = 0 ;
21813   int res1 = 0 ;
21814 
21815   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_Weight self ",(void *)0) == TCL_ERROR) SWIG_fail;
21816   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Weight, SWIG_POINTER_DISOWN |  0 );
21817   if (!SWIG_IsOK(res1)) {
21818     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Weight" "', argument " "1"" of type '" "Xapian::Weight *""'");
21819   }
21820   arg1 = reinterpret_cast< Xapian::Weight * >(argp1);
21821   {
21822     try {
21823       delete arg1;
21824     } catch (const Xapian::Error &e) {
21825       return XapianTclHandleError(interp, e);
21826     } catch (...) {
21827       return XapianTclHandleError(interp);
21828     }
21829   }
21830 
21831   return TCL_OK;
21832 fail:
21833   return TCL_ERROR;
21834 }
21835 
21836 
21837 SWIGINTERN int
_wrap_Weight_name(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])21838 _wrap_Weight_name(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
21839   Xapian::Weight *arg1 = (Xapian::Weight *) 0 ;
21840   void *argp1 = 0 ;
21841   int res1 = 0 ;
21842   std::string result;
21843 
21844   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Weight_name self ",(void *)0) == TCL_ERROR) SWIG_fail;
21845   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Weight, 0 |  0 );
21846   if (!SWIG_IsOK(res1)) {
21847     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Weight_name" "', argument " "1"" of type '" "Xapian::Weight const *""'");
21848   }
21849   arg1 = reinterpret_cast< Xapian::Weight * >(argp1);
21850   {
21851     try {
21852       result = ((Xapian::Weight const *)arg1)->name();
21853     } catch (const Xapian::Error &e) {
21854       return XapianTclHandleError(interp, e);
21855     } catch (...) {
21856       return XapianTclHandleError(interp);
21857     }
21858   }
21859   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
21860   return TCL_OK;
21861 fail:
21862   return TCL_ERROR;
21863 }
21864 
21865 
21866 SWIGINTERN int
_wrap_Weight_get_sumpart(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])21867 _wrap_Weight_get_sumpart(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
21868   Xapian::Weight *arg1 = (Xapian::Weight *) 0 ;
21869   Xapian::termcount arg2 ;
21870   Xapian::termcount arg3 ;
21871   Xapian::termcount arg4 ;
21872   void *argp1 = 0 ;
21873   int res1 = 0 ;
21874   unsigned int val2 ;
21875   int ecode2 = 0 ;
21876   unsigned int val3 ;
21877   int ecode3 = 0 ;
21878   unsigned int val4 ;
21879   int ecode4 = 0 ;
21880   double result;
21881 
21882   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::Weight_get_sumpart self wdf doclen uniqterms ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
21883   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Weight, 0 |  0 );
21884   if (!SWIG_IsOK(res1)) {
21885     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Weight_get_sumpart" "', argument " "1"" of type '" "Xapian::Weight const *""'");
21886   }
21887   arg1 = reinterpret_cast< Xapian::Weight * >(argp1);
21888   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
21889   if (!SWIG_IsOK(ecode2)) {
21890     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Weight_get_sumpart" "', argument " "2"" of type '" "Xapian::termcount""'");
21891   }
21892   arg2 = static_cast< Xapian::termcount >(val2);
21893   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
21894   if (!SWIG_IsOK(ecode3)) {
21895     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Weight_get_sumpart" "', argument " "3"" of type '" "Xapian::termcount""'");
21896   }
21897   arg3 = static_cast< Xapian::termcount >(val3);
21898   ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
21899   if (!SWIG_IsOK(ecode4)) {
21900     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Weight_get_sumpart" "', argument " "4"" of type '" "Xapian::termcount""'");
21901   }
21902   arg4 = static_cast< Xapian::termcount >(val4);
21903   {
21904     try {
21905       result = (double)((Xapian::Weight const *)arg1)->get_sumpart(arg2,arg3,arg4);
21906     } catch (const Xapian::Error &e) {
21907       return XapianTclHandleError(interp, e);
21908     } catch (...) {
21909       return XapianTclHandleError(interp);
21910     }
21911   }
21912   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
21913   return TCL_OK;
21914 fail:
21915   return TCL_ERROR;
21916 }
21917 
21918 
21919 SWIGINTERN int
_wrap_Weight_get_maxpart(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])21920 _wrap_Weight_get_maxpart(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
21921   Xapian::Weight *arg1 = (Xapian::Weight *) 0 ;
21922   void *argp1 = 0 ;
21923   int res1 = 0 ;
21924   double result;
21925 
21926   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Weight_get_maxpart self ",(void *)0) == TCL_ERROR) SWIG_fail;
21927   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Weight, 0 |  0 );
21928   if (!SWIG_IsOK(res1)) {
21929     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Weight_get_maxpart" "', argument " "1"" of type '" "Xapian::Weight const *""'");
21930   }
21931   arg1 = reinterpret_cast< Xapian::Weight * >(argp1);
21932   {
21933     try {
21934       result = (double)((Xapian::Weight const *)arg1)->get_maxpart();
21935     } catch (const Xapian::Error &e) {
21936       return XapianTclHandleError(interp, e);
21937     } catch (...) {
21938       return XapianTclHandleError(interp);
21939     }
21940   }
21941   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
21942   return TCL_OK;
21943 fail:
21944   return TCL_ERROR;
21945 }
21946 
21947 
21948 SWIGINTERN int
_wrap_Weight_get_sumextra(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])21949 _wrap_Weight_get_sumextra(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
21950   Xapian::Weight *arg1 = (Xapian::Weight *) 0 ;
21951   Xapian::termcount arg2 ;
21952   Xapian::termcount arg3 ;
21953   void *argp1 = 0 ;
21954   int res1 = 0 ;
21955   unsigned int val2 ;
21956   int ecode2 = 0 ;
21957   unsigned int val3 ;
21958   int ecode3 = 0 ;
21959   double result;
21960 
21961   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::Weight_get_sumextra self doclen uniqterms ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
21962   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Weight, 0 |  0 );
21963   if (!SWIG_IsOK(res1)) {
21964     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Weight_get_sumextra" "', argument " "1"" of type '" "Xapian::Weight const *""'");
21965   }
21966   arg1 = reinterpret_cast< Xapian::Weight * >(argp1);
21967   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
21968   if (!SWIG_IsOK(ecode2)) {
21969     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Weight_get_sumextra" "', argument " "2"" of type '" "Xapian::termcount""'");
21970   }
21971   arg2 = static_cast< Xapian::termcount >(val2);
21972   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
21973   if (!SWIG_IsOK(ecode3)) {
21974     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Weight_get_sumextra" "', argument " "3"" of type '" "Xapian::termcount""'");
21975   }
21976   arg3 = static_cast< Xapian::termcount >(val3);
21977   {
21978     try {
21979       result = (double)((Xapian::Weight const *)arg1)->get_sumextra(arg2,arg3);
21980     } catch (const Xapian::Error &e) {
21981       return XapianTclHandleError(interp, e);
21982     } catch (...) {
21983       return XapianTclHandleError(interp);
21984     }
21985   }
21986   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
21987   return TCL_OK;
21988 fail:
21989   return TCL_ERROR;
21990 }
21991 
21992 
21993 SWIGINTERN int
_wrap_Weight_get_maxextra(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])21994 _wrap_Weight_get_maxextra(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
21995   Xapian::Weight *arg1 = (Xapian::Weight *) 0 ;
21996   void *argp1 = 0 ;
21997   int res1 = 0 ;
21998   double result;
21999 
22000   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Weight_get_maxextra self ",(void *)0) == TCL_ERROR) SWIG_fail;
22001   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Weight, 0 |  0 );
22002   if (!SWIG_IsOK(res1)) {
22003     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Weight_get_maxextra" "', argument " "1"" of type '" "Xapian::Weight const *""'");
22004   }
22005   arg1 = reinterpret_cast< Xapian::Weight * >(argp1);
22006   {
22007     try {
22008       result = (double)((Xapian::Weight const *)arg1)->get_maxextra();
22009     } catch (const Xapian::Error &e) {
22010       return XapianTclHandleError(interp, e);
22011     } catch (...) {
22012       return XapianTclHandleError(interp);
22013     }
22014   }
22015   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
22016   return TCL_OK;
22017 fail:
22018   return TCL_ERROR;
22019 }
22020 
22021 
swig_delete_Weight(void * obj)22022 SWIGINTERN void swig_delete_Weight(void *obj) {
22023 Xapian::Weight *arg1 = (Xapian::Weight *) obj;
22024 delete arg1;
22025 }
22026 static swig_method swig_Xapian_Weight_methods[] = {
22027     {"name", _wrap_Weight_name},
22028     {"get_sumpart", _wrap_Weight_get_sumpart},
22029     {"get_maxpart", _wrap_Weight_get_maxpart},
22030     {"get_sumextra", _wrap_Weight_get_sumextra},
22031     {"get_maxextra", _wrap_Weight_get_maxextra},
22032     {0,0}
22033 };
22034 static swig_attribute swig_Xapian_Weight_attributes[] = {
22035     {0,0,0}
22036 };
22037 static swig_class *swig_Xapian_Weight_bases[] = {0};
22038 static const char * swig_Xapian_Weight_base_names[] = {0};
22039 static swig_class _wrap_class_Xapian_Weight = { "Weight", &SWIGTYPE_p_Xapian__Weight,0, swig_delete_Weight, swig_Xapian_Weight_methods, swig_Xapian_Weight_attributes, swig_Xapian_Weight_bases,swig_Xapian_Weight_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
22040 SWIGINTERN int
_wrap_new_BoolWeight(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])22041 _wrap_new_BoolWeight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
22042   Xapian::BoolWeight *result = 0 ;
22043 
22044   if (SWIG_GetArgs(interp, objc, objv,":xapian::new_BoolWeight ") == TCL_ERROR) SWIG_fail;
22045   {
22046     try {
22047       result = (Xapian::BoolWeight *)new Xapian::BoolWeight();
22048     } catch (const Xapian::Error &e) {
22049       return XapianTclHandleError(interp, e);
22050     } catch (...) {
22051       return XapianTclHandleError(interp);
22052     }
22053   }
22054   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__BoolWeight,0));
22055   return TCL_OK;
22056 fail:
22057   return TCL_ERROR;
22058 }
22059 
22060 
22061 SWIGINTERN int
_wrap_BoolWeight_name(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])22062 _wrap_BoolWeight_name(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
22063   Xapian::BoolWeight *arg1 = (Xapian::BoolWeight *) 0 ;
22064   void *argp1 = 0 ;
22065   int res1 = 0 ;
22066   std::string result;
22067 
22068   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::BoolWeight_name self ",(void *)0) == TCL_ERROR) SWIG_fail;
22069   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__BoolWeight, 0 |  0 );
22070   if (!SWIG_IsOK(res1)) {
22071     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoolWeight_name" "', argument " "1"" of type '" "Xapian::BoolWeight const *""'");
22072   }
22073   arg1 = reinterpret_cast< Xapian::BoolWeight * >(argp1);
22074   {
22075     try {
22076       result = ((Xapian::BoolWeight const *)arg1)->name();
22077     } catch (const Xapian::Error &e) {
22078       return XapianTclHandleError(interp, e);
22079     } catch (...) {
22080       return XapianTclHandleError(interp);
22081     }
22082   }
22083   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
22084   return TCL_OK;
22085 fail:
22086   return TCL_ERROR;
22087 }
22088 
22089 
22090 SWIGINTERN int
_wrap_BoolWeight_get_sumpart(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])22091 _wrap_BoolWeight_get_sumpart(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
22092   Xapian::BoolWeight *arg1 = (Xapian::BoolWeight *) 0 ;
22093   Xapian::termcount arg2 ;
22094   Xapian::termcount arg3 ;
22095   Xapian::termcount arg4 ;
22096   void *argp1 = 0 ;
22097   int res1 = 0 ;
22098   unsigned int val2 ;
22099   int ecode2 = 0 ;
22100   unsigned int val3 ;
22101   int ecode3 = 0 ;
22102   unsigned int val4 ;
22103   int ecode4 = 0 ;
22104   double result;
22105 
22106   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::BoolWeight_get_sumpart self wdf doclen uniqterms ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
22107   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__BoolWeight, 0 |  0 );
22108   if (!SWIG_IsOK(res1)) {
22109     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoolWeight_get_sumpart" "', argument " "1"" of type '" "Xapian::BoolWeight const *""'");
22110   }
22111   arg1 = reinterpret_cast< Xapian::BoolWeight * >(argp1);
22112   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
22113   if (!SWIG_IsOK(ecode2)) {
22114     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BoolWeight_get_sumpart" "', argument " "2"" of type '" "Xapian::termcount""'");
22115   }
22116   arg2 = static_cast< Xapian::termcount >(val2);
22117   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
22118   if (!SWIG_IsOK(ecode3)) {
22119     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BoolWeight_get_sumpart" "', argument " "3"" of type '" "Xapian::termcount""'");
22120   }
22121   arg3 = static_cast< Xapian::termcount >(val3);
22122   ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
22123   if (!SWIG_IsOK(ecode4)) {
22124     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BoolWeight_get_sumpart" "', argument " "4"" of type '" "Xapian::termcount""'");
22125   }
22126   arg4 = static_cast< Xapian::termcount >(val4);
22127   {
22128     try {
22129       result = (double)((Xapian::BoolWeight const *)arg1)->get_sumpart(arg2,arg3,arg4);
22130     } catch (const Xapian::Error &e) {
22131       return XapianTclHandleError(interp, e);
22132     } catch (...) {
22133       return XapianTclHandleError(interp);
22134     }
22135   }
22136   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
22137   return TCL_OK;
22138 fail:
22139   return TCL_ERROR;
22140 }
22141 
22142 
22143 SWIGINTERN int
_wrap_BoolWeight_get_maxpart(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])22144 _wrap_BoolWeight_get_maxpart(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
22145   Xapian::BoolWeight *arg1 = (Xapian::BoolWeight *) 0 ;
22146   void *argp1 = 0 ;
22147   int res1 = 0 ;
22148   double result;
22149 
22150   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::BoolWeight_get_maxpart self ",(void *)0) == TCL_ERROR) SWIG_fail;
22151   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__BoolWeight, 0 |  0 );
22152   if (!SWIG_IsOK(res1)) {
22153     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoolWeight_get_maxpart" "', argument " "1"" of type '" "Xapian::BoolWeight const *""'");
22154   }
22155   arg1 = reinterpret_cast< Xapian::BoolWeight * >(argp1);
22156   {
22157     try {
22158       result = (double)((Xapian::BoolWeight const *)arg1)->get_maxpart();
22159     } catch (const Xapian::Error &e) {
22160       return XapianTclHandleError(interp, e);
22161     } catch (...) {
22162       return XapianTclHandleError(interp);
22163     }
22164   }
22165   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
22166   return TCL_OK;
22167 fail:
22168   return TCL_ERROR;
22169 }
22170 
22171 
22172 SWIGINTERN int
_wrap_BoolWeight_get_sumextra(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])22173 _wrap_BoolWeight_get_sumextra(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
22174   Xapian::BoolWeight *arg1 = (Xapian::BoolWeight *) 0 ;
22175   Xapian::termcount arg2 ;
22176   Xapian::termcount arg3 ;
22177   void *argp1 = 0 ;
22178   int res1 = 0 ;
22179   unsigned int val2 ;
22180   int ecode2 = 0 ;
22181   unsigned int val3 ;
22182   int ecode3 = 0 ;
22183   double result;
22184 
22185   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::BoolWeight_get_sumextra self doclen uniqterms ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
22186   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__BoolWeight, 0 |  0 );
22187   if (!SWIG_IsOK(res1)) {
22188     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoolWeight_get_sumextra" "', argument " "1"" of type '" "Xapian::BoolWeight const *""'");
22189   }
22190   arg1 = reinterpret_cast< Xapian::BoolWeight * >(argp1);
22191   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
22192   if (!SWIG_IsOK(ecode2)) {
22193     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BoolWeight_get_sumextra" "', argument " "2"" of type '" "Xapian::termcount""'");
22194   }
22195   arg2 = static_cast< Xapian::termcount >(val2);
22196   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
22197   if (!SWIG_IsOK(ecode3)) {
22198     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BoolWeight_get_sumextra" "', argument " "3"" of type '" "Xapian::termcount""'");
22199   }
22200   arg3 = static_cast< Xapian::termcount >(val3);
22201   {
22202     try {
22203       result = (double)((Xapian::BoolWeight const *)arg1)->get_sumextra(arg2,arg3);
22204     } catch (const Xapian::Error &e) {
22205       return XapianTclHandleError(interp, e);
22206     } catch (...) {
22207       return XapianTclHandleError(interp);
22208     }
22209   }
22210   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
22211   return TCL_OK;
22212 fail:
22213   return TCL_ERROR;
22214 }
22215 
22216 
22217 SWIGINTERN int
_wrap_BoolWeight_get_maxextra(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])22218 _wrap_BoolWeight_get_maxextra(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
22219   Xapian::BoolWeight *arg1 = (Xapian::BoolWeight *) 0 ;
22220   void *argp1 = 0 ;
22221   int res1 = 0 ;
22222   double result;
22223 
22224   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::BoolWeight_get_maxextra self ",(void *)0) == TCL_ERROR) SWIG_fail;
22225   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__BoolWeight, 0 |  0 );
22226   if (!SWIG_IsOK(res1)) {
22227     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoolWeight_get_maxextra" "', argument " "1"" of type '" "Xapian::BoolWeight const *""'");
22228   }
22229   arg1 = reinterpret_cast< Xapian::BoolWeight * >(argp1);
22230   {
22231     try {
22232       result = (double)((Xapian::BoolWeight const *)arg1)->get_maxextra();
22233     } catch (const Xapian::Error &e) {
22234       return XapianTclHandleError(interp, e);
22235     } catch (...) {
22236       return XapianTclHandleError(interp);
22237     }
22238   }
22239   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
22240   return TCL_OK;
22241 fail:
22242   return TCL_ERROR;
22243 }
22244 
22245 
22246 SWIGINTERN int
_wrap_delete_BoolWeight(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])22247 _wrap_delete_BoolWeight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
22248   Xapian::BoolWeight *arg1 = (Xapian::BoolWeight *) 0 ;
22249   void *argp1 = 0 ;
22250   int res1 = 0 ;
22251 
22252   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_BoolWeight self ",(void *)0) == TCL_ERROR) SWIG_fail;
22253   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__BoolWeight, SWIG_POINTER_DISOWN |  0 );
22254   if (!SWIG_IsOK(res1)) {
22255     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BoolWeight" "', argument " "1"" of type '" "Xapian::BoolWeight *""'");
22256   }
22257   arg1 = reinterpret_cast< Xapian::BoolWeight * >(argp1);
22258   {
22259     try {
22260       delete arg1;
22261     } catch (const Xapian::Error &e) {
22262       return XapianTclHandleError(interp, e);
22263     } catch (...) {
22264       return XapianTclHandleError(interp);
22265     }
22266   }
22267 
22268   return TCL_OK;
22269 fail:
22270   return TCL_ERROR;
22271 }
22272 
22273 
swig_delete_BoolWeight(void * obj)22274 SWIGINTERN void swig_delete_BoolWeight(void *obj) {
22275 Xapian::BoolWeight *arg1 = (Xapian::BoolWeight *) obj;
22276 delete arg1;
22277 }
22278 static swig_method swig_Xapian_BoolWeight_methods[] = {
22279     {"name", _wrap_BoolWeight_name},
22280     {"get_sumpart", _wrap_BoolWeight_get_sumpart},
22281     {"get_maxpart", _wrap_BoolWeight_get_maxpart},
22282     {"get_sumextra", _wrap_BoolWeight_get_sumextra},
22283     {"get_maxextra", _wrap_BoolWeight_get_maxextra},
22284     {0,0}
22285 };
22286 static swig_attribute swig_Xapian_BoolWeight_attributes[] = {
22287     {0,0,0}
22288 };
22289 static swig_class *swig_Xapian_BoolWeight_bases[] = {0,0};
22290 static const char * swig_Xapian_BoolWeight_base_names[] = {"Xapian::Weight *",0};
22291 static swig_class _wrap_class_Xapian_BoolWeight = { "BoolWeight", &SWIGTYPE_p_Xapian__BoolWeight,_wrap_new_BoolWeight, swig_delete_BoolWeight, swig_Xapian_BoolWeight_methods, swig_Xapian_BoolWeight_attributes, swig_Xapian_BoolWeight_bases,swig_Xapian_BoolWeight_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
22292 SWIGINTERN int
_wrap_new_TfIdfWeight__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])22293 _wrap_new_TfIdfWeight__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
22294   std::string *arg1 = 0 ;
22295   int res1 = SWIG_OLDOBJ ;
22296   Xapian::TfIdfWeight *result = 0 ;
22297 
22298   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_TfIdfWeight normalizations ",(void *)0) == TCL_ERROR) SWIG_fail;
22299   {
22300     std::string *ptr = (std::string *)0;
22301     res1 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[1], &ptr);
22302     if (!SWIG_IsOK(res1)) {
22303       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TfIdfWeight" "', argument " "1"" of type '" "std::string const &""'");
22304     }
22305     if (!ptr) {
22306       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TfIdfWeight" "', argument " "1"" of type '" "std::string const &""'");
22307     }
22308     arg1 = ptr;
22309   }
22310   {
22311     try {
22312       result = (Xapian::TfIdfWeight *)new Xapian::TfIdfWeight((std::string const &)*arg1);
22313     } catch (const Xapian::Error &e) {
22314       return XapianTclHandleError(interp, e);
22315     } catch (...) {
22316       return XapianTclHandleError(interp);
22317     }
22318   }
22319   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__TfIdfWeight,0));
22320   if (SWIG_IsNewObj(res1)) delete arg1;
22321   return TCL_OK;
22322 fail:
22323   if (SWIG_IsNewObj(res1)) delete arg1;
22324   return TCL_ERROR;
22325 }
22326 
22327 
22328 SWIGINTERN int
_wrap_new_TfIdfWeight__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])22329 _wrap_new_TfIdfWeight__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
22330   Xapian::TfIdfWeight *result = 0 ;
22331 
22332   if (SWIG_GetArgs(interp, objc, objv,":xapian::new_TfIdfWeight ") == TCL_ERROR) SWIG_fail;
22333   {
22334     try {
22335       result = (Xapian::TfIdfWeight *)new Xapian::TfIdfWeight();
22336     } catch (const Xapian::Error &e) {
22337       return XapianTclHandleError(interp, e);
22338     } catch (...) {
22339       return XapianTclHandleError(interp);
22340     }
22341   }
22342   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__TfIdfWeight,0));
22343   return TCL_OK;
22344 fail:
22345   return TCL_ERROR;
22346 }
22347 
22348 
22349 SWIGINTERN int
_wrap_new_TfIdfWeight(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])22350 _wrap_new_TfIdfWeight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
22351   Tcl_Obj *CONST *argv = objv+1;
22352   int argc = objc-1;
22353   if (argc == 0) {
22354     return _wrap_new_TfIdfWeight__SWIG_1(clientData, interp, objc, argv - 1);
22355   }
22356   if (argc == 1) {
22357     int _v;
22358     int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[0], (std::string**)(0));
22359     _v = SWIG_CheckState(res);
22360     if (_v) {
22361       return _wrap_new_TfIdfWeight__SWIG_0(clientData, interp, objc, argv - 1);
22362     }
22363   }
22364 
22365   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_TfIdfWeight'.\n"
22366     "  Possible C/C++ prototypes are:\n"
22367     "    Xapian::TfIdfWeight::TfIdfWeight(std::string const &)\n"
22368     "    Xapian::TfIdfWeight::TfIdfWeight()\n", TCL_STATIC);
22369   return TCL_ERROR;
22370 }
22371 
22372 
22373 SWIGINTERN int
_wrap_TfIdfWeight_name(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])22374 _wrap_TfIdfWeight_name(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
22375   Xapian::TfIdfWeight *arg1 = (Xapian::TfIdfWeight *) 0 ;
22376   void *argp1 = 0 ;
22377   int res1 = 0 ;
22378   std::string result;
22379 
22380   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::TfIdfWeight_name self ",(void *)0) == TCL_ERROR) SWIG_fail;
22381   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TfIdfWeight, 0 |  0 );
22382   if (!SWIG_IsOK(res1)) {
22383     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TfIdfWeight_name" "', argument " "1"" of type '" "Xapian::TfIdfWeight const *""'");
22384   }
22385   arg1 = reinterpret_cast< Xapian::TfIdfWeight * >(argp1);
22386   {
22387     try {
22388       result = ((Xapian::TfIdfWeight const *)arg1)->name();
22389     } catch (const Xapian::Error &e) {
22390       return XapianTclHandleError(interp, e);
22391     } catch (...) {
22392       return XapianTclHandleError(interp);
22393     }
22394   }
22395   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
22396   return TCL_OK;
22397 fail:
22398   return TCL_ERROR;
22399 }
22400 
22401 
22402 SWIGINTERN int
_wrap_TfIdfWeight_get_sumpart(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])22403 _wrap_TfIdfWeight_get_sumpart(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
22404   Xapian::TfIdfWeight *arg1 = (Xapian::TfIdfWeight *) 0 ;
22405   Xapian::termcount arg2 ;
22406   Xapian::termcount arg3 ;
22407   Xapian::termcount arg4 ;
22408   void *argp1 = 0 ;
22409   int res1 = 0 ;
22410   unsigned int val2 ;
22411   int ecode2 = 0 ;
22412   unsigned int val3 ;
22413   int ecode3 = 0 ;
22414   unsigned int val4 ;
22415   int ecode4 = 0 ;
22416   double result;
22417 
22418   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::TfIdfWeight_get_sumpart self wdf doclen uniqterm ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
22419   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TfIdfWeight, 0 |  0 );
22420   if (!SWIG_IsOK(res1)) {
22421     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TfIdfWeight_get_sumpart" "', argument " "1"" of type '" "Xapian::TfIdfWeight const *""'");
22422   }
22423   arg1 = reinterpret_cast< Xapian::TfIdfWeight * >(argp1);
22424   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
22425   if (!SWIG_IsOK(ecode2)) {
22426     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TfIdfWeight_get_sumpart" "', argument " "2"" of type '" "Xapian::termcount""'");
22427   }
22428   arg2 = static_cast< Xapian::termcount >(val2);
22429   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
22430   if (!SWIG_IsOK(ecode3)) {
22431     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TfIdfWeight_get_sumpart" "', argument " "3"" of type '" "Xapian::termcount""'");
22432   }
22433   arg3 = static_cast< Xapian::termcount >(val3);
22434   ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
22435   if (!SWIG_IsOK(ecode4)) {
22436     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TfIdfWeight_get_sumpart" "', argument " "4"" of type '" "Xapian::termcount""'");
22437   }
22438   arg4 = static_cast< Xapian::termcount >(val4);
22439   {
22440     try {
22441       result = (double)((Xapian::TfIdfWeight const *)arg1)->get_sumpart(arg2,arg3,arg4);
22442     } catch (const Xapian::Error &e) {
22443       return XapianTclHandleError(interp, e);
22444     } catch (...) {
22445       return XapianTclHandleError(interp);
22446     }
22447   }
22448   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
22449   return TCL_OK;
22450 fail:
22451   return TCL_ERROR;
22452 }
22453 
22454 
22455 SWIGINTERN int
_wrap_TfIdfWeight_get_maxpart(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])22456 _wrap_TfIdfWeight_get_maxpart(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
22457   Xapian::TfIdfWeight *arg1 = (Xapian::TfIdfWeight *) 0 ;
22458   void *argp1 = 0 ;
22459   int res1 = 0 ;
22460   double result;
22461 
22462   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::TfIdfWeight_get_maxpart self ",(void *)0) == TCL_ERROR) SWIG_fail;
22463   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TfIdfWeight, 0 |  0 );
22464   if (!SWIG_IsOK(res1)) {
22465     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TfIdfWeight_get_maxpart" "', argument " "1"" of type '" "Xapian::TfIdfWeight const *""'");
22466   }
22467   arg1 = reinterpret_cast< Xapian::TfIdfWeight * >(argp1);
22468   {
22469     try {
22470       result = (double)((Xapian::TfIdfWeight const *)arg1)->get_maxpart();
22471     } catch (const Xapian::Error &e) {
22472       return XapianTclHandleError(interp, e);
22473     } catch (...) {
22474       return XapianTclHandleError(interp);
22475     }
22476   }
22477   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
22478   return TCL_OK;
22479 fail:
22480   return TCL_ERROR;
22481 }
22482 
22483 
22484 SWIGINTERN int
_wrap_TfIdfWeight_get_sumextra(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])22485 _wrap_TfIdfWeight_get_sumextra(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
22486   Xapian::TfIdfWeight *arg1 = (Xapian::TfIdfWeight *) 0 ;
22487   Xapian::termcount arg2 ;
22488   Xapian::termcount arg3 ;
22489   void *argp1 = 0 ;
22490   int res1 = 0 ;
22491   unsigned int val2 ;
22492   int ecode2 = 0 ;
22493   unsigned int val3 ;
22494   int ecode3 = 0 ;
22495   double result;
22496 
22497   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::TfIdfWeight_get_sumextra self doclen uniqterms ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
22498   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TfIdfWeight, 0 |  0 );
22499   if (!SWIG_IsOK(res1)) {
22500     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TfIdfWeight_get_sumextra" "', argument " "1"" of type '" "Xapian::TfIdfWeight const *""'");
22501   }
22502   arg1 = reinterpret_cast< Xapian::TfIdfWeight * >(argp1);
22503   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
22504   if (!SWIG_IsOK(ecode2)) {
22505     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TfIdfWeight_get_sumextra" "', argument " "2"" of type '" "Xapian::termcount""'");
22506   }
22507   arg2 = static_cast< Xapian::termcount >(val2);
22508   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
22509   if (!SWIG_IsOK(ecode3)) {
22510     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TfIdfWeight_get_sumextra" "', argument " "3"" of type '" "Xapian::termcount""'");
22511   }
22512   arg3 = static_cast< Xapian::termcount >(val3);
22513   {
22514     try {
22515       result = (double)((Xapian::TfIdfWeight const *)arg1)->get_sumextra(arg2,arg3);
22516     } catch (const Xapian::Error &e) {
22517       return XapianTclHandleError(interp, e);
22518     } catch (...) {
22519       return XapianTclHandleError(interp);
22520     }
22521   }
22522   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
22523   return TCL_OK;
22524 fail:
22525   return TCL_ERROR;
22526 }
22527 
22528 
22529 SWIGINTERN int
_wrap_TfIdfWeight_get_maxextra(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])22530 _wrap_TfIdfWeight_get_maxextra(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
22531   Xapian::TfIdfWeight *arg1 = (Xapian::TfIdfWeight *) 0 ;
22532   void *argp1 = 0 ;
22533   int res1 = 0 ;
22534   double result;
22535 
22536   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::TfIdfWeight_get_maxextra self ",(void *)0) == TCL_ERROR) SWIG_fail;
22537   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TfIdfWeight, 0 |  0 );
22538   if (!SWIG_IsOK(res1)) {
22539     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TfIdfWeight_get_maxextra" "', argument " "1"" of type '" "Xapian::TfIdfWeight const *""'");
22540   }
22541   arg1 = reinterpret_cast< Xapian::TfIdfWeight * >(argp1);
22542   {
22543     try {
22544       result = (double)((Xapian::TfIdfWeight const *)arg1)->get_maxextra();
22545     } catch (const Xapian::Error &e) {
22546       return XapianTclHandleError(interp, e);
22547     } catch (...) {
22548       return XapianTclHandleError(interp);
22549     }
22550   }
22551   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
22552   return TCL_OK;
22553 fail:
22554   return TCL_ERROR;
22555 }
22556 
22557 
22558 SWIGINTERN int
_wrap_delete_TfIdfWeight(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])22559 _wrap_delete_TfIdfWeight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
22560   Xapian::TfIdfWeight *arg1 = (Xapian::TfIdfWeight *) 0 ;
22561   void *argp1 = 0 ;
22562   int res1 = 0 ;
22563 
22564   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_TfIdfWeight self ",(void *)0) == TCL_ERROR) SWIG_fail;
22565   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TfIdfWeight, SWIG_POINTER_DISOWN |  0 );
22566   if (!SWIG_IsOK(res1)) {
22567     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TfIdfWeight" "', argument " "1"" of type '" "Xapian::TfIdfWeight *""'");
22568   }
22569   arg1 = reinterpret_cast< Xapian::TfIdfWeight * >(argp1);
22570   {
22571     try {
22572       delete arg1;
22573     } catch (const Xapian::Error &e) {
22574       return XapianTclHandleError(interp, e);
22575     } catch (...) {
22576       return XapianTclHandleError(interp);
22577     }
22578   }
22579 
22580   return TCL_OK;
22581 fail:
22582   return TCL_ERROR;
22583 }
22584 
22585 
swig_delete_TfIdfWeight(void * obj)22586 SWIGINTERN void swig_delete_TfIdfWeight(void *obj) {
22587 Xapian::TfIdfWeight *arg1 = (Xapian::TfIdfWeight *) obj;
22588 delete arg1;
22589 }
22590 static swig_method swig_Xapian_TfIdfWeight_methods[] = {
22591     {"name", _wrap_TfIdfWeight_name},
22592     {"get_sumpart", _wrap_TfIdfWeight_get_sumpart},
22593     {"get_maxpart", _wrap_TfIdfWeight_get_maxpart},
22594     {"get_sumextra", _wrap_TfIdfWeight_get_sumextra},
22595     {"get_maxextra", _wrap_TfIdfWeight_get_maxextra},
22596     {0,0}
22597 };
22598 static swig_attribute swig_Xapian_TfIdfWeight_attributes[] = {
22599     {0,0,0}
22600 };
22601 static swig_class *swig_Xapian_TfIdfWeight_bases[] = {0,0};
22602 static const char * swig_Xapian_TfIdfWeight_base_names[] = {"Xapian::Weight *",0};
22603 static swig_class _wrap_class_Xapian_TfIdfWeight = { "TfIdfWeight", &SWIGTYPE_p_Xapian__TfIdfWeight,_wrap_new_TfIdfWeight, swig_delete_TfIdfWeight, swig_Xapian_TfIdfWeight_methods, swig_Xapian_TfIdfWeight_attributes, swig_Xapian_TfIdfWeight_bases,swig_Xapian_TfIdfWeight_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
22604 SWIGINTERN int
_wrap_new_BM25Weight__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])22605 _wrap_new_BM25Weight__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
22606   double arg1 ;
22607   double arg2 ;
22608   double arg3 ;
22609   double arg4 ;
22610   double arg5 ;
22611   double val1 ;
22612   int ecode1 = 0 ;
22613   double val2 ;
22614   int ecode2 = 0 ;
22615   double val3 ;
22616   int ecode3 = 0 ;
22617   double val4 ;
22618   int ecode4 = 0 ;
22619   double val5 ;
22620   int ecode5 = 0 ;
22621   Xapian::BM25Weight *result = 0 ;
22622 
22623   if (SWIG_GetArgs(interp, objc, objv,"ooooo:xapian::new_BM25Weight k1 k2 k3 b min_normlen ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
22624   ecode1 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
22625   if (!SWIG_IsOK(ecode1)) {
22626     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BM25Weight" "', argument " "1"" of type '" "double""'");
22627   }
22628   arg1 = static_cast< double >(val1);
22629   ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
22630   if (!SWIG_IsOK(ecode2)) {
22631     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BM25Weight" "', argument " "2"" of type '" "double""'");
22632   }
22633   arg2 = static_cast< double >(val2);
22634   ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
22635   if (!SWIG_IsOK(ecode3)) {
22636     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BM25Weight" "', argument " "3"" of type '" "double""'");
22637   }
22638   arg3 = static_cast< double >(val3);
22639   ecode4 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
22640   if (!SWIG_IsOK(ecode4)) {
22641     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BM25Weight" "', argument " "4"" of type '" "double""'");
22642   }
22643   arg4 = static_cast< double >(val4);
22644   ecode5 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
22645   if (!SWIG_IsOK(ecode5)) {
22646     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_BM25Weight" "', argument " "5"" of type '" "double""'");
22647   }
22648   arg5 = static_cast< double >(val5);
22649   {
22650     try {
22651       result = (Xapian::BM25Weight *)new Xapian::BM25Weight(arg1,arg2,arg3,arg4,arg5);
22652     } catch (const Xapian::Error &e) {
22653       return XapianTclHandleError(interp, e);
22654     } catch (...) {
22655       return XapianTclHandleError(interp);
22656     }
22657   }
22658   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__BM25Weight,0));
22659   return TCL_OK;
22660 fail:
22661   return TCL_ERROR;
22662 }
22663 
22664 
22665 SWIGINTERN int
_wrap_new_BM25Weight__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])22666 _wrap_new_BM25Weight__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
22667   Xapian::BM25Weight *result = 0 ;
22668 
22669   if (SWIG_GetArgs(interp, objc, objv,":xapian::new_BM25Weight ") == TCL_ERROR) SWIG_fail;
22670   {
22671     try {
22672       result = (Xapian::BM25Weight *)new Xapian::BM25Weight();
22673     } catch (const Xapian::Error &e) {
22674       return XapianTclHandleError(interp, e);
22675     } catch (...) {
22676       return XapianTclHandleError(interp);
22677     }
22678   }
22679   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__BM25Weight,0));
22680   return TCL_OK;
22681 fail:
22682   return TCL_ERROR;
22683 }
22684 
22685 
22686 SWIGINTERN int
_wrap_new_BM25Weight(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])22687 _wrap_new_BM25Weight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
22688   Tcl_Obj *CONST *argv = objv+1;
22689   int argc = objc-1;
22690   if (argc == 0) {
22691     return _wrap_new_BM25Weight__SWIG_1(clientData, interp, objc, argv - 1);
22692   }
22693   if (argc == 5) {
22694     int _v;
22695     {
22696       int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
22697       _v = SWIG_CheckState(res);
22698     }
22699     if (_v) {
22700       {
22701         int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
22702         _v = SWIG_CheckState(res);
22703       }
22704       if (_v) {
22705         {
22706           int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
22707           _v = SWIG_CheckState(res);
22708         }
22709         if (_v) {
22710           {
22711             int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
22712             _v = SWIG_CheckState(res);
22713           }
22714           if (_v) {
22715             {
22716               int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[4], NULL);
22717               _v = SWIG_CheckState(res);
22718             }
22719             if (_v) {
22720               return _wrap_new_BM25Weight__SWIG_0(clientData, interp, objc, argv - 1);
22721             }
22722           }
22723         }
22724       }
22725     }
22726   }
22727 
22728   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_BM25Weight'.\n"
22729     "  Possible C/C++ prototypes are:\n"
22730     "    Xapian::BM25Weight::BM25Weight(double,double,double,double,double)\n"
22731     "    Xapian::BM25Weight::BM25Weight()\n", TCL_STATIC);
22732   return TCL_ERROR;
22733 }
22734 
22735 
22736 SWIGINTERN int
_wrap_BM25Weight_name(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])22737 _wrap_BM25Weight_name(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
22738   Xapian::BM25Weight *arg1 = (Xapian::BM25Weight *) 0 ;
22739   void *argp1 = 0 ;
22740   int res1 = 0 ;
22741   std::string result;
22742 
22743   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::BM25Weight_name self ",(void *)0) == TCL_ERROR) SWIG_fail;
22744   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__BM25Weight, 0 |  0 );
22745   if (!SWIG_IsOK(res1)) {
22746     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BM25Weight_name" "', argument " "1"" of type '" "Xapian::BM25Weight const *""'");
22747   }
22748   arg1 = reinterpret_cast< Xapian::BM25Weight * >(argp1);
22749   {
22750     try {
22751       result = ((Xapian::BM25Weight const *)arg1)->name();
22752     } catch (const Xapian::Error &e) {
22753       return XapianTclHandleError(interp, e);
22754     } catch (...) {
22755       return XapianTclHandleError(interp);
22756     }
22757   }
22758   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
22759   return TCL_OK;
22760 fail:
22761   return TCL_ERROR;
22762 }
22763 
22764 
22765 SWIGINTERN int
_wrap_BM25Weight_get_sumpart(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])22766 _wrap_BM25Weight_get_sumpart(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
22767   Xapian::BM25Weight *arg1 = (Xapian::BM25Weight *) 0 ;
22768   Xapian::termcount arg2 ;
22769   Xapian::termcount arg3 ;
22770   Xapian::termcount arg4 ;
22771   void *argp1 = 0 ;
22772   int res1 = 0 ;
22773   unsigned int val2 ;
22774   int ecode2 = 0 ;
22775   unsigned int val3 ;
22776   int ecode3 = 0 ;
22777   unsigned int val4 ;
22778   int ecode4 = 0 ;
22779   double result;
22780 
22781   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::BM25Weight_get_sumpart self wdf doclen uniqterm ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
22782   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__BM25Weight, 0 |  0 );
22783   if (!SWIG_IsOK(res1)) {
22784     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BM25Weight_get_sumpart" "', argument " "1"" of type '" "Xapian::BM25Weight const *""'");
22785   }
22786   arg1 = reinterpret_cast< Xapian::BM25Weight * >(argp1);
22787   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
22788   if (!SWIG_IsOK(ecode2)) {
22789     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BM25Weight_get_sumpart" "', argument " "2"" of type '" "Xapian::termcount""'");
22790   }
22791   arg2 = static_cast< Xapian::termcount >(val2);
22792   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
22793   if (!SWIG_IsOK(ecode3)) {
22794     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BM25Weight_get_sumpart" "', argument " "3"" of type '" "Xapian::termcount""'");
22795   }
22796   arg3 = static_cast< Xapian::termcount >(val3);
22797   ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
22798   if (!SWIG_IsOK(ecode4)) {
22799     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BM25Weight_get_sumpart" "', argument " "4"" of type '" "Xapian::termcount""'");
22800   }
22801   arg4 = static_cast< Xapian::termcount >(val4);
22802   {
22803     try {
22804       result = (double)((Xapian::BM25Weight const *)arg1)->get_sumpart(arg2,arg3,arg4);
22805     } catch (const Xapian::Error &e) {
22806       return XapianTclHandleError(interp, e);
22807     } catch (...) {
22808       return XapianTclHandleError(interp);
22809     }
22810   }
22811   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
22812   return TCL_OK;
22813 fail:
22814   return TCL_ERROR;
22815 }
22816 
22817 
22818 SWIGINTERN int
_wrap_BM25Weight_get_maxpart(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])22819 _wrap_BM25Weight_get_maxpart(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
22820   Xapian::BM25Weight *arg1 = (Xapian::BM25Weight *) 0 ;
22821   void *argp1 = 0 ;
22822   int res1 = 0 ;
22823   double result;
22824 
22825   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::BM25Weight_get_maxpart self ",(void *)0) == TCL_ERROR) SWIG_fail;
22826   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__BM25Weight, 0 |  0 );
22827   if (!SWIG_IsOK(res1)) {
22828     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BM25Weight_get_maxpart" "', argument " "1"" of type '" "Xapian::BM25Weight const *""'");
22829   }
22830   arg1 = reinterpret_cast< Xapian::BM25Weight * >(argp1);
22831   {
22832     try {
22833       result = (double)((Xapian::BM25Weight const *)arg1)->get_maxpart();
22834     } catch (const Xapian::Error &e) {
22835       return XapianTclHandleError(interp, e);
22836     } catch (...) {
22837       return XapianTclHandleError(interp);
22838     }
22839   }
22840   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
22841   return TCL_OK;
22842 fail:
22843   return TCL_ERROR;
22844 }
22845 
22846 
22847 SWIGINTERN int
_wrap_BM25Weight_get_sumextra(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])22848 _wrap_BM25Weight_get_sumextra(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
22849   Xapian::BM25Weight *arg1 = (Xapian::BM25Weight *) 0 ;
22850   Xapian::termcount arg2 ;
22851   Xapian::termcount arg3 ;
22852   void *argp1 = 0 ;
22853   int res1 = 0 ;
22854   unsigned int val2 ;
22855   int ecode2 = 0 ;
22856   unsigned int val3 ;
22857   int ecode3 = 0 ;
22858   double result;
22859 
22860   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::BM25Weight_get_sumextra self doclen uniqterms ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
22861   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__BM25Weight, 0 |  0 );
22862   if (!SWIG_IsOK(res1)) {
22863     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BM25Weight_get_sumextra" "', argument " "1"" of type '" "Xapian::BM25Weight const *""'");
22864   }
22865   arg1 = reinterpret_cast< Xapian::BM25Weight * >(argp1);
22866   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
22867   if (!SWIG_IsOK(ecode2)) {
22868     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BM25Weight_get_sumextra" "', argument " "2"" of type '" "Xapian::termcount""'");
22869   }
22870   arg2 = static_cast< Xapian::termcount >(val2);
22871   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
22872   if (!SWIG_IsOK(ecode3)) {
22873     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BM25Weight_get_sumextra" "', argument " "3"" of type '" "Xapian::termcount""'");
22874   }
22875   arg3 = static_cast< Xapian::termcount >(val3);
22876   {
22877     try {
22878       result = (double)((Xapian::BM25Weight const *)arg1)->get_sumextra(arg2,arg3);
22879     } catch (const Xapian::Error &e) {
22880       return XapianTclHandleError(interp, e);
22881     } catch (...) {
22882       return XapianTclHandleError(interp);
22883     }
22884   }
22885   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
22886   return TCL_OK;
22887 fail:
22888   return TCL_ERROR;
22889 }
22890 
22891 
22892 SWIGINTERN int
_wrap_BM25Weight_get_maxextra(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])22893 _wrap_BM25Weight_get_maxextra(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
22894   Xapian::BM25Weight *arg1 = (Xapian::BM25Weight *) 0 ;
22895   void *argp1 = 0 ;
22896   int res1 = 0 ;
22897   double result;
22898 
22899   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::BM25Weight_get_maxextra self ",(void *)0) == TCL_ERROR) SWIG_fail;
22900   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__BM25Weight, 0 |  0 );
22901   if (!SWIG_IsOK(res1)) {
22902     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BM25Weight_get_maxextra" "', argument " "1"" of type '" "Xapian::BM25Weight const *""'");
22903   }
22904   arg1 = reinterpret_cast< Xapian::BM25Weight * >(argp1);
22905   {
22906     try {
22907       result = (double)((Xapian::BM25Weight const *)arg1)->get_maxextra();
22908     } catch (const Xapian::Error &e) {
22909       return XapianTclHandleError(interp, e);
22910     } catch (...) {
22911       return XapianTclHandleError(interp);
22912     }
22913   }
22914   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
22915   return TCL_OK;
22916 fail:
22917   return TCL_ERROR;
22918 }
22919 
22920 
22921 SWIGINTERN int
_wrap_delete_BM25Weight(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])22922 _wrap_delete_BM25Weight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
22923   Xapian::BM25Weight *arg1 = (Xapian::BM25Weight *) 0 ;
22924   void *argp1 = 0 ;
22925   int res1 = 0 ;
22926 
22927   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_BM25Weight self ",(void *)0) == TCL_ERROR) SWIG_fail;
22928   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__BM25Weight, SWIG_POINTER_DISOWN |  0 );
22929   if (!SWIG_IsOK(res1)) {
22930     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BM25Weight" "', argument " "1"" of type '" "Xapian::BM25Weight *""'");
22931   }
22932   arg1 = reinterpret_cast< Xapian::BM25Weight * >(argp1);
22933   {
22934     try {
22935       delete arg1;
22936     } catch (const Xapian::Error &e) {
22937       return XapianTclHandleError(interp, e);
22938     } catch (...) {
22939       return XapianTclHandleError(interp);
22940     }
22941   }
22942 
22943   return TCL_OK;
22944 fail:
22945   return TCL_ERROR;
22946 }
22947 
22948 
swig_delete_BM25Weight(void * obj)22949 SWIGINTERN void swig_delete_BM25Weight(void *obj) {
22950 Xapian::BM25Weight *arg1 = (Xapian::BM25Weight *) obj;
22951 delete arg1;
22952 }
22953 static swig_method swig_Xapian_BM25Weight_methods[] = {
22954     {"name", _wrap_BM25Weight_name},
22955     {"get_sumpart", _wrap_BM25Weight_get_sumpart},
22956     {"get_maxpart", _wrap_BM25Weight_get_maxpart},
22957     {"get_sumextra", _wrap_BM25Weight_get_sumextra},
22958     {"get_maxextra", _wrap_BM25Weight_get_maxextra},
22959     {0,0}
22960 };
22961 static swig_attribute swig_Xapian_BM25Weight_attributes[] = {
22962     {0,0,0}
22963 };
22964 static swig_class *swig_Xapian_BM25Weight_bases[] = {0,0};
22965 static const char * swig_Xapian_BM25Weight_base_names[] = {"Xapian::Weight *",0};
22966 static swig_class _wrap_class_Xapian_BM25Weight = { "BM25Weight", &SWIGTYPE_p_Xapian__BM25Weight,_wrap_new_BM25Weight, swig_delete_BM25Weight, swig_Xapian_BM25Weight_methods, swig_Xapian_BM25Weight_attributes, swig_Xapian_BM25Weight_bases,swig_Xapian_BM25Weight_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
22967 SWIGINTERN int
_wrap_new_BM25PlusWeight__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])22968 _wrap_new_BM25PlusWeight__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
22969   double arg1 ;
22970   double arg2 ;
22971   double arg3 ;
22972   double arg4 ;
22973   double arg5 ;
22974   double arg6 ;
22975   double val1 ;
22976   int ecode1 = 0 ;
22977   double val2 ;
22978   int ecode2 = 0 ;
22979   double val3 ;
22980   int ecode3 = 0 ;
22981   double val4 ;
22982   int ecode4 = 0 ;
22983   double val5 ;
22984   int ecode5 = 0 ;
22985   double val6 ;
22986   int ecode6 = 0 ;
22987   Xapian::BM25PlusWeight *result = 0 ;
22988 
22989   if (SWIG_GetArgs(interp, objc, objv,"oooooo:xapian::new_BM25PlusWeight k1 k2 k3 b min_normlen delta ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
22990   ecode1 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
22991   if (!SWIG_IsOK(ecode1)) {
22992     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BM25PlusWeight" "', argument " "1"" of type '" "double""'");
22993   }
22994   arg1 = static_cast< double >(val1);
22995   ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
22996   if (!SWIG_IsOK(ecode2)) {
22997     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BM25PlusWeight" "', argument " "2"" of type '" "double""'");
22998   }
22999   arg2 = static_cast< double >(val2);
23000   ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
23001   if (!SWIG_IsOK(ecode3)) {
23002     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BM25PlusWeight" "', argument " "3"" of type '" "double""'");
23003   }
23004   arg3 = static_cast< double >(val3);
23005   ecode4 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
23006   if (!SWIG_IsOK(ecode4)) {
23007     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BM25PlusWeight" "', argument " "4"" of type '" "double""'");
23008   }
23009   arg4 = static_cast< double >(val4);
23010   ecode5 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
23011   if (!SWIG_IsOK(ecode5)) {
23012     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_BM25PlusWeight" "', argument " "5"" of type '" "double""'");
23013   }
23014   arg5 = static_cast< double >(val5);
23015   ecode6 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[6], &val6);
23016   if (!SWIG_IsOK(ecode6)) {
23017     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BM25PlusWeight" "', argument " "6"" of type '" "double""'");
23018   }
23019   arg6 = static_cast< double >(val6);
23020   {
23021     try {
23022       result = (Xapian::BM25PlusWeight *)new Xapian::BM25PlusWeight(arg1,arg2,arg3,arg4,arg5,arg6);
23023     } catch (const Xapian::Error &e) {
23024       return XapianTclHandleError(interp, e);
23025     } catch (...) {
23026       return XapianTclHandleError(interp);
23027     }
23028   }
23029   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__BM25PlusWeight,0));
23030   return TCL_OK;
23031 fail:
23032   return TCL_ERROR;
23033 }
23034 
23035 
23036 SWIGINTERN int
_wrap_new_BM25PlusWeight__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])23037 _wrap_new_BM25PlusWeight__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
23038   Xapian::BM25PlusWeight *result = 0 ;
23039 
23040   if (SWIG_GetArgs(interp, objc, objv,":xapian::new_BM25PlusWeight ") == TCL_ERROR) SWIG_fail;
23041   {
23042     try {
23043       result = (Xapian::BM25PlusWeight *)new Xapian::BM25PlusWeight();
23044     } catch (const Xapian::Error &e) {
23045       return XapianTclHandleError(interp, e);
23046     } catch (...) {
23047       return XapianTclHandleError(interp);
23048     }
23049   }
23050   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__BM25PlusWeight,0));
23051   return TCL_OK;
23052 fail:
23053   return TCL_ERROR;
23054 }
23055 
23056 
23057 SWIGINTERN int
_wrap_new_BM25PlusWeight(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])23058 _wrap_new_BM25PlusWeight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
23059   Tcl_Obj *CONST *argv = objv+1;
23060   int argc = objc-1;
23061   if (argc == 0) {
23062     return _wrap_new_BM25PlusWeight__SWIG_1(clientData, interp, objc, argv - 1);
23063   }
23064   if (argc == 6) {
23065     int _v;
23066     {
23067       int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
23068       _v = SWIG_CheckState(res);
23069     }
23070     if (_v) {
23071       {
23072         int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
23073         _v = SWIG_CheckState(res);
23074       }
23075       if (_v) {
23076         {
23077           int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
23078           _v = SWIG_CheckState(res);
23079         }
23080         if (_v) {
23081           {
23082             int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
23083             _v = SWIG_CheckState(res);
23084           }
23085           if (_v) {
23086             {
23087               int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[4], NULL);
23088               _v = SWIG_CheckState(res);
23089             }
23090             if (_v) {
23091               {
23092                 int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[5], NULL);
23093                 _v = SWIG_CheckState(res);
23094               }
23095               if (_v) {
23096                 return _wrap_new_BM25PlusWeight__SWIG_0(clientData, interp, objc, argv - 1);
23097               }
23098             }
23099           }
23100         }
23101       }
23102     }
23103   }
23104 
23105   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_BM25PlusWeight'.\n"
23106     "  Possible C/C++ prototypes are:\n"
23107     "    Xapian::BM25PlusWeight::BM25PlusWeight(double,double,double,double,double,double)\n"
23108     "    Xapian::BM25PlusWeight::BM25PlusWeight()\n", TCL_STATIC);
23109   return TCL_ERROR;
23110 }
23111 
23112 
23113 SWIGINTERN int
_wrap_BM25PlusWeight_name(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])23114 _wrap_BM25PlusWeight_name(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
23115   Xapian::BM25PlusWeight *arg1 = (Xapian::BM25PlusWeight *) 0 ;
23116   void *argp1 = 0 ;
23117   int res1 = 0 ;
23118   std::string result;
23119 
23120   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::BM25PlusWeight_name self ",(void *)0) == TCL_ERROR) SWIG_fail;
23121   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__BM25PlusWeight, 0 |  0 );
23122   if (!SWIG_IsOK(res1)) {
23123     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BM25PlusWeight_name" "', argument " "1"" of type '" "Xapian::BM25PlusWeight const *""'");
23124   }
23125   arg1 = reinterpret_cast< Xapian::BM25PlusWeight * >(argp1);
23126   {
23127     try {
23128       result = ((Xapian::BM25PlusWeight const *)arg1)->name();
23129     } catch (const Xapian::Error &e) {
23130       return XapianTclHandleError(interp, e);
23131     } catch (...) {
23132       return XapianTclHandleError(interp);
23133     }
23134   }
23135   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
23136   return TCL_OK;
23137 fail:
23138   return TCL_ERROR;
23139 }
23140 
23141 
23142 SWIGINTERN int
_wrap_BM25PlusWeight_get_sumpart(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])23143 _wrap_BM25PlusWeight_get_sumpart(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
23144   Xapian::BM25PlusWeight *arg1 = (Xapian::BM25PlusWeight *) 0 ;
23145   Xapian::termcount arg2 ;
23146   Xapian::termcount arg3 ;
23147   Xapian::termcount arg4 ;
23148   void *argp1 = 0 ;
23149   int res1 = 0 ;
23150   unsigned int val2 ;
23151   int ecode2 = 0 ;
23152   unsigned int val3 ;
23153   int ecode3 = 0 ;
23154   unsigned int val4 ;
23155   int ecode4 = 0 ;
23156   double result;
23157 
23158   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::BM25PlusWeight_get_sumpart self wdf doclen uniqterm ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
23159   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__BM25PlusWeight, 0 |  0 );
23160   if (!SWIG_IsOK(res1)) {
23161     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BM25PlusWeight_get_sumpart" "', argument " "1"" of type '" "Xapian::BM25PlusWeight const *""'");
23162   }
23163   arg1 = reinterpret_cast< Xapian::BM25PlusWeight * >(argp1);
23164   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
23165   if (!SWIG_IsOK(ecode2)) {
23166     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BM25PlusWeight_get_sumpart" "', argument " "2"" of type '" "Xapian::termcount""'");
23167   }
23168   arg2 = static_cast< Xapian::termcount >(val2);
23169   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
23170   if (!SWIG_IsOK(ecode3)) {
23171     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BM25PlusWeight_get_sumpart" "', argument " "3"" of type '" "Xapian::termcount""'");
23172   }
23173   arg3 = static_cast< Xapian::termcount >(val3);
23174   ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
23175   if (!SWIG_IsOK(ecode4)) {
23176     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BM25PlusWeight_get_sumpart" "', argument " "4"" of type '" "Xapian::termcount""'");
23177   }
23178   arg4 = static_cast< Xapian::termcount >(val4);
23179   {
23180     try {
23181       result = (double)((Xapian::BM25PlusWeight const *)arg1)->get_sumpart(arg2,arg3,arg4);
23182     } catch (const Xapian::Error &e) {
23183       return XapianTclHandleError(interp, e);
23184     } catch (...) {
23185       return XapianTclHandleError(interp);
23186     }
23187   }
23188   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
23189   return TCL_OK;
23190 fail:
23191   return TCL_ERROR;
23192 }
23193 
23194 
23195 SWIGINTERN int
_wrap_BM25PlusWeight_get_maxpart(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])23196 _wrap_BM25PlusWeight_get_maxpart(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
23197   Xapian::BM25PlusWeight *arg1 = (Xapian::BM25PlusWeight *) 0 ;
23198   void *argp1 = 0 ;
23199   int res1 = 0 ;
23200   double result;
23201 
23202   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::BM25PlusWeight_get_maxpart self ",(void *)0) == TCL_ERROR) SWIG_fail;
23203   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__BM25PlusWeight, 0 |  0 );
23204   if (!SWIG_IsOK(res1)) {
23205     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BM25PlusWeight_get_maxpart" "', argument " "1"" of type '" "Xapian::BM25PlusWeight const *""'");
23206   }
23207   arg1 = reinterpret_cast< Xapian::BM25PlusWeight * >(argp1);
23208   {
23209     try {
23210       result = (double)((Xapian::BM25PlusWeight const *)arg1)->get_maxpart();
23211     } catch (const Xapian::Error &e) {
23212       return XapianTclHandleError(interp, e);
23213     } catch (...) {
23214       return XapianTclHandleError(interp);
23215     }
23216   }
23217   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
23218   return TCL_OK;
23219 fail:
23220   return TCL_ERROR;
23221 }
23222 
23223 
23224 SWIGINTERN int
_wrap_BM25PlusWeight_get_sumextra(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])23225 _wrap_BM25PlusWeight_get_sumextra(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
23226   Xapian::BM25PlusWeight *arg1 = (Xapian::BM25PlusWeight *) 0 ;
23227   Xapian::termcount arg2 ;
23228   Xapian::termcount arg3 ;
23229   void *argp1 = 0 ;
23230   int res1 = 0 ;
23231   unsigned int val2 ;
23232   int ecode2 = 0 ;
23233   unsigned int val3 ;
23234   int ecode3 = 0 ;
23235   double result;
23236 
23237   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::BM25PlusWeight_get_sumextra self doclen uniqterms ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
23238   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__BM25PlusWeight, 0 |  0 );
23239   if (!SWIG_IsOK(res1)) {
23240     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BM25PlusWeight_get_sumextra" "', argument " "1"" of type '" "Xapian::BM25PlusWeight const *""'");
23241   }
23242   arg1 = reinterpret_cast< Xapian::BM25PlusWeight * >(argp1);
23243   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
23244   if (!SWIG_IsOK(ecode2)) {
23245     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BM25PlusWeight_get_sumextra" "', argument " "2"" of type '" "Xapian::termcount""'");
23246   }
23247   arg2 = static_cast< Xapian::termcount >(val2);
23248   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
23249   if (!SWIG_IsOK(ecode3)) {
23250     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BM25PlusWeight_get_sumextra" "', argument " "3"" of type '" "Xapian::termcount""'");
23251   }
23252   arg3 = static_cast< Xapian::termcount >(val3);
23253   {
23254     try {
23255       result = (double)((Xapian::BM25PlusWeight const *)arg1)->get_sumextra(arg2,arg3);
23256     } catch (const Xapian::Error &e) {
23257       return XapianTclHandleError(interp, e);
23258     } catch (...) {
23259       return XapianTclHandleError(interp);
23260     }
23261   }
23262   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
23263   return TCL_OK;
23264 fail:
23265   return TCL_ERROR;
23266 }
23267 
23268 
23269 SWIGINTERN int
_wrap_BM25PlusWeight_get_maxextra(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])23270 _wrap_BM25PlusWeight_get_maxextra(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
23271   Xapian::BM25PlusWeight *arg1 = (Xapian::BM25PlusWeight *) 0 ;
23272   void *argp1 = 0 ;
23273   int res1 = 0 ;
23274   double result;
23275 
23276   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::BM25PlusWeight_get_maxextra self ",(void *)0) == TCL_ERROR) SWIG_fail;
23277   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__BM25PlusWeight, 0 |  0 );
23278   if (!SWIG_IsOK(res1)) {
23279     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BM25PlusWeight_get_maxextra" "', argument " "1"" of type '" "Xapian::BM25PlusWeight const *""'");
23280   }
23281   arg1 = reinterpret_cast< Xapian::BM25PlusWeight * >(argp1);
23282   {
23283     try {
23284       result = (double)((Xapian::BM25PlusWeight const *)arg1)->get_maxextra();
23285     } catch (const Xapian::Error &e) {
23286       return XapianTclHandleError(interp, e);
23287     } catch (...) {
23288       return XapianTclHandleError(interp);
23289     }
23290   }
23291   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
23292   return TCL_OK;
23293 fail:
23294   return TCL_ERROR;
23295 }
23296 
23297 
23298 SWIGINTERN int
_wrap_delete_BM25PlusWeight(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])23299 _wrap_delete_BM25PlusWeight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
23300   Xapian::BM25PlusWeight *arg1 = (Xapian::BM25PlusWeight *) 0 ;
23301   void *argp1 = 0 ;
23302   int res1 = 0 ;
23303 
23304   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_BM25PlusWeight self ",(void *)0) == TCL_ERROR) SWIG_fail;
23305   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__BM25PlusWeight, SWIG_POINTER_DISOWN |  0 );
23306   if (!SWIG_IsOK(res1)) {
23307     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BM25PlusWeight" "', argument " "1"" of type '" "Xapian::BM25PlusWeight *""'");
23308   }
23309   arg1 = reinterpret_cast< Xapian::BM25PlusWeight * >(argp1);
23310   {
23311     try {
23312       delete arg1;
23313     } catch (const Xapian::Error &e) {
23314       return XapianTclHandleError(interp, e);
23315     } catch (...) {
23316       return XapianTclHandleError(interp);
23317     }
23318   }
23319 
23320   return TCL_OK;
23321 fail:
23322   return TCL_ERROR;
23323 }
23324 
23325 
swig_delete_BM25PlusWeight(void * obj)23326 SWIGINTERN void swig_delete_BM25PlusWeight(void *obj) {
23327 Xapian::BM25PlusWeight *arg1 = (Xapian::BM25PlusWeight *) obj;
23328 delete arg1;
23329 }
23330 static swig_method swig_Xapian_BM25PlusWeight_methods[] = {
23331     {"name", _wrap_BM25PlusWeight_name},
23332     {"get_sumpart", _wrap_BM25PlusWeight_get_sumpart},
23333     {"get_maxpart", _wrap_BM25PlusWeight_get_maxpart},
23334     {"get_sumextra", _wrap_BM25PlusWeight_get_sumextra},
23335     {"get_maxextra", _wrap_BM25PlusWeight_get_maxextra},
23336     {0,0}
23337 };
23338 static swig_attribute swig_Xapian_BM25PlusWeight_attributes[] = {
23339     {0,0,0}
23340 };
23341 static swig_class *swig_Xapian_BM25PlusWeight_bases[] = {0,0};
23342 static const char * swig_Xapian_BM25PlusWeight_base_names[] = {"Xapian::Weight *",0};
23343 static swig_class _wrap_class_Xapian_BM25PlusWeight = { "BM25PlusWeight", &SWIGTYPE_p_Xapian__BM25PlusWeight,_wrap_new_BM25PlusWeight, swig_delete_BM25PlusWeight, swig_Xapian_BM25PlusWeight_methods, swig_Xapian_BM25PlusWeight_attributes, swig_Xapian_BM25PlusWeight_bases,swig_Xapian_BM25PlusWeight_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
23344 SWIGINTERN int
_wrap_new_TradWeight__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])23345 _wrap_new_TradWeight__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
23346   double arg1 ;
23347   double val1 ;
23348   int ecode1 = 0 ;
23349   Xapian::TradWeight *result = 0 ;
23350 
23351   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_TradWeight k ",(void *)0) == TCL_ERROR) SWIG_fail;
23352   ecode1 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
23353   if (!SWIG_IsOK(ecode1)) {
23354     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TradWeight" "', argument " "1"" of type '" "double""'");
23355   }
23356   arg1 = static_cast< double >(val1);
23357   {
23358     try {
23359       result = (Xapian::TradWeight *)new Xapian::TradWeight(arg1);
23360     } catch (const Xapian::Error &e) {
23361       return XapianTclHandleError(interp, e);
23362     } catch (...) {
23363       return XapianTclHandleError(interp);
23364     }
23365   }
23366   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__TradWeight,0));
23367   return TCL_OK;
23368 fail:
23369   return TCL_ERROR;
23370 }
23371 
23372 
23373 SWIGINTERN int
_wrap_new_TradWeight__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])23374 _wrap_new_TradWeight__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
23375   Xapian::TradWeight *result = 0 ;
23376 
23377   if (SWIG_GetArgs(interp, objc, objv,":xapian::new_TradWeight ") == TCL_ERROR) SWIG_fail;
23378   {
23379     try {
23380       result = (Xapian::TradWeight *)new Xapian::TradWeight();
23381     } catch (const Xapian::Error &e) {
23382       return XapianTclHandleError(interp, e);
23383     } catch (...) {
23384       return XapianTclHandleError(interp);
23385     }
23386   }
23387   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__TradWeight,0));
23388   return TCL_OK;
23389 fail:
23390   return TCL_ERROR;
23391 }
23392 
23393 
23394 SWIGINTERN int
_wrap_new_TradWeight(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])23395 _wrap_new_TradWeight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
23396   Tcl_Obj *CONST *argv = objv+1;
23397   int argc = objc-1;
23398   if (argc == 0) {
23399     return _wrap_new_TradWeight__SWIG_1(clientData, interp, objc, argv - 1);
23400   }
23401   if (argc == 1) {
23402     int _v;
23403     {
23404       int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
23405       _v = SWIG_CheckState(res);
23406     }
23407     if (_v) {
23408       return _wrap_new_TradWeight__SWIG_0(clientData, interp, objc, argv - 1);
23409     }
23410   }
23411 
23412   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_TradWeight'.\n"
23413     "  Possible C/C++ prototypes are:\n"
23414     "    Xapian::TradWeight::TradWeight(double)\n"
23415     "    Xapian::TradWeight::TradWeight()\n", TCL_STATIC);
23416   return TCL_ERROR;
23417 }
23418 
23419 
23420 SWIGINTERN int
_wrap_TradWeight_name(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])23421 _wrap_TradWeight_name(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
23422   Xapian::TradWeight *arg1 = (Xapian::TradWeight *) 0 ;
23423   void *argp1 = 0 ;
23424   int res1 = 0 ;
23425   std::string result;
23426 
23427   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::TradWeight_name self ",(void *)0) == TCL_ERROR) SWIG_fail;
23428   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TradWeight, 0 |  0 );
23429   if (!SWIG_IsOK(res1)) {
23430     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TradWeight_name" "', argument " "1"" of type '" "Xapian::TradWeight const *""'");
23431   }
23432   arg1 = reinterpret_cast< Xapian::TradWeight * >(argp1);
23433   {
23434     try {
23435       result = ((Xapian::TradWeight const *)arg1)->name();
23436     } catch (const Xapian::Error &e) {
23437       return XapianTclHandleError(interp, e);
23438     } catch (...) {
23439       return XapianTclHandleError(interp);
23440     }
23441   }
23442   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
23443   return TCL_OK;
23444 fail:
23445   return TCL_ERROR;
23446 }
23447 
23448 
23449 SWIGINTERN int
_wrap_TradWeight_get_sumpart(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])23450 _wrap_TradWeight_get_sumpart(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
23451   Xapian::TradWeight *arg1 = (Xapian::TradWeight *) 0 ;
23452   Xapian::termcount arg2 ;
23453   Xapian::termcount arg3 ;
23454   Xapian::termcount arg4 ;
23455   void *argp1 = 0 ;
23456   int res1 = 0 ;
23457   unsigned int val2 ;
23458   int ecode2 = 0 ;
23459   unsigned int val3 ;
23460   int ecode3 = 0 ;
23461   unsigned int val4 ;
23462   int ecode4 = 0 ;
23463   double result;
23464 
23465   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::TradWeight_get_sumpart self wdf doclen uniqueterms ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
23466   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TradWeight, 0 |  0 );
23467   if (!SWIG_IsOK(res1)) {
23468     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TradWeight_get_sumpart" "', argument " "1"" of type '" "Xapian::TradWeight const *""'");
23469   }
23470   arg1 = reinterpret_cast< Xapian::TradWeight * >(argp1);
23471   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
23472   if (!SWIG_IsOK(ecode2)) {
23473     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TradWeight_get_sumpart" "', argument " "2"" of type '" "Xapian::termcount""'");
23474   }
23475   arg2 = static_cast< Xapian::termcount >(val2);
23476   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
23477   if (!SWIG_IsOK(ecode3)) {
23478     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TradWeight_get_sumpart" "', argument " "3"" of type '" "Xapian::termcount""'");
23479   }
23480   arg3 = static_cast< Xapian::termcount >(val3);
23481   ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
23482   if (!SWIG_IsOK(ecode4)) {
23483     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TradWeight_get_sumpart" "', argument " "4"" of type '" "Xapian::termcount""'");
23484   }
23485   arg4 = static_cast< Xapian::termcount >(val4);
23486   {
23487     try {
23488       result = (double)((Xapian::TradWeight const *)arg1)->get_sumpart(arg2,arg3,arg4);
23489     } catch (const Xapian::Error &e) {
23490       return XapianTclHandleError(interp, e);
23491     } catch (...) {
23492       return XapianTclHandleError(interp);
23493     }
23494   }
23495   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
23496   return TCL_OK;
23497 fail:
23498   return TCL_ERROR;
23499 }
23500 
23501 
23502 SWIGINTERN int
_wrap_TradWeight_get_maxpart(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])23503 _wrap_TradWeight_get_maxpart(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
23504   Xapian::TradWeight *arg1 = (Xapian::TradWeight *) 0 ;
23505   void *argp1 = 0 ;
23506   int res1 = 0 ;
23507   double result;
23508 
23509   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::TradWeight_get_maxpart self ",(void *)0) == TCL_ERROR) SWIG_fail;
23510   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TradWeight, 0 |  0 );
23511   if (!SWIG_IsOK(res1)) {
23512     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TradWeight_get_maxpart" "', argument " "1"" of type '" "Xapian::TradWeight const *""'");
23513   }
23514   arg1 = reinterpret_cast< Xapian::TradWeight * >(argp1);
23515   {
23516     try {
23517       result = (double)((Xapian::TradWeight const *)arg1)->get_maxpart();
23518     } catch (const Xapian::Error &e) {
23519       return XapianTclHandleError(interp, e);
23520     } catch (...) {
23521       return XapianTclHandleError(interp);
23522     }
23523   }
23524   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
23525   return TCL_OK;
23526 fail:
23527   return TCL_ERROR;
23528 }
23529 
23530 
23531 SWIGINTERN int
_wrap_TradWeight_get_sumextra(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])23532 _wrap_TradWeight_get_sumextra(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
23533   Xapian::TradWeight *arg1 = (Xapian::TradWeight *) 0 ;
23534   Xapian::termcount arg2 ;
23535   Xapian::termcount arg3 ;
23536   void *argp1 = 0 ;
23537   int res1 = 0 ;
23538   unsigned int val2 ;
23539   int ecode2 = 0 ;
23540   unsigned int val3 ;
23541   int ecode3 = 0 ;
23542   double result;
23543 
23544   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::TradWeight_get_sumextra self doclen uniqterms ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
23545   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TradWeight, 0 |  0 );
23546   if (!SWIG_IsOK(res1)) {
23547     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TradWeight_get_sumextra" "', argument " "1"" of type '" "Xapian::TradWeight const *""'");
23548   }
23549   arg1 = reinterpret_cast< Xapian::TradWeight * >(argp1);
23550   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
23551   if (!SWIG_IsOK(ecode2)) {
23552     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TradWeight_get_sumextra" "', argument " "2"" of type '" "Xapian::termcount""'");
23553   }
23554   arg2 = static_cast< Xapian::termcount >(val2);
23555   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
23556   if (!SWIG_IsOK(ecode3)) {
23557     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TradWeight_get_sumextra" "', argument " "3"" of type '" "Xapian::termcount""'");
23558   }
23559   arg3 = static_cast< Xapian::termcount >(val3);
23560   {
23561     try {
23562       result = (double)((Xapian::TradWeight const *)arg1)->get_sumextra(arg2,arg3);
23563     } catch (const Xapian::Error &e) {
23564       return XapianTclHandleError(interp, e);
23565     } catch (...) {
23566       return XapianTclHandleError(interp);
23567     }
23568   }
23569   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
23570   return TCL_OK;
23571 fail:
23572   return TCL_ERROR;
23573 }
23574 
23575 
23576 SWIGINTERN int
_wrap_TradWeight_get_maxextra(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])23577 _wrap_TradWeight_get_maxextra(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
23578   Xapian::TradWeight *arg1 = (Xapian::TradWeight *) 0 ;
23579   void *argp1 = 0 ;
23580   int res1 = 0 ;
23581   double result;
23582 
23583   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::TradWeight_get_maxextra self ",(void *)0) == TCL_ERROR) SWIG_fail;
23584   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TradWeight, 0 |  0 );
23585   if (!SWIG_IsOK(res1)) {
23586     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TradWeight_get_maxextra" "', argument " "1"" of type '" "Xapian::TradWeight const *""'");
23587   }
23588   arg1 = reinterpret_cast< Xapian::TradWeight * >(argp1);
23589   {
23590     try {
23591       result = (double)((Xapian::TradWeight const *)arg1)->get_maxextra();
23592     } catch (const Xapian::Error &e) {
23593       return XapianTclHandleError(interp, e);
23594     } catch (...) {
23595       return XapianTclHandleError(interp);
23596     }
23597   }
23598   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
23599   return TCL_OK;
23600 fail:
23601   return TCL_ERROR;
23602 }
23603 
23604 
23605 SWIGINTERN int
_wrap_delete_TradWeight(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])23606 _wrap_delete_TradWeight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
23607   Xapian::TradWeight *arg1 = (Xapian::TradWeight *) 0 ;
23608   void *argp1 = 0 ;
23609   int res1 = 0 ;
23610 
23611   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_TradWeight self ",(void *)0) == TCL_ERROR) SWIG_fail;
23612   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__TradWeight, SWIG_POINTER_DISOWN |  0 );
23613   if (!SWIG_IsOK(res1)) {
23614     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TradWeight" "', argument " "1"" of type '" "Xapian::TradWeight *""'");
23615   }
23616   arg1 = reinterpret_cast< Xapian::TradWeight * >(argp1);
23617   {
23618     try {
23619       delete arg1;
23620     } catch (const Xapian::Error &e) {
23621       return XapianTclHandleError(interp, e);
23622     } catch (...) {
23623       return XapianTclHandleError(interp);
23624     }
23625   }
23626 
23627   return TCL_OK;
23628 fail:
23629   return TCL_ERROR;
23630 }
23631 
23632 
swig_delete_TradWeight(void * obj)23633 SWIGINTERN void swig_delete_TradWeight(void *obj) {
23634 Xapian::TradWeight *arg1 = (Xapian::TradWeight *) obj;
23635 delete arg1;
23636 }
23637 static swig_method swig_Xapian_TradWeight_methods[] = {
23638     {"name", _wrap_TradWeight_name},
23639     {"get_sumpart", _wrap_TradWeight_get_sumpart},
23640     {"get_maxpart", _wrap_TradWeight_get_maxpart},
23641     {"get_sumextra", _wrap_TradWeight_get_sumextra},
23642     {"get_maxextra", _wrap_TradWeight_get_maxextra},
23643     {0,0}
23644 };
23645 static swig_attribute swig_Xapian_TradWeight_attributes[] = {
23646     {0,0,0}
23647 };
23648 static swig_class *swig_Xapian_TradWeight_bases[] = {0,0};
23649 static const char * swig_Xapian_TradWeight_base_names[] = {"Xapian::Weight *",0};
23650 static swig_class _wrap_class_Xapian_TradWeight = { "TradWeight", &SWIGTYPE_p_Xapian__TradWeight,_wrap_new_TradWeight, swig_delete_TradWeight, swig_Xapian_TradWeight_methods, swig_Xapian_TradWeight_attributes, swig_Xapian_TradWeight_bases,swig_Xapian_TradWeight_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
23651 SWIGINTERN int
_wrap_new_InL2Weight__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])23652 _wrap_new_InL2Weight__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
23653   double arg1 ;
23654   double val1 ;
23655   int ecode1 = 0 ;
23656   Xapian::InL2Weight *result = 0 ;
23657 
23658   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_InL2Weight c ",(void *)0) == TCL_ERROR) SWIG_fail;
23659   ecode1 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
23660   if (!SWIG_IsOK(ecode1)) {
23661     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_InL2Weight" "', argument " "1"" of type '" "double""'");
23662   }
23663   arg1 = static_cast< double >(val1);
23664   {
23665     try {
23666       result = (Xapian::InL2Weight *)new Xapian::InL2Weight(arg1);
23667     } catch (const Xapian::Error &e) {
23668       return XapianTclHandleError(interp, e);
23669     } catch (...) {
23670       return XapianTclHandleError(interp);
23671     }
23672   }
23673   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__InL2Weight,0));
23674   return TCL_OK;
23675 fail:
23676   return TCL_ERROR;
23677 }
23678 
23679 
23680 SWIGINTERN int
_wrap_new_InL2Weight__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])23681 _wrap_new_InL2Weight__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
23682   Xapian::InL2Weight *result = 0 ;
23683 
23684   if (SWIG_GetArgs(interp, objc, objv,":xapian::new_InL2Weight ") == TCL_ERROR) SWIG_fail;
23685   {
23686     try {
23687       result = (Xapian::InL2Weight *)new Xapian::InL2Weight();
23688     } catch (const Xapian::Error &e) {
23689       return XapianTclHandleError(interp, e);
23690     } catch (...) {
23691       return XapianTclHandleError(interp);
23692     }
23693   }
23694   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__InL2Weight,0));
23695   return TCL_OK;
23696 fail:
23697   return TCL_ERROR;
23698 }
23699 
23700 
23701 SWIGINTERN int
_wrap_new_InL2Weight(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])23702 _wrap_new_InL2Weight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
23703   Tcl_Obj *CONST *argv = objv+1;
23704   int argc = objc-1;
23705   if (argc == 0) {
23706     return _wrap_new_InL2Weight__SWIG_1(clientData, interp, objc, argv - 1);
23707   }
23708   if (argc == 1) {
23709     int _v;
23710     {
23711       int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
23712       _v = SWIG_CheckState(res);
23713     }
23714     if (_v) {
23715       return _wrap_new_InL2Weight__SWIG_0(clientData, interp, objc, argv - 1);
23716     }
23717   }
23718 
23719   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_InL2Weight'.\n"
23720     "  Possible C/C++ prototypes are:\n"
23721     "    Xapian::InL2Weight::InL2Weight(double)\n"
23722     "    Xapian::InL2Weight::InL2Weight()\n", TCL_STATIC);
23723   return TCL_ERROR;
23724 }
23725 
23726 
23727 SWIGINTERN int
_wrap_InL2Weight_name(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])23728 _wrap_InL2Weight_name(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
23729   Xapian::InL2Weight *arg1 = (Xapian::InL2Weight *) 0 ;
23730   void *argp1 = 0 ;
23731   int res1 = 0 ;
23732   std::string result;
23733 
23734   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::InL2Weight_name self ",(void *)0) == TCL_ERROR) SWIG_fail;
23735   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__InL2Weight, 0 |  0 );
23736   if (!SWIG_IsOK(res1)) {
23737     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InL2Weight_name" "', argument " "1"" of type '" "Xapian::InL2Weight const *""'");
23738   }
23739   arg1 = reinterpret_cast< Xapian::InL2Weight * >(argp1);
23740   {
23741     try {
23742       result = ((Xapian::InL2Weight const *)arg1)->name();
23743     } catch (const Xapian::Error &e) {
23744       return XapianTclHandleError(interp, e);
23745     } catch (...) {
23746       return XapianTclHandleError(interp);
23747     }
23748   }
23749   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
23750   return TCL_OK;
23751 fail:
23752   return TCL_ERROR;
23753 }
23754 
23755 
23756 SWIGINTERN int
_wrap_InL2Weight_get_sumpart(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])23757 _wrap_InL2Weight_get_sumpart(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
23758   Xapian::InL2Weight *arg1 = (Xapian::InL2Weight *) 0 ;
23759   Xapian::termcount arg2 ;
23760   Xapian::termcount arg3 ;
23761   Xapian::termcount arg4 ;
23762   void *argp1 = 0 ;
23763   int res1 = 0 ;
23764   unsigned int val2 ;
23765   int ecode2 = 0 ;
23766   unsigned int val3 ;
23767   int ecode3 = 0 ;
23768   unsigned int val4 ;
23769   int ecode4 = 0 ;
23770   double result;
23771 
23772   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::InL2Weight_get_sumpart self wdf doclen uniqterms ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
23773   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__InL2Weight, 0 |  0 );
23774   if (!SWIG_IsOK(res1)) {
23775     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InL2Weight_get_sumpart" "', argument " "1"" of type '" "Xapian::InL2Weight const *""'");
23776   }
23777   arg1 = reinterpret_cast< Xapian::InL2Weight * >(argp1);
23778   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
23779   if (!SWIG_IsOK(ecode2)) {
23780     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InL2Weight_get_sumpart" "', argument " "2"" of type '" "Xapian::termcount""'");
23781   }
23782   arg2 = static_cast< Xapian::termcount >(val2);
23783   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
23784   if (!SWIG_IsOK(ecode3)) {
23785     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "InL2Weight_get_sumpart" "', argument " "3"" of type '" "Xapian::termcount""'");
23786   }
23787   arg3 = static_cast< Xapian::termcount >(val3);
23788   ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
23789   if (!SWIG_IsOK(ecode4)) {
23790     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "InL2Weight_get_sumpart" "', argument " "4"" of type '" "Xapian::termcount""'");
23791   }
23792   arg4 = static_cast< Xapian::termcount >(val4);
23793   {
23794     try {
23795       result = (double)((Xapian::InL2Weight const *)arg1)->get_sumpart(arg2,arg3,arg4);
23796     } catch (const Xapian::Error &e) {
23797       return XapianTclHandleError(interp, e);
23798     } catch (...) {
23799       return XapianTclHandleError(interp);
23800     }
23801   }
23802   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
23803   return TCL_OK;
23804 fail:
23805   return TCL_ERROR;
23806 }
23807 
23808 
23809 SWIGINTERN int
_wrap_InL2Weight_get_maxpart(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])23810 _wrap_InL2Weight_get_maxpart(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
23811   Xapian::InL2Weight *arg1 = (Xapian::InL2Weight *) 0 ;
23812   void *argp1 = 0 ;
23813   int res1 = 0 ;
23814   double result;
23815 
23816   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::InL2Weight_get_maxpart self ",(void *)0) == TCL_ERROR) SWIG_fail;
23817   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__InL2Weight, 0 |  0 );
23818   if (!SWIG_IsOK(res1)) {
23819     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InL2Weight_get_maxpart" "', argument " "1"" of type '" "Xapian::InL2Weight const *""'");
23820   }
23821   arg1 = reinterpret_cast< Xapian::InL2Weight * >(argp1);
23822   {
23823     try {
23824       result = (double)((Xapian::InL2Weight const *)arg1)->get_maxpart();
23825     } catch (const Xapian::Error &e) {
23826       return XapianTclHandleError(interp, e);
23827     } catch (...) {
23828       return XapianTclHandleError(interp);
23829     }
23830   }
23831   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
23832   return TCL_OK;
23833 fail:
23834   return TCL_ERROR;
23835 }
23836 
23837 
23838 SWIGINTERN int
_wrap_InL2Weight_get_sumextra(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])23839 _wrap_InL2Weight_get_sumextra(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
23840   Xapian::InL2Weight *arg1 = (Xapian::InL2Weight *) 0 ;
23841   Xapian::termcount arg2 ;
23842   Xapian::termcount arg3 ;
23843   void *argp1 = 0 ;
23844   int res1 = 0 ;
23845   unsigned int val2 ;
23846   int ecode2 = 0 ;
23847   unsigned int val3 ;
23848   int ecode3 = 0 ;
23849   double result;
23850 
23851   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::InL2Weight_get_sumextra self doclen uniqterms ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
23852   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__InL2Weight, 0 |  0 );
23853   if (!SWIG_IsOK(res1)) {
23854     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InL2Weight_get_sumextra" "', argument " "1"" of type '" "Xapian::InL2Weight const *""'");
23855   }
23856   arg1 = reinterpret_cast< Xapian::InL2Weight * >(argp1);
23857   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
23858   if (!SWIG_IsOK(ecode2)) {
23859     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InL2Weight_get_sumextra" "', argument " "2"" of type '" "Xapian::termcount""'");
23860   }
23861   arg2 = static_cast< Xapian::termcount >(val2);
23862   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
23863   if (!SWIG_IsOK(ecode3)) {
23864     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "InL2Weight_get_sumextra" "', argument " "3"" of type '" "Xapian::termcount""'");
23865   }
23866   arg3 = static_cast< Xapian::termcount >(val3);
23867   {
23868     try {
23869       result = (double)((Xapian::InL2Weight const *)arg1)->get_sumextra(arg2,arg3);
23870     } catch (const Xapian::Error &e) {
23871       return XapianTclHandleError(interp, e);
23872     } catch (...) {
23873       return XapianTclHandleError(interp);
23874     }
23875   }
23876   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
23877   return TCL_OK;
23878 fail:
23879   return TCL_ERROR;
23880 }
23881 
23882 
23883 SWIGINTERN int
_wrap_InL2Weight_get_maxextra(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])23884 _wrap_InL2Weight_get_maxextra(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
23885   Xapian::InL2Weight *arg1 = (Xapian::InL2Weight *) 0 ;
23886   void *argp1 = 0 ;
23887   int res1 = 0 ;
23888   double result;
23889 
23890   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::InL2Weight_get_maxextra self ",(void *)0) == TCL_ERROR) SWIG_fail;
23891   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__InL2Weight, 0 |  0 );
23892   if (!SWIG_IsOK(res1)) {
23893     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InL2Weight_get_maxextra" "', argument " "1"" of type '" "Xapian::InL2Weight const *""'");
23894   }
23895   arg1 = reinterpret_cast< Xapian::InL2Weight * >(argp1);
23896   {
23897     try {
23898       result = (double)((Xapian::InL2Weight const *)arg1)->get_maxextra();
23899     } catch (const Xapian::Error &e) {
23900       return XapianTclHandleError(interp, e);
23901     } catch (...) {
23902       return XapianTclHandleError(interp);
23903     }
23904   }
23905   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
23906   return TCL_OK;
23907 fail:
23908   return TCL_ERROR;
23909 }
23910 
23911 
23912 SWIGINTERN int
_wrap_delete_InL2Weight(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])23913 _wrap_delete_InL2Weight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
23914   Xapian::InL2Weight *arg1 = (Xapian::InL2Weight *) 0 ;
23915   void *argp1 = 0 ;
23916   int res1 = 0 ;
23917 
23918   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_InL2Weight self ",(void *)0) == TCL_ERROR) SWIG_fail;
23919   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__InL2Weight, SWIG_POINTER_DISOWN |  0 );
23920   if (!SWIG_IsOK(res1)) {
23921     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_InL2Weight" "', argument " "1"" of type '" "Xapian::InL2Weight *""'");
23922   }
23923   arg1 = reinterpret_cast< Xapian::InL2Weight * >(argp1);
23924   {
23925     try {
23926       delete arg1;
23927     } catch (const Xapian::Error &e) {
23928       return XapianTclHandleError(interp, e);
23929     } catch (...) {
23930       return XapianTclHandleError(interp);
23931     }
23932   }
23933 
23934   return TCL_OK;
23935 fail:
23936   return TCL_ERROR;
23937 }
23938 
23939 
swig_delete_InL2Weight(void * obj)23940 SWIGINTERN void swig_delete_InL2Weight(void *obj) {
23941 Xapian::InL2Weight *arg1 = (Xapian::InL2Weight *) obj;
23942 delete arg1;
23943 }
23944 static swig_method swig_Xapian_InL2Weight_methods[] = {
23945     {"name", _wrap_InL2Weight_name},
23946     {"get_sumpart", _wrap_InL2Weight_get_sumpart},
23947     {"get_maxpart", _wrap_InL2Weight_get_maxpart},
23948     {"get_sumextra", _wrap_InL2Weight_get_sumextra},
23949     {"get_maxextra", _wrap_InL2Weight_get_maxextra},
23950     {0,0}
23951 };
23952 static swig_attribute swig_Xapian_InL2Weight_attributes[] = {
23953     {0,0,0}
23954 };
23955 static swig_class *swig_Xapian_InL2Weight_bases[] = {0,0};
23956 static const char * swig_Xapian_InL2Weight_base_names[] = {"Xapian::Weight *",0};
23957 static swig_class _wrap_class_Xapian_InL2Weight = { "InL2Weight", &SWIGTYPE_p_Xapian__InL2Weight,_wrap_new_InL2Weight, swig_delete_InL2Weight, swig_Xapian_InL2Weight_methods, swig_Xapian_InL2Weight_attributes, swig_Xapian_InL2Weight_bases,swig_Xapian_InL2Weight_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
23958 SWIGINTERN int
_wrap_new_IfB2Weight__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])23959 _wrap_new_IfB2Weight__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
23960   double arg1 ;
23961   double val1 ;
23962   int ecode1 = 0 ;
23963   Xapian::IfB2Weight *result = 0 ;
23964 
23965   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_IfB2Weight c ",(void *)0) == TCL_ERROR) SWIG_fail;
23966   ecode1 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
23967   if (!SWIG_IsOK(ecode1)) {
23968     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_IfB2Weight" "', argument " "1"" of type '" "double""'");
23969   }
23970   arg1 = static_cast< double >(val1);
23971   {
23972     try {
23973       result = (Xapian::IfB2Weight *)new Xapian::IfB2Weight(arg1);
23974     } catch (const Xapian::Error &e) {
23975       return XapianTclHandleError(interp, e);
23976     } catch (...) {
23977       return XapianTclHandleError(interp);
23978     }
23979   }
23980   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__IfB2Weight,0));
23981   return TCL_OK;
23982 fail:
23983   return TCL_ERROR;
23984 }
23985 
23986 
23987 SWIGINTERN int
_wrap_new_IfB2Weight__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])23988 _wrap_new_IfB2Weight__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
23989   Xapian::IfB2Weight *result = 0 ;
23990 
23991   if (SWIG_GetArgs(interp, objc, objv,":xapian::new_IfB2Weight ") == TCL_ERROR) SWIG_fail;
23992   {
23993     try {
23994       result = (Xapian::IfB2Weight *)new Xapian::IfB2Weight();
23995     } catch (const Xapian::Error &e) {
23996       return XapianTclHandleError(interp, e);
23997     } catch (...) {
23998       return XapianTclHandleError(interp);
23999     }
24000   }
24001   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__IfB2Weight,0));
24002   return TCL_OK;
24003 fail:
24004   return TCL_ERROR;
24005 }
24006 
24007 
24008 SWIGINTERN int
_wrap_new_IfB2Weight(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])24009 _wrap_new_IfB2Weight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
24010   Tcl_Obj *CONST *argv = objv+1;
24011   int argc = objc-1;
24012   if (argc == 0) {
24013     return _wrap_new_IfB2Weight__SWIG_1(clientData, interp, objc, argv - 1);
24014   }
24015   if (argc == 1) {
24016     int _v;
24017     {
24018       int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
24019       _v = SWIG_CheckState(res);
24020     }
24021     if (_v) {
24022       return _wrap_new_IfB2Weight__SWIG_0(clientData, interp, objc, argv - 1);
24023     }
24024   }
24025 
24026   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_IfB2Weight'.\n"
24027     "  Possible C/C++ prototypes are:\n"
24028     "    Xapian::IfB2Weight::IfB2Weight(double)\n"
24029     "    Xapian::IfB2Weight::IfB2Weight()\n", TCL_STATIC);
24030   return TCL_ERROR;
24031 }
24032 
24033 
24034 SWIGINTERN int
_wrap_IfB2Weight_name(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])24035 _wrap_IfB2Weight_name(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
24036   Xapian::IfB2Weight *arg1 = (Xapian::IfB2Weight *) 0 ;
24037   void *argp1 = 0 ;
24038   int res1 = 0 ;
24039   std::string result;
24040 
24041   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::IfB2Weight_name self ",(void *)0) == TCL_ERROR) SWIG_fail;
24042   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__IfB2Weight, 0 |  0 );
24043   if (!SWIG_IsOK(res1)) {
24044     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IfB2Weight_name" "', argument " "1"" of type '" "Xapian::IfB2Weight const *""'");
24045   }
24046   arg1 = reinterpret_cast< Xapian::IfB2Weight * >(argp1);
24047   {
24048     try {
24049       result = ((Xapian::IfB2Weight const *)arg1)->name();
24050     } catch (const Xapian::Error &e) {
24051       return XapianTclHandleError(interp, e);
24052     } catch (...) {
24053       return XapianTclHandleError(interp);
24054     }
24055   }
24056   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
24057   return TCL_OK;
24058 fail:
24059   return TCL_ERROR;
24060 }
24061 
24062 
24063 SWIGINTERN int
_wrap_IfB2Weight_get_sumpart(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])24064 _wrap_IfB2Weight_get_sumpart(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
24065   Xapian::IfB2Weight *arg1 = (Xapian::IfB2Weight *) 0 ;
24066   Xapian::termcount arg2 ;
24067   Xapian::termcount arg3 ;
24068   Xapian::termcount arg4 ;
24069   void *argp1 = 0 ;
24070   int res1 = 0 ;
24071   unsigned int val2 ;
24072   int ecode2 = 0 ;
24073   unsigned int val3 ;
24074   int ecode3 = 0 ;
24075   unsigned int val4 ;
24076   int ecode4 = 0 ;
24077   double result;
24078 
24079   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::IfB2Weight_get_sumpart self wdf doclen uniqterm ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
24080   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__IfB2Weight, 0 |  0 );
24081   if (!SWIG_IsOK(res1)) {
24082     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IfB2Weight_get_sumpart" "', argument " "1"" of type '" "Xapian::IfB2Weight const *""'");
24083   }
24084   arg1 = reinterpret_cast< Xapian::IfB2Weight * >(argp1);
24085   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
24086   if (!SWIG_IsOK(ecode2)) {
24087     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IfB2Weight_get_sumpart" "', argument " "2"" of type '" "Xapian::termcount""'");
24088   }
24089   arg2 = static_cast< Xapian::termcount >(val2);
24090   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
24091   if (!SWIG_IsOK(ecode3)) {
24092     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IfB2Weight_get_sumpart" "', argument " "3"" of type '" "Xapian::termcount""'");
24093   }
24094   arg3 = static_cast< Xapian::termcount >(val3);
24095   ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
24096   if (!SWIG_IsOK(ecode4)) {
24097     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "IfB2Weight_get_sumpart" "', argument " "4"" of type '" "Xapian::termcount""'");
24098   }
24099   arg4 = static_cast< Xapian::termcount >(val4);
24100   {
24101     try {
24102       result = (double)((Xapian::IfB2Weight const *)arg1)->get_sumpart(arg2,arg3,arg4);
24103     } catch (const Xapian::Error &e) {
24104       return XapianTclHandleError(interp, e);
24105     } catch (...) {
24106       return XapianTclHandleError(interp);
24107     }
24108   }
24109   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
24110   return TCL_OK;
24111 fail:
24112   return TCL_ERROR;
24113 }
24114 
24115 
24116 SWIGINTERN int
_wrap_IfB2Weight_get_maxpart(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])24117 _wrap_IfB2Weight_get_maxpart(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
24118   Xapian::IfB2Weight *arg1 = (Xapian::IfB2Weight *) 0 ;
24119   void *argp1 = 0 ;
24120   int res1 = 0 ;
24121   double result;
24122 
24123   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::IfB2Weight_get_maxpart self ",(void *)0) == TCL_ERROR) SWIG_fail;
24124   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__IfB2Weight, 0 |  0 );
24125   if (!SWIG_IsOK(res1)) {
24126     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IfB2Weight_get_maxpart" "', argument " "1"" of type '" "Xapian::IfB2Weight const *""'");
24127   }
24128   arg1 = reinterpret_cast< Xapian::IfB2Weight * >(argp1);
24129   {
24130     try {
24131       result = (double)((Xapian::IfB2Weight const *)arg1)->get_maxpart();
24132     } catch (const Xapian::Error &e) {
24133       return XapianTclHandleError(interp, e);
24134     } catch (...) {
24135       return XapianTclHandleError(interp);
24136     }
24137   }
24138   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
24139   return TCL_OK;
24140 fail:
24141   return TCL_ERROR;
24142 }
24143 
24144 
24145 SWIGINTERN int
_wrap_IfB2Weight_get_sumextra(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])24146 _wrap_IfB2Weight_get_sumextra(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
24147   Xapian::IfB2Weight *arg1 = (Xapian::IfB2Weight *) 0 ;
24148   Xapian::termcount arg2 ;
24149   Xapian::termcount arg3 ;
24150   void *argp1 = 0 ;
24151   int res1 = 0 ;
24152   unsigned int val2 ;
24153   int ecode2 = 0 ;
24154   unsigned int val3 ;
24155   int ecode3 = 0 ;
24156   double result;
24157 
24158   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::IfB2Weight_get_sumextra self doclen uniqterms ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
24159   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__IfB2Weight, 0 |  0 );
24160   if (!SWIG_IsOK(res1)) {
24161     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IfB2Weight_get_sumextra" "', argument " "1"" of type '" "Xapian::IfB2Weight const *""'");
24162   }
24163   arg1 = reinterpret_cast< Xapian::IfB2Weight * >(argp1);
24164   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
24165   if (!SWIG_IsOK(ecode2)) {
24166     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IfB2Weight_get_sumextra" "', argument " "2"" of type '" "Xapian::termcount""'");
24167   }
24168   arg2 = static_cast< Xapian::termcount >(val2);
24169   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
24170   if (!SWIG_IsOK(ecode3)) {
24171     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IfB2Weight_get_sumextra" "', argument " "3"" of type '" "Xapian::termcount""'");
24172   }
24173   arg3 = static_cast< Xapian::termcount >(val3);
24174   {
24175     try {
24176       result = (double)((Xapian::IfB2Weight const *)arg1)->get_sumextra(arg2,arg3);
24177     } catch (const Xapian::Error &e) {
24178       return XapianTclHandleError(interp, e);
24179     } catch (...) {
24180       return XapianTclHandleError(interp);
24181     }
24182   }
24183   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
24184   return TCL_OK;
24185 fail:
24186   return TCL_ERROR;
24187 }
24188 
24189 
24190 SWIGINTERN int
_wrap_IfB2Weight_get_maxextra(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])24191 _wrap_IfB2Weight_get_maxextra(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
24192   Xapian::IfB2Weight *arg1 = (Xapian::IfB2Weight *) 0 ;
24193   void *argp1 = 0 ;
24194   int res1 = 0 ;
24195   double result;
24196 
24197   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::IfB2Weight_get_maxextra self ",(void *)0) == TCL_ERROR) SWIG_fail;
24198   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__IfB2Weight, 0 |  0 );
24199   if (!SWIG_IsOK(res1)) {
24200     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IfB2Weight_get_maxextra" "', argument " "1"" of type '" "Xapian::IfB2Weight const *""'");
24201   }
24202   arg1 = reinterpret_cast< Xapian::IfB2Weight * >(argp1);
24203   {
24204     try {
24205       result = (double)((Xapian::IfB2Weight const *)arg1)->get_maxextra();
24206     } catch (const Xapian::Error &e) {
24207       return XapianTclHandleError(interp, e);
24208     } catch (...) {
24209       return XapianTclHandleError(interp);
24210     }
24211   }
24212   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
24213   return TCL_OK;
24214 fail:
24215   return TCL_ERROR;
24216 }
24217 
24218 
24219 SWIGINTERN int
_wrap_delete_IfB2Weight(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])24220 _wrap_delete_IfB2Weight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
24221   Xapian::IfB2Weight *arg1 = (Xapian::IfB2Weight *) 0 ;
24222   void *argp1 = 0 ;
24223   int res1 = 0 ;
24224 
24225   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_IfB2Weight self ",(void *)0) == TCL_ERROR) SWIG_fail;
24226   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__IfB2Weight, SWIG_POINTER_DISOWN |  0 );
24227   if (!SWIG_IsOK(res1)) {
24228     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IfB2Weight" "', argument " "1"" of type '" "Xapian::IfB2Weight *""'");
24229   }
24230   arg1 = reinterpret_cast< Xapian::IfB2Weight * >(argp1);
24231   {
24232     try {
24233       delete arg1;
24234     } catch (const Xapian::Error &e) {
24235       return XapianTclHandleError(interp, e);
24236     } catch (...) {
24237       return XapianTclHandleError(interp);
24238     }
24239   }
24240 
24241   return TCL_OK;
24242 fail:
24243   return TCL_ERROR;
24244 }
24245 
24246 
swig_delete_IfB2Weight(void * obj)24247 SWIGINTERN void swig_delete_IfB2Weight(void *obj) {
24248 Xapian::IfB2Weight *arg1 = (Xapian::IfB2Weight *) obj;
24249 delete arg1;
24250 }
24251 static swig_method swig_Xapian_IfB2Weight_methods[] = {
24252     {"name", _wrap_IfB2Weight_name},
24253     {"get_sumpart", _wrap_IfB2Weight_get_sumpart},
24254     {"get_maxpart", _wrap_IfB2Weight_get_maxpart},
24255     {"get_sumextra", _wrap_IfB2Weight_get_sumextra},
24256     {"get_maxextra", _wrap_IfB2Weight_get_maxextra},
24257     {0,0}
24258 };
24259 static swig_attribute swig_Xapian_IfB2Weight_attributes[] = {
24260     {0,0,0}
24261 };
24262 static swig_class *swig_Xapian_IfB2Weight_bases[] = {0,0};
24263 static const char * swig_Xapian_IfB2Weight_base_names[] = {"Xapian::Weight *",0};
24264 static swig_class _wrap_class_Xapian_IfB2Weight = { "IfB2Weight", &SWIGTYPE_p_Xapian__IfB2Weight,_wrap_new_IfB2Weight, swig_delete_IfB2Weight, swig_Xapian_IfB2Weight_methods, swig_Xapian_IfB2Weight_attributes, swig_Xapian_IfB2Weight_bases,swig_Xapian_IfB2Weight_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
24265 SWIGINTERN int
_wrap_new_IneB2Weight__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])24266 _wrap_new_IneB2Weight__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
24267   double arg1 ;
24268   double val1 ;
24269   int ecode1 = 0 ;
24270   Xapian::IneB2Weight *result = 0 ;
24271 
24272   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_IneB2Weight c ",(void *)0) == TCL_ERROR) SWIG_fail;
24273   ecode1 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
24274   if (!SWIG_IsOK(ecode1)) {
24275     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_IneB2Weight" "', argument " "1"" of type '" "double""'");
24276   }
24277   arg1 = static_cast< double >(val1);
24278   {
24279     try {
24280       result = (Xapian::IneB2Weight *)new Xapian::IneB2Weight(arg1);
24281     } catch (const Xapian::Error &e) {
24282       return XapianTclHandleError(interp, e);
24283     } catch (...) {
24284       return XapianTclHandleError(interp);
24285     }
24286   }
24287   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__IneB2Weight,0));
24288   return TCL_OK;
24289 fail:
24290   return TCL_ERROR;
24291 }
24292 
24293 
24294 SWIGINTERN int
_wrap_new_IneB2Weight__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])24295 _wrap_new_IneB2Weight__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
24296   Xapian::IneB2Weight *result = 0 ;
24297 
24298   if (SWIG_GetArgs(interp, objc, objv,":xapian::new_IneB2Weight ") == TCL_ERROR) SWIG_fail;
24299   {
24300     try {
24301       result = (Xapian::IneB2Weight *)new Xapian::IneB2Weight();
24302     } catch (const Xapian::Error &e) {
24303       return XapianTclHandleError(interp, e);
24304     } catch (...) {
24305       return XapianTclHandleError(interp);
24306     }
24307   }
24308   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__IneB2Weight,0));
24309   return TCL_OK;
24310 fail:
24311   return TCL_ERROR;
24312 }
24313 
24314 
24315 SWIGINTERN int
_wrap_new_IneB2Weight(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])24316 _wrap_new_IneB2Weight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
24317   Tcl_Obj *CONST *argv = objv+1;
24318   int argc = objc-1;
24319   if (argc == 0) {
24320     return _wrap_new_IneB2Weight__SWIG_1(clientData, interp, objc, argv - 1);
24321   }
24322   if (argc == 1) {
24323     int _v;
24324     {
24325       int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
24326       _v = SWIG_CheckState(res);
24327     }
24328     if (_v) {
24329       return _wrap_new_IneB2Weight__SWIG_0(clientData, interp, objc, argv - 1);
24330     }
24331   }
24332 
24333   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_IneB2Weight'.\n"
24334     "  Possible C/C++ prototypes are:\n"
24335     "    Xapian::IneB2Weight::IneB2Weight(double)\n"
24336     "    Xapian::IneB2Weight::IneB2Weight()\n", TCL_STATIC);
24337   return TCL_ERROR;
24338 }
24339 
24340 
24341 SWIGINTERN int
_wrap_IneB2Weight_name(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])24342 _wrap_IneB2Weight_name(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
24343   Xapian::IneB2Weight *arg1 = (Xapian::IneB2Weight *) 0 ;
24344   void *argp1 = 0 ;
24345   int res1 = 0 ;
24346   std::string result;
24347 
24348   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::IneB2Weight_name self ",(void *)0) == TCL_ERROR) SWIG_fail;
24349   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__IneB2Weight, 0 |  0 );
24350   if (!SWIG_IsOK(res1)) {
24351     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IneB2Weight_name" "', argument " "1"" of type '" "Xapian::IneB2Weight const *""'");
24352   }
24353   arg1 = reinterpret_cast< Xapian::IneB2Weight * >(argp1);
24354   {
24355     try {
24356       result = ((Xapian::IneB2Weight const *)arg1)->name();
24357     } catch (const Xapian::Error &e) {
24358       return XapianTclHandleError(interp, e);
24359     } catch (...) {
24360       return XapianTclHandleError(interp);
24361     }
24362   }
24363   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
24364   return TCL_OK;
24365 fail:
24366   return TCL_ERROR;
24367 }
24368 
24369 
24370 SWIGINTERN int
_wrap_IneB2Weight_get_sumpart(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])24371 _wrap_IneB2Weight_get_sumpart(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
24372   Xapian::IneB2Weight *arg1 = (Xapian::IneB2Weight *) 0 ;
24373   Xapian::termcount arg2 ;
24374   Xapian::termcount arg3 ;
24375   Xapian::termcount arg4 ;
24376   void *argp1 = 0 ;
24377   int res1 = 0 ;
24378   unsigned int val2 ;
24379   int ecode2 = 0 ;
24380   unsigned int val3 ;
24381   int ecode3 = 0 ;
24382   unsigned int val4 ;
24383   int ecode4 = 0 ;
24384   double result;
24385 
24386   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::IneB2Weight_get_sumpart self wdf doclen uniqterms ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
24387   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__IneB2Weight, 0 |  0 );
24388   if (!SWIG_IsOK(res1)) {
24389     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IneB2Weight_get_sumpart" "', argument " "1"" of type '" "Xapian::IneB2Weight const *""'");
24390   }
24391   arg1 = reinterpret_cast< Xapian::IneB2Weight * >(argp1);
24392   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
24393   if (!SWIG_IsOK(ecode2)) {
24394     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IneB2Weight_get_sumpart" "', argument " "2"" of type '" "Xapian::termcount""'");
24395   }
24396   arg2 = static_cast< Xapian::termcount >(val2);
24397   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
24398   if (!SWIG_IsOK(ecode3)) {
24399     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IneB2Weight_get_sumpart" "', argument " "3"" of type '" "Xapian::termcount""'");
24400   }
24401   arg3 = static_cast< Xapian::termcount >(val3);
24402   ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
24403   if (!SWIG_IsOK(ecode4)) {
24404     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "IneB2Weight_get_sumpart" "', argument " "4"" of type '" "Xapian::termcount""'");
24405   }
24406   arg4 = static_cast< Xapian::termcount >(val4);
24407   {
24408     try {
24409       result = (double)((Xapian::IneB2Weight const *)arg1)->get_sumpart(arg2,arg3,arg4);
24410     } catch (const Xapian::Error &e) {
24411       return XapianTclHandleError(interp, e);
24412     } catch (...) {
24413       return XapianTclHandleError(interp);
24414     }
24415   }
24416   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
24417   return TCL_OK;
24418 fail:
24419   return TCL_ERROR;
24420 }
24421 
24422 
24423 SWIGINTERN int
_wrap_IneB2Weight_get_maxpart(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])24424 _wrap_IneB2Weight_get_maxpart(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
24425   Xapian::IneB2Weight *arg1 = (Xapian::IneB2Weight *) 0 ;
24426   void *argp1 = 0 ;
24427   int res1 = 0 ;
24428   double result;
24429 
24430   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::IneB2Weight_get_maxpart self ",(void *)0) == TCL_ERROR) SWIG_fail;
24431   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__IneB2Weight, 0 |  0 );
24432   if (!SWIG_IsOK(res1)) {
24433     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IneB2Weight_get_maxpart" "', argument " "1"" of type '" "Xapian::IneB2Weight const *""'");
24434   }
24435   arg1 = reinterpret_cast< Xapian::IneB2Weight * >(argp1);
24436   {
24437     try {
24438       result = (double)((Xapian::IneB2Weight const *)arg1)->get_maxpart();
24439     } catch (const Xapian::Error &e) {
24440       return XapianTclHandleError(interp, e);
24441     } catch (...) {
24442       return XapianTclHandleError(interp);
24443     }
24444   }
24445   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
24446   return TCL_OK;
24447 fail:
24448   return TCL_ERROR;
24449 }
24450 
24451 
24452 SWIGINTERN int
_wrap_IneB2Weight_get_sumextra(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])24453 _wrap_IneB2Weight_get_sumextra(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
24454   Xapian::IneB2Weight *arg1 = (Xapian::IneB2Weight *) 0 ;
24455   Xapian::termcount arg2 ;
24456   Xapian::termcount arg3 ;
24457   void *argp1 = 0 ;
24458   int res1 = 0 ;
24459   unsigned int val2 ;
24460   int ecode2 = 0 ;
24461   unsigned int val3 ;
24462   int ecode3 = 0 ;
24463   double result;
24464 
24465   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::IneB2Weight_get_sumextra self doclen uniqterms ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
24466   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__IneB2Weight, 0 |  0 );
24467   if (!SWIG_IsOK(res1)) {
24468     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IneB2Weight_get_sumextra" "', argument " "1"" of type '" "Xapian::IneB2Weight const *""'");
24469   }
24470   arg1 = reinterpret_cast< Xapian::IneB2Weight * >(argp1);
24471   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
24472   if (!SWIG_IsOK(ecode2)) {
24473     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IneB2Weight_get_sumextra" "', argument " "2"" of type '" "Xapian::termcount""'");
24474   }
24475   arg2 = static_cast< Xapian::termcount >(val2);
24476   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
24477   if (!SWIG_IsOK(ecode3)) {
24478     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IneB2Weight_get_sumextra" "', argument " "3"" of type '" "Xapian::termcount""'");
24479   }
24480   arg3 = static_cast< Xapian::termcount >(val3);
24481   {
24482     try {
24483       result = (double)((Xapian::IneB2Weight const *)arg1)->get_sumextra(arg2,arg3);
24484     } catch (const Xapian::Error &e) {
24485       return XapianTclHandleError(interp, e);
24486     } catch (...) {
24487       return XapianTclHandleError(interp);
24488     }
24489   }
24490   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
24491   return TCL_OK;
24492 fail:
24493   return TCL_ERROR;
24494 }
24495 
24496 
24497 SWIGINTERN int
_wrap_IneB2Weight_get_maxextra(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])24498 _wrap_IneB2Weight_get_maxextra(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
24499   Xapian::IneB2Weight *arg1 = (Xapian::IneB2Weight *) 0 ;
24500   void *argp1 = 0 ;
24501   int res1 = 0 ;
24502   double result;
24503 
24504   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::IneB2Weight_get_maxextra self ",(void *)0) == TCL_ERROR) SWIG_fail;
24505   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__IneB2Weight, 0 |  0 );
24506   if (!SWIG_IsOK(res1)) {
24507     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IneB2Weight_get_maxextra" "', argument " "1"" of type '" "Xapian::IneB2Weight const *""'");
24508   }
24509   arg1 = reinterpret_cast< Xapian::IneB2Weight * >(argp1);
24510   {
24511     try {
24512       result = (double)((Xapian::IneB2Weight const *)arg1)->get_maxextra();
24513     } catch (const Xapian::Error &e) {
24514       return XapianTclHandleError(interp, e);
24515     } catch (...) {
24516       return XapianTclHandleError(interp);
24517     }
24518   }
24519   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
24520   return TCL_OK;
24521 fail:
24522   return TCL_ERROR;
24523 }
24524 
24525 
24526 SWIGINTERN int
_wrap_delete_IneB2Weight(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])24527 _wrap_delete_IneB2Weight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
24528   Xapian::IneB2Weight *arg1 = (Xapian::IneB2Weight *) 0 ;
24529   void *argp1 = 0 ;
24530   int res1 = 0 ;
24531 
24532   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_IneB2Weight self ",(void *)0) == TCL_ERROR) SWIG_fail;
24533   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__IneB2Weight, SWIG_POINTER_DISOWN |  0 );
24534   if (!SWIG_IsOK(res1)) {
24535     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IneB2Weight" "', argument " "1"" of type '" "Xapian::IneB2Weight *""'");
24536   }
24537   arg1 = reinterpret_cast< Xapian::IneB2Weight * >(argp1);
24538   {
24539     try {
24540       delete arg1;
24541     } catch (const Xapian::Error &e) {
24542       return XapianTclHandleError(interp, e);
24543     } catch (...) {
24544       return XapianTclHandleError(interp);
24545     }
24546   }
24547 
24548   return TCL_OK;
24549 fail:
24550   return TCL_ERROR;
24551 }
24552 
24553 
swig_delete_IneB2Weight(void * obj)24554 SWIGINTERN void swig_delete_IneB2Weight(void *obj) {
24555 Xapian::IneB2Weight *arg1 = (Xapian::IneB2Weight *) obj;
24556 delete arg1;
24557 }
24558 static swig_method swig_Xapian_IneB2Weight_methods[] = {
24559     {"name", _wrap_IneB2Weight_name},
24560     {"get_sumpart", _wrap_IneB2Weight_get_sumpart},
24561     {"get_maxpart", _wrap_IneB2Weight_get_maxpart},
24562     {"get_sumextra", _wrap_IneB2Weight_get_sumextra},
24563     {"get_maxextra", _wrap_IneB2Weight_get_maxextra},
24564     {0,0}
24565 };
24566 static swig_attribute swig_Xapian_IneB2Weight_attributes[] = {
24567     {0,0,0}
24568 };
24569 static swig_class *swig_Xapian_IneB2Weight_bases[] = {0,0};
24570 static const char * swig_Xapian_IneB2Weight_base_names[] = {"Xapian::Weight *",0};
24571 static swig_class _wrap_class_Xapian_IneB2Weight = { "IneB2Weight", &SWIGTYPE_p_Xapian__IneB2Weight,_wrap_new_IneB2Weight, swig_delete_IneB2Weight, swig_Xapian_IneB2Weight_methods, swig_Xapian_IneB2Weight_attributes, swig_Xapian_IneB2Weight_bases,swig_Xapian_IneB2Weight_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
24572 SWIGINTERN int
_wrap_new_BB2Weight__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])24573 _wrap_new_BB2Weight__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
24574   double arg1 ;
24575   double val1 ;
24576   int ecode1 = 0 ;
24577   Xapian::BB2Weight *result = 0 ;
24578 
24579   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_BB2Weight c ",(void *)0) == TCL_ERROR) SWIG_fail;
24580   ecode1 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
24581   if (!SWIG_IsOK(ecode1)) {
24582     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BB2Weight" "', argument " "1"" of type '" "double""'");
24583   }
24584   arg1 = static_cast< double >(val1);
24585   {
24586     try {
24587       result = (Xapian::BB2Weight *)new Xapian::BB2Weight(arg1);
24588     } catch (const Xapian::Error &e) {
24589       return XapianTclHandleError(interp, e);
24590     } catch (...) {
24591       return XapianTclHandleError(interp);
24592     }
24593   }
24594   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__BB2Weight,0));
24595   return TCL_OK;
24596 fail:
24597   return TCL_ERROR;
24598 }
24599 
24600 
24601 SWIGINTERN int
_wrap_new_BB2Weight__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])24602 _wrap_new_BB2Weight__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
24603   Xapian::BB2Weight *result = 0 ;
24604 
24605   if (SWIG_GetArgs(interp, objc, objv,":xapian::new_BB2Weight ") == TCL_ERROR) SWIG_fail;
24606   {
24607     try {
24608       result = (Xapian::BB2Weight *)new Xapian::BB2Weight();
24609     } catch (const Xapian::Error &e) {
24610       return XapianTclHandleError(interp, e);
24611     } catch (...) {
24612       return XapianTclHandleError(interp);
24613     }
24614   }
24615   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__BB2Weight,0));
24616   return TCL_OK;
24617 fail:
24618   return TCL_ERROR;
24619 }
24620 
24621 
24622 SWIGINTERN int
_wrap_new_BB2Weight(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])24623 _wrap_new_BB2Weight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
24624   Tcl_Obj *CONST *argv = objv+1;
24625   int argc = objc-1;
24626   if (argc == 0) {
24627     return _wrap_new_BB2Weight__SWIG_1(clientData, interp, objc, argv - 1);
24628   }
24629   if (argc == 1) {
24630     int _v;
24631     {
24632       int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
24633       _v = SWIG_CheckState(res);
24634     }
24635     if (_v) {
24636       return _wrap_new_BB2Weight__SWIG_0(clientData, interp, objc, argv - 1);
24637     }
24638   }
24639 
24640   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_BB2Weight'.\n"
24641     "  Possible C/C++ prototypes are:\n"
24642     "    Xapian::BB2Weight::BB2Weight(double)\n"
24643     "    Xapian::BB2Weight::BB2Weight()\n", TCL_STATIC);
24644   return TCL_ERROR;
24645 }
24646 
24647 
24648 SWIGINTERN int
_wrap_BB2Weight_name(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])24649 _wrap_BB2Weight_name(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
24650   Xapian::BB2Weight *arg1 = (Xapian::BB2Weight *) 0 ;
24651   void *argp1 = 0 ;
24652   int res1 = 0 ;
24653   std::string result;
24654 
24655   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::BB2Weight_name self ",(void *)0) == TCL_ERROR) SWIG_fail;
24656   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__BB2Weight, 0 |  0 );
24657   if (!SWIG_IsOK(res1)) {
24658     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BB2Weight_name" "', argument " "1"" of type '" "Xapian::BB2Weight const *""'");
24659   }
24660   arg1 = reinterpret_cast< Xapian::BB2Weight * >(argp1);
24661   {
24662     try {
24663       result = ((Xapian::BB2Weight const *)arg1)->name();
24664     } catch (const Xapian::Error &e) {
24665       return XapianTclHandleError(interp, e);
24666     } catch (...) {
24667       return XapianTclHandleError(interp);
24668     }
24669   }
24670   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
24671   return TCL_OK;
24672 fail:
24673   return TCL_ERROR;
24674 }
24675 
24676 
24677 SWIGINTERN int
_wrap_BB2Weight_get_sumpart(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])24678 _wrap_BB2Weight_get_sumpart(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
24679   Xapian::BB2Weight *arg1 = (Xapian::BB2Weight *) 0 ;
24680   Xapian::termcount arg2 ;
24681   Xapian::termcount arg3 ;
24682   Xapian::termcount arg4 ;
24683   void *argp1 = 0 ;
24684   int res1 = 0 ;
24685   unsigned int val2 ;
24686   int ecode2 = 0 ;
24687   unsigned int val3 ;
24688   int ecode3 = 0 ;
24689   unsigned int val4 ;
24690   int ecode4 = 0 ;
24691   double result;
24692 
24693   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::BB2Weight_get_sumpart self wdf doclen uniqterms ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
24694   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__BB2Weight, 0 |  0 );
24695   if (!SWIG_IsOK(res1)) {
24696     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BB2Weight_get_sumpart" "', argument " "1"" of type '" "Xapian::BB2Weight const *""'");
24697   }
24698   arg1 = reinterpret_cast< Xapian::BB2Weight * >(argp1);
24699   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
24700   if (!SWIG_IsOK(ecode2)) {
24701     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BB2Weight_get_sumpart" "', argument " "2"" of type '" "Xapian::termcount""'");
24702   }
24703   arg2 = static_cast< Xapian::termcount >(val2);
24704   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
24705   if (!SWIG_IsOK(ecode3)) {
24706     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BB2Weight_get_sumpart" "', argument " "3"" of type '" "Xapian::termcount""'");
24707   }
24708   arg3 = static_cast< Xapian::termcount >(val3);
24709   ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
24710   if (!SWIG_IsOK(ecode4)) {
24711     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BB2Weight_get_sumpart" "', argument " "4"" of type '" "Xapian::termcount""'");
24712   }
24713   arg4 = static_cast< Xapian::termcount >(val4);
24714   {
24715     try {
24716       result = (double)((Xapian::BB2Weight const *)arg1)->get_sumpart(arg2,arg3,arg4);
24717     } catch (const Xapian::Error &e) {
24718       return XapianTclHandleError(interp, e);
24719     } catch (...) {
24720       return XapianTclHandleError(interp);
24721     }
24722   }
24723   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
24724   return TCL_OK;
24725 fail:
24726   return TCL_ERROR;
24727 }
24728 
24729 
24730 SWIGINTERN int
_wrap_BB2Weight_get_maxpart(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])24731 _wrap_BB2Weight_get_maxpart(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
24732   Xapian::BB2Weight *arg1 = (Xapian::BB2Weight *) 0 ;
24733   void *argp1 = 0 ;
24734   int res1 = 0 ;
24735   double result;
24736 
24737   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::BB2Weight_get_maxpart self ",(void *)0) == TCL_ERROR) SWIG_fail;
24738   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__BB2Weight, 0 |  0 );
24739   if (!SWIG_IsOK(res1)) {
24740     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BB2Weight_get_maxpart" "', argument " "1"" of type '" "Xapian::BB2Weight const *""'");
24741   }
24742   arg1 = reinterpret_cast< Xapian::BB2Weight * >(argp1);
24743   {
24744     try {
24745       result = (double)((Xapian::BB2Weight const *)arg1)->get_maxpart();
24746     } catch (const Xapian::Error &e) {
24747       return XapianTclHandleError(interp, e);
24748     } catch (...) {
24749       return XapianTclHandleError(interp);
24750     }
24751   }
24752   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
24753   return TCL_OK;
24754 fail:
24755   return TCL_ERROR;
24756 }
24757 
24758 
24759 SWIGINTERN int
_wrap_BB2Weight_get_sumextra(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])24760 _wrap_BB2Weight_get_sumextra(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
24761   Xapian::BB2Weight *arg1 = (Xapian::BB2Weight *) 0 ;
24762   Xapian::termcount arg2 ;
24763   Xapian::termcount arg3 ;
24764   void *argp1 = 0 ;
24765   int res1 = 0 ;
24766   unsigned int val2 ;
24767   int ecode2 = 0 ;
24768   unsigned int val3 ;
24769   int ecode3 = 0 ;
24770   double result;
24771 
24772   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::BB2Weight_get_sumextra self doclen uniqterms ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
24773   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__BB2Weight, 0 |  0 );
24774   if (!SWIG_IsOK(res1)) {
24775     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BB2Weight_get_sumextra" "', argument " "1"" of type '" "Xapian::BB2Weight const *""'");
24776   }
24777   arg1 = reinterpret_cast< Xapian::BB2Weight * >(argp1);
24778   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
24779   if (!SWIG_IsOK(ecode2)) {
24780     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BB2Weight_get_sumextra" "', argument " "2"" of type '" "Xapian::termcount""'");
24781   }
24782   arg2 = static_cast< Xapian::termcount >(val2);
24783   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
24784   if (!SWIG_IsOK(ecode3)) {
24785     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BB2Weight_get_sumextra" "', argument " "3"" of type '" "Xapian::termcount""'");
24786   }
24787   arg3 = static_cast< Xapian::termcount >(val3);
24788   {
24789     try {
24790       result = (double)((Xapian::BB2Weight const *)arg1)->get_sumextra(arg2,arg3);
24791     } catch (const Xapian::Error &e) {
24792       return XapianTclHandleError(interp, e);
24793     } catch (...) {
24794       return XapianTclHandleError(interp);
24795     }
24796   }
24797   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
24798   return TCL_OK;
24799 fail:
24800   return TCL_ERROR;
24801 }
24802 
24803 
24804 SWIGINTERN int
_wrap_BB2Weight_get_maxextra(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])24805 _wrap_BB2Weight_get_maxextra(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
24806   Xapian::BB2Weight *arg1 = (Xapian::BB2Weight *) 0 ;
24807   void *argp1 = 0 ;
24808   int res1 = 0 ;
24809   double result;
24810 
24811   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::BB2Weight_get_maxextra self ",(void *)0) == TCL_ERROR) SWIG_fail;
24812   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__BB2Weight, 0 |  0 );
24813   if (!SWIG_IsOK(res1)) {
24814     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BB2Weight_get_maxextra" "', argument " "1"" of type '" "Xapian::BB2Weight const *""'");
24815   }
24816   arg1 = reinterpret_cast< Xapian::BB2Weight * >(argp1);
24817   {
24818     try {
24819       result = (double)((Xapian::BB2Weight const *)arg1)->get_maxextra();
24820     } catch (const Xapian::Error &e) {
24821       return XapianTclHandleError(interp, e);
24822     } catch (...) {
24823       return XapianTclHandleError(interp);
24824     }
24825   }
24826   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
24827   return TCL_OK;
24828 fail:
24829   return TCL_ERROR;
24830 }
24831 
24832 
24833 SWIGINTERN int
_wrap_delete_BB2Weight(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])24834 _wrap_delete_BB2Weight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
24835   Xapian::BB2Weight *arg1 = (Xapian::BB2Weight *) 0 ;
24836   void *argp1 = 0 ;
24837   int res1 = 0 ;
24838 
24839   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_BB2Weight self ",(void *)0) == TCL_ERROR) SWIG_fail;
24840   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__BB2Weight, SWIG_POINTER_DISOWN |  0 );
24841   if (!SWIG_IsOK(res1)) {
24842     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BB2Weight" "', argument " "1"" of type '" "Xapian::BB2Weight *""'");
24843   }
24844   arg1 = reinterpret_cast< Xapian::BB2Weight * >(argp1);
24845   {
24846     try {
24847       delete arg1;
24848     } catch (const Xapian::Error &e) {
24849       return XapianTclHandleError(interp, e);
24850     } catch (...) {
24851       return XapianTclHandleError(interp);
24852     }
24853   }
24854 
24855   return TCL_OK;
24856 fail:
24857   return TCL_ERROR;
24858 }
24859 
24860 
swig_delete_BB2Weight(void * obj)24861 SWIGINTERN void swig_delete_BB2Weight(void *obj) {
24862 Xapian::BB2Weight *arg1 = (Xapian::BB2Weight *) obj;
24863 delete arg1;
24864 }
24865 static swig_method swig_Xapian_BB2Weight_methods[] = {
24866     {"name", _wrap_BB2Weight_name},
24867     {"get_sumpart", _wrap_BB2Weight_get_sumpart},
24868     {"get_maxpart", _wrap_BB2Weight_get_maxpart},
24869     {"get_sumextra", _wrap_BB2Weight_get_sumextra},
24870     {"get_maxextra", _wrap_BB2Weight_get_maxextra},
24871     {0,0}
24872 };
24873 static swig_attribute swig_Xapian_BB2Weight_attributes[] = {
24874     {0,0,0}
24875 };
24876 static swig_class *swig_Xapian_BB2Weight_bases[] = {0,0};
24877 static const char * swig_Xapian_BB2Weight_base_names[] = {"Xapian::Weight *",0};
24878 static swig_class _wrap_class_Xapian_BB2Weight = { "BB2Weight", &SWIGTYPE_p_Xapian__BB2Weight,_wrap_new_BB2Weight, swig_delete_BB2Weight, swig_Xapian_BB2Weight_methods, swig_Xapian_BB2Weight_attributes, swig_Xapian_BB2Weight_bases,swig_Xapian_BB2Weight_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
24879 SWIGINTERN int
_wrap_new_DLHWeight(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])24880 _wrap_new_DLHWeight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
24881   Xapian::DLHWeight *result = 0 ;
24882 
24883   if (SWIG_GetArgs(interp, objc, objv,":xapian::new_DLHWeight ") == TCL_ERROR) SWIG_fail;
24884   {
24885     try {
24886       result = (Xapian::DLHWeight *)new Xapian::DLHWeight();
24887     } catch (const Xapian::Error &e) {
24888       return XapianTclHandleError(interp, e);
24889     } catch (...) {
24890       return XapianTclHandleError(interp);
24891     }
24892   }
24893   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DLHWeight,0));
24894   return TCL_OK;
24895 fail:
24896   return TCL_ERROR;
24897 }
24898 
24899 
24900 SWIGINTERN int
_wrap_DLHWeight_name(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])24901 _wrap_DLHWeight_name(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
24902   Xapian::DLHWeight *arg1 = (Xapian::DLHWeight *) 0 ;
24903   void *argp1 = 0 ;
24904   int res1 = 0 ;
24905   std::string result;
24906 
24907   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::DLHWeight_name self ",(void *)0) == TCL_ERROR) SWIG_fail;
24908   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__DLHWeight, 0 |  0 );
24909   if (!SWIG_IsOK(res1)) {
24910     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DLHWeight_name" "', argument " "1"" of type '" "Xapian::DLHWeight const *""'");
24911   }
24912   arg1 = reinterpret_cast< Xapian::DLHWeight * >(argp1);
24913   {
24914     try {
24915       result = ((Xapian::DLHWeight const *)arg1)->name();
24916     } catch (const Xapian::Error &e) {
24917       return XapianTclHandleError(interp, e);
24918     } catch (...) {
24919       return XapianTclHandleError(interp);
24920     }
24921   }
24922   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
24923   return TCL_OK;
24924 fail:
24925   return TCL_ERROR;
24926 }
24927 
24928 
24929 SWIGINTERN int
_wrap_DLHWeight_get_sumpart(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])24930 _wrap_DLHWeight_get_sumpart(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
24931   Xapian::DLHWeight *arg1 = (Xapian::DLHWeight *) 0 ;
24932   Xapian::termcount arg2 ;
24933   Xapian::termcount arg3 ;
24934   Xapian::termcount arg4 ;
24935   void *argp1 = 0 ;
24936   int res1 = 0 ;
24937   unsigned int val2 ;
24938   int ecode2 = 0 ;
24939   unsigned int val3 ;
24940   int ecode3 = 0 ;
24941   unsigned int val4 ;
24942   int ecode4 = 0 ;
24943   double result;
24944 
24945   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::DLHWeight_get_sumpart self wdf doclen uniqterms ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
24946   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__DLHWeight, 0 |  0 );
24947   if (!SWIG_IsOK(res1)) {
24948     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DLHWeight_get_sumpart" "', argument " "1"" of type '" "Xapian::DLHWeight const *""'");
24949   }
24950   arg1 = reinterpret_cast< Xapian::DLHWeight * >(argp1);
24951   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
24952   if (!SWIG_IsOK(ecode2)) {
24953     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DLHWeight_get_sumpart" "', argument " "2"" of type '" "Xapian::termcount""'");
24954   }
24955   arg2 = static_cast< Xapian::termcount >(val2);
24956   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
24957   if (!SWIG_IsOK(ecode3)) {
24958     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DLHWeight_get_sumpart" "', argument " "3"" of type '" "Xapian::termcount""'");
24959   }
24960   arg3 = static_cast< Xapian::termcount >(val3);
24961   ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
24962   if (!SWIG_IsOK(ecode4)) {
24963     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DLHWeight_get_sumpart" "', argument " "4"" of type '" "Xapian::termcount""'");
24964   }
24965   arg4 = static_cast< Xapian::termcount >(val4);
24966   {
24967     try {
24968       result = (double)((Xapian::DLHWeight const *)arg1)->get_sumpart(arg2,arg3,arg4);
24969     } catch (const Xapian::Error &e) {
24970       return XapianTclHandleError(interp, e);
24971     } catch (...) {
24972       return XapianTclHandleError(interp);
24973     }
24974   }
24975   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
24976   return TCL_OK;
24977 fail:
24978   return TCL_ERROR;
24979 }
24980 
24981 
24982 SWIGINTERN int
_wrap_DLHWeight_get_maxpart(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])24983 _wrap_DLHWeight_get_maxpart(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
24984   Xapian::DLHWeight *arg1 = (Xapian::DLHWeight *) 0 ;
24985   void *argp1 = 0 ;
24986   int res1 = 0 ;
24987   double result;
24988 
24989   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::DLHWeight_get_maxpart self ",(void *)0) == TCL_ERROR) SWIG_fail;
24990   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__DLHWeight, 0 |  0 );
24991   if (!SWIG_IsOK(res1)) {
24992     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DLHWeight_get_maxpart" "', argument " "1"" of type '" "Xapian::DLHWeight const *""'");
24993   }
24994   arg1 = reinterpret_cast< Xapian::DLHWeight * >(argp1);
24995   {
24996     try {
24997       result = (double)((Xapian::DLHWeight const *)arg1)->get_maxpart();
24998     } catch (const Xapian::Error &e) {
24999       return XapianTclHandleError(interp, e);
25000     } catch (...) {
25001       return XapianTclHandleError(interp);
25002     }
25003   }
25004   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
25005   return TCL_OK;
25006 fail:
25007   return TCL_ERROR;
25008 }
25009 
25010 
25011 SWIGINTERN int
_wrap_DLHWeight_get_sumextra(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])25012 _wrap_DLHWeight_get_sumextra(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
25013   Xapian::DLHWeight *arg1 = (Xapian::DLHWeight *) 0 ;
25014   Xapian::termcount arg2 ;
25015   Xapian::termcount arg3 ;
25016   void *argp1 = 0 ;
25017   int res1 = 0 ;
25018   unsigned int val2 ;
25019   int ecode2 = 0 ;
25020   unsigned int val3 ;
25021   int ecode3 = 0 ;
25022   double result;
25023 
25024   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::DLHWeight_get_sumextra self doclen uniqterms ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
25025   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__DLHWeight, 0 |  0 );
25026   if (!SWIG_IsOK(res1)) {
25027     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DLHWeight_get_sumextra" "', argument " "1"" of type '" "Xapian::DLHWeight const *""'");
25028   }
25029   arg1 = reinterpret_cast< Xapian::DLHWeight * >(argp1);
25030   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
25031   if (!SWIG_IsOK(ecode2)) {
25032     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DLHWeight_get_sumextra" "', argument " "2"" of type '" "Xapian::termcount""'");
25033   }
25034   arg2 = static_cast< Xapian::termcount >(val2);
25035   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
25036   if (!SWIG_IsOK(ecode3)) {
25037     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DLHWeight_get_sumextra" "', argument " "3"" of type '" "Xapian::termcount""'");
25038   }
25039   arg3 = static_cast< Xapian::termcount >(val3);
25040   {
25041     try {
25042       result = (double)((Xapian::DLHWeight const *)arg1)->get_sumextra(arg2,arg3);
25043     } catch (const Xapian::Error &e) {
25044       return XapianTclHandleError(interp, e);
25045     } catch (...) {
25046       return XapianTclHandleError(interp);
25047     }
25048   }
25049   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
25050   return TCL_OK;
25051 fail:
25052   return TCL_ERROR;
25053 }
25054 
25055 
25056 SWIGINTERN int
_wrap_DLHWeight_get_maxextra(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])25057 _wrap_DLHWeight_get_maxextra(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
25058   Xapian::DLHWeight *arg1 = (Xapian::DLHWeight *) 0 ;
25059   void *argp1 = 0 ;
25060   int res1 = 0 ;
25061   double result;
25062 
25063   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::DLHWeight_get_maxextra self ",(void *)0) == TCL_ERROR) SWIG_fail;
25064   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__DLHWeight, 0 |  0 );
25065   if (!SWIG_IsOK(res1)) {
25066     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DLHWeight_get_maxextra" "', argument " "1"" of type '" "Xapian::DLHWeight const *""'");
25067   }
25068   arg1 = reinterpret_cast< Xapian::DLHWeight * >(argp1);
25069   {
25070     try {
25071       result = (double)((Xapian::DLHWeight const *)arg1)->get_maxextra();
25072     } catch (const Xapian::Error &e) {
25073       return XapianTclHandleError(interp, e);
25074     } catch (...) {
25075       return XapianTclHandleError(interp);
25076     }
25077   }
25078   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
25079   return TCL_OK;
25080 fail:
25081   return TCL_ERROR;
25082 }
25083 
25084 
25085 SWIGINTERN int
_wrap_delete_DLHWeight(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])25086 _wrap_delete_DLHWeight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
25087   Xapian::DLHWeight *arg1 = (Xapian::DLHWeight *) 0 ;
25088   void *argp1 = 0 ;
25089   int res1 = 0 ;
25090 
25091   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_DLHWeight self ",(void *)0) == TCL_ERROR) SWIG_fail;
25092   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__DLHWeight, SWIG_POINTER_DISOWN |  0 );
25093   if (!SWIG_IsOK(res1)) {
25094     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DLHWeight" "', argument " "1"" of type '" "Xapian::DLHWeight *""'");
25095   }
25096   arg1 = reinterpret_cast< Xapian::DLHWeight * >(argp1);
25097   {
25098     try {
25099       delete arg1;
25100     } catch (const Xapian::Error &e) {
25101       return XapianTclHandleError(interp, e);
25102     } catch (...) {
25103       return XapianTclHandleError(interp);
25104     }
25105   }
25106 
25107   return TCL_OK;
25108 fail:
25109   return TCL_ERROR;
25110 }
25111 
25112 
swig_delete_DLHWeight(void * obj)25113 SWIGINTERN void swig_delete_DLHWeight(void *obj) {
25114 Xapian::DLHWeight *arg1 = (Xapian::DLHWeight *) obj;
25115 delete arg1;
25116 }
25117 static swig_method swig_Xapian_DLHWeight_methods[] = {
25118     {"name", _wrap_DLHWeight_name},
25119     {"get_sumpart", _wrap_DLHWeight_get_sumpart},
25120     {"get_maxpart", _wrap_DLHWeight_get_maxpart},
25121     {"get_sumextra", _wrap_DLHWeight_get_sumextra},
25122     {"get_maxextra", _wrap_DLHWeight_get_maxextra},
25123     {0,0}
25124 };
25125 static swig_attribute swig_Xapian_DLHWeight_attributes[] = {
25126     {0,0,0}
25127 };
25128 static swig_class *swig_Xapian_DLHWeight_bases[] = {0,0};
25129 static const char * swig_Xapian_DLHWeight_base_names[] = {"Xapian::Weight *",0};
25130 static swig_class _wrap_class_Xapian_DLHWeight = { "DLHWeight", &SWIGTYPE_p_Xapian__DLHWeight,_wrap_new_DLHWeight, swig_delete_DLHWeight, swig_Xapian_DLHWeight_methods, swig_Xapian_DLHWeight_attributes, swig_Xapian_DLHWeight_bases,swig_Xapian_DLHWeight_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
25131 SWIGINTERN int
_wrap_new_PL2Weight__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])25132 _wrap_new_PL2Weight__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
25133   double arg1 ;
25134   double val1 ;
25135   int ecode1 = 0 ;
25136   Xapian::PL2Weight *result = 0 ;
25137 
25138   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_PL2Weight c ",(void *)0) == TCL_ERROR) SWIG_fail;
25139   ecode1 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
25140   if (!SWIG_IsOK(ecode1)) {
25141     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PL2Weight" "', argument " "1"" of type '" "double""'");
25142   }
25143   arg1 = static_cast< double >(val1);
25144   {
25145     try {
25146       result = (Xapian::PL2Weight *)new Xapian::PL2Weight(arg1);
25147     } catch (const Xapian::Error &e) {
25148       return XapianTclHandleError(interp, e);
25149     } catch (...) {
25150       return XapianTclHandleError(interp);
25151     }
25152   }
25153   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__PL2Weight,0));
25154   return TCL_OK;
25155 fail:
25156   return TCL_ERROR;
25157 }
25158 
25159 
25160 SWIGINTERN int
_wrap_new_PL2Weight__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])25161 _wrap_new_PL2Weight__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
25162   Xapian::PL2Weight *result = 0 ;
25163 
25164   if (SWIG_GetArgs(interp, objc, objv,":xapian::new_PL2Weight ") == TCL_ERROR) SWIG_fail;
25165   {
25166     try {
25167       result = (Xapian::PL2Weight *)new Xapian::PL2Weight();
25168     } catch (const Xapian::Error &e) {
25169       return XapianTclHandleError(interp, e);
25170     } catch (...) {
25171       return XapianTclHandleError(interp);
25172     }
25173   }
25174   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__PL2Weight,0));
25175   return TCL_OK;
25176 fail:
25177   return TCL_ERROR;
25178 }
25179 
25180 
25181 SWIGINTERN int
_wrap_new_PL2Weight(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])25182 _wrap_new_PL2Weight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
25183   Tcl_Obj *CONST *argv = objv+1;
25184   int argc = objc-1;
25185   if (argc == 0) {
25186     return _wrap_new_PL2Weight__SWIG_1(clientData, interp, objc, argv - 1);
25187   }
25188   if (argc == 1) {
25189     int _v;
25190     {
25191       int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
25192       _v = SWIG_CheckState(res);
25193     }
25194     if (_v) {
25195       return _wrap_new_PL2Weight__SWIG_0(clientData, interp, objc, argv - 1);
25196     }
25197   }
25198 
25199   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_PL2Weight'.\n"
25200     "  Possible C/C++ prototypes are:\n"
25201     "    Xapian::PL2Weight::PL2Weight(double)\n"
25202     "    Xapian::PL2Weight::PL2Weight()\n", TCL_STATIC);
25203   return TCL_ERROR;
25204 }
25205 
25206 
25207 SWIGINTERN int
_wrap_PL2Weight_name(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])25208 _wrap_PL2Weight_name(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
25209   Xapian::PL2Weight *arg1 = (Xapian::PL2Weight *) 0 ;
25210   void *argp1 = 0 ;
25211   int res1 = 0 ;
25212   std::string result;
25213 
25214   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::PL2Weight_name self ",(void *)0) == TCL_ERROR) SWIG_fail;
25215   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PL2Weight, 0 |  0 );
25216   if (!SWIG_IsOK(res1)) {
25217     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PL2Weight_name" "', argument " "1"" of type '" "Xapian::PL2Weight const *""'");
25218   }
25219   arg1 = reinterpret_cast< Xapian::PL2Weight * >(argp1);
25220   {
25221     try {
25222       result = ((Xapian::PL2Weight const *)arg1)->name();
25223     } catch (const Xapian::Error &e) {
25224       return XapianTclHandleError(interp, e);
25225     } catch (...) {
25226       return XapianTclHandleError(interp);
25227     }
25228   }
25229   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
25230   return TCL_OK;
25231 fail:
25232   return TCL_ERROR;
25233 }
25234 
25235 
25236 SWIGINTERN int
_wrap_PL2Weight_get_sumpart(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])25237 _wrap_PL2Weight_get_sumpart(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
25238   Xapian::PL2Weight *arg1 = (Xapian::PL2Weight *) 0 ;
25239   Xapian::termcount arg2 ;
25240   Xapian::termcount arg3 ;
25241   Xapian::termcount arg4 ;
25242   void *argp1 = 0 ;
25243   int res1 = 0 ;
25244   unsigned int val2 ;
25245   int ecode2 = 0 ;
25246   unsigned int val3 ;
25247   int ecode3 = 0 ;
25248   unsigned int val4 ;
25249   int ecode4 = 0 ;
25250   double result;
25251 
25252   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::PL2Weight_get_sumpart self wdf doclen uniqterms ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
25253   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PL2Weight, 0 |  0 );
25254   if (!SWIG_IsOK(res1)) {
25255     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PL2Weight_get_sumpart" "', argument " "1"" of type '" "Xapian::PL2Weight const *""'");
25256   }
25257   arg1 = reinterpret_cast< Xapian::PL2Weight * >(argp1);
25258   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
25259   if (!SWIG_IsOK(ecode2)) {
25260     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PL2Weight_get_sumpart" "', argument " "2"" of type '" "Xapian::termcount""'");
25261   }
25262   arg2 = static_cast< Xapian::termcount >(val2);
25263   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
25264   if (!SWIG_IsOK(ecode3)) {
25265     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PL2Weight_get_sumpart" "', argument " "3"" of type '" "Xapian::termcount""'");
25266   }
25267   arg3 = static_cast< Xapian::termcount >(val3);
25268   ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
25269   if (!SWIG_IsOK(ecode4)) {
25270     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PL2Weight_get_sumpart" "', argument " "4"" of type '" "Xapian::termcount""'");
25271   }
25272   arg4 = static_cast< Xapian::termcount >(val4);
25273   {
25274     try {
25275       result = (double)((Xapian::PL2Weight const *)arg1)->get_sumpart(arg2,arg3,arg4);
25276     } catch (const Xapian::Error &e) {
25277       return XapianTclHandleError(interp, e);
25278     } catch (...) {
25279       return XapianTclHandleError(interp);
25280     }
25281   }
25282   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
25283   return TCL_OK;
25284 fail:
25285   return TCL_ERROR;
25286 }
25287 
25288 
25289 SWIGINTERN int
_wrap_PL2Weight_get_maxpart(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])25290 _wrap_PL2Weight_get_maxpart(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
25291   Xapian::PL2Weight *arg1 = (Xapian::PL2Weight *) 0 ;
25292   void *argp1 = 0 ;
25293   int res1 = 0 ;
25294   double result;
25295 
25296   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::PL2Weight_get_maxpart self ",(void *)0) == TCL_ERROR) SWIG_fail;
25297   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PL2Weight, 0 |  0 );
25298   if (!SWIG_IsOK(res1)) {
25299     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PL2Weight_get_maxpart" "', argument " "1"" of type '" "Xapian::PL2Weight const *""'");
25300   }
25301   arg1 = reinterpret_cast< Xapian::PL2Weight * >(argp1);
25302   {
25303     try {
25304       result = (double)((Xapian::PL2Weight const *)arg1)->get_maxpart();
25305     } catch (const Xapian::Error &e) {
25306       return XapianTclHandleError(interp, e);
25307     } catch (...) {
25308       return XapianTclHandleError(interp);
25309     }
25310   }
25311   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
25312   return TCL_OK;
25313 fail:
25314   return TCL_ERROR;
25315 }
25316 
25317 
25318 SWIGINTERN int
_wrap_PL2Weight_get_sumextra(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])25319 _wrap_PL2Weight_get_sumextra(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
25320   Xapian::PL2Weight *arg1 = (Xapian::PL2Weight *) 0 ;
25321   Xapian::termcount arg2 ;
25322   Xapian::termcount arg3 ;
25323   void *argp1 = 0 ;
25324   int res1 = 0 ;
25325   unsigned int val2 ;
25326   int ecode2 = 0 ;
25327   unsigned int val3 ;
25328   int ecode3 = 0 ;
25329   double result;
25330 
25331   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::PL2Weight_get_sumextra self doclen uniqterms ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
25332   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PL2Weight, 0 |  0 );
25333   if (!SWIG_IsOK(res1)) {
25334     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PL2Weight_get_sumextra" "', argument " "1"" of type '" "Xapian::PL2Weight const *""'");
25335   }
25336   arg1 = reinterpret_cast< Xapian::PL2Weight * >(argp1);
25337   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
25338   if (!SWIG_IsOK(ecode2)) {
25339     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PL2Weight_get_sumextra" "', argument " "2"" of type '" "Xapian::termcount""'");
25340   }
25341   arg2 = static_cast< Xapian::termcount >(val2);
25342   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
25343   if (!SWIG_IsOK(ecode3)) {
25344     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PL2Weight_get_sumextra" "', argument " "3"" of type '" "Xapian::termcount""'");
25345   }
25346   arg3 = static_cast< Xapian::termcount >(val3);
25347   {
25348     try {
25349       result = (double)((Xapian::PL2Weight const *)arg1)->get_sumextra(arg2,arg3);
25350     } catch (const Xapian::Error &e) {
25351       return XapianTclHandleError(interp, e);
25352     } catch (...) {
25353       return XapianTclHandleError(interp);
25354     }
25355   }
25356   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
25357   return TCL_OK;
25358 fail:
25359   return TCL_ERROR;
25360 }
25361 
25362 
25363 SWIGINTERN int
_wrap_PL2Weight_get_maxextra(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])25364 _wrap_PL2Weight_get_maxextra(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
25365   Xapian::PL2Weight *arg1 = (Xapian::PL2Weight *) 0 ;
25366   void *argp1 = 0 ;
25367   int res1 = 0 ;
25368   double result;
25369 
25370   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::PL2Weight_get_maxextra self ",(void *)0) == TCL_ERROR) SWIG_fail;
25371   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PL2Weight, 0 |  0 );
25372   if (!SWIG_IsOK(res1)) {
25373     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PL2Weight_get_maxextra" "', argument " "1"" of type '" "Xapian::PL2Weight const *""'");
25374   }
25375   arg1 = reinterpret_cast< Xapian::PL2Weight * >(argp1);
25376   {
25377     try {
25378       result = (double)((Xapian::PL2Weight const *)arg1)->get_maxextra();
25379     } catch (const Xapian::Error &e) {
25380       return XapianTclHandleError(interp, e);
25381     } catch (...) {
25382       return XapianTclHandleError(interp);
25383     }
25384   }
25385   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
25386   return TCL_OK;
25387 fail:
25388   return TCL_ERROR;
25389 }
25390 
25391 
25392 SWIGINTERN int
_wrap_delete_PL2Weight(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])25393 _wrap_delete_PL2Weight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
25394   Xapian::PL2Weight *arg1 = (Xapian::PL2Weight *) 0 ;
25395   void *argp1 = 0 ;
25396   int res1 = 0 ;
25397 
25398   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_PL2Weight self ",(void *)0) == TCL_ERROR) SWIG_fail;
25399   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PL2Weight, SWIG_POINTER_DISOWN |  0 );
25400   if (!SWIG_IsOK(res1)) {
25401     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PL2Weight" "', argument " "1"" of type '" "Xapian::PL2Weight *""'");
25402   }
25403   arg1 = reinterpret_cast< Xapian::PL2Weight * >(argp1);
25404   {
25405     try {
25406       delete arg1;
25407     } catch (const Xapian::Error &e) {
25408       return XapianTclHandleError(interp, e);
25409     } catch (...) {
25410       return XapianTclHandleError(interp);
25411     }
25412   }
25413 
25414   return TCL_OK;
25415 fail:
25416   return TCL_ERROR;
25417 }
25418 
25419 
swig_delete_PL2Weight(void * obj)25420 SWIGINTERN void swig_delete_PL2Weight(void *obj) {
25421 Xapian::PL2Weight *arg1 = (Xapian::PL2Weight *) obj;
25422 delete arg1;
25423 }
25424 static swig_method swig_Xapian_PL2Weight_methods[] = {
25425     {"name", _wrap_PL2Weight_name},
25426     {"get_sumpart", _wrap_PL2Weight_get_sumpart},
25427     {"get_maxpart", _wrap_PL2Weight_get_maxpart},
25428     {"get_sumextra", _wrap_PL2Weight_get_sumextra},
25429     {"get_maxextra", _wrap_PL2Weight_get_maxextra},
25430     {0,0}
25431 };
25432 static swig_attribute swig_Xapian_PL2Weight_attributes[] = {
25433     {0,0,0}
25434 };
25435 static swig_class *swig_Xapian_PL2Weight_bases[] = {0,0};
25436 static const char * swig_Xapian_PL2Weight_base_names[] = {"Xapian::Weight *",0};
25437 static swig_class _wrap_class_Xapian_PL2Weight = { "PL2Weight", &SWIGTYPE_p_Xapian__PL2Weight,_wrap_new_PL2Weight, swig_delete_PL2Weight, swig_Xapian_PL2Weight_methods, swig_Xapian_PL2Weight_attributes, swig_Xapian_PL2Weight_bases,swig_Xapian_PL2Weight_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
25438 SWIGINTERN int
_wrap_new_PL2PlusWeight__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])25439 _wrap_new_PL2PlusWeight__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
25440   double arg1 ;
25441   double arg2 ;
25442   double val1 ;
25443   int ecode1 = 0 ;
25444   double val2 ;
25445   int ecode2 = 0 ;
25446   Xapian::PL2PlusWeight *result = 0 ;
25447 
25448   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::new_PL2PlusWeight c delta ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
25449   ecode1 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
25450   if (!SWIG_IsOK(ecode1)) {
25451     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PL2PlusWeight" "', argument " "1"" of type '" "double""'");
25452   }
25453   arg1 = static_cast< double >(val1);
25454   ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
25455   if (!SWIG_IsOK(ecode2)) {
25456     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PL2PlusWeight" "', argument " "2"" of type '" "double""'");
25457   }
25458   arg2 = static_cast< double >(val2);
25459   {
25460     try {
25461       result = (Xapian::PL2PlusWeight *)new Xapian::PL2PlusWeight(arg1,arg2);
25462     } catch (const Xapian::Error &e) {
25463       return XapianTclHandleError(interp, e);
25464     } catch (...) {
25465       return XapianTclHandleError(interp);
25466     }
25467   }
25468   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__PL2PlusWeight,0));
25469   return TCL_OK;
25470 fail:
25471   return TCL_ERROR;
25472 }
25473 
25474 
25475 SWIGINTERN int
_wrap_new_PL2PlusWeight__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])25476 _wrap_new_PL2PlusWeight__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
25477   Xapian::PL2PlusWeight *result = 0 ;
25478 
25479   if (SWIG_GetArgs(interp, objc, objv,":xapian::new_PL2PlusWeight ") == TCL_ERROR) SWIG_fail;
25480   {
25481     try {
25482       result = (Xapian::PL2PlusWeight *)new Xapian::PL2PlusWeight();
25483     } catch (const Xapian::Error &e) {
25484       return XapianTclHandleError(interp, e);
25485     } catch (...) {
25486       return XapianTclHandleError(interp);
25487     }
25488   }
25489   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__PL2PlusWeight,0));
25490   return TCL_OK;
25491 fail:
25492   return TCL_ERROR;
25493 }
25494 
25495 
25496 SWIGINTERN int
_wrap_new_PL2PlusWeight(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])25497 _wrap_new_PL2PlusWeight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
25498   Tcl_Obj *CONST *argv = objv+1;
25499   int argc = objc-1;
25500   if (argc == 0) {
25501     return _wrap_new_PL2PlusWeight__SWIG_1(clientData, interp, objc, argv - 1);
25502   }
25503   if (argc == 2) {
25504     int _v;
25505     {
25506       int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
25507       _v = SWIG_CheckState(res);
25508     }
25509     if (_v) {
25510       {
25511         int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
25512         _v = SWIG_CheckState(res);
25513       }
25514       if (_v) {
25515         return _wrap_new_PL2PlusWeight__SWIG_0(clientData, interp, objc, argv - 1);
25516       }
25517     }
25518   }
25519 
25520   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_PL2PlusWeight'.\n"
25521     "  Possible C/C++ prototypes are:\n"
25522     "    Xapian::PL2PlusWeight::PL2PlusWeight(double,double)\n"
25523     "    Xapian::PL2PlusWeight::PL2PlusWeight()\n", TCL_STATIC);
25524   return TCL_ERROR;
25525 }
25526 
25527 
25528 SWIGINTERN int
_wrap_PL2PlusWeight_name(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])25529 _wrap_PL2PlusWeight_name(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
25530   Xapian::PL2PlusWeight *arg1 = (Xapian::PL2PlusWeight *) 0 ;
25531   void *argp1 = 0 ;
25532   int res1 = 0 ;
25533   std::string result;
25534 
25535   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::PL2PlusWeight_name self ",(void *)0) == TCL_ERROR) SWIG_fail;
25536   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PL2PlusWeight, 0 |  0 );
25537   if (!SWIG_IsOK(res1)) {
25538     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PL2PlusWeight_name" "', argument " "1"" of type '" "Xapian::PL2PlusWeight const *""'");
25539   }
25540   arg1 = reinterpret_cast< Xapian::PL2PlusWeight * >(argp1);
25541   {
25542     try {
25543       result = ((Xapian::PL2PlusWeight const *)arg1)->name();
25544     } catch (const Xapian::Error &e) {
25545       return XapianTclHandleError(interp, e);
25546     } catch (...) {
25547       return XapianTclHandleError(interp);
25548     }
25549   }
25550   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
25551   return TCL_OK;
25552 fail:
25553   return TCL_ERROR;
25554 }
25555 
25556 
25557 SWIGINTERN int
_wrap_PL2PlusWeight_get_sumpart(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])25558 _wrap_PL2PlusWeight_get_sumpart(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
25559   Xapian::PL2PlusWeight *arg1 = (Xapian::PL2PlusWeight *) 0 ;
25560   Xapian::termcount arg2 ;
25561   Xapian::termcount arg3 ;
25562   Xapian::termcount arg4 ;
25563   void *argp1 = 0 ;
25564   int res1 = 0 ;
25565   unsigned int val2 ;
25566   int ecode2 = 0 ;
25567   unsigned int val3 ;
25568   int ecode3 = 0 ;
25569   unsigned int val4 ;
25570   int ecode4 = 0 ;
25571   double result;
25572 
25573   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::PL2PlusWeight_get_sumpart self wdf doclen uniqterms ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
25574   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PL2PlusWeight, 0 |  0 );
25575   if (!SWIG_IsOK(res1)) {
25576     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PL2PlusWeight_get_sumpart" "', argument " "1"" of type '" "Xapian::PL2PlusWeight const *""'");
25577   }
25578   arg1 = reinterpret_cast< Xapian::PL2PlusWeight * >(argp1);
25579   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
25580   if (!SWIG_IsOK(ecode2)) {
25581     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PL2PlusWeight_get_sumpart" "', argument " "2"" of type '" "Xapian::termcount""'");
25582   }
25583   arg2 = static_cast< Xapian::termcount >(val2);
25584   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
25585   if (!SWIG_IsOK(ecode3)) {
25586     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PL2PlusWeight_get_sumpart" "', argument " "3"" of type '" "Xapian::termcount""'");
25587   }
25588   arg3 = static_cast< Xapian::termcount >(val3);
25589   ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
25590   if (!SWIG_IsOK(ecode4)) {
25591     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PL2PlusWeight_get_sumpart" "', argument " "4"" of type '" "Xapian::termcount""'");
25592   }
25593   arg4 = static_cast< Xapian::termcount >(val4);
25594   {
25595     try {
25596       result = (double)((Xapian::PL2PlusWeight const *)arg1)->get_sumpart(arg2,arg3,arg4);
25597     } catch (const Xapian::Error &e) {
25598       return XapianTclHandleError(interp, e);
25599     } catch (...) {
25600       return XapianTclHandleError(interp);
25601     }
25602   }
25603   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
25604   return TCL_OK;
25605 fail:
25606   return TCL_ERROR;
25607 }
25608 
25609 
25610 SWIGINTERN int
_wrap_PL2PlusWeight_get_maxpart(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])25611 _wrap_PL2PlusWeight_get_maxpart(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
25612   Xapian::PL2PlusWeight *arg1 = (Xapian::PL2PlusWeight *) 0 ;
25613   void *argp1 = 0 ;
25614   int res1 = 0 ;
25615   double result;
25616 
25617   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::PL2PlusWeight_get_maxpart self ",(void *)0) == TCL_ERROR) SWIG_fail;
25618   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PL2PlusWeight, 0 |  0 );
25619   if (!SWIG_IsOK(res1)) {
25620     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PL2PlusWeight_get_maxpart" "', argument " "1"" of type '" "Xapian::PL2PlusWeight const *""'");
25621   }
25622   arg1 = reinterpret_cast< Xapian::PL2PlusWeight * >(argp1);
25623   {
25624     try {
25625       result = (double)((Xapian::PL2PlusWeight const *)arg1)->get_maxpart();
25626     } catch (const Xapian::Error &e) {
25627       return XapianTclHandleError(interp, e);
25628     } catch (...) {
25629       return XapianTclHandleError(interp);
25630     }
25631   }
25632   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
25633   return TCL_OK;
25634 fail:
25635   return TCL_ERROR;
25636 }
25637 
25638 
25639 SWIGINTERN int
_wrap_PL2PlusWeight_get_sumextra(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])25640 _wrap_PL2PlusWeight_get_sumextra(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
25641   Xapian::PL2PlusWeight *arg1 = (Xapian::PL2PlusWeight *) 0 ;
25642   Xapian::termcount arg2 ;
25643   Xapian::termcount arg3 ;
25644   void *argp1 = 0 ;
25645   int res1 = 0 ;
25646   unsigned int val2 ;
25647   int ecode2 = 0 ;
25648   unsigned int val3 ;
25649   int ecode3 = 0 ;
25650   double result;
25651 
25652   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::PL2PlusWeight_get_sumextra self doclen uniqterms ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
25653   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PL2PlusWeight, 0 |  0 );
25654   if (!SWIG_IsOK(res1)) {
25655     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PL2PlusWeight_get_sumextra" "', argument " "1"" of type '" "Xapian::PL2PlusWeight const *""'");
25656   }
25657   arg1 = reinterpret_cast< Xapian::PL2PlusWeight * >(argp1);
25658   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
25659   if (!SWIG_IsOK(ecode2)) {
25660     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PL2PlusWeight_get_sumextra" "', argument " "2"" of type '" "Xapian::termcount""'");
25661   }
25662   arg2 = static_cast< Xapian::termcount >(val2);
25663   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
25664   if (!SWIG_IsOK(ecode3)) {
25665     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PL2PlusWeight_get_sumextra" "', argument " "3"" of type '" "Xapian::termcount""'");
25666   }
25667   arg3 = static_cast< Xapian::termcount >(val3);
25668   {
25669     try {
25670       result = (double)((Xapian::PL2PlusWeight const *)arg1)->get_sumextra(arg2,arg3);
25671     } catch (const Xapian::Error &e) {
25672       return XapianTclHandleError(interp, e);
25673     } catch (...) {
25674       return XapianTclHandleError(interp);
25675     }
25676   }
25677   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
25678   return TCL_OK;
25679 fail:
25680   return TCL_ERROR;
25681 }
25682 
25683 
25684 SWIGINTERN int
_wrap_PL2PlusWeight_get_maxextra(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])25685 _wrap_PL2PlusWeight_get_maxextra(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
25686   Xapian::PL2PlusWeight *arg1 = (Xapian::PL2PlusWeight *) 0 ;
25687   void *argp1 = 0 ;
25688   int res1 = 0 ;
25689   double result;
25690 
25691   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::PL2PlusWeight_get_maxextra self ",(void *)0) == TCL_ERROR) SWIG_fail;
25692   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PL2PlusWeight, 0 |  0 );
25693   if (!SWIG_IsOK(res1)) {
25694     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PL2PlusWeight_get_maxextra" "', argument " "1"" of type '" "Xapian::PL2PlusWeight const *""'");
25695   }
25696   arg1 = reinterpret_cast< Xapian::PL2PlusWeight * >(argp1);
25697   {
25698     try {
25699       result = (double)((Xapian::PL2PlusWeight const *)arg1)->get_maxextra();
25700     } catch (const Xapian::Error &e) {
25701       return XapianTclHandleError(interp, e);
25702     } catch (...) {
25703       return XapianTclHandleError(interp);
25704     }
25705   }
25706   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
25707   return TCL_OK;
25708 fail:
25709   return TCL_ERROR;
25710 }
25711 
25712 
25713 SWIGINTERN int
_wrap_delete_PL2PlusWeight(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])25714 _wrap_delete_PL2PlusWeight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
25715   Xapian::PL2PlusWeight *arg1 = (Xapian::PL2PlusWeight *) 0 ;
25716   void *argp1 = 0 ;
25717   int res1 = 0 ;
25718 
25719   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_PL2PlusWeight self ",(void *)0) == TCL_ERROR) SWIG_fail;
25720   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PL2PlusWeight, SWIG_POINTER_DISOWN |  0 );
25721   if (!SWIG_IsOK(res1)) {
25722     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PL2PlusWeight" "', argument " "1"" of type '" "Xapian::PL2PlusWeight *""'");
25723   }
25724   arg1 = reinterpret_cast< Xapian::PL2PlusWeight * >(argp1);
25725   {
25726     try {
25727       delete arg1;
25728     } catch (const Xapian::Error &e) {
25729       return XapianTclHandleError(interp, e);
25730     } catch (...) {
25731       return XapianTclHandleError(interp);
25732     }
25733   }
25734 
25735   return TCL_OK;
25736 fail:
25737   return TCL_ERROR;
25738 }
25739 
25740 
swig_delete_PL2PlusWeight(void * obj)25741 SWIGINTERN void swig_delete_PL2PlusWeight(void *obj) {
25742 Xapian::PL2PlusWeight *arg1 = (Xapian::PL2PlusWeight *) obj;
25743 delete arg1;
25744 }
25745 static swig_method swig_Xapian_PL2PlusWeight_methods[] = {
25746     {"name", _wrap_PL2PlusWeight_name},
25747     {"get_sumpart", _wrap_PL2PlusWeight_get_sumpart},
25748     {"get_maxpart", _wrap_PL2PlusWeight_get_maxpart},
25749     {"get_sumextra", _wrap_PL2PlusWeight_get_sumextra},
25750     {"get_maxextra", _wrap_PL2PlusWeight_get_maxextra},
25751     {0,0}
25752 };
25753 static swig_attribute swig_Xapian_PL2PlusWeight_attributes[] = {
25754     {0,0,0}
25755 };
25756 static swig_class *swig_Xapian_PL2PlusWeight_bases[] = {0,0};
25757 static const char * swig_Xapian_PL2PlusWeight_base_names[] = {"Xapian::Weight *",0};
25758 static swig_class _wrap_class_Xapian_PL2PlusWeight = { "PL2PlusWeight", &SWIGTYPE_p_Xapian__PL2PlusWeight,_wrap_new_PL2PlusWeight, swig_delete_PL2PlusWeight, swig_Xapian_PL2PlusWeight_methods, swig_Xapian_PL2PlusWeight_attributes, swig_Xapian_PL2PlusWeight_bases,swig_Xapian_PL2PlusWeight_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
25759 SWIGINTERN int
_wrap_new_DPHWeight(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])25760 _wrap_new_DPHWeight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
25761   Xapian::DPHWeight *result = 0 ;
25762 
25763   if (SWIG_GetArgs(interp, objc, objv,":xapian::new_DPHWeight ") == TCL_ERROR) SWIG_fail;
25764   {
25765     try {
25766       result = (Xapian::DPHWeight *)new Xapian::DPHWeight();
25767     } catch (const Xapian::Error &e) {
25768       return XapianTclHandleError(interp, e);
25769     } catch (...) {
25770       return XapianTclHandleError(interp);
25771     }
25772   }
25773   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DPHWeight,0));
25774   return TCL_OK;
25775 fail:
25776   return TCL_ERROR;
25777 }
25778 
25779 
25780 SWIGINTERN int
_wrap_DPHWeight_name(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])25781 _wrap_DPHWeight_name(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
25782   Xapian::DPHWeight *arg1 = (Xapian::DPHWeight *) 0 ;
25783   void *argp1 = 0 ;
25784   int res1 = 0 ;
25785   std::string result;
25786 
25787   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::DPHWeight_name self ",(void *)0) == TCL_ERROR) SWIG_fail;
25788   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__DPHWeight, 0 |  0 );
25789   if (!SWIG_IsOK(res1)) {
25790     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DPHWeight_name" "', argument " "1"" of type '" "Xapian::DPHWeight const *""'");
25791   }
25792   arg1 = reinterpret_cast< Xapian::DPHWeight * >(argp1);
25793   {
25794     try {
25795       result = ((Xapian::DPHWeight const *)arg1)->name();
25796     } catch (const Xapian::Error &e) {
25797       return XapianTclHandleError(interp, e);
25798     } catch (...) {
25799       return XapianTclHandleError(interp);
25800     }
25801   }
25802   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
25803   return TCL_OK;
25804 fail:
25805   return TCL_ERROR;
25806 }
25807 
25808 
25809 SWIGINTERN int
_wrap_DPHWeight_get_sumpart(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])25810 _wrap_DPHWeight_get_sumpart(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
25811   Xapian::DPHWeight *arg1 = (Xapian::DPHWeight *) 0 ;
25812   Xapian::termcount arg2 ;
25813   Xapian::termcount arg3 ;
25814   Xapian::termcount arg4 ;
25815   void *argp1 = 0 ;
25816   int res1 = 0 ;
25817   unsigned int val2 ;
25818   int ecode2 = 0 ;
25819   unsigned int val3 ;
25820   int ecode3 = 0 ;
25821   unsigned int val4 ;
25822   int ecode4 = 0 ;
25823   double result;
25824 
25825   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::DPHWeight_get_sumpart self wdf doclen uniqterms ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
25826   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__DPHWeight, 0 |  0 );
25827   if (!SWIG_IsOK(res1)) {
25828     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DPHWeight_get_sumpart" "', argument " "1"" of type '" "Xapian::DPHWeight const *""'");
25829   }
25830   arg1 = reinterpret_cast< Xapian::DPHWeight * >(argp1);
25831   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
25832   if (!SWIG_IsOK(ecode2)) {
25833     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DPHWeight_get_sumpart" "', argument " "2"" of type '" "Xapian::termcount""'");
25834   }
25835   arg2 = static_cast< Xapian::termcount >(val2);
25836   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
25837   if (!SWIG_IsOK(ecode3)) {
25838     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DPHWeight_get_sumpart" "', argument " "3"" of type '" "Xapian::termcount""'");
25839   }
25840   arg3 = static_cast< Xapian::termcount >(val3);
25841   ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
25842   if (!SWIG_IsOK(ecode4)) {
25843     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DPHWeight_get_sumpart" "', argument " "4"" of type '" "Xapian::termcount""'");
25844   }
25845   arg4 = static_cast< Xapian::termcount >(val4);
25846   {
25847     try {
25848       result = (double)((Xapian::DPHWeight const *)arg1)->get_sumpart(arg2,arg3,arg4);
25849     } catch (const Xapian::Error &e) {
25850       return XapianTclHandleError(interp, e);
25851     } catch (...) {
25852       return XapianTclHandleError(interp);
25853     }
25854   }
25855   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
25856   return TCL_OK;
25857 fail:
25858   return TCL_ERROR;
25859 }
25860 
25861 
25862 SWIGINTERN int
_wrap_DPHWeight_get_maxpart(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])25863 _wrap_DPHWeight_get_maxpart(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
25864   Xapian::DPHWeight *arg1 = (Xapian::DPHWeight *) 0 ;
25865   void *argp1 = 0 ;
25866   int res1 = 0 ;
25867   double result;
25868 
25869   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::DPHWeight_get_maxpart self ",(void *)0) == TCL_ERROR) SWIG_fail;
25870   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__DPHWeight, 0 |  0 );
25871   if (!SWIG_IsOK(res1)) {
25872     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DPHWeight_get_maxpart" "', argument " "1"" of type '" "Xapian::DPHWeight const *""'");
25873   }
25874   arg1 = reinterpret_cast< Xapian::DPHWeight * >(argp1);
25875   {
25876     try {
25877       result = (double)((Xapian::DPHWeight const *)arg1)->get_maxpart();
25878     } catch (const Xapian::Error &e) {
25879       return XapianTclHandleError(interp, e);
25880     } catch (...) {
25881       return XapianTclHandleError(interp);
25882     }
25883   }
25884   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
25885   return TCL_OK;
25886 fail:
25887   return TCL_ERROR;
25888 }
25889 
25890 
25891 SWIGINTERN int
_wrap_DPHWeight_get_sumextra(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])25892 _wrap_DPHWeight_get_sumextra(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
25893   Xapian::DPHWeight *arg1 = (Xapian::DPHWeight *) 0 ;
25894   Xapian::termcount arg2 ;
25895   Xapian::termcount arg3 ;
25896   void *argp1 = 0 ;
25897   int res1 = 0 ;
25898   unsigned int val2 ;
25899   int ecode2 = 0 ;
25900   unsigned int val3 ;
25901   int ecode3 = 0 ;
25902   double result;
25903 
25904   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::DPHWeight_get_sumextra self doclen uniqterms ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
25905   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__DPHWeight, 0 |  0 );
25906   if (!SWIG_IsOK(res1)) {
25907     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DPHWeight_get_sumextra" "', argument " "1"" of type '" "Xapian::DPHWeight const *""'");
25908   }
25909   arg1 = reinterpret_cast< Xapian::DPHWeight * >(argp1);
25910   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
25911   if (!SWIG_IsOK(ecode2)) {
25912     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DPHWeight_get_sumextra" "', argument " "2"" of type '" "Xapian::termcount""'");
25913   }
25914   arg2 = static_cast< Xapian::termcount >(val2);
25915   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
25916   if (!SWIG_IsOK(ecode3)) {
25917     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DPHWeight_get_sumextra" "', argument " "3"" of type '" "Xapian::termcount""'");
25918   }
25919   arg3 = static_cast< Xapian::termcount >(val3);
25920   {
25921     try {
25922       result = (double)((Xapian::DPHWeight const *)arg1)->get_sumextra(arg2,arg3);
25923     } catch (const Xapian::Error &e) {
25924       return XapianTclHandleError(interp, e);
25925     } catch (...) {
25926       return XapianTclHandleError(interp);
25927     }
25928   }
25929   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
25930   return TCL_OK;
25931 fail:
25932   return TCL_ERROR;
25933 }
25934 
25935 
25936 SWIGINTERN int
_wrap_DPHWeight_get_maxextra(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])25937 _wrap_DPHWeight_get_maxextra(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
25938   Xapian::DPHWeight *arg1 = (Xapian::DPHWeight *) 0 ;
25939   void *argp1 = 0 ;
25940   int res1 = 0 ;
25941   double result;
25942 
25943   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::DPHWeight_get_maxextra self ",(void *)0) == TCL_ERROR) SWIG_fail;
25944   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__DPHWeight, 0 |  0 );
25945   if (!SWIG_IsOK(res1)) {
25946     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DPHWeight_get_maxextra" "', argument " "1"" of type '" "Xapian::DPHWeight const *""'");
25947   }
25948   arg1 = reinterpret_cast< Xapian::DPHWeight * >(argp1);
25949   {
25950     try {
25951       result = (double)((Xapian::DPHWeight const *)arg1)->get_maxextra();
25952     } catch (const Xapian::Error &e) {
25953       return XapianTclHandleError(interp, e);
25954     } catch (...) {
25955       return XapianTclHandleError(interp);
25956     }
25957   }
25958   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
25959   return TCL_OK;
25960 fail:
25961   return TCL_ERROR;
25962 }
25963 
25964 
25965 SWIGINTERN int
_wrap_delete_DPHWeight(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])25966 _wrap_delete_DPHWeight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
25967   Xapian::DPHWeight *arg1 = (Xapian::DPHWeight *) 0 ;
25968   void *argp1 = 0 ;
25969   int res1 = 0 ;
25970 
25971   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_DPHWeight self ",(void *)0) == TCL_ERROR) SWIG_fail;
25972   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__DPHWeight, SWIG_POINTER_DISOWN |  0 );
25973   if (!SWIG_IsOK(res1)) {
25974     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DPHWeight" "', argument " "1"" of type '" "Xapian::DPHWeight *""'");
25975   }
25976   arg1 = reinterpret_cast< Xapian::DPHWeight * >(argp1);
25977   {
25978     try {
25979       delete arg1;
25980     } catch (const Xapian::Error &e) {
25981       return XapianTclHandleError(interp, e);
25982     } catch (...) {
25983       return XapianTclHandleError(interp);
25984     }
25985   }
25986 
25987   return TCL_OK;
25988 fail:
25989   return TCL_ERROR;
25990 }
25991 
25992 
swig_delete_DPHWeight(void * obj)25993 SWIGINTERN void swig_delete_DPHWeight(void *obj) {
25994 Xapian::DPHWeight *arg1 = (Xapian::DPHWeight *) obj;
25995 delete arg1;
25996 }
25997 static swig_method swig_Xapian_DPHWeight_methods[] = {
25998     {"name", _wrap_DPHWeight_name},
25999     {"get_sumpart", _wrap_DPHWeight_get_sumpart},
26000     {"get_maxpart", _wrap_DPHWeight_get_maxpart},
26001     {"get_sumextra", _wrap_DPHWeight_get_sumextra},
26002     {"get_maxextra", _wrap_DPHWeight_get_maxextra},
26003     {0,0}
26004 };
26005 static swig_attribute swig_Xapian_DPHWeight_attributes[] = {
26006     {0,0,0}
26007 };
26008 static swig_class *swig_Xapian_DPHWeight_bases[] = {0,0};
26009 static const char * swig_Xapian_DPHWeight_base_names[] = {"Xapian::Weight *",0};
26010 static swig_class _wrap_class_Xapian_DPHWeight = { "DPHWeight", &SWIGTYPE_p_Xapian__DPHWeight,_wrap_new_DPHWeight, swig_delete_DPHWeight, swig_Xapian_DPHWeight_methods, swig_Xapian_DPHWeight_attributes, swig_Xapian_DPHWeight_bases,swig_Xapian_DPHWeight_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
26011 SWIGINTERN int
_wrap_new_LMWeight__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])26012 _wrap_new_LMWeight__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
26013   double arg1 ;
26014   Xapian::Weight::type_smoothing arg2 ;
26015   double arg3 ;
26016   double arg4 ;
26017   double val1 ;
26018   int ecode1 = 0 ;
26019   int val2 ;
26020   int ecode2 = 0 ;
26021   double val3 ;
26022   int ecode3 = 0 ;
26023   double val4 ;
26024   int ecode4 = 0 ;
26025   Xapian::LMWeight *result = 0 ;
26026 
26027   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::new_LMWeight param_log_ select_smoothing_ param_smoothing1_ param_smoothing2_ ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
26028   ecode1 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
26029   if (!SWIG_IsOK(ecode1)) {
26030     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LMWeight" "', argument " "1"" of type '" "double""'");
26031   }
26032   arg1 = static_cast< double >(val1);
26033   ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
26034   if (!SWIG_IsOK(ecode2)) {
26035     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_LMWeight" "', argument " "2"" of type '" "Xapian::Weight::type_smoothing""'");
26036   }
26037   arg2 = static_cast< Xapian::Weight::type_smoothing >(val2);
26038   ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
26039   if (!SWIG_IsOK(ecode3)) {
26040     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_LMWeight" "', argument " "3"" of type '" "double""'");
26041   }
26042   arg3 = static_cast< double >(val3);
26043   ecode4 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
26044   if (!SWIG_IsOK(ecode4)) {
26045     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_LMWeight" "', argument " "4"" of type '" "double""'");
26046   }
26047   arg4 = static_cast< double >(val4);
26048   {
26049     try {
26050       result = (Xapian::LMWeight *)new Xapian::LMWeight(arg1,arg2,arg3,arg4);
26051     } catch (const Xapian::Error &e) {
26052       return XapianTclHandleError(interp, e);
26053     } catch (...) {
26054       return XapianTclHandleError(interp);
26055     }
26056   }
26057   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LMWeight,0));
26058   return TCL_OK;
26059 fail:
26060   return TCL_ERROR;
26061 }
26062 
26063 
26064 SWIGINTERN int
_wrap_new_LMWeight__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])26065 _wrap_new_LMWeight__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
26066   double arg1 ;
26067   Xapian::Weight::type_smoothing arg2 ;
26068   double arg3 ;
26069   double val1 ;
26070   int ecode1 = 0 ;
26071   int val2 ;
26072   int ecode2 = 0 ;
26073   double val3 ;
26074   int ecode3 = 0 ;
26075   Xapian::LMWeight *result = 0 ;
26076 
26077   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::new_LMWeight param_log_ select_smoothing_ param_smoothing1_ ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
26078   ecode1 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
26079   if (!SWIG_IsOK(ecode1)) {
26080     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LMWeight" "', argument " "1"" of type '" "double""'");
26081   }
26082   arg1 = static_cast< double >(val1);
26083   ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
26084   if (!SWIG_IsOK(ecode2)) {
26085     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_LMWeight" "', argument " "2"" of type '" "Xapian::Weight::type_smoothing""'");
26086   }
26087   arg2 = static_cast< Xapian::Weight::type_smoothing >(val2);
26088   ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
26089   if (!SWIG_IsOK(ecode3)) {
26090     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_LMWeight" "', argument " "3"" of type '" "double""'");
26091   }
26092   arg3 = static_cast< double >(val3);
26093   {
26094     try {
26095       result = (Xapian::LMWeight *)new Xapian::LMWeight(arg1,arg2,arg3);
26096     } catch (const Xapian::Error &e) {
26097       return XapianTclHandleError(interp, e);
26098     } catch (...) {
26099       return XapianTclHandleError(interp);
26100     }
26101   }
26102   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LMWeight,0));
26103   return TCL_OK;
26104 fail:
26105   return TCL_ERROR;
26106 }
26107 
26108 
26109 SWIGINTERN int
_wrap_new_LMWeight__SWIG_2(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])26110 _wrap_new_LMWeight__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
26111   double arg1 ;
26112   Xapian::Weight::type_smoothing arg2 ;
26113   double val1 ;
26114   int ecode1 = 0 ;
26115   int val2 ;
26116   int ecode2 = 0 ;
26117   Xapian::LMWeight *result = 0 ;
26118 
26119   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::new_LMWeight param_log_ select_smoothing_ ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
26120   ecode1 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
26121   if (!SWIG_IsOK(ecode1)) {
26122     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LMWeight" "', argument " "1"" of type '" "double""'");
26123   }
26124   arg1 = static_cast< double >(val1);
26125   ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
26126   if (!SWIG_IsOK(ecode2)) {
26127     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_LMWeight" "', argument " "2"" of type '" "Xapian::Weight::type_smoothing""'");
26128   }
26129   arg2 = static_cast< Xapian::Weight::type_smoothing >(val2);
26130   {
26131     try {
26132       result = (Xapian::LMWeight *)new Xapian::LMWeight(arg1,arg2);
26133     } catch (const Xapian::Error &e) {
26134       return XapianTclHandleError(interp, e);
26135     } catch (...) {
26136       return XapianTclHandleError(interp);
26137     }
26138   }
26139   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LMWeight,0));
26140   return TCL_OK;
26141 fail:
26142   return TCL_ERROR;
26143 }
26144 
26145 
26146 SWIGINTERN int
_wrap_new_LMWeight__SWIG_3(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])26147 _wrap_new_LMWeight__SWIG_3(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
26148   double arg1 ;
26149   double val1 ;
26150   int ecode1 = 0 ;
26151   Xapian::LMWeight *result = 0 ;
26152 
26153   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_LMWeight param_log_ ",(void *)0) == TCL_ERROR) SWIG_fail;
26154   ecode1 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
26155   if (!SWIG_IsOK(ecode1)) {
26156     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LMWeight" "', argument " "1"" of type '" "double""'");
26157   }
26158   arg1 = static_cast< double >(val1);
26159   {
26160     try {
26161       result = (Xapian::LMWeight *)new Xapian::LMWeight(arg1);
26162     } catch (const Xapian::Error &e) {
26163       return XapianTclHandleError(interp, e);
26164     } catch (...) {
26165       return XapianTclHandleError(interp);
26166     }
26167   }
26168   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LMWeight,0));
26169   return TCL_OK;
26170 fail:
26171   return TCL_ERROR;
26172 }
26173 
26174 
26175 SWIGINTERN int
_wrap_new_LMWeight__SWIG_4(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])26176 _wrap_new_LMWeight__SWIG_4(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
26177   Xapian::LMWeight *result = 0 ;
26178 
26179   if (SWIG_GetArgs(interp, objc, objv,":xapian::new_LMWeight ") == TCL_ERROR) SWIG_fail;
26180   {
26181     try {
26182       result = (Xapian::LMWeight *)new Xapian::LMWeight();
26183     } catch (const Xapian::Error &e) {
26184       return XapianTclHandleError(interp, e);
26185     } catch (...) {
26186       return XapianTclHandleError(interp);
26187     }
26188   }
26189   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LMWeight,0));
26190   return TCL_OK;
26191 fail:
26192   return TCL_ERROR;
26193 }
26194 
26195 
26196 SWIGINTERN int
_wrap_new_LMWeight(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])26197 _wrap_new_LMWeight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
26198   Tcl_Obj *CONST *argv = objv+1;
26199   int argc = objc-1;
26200   if (argc == 0) {
26201     return _wrap_new_LMWeight__SWIG_4(clientData, interp, objc, argv - 1);
26202   }
26203   if (argc == 1) {
26204     int _v;
26205     {
26206       int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
26207       _v = SWIG_CheckState(res);
26208     }
26209     if (_v) {
26210       return _wrap_new_LMWeight__SWIG_3(clientData, interp, objc, argv - 1);
26211     }
26212   }
26213   if (argc == 2) {
26214     int _v;
26215     {
26216       int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
26217       _v = SWIG_CheckState(res);
26218     }
26219     if (_v) {
26220       {
26221         int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
26222         _v = SWIG_CheckState(res);
26223       }
26224       if (_v) {
26225         return _wrap_new_LMWeight__SWIG_2(clientData, interp, objc, argv - 1);
26226       }
26227     }
26228   }
26229   if (argc == 3) {
26230     int _v;
26231     {
26232       int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
26233       _v = SWIG_CheckState(res);
26234     }
26235     if (_v) {
26236       {
26237         int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
26238         _v = SWIG_CheckState(res);
26239       }
26240       if (_v) {
26241         {
26242           int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
26243           _v = SWIG_CheckState(res);
26244         }
26245         if (_v) {
26246           return _wrap_new_LMWeight__SWIG_1(clientData, interp, objc, argv - 1);
26247         }
26248       }
26249     }
26250   }
26251   if (argc == 4) {
26252     int _v;
26253     {
26254       int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
26255       _v = SWIG_CheckState(res);
26256     }
26257     if (_v) {
26258       {
26259         int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
26260         _v = SWIG_CheckState(res);
26261       }
26262       if (_v) {
26263         {
26264           int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
26265           _v = SWIG_CheckState(res);
26266         }
26267         if (_v) {
26268           {
26269             int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
26270             _v = SWIG_CheckState(res);
26271           }
26272           if (_v) {
26273             return _wrap_new_LMWeight__SWIG_0(clientData, interp, objc, argv - 1);
26274           }
26275         }
26276       }
26277     }
26278   }
26279 
26280   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_LMWeight'.\n"
26281     "  Possible C/C++ prototypes are:\n"
26282     "    Xapian::LMWeight::LMWeight(double,Xapian::Weight::type_smoothing,double,double)\n"
26283     "    Xapian::LMWeight::LMWeight(double,Xapian::Weight::type_smoothing,double)\n"
26284     "    Xapian::LMWeight::LMWeight(double,Xapian::Weight::type_smoothing)\n"
26285     "    Xapian::LMWeight::LMWeight(double)\n"
26286     "    Xapian::LMWeight::LMWeight()\n", TCL_STATIC);
26287   return TCL_ERROR;
26288 }
26289 
26290 
26291 SWIGINTERN int
_wrap_LMWeight_name(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])26292 _wrap_LMWeight_name(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
26293   Xapian::LMWeight *arg1 = (Xapian::LMWeight *) 0 ;
26294   void *argp1 = 0 ;
26295   int res1 = 0 ;
26296   std::string result;
26297 
26298   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::LMWeight_name self ",(void *)0) == TCL_ERROR) SWIG_fail;
26299   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__LMWeight, 0 |  0 );
26300   if (!SWIG_IsOK(res1)) {
26301     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LMWeight_name" "', argument " "1"" of type '" "Xapian::LMWeight const *""'");
26302   }
26303   arg1 = reinterpret_cast< Xapian::LMWeight * >(argp1);
26304   {
26305     try {
26306       result = ((Xapian::LMWeight const *)arg1)->name();
26307     } catch (const Xapian::Error &e) {
26308       return XapianTclHandleError(interp, e);
26309     } catch (...) {
26310       return XapianTclHandleError(interp);
26311     }
26312   }
26313   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
26314   return TCL_OK;
26315 fail:
26316   return TCL_ERROR;
26317 }
26318 
26319 
26320 SWIGINTERN int
_wrap_LMWeight_get_sumpart(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])26321 _wrap_LMWeight_get_sumpart(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
26322   Xapian::LMWeight *arg1 = (Xapian::LMWeight *) 0 ;
26323   Xapian::termcount arg2 ;
26324   Xapian::termcount arg3 ;
26325   Xapian::termcount arg4 ;
26326   void *argp1 = 0 ;
26327   int res1 = 0 ;
26328   unsigned int val2 ;
26329   int ecode2 = 0 ;
26330   unsigned int val3 ;
26331   int ecode3 = 0 ;
26332   unsigned int val4 ;
26333   int ecode4 = 0 ;
26334   double result;
26335 
26336   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::LMWeight_get_sumpart self wdf doclen uniqterm ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
26337   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__LMWeight, 0 |  0 );
26338   if (!SWIG_IsOK(res1)) {
26339     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LMWeight_get_sumpart" "', argument " "1"" of type '" "Xapian::LMWeight const *""'");
26340   }
26341   arg1 = reinterpret_cast< Xapian::LMWeight * >(argp1);
26342   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
26343   if (!SWIG_IsOK(ecode2)) {
26344     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LMWeight_get_sumpart" "', argument " "2"" of type '" "Xapian::termcount""'");
26345   }
26346   arg2 = static_cast< Xapian::termcount >(val2);
26347   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
26348   if (!SWIG_IsOK(ecode3)) {
26349     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "LMWeight_get_sumpart" "', argument " "3"" of type '" "Xapian::termcount""'");
26350   }
26351   arg3 = static_cast< Xapian::termcount >(val3);
26352   ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
26353   if (!SWIG_IsOK(ecode4)) {
26354     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "LMWeight_get_sumpart" "', argument " "4"" of type '" "Xapian::termcount""'");
26355   }
26356   arg4 = static_cast< Xapian::termcount >(val4);
26357   {
26358     try {
26359       result = (double)((Xapian::LMWeight const *)arg1)->get_sumpart(arg2,arg3,arg4);
26360     } catch (const Xapian::Error &e) {
26361       return XapianTclHandleError(interp, e);
26362     } catch (...) {
26363       return XapianTclHandleError(interp);
26364     }
26365   }
26366   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
26367   return TCL_OK;
26368 fail:
26369   return TCL_ERROR;
26370 }
26371 
26372 
26373 SWIGINTERN int
_wrap_LMWeight_get_maxpart(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])26374 _wrap_LMWeight_get_maxpart(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
26375   Xapian::LMWeight *arg1 = (Xapian::LMWeight *) 0 ;
26376   void *argp1 = 0 ;
26377   int res1 = 0 ;
26378   double result;
26379 
26380   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::LMWeight_get_maxpart self ",(void *)0) == TCL_ERROR) SWIG_fail;
26381   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__LMWeight, 0 |  0 );
26382   if (!SWIG_IsOK(res1)) {
26383     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LMWeight_get_maxpart" "', argument " "1"" of type '" "Xapian::LMWeight const *""'");
26384   }
26385   arg1 = reinterpret_cast< Xapian::LMWeight * >(argp1);
26386   {
26387     try {
26388       result = (double)((Xapian::LMWeight const *)arg1)->get_maxpart();
26389     } catch (const Xapian::Error &e) {
26390       return XapianTclHandleError(interp, e);
26391     } catch (...) {
26392       return XapianTclHandleError(interp);
26393     }
26394   }
26395   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
26396   return TCL_OK;
26397 fail:
26398   return TCL_ERROR;
26399 }
26400 
26401 
26402 SWIGINTERN int
_wrap_LMWeight_get_sumextra(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])26403 _wrap_LMWeight_get_sumextra(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
26404   Xapian::LMWeight *arg1 = (Xapian::LMWeight *) 0 ;
26405   Xapian::termcount arg2 ;
26406   Xapian::termcount arg3 ;
26407   void *argp1 = 0 ;
26408   int res1 = 0 ;
26409   unsigned int val2 ;
26410   int ecode2 = 0 ;
26411   unsigned int val3 ;
26412   int ecode3 = 0 ;
26413   double result;
26414 
26415   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::LMWeight_get_sumextra self doclen Xapian::termcount ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
26416   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__LMWeight, 0 |  0 );
26417   if (!SWIG_IsOK(res1)) {
26418     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LMWeight_get_sumextra" "', argument " "1"" of type '" "Xapian::LMWeight const *""'");
26419   }
26420   arg1 = reinterpret_cast< Xapian::LMWeight * >(argp1);
26421   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
26422   if (!SWIG_IsOK(ecode2)) {
26423     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LMWeight_get_sumextra" "', argument " "2"" of type '" "Xapian::termcount""'");
26424   }
26425   arg2 = static_cast< Xapian::termcount >(val2);
26426   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
26427   if (!SWIG_IsOK(ecode3)) {
26428     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "LMWeight_get_sumextra" "', argument " "3"" of type '" "Xapian::termcount""'");
26429   }
26430   arg3 = static_cast< Xapian::termcount >(val3);
26431   {
26432     try {
26433       result = (double)((Xapian::LMWeight const *)arg1)->get_sumextra(arg2,arg3);
26434     } catch (const Xapian::Error &e) {
26435       return XapianTclHandleError(interp, e);
26436     } catch (...) {
26437       return XapianTclHandleError(interp);
26438     }
26439   }
26440   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
26441   return TCL_OK;
26442 fail:
26443   return TCL_ERROR;
26444 }
26445 
26446 
26447 SWIGINTERN int
_wrap_LMWeight_get_maxextra(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])26448 _wrap_LMWeight_get_maxextra(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
26449   Xapian::LMWeight *arg1 = (Xapian::LMWeight *) 0 ;
26450   void *argp1 = 0 ;
26451   int res1 = 0 ;
26452   double result;
26453 
26454   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::LMWeight_get_maxextra self ",(void *)0) == TCL_ERROR) SWIG_fail;
26455   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__LMWeight, 0 |  0 );
26456   if (!SWIG_IsOK(res1)) {
26457     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LMWeight_get_maxextra" "', argument " "1"" of type '" "Xapian::LMWeight const *""'");
26458   }
26459   arg1 = reinterpret_cast< Xapian::LMWeight * >(argp1);
26460   {
26461     try {
26462       result = (double)((Xapian::LMWeight const *)arg1)->get_maxextra();
26463     } catch (const Xapian::Error &e) {
26464       return XapianTclHandleError(interp, e);
26465     } catch (...) {
26466       return XapianTclHandleError(interp);
26467     }
26468   }
26469   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
26470   return TCL_OK;
26471 fail:
26472   return TCL_ERROR;
26473 }
26474 
26475 
26476 SWIGINTERN int
_wrap_delete_LMWeight(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])26477 _wrap_delete_LMWeight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
26478   Xapian::LMWeight *arg1 = (Xapian::LMWeight *) 0 ;
26479   void *argp1 = 0 ;
26480   int res1 = 0 ;
26481 
26482   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_LMWeight self ",(void *)0) == TCL_ERROR) SWIG_fail;
26483   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__LMWeight, SWIG_POINTER_DISOWN |  0 );
26484   if (!SWIG_IsOK(res1)) {
26485     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LMWeight" "', argument " "1"" of type '" "Xapian::LMWeight *""'");
26486   }
26487   arg1 = reinterpret_cast< Xapian::LMWeight * >(argp1);
26488   {
26489     try {
26490       delete arg1;
26491     } catch (const Xapian::Error &e) {
26492       return XapianTclHandleError(interp, e);
26493     } catch (...) {
26494       return XapianTclHandleError(interp);
26495     }
26496   }
26497 
26498   return TCL_OK;
26499 fail:
26500   return TCL_ERROR;
26501 }
26502 
26503 
swig_delete_LMWeight(void * obj)26504 SWIGINTERN void swig_delete_LMWeight(void *obj) {
26505 Xapian::LMWeight *arg1 = (Xapian::LMWeight *) obj;
26506 delete arg1;
26507 }
26508 static swig_method swig_Xapian_LMWeight_methods[] = {
26509     {"name", _wrap_LMWeight_name},
26510     {"get_sumpart", _wrap_LMWeight_get_sumpart},
26511     {"get_maxpart", _wrap_LMWeight_get_maxpart},
26512     {"get_sumextra", _wrap_LMWeight_get_sumextra},
26513     {"get_maxextra", _wrap_LMWeight_get_maxextra},
26514     {0,0}
26515 };
26516 static swig_attribute swig_Xapian_LMWeight_attributes[] = {
26517     {0,0,0}
26518 };
26519 static swig_class *swig_Xapian_LMWeight_bases[] = {0,0};
26520 static const char * swig_Xapian_LMWeight_base_names[] = {"Xapian::Weight *",0};
26521 static swig_class _wrap_class_Xapian_LMWeight = { "LMWeight", &SWIGTYPE_p_Xapian__LMWeight,_wrap_new_LMWeight, swig_delete_LMWeight, swig_Xapian_LMWeight_methods, swig_Xapian_LMWeight_attributes, swig_Xapian_LMWeight_bases,swig_Xapian_LMWeight_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
26522 SWIGINTERN int
_wrap_CoordWeight_init(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])26523 _wrap_CoordWeight_init(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
26524   Xapian::CoordWeight *arg1 = (Xapian::CoordWeight *) 0 ;
26525   double arg2 ;
26526   void *argp1 = 0 ;
26527   int res1 = 0 ;
26528   double val2 ;
26529   int ecode2 = 0 ;
26530 
26531   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::CoordWeight_init self factor_ ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
26532   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__CoordWeight, 0 |  0 );
26533   if (!SWIG_IsOK(res1)) {
26534     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordWeight_init" "', argument " "1"" of type '" "Xapian::CoordWeight *""'");
26535   }
26536   arg1 = reinterpret_cast< Xapian::CoordWeight * >(argp1);
26537   ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
26538   if (!SWIG_IsOK(ecode2)) {
26539     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CoordWeight_init" "', argument " "2"" of type '" "double""'");
26540   }
26541   arg2 = static_cast< double >(val2);
26542   {
26543     try {
26544       (arg1)->init(arg2);
26545     } catch (const Xapian::Error &e) {
26546       return XapianTclHandleError(interp, e);
26547     } catch (...) {
26548       return XapianTclHandleError(interp);
26549     }
26550   }
26551 
26552   return TCL_OK;
26553 fail:
26554   return TCL_ERROR;
26555 }
26556 
26557 
26558 SWIGINTERN int
_wrap_new_CoordWeight(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])26559 _wrap_new_CoordWeight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
26560   Xapian::CoordWeight *result = 0 ;
26561 
26562   if (SWIG_GetArgs(interp, objc, objv,":xapian::new_CoordWeight ") == TCL_ERROR) SWIG_fail;
26563   {
26564     try {
26565       result = (Xapian::CoordWeight *)new Xapian::CoordWeight();
26566     } catch (const Xapian::Error &e) {
26567       return XapianTclHandleError(interp, e);
26568     } catch (...) {
26569       return XapianTclHandleError(interp);
26570     }
26571   }
26572   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__CoordWeight,0));
26573   return TCL_OK;
26574 fail:
26575   return TCL_ERROR;
26576 }
26577 
26578 
26579 SWIGINTERN int
_wrap_CoordWeight_name(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])26580 _wrap_CoordWeight_name(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
26581   Xapian::CoordWeight *arg1 = (Xapian::CoordWeight *) 0 ;
26582   void *argp1 = 0 ;
26583   int res1 = 0 ;
26584   std::string result;
26585 
26586   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::CoordWeight_name self ",(void *)0) == TCL_ERROR) SWIG_fail;
26587   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__CoordWeight, 0 |  0 );
26588   if (!SWIG_IsOK(res1)) {
26589     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordWeight_name" "', argument " "1"" of type '" "Xapian::CoordWeight const *""'");
26590   }
26591   arg1 = reinterpret_cast< Xapian::CoordWeight * >(argp1);
26592   {
26593     try {
26594       result = ((Xapian::CoordWeight const *)arg1)->name();
26595     } catch (const Xapian::Error &e) {
26596       return XapianTclHandleError(interp, e);
26597     } catch (...) {
26598       return XapianTclHandleError(interp);
26599     }
26600   }
26601   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
26602   return TCL_OK;
26603 fail:
26604   return TCL_ERROR;
26605 }
26606 
26607 
26608 SWIGINTERN int
_wrap_CoordWeight_get_sumpart(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])26609 _wrap_CoordWeight_get_sumpart(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
26610   Xapian::CoordWeight *arg1 = (Xapian::CoordWeight *) 0 ;
26611   Xapian::termcount arg2 ;
26612   Xapian::termcount arg3 ;
26613   Xapian::termcount arg4 ;
26614   void *argp1 = 0 ;
26615   int res1 = 0 ;
26616   unsigned int val2 ;
26617   int ecode2 = 0 ;
26618   unsigned int val3 ;
26619   int ecode3 = 0 ;
26620   unsigned int val4 ;
26621   int ecode4 = 0 ;
26622   double result;
26623 
26624   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::CoordWeight_get_sumpart self wdf doclen uniqterm ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
26625   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__CoordWeight, 0 |  0 );
26626   if (!SWIG_IsOK(res1)) {
26627     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordWeight_get_sumpart" "', argument " "1"" of type '" "Xapian::CoordWeight const *""'");
26628   }
26629   arg1 = reinterpret_cast< Xapian::CoordWeight * >(argp1);
26630   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
26631   if (!SWIG_IsOK(ecode2)) {
26632     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CoordWeight_get_sumpart" "', argument " "2"" of type '" "Xapian::termcount""'");
26633   }
26634   arg2 = static_cast< Xapian::termcount >(val2);
26635   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
26636   if (!SWIG_IsOK(ecode3)) {
26637     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CoordWeight_get_sumpart" "', argument " "3"" of type '" "Xapian::termcount""'");
26638   }
26639   arg3 = static_cast< Xapian::termcount >(val3);
26640   ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
26641   if (!SWIG_IsOK(ecode4)) {
26642     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CoordWeight_get_sumpart" "', argument " "4"" of type '" "Xapian::termcount""'");
26643   }
26644   arg4 = static_cast< Xapian::termcount >(val4);
26645   {
26646     try {
26647       result = (double)((Xapian::CoordWeight const *)arg1)->get_sumpart(arg2,arg3,arg4);
26648     } catch (const Xapian::Error &e) {
26649       return XapianTclHandleError(interp, e);
26650     } catch (...) {
26651       return XapianTclHandleError(interp);
26652     }
26653   }
26654   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
26655   return TCL_OK;
26656 fail:
26657   return TCL_ERROR;
26658 }
26659 
26660 
26661 SWIGINTERN int
_wrap_CoordWeight_get_maxpart(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])26662 _wrap_CoordWeight_get_maxpart(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
26663   Xapian::CoordWeight *arg1 = (Xapian::CoordWeight *) 0 ;
26664   void *argp1 = 0 ;
26665   int res1 = 0 ;
26666   double result;
26667 
26668   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::CoordWeight_get_maxpart self ",(void *)0) == TCL_ERROR) SWIG_fail;
26669   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__CoordWeight, 0 |  0 );
26670   if (!SWIG_IsOK(res1)) {
26671     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordWeight_get_maxpart" "', argument " "1"" of type '" "Xapian::CoordWeight const *""'");
26672   }
26673   arg1 = reinterpret_cast< Xapian::CoordWeight * >(argp1);
26674   {
26675     try {
26676       result = (double)((Xapian::CoordWeight const *)arg1)->get_maxpart();
26677     } catch (const Xapian::Error &e) {
26678       return XapianTclHandleError(interp, e);
26679     } catch (...) {
26680       return XapianTclHandleError(interp);
26681     }
26682   }
26683   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
26684   return TCL_OK;
26685 fail:
26686   return TCL_ERROR;
26687 }
26688 
26689 
26690 SWIGINTERN int
_wrap_CoordWeight_get_sumextra(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])26691 _wrap_CoordWeight_get_sumextra(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
26692   Xapian::CoordWeight *arg1 = (Xapian::CoordWeight *) 0 ;
26693   Xapian::termcount arg2 ;
26694   Xapian::termcount arg3 ;
26695   void *argp1 = 0 ;
26696   int res1 = 0 ;
26697   unsigned int val2 ;
26698   int ecode2 = 0 ;
26699   unsigned int val3 ;
26700   int ecode3 = 0 ;
26701   double result;
26702 
26703   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::CoordWeight_get_sumextra self Xapian::termcount Xapian::termcount ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
26704   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__CoordWeight, 0 |  0 );
26705   if (!SWIG_IsOK(res1)) {
26706     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordWeight_get_sumextra" "', argument " "1"" of type '" "Xapian::CoordWeight const *""'");
26707   }
26708   arg1 = reinterpret_cast< Xapian::CoordWeight * >(argp1);
26709   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
26710   if (!SWIG_IsOK(ecode2)) {
26711     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CoordWeight_get_sumextra" "', argument " "2"" of type '" "Xapian::termcount""'");
26712   }
26713   arg2 = static_cast< Xapian::termcount >(val2);
26714   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
26715   if (!SWIG_IsOK(ecode3)) {
26716     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CoordWeight_get_sumextra" "', argument " "3"" of type '" "Xapian::termcount""'");
26717   }
26718   arg3 = static_cast< Xapian::termcount >(val3);
26719   {
26720     try {
26721       result = (double)((Xapian::CoordWeight const *)arg1)->get_sumextra(arg2,arg3);
26722     } catch (const Xapian::Error &e) {
26723       return XapianTclHandleError(interp, e);
26724     } catch (...) {
26725       return XapianTclHandleError(interp);
26726     }
26727   }
26728   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
26729   return TCL_OK;
26730 fail:
26731   return TCL_ERROR;
26732 }
26733 
26734 
26735 SWIGINTERN int
_wrap_CoordWeight_get_maxextra(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])26736 _wrap_CoordWeight_get_maxextra(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
26737   Xapian::CoordWeight *arg1 = (Xapian::CoordWeight *) 0 ;
26738   void *argp1 = 0 ;
26739   int res1 = 0 ;
26740   double result;
26741 
26742   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::CoordWeight_get_maxextra self ",(void *)0) == TCL_ERROR) SWIG_fail;
26743   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__CoordWeight, 0 |  0 );
26744   if (!SWIG_IsOK(res1)) {
26745     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordWeight_get_maxextra" "', argument " "1"" of type '" "Xapian::CoordWeight const *""'");
26746   }
26747   arg1 = reinterpret_cast< Xapian::CoordWeight * >(argp1);
26748   {
26749     try {
26750       result = (double)((Xapian::CoordWeight const *)arg1)->get_maxextra();
26751     } catch (const Xapian::Error &e) {
26752       return XapianTclHandleError(interp, e);
26753     } catch (...) {
26754       return XapianTclHandleError(interp);
26755     }
26756   }
26757   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
26758   return TCL_OK;
26759 fail:
26760   return TCL_ERROR;
26761 }
26762 
26763 
26764 SWIGINTERN int
_wrap_delete_CoordWeight(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])26765 _wrap_delete_CoordWeight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
26766   Xapian::CoordWeight *arg1 = (Xapian::CoordWeight *) 0 ;
26767   void *argp1 = 0 ;
26768   int res1 = 0 ;
26769 
26770   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_CoordWeight self ",(void *)0) == TCL_ERROR) SWIG_fail;
26771   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__CoordWeight, SWIG_POINTER_DISOWN |  0 );
26772   if (!SWIG_IsOK(res1)) {
26773     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CoordWeight" "', argument " "1"" of type '" "Xapian::CoordWeight *""'");
26774   }
26775   arg1 = reinterpret_cast< Xapian::CoordWeight * >(argp1);
26776   {
26777     try {
26778       delete arg1;
26779     } catch (const Xapian::Error &e) {
26780       return XapianTclHandleError(interp, e);
26781     } catch (...) {
26782       return XapianTclHandleError(interp);
26783     }
26784   }
26785 
26786   return TCL_OK;
26787 fail:
26788   return TCL_ERROR;
26789 }
26790 
26791 
swig_delete_CoordWeight(void * obj)26792 SWIGINTERN void swig_delete_CoordWeight(void *obj) {
26793 Xapian::CoordWeight *arg1 = (Xapian::CoordWeight *) obj;
26794 delete arg1;
26795 }
26796 static swig_method swig_Xapian_CoordWeight_methods[] = {
26797     {"init", _wrap_CoordWeight_init},
26798     {"name", _wrap_CoordWeight_name},
26799     {"get_sumpart", _wrap_CoordWeight_get_sumpart},
26800     {"get_maxpart", _wrap_CoordWeight_get_maxpart},
26801     {"get_sumextra", _wrap_CoordWeight_get_sumextra},
26802     {"get_maxextra", _wrap_CoordWeight_get_maxextra},
26803     {0,0}
26804 };
26805 static swig_attribute swig_Xapian_CoordWeight_attributes[] = {
26806     {0,0,0}
26807 };
26808 static swig_class *swig_Xapian_CoordWeight_bases[] = {0,0};
26809 static const char * swig_Xapian_CoordWeight_base_names[] = {"Xapian::Weight *",0};
26810 static swig_class _wrap_class_Xapian_CoordWeight = { "CoordWeight", &SWIGTYPE_p_Xapian__CoordWeight,_wrap_new_CoordWeight, swig_delete_CoordWeight, swig_Xapian_CoordWeight_methods, swig_Xapian_CoordWeight_attributes, swig_Xapian_CoordWeight_bases,swig_Xapian_CoordWeight_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
26811 SWIGINTERN int
_wrap_new_Compactor(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])26812 _wrap_new_Compactor(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
26813   Xapian::Compactor *result = 0 ;
26814 
26815   if (SWIG_GetArgs(interp, objc, objv,":xapian::new_Compactor ") == TCL_ERROR) SWIG_fail;
26816   {
26817     try {
26818       result = (Xapian::Compactor *)new Xapian::Compactor();
26819     } catch (const Xapian::Error &e) {
26820       return XapianTclHandleError(interp, e);
26821     } catch (...) {
26822       return XapianTclHandleError(interp);
26823     }
26824   }
26825   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Compactor,0));
26826   return TCL_OK;
26827 fail:
26828   return TCL_ERROR;
26829 }
26830 
26831 
26832 SWIGINTERN int
_wrap_delete_Compactor(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])26833 _wrap_delete_Compactor(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
26834   Xapian::Compactor *arg1 = (Xapian::Compactor *) 0 ;
26835   void *argp1 = 0 ;
26836   int res1 = 0 ;
26837 
26838   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_Compactor self ",(void *)0) == TCL_ERROR) SWIG_fail;
26839   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Compactor, SWIG_POINTER_DISOWN |  0 );
26840   if (!SWIG_IsOK(res1)) {
26841     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Compactor" "', argument " "1"" of type '" "Xapian::Compactor *""'");
26842   }
26843   arg1 = reinterpret_cast< Xapian::Compactor * >(argp1);
26844   {
26845     try {
26846       delete arg1;
26847     } catch (const Xapian::Error &e) {
26848       return XapianTclHandleError(interp, e);
26849     } catch (...) {
26850       return XapianTclHandleError(interp);
26851     }
26852   }
26853 
26854   return TCL_OK;
26855 fail:
26856   return TCL_ERROR;
26857 }
26858 
26859 
26860 SWIGINTERN int
_wrap_Compactor_set_block_size(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])26861 _wrap_Compactor_set_block_size(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
26862   Xapian::Compactor *arg1 = (Xapian::Compactor *) 0 ;
26863   size_t arg2 ;
26864   void *argp1 = 0 ;
26865   int res1 = 0 ;
26866   size_t val2 ;
26867   int ecode2 = 0 ;
26868 
26869   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Compactor_set_block_size self block_size ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
26870   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Compactor, 0 |  0 );
26871   if (!SWIG_IsOK(res1)) {
26872     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Compactor_set_block_size" "', argument " "1"" of type '" "Xapian::Compactor *""'");
26873   }
26874   arg1 = reinterpret_cast< Xapian::Compactor * >(argp1);
26875   ecode2 = SWIG_AsVal_size_t SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
26876   if (!SWIG_IsOK(ecode2)) {
26877     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Compactor_set_block_size" "', argument " "2"" of type '" "size_t""'");
26878   }
26879   arg2 = static_cast< size_t >(val2);
26880   {
26881     try {
26882       (arg1)->set_block_size(arg2);
26883     } catch (const Xapian::Error &e) {
26884       return XapianTclHandleError(interp, e);
26885     } catch (...) {
26886       return XapianTclHandleError(interp);
26887     }
26888   }
26889 
26890   return TCL_OK;
26891 fail:
26892   return TCL_ERROR;
26893 }
26894 
26895 
26896 SWIGINTERN int
_wrap_Compactor_set_renumber(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])26897 _wrap_Compactor_set_renumber(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
26898   Xapian::Compactor *arg1 = (Xapian::Compactor *) 0 ;
26899   bool arg2 ;
26900   void *argp1 = 0 ;
26901   int res1 = 0 ;
26902   bool val2 ;
26903   int ecode2 = 0 ;
26904 
26905   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Compactor_set_renumber self renumber ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
26906   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Compactor, 0 |  0 );
26907   if (!SWIG_IsOK(res1)) {
26908     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Compactor_set_renumber" "', argument " "1"" of type '" "Xapian::Compactor *""'");
26909   }
26910   arg1 = reinterpret_cast< Xapian::Compactor * >(argp1);
26911   ecode2 = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
26912   if (!SWIG_IsOK(ecode2)) {
26913     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Compactor_set_renumber" "', argument " "2"" of type '" "bool""'");
26914   }
26915   arg2 = static_cast< bool >(val2);
26916   {
26917     try {
26918       (arg1)->set_renumber(arg2);
26919     } catch (const Xapian::Error &e) {
26920       return XapianTclHandleError(interp, e);
26921     } catch (...) {
26922       return XapianTclHandleError(interp);
26923     }
26924   }
26925 
26926   return TCL_OK;
26927 fail:
26928   return TCL_ERROR;
26929 }
26930 
26931 
26932 SWIGINTERN int
_wrap_Compactor_set_multipass(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])26933 _wrap_Compactor_set_multipass(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
26934   Xapian::Compactor *arg1 = (Xapian::Compactor *) 0 ;
26935   bool arg2 ;
26936   void *argp1 = 0 ;
26937   int res1 = 0 ;
26938   bool val2 ;
26939   int ecode2 = 0 ;
26940 
26941   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Compactor_set_multipass self multipass ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
26942   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Compactor, 0 |  0 );
26943   if (!SWIG_IsOK(res1)) {
26944     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Compactor_set_multipass" "', argument " "1"" of type '" "Xapian::Compactor *""'");
26945   }
26946   arg1 = reinterpret_cast< Xapian::Compactor * >(argp1);
26947   ecode2 = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
26948   if (!SWIG_IsOK(ecode2)) {
26949     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Compactor_set_multipass" "', argument " "2"" of type '" "bool""'");
26950   }
26951   arg2 = static_cast< bool >(val2);
26952   {
26953     try {
26954       (arg1)->set_multipass(arg2);
26955     } catch (const Xapian::Error &e) {
26956       return XapianTclHandleError(interp, e);
26957     } catch (...) {
26958       return XapianTclHandleError(interp);
26959     }
26960   }
26961 
26962   return TCL_OK;
26963 fail:
26964   return TCL_ERROR;
26965 }
26966 
26967 
26968 SWIGINTERN int
_wrap_Compactor_set_compaction_level(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])26969 _wrap_Compactor_set_compaction_level(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
26970   Xapian::Compactor *arg1 = (Xapian::Compactor *) 0 ;
26971   Xapian::Compactor::compaction_level arg2 ;
26972   void *argp1 = 0 ;
26973   int res1 = 0 ;
26974   int val2 ;
26975   int ecode2 = 0 ;
26976 
26977   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Compactor_set_compaction_level self compaction ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
26978   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Compactor, 0 |  0 );
26979   if (!SWIG_IsOK(res1)) {
26980     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Compactor_set_compaction_level" "', argument " "1"" of type '" "Xapian::Compactor *""'");
26981   }
26982   arg1 = reinterpret_cast< Xapian::Compactor * >(argp1);
26983   ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
26984   if (!SWIG_IsOK(ecode2)) {
26985     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Compactor_set_compaction_level" "', argument " "2"" of type '" "Xapian::Compactor::compaction_level""'");
26986   }
26987   arg2 = static_cast< Xapian::Compactor::compaction_level >(val2);
26988   {
26989     try {
26990       (arg1)->set_compaction_level(arg2);
26991     } catch (const Xapian::Error &e) {
26992       return XapianTclHandleError(interp, e);
26993     } catch (...) {
26994       return XapianTclHandleError(interp);
26995     }
26996   }
26997 
26998   return TCL_OK;
26999 fail:
27000   return TCL_ERROR;
27001 }
27002 
27003 
27004 SWIGINTERN int
_wrap_Compactor_set_destdir(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])27005 _wrap_Compactor_set_destdir(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
27006   Xapian::Compactor *arg1 = (Xapian::Compactor *) 0 ;
27007   std::string *arg2 = 0 ;
27008   void *argp1 = 0 ;
27009   int res1 = 0 ;
27010   int res2 = SWIG_OLDOBJ ;
27011 
27012   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Compactor_set_destdir self destdir ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
27013   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Compactor, 0 |  0 );
27014   if (!SWIG_IsOK(res1)) {
27015     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Compactor_set_destdir" "', argument " "1"" of type '" "Xapian::Compactor *""'");
27016   }
27017   arg1 = reinterpret_cast< Xapian::Compactor * >(argp1);
27018   {
27019     std::string *ptr = (std::string *)0;
27020     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
27021     if (!SWIG_IsOK(res2)) {
27022       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Compactor_set_destdir" "', argument " "2"" of type '" "std::string const &""'");
27023     }
27024     if (!ptr) {
27025       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Compactor_set_destdir" "', argument " "2"" of type '" "std::string const &""'");
27026     }
27027     arg2 = ptr;
27028   }
27029   {
27030     try {
27031       (arg1)->set_destdir((std::string const &)*arg2);
27032     } catch (const Xapian::Error &e) {
27033       return XapianTclHandleError(interp, e);
27034     } catch (...) {
27035       return XapianTclHandleError(interp);
27036     }
27037   }
27038 
27039   if (SWIG_IsNewObj(res2)) delete arg2;
27040   return TCL_OK;
27041 fail:
27042   if (SWIG_IsNewObj(res2)) delete arg2;
27043   return TCL_ERROR;
27044 }
27045 
27046 
27047 SWIGINTERN int
_wrap_Compactor_add_source(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])27048 _wrap_Compactor_add_source(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
27049   Xapian::Compactor *arg1 = (Xapian::Compactor *) 0 ;
27050   std::string *arg2 = 0 ;
27051   void *argp1 = 0 ;
27052   int res1 = 0 ;
27053   int res2 = SWIG_OLDOBJ ;
27054 
27055   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Compactor_add_source self srcdir ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
27056   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Compactor, 0 |  0 );
27057   if (!SWIG_IsOK(res1)) {
27058     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Compactor_add_source" "', argument " "1"" of type '" "Xapian::Compactor *""'");
27059   }
27060   arg1 = reinterpret_cast< Xapian::Compactor * >(argp1);
27061   {
27062     std::string *ptr = (std::string *)0;
27063     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
27064     if (!SWIG_IsOK(res2)) {
27065       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Compactor_add_source" "', argument " "2"" of type '" "std::string const &""'");
27066     }
27067     if (!ptr) {
27068       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Compactor_add_source" "', argument " "2"" of type '" "std::string const &""'");
27069     }
27070     arg2 = ptr;
27071   }
27072   {
27073     try {
27074       (arg1)->add_source((std::string const &)*arg2);
27075     } catch (const Xapian::Error &e) {
27076       return XapianTclHandleError(interp, e);
27077     } catch (...) {
27078       return XapianTclHandleError(interp);
27079     }
27080   }
27081 
27082   if (SWIG_IsNewObj(res2)) delete arg2;
27083   return TCL_OK;
27084 fail:
27085   if (SWIG_IsNewObj(res2)) delete arg2;
27086   return TCL_ERROR;
27087 }
27088 
27089 
27090 SWIGINTERN int
_wrap_Compactor_compact(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])27091 _wrap_Compactor_compact(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
27092   Xapian::Compactor *arg1 = (Xapian::Compactor *) 0 ;
27093   void *argp1 = 0 ;
27094   int res1 = 0 ;
27095 
27096   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Compactor_compact self ",(void *)0) == TCL_ERROR) SWIG_fail;
27097   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Compactor, 0 |  0 );
27098   if (!SWIG_IsOK(res1)) {
27099     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Compactor_compact" "', argument " "1"" of type '" "Xapian::Compactor *""'");
27100   }
27101   arg1 = reinterpret_cast< Xapian::Compactor * >(argp1);
27102   {
27103     try {
27104       (arg1)->compact();
27105     } catch (const Xapian::Error &e) {
27106       return XapianTclHandleError(interp, e);
27107     } catch (...) {
27108       return XapianTclHandleError(interp);
27109     }
27110   }
27111 
27112   return TCL_OK;
27113 fail:
27114   return TCL_ERROR;
27115 }
27116 
27117 
27118 SWIGINTERN int
_wrap_Compactor_set_status(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])27119 _wrap_Compactor_set_status(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
27120   Xapian::Compactor *arg1 = (Xapian::Compactor *) 0 ;
27121   std::string *arg2 = 0 ;
27122   std::string *arg3 = 0 ;
27123   void *argp1 = 0 ;
27124   int res1 = 0 ;
27125   int res2 = SWIG_OLDOBJ ;
27126   int res3 = SWIG_OLDOBJ ;
27127 
27128   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::Compactor_set_status self table status ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
27129   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Compactor, 0 |  0 );
27130   if (!SWIG_IsOK(res1)) {
27131     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Compactor_set_status" "', argument " "1"" of type '" "Xapian::Compactor *""'");
27132   }
27133   arg1 = reinterpret_cast< Xapian::Compactor * >(argp1);
27134   {
27135     std::string *ptr = (std::string *)0;
27136     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
27137     if (!SWIG_IsOK(res2)) {
27138       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Compactor_set_status" "', argument " "2"" of type '" "std::string const &""'");
27139     }
27140     if (!ptr) {
27141       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Compactor_set_status" "', argument " "2"" of type '" "std::string const &""'");
27142     }
27143     arg2 = ptr;
27144   }
27145   {
27146     std::string *ptr = (std::string *)0;
27147     res3 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[3], &ptr);
27148     if (!SWIG_IsOK(res3)) {
27149       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Compactor_set_status" "', argument " "3"" of type '" "std::string const &""'");
27150     }
27151     if (!ptr) {
27152       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Compactor_set_status" "', argument " "3"" of type '" "std::string const &""'");
27153     }
27154     arg3 = ptr;
27155   }
27156   {
27157     try {
27158       (arg1)->set_status((std::string const &)*arg2,(std::string const &)*arg3);
27159     } catch (const Xapian::Error &e) {
27160       return XapianTclHandleError(interp, e);
27161     } catch (...) {
27162       return XapianTclHandleError(interp);
27163     }
27164   }
27165 
27166   if (SWIG_IsNewObj(res2)) delete arg2;
27167   if (SWIG_IsNewObj(res3)) delete arg3;
27168   return TCL_OK;
27169 fail:
27170   if (SWIG_IsNewObj(res2)) delete arg2;
27171   if (SWIG_IsNewObj(res3)) delete arg3;
27172   return TCL_ERROR;
27173 }
27174 
27175 
27176 SWIGINTERN int
_wrap_Compactor_resolve_duplicate_metadata(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])27177 _wrap_Compactor_resolve_duplicate_metadata(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
27178   Xapian::Compactor *arg1 = (Xapian::Compactor *) 0 ;
27179   std::string *arg2 = 0 ;
27180   size_t arg3 ;
27181   std::string *arg4 ;
27182   void *argp1 = 0 ;
27183   int res1 = 0 ;
27184   int res2 = SWIG_OLDOBJ ;
27185   size_t val3 ;
27186   int ecode3 = 0 ;
27187   void *argp4 = 0 ;
27188   int res4 = 0 ;
27189   std::string result;
27190 
27191   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::Compactor_resolve_duplicate_metadata self key num_tags tags ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
27192   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Compactor, 0 |  0 );
27193   if (!SWIG_IsOK(res1)) {
27194     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Compactor_resolve_duplicate_metadata" "', argument " "1"" of type '" "Xapian::Compactor *""'");
27195   }
27196   arg1 = reinterpret_cast< Xapian::Compactor * >(argp1);
27197   {
27198     std::string *ptr = (std::string *)0;
27199     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
27200     if (!SWIG_IsOK(res2)) {
27201       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Compactor_resolve_duplicate_metadata" "', argument " "2"" of type '" "std::string const &""'");
27202     }
27203     if (!ptr) {
27204       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Compactor_resolve_duplicate_metadata" "', argument " "2"" of type '" "std::string const &""'");
27205     }
27206     arg2 = ptr;
27207   }
27208   ecode3 = SWIG_AsVal_size_t SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
27209   if (!SWIG_IsOK(ecode3)) {
27210     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Compactor_resolve_duplicate_metadata" "', argument " "3"" of type '" "size_t""'");
27211   }
27212   arg3 = static_cast< size_t >(val3);
27213   res4 = SWIG_ConvertPtr(objv[4], &argp4,SWIGTYPE_p_std__string, 0 |  0 );
27214   if (!SWIG_IsOK(res4)) {
27215     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Compactor_resolve_duplicate_metadata" "', argument " "4"" of type '" "std::string const []""'");
27216   }
27217   arg4 = reinterpret_cast< std::string * >(argp4);
27218   {
27219     try {
27220       result = (arg1)->resolve_duplicate_metadata((std::string const &)*arg2,arg3,(std::string const (*))arg4);
27221     } catch (const Xapian::Error &e) {
27222       return XapianTclHandleError(interp, e);
27223     } catch (...) {
27224       return XapianTclHandleError(interp);
27225     }
27226   }
27227   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
27228   if (SWIG_IsNewObj(res2)) delete arg2;
27229   return TCL_OK;
27230 fail:
27231   if (SWIG_IsNewObj(res2)) delete arg2;
27232   return TCL_ERROR;
27233 }
27234 
27235 
swig_delete_Compactor(void * obj)27236 SWIGINTERN void swig_delete_Compactor(void *obj) {
27237 Xapian::Compactor *arg1 = (Xapian::Compactor *) obj;
27238 delete arg1;
27239 }
27240 static swig_method swig_Xapian_Compactor_methods[] = {
27241     {"set_block_size", _wrap_Compactor_set_block_size},
27242     {"set_renumber", _wrap_Compactor_set_renumber},
27243     {"set_multipass", _wrap_Compactor_set_multipass},
27244     {"set_compaction_level", _wrap_Compactor_set_compaction_level},
27245     {"set_destdir", _wrap_Compactor_set_destdir},
27246     {"add_source", _wrap_Compactor_add_source},
27247     {"compact", _wrap_Compactor_compact},
27248     {"set_status", _wrap_Compactor_set_status},
27249     {"resolve_duplicate_metadata", _wrap_Compactor_resolve_duplicate_metadata},
27250     {0,0}
27251 };
27252 static swig_attribute swig_Xapian_Compactor_attributes[] = {
27253     {0,0,0}
27254 };
27255 static swig_class *swig_Xapian_Compactor_bases[] = {0};
27256 static const char * swig_Xapian_Compactor_base_names[] = {0};
27257 static swig_class _wrap_class_Xapian_Compactor = { "Compactor", &SWIGTYPE_p_Xapian__Compactor,_wrap_new_Compactor, swig_delete_Compactor, swig_Xapian_Compactor_methods, swig_Xapian_Compactor_attributes, swig_Xapian_Compactor_bases,swig_Xapian_Compactor_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
27258 SWIGINTERN int
_wrap_delete_PostingSource(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])27259 _wrap_delete_PostingSource(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
27260   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
27261   void *argp1 = 0 ;
27262   int res1 = 0 ;
27263 
27264   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_PostingSource self ",(void *)0) == TCL_ERROR) SWIG_fail;
27265   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PostingSource, SWIG_POINTER_DISOWN |  0 );
27266   if (!SWIG_IsOK(res1)) {
27267     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PostingSource" "', argument " "1"" of type '" "Xapian::PostingSource *""'");
27268   }
27269   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
27270   {
27271     try {
27272       delete arg1;
27273     } catch (const Xapian::Error &e) {
27274       return XapianTclHandleError(interp, e);
27275     } catch (...) {
27276       return XapianTclHandleError(interp);
27277     }
27278   }
27279 
27280   return TCL_OK;
27281 fail:
27282   return TCL_ERROR;
27283 }
27284 
27285 
27286 SWIGINTERN int
_wrap_PostingSource_get_termfreq_min(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])27287 _wrap_PostingSource_get_termfreq_min(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
27288   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
27289   void *argp1 = 0 ;
27290   int res1 = 0 ;
27291   Xapian::doccount result;
27292 
27293   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::PostingSource_get_termfreq_min self ",(void *)0) == TCL_ERROR) SWIG_fail;
27294   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
27295   if (!SWIG_IsOK(res1)) {
27296     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource_get_termfreq_min" "', argument " "1"" of type '" "Xapian::PostingSource const *""'");
27297   }
27298   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
27299   {
27300     try {
27301       result = (Xapian::doccount)((Xapian::PostingSource const *)arg1)->get_termfreq_min();
27302     } catch (const Xapian::Error &e) {
27303       return XapianTclHandleError(interp, e);
27304     } catch (...) {
27305       return XapianTclHandleError(interp);
27306     }
27307   }
27308   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
27309   return TCL_OK;
27310 fail:
27311   return TCL_ERROR;
27312 }
27313 
27314 
27315 SWIGINTERN int
_wrap_PostingSource_get_termfreq_est(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])27316 _wrap_PostingSource_get_termfreq_est(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
27317   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
27318   void *argp1 = 0 ;
27319   int res1 = 0 ;
27320   Xapian::doccount result;
27321 
27322   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::PostingSource_get_termfreq_est self ",(void *)0) == TCL_ERROR) SWIG_fail;
27323   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
27324   if (!SWIG_IsOK(res1)) {
27325     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource_get_termfreq_est" "', argument " "1"" of type '" "Xapian::PostingSource const *""'");
27326   }
27327   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
27328   {
27329     try {
27330       result = (Xapian::doccount)((Xapian::PostingSource const *)arg1)->get_termfreq_est();
27331     } catch (const Xapian::Error &e) {
27332       return XapianTclHandleError(interp, e);
27333     } catch (...) {
27334       return XapianTclHandleError(interp);
27335     }
27336   }
27337   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
27338   return TCL_OK;
27339 fail:
27340   return TCL_ERROR;
27341 }
27342 
27343 
27344 SWIGINTERN int
_wrap_PostingSource_get_termfreq_max(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])27345 _wrap_PostingSource_get_termfreq_max(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
27346   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
27347   void *argp1 = 0 ;
27348   int res1 = 0 ;
27349   Xapian::doccount result;
27350 
27351   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::PostingSource_get_termfreq_max self ",(void *)0) == TCL_ERROR) SWIG_fail;
27352   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
27353   if (!SWIG_IsOK(res1)) {
27354     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource_get_termfreq_max" "', argument " "1"" of type '" "Xapian::PostingSource const *""'");
27355   }
27356   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
27357   {
27358     try {
27359       result = (Xapian::doccount)((Xapian::PostingSource const *)arg1)->get_termfreq_max();
27360     } catch (const Xapian::Error &e) {
27361       return XapianTclHandleError(interp, e);
27362     } catch (...) {
27363       return XapianTclHandleError(interp);
27364     }
27365   }
27366   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
27367   return TCL_OK;
27368 fail:
27369   return TCL_ERROR;
27370 }
27371 
27372 
27373 SWIGINTERN int
_wrap_PostingSource_set_maxweight(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])27374 _wrap_PostingSource_set_maxweight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
27375   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
27376   double arg2 ;
27377   void *argp1 = 0 ;
27378   int res1 = 0 ;
27379   double val2 ;
27380   int ecode2 = 0 ;
27381 
27382   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::PostingSource_set_maxweight self max_weight ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
27383   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
27384   if (!SWIG_IsOK(res1)) {
27385     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource_set_maxweight" "', argument " "1"" of type '" "Xapian::PostingSource *""'");
27386   }
27387   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
27388   ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
27389   if (!SWIG_IsOK(ecode2)) {
27390     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PostingSource_set_maxweight" "', argument " "2"" of type '" "double""'");
27391   }
27392   arg2 = static_cast< double >(val2);
27393   {
27394     try {
27395       (arg1)->set_maxweight(arg2);
27396     } catch (const Xapian::Error &e) {
27397       return XapianTclHandleError(interp, e);
27398     } catch (...) {
27399       return XapianTclHandleError(interp);
27400     }
27401   }
27402 
27403   return TCL_OK;
27404 fail:
27405   return TCL_ERROR;
27406 }
27407 
27408 
27409 SWIGINTERN int
_wrap_PostingSource_get_maxweight(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])27410 _wrap_PostingSource_get_maxweight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
27411   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
27412   void *argp1 = 0 ;
27413   int res1 = 0 ;
27414   double result;
27415 
27416   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::PostingSource_get_maxweight self ",(void *)0) == TCL_ERROR) SWIG_fail;
27417   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
27418   if (!SWIG_IsOK(res1)) {
27419     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource_get_maxweight" "', argument " "1"" of type '" "Xapian::PostingSource const *""'");
27420   }
27421   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
27422   {
27423     try {
27424       result = (double)((Xapian::PostingSource const *)arg1)->get_maxweight();
27425     } catch (const Xapian::Error &e) {
27426       return XapianTclHandleError(interp, e);
27427     } catch (...) {
27428       return XapianTclHandleError(interp);
27429     }
27430   }
27431   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
27432   return TCL_OK;
27433 fail:
27434   return TCL_ERROR;
27435 }
27436 
27437 
27438 SWIGINTERN int
_wrap_PostingSource_get_weight(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])27439 _wrap_PostingSource_get_weight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
27440   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
27441   void *argp1 = 0 ;
27442   int res1 = 0 ;
27443   double result;
27444 
27445   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::PostingSource_get_weight self ",(void *)0) == TCL_ERROR) SWIG_fail;
27446   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
27447   if (!SWIG_IsOK(res1)) {
27448     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource_get_weight" "', argument " "1"" of type '" "Xapian::PostingSource const *""'");
27449   }
27450   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
27451   {
27452     try {
27453       result = (double)((Xapian::PostingSource const *)arg1)->get_weight();
27454     } catch (const Xapian::Error &e) {
27455       return XapianTclHandleError(interp, e);
27456     } catch (...) {
27457       return XapianTclHandleError(interp);
27458     }
27459   }
27460   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
27461   return TCL_OK;
27462 fail:
27463   return TCL_ERROR;
27464 }
27465 
27466 
27467 SWIGINTERN int
_wrap_PostingSource_get_docid(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])27468 _wrap_PostingSource_get_docid(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
27469   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
27470   void *argp1 = 0 ;
27471   int res1 = 0 ;
27472   Xapian::docid result;
27473 
27474   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::PostingSource_get_docid self ",(void *)0) == TCL_ERROR) SWIG_fail;
27475   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
27476   if (!SWIG_IsOK(res1)) {
27477     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource_get_docid" "', argument " "1"" of type '" "Xapian::PostingSource const *""'");
27478   }
27479   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
27480   {
27481     try {
27482       result = (Xapian::docid)((Xapian::PostingSource const *)arg1)->get_docid();
27483     } catch (const Xapian::Error &e) {
27484       return XapianTclHandleError(interp, e);
27485     } catch (...) {
27486       return XapianTclHandleError(interp);
27487     }
27488   }
27489   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
27490   return TCL_OK;
27491 fail:
27492   return TCL_ERROR;
27493 }
27494 
27495 
27496 SWIGINTERN int
_wrap_PostingSource_next(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])27497 _wrap_PostingSource_next(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
27498   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
27499   double arg2 ;
27500   void *argp1 = 0 ;
27501   int res1 = 0 ;
27502   double val2 ;
27503   int ecode2 = 0 ;
27504 
27505   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::PostingSource_next self min_wt ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
27506   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
27507   if (!SWIG_IsOK(res1)) {
27508     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource_next" "', argument " "1"" of type '" "Xapian::PostingSource *""'");
27509   }
27510   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
27511   ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
27512   if (!SWIG_IsOK(ecode2)) {
27513     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PostingSource_next" "', argument " "2"" of type '" "double""'");
27514   }
27515   arg2 = static_cast< double >(val2);
27516   {
27517     try {
27518       (arg1)->next(arg2);
27519     } catch (const Xapian::Error &e) {
27520       return XapianTclHandleError(interp, e);
27521     } catch (...) {
27522       return XapianTclHandleError(interp);
27523     }
27524   }
27525 
27526   return TCL_OK;
27527 fail:
27528   return TCL_ERROR;
27529 }
27530 
27531 
27532 SWIGINTERN int
_wrap_PostingSource_skip_to(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])27533 _wrap_PostingSource_skip_to(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
27534   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
27535   Xapian::docid arg2 ;
27536   double arg3 ;
27537   void *argp1 = 0 ;
27538   int res1 = 0 ;
27539   unsigned int val2 ;
27540   int ecode2 = 0 ;
27541   double val3 ;
27542   int ecode3 = 0 ;
27543 
27544   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::PostingSource_skip_to self did min_wt ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
27545   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
27546   if (!SWIG_IsOK(res1)) {
27547     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource_skip_to" "', argument " "1"" of type '" "Xapian::PostingSource *""'");
27548   }
27549   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
27550   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
27551   if (!SWIG_IsOK(ecode2)) {
27552     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PostingSource_skip_to" "', argument " "2"" of type '" "Xapian::docid""'");
27553   }
27554   arg2 = static_cast< Xapian::docid >(val2);
27555   ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
27556   if (!SWIG_IsOK(ecode3)) {
27557     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PostingSource_skip_to" "', argument " "3"" of type '" "double""'");
27558   }
27559   arg3 = static_cast< double >(val3);
27560   {
27561     try {
27562       (arg1)->skip_to(arg2,arg3);
27563     } catch (const Xapian::Error &e) {
27564       return XapianTclHandleError(interp, e);
27565     } catch (...) {
27566       return XapianTclHandleError(interp);
27567     }
27568   }
27569 
27570   return TCL_OK;
27571 fail:
27572   return TCL_ERROR;
27573 }
27574 
27575 
27576 SWIGINTERN int
_wrap_PostingSource_check(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])27577 _wrap_PostingSource_check(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
27578   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
27579   Xapian::docid arg2 ;
27580   double arg3 ;
27581   void *argp1 = 0 ;
27582   int res1 = 0 ;
27583   unsigned int val2 ;
27584   int ecode2 = 0 ;
27585   double val3 ;
27586   int ecode3 = 0 ;
27587   bool result;
27588 
27589   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::PostingSource_check self did min_wt ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
27590   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
27591   if (!SWIG_IsOK(res1)) {
27592     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource_check" "', argument " "1"" of type '" "Xapian::PostingSource *""'");
27593   }
27594   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
27595   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
27596   if (!SWIG_IsOK(ecode2)) {
27597     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PostingSource_check" "', argument " "2"" of type '" "Xapian::docid""'");
27598   }
27599   arg2 = static_cast< Xapian::docid >(val2);
27600   ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
27601   if (!SWIG_IsOK(ecode3)) {
27602     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PostingSource_check" "', argument " "3"" of type '" "double""'");
27603   }
27604   arg3 = static_cast< double >(val3);
27605   {
27606     try {
27607       result = (bool)(arg1)->check(arg2,arg3);
27608     } catch (const Xapian::Error &e) {
27609       return XapianTclHandleError(interp, e);
27610     } catch (...) {
27611       return XapianTclHandleError(interp);
27612     }
27613   }
27614   Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
27615   return TCL_OK;
27616 fail:
27617   return TCL_ERROR;
27618 }
27619 
27620 
27621 SWIGINTERN int
_wrap_PostingSource_at_end(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])27622 _wrap_PostingSource_at_end(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
27623   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
27624   void *argp1 = 0 ;
27625   int res1 = 0 ;
27626   bool result;
27627 
27628   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::PostingSource_at_end self ",(void *)0) == TCL_ERROR) SWIG_fail;
27629   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
27630   if (!SWIG_IsOK(res1)) {
27631     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource_at_end" "', argument " "1"" of type '" "Xapian::PostingSource const *""'");
27632   }
27633   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
27634   {
27635     try {
27636       result = (bool)((Xapian::PostingSource const *)arg1)->at_end();
27637     } catch (const Xapian::Error &e) {
27638       return XapianTclHandleError(interp, e);
27639     } catch (...) {
27640       return XapianTclHandleError(interp);
27641     }
27642   }
27643   Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
27644   return TCL_OK;
27645 fail:
27646   return TCL_ERROR;
27647 }
27648 
27649 
27650 SWIGINTERN int
_wrap_PostingSource_name(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])27651 _wrap_PostingSource_name(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
27652   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
27653   void *argp1 = 0 ;
27654   int res1 = 0 ;
27655   std::string result;
27656 
27657   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::PostingSource_name self ",(void *)0) == TCL_ERROR) SWIG_fail;
27658   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
27659   if (!SWIG_IsOK(res1)) {
27660     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource_name" "', argument " "1"" of type '" "Xapian::PostingSource const *""'");
27661   }
27662   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
27663   {
27664     try {
27665       result = ((Xapian::PostingSource const *)arg1)->name();
27666     } catch (const Xapian::Error &e) {
27667       return XapianTclHandleError(interp, e);
27668     } catch (...) {
27669       return XapianTclHandleError(interp);
27670     }
27671   }
27672   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
27673   return TCL_OK;
27674 fail:
27675   return TCL_ERROR;
27676 }
27677 
27678 
27679 SWIGINTERN int
_wrap_PostingSource_init(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])27680 _wrap_PostingSource_init(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
27681   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
27682   Xapian::Database *arg2 = 0 ;
27683   void *argp1 = 0 ;
27684   int res1 = 0 ;
27685   void *argp2 ;
27686   int res2 = 0 ;
27687 
27688   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::PostingSource_init self db ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
27689   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
27690   if (!SWIG_IsOK(res1)) {
27691     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource_init" "', argument " "1"" of type '" "Xapian::PostingSource *""'");
27692   }
27693   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
27694   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__Database,  0 );
27695   if (!SWIG_IsOK(res2)) {
27696     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostingSource_init" "', argument " "2"" of type '" "Xapian::Database const &""'");
27697   }
27698   if (!argp2) {
27699     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostingSource_init" "', argument " "2"" of type '" "Xapian::Database const &""'");
27700   }
27701   arg2 = reinterpret_cast< Xapian::Database * >(argp2);
27702   {
27703     try {
27704       (arg1)->init((Xapian::Database const &)*arg2);
27705     } catch (const Xapian::Error &e) {
27706       return XapianTclHandleError(interp, e);
27707     } catch (...) {
27708       return XapianTclHandleError(interp);
27709     }
27710   }
27711 
27712   return TCL_OK;
27713 fail:
27714   return TCL_ERROR;
27715 }
27716 
27717 
27718 SWIGINTERN int
_wrap_PostingSource_get_description(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])27719 _wrap_PostingSource_get_description(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
27720   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
27721   void *argp1 = 0 ;
27722   int res1 = 0 ;
27723   std::string result;
27724 
27725   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::PostingSource_get_description self ",(void *)0) == TCL_ERROR) SWIG_fail;
27726   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
27727   if (!SWIG_IsOK(res1)) {
27728     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource_get_description" "', argument " "1"" of type '" "Xapian::PostingSource const *""'");
27729   }
27730   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
27731   {
27732     try {
27733       result = ((Xapian::PostingSource const *)arg1)->get_description();
27734     } catch (const Xapian::Error &e) {
27735       return XapianTclHandleError(interp, e);
27736     } catch (...) {
27737       return XapianTclHandleError(interp);
27738     }
27739   }
27740   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
27741   return TCL_OK;
27742 fail:
27743   return TCL_ERROR;
27744 }
27745 
27746 
27747 SWIGINTERN int
_wrap_PostingSource_release(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])27748 _wrap_PostingSource_release(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
27749   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
27750   void *argp1 = 0 ;
27751   int res1 = 0 ;
27752   Xapian::PostingSource *result = 0 ;
27753 
27754   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::PostingSource_release self ",(void *)0) == TCL_ERROR) SWIG_fail;
27755   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
27756   if (!SWIG_IsOK(res1)) {
27757     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource_release" "', argument " "1"" of type '" "Xapian::PostingSource const *""'");
27758   }
27759   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
27760   {
27761     try {
27762       result = (Xapian::PostingSource *)((Xapian::PostingSource const *)arg1)->release();
27763     } catch (const Xapian::Error &e) {
27764       return XapianTclHandleError(interp, e);
27765     } catch (...) {
27766       return XapianTclHandleError(interp);
27767     }
27768   }
27769   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__PostingSource,0));
27770   return TCL_OK;
27771 fail:
27772   return TCL_ERROR;
27773 }
27774 
27775 
swig_delete_PostingSource(void * obj)27776 SWIGINTERN void swig_delete_PostingSource(void *obj) {
27777 Xapian::PostingSource *arg1 = (Xapian::PostingSource *) obj;
27778 delete arg1;
27779 }
27780 static swig_method swig_Xapian_PostingSource_methods[] = {
27781     {"get_termfreq_min", _wrap_PostingSource_get_termfreq_min},
27782     {"get_termfreq_est", _wrap_PostingSource_get_termfreq_est},
27783     {"get_termfreq_max", _wrap_PostingSource_get_termfreq_max},
27784     {"set_maxweight", _wrap_PostingSource_set_maxweight},
27785     {"get_maxweight", _wrap_PostingSource_get_maxweight},
27786     {"get_weight", _wrap_PostingSource_get_weight},
27787     {"get_docid", _wrap_PostingSource_get_docid},
27788     {"next", _wrap_PostingSource_next},
27789     {"skip_to", _wrap_PostingSource_skip_to},
27790     {"check", _wrap_PostingSource_check},
27791     {"at_end", _wrap_PostingSource_at_end},
27792     {"name", _wrap_PostingSource_name},
27793     {"init", _wrap_PostingSource_init},
27794     {"get_description", _wrap_PostingSource_get_description},
27795     {"release", _wrap_PostingSource_release},
27796     {0,0}
27797 };
27798 static swig_attribute swig_Xapian_PostingSource_attributes[] = {
27799     {0,0,0}
27800 };
27801 static swig_class *swig_Xapian_PostingSource_bases[] = {0};
27802 static const char * swig_Xapian_PostingSource_base_names[] = {0};
27803 static swig_class _wrap_class_Xapian_PostingSource = { "PostingSource", &SWIGTYPE_p_Xapian__PostingSource,0, swig_delete_PostingSource, swig_Xapian_PostingSource_methods, swig_Xapian_PostingSource_attributes, swig_Xapian_PostingSource_bases,swig_Xapian_PostingSource_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
27804 SWIGINTERN int
_wrap_new_ValuePostingSource(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])27805 _wrap_new_ValuePostingSource(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
27806   Xapian::valueno arg1 ;
27807   unsigned int val1 ;
27808   int ecode1 = 0 ;
27809   Xapian::ValuePostingSource *result = 0 ;
27810 
27811   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_ValuePostingSource slot_ ",(void *)0) == TCL_ERROR) SWIG_fail;
27812   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
27813   if (!SWIG_IsOK(ecode1)) {
27814     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ValuePostingSource" "', argument " "1"" of type '" "Xapian::valueno""'");
27815   }
27816   arg1 = static_cast< Xapian::valueno >(val1);
27817   {
27818     try {
27819       result = (Xapian::ValuePostingSource *)new Xapian::ValuePostingSource(arg1);
27820     } catch (const Xapian::Error &e) {
27821       return XapianTclHandleError(interp, e);
27822     } catch (...) {
27823       return XapianTclHandleError(interp);
27824     }
27825   }
27826   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ValuePostingSource,0));
27827   return TCL_OK;
27828 fail:
27829   return TCL_ERROR;
27830 }
27831 
27832 
27833 SWIGINTERN int
_wrap_ValuePostingSource_get_termfreq_min(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])27834 _wrap_ValuePostingSource_get_termfreq_min(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
27835   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
27836   void *argp1 = 0 ;
27837   int res1 = 0 ;
27838   Xapian::doccount result;
27839 
27840   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::ValuePostingSource_get_termfreq_min self ",(void *)0) == TCL_ERROR) SWIG_fail;
27841   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
27842   if (!SWIG_IsOK(res1)) {
27843     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_get_termfreq_min" "', argument " "1"" of type '" "Xapian::ValuePostingSource const *""'");
27844   }
27845   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
27846   {
27847     try {
27848       result = (Xapian::doccount)((Xapian::ValuePostingSource const *)arg1)->get_termfreq_min();
27849     } catch (const Xapian::Error &e) {
27850       return XapianTclHandleError(interp, e);
27851     } catch (...) {
27852       return XapianTclHandleError(interp);
27853     }
27854   }
27855   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
27856   return TCL_OK;
27857 fail:
27858   return TCL_ERROR;
27859 }
27860 
27861 
27862 SWIGINTERN int
_wrap_ValuePostingSource_get_termfreq_est(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])27863 _wrap_ValuePostingSource_get_termfreq_est(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
27864   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
27865   void *argp1 = 0 ;
27866   int res1 = 0 ;
27867   Xapian::doccount result;
27868 
27869   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::ValuePostingSource_get_termfreq_est self ",(void *)0) == TCL_ERROR) SWIG_fail;
27870   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
27871   if (!SWIG_IsOK(res1)) {
27872     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_get_termfreq_est" "', argument " "1"" of type '" "Xapian::ValuePostingSource const *""'");
27873   }
27874   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
27875   {
27876     try {
27877       result = (Xapian::doccount)((Xapian::ValuePostingSource const *)arg1)->get_termfreq_est();
27878     } catch (const Xapian::Error &e) {
27879       return XapianTclHandleError(interp, e);
27880     } catch (...) {
27881       return XapianTclHandleError(interp);
27882     }
27883   }
27884   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
27885   return TCL_OK;
27886 fail:
27887   return TCL_ERROR;
27888 }
27889 
27890 
27891 SWIGINTERN int
_wrap_ValuePostingSource_get_termfreq_max(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])27892 _wrap_ValuePostingSource_get_termfreq_max(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
27893   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
27894   void *argp1 = 0 ;
27895   int res1 = 0 ;
27896   Xapian::doccount result;
27897 
27898   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::ValuePostingSource_get_termfreq_max self ",(void *)0) == TCL_ERROR) SWIG_fail;
27899   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
27900   if (!SWIG_IsOK(res1)) {
27901     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_get_termfreq_max" "', argument " "1"" of type '" "Xapian::ValuePostingSource const *""'");
27902   }
27903   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
27904   {
27905     try {
27906       result = (Xapian::doccount)((Xapian::ValuePostingSource const *)arg1)->get_termfreq_max();
27907     } catch (const Xapian::Error &e) {
27908       return XapianTclHandleError(interp, e);
27909     } catch (...) {
27910       return XapianTclHandleError(interp);
27911     }
27912   }
27913   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
27914   return TCL_OK;
27915 fail:
27916   return TCL_ERROR;
27917 }
27918 
27919 
27920 SWIGINTERN int
_wrap_ValuePostingSource_next(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])27921 _wrap_ValuePostingSource_next(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
27922   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
27923   double arg2 ;
27924   void *argp1 = 0 ;
27925   int res1 = 0 ;
27926   double val2 ;
27927   int ecode2 = 0 ;
27928 
27929   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::ValuePostingSource_next self min_wt ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
27930   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
27931   if (!SWIG_IsOK(res1)) {
27932     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_next" "', argument " "1"" of type '" "Xapian::ValuePostingSource *""'");
27933   }
27934   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
27935   ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
27936   if (!SWIG_IsOK(ecode2)) {
27937     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ValuePostingSource_next" "', argument " "2"" of type '" "double""'");
27938   }
27939   arg2 = static_cast< double >(val2);
27940   {
27941     try {
27942       (arg1)->next(arg2);
27943     } catch (const Xapian::Error &e) {
27944       return XapianTclHandleError(interp, e);
27945     } catch (...) {
27946       return XapianTclHandleError(interp);
27947     }
27948   }
27949 
27950   return TCL_OK;
27951 fail:
27952   return TCL_ERROR;
27953 }
27954 
27955 
27956 SWIGINTERN int
_wrap_ValuePostingSource_skip_to(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])27957 _wrap_ValuePostingSource_skip_to(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
27958   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
27959   Xapian::docid arg2 ;
27960   double arg3 ;
27961   void *argp1 = 0 ;
27962   int res1 = 0 ;
27963   unsigned int val2 ;
27964   int ecode2 = 0 ;
27965   double val3 ;
27966   int ecode3 = 0 ;
27967 
27968   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::ValuePostingSource_skip_to self min_docid min_wt ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
27969   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
27970   if (!SWIG_IsOK(res1)) {
27971     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_skip_to" "', argument " "1"" of type '" "Xapian::ValuePostingSource *""'");
27972   }
27973   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
27974   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
27975   if (!SWIG_IsOK(ecode2)) {
27976     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ValuePostingSource_skip_to" "', argument " "2"" of type '" "Xapian::docid""'");
27977   }
27978   arg2 = static_cast< Xapian::docid >(val2);
27979   ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
27980   if (!SWIG_IsOK(ecode3)) {
27981     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ValuePostingSource_skip_to" "', argument " "3"" of type '" "double""'");
27982   }
27983   arg3 = static_cast< double >(val3);
27984   {
27985     try {
27986       (arg1)->skip_to(arg2,arg3);
27987     } catch (const Xapian::Error &e) {
27988       return XapianTclHandleError(interp, e);
27989     } catch (...) {
27990       return XapianTclHandleError(interp);
27991     }
27992   }
27993 
27994   return TCL_OK;
27995 fail:
27996   return TCL_ERROR;
27997 }
27998 
27999 
28000 SWIGINTERN int
_wrap_ValuePostingSource_check(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])28001 _wrap_ValuePostingSource_check(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
28002   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
28003   Xapian::docid arg2 ;
28004   double arg3 ;
28005   void *argp1 = 0 ;
28006   int res1 = 0 ;
28007   unsigned int val2 ;
28008   int ecode2 = 0 ;
28009   double val3 ;
28010   int ecode3 = 0 ;
28011   bool result;
28012 
28013   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::ValuePostingSource_check self min_docid min_wt ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
28014   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
28015   if (!SWIG_IsOK(res1)) {
28016     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_check" "', argument " "1"" of type '" "Xapian::ValuePostingSource *""'");
28017   }
28018   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
28019   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
28020   if (!SWIG_IsOK(ecode2)) {
28021     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ValuePostingSource_check" "', argument " "2"" of type '" "Xapian::docid""'");
28022   }
28023   arg2 = static_cast< Xapian::docid >(val2);
28024   ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
28025   if (!SWIG_IsOK(ecode3)) {
28026     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ValuePostingSource_check" "', argument " "3"" of type '" "double""'");
28027   }
28028   arg3 = static_cast< double >(val3);
28029   {
28030     try {
28031       result = (bool)(arg1)->check(arg2,arg3);
28032     } catch (const Xapian::Error &e) {
28033       return XapianTclHandleError(interp, e);
28034     } catch (...) {
28035       return XapianTclHandleError(interp);
28036     }
28037   }
28038   Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
28039   return TCL_OK;
28040 fail:
28041   return TCL_ERROR;
28042 }
28043 
28044 
28045 SWIGINTERN int
_wrap_ValuePostingSource_at_end(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])28046 _wrap_ValuePostingSource_at_end(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
28047   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
28048   void *argp1 = 0 ;
28049   int res1 = 0 ;
28050   bool result;
28051 
28052   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::ValuePostingSource_at_end self ",(void *)0) == TCL_ERROR) SWIG_fail;
28053   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
28054   if (!SWIG_IsOK(res1)) {
28055     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_at_end" "', argument " "1"" of type '" "Xapian::ValuePostingSource const *""'");
28056   }
28057   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
28058   {
28059     try {
28060       result = (bool)((Xapian::ValuePostingSource const *)arg1)->at_end();
28061     } catch (const Xapian::Error &e) {
28062       return XapianTclHandleError(interp, e);
28063     } catch (...) {
28064       return XapianTclHandleError(interp);
28065     }
28066   }
28067   Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
28068   return TCL_OK;
28069 fail:
28070   return TCL_ERROR;
28071 }
28072 
28073 
28074 SWIGINTERN int
_wrap_ValuePostingSource_get_docid(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])28075 _wrap_ValuePostingSource_get_docid(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
28076   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
28077   void *argp1 = 0 ;
28078   int res1 = 0 ;
28079   Xapian::docid result;
28080 
28081   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::ValuePostingSource_get_docid self ",(void *)0) == TCL_ERROR) SWIG_fail;
28082   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
28083   if (!SWIG_IsOK(res1)) {
28084     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_get_docid" "', argument " "1"" of type '" "Xapian::ValuePostingSource const *""'");
28085   }
28086   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
28087   {
28088     try {
28089       result = (Xapian::docid)((Xapian::ValuePostingSource const *)arg1)->get_docid();
28090     } catch (const Xapian::Error &e) {
28091       return XapianTclHandleError(interp, e);
28092     } catch (...) {
28093       return XapianTclHandleError(interp);
28094     }
28095   }
28096   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
28097   return TCL_OK;
28098 fail:
28099   return TCL_ERROR;
28100 }
28101 
28102 
28103 SWIGINTERN int
_wrap_ValuePostingSource_init(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])28104 _wrap_ValuePostingSource_init(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
28105   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
28106   Xapian::Database *arg2 = 0 ;
28107   void *argp1 = 0 ;
28108   int res1 = 0 ;
28109   void *argp2 ;
28110   int res2 = 0 ;
28111 
28112   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::ValuePostingSource_init self db_ ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
28113   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
28114   if (!SWIG_IsOK(res1)) {
28115     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_init" "', argument " "1"" of type '" "Xapian::ValuePostingSource *""'");
28116   }
28117   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
28118   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__Database,  0 );
28119   if (!SWIG_IsOK(res2)) {
28120     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ValuePostingSource_init" "', argument " "2"" of type '" "Xapian::Database const &""'");
28121   }
28122   if (!argp2) {
28123     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ValuePostingSource_init" "', argument " "2"" of type '" "Xapian::Database const &""'");
28124   }
28125   arg2 = reinterpret_cast< Xapian::Database * >(argp2);
28126   {
28127     try {
28128       (arg1)->init((Xapian::Database const &)*arg2);
28129     } catch (const Xapian::Error &e) {
28130       return XapianTclHandleError(interp, e);
28131     } catch (...) {
28132       return XapianTclHandleError(interp);
28133     }
28134   }
28135 
28136   return TCL_OK;
28137 fail:
28138   return TCL_ERROR;
28139 }
28140 
28141 
28142 SWIGINTERN int
_wrap_ValuePostingSource_get_database(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])28143 _wrap_ValuePostingSource_get_database(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
28144   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
28145   void *argp1 = 0 ;
28146   int res1 = 0 ;
28147   Xapian::Database result;
28148 
28149   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::ValuePostingSource_get_database self ",(void *)0) == TCL_ERROR) SWIG_fail;
28150   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
28151   if (!SWIG_IsOK(res1)) {
28152     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_get_database" "', argument " "1"" of type '" "Xapian::ValuePostingSource const *""'");
28153   }
28154   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
28155   {
28156     try {
28157       result = ((Xapian::ValuePostingSource const *)arg1)->get_database();
28158     } catch (const Xapian::Error &e) {
28159       return XapianTclHandleError(interp, e);
28160     } catch (...) {
28161       return XapianTclHandleError(interp);
28162     }
28163   }
28164   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::Database(static_cast< const Xapian::Database& >(result))), SWIGTYPE_p_Xapian__Database, SWIG_POINTER_OWN | 0 ));
28165   return TCL_OK;
28166 fail:
28167   return TCL_ERROR;
28168 }
28169 
28170 
28171 SWIGINTERN int
_wrap_ValuePostingSource_get_slot(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])28172 _wrap_ValuePostingSource_get_slot(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
28173   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
28174   void *argp1 = 0 ;
28175   int res1 = 0 ;
28176   Xapian::valueno result;
28177 
28178   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::ValuePostingSource_get_slot self ",(void *)0) == TCL_ERROR) SWIG_fail;
28179   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
28180   if (!SWIG_IsOK(res1)) {
28181     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_get_slot" "', argument " "1"" of type '" "Xapian::ValuePostingSource const *""'");
28182   }
28183   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
28184   {
28185     try {
28186       result = (Xapian::valueno)((Xapian::ValuePostingSource const *)arg1)->get_slot();
28187     } catch (const Xapian::Error &e) {
28188       return XapianTclHandleError(interp, e);
28189     } catch (...) {
28190       return XapianTclHandleError(interp);
28191     }
28192   }
28193   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
28194   return TCL_OK;
28195 fail:
28196   return TCL_ERROR;
28197 }
28198 
28199 
28200 SWIGINTERN int
_wrap_ValuePostingSource_get_value(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])28201 _wrap_ValuePostingSource_get_value(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
28202   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
28203   void *argp1 = 0 ;
28204   int res1 = 0 ;
28205   std::string result;
28206 
28207   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::ValuePostingSource_get_value self ",(void *)0) == TCL_ERROR) SWIG_fail;
28208   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
28209   if (!SWIG_IsOK(res1)) {
28210     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_get_value" "', argument " "1"" of type '" "Xapian::ValuePostingSource const *""'");
28211   }
28212   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
28213   {
28214     try {
28215       result = ((Xapian::ValuePostingSource const *)arg1)->get_value();
28216     } catch (const Xapian::Error &e) {
28217       return XapianTclHandleError(interp, e);
28218     } catch (...) {
28219       return XapianTclHandleError(interp);
28220     }
28221   }
28222   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
28223   return TCL_OK;
28224 fail:
28225   return TCL_ERROR;
28226 }
28227 
28228 
28229 SWIGINTERN int
_wrap_ValuePostingSource_done(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])28230 _wrap_ValuePostingSource_done(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
28231   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
28232   void *argp1 = 0 ;
28233   int res1 = 0 ;
28234 
28235   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::ValuePostingSource_done self ",(void *)0) == TCL_ERROR) SWIG_fail;
28236   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
28237   if (!SWIG_IsOK(res1)) {
28238     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_done" "', argument " "1"" of type '" "Xapian::ValuePostingSource *""'");
28239   }
28240   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
28241   {
28242     try {
28243       (arg1)->done();
28244     } catch (const Xapian::Error &e) {
28245       return XapianTclHandleError(interp, e);
28246     } catch (...) {
28247       return XapianTclHandleError(interp);
28248     }
28249   }
28250 
28251   return TCL_OK;
28252 fail:
28253   return TCL_ERROR;
28254 }
28255 
28256 
28257 SWIGINTERN int
_wrap_ValuePostingSource_get_started(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])28258 _wrap_ValuePostingSource_get_started(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
28259   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
28260   void *argp1 = 0 ;
28261   int res1 = 0 ;
28262   bool result;
28263 
28264   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::ValuePostingSource_get_started self ",(void *)0) == TCL_ERROR) SWIG_fail;
28265   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
28266   if (!SWIG_IsOK(res1)) {
28267     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_get_started" "', argument " "1"" of type '" "Xapian::ValuePostingSource const *""'");
28268   }
28269   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
28270   {
28271     try {
28272       result = (bool)((Xapian::ValuePostingSource const *)arg1)->get_started();
28273     } catch (const Xapian::Error &e) {
28274       return XapianTclHandleError(interp, e);
28275     } catch (...) {
28276       return XapianTclHandleError(interp);
28277     }
28278   }
28279   Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
28280   return TCL_OK;
28281 fail:
28282   return TCL_ERROR;
28283 }
28284 
28285 
28286 SWIGINTERN int
_wrap_ValuePostingSource_set_termfreq_min(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])28287 _wrap_ValuePostingSource_set_termfreq_min(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
28288   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
28289   Xapian::doccount arg2 ;
28290   void *argp1 = 0 ;
28291   int res1 = 0 ;
28292   unsigned int val2 ;
28293   int ecode2 = 0 ;
28294 
28295   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::ValuePostingSource_set_termfreq_min self termfreq_min_ ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
28296   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
28297   if (!SWIG_IsOK(res1)) {
28298     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_set_termfreq_min" "', argument " "1"" of type '" "Xapian::ValuePostingSource *""'");
28299   }
28300   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
28301   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
28302   if (!SWIG_IsOK(ecode2)) {
28303     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ValuePostingSource_set_termfreq_min" "', argument " "2"" of type '" "Xapian::doccount""'");
28304   }
28305   arg2 = static_cast< Xapian::doccount >(val2);
28306   {
28307     try {
28308       (arg1)->set_termfreq_min(arg2);
28309     } catch (const Xapian::Error &e) {
28310       return XapianTclHandleError(interp, e);
28311     } catch (...) {
28312       return XapianTclHandleError(interp);
28313     }
28314   }
28315 
28316   return TCL_OK;
28317 fail:
28318   return TCL_ERROR;
28319 }
28320 
28321 
28322 SWIGINTERN int
_wrap_ValuePostingSource_set_termfreq_est(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])28323 _wrap_ValuePostingSource_set_termfreq_est(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
28324   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
28325   Xapian::doccount arg2 ;
28326   void *argp1 = 0 ;
28327   int res1 = 0 ;
28328   unsigned int val2 ;
28329   int ecode2 = 0 ;
28330 
28331   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::ValuePostingSource_set_termfreq_est self termfreq_est_ ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
28332   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
28333   if (!SWIG_IsOK(res1)) {
28334     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_set_termfreq_est" "', argument " "1"" of type '" "Xapian::ValuePostingSource *""'");
28335   }
28336   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
28337   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
28338   if (!SWIG_IsOK(ecode2)) {
28339     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ValuePostingSource_set_termfreq_est" "', argument " "2"" of type '" "Xapian::doccount""'");
28340   }
28341   arg2 = static_cast< Xapian::doccount >(val2);
28342   {
28343     try {
28344       (arg1)->set_termfreq_est(arg2);
28345     } catch (const Xapian::Error &e) {
28346       return XapianTclHandleError(interp, e);
28347     } catch (...) {
28348       return XapianTclHandleError(interp);
28349     }
28350   }
28351 
28352   return TCL_OK;
28353 fail:
28354   return TCL_ERROR;
28355 }
28356 
28357 
28358 SWIGINTERN int
_wrap_ValuePostingSource_set_termfreq_max(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])28359 _wrap_ValuePostingSource_set_termfreq_max(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
28360   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
28361   Xapian::doccount arg2 ;
28362   void *argp1 = 0 ;
28363   int res1 = 0 ;
28364   unsigned int val2 ;
28365   int ecode2 = 0 ;
28366 
28367   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::ValuePostingSource_set_termfreq_max self termfreq_max_ ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
28368   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
28369   if (!SWIG_IsOK(res1)) {
28370     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_set_termfreq_max" "', argument " "1"" of type '" "Xapian::ValuePostingSource *""'");
28371   }
28372   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
28373   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
28374   if (!SWIG_IsOK(ecode2)) {
28375     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ValuePostingSource_set_termfreq_max" "', argument " "2"" of type '" "Xapian::doccount""'");
28376   }
28377   arg2 = static_cast< Xapian::doccount >(val2);
28378   {
28379     try {
28380       (arg1)->set_termfreq_max(arg2);
28381     } catch (const Xapian::Error &e) {
28382       return XapianTclHandleError(interp, e);
28383     } catch (...) {
28384       return XapianTclHandleError(interp);
28385     }
28386   }
28387 
28388   return TCL_OK;
28389 fail:
28390   return TCL_ERROR;
28391 }
28392 
28393 
28394 SWIGINTERN int
_wrap_delete_ValuePostingSource(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])28395 _wrap_delete_ValuePostingSource(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
28396   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
28397   void *argp1 = 0 ;
28398   int res1 = 0 ;
28399 
28400   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_ValuePostingSource self ",(void *)0) == TCL_ERROR) SWIG_fail;
28401   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, SWIG_POINTER_DISOWN |  0 );
28402   if (!SWIG_IsOK(res1)) {
28403     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ValuePostingSource" "', argument " "1"" of type '" "Xapian::ValuePostingSource *""'");
28404   }
28405   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
28406   {
28407     try {
28408       delete arg1;
28409     } catch (const Xapian::Error &e) {
28410       return XapianTclHandleError(interp, e);
28411     } catch (...) {
28412       return XapianTclHandleError(interp);
28413     }
28414   }
28415 
28416   return TCL_OK;
28417 fail:
28418   return TCL_ERROR;
28419 }
28420 
28421 
swig_delete_ValuePostingSource(void * obj)28422 SWIGINTERN void swig_delete_ValuePostingSource(void *obj) {
28423 Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) obj;
28424 delete arg1;
28425 }
28426 static swig_method swig_Xapian_ValuePostingSource_methods[] = {
28427     {"get_termfreq_min", _wrap_ValuePostingSource_get_termfreq_min},
28428     {"get_termfreq_est", _wrap_ValuePostingSource_get_termfreq_est},
28429     {"get_termfreq_max", _wrap_ValuePostingSource_get_termfreq_max},
28430     {"next", _wrap_ValuePostingSource_next},
28431     {"skip_to", _wrap_ValuePostingSource_skip_to},
28432     {"check", _wrap_ValuePostingSource_check},
28433     {"at_end", _wrap_ValuePostingSource_at_end},
28434     {"get_docid", _wrap_ValuePostingSource_get_docid},
28435     {"init", _wrap_ValuePostingSource_init},
28436     {"get_database", _wrap_ValuePostingSource_get_database},
28437     {"get_slot", _wrap_ValuePostingSource_get_slot},
28438     {"get_value", _wrap_ValuePostingSource_get_value},
28439     {"done", _wrap_ValuePostingSource_done},
28440     {"get_started", _wrap_ValuePostingSource_get_started},
28441     {"set_termfreq_min", _wrap_ValuePostingSource_set_termfreq_min},
28442     {"set_termfreq_est", _wrap_ValuePostingSource_set_termfreq_est},
28443     {"set_termfreq_max", _wrap_ValuePostingSource_set_termfreq_max},
28444     {0,0}
28445 };
28446 static swig_attribute swig_Xapian_ValuePostingSource_attributes[] = {
28447     {0,0,0}
28448 };
28449 static swig_class *swig_Xapian_ValuePostingSource_bases[] = {0,0};
28450 static const char * swig_Xapian_ValuePostingSource_base_names[] = {"Xapian::PostingSource *",0};
28451 static swig_class _wrap_class_Xapian_ValuePostingSource = { "ValuePostingSource", &SWIGTYPE_p_Xapian__ValuePostingSource,_wrap_new_ValuePostingSource, swig_delete_ValuePostingSource, swig_Xapian_ValuePostingSource_methods, swig_Xapian_ValuePostingSource_attributes, swig_Xapian_ValuePostingSource_bases,swig_Xapian_ValuePostingSource_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
28452 SWIGINTERN int
_wrap_new_ValueWeightPostingSource(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])28453 _wrap_new_ValueWeightPostingSource(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
28454   Xapian::valueno arg1 ;
28455   unsigned int val1 ;
28456   int ecode1 = 0 ;
28457   Xapian::ValueWeightPostingSource *result = 0 ;
28458 
28459   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_ValueWeightPostingSource slot_ ",(void *)0) == TCL_ERROR) SWIG_fail;
28460   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
28461   if (!SWIG_IsOK(ecode1)) {
28462     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ValueWeightPostingSource" "', argument " "1"" of type '" "Xapian::valueno""'");
28463   }
28464   arg1 = static_cast< Xapian::valueno >(val1);
28465   {
28466     try {
28467       result = (Xapian::ValueWeightPostingSource *)new Xapian::ValueWeightPostingSource(arg1);
28468     } catch (const Xapian::Error &e) {
28469       return XapianTclHandleError(interp, e);
28470     } catch (...) {
28471       return XapianTclHandleError(interp);
28472     }
28473   }
28474   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ValueWeightPostingSource,0));
28475   return TCL_OK;
28476 fail:
28477   return TCL_ERROR;
28478 }
28479 
28480 
28481 SWIGINTERN int
_wrap_ValueWeightPostingSource_get_weight(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])28482 _wrap_ValueWeightPostingSource_get_weight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
28483   Xapian::ValueWeightPostingSource *arg1 = (Xapian::ValueWeightPostingSource *) 0 ;
28484   void *argp1 = 0 ;
28485   int res1 = 0 ;
28486   double result;
28487 
28488   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::ValueWeightPostingSource_get_weight self ",(void *)0) == TCL_ERROR) SWIG_fail;
28489   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValueWeightPostingSource, 0 |  0 );
28490   if (!SWIG_IsOK(res1)) {
28491     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueWeightPostingSource_get_weight" "', argument " "1"" of type '" "Xapian::ValueWeightPostingSource const *""'");
28492   }
28493   arg1 = reinterpret_cast< Xapian::ValueWeightPostingSource * >(argp1);
28494   {
28495     try {
28496       result = (double)((Xapian::ValueWeightPostingSource const *)arg1)->get_weight();
28497     } catch (const Xapian::Error &e) {
28498       return XapianTclHandleError(interp, e);
28499     } catch (...) {
28500       return XapianTclHandleError(interp);
28501     }
28502   }
28503   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
28504   return TCL_OK;
28505 fail:
28506   return TCL_ERROR;
28507 }
28508 
28509 
28510 SWIGINTERN int
_wrap_ValueWeightPostingSource_name(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])28511 _wrap_ValueWeightPostingSource_name(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
28512   Xapian::ValueWeightPostingSource *arg1 = (Xapian::ValueWeightPostingSource *) 0 ;
28513   void *argp1 = 0 ;
28514   int res1 = 0 ;
28515   std::string result;
28516 
28517   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::ValueWeightPostingSource_name self ",(void *)0) == TCL_ERROR) SWIG_fail;
28518   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValueWeightPostingSource, 0 |  0 );
28519   if (!SWIG_IsOK(res1)) {
28520     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueWeightPostingSource_name" "', argument " "1"" of type '" "Xapian::ValueWeightPostingSource const *""'");
28521   }
28522   arg1 = reinterpret_cast< Xapian::ValueWeightPostingSource * >(argp1);
28523   {
28524     try {
28525       result = ((Xapian::ValueWeightPostingSource const *)arg1)->name();
28526     } catch (const Xapian::Error &e) {
28527       return XapianTclHandleError(interp, e);
28528     } catch (...) {
28529       return XapianTclHandleError(interp);
28530     }
28531   }
28532   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
28533   return TCL_OK;
28534 fail:
28535   return TCL_ERROR;
28536 }
28537 
28538 
28539 SWIGINTERN int
_wrap_ValueWeightPostingSource_init(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])28540 _wrap_ValueWeightPostingSource_init(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
28541   Xapian::ValueWeightPostingSource *arg1 = (Xapian::ValueWeightPostingSource *) 0 ;
28542   Xapian::Database *arg2 = 0 ;
28543   void *argp1 = 0 ;
28544   int res1 = 0 ;
28545   void *argp2 ;
28546   int res2 = 0 ;
28547 
28548   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::ValueWeightPostingSource_init self db_ ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
28549   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValueWeightPostingSource, 0 |  0 );
28550   if (!SWIG_IsOK(res1)) {
28551     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueWeightPostingSource_init" "', argument " "1"" of type '" "Xapian::ValueWeightPostingSource *""'");
28552   }
28553   arg1 = reinterpret_cast< Xapian::ValueWeightPostingSource * >(argp1);
28554   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__Database,  0 );
28555   if (!SWIG_IsOK(res2)) {
28556     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ValueWeightPostingSource_init" "', argument " "2"" of type '" "Xapian::Database const &""'");
28557   }
28558   if (!argp2) {
28559     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ValueWeightPostingSource_init" "', argument " "2"" of type '" "Xapian::Database const &""'");
28560   }
28561   arg2 = reinterpret_cast< Xapian::Database * >(argp2);
28562   {
28563     try {
28564       (arg1)->init((Xapian::Database const &)*arg2);
28565     } catch (const Xapian::Error &e) {
28566       return XapianTclHandleError(interp, e);
28567     } catch (...) {
28568       return XapianTclHandleError(interp);
28569     }
28570   }
28571 
28572   return TCL_OK;
28573 fail:
28574   return TCL_ERROR;
28575 }
28576 
28577 
28578 SWIGINTERN int
_wrap_ValueWeightPostingSource_get_description(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])28579 _wrap_ValueWeightPostingSource_get_description(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
28580   Xapian::ValueWeightPostingSource *arg1 = (Xapian::ValueWeightPostingSource *) 0 ;
28581   void *argp1 = 0 ;
28582   int res1 = 0 ;
28583   std::string result;
28584 
28585   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::ValueWeightPostingSource_get_description self ",(void *)0) == TCL_ERROR) SWIG_fail;
28586   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValueWeightPostingSource, 0 |  0 );
28587   if (!SWIG_IsOK(res1)) {
28588     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueWeightPostingSource_get_description" "', argument " "1"" of type '" "Xapian::ValueWeightPostingSource const *""'");
28589   }
28590   arg1 = reinterpret_cast< Xapian::ValueWeightPostingSource * >(argp1);
28591   {
28592     try {
28593       result = ((Xapian::ValueWeightPostingSource const *)arg1)->get_description();
28594     } catch (const Xapian::Error &e) {
28595       return XapianTclHandleError(interp, e);
28596     } catch (...) {
28597       return XapianTclHandleError(interp);
28598     }
28599   }
28600   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
28601   return TCL_OK;
28602 fail:
28603   return TCL_ERROR;
28604 }
28605 
28606 
28607 SWIGINTERN int
_wrap_delete_ValueWeightPostingSource(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])28608 _wrap_delete_ValueWeightPostingSource(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
28609   Xapian::ValueWeightPostingSource *arg1 = (Xapian::ValueWeightPostingSource *) 0 ;
28610   void *argp1 = 0 ;
28611   int res1 = 0 ;
28612 
28613   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_ValueWeightPostingSource self ",(void *)0) == TCL_ERROR) SWIG_fail;
28614   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValueWeightPostingSource, SWIG_POINTER_DISOWN |  0 );
28615   if (!SWIG_IsOK(res1)) {
28616     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ValueWeightPostingSource" "', argument " "1"" of type '" "Xapian::ValueWeightPostingSource *""'");
28617   }
28618   arg1 = reinterpret_cast< Xapian::ValueWeightPostingSource * >(argp1);
28619   {
28620     try {
28621       delete arg1;
28622     } catch (const Xapian::Error &e) {
28623       return XapianTclHandleError(interp, e);
28624     } catch (...) {
28625       return XapianTclHandleError(interp);
28626     }
28627   }
28628 
28629   return TCL_OK;
28630 fail:
28631   return TCL_ERROR;
28632 }
28633 
28634 
swig_delete_ValueWeightPostingSource(void * obj)28635 SWIGINTERN void swig_delete_ValueWeightPostingSource(void *obj) {
28636 Xapian::ValueWeightPostingSource *arg1 = (Xapian::ValueWeightPostingSource *) obj;
28637 delete arg1;
28638 }
28639 static swig_method swig_Xapian_ValueWeightPostingSource_methods[] = {
28640     {"get_weight", _wrap_ValueWeightPostingSource_get_weight},
28641     {"name", _wrap_ValueWeightPostingSource_name},
28642     {"init", _wrap_ValueWeightPostingSource_init},
28643     {"get_description", _wrap_ValueWeightPostingSource_get_description},
28644     {0,0}
28645 };
28646 static swig_attribute swig_Xapian_ValueWeightPostingSource_attributes[] = {
28647     {0,0,0}
28648 };
28649 static swig_class *swig_Xapian_ValueWeightPostingSource_bases[] = {0,0};
28650 static const char * swig_Xapian_ValueWeightPostingSource_base_names[] = {"Xapian::ValuePostingSource *",0};
28651 static swig_class _wrap_class_Xapian_ValueWeightPostingSource = { "ValueWeightPostingSource", &SWIGTYPE_p_Xapian__ValueWeightPostingSource,_wrap_new_ValueWeightPostingSource, swig_delete_ValueWeightPostingSource, swig_Xapian_ValueWeightPostingSource_methods, swig_Xapian_ValueWeightPostingSource_attributes, swig_Xapian_ValueWeightPostingSource_bases,swig_Xapian_ValueWeightPostingSource_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
28652 SWIGINTERN int
_wrap_new_DecreasingValueWeightPostingSource__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])28653 _wrap_new_DecreasingValueWeightPostingSource__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
28654   Xapian::valueno arg1 ;
28655   Xapian::docid arg2 ;
28656   Xapian::docid arg3 ;
28657   unsigned int val1 ;
28658   int ecode1 = 0 ;
28659   unsigned int val2 ;
28660   int ecode2 = 0 ;
28661   unsigned int val3 ;
28662   int ecode3 = 0 ;
28663   Xapian::DecreasingValueWeightPostingSource *result = 0 ;
28664 
28665   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::new_DecreasingValueWeightPostingSource slot_ range_start_ range_end_ ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
28666   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
28667   if (!SWIG_IsOK(ecode1)) {
28668     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DecreasingValueWeightPostingSource" "', argument " "1"" of type '" "Xapian::valueno""'");
28669   }
28670   arg1 = static_cast< Xapian::valueno >(val1);
28671   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
28672   if (!SWIG_IsOK(ecode2)) {
28673     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DecreasingValueWeightPostingSource" "', argument " "2"" of type '" "Xapian::docid""'");
28674   }
28675   arg2 = static_cast< Xapian::docid >(val2);
28676   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
28677   if (!SWIG_IsOK(ecode3)) {
28678     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DecreasingValueWeightPostingSource" "', argument " "3"" of type '" "Xapian::docid""'");
28679   }
28680   arg3 = static_cast< Xapian::docid >(val3);
28681   {
28682     try {
28683       result = (Xapian::DecreasingValueWeightPostingSource *)new Xapian::DecreasingValueWeightPostingSource(arg1,arg2,arg3);
28684     } catch (const Xapian::Error &e) {
28685       return XapianTclHandleError(interp, e);
28686     } catch (...) {
28687       return XapianTclHandleError(interp);
28688     }
28689   }
28690   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DecreasingValueWeightPostingSource,0));
28691   return TCL_OK;
28692 fail:
28693   return TCL_ERROR;
28694 }
28695 
28696 
28697 SWIGINTERN int
_wrap_new_DecreasingValueWeightPostingSource__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])28698 _wrap_new_DecreasingValueWeightPostingSource__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
28699   Xapian::valueno arg1 ;
28700   Xapian::docid arg2 ;
28701   unsigned int val1 ;
28702   int ecode1 = 0 ;
28703   unsigned int val2 ;
28704   int ecode2 = 0 ;
28705   Xapian::DecreasingValueWeightPostingSource *result = 0 ;
28706 
28707   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::new_DecreasingValueWeightPostingSource slot_ range_start_ ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
28708   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
28709   if (!SWIG_IsOK(ecode1)) {
28710     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DecreasingValueWeightPostingSource" "', argument " "1"" of type '" "Xapian::valueno""'");
28711   }
28712   arg1 = static_cast< Xapian::valueno >(val1);
28713   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
28714   if (!SWIG_IsOK(ecode2)) {
28715     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DecreasingValueWeightPostingSource" "', argument " "2"" of type '" "Xapian::docid""'");
28716   }
28717   arg2 = static_cast< Xapian::docid >(val2);
28718   {
28719     try {
28720       result = (Xapian::DecreasingValueWeightPostingSource *)new Xapian::DecreasingValueWeightPostingSource(arg1,arg2);
28721     } catch (const Xapian::Error &e) {
28722       return XapianTclHandleError(interp, e);
28723     } catch (...) {
28724       return XapianTclHandleError(interp);
28725     }
28726   }
28727   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DecreasingValueWeightPostingSource,0));
28728   return TCL_OK;
28729 fail:
28730   return TCL_ERROR;
28731 }
28732 
28733 
28734 SWIGINTERN int
_wrap_new_DecreasingValueWeightPostingSource__SWIG_2(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])28735 _wrap_new_DecreasingValueWeightPostingSource__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
28736   Xapian::valueno arg1 ;
28737   unsigned int val1 ;
28738   int ecode1 = 0 ;
28739   Xapian::DecreasingValueWeightPostingSource *result = 0 ;
28740 
28741   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_DecreasingValueWeightPostingSource slot_ ",(void *)0) == TCL_ERROR) SWIG_fail;
28742   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
28743   if (!SWIG_IsOK(ecode1)) {
28744     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DecreasingValueWeightPostingSource" "', argument " "1"" of type '" "Xapian::valueno""'");
28745   }
28746   arg1 = static_cast< Xapian::valueno >(val1);
28747   {
28748     try {
28749       result = (Xapian::DecreasingValueWeightPostingSource *)new Xapian::DecreasingValueWeightPostingSource(arg1);
28750     } catch (const Xapian::Error &e) {
28751       return XapianTclHandleError(interp, e);
28752     } catch (...) {
28753       return XapianTclHandleError(interp);
28754     }
28755   }
28756   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DecreasingValueWeightPostingSource,0));
28757   return TCL_OK;
28758 fail:
28759   return TCL_ERROR;
28760 }
28761 
28762 
28763 SWIGINTERN int
_wrap_new_DecreasingValueWeightPostingSource(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])28764 _wrap_new_DecreasingValueWeightPostingSource(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
28765   Tcl_Obj *CONST *argv = objv+1;
28766   int argc = objc-1;
28767   if (argc == 1) {
28768     int _v;
28769     {
28770       int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
28771       _v = SWIG_CheckState(res);
28772     }
28773     if (_v) {
28774       return _wrap_new_DecreasingValueWeightPostingSource__SWIG_2(clientData, interp, objc, argv - 1);
28775     }
28776   }
28777   if (argc == 2) {
28778     int _v;
28779     {
28780       int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
28781       _v = SWIG_CheckState(res);
28782     }
28783     if (_v) {
28784       {
28785         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
28786         _v = SWIG_CheckState(res);
28787       }
28788       if (_v) {
28789         return _wrap_new_DecreasingValueWeightPostingSource__SWIG_1(clientData, interp, objc, argv - 1);
28790       }
28791     }
28792   }
28793   if (argc == 3) {
28794     int _v;
28795     {
28796       int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
28797       _v = SWIG_CheckState(res);
28798     }
28799     if (_v) {
28800       {
28801         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
28802         _v = SWIG_CheckState(res);
28803       }
28804       if (_v) {
28805         {
28806           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
28807           _v = SWIG_CheckState(res);
28808         }
28809         if (_v) {
28810           return _wrap_new_DecreasingValueWeightPostingSource__SWIG_0(clientData, interp, objc, argv - 1);
28811         }
28812       }
28813     }
28814   }
28815 
28816   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_DecreasingValueWeightPostingSource'.\n"
28817     "  Possible C/C++ prototypes are:\n"
28818     "    Xapian::DecreasingValueWeightPostingSource::DecreasingValueWeightPostingSource(Xapian::valueno,Xapian::docid,Xapian::docid)\n"
28819     "    Xapian::DecreasingValueWeightPostingSource::DecreasingValueWeightPostingSource(Xapian::valueno,Xapian::docid)\n"
28820     "    Xapian::DecreasingValueWeightPostingSource::DecreasingValueWeightPostingSource(Xapian::valueno)\n", TCL_STATIC);
28821   return TCL_ERROR;
28822 }
28823 
28824 
28825 SWIGINTERN int
_wrap_DecreasingValueWeightPostingSource_get_weight(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])28826 _wrap_DecreasingValueWeightPostingSource_get_weight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
28827   Xapian::DecreasingValueWeightPostingSource *arg1 = (Xapian::DecreasingValueWeightPostingSource *) 0 ;
28828   void *argp1 = 0 ;
28829   int res1 = 0 ;
28830   double result;
28831 
28832   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::DecreasingValueWeightPostingSource_get_weight self ",(void *)0) == TCL_ERROR) SWIG_fail;
28833   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__DecreasingValueWeightPostingSource, 0 |  0 );
28834   if (!SWIG_IsOK(res1)) {
28835     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DecreasingValueWeightPostingSource_get_weight" "', argument " "1"" of type '" "Xapian::DecreasingValueWeightPostingSource const *""'");
28836   }
28837   arg1 = reinterpret_cast< Xapian::DecreasingValueWeightPostingSource * >(argp1);
28838   {
28839     try {
28840       result = (double)((Xapian::DecreasingValueWeightPostingSource const *)arg1)->get_weight();
28841     } catch (const Xapian::Error &e) {
28842       return XapianTclHandleError(interp, e);
28843     } catch (...) {
28844       return XapianTclHandleError(interp);
28845     }
28846   }
28847   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
28848   return TCL_OK;
28849 fail:
28850   return TCL_ERROR;
28851 }
28852 
28853 
28854 SWIGINTERN int
_wrap_DecreasingValueWeightPostingSource_name(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])28855 _wrap_DecreasingValueWeightPostingSource_name(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
28856   Xapian::DecreasingValueWeightPostingSource *arg1 = (Xapian::DecreasingValueWeightPostingSource *) 0 ;
28857   void *argp1 = 0 ;
28858   int res1 = 0 ;
28859   std::string result;
28860 
28861   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::DecreasingValueWeightPostingSource_name self ",(void *)0) == TCL_ERROR) SWIG_fail;
28862   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__DecreasingValueWeightPostingSource, 0 |  0 );
28863   if (!SWIG_IsOK(res1)) {
28864     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DecreasingValueWeightPostingSource_name" "', argument " "1"" of type '" "Xapian::DecreasingValueWeightPostingSource const *""'");
28865   }
28866   arg1 = reinterpret_cast< Xapian::DecreasingValueWeightPostingSource * >(argp1);
28867   {
28868     try {
28869       result = ((Xapian::DecreasingValueWeightPostingSource const *)arg1)->name();
28870     } catch (const Xapian::Error &e) {
28871       return XapianTclHandleError(interp, e);
28872     } catch (...) {
28873       return XapianTclHandleError(interp);
28874     }
28875   }
28876   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
28877   return TCL_OK;
28878 fail:
28879   return TCL_ERROR;
28880 }
28881 
28882 
28883 SWIGINTERN int
_wrap_DecreasingValueWeightPostingSource_init(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])28884 _wrap_DecreasingValueWeightPostingSource_init(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
28885   Xapian::DecreasingValueWeightPostingSource *arg1 = (Xapian::DecreasingValueWeightPostingSource *) 0 ;
28886   Xapian::Database *arg2 = 0 ;
28887   void *argp1 = 0 ;
28888   int res1 = 0 ;
28889   void *argp2 ;
28890   int res2 = 0 ;
28891 
28892   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::DecreasingValueWeightPostingSource_init self db_ ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
28893   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__DecreasingValueWeightPostingSource, 0 |  0 );
28894   if (!SWIG_IsOK(res1)) {
28895     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DecreasingValueWeightPostingSource_init" "', argument " "1"" of type '" "Xapian::DecreasingValueWeightPostingSource *""'");
28896   }
28897   arg1 = reinterpret_cast< Xapian::DecreasingValueWeightPostingSource * >(argp1);
28898   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__Database,  0 );
28899   if (!SWIG_IsOK(res2)) {
28900     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DecreasingValueWeightPostingSource_init" "', argument " "2"" of type '" "Xapian::Database const &""'");
28901   }
28902   if (!argp2) {
28903     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DecreasingValueWeightPostingSource_init" "', argument " "2"" of type '" "Xapian::Database const &""'");
28904   }
28905   arg2 = reinterpret_cast< Xapian::Database * >(argp2);
28906   {
28907     try {
28908       (arg1)->init((Xapian::Database const &)*arg2);
28909     } catch (const Xapian::Error &e) {
28910       return XapianTclHandleError(interp, e);
28911     } catch (...) {
28912       return XapianTclHandleError(interp);
28913     }
28914   }
28915 
28916   return TCL_OK;
28917 fail:
28918   return TCL_ERROR;
28919 }
28920 
28921 
28922 SWIGINTERN int
_wrap_DecreasingValueWeightPostingSource_next(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])28923 _wrap_DecreasingValueWeightPostingSource_next(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
28924   Xapian::DecreasingValueWeightPostingSource *arg1 = (Xapian::DecreasingValueWeightPostingSource *) 0 ;
28925   double arg2 ;
28926   void *argp1 = 0 ;
28927   int res1 = 0 ;
28928   double val2 ;
28929   int ecode2 = 0 ;
28930 
28931   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::DecreasingValueWeightPostingSource_next self min_wt ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
28932   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__DecreasingValueWeightPostingSource, 0 |  0 );
28933   if (!SWIG_IsOK(res1)) {
28934     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DecreasingValueWeightPostingSource_next" "', argument " "1"" of type '" "Xapian::DecreasingValueWeightPostingSource *""'");
28935   }
28936   arg1 = reinterpret_cast< Xapian::DecreasingValueWeightPostingSource * >(argp1);
28937   ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
28938   if (!SWIG_IsOK(ecode2)) {
28939     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DecreasingValueWeightPostingSource_next" "', argument " "2"" of type '" "double""'");
28940   }
28941   arg2 = static_cast< double >(val2);
28942   {
28943     try {
28944       (arg1)->next(arg2);
28945     } catch (const Xapian::Error &e) {
28946       return XapianTclHandleError(interp, e);
28947     } catch (...) {
28948       return XapianTclHandleError(interp);
28949     }
28950   }
28951 
28952   return TCL_OK;
28953 fail:
28954   return TCL_ERROR;
28955 }
28956 
28957 
28958 SWIGINTERN int
_wrap_DecreasingValueWeightPostingSource_skip_to(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])28959 _wrap_DecreasingValueWeightPostingSource_skip_to(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
28960   Xapian::DecreasingValueWeightPostingSource *arg1 = (Xapian::DecreasingValueWeightPostingSource *) 0 ;
28961   Xapian::docid arg2 ;
28962   double arg3 ;
28963   void *argp1 = 0 ;
28964   int res1 = 0 ;
28965   unsigned int val2 ;
28966   int ecode2 = 0 ;
28967   double val3 ;
28968   int ecode3 = 0 ;
28969 
28970   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::DecreasingValueWeightPostingSource_skip_to self min_docid min_wt ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
28971   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__DecreasingValueWeightPostingSource, 0 |  0 );
28972   if (!SWIG_IsOK(res1)) {
28973     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DecreasingValueWeightPostingSource_skip_to" "', argument " "1"" of type '" "Xapian::DecreasingValueWeightPostingSource *""'");
28974   }
28975   arg1 = reinterpret_cast< Xapian::DecreasingValueWeightPostingSource * >(argp1);
28976   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
28977   if (!SWIG_IsOK(ecode2)) {
28978     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DecreasingValueWeightPostingSource_skip_to" "', argument " "2"" of type '" "Xapian::docid""'");
28979   }
28980   arg2 = static_cast< Xapian::docid >(val2);
28981   ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
28982   if (!SWIG_IsOK(ecode3)) {
28983     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DecreasingValueWeightPostingSource_skip_to" "', argument " "3"" of type '" "double""'");
28984   }
28985   arg3 = static_cast< double >(val3);
28986   {
28987     try {
28988       (arg1)->skip_to(arg2,arg3);
28989     } catch (const Xapian::Error &e) {
28990       return XapianTclHandleError(interp, e);
28991     } catch (...) {
28992       return XapianTclHandleError(interp);
28993     }
28994   }
28995 
28996   return TCL_OK;
28997 fail:
28998   return TCL_ERROR;
28999 }
29000 
29001 
29002 SWIGINTERN int
_wrap_DecreasingValueWeightPostingSource_check(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])29003 _wrap_DecreasingValueWeightPostingSource_check(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
29004   Xapian::DecreasingValueWeightPostingSource *arg1 = (Xapian::DecreasingValueWeightPostingSource *) 0 ;
29005   Xapian::docid arg2 ;
29006   double arg3 ;
29007   void *argp1 = 0 ;
29008   int res1 = 0 ;
29009   unsigned int val2 ;
29010   int ecode2 = 0 ;
29011   double val3 ;
29012   int ecode3 = 0 ;
29013   bool result;
29014 
29015   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::DecreasingValueWeightPostingSource_check self min_docid min_wt ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
29016   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__DecreasingValueWeightPostingSource, 0 |  0 );
29017   if (!SWIG_IsOK(res1)) {
29018     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DecreasingValueWeightPostingSource_check" "', argument " "1"" of type '" "Xapian::DecreasingValueWeightPostingSource *""'");
29019   }
29020   arg1 = reinterpret_cast< Xapian::DecreasingValueWeightPostingSource * >(argp1);
29021   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
29022   if (!SWIG_IsOK(ecode2)) {
29023     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DecreasingValueWeightPostingSource_check" "', argument " "2"" of type '" "Xapian::docid""'");
29024   }
29025   arg2 = static_cast< Xapian::docid >(val2);
29026   ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
29027   if (!SWIG_IsOK(ecode3)) {
29028     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DecreasingValueWeightPostingSource_check" "', argument " "3"" of type '" "double""'");
29029   }
29030   arg3 = static_cast< double >(val3);
29031   {
29032     try {
29033       result = (bool)(arg1)->check(arg2,arg3);
29034     } catch (const Xapian::Error &e) {
29035       return XapianTclHandleError(interp, e);
29036     } catch (...) {
29037       return XapianTclHandleError(interp);
29038     }
29039   }
29040   Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
29041   return TCL_OK;
29042 fail:
29043   return TCL_ERROR;
29044 }
29045 
29046 
29047 SWIGINTERN int
_wrap_DecreasingValueWeightPostingSource_get_description(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])29048 _wrap_DecreasingValueWeightPostingSource_get_description(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
29049   Xapian::DecreasingValueWeightPostingSource *arg1 = (Xapian::DecreasingValueWeightPostingSource *) 0 ;
29050   void *argp1 = 0 ;
29051   int res1 = 0 ;
29052   std::string result;
29053 
29054   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::DecreasingValueWeightPostingSource_get_description self ",(void *)0) == TCL_ERROR) SWIG_fail;
29055   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__DecreasingValueWeightPostingSource, 0 |  0 );
29056   if (!SWIG_IsOK(res1)) {
29057     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DecreasingValueWeightPostingSource_get_description" "', argument " "1"" of type '" "Xapian::DecreasingValueWeightPostingSource const *""'");
29058   }
29059   arg1 = reinterpret_cast< Xapian::DecreasingValueWeightPostingSource * >(argp1);
29060   {
29061     try {
29062       result = ((Xapian::DecreasingValueWeightPostingSource const *)arg1)->get_description();
29063     } catch (const Xapian::Error &e) {
29064       return XapianTclHandleError(interp, e);
29065     } catch (...) {
29066       return XapianTclHandleError(interp);
29067     }
29068   }
29069   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
29070   return TCL_OK;
29071 fail:
29072   return TCL_ERROR;
29073 }
29074 
29075 
29076 SWIGINTERN int
_wrap_delete_DecreasingValueWeightPostingSource(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])29077 _wrap_delete_DecreasingValueWeightPostingSource(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
29078   Xapian::DecreasingValueWeightPostingSource *arg1 = (Xapian::DecreasingValueWeightPostingSource *) 0 ;
29079   void *argp1 = 0 ;
29080   int res1 = 0 ;
29081 
29082   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_DecreasingValueWeightPostingSource self ",(void *)0) == TCL_ERROR) SWIG_fail;
29083   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__DecreasingValueWeightPostingSource, SWIG_POINTER_DISOWN |  0 );
29084   if (!SWIG_IsOK(res1)) {
29085     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DecreasingValueWeightPostingSource" "', argument " "1"" of type '" "Xapian::DecreasingValueWeightPostingSource *""'");
29086   }
29087   arg1 = reinterpret_cast< Xapian::DecreasingValueWeightPostingSource * >(argp1);
29088   {
29089     try {
29090       delete arg1;
29091     } catch (const Xapian::Error &e) {
29092       return XapianTclHandleError(interp, e);
29093     } catch (...) {
29094       return XapianTclHandleError(interp);
29095     }
29096   }
29097 
29098   return TCL_OK;
29099 fail:
29100   return TCL_ERROR;
29101 }
29102 
29103 
swig_delete_DecreasingValueWeightPostingSource(void * obj)29104 SWIGINTERN void swig_delete_DecreasingValueWeightPostingSource(void *obj) {
29105 Xapian::DecreasingValueWeightPostingSource *arg1 = (Xapian::DecreasingValueWeightPostingSource *) obj;
29106 delete arg1;
29107 }
29108 static swig_method swig_Xapian_DecreasingValueWeightPostingSource_methods[] = {
29109     {"get_weight", _wrap_DecreasingValueWeightPostingSource_get_weight},
29110     {"name", _wrap_DecreasingValueWeightPostingSource_name},
29111     {"init", _wrap_DecreasingValueWeightPostingSource_init},
29112     {"next", _wrap_DecreasingValueWeightPostingSource_next},
29113     {"skip_to", _wrap_DecreasingValueWeightPostingSource_skip_to},
29114     {"check", _wrap_DecreasingValueWeightPostingSource_check},
29115     {"get_description", _wrap_DecreasingValueWeightPostingSource_get_description},
29116     {0,0}
29117 };
29118 static swig_attribute swig_Xapian_DecreasingValueWeightPostingSource_attributes[] = {
29119     {0,0,0}
29120 };
29121 static swig_class *swig_Xapian_DecreasingValueWeightPostingSource_bases[] = {0,0};
29122 static const char * swig_Xapian_DecreasingValueWeightPostingSource_base_names[] = {"Xapian::ValueWeightPostingSource *",0};
29123 static swig_class _wrap_class_Xapian_DecreasingValueWeightPostingSource = { "DecreasingValueWeightPostingSource", &SWIGTYPE_p_Xapian__DecreasingValueWeightPostingSource,_wrap_new_DecreasingValueWeightPostingSource, swig_delete_DecreasingValueWeightPostingSource, swig_Xapian_DecreasingValueWeightPostingSource_methods, swig_Xapian_DecreasingValueWeightPostingSource_attributes, swig_Xapian_DecreasingValueWeightPostingSource_bases,swig_Xapian_DecreasingValueWeightPostingSource_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
29124 SWIGINTERN int
_wrap_new_ValueMapPostingSource(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])29125 _wrap_new_ValueMapPostingSource(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
29126   Xapian::valueno arg1 ;
29127   unsigned int val1 ;
29128   int ecode1 = 0 ;
29129   Xapian::ValueMapPostingSource *result = 0 ;
29130 
29131   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_ValueMapPostingSource slot_ ",(void *)0) == TCL_ERROR) SWIG_fail;
29132   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
29133   if (!SWIG_IsOK(ecode1)) {
29134     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ValueMapPostingSource" "', argument " "1"" of type '" "Xapian::valueno""'");
29135   }
29136   arg1 = static_cast< Xapian::valueno >(val1);
29137   {
29138     try {
29139       result = (Xapian::ValueMapPostingSource *)new Xapian::ValueMapPostingSource(arg1);
29140     } catch (const Xapian::Error &e) {
29141       return XapianTclHandleError(interp, e);
29142     } catch (...) {
29143       return XapianTclHandleError(interp);
29144     }
29145   }
29146   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ValueMapPostingSource,0));
29147   return TCL_OK;
29148 fail:
29149   return TCL_ERROR;
29150 }
29151 
29152 
29153 SWIGINTERN int
_wrap_ValueMapPostingSource_add_mapping(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])29154 _wrap_ValueMapPostingSource_add_mapping(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
29155   Xapian::ValueMapPostingSource *arg1 = (Xapian::ValueMapPostingSource *) 0 ;
29156   std::string *arg2 = 0 ;
29157   double arg3 ;
29158   void *argp1 = 0 ;
29159   int res1 = 0 ;
29160   int res2 = SWIG_OLDOBJ ;
29161   double val3 ;
29162   int ecode3 = 0 ;
29163 
29164   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::ValueMapPostingSource_add_mapping self key wt ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
29165   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValueMapPostingSource, 0 |  0 );
29166   if (!SWIG_IsOK(res1)) {
29167     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueMapPostingSource_add_mapping" "', argument " "1"" of type '" "Xapian::ValueMapPostingSource *""'");
29168   }
29169   arg1 = reinterpret_cast< Xapian::ValueMapPostingSource * >(argp1);
29170   {
29171     std::string *ptr = (std::string *)0;
29172     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
29173     if (!SWIG_IsOK(res2)) {
29174       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ValueMapPostingSource_add_mapping" "', argument " "2"" of type '" "std::string const &""'");
29175     }
29176     if (!ptr) {
29177       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ValueMapPostingSource_add_mapping" "', argument " "2"" of type '" "std::string const &""'");
29178     }
29179     arg2 = ptr;
29180   }
29181   ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
29182   if (!SWIG_IsOK(ecode3)) {
29183     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ValueMapPostingSource_add_mapping" "', argument " "3"" of type '" "double""'");
29184   }
29185   arg3 = static_cast< double >(val3);
29186   {
29187     try {
29188       (arg1)->add_mapping((std::string const &)*arg2,arg3);
29189     } catch (const Xapian::Error &e) {
29190       return XapianTclHandleError(interp, e);
29191     } catch (...) {
29192       return XapianTclHandleError(interp);
29193     }
29194   }
29195 
29196   if (SWIG_IsNewObj(res2)) delete arg2;
29197   return TCL_OK;
29198 fail:
29199   if (SWIG_IsNewObj(res2)) delete arg2;
29200   return TCL_ERROR;
29201 }
29202 
29203 
29204 SWIGINTERN int
_wrap_ValueMapPostingSource_clear_mappings(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])29205 _wrap_ValueMapPostingSource_clear_mappings(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
29206   Xapian::ValueMapPostingSource *arg1 = (Xapian::ValueMapPostingSource *) 0 ;
29207   void *argp1 = 0 ;
29208   int res1 = 0 ;
29209 
29210   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::ValueMapPostingSource_clear_mappings self ",(void *)0) == TCL_ERROR) SWIG_fail;
29211   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValueMapPostingSource, 0 |  0 );
29212   if (!SWIG_IsOK(res1)) {
29213     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueMapPostingSource_clear_mappings" "', argument " "1"" of type '" "Xapian::ValueMapPostingSource *""'");
29214   }
29215   arg1 = reinterpret_cast< Xapian::ValueMapPostingSource * >(argp1);
29216   {
29217     try {
29218       (arg1)->clear_mappings();
29219     } catch (const Xapian::Error &e) {
29220       return XapianTclHandleError(interp, e);
29221     } catch (...) {
29222       return XapianTclHandleError(interp);
29223     }
29224   }
29225 
29226   return TCL_OK;
29227 fail:
29228   return TCL_ERROR;
29229 }
29230 
29231 
29232 SWIGINTERN int
_wrap_ValueMapPostingSource_set_default_weight(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])29233 _wrap_ValueMapPostingSource_set_default_weight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
29234   Xapian::ValueMapPostingSource *arg1 = (Xapian::ValueMapPostingSource *) 0 ;
29235   double arg2 ;
29236   void *argp1 = 0 ;
29237   int res1 = 0 ;
29238   double val2 ;
29239   int ecode2 = 0 ;
29240 
29241   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::ValueMapPostingSource_set_default_weight self wt ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
29242   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValueMapPostingSource, 0 |  0 );
29243   if (!SWIG_IsOK(res1)) {
29244     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueMapPostingSource_set_default_weight" "', argument " "1"" of type '" "Xapian::ValueMapPostingSource *""'");
29245   }
29246   arg1 = reinterpret_cast< Xapian::ValueMapPostingSource * >(argp1);
29247   ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
29248   if (!SWIG_IsOK(ecode2)) {
29249     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ValueMapPostingSource_set_default_weight" "', argument " "2"" of type '" "double""'");
29250   }
29251   arg2 = static_cast< double >(val2);
29252   {
29253     try {
29254       (arg1)->set_default_weight(arg2);
29255     } catch (const Xapian::Error &e) {
29256       return XapianTclHandleError(interp, e);
29257     } catch (...) {
29258       return XapianTclHandleError(interp);
29259     }
29260   }
29261 
29262   return TCL_OK;
29263 fail:
29264   return TCL_ERROR;
29265 }
29266 
29267 
29268 SWIGINTERN int
_wrap_ValueMapPostingSource_get_weight(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])29269 _wrap_ValueMapPostingSource_get_weight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
29270   Xapian::ValueMapPostingSource *arg1 = (Xapian::ValueMapPostingSource *) 0 ;
29271   void *argp1 = 0 ;
29272   int res1 = 0 ;
29273   double result;
29274 
29275   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::ValueMapPostingSource_get_weight self ",(void *)0) == TCL_ERROR) SWIG_fail;
29276   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValueMapPostingSource, 0 |  0 );
29277   if (!SWIG_IsOK(res1)) {
29278     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueMapPostingSource_get_weight" "', argument " "1"" of type '" "Xapian::ValueMapPostingSource const *""'");
29279   }
29280   arg1 = reinterpret_cast< Xapian::ValueMapPostingSource * >(argp1);
29281   {
29282     try {
29283       result = (double)((Xapian::ValueMapPostingSource const *)arg1)->get_weight();
29284     } catch (const Xapian::Error &e) {
29285       return XapianTclHandleError(interp, e);
29286     } catch (...) {
29287       return XapianTclHandleError(interp);
29288     }
29289   }
29290   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
29291   return TCL_OK;
29292 fail:
29293   return TCL_ERROR;
29294 }
29295 
29296 
29297 SWIGINTERN int
_wrap_ValueMapPostingSource_name(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])29298 _wrap_ValueMapPostingSource_name(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
29299   Xapian::ValueMapPostingSource *arg1 = (Xapian::ValueMapPostingSource *) 0 ;
29300   void *argp1 = 0 ;
29301   int res1 = 0 ;
29302   std::string result;
29303 
29304   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::ValueMapPostingSource_name self ",(void *)0) == TCL_ERROR) SWIG_fail;
29305   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValueMapPostingSource, 0 |  0 );
29306   if (!SWIG_IsOK(res1)) {
29307     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueMapPostingSource_name" "', argument " "1"" of type '" "Xapian::ValueMapPostingSource const *""'");
29308   }
29309   arg1 = reinterpret_cast< Xapian::ValueMapPostingSource * >(argp1);
29310   {
29311     try {
29312       result = ((Xapian::ValueMapPostingSource const *)arg1)->name();
29313     } catch (const Xapian::Error &e) {
29314       return XapianTclHandleError(interp, e);
29315     } catch (...) {
29316       return XapianTclHandleError(interp);
29317     }
29318   }
29319   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
29320   return TCL_OK;
29321 fail:
29322   return TCL_ERROR;
29323 }
29324 
29325 
29326 SWIGINTERN int
_wrap_ValueMapPostingSource_init(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])29327 _wrap_ValueMapPostingSource_init(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
29328   Xapian::ValueMapPostingSource *arg1 = (Xapian::ValueMapPostingSource *) 0 ;
29329   Xapian::Database *arg2 = 0 ;
29330   void *argp1 = 0 ;
29331   int res1 = 0 ;
29332   void *argp2 ;
29333   int res2 = 0 ;
29334 
29335   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::ValueMapPostingSource_init self db_ ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
29336   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValueMapPostingSource, 0 |  0 );
29337   if (!SWIG_IsOK(res1)) {
29338     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueMapPostingSource_init" "', argument " "1"" of type '" "Xapian::ValueMapPostingSource *""'");
29339   }
29340   arg1 = reinterpret_cast< Xapian::ValueMapPostingSource * >(argp1);
29341   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__Database,  0 );
29342   if (!SWIG_IsOK(res2)) {
29343     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ValueMapPostingSource_init" "', argument " "2"" of type '" "Xapian::Database const &""'");
29344   }
29345   if (!argp2) {
29346     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ValueMapPostingSource_init" "', argument " "2"" of type '" "Xapian::Database const &""'");
29347   }
29348   arg2 = reinterpret_cast< Xapian::Database * >(argp2);
29349   {
29350     try {
29351       (arg1)->init((Xapian::Database const &)*arg2);
29352     } catch (const Xapian::Error &e) {
29353       return XapianTclHandleError(interp, e);
29354     } catch (...) {
29355       return XapianTclHandleError(interp);
29356     }
29357   }
29358 
29359   return TCL_OK;
29360 fail:
29361   return TCL_ERROR;
29362 }
29363 
29364 
29365 SWIGINTERN int
_wrap_ValueMapPostingSource_get_description(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])29366 _wrap_ValueMapPostingSource_get_description(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
29367   Xapian::ValueMapPostingSource *arg1 = (Xapian::ValueMapPostingSource *) 0 ;
29368   void *argp1 = 0 ;
29369   int res1 = 0 ;
29370   std::string result;
29371 
29372   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::ValueMapPostingSource_get_description self ",(void *)0) == TCL_ERROR) SWIG_fail;
29373   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValueMapPostingSource, 0 |  0 );
29374   if (!SWIG_IsOK(res1)) {
29375     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueMapPostingSource_get_description" "', argument " "1"" of type '" "Xapian::ValueMapPostingSource const *""'");
29376   }
29377   arg1 = reinterpret_cast< Xapian::ValueMapPostingSource * >(argp1);
29378   {
29379     try {
29380       result = ((Xapian::ValueMapPostingSource const *)arg1)->get_description();
29381     } catch (const Xapian::Error &e) {
29382       return XapianTclHandleError(interp, e);
29383     } catch (...) {
29384       return XapianTclHandleError(interp);
29385     }
29386   }
29387   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
29388   return TCL_OK;
29389 fail:
29390   return TCL_ERROR;
29391 }
29392 
29393 
29394 SWIGINTERN int
_wrap_delete_ValueMapPostingSource(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])29395 _wrap_delete_ValueMapPostingSource(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
29396   Xapian::ValueMapPostingSource *arg1 = (Xapian::ValueMapPostingSource *) 0 ;
29397   void *argp1 = 0 ;
29398   int res1 = 0 ;
29399 
29400   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_ValueMapPostingSource self ",(void *)0) == TCL_ERROR) SWIG_fail;
29401   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValueMapPostingSource, SWIG_POINTER_DISOWN |  0 );
29402   if (!SWIG_IsOK(res1)) {
29403     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ValueMapPostingSource" "', argument " "1"" of type '" "Xapian::ValueMapPostingSource *""'");
29404   }
29405   arg1 = reinterpret_cast< Xapian::ValueMapPostingSource * >(argp1);
29406   {
29407     try {
29408       delete arg1;
29409     } catch (const Xapian::Error &e) {
29410       return XapianTclHandleError(interp, e);
29411     } catch (...) {
29412       return XapianTclHandleError(interp);
29413     }
29414   }
29415 
29416   return TCL_OK;
29417 fail:
29418   return TCL_ERROR;
29419 }
29420 
29421 
swig_delete_ValueMapPostingSource(void * obj)29422 SWIGINTERN void swig_delete_ValueMapPostingSource(void *obj) {
29423 Xapian::ValueMapPostingSource *arg1 = (Xapian::ValueMapPostingSource *) obj;
29424 delete arg1;
29425 }
29426 static swig_method swig_Xapian_ValueMapPostingSource_methods[] = {
29427     {"add_mapping", _wrap_ValueMapPostingSource_add_mapping},
29428     {"clear_mappings", _wrap_ValueMapPostingSource_clear_mappings},
29429     {"set_default_weight", _wrap_ValueMapPostingSource_set_default_weight},
29430     {"get_weight", _wrap_ValueMapPostingSource_get_weight},
29431     {"name", _wrap_ValueMapPostingSource_name},
29432     {"init", _wrap_ValueMapPostingSource_init},
29433     {"get_description", _wrap_ValueMapPostingSource_get_description},
29434     {0,0}
29435 };
29436 static swig_attribute swig_Xapian_ValueMapPostingSource_attributes[] = {
29437     {0,0,0}
29438 };
29439 static swig_class *swig_Xapian_ValueMapPostingSource_bases[] = {0,0};
29440 static const char * swig_Xapian_ValueMapPostingSource_base_names[] = {"Xapian::ValuePostingSource *",0};
29441 static swig_class _wrap_class_Xapian_ValueMapPostingSource = { "ValueMapPostingSource", &SWIGTYPE_p_Xapian__ValueMapPostingSource,_wrap_new_ValueMapPostingSource, swig_delete_ValueMapPostingSource, swig_Xapian_ValueMapPostingSource_methods, swig_Xapian_ValueMapPostingSource_attributes, swig_Xapian_ValueMapPostingSource_bases,swig_Xapian_ValueMapPostingSource_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
29442 SWIGINTERN int
_wrap_new_FixedWeightPostingSource(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])29443 _wrap_new_FixedWeightPostingSource(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
29444   double arg1 ;
29445   double val1 ;
29446   int ecode1 = 0 ;
29447   Xapian::FixedWeightPostingSource *result = 0 ;
29448 
29449   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_FixedWeightPostingSource wt ",(void *)0) == TCL_ERROR) SWIG_fail;
29450   ecode1 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
29451   if (!SWIG_IsOK(ecode1)) {
29452     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FixedWeightPostingSource" "', argument " "1"" of type '" "double""'");
29453   }
29454   arg1 = static_cast< double >(val1);
29455   {
29456     try {
29457       result = (Xapian::FixedWeightPostingSource *)new Xapian::FixedWeightPostingSource(arg1);
29458     } catch (const Xapian::Error &e) {
29459       return XapianTclHandleError(interp, e);
29460     } catch (...) {
29461       return XapianTclHandleError(interp);
29462     }
29463   }
29464   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__FixedWeightPostingSource,0));
29465   return TCL_OK;
29466 fail:
29467   return TCL_ERROR;
29468 }
29469 
29470 
29471 SWIGINTERN int
_wrap_FixedWeightPostingSource_get_termfreq_min(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])29472 _wrap_FixedWeightPostingSource_get_termfreq_min(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
29473   Xapian::FixedWeightPostingSource *arg1 = (Xapian::FixedWeightPostingSource *) 0 ;
29474   void *argp1 = 0 ;
29475   int res1 = 0 ;
29476   Xapian::doccount result;
29477 
29478   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::FixedWeightPostingSource_get_termfreq_min self ",(void *)0) == TCL_ERROR) SWIG_fail;
29479   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__FixedWeightPostingSource, 0 |  0 );
29480   if (!SWIG_IsOK(res1)) {
29481     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FixedWeightPostingSource_get_termfreq_min" "', argument " "1"" of type '" "Xapian::FixedWeightPostingSource const *""'");
29482   }
29483   arg1 = reinterpret_cast< Xapian::FixedWeightPostingSource * >(argp1);
29484   {
29485     try {
29486       result = (Xapian::doccount)((Xapian::FixedWeightPostingSource const *)arg1)->get_termfreq_min();
29487     } catch (const Xapian::Error &e) {
29488       return XapianTclHandleError(interp, e);
29489     } catch (...) {
29490       return XapianTclHandleError(interp);
29491     }
29492   }
29493   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
29494   return TCL_OK;
29495 fail:
29496   return TCL_ERROR;
29497 }
29498 
29499 
29500 SWIGINTERN int
_wrap_FixedWeightPostingSource_get_termfreq_est(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])29501 _wrap_FixedWeightPostingSource_get_termfreq_est(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
29502   Xapian::FixedWeightPostingSource *arg1 = (Xapian::FixedWeightPostingSource *) 0 ;
29503   void *argp1 = 0 ;
29504   int res1 = 0 ;
29505   Xapian::doccount result;
29506 
29507   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::FixedWeightPostingSource_get_termfreq_est self ",(void *)0) == TCL_ERROR) SWIG_fail;
29508   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__FixedWeightPostingSource, 0 |  0 );
29509   if (!SWIG_IsOK(res1)) {
29510     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FixedWeightPostingSource_get_termfreq_est" "', argument " "1"" of type '" "Xapian::FixedWeightPostingSource const *""'");
29511   }
29512   arg1 = reinterpret_cast< Xapian::FixedWeightPostingSource * >(argp1);
29513   {
29514     try {
29515       result = (Xapian::doccount)((Xapian::FixedWeightPostingSource const *)arg1)->get_termfreq_est();
29516     } catch (const Xapian::Error &e) {
29517       return XapianTclHandleError(interp, e);
29518     } catch (...) {
29519       return XapianTclHandleError(interp);
29520     }
29521   }
29522   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
29523   return TCL_OK;
29524 fail:
29525   return TCL_ERROR;
29526 }
29527 
29528 
29529 SWIGINTERN int
_wrap_FixedWeightPostingSource_get_termfreq_max(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])29530 _wrap_FixedWeightPostingSource_get_termfreq_max(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
29531   Xapian::FixedWeightPostingSource *arg1 = (Xapian::FixedWeightPostingSource *) 0 ;
29532   void *argp1 = 0 ;
29533   int res1 = 0 ;
29534   Xapian::doccount result;
29535 
29536   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::FixedWeightPostingSource_get_termfreq_max self ",(void *)0) == TCL_ERROR) SWIG_fail;
29537   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__FixedWeightPostingSource, 0 |  0 );
29538   if (!SWIG_IsOK(res1)) {
29539     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FixedWeightPostingSource_get_termfreq_max" "', argument " "1"" of type '" "Xapian::FixedWeightPostingSource const *""'");
29540   }
29541   arg1 = reinterpret_cast< Xapian::FixedWeightPostingSource * >(argp1);
29542   {
29543     try {
29544       result = (Xapian::doccount)((Xapian::FixedWeightPostingSource const *)arg1)->get_termfreq_max();
29545     } catch (const Xapian::Error &e) {
29546       return XapianTclHandleError(interp, e);
29547     } catch (...) {
29548       return XapianTclHandleError(interp);
29549     }
29550   }
29551   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
29552   return TCL_OK;
29553 fail:
29554   return TCL_ERROR;
29555 }
29556 
29557 
29558 SWIGINTERN int
_wrap_FixedWeightPostingSource_get_weight(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])29559 _wrap_FixedWeightPostingSource_get_weight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
29560   Xapian::FixedWeightPostingSource *arg1 = (Xapian::FixedWeightPostingSource *) 0 ;
29561   void *argp1 = 0 ;
29562   int res1 = 0 ;
29563   double result;
29564 
29565   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::FixedWeightPostingSource_get_weight self ",(void *)0) == TCL_ERROR) SWIG_fail;
29566   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__FixedWeightPostingSource, 0 |  0 );
29567   if (!SWIG_IsOK(res1)) {
29568     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FixedWeightPostingSource_get_weight" "', argument " "1"" of type '" "Xapian::FixedWeightPostingSource const *""'");
29569   }
29570   arg1 = reinterpret_cast< Xapian::FixedWeightPostingSource * >(argp1);
29571   {
29572     try {
29573       result = (double)((Xapian::FixedWeightPostingSource const *)arg1)->get_weight();
29574     } catch (const Xapian::Error &e) {
29575       return XapianTclHandleError(interp, e);
29576     } catch (...) {
29577       return XapianTclHandleError(interp);
29578     }
29579   }
29580   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
29581   return TCL_OK;
29582 fail:
29583   return TCL_ERROR;
29584 }
29585 
29586 
29587 SWIGINTERN int
_wrap_FixedWeightPostingSource_next(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])29588 _wrap_FixedWeightPostingSource_next(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
29589   Xapian::FixedWeightPostingSource *arg1 = (Xapian::FixedWeightPostingSource *) 0 ;
29590   double arg2 ;
29591   void *argp1 = 0 ;
29592   int res1 = 0 ;
29593   double val2 ;
29594   int ecode2 = 0 ;
29595 
29596   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::FixedWeightPostingSource_next self min_wt ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
29597   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__FixedWeightPostingSource, 0 |  0 );
29598   if (!SWIG_IsOK(res1)) {
29599     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FixedWeightPostingSource_next" "', argument " "1"" of type '" "Xapian::FixedWeightPostingSource *""'");
29600   }
29601   arg1 = reinterpret_cast< Xapian::FixedWeightPostingSource * >(argp1);
29602   ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
29603   if (!SWIG_IsOK(ecode2)) {
29604     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FixedWeightPostingSource_next" "', argument " "2"" of type '" "double""'");
29605   }
29606   arg2 = static_cast< double >(val2);
29607   {
29608     try {
29609       (arg1)->next(arg2);
29610     } catch (const Xapian::Error &e) {
29611       return XapianTclHandleError(interp, e);
29612     } catch (...) {
29613       return XapianTclHandleError(interp);
29614     }
29615   }
29616 
29617   return TCL_OK;
29618 fail:
29619   return TCL_ERROR;
29620 }
29621 
29622 
29623 SWIGINTERN int
_wrap_FixedWeightPostingSource_skip_to(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])29624 _wrap_FixedWeightPostingSource_skip_to(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
29625   Xapian::FixedWeightPostingSource *arg1 = (Xapian::FixedWeightPostingSource *) 0 ;
29626   Xapian::docid arg2 ;
29627   double arg3 ;
29628   void *argp1 = 0 ;
29629   int res1 = 0 ;
29630   unsigned int val2 ;
29631   int ecode2 = 0 ;
29632   double val3 ;
29633   int ecode3 = 0 ;
29634 
29635   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::FixedWeightPostingSource_skip_to self min_docid min_wt ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
29636   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__FixedWeightPostingSource, 0 |  0 );
29637   if (!SWIG_IsOK(res1)) {
29638     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FixedWeightPostingSource_skip_to" "', argument " "1"" of type '" "Xapian::FixedWeightPostingSource *""'");
29639   }
29640   arg1 = reinterpret_cast< Xapian::FixedWeightPostingSource * >(argp1);
29641   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
29642   if (!SWIG_IsOK(ecode2)) {
29643     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FixedWeightPostingSource_skip_to" "', argument " "2"" of type '" "Xapian::docid""'");
29644   }
29645   arg2 = static_cast< Xapian::docid >(val2);
29646   ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
29647   if (!SWIG_IsOK(ecode3)) {
29648     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FixedWeightPostingSource_skip_to" "', argument " "3"" of type '" "double""'");
29649   }
29650   arg3 = static_cast< double >(val3);
29651   {
29652     try {
29653       (arg1)->skip_to(arg2,arg3);
29654     } catch (const Xapian::Error &e) {
29655       return XapianTclHandleError(interp, e);
29656     } catch (...) {
29657       return XapianTclHandleError(interp);
29658     }
29659   }
29660 
29661   return TCL_OK;
29662 fail:
29663   return TCL_ERROR;
29664 }
29665 
29666 
29667 SWIGINTERN int
_wrap_FixedWeightPostingSource_check(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])29668 _wrap_FixedWeightPostingSource_check(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
29669   Xapian::FixedWeightPostingSource *arg1 = (Xapian::FixedWeightPostingSource *) 0 ;
29670   Xapian::docid arg2 ;
29671   double arg3 ;
29672   void *argp1 = 0 ;
29673   int res1 = 0 ;
29674   unsigned int val2 ;
29675   int ecode2 = 0 ;
29676   double val3 ;
29677   int ecode3 = 0 ;
29678   bool result;
29679 
29680   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::FixedWeightPostingSource_check self min_docid min_wt ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
29681   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__FixedWeightPostingSource, 0 |  0 );
29682   if (!SWIG_IsOK(res1)) {
29683     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FixedWeightPostingSource_check" "', argument " "1"" of type '" "Xapian::FixedWeightPostingSource *""'");
29684   }
29685   arg1 = reinterpret_cast< Xapian::FixedWeightPostingSource * >(argp1);
29686   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
29687   if (!SWIG_IsOK(ecode2)) {
29688     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FixedWeightPostingSource_check" "', argument " "2"" of type '" "Xapian::docid""'");
29689   }
29690   arg2 = static_cast< Xapian::docid >(val2);
29691   ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
29692   if (!SWIG_IsOK(ecode3)) {
29693     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FixedWeightPostingSource_check" "', argument " "3"" of type '" "double""'");
29694   }
29695   arg3 = static_cast< double >(val3);
29696   {
29697     try {
29698       result = (bool)(arg1)->check(arg2,arg3);
29699     } catch (const Xapian::Error &e) {
29700       return XapianTclHandleError(interp, e);
29701     } catch (...) {
29702       return XapianTclHandleError(interp);
29703     }
29704   }
29705   Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
29706   return TCL_OK;
29707 fail:
29708   return TCL_ERROR;
29709 }
29710 
29711 
29712 SWIGINTERN int
_wrap_FixedWeightPostingSource_at_end(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])29713 _wrap_FixedWeightPostingSource_at_end(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
29714   Xapian::FixedWeightPostingSource *arg1 = (Xapian::FixedWeightPostingSource *) 0 ;
29715   void *argp1 = 0 ;
29716   int res1 = 0 ;
29717   bool result;
29718 
29719   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::FixedWeightPostingSource_at_end self ",(void *)0) == TCL_ERROR) SWIG_fail;
29720   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__FixedWeightPostingSource, 0 |  0 );
29721   if (!SWIG_IsOK(res1)) {
29722     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FixedWeightPostingSource_at_end" "', argument " "1"" of type '" "Xapian::FixedWeightPostingSource const *""'");
29723   }
29724   arg1 = reinterpret_cast< Xapian::FixedWeightPostingSource * >(argp1);
29725   {
29726     try {
29727       result = (bool)((Xapian::FixedWeightPostingSource const *)arg1)->at_end();
29728     } catch (const Xapian::Error &e) {
29729       return XapianTclHandleError(interp, e);
29730     } catch (...) {
29731       return XapianTclHandleError(interp);
29732     }
29733   }
29734   Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
29735   return TCL_OK;
29736 fail:
29737   return TCL_ERROR;
29738 }
29739 
29740 
29741 SWIGINTERN int
_wrap_FixedWeightPostingSource_get_docid(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])29742 _wrap_FixedWeightPostingSource_get_docid(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
29743   Xapian::FixedWeightPostingSource *arg1 = (Xapian::FixedWeightPostingSource *) 0 ;
29744   void *argp1 = 0 ;
29745   int res1 = 0 ;
29746   Xapian::docid result;
29747 
29748   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::FixedWeightPostingSource_get_docid self ",(void *)0) == TCL_ERROR) SWIG_fail;
29749   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__FixedWeightPostingSource, 0 |  0 );
29750   if (!SWIG_IsOK(res1)) {
29751     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FixedWeightPostingSource_get_docid" "', argument " "1"" of type '" "Xapian::FixedWeightPostingSource const *""'");
29752   }
29753   arg1 = reinterpret_cast< Xapian::FixedWeightPostingSource * >(argp1);
29754   {
29755     try {
29756       result = (Xapian::docid)((Xapian::FixedWeightPostingSource const *)arg1)->get_docid();
29757     } catch (const Xapian::Error &e) {
29758       return XapianTclHandleError(interp, e);
29759     } catch (...) {
29760       return XapianTclHandleError(interp);
29761     }
29762   }
29763   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
29764   return TCL_OK;
29765 fail:
29766   return TCL_ERROR;
29767 }
29768 
29769 
29770 SWIGINTERN int
_wrap_FixedWeightPostingSource_name(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])29771 _wrap_FixedWeightPostingSource_name(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
29772   Xapian::FixedWeightPostingSource *arg1 = (Xapian::FixedWeightPostingSource *) 0 ;
29773   void *argp1 = 0 ;
29774   int res1 = 0 ;
29775   std::string result;
29776 
29777   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::FixedWeightPostingSource_name self ",(void *)0) == TCL_ERROR) SWIG_fail;
29778   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__FixedWeightPostingSource, 0 |  0 );
29779   if (!SWIG_IsOK(res1)) {
29780     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FixedWeightPostingSource_name" "', argument " "1"" of type '" "Xapian::FixedWeightPostingSource const *""'");
29781   }
29782   arg1 = reinterpret_cast< Xapian::FixedWeightPostingSource * >(argp1);
29783   {
29784     try {
29785       result = ((Xapian::FixedWeightPostingSource const *)arg1)->name();
29786     } catch (const Xapian::Error &e) {
29787       return XapianTclHandleError(interp, e);
29788     } catch (...) {
29789       return XapianTclHandleError(interp);
29790     }
29791   }
29792   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
29793   return TCL_OK;
29794 fail:
29795   return TCL_ERROR;
29796 }
29797 
29798 
29799 SWIGINTERN int
_wrap_FixedWeightPostingSource_init(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])29800 _wrap_FixedWeightPostingSource_init(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
29801   Xapian::FixedWeightPostingSource *arg1 = (Xapian::FixedWeightPostingSource *) 0 ;
29802   Xapian::Database *arg2 = 0 ;
29803   void *argp1 = 0 ;
29804   int res1 = 0 ;
29805   void *argp2 ;
29806   int res2 = 0 ;
29807 
29808   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::FixedWeightPostingSource_init self db_ ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
29809   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__FixedWeightPostingSource, 0 |  0 );
29810   if (!SWIG_IsOK(res1)) {
29811     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FixedWeightPostingSource_init" "', argument " "1"" of type '" "Xapian::FixedWeightPostingSource *""'");
29812   }
29813   arg1 = reinterpret_cast< Xapian::FixedWeightPostingSource * >(argp1);
29814   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__Database,  0 );
29815   if (!SWIG_IsOK(res2)) {
29816     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FixedWeightPostingSource_init" "', argument " "2"" of type '" "Xapian::Database const &""'");
29817   }
29818   if (!argp2) {
29819     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FixedWeightPostingSource_init" "', argument " "2"" of type '" "Xapian::Database const &""'");
29820   }
29821   arg2 = reinterpret_cast< Xapian::Database * >(argp2);
29822   {
29823     try {
29824       (arg1)->init((Xapian::Database const &)*arg2);
29825     } catch (const Xapian::Error &e) {
29826       return XapianTclHandleError(interp, e);
29827     } catch (...) {
29828       return XapianTclHandleError(interp);
29829     }
29830   }
29831 
29832   return TCL_OK;
29833 fail:
29834   return TCL_ERROR;
29835 }
29836 
29837 
29838 SWIGINTERN int
_wrap_FixedWeightPostingSource_get_description(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])29839 _wrap_FixedWeightPostingSource_get_description(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
29840   Xapian::FixedWeightPostingSource *arg1 = (Xapian::FixedWeightPostingSource *) 0 ;
29841   void *argp1 = 0 ;
29842   int res1 = 0 ;
29843   std::string result;
29844 
29845   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::FixedWeightPostingSource_get_description self ",(void *)0) == TCL_ERROR) SWIG_fail;
29846   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__FixedWeightPostingSource, 0 |  0 );
29847   if (!SWIG_IsOK(res1)) {
29848     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FixedWeightPostingSource_get_description" "', argument " "1"" of type '" "Xapian::FixedWeightPostingSource const *""'");
29849   }
29850   arg1 = reinterpret_cast< Xapian::FixedWeightPostingSource * >(argp1);
29851   {
29852     try {
29853       result = ((Xapian::FixedWeightPostingSource const *)arg1)->get_description();
29854     } catch (const Xapian::Error &e) {
29855       return XapianTclHandleError(interp, e);
29856     } catch (...) {
29857       return XapianTclHandleError(interp);
29858     }
29859   }
29860   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
29861   return TCL_OK;
29862 fail:
29863   return TCL_ERROR;
29864 }
29865 
29866 
29867 SWIGINTERN int
_wrap_delete_FixedWeightPostingSource(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])29868 _wrap_delete_FixedWeightPostingSource(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
29869   Xapian::FixedWeightPostingSource *arg1 = (Xapian::FixedWeightPostingSource *) 0 ;
29870   void *argp1 = 0 ;
29871   int res1 = 0 ;
29872 
29873   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_FixedWeightPostingSource self ",(void *)0) == TCL_ERROR) SWIG_fail;
29874   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__FixedWeightPostingSource, SWIG_POINTER_DISOWN |  0 );
29875   if (!SWIG_IsOK(res1)) {
29876     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FixedWeightPostingSource" "', argument " "1"" of type '" "Xapian::FixedWeightPostingSource *""'");
29877   }
29878   arg1 = reinterpret_cast< Xapian::FixedWeightPostingSource * >(argp1);
29879   {
29880     try {
29881       delete arg1;
29882     } catch (const Xapian::Error &e) {
29883       return XapianTclHandleError(interp, e);
29884     } catch (...) {
29885       return XapianTclHandleError(interp);
29886     }
29887   }
29888 
29889   return TCL_OK;
29890 fail:
29891   return TCL_ERROR;
29892 }
29893 
29894 
swig_delete_FixedWeightPostingSource(void * obj)29895 SWIGINTERN void swig_delete_FixedWeightPostingSource(void *obj) {
29896 Xapian::FixedWeightPostingSource *arg1 = (Xapian::FixedWeightPostingSource *) obj;
29897 delete arg1;
29898 }
29899 static swig_method swig_Xapian_FixedWeightPostingSource_methods[] = {
29900     {"get_termfreq_min", _wrap_FixedWeightPostingSource_get_termfreq_min},
29901     {"get_termfreq_est", _wrap_FixedWeightPostingSource_get_termfreq_est},
29902     {"get_termfreq_max", _wrap_FixedWeightPostingSource_get_termfreq_max},
29903     {"get_weight", _wrap_FixedWeightPostingSource_get_weight},
29904     {"next", _wrap_FixedWeightPostingSource_next},
29905     {"skip_to", _wrap_FixedWeightPostingSource_skip_to},
29906     {"check", _wrap_FixedWeightPostingSource_check},
29907     {"at_end", _wrap_FixedWeightPostingSource_at_end},
29908     {"get_docid", _wrap_FixedWeightPostingSource_get_docid},
29909     {"name", _wrap_FixedWeightPostingSource_name},
29910     {"init", _wrap_FixedWeightPostingSource_init},
29911     {"get_description", _wrap_FixedWeightPostingSource_get_description},
29912     {0,0}
29913 };
29914 static swig_attribute swig_Xapian_FixedWeightPostingSource_attributes[] = {
29915     {0,0,0}
29916 };
29917 static swig_class *swig_Xapian_FixedWeightPostingSource_bases[] = {0,0};
29918 static const char * swig_Xapian_FixedWeightPostingSource_base_names[] = {"Xapian::PostingSource *",0};
29919 static swig_class _wrap_class_Xapian_FixedWeightPostingSource = { "FixedWeightPostingSource", &SWIGTYPE_p_Xapian__FixedWeightPostingSource,_wrap_new_FixedWeightPostingSource, swig_delete_FixedWeightPostingSource, swig_Xapian_FixedWeightPostingSource_methods, swig_Xapian_FixedWeightPostingSource_attributes, swig_Xapian_FixedWeightPostingSource_bases,swig_Xapian_FixedWeightPostingSource_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
29920 SWIGINTERN int
_wrap_delete_MatchSpy(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])29921 _wrap_delete_MatchSpy(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
29922   Xapian::MatchSpy *arg1 = (Xapian::MatchSpy *) 0 ;
29923   void *argp1 = 0 ;
29924   int res1 = 0 ;
29925 
29926   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_MatchSpy self ",(void *)0) == TCL_ERROR) SWIG_fail;
29927   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MatchSpy, SWIG_POINTER_DISOWN |  0 );
29928   if (!SWIG_IsOK(res1)) {
29929     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MatchSpy" "', argument " "1"" of type '" "Xapian::MatchSpy *""'");
29930   }
29931   arg1 = reinterpret_cast< Xapian::MatchSpy * >(argp1);
29932   {
29933     try {
29934       delete arg1;
29935     } catch (const Xapian::Error &e) {
29936       return XapianTclHandleError(interp, e);
29937     } catch (...) {
29938       return XapianTclHandleError(interp);
29939     }
29940   }
29941 
29942   return TCL_OK;
29943 fail:
29944   return TCL_ERROR;
29945 }
29946 
29947 
29948 SWIGINTERN int
_wrap_MatchSpy_apply(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])29949 _wrap_MatchSpy_apply(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
29950   Xapian::MatchSpy *arg1 = (Xapian::MatchSpy *) 0 ;
29951   Xapian::Document *arg2 = 0 ;
29952   double arg3 ;
29953   void *argp1 = 0 ;
29954   int res1 = 0 ;
29955   void *argp2 ;
29956   int res2 = 0 ;
29957   double val3 ;
29958   int ecode3 = 0 ;
29959 
29960   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::MatchSpy_apply self doc wt ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
29961   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MatchSpy, 0 |  0 );
29962   if (!SWIG_IsOK(res1)) {
29963     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MatchSpy_apply" "', argument " "1"" of type '" "Xapian::MatchSpy *""'");
29964   }
29965   arg1 = reinterpret_cast< Xapian::MatchSpy * >(argp1);
29966   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__Document,  0 );
29967   if (!SWIG_IsOK(res2)) {
29968     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MatchSpy_apply" "', argument " "2"" of type '" "Xapian::Document const &""'");
29969   }
29970   if (!argp2) {
29971     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MatchSpy_apply" "', argument " "2"" of type '" "Xapian::Document const &""'");
29972   }
29973   arg2 = reinterpret_cast< Xapian::Document * >(argp2);
29974   ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
29975   if (!SWIG_IsOK(ecode3)) {
29976     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MatchSpy_apply" "', argument " "3"" of type '" "double""'");
29977   }
29978   arg3 = static_cast< double >(val3);
29979   {
29980     try {
29981       (arg1)->operator ()((Xapian::Document const &)*arg2,arg3);
29982     } catch (const Xapian::Error &e) {
29983       return XapianTclHandleError(interp, e);
29984     } catch (...) {
29985       return XapianTclHandleError(interp);
29986     }
29987   }
29988 
29989   return TCL_OK;
29990 fail:
29991   return TCL_ERROR;
29992 }
29993 
29994 
29995 SWIGINTERN int
_wrap_MatchSpy_name(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])29996 _wrap_MatchSpy_name(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
29997   Xapian::MatchSpy *arg1 = (Xapian::MatchSpy *) 0 ;
29998   void *argp1 = 0 ;
29999   int res1 = 0 ;
30000   std::string result;
30001 
30002   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::MatchSpy_name self ",(void *)0) == TCL_ERROR) SWIG_fail;
30003   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MatchSpy, 0 |  0 );
30004   if (!SWIG_IsOK(res1)) {
30005     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MatchSpy_name" "', argument " "1"" of type '" "Xapian::MatchSpy const *""'");
30006   }
30007   arg1 = reinterpret_cast< Xapian::MatchSpy * >(argp1);
30008   {
30009     try {
30010       result = ((Xapian::MatchSpy const *)arg1)->name();
30011     } catch (const Xapian::Error &e) {
30012       return XapianTclHandleError(interp, e);
30013     } catch (...) {
30014       return XapianTclHandleError(interp);
30015     }
30016   }
30017   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
30018   return TCL_OK;
30019 fail:
30020   return TCL_ERROR;
30021 }
30022 
30023 
30024 SWIGINTERN int
_wrap_MatchSpy_merge_results(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])30025 _wrap_MatchSpy_merge_results(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
30026   Xapian::MatchSpy *arg1 = (Xapian::MatchSpy *) 0 ;
30027   std::string *arg2 = 0 ;
30028   void *argp1 = 0 ;
30029   int res1 = 0 ;
30030   int res2 = SWIG_OLDOBJ ;
30031 
30032   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::MatchSpy_merge_results self serialised ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
30033   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MatchSpy, 0 |  0 );
30034   if (!SWIG_IsOK(res1)) {
30035     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MatchSpy_merge_results" "', argument " "1"" of type '" "Xapian::MatchSpy *""'");
30036   }
30037   arg1 = reinterpret_cast< Xapian::MatchSpy * >(argp1);
30038   {
30039     std::string *ptr = (std::string *)0;
30040     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
30041     if (!SWIG_IsOK(res2)) {
30042       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MatchSpy_merge_results" "', argument " "2"" of type '" "std::string const &""'");
30043     }
30044     if (!ptr) {
30045       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MatchSpy_merge_results" "', argument " "2"" of type '" "std::string const &""'");
30046     }
30047     arg2 = ptr;
30048   }
30049   {
30050     try {
30051       (arg1)->merge_results((std::string const &)*arg2);
30052     } catch (const Xapian::Error &e) {
30053       return XapianTclHandleError(interp, e);
30054     } catch (...) {
30055       return XapianTclHandleError(interp);
30056     }
30057   }
30058 
30059   if (SWIG_IsNewObj(res2)) delete arg2;
30060   return TCL_OK;
30061 fail:
30062   if (SWIG_IsNewObj(res2)) delete arg2;
30063   return TCL_ERROR;
30064 }
30065 
30066 
30067 SWIGINTERN int
_wrap_MatchSpy_get_description(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])30068 _wrap_MatchSpy_get_description(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
30069   Xapian::MatchSpy *arg1 = (Xapian::MatchSpy *) 0 ;
30070   void *argp1 = 0 ;
30071   int res1 = 0 ;
30072   std::string result;
30073 
30074   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::MatchSpy_get_description self ",(void *)0) == TCL_ERROR) SWIG_fail;
30075   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MatchSpy, 0 |  0 );
30076   if (!SWIG_IsOK(res1)) {
30077     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MatchSpy_get_description" "', argument " "1"" of type '" "Xapian::MatchSpy const *""'");
30078   }
30079   arg1 = reinterpret_cast< Xapian::MatchSpy * >(argp1);
30080   {
30081     try {
30082       result = ((Xapian::MatchSpy const *)arg1)->get_description();
30083     } catch (const Xapian::Error &e) {
30084       return XapianTclHandleError(interp, e);
30085     } catch (...) {
30086       return XapianTclHandleError(interp);
30087     }
30088   }
30089   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
30090   return TCL_OK;
30091 fail:
30092   return TCL_ERROR;
30093 }
30094 
30095 
30096 SWIGINTERN int
_wrap_MatchSpy_release(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])30097 _wrap_MatchSpy_release(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
30098   Xapian::MatchSpy *arg1 = (Xapian::MatchSpy *) 0 ;
30099   void *argp1 = 0 ;
30100   int res1 = 0 ;
30101   Xapian::MatchSpy *result = 0 ;
30102 
30103   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::MatchSpy_release self ",(void *)0) == TCL_ERROR) SWIG_fail;
30104   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__MatchSpy, 0 |  0 );
30105   if (!SWIG_IsOK(res1)) {
30106     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MatchSpy_release" "', argument " "1"" of type '" "Xapian::MatchSpy const *""'");
30107   }
30108   arg1 = reinterpret_cast< Xapian::MatchSpy * >(argp1);
30109   {
30110     try {
30111       result = (Xapian::MatchSpy *)((Xapian::MatchSpy const *)arg1)->release();
30112     } catch (const Xapian::Error &e) {
30113       return XapianTclHandleError(interp, e);
30114     } catch (...) {
30115       return XapianTclHandleError(interp);
30116     }
30117   }
30118   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__MatchSpy,0));
30119   return TCL_OK;
30120 fail:
30121   return TCL_ERROR;
30122 }
30123 
30124 
swig_delete_MatchSpy(void * obj)30125 SWIGINTERN void swig_delete_MatchSpy(void *obj) {
30126 Xapian::MatchSpy *arg1 = (Xapian::MatchSpy *) obj;
30127 delete arg1;
30128 }
30129 static swig_method swig_Xapian_MatchSpy_methods[] = {
30130     {"apply", _wrap_MatchSpy_apply},
30131     {"name", _wrap_MatchSpy_name},
30132     {"merge_results", _wrap_MatchSpy_merge_results},
30133     {"get_description", _wrap_MatchSpy_get_description},
30134     {"release", _wrap_MatchSpy_release},
30135     {0,0}
30136 };
30137 static swig_attribute swig_Xapian_MatchSpy_attributes[] = {
30138     {0,0,0}
30139 };
30140 static swig_class *swig_Xapian_MatchSpy_bases[] = {0};
30141 static const char * swig_Xapian_MatchSpy_base_names[] = {0};
30142 static swig_class _wrap_class_Xapian_MatchSpy = { "MatchSpy", &SWIGTYPE_p_Xapian__MatchSpy,0, swig_delete_MatchSpy, swig_Xapian_MatchSpy_methods, swig_Xapian_MatchSpy_attributes, swig_Xapian_MatchSpy_bases,swig_Xapian_MatchSpy_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
30143 SWIGINTERN int
_wrap_new_ValueCountMatchSpy__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])30144 _wrap_new_ValueCountMatchSpy__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
30145   Xapian::ValueCountMatchSpy *result = 0 ;
30146 
30147   if (SWIG_GetArgs(interp, objc, objv,":xapian::new_ValueCountMatchSpy ") == TCL_ERROR) SWIG_fail;
30148   {
30149     try {
30150       result = (Xapian::ValueCountMatchSpy *)new Xapian::ValueCountMatchSpy();
30151     } catch (const Xapian::Error &e) {
30152       return XapianTclHandleError(interp, e);
30153     } catch (...) {
30154       return XapianTclHandleError(interp);
30155     }
30156   }
30157   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ValueCountMatchSpy,0));
30158   return TCL_OK;
30159 fail:
30160   return TCL_ERROR;
30161 }
30162 
30163 
30164 SWIGINTERN int
_wrap_new_ValueCountMatchSpy__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])30165 _wrap_new_ValueCountMatchSpy__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
30166   Xapian::valueno arg1 ;
30167   unsigned int val1 ;
30168   int ecode1 = 0 ;
30169   Xapian::ValueCountMatchSpy *result = 0 ;
30170 
30171   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_ValueCountMatchSpy slot_ ",(void *)0) == TCL_ERROR) SWIG_fail;
30172   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
30173   if (!SWIG_IsOK(ecode1)) {
30174     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ValueCountMatchSpy" "', argument " "1"" of type '" "Xapian::valueno""'");
30175   }
30176   arg1 = static_cast< Xapian::valueno >(val1);
30177   {
30178     try {
30179       result = (Xapian::ValueCountMatchSpy *)new Xapian::ValueCountMatchSpy(arg1);
30180     } catch (const Xapian::Error &e) {
30181       return XapianTclHandleError(interp, e);
30182     } catch (...) {
30183       return XapianTclHandleError(interp);
30184     }
30185   }
30186   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ValueCountMatchSpy,0));
30187   return TCL_OK;
30188 fail:
30189   return TCL_ERROR;
30190 }
30191 
30192 
30193 SWIGINTERN int
_wrap_new_ValueCountMatchSpy(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])30194 _wrap_new_ValueCountMatchSpy(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
30195   Tcl_Obj *CONST *argv = objv+1;
30196   int argc = objc-1;
30197   if (argc == 0) {
30198     return _wrap_new_ValueCountMatchSpy__SWIG_0(clientData, interp, objc, argv - 1);
30199   }
30200   if (argc == 1) {
30201     int _v;
30202     {
30203       int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
30204       _v = SWIG_CheckState(res);
30205     }
30206     if (_v) {
30207       return _wrap_new_ValueCountMatchSpy__SWIG_1(clientData, interp, objc, argv - 1);
30208     }
30209   }
30210 
30211   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_ValueCountMatchSpy'.\n"
30212     "  Possible C/C++ prototypes are:\n"
30213     "    Xapian::ValueCountMatchSpy::ValueCountMatchSpy()\n"
30214     "    Xapian::ValueCountMatchSpy::ValueCountMatchSpy(Xapian::valueno)\n", TCL_STATIC);
30215   return TCL_ERROR;
30216 }
30217 
30218 
30219 SWIGINTERN int
_wrap_ValueCountMatchSpy_get_total(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])30220 _wrap_ValueCountMatchSpy_get_total(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
30221   Xapian::ValueCountMatchSpy *arg1 = (Xapian::ValueCountMatchSpy *) 0 ;
30222   void *argp1 = 0 ;
30223   int res1 = 0 ;
30224   size_t result;
30225 
30226   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::ValueCountMatchSpy_get_total self ",(void *)0) == TCL_ERROR) SWIG_fail;
30227   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValueCountMatchSpy, 0 |  0 );
30228   if (!SWIG_IsOK(res1)) {
30229     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueCountMatchSpy_get_total" "', argument " "1"" of type '" "Xapian::ValueCountMatchSpy const *""'");
30230   }
30231   arg1 = reinterpret_cast< Xapian::ValueCountMatchSpy * >(argp1);
30232   {
30233     try {
30234       result = ((Xapian::ValueCountMatchSpy const *)arg1)->get_total();
30235     } catch (const Xapian::Error &e) {
30236       return XapianTclHandleError(interp, e);
30237     } catch (...) {
30238       return XapianTclHandleError(interp);
30239     }
30240   }
30241   Tcl_SetObjResult(interp,SWIG_From_size_t(static_cast< size_t >(result)));
30242   return TCL_OK;
30243 fail:
30244   return TCL_ERROR;
30245 }
30246 
30247 
30248 SWIGINTERN int
_wrap_ValueCountMatchSpy_values_begin(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])30249 _wrap_ValueCountMatchSpy_values_begin(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
30250   Xapian::ValueCountMatchSpy *arg1 = (Xapian::ValueCountMatchSpy *) 0 ;
30251   void *argp1 = 0 ;
30252   int res1 = 0 ;
30253   Xapian::TermIterator result;
30254 
30255   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::ValueCountMatchSpy_values_begin self ",(void *)0) == TCL_ERROR) SWIG_fail;
30256   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValueCountMatchSpy, 0 |  0 );
30257   if (!SWIG_IsOK(res1)) {
30258     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueCountMatchSpy_values_begin" "', argument " "1"" of type '" "Xapian::ValueCountMatchSpy const *""'");
30259   }
30260   arg1 = reinterpret_cast< Xapian::ValueCountMatchSpy * >(argp1);
30261   {
30262     try {
30263       result = ((Xapian::ValueCountMatchSpy const *)arg1)->values_begin();
30264     } catch (const Xapian::Error &e) {
30265       return XapianTclHandleError(interp, e);
30266     } catch (...) {
30267       return XapianTclHandleError(interp);
30268     }
30269   }
30270   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN | 0 ));
30271   return TCL_OK;
30272 fail:
30273   return TCL_ERROR;
30274 }
30275 
30276 
30277 SWIGINTERN int
_wrap_ValueCountMatchSpy_values_end(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])30278 _wrap_ValueCountMatchSpy_values_end(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
30279   Xapian::ValueCountMatchSpy *arg1 = (Xapian::ValueCountMatchSpy *) 0 ;
30280   void *argp1 = 0 ;
30281   int res1 = 0 ;
30282   Xapian::TermIterator result;
30283 
30284   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::ValueCountMatchSpy_values_end self ",(void *)0) == TCL_ERROR) SWIG_fail;
30285   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValueCountMatchSpy, 0 |  0 );
30286   if (!SWIG_IsOK(res1)) {
30287     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueCountMatchSpy_values_end" "', argument " "1"" of type '" "Xapian::ValueCountMatchSpy const *""'");
30288   }
30289   arg1 = reinterpret_cast< Xapian::ValueCountMatchSpy * >(argp1);
30290   {
30291     try {
30292       result = ((Xapian::ValueCountMatchSpy const *)arg1)->values_end();
30293     } catch (const Xapian::Error &e) {
30294       return XapianTclHandleError(interp, e);
30295     } catch (...) {
30296       return XapianTclHandleError(interp);
30297     }
30298   }
30299   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN | 0 ));
30300   return TCL_OK;
30301 fail:
30302   return TCL_ERROR;
30303 }
30304 
30305 
30306 SWIGINTERN int
_wrap_ValueCountMatchSpy_top_values_begin(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])30307 _wrap_ValueCountMatchSpy_top_values_begin(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
30308   Xapian::ValueCountMatchSpy *arg1 = (Xapian::ValueCountMatchSpy *) 0 ;
30309   size_t arg2 ;
30310   void *argp1 = 0 ;
30311   int res1 = 0 ;
30312   size_t val2 ;
30313   int ecode2 = 0 ;
30314   Xapian::TermIterator result;
30315 
30316   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::ValueCountMatchSpy_top_values_begin self maxvalues ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
30317   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValueCountMatchSpy, 0 |  0 );
30318   if (!SWIG_IsOK(res1)) {
30319     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueCountMatchSpy_top_values_begin" "', argument " "1"" of type '" "Xapian::ValueCountMatchSpy const *""'");
30320   }
30321   arg1 = reinterpret_cast< Xapian::ValueCountMatchSpy * >(argp1);
30322   ecode2 = SWIG_AsVal_size_t SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
30323   if (!SWIG_IsOK(ecode2)) {
30324     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ValueCountMatchSpy_top_values_begin" "', argument " "2"" of type '" "size_t""'");
30325   }
30326   arg2 = static_cast< size_t >(val2);
30327   {
30328     try {
30329       result = ((Xapian::ValueCountMatchSpy const *)arg1)->top_values_begin(arg2);
30330     } catch (const Xapian::Error &e) {
30331       return XapianTclHandleError(interp, e);
30332     } catch (...) {
30333       return XapianTclHandleError(interp);
30334     }
30335   }
30336   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN | 0 ));
30337   return TCL_OK;
30338 fail:
30339   return TCL_ERROR;
30340 }
30341 
30342 
30343 SWIGINTERN int
_wrap_ValueCountMatchSpy_top_values_end(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])30344 _wrap_ValueCountMatchSpy_top_values_end(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
30345   Xapian::ValueCountMatchSpy *arg1 = (Xapian::ValueCountMatchSpy *) 0 ;
30346   size_t arg2 ;
30347   void *argp1 = 0 ;
30348   int res1 = 0 ;
30349   size_t val2 ;
30350   int ecode2 = 0 ;
30351   Xapian::TermIterator result;
30352 
30353   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::ValueCountMatchSpy_top_values_end self size_t ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
30354   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValueCountMatchSpy, 0 |  0 );
30355   if (!SWIG_IsOK(res1)) {
30356     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueCountMatchSpy_top_values_end" "', argument " "1"" of type '" "Xapian::ValueCountMatchSpy const *""'");
30357   }
30358   arg1 = reinterpret_cast< Xapian::ValueCountMatchSpy * >(argp1);
30359   ecode2 = SWIG_AsVal_size_t SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
30360   if (!SWIG_IsOK(ecode2)) {
30361     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ValueCountMatchSpy_top_values_end" "', argument " "2"" of type '" "size_t""'");
30362   }
30363   arg2 = static_cast< size_t >(val2);
30364   {
30365     try {
30366       result = ((Xapian::ValueCountMatchSpy const *)arg1)->top_values_end(arg2);
30367     } catch (const Xapian::Error &e) {
30368       return XapianTclHandleError(interp, e);
30369     } catch (...) {
30370       return XapianTclHandleError(interp);
30371     }
30372   }
30373   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN | 0 ));
30374   return TCL_OK;
30375 fail:
30376   return TCL_ERROR;
30377 }
30378 
30379 
30380 SWIGINTERN int
_wrap_ValueCountMatchSpy_apply(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])30381 _wrap_ValueCountMatchSpy_apply(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
30382   Xapian::ValueCountMatchSpy *arg1 = (Xapian::ValueCountMatchSpy *) 0 ;
30383   Xapian::Document *arg2 = 0 ;
30384   double arg3 ;
30385   void *argp1 = 0 ;
30386   int res1 = 0 ;
30387   void *argp2 ;
30388   int res2 = 0 ;
30389   double val3 ;
30390   int ecode3 = 0 ;
30391 
30392   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::ValueCountMatchSpy_apply self doc wt ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
30393   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValueCountMatchSpy, 0 |  0 );
30394   if (!SWIG_IsOK(res1)) {
30395     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueCountMatchSpy_apply" "', argument " "1"" of type '" "Xapian::ValueCountMatchSpy *""'");
30396   }
30397   arg1 = reinterpret_cast< Xapian::ValueCountMatchSpy * >(argp1);
30398   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__Document,  0 );
30399   if (!SWIG_IsOK(res2)) {
30400     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ValueCountMatchSpy_apply" "', argument " "2"" of type '" "Xapian::Document const &""'");
30401   }
30402   if (!argp2) {
30403     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ValueCountMatchSpy_apply" "', argument " "2"" of type '" "Xapian::Document const &""'");
30404   }
30405   arg2 = reinterpret_cast< Xapian::Document * >(argp2);
30406   ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
30407   if (!SWIG_IsOK(ecode3)) {
30408     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ValueCountMatchSpy_apply" "', argument " "3"" of type '" "double""'");
30409   }
30410   arg3 = static_cast< double >(val3);
30411   {
30412     try {
30413       (arg1)->operator ()((Xapian::Document const &)*arg2,arg3);
30414     } catch (const Xapian::Error &e) {
30415       return XapianTclHandleError(interp, e);
30416     } catch (...) {
30417       return XapianTclHandleError(interp);
30418     }
30419   }
30420 
30421   return TCL_OK;
30422 fail:
30423   return TCL_ERROR;
30424 }
30425 
30426 
30427 SWIGINTERN int
_wrap_ValueCountMatchSpy_name(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])30428 _wrap_ValueCountMatchSpy_name(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
30429   Xapian::ValueCountMatchSpy *arg1 = (Xapian::ValueCountMatchSpy *) 0 ;
30430   void *argp1 = 0 ;
30431   int res1 = 0 ;
30432   std::string result;
30433 
30434   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::ValueCountMatchSpy_name self ",(void *)0) == TCL_ERROR) SWIG_fail;
30435   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValueCountMatchSpy, 0 |  0 );
30436   if (!SWIG_IsOK(res1)) {
30437     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueCountMatchSpy_name" "', argument " "1"" of type '" "Xapian::ValueCountMatchSpy const *""'");
30438   }
30439   arg1 = reinterpret_cast< Xapian::ValueCountMatchSpy * >(argp1);
30440   {
30441     try {
30442       result = ((Xapian::ValueCountMatchSpy const *)arg1)->name();
30443     } catch (const Xapian::Error &e) {
30444       return XapianTclHandleError(interp, e);
30445     } catch (...) {
30446       return XapianTclHandleError(interp);
30447     }
30448   }
30449   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
30450   return TCL_OK;
30451 fail:
30452   return TCL_ERROR;
30453 }
30454 
30455 
30456 SWIGINTERN int
_wrap_ValueCountMatchSpy_merge_results(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])30457 _wrap_ValueCountMatchSpy_merge_results(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
30458   Xapian::ValueCountMatchSpy *arg1 = (Xapian::ValueCountMatchSpy *) 0 ;
30459   std::string *arg2 = 0 ;
30460   void *argp1 = 0 ;
30461   int res1 = 0 ;
30462   int res2 = SWIG_OLDOBJ ;
30463 
30464   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::ValueCountMatchSpy_merge_results self serialised ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
30465   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValueCountMatchSpy, 0 |  0 );
30466   if (!SWIG_IsOK(res1)) {
30467     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueCountMatchSpy_merge_results" "', argument " "1"" of type '" "Xapian::ValueCountMatchSpy *""'");
30468   }
30469   arg1 = reinterpret_cast< Xapian::ValueCountMatchSpy * >(argp1);
30470   {
30471     std::string *ptr = (std::string *)0;
30472     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
30473     if (!SWIG_IsOK(res2)) {
30474       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ValueCountMatchSpy_merge_results" "', argument " "2"" of type '" "std::string const &""'");
30475     }
30476     if (!ptr) {
30477       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ValueCountMatchSpy_merge_results" "', argument " "2"" of type '" "std::string const &""'");
30478     }
30479     arg2 = ptr;
30480   }
30481   {
30482     try {
30483       (arg1)->merge_results((std::string const &)*arg2);
30484     } catch (const Xapian::Error &e) {
30485       return XapianTclHandleError(interp, e);
30486     } catch (...) {
30487       return XapianTclHandleError(interp);
30488     }
30489   }
30490 
30491   if (SWIG_IsNewObj(res2)) delete arg2;
30492   return TCL_OK;
30493 fail:
30494   if (SWIG_IsNewObj(res2)) delete arg2;
30495   return TCL_ERROR;
30496 }
30497 
30498 
30499 SWIGINTERN int
_wrap_ValueCountMatchSpy_get_description(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])30500 _wrap_ValueCountMatchSpy_get_description(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
30501   Xapian::ValueCountMatchSpy *arg1 = (Xapian::ValueCountMatchSpy *) 0 ;
30502   void *argp1 = 0 ;
30503   int res1 = 0 ;
30504   std::string result;
30505 
30506   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::ValueCountMatchSpy_get_description self ",(void *)0) == TCL_ERROR) SWIG_fail;
30507   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValueCountMatchSpy, 0 |  0 );
30508   if (!SWIG_IsOK(res1)) {
30509     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueCountMatchSpy_get_description" "', argument " "1"" of type '" "Xapian::ValueCountMatchSpy const *""'");
30510   }
30511   arg1 = reinterpret_cast< Xapian::ValueCountMatchSpy * >(argp1);
30512   {
30513     try {
30514       result = ((Xapian::ValueCountMatchSpy const *)arg1)->get_description();
30515     } catch (const Xapian::Error &e) {
30516       return XapianTclHandleError(interp, e);
30517     } catch (...) {
30518       return XapianTclHandleError(interp);
30519     }
30520   }
30521   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
30522   return TCL_OK;
30523 fail:
30524   return TCL_ERROR;
30525 }
30526 
30527 
30528 SWIGINTERN int
_wrap_delete_ValueCountMatchSpy(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])30529 _wrap_delete_ValueCountMatchSpy(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
30530   Xapian::ValueCountMatchSpy *arg1 = (Xapian::ValueCountMatchSpy *) 0 ;
30531   void *argp1 = 0 ;
30532   int res1 = 0 ;
30533 
30534   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_ValueCountMatchSpy self ",(void *)0) == TCL_ERROR) SWIG_fail;
30535   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__ValueCountMatchSpy, SWIG_POINTER_DISOWN |  0 );
30536   if (!SWIG_IsOK(res1)) {
30537     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ValueCountMatchSpy" "', argument " "1"" of type '" "Xapian::ValueCountMatchSpy *""'");
30538   }
30539   arg1 = reinterpret_cast< Xapian::ValueCountMatchSpy * >(argp1);
30540   {
30541     try {
30542       delete arg1;
30543     } catch (const Xapian::Error &e) {
30544       return XapianTclHandleError(interp, e);
30545     } catch (...) {
30546       return XapianTclHandleError(interp);
30547     }
30548   }
30549 
30550   return TCL_OK;
30551 fail:
30552   return TCL_ERROR;
30553 }
30554 
30555 
swig_delete_ValueCountMatchSpy(void * obj)30556 SWIGINTERN void swig_delete_ValueCountMatchSpy(void *obj) {
30557 Xapian::ValueCountMatchSpy *arg1 = (Xapian::ValueCountMatchSpy *) obj;
30558 delete arg1;
30559 }
30560 static swig_method swig_Xapian_ValueCountMatchSpy_methods[] = {
30561     {"get_total", _wrap_ValueCountMatchSpy_get_total},
30562     {"values_begin", _wrap_ValueCountMatchSpy_values_begin},
30563     {"values_end", _wrap_ValueCountMatchSpy_values_end},
30564     {"top_values_begin", _wrap_ValueCountMatchSpy_top_values_begin},
30565     {"top_values_end", _wrap_ValueCountMatchSpy_top_values_end},
30566     {"apply", _wrap_ValueCountMatchSpy_apply},
30567     {"name", _wrap_ValueCountMatchSpy_name},
30568     {"merge_results", _wrap_ValueCountMatchSpy_merge_results},
30569     {"get_description", _wrap_ValueCountMatchSpy_get_description},
30570     {0,0}
30571 };
30572 static swig_attribute swig_Xapian_ValueCountMatchSpy_attributes[] = {
30573     {0,0,0}
30574 };
30575 static swig_class *swig_Xapian_ValueCountMatchSpy_bases[] = {0,0};
30576 static const char * swig_Xapian_ValueCountMatchSpy_base_names[] = {"Xapian::MatchSpy *",0};
30577 static swig_class _wrap_class_Xapian_ValueCountMatchSpy = { "ValueCountMatchSpy", &SWIGTYPE_p_Xapian__ValueCountMatchSpy,_wrap_new_ValueCountMatchSpy, swig_delete_ValueCountMatchSpy, swig_Xapian_ValueCountMatchSpy_methods, swig_Xapian_ValueCountMatchSpy_attributes, swig_Xapian_ValueCountMatchSpy_bases,swig_Xapian_ValueCountMatchSpy_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
30578 SWIGINTERN int
_wrap_miles_to_metres(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])30579 _wrap_miles_to_metres(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
30580   double arg1 ;
30581   double val1 ;
30582   int ecode1 = 0 ;
30583   double result;
30584 
30585   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::miles_to_metres miles ",(void *)0) == TCL_ERROR) SWIG_fail;
30586   ecode1 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
30587   if (!SWIG_IsOK(ecode1)) {
30588     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "miles_to_metres" "', argument " "1"" of type '" "double""'");
30589   }
30590   arg1 = static_cast< double >(val1);
30591   {
30592     try {
30593       result = (double)Xapian::miles_to_metres(arg1);
30594     } catch (const Xapian::Error &e) {
30595       return XapianTclHandleError(interp, e);
30596     } catch (...) {
30597       return XapianTclHandleError(interp);
30598     }
30599   }
30600   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
30601   return TCL_OK;
30602 fail:
30603   return TCL_ERROR;
30604 }
30605 
30606 
30607 SWIGINTERN int
_wrap_metres_to_miles(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])30608 _wrap_metres_to_miles(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
30609   double arg1 ;
30610   double val1 ;
30611   int ecode1 = 0 ;
30612   double result;
30613 
30614   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::metres_to_miles metres ",(void *)0) == TCL_ERROR) SWIG_fail;
30615   ecode1 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
30616   if (!SWIG_IsOK(ecode1)) {
30617     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "metres_to_miles" "', argument " "1"" of type '" "double""'");
30618   }
30619   arg1 = static_cast< double >(val1);
30620   {
30621     try {
30622       result = (double)Xapian::metres_to_miles(arg1);
30623     } catch (const Xapian::Error &e) {
30624       return XapianTclHandleError(interp, e);
30625     } catch (...) {
30626       return XapianTclHandleError(interp);
30627     }
30628   }
30629   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
30630   return TCL_OK;
30631 fail:
30632   return TCL_ERROR;
30633 }
30634 
30635 
30636 SWIGINTERN int
_wrap_LatLongCoord_latitude_set(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])30637 _wrap_LatLongCoord_latitude_set(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
30638   Xapian::LatLongCoord *arg1 = (Xapian::LatLongCoord *) 0 ;
30639   double arg2 ;
30640   void *argp1 = 0 ;
30641   int res1 = 0 ;
30642   double val2 ;
30643   int ecode2 = 0 ;
30644 
30645   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::LatLongCoord_latitude_set self latitude ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
30646   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__LatLongCoord, 0 |  0 );
30647   if (!SWIG_IsOK(res1)) {
30648     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoord_latitude_set" "', argument " "1"" of type '" "Xapian::LatLongCoord *""'");
30649   }
30650   arg1 = reinterpret_cast< Xapian::LatLongCoord * >(argp1);
30651   ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
30652   if (!SWIG_IsOK(ecode2)) {
30653     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LatLongCoord_latitude_set" "', argument " "2"" of type '" "double""'");
30654   }
30655   arg2 = static_cast< double >(val2);
30656   if (arg1) (arg1)->latitude = arg2;
30657 
30658   return TCL_OK;
30659 fail:
30660   return TCL_ERROR;
30661 }
30662 
30663 
30664 SWIGINTERN int
_wrap_LatLongCoord_latitude_get(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])30665 _wrap_LatLongCoord_latitude_get(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
30666   Xapian::LatLongCoord *arg1 = (Xapian::LatLongCoord *) 0 ;
30667   void *argp1 = 0 ;
30668   int res1 = 0 ;
30669   double result;
30670 
30671   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::LatLongCoord_latitude_get self ",(void *)0) == TCL_ERROR) SWIG_fail;
30672   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__LatLongCoord, 0 |  0 );
30673   if (!SWIG_IsOK(res1)) {
30674     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoord_latitude_get" "', argument " "1"" of type '" "Xapian::LatLongCoord *""'");
30675   }
30676   arg1 = reinterpret_cast< Xapian::LatLongCoord * >(argp1);
30677   result = (double) ((arg1)->latitude);
30678   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
30679   return TCL_OK;
30680 fail:
30681   return TCL_ERROR;
30682 }
30683 
30684 
30685 SWIGINTERN int
_wrap_LatLongCoord_longitude_set(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])30686 _wrap_LatLongCoord_longitude_set(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
30687   Xapian::LatLongCoord *arg1 = (Xapian::LatLongCoord *) 0 ;
30688   double arg2 ;
30689   void *argp1 = 0 ;
30690   int res1 = 0 ;
30691   double val2 ;
30692   int ecode2 = 0 ;
30693 
30694   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::LatLongCoord_longitude_set self longitude ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
30695   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__LatLongCoord, 0 |  0 );
30696   if (!SWIG_IsOK(res1)) {
30697     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoord_longitude_set" "', argument " "1"" of type '" "Xapian::LatLongCoord *""'");
30698   }
30699   arg1 = reinterpret_cast< Xapian::LatLongCoord * >(argp1);
30700   ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
30701   if (!SWIG_IsOK(ecode2)) {
30702     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LatLongCoord_longitude_set" "', argument " "2"" of type '" "double""'");
30703   }
30704   arg2 = static_cast< double >(val2);
30705   if (arg1) (arg1)->longitude = arg2;
30706 
30707   return TCL_OK;
30708 fail:
30709   return TCL_ERROR;
30710 }
30711 
30712 
30713 SWIGINTERN int
_wrap_LatLongCoord_longitude_get(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])30714 _wrap_LatLongCoord_longitude_get(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
30715   Xapian::LatLongCoord *arg1 = (Xapian::LatLongCoord *) 0 ;
30716   void *argp1 = 0 ;
30717   int res1 = 0 ;
30718   double result;
30719 
30720   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::LatLongCoord_longitude_get self ",(void *)0) == TCL_ERROR) SWIG_fail;
30721   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__LatLongCoord, 0 |  0 );
30722   if (!SWIG_IsOK(res1)) {
30723     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoord_longitude_get" "', argument " "1"" of type '" "Xapian::LatLongCoord *""'");
30724   }
30725   arg1 = reinterpret_cast< Xapian::LatLongCoord * >(argp1);
30726   result = (double) ((arg1)->longitude);
30727   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
30728   return TCL_OK;
30729 fail:
30730   return TCL_ERROR;
30731 }
30732 
30733 
30734 SWIGINTERN int
_wrap_new_LatLongCoord__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])30735 _wrap_new_LatLongCoord__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
30736   Xapian::LatLongCoord *result = 0 ;
30737 
30738   if (SWIG_GetArgs(interp, objc, objv,":xapian::new_LatLongCoord ") == TCL_ERROR) SWIG_fail;
30739   {
30740     try {
30741       result = (Xapian::LatLongCoord *)new Xapian::LatLongCoord();
30742     } catch (const Xapian::Error &e) {
30743       return XapianTclHandleError(interp, e);
30744     } catch (...) {
30745       return XapianTclHandleError(interp);
30746     }
30747   }
30748   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongCoord,0));
30749   return TCL_OK;
30750 fail:
30751   return TCL_ERROR;
30752 }
30753 
30754 
30755 SWIGINTERN int
_wrap_new_LatLongCoord__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])30756 _wrap_new_LatLongCoord__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
30757   double arg1 ;
30758   double arg2 ;
30759   double val1 ;
30760   int ecode1 = 0 ;
30761   double val2 ;
30762   int ecode2 = 0 ;
30763   Xapian::LatLongCoord *result = 0 ;
30764 
30765   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::new_LatLongCoord latitude_ longitude_ ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
30766   ecode1 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
30767   if (!SWIG_IsOK(ecode1)) {
30768     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongCoord" "', argument " "1"" of type '" "double""'");
30769   }
30770   arg1 = static_cast< double >(val1);
30771   ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
30772   if (!SWIG_IsOK(ecode2)) {
30773     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_LatLongCoord" "', argument " "2"" of type '" "double""'");
30774   }
30775   arg2 = static_cast< double >(val2);
30776   {
30777     try {
30778       result = (Xapian::LatLongCoord *)new Xapian::LatLongCoord(arg1,arg2);
30779     } catch (const Xapian::Error &e) {
30780       return XapianTclHandleError(interp, e);
30781     } catch (...) {
30782       return XapianTclHandleError(interp);
30783     }
30784   }
30785   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongCoord,0));
30786   return TCL_OK;
30787 fail:
30788   return TCL_ERROR;
30789 }
30790 
30791 
30792 SWIGINTERN int
_wrap_new_LatLongCoord(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])30793 _wrap_new_LatLongCoord(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
30794   Tcl_Obj *CONST *argv = objv+1;
30795   int argc = objc-1;
30796   if (argc == 0) {
30797     return _wrap_new_LatLongCoord__SWIG_0(clientData, interp, objc, argv - 1);
30798   }
30799   if (argc == 2) {
30800     int _v;
30801     {
30802       int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
30803       _v = SWIG_CheckState(res);
30804     }
30805     if (_v) {
30806       {
30807         int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
30808         _v = SWIG_CheckState(res);
30809       }
30810       if (_v) {
30811         return _wrap_new_LatLongCoord__SWIG_1(clientData, interp, objc, argv - 1);
30812       }
30813     }
30814   }
30815 
30816   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_LatLongCoord'.\n"
30817     "  Possible C/C++ prototypes are:\n"
30818     "    Xapian::LatLongCoord::LatLongCoord()\n"
30819     "    Xapian::LatLongCoord::LatLongCoord(double,double)\n", TCL_STATIC);
30820   return TCL_ERROR;
30821 }
30822 
30823 
30824 SWIGINTERN int
_wrap_LatLongCoord_unserialise(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])30825 _wrap_LatLongCoord_unserialise(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
30826   Xapian::LatLongCoord *arg1 = (Xapian::LatLongCoord *) 0 ;
30827   std::string *arg2 = 0 ;
30828   void *argp1 = 0 ;
30829   int res1 = 0 ;
30830   int res2 = SWIG_OLDOBJ ;
30831 
30832   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::LatLongCoord_unserialise self serialised ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
30833   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__LatLongCoord, 0 |  0 );
30834   if (!SWIG_IsOK(res1)) {
30835     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoord_unserialise" "', argument " "1"" of type '" "Xapian::LatLongCoord *""'");
30836   }
30837   arg1 = reinterpret_cast< Xapian::LatLongCoord * >(argp1);
30838   {
30839     std::string *ptr = (std::string *)0;
30840     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
30841     if (!SWIG_IsOK(res2)) {
30842       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LatLongCoord_unserialise" "', argument " "2"" of type '" "std::string const &""'");
30843     }
30844     if (!ptr) {
30845       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LatLongCoord_unserialise" "', argument " "2"" of type '" "std::string const &""'");
30846     }
30847     arg2 = ptr;
30848   }
30849   {
30850     try {
30851       (arg1)->unserialise((std::string const &)*arg2);
30852     } catch (const Xapian::Error &e) {
30853       return XapianTclHandleError(interp, e);
30854     } catch (...) {
30855       return XapianTclHandleError(interp);
30856     }
30857   }
30858 
30859   if (SWIG_IsNewObj(res2)) delete arg2;
30860   return TCL_OK;
30861 fail:
30862   if (SWIG_IsNewObj(res2)) delete arg2;
30863   return TCL_ERROR;
30864 }
30865 
30866 
30867 SWIGINTERN int
_wrap_LatLongCoord_serialise(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])30868 _wrap_LatLongCoord_serialise(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
30869   Xapian::LatLongCoord *arg1 = (Xapian::LatLongCoord *) 0 ;
30870   void *argp1 = 0 ;
30871   int res1 = 0 ;
30872   std::string result;
30873 
30874   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::LatLongCoord_serialise self ",(void *)0) == TCL_ERROR) SWIG_fail;
30875   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__LatLongCoord, 0 |  0 );
30876   if (!SWIG_IsOK(res1)) {
30877     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoord_serialise" "', argument " "1"" of type '" "Xapian::LatLongCoord const *""'");
30878   }
30879   arg1 = reinterpret_cast< Xapian::LatLongCoord * >(argp1);
30880   {
30881     try {
30882       result = ((Xapian::LatLongCoord const *)arg1)->serialise();
30883     } catch (const Xapian::Error &e) {
30884       return XapianTclHandleError(interp, e);
30885     } catch (...) {
30886       return XapianTclHandleError(interp);
30887     }
30888   }
30889   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
30890   return TCL_OK;
30891 fail:
30892   return TCL_ERROR;
30893 }
30894 
30895 
30896 SWIGINTERN int
_wrap_LatLongCoord_get_description(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])30897 _wrap_LatLongCoord_get_description(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
30898   Xapian::LatLongCoord *arg1 = (Xapian::LatLongCoord *) 0 ;
30899   void *argp1 = 0 ;
30900   int res1 = 0 ;
30901   std::string result;
30902 
30903   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::LatLongCoord_get_description self ",(void *)0) == TCL_ERROR) SWIG_fail;
30904   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__LatLongCoord, 0 |  0 );
30905   if (!SWIG_IsOK(res1)) {
30906     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoord_get_description" "', argument " "1"" of type '" "Xapian::LatLongCoord const *""'");
30907   }
30908   arg1 = reinterpret_cast< Xapian::LatLongCoord * >(argp1);
30909   {
30910     try {
30911       result = ((Xapian::LatLongCoord const *)arg1)->get_description();
30912     } catch (const Xapian::Error &e) {
30913       return XapianTclHandleError(interp, e);
30914     } catch (...) {
30915       return XapianTclHandleError(interp);
30916     }
30917   }
30918   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
30919   return TCL_OK;
30920 fail:
30921   return TCL_ERROR;
30922 }
30923 
30924 
30925 SWIGINTERN int
_wrap_delete_LatLongCoord(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])30926 _wrap_delete_LatLongCoord(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
30927   Xapian::LatLongCoord *arg1 = (Xapian::LatLongCoord *) 0 ;
30928   void *argp1 = 0 ;
30929   int res1 = 0 ;
30930 
30931   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_LatLongCoord self ",(void *)0) == TCL_ERROR) SWIG_fail;
30932   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__LatLongCoord, SWIG_POINTER_DISOWN |  0 );
30933   if (!SWIG_IsOK(res1)) {
30934     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LatLongCoord" "', argument " "1"" of type '" "Xapian::LatLongCoord *""'");
30935   }
30936   arg1 = reinterpret_cast< Xapian::LatLongCoord * >(argp1);
30937   {
30938     try {
30939       delete arg1;
30940     } catch (const Xapian::Error &e) {
30941       return XapianTclHandleError(interp, e);
30942     } catch (...) {
30943       return XapianTclHandleError(interp);
30944     }
30945   }
30946 
30947   return TCL_OK;
30948 fail:
30949   return TCL_ERROR;
30950 }
30951 
30952 
swig_delete_LatLongCoord(void * obj)30953 SWIGINTERN void swig_delete_LatLongCoord(void *obj) {
30954 Xapian::LatLongCoord *arg1 = (Xapian::LatLongCoord *) obj;
30955 delete arg1;
30956 }
30957 static swig_method swig_Xapian_LatLongCoord_methods[] = {
30958     {"unserialise", _wrap_LatLongCoord_unserialise},
30959     {"serialise", _wrap_LatLongCoord_serialise},
30960     {"get_description", _wrap_LatLongCoord_get_description},
30961     {0,0}
30962 };
30963 static swig_attribute swig_Xapian_LatLongCoord_attributes[] = {
30964     { "-latitude",_wrap_LatLongCoord_latitude_get, _wrap_LatLongCoord_latitude_set},
30965     { "-longitude",_wrap_LatLongCoord_longitude_get, _wrap_LatLongCoord_longitude_set},
30966     {0,0,0}
30967 };
30968 static swig_class *swig_Xapian_LatLongCoord_bases[] = {0};
30969 static const char * swig_Xapian_LatLongCoord_base_names[] = {0};
30970 static swig_class _wrap_class_Xapian_LatLongCoord = { "LatLongCoord", &SWIGTYPE_p_Xapian__LatLongCoord,_wrap_new_LatLongCoord, swig_delete_LatLongCoord, swig_Xapian_LatLongCoord_methods, swig_Xapian_LatLongCoord_attributes, swig_Xapian_LatLongCoord_bases,swig_Xapian_LatLongCoord_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
30971 SWIGINTERN int
_wrap_new_LatLongCoordsIterator(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])30972 _wrap_new_LatLongCoordsIterator(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
30973   Xapian::LatLongCoordsIterator *result = 0 ;
30974 
30975   if (SWIG_GetArgs(interp, objc, objv,":xapian::new_LatLongCoordsIterator ") == TCL_ERROR) SWIG_fail;
30976   {
30977     try {
30978       result = (Xapian::LatLongCoordsIterator *)new Xapian::LatLongCoordsIterator();
30979     } catch (const Xapian::Error &e) {
30980       return XapianTclHandleError(interp, e);
30981     } catch (...) {
30982       return XapianTclHandleError(interp);
30983     }
30984   }
30985   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongCoordsIterator,0));
30986   return TCL_OK;
30987 fail:
30988   return TCL_ERROR;
30989 }
30990 
30991 
30992 SWIGINTERN int
_wrap_LatLongCoordsIterator_equals(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])30993 _wrap_LatLongCoordsIterator_equals(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
30994   Xapian::LatLongCoordsIterator *arg1 = (Xapian::LatLongCoordsIterator *) 0 ;
30995   Xapian::LatLongCoordsIterator *arg2 = 0 ;
30996   void *argp1 = 0 ;
30997   int res1 = 0 ;
30998   void *argp2 ;
30999   int res2 = 0 ;
31000   bool result;
31001 
31002   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::LatLongCoordsIterator_equals self o ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
31003   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__LatLongCoordsIterator, 0 |  0 );
31004   if (!SWIG_IsOK(res1)) {
31005     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoordsIterator_equals" "', argument " "1"" of type '" "Xapian::LatLongCoordsIterator const *""'");
31006   }
31007   arg1 = reinterpret_cast< Xapian::LatLongCoordsIterator * >(argp1);
31008   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__LatLongCoordsIterator,  0 );
31009   if (!SWIG_IsOK(res2)) {
31010     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LatLongCoordsIterator_equals" "', argument " "2"" of type '" "Xapian::LatLongCoordsIterator const &""'");
31011   }
31012   if (!argp2) {
31013     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LatLongCoordsIterator_equals" "', argument " "2"" of type '" "Xapian::LatLongCoordsIterator const &""'");
31014   }
31015   arg2 = reinterpret_cast< Xapian::LatLongCoordsIterator * >(argp2);
31016   {
31017     try {
31018       result = (bool)Xapian_LatLongCoordsIterator_equals((Xapian::LatLongCoordsIterator const *)arg1,(Xapian::LatLongCoordsIterator const &)*arg2);
31019     } catch (const Xapian::Error &e) {
31020       return XapianTclHandleError(interp, e);
31021     } catch (...) {
31022       return XapianTclHandleError(interp);
31023     }
31024   }
31025   Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
31026   return TCL_OK;
31027 fail:
31028   return TCL_ERROR;
31029 }
31030 
31031 
31032 SWIGINTERN int
_wrap_LatLongCoordsIterator_get_coord(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])31033 _wrap_LatLongCoordsIterator_get_coord(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
31034   Xapian::LatLongCoordsIterator *arg1 = (Xapian::LatLongCoordsIterator *) 0 ;
31035   void *argp1 = 0 ;
31036   int res1 = 0 ;
31037   Xapian::LatLongCoord result;
31038 
31039   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::LatLongCoordsIterator_get_coord self ",(void *)0) == TCL_ERROR) SWIG_fail;
31040   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__LatLongCoordsIterator, 0 |  0 );
31041   if (!SWIG_IsOK(res1)) {
31042     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoordsIterator_get_coord" "', argument " "1"" of type '" "Xapian::LatLongCoordsIterator const *""'");
31043   }
31044   arg1 = reinterpret_cast< Xapian::LatLongCoordsIterator * >(argp1);
31045   {
31046     try {
31047       result = Xapian_LatLongCoordsIterator_get_coord((Xapian::LatLongCoordsIterator const *)arg1);
31048     } catch (const Xapian::Error &e) {
31049       return XapianTclHandleError(interp, e);
31050     } catch (...) {
31051       return XapianTclHandleError(interp);
31052     }
31053   }
31054   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::LatLongCoord(static_cast< const Xapian::LatLongCoord& >(result))), SWIGTYPE_p_Xapian__LatLongCoord, SWIG_POINTER_OWN | 0 ));
31055   return TCL_OK;
31056 fail:
31057   return TCL_ERROR;
31058 }
31059 
31060 
31061 SWIGINTERN int
_wrap_LatLongCoordsIterator_next(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])31062 _wrap_LatLongCoordsIterator_next(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
31063   Xapian::LatLongCoordsIterator *arg1 = (Xapian::LatLongCoordsIterator *) 0 ;
31064   void *argp1 = 0 ;
31065   int res1 = 0 ;
31066 
31067   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::LatLongCoordsIterator_next self ",(void *)0) == TCL_ERROR) SWIG_fail;
31068   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__LatLongCoordsIterator, 0 |  0 );
31069   if (!SWIG_IsOK(res1)) {
31070     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoordsIterator_next" "', argument " "1"" of type '" "Xapian::LatLongCoordsIterator *""'");
31071   }
31072   arg1 = reinterpret_cast< Xapian::LatLongCoordsIterator * >(argp1);
31073   {
31074     try {
31075       Xapian_LatLongCoordsIterator_next(arg1);
31076     } catch (const Xapian::Error &e) {
31077       return XapianTclHandleError(interp, e);
31078     } catch (...) {
31079       return XapianTclHandleError(interp);
31080     }
31081   }
31082 
31083   return TCL_OK;
31084 fail:
31085   return TCL_ERROR;
31086 }
31087 
31088 
31089 SWIGINTERN int
_wrap_delete_LatLongCoordsIterator(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])31090 _wrap_delete_LatLongCoordsIterator(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
31091   Xapian::LatLongCoordsIterator *arg1 = (Xapian::LatLongCoordsIterator *) 0 ;
31092   void *argp1 = 0 ;
31093   int res1 = 0 ;
31094 
31095   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_LatLongCoordsIterator self ",(void *)0) == TCL_ERROR) SWIG_fail;
31096   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__LatLongCoordsIterator, SWIG_POINTER_DISOWN |  0 );
31097   if (!SWIG_IsOK(res1)) {
31098     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LatLongCoordsIterator" "', argument " "1"" of type '" "Xapian::LatLongCoordsIterator *""'");
31099   }
31100   arg1 = reinterpret_cast< Xapian::LatLongCoordsIterator * >(argp1);
31101   {
31102     try {
31103       delete arg1;
31104     } catch (const Xapian::Error &e) {
31105       return XapianTclHandleError(interp, e);
31106     } catch (...) {
31107       return XapianTclHandleError(interp);
31108     }
31109   }
31110 
31111   return TCL_OK;
31112 fail:
31113   return TCL_ERROR;
31114 }
31115 
31116 
swig_delete_LatLongCoordsIterator(void * obj)31117 SWIGINTERN void swig_delete_LatLongCoordsIterator(void *obj) {
31118 Xapian::LatLongCoordsIterator *arg1 = (Xapian::LatLongCoordsIterator *) obj;
31119 delete arg1;
31120 }
31121 static swig_method swig_Xapian_LatLongCoordsIterator_methods[] = {
31122     {"equals", _wrap_LatLongCoordsIterator_equals},
31123     {"get_coord", _wrap_LatLongCoordsIterator_get_coord},
31124     {"next", _wrap_LatLongCoordsIterator_next},
31125     {0,0}
31126 };
31127 static swig_attribute swig_Xapian_LatLongCoordsIterator_attributes[] = {
31128     {0,0,0}
31129 };
31130 static swig_class *swig_Xapian_LatLongCoordsIterator_bases[] = {0};
31131 static const char * swig_Xapian_LatLongCoordsIterator_base_names[] = {0};
31132 static swig_class _wrap_class_Xapian_LatLongCoordsIterator = { "LatLongCoordsIterator", &SWIGTYPE_p_Xapian__LatLongCoordsIterator,_wrap_new_LatLongCoordsIterator, swig_delete_LatLongCoordsIterator, swig_Xapian_LatLongCoordsIterator_methods, swig_Xapian_LatLongCoordsIterator_attributes, swig_Xapian_LatLongCoordsIterator_bases,swig_Xapian_LatLongCoordsIterator_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
31133 SWIGINTERN int
_wrap_LatLongCoords_begin(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])31134 _wrap_LatLongCoords_begin(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
31135   Xapian::LatLongCoords *arg1 = (Xapian::LatLongCoords *) 0 ;
31136   void *argp1 = 0 ;
31137   int res1 = 0 ;
31138   Xapian::LatLongCoordsIterator result;
31139 
31140   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::LatLongCoords_begin self ",(void *)0) == TCL_ERROR) SWIG_fail;
31141   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__LatLongCoords, 0 |  0 );
31142   if (!SWIG_IsOK(res1)) {
31143     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoords_begin" "', argument " "1"" of type '" "Xapian::LatLongCoords const *""'");
31144   }
31145   arg1 = reinterpret_cast< Xapian::LatLongCoords * >(argp1);
31146   {
31147     try {
31148       result = ((Xapian::LatLongCoords const *)arg1)->begin();
31149     } catch (const Xapian::Error &e) {
31150       return XapianTclHandleError(interp, e);
31151     } catch (...) {
31152       return XapianTclHandleError(interp);
31153     }
31154   }
31155   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::LatLongCoordsIterator(static_cast< const Xapian::LatLongCoordsIterator& >(result))), SWIGTYPE_p_Xapian__LatLongCoordsIterator, SWIG_POINTER_OWN | 0 ));
31156   return TCL_OK;
31157 fail:
31158   return TCL_ERROR;
31159 }
31160 
31161 
31162 SWIGINTERN int
_wrap_LatLongCoords_end(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])31163 _wrap_LatLongCoords_end(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
31164   Xapian::LatLongCoords *arg1 = (Xapian::LatLongCoords *) 0 ;
31165   void *argp1 = 0 ;
31166   int res1 = 0 ;
31167   Xapian::LatLongCoordsIterator result;
31168 
31169   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::LatLongCoords_end self ",(void *)0) == TCL_ERROR) SWIG_fail;
31170   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__LatLongCoords, 0 |  0 );
31171   if (!SWIG_IsOK(res1)) {
31172     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoords_end" "', argument " "1"" of type '" "Xapian::LatLongCoords const *""'");
31173   }
31174   arg1 = reinterpret_cast< Xapian::LatLongCoords * >(argp1);
31175   {
31176     try {
31177       result = ((Xapian::LatLongCoords const *)arg1)->end();
31178     } catch (const Xapian::Error &e) {
31179       return XapianTclHandleError(interp, e);
31180     } catch (...) {
31181       return XapianTclHandleError(interp);
31182     }
31183   }
31184   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::LatLongCoordsIterator(static_cast< const Xapian::LatLongCoordsIterator& >(result))), SWIGTYPE_p_Xapian__LatLongCoordsIterator, SWIG_POINTER_OWN | 0 ));
31185   return TCL_OK;
31186 fail:
31187   return TCL_ERROR;
31188 }
31189 
31190 
31191 SWIGINTERN int
_wrap_LatLongCoords_size(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])31192 _wrap_LatLongCoords_size(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
31193   Xapian::LatLongCoords *arg1 = (Xapian::LatLongCoords *) 0 ;
31194   void *argp1 = 0 ;
31195   int res1 = 0 ;
31196   size_t result;
31197 
31198   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::LatLongCoords_size self ",(void *)0) == TCL_ERROR) SWIG_fail;
31199   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__LatLongCoords, 0 |  0 );
31200   if (!SWIG_IsOK(res1)) {
31201     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoords_size" "', argument " "1"" of type '" "Xapian::LatLongCoords const *""'");
31202   }
31203   arg1 = reinterpret_cast< Xapian::LatLongCoords * >(argp1);
31204   {
31205     try {
31206       result = ((Xapian::LatLongCoords const *)arg1)->size();
31207     } catch (const Xapian::Error &e) {
31208       return XapianTclHandleError(interp, e);
31209     } catch (...) {
31210       return XapianTclHandleError(interp);
31211     }
31212   }
31213   Tcl_SetObjResult(interp,SWIG_From_size_t(static_cast< size_t >(result)));
31214   return TCL_OK;
31215 fail:
31216   return TCL_ERROR;
31217 }
31218 
31219 
31220 SWIGINTERN int
_wrap_LatLongCoords_empty(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])31221 _wrap_LatLongCoords_empty(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
31222   Xapian::LatLongCoords *arg1 = (Xapian::LatLongCoords *) 0 ;
31223   void *argp1 = 0 ;
31224   int res1 = 0 ;
31225   bool result;
31226 
31227   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::LatLongCoords_empty self ",(void *)0) == TCL_ERROR) SWIG_fail;
31228   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__LatLongCoords, 0 |  0 );
31229   if (!SWIG_IsOK(res1)) {
31230     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoords_empty" "', argument " "1"" of type '" "Xapian::LatLongCoords const *""'");
31231   }
31232   arg1 = reinterpret_cast< Xapian::LatLongCoords * >(argp1);
31233   {
31234     try {
31235       result = (bool)((Xapian::LatLongCoords const *)arg1)->empty();
31236     } catch (const Xapian::Error &e) {
31237       return XapianTclHandleError(interp, e);
31238     } catch (...) {
31239       return XapianTclHandleError(interp);
31240     }
31241   }
31242   Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
31243   return TCL_OK;
31244 fail:
31245   return TCL_ERROR;
31246 }
31247 
31248 
31249 SWIGINTERN int
_wrap_LatLongCoords_append(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])31250 _wrap_LatLongCoords_append(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
31251   Xapian::LatLongCoords *arg1 = (Xapian::LatLongCoords *) 0 ;
31252   Xapian::LatLongCoord *arg2 = 0 ;
31253   void *argp1 = 0 ;
31254   int res1 = 0 ;
31255   void *argp2 ;
31256   int res2 = 0 ;
31257 
31258   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::LatLongCoords_append self coord ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
31259   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__LatLongCoords, 0 |  0 );
31260   if (!SWIG_IsOK(res1)) {
31261     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoords_append" "', argument " "1"" of type '" "Xapian::LatLongCoords *""'");
31262   }
31263   arg1 = reinterpret_cast< Xapian::LatLongCoords * >(argp1);
31264   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__LatLongCoord,  0 );
31265   if (!SWIG_IsOK(res2)) {
31266     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LatLongCoords_append" "', argument " "2"" of type '" "Xapian::LatLongCoord const &""'");
31267   }
31268   if (!argp2) {
31269     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LatLongCoords_append" "', argument " "2"" of type '" "Xapian::LatLongCoord const &""'");
31270   }
31271   arg2 = reinterpret_cast< Xapian::LatLongCoord * >(argp2);
31272   {
31273     try {
31274       (arg1)->append((Xapian::LatLongCoord const &)*arg2);
31275     } catch (const Xapian::Error &e) {
31276       return XapianTclHandleError(interp, e);
31277     } catch (...) {
31278       return XapianTclHandleError(interp);
31279     }
31280   }
31281 
31282   return TCL_OK;
31283 fail:
31284   return TCL_ERROR;
31285 }
31286 
31287 
31288 SWIGINTERN int
_wrap_new_LatLongCoords__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])31289 _wrap_new_LatLongCoords__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
31290   Xapian::LatLongCoords *result = 0 ;
31291 
31292   if (SWIG_GetArgs(interp, objc, objv,":xapian::new_LatLongCoords ") == TCL_ERROR) SWIG_fail;
31293   {
31294     try {
31295       result = (Xapian::LatLongCoords *)new Xapian::LatLongCoords();
31296     } catch (const Xapian::Error &e) {
31297       return XapianTclHandleError(interp, e);
31298     } catch (...) {
31299       return XapianTclHandleError(interp);
31300     }
31301   }
31302   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongCoords,0));
31303   return TCL_OK;
31304 fail:
31305   return TCL_ERROR;
31306 }
31307 
31308 
31309 SWIGINTERN int
_wrap_new_LatLongCoords__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])31310 _wrap_new_LatLongCoords__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
31311   Xapian::LatLongCoord *arg1 = 0 ;
31312   void *argp1 ;
31313   int res1 = 0 ;
31314   Xapian::LatLongCoords *result = 0 ;
31315 
31316   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_LatLongCoords coord ",(void *)0) == TCL_ERROR) SWIG_fail;
31317   res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_Xapian__LatLongCoord,  0 );
31318   if (!SWIG_IsOK(res1)) {
31319     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_LatLongCoords" "', argument " "1"" of type '" "Xapian::LatLongCoord const &""'");
31320   }
31321   if (!argp1) {
31322     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongCoords" "', argument " "1"" of type '" "Xapian::LatLongCoord const &""'");
31323   }
31324   arg1 = reinterpret_cast< Xapian::LatLongCoord * >(argp1);
31325   {
31326     try {
31327       result = (Xapian::LatLongCoords *)new Xapian::LatLongCoords((Xapian::LatLongCoord const &)*arg1);
31328     } catch (const Xapian::Error &e) {
31329       return XapianTclHandleError(interp, e);
31330     } catch (...) {
31331       return XapianTclHandleError(interp);
31332     }
31333   }
31334   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongCoords,0));
31335   return TCL_OK;
31336 fail:
31337   return TCL_ERROR;
31338 }
31339 
31340 
31341 SWIGINTERN int
_wrap_new_LatLongCoords(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])31342 _wrap_new_LatLongCoords(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
31343   Tcl_Obj *CONST *argv = objv+1;
31344   int argc = objc-1;
31345   if (argc == 0) {
31346     return _wrap_new_LatLongCoords__SWIG_0(clientData, interp, objc, argv - 1);
31347   }
31348   if (argc == 1) {
31349     int _v;
31350     void *vptr = 0;
31351     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__LatLongCoord, 0);
31352     _v = SWIG_CheckState(res);
31353     if (_v) {
31354       return _wrap_new_LatLongCoords__SWIG_1(clientData, interp, objc, argv - 1);
31355     }
31356   }
31357 
31358   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_LatLongCoords'.\n"
31359     "  Possible C/C++ prototypes are:\n"
31360     "    Xapian::LatLongCoords::LatLongCoords()\n"
31361     "    Xapian::LatLongCoords::LatLongCoords(Xapian::LatLongCoord const &)\n", TCL_STATIC);
31362   return TCL_ERROR;
31363 }
31364 
31365 
31366 SWIGINTERN int
_wrap_LatLongCoords_unserialise(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])31367 _wrap_LatLongCoords_unserialise(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
31368   Xapian::LatLongCoords *arg1 = (Xapian::LatLongCoords *) 0 ;
31369   std::string *arg2 = 0 ;
31370   void *argp1 = 0 ;
31371   int res1 = 0 ;
31372   int res2 = SWIG_OLDOBJ ;
31373 
31374   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::LatLongCoords_unserialise self serialised ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
31375   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__LatLongCoords, 0 |  0 );
31376   if (!SWIG_IsOK(res1)) {
31377     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoords_unserialise" "', argument " "1"" of type '" "Xapian::LatLongCoords *""'");
31378   }
31379   arg1 = reinterpret_cast< Xapian::LatLongCoords * >(argp1);
31380   {
31381     std::string *ptr = (std::string *)0;
31382     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
31383     if (!SWIG_IsOK(res2)) {
31384       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LatLongCoords_unserialise" "', argument " "2"" of type '" "std::string const &""'");
31385     }
31386     if (!ptr) {
31387       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LatLongCoords_unserialise" "', argument " "2"" of type '" "std::string const &""'");
31388     }
31389     arg2 = ptr;
31390   }
31391   {
31392     try {
31393       (arg1)->unserialise((std::string const &)*arg2);
31394     } catch (const Xapian::Error &e) {
31395       return XapianTclHandleError(interp, e);
31396     } catch (...) {
31397       return XapianTclHandleError(interp);
31398     }
31399   }
31400 
31401   if (SWIG_IsNewObj(res2)) delete arg2;
31402   return TCL_OK;
31403 fail:
31404   if (SWIG_IsNewObj(res2)) delete arg2;
31405   return TCL_ERROR;
31406 }
31407 
31408 
31409 SWIGINTERN int
_wrap_LatLongCoords_serialise(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])31410 _wrap_LatLongCoords_serialise(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
31411   Xapian::LatLongCoords *arg1 = (Xapian::LatLongCoords *) 0 ;
31412   void *argp1 = 0 ;
31413   int res1 = 0 ;
31414   std::string result;
31415 
31416   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::LatLongCoords_serialise self ",(void *)0) == TCL_ERROR) SWIG_fail;
31417   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__LatLongCoords, 0 |  0 );
31418   if (!SWIG_IsOK(res1)) {
31419     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoords_serialise" "', argument " "1"" of type '" "Xapian::LatLongCoords const *""'");
31420   }
31421   arg1 = reinterpret_cast< Xapian::LatLongCoords * >(argp1);
31422   {
31423     try {
31424       result = ((Xapian::LatLongCoords const *)arg1)->serialise();
31425     } catch (const Xapian::Error &e) {
31426       return XapianTclHandleError(interp, e);
31427     } catch (...) {
31428       return XapianTclHandleError(interp);
31429     }
31430   }
31431   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
31432   return TCL_OK;
31433 fail:
31434   return TCL_ERROR;
31435 }
31436 
31437 
31438 SWIGINTERN int
_wrap_LatLongCoords_get_description(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])31439 _wrap_LatLongCoords_get_description(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
31440   Xapian::LatLongCoords *arg1 = (Xapian::LatLongCoords *) 0 ;
31441   void *argp1 = 0 ;
31442   int res1 = 0 ;
31443   std::string result;
31444 
31445   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::LatLongCoords_get_description self ",(void *)0) == TCL_ERROR) SWIG_fail;
31446   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__LatLongCoords, 0 |  0 );
31447   if (!SWIG_IsOK(res1)) {
31448     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoords_get_description" "', argument " "1"" of type '" "Xapian::LatLongCoords const *""'");
31449   }
31450   arg1 = reinterpret_cast< Xapian::LatLongCoords * >(argp1);
31451   {
31452     try {
31453       result = ((Xapian::LatLongCoords const *)arg1)->get_description();
31454     } catch (const Xapian::Error &e) {
31455       return XapianTclHandleError(interp, e);
31456     } catch (...) {
31457       return XapianTclHandleError(interp);
31458     }
31459   }
31460   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
31461   return TCL_OK;
31462 fail:
31463   return TCL_ERROR;
31464 }
31465 
31466 
31467 SWIGINTERN int
_wrap_delete_LatLongCoords(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])31468 _wrap_delete_LatLongCoords(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
31469   Xapian::LatLongCoords *arg1 = (Xapian::LatLongCoords *) 0 ;
31470   void *argp1 = 0 ;
31471   int res1 = 0 ;
31472 
31473   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_LatLongCoords self ",(void *)0) == TCL_ERROR) SWIG_fail;
31474   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__LatLongCoords, SWIG_POINTER_DISOWN |  0 );
31475   if (!SWIG_IsOK(res1)) {
31476     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LatLongCoords" "', argument " "1"" of type '" "Xapian::LatLongCoords *""'");
31477   }
31478   arg1 = reinterpret_cast< Xapian::LatLongCoords * >(argp1);
31479   {
31480     try {
31481       delete arg1;
31482     } catch (const Xapian::Error &e) {
31483       return XapianTclHandleError(interp, e);
31484     } catch (...) {
31485       return XapianTclHandleError(interp);
31486     }
31487   }
31488 
31489   return TCL_OK;
31490 fail:
31491   return TCL_ERROR;
31492 }
31493 
31494 
swig_delete_LatLongCoords(void * obj)31495 SWIGINTERN void swig_delete_LatLongCoords(void *obj) {
31496 Xapian::LatLongCoords *arg1 = (Xapian::LatLongCoords *) obj;
31497 delete arg1;
31498 }
31499 static swig_method swig_Xapian_LatLongCoords_methods[] = {
31500     {"begin", _wrap_LatLongCoords_begin},
31501     {"end", _wrap_LatLongCoords_end},
31502     {"size", _wrap_LatLongCoords_size},
31503     {"empty", _wrap_LatLongCoords_empty},
31504     {"append", _wrap_LatLongCoords_append},
31505     {"unserialise", _wrap_LatLongCoords_unserialise},
31506     {"serialise", _wrap_LatLongCoords_serialise},
31507     {"get_description", _wrap_LatLongCoords_get_description},
31508     {0,0}
31509 };
31510 static swig_attribute swig_Xapian_LatLongCoords_attributes[] = {
31511     {0,0,0}
31512 };
31513 static swig_class *swig_Xapian_LatLongCoords_bases[] = {0};
31514 static const char * swig_Xapian_LatLongCoords_base_names[] = {0};
31515 static swig_class _wrap_class_Xapian_LatLongCoords = { "LatLongCoords", &SWIGTYPE_p_Xapian__LatLongCoords,_wrap_new_LatLongCoords, swig_delete_LatLongCoords, swig_Xapian_LatLongCoords_methods, swig_Xapian_LatLongCoords_attributes, swig_Xapian_LatLongCoords_bases,swig_Xapian_LatLongCoords_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
31516 SWIGINTERN int
_wrap_delete_LatLongMetric(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])31517 _wrap_delete_LatLongMetric(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
31518   Xapian::LatLongMetric *arg1 = (Xapian::LatLongMetric *) 0 ;
31519   void *argp1 = 0 ;
31520   int res1 = 0 ;
31521 
31522   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_LatLongMetric self ",(void *)0) == TCL_ERROR) SWIG_fail;
31523   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__LatLongMetric, SWIG_POINTER_DISOWN |  0 );
31524   if (!SWIG_IsOK(res1)) {
31525     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LatLongMetric" "', argument " "1"" of type '" "Xapian::LatLongMetric *""'");
31526   }
31527   arg1 = reinterpret_cast< Xapian::LatLongMetric * >(argp1);
31528   {
31529     try {
31530       delete arg1;
31531     } catch (const Xapian::Error &e) {
31532       return XapianTclHandleError(interp, e);
31533     } catch (...) {
31534       return XapianTclHandleError(interp);
31535     }
31536   }
31537 
31538   return TCL_OK;
31539 fail:
31540   return TCL_ERROR;
31541 }
31542 
31543 
31544 SWIGINTERN int
_wrap_LatLongMetric_pointwise_distance(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])31545 _wrap_LatLongMetric_pointwise_distance(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
31546   Xapian::LatLongMetric *arg1 = (Xapian::LatLongMetric *) 0 ;
31547   Xapian::LatLongCoord *arg2 = 0 ;
31548   Xapian::LatLongCoord *arg3 = 0 ;
31549   void *argp1 = 0 ;
31550   int res1 = 0 ;
31551   void *argp2 ;
31552   int res2 = 0 ;
31553   void *argp3 ;
31554   int res3 = 0 ;
31555   double result;
31556 
31557   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::LatLongMetric_pointwise_distance self a b ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
31558   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__LatLongMetric, 0 |  0 );
31559   if (!SWIG_IsOK(res1)) {
31560     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongMetric_pointwise_distance" "', argument " "1"" of type '" "Xapian::LatLongMetric const *""'");
31561   }
31562   arg1 = reinterpret_cast< Xapian::LatLongMetric * >(argp1);
31563   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__LatLongCoord,  0 );
31564   if (!SWIG_IsOK(res2)) {
31565     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LatLongMetric_pointwise_distance" "', argument " "2"" of type '" "Xapian::LatLongCoord const &""'");
31566   }
31567   if (!argp2) {
31568     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LatLongMetric_pointwise_distance" "', argument " "2"" of type '" "Xapian::LatLongCoord const &""'");
31569   }
31570   arg2 = reinterpret_cast< Xapian::LatLongCoord * >(argp2);
31571   res3 = SWIG_ConvertPtr(objv[3], &argp3, SWIGTYPE_p_Xapian__LatLongCoord,  0 );
31572   if (!SWIG_IsOK(res3)) {
31573     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "LatLongMetric_pointwise_distance" "', argument " "3"" of type '" "Xapian::LatLongCoord const &""'");
31574   }
31575   if (!argp3) {
31576     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LatLongMetric_pointwise_distance" "', argument " "3"" of type '" "Xapian::LatLongCoord const &""'");
31577   }
31578   arg3 = reinterpret_cast< Xapian::LatLongCoord * >(argp3);
31579   {
31580     try {
31581       result = (double)((Xapian::LatLongMetric const *)arg1)->pointwise_distance((Xapian::LatLongCoord const &)*arg2,(Xapian::LatLongCoord const &)*arg3);
31582     } catch (const Xapian::Error &e) {
31583       return XapianTclHandleError(interp, e);
31584     } catch (...) {
31585       return XapianTclHandleError(interp);
31586     }
31587   }
31588   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
31589   return TCL_OK;
31590 fail:
31591   return TCL_ERROR;
31592 }
31593 
31594 
31595 SWIGINTERN int
_wrap_LatLongMetric_apply__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])31596 _wrap_LatLongMetric_apply__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
31597   Xapian::LatLongMetric *arg1 = (Xapian::LatLongMetric *) 0 ;
31598   Xapian::LatLongCoords *arg2 = 0 ;
31599   Xapian::LatLongCoords *arg3 = 0 ;
31600   void *argp1 = 0 ;
31601   int res1 = 0 ;
31602   void *argp2 ;
31603   int res2 = 0 ;
31604   void *argp3 ;
31605   int res3 = 0 ;
31606   double result;
31607 
31608   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::LatLongMetric_apply self a b ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
31609   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__LatLongMetric, 0 |  0 );
31610   if (!SWIG_IsOK(res1)) {
31611     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongMetric_apply" "', argument " "1"" of type '" "Xapian::LatLongMetric const *""'");
31612   }
31613   arg1 = reinterpret_cast< Xapian::LatLongMetric * >(argp1);
31614   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__LatLongCoords,  0 );
31615   if (!SWIG_IsOK(res2)) {
31616     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LatLongMetric_apply" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
31617   }
31618   if (!argp2) {
31619     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LatLongMetric_apply" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
31620   }
31621   arg2 = reinterpret_cast< Xapian::LatLongCoords * >(argp2);
31622   res3 = SWIG_ConvertPtr(objv[3], &argp3, SWIGTYPE_p_Xapian__LatLongCoords,  0 );
31623   if (!SWIG_IsOK(res3)) {
31624     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "LatLongMetric_apply" "', argument " "3"" of type '" "Xapian::LatLongCoords const &""'");
31625   }
31626   if (!argp3) {
31627     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LatLongMetric_apply" "', argument " "3"" of type '" "Xapian::LatLongCoords const &""'");
31628   }
31629   arg3 = reinterpret_cast< Xapian::LatLongCoords * >(argp3);
31630   {
31631     try {
31632       result = (double)((Xapian::LatLongMetric const *)arg1)->operator ()((Xapian::LatLongCoords const &)*arg2,(Xapian::LatLongCoords const &)*arg3);
31633     } catch (const Xapian::Error &e) {
31634       return XapianTclHandleError(interp, e);
31635     } catch (...) {
31636       return XapianTclHandleError(interp);
31637     }
31638   }
31639   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
31640   return TCL_OK;
31641 fail:
31642   return TCL_ERROR;
31643 }
31644 
31645 
31646 SWIGINTERN int
_wrap_LatLongMetric_apply__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])31647 _wrap_LatLongMetric_apply__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
31648   Xapian::LatLongMetric *arg1 = (Xapian::LatLongMetric *) 0 ;
31649   Xapian::LatLongCoords *arg2 = 0 ;
31650   std::string *arg3 = 0 ;
31651   void *argp1 = 0 ;
31652   int res1 = 0 ;
31653   void *argp2 ;
31654   int res2 = 0 ;
31655   int res3 = SWIG_OLDOBJ ;
31656   double result;
31657 
31658   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::LatLongMetric_apply self a b ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
31659   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__LatLongMetric, 0 |  0 );
31660   if (!SWIG_IsOK(res1)) {
31661     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongMetric_apply" "', argument " "1"" of type '" "Xapian::LatLongMetric const *""'");
31662   }
31663   arg1 = reinterpret_cast< Xapian::LatLongMetric * >(argp1);
31664   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__LatLongCoords,  0 );
31665   if (!SWIG_IsOK(res2)) {
31666     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LatLongMetric_apply" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
31667   }
31668   if (!argp2) {
31669     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LatLongMetric_apply" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
31670   }
31671   arg2 = reinterpret_cast< Xapian::LatLongCoords * >(argp2);
31672   {
31673     std::string *ptr = (std::string *)0;
31674     res3 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[3], &ptr);
31675     if (!SWIG_IsOK(res3)) {
31676       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "LatLongMetric_apply" "', argument " "3"" of type '" "std::string const &""'");
31677     }
31678     if (!ptr) {
31679       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LatLongMetric_apply" "', argument " "3"" of type '" "std::string const &""'");
31680     }
31681     arg3 = ptr;
31682   }
31683   {
31684     try {
31685       result = (double)((Xapian::LatLongMetric const *)arg1)->operator ()((Xapian::LatLongCoords const &)*arg2,(std::string const &)*arg3);
31686     } catch (const Xapian::Error &e) {
31687       return XapianTclHandleError(interp, e);
31688     } catch (...) {
31689       return XapianTclHandleError(interp);
31690     }
31691   }
31692   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
31693   if (SWIG_IsNewObj(res3)) delete arg3;
31694   return TCL_OK;
31695 fail:
31696   if (SWIG_IsNewObj(res3)) delete arg3;
31697   return TCL_ERROR;
31698 }
31699 
31700 
31701 SWIGINTERN int
_wrap_LatLongMetric_apply__SWIG_2(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])31702 _wrap_LatLongMetric_apply__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
31703   Xapian::LatLongMetric *arg1 = (Xapian::LatLongMetric *) 0 ;
31704   Xapian::LatLongCoords *arg2 = 0 ;
31705   char *arg3 = (char *) 0 ;
31706   size_t arg4 ;
31707   void *argp1 = 0 ;
31708   int res1 = 0 ;
31709   void *argp2 ;
31710   int res2 = 0 ;
31711   int res3 ;
31712   char *buf3 = 0 ;
31713   int alloc3 = 0 ;
31714   size_t val4 ;
31715   int ecode4 = 0 ;
31716   double result;
31717 
31718   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::LatLongMetric_apply self a b_ptr b_len ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
31719   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__LatLongMetric, 0 |  0 );
31720   if (!SWIG_IsOK(res1)) {
31721     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongMetric_apply" "', argument " "1"" of type '" "Xapian::LatLongMetric const *""'");
31722   }
31723   arg1 = reinterpret_cast< Xapian::LatLongMetric * >(argp1);
31724   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__LatLongCoords,  0 );
31725   if (!SWIG_IsOK(res2)) {
31726     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LatLongMetric_apply" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
31727   }
31728   if (!argp2) {
31729     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LatLongMetric_apply" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
31730   }
31731   arg2 = reinterpret_cast< Xapian::LatLongCoords * >(argp2);
31732   res3 = SWIG_AsCharPtrAndSize(objv[3], &buf3, NULL, &alloc3);
31733   if (!SWIG_IsOK(res3)) {
31734     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "LatLongMetric_apply" "', argument " "3"" of type '" "char const *""'");
31735   }
31736   arg3 = reinterpret_cast< char * >(buf3);
31737   ecode4 = SWIG_AsVal_size_t SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
31738   if (!SWIG_IsOK(ecode4)) {
31739     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "LatLongMetric_apply" "', argument " "4"" of type '" "size_t""'");
31740   }
31741   arg4 = static_cast< size_t >(val4);
31742   {
31743     try {
31744       result = (double)((Xapian::LatLongMetric const *)arg1)->operator ()((Xapian::LatLongCoords const &)*arg2,(char const *)arg3,arg4);
31745     } catch (const Xapian::Error &e) {
31746       return XapianTclHandleError(interp, e);
31747     } catch (...) {
31748       return XapianTclHandleError(interp);
31749     }
31750   }
31751   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
31752   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
31753   return TCL_OK;
31754 fail:
31755   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
31756   return TCL_ERROR;
31757 }
31758 
31759 
31760 SWIGINTERN int
_wrap_LatLongMetric_apply(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])31761 _wrap_LatLongMetric_apply(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
31762   Tcl_Obj *CONST *argv = objv+1;
31763   int argc = objc-1;
31764   if (argc == 3) {
31765     int _v;
31766     void *vptr = 0;
31767     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__LatLongMetric, 0);
31768     _v = SWIG_CheckState(res);
31769     if (_v) {
31770       void *vptr = 0;
31771       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Xapian__LatLongCoords, 0);
31772       _v = SWIG_CheckState(res);
31773       if (_v) {
31774         void *vptr = 0;
31775         int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_Xapian__LatLongCoords, 0);
31776         _v = SWIG_CheckState(res);
31777         if (_v) {
31778           return _wrap_LatLongMetric_apply__SWIG_0(clientData, interp, objc, argv - 1);
31779         }
31780       }
31781     }
31782   }
31783   if (argc == 3) {
31784     int _v;
31785     void *vptr = 0;
31786     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__LatLongMetric, 0);
31787     _v = SWIG_CheckState(res);
31788     if (_v) {
31789       void *vptr = 0;
31790       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Xapian__LatLongCoords, 0);
31791       _v = SWIG_CheckState(res);
31792       if (_v) {
31793         int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[2], (std::string**)(0));
31794         _v = SWIG_CheckState(res);
31795         if (_v) {
31796           return _wrap_LatLongMetric_apply__SWIG_1(clientData, interp, objc, argv - 1);
31797         }
31798       }
31799     }
31800   }
31801   if (argc == 4) {
31802     int _v;
31803     void *vptr = 0;
31804     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__LatLongMetric, 0);
31805     _v = SWIG_CheckState(res);
31806     if (_v) {
31807       void *vptr = 0;
31808       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Xapian__LatLongCoords, 0);
31809       _v = SWIG_CheckState(res);
31810       if (_v) {
31811         int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
31812         _v = SWIG_CheckState(res);
31813         if (_v) {
31814           {
31815             int res = SWIG_AsVal_size_t SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
31816             _v = SWIG_CheckState(res);
31817           }
31818           if (_v) {
31819             return _wrap_LatLongMetric_apply__SWIG_2(clientData, interp, objc, argv - 1);
31820           }
31821         }
31822       }
31823     }
31824   }
31825 
31826   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'LatLongMetric_apply'.\n"
31827     "  Possible C/C++ prototypes are:\n"
31828     "    Xapian::LatLongMetric::operator ()(Xapian::LatLongCoords const &,Xapian::LatLongCoords const &) const\n"
31829     "    Xapian::LatLongMetric::operator ()(Xapian::LatLongCoords const &,std::string const &) const\n"
31830     "    Xapian::LatLongMetric::operator ()(Xapian::LatLongCoords const &,char const *,size_t) const\n", TCL_STATIC);
31831   return TCL_ERROR;
31832 }
31833 
31834 
31835 SWIGINTERN int
_wrap_LatLongMetric_name(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])31836 _wrap_LatLongMetric_name(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
31837   Xapian::LatLongMetric *arg1 = (Xapian::LatLongMetric *) 0 ;
31838   void *argp1 = 0 ;
31839   int res1 = 0 ;
31840   std::string result;
31841 
31842   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::LatLongMetric_name self ",(void *)0) == TCL_ERROR) SWIG_fail;
31843   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__LatLongMetric, 0 |  0 );
31844   if (!SWIG_IsOK(res1)) {
31845     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongMetric_name" "', argument " "1"" of type '" "Xapian::LatLongMetric const *""'");
31846   }
31847   arg1 = reinterpret_cast< Xapian::LatLongMetric * >(argp1);
31848   {
31849     try {
31850       result = ((Xapian::LatLongMetric const *)arg1)->name();
31851     } catch (const Xapian::Error &e) {
31852       return XapianTclHandleError(interp, e);
31853     } catch (...) {
31854       return XapianTclHandleError(interp);
31855     }
31856   }
31857   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
31858   return TCL_OK;
31859 fail:
31860   return TCL_ERROR;
31861 }
31862 
31863 
swig_delete_LatLongMetric(void * obj)31864 SWIGINTERN void swig_delete_LatLongMetric(void *obj) {
31865 Xapian::LatLongMetric *arg1 = (Xapian::LatLongMetric *) obj;
31866 delete arg1;
31867 }
31868 static swig_method swig_Xapian_LatLongMetric_methods[] = {
31869     {"pointwise_distance", _wrap_LatLongMetric_pointwise_distance},
31870     {"apply", _wrap_LatLongMetric_apply},
31871     {"name", _wrap_LatLongMetric_name},
31872     {0,0}
31873 };
31874 static swig_attribute swig_Xapian_LatLongMetric_attributes[] = {
31875     {0,0,0}
31876 };
31877 static swig_class *swig_Xapian_LatLongMetric_bases[] = {0};
31878 static const char * swig_Xapian_LatLongMetric_base_names[] = {0};
31879 static swig_class _wrap_class_Xapian_LatLongMetric = { "LatLongMetric", &SWIGTYPE_p_Xapian__LatLongMetric,0, swig_delete_LatLongMetric, swig_Xapian_LatLongMetric_methods, swig_Xapian_LatLongMetric_attributes, swig_Xapian_LatLongMetric_bases,swig_Xapian_LatLongMetric_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
31880 SWIGINTERN int
_wrap_new_GreatCircleMetric__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])31881 _wrap_new_GreatCircleMetric__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
31882   Xapian::GreatCircleMetric *result = 0 ;
31883 
31884   if (SWIG_GetArgs(interp, objc, objv,":xapian::new_GreatCircleMetric ") == TCL_ERROR) SWIG_fail;
31885   {
31886     try {
31887       result = (Xapian::GreatCircleMetric *)new Xapian::GreatCircleMetric();
31888     } catch (const Xapian::Error &e) {
31889       return XapianTclHandleError(interp, e);
31890     } catch (...) {
31891       return XapianTclHandleError(interp);
31892     }
31893   }
31894   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__GreatCircleMetric,0));
31895   return TCL_OK;
31896 fail:
31897   return TCL_ERROR;
31898 }
31899 
31900 
31901 SWIGINTERN int
_wrap_new_GreatCircleMetric__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])31902 _wrap_new_GreatCircleMetric__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
31903   double arg1 ;
31904   double val1 ;
31905   int ecode1 = 0 ;
31906   Xapian::GreatCircleMetric *result = 0 ;
31907 
31908   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_GreatCircleMetric radius_ ",(void *)0) == TCL_ERROR) SWIG_fail;
31909   ecode1 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
31910   if (!SWIG_IsOK(ecode1)) {
31911     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GreatCircleMetric" "', argument " "1"" of type '" "double""'");
31912   }
31913   arg1 = static_cast< double >(val1);
31914   {
31915     try {
31916       result = (Xapian::GreatCircleMetric *)new Xapian::GreatCircleMetric(arg1);
31917     } catch (const Xapian::Error &e) {
31918       return XapianTclHandleError(interp, e);
31919     } catch (...) {
31920       return XapianTclHandleError(interp);
31921     }
31922   }
31923   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__GreatCircleMetric,0));
31924   return TCL_OK;
31925 fail:
31926   return TCL_ERROR;
31927 }
31928 
31929 
31930 SWIGINTERN int
_wrap_new_GreatCircleMetric(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])31931 _wrap_new_GreatCircleMetric(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
31932   Tcl_Obj *CONST *argv = objv+1;
31933   int argc = objc-1;
31934   if (argc == 0) {
31935     return _wrap_new_GreatCircleMetric__SWIG_0(clientData, interp, objc, argv - 1);
31936   }
31937   if (argc == 1) {
31938     int _v;
31939     {
31940       int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
31941       _v = SWIG_CheckState(res);
31942     }
31943     if (_v) {
31944       return _wrap_new_GreatCircleMetric__SWIG_1(clientData, interp, objc, argv - 1);
31945     }
31946   }
31947 
31948   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_GreatCircleMetric'.\n"
31949     "  Possible C/C++ prototypes are:\n"
31950     "    Xapian::GreatCircleMetric::GreatCircleMetric()\n"
31951     "    Xapian::GreatCircleMetric::GreatCircleMetric(double)\n", TCL_STATIC);
31952   return TCL_ERROR;
31953 }
31954 
31955 
31956 SWIGINTERN int
_wrap_GreatCircleMetric_pointwise_distance(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])31957 _wrap_GreatCircleMetric_pointwise_distance(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
31958   Xapian::GreatCircleMetric *arg1 = (Xapian::GreatCircleMetric *) 0 ;
31959   Xapian::LatLongCoord *arg2 = 0 ;
31960   Xapian::LatLongCoord *arg3 = 0 ;
31961   void *argp1 = 0 ;
31962   int res1 = 0 ;
31963   void *argp2 ;
31964   int res2 = 0 ;
31965   void *argp3 ;
31966   int res3 = 0 ;
31967   double result;
31968 
31969   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::GreatCircleMetric_pointwise_distance self a b ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
31970   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__GreatCircleMetric, 0 |  0 );
31971   if (!SWIG_IsOK(res1)) {
31972     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GreatCircleMetric_pointwise_distance" "', argument " "1"" of type '" "Xapian::GreatCircleMetric const *""'");
31973   }
31974   arg1 = reinterpret_cast< Xapian::GreatCircleMetric * >(argp1);
31975   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__LatLongCoord,  0 );
31976   if (!SWIG_IsOK(res2)) {
31977     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GreatCircleMetric_pointwise_distance" "', argument " "2"" of type '" "Xapian::LatLongCoord const &""'");
31978   }
31979   if (!argp2) {
31980     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GreatCircleMetric_pointwise_distance" "', argument " "2"" of type '" "Xapian::LatLongCoord const &""'");
31981   }
31982   arg2 = reinterpret_cast< Xapian::LatLongCoord * >(argp2);
31983   res3 = SWIG_ConvertPtr(objv[3], &argp3, SWIGTYPE_p_Xapian__LatLongCoord,  0 );
31984   if (!SWIG_IsOK(res3)) {
31985     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GreatCircleMetric_pointwise_distance" "', argument " "3"" of type '" "Xapian::LatLongCoord const &""'");
31986   }
31987   if (!argp3) {
31988     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GreatCircleMetric_pointwise_distance" "', argument " "3"" of type '" "Xapian::LatLongCoord const &""'");
31989   }
31990   arg3 = reinterpret_cast< Xapian::LatLongCoord * >(argp3);
31991   {
31992     try {
31993       result = (double)((Xapian::GreatCircleMetric const *)arg1)->pointwise_distance((Xapian::LatLongCoord const &)*arg2,(Xapian::LatLongCoord const &)*arg3);
31994     } catch (const Xapian::Error &e) {
31995       return XapianTclHandleError(interp, e);
31996     } catch (...) {
31997       return XapianTclHandleError(interp);
31998     }
31999   }
32000   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
32001   return TCL_OK;
32002 fail:
32003   return TCL_ERROR;
32004 }
32005 
32006 
32007 SWIGINTERN int
_wrap_GreatCircleMetric_name(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])32008 _wrap_GreatCircleMetric_name(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
32009   Xapian::GreatCircleMetric *arg1 = (Xapian::GreatCircleMetric *) 0 ;
32010   void *argp1 = 0 ;
32011   int res1 = 0 ;
32012   std::string result;
32013 
32014   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::GreatCircleMetric_name self ",(void *)0) == TCL_ERROR) SWIG_fail;
32015   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__GreatCircleMetric, 0 |  0 );
32016   if (!SWIG_IsOK(res1)) {
32017     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GreatCircleMetric_name" "', argument " "1"" of type '" "Xapian::GreatCircleMetric const *""'");
32018   }
32019   arg1 = reinterpret_cast< Xapian::GreatCircleMetric * >(argp1);
32020   {
32021     try {
32022       result = ((Xapian::GreatCircleMetric const *)arg1)->name();
32023     } catch (const Xapian::Error &e) {
32024       return XapianTclHandleError(interp, e);
32025     } catch (...) {
32026       return XapianTclHandleError(interp);
32027     }
32028   }
32029   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
32030   return TCL_OK;
32031 fail:
32032   return TCL_ERROR;
32033 }
32034 
32035 
32036 SWIGINTERN int
_wrap_delete_GreatCircleMetric(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])32037 _wrap_delete_GreatCircleMetric(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
32038   Xapian::GreatCircleMetric *arg1 = (Xapian::GreatCircleMetric *) 0 ;
32039   void *argp1 = 0 ;
32040   int res1 = 0 ;
32041 
32042   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_GreatCircleMetric self ",(void *)0) == TCL_ERROR) SWIG_fail;
32043   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__GreatCircleMetric, SWIG_POINTER_DISOWN |  0 );
32044   if (!SWIG_IsOK(res1)) {
32045     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GreatCircleMetric" "', argument " "1"" of type '" "Xapian::GreatCircleMetric *""'");
32046   }
32047   arg1 = reinterpret_cast< Xapian::GreatCircleMetric * >(argp1);
32048   {
32049     try {
32050       delete arg1;
32051     } catch (const Xapian::Error &e) {
32052       return XapianTclHandleError(interp, e);
32053     } catch (...) {
32054       return XapianTclHandleError(interp);
32055     }
32056   }
32057 
32058   return TCL_OK;
32059 fail:
32060   return TCL_ERROR;
32061 }
32062 
32063 
swig_delete_GreatCircleMetric(void * obj)32064 SWIGINTERN void swig_delete_GreatCircleMetric(void *obj) {
32065 Xapian::GreatCircleMetric *arg1 = (Xapian::GreatCircleMetric *) obj;
32066 delete arg1;
32067 }
32068 static swig_method swig_Xapian_GreatCircleMetric_methods[] = {
32069     {"pointwise_distance", _wrap_GreatCircleMetric_pointwise_distance},
32070     {"name", _wrap_GreatCircleMetric_name},
32071     {0,0}
32072 };
32073 static swig_attribute swig_Xapian_GreatCircleMetric_attributes[] = {
32074     {0,0,0}
32075 };
32076 static swig_class *swig_Xapian_GreatCircleMetric_bases[] = {0,0};
32077 static const char * swig_Xapian_GreatCircleMetric_base_names[] = {"Xapian::LatLongMetric *",0};
32078 static swig_class _wrap_class_Xapian_GreatCircleMetric = { "GreatCircleMetric", &SWIGTYPE_p_Xapian__GreatCircleMetric,_wrap_new_GreatCircleMetric, swig_delete_GreatCircleMetric, swig_Xapian_GreatCircleMetric_methods, swig_Xapian_GreatCircleMetric_attributes, swig_Xapian_GreatCircleMetric_bases,swig_Xapian_GreatCircleMetric_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
32079 SWIGINTERN int
_wrap_new_LatLongDistancePostingSource__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])32080 _wrap_new_LatLongDistancePostingSource__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
32081   Xapian::valueno arg1 ;
32082   Xapian::LatLongCoords *arg2 = 0 ;
32083   Xapian::LatLongMetric *arg3 = 0 ;
32084   double arg4 ;
32085   double arg5 ;
32086   double arg6 ;
32087   unsigned int val1 ;
32088   int ecode1 = 0 ;
32089   void *argp2 ;
32090   int res2 = 0 ;
32091   void *argp3 ;
32092   int res3 = 0 ;
32093   double val4 ;
32094   int ecode4 = 0 ;
32095   double val5 ;
32096   int ecode5 = 0 ;
32097   double val6 ;
32098   int ecode6 = 0 ;
32099   Xapian::LatLongDistancePostingSource *result = 0 ;
32100 
32101   if (SWIG_GetArgs(interp, objc, objv,"oooooo:xapian::new_LatLongDistancePostingSource slot_ centre_ metric_ max_range_ k1_ k2_ ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
32102   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
32103   if (!SWIG_IsOK(ecode1)) {
32104     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongDistancePostingSource" "', argument " "1"" of type '" "Xapian::valueno""'");
32105   }
32106   arg1 = static_cast< Xapian::valueno >(val1);
32107   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__LatLongCoords,  0 );
32108   if (!SWIG_IsOK(res2)) {
32109     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
32110   }
32111   if (!argp2) {
32112     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
32113   }
32114   arg2 = reinterpret_cast< Xapian::LatLongCoords * >(argp2);
32115   res3 = SWIG_ConvertPtr(objv[3], &argp3, SWIGTYPE_p_Xapian__LatLongMetric,  0 );
32116   if (!SWIG_IsOK(res3)) {
32117     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LatLongDistancePostingSource" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
32118   }
32119   if (!argp3) {
32120     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistancePostingSource" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
32121   }
32122   arg3 = reinterpret_cast< Xapian::LatLongMetric * >(argp3);
32123   ecode4 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
32124   if (!SWIG_IsOK(ecode4)) {
32125     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_LatLongDistancePostingSource" "', argument " "4"" of type '" "double""'");
32126   }
32127   arg4 = static_cast< double >(val4);
32128   ecode5 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
32129   if (!SWIG_IsOK(ecode5)) {
32130     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_LatLongDistancePostingSource" "', argument " "5"" of type '" "double""'");
32131   }
32132   arg5 = static_cast< double >(val5);
32133   ecode6 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[6], &val6);
32134   if (!SWIG_IsOK(ecode6)) {
32135     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_LatLongDistancePostingSource" "', argument " "6"" of type '" "double""'");
32136   }
32137   arg6 = static_cast< double >(val6);
32138   {
32139     try {
32140       result = (Xapian::LatLongDistancePostingSource *)new Xapian::LatLongDistancePostingSource(arg1,(Xapian::LatLongCoords const &)*arg2,(Xapian::LatLongMetric const &)*arg3,arg4,arg5,arg6);
32141     } catch (const Xapian::Error &e) {
32142       return XapianTclHandleError(interp, e);
32143     } catch (...) {
32144       return XapianTclHandleError(interp);
32145     }
32146   }
32147   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongDistancePostingSource,0));
32148   return TCL_OK;
32149 fail:
32150   return TCL_ERROR;
32151 }
32152 
32153 
32154 SWIGINTERN int
_wrap_new_LatLongDistancePostingSource__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])32155 _wrap_new_LatLongDistancePostingSource__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
32156   Xapian::valueno arg1 ;
32157   Xapian::LatLongCoords *arg2 = 0 ;
32158   Xapian::LatLongMetric *arg3 = 0 ;
32159   double arg4 ;
32160   double arg5 ;
32161   unsigned int val1 ;
32162   int ecode1 = 0 ;
32163   void *argp2 ;
32164   int res2 = 0 ;
32165   void *argp3 ;
32166   int res3 = 0 ;
32167   double val4 ;
32168   int ecode4 = 0 ;
32169   double val5 ;
32170   int ecode5 = 0 ;
32171   Xapian::LatLongDistancePostingSource *result = 0 ;
32172 
32173   if (SWIG_GetArgs(interp, objc, objv,"ooooo:xapian::new_LatLongDistancePostingSource slot_ centre_ metric_ max_range_ k1_ ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
32174   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
32175   if (!SWIG_IsOK(ecode1)) {
32176     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongDistancePostingSource" "', argument " "1"" of type '" "Xapian::valueno""'");
32177   }
32178   arg1 = static_cast< Xapian::valueno >(val1);
32179   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__LatLongCoords,  0 );
32180   if (!SWIG_IsOK(res2)) {
32181     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
32182   }
32183   if (!argp2) {
32184     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
32185   }
32186   arg2 = reinterpret_cast< Xapian::LatLongCoords * >(argp2);
32187   res3 = SWIG_ConvertPtr(objv[3], &argp3, SWIGTYPE_p_Xapian__LatLongMetric,  0 );
32188   if (!SWIG_IsOK(res3)) {
32189     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LatLongDistancePostingSource" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
32190   }
32191   if (!argp3) {
32192     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistancePostingSource" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
32193   }
32194   arg3 = reinterpret_cast< Xapian::LatLongMetric * >(argp3);
32195   ecode4 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
32196   if (!SWIG_IsOK(ecode4)) {
32197     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_LatLongDistancePostingSource" "', argument " "4"" of type '" "double""'");
32198   }
32199   arg4 = static_cast< double >(val4);
32200   ecode5 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
32201   if (!SWIG_IsOK(ecode5)) {
32202     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_LatLongDistancePostingSource" "', argument " "5"" of type '" "double""'");
32203   }
32204   arg5 = static_cast< double >(val5);
32205   {
32206     try {
32207       result = (Xapian::LatLongDistancePostingSource *)new Xapian::LatLongDistancePostingSource(arg1,(Xapian::LatLongCoords const &)*arg2,(Xapian::LatLongMetric const &)*arg3,arg4,arg5);
32208     } catch (const Xapian::Error &e) {
32209       return XapianTclHandleError(interp, e);
32210     } catch (...) {
32211       return XapianTclHandleError(interp);
32212     }
32213   }
32214   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongDistancePostingSource,0));
32215   return TCL_OK;
32216 fail:
32217   return TCL_ERROR;
32218 }
32219 
32220 
32221 SWIGINTERN int
_wrap_new_LatLongDistancePostingSource__SWIG_2(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])32222 _wrap_new_LatLongDistancePostingSource__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
32223   Xapian::valueno arg1 ;
32224   Xapian::LatLongCoords *arg2 = 0 ;
32225   Xapian::LatLongMetric *arg3 = 0 ;
32226   double arg4 ;
32227   unsigned int val1 ;
32228   int ecode1 = 0 ;
32229   void *argp2 ;
32230   int res2 = 0 ;
32231   void *argp3 ;
32232   int res3 = 0 ;
32233   double val4 ;
32234   int ecode4 = 0 ;
32235   Xapian::LatLongDistancePostingSource *result = 0 ;
32236 
32237   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::new_LatLongDistancePostingSource slot_ centre_ metric_ max_range_ ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
32238   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
32239   if (!SWIG_IsOK(ecode1)) {
32240     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongDistancePostingSource" "', argument " "1"" of type '" "Xapian::valueno""'");
32241   }
32242   arg1 = static_cast< Xapian::valueno >(val1);
32243   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__LatLongCoords,  0 );
32244   if (!SWIG_IsOK(res2)) {
32245     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
32246   }
32247   if (!argp2) {
32248     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
32249   }
32250   arg2 = reinterpret_cast< Xapian::LatLongCoords * >(argp2);
32251   res3 = SWIG_ConvertPtr(objv[3], &argp3, SWIGTYPE_p_Xapian__LatLongMetric,  0 );
32252   if (!SWIG_IsOK(res3)) {
32253     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LatLongDistancePostingSource" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
32254   }
32255   if (!argp3) {
32256     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistancePostingSource" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
32257   }
32258   arg3 = reinterpret_cast< Xapian::LatLongMetric * >(argp3);
32259   ecode4 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
32260   if (!SWIG_IsOK(ecode4)) {
32261     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_LatLongDistancePostingSource" "', argument " "4"" of type '" "double""'");
32262   }
32263   arg4 = static_cast< double >(val4);
32264   {
32265     try {
32266       result = (Xapian::LatLongDistancePostingSource *)new Xapian::LatLongDistancePostingSource(arg1,(Xapian::LatLongCoords const &)*arg2,(Xapian::LatLongMetric const &)*arg3,arg4);
32267     } catch (const Xapian::Error &e) {
32268       return XapianTclHandleError(interp, e);
32269     } catch (...) {
32270       return XapianTclHandleError(interp);
32271     }
32272   }
32273   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongDistancePostingSource,0));
32274   return TCL_OK;
32275 fail:
32276   return TCL_ERROR;
32277 }
32278 
32279 
32280 SWIGINTERN int
_wrap_new_LatLongDistancePostingSource__SWIG_3(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])32281 _wrap_new_LatLongDistancePostingSource__SWIG_3(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
32282   Xapian::valueno arg1 ;
32283   Xapian::LatLongCoords *arg2 = 0 ;
32284   Xapian::LatLongMetric *arg3 = 0 ;
32285   unsigned int val1 ;
32286   int ecode1 = 0 ;
32287   void *argp2 ;
32288   int res2 = 0 ;
32289   void *argp3 ;
32290   int res3 = 0 ;
32291   Xapian::LatLongDistancePostingSource *result = 0 ;
32292 
32293   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::new_LatLongDistancePostingSource slot_ centre_ metric_ ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
32294   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
32295   if (!SWIG_IsOK(ecode1)) {
32296     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongDistancePostingSource" "', argument " "1"" of type '" "Xapian::valueno""'");
32297   }
32298   arg1 = static_cast< Xapian::valueno >(val1);
32299   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__LatLongCoords,  0 );
32300   if (!SWIG_IsOK(res2)) {
32301     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
32302   }
32303   if (!argp2) {
32304     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
32305   }
32306   arg2 = reinterpret_cast< Xapian::LatLongCoords * >(argp2);
32307   res3 = SWIG_ConvertPtr(objv[3], &argp3, SWIGTYPE_p_Xapian__LatLongMetric,  0 );
32308   if (!SWIG_IsOK(res3)) {
32309     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LatLongDistancePostingSource" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
32310   }
32311   if (!argp3) {
32312     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistancePostingSource" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
32313   }
32314   arg3 = reinterpret_cast< Xapian::LatLongMetric * >(argp3);
32315   {
32316     try {
32317       result = (Xapian::LatLongDistancePostingSource *)new Xapian::LatLongDistancePostingSource(arg1,(Xapian::LatLongCoords const &)*arg2,(Xapian::LatLongMetric const &)*arg3);
32318     } catch (const Xapian::Error &e) {
32319       return XapianTclHandleError(interp, e);
32320     } catch (...) {
32321       return XapianTclHandleError(interp);
32322     }
32323   }
32324   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongDistancePostingSource,0));
32325   return TCL_OK;
32326 fail:
32327   return TCL_ERROR;
32328 }
32329 
32330 
32331 SWIGINTERN int
_wrap_new_LatLongDistancePostingSource__SWIG_4(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])32332 _wrap_new_LatLongDistancePostingSource__SWIG_4(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
32333   Xapian::valueno arg1 ;
32334   Xapian::LatLongCoords *arg2 = 0 ;
32335   double arg3 ;
32336   double arg4 ;
32337   double arg5 ;
32338   unsigned int val1 ;
32339   int ecode1 = 0 ;
32340   void *argp2 ;
32341   int res2 = 0 ;
32342   double val3 ;
32343   int ecode3 = 0 ;
32344   double val4 ;
32345   int ecode4 = 0 ;
32346   double val5 ;
32347   int ecode5 = 0 ;
32348   Xapian::LatLongDistancePostingSource *result = 0 ;
32349 
32350   if (SWIG_GetArgs(interp, objc, objv,"ooooo:xapian::new_LatLongDistancePostingSource slot_ centre_ max_range_ k1_ k2_ ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
32351   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
32352   if (!SWIG_IsOK(ecode1)) {
32353     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongDistancePostingSource" "', argument " "1"" of type '" "Xapian::valueno""'");
32354   }
32355   arg1 = static_cast< Xapian::valueno >(val1);
32356   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__LatLongCoords,  0 );
32357   if (!SWIG_IsOK(res2)) {
32358     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
32359   }
32360   if (!argp2) {
32361     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
32362   }
32363   arg2 = reinterpret_cast< Xapian::LatLongCoords * >(argp2);
32364   ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
32365   if (!SWIG_IsOK(ecode3)) {
32366     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_LatLongDistancePostingSource" "', argument " "3"" of type '" "double""'");
32367   }
32368   arg3 = static_cast< double >(val3);
32369   ecode4 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
32370   if (!SWIG_IsOK(ecode4)) {
32371     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_LatLongDistancePostingSource" "', argument " "4"" of type '" "double""'");
32372   }
32373   arg4 = static_cast< double >(val4);
32374   ecode5 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
32375   if (!SWIG_IsOK(ecode5)) {
32376     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_LatLongDistancePostingSource" "', argument " "5"" of type '" "double""'");
32377   }
32378   arg5 = static_cast< double >(val5);
32379   {
32380     try {
32381       result = (Xapian::LatLongDistancePostingSource *)new Xapian::LatLongDistancePostingSource(arg1,(Xapian::LatLongCoords const &)*arg2,arg3,arg4,arg5);
32382     } catch (const Xapian::Error &e) {
32383       return XapianTclHandleError(interp, e);
32384     } catch (...) {
32385       return XapianTclHandleError(interp);
32386     }
32387   }
32388   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongDistancePostingSource,0));
32389   return TCL_OK;
32390 fail:
32391   return TCL_ERROR;
32392 }
32393 
32394 
32395 SWIGINTERN int
_wrap_new_LatLongDistancePostingSource__SWIG_5(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])32396 _wrap_new_LatLongDistancePostingSource__SWIG_5(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
32397   Xapian::valueno arg1 ;
32398   Xapian::LatLongCoords *arg2 = 0 ;
32399   double arg3 ;
32400   double arg4 ;
32401   unsigned int val1 ;
32402   int ecode1 = 0 ;
32403   void *argp2 ;
32404   int res2 = 0 ;
32405   double val3 ;
32406   int ecode3 = 0 ;
32407   double val4 ;
32408   int ecode4 = 0 ;
32409   Xapian::LatLongDistancePostingSource *result = 0 ;
32410 
32411   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::new_LatLongDistancePostingSource slot_ centre_ max_range_ k1_ ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
32412   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
32413   if (!SWIG_IsOK(ecode1)) {
32414     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongDistancePostingSource" "', argument " "1"" of type '" "Xapian::valueno""'");
32415   }
32416   arg1 = static_cast< Xapian::valueno >(val1);
32417   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__LatLongCoords,  0 );
32418   if (!SWIG_IsOK(res2)) {
32419     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
32420   }
32421   if (!argp2) {
32422     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
32423   }
32424   arg2 = reinterpret_cast< Xapian::LatLongCoords * >(argp2);
32425   ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
32426   if (!SWIG_IsOK(ecode3)) {
32427     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_LatLongDistancePostingSource" "', argument " "3"" of type '" "double""'");
32428   }
32429   arg3 = static_cast< double >(val3);
32430   ecode4 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
32431   if (!SWIG_IsOK(ecode4)) {
32432     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_LatLongDistancePostingSource" "', argument " "4"" of type '" "double""'");
32433   }
32434   arg4 = static_cast< double >(val4);
32435   {
32436     try {
32437       result = (Xapian::LatLongDistancePostingSource *)new Xapian::LatLongDistancePostingSource(arg1,(Xapian::LatLongCoords const &)*arg2,arg3,arg4);
32438     } catch (const Xapian::Error &e) {
32439       return XapianTclHandleError(interp, e);
32440     } catch (...) {
32441       return XapianTclHandleError(interp);
32442     }
32443   }
32444   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongDistancePostingSource,0));
32445   return TCL_OK;
32446 fail:
32447   return TCL_ERROR;
32448 }
32449 
32450 
32451 SWIGINTERN int
_wrap_new_LatLongDistancePostingSource__SWIG_6(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])32452 _wrap_new_LatLongDistancePostingSource__SWIG_6(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
32453   Xapian::valueno arg1 ;
32454   Xapian::LatLongCoords *arg2 = 0 ;
32455   double arg3 ;
32456   unsigned int val1 ;
32457   int ecode1 = 0 ;
32458   void *argp2 ;
32459   int res2 = 0 ;
32460   double val3 ;
32461   int ecode3 = 0 ;
32462   Xapian::LatLongDistancePostingSource *result = 0 ;
32463 
32464   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::new_LatLongDistancePostingSource slot_ centre_ max_range_ ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
32465   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
32466   if (!SWIG_IsOK(ecode1)) {
32467     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongDistancePostingSource" "', argument " "1"" of type '" "Xapian::valueno""'");
32468   }
32469   arg1 = static_cast< Xapian::valueno >(val1);
32470   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__LatLongCoords,  0 );
32471   if (!SWIG_IsOK(res2)) {
32472     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
32473   }
32474   if (!argp2) {
32475     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
32476   }
32477   arg2 = reinterpret_cast< Xapian::LatLongCoords * >(argp2);
32478   ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
32479   if (!SWIG_IsOK(ecode3)) {
32480     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_LatLongDistancePostingSource" "', argument " "3"" of type '" "double""'");
32481   }
32482   arg3 = static_cast< double >(val3);
32483   {
32484     try {
32485       result = (Xapian::LatLongDistancePostingSource *)new Xapian::LatLongDistancePostingSource(arg1,(Xapian::LatLongCoords const &)*arg2,arg3);
32486     } catch (const Xapian::Error &e) {
32487       return XapianTclHandleError(interp, e);
32488     } catch (...) {
32489       return XapianTclHandleError(interp);
32490     }
32491   }
32492   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongDistancePostingSource,0));
32493   return TCL_OK;
32494 fail:
32495   return TCL_ERROR;
32496 }
32497 
32498 
32499 SWIGINTERN int
_wrap_new_LatLongDistancePostingSource__SWIG_7(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])32500 _wrap_new_LatLongDistancePostingSource__SWIG_7(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
32501   Xapian::valueno arg1 ;
32502   Xapian::LatLongCoords *arg2 = 0 ;
32503   unsigned int val1 ;
32504   int ecode1 = 0 ;
32505   void *argp2 ;
32506   int res2 = 0 ;
32507   Xapian::LatLongDistancePostingSource *result = 0 ;
32508 
32509   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::new_LatLongDistancePostingSource slot_ centre_ ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
32510   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
32511   if (!SWIG_IsOK(ecode1)) {
32512     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongDistancePostingSource" "', argument " "1"" of type '" "Xapian::valueno""'");
32513   }
32514   arg1 = static_cast< Xapian::valueno >(val1);
32515   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__LatLongCoords,  0 );
32516   if (!SWIG_IsOK(res2)) {
32517     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
32518   }
32519   if (!argp2) {
32520     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
32521   }
32522   arg2 = reinterpret_cast< Xapian::LatLongCoords * >(argp2);
32523   {
32524     try {
32525       result = (Xapian::LatLongDistancePostingSource *)new Xapian::LatLongDistancePostingSource(arg1,(Xapian::LatLongCoords const &)*arg2);
32526     } catch (const Xapian::Error &e) {
32527       return XapianTclHandleError(interp, e);
32528     } catch (...) {
32529       return XapianTclHandleError(interp);
32530     }
32531   }
32532   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongDistancePostingSource,0));
32533   return TCL_OK;
32534 fail:
32535   return TCL_ERROR;
32536 }
32537 
32538 
32539 SWIGINTERN int
_wrap_new_LatLongDistancePostingSource(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])32540 _wrap_new_LatLongDistancePostingSource(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
32541   Tcl_Obj *CONST *argv = objv+1;
32542   int argc = objc-1;
32543   if (argc == 2) {
32544     int _v;
32545     {
32546       int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
32547       _v = SWIG_CheckState(res);
32548     }
32549     if (_v) {
32550       void *vptr = 0;
32551       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Xapian__LatLongCoords, 0);
32552       _v = SWIG_CheckState(res);
32553       if (_v) {
32554         return _wrap_new_LatLongDistancePostingSource__SWIG_7(clientData, interp, objc, argv - 1);
32555       }
32556     }
32557   }
32558   if (argc == 3) {
32559     int _v;
32560     {
32561       int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
32562       _v = SWIG_CheckState(res);
32563     }
32564     if (_v) {
32565       void *vptr = 0;
32566       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Xapian__LatLongCoords, 0);
32567       _v = SWIG_CheckState(res);
32568       if (_v) {
32569         void *vptr = 0;
32570         int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_Xapian__LatLongMetric, 0);
32571         _v = SWIG_CheckState(res);
32572         if (_v) {
32573           return _wrap_new_LatLongDistancePostingSource__SWIG_3(clientData, interp, objc, argv - 1);
32574         }
32575       }
32576     }
32577   }
32578   if (argc == 3) {
32579     int _v;
32580     {
32581       int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
32582       _v = SWIG_CheckState(res);
32583     }
32584     if (_v) {
32585       void *vptr = 0;
32586       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Xapian__LatLongCoords, 0);
32587       _v = SWIG_CheckState(res);
32588       if (_v) {
32589         {
32590           int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
32591           _v = SWIG_CheckState(res);
32592         }
32593         if (_v) {
32594           return _wrap_new_LatLongDistancePostingSource__SWIG_6(clientData, interp, objc, argv - 1);
32595         }
32596       }
32597     }
32598   }
32599   if (argc == 4) {
32600     int _v;
32601     {
32602       int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
32603       _v = SWIG_CheckState(res);
32604     }
32605     if (_v) {
32606       void *vptr = 0;
32607       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Xapian__LatLongCoords, 0);
32608       _v = SWIG_CheckState(res);
32609       if (_v) {
32610         void *vptr = 0;
32611         int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_Xapian__LatLongMetric, 0);
32612         _v = SWIG_CheckState(res);
32613         if (_v) {
32614           {
32615             int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
32616             _v = SWIG_CheckState(res);
32617           }
32618           if (_v) {
32619             return _wrap_new_LatLongDistancePostingSource__SWIG_2(clientData, interp, objc, argv - 1);
32620           }
32621         }
32622       }
32623     }
32624   }
32625   if (argc == 4) {
32626     int _v;
32627     {
32628       int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
32629       _v = SWIG_CheckState(res);
32630     }
32631     if (_v) {
32632       void *vptr = 0;
32633       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Xapian__LatLongCoords, 0);
32634       _v = SWIG_CheckState(res);
32635       if (_v) {
32636         {
32637           int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
32638           _v = SWIG_CheckState(res);
32639         }
32640         if (_v) {
32641           {
32642             int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
32643             _v = SWIG_CheckState(res);
32644           }
32645           if (_v) {
32646             return _wrap_new_LatLongDistancePostingSource__SWIG_5(clientData, interp, objc, argv - 1);
32647           }
32648         }
32649       }
32650     }
32651   }
32652   if (argc == 5) {
32653     int _v;
32654     {
32655       int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
32656       _v = SWIG_CheckState(res);
32657     }
32658     if (_v) {
32659       void *vptr = 0;
32660       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Xapian__LatLongCoords, 0);
32661       _v = SWIG_CheckState(res);
32662       if (_v) {
32663         void *vptr = 0;
32664         int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_Xapian__LatLongMetric, 0);
32665         _v = SWIG_CheckState(res);
32666         if (_v) {
32667           {
32668             int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
32669             _v = SWIG_CheckState(res);
32670           }
32671           if (_v) {
32672             {
32673               int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[4], NULL);
32674               _v = SWIG_CheckState(res);
32675             }
32676             if (_v) {
32677               return _wrap_new_LatLongDistancePostingSource__SWIG_1(clientData, interp, objc, argv - 1);
32678             }
32679           }
32680         }
32681       }
32682     }
32683   }
32684   if (argc == 5) {
32685     int _v;
32686     {
32687       int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
32688       _v = SWIG_CheckState(res);
32689     }
32690     if (_v) {
32691       void *vptr = 0;
32692       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Xapian__LatLongCoords, 0);
32693       _v = SWIG_CheckState(res);
32694       if (_v) {
32695         {
32696           int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
32697           _v = SWIG_CheckState(res);
32698         }
32699         if (_v) {
32700           {
32701             int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
32702             _v = SWIG_CheckState(res);
32703           }
32704           if (_v) {
32705             {
32706               int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[4], NULL);
32707               _v = SWIG_CheckState(res);
32708             }
32709             if (_v) {
32710               return _wrap_new_LatLongDistancePostingSource__SWIG_4(clientData, interp, objc, argv - 1);
32711             }
32712           }
32713         }
32714       }
32715     }
32716   }
32717   if (argc == 6) {
32718     int _v;
32719     {
32720       int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
32721       _v = SWIG_CheckState(res);
32722     }
32723     if (_v) {
32724       void *vptr = 0;
32725       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Xapian__LatLongCoords, 0);
32726       _v = SWIG_CheckState(res);
32727       if (_v) {
32728         void *vptr = 0;
32729         int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_Xapian__LatLongMetric, 0);
32730         _v = SWIG_CheckState(res);
32731         if (_v) {
32732           {
32733             int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
32734             _v = SWIG_CheckState(res);
32735           }
32736           if (_v) {
32737             {
32738               int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[4], NULL);
32739               _v = SWIG_CheckState(res);
32740             }
32741             if (_v) {
32742               {
32743                 int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[5], NULL);
32744                 _v = SWIG_CheckState(res);
32745               }
32746               if (_v) {
32747                 return _wrap_new_LatLongDistancePostingSource__SWIG_0(clientData, interp, objc, argv - 1);
32748               }
32749             }
32750           }
32751         }
32752       }
32753     }
32754   }
32755 
32756   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_LatLongDistancePostingSource'.\n"
32757     "  Possible C/C++ prototypes are:\n"
32758     "    Xapian::LatLongDistancePostingSource::LatLongDistancePostingSource(Xapian::valueno,Xapian::LatLongCoords const &,Xapian::LatLongMetric const &,double,double,double)\n"
32759     "    Xapian::LatLongDistancePostingSource::LatLongDistancePostingSource(Xapian::valueno,Xapian::LatLongCoords const &,Xapian::LatLongMetric const &,double,double)\n"
32760     "    Xapian::LatLongDistancePostingSource::LatLongDistancePostingSource(Xapian::valueno,Xapian::LatLongCoords const &,Xapian::LatLongMetric const &,double)\n"
32761     "    Xapian::LatLongDistancePostingSource::LatLongDistancePostingSource(Xapian::valueno,Xapian::LatLongCoords const &,Xapian::LatLongMetric const &)\n"
32762     "    Xapian::LatLongDistancePostingSource::LatLongDistancePostingSource(Xapian::valueno,Xapian::LatLongCoords const &,double,double,double)\n"
32763     "    Xapian::LatLongDistancePostingSource::LatLongDistancePostingSource(Xapian::valueno,Xapian::LatLongCoords const &,double,double)\n"
32764     "    Xapian::LatLongDistancePostingSource::LatLongDistancePostingSource(Xapian::valueno,Xapian::LatLongCoords const &,double)\n"
32765     "    Xapian::LatLongDistancePostingSource::LatLongDistancePostingSource(Xapian::valueno,Xapian::LatLongCoords const &)\n", TCL_STATIC);
32766   return TCL_ERROR;
32767 }
32768 
32769 
32770 SWIGINTERN int
_wrap_delete_LatLongDistancePostingSource(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])32771 _wrap_delete_LatLongDistancePostingSource(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
32772   Xapian::LatLongDistancePostingSource *arg1 = (Xapian::LatLongDistancePostingSource *) 0 ;
32773   void *argp1 = 0 ;
32774   int res1 = 0 ;
32775 
32776   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_LatLongDistancePostingSource self ",(void *)0) == TCL_ERROR) SWIG_fail;
32777   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__LatLongDistancePostingSource, SWIG_POINTER_DISOWN |  0 );
32778   if (!SWIG_IsOK(res1)) {
32779     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LatLongDistancePostingSource" "', argument " "1"" of type '" "Xapian::LatLongDistancePostingSource *""'");
32780   }
32781   arg1 = reinterpret_cast< Xapian::LatLongDistancePostingSource * >(argp1);
32782   {
32783     try {
32784       delete arg1;
32785     } catch (const Xapian::Error &e) {
32786       return XapianTclHandleError(interp, e);
32787     } catch (...) {
32788       return XapianTclHandleError(interp);
32789     }
32790   }
32791 
32792   return TCL_OK;
32793 fail:
32794   return TCL_ERROR;
32795 }
32796 
32797 
32798 SWIGINTERN int
_wrap_LatLongDistancePostingSource_next(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])32799 _wrap_LatLongDistancePostingSource_next(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
32800   Xapian::LatLongDistancePostingSource *arg1 = (Xapian::LatLongDistancePostingSource *) 0 ;
32801   double arg2 ;
32802   void *argp1 = 0 ;
32803   int res1 = 0 ;
32804   double val2 ;
32805   int ecode2 = 0 ;
32806 
32807   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::LatLongDistancePostingSource_next self min_wt ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
32808   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__LatLongDistancePostingSource, 0 |  0 );
32809   if (!SWIG_IsOK(res1)) {
32810     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongDistancePostingSource_next" "', argument " "1"" of type '" "Xapian::LatLongDistancePostingSource *""'");
32811   }
32812   arg1 = reinterpret_cast< Xapian::LatLongDistancePostingSource * >(argp1);
32813   ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
32814   if (!SWIG_IsOK(ecode2)) {
32815     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LatLongDistancePostingSource_next" "', argument " "2"" of type '" "double""'");
32816   }
32817   arg2 = static_cast< double >(val2);
32818   {
32819     try {
32820       (arg1)->next(arg2);
32821     } catch (const Xapian::Error &e) {
32822       return XapianTclHandleError(interp, e);
32823     } catch (...) {
32824       return XapianTclHandleError(interp);
32825     }
32826   }
32827 
32828   return TCL_OK;
32829 fail:
32830   return TCL_ERROR;
32831 }
32832 
32833 
32834 SWIGINTERN int
_wrap_LatLongDistancePostingSource_skip_to(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])32835 _wrap_LatLongDistancePostingSource_skip_to(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
32836   Xapian::LatLongDistancePostingSource *arg1 = (Xapian::LatLongDistancePostingSource *) 0 ;
32837   Xapian::docid arg2 ;
32838   double arg3 ;
32839   void *argp1 = 0 ;
32840   int res1 = 0 ;
32841   unsigned int val2 ;
32842   int ecode2 = 0 ;
32843   double val3 ;
32844   int ecode3 = 0 ;
32845 
32846   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::LatLongDistancePostingSource_skip_to self min_docid min_wt ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
32847   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__LatLongDistancePostingSource, 0 |  0 );
32848   if (!SWIG_IsOK(res1)) {
32849     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongDistancePostingSource_skip_to" "', argument " "1"" of type '" "Xapian::LatLongDistancePostingSource *""'");
32850   }
32851   arg1 = reinterpret_cast< Xapian::LatLongDistancePostingSource * >(argp1);
32852   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
32853   if (!SWIG_IsOK(ecode2)) {
32854     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LatLongDistancePostingSource_skip_to" "', argument " "2"" of type '" "Xapian::docid""'");
32855   }
32856   arg2 = static_cast< Xapian::docid >(val2);
32857   ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
32858   if (!SWIG_IsOK(ecode3)) {
32859     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "LatLongDistancePostingSource_skip_to" "', argument " "3"" of type '" "double""'");
32860   }
32861   arg3 = static_cast< double >(val3);
32862   {
32863     try {
32864       (arg1)->skip_to(arg2,arg3);
32865     } catch (const Xapian::Error &e) {
32866       return XapianTclHandleError(interp, e);
32867     } catch (...) {
32868       return XapianTclHandleError(interp);
32869     }
32870   }
32871 
32872   return TCL_OK;
32873 fail:
32874   return TCL_ERROR;
32875 }
32876 
32877 
32878 SWIGINTERN int
_wrap_LatLongDistancePostingSource_check(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])32879 _wrap_LatLongDistancePostingSource_check(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
32880   Xapian::LatLongDistancePostingSource *arg1 = (Xapian::LatLongDistancePostingSource *) 0 ;
32881   Xapian::docid arg2 ;
32882   double arg3 ;
32883   void *argp1 = 0 ;
32884   int res1 = 0 ;
32885   unsigned int val2 ;
32886   int ecode2 = 0 ;
32887   double val3 ;
32888   int ecode3 = 0 ;
32889   bool result;
32890 
32891   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::LatLongDistancePostingSource_check self min_docid min_wt ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
32892   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__LatLongDistancePostingSource, 0 |  0 );
32893   if (!SWIG_IsOK(res1)) {
32894     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongDistancePostingSource_check" "', argument " "1"" of type '" "Xapian::LatLongDistancePostingSource *""'");
32895   }
32896   arg1 = reinterpret_cast< Xapian::LatLongDistancePostingSource * >(argp1);
32897   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
32898   if (!SWIG_IsOK(ecode2)) {
32899     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LatLongDistancePostingSource_check" "', argument " "2"" of type '" "Xapian::docid""'");
32900   }
32901   arg2 = static_cast< Xapian::docid >(val2);
32902   ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
32903   if (!SWIG_IsOK(ecode3)) {
32904     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "LatLongDistancePostingSource_check" "', argument " "3"" of type '" "double""'");
32905   }
32906   arg3 = static_cast< double >(val3);
32907   {
32908     try {
32909       result = (bool)(arg1)->check(arg2,arg3);
32910     } catch (const Xapian::Error &e) {
32911       return XapianTclHandleError(interp, e);
32912     } catch (...) {
32913       return XapianTclHandleError(interp);
32914     }
32915   }
32916   Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
32917   return TCL_OK;
32918 fail:
32919   return TCL_ERROR;
32920 }
32921 
32922 
32923 SWIGINTERN int
_wrap_LatLongDistancePostingSource_get_weight(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])32924 _wrap_LatLongDistancePostingSource_get_weight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
32925   Xapian::LatLongDistancePostingSource *arg1 = (Xapian::LatLongDistancePostingSource *) 0 ;
32926   void *argp1 = 0 ;
32927   int res1 = 0 ;
32928   double result;
32929 
32930   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::LatLongDistancePostingSource_get_weight self ",(void *)0) == TCL_ERROR) SWIG_fail;
32931   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__LatLongDistancePostingSource, 0 |  0 );
32932   if (!SWIG_IsOK(res1)) {
32933     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongDistancePostingSource_get_weight" "', argument " "1"" of type '" "Xapian::LatLongDistancePostingSource const *""'");
32934   }
32935   arg1 = reinterpret_cast< Xapian::LatLongDistancePostingSource * >(argp1);
32936   {
32937     try {
32938       result = (double)((Xapian::LatLongDistancePostingSource const *)arg1)->get_weight();
32939     } catch (const Xapian::Error &e) {
32940       return XapianTclHandleError(interp, e);
32941     } catch (...) {
32942       return XapianTclHandleError(interp);
32943     }
32944   }
32945   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
32946   return TCL_OK;
32947 fail:
32948   return TCL_ERROR;
32949 }
32950 
32951 
32952 SWIGINTERN int
_wrap_LatLongDistancePostingSource_name(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])32953 _wrap_LatLongDistancePostingSource_name(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
32954   Xapian::LatLongDistancePostingSource *arg1 = (Xapian::LatLongDistancePostingSource *) 0 ;
32955   void *argp1 = 0 ;
32956   int res1 = 0 ;
32957   std::string result;
32958 
32959   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::LatLongDistancePostingSource_name self ",(void *)0) == TCL_ERROR) SWIG_fail;
32960   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__LatLongDistancePostingSource, 0 |  0 );
32961   if (!SWIG_IsOK(res1)) {
32962     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongDistancePostingSource_name" "', argument " "1"" of type '" "Xapian::LatLongDistancePostingSource const *""'");
32963   }
32964   arg1 = reinterpret_cast< Xapian::LatLongDistancePostingSource * >(argp1);
32965   {
32966     try {
32967       result = ((Xapian::LatLongDistancePostingSource const *)arg1)->name();
32968     } catch (const Xapian::Error &e) {
32969       return XapianTclHandleError(interp, e);
32970     } catch (...) {
32971       return XapianTclHandleError(interp);
32972     }
32973   }
32974   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
32975   return TCL_OK;
32976 fail:
32977   return TCL_ERROR;
32978 }
32979 
32980 
32981 SWIGINTERN int
_wrap_LatLongDistancePostingSource_init(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])32982 _wrap_LatLongDistancePostingSource_init(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
32983   Xapian::LatLongDistancePostingSource *arg1 = (Xapian::LatLongDistancePostingSource *) 0 ;
32984   Xapian::Database *arg2 = 0 ;
32985   void *argp1 = 0 ;
32986   int res1 = 0 ;
32987   void *argp2 ;
32988   int res2 = 0 ;
32989 
32990   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::LatLongDistancePostingSource_init self db_ ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
32991   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__LatLongDistancePostingSource, 0 |  0 );
32992   if (!SWIG_IsOK(res1)) {
32993     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongDistancePostingSource_init" "', argument " "1"" of type '" "Xapian::LatLongDistancePostingSource *""'");
32994   }
32995   arg1 = reinterpret_cast< Xapian::LatLongDistancePostingSource * >(argp1);
32996   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__Database,  0 );
32997   if (!SWIG_IsOK(res2)) {
32998     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LatLongDistancePostingSource_init" "', argument " "2"" of type '" "Xapian::Database const &""'");
32999   }
33000   if (!argp2) {
33001     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LatLongDistancePostingSource_init" "', argument " "2"" of type '" "Xapian::Database const &""'");
33002   }
33003   arg2 = reinterpret_cast< Xapian::Database * >(argp2);
33004   {
33005     try {
33006       (arg1)->init((Xapian::Database const &)*arg2);
33007     } catch (const Xapian::Error &e) {
33008       return XapianTclHandleError(interp, e);
33009     } catch (...) {
33010       return XapianTclHandleError(interp);
33011     }
33012   }
33013 
33014   return TCL_OK;
33015 fail:
33016   return TCL_ERROR;
33017 }
33018 
33019 
33020 SWIGINTERN int
_wrap_LatLongDistancePostingSource_get_description(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])33021 _wrap_LatLongDistancePostingSource_get_description(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
33022   Xapian::LatLongDistancePostingSource *arg1 = (Xapian::LatLongDistancePostingSource *) 0 ;
33023   void *argp1 = 0 ;
33024   int res1 = 0 ;
33025   std::string result;
33026 
33027   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::LatLongDistancePostingSource_get_description self ",(void *)0) == TCL_ERROR) SWIG_fail;
33028   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__LatLongDistancePostingSource, 0 |  0 );
33029   if (!SWIG_IsOK(res1)) {
33030     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongDistancePostingSource_get_description" "', argument " "1"" of type '" "Xapian::LatLongDistancePostingSource const *""'");
33031   }
33032   arg1 = reinterpret_cast< Xapian::LatLongDistancePostingSource * >(argp1);
33033   {
33034     try {
33035       result = ((Xapian::LatLongDistancePostingSource const *)arg1)->get_description();
33036     } catch (const Xapian::Error &e) {
33037       return XapianTclHandleError(interp, e);
33038     } catch (...) {
33039       return XapianTclHandleError(interp);
33040     }
33041   }
33042   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
33043   return TCL_OK;
33044 fail:
33045   return TCL_ERROR;
33046 }
33047 
33048 
swig_delete_LatLongDistancePostingSource(void * obj)33049 SWIGINTERN void swig_delete_LatLongDistancePostingSource(void *obj) {
33050 Xapian::LatLongDistancePostingSource *arg1 = (Xapian::LatLongDistancePostingSource *) obj;
33051 delete arg1;
33052 }
33053 static swig_method swig_Xapian_LatLongDistancePostingSource_methods[] = {
33054     {"next", _wrap_LatLongDistancePostingSource_next},
33055     {"skip_to", _wrap_LatLongDistancePostingSource_skip_to},
33056     {"check", _wrap_LatLongDistancePostingSource_check},
33057     {"get_weight", _wrap_LatLongDistancePostingSource_get_weight},
33058     {"name", _wrap_LatLongDistancePostingSource_name},
33059     {"init", _wrap_LatLongDistancePostingSource_init},
33060     {"get_description", _wrap_LatLongDistancePostingSource_get_description},
33061     {0,0}
33062 };
33063 static swig_attribute swig_Xapian_LatLongDistancePostingSource_attributes[] = {
33064     {0,0,0}
33065 };
33066 static swig_class *swig_Xapian_LatLongDistancePostingSource_bases[] = {0,0};
33067 static const char * swig_Xapian_LatLongDistancePostingSource_base_names[] = {"Xapian::ValuePostingSource *",0};
33068 static swig_class _wrap_class_Xapian_LatLongDistancePostingSource = { "LatLongDistancePostingSource", &SWIGTYPE_p_Xapian__LatLongDistancePostingSource,_wrap_new_LatLongDistancePostingSource, swig_delete_LatLongDistancePostingSource, swig_Xapian_LatLongDistancePostingSource_methods, swig_Xapian_LatLongDistancePostingSource_attributes, swig_Xapian_LatLongDistancePostingSource_bases,swig_Xapian_LatLongDistancePostingSource_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
33069 SWIGINTERN int
_wrap_new_LatLongDistanceKeyMaker__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])33070 _wrap_new_LatLongDistanceKeyMaker__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
33071   Xapian::valueno arg1 ;
33072   Xapian::LatLongCoords *arg2 = 0 ;
33073   Xapian::LatLongMetric *arg3 = 0 ;
33074   double arg4 ;
33075   unsigned int val1 ;
33076   int ecode1 = 0 ;
33077   void *argp2 ;
33078   int res2 = 0 ;
33079   void *argp3 ;
33080   int res3 = 0 ;
33081   double val4 ;
33082   int ecode4 = 0 ;
33083   Xapian::LatLongDistanceKeyMaker *result = 0 ;
33084 
33085   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::new_LatLongDistanceKeyMaker slot_ centre_ metric_ defdistance ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
33086   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
33087   if (!SWIG_IsOK(ecode1)) {
33088     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "1"" of type '" "Xapian::valueno""'");
33089   }
33090   arg1 = static_cast< Xapian::valueno >(val1);
33091   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__LatLongCoords,  0 );
33092   if (!SWIG_IsOK(res2)) {
33093     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
33094   }
33095   if (!argp2) {
33096     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistanceKeyMaker" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
33097   }
33098   arg2 = reinterpret_cast< Xapian::LatLongCoords * >(argp2);
33099   res3 = SWIG_ConvertPtr(objv[3], &argp3, SWIGTYPE_p_Xapian__LatLongMetric,  0 );
33100   if (!SWIG_IsOK(res3)) {
33101     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
33102   }
33103   if (!argp3) {
33104     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistanceKeyMaker" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
33105   }
33106   arg3 = reinterpret_cast< Xapian::LatLongMetric * >(argp3);
33107   ecode4 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
33108   if (!SWIG_IsOK(ecode4)) {
33109     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "4"" of type '" "double""'");
33110   }
33111   arg4 = static_cast< double >(val4);
33112   {
33113     try {
33114       result = (Xapian::LatLongDistanceKeyMaker *)new Xapian::LatLongDistanceKeyMaker(arg1,(Xapian::LatLongCoords const &)*arg2,(Xapian::LatLongMetric const &)*arg3,arg4);
33115     } catch (const Xapian::Error &e) {
33116       return XapianTclHandleError(interp, e);
33117     } catch (...) {
33118       return XapianTclHandleError(interp);
33119     }
33120   }
33121   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongDistanceKeyMaker,0));
33122   return TCL_OK;
33123 fail:
33124   return TCL_ERROR;
33125 }
33126 
33127 
33128 SWIGINTERN int
_wrap_new_LatLongDistanceKeyMaker__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])33129 _wrap_new_LatLongDistanceKeyMaker__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
33130   Xapian::valueno arg1 ;
33131   Xapian::LatLongCoords *arg2 = 0 ;
33132   Xapian::LatLongMetric *arg3 = 0 ;
33133   unsigned int val1 ;
33134   int ecode1 = 0 ;
33135   void *argp2 ;
33136   int res2 = 0 ;
33137   void *argp3 ;
33138   int res3 = 0 ;
33139   Xapian::LatLongDistanceKeyMaker *result = 0 ;
33140 
33141   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::new_LatLongDistanceKeyMaker slot_ centre_ metric_ ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
33142   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
33143   if (!SWIG_IsOK(ecode1)) {
33144     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "1"" of type '" "Xapian::valueno""'");
33145   }
33146   arg1 = static_cast< Xapian::valueno >(val1);
33147   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__LatLongCoords,  0 );
33148   if (!SWIG_IsOK(res2)) {
33149     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
33150   }
33151   if (!argp2) {
33152     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistanceKeyMaker" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
33153   }
33154   arg2 = reinterpret_cast< Xapian::LatLongCoords * >(argp2);
33155   res3 = SWIG_ConvertPtr(objv[3], &argp3, SWIGTYPE_p_Xapian__LatLongMetric,  0 );
33156   if (!SWIG_IsOK(res3)) {
33157     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
33158   }
33159   if (!argp3) {
33160     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistanceKeyMaker" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
33161   }
33162   arg3 = reinterpret_cast< Xapian::LatLongMetric * >(argp3);
33163   {
33164     try {
33165       result = (Xapian::LatLongDistanceKeyMaker *)new Xapian::LatLongDistanceKeyMaker(arg1,(Xapian::LatLongCoords const &)*arg2,(Xapian::LatLongMetric const &)*arg3);
33166     } catch (const Xapian::Error &e) {
33167       return XapianTclHandleError(interp, e);
33168     } catch (...) {
33169       return XapianTclHandleError(interp);
33170     }
33171   }
33172   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongDistanceKeyMaker,0));
33173   return TCL_OK;
33174 fail:
33175   return TCL_ERROR;
33176 }
33177 
33178 
33179 SWIGINTERN int
_wrap_new_LatLongDistanceKeyMaker__SWIG_2(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])33180 _wrap_new_LatLongDistanceKeyMaker__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
33181   Xapian::valueno arg1 ;
33182   Xapian::LatLongCoords *arg2 = 0 ;
33183   unsigned int val1 ;
33184   int ecode1 = 0 ;
33185   void *argp2 ;
33186   int res2 = 0 ;
33187   Xapian::LatLongDistanceKeyMaker *result = 0 ;
33188 
33189   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::new_LatLongDistanceKeyMaker slot_ centre_ ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
33190   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
33191   if (!SWIG_IsOK(ecode1)) {
33192     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "1"" of type '" "Xapian::valueno""'");
33193   }
33194   arg1 = static_cast< Xapian::valueno >(val1);
33195   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__LatLongCoords,  0 );
33196   if (!SWIG_IsOK(res2)) {
33197     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
33198   }
33199   if (!argp2) {
33200     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistanceKeyMaker" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
33201   }
33202   arg2 = reinterpret_cast< Xapian::LatLongCoords * >(argp2);
33203   {
33204     try {
33205       result = (Xapian::LatLongDistanceKeyMaker *)new Xapian::LatLongDistanceKeyMaker(arg1,(Xapian::LatLongCoords const &)*arg2);
33206     } catch (const Xapian::Error &e) {
33207       return XapianTclHandleError(interp, e);
33208     } catch (...) {
33209       return XapianTclHandleError(interp);
33210     }
33211   }
33212   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongDistanceKeyMaker,0));
33213   return TCL_OK;
33214 fail:
33215   return TCL_ERROR;
33216 }
33217 
33218 
33219 SWIGINTERN int
_wrap_new_LatLongDistanceKeyMaker__SWIG_3(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])33220 _wrap_new_LatLongDistanceKeyMaker__SWIG_3(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
33221   Xapian::valueno arg1 ;
33222   Xapian::LatLongCoord *arg2 = 0 ;
33223   Xapian::LatLongMetric *arg3 = 0 ;
33224   double arg4 ;
33225   unsigned int val1 ;
33226   int ecode1 = 0 ;
33227   void *argp2 ;
33228   int res2 = 0 ;
33229   void *argp3 ;
33230   int res3 = 0 ;
33231   double val4 ;
33232   int ecode4 = 0 ;
33233   Xapian::LatLongDistanceKeyMaker *result = 0 ;
33234 
33235   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::new_LatLongDistanceKeyMaker slot_ centre_ metric_ defdistance ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
33236   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
33237   if (!SWIG_IsOK(ecode1)) {
33238     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "1"" of type '" "Xapian::valueno""'");
33239   }
33240   arg1 = static_cast< Xapian::valueno >(val1);
33241   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__LatLongCoord,  0 );
33242   if (!SWIG_IsOK(res2)) {
33243     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "2"" of type '" "Xapian::LatLongCoord const &""'");
33244   }
33245   if (!argp2) {
33246     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistanceKeyMaker" "', argument " "2"" of type '" "Xapian::LatLongCoord const &""'");
33247   }
33248   arg2 = reinterpret_cast< Xapian::LatLongCoord * >(argp2);
33249   res3 = SWIG_ConvertPtr(objv[3], &argp3, SWIGTYPE_p_Xapian__LatLongMetric,  0 );
33250   if (!SWIG_IsOK(res3)) {
33251     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
33252   }
33253   if (!argp3) {
33254     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistanceKeyMaker" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
33255   }
33256   arg3 = reinterpret_cast< Xapian::LatLongMetric * >(argp3);
33257   ecode4 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
33258   if (!SWIG_IsOK(ecode4)) {
33259     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "4"" of type '" "double""'");
33260   }
33261   arg4 = static_cast< double >(val4);
33262   {
33263     try {
33264       result = (Xapian::LatLongDistanceKeyMaker *)new Xapian::LatLongDistanceKeyMaker(arg1,(Xapian::LatLongCoord const &)*arg2,(Xapian::LatLongMetric const &)*arg3,arg4);
33265     } catch (const Xapian::Error &e) {
33266       return XapianTclHandleError(interp, e);
33267     } catch (...) {
33268       return XapianTclHandleError(interp);
33269     }
33270   }
33271   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongDistanceKeyMaker,0));
33272   return TCL_OK;
33273 fail:
33274   return TCL_ERROR;
33275 }
33276 
33277 
33278 SWIGINTERN int
_wrap_new_LatLongDistanceKeyMaker__SWIG_4(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])33279 _wrap_new_LatLongDistanceKeyMaker__SWIG_4(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
33280   Xapian::valueno arg1 ;
33281   Xapian::LatLongCoord *arg2 = 0 ;
33282   Xapian::LatLongMetric *arg3 = 0 ;
33283   unsigned int val1 ;
33284   int ecode1 = 0 ;
33285   void *argp2 ;
33286   int res2 = 0 ;
33287   void *argp3 ;
33288   int res3 = 0 ;
33289   Xapian::LatLongDistanceKeyMaker *result = 0 ;
33290 
33291   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::new_LatLongDistanceKeyMaker slot_ centre_ metric_ ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
33292   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
33293   if (!SWIG_IsOK(ecode1)) {
33294     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "1"" of type '" "Xapian::valueno""'");
33295   }
33296   arg1 = static_cast< Xapian::valueno >(val1);
33297   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__LatLongCoord,  0 );
33298   if (!SWIG_IsOK(res2)) {
33299     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "2"" of type '" "Xapian::LatLongCoord const &""'");
33300   }
33301   if (!argp2) {
33302     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistanceKeyMaker" "', argument " "2"" of type '" "Xapian::LatLongCoord const &""'");
33303   }
33304   arg2 = reinterpret_cast< Xapian::LatLongCoord * >(argp2);
33305   res3 = SWIG_ConvertPtr(objv[3], &argp3, SWIGTYPE_p_Xapian__LatLongMetric,  0 );
33306   if (!SWIG_IsOK(res3)) {
33307     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
33308   }
33309   if (!argp3) {
33310     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistanceKeyMaker" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
33311   }
33312   arg3 = reinterpret_cast< Xapian::LatLongMetric * >(argp3);
33313   {
33314     try {
33315       result = (Xapian::LatLongDistanceKeyMaker *)new Xapian::LatLongDistanceKeyMaker(arg1,(Xapian::LatLongCoord const &)*arg2,(Xapian::LatLongMetric const &)*arg3);
33316     } catch (const Xapian::Error &e) {
33317       return XapianTclHandleError(interp, e);
33318     } catch (...) {
33319       return XapianTclHandleError(interp);
33320     }
33321   }
33322   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongDistanceKeyMaker,0));
33323   return TCL_OK;
33324 fail:
33325   return TCL_ERROR;
33326 }
33327 
33328 
33329 SWIGINTERN int
_wrap_new_LatLongDistanceKeyMaker__SWIG_5(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])33330 _wrap_new_LatLongDistanceKeyMaker__SWIG_5(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
33331   Xapian::valueno arg1 ;
33332   Xapian::LatLongCoord *arg2 = 0 ;
33333   unsigned int val1 ;
33334   int ecode1 = 0 ;
33335   void *argp2 ;
33336   int res2 = 0 ;
33337   Xapian::LatLongDistanceKeyMaker *result = 0 ;
33338 
33339   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::new_LatLongDistanceKeyMaker slot_ centre_ ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
33340   ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
33341   if (!SWIG_IsOK(ecode1)) {
33342     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "1"" of type '" "Xapian::valueno""'");
33343   }
33344   arg1 = static_cast< Xapian::valueno >(val1);
33345   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__LatLongCoord,  0 );
33346   if (!SWIG_IsOK(res2)) {
33347     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "2"" of type '" "Xapian::LatLongCoord const &""'");
33348   }
33349   if (!argp2) {
33350     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistanceKeyMaker" "', argument " "2"" of type '" "Xapian::LatLongCoord const &""'");
33351   }
33352   arg2 = reinterpret_cast< Xapian::LatLongCoord * >(argp2);
33353   {
33354     try {
33355       result = (Xapian::LatLongDistanceKeyMaker *)new Xapian::LatLongDistanceKeyMaker(arg1,(Xapian::LatLongCoord const &)*arg2);
33356     } catch (const Xapian::Error &e) {
33357       return XapianTclHandleError(interp, e);
33358     } catch (...) {
33359       return XapianTclHandleError(interp);
33360     }
33361   }
33362   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongDistanceKeyMaker,0));
33363   return TCL_OK;
33364 fail:
33365   return TCL_ERROR;
33366 }
33367 
33368 
33369 SWIGINTERN int
_wrap_new_LatLongDistanceKeyMaker(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])33370 _wrap_new_LatLongDistanceKeyMaker(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
33371   Tcl_Obj *CONST *argv = objv+1;
33372   int argc = objc-1;
33373   if (argc == 2) {
33374     int _v;
33375     {
33376       int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
33377       _v = SWIG_CheckState(res);
33378     }
33379     if (_v) {
33380       void *vptr = 0;
33381       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Xapian__LatLongCoords, 0);
33382       _v = SWIG_CheckState(res);
33383       if (_v) {
33384         return _wrap_new_LatLongDistanceKeyMaker__SWIG_2(clientData, interp, objc, argv - 1);
33385       }
33386     }
33387   }
33388   if (argc == 2) {
33389     int _v;
33390     {
33391       int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
33392       _v = SWIG_CheckState(res);
33393     }
33394     if (_v) {
33395       void *vptr = 0;
33396       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Xapian__LatLongCoord, 0);
33397       _v = SWIG_CheckState(res);
33398       if (_v) {
33399         return _wrap_new_LatLongDistanceKeyMaker__SWIG_5(clientData, interp, objc, argv - 1);
33400       }
33401     }
33402   }
33403   if (argc == 3) {
33404     int _v;
33405     {
33406       int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
33407       _v = SWIG_CheckState(res);
33408     }
33409     if (_v) {
33410       void *vptr = 0;
33411       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Xapian__LatLongCoord, 0);
33412       _v = SWIG_CheckState(res);
33413       if (_v) {
33414         void *vptr = 0;
33415         int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_Xapian__LatLongMetric, 0);
33416         _v = SWIG_CheckState(res);
33417         if (_v) {
33418           return _wrap_new_LatLongDistanceKeyMaker__SWIG_4(clientData, interp, objc, argv - 1);
33419         }
33420       }
33421     }
33422   }
33423   if (argc == 3) {
33424     int _v;
33425     {
33426       int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
33427       _v = SWIG_CheckState(res);
33428     }
33429     if (_v) {
33430       void *vptr = 0;
33431       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Xapian__LatLongCoords, 0);
33432       _v = SWIG_CheckState(res);
33433       if (_v) {
33434         void *vptr = 0;
33435         int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_Xapian__LatLongMetric, 0);
33436         _v = SWIG_CheckState(res);
33437         if (_v) {
33438           return _wrap_new_LatLongDistanceKeyMaker__SWIG_1(clientData, interp, objc, argv - 1);
33439         }
33440       }
33441     }
33442   }
33443   if (argc == 4) {
33444     int _v;
33445     {
33446       int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
33447       _v = SWIG_CheckState(res);
33448     }
33449     if (_v) {
33450       void *vptr = 0;
33451       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Xapian__LatLongCoords, 0);
33452       _v = SWIG_CheckState(res);
33453       if (_v) {
33454         void *vptr = 0;
33455         int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_Xapian__LatLongMetric, 0);
33456         _v = SWIG_CheckState(res);
33457         if (_v) {
33458           {
33459             int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
33460             _v = SWIG_CheckState(res);
33461           }
33462           if (_v) {
33463             return _wrap_new_LatLongDistanceKeyMaker__SWIG_0(clientData, interp, objc, argv - 1);
33464           }
33465         }
33466       }
33467     }
33468   }
33469   if (argc == 4) {
33470     int _v;
33471     {
33472       int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
33473       _v = SWIG_CheckState(res);
33474     }
33475     if (_v) {
33476       void *vptr = 0;
33477       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Xapian__LatLongCoord, 0);
33478       _v = SWIG_CheckState(res);
33479       if (_v) {
33480         void *vptr = 0;
33481         int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_Xapian__LatLongMetric, 0);
33482         _v = SWIG_CheckState(res);
33483         if (_v) {
33484           {
33485             int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
33486             _v = SWIG_CheckState(res);
33487           }
33488           if (_v) {
33489             return _wrap_new_LatLongDistanceKeyMaker__SWIG_3(clientData, interp, objc, argv - 1);
33490           }
33491         }
33492       }
33493     }
33494   }
33495 
33496   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_LatLongDistanceKeyMaker'.\n"
33497     "  Possible C/C++ prototypes are:\n"
33498     "    Xapian::LatLongDistanceKeyMaker::LatLongDistanceKeyMaker(Xapian::valueno,Xapian::LatLongCoords const &,Xapian::LatLongMetric const &,double)\n"
33499     "    Xapian::LatLongDistanceKeyMaker::LatLongDistanceKeyMaker(Xapian::valueno,Xapian::LatLongCoords const &,Xapian::LatLongMetric const &)\n"
33500     "    Xapian::LatLongDistanceKeyMaker::LatLongDistanceKeyMaker(Xapian::valueno,Xapian::LatLongCoords const &)\n"
33501     "    Xapian::LatLongDistanceKeyMaker::LatLongDistanceKeyMaker(Xapian::valueno,Xapian::LatLongCoord const &,Xapian::LatLongMetric const &,double)\n"
33502     "    Xapian::LatLongDistanceKeyMaker::LatLongDistanceKeyMaker(Xapian::valueno,Xapian::LatLongCoord const &,Xapian::LatLongMetric const &)\n"
33503     "    Xapian::LatLongDistanceKeyMaker::LatLongDistanceKeyMaker(Xapian::valueno,Xapian::LatLongCoord const &)\n", TCL_STATIC);
33504   return TCL_ERROR;
33505 }
33506 
33507 
33508 SWIGINTERN int
_wrap_delete_LatLongDistanceKeyMaker(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])33509 _wrap_delete_LatLongDistanceKeyMaker(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
33510   Xapian::LatLongDistanceKeyMaker *arg1 = (Xapian::LatLongDistanceKeyMaker *) 0 ;
33511   void *argp1 = 0 ;
33512   int res1 = 0 ;
33513 
33514   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_LatLongDistanceKeyMaker self ",(void *)0) == TCL_ERROR) SWIG_fail;
33515   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__LatLongDistanceKeyMaker, SWIG_POINTER_DISOWN |  0 );
33516   if (!SWIG_IsOK(res1)) {
33517     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LatLongDistanceKeyMaker" "', argument " "1"" of type '" "Xapian::LatLongDistanceKeyMaker *""'");
33518   }
33519   arg1 = reinterpret_cast< Xapian::LatLongDistanceKeyMaker * >(argp1);
33520   {
33521     try {
33522       delete arg1;
33523     } catch (const Xapian::Error &e) {
33524       return XapianTclHandleError(interp, e);
33525     } catch (...) {
33526       return XapianTclHandleError(interp);
33527     }
33528   }
33529 
33530   return TCL_OK;
33531 fail:
33532   return TCL_ERROR;
33533 }
33534 
33535 
33536 SWIGINTERN int
_wrap_LatLongDistanceKeyMaker_apply(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])33537 _wrap_LatLongDistanceKeyMaker_apply(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
33538   Xapian::LatLongDistanceKeyMaker *arg1 = (Xapian::LatLongDistanceKeyMaker *) 0 ;
33539   Xapian::Document *arg2 = 0 ;
33540   void *argp1 = 0 ;
33541   int res1 = 0 ;
33542   void *argp2 ;
33543   int res2 = 0 ;
33544   std::string result;
33545 
33546   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::LatLongDistanceKeyMaker_apply self doc ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
33547   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__LatLongDistanceKeyMaker, 0 |  0 );
33548   if (!SWIG_IsOK(res1)) {
33549     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongDistanceKeyMaker_apply" "', argument " "1"" of type '" "Xapian::LatLongDistanceKeyMaker const *""'");
33550   }
33551   arg1 = reinterpret_cast< Xapian::LatLongDistanceKeyMaker * >(argp1);
33552   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__Document,  0 );
33553   if (!SWIG_IsOK(res2)) {
33554     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LatLongDistanceKeyMaker_apply" "', argument " "2"" of type '" "Xapian::Document const &""'");
33555   }
33556   if (!argp2) {
33557     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LatLongDistanceKeyMaker_apply" "', argument " "2"" of type '" "Xapian::Document const &""'");
33558   }
33559   arg2 = reinterpret_cast< Xapian::Document * >(argp2);
33560   {
33561     try {
33562       result = ((Xapian::LatLongDistanceKeyMaker const *)arg1)->operator ()((Xapian::Document const &)*arg2);
33563     } catch (const Xapian::Error &e) {
33564       return XapianTclHandleError(interp, e);
33565     } catch (...) {
33566       return XapianTclHandleError(interp);
33567     }
33568   }
33569   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
33570   return TCL_OK;
33571 fail:
33572   return TCL_ERROR;
33573 }
33574 
33575 
swig_delete_LatLongDistanceKeyMaker(void * obj)33576 SWIGINTERN void swig_delete_LatLongDistanceKeyMaker(void *obj) {
33577 Xapian::LatLongDistanceKeyMaker *arg1 = (Xapian::LatLongDistanceKeyMaker *) obj;
33578 delete arg1;
33579 }
33580 static swig_method swig_Xapian_LatLongDistanceKeyMaker_methods[] = {
33581     {"apply", _wrap_LatLongDistanceKeyMaker_apply},
33582     {0,0}
33583 };
33584 static swig_attribute swig_Xapian_LatLongDistanceKeyMaker_attributes[] = {
33585     {0,0,0}
33586 };
33587 static swig_class *swig_Xapian_LatLongDistanceKeyMaker_bases[] = {0,0};
33588 static const char * swig_Xapian_LatLongDistanceKeyMaker_base_names[] = {"Xapian::KeyMaker *",0};
33589 static swig_class _wrap_class_Xapian_LatLongDistanceKeyMaker = { "LatLongDistanceKeyMaker", &SWIGTYPE_p_Xapian__LatLongDistanceKeyMaker,_wrap_new_LatLongDistanceKeyMaker, swig_delete_LatLongDistanceKeyMaker, swig_Xapian_LatLongDistanceKeyMaker_methods, swig_Xapian_LatLongDistanceKeyMaker_attributes, swig_Xapian_LatLongDistanceKeyMaker_bases,swig_Xapian_LatLongDistanceKeyMaker_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
33590 SWIGINTERN int
_wrap_Database_add_database(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])33591 _wrap_Database_add_database(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
33592   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
33593   Xapian::Database *arg2 = 0 ;
33594   void *argp1 = 0 ;
33595   int res1 = 0 ;
33596   void *argp2 ;
33597   int res2 = 0 ;
33598 
33599   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Database_add_database self database ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
33600   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
33601   if (!SWIG_IsOK(res1)) {
33602     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_add_database" "', argument " "1"" of type '" "Xapian::Database *""'");
33603   }
33604   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
33605   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__Database,  0 );
33606   if (!SWIG_IsOK(res2)) {
33607     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_add_database" "', argument " "2"" of type '" "Xapian::Database const &""'");
33608   }
33609   if (!argp2) {
33610     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_add_database" "', argument " "2"" of type '" "Xapian::Database const &""'");
33611   }
33612   arg2 = reinterpret_cast< Xapian::Database * >(argp2);
33613   {
33614     try {
33615       (arg1)->add_database((Xapian::Database const &)*arg2);
33616     } catch (const Xapian::Error &e) {
33617       return XapianTclHandleError(interp, e);
33618     } catch (...) {
33619       return XapianTclHandleError(interp);
33620     }
33621   }
33622 
33623   return TCL_OK;
33624 fail:
33625   return TCL_ERROR;
33626 }
33627 
33628 
33629 SWIGINTERN int
_wrap_Database_size(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])33630 _wrap_Database_size(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
33631   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
33632   void *argp1 = 0 ;
33633   int res1 = 0 ;
33634   size_t result;
33635 
33636   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Database_size self ",(void *)0) == TCL_ERROR) SWIG_fail;
33637   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
33638   if (!SWIG_IsOK(res1)) {
33639     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_size" "', argument " "1"" of type '" "Xapian::Database const *""'");
33640   }
33641   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
33642   {
33643     try {
33644       result = ((Xapian::Database const *)arg1)->size();
33645     } catch (const Xapian::Error &e) {
33646       return XapianTclHandleError(interp, e);
33647     } catch (...) {
33648       return XapianTclHandleError(interp);
33649     }
33650   }
33651   Tcl_SetObjResult(interp,SWIG_From_size_t(static_cast< size_t >(result)));
33652   return TCL_OK;
33653 fail:
33654   return TCL_ERROR;
33655 }
33656 
33657 
33658 SWIGINTERN int
_wrap_new_Database__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])33659 _wrap_new_Database__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
33660   Xapian::Database *result = 0 ;
33661 
33662   if (SWIG_GetArgs(interp, objc, objv,":xapian::new_Database ") == TCL_ERROR) SWIG_fail;
33663   {
33664     try {
33665       result = (Xapian::Database *)new Xapian::Database();
33666     } catch (const Xapian::Error &e) {
33667       return XapianTclHandleError(interp, e);
33668     } catch (...) {
33669       return XapianTclHandleError(interp);
33670     }
33671   }
33672   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Database,0));
33673   return TCL_OK;
33674 fail:
33675   return TCL_ERROR;
33676 }
33677 
33678 
33679 SWIGINTERN int
_wrap_new_Database__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])33680 _wrap_new_Database__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
33681   std::string *arg1 = 0 ;
33682   int arg2 ;
33683   int res1 = SWIG_OLDOBJ ;
33684   int val2 ;
33685   int ecode2 = 0 ;
33686   Xapian::Database *result = 0 ;
33687 
33688   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::new_Database path flags ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
33689   {
33690     std::string *ptr = (std::string *)0;
33691     res1 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[1], &ptr);
33692     if (!SWIG_IsOK(res1)) {
33693       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Database" "', argument " "1"" of type '" "std::string const &""'");
33694     }
33695     if (!ptr) {
33696       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Database" "', argument " "1"" of type '" "std::string const &""'");
33697     }
33698     arg1 = ptr;
33699   }
33700   ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
33701   if (!SWIG_IsOK(ecode2)) {
33702     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Database" "', argument " "2"" of type '" "int""'");
33703   }
33704   arg2 = static_cast< int >(val2);
33705   {
33706     try {
33707       result = (Xapian::Database *)new Xapian::Database((std::string const &)*arg1,arg2);
33708     } catch (const Xapian::Error &e) {
33709       return XapianTclHandleError(interp, e);
33710     } catch (...) {
33711       return XapianTclHandleError(interp);
33712     }
33713   }
33714   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Database,0));
33715   if (SWIG_IsNewObj(res1)) delete arg1;
33716   return TCL_OK;
33717 fail:
33718   if (SWIG_IsNewObj(res1)) delete arg1;
33719   return TCL_ERROR;
33720 }
33721 
33722 
33723 SWIGINTERN int
_wrap_new_Database__SWIG_2(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])33724 _wrap_new_Database__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
33725   std::string *arg1 = 0 ;
33726   int res1 = SWIG_OLDOBJ ;
33727   Xapian::Database *result = 0 ;
33728 
33729   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_Database path ",(void *)0) == TCL_ERROR) SWIG_fail;
33730   {
33731     std::string *ptr = (std::string *)0;
33732     res1 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[1], &ptr);
33733     if (!SWIG_IsOK(res1)) {
33734       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Database" "', argument " "1"" of type '" "std::string const &""'");
33735     }
33736     if (!ptr) {
33737       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Database" "', argument " "1"" of type '" "std::string const &""'");
33738     }
33739     arg1 = ptr;
33740   }
33741   {
33742     try {
33743       result = (Xapian::Database *)new Xapian::Database((std::string const &)*arg1);
33744     } catch (const Xapian::Error &e) {
33745       return XapianTclHandleError(interp, e);
33746     } catch (...) {
33747       return XapianTclHandleError(interp);
33748     }
33749   }
33750   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Database,0));
33751   if (SWIG_IsNewObj(res1)) delete arg1;
33752   return TCL_OK;
33753 fail:
33754   if (SWIG_IsNewObj(res1)) delete arg1;
33755   return TCL_ERROR;
33756 }
33757 
33758 
33759 SWIGINTERN int
_wrap_new_Database__SWIG_3(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])33760 _wrap_new_Database__SWIG_3(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
33761   int arg1 ;
33762   int arg2 ;
33763   int val1 ;
33764   int ecode1 = 0 ;
33765   int val2 ;
33766   int ecode2 = 0 ;
33767   Xapian::Database *result = 0 ;
33768 
33769   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::new_Database fd flags ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
33770   ecode1 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
33771   if (!SWIG_IsOK(ecode1)) {
33772     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Database" "', argument " "1"" of type '" "int""'");
33773   }
33774   arg1 = static_cast< int >(val1);
33775   ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
33776   if (!SWIG_IsOK(ecode2)) {
33777     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Database" "', argument " "2"" of type '" "int""'");
33778   }
33779   arg2 = static_cast< int >(val2);
33780   {
33781     try {
33782       result = (Xapian::Database *)new Xapian::Database(arg1,arg2);
33783     } catch (const Xapian::Error &e) {
33784       return XapianTclHandleError(interp, e);
33785     } catch (...) {
33786       return XapianTclHandleError(interp);
33787     }
33788   }
33789   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Database,0));
33790   return TCL_OK;
33791 fail:
33792   return TCL_ERROR;
33793 }
33794 
33795 
33796 SWIGINTERN int
_wrap_new_Database__SWIG_4(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])33797 _wrap_new_Database__SWIG_4(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
33798   int arg1 ;
33799   int val1 ;
33800   int ecode1 = 0 ;
33801   Xapian::Database *result = 0 ;
33802 
33803   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_Database fd ",(void *)0) == TCL_ERROR) SWIG_fail;
33804   ecode1 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
33805   if (!SWIG_IsOK(ecode1)) {
33806     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Database" "', argument " "1"" of type '" "int""'");
33807   }
33808   arg1 = static_cast< int >(val1);
33809   {
33810     try {
33811       result = (Xapian::Database *)new Xapian::Database(arg1);
33812     } catch (const Xapian::Error &e) {
33813       return XapianTclHandleError(interp, e);
33814     } catch (...) {
33815       return XapianTclHandleError(interp);
33816     }
33817   }
33818   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Database,0));
33819   return TCL_OK;
33820 fail:
33821   return TCL_ERROR;
33822 }
33823 
33824 
33825 SWIGINTERN int
_wrap_delete_Database(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])33826 _wrap_delete_Database(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
33827   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
33828   void *argp1 = 0 ;
33829   int res1 = 0 ;
33830 
33831   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_Database self ",(void *)0) == TCL_ERROR) SWIG_fail;
33832   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, SWIG_POINTER_DISOWN |  0 );
33833   if (!SWIG_IsOK(res1)) {
33834     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Database" "', argument " "1"" of type '" "Xapian::Database *""'");
33835   }
33836   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
33837   {
33838     try {
33839       delete arg1;
33840     } catch (const Xapian::Error &e) {
33841       return XapianTclHandleError(interp, e);
33842     } catch (...) {
33843       return XapianTclHandleError(interp);
33844     }
33845   }
33846 
33847   return TCL_OK;
33848 fail:
33849   return TCL_ERROR;
33850 }
33851 
33852 
33853 SWIGINTERN int
_wrap_new_Database__SWIG_5(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])33854 _wrap_new_Database__SWIG_5(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
33855   Xapian::Database *arg1 = 0 ;
33856   void *argp1 ;
33857   int res1 = 0 ;
33858   Xapian::Database *result = 0 ;
33859 
33860   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_Database other ",(void *)0) == TCL_ERROR) SWIG_fail;
33861   res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_Xapian__Database,  0 );
33862   if (!SWIG_IsOK(res1)) {
33863     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Database" "', argument " "1"" of type '" "Xapian::Database const &""'");
33864   }
33865   if (!argp1) {
33866     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Database" "', argument " "1"" of type '" "Xapian::Database const &""'");
33867   }
33868   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
33869   {
33870     try {
33871       result = (Xapian::Database *)new Xapian::Database((Xapian::Database const &)*arg1);
33872     } catch (const Xapian::Error &e) {
33873       return XapianTclHandleError(interp, e);
33874     } catch (...) {
33875       return XapianTclHandleError(interp);
33876     }
33877   }
33878   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Database,0));
33879   return TCL_OK;
33880 fail:
33881   return TCL_ERROR;
33882 }
33883 
33884 
33885 SWIGINTERN int
_wrap_new_Database(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])33886 _wrap_new_Database(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
33887   Tcl_Obj *CONST *argv = objv+1;
33888   int argc = objc-1;
33889   if (argc == 0) {
33890     return _wrap_new_Database__SWIG_0(clientData, interp, objc, argv - 1);
33891   }
33892   if (argc == 1) {
33893     int _v;
33894     void *vptr = 0;
33895     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Database, 0);
33896     _v = SWIG_CheckState(res);
33897     if (_v) {
33898       return _wrap_new_Database__SWIG_5(clientData, interp, objc, argv - 1);
33899     }
33900   }
33901   if (argc == 1) {
33902     int _v;
33903     {
33904       int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
33905       _v = SWIG_CheckState(res);
33906     }
33907     if (_v) {
33908       return _wrap_new_Database__SWIG_4(clientData, interp, objc, argv - 1);
33909     }
33910   }
33911   if (argc == 1) {
33912     int _v;
33913     int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[0], (std::string**)(0));
33914     _v = SWIG_CheckState(res);
33915     if (_v) {
33916       return _wrap_new_Database__SWIG_2(clientData, interp, objc, argv - 1);
33917     }
33918   }
33919   if (argc == 2) {
33920     int _v;
33921     {
33922       int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
33923       _v = SWIG_CheckState(res);
33924     }
33925     if (_v) {
33926       {
33927         int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
33928         _v = SWIG_CheckState(res);
33929       }
33930       if (_v) {
33931         return _wrap_new_Database__SWIG_3(clientData, interp, objc, argv - 1);
33932       }
33933     }
33934   }
33935   if (argc == 2) {
33936     int _v;
33937     int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[0], (std::string**)(0));
33938     _v = SWIG_CheckState(res);
33939     if (_v) {
33940       {
33941         int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
33942         _v = SWIG_CheckState(res);
33943       }
33944       if (_v) {
33945         return _wrap_new_Database__SWIG_1(clientData, interp, objc, argv - 1);
33946       }
33947     }
33948   }
33949 
33950   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_Database'.\n"
33951     "  Possible C/C++ prototypes are:\n"
33952     "    Xapian::Database::Database()\n"
33953     "    Xapian::Database::Database(std::string const &,int)\n"
33954     "    Xapian::Database::Database(std::string const &)\n"
33955     "    Xapian::Database::Database(int,int)\n"
33956     "    Xapian::Database::Database(int)\n"
33957     "    Xapian::Database::Database(Xapian::Database const &)\n", TCL_STATIC);
33958   return TCL_ERROR;
33959 }
33960 
33961 
33962 SWIGINTERN int
_wrap_Database_reopen(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])33963 _wrap_Database_reopen(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
33964   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
33965   void *argp1 = 0 ;
33966   int res1 = 0 ;
33967   bool result;
33968 
33969   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Database_reopen self ",(void *)0) == TCL_ERROR) SWIG_fail;
33970   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
33971   if (!SWIG_IsOK(res1)) {
33972     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_reopen" "', argument " "1"" of type '" "Xapian::Database *""'");
33973   }
33974   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
33975   {
33976     try {
33977       result = (bool)(arg1)->reopen();
33978     } catch (const Xapian::Error &e) {
33979       return XapianTclHandleError(interp, e);
33980     } catch (...) {
33981       return XapianTclHandleError(interp);
33982     }
33983   }
33984   Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
33985   return TCL_OK;
33986 fail:
33987   return TCL_ERROR;
33988 }
33989 
33990 
33991 SWIGINTERN int
_wrap_Database_close(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])33992 _wrap_Database_close(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
33993   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
33994   void *argp1 = 0 ;
33995   int res1 = 0 ;
33996 
33997   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Database_close self ",(void *)0) == TCL_ERROR) SWIG_fail;
33998   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
33999   if (!SWIG_IsOK(res1)) {
34000     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_close" "', argument " "1"" of type '" "Xapian::Database *""'");
34001   }
34002   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
34003   {
34004     try {
34005       (arg1)->close();
34006     } catch (const Xapian::Error &e) {
34007       return XapianTclHandleError(interp, e);
34008     } catch (...) {
34009       return XapianTclHandleError(interp);
34010     }
34011   }
34012 
34013   return TCL_OK;
34014 fail:
34015   return TCL_ERROR;
34016 }
34017 
34018 
34019 SWIGINTERN int
_wrap_Database_get_description(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])34020 _wrap_Database_get_description(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
34021   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
34022   void *argp1 = 0 ;
34023   int res1 = 0 ;
34024   std::string result;
34025 
34026   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Database_get_description self ",(void *)0) == TCL_ERROR) SWIG_fail;
34027   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
34028   if (!SWIG_IsOK(res1)) {
34029     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_description" "', argument " "1"" of type '" "Xapian::Database const *""'");
34030   }
34031   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
34032   {
34033     try {
34034       result = ((Xapian::Database const *)arg1)->get_description();
34035     } catch (const Xapian::Error &e) {
34036       return XapianTclHandleError(interp, e);
34037     } catch (...) {
34038       return XapianTclHandleError(interp);
34039     }
34040   }
34041   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
34042   return TCL_OK;
34043 fail:
34044   return TCL_ERROR;
34045 }
34046 
34047 
34048 SWIGINTERN int
_wrap_Database_postlist_begin(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])34049 _wrap_Database_postlist_begin(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
34050   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
34051   std::string *arg2 = 0 ;
34052   void *argp1 = 0 ;
34053   int res1 = 0 ;
34054   int res2 = SWIG_OLDOBJ ;
34055   Xapian::PostingIterator result;
34056 
34057   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Database_postlist_begin self tname ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
34058   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
34059   if (!SWIG_IsOK(res1)) {
34060     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_postlist_begin" "', argument " "1"" of type '" "Xapian::Database const *""'");
34061   }
34062   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
34063   {
34064     std::string *ptr = (std::string *)0;
34065     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
34066     if (!SWIG_IsOK(res2)) {
34067       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_postlist_begin" "', argument " "2"" of type '" "std::string const &""'");
34068     }
34069     if (!ptr) {
34070       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_postlist_begin" "', argument " "2"" of type '" "std::string const &""'");
34071     }
34072     arg2 = ptr;
34073   }
34074   {
34075     try {
34076       result = ((Xapian::Database const *)arg1)->postlist_begin((std::string const &)*arg2);
34077     } catch (const Xapian::Error &e) {
34078       return XapianTclHandleError(interp, e);
34079     } catch (...) {
34080       return XapianTclHandleError(interp);
34081     }
34082   }
34083   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::PostingIterator(static_cast< const Xapian::PostingIterator& >(result))), SWIGTYPE_p_Xapian__PostingIterator, SWIG_POINTER_OWN | 0 ));
34084   if (SWIG_IsNewObj(res2)) delete arg2;
34085   return TCL_OK;
34086 fail:
34087   if (SWIG_IsNewObj(res2)) delete arg2;
34088   return TCL_ERROR;
34089 }
34090 
34091 
34092 SWIGINTERN int
_wrap_Database_postlist_end(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])34093 _wrap_Database_postlist_end(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
34094   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
34095   std::string *arg2 = 0 ;
34096   void *argp1 = 0 ;
34097   int res1 = 0 ;
34098   int res2 = SWIG_OLDOBJ ;
34099   Xapian::PostingIterator result;
34100 
34101   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Database_postlist_end self std::string const & ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
34102   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
34103   if (!SWIG_IsOK(res1)) {
34104     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_postlist_end" "', argument " "1"" of type '" "Xapian::Database const *""'");
34105   }
34106   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
34107   {
34108     std::string *ptr = (std::string *)0;
34109     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
34110     if (!SWIG_IsOK(res2)) {
34111       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_postlist_end" "', argument " "2"" of type '" "std::string const &""'");
34112     }
34113     if (!ptr) {
34114       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_postlist_end" "', argument " "2"" of type '" "std::string const &""'");
34115     }
34116     arg2 = ptr;
34117   }
34118   {
34119     try {
34120       result = ((Xapian::Database const *)arg1)->postlist_end((std::string const &)*arg2);
34121     } catch (const Xapian::Error &e) {
34122       return XapianTclHandleError(interp, e);
34123     } catch (...) {
34124       return XapianTclHandleError(interp);
34125     }
34126   }
34127   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::PostingIterator(static_cast< const Xapian::PostingIterator& >(result))), SWIGTYPE_p_Xapian__PostingIterator, SWIG_POINTER_OWN | 0 ));
34128   if (SWIG_IsNewObj(res2)) delete arg2;
34129   return TCL_OK;
34130 fail:
34131   if (SWIG_IsNewObj(res2)) delete arg2;
34132   return TCL_ERROR;
34133 }
34134 
34135 
34136 SWIGINTERN int
_wrap_Database_termlist_begin(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])34137 _wrap_Database_termlist_begin(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
34138   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
34139   Xapian::docid arg2 ;
34140   void *argp1 = 0 ;
34141   int res1 = 0 ;
34142   unsigned int val2 ;
34143   int ecode2 = 0 ;
34144   Xapian::TermIterator result;
34145 
34146   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Database_termlist_begin self did ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
34147   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
34148   if (!SWIG_IsOK(res1)) {
34149     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_termlist_begin" "', argument " "1"" of type '" "Xapian::Database const *""'");
34150   }
34151   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
34152   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
34153   if (!SWIG_IsOK(ecode2)) {
34154     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_termlist_begin" "', argument " "2"" of type '" "Xapian::docid""'");
34155   }
34156   arg2 = static_cast< Xapian::docid >(val2);
34157   {
34158     try {
34159       result = ((Xapian::Database const *)arg1)->termlist_begin(arg2);
34160     } catch (const Xapian::Error &e) {
34161       return XapianTclHandleError(interp, e);
34162     } catch (...) {
34163       return XapianTclHandleError(interp);
34164     }
34165   }
34166   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN | 0 ));
34167   return TCL_OK;
34168 fail:
34169   return TCL_ERROR;
34170 }
34171 
34172 
34173 SWIGINTERN int
_wrap_Database_termlist_end(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])34174 _wrap_Database_termlist_end(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
34175   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
34176   Xapian::docid arg2 ;
34177   void *argp1 = 0 ;
34178   int res1 = 0 ;
34179   unsigned int val2 ;
34180   int ecode2 = 0 ;
34181   Xapian::TermIterator result;
34182 
34183   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Database_termlist_end self Xapian::docid ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
34184   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
34185   if (!SWIG_IsOK(res1)) {
34186     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_termlist_end" "', argument " "1"" of type '" "Xapian::Database const *""'");
34187   }
34188   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
34189   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
34190   if (!SWIG_IsOK(ecode2)) {
34191     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_termlist_end" "', argument " "2"" of type '" "Xapian::docid""'");
34192   }
34193   arg2 = static_cast< Xapian::docid >(val2);
34194   {
34195     try {
34196       result = ((Xapian::Database const *)arg1)->termlist_end(arg2);
34197     } catch (const Xapian::Error &e) {
34198       return XapianTclHandleError(interp, e);
34199     } catch (...) {
34200       return XapianTclHandleError(interp);
34201     }
34202   }
34203   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN | 0 ));
34204   return TCL_OK;
34205 fail:
34206   return TCL_ERROR;
34207 }
34208 
34209 
34210 SWIGINTERN int
_wrap_Database_has_positions(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])34211 _wrap_Database_has_positions(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
34212   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
34213   void *argp1 = 0 ;
34214   int res1 = 0 ;
34215   bool result;
34216 
34217   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Database_has_positions self ",(void *)0) == TCL_ERROR) SWIG_fail;
34218   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
34219   if (!SWIG_IsOK(res1)) {
34220     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_has_positions" "', argument " "1"" of type '" "Xapian::Database const *""'");
34221   }
34222   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
34223   {
34224     try {
34225       result = (bool)((Xapian::Database const *)arg1)->has_positions();
34226     } catch (const Xapian::Error &e) {
34227       return XapianTclHandleError(interp, e);
34228     } catch (...) {
34229       return XapianTclHandleError(interp);
34230     }
34231   }
34232   Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
34233   return TCL_OK;
34234 fail:
34235   return TCL_ERROR;
34236 }
34237 
34238 
34239 SWIGINTERN int
_wrap_Database_positionlist_begin(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])34240 _wrap_Database_positionlist_begin(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
34241   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
34242   Xapian::docid arg2 ;
34243   std::string *arg3 = 0 ;
34244   void *argp1 = 0 ;
34245   int res1 = 0 ;
34246   unsigned int val2 ;
34247   int ecode2 = 0 ;
34248   int res3 = SWIG_OLDOBJ ;
34249   Xapian::PositionIterator result;
34250 
34251   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::Database_positionlist_begin self did tname ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
34252   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
34253   if (!SWIG_IsOK(res1)) {
34254     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_positionlist_begin" "', argument " "1"" of type '" "Xapian::Database const *""'");
34255   }
34256   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
34257   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
34258   if (!SWIG_IsOK(ecode2)) {
34259     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_positionlist_begin" "', argument " "2"" of type '" "Xapian::docid""'");
34260   }
34261   arg2 = static_cast< Xapian::docid >(val2);
34262   {
34263     std::string *ptr = (std::string *)0;
34264     res3 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[3], &ptr);
34265     if (!SWIG_IsOK(res3)) {
34266       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Database_positionlist_begin" "', argument " "3"" of type '" "std::string const &""'");
34267     }
34268     if (!ptr) {
34269       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_positionlist_begin" "', argument " "3"" of type '" "std::string const &""'");
34270     }
34271     arg3 = ptr;
34272   }
34273   {
34274     try {
34275       result = ((Xapian::Database const *)arg1)->positionlist_begin(arg2,(std::string const &)*arg3);
34276     } catch (const Xapian::Error &e) {
34277       return XapianTclHandleError(interp, e);
34278     } catch (...) {
34279       return XapianTclHandleError(interp);
34280     }
34281   }
34282   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::PositionIterator(static_cast< const Xapian::PositionIterator& >(result))), SWIGTYPE_p_Xapian__PositionIterator, SWIG_POINTER_OWN | 0 ));
34283   if (SWIG_IsNewObj(res3)) delete arg3;
34284   return TCL_OK;
34285 fail:
34286   if (SWIG_IsNewObj(res3)) delete arg3;
34287   return TCL_ERROR;
34288 }
34289 
34290 
34291 SWIGINTERN int
_wrap_Database_positionlist_end(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])34292 _wrap_Database_positionlist_end(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
34293   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
34294   Xapian::docid arg2 ;
34295   std::string *arg3 = 0 ;
34296   void *argp1 = 0 ;
34297   int res1 = 0 ;
34298   unsigned int val2 ;
34299   int ecode2 = 0 ;
34300   int res3 = SWIG_OLDOBJ ;
34301   Xapian::PositionIterator result;
34302 
34303   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::Database_positionlist_end self Xapian::docid std::string const & ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
34304   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
34305   if (!SWIG_IsOK(res1)) {
34306     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_positionlist_end" "', argument " "1"" of type '" "Xapian::Database const *""'");
34307   }
34308   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
34309   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
34310   if (!SWIG_IsOK(ecode2)) {
34311     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_positionlist_end" "', argument " "2"" of type '" "Xapian::docid""'");
34312   }
34313   arg2 = static_cast< Xapian::docid >(val2);
34314   {
34315     std::string *ptr = (std::string *)0;
34316     res3 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[3], &ptr);
34317     if (!SWIG_IsOK(res3)) {
34318       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Database_positionlist_end" "', argument " "3"" of type '" "std::string const &""'");
34319     }
34320     if (!ptr) {
34321       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_positionlist_end" "', argument " "3"" of type '" "std::string const &""'");
34322     }
34323     arg3 = ptr;
34324   }
34325   {
34326     try {
34327       result = ((Xapian::Database const *)arg1)->positionlist_end(arg2,(std::string const &)*arg3);
34328     } catch (const Xapian::Error &e) {
34329       return XapianTclHandleError(interp, e);
34330     } catch (...) {
34331       return XapianTclHandleError(interp);
34332     }
34333   }
34334   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::PositionIterator(static_cast< const Xapian::PositionIterator& >(result))), SWIGTYPE_p_Xapian__PositionIterator, SWIG_POINTER_OWN | 0 ));
34335   if (SWIG_IsNewObj(res3)) delete arg3;
34336   return TCL_OK;
34337 fail:
34338   if (SWIG_IsNewObj(res3)) delete arg3;
34339   return TCL_ERROR;
34340 }
34341 
34342 
34343 SWIGINTERN int
_wrap_Database_allterms_begin__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])34344 _wrap_Database_allterms_begin__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
34345   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
34346   std::string *arg2 = 0 ;
34347   void *argp1 = 0 ;
34348   int res1 = 0 ;
34349   int res2 = SWIG_OLDOBJ ;
34350   Xapian::TermIterator result;
34351 
34352   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Database_allterms_begin self prefix ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
34353   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
34354   if (!SWIG_IsOK(res1)) {
34355     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_allterms_begin" "', argument " "1"" of type '" "Xapian::Database const *""'");
34356   }
34357   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
34358   {
34359     std::string *ptr = (std::string *)0;
34360     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
34361     if (!SWIG_IsOK(res2)) {
34362       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_allterms_begin" "', argument " "2"" of type '" "std::string const &""'");
34363     }
34364     if (!ptr) {
34365       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_allterms_begin" "', argument " "2"" of type '" "std::string const &""'");
34366     }
34367     arg2 = ptr;
34368   }
34369   {
34370     try {
34371       result = ((Xapian::Database const *)arg1)->allterms_begin((std::string const &)*arg2);
34372     } catch (const Xapian::Error &e) {
34373       return XapianTclHandleError(interp, e);
34374     } catch (...) {
34375       return XapianTclHandleError(interp);
34376     }
34377   }
34378   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN | 0 ));
34379   if (SWIG_IsNewObj(res2)) delete arg2;
34380   return TCL_OK;
34381 fail:
34382   if (SWIG_IsNewObj(res2)) delete arg2;
34383   return TCL_ERROR;
34384 }
34385 
34386 
34387 SWIGINTERN int
_wrap_Database_allterms_begin__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])34388 _wrap_Database_allterms_begin__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
34389   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
34390   void *argp1 = 0 ;
34391   int res1 = 0 ;
34392   Xapian::TermIterator result;
34393 
34394   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Database_allterms_begin self ",(void *)0) == TCL_ERROR) SWIG_fail;
34395   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
34396   if (!SWIG_IsOK(res1)) {
34397     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_allterms_begin" "', argument " "1"" of type '" "Xapian::Database const *""'");
34398   }
34399   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
34400   {
34401     try {
34402       result = ((Xapian::Database const *)arg1)->allterms_begin();
34403     } catch (const Xapian::Error &e) {
34404       return XapianTclHandleError(interp, e);
34405     } catch (...) {
34406       return XapianTclHandleError(interp);
34407     }
34408   }
34409   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN | 0 ));
34410   return TCL_OK;
34411 fail:
34412   return TCL_ERROR;
34413 }
34414 
34415 
34416 SWIGINTERN int
_wrap_Database_allterms_begin(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])34417 _wrap_Database_allterms_begin(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
34418   Tcl_Obj *CONST *argv = objv+1;
34419   int argc = objc-1;
34420   if (argc == 1) {
34421     int _v;
34422     void *vptr = 0;
34423     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Database, 0);
34424     _v = SWIG_CheckState(res);
34425     if (_v) {
34426       return _wrap_Database_allterms_begin__SWIG_1(clientData, interp, objc, argv - 1);
34427     }
34428   }
34429   if (argc == 2) {
34430     int _v;
34431     void *vptr = 0;
34432     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Database, 0);
34433     _v = SWIG_CheckState(res);
34434     if (_v) {
34435       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
34436       _v = SWIG_CheckState(res);
34437       if (_v) {
34438         return _wrap_Database_allterms_begin__SWIG_0(clientData, interp, objc, argv - 1);
34439       }
34440     }
34441   }
34442 
34443   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'Database_allterms_begin'.\n"
34444     "  Possible C/C++ prototypes are:\n"
34445     "    Xapian::Database::allterms_begin(std::string const &) const\n"
34446     "    Xapian::Database::allterms_begin() const\n", TCL_STATIC);
34447   return TCL_ERROR;
34448 }
34449 
34450 
34451 SWIGINTERN int
_wrap_Database_allterms_end__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])34452 _wrap_Database_allterms_end__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
34453   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
34454   std::string *arg2 = 0 ;
34455   void *argp1 = 0 ;
34456   int res1 = 0 ;
34457   int res2 = SWIG_OLDOBJ ;
34458   Xapian::TermIterator result;
34459 
34460   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Database_allterms_end self std::string const & ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
34461   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
34462   if (!SWIG_IsOK(res1)) {
34463     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_allterms_end" "', argument " "1"" of type '" "Xapian::Database const *""'");
34464   }
34465   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
34466   {
34467     std::string *ptr = (std::string *)0;
34468     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
34469     if (!SWIG_IsOK(res2)) {
34470       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_allterms_end" "', argument " "2"" of type '" "std::string const &""'");
34471     }
34472     if (!ptr) {
34473       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_allterms_end" "', argument " "2"" of type '" "std::string const &""'");
34474     }
34475     arg2 = ptr;
34476   }
34477   {
34478     try {
34479       result = ((Xapian::Database const *)arg1)->allterms_end((std::string const &)*arg2);
34480     } catch (const Xapian::Error &e) {
34481       return XapianTclHandleError(interp, e);
34482     } catch (...) {
34483       return XapianTclHandleError(interp);
34484     }
34485   }
34486   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN | 0 ));
34487   if (SWIG_IsNewObj(res2)) delete arg2;
34488   return TCL_OK;
34489 fail:
34490   if (SWIG_IsNewObj(res2)) delete arg2;
34491   return TCL_ERROR;
34492 }
34493 
34494 
34495 SWIGINTERN int
_wrap_Database_allterms_end__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])34496 _wrap_Database_allterms_end__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
34497   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
34498   void *argp1 = 0 ;
34499   int res1 = 0 ;
34500   Xapian::TermIterator result;
34501 
34502   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Database_allterms_end self ",(void *)0) == TCL_ERROR) SWIG_fail;
34503   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
34504   if (!SWIG_IsOK(res1)) {
34505     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_allterms_end" "', argument " "1"" of type '" "Xapian::Database const *""'");
34506   }
34507   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
34508   {
34509     try {
34510       result = ((Xapian::Database const *)arg1)->allterms_end();
34511     } catch (const Xapian::Error &e) {
34512       return XapianTclHandleError(interp, e);
34513     } catch (...) {
34514       return XapianTclHandleError(interp);
34515     }
34516   }
34517   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN | 0 ));
34518   return TCL_OK;
34519 fail:
34520   return TCL_ERROR;
34521 }
34522 
34523 
34524 SWIGINTERN int
_wrap_Database_allterms_end(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])34525 _wrap_Database_allterms_end(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
34526   Tcl_Obj *CONST *argv = objv+1;
34527   int argc = objc-1;
34528   if (argc == 1) {
34529     int _v;
34530     void *vptr = 0;
34531     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Database, 0);
34532     _v = SWIG_CheckState(res);
34533     if (_v) {
34534       return _wrap_Database_allterms_end__SWIG_1(clientData, interp, objc, argv - 1);
34535     }
34536   }
34537   if (argc == 2) {
34538     int _v;
34539     void *vptr = 0;
34540     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Database, 0);
34541     _v = SWIG_CheckState(res);
34542     if (_v) {
34543       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
34544       _v = SWIG_CheckState(res);
34545       if (_v) {
34546         return _wrap_Database_allterms_end__SWIG_0(clientData, interp, objc, argv - 1);
34547       }
34548     }
34549   }
34550 
34551   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'Database_allterms_end'.\n"
34552     "  Possible C/C++ prototypes are:\n"
34553     "    Xapian::Database::allterms_end(std::string const &) const\n"
34554     "    Xapian::Database::allterms_end() const\n", TCL_STATIC);
34555   return TCL_ERROR;
34556 }
34557 
34558 
34559 SWIGINTERN int
_wrap_Database_get_doccount(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])34560 _wrap_Database_get_doccount(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
34561   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
34562   void *argp1 = 0 ;
34563   int res1 = 0 ;
34564   Xapian::doccount result;
34565 
34566   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Database_get_doccount self ",(void *)0) == TCL_ERROR) SWIG_fail;
34567   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
34568   if (!SWIG_IsOK(res1)) {
34569     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_doccount" "', argument " "1"" of type '" "Xapian::Database const *""'");
34570   }
34571   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
34572   {
34573     try {
34574       result = (Xapian::doccount)((Xapian::Database const *)arg1)->get_doccount();
34575     } catch (const Xapian::Error &e) {
34576       return XapianTclHandleError(interp, e);
34577     } catch (...) {
34578       return XapianTclHandleError(interp);
34579     }
34580   }
34581   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
34582   return TCL_OK;
34583 fail:
34584   return TCL_ERROR;
34585 }
34586 
34587 
34588 SWIGINTERN int
_wrap_Database_get_lastdocid(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])34589 _wrap_Database_get_lastdocid(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
34590   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
34591   void *argp1 = 0 ;
34592   int res1 = 0 ;
34593   Xapian::docid result;
34594 
34595   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Database_get_lastdocid self ",(void *)0) == TCL_ERROR) SWIG_fail;
34596   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
34597   if (!SWIG_IsOK(res1)) {
34598     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_lastdocid" "', argument " "1"" of type '" "Xapian::Database const *""'");
34599   }
34600   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
34601   {
34602     try {
34603       result = (Xapian::docid)((Xapian::Database const *)arg1)->get_lastdocid();
34604     } catch (const Xapian::Error &e) {
34605       return XapianTclHandleError(interp, e);
34606     } catch (...) {
34607       return XapianTclHandleError(interp);
34608     }
34609   }
34610   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
34611   return TCL_OK;
34612 fail:
34613   return TCL_ERROR;
34614 }
34615 
34616 
34617 SWIGINTERN int
_wrap_Database_get_avlength(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])34618 _wrap_Database_get_avlength(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
34619   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
34620   void *argp1 = 0 ;
34621   int res1 = 0 ;
34622   Xapian::doclength result;
34623 
34624   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Database_get_avlength self ",(void *)0) == TCL_ERROR) SWIG_fail;
34625   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
34626   if (!SWIG_IsOK(res1)) {
34627     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_avlength" "', argument " "1"" of type '" "Xapian::Database const *""'");
34628   }
34629   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
34630   {
34631     try {
34632       result = (Xapian::doclength)((Xapian::Database const *)arg1)->get_avlength();
34633     } catch (const Xapian::Error &e) {
34634       return XapianTclHandleError(interp, e);
34635     } catch (...) {
34636       return XapianTclHandleError(interp);
34637     }
34638   }
34639   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
34640   return TCL_OK;
34641 fail:
34642   return TCL_ERROR;
34643 }
34644 
34645 
34646 SWIGINTERN int
_wrap_Database_get_average_length(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])34647 _wrap_Database_get_average_length(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
34648   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
34649   void *argp1 = 0 ;
34650   int res1 = 0 ;
34651   double result;
34652 
34653   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Database_get_average_length self ",(void *)0) == TCL_ERROR) SWIG_fail;
34654   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
34655   if (!SWIG_IsOK(res1)) {
34656     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_average_length" "', argument " "1"" of type '" "Xapian::Database const *""'");
34657   }
34658   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
34659   {
34660     try {
34661       result = (double)((Xapian::Database const *)arg1)->get_average_length();
34662     } catch (const Xapian::Error &e) {
34663       return XapianTclHandleError(interp, e);
34664     } catch (...) {
34665       return XapianTclHandleError(interp);
34666     }
34667   }
34668   Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
34669   return TCL_OK;
34670 fail:
34671   return TCL_ERROR;
34672 }
34673 
34674 
34675 SWIGINTERN int
_wrap_Database_get_total_length(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])34676 _wrap_Database_get_total_length(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
34677   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
34678   void *argp1 = 0 ;
34679   int res1 = 0 ;
34680   Xapian::totallength result;
34681 
34682   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Database_get_total_length self ",(void *)0) == TCL_ERROR) SWIG_fail;
34683   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
34684   if (!SWIG_IsOK(res1)) {
34685     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_total_length" "', argument " "1"" of type '" "Xapian::Database const *""'");
34686   }
34687   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
34688   {
34689     try {
34690       result = (Xapian::totallength)((Xapian::Database const *)arg1)->get_total_length();
34691     } catch (const Xapian::Error &e) {
34692       return XapianTclHandleError(interp, e);
34693     } catch (...) {
34694       return XapianTclHandleError(interp);
34695     }
34696   }
34697   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)));
34698   return TCL_OK;
34699 fail:
34700   return TCL_ERROR;
34701 }
34702 
34703 
34704 SWIGINTERN int
_wrap_Database_get_termfreq(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])34705 _wrap_Database_get_termfreq(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
34706   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
34707   std::string *arg2 = 0 ;
34708   void *argp1 = 0 ;
34709   int res1 = 0 ;
34710   int res2 = SWIG_OLDOBJ ;
34711   Xapian::doccount result;
34712 
34713   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Database_get_termfreq self tname ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
34714   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
34715   if (!SWIG_IsOK(res1)) {
34716     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_termfreq" "', argument " "1"" of type '" "Xapian::Database const *""'");
34717   }
34718   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
34719   {
34720     std::string *ptr = (std::string *)0;
34721     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
34722     if (!SWIG_IsOK(res2)) {
34723       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_get_termfreq" "', argument " "2"" of type '" "std::string const &""'");
34724     }
34725     if (!ptr) {
34726       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_get_termfreq" "', argument " "2"" of type '" "std::string const &""'");
34727     }
34728     arg2 = ptr;
34729   }
34730   {
34731     try {
34732       result = (Xapian::doccount)((Xapian::Database const *)arg1)->get_termfreq((std::string const &)*arg2);
34733     } catch (const Xapian::Error &e) {
34734       return XapianTclHandleError(interp, e);
34735     } catch (...) {
34736       return XapianTclHandleError(interp);
34737     }
34738   }
34739   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
34740   if (SWIG_IsNewObj(res2)) delete arg2;
34741   return TCL_OK;
34742 fail:
34743   if (SWIG_IsNewObj(res2)) delete arg2;
34744   return TCL_ERROR;
34745 }
34746 
34747 
34748 SWIGINTERN int
_wrap_Database_term_exists(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])34749 _wrap_Database_term_exists(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
34750   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
34751   std::string *arg2 = 0 ;
34752   void *argp1 = 0 ;
34753   int res1 = 0 ;
34754   int res2 = SWIG_OLDOBJ ;
34755   bool result;
34756 
34757   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Database_term_exists self tname ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
34758   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
34759   if (!SWIG_IsOK(res1)) {
34760     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_term_exists" "', argument " "1"" of type '" "Xapian::Database const *""'");
34761   }
34762   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
34763   {
34764     std::string *ptr = (std::string *)0;
34765     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
34766     if (!SWIG_IsOK(res2)) {
34767       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_term_exists" "', argument " "2"" of type '" "std::string const &""'");
34768     }
34769     if (!ptr) {
34770       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_term_exists" "', argument " "2"" of type '" "std::string const &""'");
34771     }
34772     arg2 = ptr;
34773   }
34774   {
34775     try {
34776       result = (bool)((Xapian::Database const *)arg1)->term_exists((std::string const &)*arg2);
34777     } catch (const Xapian::Error &e) {
34778       return XapianTclHandleError(interp, e);
34779     } catch (...) {
34780       return XapianTclHandleError(interp);
34781     }
34782   }
34783   Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
34784   if (SWIG_IsNewObj(res2)) delete arg2;
34785   return TCL_OK;
34786 fail:
34787   if (SWIG_IsNewObj(res2)) delete arg2;
34788   return TCL_ERROR;
34789 }
34790 
34791 
34792 SWIGINTERN int
_wrap_Database_get_collection_freq(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])34793 _wrap_Database_get_collection_freq(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
34794   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
34795   std::string *arg2 = 0 ;
34796   void *argp1 = 0 ;
34797   int res1 = 0 ;
34798   int res2 = SWIG_OLDOBJ ;
34799   Xapian::termcount result;
34800 
34801   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Database_get_collection_freq self tname ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
34802   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
34803   if (!SWIG_IsOK(res1)) {
34804     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_collection_freq" "', argument " "1"" of type '" "Xapian::Database const *""'");
34805   }
34806   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
34807   {
34808     std::string *ptr = (std::string *)0;
34809     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
34810     if (!SWIG_IsOK(res2)) {
34811       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_get_collection_freq" "', argument " "2"" of type '" "std::string const &""'");
34812     }
34813     if (!ptr) {
34814       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_get_collection_freq" "', argument " "2"" of type '" "std::string const &""'");
34815     }
34816     arg2 = ptr;
34817   }
34818   {
34819     try {
34820       result = (Xapian::termcount)((Xapian::Database const *)arg1)->get_collection_freq((std::string const &)*arg2);
34821     } catch (const Xapian::Error &e) {
34822       return XapianTclHandleError(interp, e);
34823     } catch (...) {
34824       return XapianTclHandleError(interp);
34825     }
34826   }
34827   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
34828   if (SWIG_IsNewObj(res2)) delete arg2;
34829   return TCL_OK;
34830 fail:
34831   if (SWIG_IsNewObj(res2)) delete arg2;
34832   return TCL_ERROR;
34833 }
34834 
34835 
34836 SWIGINTERN int
_wrap_Database_get_value_freq(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])34837 _wrap_Database_get_value_freq(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
34838   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
34839   Xapian::valueno arg2 ;
34840   void *argp1 = 0 ;
34841   int res1 = 0 ;
34842   unsigned int val2 ;
34843   int ecode2 = 0 ;
34844   Xapian::doccount result;
34845 
34846   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Database_get_value_freq self slot ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
34847   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
34848   if (!SWIG_IsOK(res1)) {
34849     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_value_freq" "', argument " "1"" of type '" "Xapian::Database const *""'");
34850   }
34851   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
34852   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
34853   if (!SWIG_IsOK(ecode2)) {
34854     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_get_value_freq" "', argument " "2"" of type '" "Xapian::valueno""'");
34855   }
34856   arg2 = static_cast< Xapian::valueno >(val2);
34857   {
34858     try {
34859       result = (Xapian::doccount)((Xapian::Database const *)arg1)->get_value_freq(arg2);
34860     } catch (const Xapian::Error &e) {
34861       return XapianTclHandleError(interp, e);
34862     } catch (...) {
34863       return XapianTclHandleError(interp);
34864     }
34865   }
34866   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
34867   return TCL_OK;
34868 fail:
34869   return TCL_ERROR;
34870 }
34871 
34872 
34873 SWIGINTERN int
_wrap_Database_get_value_lower_bound(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])34874 _wrap_Database_get_value_lower_bound(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
34875   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
34876   Xapian::valueno arg2 ;
34877   void *argp1 = 0 ;
34878   int res1 = 0 ;
34879   unsigned int val2 ;
34880   int ecode2 = 0 ;
34881   std::string result;
34882 
34883   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Database_get_value_lower_bound self slot ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
34884   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
34885   if (!SWIG_IsOK(res1)) {
34886     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_value_lower_bound" "', argument " "1"" of type '" "Xapian::Database const *""'");
34887   }
34888   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
34889   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
34890   if (!SWIG_IsOK(ecode2)) {
34891     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_get_value_lower_bound" "', argument " "2"" of type '" "Xapian::valueno""'");
34892   }
34893   arg2 = static_cast< Xapian::valueno >(val2);
34894   {
34895     try {
34896       result = ((Xapian::Database const *)arg1)->get_value_lower_bound(arg2);
34897     } catch (const Xapian::Error &e) {
34898       return XapianTclHandleError(interp, e);
34899     } catch (...) {
34900       return XapianTclHandleError(interp);
34901     }
34902   }
34903   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
34904   return TCL_OK;
34905 fail:
34906   return TCL_ERROR;
34907 }
34908 
34909 
34910 SWIGINTERN int
_wrap_Database_get_value_upper_bound(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])34911 _wrap_Database_get_value_upper_bound(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
34912   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
34913   Xapian::valueno arg2 ;
34914   void *argp1 = 0 ;
34915   int res1 = 0 ;
34916   unsigned int val2 ;
34917   int ecode2 = 0 ;
34918   std::string result;
34919 
34920   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Database_get_value_upper_bound self slot ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
34921   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
34922   if (!SWIG_IsOK(res1)) {
34923     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_value_upper_bound" "', argument " "1"" of type '" "Xapian::Database const *""'");
34924   }
34925   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
34926   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
34927   if (!SWIG_IsOK(ecode2)) {
34928     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_get_value_upper_bound" "', argument " "2"" of type '" "Xapian::valueno""'");
34929   }
34930   arg2 = static_cast< Xapian::valueno >(val2);
34931   {
34932     try {
34933       result = ((Xapian::Database const *)arg1)->get_value_upper_bound(arg2);
34934     } catch (const Xapian::Error &e) {
34935       return XapianTclHandleError(interp, e);
34936     } catch (...) {
34937       return XapianTclHandleError(interp);
34938     }
34939   }
34940   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
34941   return TCL_OK;
34942 fail:
34943   return TCL_ERROR;
34944 }
34945 
34946 
34947 SWIGINTERN int
_wrap_Database_get_doclength_lower_bound(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])34948 _wrap_Database_get_doclength_lower_bound(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
34949   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
34950   void *argp1 = 0 ;
34951   int res1 = 0 ;
34952   Xapian::termcount result;
34953 
34954   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Database_get_doclength_lower_bound self ",(void *)0) == TCL_ERROR) SWIG_fail;
34955   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
34956   if (!SWIG_IsOK(res1)) {
34957     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_doclength_lower_bound" "', argument " "1"" of type '" "Xapian::Database const *""'");
34958   }
34959   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
34960   {
34961     try {
34962       result = (Xapian::termcount)((Xapian::Database const *)arg1)->get_doclength_lower_bound();
34963     } catch (const Xapian::Error &e) {
34964       return XapianTclHandleError(interp, e);
34965     } catch (...) {
34966       return XapianTclHandleError(interp);
34967     }
34968   }
34969   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
34970   return TCL_OK;
34971 fail:
34972   return TCL_ERROR;
34973 }
34974 
34975 
34976 SWIGINTERN int
_wrap_Database_get_doclength_upper_bound(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])34977 _wrap_Database_get_doclength_upper_bound(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
34978   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
34979   void *argp1 = 0 ;
34980   int res1 = 0 ;
34981   Xapian::termcount result;
34982 
34983   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Database_get_doclength_upper_bound self ",(void *)0) == TCL_ERROR) SWIG_fail;
34984   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
34985   if (!SWIG_IsOK(res1)) {
34986     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_doclength_upper_bound" "', argument " "1"" of type '" "Xapian::Database const *""'");
34987   }
34988   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
34989   {
34990     try {
34991       result = (Xapian::termcount)((Xapian::Database const *)arg1)->get_doclength_upper_bound();
34992     } catch (const Xapian::Error &e) {
34993       return XapianTclHandleError(interp, e);
34994     } catch (...) {
34995       return XapianTclHandleError(interp);
34996     }
34997   }
34998   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
34999   return TCL_OK;
35000 fail:
35001   return TCL_ERROR;
35002 }
35003 
35004 
35005 SWIGINTERN int
_wrap_Database_get_wdf_upper_bound(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])35006 _wrap_Database_get_wdf_upper_bound(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
35007   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
35008   std::string *arg2 = 0 ;
35009   void *argp1 = 0 ;
35010   int res1 = 0 ;
35011   int res2 = SWIG_OLDOBJ ;
35012   Xapian::termcount result;
35013 
35014   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Database_get_wdf_upper_bound self term ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
35015   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
35016   if (!SWIG_IsOK(res1)) {
35017     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_wdf_upper_bound" "', argument " "1"" of type '" "Xapian::Database const *""'");
35018   }
35019   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
35020   {
35021     std::string *ptr = (std::string *)0;
35022     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
35023     if (!SWIG_IsOK(res2)) {
35024       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_get_wdf_upper_bound" "', argument " "2"" of type '" "std::string const &""'");
35025     }
35026     if (!ptr) {
35027       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_get_wdf_upper_bound" "', argument " "2"" of type '" "std::string const &""'");
35028     }
35029     arg2 = ptr;
35030   }
35031   {
35032     try {
35033       result = (Xapian::termcount)((Xapian::Database const *)arg1)->get_wdf_upper_bound((std::string const &)*arg2);
35034     } catch (const Xapian::Error &e) {
35035       return XapianTclHandleError(interp, e);
35036     } catch (...) {
35037       return XapianTclHandleError(interp);
35038     }
35039   }
35040   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
35041   if (SWIG_IsNewObj(res2)) delete arg2;
35042   return TCL_OK;
35043 fail:
35044   if (SWIG_IsNewObj(res2)) delete arg2;
35045   return TCL_ERROR;
35046 }
35047 
35048 
35049 SWIGINTERN int
_wrap_Database_valuestream_begin(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])35050 _wrap_Database_valuestream_begin(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
35051   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
35052   Xapian::valueno arg2 ;
35053   void *argp1 = 0 ;
35054   int res1 = 0 ;
35055   unsigned int val2 ;
35056   int ecode2 = 0 ;
35057   Xapian::ValueIterator result;
35058 
35059   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Database_valuestream_begin self slot ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
35060   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
35061   if (!SWIG_IsOK(res1)) {
35062     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_valuestream_begin" "', argument " "1"" of type '" "Xapian::Database const *""'");
35063   }
35064   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
35065   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
35066   if (!SWIG_IsOK(ecode2)) {
35067     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_valuestream_begin" "', argument " "2"" of type '" "Xapian::valueno""'");
35068   }
35069   arg2 = static_cast< Xapian::valueno >(val2);
35070   {
35071     try {
35072       result = ((Xapian::Database const *)arg1)->valuestream_begin(arg2);
35073     } catch (const Xapian::Error &e) {
35074       return XapianTclHandleError(interp, e);
35075     } catch (...) {
35076       return XapianTclHandleError(interp);
35077     }
35078   }
35079   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::ValueIterator(static_cast< const Xapian::ValueIterator& >(result))), SWIGTYPE_p_Xapian__ValueIterator, SWIG_POINTER_OWN | 0 ));
35080   return TCL_OK;
35081 fail:
35082   return TCL_ERROR;
35083 }
35084 
35085 
35086 SWIGINTERN int
_wrap_Database_valuestream_end(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])35087 _wrap_Database_valuestream_end(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
35088   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
35089   Xapian::valueno arg2 ;
35090   void *argp1 = 0 ;
35091   int res1 = 0 ;
35092   unsigned int val2 ;
35093   int ecode2 = 0 ;
35094   Xapian::ValueIterator result;
35095 
35096   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Database_valuestream_end self Xapian::valueno ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
35097   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
35098   if (!SWIG_IsOK(res1)) {
35099     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_valuestream_end" "', argument " "1"" of type '" "Xapian::Database const *""'");
35100   }
35101   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
35102   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
35103   if (!SWIG_IsOK(ecode2)) {
35104     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_valuestream_end" "', argument " "2"" of type '" "Xapian::valueno""'");
35105   }
35106   arg2 = static_cast< Xapian::valueno >(val2);
35107   {
35108     try {
35109       result = ((Xapian::Database const *)arg1)->valuestream_end(arg2);
35110     } catch (const Xapian::Error &e) {
35111       return XapianTclHandleError(interp, e);
35112     } catch (...) {
35113       return XapianTclHandleError(interp);
35114     }
35115   }
35116   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::ValueIterator(static_cast< const Xapian::ValueIterator& >(result))), SWIGTYPE_p_Xapian__ValueIterator, SWIG_POINTER_OWN | 0 ));
35117   return TCL_OK;
35118 fail:
35119   return TCL_ERROR;
35120 }
35121 
35122 
35123 SWIGINTERN int
_wrap_Database_get_doclength(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])35124 _wrap_Database_get_doclength(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
35125   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
35126   Xapian::docid arg2 ;
35127   void *argp1 = 0 ;
35128   int res1 = 0 ;
35129   unsigned int val2 ;
35130   int ecode2 = 0 ;
35131   Xapian::termcount result;
35132 
35133   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Database_get_doclength self did ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
35134   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
35135   if (!SWIG_IsOK(res1)) {
35136     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_doclength" "', argument " "1"" of type '" "Xapian::Database const *""'");
35137   }
35138   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
35139   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
35140   if (!SWIG_IsOK(ecode2)) {
35141     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_get_doclength" "', argument " "2"" of type '" "Xapian::docid""'");
35142   }
35143   arg2 = static_cast< Xapian::docid >(val2);
35144   {
35145     try {
35146       result = (Xapian::termcount)((Xapian::Database const *)arg1)->get_doclength(arg2);
35147     } catch (const Xapian::Error &e) {
35148       return XapianTclHandleError(interp, e);
35149     } catch (...) {
35150       return XapianTclHandleError(interp);
35151     }
35152   }
35153   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
35154   return TCL_OK;
35155 fail:
35156   return TCL_ERROR;
35157 }
35158 
35159 
35160 SWIGINTERN int
_wrap_Database_get_unique_terms(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])35161 _wrap_Database_get_unique_terms(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
35162   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
35163   Xapian::docid arg2 ;
35164   void *argp1 = 0 ;
35165   int res1 = 0 ;
35166   unsigned int val2 ;
35167   int ecode2 = 0 ;
35168   Xapian::termcount result;
35169 
35170   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Database_get_unique_terms self did ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
35171   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
35172   if (!SWIG_IsOK(res1)) {
35173     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_unique_terms" "', argument " "1"" of type '" "Xapian::Database const *""'");
35174   }
35175   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
35176   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
35177   if (!SWIG_IsOK(ecode2)) {
35178     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_get_unique_terms" "', argument " "2"" of type '" "Xapian::docid""'");
35179   }
35180   arg2 = static_cast< Xapian::docid >(val2);
35181   {
35182     try {
35183       result = (Xapian::termcount)((Xapian::Database const *)arg1)->get_unique_terms(arg2);
35184     } catch (const Xapian::Error &e) {
35185       return XapianTclHandleError(interp, e);
35186     } catch (...) {
35187       return XapianTclHandleError(interp);
35188     }
35189   }
35190   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
35191   return TCL_OK;
35192 fail:
35193   return TCL_ERROR;
35194 }
35195 
35196 
35197 SWIGINTERN int
_wrap_Database_keep_alive(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])35198 _wrap_Database_keep_alive(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
35199   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
35200   void *argp1 = 0 ;
35201   int res1 = 0 ;
35202 
35203   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Database_keep_alive self ",(void *)0) == TCL_ERROR) SWIG_fail;
35204   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
35205   if (!SWIG_IsOK(res1)) {
35206     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_keep_alive" "', argument " "1"" of type '" "Xapian::Database *""'");
35207   }
35208   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
35209   {
35210     try {
35211       (arg1)->keep_alive();
35212     } catch (const Xapian::Error &e) {
35213       return XapianTclHandleError(interp, e);
35214     } catch (...) {
35215       return XapianTclHandleError(interp);
35216     }
35217   }
35218 
35219   return TCL_OK;
35220 fail:
35221   return TCL_ERROR;
35222 }
35223 
35224 
35225 SWIGINTERN int
_wrap_Database_get_document__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])35226 _wrap_Database_get_document__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
35227   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
35228   Xapian::docid arg2 ;
35229   void *argp1 = 0 ;
35230   int res1 = 0 ;
35231   unsigned int val2 ;
35232   int ecode2 = 0 ;
35233   Xapian::Document result;
35234 
35235   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Database_get_document self did ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
35236   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
35237   if (!SWIG_IsOK(res1)) {
35238     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_document" "', argument " "1"" of type '" "Xapian::Database const *""'");
35239   }
35240   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
35241   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
35242   if (!SWIG_IsOK(ecode2)) {
35243     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_get_document" "', argument " "2"" of type '" "Xapian::docid""'");
35244   }
35245   arg2 = static_cast< Xapian::docid >(val2);
35246   {
35247     try {
35248       result = ((Xapian::Database const *)arg1)->get_document(arg2);
35249     } catch (const Xapian::Error &e) {
35250       return XapianTclHandleError(interp, e);
35251     } catch (...) {
35252       return XapianTclHandleError(interp);
35253     }
35254   }
35255   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::Document(static_cast< const Xapian::Document& >(result))), SWIGTYPE_p_Xapian__Document, SWIG_POINTER_OWN | 0 ));
35256   return TCL_OK;
35257 fail:
35258   return TCL_ERROR;
35259 }
35260 
35261 
35262 SWIGINTERN int
_wrap_Database_get_document__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])35263 _wrap_Database_get_document__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
35264   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
35265   Xapian::docid arg2 ;
35266   unsigned int arg3 ;
35267   void *argp1 = 0 ;
35268   int res1 = 0 ;
35269   unsigned int val2 ;
35270   int ecode2 = 0 ;
35271   unsigned int val3 ;
35272   int ecode3 = 0 ;
35273   Xapian::Document result;
35274 
35275   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::Database_get_document self did flags ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
35276   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
35277   if (!SWIG_IsOK(res1)) {
35278     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_document" "', argument " "1"" of type '" "Xapian::Database const *""'");
35279   }
35280   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
35281   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
35282   if (!SWIG_IsOK(ecode2)) {
35283     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_get_document" "', argument " "2"" of type '" "Xapian::docid""'");
35284   }
35285   arg2 = static_cast< Xapian::docid >(val2);
35286   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
35287   if (!SWIG_IsOK(ecode3)) {
35288     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Database_get_document" "', argument " "3"" of type '" "unsigned int""'");
35289   }
35290   arg3 = static_cast< unsigned int >(val3);
35291   {
35292     try {
35293       result = ((Xapian::Database const *)arg1)->get_document(arg2,arg3);
35294     } catch (const Xapian::Error &e) {
35295       return XapianTclHandleError(interp, e);
35296     } catch (...) {
35297       return XapianTclHandleError(interp);
35298     }
35299   }
35300   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::Document(static_cast< const Xapian::Document& >(result))), SWIGTYPE_p_Xapian__Document, SWIG_POINTER_OWN | 0 ));
35301   return TCL_OK;
35302 fail:
35303   return TCL_ERROR;
35304 }
35305 
35306 
35307 SWIGINTERN int
_wrap_Database_get_document(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])35308 _wrap_Database_get_document(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
35309   Tcl_Obj *CONST *argv = objv+1;
35310   int argc = objc-1;
35311   if (argc == 2) {
35312     int _v;
35313     void *vptr = 0;
35314     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Database, 0);
35315     _v = SWIG_CheckState(res);
35316     if (_v) {
35317       {
35318         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
35319         _v = SWIG_CheckState(res);
35320       }
35321       if (_v) {
35322         return _wrap_Database_get_document__SWIG_0(clientData, interp, objc, argv - 1);
35323       }
35324     }
35325   }
35326   if (argc == 3) {
35327     int _v;
35328     void *vptr = 0;
35329     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Database, 0);
35330     _v = SWIG_CheckState(res);
35331     if (_v) {
35332       {
35333         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
35334         _v = SWIG_CheckState(res);
35335       }
35336       if (_v) {
35337         {
35338           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
35339           _v = SWIG_CheckState(res);
35340         }
35341         if (_v) {
35342           return _wrap_Database_get_document__SWIG_1(clientData, interp, objc, argv - 1);
35343         }
35344       }
35345     }
35346   }
35347 
35348   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'Database_get_document'.\n"
35349     "  Possible C/C++ prototypes are:\n"
35350     "    Xapian::Database::get_document(Xapian::docid) const\n"
35351     "    Xapian::Database::get_document(Xapian::docid,unsigned int) const\n", TCL_STATIC);
35352   return TCL_ERROR;
35353 }
35354 
35355 
35356 SWIGINTERN int
_wrap_Database_get_spelling_suggestion__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])35357 _wrap_Database_get_spelling_suggestion__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
35358   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
35359   std::string *arg2 = 0 ;
35360   unsigned int arg3 ;
35361   void *argp1 = 0 ;
35362   int res1 = 0 ;
35363   int res2 = SWIG_OLDOBJ ;
35364   unsigned int val3 ;
35365   int ecode3 = 0 ;
35366   std::string result;
35367 
35368   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::Database_get_spelling_suggestion self word max_edit_distance ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
35369   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
35370   if (!SWIG_IsOK(res1)) {
35371     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_spelling_suggestion" "', argument " "1"" of type '" "Xapian::Database const *""'");
35372   }
35373   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
35374   {
35375     std::string *ptr = (std::string *)0;
35376     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
35377     if (!SWIG_IsOK(res2)) {
35378       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_get_spelling_suggestion" "', argument " "2"" of type '" "std::string const &""'");
35379     }
35380     if (!ptr) {
35381       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_get_spelling_suggestion" "', argument " "2"" of type '" "std::string const &""'");
35382     }
35383     arg2 = ptr;
35384   }
35385   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
35386   if (!SWIG_IsOK(ecode3)) {
35387     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Database_get_spelling_suggestion" "', argument " "3"" of type '" "unsigned int""'");
35388   }
35389   arg3 = static_cast< unsigned int >(val3);
35390   {
35391     try {
35392       result = ((Xapian::Database const *)arg1)->get_spelling_suggestion((std::string const &)*arg2,arg3);
35393     } catch (const Xapian::Error &e) {
35394       return XapianTclHandleError(interp, e);
35395     } catch (...) {
35396       return XapianTclHandleError(interp);
35397     }
35398   }
35399   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
35400   if (SWIG_IsNewObj(res2)) delete arg2;
35401   return TCL_OK;
35402 fail:
35403   if (SWIG_IsNewObj(res2)) delete arg2;
35404   return TCL_ERROR;
35405 }
35406 
35407 
35408 SWIGINTERN int
_wrap_Database_get_spelling_suggestion__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])35409 _wrap_Database_get_spelling_suggestion__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
35410   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
35411   std::string *arg2 = 0 ;
35412   void *argp1 = 0 ;
35413   int res1 = 0 ;
35414   int res2 = SWIG_OLDOBJ ;
35415   std::string result;
35416 
35417   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Database_get_spelling_suggestion self word ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
35418   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
35419   if (!SWIG_IsOK(res1)) {
35420     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_spelling_suggestion" "', argument " "1"" of type '" "Xapian::Database const *""'");
35421   }
35422   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
35423   {
35424     std::string *ptr = (std::string *)0;
35425     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
35426     if (!SWIG_IsOK(res2)) {
35427       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_get_spelling_suggestion" "', argument " "2"" of type '" "std::string const &""'");
35428     }
35429     if (!ptr) {
35430       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_get_spelling_suggestion" "', argument " "2"" of type '" "std::string const &""'");
35431     }
35432     arg2 = ptr;
35433   }
35434   {
35435     try {
35436       result = ((Xapian::Database const *)arg1)->get_spelling_suggestion((std::string const &)*arg2);
35437     } catch (const Xapian::Error &e) {
35438       return XapianTclHandleError(interp, e);
35439     } catch (...) {
35440       return XapianTclHandleError(interp);
35441     }
35442   }
35443   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
35444   if (SWIG_IsNewObj(res2)) delete arg2;
35445   return TCL_OK;
35446 fail:
35447   if (SWIG_IsNewObj(res2)) delete arg2;
35448   return TCL_ERROR;
35449 }
35450 
35451 
35452 SWIGINTERN int
_wrap_Database_get_spelling_suggestion(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])35453 _wrap_Database_get_spelling_suggestion(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
35454   Tcl_Obj *CONST *argv = objv+1;
35455   int argc = objc-1;
35456   if (argc == 2) {
35457     int _v;
35458     void *vptr = 0;
35459     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Database, 0);
35460     _v = SWIG_CheckState(res);
35461     if (_v) {
35462       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
35463       _v = SWIG_CheckState(res);
35464       if (_v) {
35465         return _wrap_Database_get_spelling_suggestion__SWIG_1(clientData, interp, objc, argv - 1);
35466       }
35467     }
35468   }
35469   if (argc == 3) {
35470     int _v;
35471     void *vptr = 0;
35472     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Database, 0);
35473     _v = SWIG_CheckState(res);
35474     if (_v) {
35475       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
35476       _v = SWIG_CheckState(res);
35477       if (_v) {
35478         {
35479           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
35480           _v = SWIG_CheckState(res);
35481         }
35482         if (_v) {
35483           return _wrap_Database_get_spelling_suggestion__SWIG_0(clientData, interp, objc, argv - 1);
35484         }
35485       }
35486     }
35487   }
35488 
35489   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'Database_get_spelling_suggestion'.\n"
35490     "  Possible C/C++ prototypes are:\n"
35491     "    Xapian::Database::get_spelling_suggestion(std::string const &,unsigned int) const\n"
35492     "    Xapian::Database::get_spelling_suggestion(std::string const &) const\n", TCL_STATIC);
35493   return TCL_ERROR;
35494 }
35495 
35496 
35497 SWIGINTERN int
_wrap_Database_spellings_begin(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])35498 _wrap_Database_spellings_begin(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
35499   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
35500   void *argp1 = 0 ;
35501   int res1 = 0 ;
35502   Xapian::TermIterator result;
35503 
35504   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Database_spellings_begin self ",(void *)0) == TCL_ERROR) SWIG_fail;
35505   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
35506   if (!SWIG_IsOK(res1)) {
35507     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_spellings_begin" "', argument " "1"" of type '" "Xapian::Database const *""'");
35508   }
35509   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
35510   {
35511     try {
35512       result = ((Xapian::Database const *)arg1)->spellings_begin();
35513     } catch (const Xapian::Error &e) {
35514       return XapianTclHandleError(interp, e);
35515     } catch (...) {
35516       return XapianTclHandleError(interp);
35517     }
35518   }
35519   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN | 0 ));
35520   return TCL_OK;
35521 fail:
35522   return TCL_ERROR;
35523 }
35524 
35525 
35526 SWIGINTERN int
_wrap_Database_spellings_end(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])35527 _wrap_Database_spellings_end(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
35528   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
35529   void *argp1 = 0 ;
35530   int res1 = 0 ;
35531   Xapian::TermIterator result;
35532 
35533   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Database_spellings_end self ",(void *)0) == TCL_ERROR) SWIG_fail;
35534   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
35535   if (!SWIG_IsOK(res1)) {
35536     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_spellings_end" "', argument " "1"" of type '" "Xapian::Database const *""'");
35537   }
35538   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
35539   {
35540     try {
35541       result = ((Xapian::Database const *)arg1)->spellings_end();
35542     } catch (const Xapian::Error &e) {
35543       return XapianTclHandleError(interp, e);
35544     } catch (...) {
35545       return XapianTclHandleError(interp);
35546     }
35547   }
35548   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN | 0 ));
35549   return TCL_OK;
35550 fail:
35551   return TCL_ERROR;
35552 }
35553 
35554 
35555 SWIGINTERN int
_wrap_Database_synonyms_begin(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])35556 _wrap_Database_synonyms_begin(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
35557   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
35558   std::string *arg2 = 0 ;
35559   void *argp1 = 0 ;
35560   int res1 = 0 ;
35561   int res2 = SWIG_OLDOBJ ;
35562   Xapian::TermIterator result;
35563 
35564   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Database_synonyms_begin self term ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
35565   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
35566   if (!SWIG_IsOK(res1)) {
35567     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_synonyms_begin" "', argument " "1"" of type '" "Xapian::Database const *""'");
35568   }
35569   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
35570   {
35571     std::string *ptr = (std::string *)0;
35572     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
35573     if (!SWIG_IsOK(res2)) {
35574       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_synonyms_begin" "', argument " "2"" of type '" "std::string const &""'");
35575     }
35576     if (!ptr) {
35577       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_synonyms_begin" "', argument " "2"" of type '" "std::string const &""'");
35578     }
35579     arg2 = ptr;
35580   }
35581   {
35582     try {
35583       result = ((Xapian::Database const *)arg1)->synonyms_begin((std::string const &)*arg2);
35584     } catch (const Xapian::Error &e) {
35585       return XapianTclHandleError(interp, e);
35586     } catch (...) {
35587       return XapianTclHandleError(interp);
35588     }
35589   }
35590   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN | 0 ));
35591   if (SWIG_IsNewObj(res2)) delete arg2;
35592   return TCL_OK;
35593 fail:
35594   if (SWIG_IsNewObj(res2)) delete arg2;
35595   return TCL_ERROR;
35596 }
35597 
35598 
35599 SWIGINTERN int
_wrap_Database_synonyms_end(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])35600 _wrap_Database_synonyms_end(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
35601   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
35602   std::string *arg2 = 0 ;
35603   void *argp1 = 0 ;
35604   int res1 = 0 ;
35605   int res2 = SWIG_OLDOBJ ;
35606   Xapian::TermIterator result;
35607 
35608   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Database_synonyms_end self std::string const & ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
35609   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
35610   if (!SWIG_IsOK(res1)) {
35611     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_synonyms_end" "', argument " "1"" of type '" "Xapian::Database const *""'");
35612   }
35613   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
35614   {
35615     std::string *ptr = (std::string *)0;
35616     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
35617     if (!SWIG_IsOK(res2)) {
35618       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_synonyms_end" "', argument " "2"" of type '" "std::string const &""'");
35619     }
35620     if (!ptr) {
35621       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_synonyms_end" "', argument " "2"" of type '" "std::string const &""'");
35622     }
35623     arg2 = ptr;
35624   }
35625   {
35626     try {
35627       result = ((Xapian::Database const *)arg1)->synonyms_end((std::string const &)*arg2);
35628     } catch (const Xapian::Error &e) {
35629       return XapianTclHandleError(interp, e);
35630     } catch (...) {
35631       return XapianTclHandleError(interp);
35632     }
35633   }
35634   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN | 0 ));
35635   if (SWIG_IsNewObj(res2)) delete arg2;
35636   return TCL_OK;
35637 fail:
35638   if (SWIG_IsNewObj(res2)) delete arg2;
35639   return TCL_ERROR;
35640 }
35641 
35642 
35643 SWIGINTERN int
_wrap_Database_synonym_keys_begin__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])35644 _wrap_Database_synonym_keys_begin__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
35645   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
35646   std::string *arg2 = 0 ;
35647   void *argp1 = 0 ;
35648   int res1 = 0 ;
35649   int res2 = SWIG_OLDOBJ ;
35650   Xapian::TermIterator result;
35651 
35652   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Database_synonym_keys_begin self prefix ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
35653   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
35654   if (!SWIG_IsOK(res1)) {
35655     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_synonym_keys_begin" "', argument " "1"" of type '" "Xapian::Database const *""'");
35656   }
35657   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
35658   {
35659     std::string *ptr = (std::string *)0;
35660     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
35661     if (!SWIG_IsOK(res2)) {
35662       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_synonym_keys_begin" "', argument " "2"" of type '" "std::string const &""'");
35663     }
35664     if (!ptr) {
35665       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_synonym_keys_begin" "', argument " "2"" of type '" "std::string const &""'");
35666     }
35667     arg2 = ptr;
35668   }
35669   {
35670     try {
35671       result = ((Xapian::Database const *)arg1)->synonym_keys_begin((std::string const &)*arg2);
35672     } catch (const Xapian::Error &e) {
35673       return XapianTclHandleError(interp, e);
35674     } catch (...) {
35675       return XapianTclHandleError(interp);
35676     }
35677   }
35678   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN | 0 ));
35679   if (SWIG_IsNewObj(res2)) delete arg2;
35680   return TCL_OK;
35681 fail:
35682   if (SWIG_IsNewObj(res2)) delete arg2;
35683   return TCL_ERROR;
35684 }
35685 
35686 
35687 SWIGINTERN int
_wrap_Database_synonym_keys_begin__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])35688 _wrap_Database_synonym_keys_begin__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
35689   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
35690   void *argp1 = 0 ;
35691   int res1 = 0 ;
35692   Xapian::TermIterator result;
35693 
35694   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Database_synonym_keys_begin self ",(void *)0) == TCL_ERROR) SWIG_fail;
35695   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
35696   if (!SWIG_IsOK(res1)) {
35697     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_synonym_keys_begin" "', argument " "1"" of type '" "Xapian::Database const *""'");
35698   }
35699   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
35700   {
35701     try {
35702       result = ((Xapian::Database const *)arg1)->synonym_keys_begin();
35703     } catch (const Xapian::Error &e) {
35704       return XapianTclHandleError(interp, e);
35705     } catch (...) {
35706       return XapianTclHandleError(interp);
35707     }
35708   }
35709   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN | 0 ));
35710   return TCL_OK;
35711 fail:
35712   return TCL_ERROR;
35713 }
35714 
35715 
35716 SWIGINTERN int
_wrap_Database_synonym_keys_begin(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])35717 _wrap_Database_synonym_keys_begin(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
35718   Tcl_Obj *CONST *argv = objv+1;
35719   int argc = objc-1;
35720   if (argc == 1) {
35721     int _v;
35722     void *vptr = 0;
35723     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Database, 0);
35724     _v = SWIG_CheckState(res);
35725     if (_v) {
35726       return _wrap_Database_synonym_keys_begin__SWIG_1(clientData, interp, objc, argv - 1);
35727     }
35728   }
35729   if (argc == 2) {
35730     int _v;
35731     void *vptr = 0;
35732     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Database, 0);
35733     _v = SWIG_CheckState(res);
35734     if (_v) {
35735       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
35736       _v = SWIG_CheckState(res);
35737       if (_v) {
35738         return _wrap_Database_synonym_keys_begin__SWIG_0(clientData, interp, objc, argv - 1);
35739       }
35740     }
35741   }
35742 
35743   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'Database_synonym_keys_begin'.\n"
35744     "  Possible C/C++ prototypes are:\n"
35745     "    Xapian::Database::synonym_keys_begin(std::string const &) const\n"
35746     "    Xapian::Database::synonym_keys_begin() const\n", TCL_STATIC);
35747   return TCL_ERROR;
35748 }
35749 
35750 
35751 SWIGINTERN int
_wrap_Database_synonym_keys_end__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])35752 _wrap_Database_synonym_keys_end__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
35753   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
35754   std::string *arg2 = 0 ;
35755   void *argp1 = 0 ;
35756   int res1 = 0 ;
35757   int res2 = SWIG_OLDOBJ ;
35758   Xapian::TermIterator result;
35759 
35760   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Database_synonym_keys_end self std::string const & ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
35761   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
35762   if (!SWIG_IsOK(res1)) {
35763     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_synonym_keys_end" "', argument " "1"" of type '" "Xapian::Database const *""'");
35764   }
35765   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
35766   {
35767     std::string *ptr = (std::string *)0;
35768     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
35769     if (!SWIG_IsOK(res2)) {
35770       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_synonym_keys_end" "', argument " "2"" of type '" "std::string const &""'");
35771     }
35772     if (!ptr) {
35773       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_synonym_keys_end" "', argument " "2"" of type '" "std::string const &""'");
35774     }
35775     arg2 = ptr;
35776   }
35777   {
35778     try {
35779       result = ((Xapian::Database const *)arg1)->synonym_keys_end((std::string const &)*arg2);
35780     } catch (const Xapian::Error &e) {
35781       return XapianTclHandleError(interp, e);
35782     } catch (...) {
35783       return XapianTclHandleError(interp);
35784     }
35785   }
35786   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN | 0 ));
35787   if (SWIG_IsNewObj(res2)) delete arg2;
35788   return TCL_OK;
35789 fail:
35790   if (SWIG_IsNewObj(res2)) delete arg2;
35791   return TCL_ERROR;
35792 }
35793 
35794 
35795 SWIGINTERN int
_wrap_Database_synonym_keys_end__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])35796 _wrap_Database_synonym_keys_end__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
35797   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
35798   void *argp1 = 0 ;
35799   int res1 = 0 ;
35800   Xapian::TermIterator result;
35801 
35802   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Database_synonym_keys_end self ",(void *)0) == TCL_ERROR) SWIG_fail;
35803   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
35804   if (!SWIG_IsOK(res1)) {
35805     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_synonym_keys_end" "', argument " "1"" of type '" "Xapian::Database const *""'");
35806   }
35807   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
35808   {
35809     try {
35810       result = ((Xapian::Database const *)arg1)->synonym_keys_end();
35811     } catch (const Xapian::Error &e) {
35812       return XapianTclHandleError(interp, e);
35813     } catch (...) {
35814       return XapianTclHandleError(interp);
35815     }
35816   }
35817   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN | 0 ));
35818   return TCL_OK;
35819 fail:
35820   return TCL_ERROR;
35821 }
35822 
35823 
35824 SWIGINTERN int
_wrap_Database_synonym_keys_end(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])35825 _wrap_Database_synonym_keys_end(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
35826   Tcl_Obj *CONST *argv = objv+1;
35827   int argc = objc-1;
35828   if (argc == 1) {
35829     int _v;
35830     void *vptr = 0;
35831     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Database, 0);
35832     _v = SWIG_CheckState(res);
35833     if (_v) {
35834       return _wrap_Database_synonym_keys_end__SWIG_1(clientData, interp, objc, argv - 1);
35835     }
35836   }
35837   if (argc == 2) {
35838     int _v;
35839     void *vptr = 0;
35840     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Database, 0);
35841     _v = SWIG_CheckState(res);
35842     if (_v) {
35843       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
35844       _v = SWIG_CheckState(res);
35845       if (_v) {
35846         return _wrap_Database_synonym_keys_end__SWIG_0(clientData, interp, objc, argv - 1);
35847       }
35848     }
35849   }
35850 
35851   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'Database_synonym_keys_end'.\n"
35852     "  Possible C/C++ prototypes are:\n"
35853     "    Xapian::Database::synonym_keys_end(std::string const &) const\n"
35854     "    Xapian::Database::synonym_keys_end() const\n", TCL_STATIC);
35855   return TCL_ERROR;
35856 }
35857 
35858 
35859 SWIGINTERN int
_wrap_Database_get_metadata(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])35860 _wrap_Database_get_metadata(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
35861   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
35862   std::string *arg2 = 0 ;
35863   void *argp1 = 0 ;
35864   int res1 = 0 ;
35865   int res2 = SWIG_OLDOBJ ;
35866   std::string result;
35867 
35868   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Database_get_metadata self key ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
35869   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
35870   if (!SWIG_IsOK(res1)) {
35871     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_metadata" "', argument " "1"" of type '" "Xapian::Database const *""'");
35872   }
35873   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
35874   {
35875     std::string *ptr = (std::string *)0;
35876     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
35877     if (!SWIG_IsOK(res2)) {
35878       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_get_metadata" "', argument " "2"" of type '" "std::string const &""'");
35879     }
35880     if (!ptr) {
35881       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_get_metadata" "', argument " "2"" of type '" "std::string const &""'");
35882     }
35883     arg2 = ptr;
35884   }
35885   {
35886     try {
35887       result = ((Xapian::Database const *)arg1)->get_metadata((std::string const &)*arg2);
35888     } catch (const Xapian::Error &e) {
35889       return XapianTclHandleError(interp, e);
35890     } catch (...) {
35891       return XapianTclHandleError(interp);
35892     }
35893   }
35894   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
35895   if (SWIG_IsNewObj(res2)) delete arg2;
35896   return TCL_OK;
35897 fail:
35898   if (SWIG_IsNewObj(res2)) delete arg2;
35899   return TCL_ERROR;
35900 }
35901 
35902 
35903 SWIGINTERN int
_wrap_Database_metadata_keys_begin__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])35904 _wrap_Database_metadata_keys_begin__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
35905   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
35906   std::string *arg2 = 0 ;
35907   void *argp1 = 0 ;
35908   int res1 = 0 ;
35909   int res2 = SWIG_OLDOBJ ;
35910   Xapian::TermIterator result;
35911 
35912   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Database_metadata_keys_begin self prefix ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
35913   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
35914   if (!SWIG_IsOK(res1)) {
35915     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_metadata_keys_begin" "', argument " "1"" of type '" "Xapian::Database const *""'");
35916   }
35917   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
35918   {
35919     std::string *ptr = (std::string *)0;
35920     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
35921     if (!SWIG_IsOK(res2)) {
35922       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_metadata_keys_begin" "', argument " "2"" of type '" "std::string const &""'");
35923     }
35924     if (!ptr) {
35925       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_metadata_keys_begin" "', argument " "2"" of type '" "std::string const &""'");
35926     }
35927     arg2 = ptr;
35928   }
35929   {
35930     try {
35931       result = ((Xapian::Database const *)arg1)->metadata_keys_begin((std::string const &)*arg2);
35932     } catch (const Xapian::Error &e) {
35933       return XapianTclHandleError(interp, e);
35934     } catch (...) {
35935       return XapianTclHandleError(interp);
35936     }
35937   }
35938   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN | 0 ));
35939   if (SWIG_IsNewObj(res2)) delete arg2;
35940   return TCL_OK;
35941 fail:
35942   if (SWIG_IsNewObj(res2)) delete arg2;
35943   return TCL_ERROR;
35944 }
35945 
35946 
35947 SWIGINTERN int
_wrap_Database_metadata_keys_begin__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])35948 _wrap_Database_metadata_keys_begin__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
35949   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
35950   void *argp1 = 0 ;
35951   int res1 = 0 ;
35952   Xapian::TermIterator result;
35953 
35954   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Database_metadata_keys_begin self ",(void *)0) == TCL_ERROR) SWIG_fail;
35955   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
35956   if (!SWIG_IsOK(res1)) {
35957     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_metadata_keys_begin" "', argument " "1"" of type '" "Xapian::Database const *""'");
35958   }
35959   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
35960   {
35961     try {
35962       result = ((Xapian::Database const *)arg1)->metadata_keys_begin();
35963     } catch (const Xapian::Error &e) {
35964       return XapianTclHandleError(interp, e);
35965     } catch (...) {
35966       return XapianTclHandleError(interp);
35967     }
35968   }
35969   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN | 0 ));
35970   return TCL_OK;
35971 fail:
35972   return TCL_ERROR;
35973 }
35974 
35975 
35976 SWIGINTERN int
_wrap_Database_metadata_keys_begin(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])35977 _wrap_Database_metadata_keys_begin(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
35978   Tcl_Obj *CONST *argv = objv+1;
35979   int argc = objc-1;
35980   if (argc == 1) {
35981     int _v;
35982     void *vptr = 0;
35983     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Database, 0);
35984     _v = SWIG_CheckState(res);
35985     if (_v) {
35986       return _wrap_Database_metadata_keys_begin__SWIG_1(clientData, interp, objc, argv - 1);
35987     }
35988   }
35989   if (argc == 2) {
35990     int _v;
35991     void *vptr = 0;
35992     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Database, 0);
35993     _v = SWIG_CheckState(res);
35994     if (_v) {
35995       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
35996       _v = SWIG_CheckState(res);
35997       if (_v) {
35998         return _wrap_Database_metadata_keys_begin__SWIG_0(clientData, interp, objc, argv - 1);
35999       }
36000     }
36001   }
36002 
36003   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'Database_metadata_keys_begin'.\n"
36004     "  Possible C/C++ prototypes are:\n"
36005     "    Xapian::Database::metadata_keys_begin(std::string const &) const\n"
36006     "    Xapian::Database::metadata_keys_begin() const\n", TCL_STATIC);
36007   return TCL_ERROR;
36008 }
36009 
36010 
36011 SWIGINTERN int
_wrap_Database_metadata_keys_end__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])36012 _wrap_Database_metadata_keys_end__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
36013   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
36014   std::string *arg2 = 0 ;
36015   void *argp1 = 0 ;
36016   int res1 = 0 ;
36017   int res2 = SWIG_OLDOBJ ;
36018   Xapian::TermIterator result;
36019 
36020   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Database_metadata_keys_end self std::string const & ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
36021   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
36022   if (!SWIG_IsOK(res1)) {
36023     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_metadata_keys_end" "', argument " "1"" of type '" "Xapian::Database const *""'");
36024   }
36025   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
36026   {
36027     std::string *ptr = (std::string *)0;
36028     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
36029     if (!SWIG_IsOK(res2)) {
36030       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_metadata_keys_end" "', argument " "2"" of type '" "std::string const &""'");
36031     }
36032     if (!ptr) {
36033       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_metadata_keys_end" "', argument " "2"" of type '" "std::string const &""'");
36034     }
36035     arg2 = ptr;
36036   }
36037   {
36038     try {
36039       result = ((Xapian::Database const *)arg1)->metadata_keys_end((std::string const &)*arg2);
36040     } catch (const Xapian::Error &e) {
36041       return XapianTclHandleError(interp, e);
36042     } catch (...) {
36043       return XapianTclHandleError(interp);
36044     }
36045   }
36046   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN | 0 ));
36047   if (SWIG_IsNewObj(res2)) delete arg2;
36048   return TCL_OK;
36049 fail:
36050   if (SWIG_IsNewObj(res2)) delete arg2;
36051   return TCL_ERROR;
36052 }
36053 
36054 
36055 SWIGINTERN int
_wrap_Database_metadata_keys_end__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])36056 _wrap_Database_metadata_keys_end__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
36057   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
36058   void *argp1 = 0 ;
36059   int res1 = 0 ;
36060   Xapian::TermIterator result;
36061 
36062   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Database_metadata_keys_end self ",(void *)0) == TCL_ERROR) SWIG_fail;
36063   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
36064   if (!SWIG_IsOK(res1)) {
36065     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_metadata_keys_end" "', argument " "1"" of type '" "Xapian::Database const *""'");
36066   }
36067   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
36068   {
36069     try {
36070       result = ((Xapian::Database const *)arg1)->metadata_keys_end();
36071     } catch (const Xapian::Error &e) {
36072       return XapianTclHandleError(interp, e);
36073     } catch (...) {
36074       return XapianTclHandleError(interp);
36075     }
36076   }
36077   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN | 0 ));
36078   return TCL_OK;
36079 fail:
36080   return TCL_ERROR;
36081 }
36082 
36083 
36084 SWIGINTERN int
_wrap_Database_metadata_keys_end(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])36085 _wrap_Database_metadata_keys_end(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
36086   Tcl_Obj *CONST *argv = objv+1;
36087   int argc = objc-1;
36088   if (argc == 1) {
36089     int _v;
36090     void *vptr = 0;
36091     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Database, 0);
36092     _v = SWIG_CheckState(res);
36093     if (_v) {
36094       return _wrap_Database_metadata_keys_end__SWIG_1(clientData, interp, objc, argv - 1);
36095     }
36096   }
36097   if (argc == 2) {
36098     int _v;
36099     void *vptr = 0;
36100     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Database, 0);
36101     _v = SWIG_CheckState(res);
36102     if (_v) {
36103       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
36104       _v = SWIG_CheckState(res);
36105       if (_v) {
36106         return _wrap_Database_metadata_keys_end__SWIG_0(clientData, interp, objc, argv - 1);
36107       }
36108     }
36109   }
36110 
36111   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'Database_metadata_keys_end'.\n"
36112     "  Possible C/C++ prototypes are:\n"
36113     "    Xapian::Database::metadata_keys_end(std::string const &) const\n"
36114     "    Xapian::Database::metadata_keys_end() const\n", TCL_STATIC);
36115   return TCL_ERROR;
36116 }
36117 
36118 
36119 SWIGINTERN int
_wrap_Database_get_uuid(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])36120 _wrap_Database_get_uuid(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
36121   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
36122   void *argp1 = 0 ;
36123   int res1 = 0 ;
36124   std::string result;
36125 
36126   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Database_get_uuid self ",(void *)0) == TCL_ERROR) SWIG_fail;
36127   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
36128   if (!SWIG_IsOK(res1)) {
36129     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_uuid" "', argument " "1"" of type '" "Xapian::Database const *""'");
36130   }
36131   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
36132   {
36133     try {
36134       result = ((Xapian::Database const *)arg1)->get_uuid();
36135     } catch (const Xapian::Error &e) {
36136       return XapianTclHandleError(interp, e);
36137     } catch (...) {
36138       return XapianTclHandleError(interp);
36139     }
36140   }
36141   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
36142   return TCL_OK;
36143 fail:
36144   return TCL_ERROR;
36145 }
36146 
36147 
36148 SWIGINTERN int
_wrap_Database_locked(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])36149 _wrap_Database_locked(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
36150   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
36151   void *argp1 = 0 ;
36152   int res1 = 0 ;
36153   bool result;
36154 
36155   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Database_locked self ",(void *)0) == TCL_ERROR) SWIG_fail;
36156   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
36157   if (!SWIG_IsOK(res1)) {
36158     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_locked" "', argument " "1"" of type '" "Xapian::Database const *""'");
36159   }
36160   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
36161   {
36162     try {
36163       result = (bool)((Xapian::Database const *)arg1)->locked();
36164     } catch (const Xapian::Error &e) {
36165       return XapianTclHandleError(interp, e);
36166     } catch (...) {
36167       return XapianTclHandleError(interp);
36168     }
36169   }
36170   Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
36171   return TCL_OK;
36172 fail:
36173   return TCL_ERROR;
36174 }
36175 
36176 
36177 SWIGINTERN int
_wrap_Database_get_revision(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])36178 _wrap_Database_get_revision(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
36179   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
36180   void *argp1 = 0 ;
36181   int res1 = 0 ;
36182   Xapian::rev result;
36183 
36184   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Database_get_revision self ",(void *)0) == TCL_ERROR) SWIG_fail;
36185   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
36186   if (!SWIG_IsOK(res1)) {
36187     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_revision" "', argument " "1"" of type '" "Xapian::Database const *""'");
36188   }
36189   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
36190   {
36191     try {
36192       result = (Xapian::rev)((Xapian::Database const *)arg1)->get_revision();
36193     } catch (const Xapian::Error &e) {
36194       return XapianTclHandleError(interp, e);
36195     } catch (...) {
36196       return XapianTclHandleError(interp);
36197     }
36198   }
36199   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)));
36200   return TCL_OK;
36201 fail:
36202   return TCL_ERROR;
36203 }
36204 
36205 
36206 SWIGINTERN int
_wrap_Database_check__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])36207 _wrap_Database_check__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
36208   std::string *arg1 = 0 ;
36209   int arg2 ;
36210   int res1 = SWIG_OLDOBJ ;
36211   int val2 ;
36212   int ecode2 = 0 ;
36213   size_t result;
36214 
36215   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Database_check path opts ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
36216   {
36217     std::string *ptr = (std::string *)0;
36218     res1 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[1], &ptr);
36219     if (!SWIG_IsOK(res1)) {
36220       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_check" "', argument " "1"" of type '" "std::string const &""'");
36221     }
36222     if (!ptr) {
36223       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_check" "', argument " "1"" of type '" "std::string const &""'");
36224     }
36225     arg1 = ptr;
36226   }
36227   ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
36228   if (!SWIG_IsOK(ecode2)) {
36229     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_check" "', argument " "2"" of type '" "int""'");
36230   }
36231   arg2 = static_cast< int >(val2);
36232   {
36233     try {
36234       result = Xapian::Database::check((std::string const &)*arg1,arg2);
36235     } catch (const Xapian::Error &e) {
36236       return XapianTclHandleError(interp, e);
36237     } catch (...) {
36238       return XapianTclHandleError(interp);
36239     }
36240   }
36241   Tcl_SetObjResult(interp,SWIG_From_size_t(static_cast< size_t >(result)));
36242   if (SWIG_IsNewObj(res1)) delete arg1;
36243   return TCL_OK;
36244 fail:
36245   if (SWIG_IsNewObj(res1)) delete arg1;
36246   return TCL_ERROR;
36247 }
36248 
36249 
36250 SWIGINTERN int
_wrap_Database_check__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])36251 _wrap_Database_check__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
36252   std::string *arg1 = 0 ;
36253   int res1 = SWIG_OLDOBJ ;
36254   size_t result;
36255 
36256   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Database_check path ",(void *)0) == TCL_ERROR) SWIG_fail;
36257   {
36258     std::string *ptr = (std::string *)0;
36259     res1 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[1], &ptr);
36260     if (!SWIG_IsOK(res1)) {
36261       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_check" "', argument " "1"" of type '" "std::string const &""'");
36262     }
36263     if (!ptr) {
36264       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_check" "', argument " "1"" of type '" "std::string const &""'");
36265     }
36266     arg1 = ptr;
36267   }
36268   {
36269     try {
36270       result = Xapian::Database::check((std::string const &)*arg1);
36271     } catch (const Xapian::Error &e) {
36272       return XapianTclHandleError(interp, e);
36273     } catch (...) {
36274       return XapianTclHandleError(interp);
36275     }
36276   }
36277   Tcl_SetObjResult(interp,SWIG_From_size_t(static_cast< size_t >(result)));
36278   if (SWIG_IsNewObj(res1)) delete arg1;
36279   return TCL_OK;
36280 fail:
36281   if (SWIG_IsNewObj(res1)) delete arg1;
36282   return TCL_ERROR;
36283 }
36284 
36285 
36286 SWIGINTERN int
_wrap_Database_check__SWIG_2(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])36287 _wrap_Database_check__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
36288   int arg1 ;
36289   int arg2 ;
36290   int val1 ;
36291   int ecode1 = 0 ;
36292   int val2 ;
36293   int ecode2 = 0 ;
36294   size_t result;
36295 
36296   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Database_check fd opts ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
36297   ecode1 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
36298   if (!SWIG_IsOK(ecode1)) {
36299     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Database_check" "', argument " "1"" of type '" "int""'");
36300   }
36301   arg1 = static_cast< int >(val1);
36302   ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
36303   if (!SWIG_IsOK(ecode2)) {
36304     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_check" "', argument " "2"" of type '" "int""'");
36305   }
36306   arg2 = static_cast< int >(val2);
36307   {
36308     try {
36309       result = Xapian::Database::check(arg1,arg2);
36310     } catch (const Xapian::Error &e) {
36311       return XapianTclHandleError(interp, e);
36312     } catch (...) {
36313       return XapianTclHandleError(interp);
36314     }
36315   }
36316   Tcl_SetObjResult(interp,SWIG_From_size_t(static_cast< size_t >(result)));
36317   return TCL_OK;
36318 fail:
36319   return TCL_ERROR;
36320 }
36321 
36322 
36323 SWIGINTERN int
_wrap_Database_check__SWIG_3(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])36324 _wrap_Database_check__SWIG_3(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
36325   int arg1 ;
36326   int val1 ;
36327   int ecode1 = 0 ;
36328   size_t result;
36329 
36330   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::Database_check fd ",(void *)0) == TCL_ERROR) SWIG_fail;
36331   ecode1 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
36332   if (!SWIG_IsOK(ecode1)) {
36333     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Database_check" "', argument " "1"" of type '" "int""'");
36334   }
36335   arg1 = static_cast< int >(val1);
36336   {
36337     try {
36338       result = Xapian::Database::check(arg1);
36339     } catch (const Xapian::Error &e) {
36340       return XapianTclHandleError(interp, e);
36341     } catch (...) {
36342       return XapianTclHandleError(interp);
36343     }
36344   }
36345   Tcl_SetObjResult(interp,SWIG_From_size_t(static_cast< size_t >(result)));
36346   return TCL_OK;
36347 fail:
36348   return TCL_ERROR;
36349 }
36350 
36351 
36352 SWIGINTERN int
_wrap_Database_check(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])36353 _wrap_Database_check(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
36354   Tcl_Obj *CONST *argv = objv+1;
36355   int argc = objc-1;
36356   if (argc == 1) {
36357     int _v;
36358     {
36359       int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
36360       _v = SWIG_CheckState(res);
36361     }
36362     if (_v) {
36363       return _wrap_Database_check__SWIG_3(clientData, interp, objc, argv - 1);
36364     }
36365   }
36366   if (argc == 1) {
36367     int _v;
36368     int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[0], (std::string**)(0));
36369     _v = SWIG_CheckState(res);
36370     if (_v) {
36371       return _wrap_Database_check__SWIG_1(clientData, interp, objc, argv - 1);
36372     }
36373   }
36374   if (argc == 2) {
36375     int _v;
36376     {
36377       int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
36378       _v = SWIG_CheckState(res);
36379     }
36380     if (_v) {
36381       {
36382         int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
36383         _v = SWIG_CheckState(res);
36384       }
36385       if (_v) {
36386         return _wrap_Database_check__SWIG_2(clientData, interp, objc, argv - 1);
36387       }
36388     }
36389   }
36390   if (argc == 2) {
36391     int _v;
36392     int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[0], (std::string**)(0));
36393     _v = SWIG_CheckState(res);
36394     if (_v) {
36395       {
36396         int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
36397         _v = SWIG_CheckState(res);
36398       }
36399       if (_v) {
36400         return _wrap_Database_check__SWIG_0(clientData, interp, objc, argv - 1);
36401       }
36402     }
36403   }
36404 
36405   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'Database_check'.\n"
36406     "  Possible C/C++ prototypes are:\n"
36407     "    Xapian::Database::check(std::string const &,int)\n"
36408     "    Xapian::Database::check(std::string const &)\n"
36409     "    Xapian::Database::check(int,int)\n"
36410     "    Xapian::Database::check(int)\n", TCL_STATIC);
36411   return TCL_ERROR;
36412 }
36413 
36414 
36415 SWIGINTERN int
_wrap_Database_compact__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])36416 _wrap_Database_compact__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
36417   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
36418   std::string *arg2 = 0 ;
36419   unsigned int arg3 ;
36420   int arg4 ;
36421   void *argp1 = 0 ;
36422   int res1 = 0 ;
36423   int res2 = SWIG_OLDOBJ ;
36424   unsigned int val3 ;
36425   int ecode3 = 0 ;
36426   int val4 ;
36427   int ecode4 = 0 ;
36428 
36429   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::Database_compact self output flags block_size ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
36430   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
36431   if (!SWIG_IsOK(res1)) {
36432     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_compact" "', argument " "1"" of type '" "Xapian::Database *""'");
36433   }
36434   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
36435   {
36436     std::string *ptr = (std::string *)0;
36437     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
36438     if (!SWIG_IsOK(res2)) {
36439       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_compact" "', argument " "2"" of type '" "std::string const &""'");
36440     }
36441     if (!ptr) {
36442       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_compact" "', argument " "2"" of type '" "std::string const &""'");
36443     }
36444     arg2 = ptr;
36445   }
36446   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
36447   if (!SWIG_IsOK(ecode3)) {
36448     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Database_compact" "', argument " "3"" of type '" "unsigned int""'");
36449   }
36450   arg3 = static_cast< unsigned int >(val3);
36451   ecode4 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
36452   if (!SWIG_IsOK(ecode4)) {
36453     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Database_compact" "', argument " "4"" of type '" "int""'");
36454   }
36455   arg4 = static_cast< int >(val4);
36456   {
36457     try {
36458       (arg1)->compact((std::string const &)*arg2,arg3,arg4);
36459     } catch (const Xapian::Error &e) {
36460       return XapianTclHandleError(interp, e);
36461     } catch (...) {
36462       return XapianTclHandleError(interp);
36463     }
36464   }
36465 
36466   if (SWIG_IsNewObj(res2)) delete arg2;
36467   return TCL_OK;
36468 fail:
36469   if (SWIG_IsNewObj(res2)) delete arg2;
36470   return TCL_ERROR;
36471 }
36472 
36473 
36474 SWIGINTERN int
_wrap_Database_compact__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])36475 _wrap_Database_compact__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
36476   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
36477   std::string *arg2 = 0 ;
36478   unsigned int arg3 ;
36479   void *argp1 = 0 ;
36480   int res1 = 0 ;
36481   int res2 = SWIG_OLDOBJ ;
36482   unsigned int val3 ;
36483   int ecode3 = 0 ;
36484 
36485   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::Database_compact self output flags ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
36486   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
36487   if (!SWIG_IsOK(res1)) {
36488     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_compact" "', argument " "1"" of type '" "Xapian::Database *""'");
36489   }
36490   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
36491   {
36492     std::string *ptr = (std::string *)0;
36493     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
36494     if (!SWIG_IsOK(res2)) {
36495       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_compact" "', argument " "2"" of type '" "std::string const &""'");
36496     }
36497     if (!ptr) {
36498       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_compact" "', argument " "2"" of type '" "std::string const &""'");
36499     }
36500     arg2 = ptr;
36501   }
36502   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
36503   if (!SWIG_IsOK(ecode3)) {
36504     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Database_compact" "', argument " "3"" of type '" "unsigned int""'");
36505   }
36506   arg3 = static_cast< unsigned int >(val3);
36507   {
36508     try {
36509       (arg1)->compact((std::string const &)*arg2,arg3);
36510     } catch (const Xapian::Error &e) {
36511       return XapianTclHandleError(interp, e);
36512     } catch (...) {
36513       return XapianTclHandleError(interp);
36514     }
36515   }
36516 
36517   if (SWIG_IsNewObj(res2)) delete arg2;
36518   return TCL_OK;
36519 fail:
36520   if (SWIG_IsNewObj(res2)) delete arg2;
36521   return TCL_ERROR;
36522 }
36523 
36524 
36525 SWIGINTERN int
_wrap_Database_compact__SWIG_2(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])36526 _wrap_Database_compact__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
36527   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
36528   std::string *arg2 = 0 ;
36529   void *argp1 = 0 ;
36530   int res1 = 0 ;
36531   int res2 = SWIG_OLDOBJ ;
36532 
36533   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Database_compact self output ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
36534   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
36535   if (!SWIG_IsOK(res1)) {
36536     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_compact" "', argument " "1"" of type '" "Xapian::Database *""'");
36537   }
36538   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
36539   {
36540     std::string *ptr = (std::string *)0;
36541     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
36542     if (!SWIG_IsOK(res2)) {
36543       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_compact" "', argument " "2"" of type '" "std::string const &""'");
36544     }
36545     if (!ptr) {
36546       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_compact" "', argument " "2"" of type '" "std::string const &""'");
36547     }
36548     arg2 = ptr;
36549   }
36550   {
36551     try {
36552       (arg1)->compact((std::string const &)*arg2);
36553     } catch (const Xapian::Error &e) {
36554       return XapianTclHandleError(interp, e);
36555     } catch (...) {
36556       return XapianTclHandleError(interp);
36557     }
36558   }
36559 
36560   if (SWIG_IsNewObj(res2)) delete arg2;
36561   return TCL_OK;
36562 fail:
36563   if (SWIG_IsNewObj(res2)) delete arg2;
36564   return TCL_ERROR;
36565 }
36566 
36567 
36568 SWIGINTERN int
_wrap_Database_compact__SWIG_3(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])36569 _wrap_Database_compact__SWIG_3(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
36570   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
36571   int arg2 ;
36572   unsigned int arg3 ;
36573   int arg4 ;
36574   void *argp1 = 0 ;
36575   int res1 = 0 ;
36576   int val2 ;
36577   int ecode2 = 0 ;
36578   unsigned int val3 ;
36579   int ecode3 = 0 ;
36580   int val4 ;
36581   int ecode4 = 0 ;
36582 
36583   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::Database_compact self fd flags block_size ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
36584   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
36585   if (!SWIG_IsOK(res1)) {
36586     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_compact" "', argument " "1"" of type '" "Xapian::Database *""'");
36587   }
36588   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
36589   ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
36590   if (!SWIG_IsOK(ecode2)) {
36591     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_compact" "', argument " "2"" of type '" "int""'");
36592   }
36593   arg2 = static_cast< int >(val2);
36594   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
36595   if (!SWIG_IsOK(ecode3)) {
36596     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Database_compact" "', argument " "3"" of type '" "unsigned int""'");
36597   }
36598   arg3 = static_cast< unsigned int >(val3);
36599   ecode4 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
36600   if (!SWIG_IsOK(ecode4)) {
36601     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Database_compact" "', argument " "4"" of type '" "int""'");
36602   }
36603   arg4 = static_cast< int >(val4);
36604   {
36605     try {
36606       (arg1)->compact(arg2,arg3,arg4);
36607     } catch (const Xapian::Error &e) {
36608       return XapianTclHandleError(interp, e);
36609     } catch (...) {
36610       return XapianTclHandleError(interp);
36611     }
36612   }
36613 
36614   return TCL_OK;
36615 fail:
36616   return TCL_ERROR;
36617 }
36618 
36619 
36620 SWIGINTERN int
_wrap_Database_compact__SWIG_4(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])36621 _wrap_Database_compact__SWIG_4(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
36622   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
36623   int arg2 ;
36624   unsigned int arg3 ;
36625   void *argp1 = 0 ;
36626   int res1 = 0 ;
36627   int val2 ;
36628   int ecode2 = 0 ;
36629   unsigned int val3 ;
36630   int ecode3 = 0 ;
36631 
36632   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::Database_compact self fd flags ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
36633   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
36634   if (!SWIG_IsOK(res1)) {
36635     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_compact" "', argument " "1"" of type '" "Xapian::Database *""'");
36636   }
36637   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
36638   ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
36639   if (!SWIG_IsOK(ecode2)) {
36640     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_compact" "', argument " "2"" of type '" "int""'");
36641   }
36642   arg2 = static_cast< int >(val2);
36643   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
36644   if (!SWIG_IsOK(ecode3)) {
36645     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Database_compact" "', argument " "3"" of type '" "unsigned int""'");
36646   }
36647   arg3 = static_cast< unsigned int >(val3);
36648   {
36649     try {
36650       (arg1)->compact(arg2,arg3);
36651     } catch (const Xapian::Error &e) {
36652       return XapianTclHandleError(interp, e);
36653     } catch (...) {
36654       return XapianTclHandleError(interp);
36655     }
36656   }
36657 
36658   return TCL_OK;
36659 fail:
36660   return TCL_ERROR;
36661 }
36662 
36663 
36664 SWIGINTERN int
_wrap_Database_compact__SWIG_5(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])36665 _wrap_Database_compact__SWIG_5(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
36666   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
36667   int arg2 ;
36668   void *argp1 = 0 ;
36669   int res1 = 0 ;
36670   int val2 ;
36671   int ecode2 = 0 ;
36672 
36673   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::Database_compact self fd ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
36674   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
36675   if (!SWIG_IsOK(res1)) {
36676     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_compact" "', argument " "1"" of type '" "Xapian::Database *""'");
36677   }
36678   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
36679   ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
36680   if (!SWIG_IsOK(ecode2)) {
36681     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_compact" "', argument " "2"" of type '" "int""'");
36682   }
36683   arg2 = static_cast< int >(val2);
36684   {
36685     try {
36686       (arg1)->compact(arg2);
36687     } catch (const Xapian::Error &e) {
36688       return XapianTclHandleError(interp, e);
36689     } catch (...) {
36690       return XapianTclHandleError(interp);
36691     }
36692   }
36693 
36694   return TCL_OK;
36695 fail:
36696   return TCL_ERROR;
36697 }
36698 
36699 
36700 SWIGINTERN int
_wrap_Database_compact__SWIG_6(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])36701 _wrap_Database_compact__SWIG_6(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
36702   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
36703   std::string *arg2 = 0 ;
36704   unsigned int arg3 ;
36705   int arg4 ;
36706   Xapian::Compactor *arg5 = 0 ;
36707   void *argp1 = 0 ;
36708   int res1 = 0 ;
36709   int res2 = SWIG_OLDOBJ ;
36710   unsigned int val3 ;
36711   int ecode3 = 0 ;
36712   int val4 ;
36713   int ecode4 = 0 ;
36714   void *argp5 = 0 ;
36715   int res5 = 0 ;
36716 
36717   if (SWIG_GetArgs(interp, objc, objv,"ooooo:xapian::Database_compact self output flags block_size compactor ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
36718   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
36719   if (!SWIG_IsOK(res1)) {
36720     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_compact" "', argument " "1"" of type '" "Xapian::Database *""'");
36721   }
36722   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
36723   {
36724     std::string *ptr = (std::string *)0;
36725     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
36726     if (!SWIG_IsOK(res2)) {
36727       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_compact" "', argument " "2"" of type '" "std::string const &""'");
36728     }
36729     if (!ptr) {
36730       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_compact" "', argument " "2"" of type '" "std::string const &""'");
36731     }
36732     arg2 = ptr;
36733   }
36734   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
36735   if (!SWIG_IsOK(ecode3)) {
36736     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Database_compact" "', argument " "3"" of type '" "unsigned int""'");
36737   }
36738   arg3 = static_cast< unsigned int >(val3);
36739   ecode4 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
36740   if (!SWIG_IsOK(ecode4)) {
36741     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Database_compact" "', argument " "4"" of type '" "int""'");
36742   }
36743   arg4 = static_cast< int >(val4);
36744   res5 = SWIG_ConvertPtr(objv[5], &argp5, SWIGTYPE_p_Xapian__Compactor,  0 );
36745   if (!SWIG_IsOK(res5)) {
36746     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Database_compact" "', argument " "5"" of type '" "Xapian::Compactor &""'");
36747   }
36748   if (!argp5) {
36749     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_compact" "', argument " "5"" of type '" "Xapian::Compactor &""'");
36750   }
36751   arg5 = reinterpret_cast< Xapian::Compactor * >(argp5);
36752   {
36753     try {
36754       (arg1)->compact((std::string const &)*arg2,arg3,arg4,*arg5);
36755     } catch (const Xapian::Error &e) {
36756       return XapianTclHandleError(interp, e);
36757     } catch (...) {
36758       return XapianTclHandleError(interp);
36759     }
36760   }
36761 
36762   if (SWIG_IsNewObj(res2)) delete arg2;
36763   return TCL_OK;
36764 fail:
36765   if (SWIG_IsNewObj(res2)) delete arg2;
36766   return TCL_ERROR;
36767 }
36768 
36769 
36770 SWIGINTERN int
_wrap_Database_compact__SWIG_7(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])36771 _wrap_Database_compact__SWIG_7(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
36772   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
36773   int arg2 ;
36774   unsigned int arg3 ;
36775   int arg4 ;
36776   Xapian::Compactor *arg5 = 0 ;
36777   void *argp1 = 0 ;
36778   int res1 = 0 ;
36779   int val2 ;
36780   int ecode2 = 0 ;
36781   unsigned int val3 ;
36782   int ecode3 = 0 ;
36783   int val4 ;
36784   int ecode4 = 0 ;
36785   void *argp5 = 0 ;
36786   int res5 = 0 ;
36787 
36788   if (SWIG_GetArgs(interp, objc, objv,"ooooo:xapian::Database_compact self fd flags block_size compactor ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
36789   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
36790   if (!SWIG_IsOK(res1)) {
36791     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_compact" "', argument " "1"" of type '" "Xapian::Database *""'");
36792   }
36793   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
36794   ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
36795   if (!SWIG_IsOK(ecode2)) {
36796     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_compact" "', argument " "2"" of type '" "int""'");
36797   }
36798   arg2 = static_cast< int >(val2);
36799   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
36800   if (!SWIG_IsOK(ecode3)) {
36801     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Database_compact" "', argument " "3"" of type '" "unsigned int""'");
36802   }
36803   arg3 = static_cast< unsigned int >(val3);
36804   ecode4 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
36805   if (!SWIG_IsOK(ecode4)) {
36806     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Database_compact" "', argument " "4"" of type '" "int""'");
36807   }
36808   arg4 = static_cast< int >(val4);
36809   res5 = SWIG_ConvertPtr(objv[5], &argp5, SWIGTYPE_p_Xapian__Compactor,  0 );
36810   if (!SWIG_IsOK(res5)) {
36811     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Database_compact" "', argument " "5"" of type '" "Xapian::Compactor &""'");
36812   }
36813   if (!argp5) {
36814     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_compact" "', argument " "5"" of type '" "Xapian::Compactor &""'");
36815   }
36816   arg5 = reinterpret_cast< Xapian::Compactor * >(argp5);
36817   {
36818     try {
36819       (arg1)->compact(arg2,arg3,arg4,*arg5);
36820     } catch (const Xapian::Error &e) {
36821       return XapianTclHandleError(interp, e);
36822     } catch (...) {
36823       return XapianTclHandleError(interp);
36824     }
36825   }
36826 
36827   return TCL_OK;
36828 fail:
36829   return TCL_ERROR;
36830 }
36831 
36832 
36833 SWIGINTERN int
_wrap_Database_compact(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])36834 _wrap_Database_compact(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
36835   Tcl_Obj *CONST *argv = objv+1;
36836   int argc = objc-1;
36837   if (argc == 2) {
36838     int _v;
36839     void *vptr = 0;
36840     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Database, 0);
36841     _v = SWIG_CheckState(res);
36842     if (_v) {
36843       {
36844         int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
36845         _v = SWIG_CheckState(res);
36846       }
36847       if (_v) {
36848         return _wrap_Database_compact__SWIG_5(clientData, interp, objc, argv - 1);
36849       }
36850     }
36851   }
36852   if (argc == 2) {
36853     int _v;
36854     void *vptr = 0;
36855     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Database, 0);
36856     _v = SWIG_CheckState(res);
36857     if (_v) {
36858       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
36859       _v = SWIG_CheckState(res);
36860       if (_v) {
36861         return _wrap_Database_compact__SWIG_2(clientData, interp, objc, argv - 1);
36862       }
36863     }
36864   }
36865   if (argc == 3) {
36866     int _v;
36867     void *vptr = 0;
36868     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Database, 0);
36869     _v = SWIG_CheckState(res);
36870     if (_v) {
36871       {
36872         int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
36873         _v = SWIG_CheckState(res);
36874       }
36875       if (_v) {
36876         {
36877           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
36878           _v = SWIG_CheckState(res);
36879         }
36880         if (_v) {
36881           return _wrap_Database_compact__SWIG_4(clientData, interp, objc, argv - 1);
36882         }
36883       }
36884     }
36885   }
36886   if (argc == 3) {
36887     int _v;
36888     void *vptr = 0;
36889     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Database, 0);
36890     _v = SWIG_CheckState(res);
36891     if (_v) {
36892       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
36893       _v = SWIG_CheckState(res);
36894       if (_v) {
36895         {
36896           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
36897           _v = SWIG_CheckState(res);
36898         }
36899         if (_v) {
36900           return _wrap_Database_compact__SWIG_1(clientData, interp, objc, argv - 1);
36901         }
36902       }
36903     }
36904   }
36905   if (argc == 4) {
36906     int _v;
36907     void *vptr = 0;
36908     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Database, 0);
36909     _v = SWIG_CheckState(res);
36910     if (_v) {
36911       {
36912         int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
36913         _v = SWIG_CheckState(res);
36914       }
36915       if (_v) {
36916         {
36917           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
36918           _v = SWIG_CheckState(res);
36919         }
36920         if (_v) {
36921           {
36922             int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
36923             _v = SWIG_CheckState(res);
36924           }
36925           if (_v) {
36926             return _wrap_Database_compact__SWIG_3(clientData, interp, objc, argv - 1);
36927           }
36928         }
36929       }
36930     }
36931   }
36932   if (argc == 4) {
36933     int _v;
36934     void *vptr = 0;
36935     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Database, 0);
36936     _v = SWIG_CheckState(res);
36937     if (_v) {
36938       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
36939       _v = SWIG_CheckState(res);
36940       if (_v) {
36941         {
36942           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
36943           _v = SWIG_CheckState(res);
36944         }
36945         if (_v) {
36946           {
36947             int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
36948             _v = SWIG_CheckState(res);
36949           }
36950           if (_v) {
36951             return _wrap_Database_compact__SWIG_0(clientData, interp, objc, argv - 1);
36952           }
36953         }
36954       }
36955     }
36956   }
36957   if (argc == 5) {
36958     int _v;
36959     void *vptr = 0;
36960     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Database, 0);
36961     _v = SWIG_CheckState(res);
36962     if (_v) {
36963       {
36964         int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
36965         _v = SWIG_CheckState(res);
36966       }
36967       if (_v) {
36968         {
36969           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
36970           _v = SWIG_CheckState(res);
36971         }
36972         if (_v) {
36973           {
36974             int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
36975             _v = SWIG_CheckState(res);
36976           }
36977           if (_v) {
36978             void *vptr = 0;
36979             int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_Xapian__Compactor, 0);
36980             _v = SWIG_CheckState(res);
36981             if (_v) {
36982               return _wrap_Database_compact__SWIG_7(clientData, interp, objc, argv - 1);
36983             }
36984           }
36985         }
36986       }
36987     }
36988   }
36989   if (argc == 5) {
36990     int _v;
36991     void *vptr = 0;
36992     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__Database, 0);
36993     _v = SWIG_CheckState(res);
36994     if (_v) {
36995       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
36996       _v = SWIG_CheckState(res);
36997       if (_v) {
36998         {
36999           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
37000           _v = SWIG_CheckState(res);
37001         }
37002         if (_v) {
37003           {
37004             int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
37005             _v = SWIG_CheckState(res);
37006           }
37007           if (_v) {
37008             void *vptr = 0;
37009             int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_Xapian__Compactor, 0);
37010             _v = SWIG_CheckState(res);
37011             if (_v) {
37012               return _wrap_Database_compact__SWIG_6(clientData, interp, objc, argv - 1);
37013             }
37014           }
37015         }
37016       }
37017     }
37018   }
37019 
37020   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'Database_compact'.\n"
37021     "  Possible C/C++ prototypes are:\n"
37022     "    Xapian::Database::compact(std::string const &,unsigned int,int)\n"
37023     "    Xapian::Database::compact(std::string const &,unsigned int)\n"
37024     "    Xapian::Database::compact(std::string const &)\n"
37025     "    Xapian::Database::compact(int,unsigned int,int)\n"
37026     "    Xapian::Database::compact(int,unsigned int)\n"
37027     "    Xapian::Database::compact(int)\n"
37028     "    Xapian::Database::compact(std::string const &,unsigned int,int,Xapian::Compactor &)\n"
37029     "    Xapian::Database::compact(int,unsigned int,int,Xapian::Compactor &)\n", TCL_STATIC);
37030   return TCL_ERROR;
37031 }
37032 
37033 
swig_delete_Database(void * obj)37034 SWIGINTERN void swig_delete_Database(void *obj) {
37035 Xapian::Database *arg1 = (Xapian::Database *) obj;
37036 delete arg1;
37037 }
37038 static swig_method swig_Xapian_Database_methods[] = {
37039     {"add_database", _wrap_Database_add_database},
37040     {"size", _wrap_Database_size},
37041     {"reopen", _wrap_Database_reopen},
37042     {"close", _wrap_Database_close},
37043     {"get_description", _wrap_Database_get_description},
37044     {"postlist_begin", _wrap_Database_postlist_begin},
37045     {"postlist_end", _wrap_Database_postlist_end},
37046     {"termlist_begin", _wrap_Database_termlist_begin},
37047     {"termlist_end", _wrap_Database_termlist_end},
37048     {"has_positions", _wrap_Database_has_positions},
37049     {"positionlist_begin", _wrap_Database_positionlist_begin},
37050     {"positionlist_end", _wrap_Database_positionlist_end},
37051     {"allterms_begin", _wrap_Database_allterms_begin},
37052     {"allterms_end", _wrap_Database_allterms_end},
37053     {"get_doccount", _wrap_Database_get_doccount},
37054     {"get_lastdocid", _wrap_Database_get_lastdocid},
37055     {"get_avlength", _wrap_Database_get_avlength},
37056     {"get_average_length", _wrap_Database_get_average_length},
37057     {"get_total_length", _wrap_Database_get_total_length},
37058     {"get_termfreq", _wrap_Database_get_termfreq},
37059     {"term_exists", _wrap_Database_term_exists},
37060     {"get_collection_freq", _wrap_Database_get_collection_freq},
37061     {"get_value_freq", _wrap_Database_get_value_freq},
37062     {"get_value_lower_bound", _wrap_Database_get_value_lower_bound},
37063     {"get_value_upper_bound", _wrap_Database_get_value_upper_bound},
37064     {"get_doclength_lower_bound", _wrap_Database_get_doclength_lower_bound},
37065     {"get_doclength_upper_bound", _wrap_Database_get_doclength_upper_bound},
37066     {"get_wdf_upper_bound", _wrap_Database_get_wdf_upper_bound},
37067     {"valuestream_begin", _wrap_Database_valuestream_begin},
37068     {"valuestream_end", _wrap_Database_valuestream_end},
37069     {"get_doclength", _wrap_Database_get_doclength},
37070     {"get_unique_terms", _wrap_Database_get_unique_terms},
37071     {"keep_alive", _wrap_Database_keep_alive},
37072     {"get_document", _wrap_Database_get_document},
37073     {"get_spelling_suggestion", _wrap_Database_get_spelling_suggestion},
37074     {"spellings_begin", _wrap_Database_spellings_begin},
37075     {"spellings_end", _wrap_Database_spellings_end},
37076     {"synonyms_begin", _wrap_Database_synonyms_begin},
37077     {"synonyms_end", _wrap_Database_synonyms_end},
37078     {"synonym_keys_begin", _wrap_Database_synonym_keys_begin},
37079     {"synonym_keys_end", _wrap_Database_synonym_keys_end},
37080     {"get_metadata", _wrap_Database_get_metadata},
37081     {"metadata_keys_begin", _wrap_Database_metadata_keys_begin},
37082     {"metadata_keys_end", _wrap_Database_metadata_keys_end},
37083     {"get_uuid", _wrap_Database_get_uuid},
37084     {"locked", _wrap_Database_locked},
37085     {"get_revision", _wrap_Database_get_revision},
37086     {"compact", _wrap_Database_compact},
37087     {0,0}
37088 };
37089 static swig_attribute swig_Xapian_Database_attributes[] = {
37090     {0,0,0}
37091 };
37092 static swig_class *swig_Xapian_Database_bases[] = {0};
37093 static const char * swig_Xapian_Database_base_names[] = {0};
37094 static swig_class _wrap_class_Xapian_Database = { "Database", &SWIGTYPE_p_Xapian__Database,_wrap_new_Database, swig_delete_Database, swig_Xapian_Database_methods, swig_Xapian_Database_attributes, swig_Xapian_Database_bases,swig_Xapian_Database_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
37095 SWIGINTERN int
_wrap_delete_WritableDatabase(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])37096 _wrap_delete_WritableDatabase(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
37097   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
37098   void *argp1 = 0 ;
37099   int res1 = 0 ;
37100 
37101   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::delete_WritableDatabase self ",(void *)0) == TCL_ERROR) SWIG_fail;
37102   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, SWIG_POINTER_DISOWN |  0 );
37103   if (!SWIG_IsOK(res1)) {
37104     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_WritableDatabase" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'");
37105   }
37106   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
37107   {
37108     try {
37109       delete arg1;
37110     } catch (const Xapian::Error &e) {
37111       return XapianTclHandleError(interp, e);
37112     } catch (...) {
37113       return XapianTclHandleError(interp);
37114     }
37115   }
37116 
37117   return TCL_OK;
37118 fail:
37119   return TCL_ERROR;
37120 }
37121 
37122 
37123 SWIGINTERN int
_wrap_new_WritableDatabase__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])37124 _wrap_new_WritableDatabase__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
37125   Xapian::WritableDatabase *result = 0 ;
37126 
37127   if (SWIG_GetArgs(interp, objc, objv,":xapian::new_WritableDatabase ") == TCL_ERROR) SWIG_fail;
37128   {
37129     try {
37130       result = (Xapian::WritableDatabase *)new Xapian::WritableDatabase();
37131     } catch (const Xapian::Error &e) {
37132       return XapianTclHandleError(interp, e);
37133     } catch (...) {
37134       return XapianTclHandleError(interp);
37135     }
37136   }
37137   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__WritableDatabase,0));
37138   return TCL_OK;
37139 fail:
37140   return TCL_ERROR;
37141 }
37142 
37143 
37144 SWIGINTERN int
_wrap_new_WritableDatabase__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])37145 _wrap_new_WritableDatabase__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
37146   std::string *arg1 = 0 ;
37147   int arg2 ;
37148   int arg3 ;
37149   int res1 = SWIG_OLDOBJ ;
37150   int val2 ;
37151   int ecode2 = 0 ;
37152   int val3 ;
37153   int ecode3 = 0 ;
37154   Xapian::WritableDatabase *result = 0 ;
37155 
37156   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::new_WritableDatabase path flags block_size ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
37157   {
37158     std::string *ptr = (std::string *)0;
37159     res1 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[1], &ptr);
37160     if (!SWIG_IsOK(res1)) {
37161       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WritableDatabase" "', argument " "1"" of type '" "std::string const &""'");
37162     }
37163     if (!ptr) {
37164       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_WritableDatabase" "', argument " "1"" of type '" "std::string const &""'");
37165     }
37166     arg1 = ptr;
37167   }
37168   ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
37169   if (!SWIG_IsOK(ecode2)) {
37170     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_WritableDatabase" "', argument " "2"" of type '" "int""'");
37171   }
37172   arg2 = static_cast< int >(val2);
37173   ecode3 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
37174   if (!SWIG_IsOK(ecode3)) {
37175     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_WritableDatabase" "', argument " "3"" of type '" "int""'");
37176   }
37177   arg3 = static_cast< int >(val3);
37178   {
37179     try {
37180       result = (Xapian::WritableDatabase *)new Xapian::WritableDatabase((std::string const &)*arg1,arg2,arg3);
37181     } catch (const Xapian::Error &e) {
37182       return XapianTclHandleError(interp, e);
37183     } catch (...) {
37184       return XapianTclHandleError(interp);
37185     }
37186   }
37187   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__WritableDatabase,0));
37188   if (SWIG_IsNewObj(res1)) delete arg1;
37189   return TCL_OK;
37190 fail:
37191   if (SWIG_IsNewObj(res1)) delete arg1;
37192   return TCL_ERROR;
37193 }
37194 
37195 
37196 SWIGINTERN int
_wrap_new_WritableDatabase__SWIG_2(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])37197 _wrap_new_WritableDatabase__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
37198   std::string *arg1 = 0 ;
37199   int arg2 ;
37200   int res1 = SWIG_OLDOBJ ;
37201   int val2 ;
37202   int ecode2 = 0 ;
37203   Xapian::WritableDatabase *result = 0 ;
37204 
37205   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::new_WritableDatabase path flags ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
37206   {
37207     std::string *ptr = (std::string *)0;
37208     res1 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[1], &ptr);
37209     if (!SWIG_IsOK(res1)) {
37210       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WritableDatabase" "', argument " "1"" of type '" "std::string const &""'");
37211     }
37212     if (!ptr) {
37213       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_WritableDatabase" "', argument " "1"" of type '" "std::string const &""'");
37214     }
37215     arg1 = ptr;
37216   }
37217   ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
37218   if (!SWIG_IsOK(ecode2)) {
37219     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_WritableDatabase" "', argument " "2"" of type '" "int""'");
37220   }
37221   arg2 = static_cast< int >(val2);
37222   {
37223     try {
37224       result = (Xapian::WritableDatabase *)new Xapian::WritableDatabase((std::string const &)*arg1,arg2);
37225     } catch (const Xapian::Error &e) {
37226       return XapianTclHandleError(interp, e);
37227     } catch (...) {
37228       return XapianTclHandleError(interp);
37229     }
37230   }
37231   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__WritableDatabase,0));
37232   if (SWIG_IsNewObj(res1)) delete arg1;
37233   return TCL_OK;
37234 fail:
37235   if (SWIG_IsNewObj(res1)) delete arg1;
37236   return TCL_ERROR;
37237 }
37238 
37239 
37240 SWIGINTERN int
_wrap_new_WritableDatabase__SWIG_3(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])37241 _wrap_new_WritableDatabase__SWIG_3(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
37242   std::string *arg1 = 0 ;
37243   int res1 = SWIG_OLDOBJ ;
37244   Xapian::WritableDatabase *result = 0 ;
37245 
37246   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_WritableDatabase path ",(void *)0) == TCL_ERROR) SWIG_fail;
37247   {
37248     std::string *ptr = (std::string *)0;
37249     res1 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[1], &ptr);
37250     if (!SWIG_IsOK(res1)) {
37251       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WritableDatabase" "', argument " "1"" of type '" "std::string const &""'");
37252     }
37253     if (!ptr) {
37254       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_WritableDatabase" "', argument " "1"" of type '" "std::string const &""'");
37255     }
37256     arg1 = ptr;
37257   }
37258   {
37259     try {
37260       result = (Xapian::WritableDatabase *)new Xapian::WritableDatabase((std::string const &)*arg1);
37261     } catch (const Xapian::Error &e) {
37262       return XapianTclHandleError(interp, e);
37263     } catch (...) {
37264       return XapianTclHandleError(interp);
37265     }
37266   }
37267   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__WritableDatabase,0));
37268   if (SWIG_IsNewObj(res1)) delete arg1;
37269   return TCL_OK;
37270 fail:
37271   if (SWIG_IsNewObj(res1)) delete arg1;
37272   return TCL_ERROR;
37273 }
37274 
37275 
37276 SWIGINTERN int
_wrap_new_WritableDatabase__SWIG_4(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])37277 _wrap_new_WritableDatabase__SWIG_4(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
37278   Xapian::WritableDatabase *arg1 = 0 ;
37279   void *argp1 ;
37280   int res1 = 0 ;
37281   Xapian::WritableDatabase *result = 0 ;
37282 
37283   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::new_WritableDatabase other ",(void *)0) == TCL_ERROR) SWIG_fail;
37284   res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_Xapian__WritableDatabase,  0 );
37285   if (!SWIG_IsOK(res1)) {
37286     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WritableDatabase" "', argument " "1"" of type '" "Xapian::WritableDatabase const &""'");
37287   }
37288   if (!argp1) {
37289     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_WritableDatabase" "', argument " "1"" of type '" "Xapian::WritableDatabase const &""'");
37290   }
37291   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
37292   {
37293     try {
37294       result = (Xapian::WritableDatabase *)new Xapian::WritableDatabase((Xapian::WritableDatabase const &)*arg1);
37295     } catch (const Xapian::Error &e) {
37296       return XapianTclHandleError(interp, e);
37297     } catch (...) {
37298       return XapianTclHandleError(interp);
37299     }
37300   }
37301   Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__WritableDatabase,0));
37302   return TCL_OK;
37303 fail:
37304   return TCL_ERROR;
37305 }
37306 
37307 
37308 SWIGINTERN int
_wrap_new_WritableDatabase(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])37309 _wrap_new_WritableDatabase(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
37310   Tcl_Obj *CONST *argv = objv+1;
37311   int argc = objc-1;
37312   if (argc == 0) {
37313     return _wrap_new_WritableDatabase__SWIG_0(clientData, interp, objc, argv - 1);
37314   }
37315   if (argc == 1) {
37316     int _v;
37317     void *vptr = 0;
37318     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__WritableDatabase, 0);
37319     _v = SWIG_CheckState(res);
37320     if (_v) {
37321       return _wrap_new_WritableDatabase__SWIG_4(clientData, interp, objc, argv - 1);
37322     }
37323   }
37324   if (argc == 1) {
37325     int _v;
37326     int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[0], (std::string**)(0));
37327     _v = SWIG_CheckState(res);
37328     if (_v) {
37329       return _wrap_new_WritableDatabase__SWIG_3(clientData, interp, objc, argv - 1);
37330     }
37331   }
37332   if (argc == 2) {
37333     int _v;
37334     int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[0], (std::string**)(0));
37335     _v = SWIG_CheckState(res);
37336     if (_v) {
37337       {
37338         int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
37339         _v = SWIG_CheckState(res);
37340       }
37341       if (_v) {
37342         return _wrap_new_WritableDatabase__SWIG_2(clientData, interp, objc, argv - 1);
37343       }
37344     }
37345   }
37346   if (argc == 3) {
37347     int _v;
37348     int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[0], (std::string**)(0));
37349     _v = SWIG_CheckState(res);
37350     if (_v) {
37351       {
37352         int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
37353         _v = SWIG_CheckState(res);
37354       }
37355       if (_v) {
37356         {
37357           int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
37358           _v = SWIG_CheckState(res);
37359         }
37360         if (_v) {
37361           return _wrap_new_WritableDatabase__SWIG_1(clientData, interp, objc, argv - 1);
37362         }
37363       }
37364     }
37365   }
37366 
37367   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_WritableDatabase'.\n"
37368     "  Possible C/C++ prototypes are:\n"
37369     "    Xapian::WritableDatabase::WritableDatabase()\n"
37370     "    Xapian::WritableDatabase::WritableDatabase(std::string const &,int,int)\n"
37371     "    Xapian::WritableDatabase::WritableDatabase(std::string const &,int)\n"
37372     "    Xapian::WritableDatabase::WritableDatabase(std::string const &)\n"
37373     "    Xapian::WritableDatabase::WritableDatabase(Xapian::WritableDatabase const &)\n", TCL_STATIC);
37374   return TCL_ERROR;
37375 }
37376 
37377 
37378 SWIGINTERN int
_wrap_WritableDatabase_commit(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])37379 _wrap_WritableDatabase_commit(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
37380   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
37381   void *argp1 = 0 ;
37382   int res1 = 0 ;
37383 
37384   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::WritableDatabase_commit self ",(void *)0) == TCL_ERROR) SWIG_fail;
37385   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
37386   if (!SWIG_IsOK(res1)) {
37387     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_commit" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'");
37388   }
37389   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
37390   {
37391     try {
37392       (arg1)->commit();
37393     } catch (const Xapian::Error &e) {
37394       return XapianTclHandleError(interp, e);
37395     } catch (...) {
37396       return XapianTclHandleError(interp);
37397     }
37398   }
37399 
37400   return TCL_OK;
37401 fail:
37402   return TCL_ERROR;
37403 }
37404 
37405 
37406 SWIGINTERN int
_wrap_WritableDatabase_flush(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])37407 _wrap_WritableDatabase_flush(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
37408   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
37409   void *argp1 = 0 ;
37410   int res1 = 0 ;
37411 
37412   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::WritableDatabase_flush self ",(void *)0) == TCL_ERROR) SWIG_fail;
37413   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
37414   if (!SWIG_IsOK(res1)) {
37415     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_flush" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'");
37416   }
37417   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
37418   {
37419     try {
37420       (arg1)->flush();
37421     } catch (const Xapian::Error &e) {
37422       return XapianTclHandleError(interp, e);
37423     } catch (...) {
37424       return XapianTclHandleError(interp);
37425     }
37426   }
37427 
37428   return TCL_OK;
37429 fail:
37430   return TCL_ERROR;
37431 }
37432 
37433 
37434 SWIGINTERN int
_wrap_WritableDatabase_begin_transaction__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])37435 _wrap_WritableDatabase_begin_transaction__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
37436   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
37437   bool arg2 ;
37438   void *argp1 = 0 ;
37439   int res1 = 0 ;
37440   bool val2 ;
37441   int ecode2 = 0 ;
37442 
37443   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::WritableDatabase_begin_transaction self flushed ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
37444   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
37445   if (!SWIG_IsOK(res1)) {
37446     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_begin_transaction" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'");
37447   }
37448   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
37449   ecode2 = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
37450   if (!SWIG_IsOK(ecode2)) {
37451     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "WritableDatabase_begin_transaction" "', argument " "2"" of type '" "bool""'");
37452   }
37453   arg2 = static_cast< bool >(val2);
37454   {
37455     try {
37456       (arg1)->begin_transaction(arg2);
37457     } catch (const Xapian::Error &e) {
37458       return XapianTclHandleError(interp, e);
37459     } catch (...) {
37460       return XapianTclHandleError(interp);
37461     }
37462   }
37463 
37464   return TCL_OK;
37465 fail:
37466   return TCL_ERROR;
37467 }
37468 
37469 
37470 SWIGINTERN int
_wrap_WritableDatabase_begin_transaction__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])37471 _wrap_WritableDatabase_begin_transaction__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
37472   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
37473   void *argp1 = 0 ;
37474   int res1 = 0 ;
37475 
37476   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::WritableDatabase_begin_transaction self ",(void *)0) == TCL_ERROR) SWIG_fail;
37477   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
37478   if (!SWIG_IsOK(res1)) {
37479     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_begin_transaction" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'");
37480   }
37481   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
37482   {
37483     try {
37484       (arg1)->begin_transaction();
37485     } catch (const Xapian::Error &e) {
37486       return XapianTclHandleError(interp, e);
37487     } catch (...) {
37488       return XapianTclHandleError(interp);
37489     }
37490   }
37491 
37492   return TCL_OK;
37493 fail:
37494   return TCL_ERROR;
37495 }
37496 
37497 
37498 SWIGINTERN int
_wrap_WritableDatabase_begin_transaction(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])37499 _wrap_WritableDatabase_begin_transaction(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
37500   Tcl_Obj *CONST *argv = objv+1;
37501   int argc = objc-1;
37502   if (argc == 1) {
37503     int _v;
37504     void *vptr = 0;
37505     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__WritableDatabase, 0);
37506     _v = SWIG_CheckState(res);
37507     if (_v) {
37508       return _wrap_WritableDatabase_begin_transaction__SWIG_1(clientData, interp, objc, argv - 1);
37509     }
37510   }
37511   if (argc == 2) {
37512     int _v;
37513     void *vptr = 0;
37514     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__WritableDatabase, 0);
37515     _v = SWIG_CheckState(res);
37516     if (_v) {
37517       {
37518         int res = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
37519         _v = SWIG_CheckState(res);
37520       }
37521       if (_v) {
37522         return _wrap_WritableDatabase_begin_transaction__SWIG_0(clientData, interp, objc, argv - 1);
37523       }
37524     }
37525   }
37526 
37527   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'WritableDatabase_begin_transaction'.\n"
37528     "  Possible C/C++ prototypes are:\n"
37529     "    Xapian::WritableDatabase::begin_transaction(bool)\n"
37530     "    Xapian::WritableDatabase::begin_transaction()\n", TCL_STATIC);
37531   return TCL_ERROR;
37532 }
37533 
37534 
37535 SWIGINTERN int
_wrap_WritableDatabase_commit_transaction(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])37536 _wrap_WritableDatabase_commit_transaction(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
37537   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
37538   void *argp1 = 0 ;
37539   int res1 = 0 ;
37540 
37541   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::WritableDatabase_commit_transaction self ",(void *)0) == TCL_ERROR) SWIG_fail;
37542   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
37543   if (!SWIG_IsOK(res1)) {
37544     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_commit_transaction" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'");
37545   }
37546   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
37547   {
37548     try {
37549       (arg1)->commit_transaction();
37550     } catch (const Xapian::Error &e) {
37551       return XapianTclHandleError(interp, e);
37552     } catch (...) {
37553       return XapianTclHandleError(interp);
37554     }
37555   }
37556 
37557   return TCL_OK;
37558 fail:
37559   return TCL_ERROR;
37560 }
37561 
37562 
37563 SWIGINTERN int
_wrap_WritableDatabase_cancel_transaction(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])37564 _wrap_WritableDatabase_cancel_transaction(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
37565   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
37566   void *argp1 = 0 ;
37567   int res1 = 0 ;
37568 
37569   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::WritableDatabase_cancel_transaction self ",(void *)0) == TCL_ERROR) SWIG_fail;
37570   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
37571   if (!SWIG_IsOK(res1)) {
37572     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_cancel_transaction" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'");
37573   }
37574   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
37575   {
37576     try {
37577       (arg1)->cancel_transaction();
37578     } catch (const Xapian::Error &e) {
37579       return XapianTclHandleError(interp, e);
37580     } catch (...) {
37581       return XapianTclHandleError(interp);
37582     }
37583   }
37584 
37585   return TCL_OK;
37586 fail:
37587   return TCL_ERROR;
37588 }
37589 
37590 
37591 SWIGINTERN int
_wrap_WritableDatabase_add_document(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])37592 _wrap_WritableDatabase_add_document(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
37593   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
37594   Xapian::Document *arg2 = 0 ;
37595   void *argp1 = 0 ;
37596   int res1 = 0 ;
37597   void *argp2 ;
37598   int res2 = 0 ;
37599   Xapian::docid result;
37600 
37601   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::WritableDatabase_add_document self document ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
37602   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
37603   if (!SWIG_IsOK(res1)) {
37604     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_add_document" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'");
37605   }
37606   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
37607   res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_Xapian__Document,  0 );
37608   if (!SWIG_IsOK(res2)) {
37609     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "WritableDatabase_add_document" "', argument " "2"" of type '" "Xapian::Document const &""'");
37610   }
37611   if (!argp2) {
37612     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_add_document" "', argument " "2"" of type '" "Xapian::Document const &""'");
37613   }
37614   arg2 = reinterpret_cast< Xapian::Document * >(argp2);
37615   {
37616     try {
37617       result = (Xapian::docid)(arg1)->add_document((Xapian::Document const &)*arg2);
37618     } catch (const Xapian::Error &e) {
37619       return XapianTclHandleError(interp, e);
37620     } catch (...) {
37621       return XapianTclHandleError(interp);
37622     }
37623   }
37624   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
37625   return TCL_OK;
37626 fail:
37627   return TCL_ERROR;
37628 }
37629 
37630 
37631 SWIGINTERN int
_wrap_WritableDatabase_delete_document__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])37632 _wrap_WritableDatabase_delete_document__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
37633   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
37634   Xapian::docid arg2 ;
37635   void *argp1 = 0 ;
37636   int res1 = 0 ;
37637   unsigned int val2 ;
37638   int ecode2 = 0 ;
37639 
37640   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::WritableDatabase_delete_document self did ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
37641   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
37642   if (!SWIG_IsOK(res1)) {
37643     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_delete_document" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'");
37644   }
37645   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
37646   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
37647   if (!SWIG_IsOK(ecode2)) {
37648     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "WritableDatabase_delete_document" "', argument " "2"" of type '" "Xapian::docid""'");
37649   }
37650   arg2 = static_cast< Xapian::docid >(val2);
37651   {
37652     try {
37653       (arg1)->delete_document(arg2);
37654     } catch (const Xapian::Error &e) {
37655       return XapianTclHandleError(interp, e);
37656     } catch (...) {
37657       return XapianTclHandleError(interp);
37658     }
37659   }
37660 
37661   return TCL_OK;
37662 fail:
37663   return TCL_ERROR;
37664 }
37665 
37666 
37667 SWIGINTERN int
_wrap_WritableDatabase_delete_document__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])37668 _wrap_WritableDatabase_delete_document__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
37669   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
37670   std::string *arg2 = 0 ;
37671   void *argp1 = 0 ;
37672   int res1 = 0 ;
37673   int res2 = SWIG_OLDOBJ ;
37674 
37675   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::WritableDatabase_delete_document self unique_term ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
37676   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
37677   if (!SWIG_IsOK(res1)) {
37678     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_delete_document" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'");
37679   }
37680   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
37681   {
37682     std::string *ptr = (std::string *)0;
37683     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
37684     if (!SWIG_IsOK(res2)) {
37685       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "WritableDatabase_delete_document" "', argument " "2"" of type '" "std::string const &""'");
37686     }
37687     if (!ptr) {
37688       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_delete_document" "', argument " "2"" of type '" "std::string const &""'");
37689     }
37690     arg2 = ptr;
37691   }
37692   {
37693     try {
37694       (arg1)->delete_document((std::string const &)*arg2);
37695     } catch (const Xapian::Error &e) {
37696       return XapianTclHandleError(interp, e);
37697     } catch (...) {
37698       return XapianTclHandleError(interp);
37699     }
37700   }
37701 
37702   if (SWIG_IsNewObj(res2)) delete arg2;
37703   return TCL_OK;
37704 fail:
37705   if (SWIG_IsNewObj(res2)) delete arg2;
37706   return TCL_ERROR;
37707 }
37708 
37709 
37710 SWIGINTERN int
_wrap_WritableDatabase_delete_document(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])37711 _wrap_WritableDatabase_delete_document(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
37712   Tcl_Obj *CONST *argv = objv+1;
37713   int argc = objc-1;
37714   if (argc == 2) {
37715     int _v;
37716     void *vptr = 0;
37717     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__WritableDatabase, 0);
37718     _v = SWIG_CheckState(res);
37719     if (_v) {
37720       {
37721         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
37722         _v = SWIG_CheckState(res);
37723       }
37724       if (_v) {
37725         return _wrap_WritableDatabase_delete_document__SWIG_0(clientData, interp, objc, argv - 1);
37726       }
37727     }
37728   }
37729   if (argc == 2) {
37730     int _v;
37731     void *vptr = 0;
37732     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__WritableDatabase, 0);
37733     _v = SWIG_CheckState(res);
37734     if (_v) {
37735       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
37736       _v = SWIG_CheckState(res);
37737       if (_v) {
37738         return _wrap_WritableDatabase_delete_document__SWIG_1(clientData, interp, objc, argv - 1);
37739       }
37740     }
37741   }
37742 
37743   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'WritableDatabase_delete_document'.\n"
37744     "  Possible C/C++ prototypes are:\n"
37745     "    Xapian::WritableDatabase::delete_document(Xapian::docid)\n"
37746     "    Xapian::WritableDatabase::delete_document(std::string const &)\n", TCL_STATIC);
37747   return TCL_ERROR;
37748 }
37749 
37750 
37751 SWIGINTERN int
_wrap_WritableDatabase_replace_document__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])37752 _wrap_WritableDatabase_replace_document__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
37753   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
37754   Xapian::docid arg2 ;
37755   Xapian::Document *arg3 = 0 ;
37756   void *argp1 = 0 ;
37757   int res1 = 0 ;
37758   unsigned int val2 ;
37759   int ecode2 = 0 ;
37760   void *argp3 ;
37761   int res3 = 0 ;
37762 
37763   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::WritableDatabase_replace_document self did document ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
37764   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
37765   if (!SWIG_IsOK(res1)) {
37766     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_replace_document" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'");
37767   }
37768   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
37769   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
37770   if (!SWIG_IsOK(ecode2)) {
37771     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "WritableDatabase_replace_document" "', argument " "2"" of type '" "Xapian::docid""'");
37772   }
37773   arg2 = static_cast< Xapian::docid >(val2);
37774   res3 = SWIG_ConvertPtr(objv[3], &argp3, SWIGTYPE_p_Xapian__Document,  0 );
37775   if (!SWIG_IsOK(res3)) {
37776     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "WritableDatabase_replace_document" "', argument " "3"" of type '" "Xapian::Document const &""'");
37777   }
37778   if (!argp3) {
37779     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_replace_document" "', argument " "3"" of type '" "Xapian::Document const &""'");
37780   }
37781   arg3 = reinterpret_cast< Xapian::Document * >(argp3);
37782   {
37783     try {
37784       (arg1)->replace_document(arg2,(Xapian::Document const &)*arg3);
37785     } catch (const Xapian::Error &e) {
37786       return XapianTclHandleError(interp, e);
37787     } catch (...) {
37788       return XapianTclHandleError(interp);
37789     }
37790   }
37791 
37792   return TCL_OK;
37793 fail:
37794   return TCL_ERROR;
37795 }
37796 
37797 
37798 SWIGINTERN int
_wrap_WritableDatabase_replace_document__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])37799 _wrap_WritableDatabase_replace_document__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
37800   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
37801   std::string *arg2 = 0 ;
37802   Xapian::Document *arg3 = 0 ;
37803   void *argp1 = 0 ;
37804   int res1 = 0 ;
37805   int res2 = SWIG_OLDOBJ ;
37806   void *argp3 ;
37807   int res3 = 0 ;
37808   Xapian::docid result;
37809 
37810   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::WritableDatabase_replace_document self unique_term document ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
37811   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
37812   if (!SWIG_IsOK(res1)) {
37813     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_replace_document" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'");
37814   }
37815   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
37816   {
37817     std::string *ptr = (std::string *)0;
37818     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
37819     if (!SWIG_IsOK(res2)) {
37820       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "WritableDatabase_replace_document" "', argument " "2"" of type '" "std::string const &""'");
37821     }
37822     if (!ptr) {
37823       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_replace_document" "', argument " "2"" of type '" "std::string const &""'");
37824     }
37825     arg2 = ptr;
37826   }
37827   res3 = SWIG_ConvertPtr(objv[3], &argp3, SWIGTYPE_p_Xapian__Document,  0 );
37828   if (!SWIG_IsOK(res3)) {
37829     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "WritableDatabase_replace_document" "', argument " "3"" of type '" "Xapian::Document const &""'");
37830   }
37831   if (!argp3) {
37832     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_replace_document" "', argument " "3"" of type '" "Xapian::Document const &""'");
37833   }
37834   arg3 = reinterpret_cast< Xapian::Document * >(argp3);
37835   {
37836     try {
37837       result = (Xapian::docid)(arg1)->replace_document((std::string const &)*arg2,(Xapian::Document const &)*arg3);
37838     } catch (const Xapian::Error &e) {
37839       return XapianTclHandleError(interp, e);
37840     } catch (...) {
37841       return XapianTclHandleError(interp);
37842     }
37843   }
37844   Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)));
37845   if (SWIG_IsNewObj(res2)) delete arg2;
37846   return TCL_OK;
37847 fail:
37848   if (SWIG_IsNewObj(res2)) delete arg2;
37849   return TCL_ERROR;
37850 }
37851 
37852 
37853 SWIGINTERN int
_wrap_WritableDatabase_replace_document(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])37854 _wrap_WritableDatabase_replace_document(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
37855   Tcl_Obj *CONST *argv = objv+1;
37856   int argc = objc-1;
37857   if (argc == 3) {
37858     int _v;
37859     void *vptr = 0;
37860     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__WritableDatabase, 0);
37861     _v = SWIG_CheckState(res);
37862     if (_v) {
37863       {
37864         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
37865         _v = SWIG_CheckState(res);
37866       }
37867       if (_v) {
37868         void *vptr = 0;
37869         int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_Xapian__Document, 0);
37870         _v = SWIG_CheckState(res);
37871         if (_v) {
37872           return _wrap_WritableDatabase_replace_document__SWIG_0(clientData, interp, objc, argv - 1);
37873         }
37874       }
37875     }
37876   }
37877   if (argc == 3) {
37878     int _v;
37879     void *vptr = 0;
37880     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__WritableDatabase, 0);
37881     _v = SWIG_CheckState(res);
37882     if (_v) {
37883       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
37884       _v = SWIG_CheckState(res);
37885       if (_v) {
37886         void *vptr = 0;
37887         int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_Xapian__Document, 0);
37888         _v = SWIG_CheckState(res);
37889         if (_v) {
37890           return _wrap_WritableDatabase_replace_document__SWIG_1(clientData, interp, objc, argv - 1);
37891         }
37892       }
37893     }
37894   }
37895 
37896   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'WritableDatabase_replace_document'.\n"
37897     "  Possible C/C++ prototypes are:\n"
37898     "    Xapian::WritableDatabase::replace_document(Xapian::docid,Xapian::Document const &)\n"
37899     "    Xapian::WritableDatabase::replace_document(std::string const &,Xapian::Document const &)\n", TCL_STATIC);
37900   return TCL_ERROR;
37901 }
37902 
37903 
37904 SWIGINTERN int
_wrap_WritableDatabase_add_spelling__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])37905 _wrap_WritableDatabase_add_spelling__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
37906   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
37907   std::string *arg2 = 0 ;
37908   Xapian::termcount arg3 ;
37909   void *argp1 = 0 ;
37910   int res1 = 0 ;
37911   int res2 = SWIG_OLDOBJ ;
37912   unsigned int val3 ;
37913   int ecode3 = 0 ;
37914 
37915   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::WritableDatabase_add_spelling self word freqinc ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
37916   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
37917   if (!SWIG_IsOK(res1)) {
37918     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_add_spelling" "', argument " "1"" of type '" "Xapian::WritableDatabase const *""'");
37919   }
37920   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
37921   {
37922     std::string *ptr = (std::string *)0;
37923     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
37924     if (!SWIG_IsOK(res2)) {
37925       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "WritableDatabase_add_spelling" "', argument " "2"" of type '" "std::string const &""'");
37926     }
37927     if (!ptr) {
37928       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_add_spelling" "', argument " "2"" of type '" "std::string const &""'");
37929     }
37930     arg2 = ptr;
37931   }
37932   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
37933   if (!SWIG_IsOK(ecode3)) {
37934     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "WritableDatabase_add_spelling" "', argument " "3"" of type '" "Xapian::termcount""'");
37935   }
37936   arg3 = static_cast< Xapian::termcount >(val3);
37937   {
37938     try {
37939       ((Xapian::WritableDatabase const *)arg1)->add_spelling((std::string const &)*arg2,arg3);
37940     } catch (const Xapian::Error &e) {
37941       return XapianTclHandleError(interp, e);
37942     } catch (...) {
37943       return XapianTclHandleError(interp);
37944     }
37945   }
37946 
37947   if (SWIG_IsNewObj(res2)) delete arg2;
37948   return TCL_OK;
37949 fail:
37950   if (SWIG_IsNewObj(res2)) delete arg2;
37951   return TCL_ERROR;
37952 }
37953 
37954 
37955 SWIGINTERN int
_wrap_WritableDatabase_add_spelling__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])37956 _wrap_WritableDatabase_add_spelling__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
37957   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
37958   std::string *arg2 = 0 ;
37959   void *argp1 = 0 ;
37960   int res1 = 0 ;
37961   int res2 = SWIG_OLDOBJ ;
37962 
37963   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::WritableDatabase_add_spelling self word ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
37964   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
37965   if (!SWIG_IsOK(res1)) {
37966     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_add_spelling" "', argument " "1"" of type '" "Xapian::WritableDatabase const *""'");
37967   }
37968   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
37969   {
37970     std::string *ptr = (std::string *)0;
37971     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
37972     if (!SWIG_IsOK(res2)) {
37973       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "WritableDatabase_add_spelling" "', argument " "2"" of type '" "std::string const &""'");
37974     }
37975     if (!ptr) {
37976       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_add_spelling" "', argument " "2"" of type '" "std::string const &""'");
37977     }
37978     arg2 = ptr;
37979   }
37980   {
37981     try {
37982       ((Xapian::WritableDatabase const *)arg1)->add_spelling((std::string const &)*arg2);
37983     } catch (const Xapian::Error &e) {
37984       return XapianTclHandleError(interp, e);
37985     } catch (...) {
37986       return XapianTclHandleError(interp);
37987     }
37988   }
37989 
37990   if (SWIG_IsNewObj(res2)) delete arg2;
37991   return TCL_OK;
37992 fail:
37993   if (SWIG_IsNewObj(res2)) delete arg2;
37994   return TCL_ERROR;
37995 }
37996 
37997 
37998 SWIGINTERN int
_wrap_WritableDatabase_add_spelling(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])37999 _wrap_WritableDatabase_add_spelling(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
38000   Tcl_Obj *CONST *argv = objv+1;
38001   int argc = objc-1;
38002   if (argc == 2) {
38003     int _v;
38004     void *vptr = 0;
38005     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__WritableDatabase, 0);
38006     _v = SWIG_CheckState(res);
38007     if (_v) {
38008       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
38009       _v = SWIG_CheckState(res);
38010       if (_v) {
38011         return _wrap_WritableDatabase_add_spelling__SWIG_1(clientData, interp, objc, argv - 1);
38012       }
38013     }
38014   }
38015   if (argc == 3) {
38016     int _v;
38017     void *vptr = 0;
38018     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__WritableDatabase, 0);
38019     _v = SWIG_CheckState(res);
38020     if (_v) {
38021       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
38022       _v = SWIG_CheckState(res);
38023       if (_v) {
38024         {
38025           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
38026           _v = SWIG_CheckState(res);
38027         }
38028         if (_v) {
38029           return _wrap_WritableDatabase_add_spelling__SWIG_0(clientData, interp, objc, argv - 1);
38030         }
38031       }
38032     }
38033   }
38034 
38035   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'WritableDatabase_add_spelling'.\n"
38036     "  Possible C/C++ prototypes are:\n"
38037     "    Xapian::WritableDatabase::add_spelling(std::string const &,Xapian::termcount) const\n"
38038     "    Xapian::WritableDatabase::add_spelling(std::string const &) const\n", TCL_STATIC);
38039   return TCL_ERROR;
38040 }
38041 
38042 
38043 SWIGINTERN int
_wrap_WritableDatabase_remove_spelling__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])38044 _wrap_WritableDatabase_remove_spelling__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
38045   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
38046   std::string *arg2 = 0 ;
38047   Xapian::termcount arg3 ;
38048   void *argp1 = 0 ;
38049   int res1 = 0 ;
38050   int res2 = SWIG_OLDOBJ ;
38051   unsigned int val3 ;
38052   int ecode3 = 0 ;
38053 
38054   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::WritableDatabase_remove_spelling self word freqdec ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
38055   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
38056   if (!SWIG_IsOK(res1)) {
38057     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_remove_spelling" "', argument " "1"" of type '" "Xapian::WritableDatabase const *""'");
38058   }
38059   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
38060   {
38061     std::string *ptr = (std::string *)0;
38062     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
38063     if (!SWIG_IsOK(res2)) {
38064       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "WritableDatabase_remove_spelling" "', argument " "2"" of type '" "std::string const &""'");
38065     }
38066     if (!ptr) {
38067       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_remove_spelling" "', argument " "2"" of type '" "std::string const &""'");
38068     }
38069     arg2 = ptr;
38070   }
38071   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
38072   if (!SWIG_IsOK(ecode3)) {
38073     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "WritableDatabase_remove_spelling" "', argument " "3"" of type '" "Xapian::termcount""'");
38074   }
38075   arg3 = static_cast< Xapian::termcount >(val3);
38076   {
38077     try {
38078       ((Xapian::WritableDatabase const *)arg1)->remove_spelling((std::string const &)*arg2,arg3);
38079     } catch (const Xapian::Error &e) {
38080       return XapianTclHandleError(interp, e);
38081     } catch (...) {
38082       return XapianTclHandleError(interp);
38083     }
38084   }
38085 
38086   if (SWIG_IsNewObj(res2)) delete arg2;
38087   return TCL_OK;
38088 fail:
38089   if (SWIG_IsNewObj(res2)) delete arg2;
38090   return TCL_ERROR;
38091 }
38092 
38093 
38094 SWIGINTERN int
_wrap_WritableDatabase_remove_spelling__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])38095 _wrap_WritableDatabase_remove_spelling__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
38096   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
38097   std::string *arg2 = 0 ;
38098   void *argp1 = 0 ;
38099   int res1 = 0 ;
38100   int res2 = SWIG_OLDOBJ ;
38101 
38102   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::WritableDatabase_remove_spelling self word ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
38103   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
38104   if (!SWIG_IsOK(res1)) {
38105     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_remove_spelling" "', argument " "1"" of type '" "Xapian::WritableDatabase const *""'");
38106   }
38107   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
38108   {
38109     std::string *ptr = (std::string *)0;
38110     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
38111     if (!SWIG_IsOK(res2)) {
38112       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "WritableDatabase_remove_spelling" "', argument " "2"" of type '" "std::string const &""'");
38113     }
38114     if (!ptr) {
38115       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_remove_spelling" "', argument " "2"" of type '" "std::string const &""'");
38116     }
38117     arg2 = ptr;
38118   }
38119   {
38120     try {
38121       ((Xapian::WritableDatabase const *)arg1)->remove_spelling((std::string const &)*arg2);
38122     } catch (const Xapian::Error &e) {
38123       return XapianTclHandleError(interp, e);
38124     } catch (...) {
38125       return XapianTclHandleError(interp);
38126     }
38127   }
38128 
38129   if (SWIG_IsNewObj(res2)) delete arg2;
38130   return TCL_OK;
38131 fail:
38132   if (SWIG_IsNewObj(res2)) delete arg2;
38133   return TCL_ERROR;
38134 }
38135 
38136 
38137 SWIGINTERN int
_wrap_WritableDatabase_remove_spelling(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])38138 _wrap_WritableDatabase_remove_spelling(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
38139   Tcl_Obj *CONST *argv = objv+1;
38140   int argc = objc-1;
38141   if (argc == 2) {
38142     int _v;
38143     void *vptr = 0;
38144     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__WritableDatabase, 0);
38145     _v = SWIG_CheckState(res);
38146     if (_v) {
38147       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
38148       _v = SWIG_CheckState(res);
38149       if (_v) {
38150         return _wrap_WritableDatabase_remove_spelling__SWIG_1(clientData, interp, objc, argv - 1);
38151       }
38152     }
38153   }
38154   if (argc == 3) {
38155     int _v;
38156     void *vptr = 0;
38157     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__WritableDatabase, 0);
38158     _v = SWIG_CheckState(res);
38159     if (_v) {
38160       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
38161       _v = SWIG_CheckState(res);
38162       if (_v) {
38163         {
38164           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
38165           _v = SWIG_CheckState(res);
38166         }
38167         if (_v) {
38168           return _wrap_WritableDatabase_remove_spelling__SWIG_0(clientData, interp, objc, argv - 1);
38169         }
38170       }
38171     }
38172   }
38173 
38174   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'WritableDatabase_remove_spelling'.\n"
38175     "  Possible C/C++ prototypes are:\n"
38176     "    Xapian::WritableDatabase::remove_spelling(std::string const &,Xapian::termcount) const\n"
38177     "    Xapian::WritableDatabase::remove_spelling(std::string const &) const\n", TCL_STATIC);
38178   return TCL_ERROR;
38179 }
38180 
38181 
38182 SWIGINTERN int
_wrap_WritableDatabase_add_synonym(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])38183 _wrap_WritableDatabase_add_synonym(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
38184   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
38185   std::string *arg2 = 0 ;
38186   std::string *arg3 = 0 ;
38187   void *argp1 = 0 ;
38188   int res1 = 0 ;
38189   int res2 = SWIG_OLDOBJ ;
38190   int res3 = SWIG_OLDOBJ ;
38191 
38192   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::WritableDatabase_add_synonym self term synonym ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
38193   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
38194   if (!SWIG_IsOK(res1)) {
38195     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_add_synonym" "', argument " "1"" of type '" "Xapian::WritableDatabase const *""'");
38196   }
38197   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
38198   {
38199     std::string *ptr = (std::string *)0;
38200     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
38201     if (!SWIG_IsOK(res2)) {
38202       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "WritableDatabase_add_synonym" "', argument " "2"" of type '" "std::string const &""'");
38203     }
38204     if (!ptr) {
38205       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_add_synonym" "', argument " "2"" of type '" "std::string const &""'");
38206     }
38207     arg2 = ptr;
38208   }
38209   {
38210     std::string *ptr = (std::string *)0;
38211     res3 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[3], &ptr);
38212     if (!SWIG_IsOK(res3)) {
38213       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "WritableDatabase_add_synonym" "', argument " "3"" of type '" "std::string const &""'");
38214     }
38215     if (!ptr) {
38216       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_add_synonym" "', argument " "3"" of type '" "std::string const &""'");
38217     }
38218     arg3 = ptr;
38219   }
38220   {
38221     try {
38222       ((Xapian::WritableDatabase const *)arg1)->add_synonym((std::string const &)*arg2,(std::string const &)*arg3);
38223     } catch (const Xapian::Error &e) {
38224       return XapianTclHandleError(interp, e);
38225     } catch (...) {
38226       return XapianTclHandleError(interp);
38227     }
38228   }
38229 
38230   if (SWIG_IsNewObj(res2)) delete arg2;
38231   if (SWIG_IsNewObj(res3)) delete arg3;
38232   return TCL_OK;
38233 fail:
38234   if (SWIG_IsNewObj(res2)) delete arg2;
38235   if (SWIG_IsNewObj(res3)) delete arg3;
38236   return TCL_ERROR;
38237 }
38238 
38239 
38240 SWIGINTERN int
_wrap_WritableDatabase_remove_synonym(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])38241 _wrap_WritableDatabase_remove_synonym(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
38242   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
38243   std::string *arg2 = 0 ;
38244   std::string *arg3 = 0 ;
38245   void *argp1 = 0 ;
38246   int res1 = 0 ;
38247   int res2 = SWIG_OLDOBJ ;
38248   int res3 = SWIG_OLDOBJ ;
38249 
38250   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::WritableDatabase_remove_synonym self term synonym ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
38251   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
38252   if (!SWIG_IsOK(res1)) {
38253     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_remove_synonym" "', argument " "1"" of type '" "Xapian::WritableDatabase const *""'");
38254   }
38255   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
38256   {
38257     std::string *ptr = (std::string *)0;
38258     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
38259     if (!SWIG_IsOK(res2)) {
38260       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "WritableDatabase_remove_synonym" "', argument " "2"" of type '" "std::string const &""'");
38261     }
38262     if (!ptr) {
38263       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_remove_synonym" "', argument " "2"" of type '" "std::string const &""'");
38264     }
38265     arg2 = ptr;
38266   }
38267   {
38268     std::string *ptr = (std::string *)0;
38269     res3 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[3], &ptr);
38270     if (!SWIG_IsOK(res3)) {
38271       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "WritableDatabase_remove_synonym" "', argument " "3"" of type '" "std::string const &""'");
38272     }
38273     if (!ptr) {
38274       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_remove_synonym" "', argument " "3"" of type '" "std::string const &""'");
38275     }
38276     arg3 = ptr;
38277   }
38278   {
38279     try {
38280       ((Xapian::WritableDatabase const *)arg1)->remove_synonym((std::string const &)*arg2,(std::string const &)*arg3);
38281     } catch (const Xapian::Error &e) {
38282       return XapianTclHandleError(interp, e);
38283     } catch (...) {
38284       return XapianTclHandleError(interp);
38285     }
38286   }
38287 
38288   if (SWIG_IsNewObj(res2)) delete arg2;
38289   if (SWIG_IsNewObj(res3)) delete arg3;
38290   return TCL_OK;
38291 fail:
38292   if (SWIG_IsNewObj(res2)) delete arg2;
38293   if (SWIG_IsNewObj(res3)) delete arg3;
38294   return TCL_ERROR;
38295 }
38296 
38297 
38298 SWIGINTERN int
_wrap_WritableDatabase_clear_synonyms(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])38299 _wrap_WritableDatabase_clear_synonyms(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
38300   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
38301   std::string *arg2 = 0 ;
38302   void *argp1 = 0 ;
38303   int res1 = 0 ;
38304   int res2 = SWIG_OLDOBJ ;
38305 
38306   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::WritableDatabase_clear_synonyms self term ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
38307   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
38308   if (!SWIG_IsOK(res1)) {
38309     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_clear_synonyms" "', argument " "1"" of type '" "Xapian::WritableDatabase const *""'");
38310   }
38311   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
38312   {
38313     std::string *ptr = (std::string *)0;
38314     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
38315     if (!SWIG_IsOK(res2)) {
38316       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "WritableDatabase_clear_synonyms" "', argument " "2"" of type '" "std::string const &""'");
38317     }
38318     if (!ptr) {
38319       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_clear_synonyms" "', argument " "2"" of type '" "std::string const &""'");
38320     }
38321     arg2 = ptr;
38322   }
38323   {
38324     try {
38325       ((Xapian::WritableDatabase const *)arg1)->clear_synonyms((std::string const &)*arg2);
38326     } catch (const Xapian::Error &e) {
38327       return XapianTclHandleError(interp, e);
38328     } catch (...) {
38329       return XapianTclHandleError(interp);
38330     }
38331   }
38332 
38333   if (SWIG_IsNewObj(res2)) delete arg2;
38334   return TCL_OK;
38335 fail:
38336   if (SWIG_IsNewObj(res2)) delete arg2;
38337   return TCL_ERROR;
38338 }
38339 
38340 
38341 SWIGINTERN int
_wrap_WritableDatabase_set_metadata(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])38342 _wrap_WritableDatabase_set_metadata(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
38343   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
38344   std::string *arg2 = 0 ;
38345   std::string *arg3 = 0 ;
38346   void *argp1 = 0 ;
38347   int res1 = 0 ;
38348   int res2 = SWIG_OLDOBJ ;
38349   int res3 = SWIG_OLDOBJ ;
38350 
38351   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::WritableDatabase_set_metadata self key metadata ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
38352   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
38353   if (!SWIG_IsOK(res1)) {
38354     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_set_metadata" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'");
38355   }
38356   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
38357   {
38358     std::string *ptr = (std::string *)0;
38359     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
38360     if (!SWIG_IsOK(res2)) {
38361       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "WritableDatabase_set_metadata" "', argument " "2"" of type '" "std::string const &""'");
38362     }
38363     if (!ptr) {
38364       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_set_metadata" "', argument " "2"" of type '" "std::string const &""'");
38365     }
38366     arg2 = ptr;
38367   }
38368   {
38369     std::string *ptr = (std::string *)0;
38370     res3 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[3], &ptr);
38371     if (!SWIG_IsOK(res3)) {
38372       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "WritableDatabase_set_metadata" "', argument " "3"" of type '" "std::string const &""'");
38373     }
38374     if (!ptr) {
38375       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_set_metadata" "', argument " "3"" of type '" "std::string const &""'");
38376     }
38377     arg3 = ptr;
38378   }
38379   {
38380     try {
38381       (arg1)->set_metadata((std::string const &)*arg2,(std::string const &)*arg3);
38382     } catch (const Xapian::Error &e) {
38383       return XapianTclHandleError(interp, e);
38384     } catch (...) {
38385       return XapianTclHandleError(interp);
38386     }
38387   }
38388 
38389   if (SWIG_IsNewObj(res2)) delete arg2;
38390   if (SWIG_IsNewObj(res3)) delete arg3;
38391   return TCL_OK;
38392 fail:
38393   if (SWIG_IsNewObj(res2)) delete arg2;
38394   if (SWIG_IsNewObj(res3)) delete arg3;
38395   return TCL_ERROR;
38396 }
38397 
38398 
38399 SWIGINTERN int
_wrap_WritableDatabase_get_description(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])38400 _wrap_WritableDatabase_get_description(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
38401   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
38402   void *argp1 = 0 ;
38403   int res1 = 0 ;
38404   std::string result;
38405 
38406   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::WritableDatabase_get_description self ",(void *)0) == TCL_ERROR) SWIG_fail;
38407   res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
38408   if (!SWIG_IsOK(res1)) {
38409     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_get_description" "', argument " "1"" of type '" "Xapian::WritableDatabase const *""'");
38410   }
38411   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
38412   {
38413     try {
38414       result = ((Xapian::WritableDatabase const *)arg1)->get_description();
38415     } catch (const Xapian::Error &e) {
38416       return XapianTclHandleError(interp, e);
38417     } catch (...) {
38418       return XapianTclHandleError(interp);
38419     }
38420   }
38421   Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
38422   return TCL_OK;
38423 fail:
38424   return TCL_ERROR;
38425 }
38426 
38427 
swig_delete_WritableDatabase(void * obj)38428 SWIGINTERN void swig_delete_WritableDatabase(void *obj) {
38429 Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) obj;
38430 delete arg1;
38431 }
38432 static swig_method swig_Xapian_WritableDatabase_methods[] = {
38433     {"commit", _wrap_WritableDatabase_commit},
38434     {"flush", _wrap_WritableDatabase_flush},
38435     {"begin_transaction", _wrap_WritableDatabase_begin_transaction},
38436     {"commit_transaction", _wrap_WritableDatabase_commit_transaction},
38437     {"cancel_transaction", _wrap_WritableDatabase_cancel_transaction},
38438     {"add_document", _wrap_WritableDatabase_add_document},
38439     {"delete_document", _wrap_WritableDatabase_delete_document},
38440     {"replace_document", _wrap_WritableDatabase_replace_document},
38441     {"add_spelling", _wrap_WritableDatabase_add_spelling},
38442     {"remove_spelling", _wrap_WritableDatabase_remove_spelling},
38443     {"add_synonym", _wrap_WritableDatabase_add_synonym},
38444     {"remove_synonym", _wrap_WritableDatabase_remove_synonym},
38445     {"clear_synonyms", _wrap_WritableDatabase_clear_synonyms},
38446     {"set_metadata", _wrap_WritableDatabase_set_metadata},
38447     {"get_description", _wrap_WritableDatabase_get_description},
38448     {0,0}
38449 };
38450 static swig_attribute swig_Xapian_WritableDatabase_attributes[] = {
38451     {0,0,0}
38452 };
38453 static swig_class *swig_Xapian_WritableDatabase_bases[] = {0,0};
38454 static const char * swig_Xapian_WritableDatabase_base_names[] = {"Xapian::Database *",0};
38455 static swig_class _wrap_class_Xapian_WritableDatabase = { "WritableDatabase", &SWIGTYPE_p_Xapian__WritableDatabase,_wrap_new_WritableDatabase, swig_delete_WritableDatabase, swig_Xapian_WritableDatabase_methods, swig_Xapian_WritableDatabase_attributes, swig_Xapian_WritableDatabase_bases,swig_Xapian_WritableDatabase_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
38456 SWIGINTERN int
_wrap_open_stub__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])38457 _wrap_open_stub__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
38458   std::string *arg1 = 0 ;
38459   int res1 = SWIG_OLDOBJ ;
38460   Xapian::Database result;
38461 
38462   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::open_stub file ",(void *)0) == TCL_ERROR) SWIG_fail;
38463   {
38464     std::string *ptr = (std::string *)0;
38465     res1 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[1], &ptr);
38466     if (!SWIG_IsOK(res1)) {
38467       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "open_stub" "', argument " "1"" of type '" "std::string const &""'");
38468     }
38469     if (!ptr) {
38470       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "open_stub" "', argument " "1"" of type '" "std::string const &""'");
38471     }
38472     arg1 = ptr;
38473   }
38474   {
38475     try {
38476       result = Xapian::Auto::open_stub((std::string const &)*arg1);
38477     } catch (const Xapian::Error &e) {
38478       return XapianTclHandleError(interp, e);
38479     } catch (...) {
38480       return XapianTclHandleError(interp);
38481     }
38482   }
38483   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::Database(static_cast< const Xapian::Database& >(result))), SWIGTYPE_p_Xapian__Database, SWIG_POINTER_OWN | 0 ));
38484   if (SWIG_IsNewObj(res1)) delete arg1;
38485   return TCL_OK;
38486 fail:
38487   if (SWIG_IsNewObj(res1)) delete arg1;
38488   return TCL_ERROR;
38489 }
38490 
38491 
38492 SWIGINTERN int
_wrap_open_stub__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])38493 _wrap_open_stub__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
38494   std::string *arg1 = 0 ;
38495   int arg2 ;
38496   int res1 = SWIG_OLDOBJ ;
38497   int val2 ;
38498   int ecode2 = 0 ;
38499   Xapian::WritableDatabase result;
38500 
38501   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::open_stub file action ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
38502   {
38503     std::string *ptr = (std::string *)0;
38504     res1 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[1], &ptr);
38505     if (!SWIG_IsOK(res1)) {
38506       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "open_stub" "', argument " "1"" of type '" "std::string const &""'");
38507     }
38508     if (!ptr) {
38509       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "open_stub" "', argument " "1"" of type '" "std::string const &""'");
38510     }
38511     arg1 = ptr;
38512   }
38513   ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
38514   if (!SWIG_IsOK(ecode2)) {
38515     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "open_stub" "', argument " "2"" of type '" "int""'");
38516   }
38517   arg2 = static_cast< int >(val2);
38518   {
38519     try {
38520       result = Xapian::Auto::open_stub((std::string const &)*arg1,arg2);
38521     } catch (const Xapian::Error &e) {
38522       return XapianTclHandleError(interp, e);
38523     } catch (...) {
38524       return XapianTclHandleError(interp);
38525     }
38526   }
38527   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::WritableDatabase(static_cast< const Xapian::WritableDatabase& >(result))), SWIGTYPE_p_Xapian__WritableDatabase, SWIG_POINTER_OWN | 0 ));
38528   if (SWIG_IsNewObj(res1)) delete arg1;
38529   return TCL_OK;
38530 fail:
38531   if (SWIG_IsNewObj(res1)) delete arg1;
38532   return TCL_ERROR;
38533 }
38534 
38535 
38536 SWIGINTERN int
_wrap_open_stub(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])38537 _wrap_open_stub(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
38538   Tcl_Obj *CONST *argv = objv+1;
38539   int argc = objc-1;
38540   if (argc == 1) {
38541     int _v;
38542     int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[0], (std::string**)(0));
38543     _v = SWIG_CheckState(res);
38544     if (_v) {
38545       return _wrap_open_stub__SWIG_0(clientData, interp, objc, argv - 1);
38546     }
38547   }
38548   if (argc == 2) {
38549     int _v;
38550     int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[0], (std::string**)(0));
38551     _v = SWIG_CheckState(res);
38552     if (_v) {
38553       {
38554         int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
38555         _v = SWIG_CheckState(res);
38556       }
38557       if (_v) {
38558         return _wrap_open_stub__SWIG_1(clientData, interp, objc, argv - 1);
38559       }
38560     }
38561   }
38562 
38563   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'open_stub'.\n"
38564     "  Possible C/C++ prototypes are:\n"
38565     "    Xapian::Auto::open_stub(std::string const &)\n"
38566     "    Xapian::Auto::open_stub(std::string const &,int)\n", TCL_STATIC);
38567   return TCL_ERROR;
38568 }
38569 
38570 
38571 SWIGINTERN int
_wrap_inmemory_open(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])38572 _wrap_inmemory_open(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
38573   Xapian::WritableDatabase result;
38574 
38575   if (SWIG_GetArgs(interp, objc, objv,":xapian::inmemory_open ") == TCL_ERROR) SWIG_fail;
38576   {
38577     try {
38578       result = Xapian::InMemory::open();
38579     } catch (const Xapian::Error &e) {
38580       return XapianTclHandleError(interp, e);
38581     } catch (...) {
38582       return XapianTclHandleError(interp);
38583     }
38584   }
38585   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::WritableDatabase(static_cast< const Xapian::WritableDatabase& >(result))), SWIGTYPE_p_Xapian__WritableDatabase, SWIG_POINTER_OWN | 0 ));
38586   return TCL_OK;
38587 fail:
38588   return TCL_ERROR;
38589 }
38590 
38591 
38592 SWIGINTERN int
_wrap_chert_open(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])38593 _wrap_chert_open(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
38594   std::string *arg1 = 0 ;
38595   int res1 = SWIG_OLDOBJ ;
38596   Xapian::Database result;
38597 
38598   if (SWIG_GetArgs(interp, objc, objv,"o:xapian::chert_open dir ",(void *)0) == TCL_ERROR) SWIG_fail;
38599   {
38600     std::string *ptr = (std::string *)0;
38601     res1 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[1], &ptr);
38602     if (!SWIG_IsOK(res1)) {
38603       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "chert_open" "', argument " "1"" of type '" "std::string const &""'");
38604     }
38605     if (!ptr) {
38606       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "chert_open" "', argument " "1"" of type '" "std::string const &""'");
38607     }
38608     arg1 = ptr;
38609   }
38610   {
38611     try {
38612       result = Xapian::Chert::open((std::string const &)*arg1);
38613     } catch (const Xapian::Error &e) {
38614       return XapianTclHandleError(interp, e);
38615     } catch (...) {
38616       return XapianTclHandleError(interp);
38617     }
38618   }
38619   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::Database(static_cast< const Xapian::Database& >(result))), SWIGTYPE_p_Xapian__Database, SWIG_POINTER_OWN | 0 ));
38620   if (SWIG_IsNewObj(res1)) delete arg1;
38621   return TCL_OK;
38622 fail:
38623   if (SWIG_IsNewObj(res1)) delete arg1;
38624   return TCL_ERROR;
38625 }
38626 
38627 
38628 SWIGINTERN int
_wrap_remote_open__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])38629 _wrap_remote_open__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
38630   std::string *arg1 = 0 ;
38631   unsigned int arg2 ;
38632   useconds_t arg3 ;
38633   useconds_t arg4 ;
38634   int res1 = SWIG_OLDOBJ ;
38635   unsigned int val2 ;
38636   int ecode2 = 0 ;
38637   unsigned int val3 ;
38638   int ecode3 = 0 ;
38639   unsigned int val4 ;
38640   int ecode4 = 0 ;
38641   Xapian::Database result;
38642 
38643   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::remote_open host port timeout connect_timeout ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
38644   {
38645     std::string *ptr = (std::string *)0;
38646     res1 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[1], &ptr);
38647     if (!SWIG_IsOK(res1)) {
38648       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "remote_open" "', argument " "1"" of type '" "std::string const &""'");
38649     }
38650     if (!ptr) {
38651       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open" "', argument " "1"" of type '" "std::string const &""'");
38652     }
38653     arg1 = ptr;
38654   }
38655   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
38656   if (!SWIG_IsOK(ecode2)) {
38657     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "remote_open" "', argument " "2"" of type '" "unsigned int""'");
38658   }
38659   arg2 = static_cast< unsigned int >(val2);
38660   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
38661   if (!SWIG_IsOK(ecode3)) {
38662     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "remote_open" "', argument " "3"" of type '" "useconds_t""'");
38663   }
38664   arg3 = static_cast< useconds_t >(val3);
38665   ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
38666   if (!SWIG_IsOK(ecode4)) {
38667     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "remote_open" "', argument " "4"" of type '" "useconds_t""'");
38668   }
38669   arg4 = static_cast< useconds_t >(val4);
38670   {
38671     try {
38672       result = Xapian::Remote::open((std::string const &)*arg1,arg2,arg3,arg4);
38673     } catch (const Xapian::Error &e) {
38674       return XapianTclHandleError(interp, e);
38675     } catch (...) {
38676       return XapianTclHandleError(interp);
38677     }
38678   }
38679   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::Database(static_cast< const Xapian::Database& >(result))), SWIGTYPE_p_Xapian__Database, SWIG_POINTER_OWN | 0 ));
38680   if (SWIG_IsNewObj(res1)) delete arg1;
38681   return TCL_OK;
38682 fail:
38683   if (SWIG_IsNewObj(res1)) delete arg1;
38684   return TCL_ERROR;
38685 }
38686 
38687 
38688 SWIGINTERN int
_wrap_remote_open__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])38689 _wrap_remote_open__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
38690   std::string *arg1 = 0 ;
38691   unsigned int arg2 ;
38692   useconds_t arg3 ;
38693   int res1 = SWIG_OLDOBJ ;
38694   unsigned int val2 ;
38695   int ecode2 = 0 ;
38696   unsigned int val3 ;
38697   int ecode3 = 0 ;
38698   Xapian::Database result;
38699 
38700   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::remote_open host port timeout ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
38701   {
38702     std::string *ptr = (std::string *)0;
38703     res1 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[1], &ptr);
38704     if (!SWIG_IsOK(res1)) {
38705       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "remote_open" "', argument " "1"" of type '" "std::string const &""'");
38706     }
38707     if (!ptr) {
38708       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open" "', argument " "1"" of type '" "std::string const &""'");
38709     }
38710     arg1 = ptr;
38711   }
38712   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
38713   if (!SWIG_IsOK(ecode2)) {
38714     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "remote_open" "', argument " "2"" of type '" "unsigned int""'");
38715   }
38716   arg2 = static_cast< unsigned int >(val2);
38717   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
38718   if (!SWIG_IsOK(ecode3)) {
38719     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "remote_open" "', argument " "3"" of type '" "useconds_t""'");
38720   }
38721   arg3 = static_cast< useconds_t >(val3);
38722   {
38723     try {
38724       result = Xapian::Remote::open((std::string const &)*arg1,arg2,arg3);
38725     } catch (const Xapian::Error &e) {
38726       return XapianTclHandleError(interp, e);
38727     } catch (...) {
38728       return XapianTclHandleError(interp);
38729     }
38730   }
38731   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::Database(static_cast< const Xapian::Database& >(result))), SWIGTYPE_p_Xapian__Database, SWIG_POINTER_OWN | 0 ));
38732   if (SWIG_IsNewObj(res1)) delete arg1;
38733   return TCL_OK;
38734 fail:
38735   if (SWIG_IsNewObj(res1)) delete arg1;
38736   return TCL_ERROR;
38737 }
38738 
38739 
38740 SWIGINTERN int
_wrap_remote_open__SWIG_2(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])38741 _wrap_remote_open__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
38742   std::string *arg1 = 0 ;
38743   unsigned int arg2 ;
38744   int res1 = SWIG_OLDOBJ ;
38745   unsigned int val2 ;
38746   int ecode2 = 0 ;
38747   Xapian::Database result;
38748 
38749   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::remote_open host port ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
38750   {
38751     std::string *ptr = (std::string *)0;
38752     res1 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[1], &ptr);
38753     if (!SWIG_IsOK(res1)) {
38754       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "remote_open" "', argument " "1"" of type '" "std::string const &""'");
38755     }
38756     if (!ptr) {
38757       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open" "', argument " "1"" of type '" "std::string const &""'");
38758     }
38759     arg1 = ptr;
38760   }
38761   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
38762   if (!SWIG_IsOK(ecode2)) {
38763     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "remote_open" "', argument " "2"" of type '" "unsigned int""'");
38764   }
38765   arg2 = static_cast< unsigned int >(val2);
38766   {
38767     try {
38768       result = Xapian::Remote::open((std::string const &)*arg1,arg2);
38769     } catch (const Xapian::Error &e) {
38770       return XapianTclHandleError(interp, e);
38771     } catch (...) {
38772       return XapianTclHandleError(interp);
38773     }
38774   }
38775   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::Database(static_cast< const Xapian::Database& >(result))), SWIGTYPE_p_Xapian__Database, SWIG_POINTER_OWN | 0 ));
38776   if (SWIG_IsNewObj(res1)) delete arg1;
38777   return TCL_OK;
38778 fail:
38779   if (SWIG_IsNewObj(res1)) delete arg1;
38780   return TCL_ERROR;
38781 }
38782 
38783 
38784 SWIGINTERN int
_wrap_remote_open_writable__SWIG_0(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])38785 _wrap_remote_open_writable__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
38786   std::string *arg1 = 0 ;
38787   unsigned int arg2 ;
38788   useconds_t arg3 ;
38789   useconds_t arg4 ;
38790   int arg5 ;
38791   int res1 = SWIG_OLDOBJ ;
38792   unsigned int val2 ;
38793   int ecode2 = 0 ;
38794   unsigned int val3 ;
38795   int ecode3 = 0 ;
38796   unsigned int val4 ;
38797   int ecode4 = 0 ;
38798   int val5 ;
38799   int ecode5 = 0 ;
38800   Xapian::WritableDatabase result;
38801 
38802   if (SWIG_GetArgs(interp, objc, objv,"ooooo:xapian::remote_open_writable host port timeout connect_timeout flags ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
38803   {
38804     std::string *ptr = (std::string *)0;
38805     res1 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[1], &ptr);
38806     if (!SWIG_IsOK(res1)) {
38807       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'");
38808     }
38809     if (!ptr) {
38810       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'");
38811     }
38812     arg1 = ptr;
38813   }
38814   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
38815   if (!SWIG_IsOK(ecode2)) {
38816     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "remote_open_writable" "', argument " "2"" of type '" "unsigned int""'");
38817   }
38818   arg2 = static_cast< unsigned int >(val2);
38819   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
38820   if (!SWIG_IsOK(ecode3)) {
38821     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "remote_open_writable" "', argument " "3"" of type '" "useconds_t""'");
38822   }
38823   arg3 = static_cast< useconds_t >(val3);
38824   ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
38825   if (!SWIG_IsOK(ecode4)) {
38826     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "remote_open_writable" "', argument " "4"" of type '" "useconds_t""'");
38827   }
38828   arg4 = static_cast< useconds_t >(val4);
38829   ecode5 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
38830   if (!SWIG_IsOK(ecode5)) {
38831     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "remote_open_writable" "', argument " "5"" of type '" "int""'");
38832   }
38833   arg5 = static_cast< int >(val5);
38834   {
38835     try {
38836       result = Xapian::Remote::open_writable((std::string const &)*arg1,arg2,arg3,arg4,arg5);
38837     } catch (const Xapian::Error &e) {
38838       return XapianTclHandleError(interp, e);
38839     } catch (...) {
38840       return XapianTclHandleError(interp);
38841     }
38842   }
38843   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::WritableDatabase(static_cast< const Xapian::WritableDatabase& >(result))), SWIGTYPE_p_Xapian__WritableDatabase, SWIG_POINTER_OWN | 0 ));
38844   if (SWIG_IsNewObj(res1)) delete arg1;
38845   return TCL_OK;
38846 fail:
38847   if (SWIG_IsNewObj(res1)) delete arg1;
38848   return TCL_ERROR;
38849 }
38850 
38851 
38852 SWIGINTERN int
_wrap_remote_open_writable__SWIG_1(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])38853 _wrap_remote_open_writable__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
38854   std::string *arg1 = 0 ;
38855   unsigned int arg2 ;
38856   useconds_t arg3 ;
38857   useconds_t arg4 ;
38858   int res1 = SWIG_OLDOBJ ;
38859   unsigned int val2 ;
38860   int ecode2 = 0 ;
38861   unsigned int val3 ;
38862   int ecode3 = 0 ;
38863   unsigned int val4 ;
38864   int ecode4 = 0 ;
38865   Xapian::WritableDatabase result;
38866 
38867   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::remote_open_writable host port timeout connect_timeout ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
38868   {
38869     std::string *ptr = (std::string *)0;
38870     res1 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[1], &ptr);
38871     if (!SWIG_IsOK(res1)) {
38872       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'");
38873     }
38874     if (!ptr) {
38875       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'");
38876     }
38877     arg1 = ptr;
38878   }
38879   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
38880   if (!SWIG_IsOK(ecode2)) {
38881     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "remote_open_writable" "', argument " "2"" of type '" "unsigned int""'");
38882   }
38883   arg2 = static_cast< unsigned int >(val2);
38884   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
38885   if (!SWIG_IsOK(ecode3)) {
38886     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "remote_open_writable" "', argument " "3"" of type '" "useconds_t""'");
38887   }
38888   arg3 = static_cast< useconds_t >(val3);
38889   ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
38890   if (!SWIG_IsOK(ecode4)) {
38891     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "remote_open_writable" "', argument " "4"" of type '" "useconds_t""'");
38892   }
38893   arg4 = static_cast< useconds_t >(val4);
38894   {
38895     try {
38896       result = Xapian::Remote::open_writable((std::string const &)*arg1,arg2,arg3,arg4);
38897     } catch (const Xapian::Error &e) {
38898       return XapianTclHandleError(interp, e);
38899     } catch (...) {
38900       return XapianTclHandleError(interp);
38901     }
38902   }
38903   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::WritableDatabase(static_cast< const Xapian::WritableDatabase& >(result))), SWIGTYPE_p_Xapian__WritableDatabase, SWIG_POINTER_OWN | 0 ));
38904   if (SWIG_IsNewObj(res1)) delete arg1;
38905   return TCL_OK;
38906 fail:
38907   if (SWIG_IsNewObj(res1)) delete arg1;
38908   return TCL_ERROR;
38909 }
38910 
38911 
38912 SWIGINTERN int
_wrap_remote_open_writable__SWIG_2(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])38913 _wrap_remote_open_writable__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
38914   std::string *arg1 = 0 ;
38915   unsigned int arg2 ;
38916   useconds_t arg3 ;
38917   int res1 = SWIG_OLDOBJ ;
38918   unsigned int val2 ;
38919   int ecode2 = 0 ;
38920   unsigned int val3 ;
38921   int ecode3 = 0 ;
38922   Xapian::WritableDatabase result;
38923 
38924   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::remote_open_writable host port timeout ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
38925   {
38926     std::string *ptr = (std::string *)0;
38927     res1 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[1], &ptr);
38928     if (!SWIG_IsOK(res1)) {
38929       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'");
38930     }
38931     if (!ptr) {
38932       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'");
38933     }
38934     arg1 = ptr;
38935   }
38936   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
38937   if (!SWIG_IsOK(ecode2)) {
38938     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "remote_open_writable" "', argument " "2"" of type '" "unsigned int""'");
38939   }
38940   arg2 = static_cast< unsigned int >(val2);
38941   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
38942   if (!SWIG_IsOK(ecode3)) {
38943     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "remote_open_writable" "', argument " "3"" of type '" "useconds_t""'");
38944   }
38945   arg3 = static_cast< useconds_t >(val3);
38946   {
38947     try {
38948       result = Xapian::Remote::open_writable((std::string const &)*arg1,arg2,arg3);
38949     } catch (const Xapian::Error &e) {
38950       return XapianTclHandleError(interp, e);
38951     } catch (...) {
38952       return XapianTclHandleError(interp);
38953     }
38954   }
38955   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::WritableDatabase(static_cast< const Xapian::WritableDatabase& >(result))), SWIGTYPE_p_Xapian__WritableDatabase, SWIG_POINTER_OWN | 0 ));
38956   if (SWIG_IsNewObj(res1)) delete arg1;
38957   return TCL_OK;
38958 fail:
38959   if (SWIG_IsNewObj(res1)) delete arg1;
38960   return TCL_ERROR;
38961 }
38962 
38963 
38964 SWIGINTERN int
_wrap_remote_open_writable__SWIG_3(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])38965 _wrap_remote_open_writable__SWIG_3(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
38966   std::string *arg1 = 0 ;
38967   unsigned int arg2 ;
38968   int res1 = SWIG_OLDOBJ ;
38969   unsigned int val2 ;
38970   int ecode2 = 0 ;
38971   Xapian::WritableDatabase result;
38972 
38973   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::remote_open_writable host port ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
38974   {
38975     std::string *ptr = (std::string *)0;
38976     res1 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[1], &ptr);
38977     if (!SWIG_IsOK(res1)) {
38978       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'");
38979     }
38980     if (!ptr) {
38981       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'");
38982     }
38983     arg1 = ptr;
38984   }
38985   ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
38986   if (!SWIG_IsOK(ecode2)) {
38987     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "remote_open_writable" "', argument " "2"" of type '" "unsigned int""'");
38988   }
38989   arg2 = static_cast< unsigned int >(val2);
38990   {
38991     try {
38992       result = Xapian::Remote::open_writable((std::string const &)*arg1,arg2);
38993     } catch (const Xapian::Error &e) {
38994       return XapianTclHandleError(interp, e);
38995     } catch (...) {
38996       return XapianTclHandleError(interp);
38997     }
38998   }
38999   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::WritableDatabase(static_cast< const Xapian::WritableDatabase& >(result))), SWIGTYPE_p_Xapian__WritableDatabase, SWIG_POINTER_OWN | 0 ));
39000   if (SWIG_IsNewObj(res1)) delete arg1;
39001   return TCL_OK;
39002 fail:
39003   if (SWIG_IsNewObj(res1)) delete arg1;
39004   return TCL_ERROR;
39005 }
39006 
39007 
39008 SWIGINTERN int
_wrap_remote_open__SWIG_3(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])39009 _wrap_remote_open__SWIG_3(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
39010   std::string *arg1 = 0 ;
39011   std::string *arg2 = 0 ;
39012   useconds_t arg3 ;
39013   int res1 = SWIG_OLDOBJ ;
39014   int res2 = SWIG_OLDOBJ ;
39015   unsigned int val3 ;
39016   int ecode3 = 0 ;
39017   Xapian::Database result;
39018 
39019   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::remote_open program args timeout ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
39020   {
39021     std::string *ptr = (std::string *)0;
39022     res1 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[1], &ptr);
39023     if (!SWIG_IsOK(res1)) {
39024       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "remote_open" "', argument " "1"" of type '" "std::string const &""'");
39025     }
39026     if (!ptr) {
39027       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open" "', argument " "1"" of type '" "std::string const &""'");
39028     }
39029     arg1 = ptr;
39030   }
39031   {
39032     std::string *ptr = (std::string *)0;
39033     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
39034     if (!SWIG_IsOK(res2)) {
39035       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "remote_open" "', argument " "2"" of type '" "std::string const &""'");
39036     }
39037     if (!ptr) {
39038       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open" "', argument " "2"" of type '" "std::string const &""'");
39039     }
39040     arg2 = ptr;
39041   }
39042   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
39043   if (!SWIG_IsOK(ecode3)) {
39044     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "remote_open" "', argument " "3"" of type '" "useconds_t""'");
39045   }
39046   arg3 = static_cast< useconds_t >(val3);
39047   {
39048     try {
39049       result = Xapian::Remote::open((std::string const &)*arg1,(std::string const &)*arg2,arg3);
39050     } catch (const Xapian::Error &e) {
39051       return XapianTclHandleError(interp, e);
39052     } catch (...) {
39053       return XapianTclHandleError(interp);
39054     }
39055   }
39056   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::Database(static_cast< const Xapian::Database& >(result))), SWIGTYPE_p_Xapian__Database, SWIG_POINTER_OWN | 0 ));
39057   if (SWIG_IsNewObj(res1)) delete arg1;
39058   if (SWIG_IsNewObj(res2)) delete arg2;
39059   return TCL_OK;
39060 fail:
39061   if (SWIG_IsNewObj(res1)) delete arg1;
39062   if (SWIG_IsNewObj(res2)) delete arg2;
39063   return TCL_ERROR;
39064 }
39065 
39066 
39067 SWIGINTERN int
_wrap_remote_open__SWIG_4(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])39068 _wrap_remote_open__SWIG_4(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
39069   std::string *arg1 = 0 ;
39070   std::string *arg2 = 0 ;
39071   int res1 = SWIG_OLDOBJ ;
39072   int res2 = SWIG_OLDOBJ ;
39073   Xapian::Database result;
39074 
39075   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::remote_open program args ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
39076   {
39077     std::string *ptr = (std::string *)0;
39078     res1 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[1], &ptr);
39079     if (!SWIG_IsOK(res1)) {
39080       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "remote_open" "', argument " "1"" of type '" "std::string const &""'");
39081     }
39082     if (!ptr) {
39083       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open" "', argument " "1"" of type '" "std::string const &""'");
39084     }
39085     arg1 = ptr;
39086   }
39087   {
39088     std::string *ptr = (std::string *)0;
39089     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
39090     if (!SWIG_IsOK(res2)) {
39091       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "remote_open" "', argument " "2"" of type '" "std::string const &""'");
39092     }
39093     if (!ptr) {
39094       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open" "', argument " "2"" of type '" "std::string const &""'");
39095     }
39096     arg2 = ptr;
39097   }
39098   {
39099     try {
39100       result = Xapian::Remote::open((std::string const &)*arg1,(std::string const &)*arg2);
39101     } catch (const Xapian::Error &e) {
39102       return XapianTclHandleError(interp, e);
39103     } catch (...) {
39104       return XapianTclHandleError(interp);
39105     }
39106   }
39107   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::Database(static_cast< const Xapian::Database& >(result))), SWIGTYPE_p_Xapian__Database, SWIG_POINTER_OWN | 0 ));
39108   if (SWIG_IsNewObj(res1)) delete arg1;
39109   if (SWIG_IsNewObj(res2)) delete arg2;
39110   return TCL_OK;
39111 fail:
39112   if (SWIG_IsNewObj(res1)) delete arg1;
39113   if (SWIG_IsNewObj(res2)) delete arg2;
39114   return TCL_ERROR;
39115 }
39116 
39117 
39118 SWIGINTERN int
_wrap_remote_open(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])39119 _wrap_remote_open(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
39120   Tcl_Obj *CONST *argv = objv+1;
39121   int argc = objc-1;
39122   if (argc == 2) {
39123     int _v;
39124     int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[0], (std::string**)(0));
39125     _v = SWIG_CheckState(res);
39126     if (_v) {
39127       {
39128         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
39129         _v = SWIG_CheckState(res);
39130       }
39131       if (_v) {
39132         return _wrap_remote_open__SWIG_2(clientData, interp, objc, argv - 1);
39133       }
39134     }
39135   }
39136   if (argc == 2) {
39137     int _v;
39138     int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[0], (std::string**)(0));
39139     _v = SWIG_CheckState(res);
39140     if (_v) {
39141       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
39142       _v = SWIG_CheckState(res);
39143       if (_v) {
39144         return _wrap_remote_open__SWIG_4(clientData, interp, objc, argv - 1);
39145       }
39146     }
39147   }
39148   if (argc == 3) {
39149     int _v;
39150     int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[0], (std::string**)(0));
39151     _v = SWIG_CheckState(res);
39152     if (_v) {
39153       {
39154         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
39155         _v = SWIG_CheckState(res);
39156       }
39157       if (_v) {
39158         {
39159           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
39160           _v = SWIG_CheckState(res);
39161         }
39162         if (_v) {
39163           return _wrap_remote_open__SWIG_1(clientData, interp, objc, argv - 1);
39164         }
39165       }
39166     }
39167   }
39168   if (argc == 3) {
39169     int _v;
39170     int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[0], (std::string**)(0));
39171     _v = SWIG_CheckState(res);
39172     if (_v) {
39173       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
39174       _v = SWIG_CheckState(res);
39175       if (_v) {
39176         {
39177           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
39178           _v = SWIG_CheckState(res);
39179         }
39180         if (_v) {
39181           return _wrap_remote_open__SWIG_3(clientData, interp, objc, argv - 1);
39182         }
39183       }
39184     }
39185   }
39186   if (argc == 4) {
39187     int _v;
39188     int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[0], (std::string**)(0));
39189     _v = SWIG_CheckState(res);
39190     if (_v) {
39191       {
39192         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
39193         _v = SWIG_CheckState(res);
39194       }
39195       if (_v) {
39196         {
39197           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
39198           _v = SWIG_CheckState(res);
39199         }
39200         if (_v) {
39201           {
39202             int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
39203             _v = SWIG_CheckState(res);
39204           }
39205           if (_v) {
39206             return _wrap_remote_open__SWIG_0(clientData, interp, objc, argv - 1);
39207           }
39208         }
39209       }
39210     }
39211   }
39212 
39213   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'remote_open'.\n"
39214     "  Possible C/C++ prototypes are:\n"
39215     "    Xapian::Remote::open(std::string const &,unsigned int,useconds_t,useconds_t)\n"
39216     "    Xapian::Remote::open(std::string const &,unsigned int,useconds_t)\n"
39217     "    Xapian::Remote::open(std::string const &,unsigned int)\n"
39218     "    Xapian::Remote::open(std::string const &,std::string const &,useconds_t)\n"
39219     "    Xapian::Remote::open(std::string const &,std::string const &)\n", TCL_STATIC);
39220   return TCL_ERROR;
39221 }
39222 
39223 
39224 SWIGINTERN int
_wrap_remote_open_writable__SWIG_4(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])39225 _wrap_remote_open_writable__SWIG_4(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
39226   std::string *arg1 = 0 ;
39227   std::string *arg2 = 0 ;
39228   useconds_t arg3 ;
39229   int arg4 ;
39230   int res1 = SWIG_OLDOBJ ;
39231   int res2 = SWIG_OLDOBJ ;
39232   unsigned int val3 ;
39233   int ecode3 = 0 ;
39234   int val4 ;
39235   int ecode4 = 0 ;
39236   Xapian::WritableDatabase result;
39237 
39238   if (SWIG_GetArgs(interp, objc, objv,"oooo:xapian::remote_open_writable program args timeout flags ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
39239   {
39240     std::string *ptr = (std::string *)0;
39241     res1 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[1], &ptr);
39242     if (!SWIG_IsOK(res1)) {
39243       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'");
39244     }
39245     if (!ptr) {
39246       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'");
39247     }
39248     arg1 = ptr;
39249   }
39250   {
39251     std::string *ptr = (std::string *)0;
39252     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
39253     if (!SWIG_IsOK(res2)) {
39254       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "remote_open_writable" "', argument " "2"" of type '" "std::string const &""'");
39255     }
39256     if (!ptr) {
39257       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open_writable" "', argument " "2"" of type '" "std::string const &""'");
39258     }
39259     arg2 = ptr;
39260   }
39261   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
39262   if (!SWIG_IsOK(ecode3)) {
39263     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "remote_open_writable" "', argument " "3"" of type '" "useconds_t""'");
39264   }
39265   arg3 = static_cast< useconds_t >(val3);
39266   ecode4 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
39267   if (!SWIG_IsOK(ecode4)) {
39268     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "remote_open_writable" "', argument " "4"" of type '" "int""'");
39269   }
39270   arg4 = static_cast< int >(val4);
39271   {
39272     try {
39273       result = Xapian::Remote::open_writable((std::string const &)*arg1,(std::string const &)*arg2,arg3,arg4);
39274     } catch (const Xapian::Error &e) {
39275       return XapianTclHandleError(interp, e);
39276     } catch (...) {
39277       return XapianTclHandleError(interp);
39278     }
39279   }
39280   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::WritableDatabase(static_cast< const Xapian::WritableDatabase& >(result))), SWIGTYPE_p_Xapian__WritableDatabase, SWIG_POINTER_OWN | 0 ));
39281   if (SWIG_IsNewObj(res1)) delete arg1;
39282   if (SWIG_IsNewObj(res2)) delete arg2;
39283   return TCL_OK;
39284 fail:
39285   if (SWIG_IsNewObj(res1)) delete arg1;
39286   if (SWIG_IsNewObj(res2)) delete arg2;
39287   return TCL_ERROR;
39288 }
39289 
39290 
39291 SWIGINTERN int
_wrap_remote_open_writable__SWIG_5(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])39292 _wrap_remote_open_writable__SWIG_5(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
39293   std::string *arg1 = 0 ;
39294   std::string *arg2 = 0 ;
39295   useconds_t arg3 ;
39296   int res1 = SWIG_OLDOBJ ;
39297   int res2 = SWIG_OLDOBJ ;
39298   unsigned int val3 ;
39299   int ecode3 = 0 ;
39300   Xapian::WritableDatabase result;
39301 
39302   if (SWIG_GetArgs(interp, objc, objv,"ooo:xapian::remote_open_writable program args timeout ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
39303   {
39304     std::string *ptr = (std::string *)0;
39305     res1 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[1], &ptr);
39306     if (!SWIG_IsOK(res1)) {
39307       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'");
39308     }
39309     if (!ptr) {
39310       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'");
39311     }
39312     arg1 = ptr;
39313   }
39314   {
39315     std::string *ptr = (std::string *)0;
39316     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
39317     if (!SWIG_IsOK(res2)) {
39318       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "remote_open_writable" "', argument " "2"" of type '" "std::string const &""'");
39319     }
39320     if (!ptr) {
39321       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open_writable" "', argument " "2"" of type '" "std::string const &""'");
39322     }
39323     arg2 = ptr;
39324   }
39325   ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
39326   if (!SWIG_IsOK(ecode3)) {
39327     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "remote_open_writable" "', argument " "3"" of type '" "useconds_t""'");
39328   }
39329   arg3 = static_cast< useconds_t >(val3);
39330   {
39331     try {
39332       result = Xapian::Remote::open_writable((std::string const &)*arg1,(std::string const &)*arg2,arg3);
39333     } catch (const Xapian::Error &e) {
39334       return XapianTclHandleError(interp, e);
39335     } catch (...) {
39336       return XapianTclHandleError(interp);
39337     }
39338   }
39339   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::WritableDatabase(static_cast< const Xapian::WritableDatabase& >(result))), SWIGTYPE_p_Xapian__WritableDatabase, SWIG_POINTER_OWN | 0 ));
39340   if (SWIG_IsNewObj(res1)) delete arg1;
39341   if (SWIG_IsNewObj(res2)) delete arg2;
39342   return TCL_OK;
39343 fail:
39344   if (SWIG_IsNewObj(res1)) delete arg1;
39345   if (SWIG_IsNewObj(res2)) delete arg2;
39346   return TCL_ERROR;
39347 }
39348 
39349 
39350 SWIGINTERN int
_wrap_remote_open_writable__SWIG_6(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])39351 _wrap_remote_open_writable__SWIG_6(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
39352   std::string *arg1 = 0 ;
39353   std::string *arg2 = 0 ;
39354   int res1 = SWIG_OLDOBJ ;
39355   int res2 = SWIG_OLDOBJ ;
39356   Xapian::WritableDatabase result;
39357 
39358   if (SWIG_GetArgs(interp, objc, objv,"oo:xapian::remote_open_writable program args ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
39359   {
39360     std::string *ptr = (std::string *)0;
39361     res1 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[1], &ptr);
39362     if (!SWIG_IsOK(res1)) {
39363       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'");
39364     }
39365     if (!ptr) {
39366       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'");
39367     }
39368     arg1 = ptr;
39369   }
39370   {
39371     std::string *ptr = (std::string *)0;
39372     res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
39373     if (!SWIG_IsOK(res2)) {
39374       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "remote_open_writable" "', argument " "2"" of type '" "std::string const &""'");
39375     }
39376     if (!ptr) {
39377       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open_writable" "', argument " "2"" of type '" "std::string const &""'");
39378     }
39379     arg2 = ptr;
39380   }
39381   {
39382     try {
39383       result = Xapian::Remote::open_writable((std::string const &)*arg1,(std::string const &)*arg2);
39384     } catch (const Xapian::Error &e) {
39385       return XapianTclHandleError(interp, e);
39386     } catch (...) {
39387       return XapianTclHandleError(interp);
39388     }
39389   }
39390   Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new Xapian::WritableDatabase(static_cast< const Xapian::WritableDatabase& >(result))), SWIGTYPE_p_Xapian__WritableDatabase, SWIG_POINTER_OWN | 0 ));
39391   if (SWIG_IsNewObj(res1)) delete arg1;
39392   if (SWIG_IsNewObj(res2)) delete arg2;
39393   return TCL_OK;
39394 fail:
39395   if (SWIG_IsNewObj(res1)) delete arg1;
39396   if (SWIG_IsNewObj(res2)) delete arg2;
39397   return TCL_ERROR;
39398 }
39399 
39400 
39401 SWIGINTERN int
_wrap_remote_open_writable(ClientData clientData SWIGUNUSED,Tcl_Interp * interp,int objc,Tcl_Obj * CONST objv[])39402 _wrap_remote_open_writable(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
39403   Tcl_Obj *CONST *argv = objv+1;
39404   int argc = objc-1;
39405   if (argc == 2) {
39406     int _v;
39407     int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[0], (std::string**)(0));
39408     _v = SWIG_CheckState(res);
39409     if (_v) {
39410       {
39411         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
39412         _v = SWIG_CheckState(res);
39413       }
39414       if (_v) {
39415         return _wrap_remote_open_writable__SWIG_3(clientData, interp, objc, argv - 1);
39416       }
39417     }
39418   }
39419   if (argc == 2) {
39420     int _v;
39421     int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[0], (std::string**)(0));
39422     _v = SWIG_CheckState(res);
39423     if (_v) {
39424       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
39425       _v = SWIG_CheckState(res);
39426       if (_v) {
39427         return _wrap_remote_open_writable__SWIG_6(clientData, interp, objc, argv - 1);
39428       }
39429     }
39430   }
39431   if (argc == 3) {
39432     int _v;
39433     int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[0], (std::string**)(0));
39434     _v = SWIG_CheckState(res);
39435     if (_v) {
39436       {
39437         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
39438         _v = SWIG_CheckState(res);
39439       }
39440       if (_v) {
39441         {
39442           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
39443           _v = SWIG_CheckState(res);
39444         }
39445         if (_v) {
39446           return _wrap_remote_open_writable__SWIG_2(clientData, interp, objc, argv - 1);
39447         }
39448       }
39449     }
39450   }
39451   if (argc == 3) {
39452     int _v;
39453     int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[0], (std::string**)(0));
39454     _v = SWIG_CheckState(res);
39455     if (_v) {
39456       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
39457       _v = SWIG_CheckState(res);
39458       if (_v) {
39459         {
39460           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
39461           _v = SWIG_CheckState(res);
39462         }
39463         if (_v) {
39464           return _wrap_remote_open_writable__SWIG_5(clientData, interp, objc, argv - 1);
39465         }
39466       }
39467     }
39468   }
39469   if (argc == 4) {
39470     int _v;
39471     int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[0], (std::string**)(0));
39472     _v = SWIG_CheckState(res);
39473     if (_v) {
39474       {
39475         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
39476         _v = SWIG_CheckState(res);
39477       }
39478       if (_v) {
39479         {
39480           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
39481           _v = SWIG_CheckState(res);
39482         }
39483         if (_v) {
39484           {
39485             int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
39486             _v = SWIG_CheckState(res);
39487           }
39488           if (_v) {
39489             return _wrap_remote_open_writable__SWIG_1(clientData, interp, objc, argv - 1);
39490           }
39491         }
39492       }
39493     }
39494   }
39495   if (argc == 4) {
39496     int _v;
39497     int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[0], (std::string**)(0));
39498     _v = SWIG_CheckState(res);
39499     if (_v) {
39500       int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
39501       _v = SWIG_CheckState(res);
39502       if (_v) {
39503         {
39504           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
39505           _v = SWIG_CheckState(res);
39506         }
39507         if (_v) {
39508           {
39509             int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
39510             _v = SWIG_CheckState(res);
39511           }
39512           if (_v) {
39513             return _wrap_remote_open_writable__SWIG_4(clientData, interp, objc, argv - 1);
39514           }
39515         }
39516       }
39517     }
39518   }
39519   if (argc == 5) {
39520     int _v;
39521     int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[0], (std::string**)(0));
39522     _v = SWIG_CheckState(res);
39523     if (_v) {
39524       {
39525         int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
39526         _v = SWIG_CheckState(res);
39527       }
39528       if (_v) {
39529         {
39530           int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
39531           _v = SWIG_CheckState(res);
39532         }
39533         if (_v) {
39534           {
39535             int res = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
39536             _v = SWIG_CheckState(res);
39537           }
39538           if (_v) {
39539             {
39540               int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[4], NULL);
39541               _v = SWIG_CheckState(res);
39542             }
39543             if (_v) {
39544               return _wrap_remote_open_writable__SWIG_0(clientData, interp, objc, argv - 1);
39545             }
39546           }
39547         }
39548       }
39549     }
39550   }
39551 
39552   Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'remote_open_writable'.\n"
39553     "  Possible C/C++ prototypes are:\n"
39554     "    Xapian::Remote::open_writable(std::string const &,unsigned int,useconds_t,useconds_t,int)\n"
39555     "    Xapian::Remote::open_writable(std::string const &,unsigned int,useconds_t,useconds_t)\n"
39556     "    Xapian::Remote::open_writable(std::string const &,unsigned int,useconds_t)\n"
39557     "    Xapian::Remote::open_writable(std::string const &,unsigned int)\n"
39558     "    Xapian::Remote::open_writable(std::string const &,std::string const &,useconds_t,int)\n"
39559     "    Xapian::Remote::open_writable(std::string const &,std::string const &,useconds_t)\n"
39560     "    Xapian::Remote::open_writable(std::string const &,std::string const &)\n", TCL_STATIC);
39561   return TCL_ERROR;
39562 }
39563 
39564 
39565 
39566 static swig_command_info swig_commands[] = {
39567     { SWIG_prefix "version_string", (swig_wrapper_func) _wrap_version_string, NULL},
39568     { SWIG_prefix "major_version", (swig_wrapper_func) _wrap_major_version, NULL},
39569     { SWIG_prefix "minor_version", (swig_wrapper_func) _wrap_minor_version, NULL},
39570     { SWIG_prefix "revision", (swig_wrapper_func) _wrap_revision, NULL},
39571     { SWIG_prefix "new_PositionIterator", (swig_wrapper_func) _wrap_new_PositionIterator, NULL},
39572     { SWIG_prefix "delete_PositionIterator", (swig_wrapper_func) _wrap_delete_PositionIterator, NULL},
39573     { SWIG_prefix "PositionIterator_skip_to", (swig_wrapper_func) _wrap_PositionIterator_skip_to, NULL},
39574     { SWIG_prefix "PositionIterator_get_description", (swig_wrapper_func) _wrap_PositionIterator_get_description, NULL},
39575     { SWIG_prefix "PositionIterator_equals", (swig_wrapper_func) _wrap_PositionIterator_equals, NULL},
39576     { SWIG_prefix "PositionIterator_get_termpos", (swig_wrapper_func) _wrap_PositionIterator_get_termpos, NULL},
39577     { SWIG_prefix "PositionIterator_next", (swig_wrapper_func) _wrap_PositionIterator_next, NULL},
39578     { SWIG_prefix "PositionIterator", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_PositionIterator},
39579     { SWIG_prefix "new_PostingIterator", (swig_wrapper_func) _wrap_new_PostingIterator, NULL},
39580     { SWIG_prefix "delete_PostingIterator", (swig_wrapper_func) _wrap_delete_PostingIterator, NULL},
39581     { SWIG_prefix "PostingIterator_get_wdf", (swig_wrapper_func) _wrap_PostingIterator_get_wdf, NULL},
39582     { SWIG_prefix "PostingIterator_get_doclength", (swig_wrapper_func) _wrap_PostingIterator_get_doclength, NULL},
39583     { SWIG_prefix "PostingIterator_get_unique_terms", (swig_wrapper_func) _wrap_PostingIterator_get_unique_terms, NULL},
39584     { SWIG_prefix "PostingIterator_positionlist_begin", (swig_wrapper_func) _wrap_PostingIterator_positionlist_begin, NULL},
39585     { SWIG_prefix "PostingIterator_positionlist_end", (swig_wrapper_func) _wrap_PostingIterator_positionlist_end, NULL},
39586     { SWIG_prefix "PostingIterator_skip_to", (swig_wrapper_func) _wrap_PostingIterator_skip_to, NULL},
39587     { SWIG_prefix "PostingIterator_get_description", (swig_wrapper_func) _wrap_PostingIterator_get_description, NULL},
39588     { SWIG_prefix "PostingIterator_equals", (swig_wrapper_func) _wrap_PostingIterator_equals, NULL},
39589     { SWIG_prefix "PostingIterator_get_docid", (swig_wrapper_func) _wrap_PostingIterator_get_docid, NULL},
39590     { SWIG_prefix "PostingIterator_next", (swig_wrapper_func) _wrap_PostingIterator_next, NULL},
39591     { SWIG_prefix "PostingIterator", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_PostingIterator},
39592     { SWIG_prefix "new_TermIterator", (swig_wrapper_func) _wrap_new_TermIterator, NULL},
39593     { SWIG_prefix "delete_TermIterator", (swig_wrapper_func) _wrap_delete_TermIterator, NULL},
39594     { SWIG_prefix "TermIterator_get_wdf", (swig_wrapper_func) _wrap_TermIterator_get_wdf, NULL},
39595     { SWIG_prefix "TermIterator_get_termfreq", (swig_wrapper_func) _wrap_TermIterator_get_termfreq, NULL},
39596     { SWIG_prefix "TermIterator_positionlist_count", (swig_wrapper_func) _wrap_TermIterator_positionlist_count, NULL},
39597     { SWIG_prefix "TermIterator_positionlist_begin", (swig_wrapper_func) _wrap_TermIterator_positionlist_begin, NULL},
39598     { SWIG_prefix "TermIterator_positionlist_end", (swig_wrapper_func) _wrap_TermIterator_positionlist_end, NULL},
39599     { SWIG_prefix "TermIterator_skip_to", (swig_wrapper_func) _wrap_TermIterator_skip_to, NULL},
39600     { SWIG_prefix "TermIterator_get_description", (swig_wrapper_func) _wrap_TermIterator_get_description, NULL},
39601     { SWIG_prefix "TermIterator_equals", (swig_wrapper_func) _wrap_TermIterator_equals, NULL},
39602     { SWIG_prefix "TermIterator_get_term", (swig_wrapper_func) _wrap_TermIterator_get_term, NULL},
39603     { SWIG_prefix "TermIterator_next", (swig_wrapper_func) _wrap_TermIterator_next, NULL},
39604     { SWIG_prefix "TermIterator", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_TermIterator},
39605     { SWIG_prefix "new_ValueIterator", (swig_wrapper_func) _wrap_new_ValueIterator, NULL},
39606     { SWIG_prefix "delete_ValueIterator", (swig_wrapper_func) _wrap_delete_ValueIterator, NULL},
39607     { SWIG_prefix "ValueIterator_get_docid", (swig_wrapper_func) _wrap_ValueIterator_get_docid, NULL},
39608     { SWIG_prefix "ValueIterator_get_valueno", (swig_wrapper_func) _wrap_ValueIterator_get_valueno, NULL},
39609     { SWIG_prefix "ValueIterator_skip_to", (swig_wrapper_func) _wrap_ValueIterator_skip_to, NULL},
39610     { SWIG_prefix "ValueIterator_check", (swig_wrapper_func) _wrap_ValueIterator_check, NULL},
39611     { SWIG_prefix "ValueIterator_get_description", (swig_wrapper_func) _wrap_ValueIterator_get_description, NULL},
39612     { SWIG_prefix "ValueIterator_equals", (swig_wrapper_func) _wrap_ValueIterator_equals, NULL},
39613     { SWIG_prefix "ValueIterator_get_value", (swig_wrapper_func) _wrap_ValueIterator_get_value, NULL},
39614     { SWIG_prefix "ValueIterator_next", (swig_wrapper_func) _wrap_ValueIterator_next, NULL},
39615     { SWIG_prefix "ValueIterator", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_ValueIterator},
39616     { SWIG_prefix "new_Document", (swig_wrapper_func) _wrap_new_Document, NULL},
39617     { SWIG_prefix "delete_Document", (swig_wrapper_func) _wrap_delete_Document, NULL},
39618     { SWIG_prefix "Document_get_value", (swig_wrapper_func) _wrap_Document_get_value, NULL},
39619     { SWIG_prefix "Document_add_value", (swig_wrapper_func) _wrap_Document_add_value, NULL},
39620     { SWIG_prefix "Document_remove_value", (swig_wrapper_func) _wrap_Document_remove_value, NULL},
39621     { SWIG_prefix "Document_clear_values", (swig_wrapper_func) _wrap_Document_clear_values, NULL},
39622     { SWIG_prefix "Document_get_data", (swig_wrapper_func) _wrap_Document_get_data, NULL},
39623     { SWIG_prefix "Document_set_data", (swig_wrapper_func) _wrap_Document_set_data, NULL},
39624     { SWIG_prefix "Document_add_posting", (swig_wrapper_func) _wrap_Document_add_posting, NULL},
39625     { SWIG_prefix "Document_add_term", (swig_wrapper_func) _wrap_Document_add_term, NULL},
39626     { SWIG_prefix "Document_add_boolean_term", (swig_wrapper_func) _wrap_Document_add_boolean_term, NULL},
39627     { SWIG_prefix "Document_remove_posting", (swig_wrapper_func) _wrap_Document_remove_posting, NULL},
39628     { SWIG_prefix "Document_remove_postings", (swig_wrapper_func) _wrap_Document_remove_postings, NULL},
39629     { SWIG_prefix "Document_remove_term", (swig_wrapper_func) _wrap_Document_remove_term, NULL},
39630     { SWIG_prefix "Document_clear_terms", (swig_wrapper_func) _wrap_Document_clear_terms, NULL},
39631     { SWIG_prefix "Document_termlist_count", (swig_wrapper_func) _wrap_Document_termlist_count, NULL},
39632     { SWIG_prefix "Document_termlist_begin", (swig_wrapper_func) _wrap_Document_termlist_begin, NULL},
39633     { SWIG_prefix "Document_termlist_end", (swig_wrapper_func) _wrap_Document_termlist_end, NULL},
39634     { SWIG_prefix "Document_values_count", (swig_wrapper_func) _wrap_Document_values_count, NULL},
39635     { SWIG_prefix "Document_values_begin", (swig_wrapper_func) _wrap_Document_values_begin, NULL},
39636     { SWIG_prefix "Document_values_end", (swig_wrapper_func) _wrap_Document_values_end, NULL},
39637     { SWIG_prefix "Document_get_docid", (swig_wrapper_func) _wrap_Document_get_docid, NULL},
39638     { SWIG_prefix "Document_serialise", (swig_wrapper_func) _wrap_Document_serialise, NULL},
39639     { SWIG_prefix "Document_unserialise", (swig_wrapper_func) _wrap_Document_unserialise, NULL},
39640     { SWIG_prefix "Document_get_description", (swig_wrapper_func) _wrap_Document_get_description, NULL},
39641     { SWIG_prefix "Document", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_Document},
39642     { SWIG_prefix "new_Registry", (swig_wrapper_func) _wrap_new_Registry, NULL},
39643     { SWIG_prefix "delete_Registry", (swig_wrapper_func) _wrap_delete_Registry, NULL},
39644     { SWIG_prefix "Registry_register_weighting_scheme", (swig_wrapper_func) _wrap_Registry_register_weighting_scheme, NULL},
39645     { SWIG_prefix "Registry_get_weighting_scheme", (swig_wrapper_func) _wrap_Registry_get_weighting_scheme, NULL},
39646     { SWIG_prefix "Registry_register_posting_source", (swig_wrapper_func) _wrap_Registry_register_posting_source, NULL},
39647     { SWIG_prefix "Registry_get_posting_source", (swig_wrapper_func) _wrap_Registry_get_posting_source, NULL},
39648     { SWIG_prefix "Registry_register_match_spy", (swig_wrapper_func) _wrap_Registry_register_match_spy, NULL},
39649     { SWIG_prefix "Registry_get_match_spy", (swig_wrapper_func) _wrap_Registry_get_match_spy, NULL},
39650     { SWIG_prefix "Registry_register_lat_long_metric", (swig_wrapper_func) _wrap_Registry_register_lat_long_metric, NULL},
39651     { SWIG_prefix "Registry_get_lat_long_metric", (swig_wrapper_func) _wrap_Registry_get_lat_long_metric, NULL},
39652     { SWIG_prefix "Registry", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_Registry},
39653     { SWIG_prefix "delete_Query", (swig_wrapper_func) _wrap_delete_Query, NULL},
39654     { SWIG_prefix "Query_get_terms_begin", (swig_wrapper_func) _wrap_Query_get_terms_begin, NULL},
39655     { SWIG_prefix "Query_get_terms_end", (swig_wrapper_func) _wrap_Query_get_terms_end, NULL},
39656     { SWIG_prefix "Query_get_unique_terms_begin", (swig_wrapper_func) _wrap_Query_get_unique_terms_begin, NULL},
39657     { SWIG_prefix "Query_get_unique_terms_end", (swig_wrapper_func) _wrap_Query_get_unique_terms_end, NULL},
39658     { SWIG_prefix "Query_get_length", (swig_wrapper_func) _wrap_Query_get_length, NULL},
39659     { SWIG_prefix "Query_empty", (swig_wrapper_func) _wrap_Query_empty, NULL},
39660     { SWIG_prefix "Query_serialise", (swig_wrapper_func) _wrap_Query_serialise, NULL},
39661     { SWIG_prefix "Query_unserialise", (swig_wrapper_func) _wrap_Query_unserialise, NULL},
39662     { SWIG_prefix "Query_get_type", (swig_wrapper_func) _wrap_Query_get_type, NULL},
39663     { SWIG_prefix "Query_get_num_subqueries", (swig_wrapper_func) _wrap_Query_get_num_subqueries, NULL},
39664     { SWIG_prefix "Query_get_subquery", (swig_wrapper_func) _wrap_Query_get_subquery, NULL},
39665     { SWIG_prefix "Query_get_description", (swig_wrapper_func) _wrap_Query_get_description, NULL},
39666     { SWIG_prefix "new_Query", (swig_wrapper_func) _wrap_new_Query, NULL},
39667     { SWIG_prefix "Query", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_Query},
39668     { SWIG_prefix "new_Stem", (swig_wrapper_func) _wrap_new_Stem, NULL},
39669     { SWIG_prefix "delete_Stem", (swig_wrapper_func) _wrap_delete_Stem, NULL},
39670     { SWIG_prefix "Stem_apply", (swig_wrapper_func) _wrap_Stem_apply, NULL},
39671     { SWIG_prefix "Stem_is_none", (swig_wrapper_func) _wrap_Stem_is_none, NULL},
39672     { SWIG_prefix "Stem_get_description", (swig_wrapper_func) _wrap_Stem_get_description, NULL},
39673     { SWIG_prefix "Stem_get_available_languages", (swig_wrapper_func) _wrap_Stem_get_available_languages, NULL},
39674     { SWIG_prefix "Stem", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_Stem},
39675     { SWIG_prefix "new_TermGenerator", (swig_wrapper_func) _wrap_new_TermGenerator, NULL},
39676     { SWIG_prefix "delete_TermGenerator", (swig_wrapper_func) _wrap_delete_TermGenerator, NULL},
39677     { SWIG_prefix "TermGenerator_set_stemmer", (swig_wrapper_func) _wrap_TermGenerator_set_stemmer, NULL},
39678     { SWIG_prefix "TermGenerator_set_stopper", (swig_wrapper_func) _wrap_TermGenerator_set_stopper, NULL},
39679     { SWIG_prefix "TermGenerator_set_document", (swig_wrapper_func) _wrap_TermGenerator_set_document, NULL},
39680     { SWIG_prefix "TermGenerator_get_document", (swig_wrapper_func) _wrap_TermGenerator_get_document, NULL},
39681     { SWIG_prefix "TermGenerator_set_database", (swig_wrapper_func) _wrap_TermGenerator_set_database, NULL},
39682     { SWIG_prefix "TermGenerator_set_flags", (swig_wrapper_func) _wrap_TermGenerator_set_flags, NULL},
39683     { SWIG_prefix "TermGenerator_set_stemming_strategy", (swig_wrapper_func) _wrap_TermGenerator_set_stemming_strategy, NULL},
39684     { SWIG_prefix "TermGenerator_set_stopper_strategy", (swig_wrapper_func) _wrap_TermGenerator_set_stopper_strategy, NULL},
39685     { SWIG_prefix "TermGenerator_set_max_word_length", (swig_wrapper_func) _wrap_TermGenerator_set_max_word_length, NULL},
39686     { SWIG_prefix "TermGenerator_index_text", (swig_wrapper_func) _wrap_TermGenerator_index_text, NULL},
39687     { SWIG_prefix "TermGenerator_index_text_without_positions", (swig_wrapper_func) _wrap_TermGenerator_index_text_without_positions, NULL},
39688     { SWIG_prefix "TermGenerator_increase_termpos", (swig_wrapper_func) _wrap_TermGenerator_increase_termpos, NULL},
39689     { SWIG_prefix "TermGenerator_get_termpos", (swig_wrapper_func) _wrap_TermGenerator_get_termpos, NULL},
39690     { SWIG_prefix "TermGenerator_set_termpos", (swig_wrapper_func) _wrap_TermGenerator_set_termpos, NULL},
39691     { SWIG_prefix "TermGenerator_get_description", (swig_wrapper_func) _wrap_TermGenerator_get_description, NULL},
39692     { SWIG_prefix "TermGenerator", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_TermGenerator},
39693     { SWIG_prefix "new_MSet", (swig_wrapper_func) _wrap_new_MSet, NULL},
39694     { SWIG_prefix "delete_MSet", (swig_wrapper_func) _wrap_delete_MSet, NULL},
39695     { SWIG_prefix "MSet_convert_to_percent", (swig_wrapper_func) _wrap_MSet_convert_to_percent, NULL},
39696     { SWIG_prefix "MSet_get_termfreq", (swig_wrapper_func) _wrap_MSet_get_termfreq, NULL},
39697     { SWIG_prefix "MSet_get_termweight", (swig_wrapper_func) _wrap_MSet_get_termweight, NULL},
39698     { SWIG_prefix "MSet_get_firstitem", (swig_wrapper_func) _wrap_MSet_get_firstitem, NULL},
39699     { SWIG_prefix "MSet_get_matches_lower_bound", (swig_wrapper_func) _wrap_MSet_get_matches_lower_bound, NULL},
39700     { SWIG_prefix "MSet_get_matches_estimated", (swig_wrapper_func) _wrap_MSet_get_matches_estimated, NULL},
39701     { SWIG_prefix "MSet_get_matches_upper_bound", (swig_wrapper_func) _wrap_MSet_get_matches_upper_bound, NULL},
39702     { SWIG_prefix "MSet_get_uncollapsed_matches_lower_bound", (swig_wrapper_func) _wrap_MSet_get_uncollapsed_matches_lower_bound, NULL},
39703     { SWIG_prefix "MSet_get_uncollapsed_matches_estimated", (swig_wrapper_func) _wrap_MSet_get_uncollapsed_matches_estimated, NULL},
39704     { SWIG_prefix "MSet_get_uncollapsed_matches_upper_bound", (swig_wrapper_func) _wrap_MSet_get_uncollapsed_matches_upper_bound, NULL},
39705     { SWIG_prefix "MSet_get_max_attained", (swig_wrapper_func) _wrap_MSet_get_max_attained, NULL},
39706     { SWIG_prefix "MSet_get_max_possible", (swig_wrapper_func) _wrap_MSet_get_max_possible, NULL},
39707     { SWIG_prefix "MSet_snippet", (swig_wrapper_func) _wrap_MSet_snippet, NULL},
39708     { SWIG_prefix "MSet_fetch", (swig_wrapper_func) _wrap_MSet_fetch, NULL},
39709     { SWIG_prefix "MSet_size", (swig_wrapper_func) _wrap_MSet_size, NULL},
39710     { SWIG_prefix "MSet_empty", (swig_wrapper_func) _wrap_MSet_empty, NULL},
39711     { SWIG_prefix "MSet_begin", (swig_wrapper_func) _wrap_MSet_begin, NULL},
39712     { SWIG_prefix "MSet_end", (swig_wrapper_func) _wrap_MSet_end, NULL},
39713     { SWIG_prefix "MSet_back", (swig_wrapper_func) _wrap_MSet_back, NULL},
39714     { SWIG_prefix "MSet_get_description", (swig_wrapper_func) _wrap_MSet_get_description, NULL},
39715     { SWIG_prefix "MSet_get_docid", (swig_wrapper_func) _wrap_MSet_get_docid, NULL},
39716     { SWIG_prefix "MSet_get_document", (swig_wrapper_func) _wrap_MSet_get_document, NULL},
39717     { SWIG_prefix "MSet_get_hit", (swig_wrapper_func) _wrap_MSet_get_hit, NULL},
39718     { SWIG_prefix "MSet_get_document_percentage", (swig_wrapper_func) _wrap_MSet_get_document_percentage, NULL},
39719     { SWIG_prefix "MSet", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_MSet},
39720     { SWIG_prefix "MSetIterator_mset_set", (swig_wrapper_func) _wrap_MSetIterator_mset_set, NULL},
39721     { SWIG_prefix "MSetIterator_mset_get", (swig_wrapper_func) _wrap_MSetIterator_mset_get, NULL},
39722     { SWIG_prefix "MSetIterator_off_from_end_set", (swig_wrapper_func) _wrap_MSetIterator_off_from_end_set, NULL},
39723     { SWIG_prefix "MSetIterator_off_from_end_get", (swig_wrapper_func) _wrap_MSetIterator_off_from_end_get, NULL},
39724     { SWIG_prefix "new_MSetIterator", (swig_wrapper_func) _wrap_new_MSetIterator, NULL},
39725     { SWIG_prefix "MSetIterator_get_rank", (swig_wrapper_func) _wrap_MSetIterator_get_rank, NULL},
39726     { SWIG_prefix "MSetIterator_get_document", (swig_wrapper_func) _wrap_MSetIterator_get_document, NULL},
39727     { SWIG_prefix "MSetIterator_get_weight", (swig_wrapper_func) _wrap_MSetIterator_get_weight, NULL},
39728     { SWIG_prefix "MSetIterator_get_collapse_key", (swig_wrapper_func) _wrap_MSetIterator_get_collapse_key, NULL},
39729     { SWIG_prefix "MSetIterator_get_collapse_count", (swig_wrapper_func) _wrap_MSetIterator_get_collapse_count, NULL},
39730     { SWIG_prefix "MSetIterator_get_sort_key", (swig_wrapper_func) _wrap_MSetIterator_get_sort_key, NULL},
39731     { SWIG_prefix "MSetIterator_get_percent", (swig_wrapper_func) _wrap_MSetIterator_get_percent, NULL},
39732     { SWIG_prefix "MSetIterator_get_description", (swig_wrapper_func) _wrap_MSetIterator_get_description, NULL},
39733     { SWIG_prefix "MSetIterator_equals", (swig_wrapper_func) _wrap_MSetIterator_equals, NULL},
39734     { SWIG_prefix "MSetIterator_get_docid", (swig_wrapper_func) _wrap_MSetIterator_get_docid, NULL},
39735     { SWIG_prefix "MSetIterator_next", (swig_wrapper_func) _wrap_MSetIterator_next, NULL},
39736     { SWIG_prefix "MSetIterator_prev", (swig_wrapper_func) _wrap_MSetIterator_prev, NULL},
39737     { SWIG_prefix "delete_MSetIterator", (swig_wrapper_func) _wrap_delete_MSetIterator, NULL},
39738     { SWIG_prefix "MSetIterator", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_MSetIterator},
39739     { SWIG_prefix "new_ESet", (swig_wrapper_func) _wrap_new_ESet, NULL},
39740     { SWIG_prefix "delete_ESet", (swig_wrapper_func) _wrap_delete_ESet, NULL},
39741     { SWIG_prefix "ESet_size", (swig_wrapper_func) _wrap_ESet_size, NULL},
39742     { SWIG_prefix "ESet_empty", (swig_wrapper_func) _wrap_ESet_empty, NULL},
39743     { SWIG_prefix "ESet_get_ebound", (swig_wrapper_func) _wrap_ESet_get_ebound, NULL},
39744     { SWIG_prefix "ESet_begin", (swig_wrapper_func) _wrap_ESet_begin, NULL},
39745     { SWIG_prefix "ESet_end", (swig_wrapper_func) _wrap_ESet_end, NULL},
39746     { SWIG_prefix "ESet_back", (swig_wrapper_func) _wrap_ESet_back, NULL},
39747     { SWIG_prefix "ESet_get_description", (swig_wrapper_func) _wrap_ESet_get_description, NULL},
39748     { SWIG_prefix "ESet", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_ESet},
39749     { SWIG_prefix "ESetIterator_eset_set", (swig_wrapper_func) _wrap_ESetIterator_eset_set, NULL},
39750     { SWIG_prefix "ESetIterator_eset_get", (swig_wrapper_func) _wrap_ESetIterator_eset_get, NULL},
39751     { SWIG_prefix "ESetIterator_off_from_end_set", (swig_wrapper_func) _wrap_ESetIterator_off_from_end_set, NULL},
39752     { SWIG_prefix "ESetIterator_off_from_end_get", (swig_wrapper_func) _wrap_ESetIterator_off_from_end_get, NULL},
39753     { SWIG_prefix "new_ESetIterator", (swig_wrapper_func) _wrap_new_ESetIterator, NULL},
39754     { SWIG_prefix "ESetIterator_get_weight", (swig_wrapper_func) _wrap_ESetIterator_get_weight, NULL},
39755     { SWIG_prefix "ESetIterator_get_description", (swig_wrapper_func) _wrap_ESetIterator_get_description, NULL},
39756     { SWIG_prefix "ESetIterator_equals", (swig_wrapper_func) _wrap_ESetIterator_equals, NULL},
39757     { SWIG_prefix "ESetIterator_get_term", (swig_wrapper_func) _wrap_ESetIterator_get_term, NULL},
39758     { SWIG_prefix "ESetIterator_next", (swig_wrapper_func) _wrap_ESetIterator_next, NULL},
39759     { SWIG_prefix "ESetIterator_prev", (swig_wrapper_func) _wrap_ESetIterator_prev, NULL},
39760     { SWIG_prefix "delete_ESetIterator", (swig_wrapper_func) _wrap_delete_ESetIterator, NULL},
39761     { SWIG_prefix "ESetIterator", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_ESetIterator},
39762     { SWIG_prefix "+", (swig_wrapper_func) _wrap_a___, NULL},
39763     { SWIG_prefix "new_RSet", (swig_wrapper_func) _wrap_new_RSet, NULL},
39764     { SWIG_prefix "delete_RSet", (swig_wrapper_func) _wrap_delete_RSet, NULL},
39765     { SWIG_prefix "RSet_size", (swig_wrapper_func) _wrap_RSet_size, NULL},
39766     { SWIG_prefix "RSet_empty", (swig_wrapper_func) _wrap_RSet_empty, NULL},
39767     { SWIG_prefix "RSet_add_document", (swig_wrapper_func) _wrap_RSet_add_document, NULL},
39768     { SWIG_prefix "RSet_remove_document", (swig_wrapper_func) _wrap_RSet_remove_document, NULL},
39769     { SWIG_prefix "RSet_contains", (swig_wrapper_func) _wrap_RSet_contains, NULL},
39770     { SWIG_prefix "RSet_get_description", (swig_wrapper_func) _wrap_RSet_get_description, NULL},
39771     { SWIG_prefix "RSet", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_RSet},
39772     { SWIG_prefix "MatchDecider_apply", (swig_wrapper_func) _wrap_MatchDecider_apply, NULL},
39773     { SWIG_prefix "delete_MatchDecider", (swig_wrapper_func) _wrap_delete_MatchDecider, NULL},
39774     { SWIG_prefix "MatchDecider", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_MatchDecider},
39775     { SWIG_prefix "new_Enquire", (swig_wrapper_func) _wrap_new_Enquire, NULL},
39776     { SWIG_prefix "delete_Enquire", (swig_wrapper_func) _wrap_delete_Enquire, NULL},
39777     { SWIG_prefix "Enquire_set_query", (swig_wrapper_func) _wrap_Enquire_set_query, NULL},
39778     { SWIG_prefix "Enquire_get_query", (swig_wrapper_func) _wrap_Enquire_get_query, NULL},
39779     { SWIG_prefix "Enquire_add_matchspy", (swig_wrapper_func) _wrap_Enquire_add_matchspy, NULL},
39780     { SWIG_prefix "Enquire_clear_matchspies", (swig_wrapper_func) _wrap_Enquire_clear_matchspies, NULL},
39781     { SWIG_prefix "Enquire_set_weighting_scheme", (swig_wrapper_func) _wrap_Enquire_set_weighting_scheme, NULL},
39782     { SWIG_prefix "Enquire_set_expansion_scheme", (swig_wrapper_func) _wrap_Enquire_set_expansion_scheme, NULL},
39783     { SWIG_prefix "Enquire_set_collapse_key", (swig_wrapper_func) _wrap_Enquire_set_collapse_key, NULL},
39784     { SWIG_prefix "Enquire_set_docid_order", (swig_wrapper_func) _wrap_Enquire_set_docid_order, NULL},
39785     { SWIG_prefix "Enquire_set_cutoff", (swig_wrapper_func) _wrap_Enquire_set_cutoff, NULL},
39786     { SWIG_prefix "Enquire_set_sort_by_relevance", (swig_wrapper_func) _wrap_Enquire_set_sort_by_relevance, NULL},
39787     { SWIG_prefix "Enquire_set_sort_by_value", (swig_wrapper_func) _wrap_Enquire_set_sort_by_value, NULL},
39788     { SWIG_prefix "Enquire_set_sort_by_key", (swig_wrapper_func) _wrap_Enquire_set_sort_by_key, NULL},
39789     { SWIG_prefix "Enquire_set_sort_by_value_then_relevance", (swig_wrapper_func) _wrap_Enquire_set_sort_by_value_then_relevance, NULL},
39790     { SWIG_prefix "Enquire_set_sort_by_key_then_relevance", (swig_wrapper_func) _wrap_Enquire_set_sort_by_key_then_relevance, NULL},
39791     { SWIG_prefix "Enquire_set_sort_by_relevance_then_value", (swig_wrapper_func) _wrap_Enquire_set_sort_by_relevance_then_value, NULL},
39792     { SWIG_prefix "Enquire_set_sort_by_relevance_then_key", (swig_wrapper_func) _wrap_Enquire_set_sort_by_relevance_then_key, NULL},
39793     { SWIG_prefix "Enquire_set_time_limit", (swig_wrapper_func) _wrap_Enquire_set_time_limit, NULL},
39794     { SWIG_prefix "Enquire_get_mset", (swig_wrapper_func) _wrap_Enquire_get_mset, NULL},
39795     { SWIG_prefix "Enquire_get_eset", (swig_wrapper_func) _wrap_Enquire_get_eset, NULL},
39796     { SWIG_prefix "Enquire_get_matching_terms_begin", (swig_wrapper_func) _wrap_Enquire_get_matching_terms_begin, NULL},
39797     { SWIG_prefix "Enquire_get_matching_terms_end", (swig_wrapper_func) _wrap_Enquire_get_matching_terms_end, NULL},
39798     { SWIG_prefix "Enquire_get_description", (swig_wrapper_func) _wrap_Enquire_get_description, NULL},
39799     { SWIG_prefix "Enquire_get_matching_terms", (swig_wrapper_func) _wrap_Enquire_get_matching_terms, NULL},
39800     { SWIG_prefix "Enquire", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_Enquire},
39801     { SWIG_prefix "ExpandDecider_apply", (swig_wrapper_func) _wrap_ExpandDecider_apply, NULL},
39802     { SWIG_prefix "delete_ExpandDecider", (swig_wrapper_func) _wrap_delete_ExpandDecider, NULL},
39803     { SWIG_prefix "ExpandDecider_release", (swig_wrapper_func) _wrap_ExpandDecider_release, NULL},
39804     { SWIG_prefix "ExpandDecider", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_ExpandDecider},
39805     { SWIG_prefix "new_ExpandDeciderAnd", (swig_wrapper_func) _wrap_new_ExpandDeciderAnd, NULL},
39806     { SWIG_prefix "ExpandDeciderAnd_apply", (swig_wrapper_func) _wrap_ExpandDeciderAnd_apply, NULL},
39807     { SWIG_prefix "delete_ExpandDeciderAnd", (swig_wrapper_func) _wrap_delete_ExpandDeciderAnd, NULL},
39808     { SWIG_prefix "ExpandDeciderAnd", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_ExpandDeciderAnd},
39809     { SWIG_prefix "new_ExpandDeciderFilterPrefix", (swig_wrapper_func) _wrap_new_ExpandDeciderFilterPrefix, NULL},
39810     { SWIG_prefix "ExpandDeciderFilterPrefix_apply", (swig_wrapper_func) _wrap_ExpandDeciderFilterPrefix_apply, NULL},
39811     { SWIG_prefix "delete_ExpandDeciderFilterPrefix", (swig_wrapper_func) _wrap_delete_ExpandDeciderFilterPrefix, NULL},
39812     { SWIG_prefix "ExpandDeciderFilterPrefix", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_ExpandDeciderFilterPrefix},
39813     { SWIG_prefix "KeyMaker_apply", (swig_wrapper_func) _wrap_KeyMaker_apply, NULL},
39814     { SWIG_prefix "delete_KeyMaker", (swig_wrapper_func) _wrap_delete_KeyMaker, NULL},
39815     { SWIG_prefix "KeyMaker_release", (swig_wrapper_func) _wrap_KeyMaker_release, NULL},
39816     { SWIG_prefix "KeyMaker", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_KeyMaker},
39817     { SWIG_prefix "new_MultiValueKeyMaker", (swig_wrapper_func) _wrap_new_MultiValueKeyMaker, NULL},
39818     { SWIG_prefix "MultiValueKeyMaker_apply", (swig_wrapper_func) _wrap_MultiValueKeyMaker_apply, NULL},
39819     { SWIG_prefix "MultiValueKeyMaker_add_value", (swig_wrapper_func) _wrap_MultiValueKeyMaker_add_value, NULL},
39820     { SWIG_prefix "delete_MultiValueKeyMaker", (swig_wrapper_func) _wrap_delete_MultiValueKeyMaker, NULL},
39821     { SWIG_prefix "MultiValueKeyMaker", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_MultiValueKeyMaker},
39822     { SWIG_prefix "Stopper_apply", (swig_wrapper_func) _wrap_Stopper_apply, NULL},
39823     { SWIG_prefix "delete_Stopper", (swig_wrapper_func) _wrap_delete_Stopper, NULL},
39824     { SWIG_prefix "Stopper_get_description", (swig_wrapper_func) _wrap_Stopper_get_description, NULL},
39825     { SWIG_prefix "Stopper_release", (swig_wrapper_func) _wrap_Stopper_release, NULL},
39826     { SWIG_prefix "Stopper", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_Stopper},
39827     { SWIG_prefix "SimpleStopper_add", (swig_wrapper_func) _wrap_SimpleStopper_add, NULL},
39828     { SWIG_prefix "SimpleStopper_apply", (swig_wrapper_func) _wrap_SimpleStopper_apply, NULL},
39829     { SWIG_prefix "SimpleStopper_get_description", (swig_wrapper_func) _wrap_SimpleStopper_get_description, NULL},
39830     { SWIG_prefix "new_SimpleStopper", (swig_wrapper_func) _wrap_new_SimpleStopper, NULL},
39831     { SWIG_prefix "delete_SimpleStopper", (swig_wrapper_func) _wrap_delete_SimpleStopper, NULL},
39832     { SWIG_prefix "SimpleStopper", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_SimpleStopper},
39833     { SWIG_prefix "new_RangeProcessor", (swig_wrapper_func) _wrap_new_RangeProcessor, NULL},
39834     { SWIG_prefix "delete_RangeProcessor", (swig_wrapper_func) _wrap_delete_RangeProcessor, NULL},
39835     { SWIG_prefix "RangeProcessor_check_range", (swig_wrapper_func) _wrap_RangeProcessor_check_range, NULL},
39836     { SWIG_prefix "RangeProcessor_apply", (swig_wrapper_func) _wrap_RangeProcessor_apply, NULL},
39837     { SWIG_prefix "RangeProcessor_release", (swig_wrapper_func) _wrap_RangeProcessor_release, NULL},
39838     { SWIG_prefix "RangeProcessor", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_RangeProcessor},
39839     { SWIG_prefix "new_DateRangeProcessor", (swig_wrapper_func) _wrap_new_DateRangeProcessor, NULL},
39840     { SWIG_prefix "DateRangeProcessor_apply", (swig_wrapper_func) _wrap_DateRangeProcessor_apply, NULL},
39841     { SWIG_prefix "delete_DateRangeProcessor", (swig_wrapper_func) _wrap_delete_DateRangeProcessor, NULL},
39842     { SWIG_prefix "DateRangeProcessor", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_DateRangeProcessor},
39843     { SWIG_prefix "new_NumberRangeProcessor", (swig_wrapper_func) _wrap_new_NumberRangeProcessor, NULL},
39844     { SWIG_prefix "NumberRangeProcessor_apply", (swig_wrapper_func) _wrap_NumberRangeProcessor_apply, NULL},
39845     { SWIG_prefix "delete_NumberRangeProcessor", (swig_wrapper_func) _wrap_delete_NumberRangeProcessor, NULL},
39846     { SWIG_prefix "NumberRangeProcessor", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_NumberRangeProcessor},
39847     { SWIG_prefix "delete_ValueRangeProcessor", (swig_wrapper_func) _wrap_delete_ValueRangeProcessor, NULL},
39848     { SWIG_prefix "ValueRangeProcessor_apply", (swig_wrapper_func) _wrap_ValueRangeProcessor_apply, NULL},
39849     { SWIG_prefix "ValueRangeProcessor_release", (swig_wrapper_func) _wrap_ValueRangeProcessor_release, NULL},
39850     { SWIG_prefix "ValueRangeProcessor", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_ValueRangeProcessor},
39851     { SWIG_prefix "new_StringValueRangeProcessor", (swig_wrapper_func) _wrap_new_StringValueRangeProcessor, NULL},
39852     { SWIG_prefix "StringValueRangeProcessor_apply", (swig_wrapper_func) _wrap_StringValueRangeProcessor_apply, NULL},
39853     { SWIG_prefix "delete_StringValueRangeProcessor", (swig_wrapper_func) _wrap_delete_StringValueRangeProcessor, NULL},
39854     { SWIG_prefix "StringValueRangeProcessor", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_StringValueRangeProcessor},
39855     { SWIG_prefix "new_DateValueRangeProcessor", (swig_wrapper_func) _wrap_new_DateValueRangeProcessor, NULL},
39856     { SWIG_prefix "DateValueRangeProcessor_apply", (swig_wrapper_func) _wrap_DateValueRangeProcessor_apply, NULL},
39857     { SWIG_prefix "delete_DateValueRangeProcessor", (swig_wrapper_func) _wrap_delete_DateValueRangeProcessor, NULL},
39858     { SWIG_prefix "DateValueRangeProcessor", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_DateValueRangeProcessor},
39859     { SWIG_prefix "new_NumberValueRangeProcessor", (swig_wrapper_func) _wrap_new_NumberValueRangeProcessor, NULL},
39860     { SWIG_prefix "NumberValueRangeProcessor_apply", (swig_wrapper_func) _wrap_NumberValueRangeProcessor_apply, NULL},
39861     { SWIG_prefix "delete_NumberValueRangeProcessor", (swig_wrapper_func) _wrap_delete_NumberValueRangeProcessor, NULL},
39862     { SWIG_prefix "NumberValueRangeProcessor", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_NumberValueRangeProcessor},
39863     { SWIG_prefix "delete_FieldProcessor", (swig_wrapper_func) _wrap_delete_FieldProcessor, NULL},
39864     { SWIG_prefix "FieldProcessor_apply", (swig_wrapper_func) _wrap_FieldProcessor_apply, NULL},
39865     { SWIG_prefix "FieldProcessor_release", (swig_wrapper_func) _wrap_FieldProcessor_release, NULL},
39866     { SWIG_prefix "FieldProcessor", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_FieldProcessor},
39867     { SWIG_prefix "new_QueryParser", (swig_wrapper_func) _wrap_new_QueryParser, NULL},
39868     { SWIG_prefix "delete_QueryParser", (swig_wrapper_func) _wrap_delete_QueryParser, NULL},
39869     { SWIG_prefix "QueryParser_set_stemmer", (swig_wrapper_func) _wrap_QueryParser_set_stemmer, NULL},
39870     { SWIG_prefix "QueryParser_set_stemming_strategy", (swig_wrapper_func) _wrap_QueryParser_set_stemming_strategy, NULL},
39871     { SWIG_prefix "QueryParser_set_stopper", (swig_wrapper_func) _wrap_QueryParser_set_stopper, NULL},
39872     { SWIG_prefix "QueryParser_set_default_op", (swig_wrapper_func) _wrap_QueryParser_set_default_op, NULL},
39873     { SWIG_prefix "QueryParser_get_default_op", (swig_wrapper_func) _wrap_QueryParser_get_default_op, NULL},
39874     { SWIG_prefix "QueryParser_set_database", (swig_wrapper_func) _wrap_QueryParser_set_database, NULL},
39875     { SWIG_prefix "QueryParser_set_max_expansion", (swig_wrapper_func) _wrap_QueryParser_set_max_expansion, NULL},
39876     { SWIG_prefix "QueryParser_set_max_wildcard_expansion", (swig_wrapper_func) _wrap_QueryParser_set_max_wildcard_expansion, NULL},
39877     { SWIG_prefix "QueryParser_parse_query", (swig_wrapper_func) _wrap_QueryParser_parse_query, NULL},
39878     { SWIG_prefix "QueryParser_add_prefix", (swig_wrapper_func) _wrap_QueryParser_add_prefix, NULL},
39879     { SWIG_prefix "QueryParser_add_boolean_prefix", (swig_wrapper_func) _wrap_QueryParser_add_boolean_prefix, NULL},
39880     { SWIG_prefix "QueryParser_stoplist_begin", (swig_wrapper_func) _wrap_QueryParser_stoplist_begin, NULL},
39881     { SWIG_prefix "QueryParser_stoplist_end", (swig_wrapper_func) _wrap_QueryParser_stoplist_end, NULL},
39882     { SWIG_prefix "QueryParser_unstem_begin", (swig_wrapper_func) _wrap_QueryParser_unstem_begin, NULL},
39883     { SWIG_prefix "QueryParser_unstem_end", (swig_wrapper_func) _wrap_QueryParser_unstem_end, NULL},
39884     { SWIG_prefix "QueryParser_add_rangeprocessor", (swig_wrapper_func) _wrap_QueryParser_add_rangeprocessor, NULL},
39885     { SWIG_prefix "QueryParser_add_valuerangeprocessor", (swig_wrapper_func) _wrap_QueryParser_add_valuerangeprocessor, NULL},
39886     { SWIG_prefix "QueryParser_get_corrected_query_string", (swig_wrapper_func) _wrap_QueryParser_get_corrected_query_string, NULL},
39887     { SWIG_prefix "QueryParser_get_description", (swig_wrapper_func) _wrap_QueryParser_get_description, NULL},
39888     { SWIG_prefix "QueryParser", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_QueryParser},
39889     { SWIG_prefix "sortable_serialise", (swig_wrapper_func) _wrap_sortable_serialise, NULL},
39890     { SWIG_prefix "sortable_unserialise", (swig_wrapper_func) _wrap_sortable_unserialise, NULL},
39891     { SWIG_prefix "new_ValueSetMatchDecider", (swig_wrapper_func) _wrap_new_ValueSetMatchDecider, NULL},
39892     { SWIG_prefix "ValueSetMatchDecider_add_value", (swig_wrapper_func) _wrap_ValueSetMatchDecider_add_value, NULL},
39893     { SWIG_prefix "ValueSetMatchDecider_remove_value", (swig_wrapper_func) _wrap_ValueSetMatchDecider_remove_value, NULL},
39894     { SWIG_prefix "ValueSetMatchDecider_apply", (swig_wrapper_func) _wrap_ValueSetMatchDecider_apply, NULL},
39895     { SWIG_prefix "delete_ValueSetMatchDecider", (swig_wrapper_func) _wrap_delete_ValueSetMatchDecider, NULL},
39896     { SWIG_prefix "ValueSetMatchDecider", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_ValueSetMatchDecider},
39897     { SWIG_prefix "delete_Weight", (swig_wrapper_func) _wrap_delete_Weight, NULL},
39898     { SWIG_prefix "Weight_name", (swig_wrapper_func) _wrap_Weight_name, NULL},
39899     { SWIG_prefix "Weight_get_sumpart", (swig_wrapper_func) _wrap_Weight_get_sumpart, NULL},
39900     { SWIG_prefix "Weight_get_maxpart", (swig_wrapper_func) _wrap_Weight_get_maxpart, NULL},
39901     { SWIG_prefix "Weight_get_sumextra", (swig_wrapper_func) _wrap_Weight_get_sumextra, NULL},
39902     { SWIG_prefix "Weight_get_maxextra", (swig_wrapper_func) _wrap_Weight_get_maxextra, NULL},
39903     { SWIG_prefix "Weight", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_Weight},
39904     { SWIG_prefix "new_BoolWeight", (swig_wrapper_func) _wrap_new_BoolWeight, NULL},
39905     { SWIG_prefix "BoolWeight_name", (swig_wrapper_func) _wrap_BoolWeight_name, NULL},
39906     { SWIG_prefix "BoolWeight_get_sumpart", (swig_wrapper_func) _wrap_BoolWeight_get_sumpart, NULL},
39907     { SWIG_prefix "BoolWeight_get_maxpart", (swig_wrapper_func) _wrap_BoolWeight_get_maxpart, NULL},
39908     { SWIG_prefix "BoolWeight_get_sumextra", (swig_wrapper_func) _wrap_BoolWeight_get_sumextra, NULL},
39909     { SWIG_prefix "BoolWeight_get_maxextra", (swig_wrapper_func) _wrap_BoolWeight_get_maxextra, NULL},
39910     { SWIG_prefix "delete_BoolWeight", (swig_wrapper_func) _wrap_delete_BoolWeight, NULL},
39911     { SWIG_prefix "BoolWeight", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_BoolWeight},
39912     { SWIG_prefix "new_TfIdfWeight", (swig_wrapper_func) _wrap_new_TfIdfWeight, NULL},
39913     { SWIG_prefix "TfIdfWeight_name", (swig_wrapper_func) _wrap_TfIdfWeight_name, NULL},
39914     { SWIG_prefix "TfIdfWeight_get_sumpart", (swig_wrapper_func) _wrap_TfIdfWeight_get_sumpart, NULL},
39915     { SWIG_prefix "TfIdfWeight_get_maxpart", (swig_wrapper_func) _wrap_TfIdfWeight_get_maxpart, NULL},
39916     { SWIG_prefix "TfIdfWeight_get_sumextra", (swig_wrapper_func) _wrap_TfIdfWeight_get_sumextra, NULL},
39917     { SWIG_prefix "TfIdfWeight_get_maxextra", (swig_wrapper_func) _wrap_TfIdfWeight_get_maxextra, NULL},
39918     { SWIG_prefix "delete_TfIdfWeight", (swig_wrapper_func) _wrap_delete_TfIdfWeight, NULL},
39919     { SWIG_prefix "TfIdfWeight", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_TfIdfWeight},
39920     { SWIG_prefix "new_BM25Weight", (swig_wrapper_func) _wrap_new_BM25Weight, NULL},
39921     { SWIG_prefix "BM25Weight_name", (swig_wrapper_func) _wrap_BM25Weight_name, NULL},
39922     { SWIG_prefix "BM25Weight_get_sumpart", (swig_wrapper_func) _wrap_BM25Weight_get_sumpart, NULL},
39923     { SWIG_prefix "BM25Weight_get_maxpart", (swig_wrapper_func) _wrap_BM25Weight_get_maxpart, NULL},
39924     { SWIG_prefix "BM25Weight_get_sumextra", (swig_wrapper_func) _wrap_BM25Weight_get_sumextra, NULL},
39925     { SWIG_prefix "BM25Weight_get_maxextra", (swig_wrapper_func) _wrap_BM25Weight_get_maxextra, NULL},
39926     { SWIG_prefix "delete_BM25Weight", (swig_wrapper_func) _wrap_delete_BM25Weight, NULL},
39927     { SWIG_prefix "BM25Weight", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_BM25Weight},
39928     { SWIG_prefix "new_BM25PlusWeight", (swig_wrapper_func) _wrap_new_BM25PlusWeight, NULL},
39929     { SWIG_prefix "BM25PlusWeight_name", (swig_wrapper_func) _wrap_BM25PlusWeight_name, NULL},
39930     { SWIG_prefix "BM25PlusWeight_get_sumpart", (swig_wrapper_func) _wrap_BM25PlusWeight_get_sumpart, NULL},
39931     { SWIG_prefix "BM25PlusWeight_get_maxpart", (swig_wrapper_func) _wrap_BM25PlusWeight_get_maxpart, NULL},
39932     { SWIG_prefix "BM25PlusWeight_get_sumextra", (swig_wrapper_func) _wrap_BM25PlusWeight_get_sumextra, NULL},
39933     { SWIG_prefix "BM25PlusWeight_get_maxextra", (swig_wrapper_func) _wrap_BM25PlusWeight_get_maxextra, NULL},
39934     { SWIG_prefix "delete_BM25PlusWeight", (swig_wrapper_func) _wrap_delete_BM25PlusWeight, NULL},
39935     { SWIG_prefix "BM25PlusWeight", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_BM25PlusWeight},
39936     { SWIG_prefix "new_TradWeight", (swig_wrapper_func) _wrap_new_TradWeight, NULL},
39937     { SWIG_prefix "TradWeight_name", (swig_wrapper_func) _wrap_TradWeight_name, NULL},
39938     { SWIG_prefix "TradWeight_get_sumpart", (swig_wrapper_func) _wrap_TradWeight_get_sumpart, NULL},
39939     { SWIG_prefix "TradWeight_get_maxpart", (swig_wrapper_func) _wrap_TradWeight_get_maxpart, NULL},
39940     { SWIG_prefix "TradWeight_get_sumextra", (swig_wrapper_func) _wrap_TradWeight_get_sumextra, NULL},
39941     { SWIG_prefix "TradWeight_get_maxextra", (swig_wrapper_func) _wrap_TradWeight_get_maxextra, NULL},
39942     { SWIG_prefix "delete_TradWeight", (swig_wrapper_func) _wrap_delete_TradWeight, NULL},
39943     { SWIG_prefix "TradWeight", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_TradWeight},
39944     { SWIG_prefix "new_InL2Weight", (swig_wrapper_func) _wrap_new_InL2Weight, NULL},
39945     { SWIG_prefix "InL2Weight_name", (swig_wrapper_func) _wrap_InL2Weight_name, NULL},
39946     { SWIG_prefix "InL2Weight_get_sumpart", (swig_wrapper_func) _wrap_InL2Weight_get_sumpart, NULL},
39947     { SWIG_prefix "InL2Weight_get_maxpart", (swig_wrapper_func) _wrap_InL2Weight_get_maxpart, NULL},
39948     { SWIG_prefix "InL2Weight_get_sumextra", (swig_wrapper_func) _wrap_InL2Weight_get_sumextra, NULL},
39949     { SWIG_prefix "InL2Weight_get_maxextra", (swig_wrapper_func) _wrap_InL2Weight_get_maxextra, NULL},
39950     { SWIG_prefix "delete_InL2Weight", (swig_wrapper_func) _wrap_delete_InL2Weight, NULL},
39951     { SWIG_prefix "InL2Weight", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_InL2Weight},
39952     { SWIG_prefix "new_IfB2Weight", (swig_wrapper_func) _wrap_new_IfB2Weight, NULL},
39953     { SWIG_prefix "IfB2Weight_name", (swig_wrapper_func) _wrap_IfB2Weight_name, NULL},
39954     { SWIG_prefix "IfB2Weight_get_sumpart", (swig_wrapper_func) _wrap_IfB2Weight_get_sumpart, NULL},
39955     { SWIG_prefix "IfB2Weight_get_maxpart", (swig_wrapper_func) _wrap_IfB2Weight_get_maxpart, NULL},
39956     { SWIG_prefix "IfB2Weight_get_sumextra", (swig_wrapper_func) _wrap_IfB2Weight_get_sumextra, NULL},
39957     { SWIG_prefix "IfB2Weight_get_maxextra", (swig_wrapper_func) _wrap_IfB2Weight_get_maxextra, NULL},
39958     { SWIG_prefix "delete_IfB2Weight", (swig_wrapper_func) _wrap_delete_IfB2Weight, NULL},
39959     { SWIG_prefix "IfB2Weight", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_IfB2Weight},
39960     { SWIG_prefix "new_IneB2Weight", (swig_wrapper_func) _wrap_new_IneB2Weight, NULL},
39961     { SWIG_prefix "IneB2Weight_name", (swig_wrapper_func) _wrap_IneB2Weight_name, NULL},
39962     { SWIG_prefix "IneB2Weight_get_sumpart", (swig_wrapper_func) _wrap_IneB2Weight_get_sumpart, NULL},
39963     { SWIG_prefix "IneB2Weight_get_maxpart", (swig_wrapper_func) _wrap_IneB2Weight_get_maxpart, NULL},
39964     { SWIG_prefix "IneB2Weight_get_sumextra", (swig_wrapper_func) _wrap_IneB2Weight_get_sumextra, NULL},
39965     { SWIG_prefix "IneB2Weight_get_maxextra", (swig_wrapper_func) _wrap_IneB2Weight_get_maxextra, NULL},
39966     { SWIG_prefix "delete_IneB2Weight", (swig_wrapper_func) _wrap_delete_IneB2Weight, NULL},
39967     { SWIG_prefix "IneB2Weight", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_IneB2Weight},
39968     { SWIG_prefix "new_BB2Weight", (swig_wrapper_func) _wrap_new_BB2Weight, NULL},
39969     { SWIG_prefix "BB2Weight_name", (swig_wrapper_func) _wrap_BB2Weight_name, NULL},
39970     { SWIG_prefix "BB2Weight_get_sumpart", (swig_wrapper_func) _wrap_BB2Weight_get_sumpart, NULL},
39971     { SWIG_prefix "BB2Weight_get_maxpart", (swig_wrapper_func) _wrap_BB2Weight_get_maxpart, NULL},
39972     { SWIG_prefix "BB2Weight_get_sumextra", (swig_wrapper_func) _wrap_BB2Weight_get_sumextra, NULL},
39973     { SWIG_prefix "BB2Weight_get_maxextra", (swig_wrapper_func) _wrap_BB2Weight_get_maxextra, NULL},
39974     { SWIG_prefix "delete_BB2Weight", (swig_wrapper_func) _wrap_delete_BB2Weight, NULL},
39975     { SWIG_prefix "BB2Weight", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_BB2Weight},
39976     { SWIG_prefix "new_DLHWeight", (swig_wrapper_func) _wrap_new_DLHWeight, NULL},
39977     { SWIG_prefix "DLHWeight_name", (swig_wrapper_func) _wrap_DLHWeight_name, NULL},
39978     { SWIG_prefix "DLHWeight_get_sumpart", (swig_wrapper_func) _wrap_DLHWeight_get_sumpart, NULL},
39979     { SWIG_prefix "DLHWeight_get_maxpart", (swig_wrapper_func) _wrap_DLHWeight_get_maxpart, NULL},
39980     { SWIG_prefix "DLHWeight_get_sumextra", (swig_wrapper_func) _wrap_DLHWeight_get_sumextra, NULL},
39981     { SWIG_prefix "DLHWeight_get_maxextra", (swig_wrapper_func) _wrap_DLHWeight_get_maxextra, NULL},
39982     { SWIG_prefix "delete_DLHWeight", (swig_wrapper_func) _wrap_delete_DLHWeight, NULL},
39983     { SWIG_prefix "DLHWeight", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_DLHWeight},
39984     { SWIG_prefix "new_PL2Weight", (swig_wrapper_func) _wrap_new_PL2Weight, NULL},
39985     { SWIG_prefix "PL2Weight_name", (swig_wrapper_func) _wrap_PL2Weight_name, NULL},
39986     { SWIG_prefix "PL2Weight_get_sumpart", (swig_wrapper_func) _wrap_PL2Weight_get_sumpart, NULL},
39987     { SWIG_prefix "PL2Weight_get_maxpart", (swig_wrapper_func) _wrap_PL2Weight_get_maxpart, NULL},
39988     { SWIG_prefix "PL2Weight_get_sumextra", (swig_wrapper_func) _wrap_PL2Weight_get_sumextra, NULL},
39989     { SWIG_prefix "PL2Weight_get_maxextra", (swig_wrapper_func) _wrap_PL2Weight_get_maxextra, NULL},
39990     { SWIG_prefix "delete_PL2Weight", (swig_wrapper_func) _wrap_delete_PL2Weight, NULL},
39991     { SWIG_prefix "PL2Weight", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_PL2Weight},
39992     { SWIG_prefix "new_PL2PlusWeight", (swig_wrapper_func) _wrap_new_PL2PlusWeight, NULL},
39993     { SWIG_prefix "PL2PlusWeight_name", (swig_wrapper_func) _wrap_PL2PlusWeight_name, NULL},
39994     { SWIG_prefix "PL2PlusWeight_get_sumpart", (swig_wrapper_func) _wrap_PL2PlusWeight_get_sumpart, NULL},
39995     { SWIG_prefix "PL2PlusWeight_get_maxpart", (swig_wrapper_func) _wrap_PL2PlusWeight_get_maxpart, NULL},
39996     { SWIG_prefix "PL2PlusWeight_get_sumextra", (swig_wrapper_func) _wrap_PL2PlusWeight_get_sumextra, NULL},
39997     { SWIG_prefix "PL2PlusWeight_get_maxextra", (swig_wrapper_func) _wrap_PL2PlusWeight_get_maxextra, NULL},
39998     { SWIG_prefix "delete_PL2PlusWeight", (swig_wrapper_func) _wrap_delete_PL2PlusWeight, NULL},
39999     { SWIG_prefix "PL2PlusWeight", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_PL2PlusWeight},
40000     { SWIG_prefix "new_DPHWeight", (swig_wrapper_func) _wrap_new_DPHWeight, NULL},
40001     { SWIG_prefix "DPHWeight_name", (swig_wrapper_func) _wrap_DPHWeight_name, NULL},
40002     { SWIG_prefix "DPHWeight_get_sumpart", (swig_wrapper_func) _wrap_DPHWeight_get_sumpart, NULL},
40003     { SWIG_prefix "DPHWeight_get_maxpart", (swig_wrapper_func) _wrap_DPHWeight_get_maxpart, NULL},
40004     { SWIG_prefix "DPHWeight_get_sumextra", (swig_wrapper_func) _wrap_DPHWeight_get_sumextra, NULL},
40005     { SWIG_prefix "DPHWeight_get_maxextra", (swig_wrapper_func) _wrap_DPHWeight_get_maxextra, NULL},
40006     { SWIG_prefix "delete_DPHWeight", (swig_wrapper_func) _wrap_delete_DPHWeight, NULL},
40007     { SWIG_prefix "DPHWeight", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_DPHWeight},
40008     { SWIG_prefix "new_LMWeight", (swig_wrapper_func) _wrap_new_LMWeight, NULL},
40009     { SWIG_prefix "LMWeight_name", (swig_wrapper_func) _wrap_LMWeight_name, NULL},
40010     { SWIG_prefix "LMWeight_get_sumpart", (swig_wrapper_func) _wrap_LMWeight_get_sumpart, NULL},
40011     { SWIG_prefix "LMWeight_get_maxpart", (swig_wrapper_func) _wrap_LMWeight_get_maxpart, NULL},
40012     { SWIG_prefix "LMWeight_get_sumextra", (swig_wrapper_func) _wrap_LMWeight_get_sumextra, NULL},
40013     { SWIG_prefix "LMWeight_get_maxextra", (swig_wrapper_func) _wrap_LMWeight_get_maxextra, NULL},
40014     { SWIG_prefix "delete_LMWeight", (swig_wrapper_func) _wrap_delete_LMWeight, NULL},
40015     { SWIG_prefix "LMWeight", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_LMWeight},
40016     { SWIG_prefix "CoordWeight_init", (swig_wrapper_func) _wrap_CoordWeight_init, NULL},
40017     { SWIG_prefix "new_CoordWeight", (swig_wrapper_func) _wrap_new_CoordWeight, NULL},
40018     { SWIG_prefix "CoordWeight_name", (swig_wrapper_func) _wrap_CoordWeight_name, NULL},
40019     { SWIG_prefix "CoordWeight_get_sumpart", (swig_wrapper_func) _wrap_CoordWeight_get_sumpart, NULL},
40020     { SWIG_prefix "CoordWeight_get_maxpart", (swig_wrapper_func) _wrap_CoordWeight_get_maxpart, NULL},
40021     { SWIG_prefix "CoordWeight_get_sumextra", (swig_wrapper_func) _wrap_CoordWeight_get_sumextra, NULL},
40022     { SWIG_prefix "CoordWeight_get_maxextra", (swig_wrapper_func) _wrap_CoordWeight_get_maxextra, NULL},
40023     { SWIG_prefix "delete_CoordWeight", (swig_wrapper_func) _wrap_delete_CoordWeight, NULL},
40024     { SWIG_prefix "CoordWeight", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_CoordWeight},
40025     { SWIG_prefix "new_Compactor", (swig_wrapper_func) _wrap_new_Compactor, NULL},
40026     { SWIG_prefix "delete_Compactor", (swig_wrapper_func) _wrap_delete_Compactor, NULL},
40027     { SWIG_prefix "Compactor_set_block_size", (swig_wrapper_func) _wrap_Compactor_set_block_size, NULL},
40028     { SWIG_prefix "Compactor_set_renumber", (swig_wrapper_func) _wrap_Compactor_set_renumber, NULL},
40029     { SWIG_prefix "Compactor_set_multipass", (swig_wrapper_func) _wrap_Compactor_set_multipass, NULL},
40030     { SWIG_prefix "Compactor_set_compaction_level", (swig_wrapper_func) _wrap_Compactor_set_compaction_level, NULL},
40031     { SWIG_prefix "Compactor_set_destdir", (swig_wrapper_func) _wrap_Compactor_set_destdir, NULL},
40032     { SWIG_prefix "Compactor_add_source", (swig_wrapper_func) _wrap_Compactor_add_source, NULL},
40033     { SWIG_prefix "Compactor_compact", (swig_wrapper_func) _wrap_Compactor_compact, NULL},
40034     { SWIG_prefix "Compactor_set_status", (swig_wrapper_func) _wrap_Compactor_set_status, NULL},
40035     { SWIG_prefix "Compactor_resolve_duplicate_metadata", (swig_wrapper_func) _wrap_Compactor_resolve_duplicate_metadata, NULL},
40036     { SWIG_prefix "Compactor", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_Compactor},
40037     { SWIG_prefix "delete_PostingSource", (swig_wrapper_func) _wrap_delete_PostingSource, NULL},
40038     { SWIG_prefix "PostingSource_get_termfreq_min", (swig_wrapper_func) _wrap_PostingSource_get_termfreq_min, NULL},
40039     { SWIG_prefix "PostingSource_get_termfreq_est", (swig_wrapper_func) _wrap_PostingSource_get_termfreq_est, NULL},
40040     { SWIG_prefix "PostingSource_get_termfreq_max", (swig_wrapper_func) _wrap_PostingSource_get_termfreq_max, NULL},
40041     { SWIG_prefix "PostingSource_set_maxweight", (swig_wrapper_func) _wrap_PostingSource_set_maxweight, NULL},
40042     { SWIG_prefix "PostingSource_get_maxweight", (swig_wrapper_func) _wrap_PostingSource_get_maxweight, NULL},
40043     { SWIG_prefix "PostingSource_get_weight", (swig_wrapper_func) _wrap_PostingSource_get_weight, NULL},
40044     { SWIG_prefix "PostingSource_get_docid", (swig_wrapper_func) _wrap_PostingSource_get_docid, NULL},
40045     { SWIG_prefix "PostingSource_next", (swig_wrapper_func) _wrap_PostingSource_next, NULL},
40046     { SWIG_prefix "PostingSource_skip_to", (swig_wrapper_func) _wrap_PostingSource_skip_to, NULL},
40047     { SWIG_prefix "PostingSource_check", (swig_wrapper_func) _wrap_PostingSource_check, NULL},
40048     { SWIG_prefix "PostingSource_at_end", (swig_wrapper_func) _wrap_PostingSource_at_end, NULL},
40049     { SWIG_prefix "PostingSource_name", (swig_wrapper_func) _wrap_PostingSource_name, NULL},
40050     { SWIG_prefix "PostingSource_init", (swig_wrapper_func) _wrap_PostingSource_init, NULL},
40051     { SWIG_prefix "PostingSource_get_description", (swig_wrapper_func) _wrap_PostingSource_get_description, NULL},
40052     { SWIG_prefix "PostingSource_release", (swig_wrapper_func) _wrap_PostingSource_release, NULL},
40053     { SWIG_prefix "PostingSource", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_PostingSource},
40054     { SWIG_prefix "new_ValuePostingSource", (swig_wrapper_func) _wrap_new_ValuePostingSource, NULL},
40055     { SWIG_prefix "ValuePostingSource_get_termfreq_min", (swig_wrapper_func) _wrap_ValuePostingSource_get_termfreq_min, NULL},
40056     { SWIG_prefix "ValuePostingSource_get_termfreq_est", (swig_wrapper_func) _wrap_ValuePostingSource_get_termfreq_est, NULL},
40057     { SWIG_prefix "ValuePostingSource_get_termfreq_max", (swig_wrapper_func) _wrap_ValuePostingSource_get_termfreq_max, NULL},
40058     { SWIG_prefix "ValuePostingSource_next", (swig_wrapper_func) _wrap_ValuePostingSource_next, NULL},
40059     { SWIG_prefix "ValuePostingSource_skip_to", (swig_wrapper_func) _wrap_ValuePostingSource_skip_to, NULL},
40060     { SWIG_prefix "ValuePostingSource_check", (swig_wrapper_func) _wrap_ValuePostingSource_check, NULL},
40061     { SWIG_prefix "ValuePostingSource_at_end", (swig_wrapper_func) _wrap_ValuePostingSource_at_end, NULL},
40062     { SWIG_prefix "ValuePostingSource_get_docid", (swig_wrapper_func) _wrap_ValuePostingSource_get_docid, NULL},
40063     { SWIG_prefix "ValuePostingSource_init", (swig_wrapper_func) _wrap_ValuePostingSource_init, NULL},
40064     { SWIG_prefix "ValuePostingSource_get_database", (swig_wrapper_func) _wrap_ValuePostingSource_get_database, NULL},
40065     { SWIG_prefix "ValuePostingSource_get_slot", (swig_wrapper_func) _wrap_ValuePostingSource_get_slot, NULL},
40066     { SWIG_prefix "ValuePostingSource_get_value", (swig_wrapper_func) _wrap_ValuePostingSource_get_value, NULL},
40067     { SWIG_prefix "ValuePostingSource_done", (swig_wrapper_func) _wrap_ValuePostingSource_done, NULL},
40068     { SWIG_prefix "ValuePostingSource_get_started", (swig_wrapper_func) _wrap_ValuePostingSource_get_started, NULL},
40069     { SWIG_prefix "ValuePostingSource_set_termfreq_min", (swig_wrapper_func) _wrap_ValuePostingSource_set_termfreq_min, NULL},
40070     { SWIG_prefix "ValuePostingSource_set_termfreq_est", (swig_wrapper_func) _wrap_ValuePostingSource_set_termfreq_est, NULL},
40071     { SWIG_prefix "ValuePostingSource_set_termfreq_max", (swig_wrapper_func) _wrap_ValuePostingSource_set_termfreq_max, NULL},
40072     { SWIG_prefix "delete_ValuePostingSource", (swig_wrapper_func) _wrap_delete_ValuePostingSource, NULL},
40073     { SWIG_prefix "ValuePostingSource", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_ValuePostingSource},
40074     { SWIG_prefix "new_ValueWeightPostingSource", (swig_wrapper_func) _wrap_new_ValueWeightPostingSource, NULL},
40075     { SWIG_prefix "ValueWeightPostingSource_get_weight", (swig_wrapper_func) _wrap_ValueWeightPostingSource_get_weight, NULL},
40076     { SWIG_prefix "ValueWeightPostingSource_name", (swig_wrapper_func) _wrap_ValueWeightPostingSource_name, NULL},
40077     { SWIG_prefix "ValueWeightPostingSource_init", (swig_wrapper_func) _wrap_ValueWeightPostingSource_init, NULL},
40078     { SWIG_prefix "ValueWeightPostingSource_get_description", (swig_wrapper_func) _wrap_ValueWeightPostingSource_get_description, NULL},
40079     { SWIG_prefix "delete_ValueWeightPostingSource", (swig_wrapper_func) _wrap_delete_ValueWeightPostingSource, NULL},
40080     { SWIG_prefix "ValueWeightPostingSource", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_ValueWeightPostingSource},
40081     { SWIG_prefix "new_DecreasingValueWeightPostingSource", (swig_wrapper_func) _wrap_new_DecreasingValueWeightPostingSource, NULL},
40082     { SWIG_prefix "DecreasingValueWeightPostingSource_get_weight", (swig_wrapper_func) _wrap_DecreasingValueWeightPostingSource_get_weight, NULL},
40083     { SWIG_prefix "DecreasingValueWeightPostingSource_name", (swig_wrapper_func) _wrap_DecreasingValueWeightPostingSource_name, NULL},
40084     { SWIG_prefix "DecreasingValueWeightPostingSource_init", (swig_wrapper_func) _wrap_DecreasingValueWeightPostingSource_init, NULL},
40085     { SWIG_prefix "DecreasingValueWeightPostingSource_next", (swig_wrapper_func) _wrap_DecreasingValueWeightPostingSource_next, NULL},
40086     { SWIG_prefix "DecreasingValueWeightPostingSource_skip_to", (swig_wrapper_func) _wrap_DecreasingValueWeightPostingSource_skip_to, NULL},
40087     { SWIG_prefix "DecreasingValueWeightPostingSource_check", (swig_wrapper_func) _wrap_DecreasingValueWeightPostingSource_check, NULL},
40088     { SWIG_prefix "DecreasingValueWeightPostingSource_get_description", (swig_wrapper_func) _wrap_DecreasingValueWeightPostingSource_get_description, NULL},
40089     { SWIG_prefix "delete_DecreasingValueWeightPostingSource", (swig_wrapper_func) _wrap_delete_DecreasingValueWeightPostingSource, NULL},
40090     { SWIG_prefix "DecreasingValueWeightPostingSource", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_DecreasingValueWeightPostingSource},
40091     { SWIG_prefix "new_ValueMapPostingSource", (swig_wrapper_func) _wrap_new_ValueMapPostingSource, NULL},
40092     { SWIG_prefix "ValueMapPostingSource_add_mapping", (swig_wrapper_func) _wrap_ValueMapPostingSource_add_mapping, NULL},
40093     { SWIG_prefix "ValueMapPostingSource_clear_mappings", (swig_wrapper_func) _wrap_ValueMapPostingSource_clear_mappings, NULL},
40094     { SWIG_prefix "ValueMapPostingSource_set_default_weight", (swig_wrapper_func) _wrap_ValueMapPostingSource_set_default_weight, NULL},
40095     { SWIG_prefix "ValueMapPostingSource_get_weight", (swig_wrapper_func) _wrap_ValueMapPostingSource_get_weight, NULL},
40096     { SWIG_prefix "ValueMapPostingSource_name", (swig_wrapper_func) _wrap_ValueMapPostingSource_name, NULL},
40097     { SWIG_prefix "ValueMapPostingSource_init", (swig_wrapper_func) _wrap_ValueMapPostingSource_init, NULL},
40098     { SWIG_prefix "ValueMapPostingSource_get_description", (swig_wrapper_func) _wrap_ValueMapPostingSource_get_description, NULL},
40099     { SWIG_prefix "delete_ValueMapPostingSource", (swig_wrapper_func) _wrap_delete_ValueMapPostingSource, NULL},
40100     { SWIG_prefix "ValueMapPostingSource", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_ValueMapPostingSource},
40101     { SWIG_prefix "new_FixedWeightPostingSource", (swig_wrapper_func) _wrap_new_FixedWeightPostingSource, NULL},
40102     { SWIG_prefix "FixedWeightPostingSource_get_termfreq_min", (swig_wrapper_func) _wrap_FixedWeightPostingSource_get_termfreq_min, NULL},
40103     { SWIG_prefix "FixedWeightPostingSource_get_termfreq_est", (swig_wrapper_func) _wrap_FixedWeightPostingSource_get_termfreq_est, NULL},
40104     { SWIG_prefix "FixedWeightPostingSource_get_termfreq_max", (swig_wrapper_func) _wrap_FixedWeightPostingSource_get_termfreq_max, NULL},
40105     { SWIG_prefix "FixedWeightPostingSource_get_weight", (swig_wrapper_func) _wrap_FixedWeightPostingSource_get_weight, NULL},
40106     { SWIG_prefix "FixedWeightPostingSource_next", (swig_wrapper_func) _wrap_FixedWeightPostingSource_next, NULL},
40107     { SWIG_prefix "FixedWeightPostingSource_skip_to", (swig_wrapper_func) _wrap_FixedWeightPostingSource_skip_to, NULL},
40108     { SWIG_prefix "FixedWeightPostingSource_check", (swig_wrapper_func) _wrap_FixedWeightPostingSource_check, NULL},
40109     { SWIG_prefix "FixedWeightPostingSource_at_end", (swig_wrapper_func) _wrap_FixedWeightPostingSource_at_end, NULL},
40110     { SWIG_prefix "FixedWeightPostingSource_get_docid", (swig_wrapper_func) _wrap_FixedWeightPostingSource_get_docid, NULL},
40111     { SWIG_prefix "FixedWeightPostingSource_name", (swig_wrapper_func) _wrap_FixedWeightPostingSource_name, NULL},
40112     { SWIG_prefix "FixedWeightPostingSource_init", (swig_wrapper_func) _wrap_FixedWeightPostingSource_init, NULL},
40113     { SWIG_prefix "FixedWeightPostingSource_get_description", (swig_wrapper_func) _wrap_FixedWeightPostingSource_get_description, NULL},
40114     { SWIG_prefix "delete_FixedWeightPostingSource", (swig_wrapper_func) _wrap_delete_FixedWeightPostingSource, NULL},
40115     { SWIG_prefix "FixedWeightPostingSource", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_FixedWeightPostingSource},
40116     { SWIG_prefix "delete_MatchSpy", (swig_wrapper_func) _wrap_delete_MatchSpy, NULL},
40117     { SWIG_prefix "MatchSpy_apply", (swig_wrapper_func) _wrap_MatchSpy_apply, NULL},
40118     { SWIG_prefix "MatchSpy_name", (swig_wrapper_func) _wrap_MatchSpy_name, NULL},
40119     { SWIG_prefix "MatchSpy_merge_results", (swig_wrapper_func) _wrap_MatchSpy_merge_results, NULL},
40120     { SWIG_prefix "MatchSpy_get_description", (swig_wrapper_func) _wrap_MatchSpy_get_description, NULL},
40121     { SWIG_prefix "MatchSpy_release", (swig_wrapper_func) _wrap_MatchSpy_release, NULL},
40122     { SWIG_prefix "MatchSpy", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_MatchSpy},
40123     { SWIG_prefix "new_ValueCountMatchSpy", (swig_wrapper_func) _wrap_new_ValueCountMatchSpy, NULL},
40124     { SWIG_prefix "ValueCountMatchSpy_get_total", (swig_wrapper_func) _wrap_ValueCountMatchSpy_get_total, NULL},
40125     { SWIG_prefix "ValueCountMatchSpy_values_begin", (swig_wrapper_func) _wrap_ValueCountMatchSpy_values_begin, NULL},
40126     { SWIG_prefix "ValueCountMatchSpy_values_end", (swig_wrapper_func) _wrap_ValueCountMatchSpy_values_end, NULL},
40127     { SWIG_prefix "ValueCountMatchSpy_top_values_begin", (swig_wrapper_func) _wrap_ValueCountMatchSpy_top_values_begin, NULL},
40128     { SWIG_prefix "ValueCountMatchSpy_top_values_end", (swig_wrapper_func) _wrap_ValueCountMatchSpy_top_values_end, NULL},
40129     { SWIG_prefix "ValueCountMatchSpy_apply", (swig_wrapper_func) _wrap_ValueCountMatchSpy_apply, NULL},
40130     { SWIG_prefix "ValueCountMatchSpy_name", (swig_wrapper_func) _wrap_ValueCountMatchSpy_name, NULL},
40131     { SWIG_prefix "ValueCountMatchSpy_merge_results", (swig_wrapper_func) _wrap_ValueCountMatchSpy_merge_results, NULL},
40132     { SWIG_prefix "ValueCountMatchSpy_get_description", (swig_wrapper_func) _wrap_ValueCountMatchSpy_get_description, NULL},
40133     { SWIG_prefix "delete_ValueCountMatchSpy", (swig_wrapper_func) _wrap_delete_ValueCountMatchSpy, NULL},
40134     { SWIG_prefix "ValueCountMatchSpy", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_ValueCountMatchSpy},
40135     { SWIG_prefix "miles_to_metres", (swig_wrapper_func) _wrap_miles_to_metres, NULL},
40136     { SWIG_prefix "metres_to_miles", (swig_wrapper_func) _wrap_metres_to_miles, NULL},
40137     { SWIG_prefix "LatLongCoord_latitude_set", (swig_wrapper_func) _wrap_LatLongCoord_latitude_set, NULL},
40138     { SWIG_prefix "LatLongCoord_latitude_get", (swig_wrapper_func) _wrap_LatLongCoord_latitude_get, NULL},
40139     { SWIG_prefix "LatLongCoord_longitude_set", (swig_wrapper_func) _wrap_LatLongCoord_longitude_set, NULL},
40140     { SWIG_prefix "LatLongCoord_longitude_get", (swig_wrapper_func) _wrap_LatLongCoord_longitude_get, NULL},
40141     { SWIG_prefix "new_LatLongCoord", (swig_wrapper_func) _wrap_new_LatLongCoord, NULL},
40142     { SWIG_prefix "LatLongCoord_unserialise", (swig_wrapper_func) _wrap_LatLongCoord_unserialise, NULL},
40143     { SWIG_prefix "LatLongCoord_serialise", (swig_wrapper_func) _wrap_LatLongCoord_serialise, NULL},
40144     { SWIG_prefix "LatLongCoord_get_description", (swig_wrapper_func) _wrap_LatLongCoord_get_description, NULL},
40145     { SWIG_prefix "delete_LatLongCoord", (swig_wrapper_func) _wrap_delete_LatLongCoord, NULL},
40146     { SWIG_prefix "LatLongCoord", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_LatLongCoord},
40147     { SWIG_prefix "new_LatLongCoordsIterator", (swig_wrapper_func) _wrap_new_LatLongCoordsIterator, NULL},
40148     { SWIG_prefix "LatLongCoordsIterator_equals", (swig_wrapper_func) _wrap_LatLongCoordsIterator_equals, NULL},
40149     { SWIG_prefix "LatLongCoordsIterator_get_coord", (swig_wrapper_func) _wrap_LatLongCoordsIterator_get_coord, NULL},
40150     { SWIG_prefix "LatLongCoordsIterator_next", (swig_wrapper_func) _wrap_LatLongCoordsIterator_next, NULL},
40151     { SWIG_prefix "delete_LatLongCoordsIterator", (swig_wrapper_func) _wrap_delete_LatLongCoordsIterator, NULL},
40152     { SWIG_prefix "LatLongCoordsIterator", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_LatLongCoordsIterator},
40153     { SWIG_prefix "LatLongCoords_begin", (swig_wrapper_func) _wrap_LatLongCoords_begin, NULL},
40154     { SWIG_prefix "LatLongCoords_end", (swig_wrapper_func) _wrap_LatLongCoords_end, NULL},
40155     { SWIG_prefix "LatLongCoords_size", (swig_wrapper_func) _wrap_LatLongCoords_size, NULL},
40156     { SWIG_prefix "LatLongCoords_empty", (swig_wrapper_func) _wrap_LatLongCoords_empty, NULL},
40157     { SWIG_prefix "LatLongCoords_append", (swig_wrapper_func) _wrap_LatLongCoords_append, NULL},
40158     { SWIG_prefix "new_LatLongCoords", (swig_wrapper_func) _wrap_new_LatLongCoords, NULL},
40159     { SWIG_prefix "LatLongCoords_unserialise", (swig_wrapper_func) _wrap_LatLongCoords_unserialise, NULL},
40160     { SWIG_prefix "LatLongCoords_serialise", (swig_wrapper_func) _wrap_LatLongCoords_serialise, NULL},
40161     { SWIG_prefix "LatLongCoords_get_description", (swig_wrapper_func) _wrap_LatLongCoords_get_description, NULL},
40162     { SWIG_prefix "delete_LatLongCoords", (swig_wrapper_func) _wrap_delete_LatLongCoords, NULL},
40163     { SWIG_prefix "LatLongCoords", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_LatLongCoords},
40164     { SWIG_prefix "delete_LatLongMetric", (swig_wrapper_func) _wrap_delete_LatLongMetric, NULL},
40165     { SWIG_prefix "LatLongMetric_pointwise_distance", (swig_wrapper_func) _wrap_LatLongMetric_pointwise_distance, NULL},
40166     { SWIG_prefix "LatLongMetric_apply", (swig_wrapper_func) _wrap_LatLongMetric_apply, NULL},
40167     { SWIG_prefix "LatLongMetric_name", (swig_wrapper_func) _wrap_LatLongMetric_name, NULL},
40168     { SWIG_prefix "LatLongMetric", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_LatLongMetric},
40169     { SWIG_prefix "new_GreatCircleMetric", (swig_wrapper_func) _wrap_new_GreatCircleMetric, NULL},
40170     { SWIG_prefix "GreatCircleMetric_pointwise_distance", (swig_wrapper_func) _wrap_GreatCircleMetric_pointwise_distance, NULL},
40171     { SWIG_prefix "GreatCircleMetric_name", (swig_wrapper_func) _wrap_GreatCircleMetric_name, NULL},
40172     { SWIG_prefix "delete_GreatCircleMetric", (swig_wrapper_func) _wrap_delete_GreatCircleMetric, NULL},
40173     { SWIG_prefix "GreatCircleMetric", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_GreatCircleMetric},
40174     { SWIG_prefix "new_LatLongDistancePostingSource", (swig_wrapper_func) _wrap_new_LatLongDistancePostingSource, NULL},
40175     { SWIG_prefix "delete_LatLongDistancePostingSource", (swig_wrapper_func) _wrap_delete_LatLongDistancePostingSource, NULL},
40176     { SWIG_prefix "LatLongDistancePostingSource_next", (swig_wrapper_func) _wrap_LatLongDistancePostingSource_next, NULL},
40177     { SWIG_prefix "LatLongDistancePostingSource_skip_to", (swig_wrapper_func) _wrap_LatLongDistancePostingSource_skip_to, NULL},
40178     { SWIG_prefix "LatLongDistancePostingSource_check", (swig_wrapper_func) _wrap_LatLongDistancePostingSource_check, NULL},
40179     { SWIG_prefix "LatLongDistancePostingSource_get_weight", (swig_wrapper_func) _wrap_LatLongDistancePostingSource_get_weight, NULL},
40180     { SWIG_prefix "LatLongDistancePostingSource_name", (swig_wrapper_func) _wrap_LatLongDistancePostingSource_name, NULL},
40181     { SWIG_prefix "LatLongDistancePostingSource_init", (swig_wrapper_func) _wrap_LatLongDistancePostingSource_init, NULL},
40182     { SWIG_prefix "LatLongDistancePostingSource_get_description", (swig_wrapper_func) _wrap_LatLongDistancePostingSource_get_description, NULL},
40183     { SWIG_prefix "LatLongDistancePostingSource", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_LatLongDistancePostingSource},
40184     { SWIG_prefix "new_LatLongDistanceKeyMaker", (swig_wrapper_func) _wrap_new_LatLongDistanceKeyMaker, NULL},
40185     { SWIG_prefix "delete_LatLongDistanceKeyMaker", (swig_wrapper_func) _wrap_delete_LatLongDistanceKeyMaker, NULL},
40186     { SWIG_prefix "LatLongDistanceKeyMaker_apply", (swig_wrapper_func) _wrap_LatLongDistanceKeyMaker_apply, NULL},
40187     { SWIG_prefix "LatLongDistanceKeyMaker", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_LatLongDistanceKeyMaker},
40188     { SWIG_prefix "Database_add_database", (swig_wrapper_func) _wrap_Database_add_database, NULL},
40189     { SWIG_prefix "Database_size", (swig_wrapper_func) _wrap_Database_size, NULL},
40190     { SWIG_prefix "delete_Database", (swig_wrapper_func) _wrap_delete_Database, NULL},
40191     { SWIG_prefix "new_Database", (swig_wrapper_func) _wrap_new_Database, NULL},
40192     { SWIG_prefix "Database_reopen", (swig_wrapper_func) _wrap_Database_reopen, NULL},
40193     { SWIG_prefix "Database_close", (swig_wrapper_func) _wrap_Database_close, NULL},
40194     { SWIG_prefix "Database_get_description", (swig_wrapper_func) _wrap_Database_get_description, NULL},
40195     { SWIG_prefix "Database_postlist_begin", (swig_wrapper_func) _wrap_Database_postlist_begin, NULL},
40196     { SWIG_prefix "Database_postlist_end", (swig_wrapper_func) _wrap_Database_postlist_end, NULL},
40197     { SWIG_prefix "Database_termlist_begin", (swig_wrapper_func) _wrap_Database_termlist_begin, NULL},
40198     { SWIG_prefix "Database_termlist_end", (swig_wrapper_func) _wrap_Database_termlist_end, NULL},
40199     { SWIG_prefix "Database_has_positions", (swig_wrapper_func) _wrap_Database_has_positions, NULL},
40200     { SWIG_prefix "Database_positionlist_begin", (swig_wrapper_func) _wrap_Database_positionlist_begin, NULL},
40201     { SWIG_prefix "Database_positionlist_end", (swig_wrapper_func) _wrap_Database_positionlist_end, NULL},
40202     { SWIG_prefix "Database_allterms_begin", (swig_wrapper_func) _wrap_Database_allterms_begin, NULL},
40203     { SWIG_prefix "Database_allterms_end", (swig_wrapper_func) _wrap_Database_allterms_end, NULL},
40204     { SWIG_prefix "Database_get_doccount", (swig_wrapper_func) _wrap_Database_get_doccount, NULL},
40205     { SWIG_prefix "Database_get_lastdocid", (swig_wrapper_func) _wrap_Database_get_lastdocid, NULL},
40206     { SWIG_prefix "Database_get_avlength", (swig_wrapper_func) _wrap_Database_get_avlength, NULL},
40207     { SWIG_prefix "Database_get_average_length", (swig_wrapper_func) _wrap_Database_get_average_length, NULL},
40208     { SWIG_prefix "Database_get_total_length", (swig_wrapper_func) _wrap_Database_get_total_length, NULL},
40209     { SWIG_prefix "Database_get_termfreq", (swig_wrapper_func) _wrap_Database_get_termfreq, NULL},
40210     { SWIG_prefix "Database_term_exists", (swig_wrapper_func) _wrap_Database_term_exists, NULL},
40211     { SWIG_prefix "Database_get_collection_freq", (swig_wrapper_func) _wrap_Database_get_collection_freq, NULL},
40212     { SWIG_prefix "Database_get_value_freq", (swig_wrapper_func) _wrap_Database_get_value_freq, NULL},
40213     { SWIG_prefix "Database_get_value_lower_bound", (swig_wrapper_func) _wrap_Database_get_value_lower_bound, NULL},
40214     { SWIG_prefix "Database_get_value_upper_bound", (swig_wrapper_func) _wrap_Database_get_value_upper_bound, NULL},
40215     { SWIG_prefix "Database_get_doclength_lower_bound", (swig_wrapper_func) _wrap_Database_get_doclength_lower_bound, NULL},
40216     { SWIG_prefix "Database_get_doclength_upper_bound", (swig_wrapper_func) _wrap_Database_get_doclength_upper_bound, NULL},
40217     { SWIG_prefix "Database_get_wdf_upper_bound", (swig_wrapper_func) _wrap_Database_get_wdf_upper_bound, NULL},
40218     { SWIG_prefix "Database_valuestream_begin", (swig_wrapper_func) _wrap_Database_valuestream_begin, NULL},
40219     { SWIG_prefix "Database_valuestream_end", (swig_wrapper_func) _wrap_Database_valuestream_end, NULL},
40220     { SWIG_prefix "Database_get_doclength", (swig_wrapper_func) _wrap_Database_get_doclength, NULL},
40221     { SWIG_prefix "Database_get_unique_terms", (swig_wrapper_func) _wrap_Database_get_unique_terms, NULL},
40222     { SWIG_prefix "Database_keep_alive", (swig_wrapper_func) _wrap_Database_keep_alive, NULL},
40223     { SWIG_prefix "Database_get_document", (swig_wrapper_func) _wrap_Database_get_document, NULL},
40224     { SWIG_prefix "Database_get_spelling_suggestion", (swig_wrapper_func) _wrap_Database_get_spelling_suggestion, NULL},
40225     { SWIG_prefix "Database_spellings_begin", (swig_wrapper_func) _wrap_Database_spellings_begin, NULL},
40226     { SWIG_prefix "Database_spellings_end", (swig_wrapper_func) _wrap_Database_spellings_end, NULL},
40227     { SWIG_prefix "Database_synonyms_begin", (swig_wrapper_func) _wrap_Database_synonyms_begin, NULL},
40228     { SWIG_prefix "Database_synonyms_end", (swig_wrapper_func) _wrap_Database_synonyms_end, NULL},
40229     { SWIG_prefix "Database_synonym_keys_begin", (swig_wrapper_func) _wrap_Database_synonym_keys_begin, NULL},
40230     { SWIG_prefix "Database_synonym_keys_end", (swig_wrapper_func) _wrap_Database_synonym_keys_end, NULL},
40231     { SWIG_prefix "Database_get_metadata", (swig_wrapper_func) _wrap_Database_get_metadata, NULL},
40232     { SWIG_prefix "Database_metadata_keys_begin", (swig_wrapper_func) _wrap_Database_metadata_keys_begin, NULL},
40233     { SWIG_prefix "Database_metadata_keys_end", (swig_wrapper_func) _wrap_Database_metadata_keys_end, NULL},
40234     { SWIG_prefix "Database_get_uuid", (swig_wrapper_func) _wrap_Database_get_uuid, NULL},
40235     { SWIG_prefix "Database_locked", (swig_wrapper_func) _wrap_Database_locked, NULL},
40236     { SWIG_prefix "Database_get_revision", (swig_wrapper_func) _wrap_Database_get_revision, NULL},
40237     { SWIG_prefix "Database_check", (swig_wrapper_func) _wrap_Database_check, NULL},
40238     { SWIG_prefix "Database_compact", (swig_wrapper_func) _wrap_Database_compact, NULL},
40239     { SWIG_prefix "Database", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_Database},
40240     { SWIG_prefix "delete_WritableDatabase", (swig_wrapper_func) _wrap_delete_WritableDatabase, NULL},
40241     { SWIG_prefix "new_WritableDatabase", (swig_wrapper_func) _wrap_new_WritableDatabase, NULL},
40242     { SWIG_prefix "WritableDatabase_commit", (swig_wrapper_func) _wrap_WritableDatabase_commit, NULL},
40243     { SWIG_prefix "WritableDatabase_flush", (swig_wrapper_func) _wrap_WritableDatabase_flush, NULL},
40244     { SWIG_prefix "WritableDatabase_begin_transaction", (swig_wrapper_func) _wrap_WritableDatabase_begin_transaction, NULL},
40245     { SWIG_prefix "WritableDatabase_commit_transaction", (swig_wrapper_func) _wrap_WritableDatabase_commit_transaction, NULL},
40246     { SWIG_prefix "WritableDatabase_cancel_transaction", (swig_wrapper_func) _wrap_WritableDatabase_cancel_transaction, NULL},
40247     { SWIG_prefix "WritableDatabase_add_document", (swig_wrapper_func) _wrap_WritableDatabase_add_document, NULL},
40248     { SWIG_prefix "WritableDatabase_delete_document", (swig_wrapper_func) _wrap_WritableDatabase_delete_document, NULL},
40249     { SWIG_prefix "WritableDatabase_replace_document", (swig_wrapper_func) _wrap_WritableDatabase_replace_document, NULL},
40250     { SWIG_prefix "WritableDatabase_add_spelling", (swig_wrapper_func) _wrap_WritableDatabase_add_spelling, NULL},
40251     { SWIG_prefix "WritableDatabase_remove_spelling", (swig_wrapper_func) _wrap_WritableDatabase_remove_spelling, NULL},
40252     { SWIG_prefix "WritableDatabase_add_synonym", (swig_wrapper_func) _wrap_WritableDatabase_add_synonym, NULL},
40253     { SWIG_prefix "WritableDatabase_remove_synonym", (swig_wrapper_func) _wrap_WritableDatabase_remove_synonym, NULL},
40254     { SWIG_prefix "WritableDatabase_clear_synonyms", (swig_wrapper_func) _wrap_WritableDatabase_clear_synonyms, NULL},
40255     { SWIG_prefix "WritableDatabase_set_metadata", (swig_wrapper_func) _wrap_WritableDatabase_set_metadata, NULL},
40256     { SWIG_prefix "WritableDatabase_get_description", (swig_wrapper_func) _wrap_WritableDatabase_get_description, NULL},
40257     { SWIG_prefix "WritableDatabase", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_Xapian_WritableDatabase},
40258     { SWIG_prefix "open_stub", (swig_wrapper_func) _wrap_open_stub, NULL},
40259     { SWIG_prefix "inmemory_open", (swig_wrapper_func) _wrap_inmemory_open, NULL},
40260     { SWIG_prefix "chert_open", (swig_wrapper_func) _wrap_chert_open, NULL},
40261     { SWIG_prefix "remote_open", (swig_wrapper_func) _wrap_remote_open, NULL},
40262     { SWIG_prefix "remote_open_writable", (swig_wrapper_func) _wrap_remote_open_writable, NULL},
40263     {0, 0, 0}
40264 };
40265 
40266 static swig_var_info swig_variables[] = {
40267     { SWIG_prefix "Query_MatchNothing", 0, (swig_variable_func) _wrap_Query_MatchNothing_get,(swig_variable_func) swig_readonly},
40268     { SWIG_prefix "Query_MatchAll", 0, (swig_variable_func) _wrap_Query_MatchAll_get,(swig_variable_func) swig_readonly},
40269     {0,0,0,0}
40270 };
40271 
40272 static swig_const_info swig_constants[] = {
40273     {0,0,0,0,0,0}
40274 };
40275 
40276 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
40277 
_p_Xapian__WritableDatabaseTo_p_Xapian__Database(void * x,int * SWIGUNUSEDPARM (newmemory))40278 static void *_p_Xapian__WritableDatabaseTo_p_Xapian__Database(void *x, int *SWIGUNUSEDPARM(newmemory)) {
40279     return (void *)((Xapian::Database *)  ((Xapian::WritableDatabase *) x));
40280 }
_p_Xapian__GreatCircleMetricTo_p_Xapian__LatLongMetric(void * x,int * SWIGUNUSEDPARM (newmemory))40281 static void *_p_Xapian__GreatCircleMetricTo_p_Xapian__LatLongMetric(void *x, int *SWIGUNUSEDPARM(newmemory)) {
40282     return (void *)((Xapian::LatLongMetric *)  ((Xapian::GreatCircleMetric *) x));
40283 }
_p_Xapian__ExpandDeciderFilterPrefixTo_p_Xapian__ExpandDecider(void * x,int * SWIGUNUSEDPARM (newmemory))40284 static void *_p_Xapian__ExpandDeciderFilterPrefixTo_p_Xapian__ExpandDecider(void *x, int *SWIGUNUSEDPARM(newmemory)) {
40285     return (void *)((Xapian::ExpandDecider *)  ((Xapian::ExpandDeciderFilterPrefix *) x));
40286 }
_p_Xapian__ExpandDeciderAndTo_p_Xapian__ExpandDecider(void * x,int * SWIGUNUSEDPARM (newmemory))40287 static void *_p_Xapian__ExpandDeciderAndTo_p_Xapian__ExpandDecider(void *x, int *SWIGUNUSEDPARM(newmemory)) {
40288     return (void *)((Xapian::ExpandDecider *)  ((Xapian::ExpandDeciderAnd *) x));
40289 }
_p_Xapian__ExpandDeciderFilterTermsTo_p_Xapian__ExpandDecider(void * x,int * SWIGUNUSEDPARM (newmemory))40290 static void *_p_Xapian__ExpandDeciderFilterTermsTo_p_Xapian__ExpandDecider(void *x, int *SWIGUNUSEDPARM(newmemory)) {
40291     return (void *)((Xapian::ExpandDecider *)  ((Xapian::ExpandDeciderFilterTerms *) x));
40292 }
_p_Xapian__ValueSetMatchDeciderTo_p_Xapian__MatchDecider(void * x,int * SWIGUNUSEDPARM (newmemory))40293 static void *_p_Xapian__ValueSetMatchDeciderTo_p_Xapian__MatchDecider(void *x, int *SWIGUNUSEDPARM(newmemory)) {
40294     return (void *)((Xapian::MatchDecider *)  ((Xapian::ValueSetMatchDecider *) x));
40295 }
_p_Xapian__MultiValueKeyMakerTo_p_Xapian__KeyMaker(void * x,int * SWIGUNUSEDPARM (newmemory))40296 static void *_p_Xapian__MultiValueKeyMakerTo_p_Xapian__KeyMaker(void *x, int *SWIGUNUSEDPARM(newmemory)) {
40297     return (void *)((Xapian::KeyMaker *)  ((Xapian::MultiValueKeyMaker *) x));
40298 }
_p_Xapian__LatLongDistanceKeyMakerTo_p_Xapian__KeyMaker(void * x,int * SWIGUNUSEDPARM (newmemory))40299 static void *_p_Xapian__LatLongDistanceKeyMakerTo_p_Xapian__KeyMaker(void *x, int *SWIGUNUSEDPARM(newmemory)) {
40300     return (void *)((Xapian::KeyMaker *)  ((Xapian::LatLongDistanceKeyMaker *) x));
40301 }
_p_Xapian__ValuePostingSourceTo_p_Xapian__PostingSource(void * x,int * SWIGUNUSEDPARM (newmemory))40302 static void *_p_Xapian__ValuePostingSourceTo_p_Xapian__PostingSource(void *x, int *SWIGUNUSEDPARM(newmemory)) {
40303     return (void *)((Xapian::PostingSource *)  ((Xapian::ValuePostingSource *) x));
40304 }
_p_Xapian__ValueWeightPostingSourceTo_p_Xapian__PostingSource(void * x,int * SWIGUNUSEDPARM (newmemory))40305 static void *_p_Xapian__ValueWeightPostingSourceTo_p_Xapian__PostingSource(void *x, int *SWIGUNUSEDPARM(newmemory)) {
40306     return (void *)((Xapian::PostingSource *) (Xapian::ValuePostingSource *) ((Xapian::ValueWeightPostingSource *) x));
40307 }
_p_Xapian__DecreasingValueWeightPostingSourceTo_p_Xapian__PostingSource(void * x,int * SWIGUNUSEDPARM (newmemory))40308 static void *_p_Xapian__DecreasingValueWeightPostingSourceTo_p_Xapian__PostingSource(void *x, int *SWIGUNUSEDPARM(newmemory)) {
40309     return (void *)((Xapian::PostingSource *) (Xapian::ValuePostingSource *)(Xapian::ValueWeightPostingSource *) ((Xapian::DecreasingValueWeightPostingSource *) x));
40310 }
_p_Xapian__ValueMapPostingSourceTo_p_Xapian__PostingSource(void * x,int * SWIGUNUSEDPARM (newmemory))40311 static void *_p_Xapian__ValueMapPostingSourceTo_p_Xapian__PostingSource(void *x, int *SWIGUNUSEDPARM(newmemory)) {
40312     return (void *)((Xapian::PostingSource *) (Xapian::ValuePostingSource *) ((Xapian::ValueMapPostingSource *) x));
40313 }
_p_Xapian__FixedWeightPostingSourceTo_p_Xapian__PostingSource(void * x,int * SWIGUNUSEDPARM (newmemory))40314 static void *_p_Xapian__FixedWeightPostingSourceTo_p_Xapian__PostingSource(void *x, int *SWIGUNUSEDPARM(newmemory)) {
40315     return (void *)((Xapian::PostingSource *)  ((Xapian::FixedWeightPostingSource *) x));
40316 }
_p_Xapian__LatLongDistancePostingSourceTo_p_Xapian__PostingSource(void * x,int * SWIGUNUSEDPARM (newmemory))40317 static void *_p_Xapian__LatLongDistancePostingSourceTo_p_Xapian__PostingSource(void *x, int *SWIGUNUSEDPARM(newmemory)) {
40318     return (void *)((Xapian::PostingSource *) (Xapian::ValuePostingSource *) ((Xapian::LatLongDistancePostingSource *) x));
40319 }
_p_Xapian__DecreasingValueWeightPostingSourceTo_p_Xapian__ValueWeightPostingSource(void * x,int * SWIGUNUSEDPARM (newmemory))40320 static void *_p_Xapian__DecreasingValueWeightPostingSourceTo_p_Xapian__ValueWeightPostingSource(void *x, int *SWIGUNUSEDPARM(newmemory)) {
40321     return (void *)((Xapian::ValueWeightPostingSource *)  ((Xapian::DecreasingValueWeightPostingSource *) x));
40322 }
_p_Xapian__ValueWeightPostingSourceTo_p_Xapian__ValuePostingSource(void * x,int * SWIGUNUSEDPARM (newmemory))40323 static void *_p_Xapian__ValueWeightPostingSourceTo_p_Xapian__ValuePostingSource(void *x, int *SWIGUNUSEDPARM(newmemory)) {
40324     return (void *)((Xapian::ValuePostingSource *)  ((Xapian::ValueWeightPostingSource *) x));
40325 }
_p_Xapian__DecreasingValueWeightPostingSourceTo_p_Xapian__ValuePostingSource(void * x,int * SWIGUNUSEDPARM (newmemory))40326 static void *_p_Xapian__DecreasingValueWeightPostingSourceTo_p_Xapian__ValuePostingSource(void *x, int *SWIGUNUSEDPARM(newmemory)) {
40327     return (void *)((Xapian::ValuePostingSource *) (Xapian::ValueWeightPostingSource *) ((Xapian::DecreasingValueWeightPostingSource *) x));
40328 }
_p_Xapian__ValueMapPostingSourceTo_p_Xapian__ValuePostingSource(void * x,int * SWIGUNUSEDPARM (newmemory))40329 static void *_p_Xapian__ValueMapPostingSourceTo_p_Xapian__ValuePostingSource(void *x, int *SWIGUNUSEDPARM(newmemory)) {
40330     return (void *)((Xapian::ValuePostingSource *)  ((Xapian::ValueMapPostingSource *) x));
40331 }
_p_Xapian__LatLongDistancePostingSourceTo_p_Xapian__ValuePostingSource(void * x,int * SWIGUNUSEDPARM (newmemory))40332 static void *_p_Xapian__LatLongDistancePostingSourceTo_p_Xapian__ValuePostingSource(void *x, int *SWIGUNUSEDPARM(newmemory)) {
40333     return (void *)((Xapian::ValuePostingSource *)  ((Xapian::LatLongDistancePostingSource *) x));
40334 }
_p_Xapian__DPHWeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))40335 static void *_p_Xapian__DPHWeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
40336     return (void *)((Xapian::Weight *)  ((Xapian::DPHWeight *) x));
40337 }
_p_Xapian__PL2WeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))40338 static void *_p_Xapian__PL2WeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
40339     return (void *)((Xapian::Weight *)  ((Xapian::PL2Weight *) x));
40340 }
_p_Xapian__DLHWeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))40341 static void *_p_Xapian__DLHWeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
40342     return (void *)((Xapian::Weight *)  ((Xapian::DLHWeight *) x));
40343 }
_p_Xapian__BB2WeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))40344 static void *_p_Xapian__BB2WeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
40345     return (void *)((Xapian::Weight *)  ((Xapian::BB2Weight *) x));
40346 }
_p_Xapian__IneB2WeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))40347 static void *_p_Xapian__IneB2WeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
40348     return (void *)((Xapian::Weight *)  ((Xapian::IneB2Weight *) x));
40349 }
_p_Xapian__IfB2WeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))40350 static void *_p_Xapian__IfB2WeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
40351     return (void *)((Xapian::Weight *)  ((Xapian::IfB2Weight *) x));
40352 }
_p_Xapian__InL2WeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))40353 static void *_p_Xapian__InL2WeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
40354     return (void *)((Xapian::Weight *)  ((Xapian::InL2Weight *) x));
40355 }
_p_Xapian__TradWeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))40356 static void *_p_Xapian__TradWeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
40357     return (void *)((Xapian::Weight *)  ((Xapian::TradWeight *) x));
40358 }
_p_Xapian__TfIdfWeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))40359 static void *_p_Xapian__TfIdfWeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
40360     return (void *)((Xapian::Weight *)  ((Xapian::TfIdfWeight *) x));
40361 }
_p_Xapian__BoolWeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))40362 static void *_p_Xapian__BoolWeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
40363     return (void *)((Xapian::Weight *)  ((Xapian::BoolWeight *) x));
40364 }
_p_Xapian__CoordWeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))40365 static void *_p_Xapian__CoordWeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
40366     return (void *)((Xapian::Weight *)  ((Xapian::CoordWeight *) x));
40367 }
_p_Xapian__LMWeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))40368 static void *_p_Xapian__LMWeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
40369     return (void *)((Xapian::Weight *)  ((Xapian::LMWeight *) x));
40370 }
_p_Xapian__PL2PlusWeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))40371 static void *_p_Xapian__PL2PlusWeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
40372     return (void *)((Xapian::Weight *)  ((Xapian::PL2PlusWeight *) x));
40373 }
_p_Xapian__BM25PlusWeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))40374 static void *_p_Xapian__BM25PlusWeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
40375     return (void *)((Xapian::Weight *)  ((Xapian::BM25PlusWeight *) x));
40376 }
_p_Xapian__BM25WeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))40377 static void *_p_Xapian__BM25WeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
40378     return (void *)((Xapian::Weight *)  ((Xapian::BM25Weight *) x));
40379 }
_p_Xapian__ValueCountMatchSpyTo_p_Xapian__MatchSpy(void * x,int * SWIGUNUSEDPARM (newmemory))40380 static void *_p_Xapian__ValueCountMatchSpyTo_p_Xapian__MatchSpy(void *x, int *SWIGUNUSEDPARM(newmemory)) {
40381     return (void *)((Xapian::MatchSpy *)  ((Xapian::ValueCountMatchSpy *) x));
40382 }
_p_Xapian__SimpleStopperTo_p_Xapian__Stopper(void * x,int * SWIGUNUSEDPARM (newmemory))40383 static void *_p_Xapian__SimpleStopperTo_p_Xapian__Stopper(void *x, int *SWIGUNUSEDPARM(newmemory)) {
40384     return (void *)((Xapian::Stopper *)  ((Xapian::SimpleStopper *) x));
40385 }
_p_Xapian__DateValueRangeProcessorTo_p_Xapian__StringValueRangeProcessor(void * x,int * SWIGUNUSEDPARM (newmemory))40386 static void *_p_Xapian__DateValueRangeProcessorTo_p_Xapian__StringValueRangeProcessor(void *x, int *SWIGUNUSEDPARM(newmemory)) {
40387     return (void *)((Xapian::StringValueRangeProcessor *)  ((Xapian::DateValueRangeProcessor *) x));
40388 }
_p_Xapian__NumberValueRangeProcessorTo_p_Xapian__StringValueRangeProcessor(void * x,int * SWIGUNUSEDPARM (newmemory))40389 static void *_p_Xapian__NumberValueRangeProcessorTo_p_Xapian__StringValueRangeProcessor(void *x, int *SWIGUNUSEDPARM(newmemory)) {
40390     return (void *)((Xapian::StringValueRangeProcessor *)  ((Xapian::NumberValueRangeProcessor *) x));
40391 }
_p_Xapian__StringValueRangeProcessorTo_p_Xapian__ValueRangeProcessor(void * x,int * SWIGUNUSEDPARM (newmemory))40392 static void *_p_Xapian__StringValueRangeProcessorTo_p_Xapian__ValueRangeProcessor(void *x, int *SWIGUNUSEDPARM(newmemory)) {
40393     return (void *)((Xapian::ValueRangeProcessor *)  ((Xapian::StringValueRangeProcessor *) x));
40394 }
_p_Xapian__DateValueRangeProcessorTo_p_Xapian__ValueRangeProcessor(void * x,int * SWIGUNUSEDPARM (newmemory))40395 static void *_p_Xapian__DateValueRangeProcessorTo_p_Xapian__ValueRangeProcessor(void *x, int *SWIGUNUSEDPARM(newmemory)) {
40396     return (void *)((Xapian::ValueRangeProcessor *) (Xapian::StringValueRangeProcessor *) ((Xapian::DateValueRangeProcessor *) x));
40397 }
_p_Xapian__NumberValueRangeProcessorTo_p_Xapian__ValueRangeProcessor(void * x,int * SWIGUNUSEDPARM (newmemory))40398 static void *_p_Xapian__NumberValueRangeProcessorTo_p_Xapian__ValueRangeProcessor(void *x, int *SWIGUNUSEDPARM(newmemory)) {
40399     return (void *)((Xapian::ValueRangeProcessor *) (Xapian::StringValueRangeProcessor *) ((Xapian::NumberValueRangeProcessor *) x));
40400 }
_p_Xapian__DateRangeProcessorTo_p_Xapian__RangeProcessor(void * x,int * SWIGUNUSEDPARM (newmemory))40401 static void *_p_Xapian__DateRangeProcessorTo_p_Xapian__RangeProcessor(void *x, int *SWIGUNUSEDPARM(newmemory)) {
40402     return (void *)((Xapian::RangeProcessor *)  ((Xapian::DateRangeProcessor *) x));
40403 }
_p_Xapian__NumberRangeProcessorTo_p_Xapian__RangeProcessor(void * x,int * SWIGUNUSEDPARM (newmemory))40404 static void *_p_Xapian__NumberRangeProcessorTo_p_Xapian__RangeProcessor(void *x, int *SWIGUNUSEDPARM(newmemory)) {
40405     return (void *)((Xapian::RangeProcessor *)  ((Xapian::NumberRangeProcessor *) x));
40406 }
40407 static swig_type_info _swigt__p_Xapian__BB2Weight = {"_p_Xapian__BB2Weight", "Xapian::BB2Weight *", 0, 0, (void*)&_wrap_class_Xapian_BB2Weight, 0};
40408 static swig_type_info _swigt__p_Xapian__BM25PlusWeight = {"_p_Xapian__BM25PlusWeight", "Xapian::BM25PlusWeight *", 0, 0, (void*)&_wrap_class_Xapian_BM25PlusWeight, 0};
40409 static swig_type_info _swigt__p_Xapian__BM25Weight = {"_p_Xapian__BM25Weight", "Xapian::BM25Weight *", 0, 0, (void*)&_wrap_class_Xapian_BM25Weight, 0};
40410 static swig_type_info _swigt__p_Xapian__BoolWeight = {"_p_Xapian__BoolWeight", "Xapian::BoolWeight *", 0, 0, (void*)&_wrap_class_Xapian_BoolWeight, 0};
40411 static swig_type_info _swigt__p_Xapian__Compactor = {"_p_Xapian__Compactor", "Xapian::Compactor *", 0, 0, (void*)&_wrap_class_Xapian_Compactor, 0};
40412 static swig_type_info _swigt__p_Xapian__CoordWeight = {"_p_Xapian__CoordWeight", "Xapian::CoordWeight *", 0, 0, (void*)&_wrap_class_Xapian_CoordWeight, 0};
40413 static swig_type_info _swigt__p_Xapian__DLHWeight = {"_p_Xapian__DLHWeight", "Xapian::DLHWeight *", 0, 0, (void*)&_wrap_class_Xapian_DLHWeight, 0};
40414 static swig_type_info _swigt__p_Xapian__DPHWeight = {"_p_Xapian__DPHWeight", "Xapian::DPHWeight *", 0, 0, (void*)&_wrap_class_Xapian_DPHWeight, 0};
40415 static swig_type_info _swigt__p_Xapian__Database = {"_p_Xapian__Database", "Xapian::Database *", 0, 0, (void*)&_wrap_class_Xapian_Database, 0};
40416 static swig_type_info _swigt__p_Xapian__DateRangeProcessor = {"_p_Xapian__DateRangeProcessor", "Xapian::DateRangeProcessor *", 0, 0, (void*)&_wrap_class_Xapian_DateRangeProcessor, 0};
40417 static swig_type_info _swigt__p_Xapian__DateValueRangeProcessor = {"_p_Xapian__DateValueRangeProcessor", "Xapian::DateValueRangeProcessor *", 0, 0, (void*)&_wrap_class_Xapian_DateValueRangeProcessor, 0};
40418 static swig_type_info _swigt__p_Xapian__DecreasingValueWeightPostingSource = {"_p_Xapian__DecreasingValueWeightPostingSource", "Xapian::DecreasingValueWeightPostingSource *", 0, 0, (void*)&_wrap_class_Xapian_DecreasingValueWeightPostingSource, 0};
40419 static swig_type_info _swigt__p_Xapian__Document = {"_p_Xapian__Document", "Xapian::Document *", 0, 0, (void*)&_wrap_class_Xapian_Document, 0};
40420 static swig_type_info _swigt__p_Xapian__ESet = {"_p_Xapian__ESet", "Xapian::ESet *", 0, 0, (void*)&_wrap_class_Xapian_ESet, 0};
40421 static swig_type_info _swigt__p_Xapian__ESetIterator = {"_p_Xapian__ESetIterator", "Xapian::ESetIterator *", 0, 0, (void*)&_wrap_class_Xapian_ESetIterator, 0};
40422 static swig_type_info _swigt__p_Xapian__Enquire = {"_p_Xapian__Enquire", "Xapian::Enquire *", 0, 0, (void*)&_wrap_class_Xapian_Enquire, 0};
40423 static swig_type_info _swigt__p_Xapian__ExpandDecider = {"_p_Xapian__ExpandDecider", "Xapian::ExpandDecider *", 0, 0, (void*)&_wrap_class_Xapian_ExpandDecider, 0};
40424 static swig_type_info _swigt__p_Xapian__ExpandDeciderFilterTerms = {"_p_Xapian__ExpandDeciderFilterTerms", 0, 0, 0, 0, 0};
40425 static swig_type_info _swigt__p_Xapian__ExpandDeciderAnd = {"_p_Xapian__ExpandDeciderAnd", "Xapian::ExpandDeciderAnd *", 0, 0, (void*)&_wrap_class_Xapian_ExpandDeciderAnd, 0};
40426 static swig_type_info _swigt__p_Xapian__ExpandDeciderFilterPrefix = {"_p_Xapian__ExpandDeciderFilterPrefix", "Xapian::ExpandDeciderFilterPrefix *", 0, 0, (void*)&_wrap_class_Xapian_ExpandDeciderFilterPrefix, 0};
40427 static swig_type_info _swigt__p_Xapian__FieldProcessor = {"_p_Xapian__FieldProcessor", "Xapian::FieldProcessor *", 0, 0, (void*)&_wrap_class_Xapian_FieldProcessor, 0};
40428 static swig_type_info _swigt__p_Xapian__FixedWeightPostingSource = {"_p_Xapian__FixedWeightPostingSource", "Xapian::FixedWeightPostingSource *", 0, 0, (void*)&_wrap_class_Xapian_FixedWeightPostingSource, 0};
40429 static swig_type_info _swigt__p_Xapian__GreatCircleMetric = {"_p_Xapian__GreatCircleMetric", "Xapian::GreatCircleMetric *", 0, 0, (void*)&_wrap_class_Xapian_GreatCircleMetric, 0};
40430 static swig_type_info _swigt__p_Xapian__IfB2Weight = {"_p_Xapian__IfB2Weight", "Xapian::IfB2Weight *", 0, 0, (void*)&_wrap_class_Xapian_IfB2Weight, 0};
40431 static swig_type_info _swigt__p_Xapian__InL2Weight = {"_p_Xapian__InL2Weight", "Xapian::InL2Weight *", 0, 0, (void*)&_wrap_class_Xapian_InL2Weight, 0};
40432 static swig_type_info _swigt__p_Xapian__IneB2Weight = {"_p_Xapian__IneB2Weight", "Xapian::IneB2Weight *", 0, 0, (void*)&_wrap_class_Xapian_IneB2Weight, 0};
40433 static swig_type_info _swigt__p_Xapian__KeyMaker = {"_p_Xapian__KeyMaker", "Xapian::KeyMaker *", 0, 0, (void*)&_wrap_class_Xapian_KeyMaker, 0};
40434 static swig_type_info _swigt__p_Xapian__LMWeight = {"_p_Xapian__LMWeight", "Xapian::LMWeight *", 0, 0, (void*)&_wrap_class_Xapian_LMWeight, 0};
40435 static swig_type_info _swigt__p_Xapian__LatLongCoord = {"_p_Xapian__LatLongCoord", "Xapian::LatLongCoord *", 0, 0, (void*)&_wrap_class_Xapian_LatLongCoord, 0};
40436 static swig_type_info _swigt__p_Xapian__LatLongCoords = {"_p_Xapian__LatLongCoords", "Xapian::LatLongCoords *", 0, 0, (void*)&_wrap_class_Xapian_LatLongCoords, 0};
40437 static swig_type_info _swigt__p_Xapian__LatLongCoordsIterator = {"_p_Xapian__LatLongCoordsIterator", "Xapian::LatLongCoordsIterator *", 0, 0, (void*)&_wrap_class_Xapian_LatLongCoordsIterator, 0};
40438 static swig_type_info _swigt__p_Xapian__LatLongDistanceKeyMaker = {"_p_Xapian__LatLongDistanceKeyMaker", "Xapian::LatLongDistanceKeyMaker *", 0, 0, (void*)&_wrap_class_Xapian_LatLongDistanceKeyMaker, 0};
40439 static swig_type_info _swigt__p_Xapian__LatLongDistancePostingSource = {"_p_Xapian__LatLongDistancePostingSource", "Xapian::LatLongDistancePostingSource *", 0, 0, (void*)&_wrap_class_Xapian_LatLongDistancePostingSource, 0};
40440 static swig_type_info _swigt__p_Xapian__LatLongMetric = {"_p_Xapian__LatLongMetric", "Xapian::LatLongMetric *", 0, 0, (void*)&_wrap_class_Xapian_LatLongMetric, 0};
40441 static swig_type_info _swigt__p_Xapian__MSet = {"_p_Xapian__MSet", "Xapian::MSet *", 0, 0, (void*)&_wrap_class_Xapian_MSet, 0};
40442 static swig_type_info _swigt__p_Xapian__MSetIterator = {"_p_Xapian__MSetIterator", "Xapian::MSetIterator *", 0, 0, (void*)&_wrap_class_Xapian_MSetIterator, 0};
40443 static swig_type_info _swigt__p_Xapian__MatchDecider = {"_p_Xapian__MatchDecider", "Xapian::MatchDecider *", 0, 0, (void*)&_wrap_class_Xapian_MatchDecider, 0};
40444 static swig_type_info _swigt__p_Xapian__MatchSpy = {"_p_Xapian__MatchSpy", "Xapian::MatchSpy *", 0, 0, (void*)&_wrap_class_Xapian_MatchSpy, 0};
40445 static swig_type_info _swigt__p_Xapian__MultiValueKeyMaker = {"_p_Xapian__MultiValueKeyMaker", "Xapian::MultiValueKeyMaker *", 0, 0, (void*)&_wrap_class_Xapian_MultiValueKeyMaker, 0};
40446 static swig_type_info _swigt__p_Xapian__NumberRangeProcessor = {"_p_Xapian__NumberRangeProcessor", "Xapian::NumberRangeProcessor *", 0, 0, (void*)&_wrap_class_Xapian_NumberRangeProcessor, 0};
40447 static swig_type_info _swigt__p_Xapian__NumberValueRangeProcessor = {"_p_Xapian__NumberValueRangeProcessor", "Xapian::NumberValueRangeProcessor *", 0, 0, (void*)&_wrap_class_Xapian_NumberValueRangeProcessor, 0};
40448 static swig_type_info _swigt__p_Xapian__PL2PlusWeight = {"_p_Xapian__PL2PlusWeight", "Xapian::PL2PlusWeight *", 0, 0, (void*)&_wrap_class_Xapian_PL2PlusWeight, 0};
40449 static swig_type_info _swigt__p_Xapian__PL2Weight = {"_p_Xapian__PL2Weight", "Xapian::PL2Weight *", 0, 0, (void*)&_wrap_class_Xapian_PL2Weight, 0};
40450 static swig_type_info _swigt__p_Xapian__PositionIterator = {"_p_Xapian__PositionIterator", "Xapian::PositionIterator *", 0, 0, (void*)&_wrap_class_Xapian_PositionIterator, 0};
40451 static swig_type_info _swigt__p_Xapian__PostingIterator = {"_p_Xapian__PostingIterator", "Xapian::PostingIterator *", 0, 0, (void*)&_wrap_class_Xapian_PostingIterator, 0};
40452 static swig_type_info _swigt__p_Xapian__PostingSource = {"_p_Xapian__PostingSource", "Xapian::PostingSource *", 0, 0, (void*)&_wrap_class_Xapian_PostingSource, 0};
40453 static swig_type_info _swigt__p_Xapian__Query = {"_p_Xapian__Query", "Xapian::Query *", 0, 0, (void*)&_wrap_class_Xapian_Query, 0};
40454 static swig_type_info _swigt__p_Xapian__QueryParser = {"_p_Xapian__QueryParser", "Xapian::QueryParser *", 0, 0, (void*)&_wrap_class_Xapian_QueryParser, 0};
40455 static swig_type_info _swigt__p_Xapian__RSet = {"_p_Xapian__RSet", "Xapian::RSet *", 0, 0, (void*)&_wrap_class_Xapian_RSet, 0};
40456 static swig_type_info _swigt__p_Xapian__RangeProcessor = {"_p_Xapian__RangeProcessor", "Xapian::RangeProcessor *", 0, 0, (void*)&_wrap_class_Xapian_RangeProcessor, 0};
40457 static swig_type_info _swigt__p_Xapian__Registry = {"_p_Xapian__Registry", "Xapian::Registry *", 0, 0, (void*)&_wrap_class_Xapian_Registry, 0};
40458 static swig_type_info _swigt__p_Xapian__SimpleStopper = {"_p_Xapian__SimpleStopper", "Xapian::SimpleStopper *", 0, 0, (void*)&_wrap_class_Xapian_SimpleStopper, 0};
40459 static swig_type_info _swigt__p_Xapian__Stem = {"_p_Xapian__Stem", "Xapian::Stem *", 0, 0, (void*)&_wrap_class_Xapian_Stem, 0};
40460 static swig_type_info _swigt__p_Xapian__StemImplementation = {"_p_Xapian__StemImplementation", "Xapian::StemImplementation *", 0, 0, (void*)0, 0};
40461 static swig_type_info _swigt__p_Xapian__Stopper = {"_p_Xapian__Stopper", "Xapian::Stopper *", 0, 0, (void*)&_wrap_class_Xapian_Stopper, 0};
40462 static swig_type_info _swigt__p_Xapian__StringValueRangeProcessor = {"_p_Xapian__StringValueRangeProcessor", "Xapian::StringValueRangeProcessor *", 0, 0, (void*)&_wrap_class_Xapian_StringValueRangeProcessor, 0};
40463 static swig_type_info _swigt__p_Xapian__TermGenerator = {"_p_Xapian__TermGenerator", "Xapian::TermGenerator *", 0, 0, (void*)&_wrap_class_Xapian_TermGenerator, 0};
40464 static swig_type_info _swigt__p_Xapian__TermIterator = {"_p_Xapian__TermIterator", "Xapian::TermIterator *", 0, 0, (void*)&_wrap_class_Xapian_TermIterator, 0};
40465 static swig_type_info _swigt__p_Xapian__TfIdfWeight = {"_p_Xapian__TfIdfWeight", "Xapian::TfIdfWeight *", 0, 0, (void*)&_wrap_class_Xapian_TfIdfWeight, 0};
40466 static swig_type_info _swigt__p_Xapian__TradWeight = {"_p_Xapian__TradWeight", "Xapian::TradWeight *", 0, 0, (void*)&_wrap_class_Xapian_TradWeight, 0};
40467 static swig_type_info _swigt__p_Xapian__ValueCountMatchSpy = {"_p_Xapian__ValueCountMatchSpy", "Xapian::ValueCountMatchSpy *", 0, 0, (void*)&_wrap_class_Xapian_ValueCountMatchSpy, 0};
40468 static swig_type_info _swigt__p_Xapian__ValueIterator = {"_p_Xapian__ValueIterator", "Xapian::ValueIterator *", 0, 0, (void*)&_wrap_class_Xapian_ValueIterator, 0};
40469 static swig_type_info _swigt__p_Xapian__ValueMapPostingSource = {"_p_Xapian__ValueMapPostingSource", "Xapian::ValueMapPostingSource *", 0, 0, (void*)&_wrap_class_Xapian_ValueMapPostingSource, 0};
40470 static swig_type_info _swigt__p_Xapian__ValuePostingSource = {"_p_Xapian__ValuePostingSource", "Xapian::ValuePostingSource *", 0, 0, (void*)&_wrap_class_Xapian_ValuePostingSource, 0};
40471 static swig_type_info _swigt__p_Xapian__ValueRangeProcessor = {"_p_Xapian__ValueRangeProcessor", "Xapian::ValueRangeProcessor *", 0, 0, (void*)&_wrap_class_Xapian_ValueRangeProcessor, 0};
40472 static swig_type_info _swigt__p_Xapian__ValueSetMatchDecider = {"_p_Xapian__ValueSetMatchDecider", "Xapian::ValueSetMatchDecider *", 0, 0, (void*)&_wrap_class_Xapian_ValueSetMatchDecider, 0};
40473 static swig_type_info _swigt__p_Xapian__ValueWeightPostingSource = {"_p_Xapian__ValueWeightPostingSource", "Xapian::ValueWeightPostingSource *", 0, 0, (void*)&_wrap_class_Xapian_ValueWeightPostingSource, 0};
40474 static swig_type_info _swigt__p_Xapian__Weight = {"_p_Xapian__Weight", "Xapian::Weight *", 0, 0, (void*)&_wrap_class_Xapian_Weight, 0};
40475 static swig_type_info _swigt__p_Xapian__WritableDatabase = {"_p_Xapian__WritableDatabase", "Xapian::WritableDatabase *", 0, 0, (void*)&_wrap_class_Xapian_WritableDatabase, 0};
40476 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
40477 static swig_type_info _swigt__p_compaction_level = {"_p_compaction_level", "compaction_level *", 0, 0, (void*)0, 0};
40478 static swig_type_info _swigt__p_docid_order = {"_p_docid_order", "docid_order *", 0, 0, (void*)0, 0};
40479 static swig_type_info _swigt__p_double = {"_p_double", "Xapian::doclength *|double *|Xapian::weight *", 0, 0, (void*)0, 0};
40480 static swig_type_info _swigt__p_feature_flag = {"_p_feature_flag", "feature_flag *", 0, 0, (void*)0, 0};
40481 static swig_type_info _swigt__p_flags = {"_p_flags", "flags *", 0, 0, (void*)0, 0};
40482 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};
40483 static swig_type_info _swigt__p_std__string = {"_p_std__string", "std::string *", 0, 0, (void*)0, 0};
40484 static swig_type_info _swigt__p_stem_strategy = {"_p_stem_strategy", "stem_strategy *", 0, 0, (void*)0, 0};
40485 static swig_type_info _swigt__p_stop_strategy = {"_p_stop_strategy", "stop_strategy *", 0, 0, (void*)0, 0};
40486 static swig_type_info _swigt__p_type_smoothing = {"_p_type_smoothing", "type_smoothing *", 0, 0, (void*)0, 0};
40487 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};
40488 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "Xapian::rev *|unsigned long *|Xapian::totallength *", 0, 0, (void*)0, 0};
40489 static swig_type_info _swigt__std__ptrdiff_t = {"_std__ptrdiff_t", "std::ptrdiff_t", 0, 0, (void*)0, 0};
40490 static swig_type_info _swigt__std__size_t = {"_std__size_t", "std::size_t", 0, 0, (void*)0, 0};
40491 
40492 static swig_type_info *swig_type_initial[] = {
40493   &_swigt__p_Xapian__BB2Weight,
40494   &_swigt__p_Xapian__BM25PlusWeight,
40495   &_swigt__p_Xapian__BM25Weight,
40496   &_swigt__p_Xapian__BoolWeight,
40497   &_swigt__p_Xapian__Compactor,
40498   &_swigt__p_Xapian__CoordWeight,
40499   &_swigt__p_Xapian__DLHWeight,
40500   &_swigt__p_Xapian__DPHWeight,
40501   &_swigt__p_Xapian__Database,
40502   &_swigt__p_Xapian__DateRangeProcessor,
40503   &_swigt__p_Xapian__DateValueRangeProcessor,
40504   &_swigt__p_Xapian__DecreasingValueWeightPostingSource,
40505   &_swigt__p_Xapian__Document,
40506   &_swigt__p_Xapian__ESet,
40507   &_swigt__p_Xapian__ESetIterator,
40508   &_swigt__p_Xapian__Enquire,
40509   &_swigt__p_Xapian__ExpandDecider,
40510   &_swigt__p_Xapian__ExpandDeciderAnd,
40511   &_swigt__p_Xapian__ExpandDeciderFilterPrefix,
40512   &_swigt__p_Xapian__ExpandDeciderFilterTerms,
40513   &_swigt__p_Xapian__FieldProcessor,
40514   &_swigt__p_Xapian__FixedWeightPostingSource,
40515   &_swigt__p_Xapian__GreatCircleMetric,
40516   &_swigt__p_Xapian__IfB2Weight,
40517   &_swigt__p_Xapian__InL2Weight,
40518   &_swigt__p_Xapian__IneB2Weight,
40519   &_swigt__p_Xapian__KeyMaker,
40520   &_swigt__p_Xapian__LMWeight,
40521   &_swigt__p_Xapian__LatLongCoord,
40522   &_swigt__p_Xapian__LatLongCoords,
40523   &_swigt__p_Xapian__LatLongCoordsIterator,
40524   &_swigt__p_Xapian__LatLongDistanceKeyMaker,
40525   &_swigt__p_Xapian__LatLongDistancePostingSource,
40526   &_swigt__p_Xapian__LatLongMetric,
40527   &_swigt__p_Xapian__MSet,
40528   &_swigt__p_Xapian__MSetIterator,
40529   &_swigt__p_Xapian__MatchDecider,
40530   &_swigt__p_Xapian__MatchSpy,
40531   &_swigt__p_Xapian__MultiValueKeyMaker,
40532   &_swigt__p_Xapian__NumberRangeProcessor,
40533   &_swigt__p_Xapian__NumberValueRangeProcessor,
40534   &_swigt__p_Xapian__PL2PlusWeight,
40535   &_swigt__p_Xapian__PL2Weight,
40536   &_swigt__p_Xapian__PositionIterator,
40537   &_swigt__p_Xapian__PostingIterator,
40538   &_swigt__p_Xapian__PostingSource,
40539   &_swigt__p_Xapian__Query,
40540   &_swigt__p_Xapian__QueryParser,
40541   &_swigt__p_Xapian__RSet,
40542   &_swigt__p_Xapian__RangeProcessor,
40543   &_swigt__p_Xapian__Registry,
40544   &_swigt__p_Xapian__SimpleStopper,
40545   &_swigt__p_Xapian__Stem,
40546   &_swigt__p_Xapian__StemImplementation,
40547   &_swigt__p_Xapian__Stopper,
40548   &_swigt__p_Xapian__StringValueRangeProcessor,
40549   &_swigt__p_Xapian__TermGenerator,
40550   &_swigt__p_Xapian__TermIterator,
40551   &_swigt__p_Xapian__TfIdfWeight,
40552   &_swigt__p_Xapian__TradWeight,
40553   &_swigt__p_Xapian__ValueCountMatchSpy,
40554   &_swigt__p_Xapian__ValueIterator,
40555   &_swigt__p_Xapian__ValueMapPostingSource,
40556   &_swigt__p_Xapian__ValuePostingSource,
40557   &_swigt__p_Xapian__ValueRangeProcessor,
40558   &_swigt__p_Xapian__ValueSetMatchDecider,
40559   &_swigt__p_Xapian__ValueWeightPostingSource,
40560   &_swigt__p_Xapian__Weight,
40561   &_swigt__p_Xapian__WritableDatabase,
40562   &_swigt__p_char,
40563   &_swigt__p_compaction_level,
40564   &_swigt__p_docid_order,
40565   &_swigt__p_double,
40566   &_swigt__p_feature_flag,
40567   &_swigt__p_flags,
40568   &_swigt__p_int,
40569   &_swigt__p_std__string,
40570   &_swigt__p_stem_strategy,
40571   &_swigt__p_stop_strategy,
40572   &_swigt__p_type_smoothing,
40573   &_swigt__p_unsigned_int,
40574   &_swigt__p_unsigned_long,
40575   &_swigt__std__ptrdiff_t,
40576   &_swigt__std__size_t,
40577 };
40578 
40579 static swig_cast_info _swigc__p_Xapian__BB2Weight[] = {  {&_swigt__p_Xapian__BB2Weight, 0, 0, 0},{0, 0, 0, 0}};
40580 static swig_cast_info _swigc__p_Xapian__BM25PlusWeight[] = {  {&_swigt__p_Xapian__BM25PlusWeight, 0, 0, 0},{0, 0, 0, 0}};
40581 static swig_cast_info _swigc__p_Xapian__BM25Weight[] = {  {&_swigt__p_Xapian__BM25Weight, 0, 0, 0},{0, 0, 0, 0}};
40582 static swig_cast_info _swigc__p_Xapian__BoolWeight[] = {  {&_swigt__p_Xapian__BoolWeight, 0, 0, 0},{0, 0, 0, 0}};
40583 static swig_cast_info _swigc__p_Xapian__Compactor[] = {  {&_swigt__p_Xapian__Compactor, 0, 0, 0},{0, 0, 0, 0}};
40584 static swig_cast_info _swigc__p_Xapian__CoordWeight[] = {  {&_swigt__p_Xapian__CoordWeight, 0, 0, 0},{0, 0, 0, 0}};
40585 static swig_cast_info _swigc__p_Xapian__DLHWeight[] = {  {&_swigt__p_Xapian__DLHWeight, 0, 0, 0},{0, 0, 0, 0}};
40586 static swig_cast_info _swigc__p_Xapian__DPHWeight[] = {  {&_swigt__p_Xapian__DPHWeight, 0, 0, 0},{0, 0, 0, 0}};
40587 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}};
40588 static swig_cast_info _swigc__p_Xapian__DateRangeProcessor[] = {  {&_swigt__p_Xapian__DateRangeProcessor, 0, 0, 0},{0, 0, 0, 0}};
40589 static swig_cast_info _swigc__p_Xapian__DateValueRangeProcessor[] = {  {&_swigt__p_Xapian__DateValueRangeProcessor, 0, 0, 0},{0, 0, 0, 0}};
40590 static swig_cast_info _swigc__p_Xapian__DecreasingValueWeightPostingSource[] = {  {&_swigt__p_Xapian__DecreasingValueWeightPostingSource, 0, 0, 0},{0, 0, 0, 0}};
40591 static swig_cast_info _swigc__p_Xapian__Document[] = {  {&_swigt__p_Xapian__Document, 0, 0, 0},{0, 0, 0, 0}};
40592 static swig_cast_info _swigc__p_Xapian__ESet[] = {  {&_swigt__p_Xapian__ESet, 0, 0, 0},{0, 0, 0, 0}};
40593 static swig_cast_info _swigc__p_Xapian__ESetIterator[] = {  {&_swigt__p_Xapian__ESetIterator, 0, 0, 0},{0, 0, 0, 0}};
40594 static swig_cast_info _swigc__p_Xapian__Enquire[] = {  {&_swigt__p_Xapian__Enquire, 0, 0, 0},{0, 0, 0, 0}};
40595 static swig_cast_info _swigc__p_Xapian__ExpandDeciderFilterTerms[] = {{&_swigt__p_Xapian__ExpandDeciderFilterTerms, 0, 0, 0},{0, 0, 0, 0}};
40596 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}};
40597 static swig_cast_info _swigc__p_Xapian__ExpandDeciderAnd[] = {  {&_swigt__p_Xapian__ExpandDeciderAnd, 0, 0, 0},{0, 0, 0, 0}};
40598 static swig_cast_info _swigc__p_Xapian__ExpandDeciderFilterPrefix[] = {  {&_swigt__p_Xapian__ExpandDeciderFilterPrefix, 0, 0, 0},{0, 0, 0, 0}};
40599 static swig_cast_info _swigc__p_Xapian__FieldProcessor[] = {  {&_swigt__p_Xapian__FieldProcessor, 0, 0, 0},{0, 0, 0, 0}};
40600 static swig_cast_info _swigc__p_Xapian__FixedWeightPostingSource[] = {  {&_swigt__p_Xapian__FixedWeightPostingSource, 0, 0, 0},{0, 0, 0, 0}};
40601 static swig_cast_info _swigc__p_Xapian__GreatCircleMetric[] = {  {&_swigt__p_Xapian__GreatCircleMetric, 0, 0, 0},{0, 0, 0, 0}};
40602 static swig_cast_info _swigc__p_Xapian__IfB2Weight[] = {  {&_swigt__p_Xapian__IfB2Weight, 0, 0, 0},{0, 0, 0, 0}};
40603 static swig_cast_info _swigc__p_Xapian__InL2Weight[] = {  {&_swigt__p_Xapian__InL2Weight, 0, 0, 0},{0, 0, 0, 0}};
40604 static swig_cast_info _swigc__p_Xapian__IneB2Weight[] = {  {&_swigt__p_Xapian__IneB2Weight, 0, 0, 0},{0, 0, 0, 0}};
40605 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}};
40606 static swig_cast_info _swigc__p_Xapian__LMWeight[] = {  {&_swigt__p_Xapian__LMWeight, 0, 0, 0},{0, 0, 0, 0}};
40607 static swig_cast_info _swigc__p_Xapian__LatLongCoord[] = {  {&_swigt__p_Xapian__LatLongCoord, 0, 0, 0},{0, 0, 0, 0}};
40608 static swig_cast_info _swigc__p_Xapian__LatLongCoords[] = {  {&_swigt__p_Xapian__LatLongCoords, 0, 0, 0},{0, 0, 0, 0}};
40609 static swig_cast_info _swigc__p_Xapian__LatLongCoordsIterator[] = {  {&_swigt__p_Xapian__LatLongCoordsIterator, 0, 0, 0},{0, 0, 0, 0}};
40610 static swig_cast_info _swigc__p_Xapian__LatLongDistanceKeyMaker[] = {  {&_swigt__p_Xapian__LatLongDistanceKeyMaker, 0, 0, 0},{0, 0, 0, 0}};
40611 static swig_cast_info _swigc__p_Xapian__LatLongDistancePostingSource[] = {  {&_swigt__p_Xapian__LatLongDistancePostingSource, 0, 0, 0},{0, 0, 0, 0}};
40612 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}};
40613 static swig_cast_info _swigc__p_Xapian__MSet[] = {  {&_swigt__p_Xapian__MSet, 0, 0, 0},{0, 0, 0, 0}};
40614 static swig_cast_info _swigc__p_Xapian__MSetIterator[] = {  {&_swigt__p_Xapian__MSetIterator, 0, 0, 0},{0, 0, 0, 0}};
40615 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}};
40616 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}};
40617 static swig_cast_info _swigc__p_Xapian__MultiValueKeyMaker[] = {  {&_swigt__p_Xapian__MultiValueKeyMaker, 0, 0, 0},{0, 0, 0, 0}};
40618 static swig_cast_info _swigc__p_Xapian__NumberRangeProcessor[] = {  {&_swigt__p_Xapian__NumberRangeProcessor, 0, 0, 0},{0, 0, 0, 0}};
40619 static swig_cast_info _swigc__p_Xapian__NumberValueRangeProcessor[] = {  {&_swigt__p_Xapian__NumberValueRangeProcessor, 0, 0, 0},{0, 0, 0, 0}};
40620 static swig_cast_info _swigc__p_Xapian__PL2PlusWeight[] = {  {&_swigt__p_Xapian__PL2PlusWeight, 0, 0, 0},{0, 0, 0, 0}};
40621 static swig_cast_info _swigc__p_Xapian__PL2Weight[] = {  {&_swigt__p_Xapian__PL2Weight, 0, 0, 0},{0, 0, 0, 0}};
40622 static swig_cast_info _swigc__p_Xapian__PositionIterator[] = {  {&_swigt__p_Xapian__PositionIterator, 0, 0, 0},{0, 0, 0, 0}};
40623 static swig_cast_info _swigc__p_Xapian__PostingIterator[] = {  {&_swigt__p_Xapian__PostingIterator, 0, 0, 0},{0, 0, 0, 0}};
40624 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}};
40625 static swig_cast_info _swigc__p_Xapian__Query[] = {  {&_swigt__p_Xapian__Query, 0, 0, 0},{0, 0, 0, 0}};
40626 static swig_cast_info _swigc__p_Xapian__QueryParser[] = {  {&_swigt__p_Xapian__QueryParser, 0, 0, 0},{0, 0, 0, 0}};
40627 static swig_cast_info _swigc__p_Xapian__RSet[] = {  {&_swigt__p_Xapian__RSet, 0, 0, 0},{0, 0, 0, 0}};
40628 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}};
40629 static swig_cast_info _swigc__p_Xapian__Registry[] = {  {&_swigt__p_Xapian__Registry, 0, 0, 0},{0, 0, 0, 0}};
40630 static swig_cast_info _swigc__p_Xapian__SimpleStopper[] = {  {&_swigt__p_Xapian__SimpleStopper, 0, 0, 0},{0, 0, 0, 0}};
40631 static swig_cast_info _swigc__p_Xapian__Stem[] = {  {&_swigt__p_Xapian__Stem, 0, 0, 0},{0, 0, 0, 0}};
40632 static swig_cast_info _swigc__p_Xapian__StemImplementation[] = {  {&_swigt__p_Xapian__StemImplementation, 0, 0, 0},{0, 0, 0, 0}};
40633 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}};
40634 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}};
40635 static swig_cast_info _swigc__p_Xapian__TermGenerator[] = {  {&_swigt__p_Xapian__TermGenerator, 0, 0, 0},{0, 0, 0, 0}};
40636 static swig_cast_info _swigc__p_Xapian__TermIterator[] = {  {&_swigt__p_Xapian__TermIterator, 0, 0, 0},{0, 0, 0, 0}};
40637 static swig_cast_info _swigc__p_Xapian__TfIdfWeight[] = {  {&_swigt__p_Xapian__TfIdfWeight, 0, 0, 0},{0, 0, 0, 0}};
40638 static swig_cast_info _swigc__p_Xapian__TradWeight[] = {  {&_swigt__p_Xapian__TradWeight, 0, 0, 0},{0, 0, 0, 0}};
40639 static swig_cast_info _swigc__p_Xapian__ValueCountMatchSpy[] = {  {&_swigt__p_Xapian__ValueCountMatchSpy, 0, 0, 0},{0, 0, 0, 0}};
40640 static swig_cast_info _swigc__p_Xapian__ValueIterator[] = {  {&_swigt__p_Xapian__ValueIterator, 0, 0, 0},{0, 0, 0, 0}};
40641 static swig_cast_info _swigc__p_Xapian__ValueMapPostingSource[] = {  {&_swigt__p_Xapian__ValueMapPostingSource, 0, 0, 0},{0, 0, 0, 0}};
40642 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}};
40643 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}};
40644 static swig_cast_info _swigc__p_Xapian__ValueSetMatchDecider[] = {  {&_swigt__p_Xapian__ValueSetMatchDecider, 0, 0, 0},{0, 0, 0, 0}};
40645 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}};
40646 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}};
40647 static swig_cast_info _swigc__p_Xapian__WritableDatabase[] = {  {&_swigt__p_Xapian__WritableDatabase, 0, 0, 0},{0, 0, 0, 0}};
40648 static swig_cast_info _swigc__p_char[] = {  {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
40649 static swig_cast_info _swigc__p_compaction_level[] = {  {&_swigt__p_compaction_level, 0, 0, 0},{0, 0, 0, 0}};
40650 static swig_cast_info _swigc__p_docid_order[] = {  {&_swigt__p_docid_order, 0, 0, 0},{0, 0, 0, 0}};
40651 static swig_cast_info _swigc__p_double[] = {  {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
40652 static swig_cast_info _swigc__p_feature_flag[] = {  {&_swigt__p_feature_flag, 0, 0, 0},{0, 0, 0, 0}};
40653 static swig_cast_info _swigc__p_flags[] = {  {&_swigt__p_flags, 0, 0, 0},{0, 0, 0, 0}};
40654 static swig_cast_info _swigc__p_int[] = {  {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
40655 static swig_cast_info _swigc__p_std__string[] = {  {&_swigt__p_std__string, 0, 0, 0},{0, 0, 0, 0}};
40656 static swig_cast_info _swigc__p_stem_strategy[] = {  {&_swigt__p_stem_strategy, 0, 0, 0},{0, 0, 0, 0}};
40657 static swig_cast_info _swigc__p_stop_strategy[] = {  {&_swigt__p_stop_strategy, 0, 0, 0},{0, 0, 0, 0}};
40658 static swig_cast_info _swigc__p_type_smoothing[] = {  {&_swigt__p_type_smoothing, 0, 0, 0},{0, 0, 0, 0}};
40659 static swig_cast_info _swigc__p_unsigned_int[] = {  {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
40660 static swig_cast_info _swigc__p_unsigned_long[] = {  {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
40661 static swig_cast_info _swigc__std__ptrdiff_t[] = {  {&_swigt__std__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}};
40662 static swig_cast_info _swigc__std__size_t[] = {  {&_swigt__std__size_t, 0, 0, 0},{0, 0, 0, 0}};
40663 
40664 static swig_cast_info *swig_cast_initial[] = {
40665   _swigc__p_Xapian__BB2Weight,
40666   _swigc__p_Xapian__BM25PlusWeight,
40667   _swigc__p_Xapian__BM25Weight,
40668   _swigc__p_Xapian__BoolWeight,
40669   _swigc__p_Xapian__Compactor,
40670   _swigc__p_Xapian__CoordWeight,
40671   _swigc__p_Xapian__DLHWeight,
40672   _swigc__p_Xapian__DPHWeight,
40673   _swigc__p_Xapian__Database,
40674   _swigc__p_Xapian__DateRangeProcessor,
40675   _swigc__p_Xapian__DateValueRangeProcessor,
40676   _swigc__p_Xapian__DecreasingValueWeightPostingSource,
40677   _swigc__p_Xapian__Document,
40678   _swigc__p_Xapian__ESet,
40679   _swigc__p_Xapian__ESetIterator,
40680   _swigc__p_Xapian__Enquire,
40681   _swigc__p_Xapian__ExpandDecider,
40682   _swigc__p_Xapian__ExpandDeciderAnd,
40683   _swigc__p_Xapian__ExpandDeciderFilterPrefix,
40684   _swigc__p_Xapian__ExpandDeciderFilterTerms,
40685   _swigc__p_Xapian__FieldProcessor,
40686   _swigc__p_Xapian__FixedWeightPostingSource,
40687   _swigc__p_Xapian__GreatCircleMetric,
40688   _swigc__p_Xapian__IfB2Weight,
40689   _swigc__p_Xapian__InL2Weight,
40690   _swigc__p_Xapian__IneB2Weight,
40691   _swigc__p_Xapian__KeyMaker,
40692   _swigc__p_Xapian__LMWeight,
40693   _swigc__p_Xapian__LatLongCoord,
40694   _swigc__p_Xapian__LatLongCoords,
40695   _swigc__p_Xapian__LatLongCoordsIterator,
40696   _swigc__p_Xapian__LatLongDistanceKeyMaker,
40697   _swigc__p_Xapian__LatLongDistancePostingSource,
40698   _swigc__p_Xapian__LatLongMetric,
40699   _swigc__p_Xapian__MSet,
40700   _swigc__p_Xapian__MSetIterator,
40701   _swigc__p_Xapian__MatchDecider,
40702   _swigc__p_Xapian__MatchSpy,
40703   _swigc__p_Xapian__MultiValueKeyMaker,
40704   _swigc__p_Xapian__NumberRangeProcessor,
40705   _swigc__p_Xapian__NumberValueRangeProcessor,
40706   _swigc__p_Xapian__PL2PlusWeight,
40707   _swigc__p_Xapian__PL2Weight,
40708   _swigc__p_Xapian__PositionIterator,
40709   _swigc__p_Xapian__PostingIterator,
40710   _swigc__p_Xapian__PostingSource,
40711   _swigc__p_Xapian__Query,
40712   _swigc__p_Xapian__QueryParser,
40713   _swigc__p_Xapian__RSet,
40714   _swigc__p_Xapian__RangeProcessor,
40715   _swigc__p_Xapian__Registry,
40716   _swigc__p_Xapian__SimpleStopper,
40717   _swigc__p_Xapian__Stem,
40718   _swigc__p_Xapian__StemImplementation,
40719   _swigc__p_Xapian__Stopper,
40720   _swigc__p_Xapian__StringValueRangeProcessor,
40721   _swigc__p_Xapian__TermGenerator,
40722   _swigc__p_Xapian__TermIterator,
40723   _swigc__p_Xapian__TfIdfWeight,
40724   _swigc__p_Xapian__TradWeight,
40725   _swigc__p_Xapian__ValueCountMatchSpy,
40726   _swigc__p_Xapian__ValueIterator,
40727   _swigc__p_Xapian__ValueMapPostingSource,
40728   _swigc__p_Xapian__ValuePostingSource,
40729   _swigc__p_Xapian__ValueRangeProcessor,
40730   _swigc__p_Xapian__ValueSetMatchDecider,
40731   _swigc__p_Xapian__ValueWeightPostingSource,
40732   _swigc__p_Xapian__Weight,
40733   _swigc__p_Xapian__WritableDatabase,
40734   _swigc__p_char,
40735   _swigc__p_compaction_level,
40736   _swigc__p_docid_order,
40737   _swigc__p_double,
40738   _swigc__p_feature_flag,
40739   _swigc__p_flags,
40740   _swigc__p_int,
40741   _swigc__p_std__string,
40742   _swigc__p_stem_strategy,
40743   _swigc__p_stop_strategy,
40744   _swigc__p_type_smoothing,
40745   _swigc__p_unsigned_int,
40746   _swigc__p_unsigned_long,
40747   _swigc__std__ptrdiff_t,
40748   _swigc__std__size_t,
40749 };
40750 
40751 
40752 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
40753 
40754 #ifdef __cplusplus
40755 }
40756 #endif
40757 /* -----------------------------------------------------------------------------
40758  * Type initialization:
40759  * This problem is tough by the requirement that no dynamic
40760  * memory is used. Also, since swig_type_info structures store pointers to
40761  * swig_cast_info structures and swig_cast_info structures store pointers back
40762  * to swig_type_info structures, we need some lookup code at initialization.
40763  * The idea is that swig generates all the structures that are needed.
40764  * The runtime then collects these partially filled structures.
40765  * The SWIG_InitializeModule function takes these initial arrays out of
40766  * swig_module, and does all the lookup, filling in the swig_module.types
40767  * array with the correct data and linking the correct swig_cast_info
40768  * structures together.
40769  *
40770  * The generated swig_type_info structures are assigned statically to an initial
40771  * array. We just loop through that array, and handle each type individually.
40772  * First we lookup if this type has been already loaded, and if so, use the
40773  * loaded structure instead of the generated one. Then we have to fill in the
40774  * cast linked list. The cast data is initially stored in something like a
40775  * two-dimensional array. Each row corresponds to a type (there are the same
40776  * number of rows as there are in the swig_type_initial array). Each entry in
40777  * a column is one of the swig_cast_info structures for that type.
40778  * The cast_initial array is actually an array of arrays, because each row has
40779  * a variable number of columns. So to actually build the cast linked list,
40780  * we find the array of casts associated with the type, and loop through it
40781  * adding the casts to the list. The one last trick we need to do is making
40782  * sure the type pointer in the swig_cast_info struct is correct.
40783  *
40784  * First off, we lookup the cast->type name to see if it is already loaded.
40785  * There are three cases to handle:
40786  *  1) If the cast->type has already been loaded AND the type we are adding
40787  *     casting info to has not been loaded (it is in this module), THEN we
40788  *     replace the cast->type pointer with the type pointer that has already
40789  *     been loaded.
40790  *  2) If BOTH types (the one we are adding casting info to, and the
40791  *     cast->type) are loaded, THEN the cast info has already been loaded by
40792  *     the previous module so we just ignore it.
40793  *  3) Finally, if cast->type has not already been loaded, then we add that
40794  *     swig_cast_info to the linked list (because the cast->type) pointer will
40795  *     be correct.
40796  * ----------------------------------------------------------------------------- */
40797 
40798 #ifdef __cplusplus
40799 extern "C" {
40800 #if 0
40801 } /* c-mode */
40802 #endif
40803 #endif
40804 
40805 #if 0
40806 #define SWIGRUNTIME_DEBUG
40807 #endif
40808 
40809 
40810 SWIGRUNTIME void
SWIG_InitializeModule(void * clientdata)40811 SWIG_InitializeModule(void *clientdata) {
40812   size_t i;
40813   swig_module_info *module_head, *iter;
40814   int init;
40815 
40816   /* check to see if the circular list has been setup, if not, set it up */
40817   if (swig_module.next==0) {
40818     /* Initialize the swig_module */
40819     swig_module.type_initial = swig_type_initial;
40820     swig_module.cast_initial = swig_cast_initial;
40821     swig_module.next = &swig_module;
40822     init = 1;
40823   } else {
40824     init = 0;
40825   }
40826 
40827   /* Try and load any already created modules */
40828   module_head = SWIG_GetModule(clientdata);
40829   if (!module_head) {
40830     /* This is the first module loaded for this interpreter */
40831     /* so set the swig module into the interpreter */
40832     SWIG_SetModule(clientdata, &swig_module);
40833   } else {
40834     /* the interpreter has loaded a SWIG module, but has it loaded this one? */
40835     iter=module_head;
40836     do {
40837       if (iter==&swig_module) {
40838         /* Our module is already in the list, so there's nothing more to do. */
40839         return;
40840       }
40841       iter=iter->next;
40842     } while (iter!= module_head);
40843 
40844     /* otherwise we must add our module into the list */
40845     swig_module.next = module_head->next;
40846     module_head->next = &swig_module;
40847   }
40848 
40849   /* When multiple interpreters are used, a module could have already been initialized in
40850        a different interpreter, but not yet have a pointer in this interpreter.
40851        In this case, we do not want to continue adding types... everything should be
40852        set up already */
40853   if (init == 0) return;
40854 
40855   /* Now work on filling in swig_module.types */
40856 #ifdef SWIGRUNTIME_DEBUG
40857   printf("SWIG_InitializeModule: size %d\n", swig_module.size);
40858 #endif
40859   for (i = 0; i < swig_module.size; ++i) {
40860     swig_type_info *type = 0;
40861     swig_type_info *ret;
40862     swig_cast_info *cast;
40863 
40864 #ifdef SWIGRUNTIME_DEBUG
40865     printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40866 #endif
40867 
40868     /* if there is another module already loaded */
40869     if (swig_module.next != &swig_module) {
40870       type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
40871     }
40872     if (type) {
40873       /* Overwrite clientdata field */
40874 #ifdef SWIGRUNTIME_DEBUG
40875       printf("SWIG_InitializeModule: found type %s\n", type->name);
40876 #endif
40877       if (swig_module.type_initial[i]->clientdata) {
40878         type->clientdata = swig_module.type_initial[i]->clientdata;
40879 #ifdef SWIGRUNTIME_DEBUG
40880         printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
40881 #endif
40882       }
40883     } else {
40884       type = swig_module.type_initial[i];
40885     }
40886 
40887     /* Insert casting types */
40888     cast = swig_module.cast_initial[i];
40889     while (cast->type) {
40890       /* Don't need to add information already in the list */
40891       ret = 0;
40892 #ifdef SWIGRUNTIME_DEBUG
40893       printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
40894 #endif
40895       if (swig_module.next != &swig_module) {
40896         ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
40897 #ifdef SWIGRUNTIME_DEBUG
40898         if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
40899 #endif
40900       }
40901       if (ret) {
40902         if (type == swig_module.type_initial[i]) {
40903 #ifdef SWIGRUNTIME_DEBUG
40904           printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
40905 #endif
40906           cast->type = ret;
40907           ret = 0;
40908         } else {
40909           /* Check for casting already in the list */
40910           swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
40911 #ifdef SWIGRUNTIME_DEBUG
40912           if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
40913 #endif
40914           if (!ocast) ret = 0;
40915         }
40916       }
40917 
40918       if (!ret) {
40919 #ifdef SWIGRUNTIME_DEBUG
40920         printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
40921 #endif
40922         if (type->cast) {
40923           type->cast->prev = cast;
40924           cast->next = type->cast;
40925         }
40926         type->cast = cast;
40927       }
40928       cast++;
40929     }
40930     /* Set entry in modules->types array equal to the type */
40931     swig_module.types[i] = type;
40932   }
40933   swig_module.types[i] = 0;
40934 
40935 #ifdef SWIGRUNTIME_DEBUG
40936   printf("**** SWIG_InitializeModule: Cast List ******\n");
40937   for (i = 0; i < swig_module.size; ++i) {
40938     int j = 0;
40939     swig_cast_info *cast = swig_module.cast_initial[i];
40940     printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40941     while (cast->type) {
40942       printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
40943       cast++;
40944       ++j;
40945     }
40946     printf("---- Total casts: %d\n",j);
40947   }
40948   printf("**** SWIG_InitializeModule: Cast List ******\n");
40949 #endif
40950 }
40951 
40952 /* This function will propagate the clientdata field of type to
40953 * any new swig_type_info structures that have been added into the list
40954 * of equivalent types.  It is like calling
40955 * SWIG_TypeClientData(type, clientdata) a second time.
40956 */
40957 SWIGRUNTIME void
SWIG_PropagateClientData(void)40958 SWIG_PropagateClientData(void) {
40959   size_t i;
40960   swig_cast_info *equiv;
40961   static int init_run = 0;
40962 
40963   if (init_run) return;
40964   init_run = 1;
40965 
40966   for (i = 0; i < swig_module.size; i++) {
40967     if (swig_module.types[i]->clientdata) {
40968       equiv = swig_module.types[i]->cast;
40969       while (equiv) {
40970         if (!equiv->converter) {
40971           if (equiv->type && !equiv->type->clientdata)
40972           SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
40973         }
40974         equiv = equiv->next;
40975       }
40976     }
40977   }
40978 }
40979 
40980 #ifdef __cplusplus
40981 #if 0
40982 {
40983   /* c-mode */
40984 #endif
40985 }
40986 #endif
40987 
40988 
40989 #ifdef __cplusplus
40990 extern "C" {
40991 #endif
40992 
40993   /* -----------------------------------------------------------------------------
40994    * constants/methods manipulation
40995    * ----------------------------------------------------------------------------- */
40996 
40997   /* Install Constants */
40998 
40999   SWIGINTERN void
SWIG_Tcl_InstallConstants(Tcl_Interp * interp,swig_const_info constants[])41000   SWIG_Tcl_InstallConstants(Tcl_Interp *interp, swig_const_info constants[]) {
41001     size_t i;
41002     Tcl_Obj *obj;
41003 
41004     if (!swigconstTableinit) {
41005       Tcl_InitHashTable(&swigconstTable, TCL_STRING_KEYS);
41006       swigconstTableinit = 1;
41007     }
41008     for (i = 0; constants[i].type; i++) {
41009       switch(constants[i].type) {
41010       case SWIG_TCL_POINTER:
41011         obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
41012         break;
41013       case SWIG_TCL_BINARY:
41014         obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
41015         break;
41016       default:
41017         obj = 0;
41018         break;
41019       }
41020       if (obj) {
41021         SWIG_Tcl_SetConstantObj(interp, constants[i].name, obj);
41022       }
41023     }
41024   }
41025 
41026   /* Create fast method lookup tables */
41027 
41028   SWIGINTERN void
SWIG_Tcl_InstallMethodLookupTables(void)41029   SWIG_Tcl_InstallMethodLookupTables(void) {
41030     size_t i;
41031 
41032     for (i = 0; i < swig_module.size; ++i) {
41033       swig_type_info *type = swig_module.type_initial[i];
41034       if (type->clientdata) {
41035         swig_class* klass = (swig_class*) type->clientdata;
41036         swig_method* meth;
41037         Tcl_InitHashTable(&(klass->hashtable), TCL_STRING_KEYS);
41038         for (meth = klass->methods; meth && meth->name; ++meth) {
41039           int newEntry;
41040           Tcl_HashEntry* hashentry = Tcl_CreateHashEntry(&(klass->hashtable), meth->name, &newEntry);
41041           Tcl_SetHashValue(hashentry, (ClientData)meth->method);
41042         }
41043       }
41044     }
41045   }
41046 
41047 #ifdef __cplusplus
41048 }
41049 #endif
41050 
41051 /* -----------------------------------------------------------------------------*
41052  *  Partial Init method
41053  * -----------------------------------------------------------------------------*/
41054 
SWIG_init(Tcl_Interp * interp)41055 SWIGEXPORT int SWIG_init(Tcl_Interp *interp) {
41056   size_t i;
41057   if (interp == 0) return TCL_ERROR;
41058 #ifdef USE_TCL_STUBS
41059   /* (char*) cast is required to avoid compiler warning/error for Tcl < 8.4. */
41060   if (Tcl_InitStubs(interp, (char*)SWIG_TCL_STUBS_VERSION, 0) == NULL) {
41061     return TCL_ERROR;
41062   }
41063 #endif
41064 #ifdef USE_TK_STUBS
41065   /* (char*) cast is required to avoid compiler warning/error. */
41066   if (Tk_InitStubs(interp, (char*)SWIG_TCL_STUBS_VERSION, 0) == NULL) {
41067     return TCL_ERROR;
41068   }
41069 #endif
41070 
41071   Tcl_PkgProvide(interp, (char*)SWIG_name, (char*)SWIG_version);
41072 
41073 #ifdef SWIG_namespace
41074   Tcl_Eval(interp, "namespace eval " SWIG_namespace " { }");
41075 #endif
41076 
41077   SWIG_InitializeModule((void *) interp);
41078   SWIG_PropagateClientData();
41079 
41080   for (i = 0; swig_commands[i].name; i++) {
41081     Tcl_CreateObjCommand(interp, (char *) swig_commands[i].name, (swig_wrapper_func) swig_commands[i].wrapper,
41082       swig_commands[i].clientdata, NULL);
41083   }
41084   for (i = 0; swig_variables[i].name; i++) {
41085     Tcl_SetVar(interp, (char *) swig_variables[i].name, (char *) "", TCL_GLOBAL_ONLY);
41086     Tcl_TraceVar(interp, (char *) swig_variables[i].name, TCL_TRACE_READS | TCL_GLOBAL_ONLY,
41087       (Tcl_VarTraceProc *) swig_variables[i].get, (ClientData) swig_variables[i].addr);
41088     Tcl_TraceVar(interp, (char *) swig_variables[i].name, TCL_TRACE_WRITES | TCL_GLOBAL_ONLY,
41089       (Tcl_VarTraceProc *) swig_variables[i].set, (ClientData) swig_variables[i].addr);
41090   }
41091 
41092   SWIG_Tcl_InstallConstants(interp, swig_constants);
41093   SWIG_Tcl_InstallMethodLookupTables();
41094 
41095 
41096   SWIG_Tcl_SetConstantObj(interp, "xapian::BAD_VALUENO", SWIG_From_unsigned_SS_int(static_cast< unsigned int >(Xapian::BAD_VALUENO)));
41097   SWIG_Tcl_SetConstantObj(interp, "xapian::DB_CREATE", SWIG_From_int(static_cast< int >(Xapian::DB_CREATE)));
41098   SWIG_Tcl_SetConstantObj(interp, "xapian::DB_CREATE_OR_OPEN", SWIG_From_int(static_cast< int >(Xapian::DB_CREATE_OR_OPEN)));
41099   SWIG_Tcl_SetConstantObj(interp, "xapian::DB_CREATE_OR_OVERWRITE", SWIG_From_int(static_cast< int >(Xapian::DB_CREATE_OR_OVERWRITE)));
41100   SWIG_Tcl_SetConstantObj(interp, "xapian::DB_OPEN", SWIG_From_int(static_cast< int >(Xapian::DB_OPEN)));
41101   SWIG_Tcl_SetConstantObj(interp, "xapian::DB_NO_SYNC", SWIG_From_int(static_cast< int >(Xapian::DB_NO_SYNC)));
41102   SWIG_Tcl_SetConstantObj(interp, "xapian::DB_FULL_SYNC", SWIG_From_int(static_cast< int >(Xapian::DB_FULL_SYNC)));
41103   SWIG_Tcl_SetConstantObj(interp, "xapian::DB_DANGEROUS", SWIG_From_int(static_cast< int >(Xapian::DB_DANGEROUS)));
41104   SWIG_Tcl_SetConstantObj(interp, "xapian::DB_NO_TERMLIST", SWIG_From_int(static_cast< int >(Xapian::DB_NO_TERMLIST)));
41105   SWIG_Tcl_SetConstantObj(interp, "xapian::DB_BACKEND_CHERT", SWIG_From_int(static_cast< int >(Xapian::DB_BACKEND_CHERT)));
41106   SWIG_Tcl_SetConstantObj(interp, "xapian::DB_BACKEND_GLASS", SWIG_From_int(static_cast< int >(Xapian::DB_BACKEND_GLASS)));
41107   SWIG_Tcl_SetConstantObj(interp, "xapian::DB_BACKEND_INMEMORY", SWIG_From_int(static_cast< int >(Xapian::DB_BACKEND_INMEMORY)));
41108   SWIG_Tcl_SetConstantObj(interp, "xapian::DB_BACKEND_STUB", SWIG_From_int(static_cast< int >(Xapian::DB_BACKEND_STUB)));
41109   SWIG_Tcl_SetConstantObj(interp, "xapian::DB_RETRY_LOCK", SWIG_From_int(static_cast< int >(Xapian::DB_RETRY_LOCK)));
41110   SWIG_Tcl_SetConstantObj(interp, "xapian::DBCHECK_SHORT_TREE", SWIG_From_int(static_cast< int >(Xapian::DBCHECK_SHORT_TREE)));
41111   SWIG_Tcl_SetConstantObj(interp, "xapian::DBCHECK_FULL_TREE", SWIG_From_int(static_cast< int >(Xapian::DBCHECK_FULL_TREE)));
41112   SWIG_Tcl_SetConstantObj(interp, "xapian::DBCHECK_SHOW_FREELIST", SWIG_From_int(static_cast< int >(Xapian::DBCHECK_SHOW_FREELIST)));
41113   SWIG_Tcl_SetConstantObj(interp, "xapian::DBCHECK_SHOW_STATS", SWIG_From_int(static_cast< int >(Xapian::DBCHECK_SHOW_STATS)));
41114   SWIG_Tcl_SetConstantObj(interp, "xapian::DBCHECK_FIX", SWIG_From_int(static_cast< int >(Xapian::DBCHECK_FIX)));
41115   SWIG_Tcl_SetConstantObj(interp, "xapian::DBCOMPACT_MULTIPASS", SWIG_From_int(static_cast< int >(Xapian::DBCOMPACT_MULTIPASS)));
41116   SWIG_Tcl_SetConstantObj(interp, "xapian::DBCOMPACT_NO_RENUMBER", SWIG_From_int(static_cast< int >(Xapian::DBCOMPACT_NO_RENUMBER)));
41117   SWIG_Tcl_SetConstantObj(interp, "xapian::DBCOMPACT_SINGLE_FILE", SWIG_From_int(static_cast< int >(Xapian::DBCOMPACT_SINGLE_FILE)));
41118   SWIG_Tcl_SetConstantObj(interp, "xapian::DOC_ASSUME_VALID", SWIG_From_int(static_cast< int >(Xapian::DOC_ASSUME_VALID)));
41119   SWIG_Tcl_SetConstantObj(interp, "xapian::Query_OP_AND", SWIG_From_int(static_cast< int >(Xapian::Query::OP_AND)));
41120   SWIG_Tcl_SetConstantObj(interp, "xapian::Query_OP_OR", SWIG_From_int(static_cast< int >(Xapian::Query::OP_OR)));
41121   SWIG_Tcl_SetConstantObj(interp, "xapian::Query_OP_AND_NOT", SWIG_From_int(static_cast< int >(Xapian::Query::OP_AND_NOT)));
41122   SWIG_Tcl_SetConstantObj(interp, "xapian::Query_OP_XOR", SWIG_From_int(static_cast< int >(Xapian::Query::OP_XOR)));
41123   SWIG_Tcl_SetConstantObj(interp, "xapian::Query_OP_AND_MAYBE", SWIG_From_int(static_cast< int >(Xapian::Query::OP_AND_MAYBE)));
41124   SWIG_Tcl_SetConstantObj(interp, "xapian::Query_OP_FILTER", SWIG_From_int(static_cast< int >(Xapian::Query::OP_FILTER)));
41125   SWIG_Tcl_SetConstantObj(interp, "xapian::Query_OP_NEAR", SWIG_From_int(static_cast< int >(Xapian::Query::OP_NEAR)));
41126   SWIG_Tcl_SetConstantObj(interp, "xapian::Query_OP_PHRASE", SWIG_From_int(static_cast< int >(Xapian::Query::OP_PHRASE)));
41127   SWIG_Tcl_SetConstantObj(interp, "xapian::Query_OP_VALUE_RANGE", SWIG_From_int(static_cast< int >(Xapian::Query::OP_VALUE_RANGE)));
41128   SWIG_Tcl_SetConstantObj(interp, "xapian::Query_OP_SCALE_WEIGHT", SWIG_From_int(static_cast< int >(Xapian::Query::OP_SCALE_WEIGHT)));
41129   SWIG_Tcl_SetConstantObj(interp, "xapian::Query_OP_ELITE_SET", SWIG_From_int(static_cast< int >(Xapian::Query::OP_ELITE_SET)));
41130   SWIG_Tcl_SetConstantObj(interp, "xapian::Query_OP_VALUE_GE", SWIG_From_int(static_cast< int >(Xapian::Query::OP_VALUE_GE)));
41131   SWIG_Tcl_SetConstantObj(interp, "xapian::Query_OP_VALUE_LE", SWIG_From_int(static_cast< int >(Xapian::Query::OP_VALUE_LE)));
41132   SWIG_Tcl_SetConstantObj(interp, "xapian::Query_OP_SYNONYM", SWIG_From_int(static_cast< int >(Xapian::Query::OP_SYNONYM)));
41133   SWIG_Tcl_SetConstantObj(interp, "xapian::Query_OP_MAX", SWIG_From_int(static_cast< int >(Xapian::Query::OP_MAX)));
41134   SWIG_Tcl_SetConstantObj(interp, "xapian::Query_OP_WILDCARD", SWIG_From_int(static_cast< int >(Xapian::Query::OP_WILDCARD)));
41135   SWIG_Tcl_SetConstantObj(interp, "xapian::Query_OP_INVALID", SWIG_From_int(static_cast< int >(Xapian::Query::OP_INVALID)));
41136   SWIG_Tcl_SetConstantObj(interp, "xapian::Query_WILDCARD_LIMIT_ERROR", SWIG_From_int(static_cast< int >(Xapian::Query::WILDCARD_LIMIT_ERROR)));
41137   SWIG_Tcl_SetConstantObj(interp, "xapian::Query_WILDCARD_LIMIT_FIRST", SWIG_From_int(static_cast< int >(Xapian::Query::WILDCARD_LIMIT_FIRST)));
41138   SWIG_Tcl_SetConstantObj(interp, "xapian::Query_WILDCARD_LIMIT_MOST_FREQUENT", SWIG_From_int(static_cast< int >(Xapian::Query::WILDCARD_LIMIT_MOST_FREQUENT)));
41139   SWIG_Tcl_SetConstantObj(interp, "xapian::TermGenerator_FLAG_SPELLING", SWIG_From_int(static_cast< int >(Xapian::TermGenerator::FLAG_SPELLING)));
41140   SWIG_Tcl_SetConstantObj(interp, "xapian::TermGenerator_FLAG_CJK_NGRAM", SWIG_From_int(static_cast< int >(Xapian::TermGenerator::FLAG_CJK_NGRAM)));
41141   SWIG_Tcl_SetConstantObj(interp, "xapian::TermGenerator_STEM_NONE", SWIG_From_int(static_cast< int >(Xapian::TermGenerator::STEM_NONE)));
41142   SWIG_Tcl_SetConstantObj(interp, "xapian::TermGenerator_STEM_SOME", SWIG_From_int(static_cast< int >(Xapian::TermGenerator::STEM_SOME)));
41143   SWIG_Tcl_SetConstantObj(interp, "xapian::TermGenerator_STEM_ALL", SWIG_From_int(static_cast< int >(Xapian::TermGenerator::STEM_ALL)));
41144   SWIG_Tcl_SetConstantObj(interp, "xapian::TermGenerator_STEM_ALL_Z", SWIG_From_int(static_cast< int >(Xapian::TermGenerator::STEM_ALL_Z)));
41145   SWIG_Tcl_SetConstantObj(interp, "xapian::TermGenerator_STEM_SOME_FULL_POS", SWIG_From_int(static_cast< int >(Xapian::TermGenerator::STEM_SOME_FULL_POS)));
41146   SWIG_Tcl_SetConstantObj(interp, "xapian::TermGenerator_STOP_NONE", SWIG_From_int(static_cast< int >(Xapian::TermGenerator::STOP_NONE)));
41147   SWIG_Tcl_SetConstantObj(interp, "xapian::TermGenerator_STOP_ALL", SWIG_From_int(static_cast< int >(Xapian::TermGenerator::STOP_ALL)));
41148   SWIG_Tcl_SetConstantObj(interp, "xapian::TermGenerator_STOP_STEMMED", SWIG_From_int(static_cast< int >(Xapian::TermGenerator::STOP_STEMMED)));
41149   SWIG_Tcl_SetConstantObj(interp, "xapian::MSet_SNIPPET_BACKGROUND_MODEL", SWIG_From_int(static_cast< int >(Xapian::MSet::SNIPPET_BACKGROUND_MODEL)));
41150   SWIG_Tcl_SetConstantObj(interp, "xapian::MSet_SNIPPET_EXHAUSTIVE", SWIG_From_int(static_cast< int >(Xapian::MSet::SNIPPET_EXHAUSTIVE)));
41151   SWIG_Tcl_SetConstantObj(interp, "xapian::MSet_SNIPPET_EMPTY_WITHOUT_MATCH", SWIG_From_int(static_cast< int >(Xapian::MSet::SNIPPET_EMPTY_WITHOUT_MATCH)));
41152   SWIG_Tcl_SetConstantObj(interp, "xapian::MSet_SNIPPET_CJK_NGRAM", SWIG_From_int(static_cast< int >(Xapian::MSet::SNIPPET_CJK_NGRAM)));
41153   SWIG_Tcl_SetConstantObj(interp, "xapian::Enquire_ASCENDING", SWIG_From_int(static_cast< int >(Xapian::Enquire::ASCENDING)));
41154   SWIG_Tcl_SetConstantObj(interp, "xapian::Enquire_DESCENDING", SWIG_From_int(static_cast< int >(Xapian::Enquire::DESCENDING)));
41155   SWIG_Tcl_SetConstantObj(interp, "xapian::Enquire_DONT_CARE", SWIG_From_int(static_cast< int >(Xapian::Enquire::DONT_CARE)));
41156   SWIG_Tcl_SetConstantObj(interp, "xapian::Enquire_INCLUDE_QUERY_TERMS", SWIG_From_int(static_cast< int >(Xapian::Enquire::INCLUDE_QUERY_TERMS)));
41157   SWIG_Tcl_SetConstantObj(interp, "xapian::Enquire_USE_EXACT_TERMFREQ", SWIG_From_int(static_cast< int >(Xapian::Enquire::USE_EXACT_TERMFREQ)));
41158   SWIG_Tcl_SetConstantObj(interp, "xapian::RP_SUFFIX", SWIG_From_int(static_cast< int >(Xapian::RP_SUFFIX)));
41159   SWIG_Tcl_SetConstantObj(interp, "xapian::RP_REPEATED", SWIG_From_int(static_cast< int >(Xapian::RP_REPEATED)));
41160   SWIG_Tcl_SetConstantObj(interp, "xapian::RP_DATE_PREFER_MDY", SWIG_From_int(static_cast< int >(Xapian::RP_DATE_PREFER_MDY)));
41161   SWIG_Tcl_SetConstantObj(interp, "xapian::QueryParser_FLAG_BOOLEAN", SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_BOOLEAN)));
41162   SWIG_Tcl_SetConstantObj(interp, "xapian::QueryParser_FLAG_PHRASE", SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_PHRASE)));
41163   SWIG_Tcl_SetConstantObj(interp, "xapian::QueryParser_FLAG_LOVEHATE", SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_LOVEHATE)));
41164   SWIG_Tcl_SetConstantObj(interp, "xapian::QueryParser_FLAG_BOOLEAN_ANY_CASE", SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_BOOLEAN_ANY_CASE)));
41165   SWIG_Tcl_SetConstantObj(interp, "xapian::QueryParser_FLAG_WILDCARD", SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_WILDCARD)));
41166   SWIG_Tcl_SetConstantObj(interp, "xapian::QueryParser_FLAG_PURE_NOT", SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_PURE_NOT)));
41167   SWIG_Tcl_SetConstantObj(interp, "xapian::QueryParser_FLAG_PARTIAL", SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_PARTIAL)));
41168   SWIG_Tcl_SetConstantObj(interp, "xapian::QueryParser_FLAG_SPELLING_CORRECTION", SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_SPELLING_CORRECTION)));
41169   SWIG_Tcl_SetConstantObj(interp, "xapian::QueryParser_FLAG_SYNONYM", SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_SYNONYM)));
41170   SWIG_Tcl_SetConstantObj(interp, "xapian::QueryParser_FLAG_AUTO_SYNONYMS", SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_AUTO_SYNONYMS)));
41171   SWIG_Tcl_SetConstantObj(interp, "xapian::QueryParser_FLAG_AUTO_MULTIWORD_SYNONYMS", SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_AUTO_MULTIWORD_SYNONYMS)));
41172   SWIG_Tcl_SetConstantObj(interp, "xapian::QueryParser_FLAG_CJK_NGRAM", SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_CJK_NGRAM)));
41173   SWIG_Tcl_SetConstantObj(interp, "xapian::QueryParser_FLAG_ACCUMULATE", SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_ACCUMULATE)));
41174   SWIG_Tcl_SetConstantObj(interp, "xapian::QueryParser_FLAG_DEFAULT", SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_DEFAULT)));
41175   SWIG_Tcl_SetConstantObj(interp, "xapian::QueryParser_STEM_NONE", SWIG_From_int(static_cast< int >(Xapian::QueryParser::STEM_NONE)));
41176   SWIG_Tcl_SetConstantObj(interp, "xapian::QueryParser_STEM_SOME", SWIG_From_int(static_cast< int >(Xapian::QueryParser::STEM_SOME)));
41177   SWIG_Tcl_SetConstantObj(interp, "xapian::QueryParser_STEM_ALL", SWIG_From_int(static_cast< int >(Xapian::QueryParser::STEM_ALL)));
41178   SWIG_Tcl_SetConstantObj(interp, "xapian::QueryParser_STEM_ALL_Z", SWIG_From_int(static_cast< int >(Xapian::QueryParser::STEM_ALL_Z)));
41179   SWIG_Tcl_SetConstantObj(interp, "xapian::QueryParser_STEM_SOME_FULL_POS", SWIG_From_int(static_cast< int >(Xapian::QueryParser::STEM_SOME_FULL_POS)));
41180   SWIG_Tcl_SetConstantObj(interp, "xapian::Weight_TWO_STAGE_SMOOTHING", SWIG_From_int(static_cast< int >(Xapian::Weight::TWO_STAGE_SMOOTHING)));
41181   SWIG_Tcl_SetConstantObj(interp, "xapian::Weight_DIRICHLET_SMOOTHING", SWIG_From_int(static_cast< int >(Xapian::Weight::DIRICHLET_SMOOTHING)));
41182   SWIG_Tcl_SetConstantObj(interp, "xapian::Weight_ABSOLUTE_DISCOUNT_SMOOTHING", SWIG_From_int(static_cast< int >(Xapian::Weight::ABSOLUTE_DISCOUNT_SMOOTHING)));
41183   SWIG_Tcl_SetConstantObj(interp, "xapian::Weight_JELINEK_MERCER_SMOOTHING", SWIG_From_int(static_cast< int >(Xapian::Weight::JELINEK_MERCER_SMOOTHING)));
41184   SWIG_Tcl_SetConstantObj(interp, "xapian::Weight_DIRICHLET_PLUS_SMOOTHING", SWIG_From_int(static_cast< int >(Xapian::Weight::DIRICHLET_PLUS_SMOOTHING)));
41185   SWIG_Tcl_SetConstantObj(interp, "xapian::Compactor_STANDARD", SWIG_From_int(static_cast< int >(Xapian::Compactor::STANDARD)));
41186   SWIG_Tcl_SetConstantObj(interp, "xapian::Compactor_FULL", SWIG_From_int(static_cast< int >(Xapian::Compactor::FULL)));
41187   SWIG_Tcl_SetConstantObj(interp, "xapian::Compactor_FULLER", SWIG_From_int(static_cast< int >(Xapian::Compactor::FULLER)));
41188   return TCL_OK;
41189 }
Xapian_SafeInit(Tcl_Interp * interp)41190 SWIGEXPORT int Xapian_SafeInit(Tcl_Interp *interp) {
41191   return SWIG_init(interp);
41192 }
41193 
41194