1 template<typename T> class SwigValueWrapper {
2 struct SwigMovePointer {
4 SwigMovePointer(T *p) : ptr(p) { }
5 ~SwigMovePointer() { delete ptr; }
6 SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
8 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
9 SwigValueWrapper(const SwigValueWrapper<T>& rhs);
11 SwigValueWrapper() : pointer(0) { }
12 SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
13 operator T&() const { return *pointer.ptr; }
14 T *operator&() { return pointer.ptr; }
16 template <typename T> T SwigValueInit() {
20 typedef long unsigned int size_t;
21 typedef unsigned char __u_char;
22 typedef unsigned short int __u_short;
23 typedef unsigned int __u_int;
24 typedef unsigned long int __u_long;
25 typedef signed char __int8_t;
26 typedef unsigned char __uint8_t;
27 typedef signed short int __int16_t;
28 typedef unsigned short int __uint16_t;
29 typedef signed int __int32_t;
30 typedef unsigned int __uint32_t;
31 typedef signed long int __int64_t;
32 typedef unsigned long int __uint64_t;
33 typedef long int __quad_t;
34 typedef unsigned long int __u_quad_t;
35 typedef unsigned long int __dev_t;
36 typedef unsigned int __uid_t;
37 typedef unsigned int __gid_t;
38 typedef unsigned long int __ino_t;
39 typedef unsigned long int __ino64_t;
40 typedef unsigned int __mode_t;
41 typedef unsigned long int __nlink_t;
42 typedef long int __off_t;
43 typedef long int __off64_t;
45 typedef struct { int __val[2]; } __fsid_t;
46 typedef long int __clock_t;
47 typedef unsigned long int __rlim_t;
48 typedef unsigned long int __rlim64_t;
49 typedef unsigned int __id_t;
50 typedef long int __time_t;
51 typedef unsigned int __useconds_t;
52 typedef long int __suseconds_t;
53 typedef int __daddr_t;
54 typedef long int __swblk_t;
56 typedef int __clockid_t;
57 typedef void * __timer_t;
58 typedef long int __blksize_t;
59 typedef long int __blkcnt_t;
60 typedef long int __blkcnt64_t;
61 typedef unsigned long int __fsblkcnt_t;
62 typedef unsigned long int __fsblkcnt64_t;
63 typedef unsigned long int __fsfilcnt_t;
64 typedef unsigned long int __fsfilcnt64_t;
65 typedef long int __ssize_t;
66 typedef __off64_t __loff_t;
67 typedef __quad_t *__qaddr_t;
68 typedef char *__caddr_t;
69 typedef long int __intptr_t;
70 typedef unsigned int __socklen_t;
72 typedef struct _IO_FILE FILE;
73 typedef struct _IO_FILE __FILE;
93 typedef int _G_int16_t __attribute__ ((__mode__ (__HI__)));
94 typedef int _G_int32_t __attribute__ ((__mode__ (__SI__)));
95 typedef unsigned int _G_uint16_t __attribute__ ((__mode__ (__HI__)));
96 typedef unsigned int _G_uint32_t __attribute__ ((__mode__ (__SI__)));
97 typedef __builtin_va_list __gnuc_va_list;
98 struct _IO_jump_t; struct _IO_FILE;
99 typedef void _IO_lock_t;
101 struct _IO_marker *_next;
102 struct _IO_FILE *_sbuf;
105 enum __codecvt_result
117 char* _IO_write_base;
123 char *_IO_backup_base;
125 struct _IO_marker *_markers;
126 struct _IO_FILE *_chain;
130 unsigned short _cur_column;
131 signed char _vtable_offset;
141 char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)];
143 struct _IO_FILE_plus;
144 extern struct _IO_FILE_plus _IO_2_1_stdin_;
145 extern struct _IO_FILE_plus _IO_2_1_stdout_;
146 extern struct _IO_FILE_plus _IO_2_1_stderr_;
147 typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes);
148 typedef __ssize_t __io_write_fn (void *__cookie, __const char *__buf,
150 typedef int __io_seek_fn (void *__cookie, __off64_t *__pos, int __w);
151 typedef int __io_close_fn (void *__cookie);
152 typedef __io_read_fn cookie_read_function_t;
153 typedef __io_write_fn cookie_write_function_t;
154 typedef __io_seek_fn cookie_seek_function_t;
155 typedef __io_close_fn cookie_close_function_t;
159 __io_write_fn *write;
161 __io_close_fn *close;
162 } _IO_cookie_io_functions_t;
163 typedef _IO_cookie_io_functions_t cookie_io_functions_t;
164 struct _IO_cookie_file;
165 extern void _IO_cookie_init (struct _IO_cookie_file *__cfile, int __read_write,
166 void *__cookie, _IO_cookie_io_functions_t __fns);
168 extern int __underflow (_IO_FILE *);
169 extern int __uflow (_IO_FILE *);
170 extern int __overflow (_IO_FILE *, int);
171 extern int _IO_getc (_IO_FILE *__fp);
172 extern int _IO_putc (int __c, _IO_FILE *__fp);
173 extern int _IO_feof (_IO_FILE *__fp) throw ();
174 extern int _IO_ferror (_IO_FILE *__fp) throw ();
175 extern int _IO_peekc_locked (_IO_FILE *__fp);
176 extern void _IO_flockfile (_IO_FILE *) throw ();
177 extern void _IO_funlockfile (_IO_FILE *) throw ();
178 extern int _IO_ftrylockfile (_IO_FILE *) throw ();
179 extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict,
180 __gnuc_va_list, int *__restrict);
181 extern int _IO_vfprintf (_IO_FILE *__restrict, const char *__restrict,
183 extern __ssize_t _IO_padn (_IO_FILE *, int, __ssize_t);
184 extern size_t _IO_sgetn (_IO_FILE *, void *, size_t);
185 extern __off64_t _IO_seekoff (_IO_FILE *, __off64_t, int, int);
186 extern __off64_t _IO_seekpos (_IO_FILE *, __off64_t, int);
187 extern void _IO_free_backup_area (_IO_FILE *) throw ();
189 typedef __gnuc_va_list va_list;
190 typedef _G_fpos64_t fpos_t;
191 typedef _G_fpos64_t fpos64_t;
192 extern struct _IO_FILE *stdin;
193 extern struct _IO_FILE *stdout;
194 extern struct _IO_FILE *stderr;
195 extern int remove (__const char *__filename) throw ();
196 extern int rename (__const char *__old, __const char *__new) throw ();
197 extern int renameat (int __oldfd, __const char *__old, int __newfd,
198 __const char *__new) throw ();
199 extern FILE *tmpfile (void) __asm__ ("" "tmpfile64") ;
200 extern FILE *tmpfile64 (void) ;
201 extern char *tmpnam (char *__s) throw () ;
202 extern char *tmpnam_r (char *__s) throw () ;
203 extern char *tempnam (__const char *__dir, __const char *__pfx)
204 throw () __attribute__ ((__malloc__)) ;
205 extern int fclose (FILE *__stream);
206 extern int fflush (FILE *__stream);
207 extern int fflush_unlocked (FILE *__stream);
208 extern int fcloseall (void);
209 extern FILE *fopen (__const char *__restrict __filename, __const char *__restrict __modes) __asm__ ("" "fopen64")
211 extern FILE *freopen (__const char *__restrict __filename, __const char *__restrict __modes, FILE *__restrict __stream) __asm__ ("" "freopen64")
213 extern FILE *fopen64 (__const char *__restrict __filename,
214 __const char *__restrict __modes) ;
215 extern FILE *freopen64 (__const char *__restrict __filename,
216 __const char *__restrict __modes,
217 FILE *__restrict __stream) ;
218 extern FILE *fdopen (int __fd, __const char *__modes) throw () ;
219 extern FILE *fopencookie (void *__restrict __magic_cookie,
220 __const char *__restrict __modes,
221 _IO_cookie_io_functions_t __io_funcs) throw () ;
222 extern FILE *fmemopen (void *__s, size_t __len, __const char *__modes)
224 extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) throw () ;
225 extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) throw ();
226 extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf,
227 int __modes, size_t __n) throw ();
228 extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf,
229 size_t __size) throw ();
230 extern void setlinebuf (FILE *__stream) throw ();
231 extern int fprintf (FILE *__restrict __stream,
232 __const char *__restrict __format, ...);
233 extern int printf (__const char *__restrict __format, ...);
234 extern int sprintf (char *__restrict __s,
235 __const char *__restrict __format, ...) throw ();
236 extern int vfprintf (FILE *__restrict __s, __const char *__restrict __format,
237 __gnuc_va_list __arg);
238 extern int vprintf (__const char *__restrict __format, __gnuc_va_list __arg);
239 extern int vsprintf (char *__restrict __s, __const char *__restrict __format,
240 __gnuc_va_list __arg) throw ();
241 extern int snprintf (char *__restrict __s, size_t __maxlen,
242 __const char *__restrict __format, ...)
243 throw () __attribute__ ((__format__ (__printf__, 3, 4)));
244 extern int vsnprintf (char *__restrict __s, size_t __maxlen,
245 __const char *__restrict __format, __gnuc_va_list __arg)
246 throw () __attribute__ ((__format__ (__printf__, 3, 0)));
247 extern int vasprintf (char **__restrict __ptr, __const char *__restrict __f,
248 __gnuc_va_list __arg)
249 throw () __attribute__ ((__format__ (__printf__, 2, 0))) ;
250 extern int __asprintf (char **__restrict __ptr,
251 __const char *__restrict __fmt, ...)
252 throw () __attribute__ ((__format__ (__printf__, 2, 3))) ;
253 extern int asprintf (char **__restrict __ptr,
254 __const char *__restrict __fmt, ...)
255 throw () __attribute__ ((__format__ (__printf__, 2, 3))) ;
256 extern int vdprintf (int __fd, __const char *__restrict __fmt,
257 __gnuc_va_list __arg)
258 __attribute__ ((__format__ (__printf__, 2, 0)));
259 extern int dprintf (int __fd, __const char *__restrict __fmt, ...)
260 __attribute__ ((__format__ (__printf__, 2, 3)));
261 extern int fscanf (FILE *__restrict __stream,
262 __const char *__restrict __format, ...) ;
263 extern int scanf (__const char *__restrict __format, ...) ;
264 extern int sscanf (__const char *__restrict __s,
265 __const char *__restrict __format, ...) throw ();
266 extern int vfscanf (FILE *__restrict __s, __const char *__restrict __format,
267 __gnuc_va_list __arg)
268 __attribute__ ((__format__ (__scanf__, 2, 0))) ;
269 extern int vscanf (__const char *__restrict __format, __gnuc_va_list __arg)
270 __attribute__ ((__format__ (__scanf__, 1, 0))) ;
271 extern int vsscanf (__const char *__restrict __s,
272 __const char *__restrict __format, __gnuc_va_list __arg)
273 throw () __attribute__ ((__format__ (__scanf__, 2, 0)));
274 extern int fgetc (FILE *__stream);
275 extern int getc (FILE *__stream);
276 extern int getchar (void);
277 extern int getc_unlocked (FILE *__stream);
278 extern int getchar_unlocked (void);
279 extern int fgetc_unlocked (FILE *__stream);
280 extern int fputc (int __c, FILE *__stream);
281 extern int putc (int __c, FILE *__stream);
282 extern int putchar (int __c);
283 extern int fputc_unlocked (int __c, FILE *__stream);
284 extern int putc_unlocked (int __c, FILE *__stream);
285 extern int putchar_unlocked (int __c);
286 extern int getw (FILE *__stream);
287 extern int putw (int __w, FILE *__stream);
288 extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
290 extern char *gets (char *__s) ;
291 extern char *fgets_unlocked (char *__restrict __s, int __n,
292 FILE *__restrict __stream) ;
293 extern __ssize_t __getdelim (char **__restrict __lineptr,
294 size_t *__restrict __n, int __delimiter,
295 FILE *__restrict __stream) ;
296 extern __ssize_t getdelim (char **__restrict __lineptr,
297 size_t *__restrict __n, int __delimiter,
298 FILE *__restrict __stream) ;
299 extern __ssize_t getline (char **__restrict __lineptr,
300 size_t *__restrict __n,
301 FILE *__restrict __stream) ;
302 extern int fputs (__const char *__restrict __s, FILE *__restrict __stream);
303 extern int puts (__const char *__s);
304 extern int ungetc (int __c, FILE *__stream);
305 extern size_t fread (void *__restrict __ptr, size_t __size,
306 size_t __n, FILE *__restrict __stream) ;
307 extern size_t fwrite (__const void *__restrict __ptr, size_t __size,
308 size_t __n, FILE *__restrict __s) ;
309 extern int fputs_unlocked (__const char *__restrict __s,
310 FILE *__restrict __stream);
311 extern size_t fread_unlocked (void *__restrict __ptr, size_t __size,
312 size_t __n, FILE *__restrict __stream) ;
313 extern size_t fwrite_unlocked (__const void *__restrict __ptr, size_t __size,
314 size_t __n, FILE *__restrict __stream) ;
315 extern int fseek (FILE *__stream, long int __off, int __whence);
316 extern long int ftell (FILE *__stream) ;
317 extern void rewind (FILE *__stream);
318 extern int fseeko (FILE *__stream, __off64_t __off, int __whence) __asm__ ("" "fseeko64");
319 extern __off64_t ftello (FILE *__stream) __asm__ ("" "ftello64");
320 extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos) __asm__ ("" "fgetpos64");
321 extern int fsetpos (FILE *__stream, __const fpos_t *__pos) __asm__ ("" "fsetpos64");
322 extern int fseeko64 (FILE *__stream, __off64_t __off, int __whence);
323 extern __off64_t ftello64 (FILE *__stream) ;
324 extern int fgetpos64 (FILE *__restrict __stream, fpos64_t *__restrict __pos);
325 extern int fsetpos64 (FILE *__stream, __const fpos64_t *__pos);
326 extern void clearerr (FILE *__stream) throw ();
327 extern int feof (FILE *__stream) throw () ;
328 extern int ferror (FILE *__stream) throw () ;
329 extern void clearerr_unlocked (FILE *__stream) throw ();
330 extern int feof_unlocked (FILE *__stream) throw () ;
331 extern int ferror_unlocked (FILE *__stream) throw () ;
332 extern void perror (__const char *__s);
334 extern __const char *__const sys_errlist[];
335 extern int _sys_nerr;
336 extern __const char *__const _sys_errlist[];
337 extern int fileno (FILE *__stream) throw () ;
338 extern int fileno_unlocked (FILE *__stream) throw () ;
339 extern FILE *popen (__const char *__command, __const char *__modes) ;
340 extern int pclose (FILE *__stream);
341 extern char *ctermid (char *__s) throw ();
342 extern char *cuserid (char *__s);
344 extern int obstack_printf (struct obstack *__restrict __obstack,
345 __const char *__restrict __format, ...)
346 throw () __attribute__ ((__format__ (__printf__, 2, 3)));
347 extern int obstack_vprintf (struct obstack *__restrict __obstack,
348 __const char *__restrict __format,
349 __gnuc_va_list __args)
350 throw () __attribute__ ((__format__ (__printf__, 2, 0)));
351 extern void flockfile (FILE *__stream) throw ();
352 extern int ftrylockfile (FILE *__stream) throw () ;
353 extern void funlockfile (FILE *__stream) throw ();
356 extern void *memcpy (void *__restrict __dest,
357 __const void *__restrict __src, size_t __n)
358 throw () __attribute__ ((__nonnull__ (1, 2)));
359 extern void *memmove (void *__dest, __const void *__src, size_t __n)
360 throw () __attribute__ ((__nonnull__ (1, 2)));
361 extern void *memccpy (void *__restrict __dest, __const void *__restrict __src,
363 throw () __attribute__ ((__nonnull__ (1, 2)));
364 extern void *memset (void *__s, int __c, size_t __n) throw () __attribute__ ((__nonnull__ (1)));
365 extern int memcmp (__const void *__s1, __const void *__s2, size_t __n)
366 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
369 extern void *memchr (void *__s, int __c, size_t __n)
370 throw () __asm ("memchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
371 extern __const void *memchr (__const void *__s, int __c, size_t __n)
372 throw () __asm ("memchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
374 extern "C++" void *rawmemchr (void *__s, int __c)
375 throw () __asm ("rawmemchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
376 extern "C++" __const void *rawmemchr (__const void *__s, int __c)
377 throw () __asm ("rawmemchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
378 extern "C++" void *memrchr (void *__s, int __c, size_t __n)
379 throw () __asm ("memrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
380 extern "C++" __const void *memrchr (__const void *__s, int __c, size_t __n)
381 throw () __asm ("memrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
382 extern char *strcpy (char *__restrict __dest, __const char *__restrict __src)
383 throw () __attribute__ ((__nonnull__ (1, 2)));
384 extern char *strncpy (char *__restrict __dest,
385 __const char *__restrict __src, size_t __n)
386 throw () __attribute__ ((__nonnull__ (1, 2)));
387 extern char *strcat (char *__restrict __dest, __const char *__restrict __src)
388 throw () __attribute__ ((__nonnull__ (1, 2)));
389 extern char *strncat (char *__restrict __dest, __const char *__restrict __src,
390 size_t __n) throw () __attribute__ ((__nonnull__ (1, 2)));
391 extern int strcmp (__const char *__s1, __const char *__s2)
392 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
393 extern int strncmp (__const char *__s1, __const char *__s2, size_t __n)
394 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
395 extern int strcoll (__const char *__s1, __const char *__s2)
396 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
397 extern size_t strxfrm (char *__restrict __dest,
398 __const char *__restrict __src, size_t __n)
399 throw () __attribute__ ((__nonnull__ (2)));
400 typedef struct __locale_struct
402 struct locale_data *__locales[13];
403 const unsigned short int *__ctype_b;
404 const int *__ctype_tolower;
405 const int *__ctype_toupper;
406 const char *__names[13];
408 typedef __locale_t locale_t;
409 extern int strcoll_l (__const char *__s1, __const char *__s2, __locale_t __l)
410 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3)));
411 extern size_t strxfrm_l (char *__dest, __const char *__src, size_t __n,
412 __locale_t __l) throw () __attribute__ ((__nonnull__ (2, 4)));
413 extern char *strdup (__const char *__s)
414 throw () __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1)));
415 extern char *strndup (__const char *__string, size_t __n)
416 throw () __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1)));
419 extern char *strchr (char *__s, int __c)
420 throw () __asm ("strchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
421 extern __const char *strchr (__const char *__s, int __c)
422 throw () __asm ("strchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
426 extern char *strrchr (char *__s, int __c)
427 throw () __asm ("strrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
428 extern __const char *strrchr (__const char *__s, int __c)
429 throw () __asm ("strrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
431 extern "C++" char *strchrnul (char *__s, int __c)
432 throw () __asm ("strchrnul") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
433 extern "C++" __const char *strchrnul (__const char *__s, int __c)
434 throw () __asm ("strchrnul") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
435 extern size_t strcspn (__const char *__s, __const char *__reject)
436 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
437 extern size_t strspn (__const char *__s, __const char *__accept)
438 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
441 extern char *strpbrk (char *__s, __const char *__accept)
442 throw () __asm ("strpbrk") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
443 extern __const char *strpbrk (__const char *__s, __const char *__accept)
444 throw () __asm ("strpbrk") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
448 extern char *strstr (char *__haystack, __const char *__needle)
449 throw () __asm ("strstr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
450 extern __const char *strstr (__const char *__haystack,
451 __const char *__needle)
452 throw () __asm ("strstr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
454 extern char *strtok (char *__restrict __s, __const char *__restrict __delim)
455 throw () __attribute__ ((__nonnull__ (2)));
456 extern char *__strtok_r (char *__restrict __s,
457 __const char *__restrict __delim,
458 char **__restrict __save_ptr)
459 throw () __attribute__ ((__nonnull__ (2, 3)));
460 extern char *strtok_r (char *__restrict __s, __const char *__restrict __delim,
461 char **__restrict __save_ptr)
462 throw () __attribute__ ((__nonnull__ (2, 3)));
463 extern "C++" char *strcasestr (char *__haystack, __const char *__needle)
464 throw () __asm ("strcasestr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
465 extern "C++" __const char *strcasestr (__const char *__haystack,
466 __const char *__needle)
467 throw () __asm ("strcasestr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
468 extern void *memmem (__const void *__haystack, size_t __haystacklen,
469 __const void *__needle, size_t __needlelen)
470 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 3)));
471 extern void *__mempcpy (void *__restrict __dest,
472 __const void *__restrict __src, size_t __n)
473 throw () __attribute__ ((__nonnull__ (1, 2)));
474 extern void *mempcpy (void *__restrict __dest,
475 __const void *__restrict __src, size_t __n)
476 throw () __attribute__ ((__nonnull__ (1, 2)));
477 extern size_t strlen (__const char *__s)
478 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
479 extern size_t strnlen (__const char *__string, size_t __maxlen)
480 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
481 extern char *strerror (int __errnum) throw ();
482 extern char *strerror_r (int __errnum, char *__buf, size_t __buflen)
483 throw () __attribute__ ((__nonnull__ (2)));
484 extern char *strerror_l (int __errnum, __locale_t __l) throw ();
485 extern void __bzero (void *__s, size_t __n) throw () __attribute__ ((__nonnull__ (1)));
486 extern void bcopy (__const void *__src, void *__dest, size_t __n)
487 throw () __attribute__ ((__nonnull__ (1, 2)));
488 extern void bzero (void *__s, size_t __n) throw () __attribute__ ((__nonnull__ (1)));
489 extern int bcmp (__const void *__s1, __const void *__s2, size_t __n)
490 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
493 extern char *index (char *__s, int __c)
494 throw () __asm ("index") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
495 extern __const char *index (__const char *__s, int __c)
496 throw () __asm ("index") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
500 extern char *rindex (char *__s, int __c)
501 throw () __asm ("rindex") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
502 extern __const char *rindex (__const char *__s, int __c)
503 throw () __asm ("rindex") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
505 extern int ffs (int __i) throw () __attribute__ ((__const__));
506 extern int ffsl (long int __l) throw () __attribute__ ((__const__));
507 __extension__ extern int ffsll (long long int __ll)
508 throw () __attribute__ ((__const__));
509 extern int strcasecmp (__const char *__s1, __const char *__s2)
510 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
511 extern int strncasecmp (__const char *__s1, __const char *__s2, size_t __n)
512 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
513 extern int strcasecmp_l (__const char *__s1, __const char *__s2,
515 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3)));
516 extern int strncasecmp_l (__const char *__s1, __const char *__s2,
517 size_t __n, __locale_t __loc)
518 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 4)));
519 extern char *strsep (char **__restrict __stringp,
520 __const char *__restrict __delim)
521 throw () __attribute__ ((__nonnull__ (1, 2)));
522 extern char *strsignal (int __sig) throw ();
523 extern char *__stpcpy (char *__restrict __dest, __const char *__restrict __src)
524 throw () __attribute__ ((__nonnull__ (1, 2)));
525 extern char *stpcpy (char *__restrict __dest, __const char *__restrict __src)
526 throw () __attribute__ ((__nonnull__ (1, 2)));
527 extern char *__stpncpy (char *__restrict __dest,
528 __const char *__restrict __src, size_t __n)
529 throw () __attribute__ ((__nonnull__ (1, 2)));
530 extern char *stpncpy (char *__restrict __dest,
531 __const char *__restrict __src, size_t __n)
532 throw () __attribute__ ((__nonnull__ (1, 2)));
533 extern int strverscmp (__const char *__s1, __const char *__s2)
534 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
535 extern char *strfry (char *__string) throw () __attribute__ ((__nonnull__ (1)));
536 extern void *memfrob (void *__s, size_t __n) throw () __attribute__ ((__nonnull__ (1)));
537 extern "C++" char *basename (char *__filename)
538 throw () __asm ("basename") __attribute__ ((__nonnull__ (1)));
539 extern "C++" __const char *basename (__const char *__filename)
540 throw () __asm ("basename") __attribute__ ((__nonnull__ (1)));
543 extern int *__errno_location (void) throw () __attribute__ ((__const__));
544 extern char *program_invocation_name, *program_invocation_short_name;
553 unsigned int __w_termsig:7;
554 unsigned int __w_coredump:1;
555 unsigned int __w_retcode:8;
560 unsigned int __w_stopval:8;
561 unsigned int __w_stopsig:8;
575 __extension__ typedef struct
580 extern size_t __ctype_get_mb_cur_max (void) throw () ;
581 extern double atof (__const char *__nptr)
582 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
583 extern int atoi (__const char *__nptr)
584 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
585 extern long int atol (__const char *__nptr)
586 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
587 __extension__ extern long long int atoll (__const char *__nptr)
588 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
589 extern double strtod (__const char *__restrict __nptr,
590 char **__restrict __endptr)
591 throw () __attribute__ ((__nonnull__ (1))) ;
592 extern float strtof (__const char *__restrict __nptr,
593 char **__restrict __endptr) throw () __attribute__ ((__nonnull__ (1))) ;
594 extern long double strtold (__const char *__restrict __nptr,
595 char **__restrict __endptr)
596 throw () __attribute__ ((__nonnull__ (1))) ;
597 extern long int strtol (__const char *__restrict __nptr,
598 char **__restrict __endptr, int __base)
599 throw () __attribute__ ((__nonnull__ (1))) ;
600 extern unsigned long int strtoul (__const char *__restrict __nptr,
601 char **__restrict __endptr, int __base)
602 throw () __attribute__ ((__nonnull__ (1))) ;
604 extern long long int strtoq (__const char *__restrict __nptr,
605 char **__restrict __endptr, int __base)
606 throw () __attribute__ ((__nonnull__ (1))) ;
608 extern unsigned long long int strtouq (__const char *__restrict __nptr,
609 char **__restrict __endptr, int __base)
610 throw () __attribute__ ((__nonnull__ (1))) ;
612 extern long long int strtoll (__const char *__restrict __nptr,
613 char **__restrict __endptr, int __base)
614 throw () __attribute__ ((__nonnull__ (1))) ;
616 extern unsigned long long int strtoull (__const char *__restrict __nptr,
617 char **__restrict __endptr, int __base)
618 throw () __attribute__ ((__nonnull__ (1))) ;
619 extern long int strtol_l (__const char *__restrict __nptr,
620 char **__restrict __endptr, int __base,
621 __locale_t __loc) throw () __attribute__ ((__nonnull__ (1, 4))) ;
622 extern unsigned long int strtoul_l (__const char *__restrict __nptr,
623 char **__restrict __endptr,
624 int __base, __locale_t __loc)
625 throw () __attribute__ ((__nonnull__ (1, 4))) ;
627 extern long long int strtoll_l (__const char *__restrict __nptr,
628 char **__restrict __endptr, int __base,
630 throw () __attribute__ ((__nonnull__ (1, 4))) ;
632 extern unsigned long long int strtoull_l (__const char *__restrict __nptr,
633 char **__restrict __endptr,
634 int __base, __locale_t __loc)
635 throw () __attribute__ ((__nonnull__ (1, 4))) ;
636 extern double strtod_l (__const char *__restrict __nptr,
637 char **__restrict __endptr, __locale_t __loc)
638 throw () __attribute__ ((__nonnull__ (1, 3))) ;
639 extern float strtof_l (__const char *__restrict __nptr,
640 char **__restrict __endptr, __locale_t __loc)
641 throw () __attribute__ ((__nonnull__ (1, 3))) ;
642 extern long double strtold_l (__const char *__restrict __nptr,
643 char **__restrict __endptr,
645 throw () __attribute__ ((__nonnull__ (1, 3))) ;
646 extern char *l64a (long int __n) throw () ;
647 extern long int a64l (__const char *__s)
648 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
650 typedef __u_char u_char;
651 typedef __u_short u_short;
652 typedef __u_int u_int;
653 typedef __u_long u_long;
654 typedef __quad_t quad_t;
655 typedef __u_quad_t u_quad_t;
656 typedef __fsid_t fsid_t;
657 typedef __loff_t loff_t;
658 typedef __ino64_t ino_t;
659 typedef __ino64_t ino64_t;
660 typedef __dev_t dev_t;
661 typedef __gid_t gid_t;
662 typedef __mode_t mode_t;
663 typedef __nlink_t nlink_t;
664 typedef __uid_t uid_t;
665 typedef __off64_t off_t;
666 typedef __off64_t off64_t;
667 typedef __pid_t pid_t;
669 typedef __ssize_t ssize_t;
670 typedef __daddr_t daddr_t;
671 typedef __caddr_t caddr_t;
672 typedef __key_t key_t;
673 typedef __clock_t clock_t;
674 typedef __time_t time_t;
675 typedef __clockid_t clockid_t;
676 typedef __timer_t timer_t;
677 typedef __useconds_t useconds_t;
678 typedef __suseconds_t suseconds_t;
679 typedef unsigned long int ulong;
680 typedef unsigned short int ushort;
681 typedef unsigned int uint;
682 typedef int int8_t __attribute__ ((__mode__ (__QI__)));
683 typedef int int16_t __attribute__ ((__mode__ (__HI__)));
684 typedef int int32_t __attribute__ ((__mode__ (__SI__)));
685 typedef int int64_t __attribute__ ((__mode__ (__DI__)));
686 typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__)));
687 typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__)));
688 typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__)));
689 typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__)));
690 typedef int register_t __attribute__ ((__mode__ (__word__)));
691 typedef int __sig_atomic_t;
694 unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))];
696 typedef __sigset_t sigset_t;
705 __suseconds_t tv_usec;
707 typedef long int __fd_mask;
710 __fd_mask fds_bits[1024 / (8 * (int) sizeof (__fd_mask))];
712 typedef __fd_mask fd_mask;
714 extern int select (int __nfds, fd_set *__restrict __readfds,
715 fd_set *__restrict __writefds,
716 fd_set *__restrict __exceptfds,
717 struct timeval *__restrict __timeout);
718 extern int pselect (int __nfds, fd_set *__restrict __readfds,
719 fd_set *__restrict __writefds,
720 fd_set *__restrict __exceptfds,
721 const struct timespec *__restrict __timeout,
722 const __sigset_t *__restrict __sigmask);
725 extern unsigned int gnu_dev_major (unsigned long long int __dev)
728 extern unsigned int gnu_dev_minor (unsigned long long int __dev)
731 extern unsigned long long int gnu_dev_makedev (unsigned int __major,
732 unsigned int __minor)
734 typedef __blksize_t blksize_t;
735 typedef __blkcnt64_t blkcnt_t;
736 typedef __fsblkcnt64_t fsblkcnt_t;
737 typedef __fsfilcnt64_t fsfilcnt_t;
738 typedef __blkcnt64_t blkcnt64_t;
739 typedef __fsblkcnt64_t fsblkcnt64_t;
740 typedef __fsfilcnt64_t fsfilcnt64_t;
741 typedef unsigned long int pthread_t;
747 typedef struct __pthread_internal_list
749 struct __pthread_internal_list *__prev;
750 struct __pthread_internal_list *__next;
754 struct __pthread_mutex_s
757 unsigned int __count;
759 unsigned int __nusers;
762 __pthread_list_t __list;
771 } pthread_mutexattr_t;
777 unsigned int __futex;
778 __extension__ unsigned long long int __total_seq;
779 __extension__ unsigned long long int __wakeup_seq;
780 __extension__ unsigned long long int __woken_seq;
782 unsigned int __nwaiters;
783 unsigned int __broadcast_seq;
786 __extension__ long long int __align;
792 } pthread_condattr_t;
793 typedef unsigned int pthread_key_t;
794 typedef int pthread_once_t;
800 unsigned int __nr_readers;
801 unsigned int __readers_wakeup;
802 unsigned int __writer_wakeup;
803 unsigned int __nr_readers_queued;
804 unsigned int __nr_writers_queued;
807 unsigned long int __pad1;
808 unsigned long int __pad2;
809 unsigned int __flags;
818 } pthread_rwlockattr_t;
819 typedef volatile int pthread_spinlock_t;
829 } pthread_barrierattr_t;
831 extern long int random (void) throw ();
832 extern void srandom (unsigned int __seed) throw ();
833 extern char *initstate (unsigned int __seed, char *__statebuf,
834 size_t __statelen) throw () __attribute__ ((__nonnull__ (2)));
835 extern char *setstate (char *__statebuf) throw () __attribute__ ((__nonnull__ (1)));
846 extern int random_r (struct random_data *__restrict __buf,
847 int32_t *__restrict __result) throw () __attribute__ ((__nonnull__ (1, 2)));
848 extern int srandom_r (unsigned int __seed, struct random_data *__buf)
849 throw () __attribute__ ((__nonnull__ (2)));
850 extern int initstate_r (unsigned int __seed, char *__restrict __statebuf,
852 struct random_data *__restrict __buf)
853 throw () __attribute__ ((__nonnull__ (2, 4)));
854 extern int setstate_r (char *__restrict __statebuf,
855 struct random_data *__restrict __buf)
856 throw () __attribute__ ((__nonnull__ (1, 2)));
857 extern int rand (void) throw ();
858 extern void srand (unsigned int __seed) throw ();
859 extern int rand_r (unsigned int *__seed) throw ();
860 extern double drand48 (void) throw ();
861 extern double erand48 (unsigned short int __xsubi[3]) throw () __attribute__ ((__nonnull__ (1)));
862 extern long int lrand48 (void) throw ();
863 extern long int nrand48 (unsigned short int __xsubi[3])
864 throw () __attribute__ ((__nonnull__ (1)));
865 extern long int mrand48 (void) throw ();
866 extern long int jrand48 (unsigned short int __xsubi[3])
867 throw () __attribute__ ((__nonnull__ (1)));
868 extern void srand48 (long int __seedval) throw ();
869 extern unsigned short int *seed48 (unsigned short int __seed16v[3])
870 throw () __attribute__ ((__nonnull__ (1)));
871 extern void lcong48 (unsigned short int __param[7]) throw () __attribute__ ((__nonnull__ (1)));
874 unsigned short int __x[3];
875 unsigned short int __old_x[3];
876 unsigned short int __c;
877 unsigned short int __init;
878 unsigned long long int __a;
880 extern int drand48_r (struct drand48_data *__restrict __buffer,
881 double *__restrict __result) throw () __attribute__ ((__nonnull__ (1, 2)));
882 extern int erand48_r (unsigned short int __xsubi[3],
883 struct drand48_data *__restrict __buffer,
884 double *__restrict __result) throw () __attribute__ ((__nonnull__ (1, 2)));
885 extern int lrand48_r (struct drand48_data *__restrict __buffer,
886 long int *__restrict __result)
887 throw () __attribute__ ((__nonnull__ (1, 2)));
888 extern int nrand48_r (unsigned short int __xsubi[3],
889 struct drand48_data *__restrict __buffer,
890 long int *__restrict __result)
891 throw () __attribute__ ((__nonnull__ (1, 2)));
892 extern int mrand48_r (struct drand48_data *__restrict __buffer,
893 long int *__restrict __result)
894 throw () __attribute__ ((__nonnull__ (1, 2)));
895 extern int jrand48_r (unsigned short int __xsubi[3],
896 struct drand48_data *__restrict __buffer,
897 long int *__restrict __result)
898 throw () __attribute__ ((__nonnull__ (1, 2)));
899 extern int srand48_r (long int __seedval, struct drand48_data *__buffer)
900 throw () __attribute__ ((__nonnull__ (2)));
901 extern int seed48_r (unsigned short int __seed16v[3],
902 struct drand48_data *__buffer) throw () __attribute__ ((__nonnull__ (1, 2)));
903 extern int lcong48_r (unsigned short int __param[7],
904 struct drand48_data *__buffer)
905 throw () __attribute__ ((__nonnull__ (1, 2)));
906 extern void *malloc (size_t __size) throw () __attribute__ ((__malloc__)) ;
907 extern void *calloc (size_t __nmemb, size_t __size)
908 throw () __attribute__ ((__malloc__)) ;
909 extern void *realloc (void *__ptr, size_t __size)
910 throw () __attribute__ ((__warn_unused_result__));
911 extern void free (void *__ptr) throw ();
912 extern void cfree (void *__ptr) throw ();
914 extern void *alloca (size_t __size) throw ();
916 extern void *valloc (size_t __size) throw () __attribute__ ((__malloc__)) ;
917 extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size)
918 throw () __attribute__ ((__nonnull__ (1))) ;
919 extern void abort (void) throw () __attribute__ ((__noreturn__));
920 extern int atexit (void (*__func) (void)) throw () __attribute__ ((__nonnull__ (1)));
921 extern "C++" int at_quick_exit (void (*__func) (void))
922 throw () __asm ("at_quick_exit") __attribute__ ((__nonnull__ (1)));
923 extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg)
924 throw () __attribute__ ((__nonnull__ (1)));
925 extern void exit (int __status) throw () __attribute__ ((__noreturn__));
926 extern void quick_exit (int __status) throw () __attribute__ ((__noreturn__));
927 extern void _Exit (int __status) throw () __attribute__ ((__noreturn__));
928 extern char *getenv (__const char *__name) throw () __attribute__ ((__nonnull__ (1))) ;
929 extern char *__secure_getenv (__const char *__name)
930 throw () __attribute__ ((__nonnull__ (1))) ;
931 extern int putenv (char *__string) throw () __attribute__ ((__nonnull__ (1)));
932 extern int setenv (__const char *__name, __const char *__value, int __replace)
933 throw () __attribute__ ((__nonnull__ (2)));
934 extern int unsetenv (__const char *__name) throw ();
935 extern int clearenv (void) throw ();
936 extern char *mktemp (char *__template) throw () __attribute__ ((__nonnull__ (1))) ;
937 extern int mkstemp (char *__template) __asm__ ("" "mkstemp64")
938 __attribute__ ((__nonnull__ (1))) ;
939 extern int mkstemp64 (char *__template) __attribute__ ((__nonnull__ (1))) ;
940 extern int mkstemps (char *__template, int __suffixlen) __asm__ ("" "mkstemps64") __attribute__ ((__nonnull__ (1))) ;
941 extern int mkstemps64 (char *__template, int __suffixlen)
942 __attribute__ ((__nonnull__ (1))) ;
943 extern char *mkdtemp (char *__template) throw () __attribute__ ((__nonnull__ (1))) ;
944 extern int mkostemp (char *__template, int __flags) __asm__ ("" "mkostemp64")
945 __attribute__ ((__nonnull__ (1))) ;
946 extern int mkostemp64 (char *__template, int __flags) __attribute__ ((__nonnull__ (1))) ;
947 extern int mkostemps (char *__template, int __suffixlen, int __flags) __asm__ ("" "mkostemps64")
948 __attribute__ ((__nonnull__ (1))) ;
949 extern int mkostemps64 (char *__template, int __suffixlen, int __flags)
950 __attribute__ ((__nonnull__ (1))) ;
951 extern int system (__const char *__command) ;
952 extern char *canonicalize_file_name (__const char *__name)
953 throw () __attribute__ ((__nonnull__ (1))) ;
954 extern char *realpath (__const char *__restrict __name,
955 char *__restrict __resolved) throw () ;
956 typedef int (*__compar_fn_t) (__const void *, __const void *);
957 typedef __compar_fn_t comparison_fn_t;
958 typedef int (*__compar_d_fn_t) (__const void *, __const void *, void *);
959 extern void *bsearch (__const void *__key, __const void *__base,
960 size_t __nmemb, size_t __size, __compar_fn_t __compar)
961 __attribute__ ((__nonnull__ (1, 2, 5))) ;
962 extern void qsort (void *__base, size_t __nmemb, size_t __size,
963 __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4)));
964 extern void qsort_r (void *__base, size_t __nmemb, size_t __size,
965 __compar_d_fn_t __compar, void *__arg)
966 __attribute__ ((__nonnull__ (1, 4)));
967 extern int abs (int __x) throw () __attribute__ ((__const__)) ;
968 extern long int labs (long int __x) throw () __attribute__ ((__const__)) ;
969 __extension__ extern long long int llabs (long long int __x)
970 throw () __attribute__ ((__const__)) ;
971 extern div_t div (int __numer, int __denom)
972 throw () __attribute__ ((__const__)) ;
973 extern ldiv_t ldiv (long int __numer, long int __denom)
974 throw () __attribute__ ((__const__)) ;
975 __extension__ extern lldiv_t lldiv (long long int __numer,
976 long long int __denom)
977 throw () __attribute__ ((__const__)) ;
978 extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt,
979 int *__restrict __sign) throw () __attribute__ ((__nonnull__ (3, 4))) ;
980 extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt,
981 int *__restrict __sign) throw () __attribute__ ((__nonnull__ (3, 4))) ;
982 extern char *gcvt (double __value, int __ndigit, char *__buf)
983 throw () __attribute__ ((__nonnull__ (3))) ;
984 extern char *qecvt (long double __value, int __ndigit,
985 int *__restrict __decpt, int *__restrict __sign)
986 throw () __attribute__ ((__nonnull__ (3, 4))) ;
987 extern char *qfcvt (long double __value, int __ndigit,
988 int *__restrict __decpt, int *__restrict __sign)
989 throw () __attribute__ ((__nonnull__ (3, 4))) ;
990 extern char *qgcvt (long double __value, int __ndigit, char *__buf)
991 throw () __attribute__ ((__nonnull__ (3))) ;
992 extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt,
993 int *__restrict __sign, char *__restrict __buf,
994 size_t __len) throw () __attribute__ ((__nonnull__ (3, 4, 5)));
995 extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt,
996 int *__restrict __sign, char *__restrict __buf,
997 size_t __len) throw () __attribute__ ((__nonnull__ (3, 4, 5)));
998 extern int qecvt_r (long double __value, int __ndigit,
999 int *__restrict __decpt, int *__restrict __sign,
1000 char *__restrict __buf, size_t __len)
1001 throw () __attribute__ ((__nonnull__ (3, 4, 5)));
1002 extern int qfcvt_r (long double __value, int __ndigit,
1003 int *__restrict __decpt, int *__restrict __sign,
1004 char *__restrict __buf, size_t __len)
1005 throw () __attribute__ ((__nonnull__ (3, 4, 5)));
1006 extern int mblen (__const char *__s, size_t __n) throw () ;
1007 extern int mbtowc (wchar_t *__restrict __pwc,
1008 __const char *__restrict __s, size_t __n) throw () ;
1009 extern int wctomb (char *__s, wchar_t __wchar) throw () ;
1010 extern size_t mbstowcs (wchar_t *__restrict __pwcs,
1011 __const char *__restrict __s, size_t __n) throw ();
1012 extern size_t wcstombs (char *__restrict __s,
1013 __const wchar_t *__restrict __pwcs, size_t __n)
1015 extern int rpmatch (__const char *__response) throw () __attribute__ ((__nonnull__ (1))) ;
1016 extern int getsubopt (char **__restrict __optionp,
1017 char *__const *__restrict __tokens,
1018 char **__restrict __valuep)
1019 throw () __attribute__ ((__nonnull__ (1, 2, 3))) ;
1020 extern void setkey (__const char *__key) throw () __attribute__ ((__nonnull__ (1)));
1021 extern int posix_openpt (int __oflag) ;
1022 extern int grantpt (int __fd) throw ();
1023 extern int unlockpt (int __fd) throw ();
1024 extern char *ptsname (int __fd) throw () ;
1025 extern int ptsname_r (int __fd, char *__buf, size_t __buflen)
1026 throw () __attribute__ ((__nonnull__ (2)));
1027 extern int getpt (void);
1028 extern int getloadavg (double __loadavg[], int __nelem)
1029 throw () __attribute__ ((__nonnull__ (1)));
1032 typedef __intptr_t intptr_t;
1033 typedef __socklen_t socklen_t;
1034 extern int access (__const char *__name, int __type) throw () __attribute__ ((__nonnull__ (1)));
1035 extern int euidaccess (__const char *__name, int __type)
1036 throw () __attribute__ ((__nonnull__ (1)));
1037 extern int eaccess (__const char *__name, int __type)
1038 throw () __attribute__ ((__nonnull__ (1)));
1039 extern int faccessat (int __fd, __const char *__file, int __type, int __flag)
1040 throw () __attribute__ ((__nonnull__ (2))) ;
1041 extern __off64_t lseek (int __fd, __off64_t __offset, int __whence) throw () __asm__ ("" "lseek64");
1042 extern __off64_t lseek64 (int __fd, __off64_t __offset, int __whence)
1044 extern int close (int __fd);
1045 extern ssize_t read (int __fd, void *__buf, size_t __nbytes) ;
1046 extern ssize_t write (int __fd, __const void *__buf, size_t __n) ;
1047 extern ssize_t pread (int __fd, void *__buf, size_t __nbytes, __off64_t __offset) __asm__ ("" "pread64") ;
1048 extern ssize_t pwrite (int __fd, __const void *__buf, size_t __nbytes, __off64_t __offset) __asm__ ("" "pwrite64") ;
1049 extern ssize_t pread64 (int __fd, void *__buf, size_t __nbytes,
1050 __off64_t __offset) ;
1051 extern ssize_t pwrite64 (int __fd, __const void *__buf, size_t __n,
1052 __off64_t __offset) ;
1053 extern int pipe (int __pipedes[2]) throw () ;
1054 extern int pipe2 (int __pipedes[2], int __flags) throw () ;
1055 extern unsigned int alarm (unsigned int __seconds) throw ();
1056 extern unsigned int sleep (unsigned int __seconds);
1057 extern __useconds_t ualarm (__useconds_t __value, __useconds_t __interval)
1059 extern int usleep (__useconds_t __useconds);
1060 extern int pause (void);
1061 extern int chown (__const char *__file, __uid_t __owner, __gid_t __group)
1062 throw () __attribute__ ((__nonnull__ (1))) ;
1063 extern int fchown (int __fd, __uid_t __owner, __gid_t __group) throw () ;
1064 extern int lchown (__const char *__file, __uid_t __owner, __gid_t __group)
1065 throw () __attribute__ ((__nonnull__ (1))) ;
1066 extern int fchownat (int __fd, __const char *__file, __uid_t __owner,
1067 __gid_t __group, int __flag)
1068 throw () __attribute__ ((__nonnull__ (2))) ;
1069 extern int chdir (__const char *__path) throw () __attribute__ ((__nonnull__ (1))) ;
1070 extern int fchdir (int __fd) throw () ;
1071 extern char *getcwd (char *__buf, size_t __size) throw () ;
1072 extern char *get_current_dir_name (void) throw ();
1073 extern char *getwd (char *__buf)
1074 throw () __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)) ;
1075 extern int dup (int __fd) throw () ;
1076 extern int dup2 (int __fd, int __fd2) throw ();
1077 extern int dup3 (int __fd, int __fd2, int __flags) throw ();
1078 extern char **__environ;
1079 extern char **environ;
1080 extern int execve (__const char *__path, char *__const __argv[],
1081 char *__const __envp[]) throw () __attribute__ ((__nonnull__ (1)));
1082 extern int fexecve (int __fd, char *__const __argv[], char *__const __envp[])
1084 extern int execv (__const char *__path, char *__const __argv[])
1085 throw () __attribute__ ((__nonnull__ (1)));
1086 extern int execle (__const char *__path, __const char *__arg, ...)
1087 throw () __attribute__ ((__nonnull__ (1)));
1088 extern int execl (__const char *__path, __const char *__arg, ...)
1089 throw () __attribute__ ((__nonnull__ (1)));
1090 extern int execvp (__const char *__file, char *__const __argv[])
1091 throw () __attribute__ ((__nonnull__ (1)));
1092 extern int execlp (__const char *__file, __const char *__arg, ...)
1093 throw () __attribute__ ((__nonnull__ (1)));
1094 extern int execvpe (__const char *__file, char *__const __argv[],
1095 char *__const __envp[])
1096 throw () __attribute__ ((__nonnull__ (1)));
1097 extern int nice (int __inc) throw () ;
1098 extern void _exit (int __status) __attribute__ ((__noreturn__));
1107 _PC_CHOWN_RESTRICTED,
1115 _PC_REC_INCR_XFER_SIZE,
1116 _PC_REC_MAX_XFER_SIZE,
1117 _PC_REC_MIN_XFER_SIZE,
1134 _SC_REALTIME_SIGNALS,
1135 _SC_PRIORITY_SCHEDULING,
1137 _SC_ASYNCHRONOUS_IO,
1139 _SC_SYNCHRONIZED_IO,
1144 _SC_MEMORY_PROTECTION,
1145 _SC_MESSAGE_PASSING,
1147 _SC_SHARED_MEMORY_OBJECTS,
1150 _SC_AIO_PRIO_DELTA_MAX,
1165 _SC_COLL_WEIGHTS_MAX,
1166 _SC_EQUIV_CLASS_MAX,
1170 _SC_CHARCLASS_NAME_MAX,
1186 _SC_IOV_MAX = _SC_UIO_MAXIOV,
1187 _SC_PII_INTERNET_STREAM,
1188 _SC_PII_INTERNET_DGRAM,
1194 _SC_THREAD_SAFE_FUNCTIONS,
1195 _SC_GETGR_R_SIZE_MAX,
1196 _SC_GETPW_R_SIZE_MAX,
1199 _SC_THREAD_DESTRUCTOR_ITERATIONS,
1200 _SC_THREAD_KEYS_MAX,
1201 _SC_THREAD_STACK_MIN,
1202 _SC_THREAD_THREADS_MAX,
1203 _SC_THREAD_ATTR_STACKADDR,
1204 _SC_THREAD_ATTR_STACKSIZE,
1205 _SC_THREAD_PRIORITY_SCHEDULING,
1206 _SC_THREAD_PRIO_INHERIT,
1207 _SC_THREAD_PRIO_PROTECT,
1208 _SC_THREAD_PROCESS_SHARED,
1209 _SC_NPROCESSORS_CONF,
1210 _SC_NPROCESSORS_ONLN,
1216 _SC_XOPEN_XCU_VERSION,
1251 _SC_XBS5_ILP32_OFF32,
1252 _SC_XBS5_ILP32_OFFBIG,
1253 _SC_XBS5_LP64_OFF64,
1254 _SC_XBS5_LPBIG_OFFBIG,
1257 _SC_XOPEN_REALTIME_THREADS,
1262 _SC_C_LANG_SUPPORT_R,
1263 _SC_CLOCK_SELECTION,
1267 _SC_DEVICE_SPECIFIC,
1268 _SC_DEVICE_SPECIFIC_R,
1272 _SC_FILE_ATTRIBUTES,
1275 _SC_MONOTONIC_CLOCK,
1279 _SC_READER_WRITER_LOCKS,
1286 _SC_SPORADIC_SERVER,
1287 _SC_THREAD_SPORADIC_SERVER,
1288 _SC_SYSTEM_DATABASE,
1289 _SC_SYSTEM_DATABASE_R,
1291 _SC_TYPED_MEMORY_OBJECTS,
1295 _SC_2_PBS_ACCOUNTING,
1301 _SC_2_PBS_CHECKPOINT,
1303 _SC_V6_ILP32_OFFBIG,
1305 _SC_V6_LPBIG_OFFBIG,
1308 _SC_TRACE_EVENT_FILTER,
1311 _SC_LEVEL1_ICACHE_SIZE,
1312 _SC_LEVEL1_ICACHE_ASSOC,
1313 _SC_LEVEL1_ICACHE_LINESIZE,
1314 _SC_LEVEL1_DCACHE_SIZE,
1315 _SC_LEVEL1_DCACHE_ASSOC,
1316 _SC_LEVEL1_DCACHE_LINESIZE,
1317 _SC_LEVEL2_CACHE_SIZE,
1318 _SC_LEVEL2_CACHE_ASSOC,
1319 _SC_LEVEL2_CACHE_LINESIZE,
1320 _SC_LEVEL3_CACHE_SIZE,
1321 _SC_LEVEL3_CACHE_ASSOC,
1322 _SC_LEVEL3_CACHE_LINESIZE,
1323 _SC_LEVEL4_CACHE_SIZE,
1324 _SC_LEVEL4_CACHE_ASSOC,
1325 _SC_LEVEL4_CACHE_LINESIZE,
1326 _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50,
1329 _SC_V7_ILP32_OFFBIG,
1331 _SC_V7_LPBIG_OFFBIG,
1333 _SC_TRACE_EVENT_NAME_MAX,
1336 _SC_TRACE_USER_EVENT_MAX,
1338 _SC_THREAD_ROBUST_PRIO_INHERIT,
1339 _SC_THREAD_ROBUST_PRIO_PROTECT
1344 _CS_V6_WIDTH_RESTRICTED_ENVS,
1345 _CS_GNU_LIBC_VERSION,
1346 _CS_GNU_LIBPTHREAD_VERSION,
1347 _CS_V5_WIDTH_RESTRICTED_ENVS,
1348 _CS_V7_WIDTH_RESTRICTED_ENVS,
1349 _CS_LFS_CFLAGS = 1000,
1356 _CS_LFS64_LINTFLAGS,
1357 _CS_XBS5_ILP32_OFF32_CFLAGS = 1100,
1358 _CS_XBS5_ILP32_OFF32_LDFLAGS,
1359 _CS_XBS5_ILP32_OFF32_LIBS,
1360 _CS_XBS5_ILP32_OFF32_LINTFLAGS,
1361 _CS_XBS5_ILP32_OFFBIG_CFLAGS,
1362 _CS_XBS5_ILP32_OFFBIG_LDFLAGS,
1363 _CS_XBS5_ILP32_OFFBIG_LIBS,
1364 _CS_XBS5_ILP32_OFFBIG_LINTFLAGS,
1365 _CS_XBS5_LP64_OFF64_CFLAGS,
1366 _CS_XBS5_LP64_OFF64_LDFLAGS,
1367 _CS_XBS5_LP64_OFF64_LIBS,
1368 _CS_XBS5_LP64_OFF64_LINTFLAGS,
1369 _CS_XBS5_LPBIG_OFFBIG_CFLAGS,
1370 _CS_XBS5_LPBIG_OFFBIG_LDFLAGS,
1371 _CS_XBS5_LPBIG_OFFBIG_LIBS,
1372 _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS,
1373 _CS_POSIX_V6_ILP32_OFF32_CFLAGS,
1374 _CS_POSIX_V6_ILP32_OFF32_LDFLAGS,
1375 _CS_POSIX_V6_ILP32_OFF32_LIBS,
1376 _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS,
1377 _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS,
1378 _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS,
1379 _CS_POSIX_V6_ILP32_OFFBIG_LIBS,
1380 _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS,
1381 _CS_POSIX_V6_LP64_OFF64_CFLAGS,
1382 _CS_POSIX_V6_LP64_OFF64_LDFLAGS,
1383 _CS_POSIX_V6_LP64_OFF64_LIBS,
1384 _CS_POSIX_V6_LP64_OFF64_LINTFLAGS,
1385 _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS,
1386 _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS,
1387 _CS_POSIX_V6_LPBIG_OFFBIG_LIBS,
1388 _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS,
1389 _CS_POSIX_V7_ILP32_OFF32_CFLAGS,
1390 _CS_POSIX_V7_ILP32_OFF32_LDFLAGS,
1391 _CS_POSIX_V7_ILP32_OFF32_LIBS,
1392 _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS,
1393 _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS,
1394 _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS,
1395 _CS_POSIX_V7_ILP32_OFFBIG_LIBS,
1396 _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS,
1397 _CS_POSIX_V7_LP64_OFF64_CFLAGS,
1398 _CS_POSIX_V7_LP64_OFF64_LDFLAGS,
1399 _CS_POSIX_V7_LP64_OFF64_LIBS,
1400 _CS_POSIX_V7_LP64_OFF64_LINTFLAGS,
1401 _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS,
1402 _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS,
1403 _CS_POSIX_V7_LPBIG_OFFBIG_LIBS,
1404 _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS
1406 extern long int pathconf (__const char *__path, int __name)
1407 throw () __attribute__ ((__nonnull__ (1)));
1408 extern long int fpathconf (int __fd, int __name) throw ();
1409 extern long int sysconf (int __name) throw ();
1410 extern size_t confstr (int __name, char *__buf, size_t __len) throw ();
1411 extern __pid_t getpid (void) throw ();
1412 extern __pid_t getppid (void) throw ();
1413 extern __pid_t getpgrp (void) throw ();
1414 extern __pid_t __getpgid (__pid_t __pid) throw ();
1415 extern __pid_t getpgid (__pid_t __pid) throw ();
1416 extern int setpgid (__pid_t __pid, __pid_t __pgid) throw ();
1417 extern int setpgrp (void) throw ();
1418 extern __pid_t setsid (void) throw ();
1419 extern __pid_t getsid (__pid_t __pid) throw ();
1420 extern __uid_t getuid (void) throw ();
1421 extern __uid_t geteuid (void) throw ();
1422 extern __gid_t getgid (void) throw ();
1423 extern __gid_t getegid (void) throw ();
1424 extern int getgroups (int __size, __gid_t __list[]) throw () ;
1425 extern int group_member (__gid_t __gid) throw ();
1426 extern int setuid (__uid_t __uid) throw ();
1427 extern int setreuid (__uid_t __ruid, __uid_t __euid) throw ();
1428 extern int seteuid (__uid_t __uid) throw ();
1429 extern int setgid (__gid_t __gid) throw ();
1430 extern int setregid (__gid_t __rgid, __gid_t __egid) throw ();
1431 extern int setegid (__gid_t __gid) throw ();
1432 extern int getresuid (__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid)
1434 extern int getresgid (__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid)
1436 extern int setresuid (__uid_t __ruid, __uid_t __euid, __uid_t __suid)
1438 extern int setresgid (__gid_t __rgid, __gid_t __egid, __gid_t __sgid)
1440 extern __pid_t fork (void) throw ();
1441 extern __pid_t vfork (void) throw ();
1442 extern char *ttyname (int __fd) throw ();
1443 extern int ttyname_r (int __fd, char *__buf, size_t __buflen)
1444 throw () __attribute__ ((__nonnull__ (2))) ;
1445 extern int isatty (int __fd) throw ();
1446 extern int ttyslot (void) throw ();
1447 extern int link (__const char *__from, __const char *__to)
1448 throw () __attribute__ ((__nonnull__ (1, 2))) ;
1449 extern int linkat (int __fromfd, __const char *__from, int __tofd,
1450 __const char *__to, int __flags)
1451 throw () __attribute__ ((__nonnull__ (2, 4))) ;
1452 extern int symlink (__const char *__from, __const char *__to)
1453 throw () __attribute__ ((__nonnull__ (1, 2))) ;
1454 extern ssize_t readlink (__const char *__restrict __path,
1455 char *__restrict __buf, size_t __len)
1456 throw () __attribute__ ((__nonnull__ (1, 2))) ;
1457 extern int symlinkat (__const char *__from, int __tofd,
1458 __const char *__to) throw () __attribute__ ((__nonnull__ (1, 3))) ;
1459 extern ssize_t readlinkat (int __fd, __const char *__restrict __path,
1460 char *__restrict __buf, size_t __len)
1461 throw () __attribute__ ((__nonnull__ (2, 3))) ;
1462 extern int unlink (__const char *__name) throw () __attribute__ ((__nonnull__ (1)));
1463 extern int unlinkat (int __fd, __const char *__name, int __flag)
1464 throw () __attribute__ ((__nonnull__ (2)));
1465 extern int rmdir (__const char *__path) throw () __attribute__ ((__nonnull__ (1)));
1466 extern __pid_t tcgetpgrp (int __fd) throw ();
1467 extern int tcsetpgrp (int __fd, __pid_t __pgrp_id) throw ();
1468 extern char *getlogin (void);
1469 extern int getlogin_r (char *__name, size_t __name_len) __attribute__ ((__nonnull__ (1)));
1470 extern int setlogin (__const char *__name) throw () __attribute__ ((__nonnull__ (1)));
1472 extern char *optarg;
1476 extern int getopt (int ___argc, char *const *___argv, const char *__shortopts)
1479 extern int gethostname (char *__name, size_t __len) throw () __attribute__ ((__nonnull__ (1)));
1480 extern int sethostname (__const char *__name, size_t __len)
1481 throw () __attribute__ ((__nonnull__ (1))) ;
1482 extern int sethostid (long int __id) throw () ;
1483 extern int getdomainname (char *__name, size_t __len)
1484 throw () __attribute__ ((__nonnull__ (1))) ;
1485 extern int setdomainname (__const char *__name, size_t __len)
1486 throw () __attribute__ ((__nonnull__ (1))) ;
1487 extern int vhangup (void) throw ();
1488 extern int revoke (__const char *__file) throw () __attribute__ ((__nonnull__ (1))) ;
1489 extern int profil (unsigned short int *__sample_buffer, size_t __size,
1490 size_t __offset, unsigned int __scale)
1491 throw () __attribute__ ((__nonnull__ (1)));
1492 extern int acct (__const char *__name) throw ();
1493 extern char *getusershell (void) throw ();
1494 extern void endusershell (void) throw ();
1495 extern void setusershell (void) throw ();
1496 extern int daemon (int __nochdir, int __noclose) throw () ;
1497 extern int chroot (__const char *__path) throw () __attribute__ ((__nonnull__ (1))) ;
1498 extern char *getpass (__const char *__prompt) __attribute__ ((__nonnull__ (1)));
1499 extern int fsync (int __fd);
1500 extern long int gethostid (void);
1501 extern void sync (void) throw ();
1502 extern int getpagesize (void) throw () __attribute__ ((__const__));
1503 extern int getdtablesize (void) throw ();
1504 extern int truncate (__const char *__file, __off64_t __length) throw () __asm__ ("" "truncate64") __attribute__ ((__nonnull__ (1))) ;
1505 extern int truncate64 (__const char *__file, __off64_t __length)
1506 throw () __attribute__ ((__nonnull__ (1))) ;
1507 extern int ftruncate (int __fd, __off64_t __length) throw () __asm__ ("" "ftruncate64") ;
1508 extern int ftruncate64 (int __fd, __off64_t __length) throw () ;
1509 extern int brk (void *__addr) throw () ;
1510 extern void *sbrk (intptr_t __delta) throw ();
1511 extern long int syscall (long int __sysno, ...) throw ();
1512 extern int lockf (int __fd, int __cmd, __off64_t __len) __asm__ ("" "lockf64") ;
1513 extern int lockf64 (int __fd, int __cmd, __off64_t __len) ;
1514 extern int fdatasync (int __fildes);
1515 extern char *crypt (__const char *__key, __const char *__salt)
1516 throw () __attribute__ ((__nonnull__ (1, 2)));
1517 extern void encrypt (char *__block, int __edflag) throw () __attribute__ ((__nonnull__ (1)));
1518 extern void swab (__const void *__restrict __from, void *__restrict __to,
1519 ssize_t __n) throw () __attribute__ ((__nonnull__ (1, 2)));
1520 extern char *ctermid (char *__s) throw ();
1523 extern void __assert_fail (__const char *__assertion, __const char *__file,
1524 unsigned int __line, __const char *__function)
1525 throw () __attribute__ ((__noreturn__));
1526 extern void __assert_perror_fail (int __errnum, __const char *__file,
1527 unsigned int __line,
1528 __const char *__function)
1529 throw () __attribute__ ((__noreturn__));
1530 extern void __assert (const char *__assertion, const char *__file, int __line)
1531 throw () __attribute__ ((__noreturn__));
1533 typedef unsigned char uint8_t;
1534 typedef unsigned short int uint16_t;
1535 typedef unsigned int uint32_t;
1536 typedef unsigned long int uint64_t;
1537 typedef signed char int_least8_t;
1538 typedef short int int_least16_t;
1539 typedef int int_least32_t;
1540 typedef long int int_least64_t;
1541 typedef unsigned char uint_least8_t;
1542 typedef unsigned short int uint_least16_t;
1543 typedef unsigned int uint_least32_t;
1544 typedef unsigned long int uint_least64_t;
1545 typedef signed char int_fast8_t;
1546 typedef long int int_fast16_t;
1547 typedef long int int_fast32_t;
1548 typedef long int int_fast64_t;
1549 typedef unsigned char uint_fast8_t;
1550 typedef unsigned long int uint_fast16_t;
1551 typedef unsigned long int uint_fast32_t;
1552 typedef unsigned long int uint_fast64_t;
1553 typedef unsigned long int uintptr_t;
1554 typedef long int intmax_t;
1555 typedef unsigned long int uintmax_t;
1556 typedef uintptr_t Py_uintptr_t;
1557 typedef intptr_t Py_intptr_t;
1558 typedef ssize_t Py_ssize_t;
1560 typedef float float_t;
1561 typedef double double_t;
1562 extern double acos (double __x) throw (); extern double __acos (double __x) throw ();
1563 extern double asin (double __x) throw (); extern double __asin (double __x) throw ();
1564 extern double atan (double __x) throw (); extern double __atan (double __x) throw ();
1565 extern double atan2 (double __y, double __x) throw (); extern double __atan2 (double __y, double __x) throw ();
1566 extern double cos (double __x) throw (); extern double __cos (double __x) throw ();
1567 extern double sin (double __x) throw (); extern double __sin (double __x) throw ();
1568 extern double tan (double __x) throw (); extern double __tan (double __x) throw ();
1569 extern double cosh (double __x) throw (); extern double __cosh (double __x) throw ();
1570 extern double sinh (double __x) throw (); extern double __sinh (double __x) throw ();
1571 extern double tanh (double __x) throw (); extern double __tanh (double __x) throw ();
1572 extern void sincos (double __x, double *__sinx, double *__cosx) throw (); extern void __sincos (double __x, double *__sinx, double *__cosx) throw ();
1573 extern double acosh (double __x) throw (); extern double __acosh (double __x) throw ();
1574 extern double asinh (double __x) throw (); extern double __asinh (double __x) throw ();
1575 extern double atanh (double __x) throw (); extern double __atanh (double __x) throw ();
1576 extern double exp (double __x) throw (); extern double __exp (double __x) throw ();
1577 extern double frexp (double __x, int *__exponent) throw (); extern double __frexp (double __x, int *__exponent) throw ();
1578 extern double ldexp (double __x, int __exponent) throw (); extern double __ldexp (double __x, int __exponent) throw ();
1579 extern double log (double __x) throw (); extern double __log (double __x) throw ();
1580 extern double log10 (double __x) throw (); extern double __log10 (double __x) throw ();
1581 extern double modf (double __x, double *__iptr) throw (); extern double __modf (double __x, double *__iptr) throw ();
1582 extern double exp10 (double __x) throw (); extern double __exp10 (double __x) throw ();
1583 extern double pow10 (double __x) throw (); extern double __pow10 (double __x) throw ();
1584 extern double expm1 (double __x) throw (); extern double __expm1 (double __x) throw ();
1585 extern double log1p (double __x) throw (); extern double __log1p (double __x) throw ();
1586 extern double logb (double __x) throw (); extern double __logb (double __x) throw ();
1587 extern double exp2 (double __x) throw (); extern double __exp2 (double __x) throw ();
1588 extern double log2 (double __x) throw (); extern double __log2 (double __x) throw ();
1589 extern double pow (double __x, double __y) throw (); extern double __pow (double __x, double __y) throw ();
1590 extern double sqrt (double __x) throw (); extern double __sqrt (double __x) throw ();
1591 extern double hypot (double __x, double __y) throw (); extern double __hypot (double __x, double __y) throw ();
1592 extern double cbrt (double __x) throw (); extern double __cbrt (double __x) throw ();
1593 extern double ceil (double __x) throw () __attribute__ ((__const__)); extern double __ceil (double __x) throw () __attribute__ ((__const__));
1594 extern double fabs (double __x) throw () __attribute__ ((__const__)); extern double __fabs (double __x) throw () __attribute__ ((__const__));
1595 extern double floor (double __x) throw () __attribute__ ((__const__)); extern double __floor (double __x) throw () __attribute__ ((__const__));
1596 extern double fmod (double __x, double __y) throw (); extern double __fmod (double __x, double __y) throw ();
1597 extern int __isinf (double __value) throw () __attribute__ ((__const__));
1598 extern int __finite (double __value) throw () __attribute__ ((__const__));
1599 extern int isinf (double __value) throw () __attribute__ ((__const__));
1600 extern int finite (double __value) throw () __attribute__ ((__const__));
1601 extern double drem (double __x, double __y) throw (); extern double __drem (double __x, double __y) throw ();
1602 extern double significand (double __x) throw (); extern double __significand (double __x) throw ();
1603 extern double copysign (double __x, double __y) throw () __attribute__ ((__const__)); extern double __copysign (double __x, double __y) throw () __attribute__ ((__const__));
1604 extern double nan (__const char *__tagb) throw () __attribute__ ((__const__)); extern double __nan (__const char *__tagb) throw () __attribute__ ((__const__));
1605 extern int __isnan (double __value) throw () __attribute__ ((__const__));
1606 extern int isnan (double __value) throw () __attribute__ ((__const__));
1607 extern double j0 (double) throw (); extern double __j0 (double) throw ();
1608 extern double j1 (double) throw (); extern double __j1 (double) throw ();
1609 extern double jn (int, double) throw (); extern double __jn (int, double) throw ();
1610 extern double y0 (double) throw (); extern double __y0 (double) throw ();
1611 extern double y1 (double) throw (); extern double __y1 (double) throw ();
1612 extern double yn (int, double) throw (); extern double __yn (int, double) throw ();
1613 extern double erf (double) throw (); extern double __erf (double) throw ();
1614 extern double erfc (double) throw (); extern double __erfc (double) throw ();
1615 extern double lgamma (double) throw (); extern double __lgamma (double) throw ();
1616 extern double tgamma (double) throw (); extern double __tgamma (double) throw ();
1617 extern double gamma (double) throw (); extern double __gamma (double) throw ();
1618 extern double lgamma_r (double, int *__signgamp) throw (); extern double __lgamma_r (double, int *__signgamp) throw ();
1619 extern double rint (double __x) throw (); extern double __rint (double __x) throw ();
1620 extern double nextafter (double __x, double __y) throw () __attribute__ ((__const__)); extern double __nextafter (double __x, double __y) throw () __attribute__ ((__const__));
1621 extern double nexttoward (double __x, long double __y) throw () __attribute__ ((__const__)); extern double __nexttoward (double __x, long double __y) throw () __attribute__ ((__const__));
1622 extern double remainder (double __x, double __y) throw (); extern double __remainder (double __x, double __y) throw ();
1623 extern double scalbn (double __x, int __n) throw (); extern double __scalbn (double __x, int __n) throw ();
1624 extern int ilogb (double __x) throw (); extern int __ilogb (double __x) throw ();
1625 extern double scalbln (double __x, long int __n) throw (); extern double __scalbln (double __x, long int __n) throw ();
1626 extern double nearbyint (double __x) throw (); extern double __nearbyint (double __x) throw ();
1627 extern double round (double __x) throw () __attribute__ ((__const__)); extern double __round (double __x) throw () __attribute__ ((__const__));
1628 extern double trunc (double __x) throw () __attribute__ ((__const__)); extern double __trunc (double __x) throw () __attribute__ ((__const__));
1629 extern double remquo (double __x, double __y, int *__quo) throw (); extern double __remquo (double __x, double __y, int *__quo) throw ();
1630 extern long int lrint (double __x) throw (); extern long int __lrint (double __x) throw ();
1631 extern long long int llrint (double __x) throw (); extern long long int __llrint (double __x) throw ();
1632 extern long int lround (double __x) throw (); extern long int __lround (double __x) throw ();
1633 extern long long int llround (double __x) throw (); extern long long int __llround (double __x) throw ();
1634 extern double fdim (double __x, double __y) throw (); extern double __fdim (double __x, double __y) throw ();
1635 extern double fmax (double __x, double __y) throw (); extern double __fmax (double __x, double __y) throw ();
1636 extern double fmin (double __x, double __y) throw (); extern double __fmin (double __x, double __y) throw ();
1637 extern int __fpclassify (double __value) throw ()
1638 __attribute__ ((__const__));
1639 extern int __signbit (double __value) throw ()
1640 __attribute__ ((__const__));
1641 extern double fma (double __x, double __y, double __z) throw (); extern double __fma (double __x, double __y, double __z) throw ();
1642 extern double scalb (double __x, double __n) throw (); extern double __scalb (double __x, double __n) throw ();
1643 extern float acosf (float __x) throw (); extern float __acosf (float __x) throw ();
1644 extern float asinf (float __x) throw (); extern float __asinf (float __x) throw ();
1645 extern float atanf (float __x) throw (); extern float __atanf (float __x) throw ();
1646 extern float atan2f (float __y, float __x) throw (); extern float __atan2f (float __y, float __x) throw ();
1647 extern float cosf (float __x) throw (); extern float __cosf (float __x) throw ();
1648 extern float sinf (float __x) throw (); extern float __sinf (float __x) throw ();
1649 extern float tanf (float __x) throw (); extern float __tanf (float __x) throw ();
1650 extern float coshf (float __x) throw (); extern float __coshf (float __x) throw ();
1651 extern float sinhf (float __x) throw (); extern float __sinhf (float __x) throw ();
1652 extern float tanhf (float __x) throw (); extern float __tanhf (float __x) throw ();
1653 extern void sincosf (float __x, float *__sinx, float *__cosx) throw (); extern void __sincosf (float __x, float *__sinx, float *__cosx) throw ();
1654 extern float acoshf (float __x) throw (); extern float __acoshf (float __x) throw ();
1655 extern float asinhf (float __x) throw (); extern float __asinhf (float __x) throw ();
1656 extern float atanhf (float __x) throw (); extern float __atanhf (float __x) throw ();
1657 extern float expf (float __x) throw (); extern float __expf (float __x) throw ();
1658 extern float frexpf (float __x, int *__exponent) throw (); extern float __frexpf (float __x, int *__exponent) throw ();
1659 extern float ldexpf (float __x, int __exponent) throw (); extern float __ldexpf (float __x, int __exponent) throw ();
1660 extern float logf (float __x) throw (); extern float __logf (float __x) throw ();
1661 extern float log10f (float __x) throw (); extern float __log10f (float __x) throw ();
1662 extern float modff (float __x, float *__iptr) throw (); extern float __modff (float __x, float *__iptr) throw ();
1663 extern float exp10f (float __x) throw (); extern float __exp10f (float __x) throw ();
1664 extern float pow10f (float __x) throw (); extern float __pow10f (float __x) throw ();
1665 extern float expm1f (float __x) throw (); extern float __expm1f (float __x) throw ();
1666 extern float log1pf (float __x) throw (); extern float __log1pf (float __x) throw ();
1667 extern float logbf (float __x) throw (); extern float __logbf (float __x) throw ();
1668 extern float exp2f (float __x) throw (); extern float __exp2f (float __x) throw ();
1669 extern float log2f (float __x) throw (); extern float __log2f (float __x) throw ();
1670 extern float powf (float __x, float __y) throw (); extern float __powf (float __x, float __y) throw ();
1671 extern float sqrtf (float __x) throw (); extern float __sqrtf (float __x) throw ();
1672 extern float hypotf (float __x, float __y) throw (); extern float __hypotf (float __x, float __y) throw ();
1673 extern float cbrtf (float __x) throw (); extern float __cbrtf (float __x) throw ();
1674 extern float ceilf (float __x) throw () __attribute__ ((__const__)); extern float __ceilf (float __x) throw () __attribute__ ((__const__));
1675 extern float fabsf (float __x) throw () __attribute__ ((__const__)); extern float __fabsf (float __x) throw () __attribute__ ((__const__));
1676 extern float floorf (float __x) throw () __attribute__ ((__const__)); extern float __floorf (float __x) throw () __attribute__ ((__const__));
1677 extern float fmodf (float __x, float __y) throw (); extern float __fmodf (float __x, float __y) throw ();
1678 extern int __isinff (float __value) throw () __attribute__ ((__const__));
1679 extern int __finitef (float __value) throw () __attribute__ ((__const__));
1680 extern int isinff (float __value) throw () __attribute__ ((__const__));
1681 extern int finitef (float __value) throw () __attribute__ ((__const__));
1682 extern float dremf (float __x, float __y) throw (); extern float __dremf (float __x, float __y) throw ();
1683 extern float significandf (float __x) throw (); extern float __significandf (float __x) throw ();
1684 extern float copysignf (float __x, float __y) throw () __attribute__ ((__const__)); extern float __copysignf (float __x, float __y) throw () __attribute__ ((__const__));
1685 extern float nanf (__const char *__tagb) throw () __attribute__ ((__const__)); extern float __nanf (__const char *__tagb) throw () __attribute__ ((__const__));
1686 extern int __isnanf (float __value) throw () __attribute__ ((__const__));
1687 extern int isnanf (float __value) throw () __attribute__ ((__const__));
1688 extern float j0f (float) throw (); extern float __j0f (float) throw ();
1689 extern float j1f (float) throw (); extern float __j1f (float) throw ();
1690 extern float jnf (int, float) throw (); extern float __jnf (int, float) throw ();
1691 extern float y0f (float) throw (); extern float __y0f (float) throw ();
1692 extern float y1f (float) throw (); extern float __y1f (float) throw ();
1693 extern float ynf (int, float) throw (); extern float __ynf (int, float) throw ();
1694 extern float erff (float) throw (); extern float __erff (float) throw ();
1695 extern float erfcf (float) throw (); extern float __erfcf (float) throw ();
1696 extern float lgammaf (float) throw (); extern float __lgammaf (float) throw ();
1697 extern float tgammaf (float) throw (); extern float __tgammaf (float) throw ();
1698 extern float gammaf (float) throw (); extern float __gammaf (float) throw ();
1699 extern float lgammaf_r (float, int *__signgamp) throw (); extern float __lgammaf_r (float, int *__signgamp) throw ();
1700 extern float rintf (float __x) throw (); extern float __rintf (float __x) throw ();
1701 extern float nextafterf (float __x, float __y) throw () __attribute__ ((__const__)); extern float __nextafterf (float __x, float __y) throw () __attribute__ ((__const__));
1702 extern float nexttowardf (float __x, long double __y) throw () __attribute__ ((__const__)); extern float __nexttowardf (float __x, long double __y) throw () __attribute__ ((__const__));
1703 extern float remainderf (float __x, float __y) throw (); extern float __remainderf (float __x, float __y) throw ();
1704 extern float scalbnf (float __x, int __n) throw (); extern float __scalbnf (float __x, int __n) throw ();
1705 extern int ilogbf (float __x) throw (); extern int __ilogbf (float __x) throw ();
1706 extern float scalblnf (float __x, long int __n) throw (); extern float __scalblnf (float __x, long int __n) throw ();
1707 extern float nearbyintf (float __x) throw (); extern float __nearbyintf (float __x) throw ();
1708 extern float roundf (float __x) throw () __attribute__ ((__const__)); extern float __roundf (float __x) throw () __attribute__ ((__const__));
1709 extern float truncf (float __x) throw () __attribute__ ((__const__)); extern float __truncf (float __x) throw () __attribute__ ((__const__));
1710 extern float remquof (float __x, float __y, int *__quo) throw (); extern float __remquof (float __x, float __y, int *__quo) throw ();
1711 extern long int lrintf (float __x) throw (); extern long int __lrintf (float __x) throw ();
1712 extern long long int llrintf (float __x) throw (); extern long long int __llrintf (float __x) throw ();
1713 extern long int lroundf (float __x) throw (); extern long int __lroundf (float __x) throw ();
1714 extern long long int llroundf (float __x) throw (); extern long long int __llroundf (float __x) throw ();
1715 extern float fdimf (float __x, float __y) throw (); extern float __fdimf (float __x, float __y) throw ();
1716 extern float fmaxf (float __x, float __y) throw (); extern float __fmaxf (float __x, float __y) throw ();
1717 extern float fminf (float __x, float __y) throw (); extern float __fminf (float __x, float __y) throw ();
1718 extern int __fpclassifyf (float __value) throw ()
1719 __attribute__ ((__const__));
1720 extern int __signbitf (float __value) throw ()
1721 __attribute__ ((__const__));
1722 extern float fmaf (float __x, float __y, float __z) throw (); extern float __fmaf (float __x, float __y, float __z) throw ();
1723 extern float scalbf (float __x, float __n) throw (); extern float __scalbf (float __x, float __n) throw ();
1724 extern long double acosl (long double __x) throw (); extern long double __acosl (long double __x) throw ();
1725 extern long double asinl (long double __x) throw (); extern long double __asinl (long double __x) throw ();
1726 extern long double atanl (long double __x) throw (); extern long double __atanl (long double __x) throw ();
1727 extern long double atan2l (long double __y, long double __x) throw (); extern long double __atan2l (long double __y, long double __x) throw ();
1728 extern long double cosl (long double __x) throw (); extern long double __cosl (long double __x) throw ();
1729 extern long double sinl (long double __x) throw (); extern long double __sinl (long double __x) throw ();
1730 extern long double tanl (long double __x) throw (); extern long double __tanl (long double __x) throw ();
1731 extern long double coshl (long double __x) throw (); extern long double __coshl (long double __x) throw ();
1732 extern long double sinhl (long double __x) throw (); extern long double __sinhl (long double __x) throw ();
1733 extern long double tanhl (long double __x) throw (); extern long double __tanhl (long double __x) throw ();
1734 extern void sincosl (long double __x, long double *__sinx, long double *__cosx) throw (); extern void __sincosl (long double __x, long double *__sinx, long double *__cosx) throw ();
1735 extern long double acoshl (long double __x) throw (); extern long double __acoshl (long double __x) throw ();
1736 extern long double asinhl (long double __x) throw (); extern long double __asinhl (long double __x) throw ();
1737 extern long double atanhl (long double __x) throw (); extern long double __atanhl (long double __x) throw ();
1738 extern long double expl (long double __x) throw (); extern long double __expl (long double __x) throw ();
1739 extern long double frexpl (long double __x, int *__exponent) throw (); extern long double __frexpl (long double __x, int *__exponent) throw ();
1740 extern long double ldexpl (long double __x, int __exponent) throw (); extern long double __ldexpl (long double __x, int __exponent) throw ();
1741 extern long double logl (long double __x) throw (); extern long double __logl (long double __x) throw ();
1742 extern long double log10l (long double __x) throw (); extern long double __log10l (long double __x) throw ();
1743 extern long double modfl (long double __x, long double *__iptr) throw (); extern long double __modfl (long double __x, long double *__iptr) throw ();
1744 extern long double exp10l (long double __x) throw (); extern long double __exp10l (long double __x) throw ();
1745 extern long double pow10l (long double __x) throw (); extern long double __pow10l (long double __x) throw ();
1746 extern long double expm1l (long double __x) throw (); extern long double __expm1l (long double __x) throw ();
1747 extern long double log1pl (long double __x) throw (); extern long double __log1pl (long double __x) throw ();
1748 extern long double logbl (long double __x) throw (); extern long double __logbl (long double __x) throw ();
1749 extern long double exp2l (long double __x) throw (); extern long double __exp2l (long double __x) throw ();
1750 extern long double log2l (long double __x) throw (); extern long double __log2l (long double __x) throw ();
1751 extern long double powl (long double __x, long double __y) throw (); extern long double __powl (long double __x, long double __y) throw ();
1752 extern long double sqrtl (long double __x) throw (); extern long double __sqrtl (long double __x) throw ();
1753 extern long double hypotl (long double __x, long double __y) throw (); extern long double __hypotl (long double __x, long double __y) throw ();
1754 extern long double cbrtl (long double __x) throw (); extern long double __cbrtl (long double __x) throw ();
1755 extern long double ceill (long double __x) throw () __attribute__ ((__const__)); extern long double __ceill (long double __x) throw () __attribute__ ((__const__));
1756 extern long double fabsl (long double __x) throw () __attribute__ ((__const__)); extern long double __fabsl (long double __x) throw () __attribute__ ((__const__));
1757 extern long double floorl (long double __x) throw () __attribute__ ((__const__)); extern long double __floorl (long double __x) throw () __attribute__ ((__const__));
1758 extern long double fmodl (long double __x, long double __y) throw (); extern long double __fmodl (long double __x, long double __y) throw ();
1759 extern int __isinfl (long double __value) throw () __attribute__ ((__const__));
1760 extern int __finitel (long double __value) throw () __attribute__ ((__const__));
1761 extern int isinfl (long double __value) throw () __attribute__ ((__const__));
1762 extern int finitel (long double __value) throw () __attribute__ ((__const__));
1763 extern long double dreml (long double __x, long double __y) throw (); extern long double __dreml (long double __x, long double __y) throw ();
1764 extern long double significandl (long double __x) throw (); extern long double __significandl (long double __x) throw ();
1765 extern long double copysignl (long double __x, long double __y) throw () __attribute__ ((__const__)); extern long double __copysignl (long double __x, long double __y) throw () __attribute__ ((__const__));
1766 extern long double nanl (__const char *__tagb) throw () __attribute__ ((__const__)); extern long double __nanl (__const char *__tagb) throw () __attribute__ ((__const__));
1767 extern int __isnanl (long double __value) throw () __attribute__ ((__const__));
1768 extern int isnanl (long double __value) throw () __attribute__ ((__const__));
1769 extern long double j0l (long double) throw (); extern long double __j0l (long double) throw ();
1770 extern long double j1l (long double) throw (); extern long double __j1l (long double) throw ();
1771 extern long double jnl (int, long double) throw (); extern long double __jnl (int, long double) throw ();
1772 extern long double y0l (long double) throw (); extern long double __y0l (long double) throw ();
1773 extern long double y1l (long double) throw (); extern long double __y1l (long double) throw ();
1774 extern long double ynl (int, long double) throw (); extern long double __ynl (int, long double) throw ();
1775 extern long double erfl (long double) throw (); extern long double __erfl (long double) throw ();
1776 extern long double erfcl (long double) throw (); extern long double __erfcl (long double) throw ();
1777 extern long double lgammal (long double) throw (); extern long double __lgammal (long double) throw ();
1778 extern long double tgammal (long double) throw (); extern long double __tgammal (long double) throw ();
1779 extern long double gammal (long double) throw (); extern long double __gammal (long double) throw ();
1780 extern long double lgammal_r (long double, int *__signgamp) throw (); extern long double __lgammal_r (long double, int *__signgamp) throw ();
1781 extern long double rintl (long double __x) throw (); extern long double __rintl (long double __x) throw ();
1782 extern long double nextafterl (long double __x, long double __y) throw () __attribute__ ((__const__)); extern long double __nextafterl (long double __x, long double __y) throw () __attribute__ ((__const__));
1783 extern long double nexttowardl (long double __x, long double __y) throw () __attribute__ ((__const__)); extern long double __nexttowardl (long double __x, long double __y) throw () __attribute__ ((__const__));
1784 extern long double remainderl (long double __x, long double __y) throw (); extern long double __remainderl (long double __x, long double __y) throw ();
1785 extern long double scalbnl (long double __x, int __n) throw (); extern long double __scalbnl (long double __x, int __n) throw ();
1786 extern int ilogbl (long double __x) throw (); extern int __ilogbl (long double __x) throw ();
1787 extern long double scalblnl (long double __x, long int __n) throw (); extern long double __scalblnl (long double __x, long int __n) throw ();
1788 extern long double nearbyintl (long double __x) throw (); extern long double __nearbyintl (long double __x) throw ();
1789 extern long double roundl (long double __x) throw () __attribute__ ((__const__)); extern long double __roundl (long double __x) throw () __attribute__ ((__const__));
1790 extern long double truncl (long double __x) throw () __attribute__ ((__const__)); extern long double __truncl (long double __x) throw () __attribute__ ((__const__));
1791 extern long double remquol (long double __x, long double __y, int *__quo) throw (); extern long double __remquol (long double __x, long double __y, int *__quo) throw ();
1792 extern long int lrintl (long double __x) throw (); extern long int __lrintl (long double __x) throw ();
1793 extern long long int llrintl (long double __x) throw (); extern long long int __llrintl (long double __x) throw ();
1794 extern long int lroundl (long double __x) throw (); extern long int __lroundl (long double __x) throw ();
1795 extern long long int llroundl (long double __x) throw (); extern long long int __llroundl (long double __x) throw ();
1796 extern long double fdiml (long double __x, long double __y) throw (); extern long double __fdiml (long double __x, long double __y) throw ();
1797 extern long double fmaxl (long double __x, long double __y) throw (); extern long double __fmaxl (long double __x, long double __y) throw ();
1798 extern long double fminl (long double __x, long double __y) throw (); extern long double __fminl (long double __x, long double __y) throw ();
1799 extern int __fpclassifyl (long double __value) throw ()
1800 __attribute__ ((__const__));
1801 extern int __signbitl (long double __value) throw ()
1802 __attribute__ ((__const__));
1803 extern long double fmal (long double __x, long double __y, long double __z) throw (); extern long double __fmal (long double __x, long double __y, long double __z) throw ();
1804 extern long double scalbl (long double __x, long double __n) throw (); extern long double __scalbl (long double __x, long double __n) throw ();
1821 } _LIB_VERSION_TYPE;
1822 extern _LIB_VERSION_TYPE _LIB_VERSION;
1831 extern int matherr (struct __exception *__exc) throw ();
1839 typedef struct timezone *__restrict __timezone_ptr_t;
1840 extern int gettimeofday (struct timeval *__restrict __tv,
1841 __timezone_ptr_t __tz) throw () __attribute__ ((__nonnull__ (1)));
1842 extern int settimeofday (__const struct timeval *__tv,
1843 __const struct timezone *__tz)
1844 throw () __attribute__ ((__nonnull__ (1)));
1845 extern int adjtime (__const struct timeval *__delta,
1846 struct timeval *__olddelta) throw ();
1855 struct timeval it_interval;
1856 struct timeval it_value;
1858 typedef int __itimer_which_t;
1859 extern int getitimer (__itimer_which_t __which,
1860 struct itimerval *__value) throw ();
1861 extern int setitimer (__itimer_which_t __which,
1862 __const struct itimerval *__restrict __new,
1863 struct itimerval *__restrict __old) throw ();
1864 extern int utimes (__const char *__file, __const struct timeval __tvp[2])
1865 throw () __attribute__ ((__nonnull__ (1)));
1866 extern int lutimes (__const char *__file, __const struct timeval __tvp[2])
1867 throw () __attribute__ ((__nonnull__ (1)));
1868 extern int futimes (int __fd, __const struct timeval __tvp[2]) throw ();
1869 extern int futimesat (int __fd, __const char *__file,
1870 __const struct timeval __tvp[2]) throw ();
1885 __const char *tm_zone;
1889 struct timespec it_interval;
1890 struct timespec it_value;
1893 extern clock_t clock (void) throw ();
1894 extern time_t time (time_t *__timer) throw ();
1895 extern double difftime (time_t __time1, time_t __time0)
1896 throw () __attribute__ ((__const__));
1897 extern time_t mktime (struct tm *__tp) throw ();
1898 extern size_t strftime (char *__restrict __s, size_t __maxsize,
1899 __const char *__restrict __format,
1900 __const struct tm *__restrict __tp) throw ();
1901 extern char *strptime (__const char *__restrict __s,
1902 __const char *__restrict __fmt, struct tm *__tp)
1904 extern size_t strftime_l (char *__restrict __s, size_t __maxsize,
1905 __const char *__restrict __format,
1906 __const struct tm *__restrict __tp,
1907 __locale_t __loc) throw ();
1908 extern char *strptime_l (__const char *__restrict __s,
1909 __const char *__restrict __fmt, struct tm *__tp,
1910 __locale_t __loc) throw ();
1911 extern struct tm *gmtime (__const time_t *__timer) throw ();
1912 extern struct tm *localtime (__const time_t *__timer) throw ();
1913 extern struct tm *gmtime_r (__const time_t *__restrict __timer,
1914 struct tm *__restrict __tp) throw ();
1915 extern struct tm *localtime_r (__const time_t *__restrict __timer,
1916 struct tm *__restrict __tp) throw ();
1917 extern char *asctime (__const struct tm *__tp) throw ();
1918 extern char *ctime (__const time_t *__timer) throw ();
1919 extern char *asctime_r (__const struct tm *__restrict __tp,
1920 char *__restrict __buf) throw ();
1921 extern char *ctime_r (__const time_t *__restrict __timer,
1922 char *__restrict __buf) throw ();
1923 extern char *__tzname[2];
1924 extern int __daylight;
1925 extern long int __timezone;
1926 extern char *tzname[2];
1927 extern void tzset (void) throw ();
1928 extern int daylight;
1929 extern long int timezone;
1930 extern int stime (__const time_t *__when) throw ();
1931 extern time_t timegm (struct tm *__tp) throw ();
1932 extern time_t timelocal (struct tm *__tp) throw ();
1933 extern int dysize (int __year) throw () __attribute__ ((__const__));
1934 extern int nanosleep (__const struct timespec *__requested_time,
1935 struct timespec *__remaining);
1936 extern int clock_getres (clockid_t __clock_id, struct timespec *__res) throw ();
1937 extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) throw ();
1938 extern int clock_settime (clockid_t __clock_id, __const struct timespec *__tp)
1940 extern int clock_nanosleep (clockid_t __clock_id, int __flags,
1941 __const struct timespec *__req,
1942 struct timespec *__rem);
1943 extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) throw ();
1944 extern int timer_create (clockid_t __clock_id,
1945 struct sigevent *__restrict __evp,
1946 timer_t *__restrict __timerid) throw ();
1947 extern int timer_delete (timer_t __timerid) throw ();
1948 extern int timer_settime (timer_t __timerid, int __flags,
1949 __const struct itimerspec *__restrict __value,
1950 struct itimerspec *__restrict __ovalue) throw ();
1951 extern int timer_gettime (timer_t __timerid, struct itimerspec *__value)
1953 extern int timer_getoverrun (timer_t __timerid) throw ();
1954 extern int getdate_err;
1955 extern struct tm *getdate (__const char *__string);
1956 extern int getdate_r (__const char *__restrict __string,
1957 struct tm *__restrict __resbufp);
1971 __blksize_t st_blksize;
1972 __blkcnt_t st_blocks;
1973 struct timespec st_atim;
1974 struct timespec st_mtim;
1975 struct timespec st_ctim;
1976 long int __unused[3];
1989 __blksize_t st_blksize;
1990 __blkcnt64_t st_blocks;
1991 struct timespec st_atim;
1992 struct timespec st_mtim;
1993 struct timespec st_ctim;
1994 long int __unused[3];
1996 extern int stat (__const char *__restrict __file, struct stat *__restrict __buf) throw () __asm__ ("" "stat64")
1997 __attribute__ ((__nonnull__ (1, 2)));
1998 extern int fstat (int __fd, struct stat *__buf) throw () __asm__ ("" "fstat64")
1999 __attribute__ ((__nonnull__ (2)));
2000 extern int stat64 (__const char *__restrict __file,
2001 struct stat64 *__restrict __buf) throw () __attribute__ ((__nonnull__ (1, 2)));
2002 extern int fstat64 (int __fd, struct stat64 *__buf) throw () __attribute__ ((__nonnull__ (2)));
2003 extern int fstatat (int __fd, __const char *__restrict __file, struct stat *__restrict __buf, int __flag) throw () __asm__ ("" "fstatat64") __attribute__ ((__nonnull__ (2, 3)));
2004 extern int fstatat64 (int __fd, __const char *__restrict __file,
2005 struct stat64 *__restrict __buf, int __flag)
2006 throw () __attribute__ ((__nonnull__ (2, 3)));
2007 extern int lstat (__const char *__restrict __file, struct stat *__restrict __buf) throw () __asm__ ("" "lstat64")
2008 __attribute__ ((__nonnull__ (1, 2)));
2009 extern int lstat64 (__const char *__restrict __file,
2010 struct stat64 *__restrict __buf)
2011 throw () __attribute__ ((__nonnull__ (1, 2)));
2012 extern int chmod (__const char *__file, __mode_t __mode)
2013 throw () __attribute__ ((__nonnull__ (1)));
2014 extern int lchmod (__const char *__file, __mode_t __mode)
2015 throw () __attribute__ ((__nonnull__ (1)));
2016 extern int fchmod (int __fd, __mode_t __mode) throw ();
2017 extern int fchmodat (int __fd, __const char *__file, __mode_t __mode,
2019 throw () __attribute__ ((__nonnull__ (2))) ;
2020 extern __mode_t umask (__mode_t __mask) throw ();
2021 extern __mode_t getumask (void) throw ();
2022 extern int mkdir (__const char *__path, __mode_t __mode)
2023 throw () __attribute__ ((__nonnull__ (1)));
2024 extern int mkdirat (int __fd, __const char *__path, __mode_t __mode)
2025 throw () __attribute__ ((__nonnull__ (2)));
2026 extern int mknod (__const char *__path, __mode_t __mode, __dev_t __dev)
2027 throw () __attribute__ ((__nonnull__ (1)));
2028 extern int mknodat (int __fd, __const char *__path, __mode_t __mode,
2029 __dev_t __dev) throw () __attribute__ ((__nonnull__ (2)));
2030 extern int mkfifo (__const char *__path, __mode_t __mode)
2031 throw () __attribute__ ((__nonnull__ (1)));
2032 extern int mkfifoat (int __fd, __const char *__path, __mode_t __mode)
2033 throw () __attribute__ ((__nonnull__ (2)));
2034 extern int utimensat (int __fd, __const char *__path,
2035 __const struct timespec __times[2],
2037 throw () __attribute__ ((__nonnull__ (2)));
2038 extern int futimens (int __fd, __const struct timespec __times[2]) throw ();
2039 extern int __fxstat (int __ver, int __fildes, struct stat *__stat_buf) throw () __asm__ ("" "__fxstat64")
2040 __attribute__ ((__nonnull__ (3)));
2041 extern int __xstat (int __ver, __const char *__filename, struct stat *__stat_buf) throw () __asm__ ("" "__xstat64")
2042 __attribute__ ((__nonnull__ (2, 3)));
2043 extern int __lxstat (int __ver, __const char *__filename, struct stat *__stat_buf) throw () __asm__ ("" "__lxstat64")
2044 __attribute__ ((__nonnull__ (2, 3)));
2045 extern int __fxstatat (int __ver, int __fildes, __const char *__filename, struct stat *__stat_buf, int __flag) throw () __asm__ ("" "__fxstatat64") __attribute__ ((__nonnull__ (3, 4)));
2046 extern int __fxstat64 (int __ver, int __fildes, struct stat64 *__stat_buf)
2047 throw () __attribute__ ((__nonnull__ (3)));
2048 extern int __xstat64 (int __ver, __const char *__filename,
2049 struct stat64 *__stat_buf) throw () __attribute__ ((__nonnull__ (2, 3)));
2050 extern int __lxstat64 (int __ver, __const char *__filename,
2051 struct stat64 *__stat_buf) throw () __attribute__ ((__nonnull__ (2, 3)));
2052 extern int __fxstatat64 (int __ver, int __fildes, __const char *__filename,
2053 struct stat64 *__stat_buf, int __flag)
2054 throw () __attribute__ ((__nonnull__ (3, 4)));
2055 extern int __xmknod (int __ver, __const char *__path, __mode_t __mode,
2056 __dev_t *__dev) throw () __attribute__ ((__nonnull__ (2, 4)));
2057 extern int __xmknodat (int __ver, int __fd, __const char *__path,
2058 __mode_t __mode, __dev_t *__dev)
2059 throw () __attribute__ ((__nonnull__ (3, 5)));
2064 void * PyMem_Malloc(size_t);
2065 void * PyMem_Realloc(void *, size_t);
2066 void PyMem_Free(void *);
2069 typedef struct _object {
2070 Py_ssize_t ob_refcnt; struct _typeobject *ob_type;
2073 Py_ssize_t ob_refcnt; struct _typeobject *ob_type; Py_ssize_t ob_size;
2075 typedef PyObject * (*unaryfunc)(PyObject *);
2076 typedef PyObject * (*binaryfunc)(PyObject *, PyObject *);
2077 typedef PyObject * (*ternaryfunc)(PyObject *, PyObject *, PyObject *);
2078 typedef int (*inquiry)(PyObject *);
2079 typedef Py_ssize_t (*lenfunc)(PyObject *);
2080 typedef int (*coercion)(PyObject **, PyObject **);
2081 typedef PyObject *(*intargfunc)(PyObject *, int) __attribute__((__deprecated__));
2082 typedef PyObject *(*intintargfunc)(PyObject *, int, int) __attribute__((__deprecated__));
2083 typedef PyObject *(*ssizeargfunc)(PyObject *, Py_ssize_t);
2084 typedef PyObject *(*ssizessizeargfunc)(PyObject *, Py_ssize_t, Py_ssize_t);
2085 typedef int(*intobjargproc)(PyObject *, int, PyObject *);
2086 typedef int(*intintobjargproc)(PyObject *, int, int, PyObject *);
2087 typedef int(*ssizeobjargproc)(PyObject *, Py_ssize_t, PyObject *);
2088 typedef int(*ssizessizeobjargproc)(PyObject *, Py_ssize_t, Py_ssize_t, PyObject *);
2089 typedef int(*objobjargproc)(PyObject *, PyObject *, PyObject *);
2090 typedef int (*getreadbufferproc)(PyObject *, int, void **);
2091 typedef int (*getwritebufferproc)(PyObject *, int, void **);
2092 typedef int (*getsegcountproc)(PyObject *, int *);
2093 typedef int (*getcharbufferproc)(PyObject *, int, char **);
2094 typedef Py_ssize_t (*readbufferproc)(PyObject *, Py_ssize_t, void **);
2095 typedef Py_ssize_t (*writebufferproc)(PyObject *, Py_ssize_t, void **);
2096 typedef Py_ssize_t (*segcountproc)(PyObject *, Py_ssize_t *);
2097 typedef Py_ssize_t (*charbufferproc)(PyObject *, Py_ssize_t, char **);
2098 typedef struct bufferinfo {
2102 Py_ssize_t itemsize;
2107 Py_ssize_t *strides;
2108 Py_ssize_t *suboffsets;
2111 typedef int (*getbufferproc)(PyObject *, Py_buffer *, int);
2112 typedef void (*releasebufferproc)(PyObject *, Py_buffer *);
2113 typedef int (*objobjproc)(PyObject *, PyObject *);
2114 typedef int (*visitproc)(PyObject *, void *);
2115 typedef int (*traverseproc)(PyObject *, visitproc, void *);
2118 binaryfunc nb_subtract;
2119 binaryfunc nb_multiply;
2120 binaryfunc nb_divide;
2121 binaryfunc nb_remainder;
2122 binaryfunc nb_divmod;
2123 ternaryfunc nb_power;
2124 unaryfunc nb_negative;
2125 unaryfunc nb_positive;
2126 unaryfunc nb_absolute;
2128 unaryfunc nb_invert;
2129 binaryfunc nb_lshift;
2130 binaryfunc nb_rshift;
2140 binaryfunc nb_inplace_add;
2141 binaryfunc nb_inplace_subtract;
2142 binaryfunc nb_inplace_multiply;
2143 binaryfunc nb_inplace_divide;
2144 binaryfunc nb_inplace_remainder;
2145 ternaryfunc nb_inplace_power;
2146 binaryfunc nb_inplace_lshift;
2147 binaryfunc nb_inplace_rshift;
2148 binaryfunc nb_inplace_and;
2149 binaryfunc nb_inplace_xor;
2150 binaryfunc nb_inplace_or;
2151 binaryfunc nb_floor_divide;
2152 binaryfunc nb_true_divide;
2153 binaryfunc nb_inplace_floor_divide;
2154 binaryfunc nb_inplace_true_divide;
2159 binaryfunc sq_concat;
2160 ssizeargfunc sq_repeat;
2161 ssizeargfunc sq_item;
2162 ssizessizeargfunc sq_slice;
2163 ssizeobjargproc sq_ass_item;
2164 ssizessizeobjargproc sq_ass_slice;
2165 objobjproc sq_contains;
2166 binaryfunc sq_inplace_concat;
2167 ssizeargfunc sq_inplace_repeat;
2168 } PySequenceMethods;
2171 binaryfunc mp_subscript;
2172 objobjargproc mp_ass_subscript;
2175 readbufferproc bf_getreadbuffer;
2176 writebufferproc bf_getwritebuffer;
2177 segcountproc bf_getsegcount;
2178 charbufferproc bf_getcharbuffer;
2179 getbufferproc bf_getbuffer;
2180 releasebufferproc bf_releasebuffer;
2182 typedef void (*freefunc)(void *);
2183 typedef void (*destructor)(PyObject *);
2184 typedef int (*printfunc)(PyObject *, FILE *, int);
2185 typedef PyObject *(*getattrfunc)(PyObject *, char *);
2186 typedef PyObject *(*getattrofunc)(PyObject *, PyObject *);
2187 typedef int (*setattrfunc)(PyObject *, char *, PyObject *);
2188 typedef int (*setattrofunc)(PyObject *, PyObject *, PyObject *);
2189 typedef int (*cmpfunc)(PyObject *, PyObject *);
2190 typedef PyObject *(*reprfunc)(PyObject *);
2191 typedef long (*hashfunc)(PyObject *);
2192 typedef PyObject *(*richcmpfunc) (PyObject *, PyObject *, int);
2193 typedef PyObject *(*getiterfunc) (PyObject *);
2194 typedef PyObject *(*iternextfunc) (PyObject *);
2195 typedef PyObject *(*descrgetfunc) (PyObject *, PyObject *, PyObject *);
2196 typedef int (*descrsetfunc) (PyObject *, PyObject *, PyObject *);
2197 typedef int (*initproc)(PyObject *, PyObject *, PyObject *);
2198 typedef PyObject *(*newfunc)(struct _typeobject *, PyObject *, PyObject *);
2199 typedef PyObject *(*allocfunc)(struct _typeobject *, Py_ssize_t);
2200 typedef struct _typeobject {
2201 Py_ssize_t ob_refcnt; struct _typeobject *ob_type; Py_ssize_t ob_size;
2202 const char *tp_name;
2203 Py_ssize_t tp_basicsize, tp_itemsize;
2204 destructor tp_dealloc;
2206 getattrfunc tp_getattr;
2207 setattrfunc tp_setattr;
2210 PyNumberMethods *tp_as_number;
2211 PySequenceMethods *tp_as_sequence;
2212 PyMappingMethods *tp_as_mapping;
2214 ternaryfunc tp_call;
2216 getattrofunc tp_getattro;
2217 setattrofunc tp_setattro;
2218 PyBufferProcs *tp_as_buffer;
2221 traverseproc tp_traverse;
2223 richcmpfunc tp_richcompare;
2224 Py_ssize_t tp_weaklistoffset;
2225 getiterfunc tp_iter;
2226 iternextfunc tp_iternext;
2227 struct PyMethodDef *tp_methods;
2228 struct PyMemberDef *tp_members;
2229 struct PyGetSetDef *tp_getset;
2230 struct _typeobject *tp_base;
2232 descrgetfunc tp_descr_get;
2233 descrsetfunc tp_descr_set;
2234 Py_ssize_t tp_dictoffset;
2243 PyObject *tp_subclasses;
2244 PyObject *tp_weaklist;
2246 unsigned int tp_version_tag;
2248 typedef struct _heaptypeobject {
2249 PyTypeObject ht_type;
2250 PyNumberMethods as_number;
2251 PyMappingMethods as_mapping;
2252 PySequenceMethods as_sequence;
2253 PyBufferProcs as_buffer;
2254 PyObject *ht_name, *ht_slots;
2256 int PyType_IsSubtype(PyTypeObject *, PyTypeObject *);
2257 extern PyTypeObject PyType_Type;
2258 extern PyTypeObject PyBaseObject_Type;
2259 extern PyTypeObject PySuper_Type;
2260 int PyType_Ready(PyTypeObject *);
2261 PyObject * PyType_GenericAlloc(PyTypeObject *, Py_ssize_t);
2262 PyObject * PyType_GenericNew(PyTypeObject *,
2263 PyObject *, PyObject *);
2264 PyObject * _PyType_Lookup(PyTypeObject *, PyObject *);
2265 unsigned int PyType_ClearCache(void);
2266 void PyType_Modified(PyTypeObject *);
2267 int PyObject_Print(PyObject *, FILE *, int);
2268 void _PyObject_Dump(PyObject *);
2269 PyObject * PyObject_Repr(PyObject *);
2270 PyObject * _PyObject_Str(PyObject *);
2271 PyObject * PyObject_Str(PyObject *);
2272 PyObject * PyObject_Unicode(PyObject *);
2273 int PyObject_Compare(PyObject *, PyObject *);
2274 PyObject * PyObject_RichCompare(PyObject *, PyObject *, int);
2275 int PyObject_RichCompareBool(PyObject *, PyObject *, int);
2276 PyObject * PyObject_GetAttrString(PyObject *, const char *);
2277 int PyObject_SetAttrString(PyObject *, const char *, PyObject *);
2278 int PyObject_HasAttrString(PyObject *, const char *);
2279 PyObject * PyObject_GetAttr(PyObject *, PyObject *);
2280 int PyObject_SetAttr(PyObject *, PyObject *, PyObject *);
2281 int PyObject_HasAttr(PyObject *, PyObject *);
2282 PyObject ** _PyObject_GetDictPtr(PyObject *);
2283 PyObject * PyObject_SelfIter(PyObject *);
2284 PyObject * PyObject_GenericGetAttr(PyObject *, PyObject *);
2285 int PyObject_GenericSetAttr(PyObject *,
2286 PyObject *, PyObject *);
2287 long PyObject_Hash(PyObject *);
2288 long PyObject_HashNotImplemented(PyObject *);
2289 int PyObject_IsTrue(PyObject *);
2290 int PyObject_Not(PyObject *);
2291 int PyCallable_Check(PyObject *);
2292 int PyNumber_Coerce(PyObject **, PyObject **);
2293 int PyNumber_CoerceEx(PyObject **, PyObject **);
2294 void PyObject_ClearWeakRefs(PyObject *);
2295 extern int _PyObject_SlotCompare(PyObject *, PyObject *);
2296 PyObject * PyObject_Dir(PyObject *);
2297 int Py_ReprEnter(PyObject *);
2298 void Py_ReprLeave(PyObject *);
2299 long _Py_HashDouble(double);
2300 long _Py_HashPointer(void*);
2301 void Py_IncRef(PyObject *);
2302 void Py_DecRef(PyObject *);
2303 extern PyObject _Py_NoneStruct;
2304 extern PyObject _Py_NotImplementedStruct;
2305 extern int _Py_SwappedOp[];
2306 void _PyTrash_deposit_object(PyObject*);
2307 void _PyTrash_destroy_chain(void);
2308 extern int _PyTrash_delete_nesting;
2309 extern PyObject * _PyTrash_delete_later;
2312 void * PyObject_Malloc(size_t);
2313 void * PyObject_Realloc(void *, size_t);
2314 void PyObject_Free(void *);
2315 PyObject * PyObject_Init(PyObject *, PyTypeObject *);
2316 PyVarObject * PyObject_InitVar(PyVarObject *,
2317 PyTypeObject *, Py_ssize_t);
2318 PyObject * _PyObject_New(PyTypeObject *);
2319 PyVarObject * _PyObject_NewVar(PyTypeObject *, Py_ssize_t);
2320 Py_ssize_t PyGC_Collect(void);
2321 PyVarObject * _PyObject_GC_Resize(PyVarObject *, Py_ssize_t);
2322 typedef union _gc_head {
2324 union _gc_head *gc_next;
2325 union _gc_head *gc_prev;
2330 extern PyGC_Head *_PyGC_generation0;
2331 PyObject * _PyObject_GC_Malloc(size_t);
2332 PyObject * _PyObject_GC_New(PyTypeObject *);
2333 PyVarObject * _PyObject_GC_NewVar(PyTypeObject *, Py_ssize_t);
2334 void PyObject_GC_Track(void *);
2335 void PyObject_GC_UnTrack(void *);
2336 void PyObject_GC_Del(void *);
2339 extern int Py_DebugFlag;
2340 extern int Py_VerboseFlag;
2341 extern int Py_InteractiveFlag;
2342 extern int Py_InspectFlag;
2343 extern int Py_OptimizeFlag;
2344 extern int Py_NoSiteFlag;
2345 extern int Py_BytesWarningFlag;
2346 extern int Py_UseClassExceptionsFlag;
2347 extern int Py_FrozenFlag;
2348 extern int Py_TabcheckFlag;
2349 extern int Py_UnicodeFlag;
2350 extern int Py_IgnoreEnvironmentFlag;
2351 extern int Py_DivisionWarningFlag;
2352 extern int Py_DontWriteBytecodeFlag;
2353 extern int Py_NoUserSiteDirectory;
2354 extern int _Py_QnewFlag;
2355 extern int Py_Py3kWarningFlag;
2356 void Py_FatalError(const char *message);
2361 _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)),
2362 _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)),
2363 _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)),
2364 _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)),
2365 _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)),
2366 _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)),
2367 _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)),
2368 _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)),
2369 _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)),
2370 _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)),
2371 _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)),
2372 _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8))
2374 extern __const unsigned short int **__ctype_b_loc (void)
2375 throw () __attribute__ ((__const));
2376 extern __const __int32_t **__ctype_tolower_loc (void)
2377 throw () __attribute__ ((__const));
2378 extern __const __int32_t **__ctype_toupper_loc (void)
2379 throw () __attribute__ ((__const));
2380 extern int isalnum (int) throw ();
2381 extern int isalpha (int) throw ();
2382 extern int iscntrl (int) throw ();
2383 extern int isdigit (int) throw ();
2384 extern int islower (int) throw ();
2385 extern int isgraph (int) throw ();
2386 extern int isprint (int) throw ();
2387 extern int ispunct (int) throw ();
2388 extern int isspace (int) throw ();
2389 extern int isupper (int) throw ();
2390 extern int isxdigit (int) throw ();
2391 extern int tolower (int __c) throw ();
2392 extern int toupper (int __c) throw ();
2393 extern int isblank (int) throw ();
2394 extern int isctype (int __c, int __mask) throw ();
2395 extern int isascii (int __c) throw ();
2396 extern int toascii (int __c) throw ();
2397 extern int _toupper (int) throw ();
2398 extern int _tolower (int) throw ();
2399 extern int isalnum_l (int, __locale_t) throw ();
2400 extern int isalpha_l (int, __locale_t) throw ();
2401 extern int iscntrl_l (int, __locale_t) throw ();
2402 extern int isdigit_l (int, __locale_t) throw ();
2403 extern int islower_l (int, __locale_t) throw ();
2404 extern int isgraph_l (int, __locale_t) throw ();
2405 extern int isprint_l (int, __locale_t) throw ();
2406 extern int ispunct_l (int, __locale_t) throw ();
2407 extern int isspace_l (int, __locale_t) throw ();
2408 extern int isupper_l (int, __locale_t) throw ();
2409 extern int isxdigit_l (int, __locale_t) throw ();
2410 extern int isblank_l (int, __locale_t) throw ();
2411 extern int __tolower_l (int __c, __locale_t __l) throw ();
2412 extern int tolower_l (int __c, __locale_t __l) throw ();
2413 extern int __toupper_l (int __c, __locale_t __l) throw ();
2414 extern int toupper_l (int __c, __locale_t __l) throw ();
2416 typedef unsigned int wint_t;
2417 typedef __mbstate_t mbstate_t;
2420 extern wchar_t *wcscpy (wchar_t *__restrict __dest,
2421 __const wchar_t *__restrict __src) throw ();
2422 extern wchar_t *wcsncpy (wchar_t *__restrict __dest,
2423 __const wchar_t *__restrict __src, size_t __n)
2425 extern wchar_t *wcscat (wchar_t *__restrict __dest,
2426 __const wchar_t *__restrict __src) throw ();
2427 extern wchar_t *wcsncat (wchar_t *__restrict __dest,
2428 __const wchar_t *__restrict __src, size_t __n)
2430 extern int wcscmp (__const wchar_t *__s1, __const wchar_t *__s2)
2431 throw () __attribute__ ((__pure__));
2432 extern int wcsncmp (__const wchar_t *__s1, __const wchar_t *__s2, size_t __n)
2433 throw () __attribute__ ((__pure__));
2434 extern int wcscasecmp (__const wchar_t *__s1, __const wchar_t *__s2) throw ();
2435 extern int wcsncasecmp (__const wchar_t *__s1, __const wchar_t *__s2,
2436 size_t __n) throw ();
2437 extern int wcscasecmp_l (__const wchar_t *__s1, __const wchar_t *__s2,
2438 __locale_t __loc) throw ();
2439 extern int wcsncasecmp_l (__const wchar_t *__s1, __const wchar_t *__s2,
2440 size_t __n, __locale_t __loc) throw ();
2441 extern int wcscoll (__const wchar_t *__s1, __const wchar_t *__s2) throw ();
2442 extern size_t wcsxfrm (wchar_t *__restrict __s1,
2443 __const wchar_t *__restrict __s2, size_t __n) throw ();
2444 extern int wcscoll_l (__const wchar_t *__s1, __const wchar_t *__s2,
2445 __locale_t __loc) throw ();
2446 extern size_t wcsxfrm_l (wchar_t *__s1, __const wchar_t *__s2,
2447 size_t __n, __locale_t __loc) throw ();
2448 extern wchar_t *wcsdup (__const wchar_t *__s) throw () __attribute__ ((__malloc__));
2449 extern "C++" wchar_t *wcschr (wchar_t *__wcs, wchar_t __wc)
2450 throw () __asm ("wcschr") __attribute__ ((__pure__));
2451 extern "C++" __const wchar_t *wcschr (__const wchar_t *__wcs, wchar_t __wc)
2452 throw () __asm ("wcschr") __attribute__ ((__pure__));
2453 extern "C++" wchar_t *wcsrchr (wchar_t *__wcs, wchar_t __wc)
2454 throw () __asm ("wcsrchr") __attribute__ ((__pure__));
2455 extern "C++" __const wchar_t *wcsrchr (__const wchar_t *__wcs, wchar_t __wc)
2456 throw () __asm ("wcsrchr") __attribute__ ((__pure__));
2457 extern wchar_t *wcschrnul (__const wchar_t *__s, wchar_t __wc)
2458 throw () __attribute__ ((__pure__));
2459 extern size_t wcscspn (__const wchar_t *__wcs, __const wchar_t *__reject)
2460 throw () __attribute__ ((__pure__));
2461 extern size_t wcsspn (__const wchar_t *__wcs, __const wchar_t *__accept)
2462 throw () __attribute__ ((__pure__));
2463 extern "C++" wchar_t *wcspbrk (wchar_t *__wcs, __const wchar_t *__accept)
2464 throw () __asm ("wcspbrk") __attribute__ ((__pure__));
2465 extern "C++" __const wchar_t *wcspbrk (__const wchar_t *__wcs,
2466 __const wchar_t *__accept)
2467 throw () __asm ("wcspbrk") __attribute__ ((__pure__));
2468 extern "C++" wchar_t *wcsstr (wchar_t *__haystack, __const wchar_t *__needle)
2469 throw () __asm ("wcsstr") __attribute__ ((__pure__));
2470 extern "C++" __const wchar_t *wcsstr (__const wchar_t *__haystack,
2471 __const wchar_t *__needle)
2472 throw () __asm ("wcsstr") __attribute__ ((__pure__));
2473 extern wchar_t *wcstok (wchar_t *__restrict __s,
2474 __const wchar_t *__restrict __delim,
2475 wchar_t **__restrict __ptr) throw ();
2476 extern size_t wcslen (__const wchar_t *__s) throw () __attribute__ ((__pure__));
2477 extern "C++" wchar_t *wcswcs (wchar_t *__haystack, __const wchar_t *__needle)
2478 throw () __asm ("wcswcs") __attribute__ ((__pure__));
2479 extern "C++" __const wchar_t *wcswcs (__const wchar_t *__haystack,
2480 __const wchar_t *__needle)
2481 throw () __asm ("wcswcs") __attribute__ ((__pure__));
2482 extern size_t wcsnlen (__const wchar_t *__s, size_t __maxlen)
2483 throw () __attribute__ ((__pure__));
2484 extern "C++" wchar_t *wmemchr (wchar_t *__s, wchar_t __c, size_t __n)
2485 throw () __asm ("wmemchr") __attribute__ ((__pure__));
2486 extern "C++" __const wchar_t *wmemchr (__const wchar_t *__s, wchar_t __c,
2488 throw () __asm ("wmemchr") __attribute__ ((__pure__));
2489 extern int wmemcmp (__const wchar_t *__restrict __s1,
2490 __const wchar_t *__restrict __s2, size_t __n)
2491 throw () __attribute__ ((__pure__));
2492 extern wchar_t *wmemcpy (wchar_t *__restrict __s1,
2493 __const wchar_t *__restrict __s2, size_t __n) throw ();
2494 extern wchar_t *wmemmove (wchar_t *__s1, __const wchar_t *__s2, size_t __n)
2496 extern wchar_t *wmemset (wchar_t *__s, wchar_t __c, size_t __n) throw ();
2497 extern wchar_t *wmempcpy (wchar_t *__restrict __s1,
2498 __const wchar_t *__restrict __s2, size_t __n)
2500 extern wint_t btowc (int __c) throw ();
2501 extern int wctob (wint_t __c) throw ();
2502 extern int mbsinit (__const mbstate_t *__ps) throw () __attribute__ ((__pure__));
2503 extern size_t mbrtowc (wchar_t *__restrict __pwc,
2504 __const char *__restrict __s, size_t __n,
2505 mbstate_t *__p) throw ();
2506 extern size_t wcrtomb (char *__restrict __s, wchar_t __wc,
2507 mbstate_t *__restrict __ps) throw ();
2508 extern size_t __mbrlen (__const char *__restrict __s, size_t __n,
2509 mbstate_t *__restrict __ps) throw ();
2510 extern size_t mbrlen (__const char *__restrict __s, size_t __n,
2511 mbstate_t *__restrict __ps) throw ();
2512 extern size_t mbsrtowcs (wchar_t *__restrict __dst,
2513 __const char **__restrict __src, size_t __len,
2514 mbstate_t *__restrict __ps) throw ();
2515 extern size_t wcsrtombs (char *__restrict __dst,
2516 __const wchar_t **__restrict __src, size_t __len,
2517 mbstate_t *__restrict __ps) throw ();
2518 extern size_t mbsnrtowcs (wchar_t *__restrict __dst,
2519 __const char **__restrict __src, size_t __nmc,
2520 size_t __len, mbstate_t *__restrict __ps) throw ();
2521 extern size_t wcsnrtombs (char *__restrict __dst,
2522 __const wchar_t **__restrict __src,
2523 size_t __nwc, size_t __len,
2524 mbstate_t *__restrict __ps) throw ();
2525 extern int wcwidth (wchar_t __c) throw ();
2526 extern int wcswidth (__const wchar_t *__s, size_t __n) throw ();
2527 extern double wcstod (__const wchar_t *__restrict __nptr,
2528 wchar_t **__restrict __endptr) throw ();
2529 extern float wcstof (__const wchar_t *__restrict __nptr,
2530 wchar_t **__restrict __endptr) throw ();
2531 extern long double wcstold (__const wchar_t *__restrict __nptr,
2532 wchar_t **__restrict __endptr) throw ();
2533 extern long int wcstol (__const wchar_t *__restrict __nptr,
2534 wchar_t **__restrict __endptr, int __base) throw ();
2535 extern unsigned long int wcstoul (__const wchar_t *__restrict __nptr,
2536 wchar_t **__restrict __endptr, int __base)
2539 extern long long int wcstoll (__const wchar_t *__restrict __nptr,
2540 wchar_t **__restrict __endptr, int __base)
2543 extern unsigned long long int wcstoull (__const wchar_t *__restrict __nptr,
2544 wchar_t **__restrict __endptr,
2545 int __base) throw ();
2547 extern long long int wcstoq (__const wchar_t *__restrict __nptr,
2548 wchar_t **__restrict __endptr, int __base)
2551 extern unsigned long long int wcstouq (__const wchar_t *__restrict __nptr,
2552 wchar_t **__restrict __endptr,
2553 int __base) throw ();
2554 extern long int wcstol_l (__const wchar_t *__restrict __nptr,
2555 wchar_t **__restrict __endptr, int __base,
2556 __locale_t __loc) throw ();
2557 extern unsigned long int wcstoul_l (__const wchar_t *__restrict __nptr,
2558 wchar_t **__restrict __endptr,
2559 int __base, __locale_t __loc) throw ();
2561 extern long long int wcstoll_l (__const wchar_t *__restrict __nptr,
2562 wchar_t **__restrict __endptr,
2563 int __base, __locale_t __loc) throw ();
2565 extern unsigned long long int wcstoull_l (__const wchar_t *__restrict __nptr,
2566 wchar_t **__restrict __endptr,
2567 int __base, __locale_t __loc)
2569 extern double wcstod_l (__const wchar_t *__restrict __nptr,
2570 wchar_t **__restrict __endptr, __locale_t __loc)
2572 extern float wcstof_l (__const wchar_t *__restrict __nptr,
2573 wchar_t **__restrict __endptr, __locale_t __loc)
2575 extern long double wcstold_l (__const wchar_t *__restrict __nptr,
2576 wchar_t **__restrict __endptr,
2577 __locale_t __loc) throw ();
2578 extern wchar_t *wcpcpy (wchar_t *__dest, __const wchar_t *__src) throw ();
2579 extern wchar_t *wcpncpy (wchar_t *__dest, __const wchar_t *__src, size_t __n)
2581 extern __FILE *open_wmemstream (wchar_t **__bufloc, size_t *__sizeloc) throw ();
2582 extern int fwide (__FILE *__fp, int __mode) throw ();
2583 extern int fwprintf (__FILE *__restrict __stream,
2584 __const wchar_t *__restrict __format, ...)
2586 extern int wprintf (__const wchar_t *__restrict __format, ...)
2588 extern int swprintf (wchar_t *__restrict __s, size_t __n,
2589 __const wchar_t *__restrict __format, ...)
2591 extern int vfwprintf (__FILE *__restrict __s,
2592 __const wchar_t *__restrict __format,
2593 __gnuc_va_list __arg)
2595 extern int vwprintf (__const wchar_t *__restrict __format,
2596 __gnuc_va_list __arg)
2598 extern int vswprintf (wchar_t *__restrict __s, size_t __n,
2599 __const wchar_t *__restrict __format,
2600 __gnuc_va_list __arg)
2602 extern int fwscanf (__FILE *__restrict __stream,
2603 __const wchar_t *__restrict __format, ...)
2605 extern int wscanf (__const wchar_t *__restrict __format, ...)
2607 extern int swscanf (__const wchar_t *__restrict __s,
2608 __const wchar_t *__restrict __format, ...)
2610 extern int vfwscanf (__FILE *__restrict __s,
2611 __const wchar_t *__restrict __format,
2612 __gnuc_va_list __arg)
2614 extern int vwscanf (__const wchar_t *__restrict __format,
2615 __gnuc_va_list __arg)
2617 extern int vswscanf (__const wchar_t *__restrict __s,
2618 __const wchar_t *__restrict __format,
2619 __gnuc_va_list __arg)
2621 extern wint_t fgetwc (__FILE *__stream);
2622 extern wint_t getwc (__FILE *__stream);
2623 extern wint_t getwchar (void);
2624 extern wint_t fputwc (wchar_t __wc, __FILE *__stream);
2625 extern wint_t putwc (wchar_t __wc, __FILE *__stream);
2626 extern wint_t putwchar (wchar_t __wc);
2627 extern wchar_t *fgetws (wchar_t *__restrict __ws, int __n,
2628 __FILE *__restrict __stream);
2629 extern int fputws (__const wchar_t *__restrict __ws,
2630 __FILE *__restrict __stream);
2631 extern wint_t ungetwc (wint_t __wc, __FILE *__stream);
2632 extern wint_t getwc_unlocked (__FILE *__stream);
2633 extern wint_t getwchar_unlocked (void);
2634 extern wint_t fgetwc_unlocked (__FILE *__stream);
2635 extern wint_t fputwc_unlocked (wchar_t __wc, __FILE *__stream);
2636 extern wint_t putwc_unlocked (wchar_t __wc, __FILE *__stream);
2637 extern wint_t putwchar_unlocked (wchar_t __wc);
2638 extern wchar_t *fgetws_unlocked (wchar_t *__restrict __ws, int __n,
2639 __FILE *__restrict __stream);
2640 extern int fputws_unlocked (__const wchar_t *__restrict __ws,
2641 __FILE *__restrict __stream);
2642 extern size_t wcsftime (wchar_t *__restrict __s, size_t __maxsize,
2643 __const wchar_t *__restrict __format,
2644 __const struct tm *__restrict __tp) throw ();
2645 extern size_t wcsftime_l (wchar_t *__restrict __s, size_t __maxsize,
2646 __const wchar_t *__restrict __format,
2647 __const struct tm *__restrict __tp,
2648 __locale_t __loc) throw ();
2650 typedef unsigned int Py_UCS4;
2651 typedef Py_UCS4 Py_UNICODE;
2654 Py_ssize_t ob_refcnt; struct _typeobject *ob_type;
2660 extern PyTypeObject PyUnicode_Type;
2661 PyObject* PyUnicodeUCS4_FromUnicode(
2662 const Py_UNICODE *u,
2665 PyObject* PyUnicodeUCS4_FromStringAndSize(
2669 PyObject* PyUnicodeUCS4_FromString(
2672 Py_UNICODE * PyUnicodeUCS4_AsUnicode(
2675 Py_ssize_t PyUnicodeUCS4_GetSize(
2678 Py_UNICODE PyUnicodeUCS4_GetMax(void);
2679 int PyUnicodeUCS4_Resize(
2683 PyObject* PyUnicodeUCS4_FromEncodedObject(
2684 register PyObject *obj,
2685 const char *encoding,
2688 PyObject* PyUnicodeUCS4_FromObject(
2689 register PyObject *obj
2691 PyObject * PyUnicodeUCS4_FromFormatV(const char*, va_list);
2692 PyObject * PyUnicodeUCS4_FromFormat(const char*, ...);
2693 PyObject * _PyUnicode_FormatAdvanced(PyObject *obj,
2694 Py_UNICODE *format_spec,
2695 Py_ssize_t format_spec_len);
2696 PyObject* PyUnicodeUCS4_FromWideChar(
2697 register const wchar_t *w,
2700 Py_ssize_t PyUnicodeUCS4_AsWideChar(
2701 PyUnicodeObject *unicode,
2702 register wchar_t *w,
2705 PyObject* PyUnicodeUCS4_FromOrdinal(int ordinal);
2706 int PyUnicodeUCS4_ClearFreelist(void);
2707 PyObject * _PyUnicodeUCS4_AsDefaultEncodedString(
2708 PyObject *, const char *);
2709 const char* PyUnicodeUCS4_GetDefaultEncoding(void);
2710 int PyUnicodeUCS4_SetDefaultEncoding(
2711 const char *encoding
2713 PyObject* PyUnicodeUCS4_Decode(
2716 const char *encoding,
2719 PyObject* PyUnicodeUCS4_Encode(
2720 const Py_UNICODE *s,
2722 const char *encoding,
2725 PyObject* PyUnicodeUCS4_AsEncodedObject(
2727 const char *encoding,
2730 PyObject* PyUnicodeUCS4_AsEncodedString(
2732 const char *encoding,
2735 PyObject* PyUnicode_BuildEncodingMap(
2738 PyObject* PyUnicode_DecodeUTF7(
2743 PyObject* PyUnicode_DecodeUTF7Stateful(
2747 Py_ssize_t *consumed
2749 PyObject* PyUnicode_EncodeUTF7(
2750 const Py_UNICODE *data,
2753 int encodeWhiteSpace,
2756 PyObject* PyUnicodeUCS4_DecodeUTF8(
2761 PyObject* PyUnicodeUCS4_DecodeUTF8Stateful(
2765 Py_ssize_t *consumed
2767 PyObject* PyUnicodeUCS4_AsUTF8String(
2770 PyObject* PyUnicodeUCS4_EncodeUTF8(
2771 const Py_UNICODE *data,
2775 PyObject* PyUnicodeUCS4_DecodeUTF32(
2781 PyObject* PyUnicodeUCS4_DecodeUTF32Stateful(
2786 Py_ssize_t *consumed
2788 PyObject* PyUnicodeUCS4_AsUTF32String(
2791 PyObject* PyUnicodeUCS4_EncodeUTF32(
2792 const Py_UNICODE *data,
2797 PyObject* PyUnicodeUCS4_DecodeUTF16(
2803 PyObject* PyUnicodeUCS4_DecodeUTF16Stateful(
2808 Py_ssize_t *consumed
2810 PyObject* PyUnicodeUCS4_AsUTF16String(
2813 PyObject* PyUnicodeUCS4_EncodeUTF16(
2814 const Py_UNICODE *data,
2819 PyObject* PyUnicodeUCS4_DecodeUnicodeEscape(
2824 PyObject* PyUnicodeUCS4_AsUnicodeEscapeString(
2827 PyObject* PyUnicodeUCS4_EncodeUnicodeEscape(
2828 const Py_UNICODE *data,
2831 PyObject* PyUnicodeUCS4_DecodeRawUnicodeEscape(
2836 PyObject* PyUnicodeUCS4_AsRawUnicodeEscapeString(
2839 PyObject* PyUnicodeUCS4_EncodeRawUnicodeEscape(
2840 const Py_UNICODE *data,
2843 PyObject *_PyUnicode_DecodeUnicodeInternal(
2848 PyObject* PyUnicodeUCS4_DecodeLatin1(
2853 PyObject* PyUnicodeUCS4_AsLatin1String(
2856 PyObject* PyUnicodeUCS4_EncodeLatin1(
2857 const Py_UNICODE *data,
2861 PyObject* PyUnicodeUCS4_DecodeASCII(
2866 PyObject* PyUnicodeUCS4_AsASCIIString(
2869 PyObject* PyUnicodeUCS4_EncodeASCII(
2870 const Py_UNICODE *data,
2874 PyObject* PyUnicodeUCS4_DecodeCharmap(
2880 PyObject* PyUnicodeUCS4_AsCharmapString(
2884 PyObject* PyUnicodeUCS4_EncodeCharmap(
2885 const Py_UNICODE *data,
2890 PyObject * PyUnicodeUCS4_TranslateCharmap(
2891 const Py_UNICODE *data,
2896 int PyUnicodeUCS4_EncodeDecimal(
2902 PyObject* PyUnicodeUCS4_Concat(
2906 PyObject* PyUnicodeUCS4_Split(
2911 PyObject* PyUnicodeUCS4_Splitlines(
2915 PyObject* PyUnicodeUCS4_Partition(
2919 PyObject* PyUnicodeUCS4_RPartition(
2923 PyObject* PyUnicodeUCS4_RSplit(
2928 PyObject * PyUnicodeUCS4_Translate(
2933 PyObject* PyUnicodeUCS4_Join(
2934 PyObject *separator,
2937 Py_ssize_t PyUnicodeUCS4_Tailmatch(
2944 Py_ssize_t PyUnicodeUCS4_Find(
2951 Py_ssize_t PyUnicodeUCS4_Count(
2957 PyObject * PyUnicodeUCS4_Replace(
2963 int PyUnicodeUCS4_Compare(
2967 PyObject * PyUnicodeUCS4_RichCompare(
2972 PyObject * PyUnicodeUCS4_Format(
2976 int PyUnicodeUCS4_Contains(
2977 PyObject *container,
2980 PyObject * _PyUnicode_XStrip(
2981 PyUnicodeObject *self,
2985 extern const unsigned char _Py_ascii_whitespace[];
2986 int _PyUnicodeUCS4_IsLowercase(
2989 int _PyUnicodeUCS4_IsUppercase(
2992 int _PyUnicodeUCS4_IsTitlecase(
2995 int _PyUnicodeUCS4_IsWhitespace(
2998 int _PyUnicodeUCS4_IsLinebreak(
3001 Py_UNICODE _PyUnicodeUCS4_ToLowercase(
3004 Py_UNICODE _PyUnicodeUCS4_ToUppercase(
3007 Py_UNICODE _PyUnicodeUCS4_ToTitlecase(
3010 int _PyUnicodeUCS4_ToDecimalDigit(
3013 int _PyUnicodeUCS4_ToDigit(
3016 double _PyUnicodeUCS4_ToNumeric(
3019 int _PyUnicodeUCS4_IsDecimalDigit(
3022 int _PyUnicodeUCS4_IsDigit(
3025 int _PyUnicodeUCS4_IsNumeric(
3028 int _PyUnicodeUCS4_IsAlpha(
3034 Py_ssize_t ob_refcnt; struct _typeobject *ob_type;
3037 extern PyTypeObject PyInt_Type;
3038 PyObject * PyInt_FromString(char*, char**, int);
3039 PyObject * PyInt_FromUnicode(Py_UNICODE*, Py_ssize_t, int);
3040 PyObject * PyInt_FromLong(long);
3041 PyObject * PyInt_FromSize_t(size_t);
3042 PyObject * PyInt_FromSsize_t(Py_ssize_t);
3043 long PyInt_AsLong(PyObject *);
3044 Py_ssize_t PyInt_AsSsize_t(PyObject *);
3045 unsigned long PyInt_AsUnsignedLongMask(PyObject *);
3046 unsigned long long PyInt_AsUnsignedLongLongMask(PyObject *);
3047 long PyInt_GetMax(void);
3048 unsigned long PyOS_strtoul(char *, char **, int);
3049 long PyOS_strtol(char *, char **, int);
3050 int PyInt_ClearFreeList(void);
3051 PyObject* _PyInt_Format(PyIntObject* v, int base, int newstyle);
3052 PyObject * _PyInt_FormatAdvanced(PyObject *obj,
3054 Py_ssize_t format_spec_len);
3057 typedef PyIntObject PyBoolObject;
3058 extern PyTypeObject PyBool_Type;
3059 extern PyIntObject _Py_ZeroStruct, _Py_TrueStruct;
3060 PyObject * PyBool_FromLong(long);
3063 typedef struct _longobject PyLongObject;
3064 extern PyTypeObject PyLong_Type;
3065 PyObject * PyLong_FromLong(long);
3066 PyObject * PyLong_FromUnsignedLong(unsigned long);
3067 PyObject * PyLong_FromDouble(double);
3068 PyObject * PyLong_FromSize_t(size_t);
3069 PyObject * PyLong_FromSsize_t(Py_ssize_t);
3070 long PyLong_AsLong(PyObject *);
3071 unsigned long PyLong_AsUnsignedLong(PyObject *);
3072 unsigned long PyLong_AsUnsignedLongMask(PyObject *);
3073 Py_ssize_t PyLong_AsSsize_t(PyObject *);
3074 extern int _PyLong_DigitValue[256];
3075 double _PyLong_AsScaledDouble(PyObject *vv, int *e);
3076 double PyLong_AsDouble(PyObject *);
3077 PyObject * PyLong_FromVoidPtr(void *);
3078 void * PyLong_AsVoidPtr(PyObject *);
3079 PyObject * PyLong_FromLongLong(long long);
3080 PyObject * PyLong_FromUnsignedLongLong(unsigned long long);
3081 long long PyLong_AsLongLong(PyObject *);
3082 unsigned long long PyLong_AsUnsignedLongLong(PyObject *);
3083 unsigned long long PyLong_AsUnsignedLongLongMask(PyObject *);
3084 PyObject * PyLong_FromString(char *, char **, int);
3085 PyObject * PyLong_FromUnicode(Py_UNICODE*, Py_ssize_t, int);
3086 int _PyLong_Sign(PyObject *v);
3087 size_t _PyLong_NumBits(PyObject *v);
3088 PyObject * _PyLong_FromByteArray(
3089 const unsigned char* bytes, size_t n,
3090 int little_endian, int is_signed);
3091 int _PyLong_AsByteArray(PyLongObject* v,
3092 unsigned char* bytes, size_t n,
3093 int little_endian, int is_signed);
3094 PyObject * _PyLong_Format(PyObject *aa, int base, int addL, int newstyle);
3095 PyObject * _PyLong_FormatAdvanced(PyObject *obj,
3097 Py_ssize_t format_spec_len);
3101 Py_ssize_t ob_refcnt; struct _typeobject *ob_type;
3104 extern PyTypeObject PyFloat_Type;
3105 double PyFloat_GetMax(void);
3106 double PyFloat_GetMin(void);
3107 PyObject * PyFloat_GetInfo(void);
3108 PyObject * PyFloat_FromString(PyObject*, char** junk);
3109 PyObject * PyFloat_FromDouble(double);
3110 double PyFloat_AsDouble(PyObject *);
3111 void PyFloat_AsReprString(char*, PyFloatObject *v);
3112 void PyFloat_AsString(char*, PyFloatObject *v);
3113 int _PyFloat_Pack4(double x, unsigned char *p, int le);
3114 int _PyFloat_Pack8(double x, unsigned char *p, int le);
3115 int _PyFloat_Digits(char *buf, double v, int *signum);
3116 void _PyFloat_DigitsInit(void);
3117 double _PyFloat_Unpack4(const unsigned char *p, int le);
3118 double _PyFloat_Unpack8(const unsigned char *p, int le);
3119 int PyFloat_ClearFreeList(void);
3120 PyObject * _PyFloat_FormatAdvanced(PyObject *obj,
3122 Py_ssize_t format_spec_len);
3129 Py_complex _Py_c_sum(Py_complex, Py_complex);
3130 Py_complex _Py_c_diff(Py_complex, Py_complex);
3131 Py_complex _Py_c_neg(Py_complex);
3132 Py_complex _Py_c_prod(Py_complex, Py_complex);
3133 Py_complex _Py_c_quot(Py_complex, Py_complex);
3134 Py_complex _Py_c_pow(Py_complex, Py_complex);
3135 double _Py_c_abs(Py_complex);
3137 Py_ssize_t ob_refcnt; struct _typeobject *ob_type;
3140 extern PyTypeObject PyComplex_Type;
3141 PyObject * PyComplex_FromCComplex(Py_complex);
3142 PyObject * PyComplex_FromDoubles(double real, double imag);
3143 double PyComplex_RealAsDouble(PyObject *op);
3144 double PyComplex_ImagAsDouble(PyObject *op);
3145 Py_complex PyComplex_AsCComplex(PyObject *op);
3148 extern PyTypeObject PyRange_Type;
3152 Py_ssize_t ob_refcnt; struct _typeobject *ob_type; Py_ssize_t ob_size;
3157 extern PyTypeObject PyBaseString_Type;
3158 extern PyTypeObject PyString_Type;
3159 PyObject * PyString_FromStringAndSize(const char *, Py_ssize_t);
3160 PyObject * PyString_FromString(const char *);
3161 PyObject * PyString_FromFormatV(const char*, va_list)
3162 __attribute__((format(printf, 1, 0)));
3163 PyObject * PyString_FromFormat(const char*, ...)
3164 __attribute__((format(printf, 1, 2)));
3165 Py_ssize_t PyString_Size(PyObject *);
3166 char * PyString_AsString(PyObject *);
3167 PyObject * PyString_Repr(PyObject *, int);
3168 void PyString_Concat(PyObject **, PyObject *);
3169 void PyString_ConcatAndDel(PyObject **, PyObject *);
3170 int _PyString_Resize(PyObject **, Py_ssize_t);
3171 int _PyString_Eq(PyObject *, PyObject*);
3172 PyObject * PyString_Format(PyObject *, PyObject *);
3173 PyObject * _PyString_FormatLong(PyObject*, int, int,
3175 PyObject * PyString_DecodeEscape(const char *, Py_ssize_t,
3176 const char *, Py_ssize_t,
3178 void PyString_InternInPlace(PyObject **);
3179 void PyString_InternImmortal(PyObject **);
3180 PyObject * PyString_InternFromString(const char *);
3181 void _Py_ReleaseInternedStrings(void);
3182 PyObject * _PyString_Join(PyObject *sep, PyObject *x);
3183 PyObject* PyString_Decode(
3186 const char *encoding,
3189 PyObject* PyString_Encode(
3192 const char *encoding,
3195 PyObject* PyString_AsEncodedObject(
3197 const char *encoding,
3200 PyObject* PyString_AsEncodedString(
3202 const char *encoding,
3205 PyObject* PyString_AsDecodedObject(
3207 const char *encoding,
3210 PyObject* PyString_AsDecodedString(
3212 const char *encoding,
3215 int PyString_AsStringAndSize(
3216 register PyObject *obj,
3218 register Py_ssize_t *len
3220 int _PyString_InsertThousandsGrouping(char *buffer,
3221 Py_ssize_t n_buffer,
3222 Py_ssize_t n_digits,
3223 Py_ssize_t buf_size,
3225 int append_zero_char);
3226 PyObject * _PyBytes_FormatAdvanced(PyObject *obj,
3228 Py_ssize_t format_spec_len);
3231 extern PyTypeObject PyBuffer_Type;
3232 PyObject * PyBuffer_FromObject(PyObject *base,
3233 Py_ssize_t offset, Py_ssize_t size);
3234 PyObject * PyBuffer_FromReadWriteObject(PyObject *base,
3237 PyObject * PyBuffer_FromMemory(void *ptr, Py_ssize_t size);
3238 PyObject * PyBuffer_FromReadWriteMemory(void *ptr, Py_ssize_t size);
3239 PyObject * PyBuffer_New(Py_ssize_t size);
3243 Py_ssize_t ob_refcnt; struct _typeobject *ob_type; Py_ssize_t ob_size;
3245 Py_ssize_t ob_alloc;
3247 } PyByteArrayObject;
3248 extern PyTypeObject PyByteArray_Type;
3249 extern PyTypeObject PyByteArrayIter_Type;
3250 PyObject * PyByteArray_FromObject(PyObject *);
3251 PyObject * PyByteArray_Concat(PyObject *, PyObject *);
3252 PyObject * PyByteArray_FromStringAndSize(const char *, Py_ssize_t);
3253 Py_ssize_t PyByteArray_Size(PyObject *);
3254 char * PyByteArray_AsString(PyObject *);
3255 int PyByteArray_Resize(PyObject *, Py_ssize_t);
3256 extern char _PyByteArray_empty_string[];
3260 Py_ssize_t ob_refcnt; struct _typeobject *ob_type; Py_ssize_t ob_size;
3261 PyObject *ob_item[1];
3263 extern PyTypeObject PyTuple_Type;
3264 PyObject * PyTuple_New(Py_ssize_t size);
3265 Py_ssize_t PyTuple_Size(PyObject *);
3266 PyObject * PyTuple_GetItem(PyObject *, Py_ssize_t);
3267 int PyTuple_SetItem(PyObject *, Py_ssize_t, PyObject *);
3268 PyObject * PyTuple_GetSlice(PyObject *, Py_ssize_t, Py_ssize_t);
3269 int _PyTuple_Resize(PyObject **, Py_ssize_t);
3270 PyObject * PyTuple_Pack(Py_ssize_t, ...);
3271 int PyTuple_ClearFreeList(void);
3275 Py_ssize_t ob_refcnt; struct _typeobject *ob_type; Py_ssize_t ob_size;
3277 Py_ssize_t allocated;
3279 extern PyTypeObject PyList_Type;
3280 PyObject * PyList_New(Py_ssize_t size);
3281 Py_ssize_t PyList_Size(PyObject *);
3282 PyObject * PyList_GetItem(PyObject *, Py_ssize_t);
3283 int PyList_SetItem(PyObject *, Py_ssize_t, PyObject *);
3284 int PyList_Insert(PyObject *, Py_ssize_t, PyObject *);
3285 int PyList_Append(PyObject *, PyObject *);
3286 PyObject * PyList_GetSlice(PyObject *, Py_ssize_t, Py_ssize_t);
3287 int PyList_SetSlice(PyObject *, Py_ssize_t, Py_ssize_t, PyObject *);
3288 int PyList_Sort(PyObject *);
3289 int PyList_Reverse(PyObject *);
3290 PyObject * PyList_AsTuple(PyObject *);
3291 PyObject * _PyList_Extend(PyListObject *, PyObject *);
3299 typedef struct _dictobject PyDictObject;
3300 struct _dictobject {
3301 Py_ssize_t ob_refcnt; struct _typeobject *ob_type;
3305 PyDictEntry *ma_table;
3306 PyDictEntry *(*ma_lookup)(PyDictObject *mp, PyObject *key, long hash);
3307 PyDictEntry ma_smalltable[8];
3309 extern PyTypeObject PyDict_Type;
3310 PyObject * PyDict_New(void);
3311 PyObject * PyDict_GetItem(PyObject *mp, PyObject *key);
3312 int PyDict_SetItem(PyObject *mp, PyObject *key, PyObject *item);
3313 int PyDict_DelItem(PyObject *mp, PyObject *key);
3314 void PyDict_Clear(PyObject *mp);
3316 PyObject *mp, Py_ssize_t *pos, PyObject **key, PyObject **value);
3318 PyObject *mp, Py_ssize_t *pos, PyObject **key, PyObject **value, long *hash);
3319 PyObject * PyDict_Keys(PyObject *mp);
3320 PyObject * PyDict_Values(PyObject *mp);
3321 PyObject * PyDict_Items(PyObject *mp);
3322 Py_ssize_t PyDict_Size(PyObject *mp);
3323 PyObject * PyDict_Copy(PyObject *mp);
3324 int PyDict_Contains(PyObject *mp, PyObject *key);
3325 int _PyDict_Contains(PyObject *mp, PyObject *key, long hash);
3326 PyObject * _PyDict_NewPresized(Py_ssize_t minused);
3327 int PyDict_Update(PyObject *mp, PyObject *other);
3328 int PyDict_Merge(PyObject *mp,
3331 int PyDict_MergeFromSeq2(PyObject *d,
3334 PyObject * PyDict_GetItemString(PyObject *dp, const char *key);
3335 int PyDict_SetItemString(PyObject *dp, const char *key, PyObject *item);
3336 int PyDict_DelItemString(PyObject *dp, const char *key);
3339 extern PyTypeObject PyEnum_Type;
3340 extern PyTypeObject PyReversed_Type;
3347 typedef struct _setobject PySetObject;
3349 Py_ssize_t ob_refcnt; struct _typeobject *ob_type;
3354 setentry *(*lookup)(PySetObject *so, PyObject *key, long hash);
3355 setentry smalltable[8];
3357 PyObject *weakreflist;
3359 extern PyTypeObject PySet_Type;
3360 extern PyTypeObject PyFrozenSet_Type;
3361 PyObject * PySet_New(PyObject *);
3362 PyObject * PyFrozenSet_New(PyObject *);
3363 Py_ssize_t PySet_Size(PyObject *anyset);
3364 int PySet_Clear(PyObject *set);
3365 int PySet_Contains(PyObject *anyset, PyObject *key);
3366 int PySet_Discard(PyObject *set, PyObject *key);
3367 int PySet_Add(PyObject *set, PyObject *key);
3368 int _PySet_Next(PyObject *set, Py_ssize_t *pos, PyObject **key);
3369 int _PySet_NextEntry(PyObject *set, Py_ssize_t *pos, PyObject **key, long *hash);
3370 PyObject * PySet_Pop(PyObject *set);
3371 int _PySet_Update(PyObject *set, PyObject *iterable);
3374 extern PyTypeObject PyCFunction_Type;
3375 typedef PyObject *(*PyCFunction)(PyObject *, PyObject *);
3376 typedef PyObject *(*PyCFunctionWithKeywords)(PyObject *, PyObject *,
3378 typedef PyObject *(*PyNoArgsFunction)(PyObject *);
3379 PyCFunction PyCFunction_GetFunction(PyObject *);
3380 PyObject * PyCFunction_GetSelf(PyObject *);
3381 int PyCFunction_GetFlags(PyObject *);
3382 PyObject * PyCFunction_Call(PyObject *, PyObject *, PyObject *);
3383 struct PyMethodDef {
3384 const char *ml_name;
3385 PyCFunction ml_meth;
3389 typedef struct PyMethodDef PyMethodDef;
3390 PyObject * Py_FindMethod(PyMethodDef[], PyObject *, const char *);
3391 PyObject * PyCFunction_NewEx(PyMethodDef *, PyObject *,
3393 typedef struct PyMethodChain {
3394 PyMethodDef *methods;
3395 struct PyMethodChain *link;
3397 PyObject * Py_FindMethodInChain(PyMethodChain *, PyObject *,
3400 Py_ssize_t ob_refcnt; struct _typeobject *ob_type;
3404 } PyCFunctionObject;
3405 int PyCFunction_ClearFreeList(void);
3408 extern PyTypeObject PyModule_Type;
3409 PyObject * PyModule_New(const char *);
3410 PyObject * PyModule_GetDict(PyObject *);
3411 char * PyModule_GetName(PyObject *);
3412 char * PyModule_GetFilename(PyObject *);
3413 void _PyModule_Clear(PyObject *);
3417 Py_ssize_t ob_refcnt; struct _typeobject *ob_type;
3418 PyObject *func_code;
3419 PyObject *func_globals;
3420 PyObject *func_defaults;
3421 PyObject *func_closure;
3423 PyObject *func_name;
3424 PyObject *func_dict;
3425 PyObject *func_weakreflist;
3426 PyObject *func_module;
3428 extern PyTypeObject PyFunction_Type;
3429 PyObject * PyFunction_New(PyObject *, PyObject *);
3430 PyObject * PyFunction_GetCode(PyObject *);
3431 PyObject * PyFunction_GetGlobals(PyObject *);
3432 PyObject * PyFunction_GetModule(PyObject *);
3433 PyObject * PyFunction_GetDefaults(PyObject *);
3434 int PyFunction_SetDefaults(PyObject *, PyObject *);
3435 PyObject * PyFunction_GetClosure(PyObject *);
3436 int PyFunction_SetClosure(PyObject *, PyObject *);
3437 extern PyTypeObject PyClassMethod_Type;
3438 extern PyTypeObject PyStaticMethod_Type;
3439 PyObject * PyClassMethod_New(PyObject *);
3440 PyObject * PyStaticMethod_New(PyObject *);
3444 Py_ssize_t ob_refcnt; struct _typeobject *ob_type;
3448 PyObject *cl_getattr;
3449 PyObject *cl_setattr;
3450 PyObject *cl_delattr;
3453 Py_ssize_t ob_refcnt; struct _typeobject *ob_type;
3454 PyClassObject *in_class;
3456 PyObject *in_weakreflist;
3459 Py_ssize_t ob_refcnt; struct _typeobject *ob_type;
3463 PyObject *im_weakreflist;
3465 extern PyTypeObject PyClass_Type, PyInstance_Type, PyMethod_Type;
3466 PyObject * PyClass_New(PyObject *, PyObject *, PyObject *);
3467 PyObject * PyInstance_New(PyObject *, PyObject *,
3469 PyObject * PyInstance_NewRaw(PyObject *, PyObject *);
3470 PyObject * PyMethod_New(PyObject *, PyObject *, PyObject *);
3471 PyObject * PyMethod_Function(PyObject *);
3472 PyObject * PyMethod_Self(PyObject *);
3473 PyObject * PyMethod_Class(PyObject *);
3474 PyObject * _PyInstance_Lookup(PyObject *pinst, PyObject *name);
3475 int PyClass_IsSubclass(PyObject *, PyObject *);
3476 int PyMethod_ClearFreeList(void);
3480 Py_ssize_t ob_refcnt; struct _typeobject *ob_type;
3484 int (*f_close)(FILE *);
3494 PyObject *f_encoding;
3496 PyObject *weakreflist;
3501 extern PyTypeObject PyFile_Type;
3502 PyObject * PyFile_FromString(char *, char *);
3503 void PyFile_SetBufSize(PyObject *, int);
3504 int PyFile_SetEncoding(PyObject *, const char *);
3505 int PyFile_SetEncodingAndErrors(PyObject *, const char *, char *errors);
3506 PyObject * PyFile_FromFile(FILE *, char *, char *,
3508 FILE * PyFile_AsFile(PyObject *);
3509 void PyFile_IncUseCount(PyFileObject *);
3510 void PyFile_DecUseCount(PyFileObject *);
3511 PyObject * PyFile_Name(PyObject *);
3512 PyObject * PyFile_GetLine(PyObject *, int);
3513 int PyFile_WriteObject(PyObject *, PyObject *, int);
3514 int PyFile_SoftSpace(PyObject *, int);
3515 int PyFile_WriteString(const char *, PyObject *);
3516 int PyObject_AsFileDescriptor(PyObject *);
3517 extern const char * Py_FileSystemDefaultEncoding;
3518 char *Py_UniversalNewlineFgets(char *, int, FILE*, PyObject *);
3519 size_t Py_UniversalNewlineFread(char *, size_t, FILE *, PyObject *);
3520 int _PyFile_SanitizeMode(char *mode);
3523 extern PyTypeObject PyCObject_Type;
3524 PyObject * PyCObject_FromVoidPtr(
3525 void *cobj, void (*destruct)(void*));
3526 PyObject * PyCObject_FromVoidPtrAndDesc(
3527 void *cobj, void *desc, void (*destruct)(void*,void*));
3528 void * PyCObject_AsVoidPtr(PyObject *);
3529 void * PyCObject_GetDesc(PyObject *);
3530 void * PyCObject_Import(char *module_name, char *cobject_name);
3531 int PyCObject_SetVoidPtr(PyObject *self, void *cobj);
3533 Py_ssize_t ob_refcnt; struct _typeobject *ob_type;
3536 void (*destructor)(void *);
3541 typedef struct _traceback {
3542 Py_ssize_t ob_refcnt; struct _typeobject *ob_type;
3543 struct _traceback *tb_next;
3544 struct _frame *tb_frame;
3547 } PyTracebackObject;
3548 int PyTraceBack_Here(struct _frame *);
3549 int PyTraceBack_Print(PyObject *, PyObject *);
3550 int _Py_DisplaySourceLine(PyObject *, const char *, int, int);
3551 extern PyTypeObject PyTraceBack_Type;
3554 extern PyObject _Py_EllipsisObject;
3556 Py_ssize_t ob_refcnt; struct _typeobject *ob_type;
3557 PyObject *start, *stop, *step;
3559 extern PyTypeObject PySlice_Type;
3560 extern PyTypeObject PyEllipsis_Type;
3561 PyObject * PySlice_New(PyObject* start, PyObject* stop,
3563 PyObject * _PySlice_FromIndices(Py_ssize_t start, Py_ssize_t stop);
3564 int PySlice_GetIndices(PySliceObject *r, Py_ssize_t length,
3565 Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step);
3566 int PySlice_GetIndicesEx(PySliceObject *r, Py_ssize_t length,
3567 Py_ssize_t *start, Py_ssize_t *stop,
3568 Py_ssize_t *step, Py_ssize_t *slicelength);
3572 Py_ssize_t ob_refcnt; struct _typeobject *ob_type;
3575 extern PyTypeObject PyCell_Type;
3576 PyObject * PyCell_New(PyObject *);
3577 PyObject * PyCell_Get(PyObject *);
3578 int PyCell_Set(PyObject *, PyObject *);
3581 extern PyTypeObject PySeqIter_Type;
3582 PyObject * PySeqIter_New(PyObject *);
3583 extern PyTypeObject PyCallIter_Type;
3584 PyObject * PyCallIter_New(PyObject *, PyObject *);
3589 Py_ssize_t ob_refcnt; struct _typeobject *ob_type;
3590 struct _frame *gi_frame;
3593 PyObject *gi_weakreflist;
3595 extern PyTypeObject PyGen_Type;
3596 PyObject * PyGen_New(struct _frame *);
3597 int PyGen_NeedsFinalizing(PyGenObject *);
3600 typedef PyObject *(*getter)(PyObject *, void *);
3601 typedef int (*setter)(PyObject *, PyObject *, void *);
3602 typedef struct PyGetSetDef {
3609 typedef PyObject *(*wrapperfunc)(PyObject *self, PyObject *args,
3611 typedef PyObject *(*wrapperfunc_kwds)(PyObject *self, PyObject *args,
3612 void *wrapped, PyObject *kwds);
3613 struct wrapperbase {
3617 wrapperfunc wrapper;
3620 PyObject *name_strobj;
3623 Py_ssize_t ob_refcnt; struct _typeobject *ob_type; PyTypeObject *d_type; PyObject *d_name;
3626 Py_ssize_t ob_refcnt; struct _typeobject *ob_type; PyTypeObject *d_type; PyObject *d_name;
3627 PyMethodDef *d_method;
3628 } PyMethodDescrObject;
3630 Py_ssize_t ob_refcnt; struct _typeobject *ob_type; PyTypeObject *d_type; PyObject *d_name;
3631 struct PyMemberDef *d_member;
3632 } PyMemberDescrObject;
3634 Py_ssize_t ob_refcnt; struct _typeobject *ob_type; PyTypeObject *d_type; PyObject *d_name;
3635 PyGetSetDef *d_getset;
3636 } PyGetSetDescrObject;
3638 Py_ssize_t ob_refcnt; struct _typeobject *ob_type; PyTypeObject *d_type; PyObject *d_name;
3639 struct wrapperbase *d_base;
3641 } PyWrapperDescrObject;
3642 extern PyTypeObject PyWrapperDescr_Type;
3643 extern PyTypeObject PyDictProxy_Type;
3644 extern PyTypeObject PyGetSetDescr_Type;
3645 extern PyTypeObject PyMemberDescr_Type;
3646 PyObject * PyDescr_NewMethod(PyTypeObject *, PyMethodDef *);
3647 PyObject * PyDescr_NewClassMethod(PyTypeObject *, PyMethodDef *);
3648 PyObject * PyDescr_NewMember(PyTypeObject *,
3649 struct PyMemberDef *);
3650 PyObject * PyDescr_NewGetSet(PyTypeObject *,
3651 struct PyGetSetDef *);
3652 PyObject * PyDescr_NewWrapper(PyTypeObject *,
3653 struct wrapperbase *, void *);
3654 PyObject * PyDictProxy_New(PyObject *);
3655 PyObject * PyWrapper_New(PyObject *, PyObject *);
3656 extern PyTypeObject PyProperty_Type;
3659 void _PyWarnings_Init(void);
3660 int PyErr_WarnEx(PyObject *, const char *, Py_ssize_t);
3661 int PyErr_WarnExplicit(PyObject *, const char *, const char *, int,
3662 const char *, PyObject *);
3665 typedef struct _PyWeakReference PyWeakReference;
3666 struct _PyWeakReference {
3667 Py_ssize_t ob_refcnt; struct _typeobject *ob_type;
3668 PyObject *wr_object;
3669 PyObject *wr_callback;
3671 PyWeakReference *wr_prev;
3672 PyWeakReference *wr_next;
3674 extern PyTypeObject _PyWeakref_RefType;
3675 extern PyTypeObject _PyWeakref_ProxyType;
3676 extern PyTypeObject _PyWeakref_CallableProxyType;
3677 PyObject * PyWeakref_NewRef(PyObject *ob,
3678 PyObject *callback);
3679 PyObject * PyWeakref_NewProxy(PyObject *ob,
3680 PyObject *callback);
3681 PyObject * PyWeakref_GetObject(PyObject *ref);
3682 Py_ssize_t _PyWeakref_GetWeakrefCount(PyWeakReference *head);
3683 void _PyWeakref_ClearRef(PyWeakReference *self);
3686 int PyCodec_Register(
3687 PyObject *search_function
3689 PyObject * _PyCodec_Lookup(
3690 const char *encoding
3692 PyObject * PyCodec_Encode(
3694 const char *encoding,
3697 PyObject * PyCodec_Decode(
3699 const char *encoding,
3702 PyObject * PyCodec_Encoder(
3703 const char *encoding
3705 PyObject * PyCodec_Decoder(
3706 const char *encoding
3708 PyObject * PyCodec_IncrementalEncoder(
3709 const char *encoding,
3712 PyObject * PyCodec_IncrementalDecoder(
3713 const char *encoding,
3716 PyObject * PyCodec_StreamReader(
3717 const char *encoding,
3721 PyObject * PyCodec_StreamWriter(
3722 const char *encoding,
3726 int PyCodec_RegisterError(const char *name, PyObject *error);
3727 PyObject * PyCodec_LookupError(const char *name);
3728 PyObject * PyCodec_StrictErrors(PyObject *exc);
3729 PyObject * PyCodec_IgnoreErrors(PyObject *exc);
3730 PyObject * PyCodec_ReplaceErrors(PyObject *exc);
3731 PyObject * PyCodec_XMLCharRefReplaceErrors(PyObject *exc);
3732 PyObject * PyCodec_BackslashReplaceErrors(PyObject *exc);
3736 Py_ssize_t ob_refcnt; struct _typeobject *ob_type;
3740 } PyBaseExceptionObject;
3742 Py_ssize_t ob_refcnt; struct _typeobject *ob_type;
3751 PyObject *print_file_and_line;
3752 } PySyntaxErrorObject;
3754 Py_ssize_t ob_refcnt; struct _typeobject *ob_type;
3763 } PyUnicodeErrorObject;
3765 Py_ssize_t ob_refcnt; struct _typeobject *ob_type;
3770 } PySystemExitObject;
3772 Py_ssize_t ob_refcnt; struct _typeobject *ob_type;
3779 } PyEnvironmentErrorObject;
3780 void PyErr_SetNone(PyObject *);
3781 void PyErr_SetObject(PyObject *, PyObject *);
3782 void PyErr_SetString(PyObject *, const char *);
3783 PyObject * PyErr_Occurred(void);
3784 void PyErr_Clear(void);
3785 void PyErr_Fetch(PyObject **, PyObject **, PyObject **);
3786 void PyErr_Restore(PyObject *, PyObject *, PyObject *);
3787 int PyErr_GivenExceptionMatches(PyObject *, PyObject *);
3788 int PyErr_ExceptionMatches(PyObject *);
3789 void PyErr_NormalizeException(PyObject**, PyObject**, PyObject**);
3790 extern PyObject * PyExc_BaseException;
3791 extern PyObject * PyExc_Exception;
3792 extern PyObject * PyExc_StopIteration;
3793 extern PyObject * PyExc_GeneratorExit;
3794 extern PyObject * PyExc_StandardError;
3795 extern PyObject * PyExc_ArithmeticError;
3796 extern PyObject * PyExc_LookupError;
3797 extern PyObject * PyExc_AssertionError;
3798 extern PyObject * PyExc_AttributeError;
3799 extern PyObject * PyExc_EOFError;
3800 extern PyObject * PyExc_FloatingPointError;
3801 extern PyObject * PyExc_EnvironmentError;
3802 extern PyObject * PyExc_IOError;
3803 extern PyObject * PyExc_OSError;
3804 extern PyObject * PyExc_ImportError;
3805 extern PyObject * PyExc_IndexError;
3806 extern PyObject * PyExc_KeyError;
3807 extern PyObject * PyExc_KeyboardInterrupt;
3808 extern PyObject * PyExc_MemoryError;
3809 extern PyObject * PyExc_NameError;
3810 extern PyObject * PyExc_OverflowError;
3811 extern PyObject * PyExc_RuntimeError;
3812 extern PyObject * PyExc_NotImplementedError;
3813 extern PyObject * PyExc_SyntaxError;
3814 extern PyObject * PyExc_IndentationError;
3815 extern PyObject * PyExc_TabError;
3816 extern PyObject * PyExc_ReferenceError;
3817 extern PyObject * PyExc_SystemError;
3818 extern PyObject * PyExc_SystemExit;
3819 extern PyObject * PyExc_TypeError;
3820 extern PyObject * PyExc_UnboundLocalError;
3821 extern PyObject * PyExc_UnicodeError;
3822 extern PyObject * PyExc_UnicodeEncodeError;
3823 extern PyObject * PyExc_UnicodeDecodeError;
3824 extern PyObject * PyExc_UnicodeTranslateError;
3825 extern PyObject * PyExc_ValueError;
3826 extern PyObject * PyExc_ZeroDivisionError;
3827 extern PyObject * PyExc_BufferError;
3828 extern PyObject * PyExc_MemoryErrorInst;
3829 extern PyObject * PyExc_RecursionErrorInst;
3830 extern PyObject * PyExc_Warning;
3831 extern PyObject * PyExc_UserWarning;
3832 extern PyObject * PyExc_DeprecationWarning;
3833 extern PyObject * PyExc_PendingDeprecationWarning;
3834 extern PyObject * PyExc_SyntaxWarning;
3835 extern PyObject * PyExc_RuntimeWarning;
3836 extern PyObject * PyExc_FutureWarning;
3837 extern PyObject * PyExc_ImportWarning;
3838 extern PyObject * PyExc_UnicodeWarning;
3839 extern PyObject * PyExc_BytesWarning;
3840 int PyErr_BadArgument(void);
3841 PyObject * PyErr_NoMemory(void);
3842 PyObject * PyErr_SetFromErrno(PyObject *);
3843 PyObject * PyErr_SetFromErrnoWithFilenameObject(
3844 PyObject *, PyObject *);
3845 PyObject * PyErr_SetFromErrnoWithFilename(PyObject *, char *);
3846 PyObject * PyErr_Format(PyObject *, const char *, ...)
3847 __attribute__((format(printf, 2, 3)));
3848 void PyErr_BadInternalCall(void);
3849 void _PyErr_BadInternalCall(char *filename, int lineno);
3850 PyObject * PyErr_NewException(char *name, PyObject *base,
3852 void PyErr_WriteUnraisable(PyObject *);
3853 int PyErr_CheckSignals(void);
3854 void PyErr_SetInterrupt(void);
3855 int PySignal_SetWakeupFd(int fd);
3856 void PyErr_SyntaxLocation(const char *, int);
3857 PyObject * PyErr_ProgramText(const char *, int);
3858 PyObject * PyUnicodeDecodeError_Create(
3859 const char *, const char *, Py_ssize_t, Py_ssize_t, Py_ssize_t, const char *);
3860 PyObject * PyUnicodeEncodeError_Create(
3861 const char *, const Py_UNICODE *, Py_ssize_t, Py_ssize_t, Py_ssize_t, const char *);
3862 PyObject * PyUnicodeTranslateError_Create(
3863 const Py_UNICODE *, Py_ssize_t, Py_ssize_t, Py_ssize_t, const char *);
3864 PyObject * PyUnicodeEncodeError_GetEncoding(PyObject *);
3865 PyObject * PyUnicodeDecodeError_GetEncoding(PyObject *);
3866 PyObject * PyUnicodeEncodeError_GetObject(PyObject *);
3867 PyObject * PyUnicodeDecodeError_GetObject(PyObject *);
3868 PyObject * PyUnicodeTranslateError_GetObject(PyObject *);
3869 int PyUnicodeEncodeError_GetStart(PyObject *, Py_ssize_t *);
3870 int PyUnicodeDecodeError_GetStart(PyObject *, Py_ssize_t *);
3871 int PyUnicodeTranslateError_GetStart(PyObject *, Py_ssize_t *);
3872 int PyUnicodeEncodeError_SetStart(PyObject *, Py_ssize_t);
3873 int PyUnicodeDecodeError_SetStart(PyObject *, Py_ssize_t);
3874 int PyUnicodeTranslateError_SetStart(PyObject *, Py_ssize_t);
3875 int PyUnicodeEncodeError_GetEnd(PyObject *, Py_ssize_t *);
3876 int PyUnicodeDecodeError_GetEnd(PyObject *, Py_ssize_t *);
3877 int PyUnicodeTranslateError_GetEnd(PyObject *, Py_ssize_t *);
3878 int PyUnicodeEncodeError_SetEnd(PyObject *, Py_ssize_t);
3879 int PyUnicodeDecodeError_SetEnd(PyObject *, Py_ssize_t);
3880 int PyUnicodeTranslateError_SetEnd(PyObject *, Py_ssize_t);
3881 PyObject * PyUnicodeEncodeError_GetReason(PyObject *);
3882 PyObject * PyUnicodeDecodeError_GetReason(PyObject *);
3883 PyObject * PyUnicodeTranslateError_GetReason(PyObject *);
3884 int PyUnicodeEncodeError_SetReason(
3885 PyObject *, const char *);
3886 int PyUnicodeDecodeError_SetReason(
3887 PyObject *, const char *);
3888 int PyUnicodeTranslateError_SetReason(
3889 PyObject *, const char *);
3890 int PyOS_snprintf(char *str, size_t size, const char *format, ...)
3891 __attribute__((format(printf, 3, 4)));
3892 int PyOS_vsnprintf(char *str, size_t size, const char *format, va_list va)
3893 __attribute__((format(printf, 3, 0)));
3898 typedef struct _is {
3900 struct _ts *tstate_head;
3904 PyObject *modules_reloading;
3905 PyObject *codec_search_path;
3906 PyObject *codec_search_cache;
3907 PyObject *codec_error_registry;
3909 } PyInterpreterState;
3911 typedef int (*Py_tracefunc)(PyObject *, struct _frame *, int, PyObject *);
3912 typedef struct _ts {
3914 PyInterpreterState *interp;
3915 struct _frame *frame;
3916 int recursion_depth;
3919 Py_tracefunc c_profilefunc;
3920 Py_tracefunc c_tracefunc;
3921 PyObject *c_profileobj;
3922 PyObject *c_traceobj;
3923 PyObject *curexc_type;
3924 PyObject *curexc_value;
3925 PyObject *curexc_traceback;
3927 PyObject *exc_value;
3928 PyObject *exc_traceback;
3931 int gilstate_counter;
3932 PyObject *async_exc;
3935 PyInterpreterState * PyInterpreterState_New(void);
3936 void PyInterpreterState_Clear(PyInterpreterState *);
3937 void PyInterpreterState_Delete(PyInterpreterState *);
3938 PyThreadState * PyThreadState_New(PyInterpreterState *);
3939 PyThreadState * _PyThreadState_Prealloc(PyInterpreterState *);
3940 void _PyThreadState_Init(PyThreadState *);
3941 void PyThreadState_Clear(PyThreadState *);
3942 void PyThreadState_Delete(PyThreadState *);
3943 void PyThreadState_DeleteCurrent(void);
3944 PyThreadState * PyThreadState_Get(void);
3945 PyThreadState * PyThreadState_Swap(PyThreadState *);
3946 PyObject * PyThreadState_GetDict(void);
3947 int PyThreadState_SetAsyncExc(long, PyObject *);
3948 extern PyThreadState * _PyThreadState_Current;
3950 enum {PyGILState_LOCKED, PyGILState_UNLOCKED}
3952 PyGILState_STATE PyGILState_Ensure(void);
3953 void PyGILState_Release(PyGILState_STATE);
3954 PyThreadState * PyGILState_GetThisThreadState(void);
3955 PyObject * _PyThread_CurrentFrames(void);
3956 PyInterpreterState * PyInterpreterState_Head(void);
3957 PyInterpreterState * PyInterpreterState_Next(PyInterpreterState *);
3958 PyThreadState * PyInterpreterState_ThreadHead(PyInterpreterState *);
3959 PyThreadState * PyThreadState_Next(PyThreadState *);
3960 typedef struct _frame *(*PyThreadFrameGetter)(PyThreadState *self_);
3961 extern PyThreadFrameGetter _PyThreadState_GetFrame;
3964 typedef struct _arena PyArena;
3965 PyArena * PyArena_New(void);
3966 void PyArena_Free(PyArena *);
3967 void * PyArena_Malloc(PyArena *, size_t size);
3968 int PyArena_AddPyObject(PyArena *, PyObject *);
3971 PyObject * _Py_VaBuildValue_SizeT(const char *, va_list);
3972 int PyArg_Parse(PyObject *, const char *, ...);
3973 int PyArg_ParseTuple(PyObject *, const char *, ...) ;
3974 int PyArg_ParseTupleAndKeywords(PyObject *, PyObject *,
3975 const char *, char **, ...);
3976 int PyArg_UnpackTuple(PyObject *, const char *, Py_ssize_t, Py_ssize_t, ...);
3977 PyObject * Py_BuildValue(const char *, ...);
3978 PyObject * _Py_BuildValue_SizeT(const char *, ...);
3979 int _PyArg_NoKeywords(const char *funcname, PyObject *kw);
3980 int PyArg_VaParse(PyObject *, const char *, va_list);
3981 int PyArg_VaParseTupleAndKeywords(PyObject *, PyObject *,
3982 const char *, char **, va_list);
3983 PyObject * Py_VaBuildValue(const char *, va_list);
3984 int PyModule_AddObject(PyObject *, const char *, PyObject *);
3985 int PyModule_AddIntConstant(PyObject *, const char *, long);
3986 int PyModule_AddStringConstant(PyObject *, const char *, const char *);
3987 PyObject * Py_InitModule4_64(const char *name, PyMethodDef *methods,
3988 const char *doc, PyObject *self,
3990 extern char * _Py_PackageContext;
3996 void Py_SetProgramName(char *);
3997 char * Py_GetProgramName(void);
3998 void Py_SetPythonHome(char *);
3999 char * Py_GetPythonHome(void);
4000 void Py_Initialize(void);
4001 void Py_InitializeEx(int);
4002 void Py_Finalize(void);
4003 int Py_IsInitialized(void);
4004 PyThreadState * Py_NewInterpreter(void);
4005 void Py_EndInterpreter(PyThreadState *);
4006 int PyRun_AnyFileFlags(FILE *, const char *, PyCompilerFlags *);
4007 int PyRun_AnyFileExFlags(FILE *, const char *, int, PyCompilerFlags *);
4008 int PyRun_SimpleStringFlags(const char *, PyCompilerFlags *);
4009 int PyRun_SimpleFileExFlags(FILE *, const char *, int, PyCompilerFlags *);
4010 int PyRun_InteractiveOneFlags(FILE *, const char *, PyCompilerFlags *);
4011 int PyRun_InteractiveLoopFlags(FILE *, const char *, PyCompilerFlags *);
4012 struct _mod * PyParser_ASTFromString(const char *, const char *,
4013 int, PyCompilerFlags *flags,
4015 struct _mod * PyParser_ASTFromFile(FILE *, const char *, int,
4017 PyCompilerFlags *, int *,
4019 struct _node * PyParser_SimpleParseStringFlags(const char *, int,
4021 struct _node * PyParser_SimpleParseFileFlags(FILE *, const char *,
4023 PyObject * PyRun_StringFlags(const char *, int, PyObject *,
4024 PyObject *, PyCompilerFlags *);
4025 PyObject * PyRun_FileExFlags(FILE *, const char *, int,
4026 PyObject *, PyObject *, int,
4028 PyObject * Py_CompileStringFlags(const char *, const char *, int,
4030 struct symtable * Py_SymtableString(const char *, const char *, int);
4031 void PyErr_Print(void);
4032 void PyErr_PrintEx(int);
4033 void PyErr_Display(PyObject *, PyObject *, PyObject *);
4034 int Py_AtExit(void (*func)(void));
4036 int Py_FdIsInteractive(FILE *, const char *);
4037 int Py_Main(int argc, char **argv);
4038 char * Py_GetProgramFullPath(void);
4039 char * Py_GetPrefix(void);
4040 char * Py_GetExecPrefix(void);
4041 char * Py_GetPath(void);
4042 const char * Py_GetVersion(void);
4043 const char * Py_GetPlatform(void);
4044 const char * Py_GetCopyright(void);
4045 const char * Py_GetCompiler(void);
4046 const char * Py_GetBuildInfo(void);
4047 const char * _Py_svnversion(void);
4048 const char * Py_SubversionRevision(void);
4049 const char * Py_SubversionShortBranch(void);
4050 PyObject * _PyBuiltin_Init(void);
4051 PyObject * _PySys_Init(void);
4052 void _PyImport_Init(void);
4053 void _PyExc_Init(void);
4054 void _PyImportHooks_Init(void);
4055 int _PyFrame_Init(void);
4056 int _PyInt_Init(void);
4057 void _PyFloat_Init(void);
4058 int PyByteArray_Init(void);
4059 void _PyExc_Fini(void);
4060 void _PyImport_Fini(void);
4061 void PyMethod_Fini(void);
4062 void PyFrame_Fini(void);
4063 void PyCFunction_Fini(void);
4064 void PyDict_Fini(void);
4065 void PyTuple_Fini(void);
4066 void PyList_Fini(void);
4067 void PySet_Fini(void);
4068 void PyString_Fini(void);
4069 void PyInt_Fini(void);
4070 void PyFloat_Fini(void);
4071 void PyOS_FiniInterrupts(void);
4072 void PyByteArray_Fini(void);
4073 char * PyOS_Readline(FILE *, FILE *, char *);
4074 extern int (*PyOS_InputHook)(void);
4075 extern char *(*PyOS_ReadlineFunctionPointer)(FILE *, FILE *, char *);
4076 extern PyThreadState* _PyOS_ReadlineTState;
4077 typedef void (*PyOS_sighandler_t)(int);
4078 PyOS_sighandler_t PyOS_getsig(int);
4079 PyOS_sighandler_t PyOS_setsig(int, PyOS_sighandler_t);
4082 PyObject * PyEval_CallObjectWithKeywords(
4083 PyObject *, PyObject *, PyObject *);
4084 PyObject * PyEval_CallObject(PyObject *, PyObject *);
4085 PyObject * PyEval_CallFunction(PyObject *obj,
4086 const char *format, ...);
4087 PyObject * PyEval_CallMethod(PyObject *obj,
4088 const char *methodname,
4089 const char *format, ...);
4090 void PyEval_SetProfile(Py_tracefunc, PyObject *);
4091 void PyEval_SetTrace(Py_tracefunc, PyObject *);
4093 PyObject * PyEval_GetBuiltins(void);
4094 PyObject * PyEval_GetGlobals(void);
4095 PyObject * PyEval_GetLocals(void);
4096 struct _frame * PyEval_GetFrame(void);
4097 int PyEval_GetRestricted(void);
4098 int PyEval_MergeCompilerFlags(PyCompilerFlags *cf);
4099 int Py_FlushLine(void);
4100 int Py_AddPendingCall(int (*func)(void *), void *arg);
4101 int Py_MakePendingCalls(void);
4102 void Py_SetRecursionLimit(int);
4103 int Py_GetRecursionLimit(void);
4104 int _Py_CheckRecursiveCall(char *where);
4105 extern int _Py_CheckRecursionLimit;
4106 const char * PyEval_GetFuncName(PyObject *);
4107 const char * PyEval_GetFuncDesc(PyObject *);
4108 PyObject * PyEval_GetCallStats(PyObject *);
4109 PyObject * PyEval_EvalFrame(struct _frame *);
4110 PyObject * PyEval_EvalFrameEx(struct _frame *f, int exc);
4111 extern volatile int _Py_Ticker;
4112 extern int _Py_CheckInterval;
4113 PyThreadState * PyEval_SaveThread(void);
4114 void PyEval_RestoreThread(PyThreadState *);
4115 int PyEval_ThreadsInitialized(void);
4116 void PyEval_InitThreads(void);
4117 void PyEval_AcquireLock(void);
4118 void PyEval_ReleaseLock(void);
4119 void PyEval_AcquireThread(PyThreadState *tstate);
4120 void PyEval_ReleaseThread(PyThreadState *tstate);
4121 void PyEval_ReInitThreads(void);
4122 int _PyEval_SliceIndex(PyObject *, Py_ssize_t *);
4125 PyObject * PySys_GetObject(char *);
4126 int PySys_SetObject(char *, PyObject *);
4127 FILE * PySys_GetFile(char *, FILE *);
4128 void PySys_SetArgv(int, char **);
4129 void PySys_SetArgvEx(int, char **, int);
4130 void PySys_SetPath(char *);
4131 void PySys_WriteStdout(const char *format, ...)
4132 __attribute__((format(printf, 1, 2)));
4133 void PySys_WriteStderr(const char *format, ...)
4134 __attribute__((format(printf, 1, 2)));
4135 extern PyObject * _PySys_TraceFunc, *_PySys_ProfileFunc;
4136 extern int _PySys_CheckInterval;
4137 void PySys_ResetWarnOptions(void);
4138 void PySys_AddWarnOption(char *);
4139 int PySys_HasWarnOptions(void);
4142 int PyOS_InterruptOccurred(void);
4143 void PyOS_InitInterrupts(void);
4144 void PyOS_AfterFork(void);
4147 long PyImport_GetMagicNumber(void);
4148 PyObject * PyImport_ExecCodeModule(char *name, PyObject *co);
4149 PyObject * PyImport_ExecCodeModuleEx(
4150 char *name, PyObject *co, char *pathname);
4151 PyObject * PyImport_GetModuleDict(void);
4152 PyObject * PyImport_AddModule(const char *name);
4153 PyObject * PyImport_ImportModule(const char *name);
4154 PyObject * PyImport_ImportModuleNoBlock(const char *);
4155 PyObject * PyImport_ImportModuleLevel(char *name,
4156 PyObject *globals, PyObject *locals, PyObject *fromlist, int level);
4157 PyObject * PyImport_GetImporter(PyObject *path);
4158 PyObject * PyImport_Import(PyObject *name);
4159 PyObject * PyImport_ReloadModule(PyObject *m);
4160 void PyImport_Cleanup(void);
4161 int PyImport_ImportFrozenModule(char *);
4162 void _PyImport_AcquireLock(void);
4163 int _PyImport_ReleaseLock(void);
4164 struct filedescr * _PyImport_FindModule(
4165 const char *, PyObject *, char *, size_t, FILE **, PyObject **);
4166 int _PyImport_IsScript(struct filedescr *);
4167 void _PyImport_ReInitLock(void);
4168 PyObject *_PyImport_FindExtension(char *, char *);
4169 PyObject *_PyImport_FixupExtension(char *, char *);
4172 void (*initfunc)(void);
4174 extern PyTypeObject PyNullImporter_Type;
4175 extern struct _inittab * PyImport_Inittab;
4176 int PyImport_AppendInittab(char *name, void (*initfunc)(void));
4177 int PyImport_ExtendInittab(struct _inittab *newtab);
4180 unsigned char *code;
4183 extern struct _frozen * PyImport_FrozenModules;
4186 int PyObject_Cmp(PyObject *o1, PyObject *o2, int *result);
4187 PyObject * PyObject_Call(PyObject *callable_object,
4188 PyObject *args, PyObject *kw);
4189 PyObject * PyObject_CallObject(PyObject *callable_object,
4191 PyObject * PyObject_CallFunction(PyObject *callable_object,
4193 PyObject * PyObject_CallMethod(PyObject *o, char *m,
4195 PyObject * _PyObject_CallFunction_SizeT(PyObject *callable,
4197 PyObject * _PyObject_CallMethod_SizeT(PyObject *o,
4200 PyObject * PyObject_CallFunctionObjArgs(PyObject *callable,
4202 PyObject * PyObject_CallMethodObjArgs(PyObject *o,
4204 PyObject * PyObject_Type(PyObject *o);
4205 Py_ssize_t PyObject_Size(PyObject *o);
4206 Py_ssize_t PyObject_Length(PyObject *o);
4207 Py_ssize_t _PyObject_LengthHint(PyObject *o, Py_ssize_t);
4208 PyObject * PyObject_GetItem(PyObject *o, PyObject *key);
4209 int PyObject_SetItem(PyObject *o, PyObject *key, PyObject *v);
4210 int PyObject_DelItemString(PyObject *o, char *key);
4211 int PyObject_DelItem(PyObject *o, PyObject *key);
4212 int PyObject_AsCharBuffer(PyObject *obj,
4213 const char **buffer,
4214 Py_ssize_t *buffer_len);
4215 int PyObject_CheckReadBuffer(PyObject *obj);
4216 int PyObject_AsReadBuffer(PyObject *obj,
4217 const void **buffer,
4218 Py_ssize_t *buffer_len);
4219 int PyObject_AsWriteBuffer(PyObject *obj,
4221 Py_ssize_t *buffer_len);
4222 int PyObject_GetBuffer(PyObject *obj, Py_buffer *view,
4224 void * PyBuffer_GetPointer(Py_buffer *view, Py_ssize_t *indices);
4225 int PyBuffer_SizeFromFormat(const char *);
4226 int PyBuffer_ToContiguous(void *buf, Py_buffer *view,
4227 Py_ssize_t len, char fort);
4228 int PyBuffer_FromContiguous(Py_buffer *view, void *buf,
4229 Py_ssize_t len, char fort);
4230 int PyObject_CopyData(PyObject *dest, PyObject *src);
4231 int PyBuffer_IsContiguous(Py_buffer *view, char fort);
4232 void PyBuffer_FillContiguousStrides(int ndims,
4234 Py_ssize_t *strides,
4237 int PyBuffer_FillInfo(Py_buffer *view, PyObject *o, void *buf,
4238 Py_ssize_t len, int readonly,
4240 void PyBuffer_Release(Py_buffer *view);
4241 PyObject * PyObject_Format(PyObject* obj,
4242 PyObject *format_spec);
4243 PyObject * PyObject_GetIter(PyObject *);
4244 PyObject * PyIter_Next(PyObject *);
4245 int PyNumber_Check(PyObject *o);
4246 PyObject * PyNumber_Add(PyObject *o1, PyObject *o2);
4247 PyObject * PyNumber_Subtract(PyObject *o1, PyObject *o2);
4248 PyObject * PyNumber_Multiply(PyObject *o1, PyObject *o2);
4249 PyObject * PyNumber_Divide(PyObject *o1, PyObject *o2);
4250 PyObject * PyNumber_FloorDivide(PyObject *o1, PyObject *o2);
4251 PyObject * PyNumber_TrueDivide(PyObject *o1, PyObject *o2);
4252 PyObject * PyNumber_Remainder(PyObject *o1, PyObject *o2);
4253 PyObject * PyNumber_Divmod(PyObject *o1, PyObject *o2);
4254 PyObject * PyNumber_Power(PyObject *o1, PyObject *o2,
4256 PyObject * PyNumber_Negative(PyObject *o);
4257 PyObject * PyNumber_Positive(PyObject *o);
4258 PyObject * PyNumber_Absolute(PyObject *o);
4259 PyObject * PyNumber_Invert(PyObject *o);
4260 PyObject * PyNumber_Lshift(PyObject *o1, PyObject *o2);
4261 PyObject * PyNumber_Rshift(PyObject *o1, PyObject *o2);
4262 PyObject * PyNumber_And(PyObject *o1, PyObject *o2);
4263 PyObject * PyNumber_Xor(PyObject *o1, PyObject *o2);
4264 PyObject * PyNumber_Or(PyObject *o1, PyObject *o2);
4265 PyObject * PyNumber_Index(PyObject *o);
4266 Py_ssize_t PyNumber_AsSsize_t(PyObject *o, PyObject *exc);
4267 PyObject * _PyNumber_ConvertIntegralToInt(
4269 const char* error_format);
4270 PyObject * PyNumber_Int(PyObject *o);
4271 PyObject * PyNumber_Long(PyObject *o);
4272 PyObject * PyNumber_Float(PyObject *o);
4273 PyObject * PyNumber_InPlaceAdd(PyObject *o1, PyObject *o2);
4274 PyObject * PyNumber_InPlaceSubtract(PyObject *o1, PyObject *o2);
4275 PyObject * PyNumber_InPlaceMultiply(PyObject *o1, PyObject *o2);
4276 PyObject * PyNumber_InPlaceDivide(PyObject *o1, PyObject *o2);
4277 PyObject * PyNumber_InPlaceFloorDivide(PyObject *o1,
4279 PyObject * PyNumber_InPlaceTrueDivide(PyObject *o1,
4281 PyObject * PyNumber_InPlaceRemainder(PyObject *o1, PyObject *o2);
4282 PyObject * PyNumber_InPlacePower(PyObject *o1, PyObject *o2,
4284 PyObject * PyNumber_InPlaceLshift(PyObject *o1, PyObject *o2);
4285 PyObject * PyNumber_InPlaceRshift(PyObject *o1, PyObject *o2);
4286 PyObject * PyNumber_InPlaceAnd(PyObject *o1, PyObject *o2);
4287 PyObject * PyNumber_InPlaceXor(PyObject *o1, PyObject *o2);
4288 PyObject * PyNumber_InPlaceOr(PyObject *o1, PyObject *o2);
4289 PyObject * PyNumber_ToBase(PyObject *n, int base);
4290 int PySequence_Check(PyObject *o);
4291 Py_ssize_t PySequence_Size(PyObject *o);
4292 Py_ssize_t PySequence_Length(PyObject *o);
4293 PyObject * PySequence_Concat(PyObject *o1, PyObject *o2);
4294 PyObject * PySequence_Repeat(PyObject *o, Py_ssize_t count);
4295 PyObject * PySequence_GetItem(PyObject *o, Py_ssize_t i);
4296 PyObject * PySequence_GetSlice(PyObject *o, Py_ssize_t i1, Py_ssize_t i2);
4297 int PySequence_SetItem(PyObject *o, Py_ssize_t i, PyObject *v);
4298 int PySequence_DelItem(PyObject *o, Py_ssize_t i);
4299 int PySequence_SetSlice(PyObject *o, Py_ssize_t i1, Py_ssize_t i2,
4301 int PySequence_DelSlice(PyObject *o, Py_ssize_t i1, Py_ssize_t i2);
4302 PyObject * PySequence_Tuple(PyObject *o);
4303 PyObject * PySequence_List(PyObject *o);
4304 PyObject * PySequence_Fast(PyObject *o, const char* m);
4305 Py_ssize_t PySequence_Count(PyObject *o, PyObject *value);
4306 int PySequence_Contains(PyObject *seq, PyObject *ob);
4307 Py_ssize_t _PySequence_IterSearch(PyObject *seq,
4308 PyObject *obj, int operation);
4309 int PySequence_In(PyObject *o, PyObject *value);
4310 Py_ssize_t PySequence_Index(PyObject *o, PyObject *value);
4311 PyObject * PySequence_InPlaceConcat(PyObject *o1, PyObject *o2);
4312 PyObject * PySequence_InPlaceRepeat(PyObject *o, Py_ssize_t count);
4313 int PyMapping_Check(PyObject *o);
4314 Py_ssize_t PyMapping_Size(PyObject *o);
4315 Py_ssize_t PyMapping_Length(PyObject *o);
4316 int PyMapping_HasKeyString(PyObject *o, char *key);
4317 int PyMapping_HasKey(PyObject *o, PyObject *key);
4318 PyObject * PyMapping_GetItemString(PyObject *o, char *key);
4319 int PyMapping_SetItemString(PyObject *o, char *key,
4321 int PyObject_IsInstance(PyObject *object, PyObject *typeorclass);
4322 int PyObject_IsSubclass(PyObject *object, PyObject *typeorclass);
4323 int _PyObject_RealIsInstance(PyObject *inst, PyObject *cls);
4324 int _PyObject_RealIsSubclass(PyObject *derived, PyObject *cls);
4328 Py_ssize_t ob_refcnt; struct _typeobject *ob_type;
4334 PyObject *co_consts;
4336 PyObject *co_varnames;
4337 PyObject *co_freevars;
4338 PyObject *co_cellvars;
4339 PyObject *co_filename;
4342 PyObject *co_lnotab;
4343 void *co_zombieframe;
4345 extern PyTypeObject PyCode_Type;
4346 PyCodeObject * PyCode_New(
4347 int, int, int, int, PyObject *, PyObject *, PyObject *, PyObject *,
4348 PyObject *, PyObject *, PyObject *, PyObject *, int, PyObject *);
4349 int PyCode_Addr2Line(PyCodeObject *, int);
4350 typedef struct _addr_pair {
4354 int PyCode_CheckLineNumber(PyCodeObject* co,
4355 int lasti, PyAddrPair *bounds);
4356 PyObject* PyCode_Optimize(PyObject *code, PyObject* consts,
4357 PyObject *names, PyObject *lineno_obj);
4361 PyCodeObject * PyNode_Compile(struct _node *, const char *);
4367 PyCodeObject * PyAST_Compile(struct _mod *, const char *,
4368 PyCompilerFlags *, PyArena *);
4369 PyFutureFeatures * PyFuture_FromAST(struct _mod *, const char *);
4372 PyObject * PyEval_EvalCode(PyCodeObject *, PyObject *, PyObject *);
4373 PyObject * PyEval_EvalCodeEx(PyCodeObject *co,
4376 PyObject **args, int argc,
4377 PyObject **kwds, int kwdc,
4378 PyObject **defs, int defc,
4380 PyObject * _PyEval_CallTracing(PyObject *func, PyObject *args);
4383 double PyOS_ascii_strtod(const char *str, char **ptr);
4384 double PyOS_ascii_atof(const char *str);
4385 char * PyOS_ascii_formatd(char *buffer, size_t buf_len, const char *format, double d);
4388 int PyOS_mystrnicmp(const char *, const char *, Py_ssize_t);
4389 int PyOS_mystricmp(const char *, const char *);
4391 PyObject* _Py_Mangle(PyObject *p, PyObject *name);
4394 extern int __sigismember (__const __sigset_t *, int);
4395 extern int __sigaddset (__sigset_t *, int);
4396 extern int __sigdelset (__sigset_t *, int);
4397 typedef __sig_atomic_t sig_atomic_t;
4398 typedef union sigval
4403 typedef struct siginfo
4410 int _pad[((128 / sizeof (int)) - 4)];
4515 typedef struct sigevent
4517 sigval_t sigev_value;
4522 int _pad[((64 / sizeof (int)) - 4)];
4526 void (*_function) (sigval_t);
4538 typedef void (*__sighandler_t) (int);
4539 extern __sighandler_t __sysv_signal (int __sig, __sighandler_t __handler)
4541 extern __sighandler_t sysv_signal (int __sig, __sighandler_t __handler)
4543 extern __sighandler_t signal (int __sig, __sighandler_t __handler)
4545 extern __sighandler_t bsd_signal (int __sig, __sighandler_t __handler)
4547 extern int kill (__pid_t __pid, int __sig) throw ();
4548 extern int killpg (__pid_t __pgrp, int __sig) throw ();
4549 extern int raise (int __sig) throw ();
4550 extern __sighandler_t ssignal (int __sig, __sighandler_t __handler)
4552 extern int gsignal (int __sig) throw ();
4553 extern void psignal (int __sig, __const char *__s);
4554 extern void psiginfo (__const siginfo_t *__pinfo, __const char *__s);
4555 extern int __sigpause (int __sig_or_mask, int __is_sig);
4556 extern int sigpause (int __sig) __asm__ ("__xpg_sigpause");
4557 extern int sigblock (int __mask) throw () __attribute__ ((__deprecated__));
4558 extern int sigsetmask (int __mask) throw () __attribute__ ((__deprecated__));
4559 extern int siggetmask (void) throw () __attribute__ ((__deprecated__));
4560 typedef __sighandler_t sighandler_t;
4561 typedef __sighandler_t sig_t;
4562 extern int sigemptyset (sigset_t *__set) throw () __attribute__ ((__nonnull__ (1)));
4563 extern int sigfillset (sigset_t *__set) throw () __attribute__ ((__nonnull__ (1)));
4564 extern int sigaddset (sigset_t *__set, int __signo) throw () __attribute__ ((__nonnull__ (1)));
4565 extern int sigdelset (sigset_t *__set, int __signo) throw () __attribute__ ((__nonnull__ (1)));
4566 extern int sigismember (__const sigset_t *__set, int __signo)
4567 throw () __attribute__ ((__nonnull__ (1)));
4568 extern int sigisemptyset (__const sigset_t *__set) throw () __attribute__ ((__nonnull__ (1)));
4569 extern int sigandset (sigset_t *__set, __const sigset_t *__left,
4570 __const sigset_t *__right) throw () __attribute__ ((__nonnull__ (1, 2, 3)));
4571 extern int sigorset (sigset_t *__set, __const sigset_t *__left,
4572 __const sigset_t *__right) throw () __attribute__ ((__nonnull__ (1, 2, 3)));
4577 __sighandler_t sa_handler;
4578 void (*sa_sigaction) (int, siginfo_t *, void *);
4580 __sigaction_handler;
4583 void (*sa_restorer) (void);
4585 extern int sigprocmask (int __how, __const sigset_t *__restrict __set,
4586 sigset_t *__restrict __oset) throw ();
4587 extern int sigsuspend (__const sigset_t *__set) __attribute__ ((__nonnull__ (1)));
4588 extern int sigaction (int __sig, __const struct sigaction *__restrict __act,
4589 struct sigaction *__restrict __oact) throw ();
4590 extern int sigpending (sigset_t *__set) throw () __attribute__ ((__nonnull__ (1)));
4591 extern int sigwait (__const sigset_t *__restrict __set, int *__restrict __sig)
4592 __attribute__ ((__nonnull__ (1, 2)));
4593 extern int sigwaitinfo (__const sigset_t *__restrict __set,
4594 siginfo_t *__restrict __info) __attribute__ ((__nonnull__ (1)));
4595 extern int sigtimedwait (__const sigset_t *__restrict __set,
4596 siginfo_t *__restrict __info,
4597 __const struct timespec *__restrict __timeout)
4598 __attribute__ ((__nonnull__ (1)));
4599 extern int sigqueue (__pid_t __pid, int __sig, __const union sigval __val)
4601 extern __const char *__const _sys_siglist[65];
4602 extern __const char *__const sys_siglist[65];
4605 __sighandler_t sv_handler;
4609 extern int sigvec (int __sig, __const struct sigvec *__vec,
4610 struct sigvec *__ovec) throw ();
4613 unsigned short significand[4];
4614 unsigned short exponent;
4618 unsigned short significand[4];
4619 unsigned short exponent;
4620 unsigned short padding[3];
4624 __uint32_t element[4];
4635 __uint32_t mxcr_mask;
4636 struct _fpxreg _st[8];
4637 struct _xmmreg _xmm[16];
4638 __uint32_t padding[24];
4659 unsigned long eflags;
4663 unsigned short __pad0;
4665 unsigned long trapno;
4666 unsigned long oldmask;
4668 struct _fpstate * fpstate;
4669 unsigned long __reserved1 [8];
4671 extern int sigreturn (struct sigcontext *__scp) throw ();
4672 extern int siginterrupt (int __sig, int __interrupt) throw ();
4683 typedef struct sigaltstack
4689 typedef long int greg_t;
4690 typedef greg_t gregset_t[23];
4719 unsigned short int significand[4];
4720 unsigned short int exponent;
4721 unsigned short int padding[3];
4725 __uint32_t element[4];
4727 struct _libc_fpstate
4736 __uint32_t mxcr_mask;
4737 struct _libc_fpxreg _st[8];
4738 struct _libc_xmmreg _xmm[16];
4739 __uint32_t padding[24];
4741 typedef struct _libc_fpstate *fpregset_t;
4746 unsigned long __reserved1 [8];
4748 typedef struct ucontext
4750 unsigned long int uc_flags;
4751 struct ucontext *uc_link;
4753 mcontext_t uc_mcontext;
4754 __sigset_t uc_sigmask;
4755 struct _libc_fpstate __fpregs_mem;
4757 extern int sigstack (struct sigstack *__ss, struct sigstack *__oss)
4758 throw () __attribute__ ((__deprecated__));
4759 extern int sigaltstack (__const struct sigaltstack *__restrict __ss,
4760 struct sigaltstack *__restrict __oss) throw ();
4761 extern int sighold (int __sig) throw ();
4762 extern int sigrelse (int __sig) throw ();
4763 extern int sigignore (int __sig) throw ();
4764 extern __sighandler_t sigset (int __sig, __sighandler_t __disp) throw ();
4765 extern int pthread_sigmask (int __how,
4766 __const __sigset_t *__restrict __newmask,
4767 __sigset_t *__restrict __oldmask)throw ();
4768 extern int pthread_kill (pthread_t __threadid, int __signo) throw ();
4769 extern int pthread_sigqueue (pthread_t __threadid, int __signo,
4770 const union sigval __value) throw ();
4771 extern int __libc_current_sigrtmin (void) throw ();
4772 extern int __libc_current_sigrtmax (void) throw ();
4775 typedef long int __jmp_buf[8];
4776 struct __jmp_buf_tag
4779 int __mask_was_saved;
4780 __sigset_t __saved_mask;
4782 typedef struct __jmp_buf_tag jmp_buf[1];
4783 extern int setjmp (jmp_buf __env) throw ();
4784 extern int __sigsetjmp (struct __jmp_buf_tag __env[1], int __savemask) throw ();
4785 extern int _setjmp (struct __jmp_buf_tag __env[1]) throw ();
4786 extern void longjmp (struct __jmp_buf_tag __env[1], int __val)
4787 throw () __attribute__ ((__noreturn__));
4788 extern void _longjmp (struct __jmp_buf_tag __env[1], int __val)
4789 throw () __attribute__ ((__noreturn__));
4790 typedef struct __jmp_buf_tag sigjmp_buf[1];
4791 extern void siglongjmp (sigjmp_buf __env, int __val)
4792 throw () __attribute__ ((__noreturn__));
4794 extern jmp_buf PyFPE_jbuf;
4795 extern int PyFPE_counter;
4796 extern double PyFPE_dummy(void *);
4799 typedef void *(*swig_converter_func)(void *, int *);
4800 typedef struct swig_type_info *(*swig_dycast_func)(void **);
4801 typedef struct swig_type_info {
4804 swig_dycast_func dcast;
4805 struct swig_cast_info *cast;
4809 typedef struct swig_cast_info {
4810 swig_type_info *type;
4811 swig_converter_func converter;
4812 struct swig_cast_info *next;
4813 struct swig_cast_info *prev;
4815 typedef struct swig_module_info {
4816 swig_type_info **types;
4818 struct swig_module_info *next;
4819 swig_type_info **type_initial;
4820 swig_cast_info **cast_initial;
4823 static __attribute__ ((__unused__)) int
4824 SWIG_TypeNameComp(const char *f1, const char *l1,
4825 const char *f2, const char *l2) {
4826 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
4827 while ((*f1 == ' ') && (f1 != l1)) ++f1;
4828 while ((*f2 == ' ') && (f2 != l2)) ++f2;
4829 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
4831 return (int)((l1 - f1) - (l2 - f2));
4833 static __attribute__ ((__unused__)) int
4834 SWIG_TypeEquiv(const char *nb, const char *tb) {
4836 const char* te = tb + strlen(tb);
4837 const char* ne = nb;
4838 while (!equiv && *ne) {
4839 for (nb = ne; *ne; ++ne) {
4840 if (*ne == '|') break;
4842 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
4847 static __attribute__ ((__unused__)) int
4848 SWIG_TypeCompare(const char *nb, const char *tb) {
4850 const char* te = tb + strlen(tb);
4851 const char* ne = nb;
4852 while (!equiv && *ne) {
4853 for (nb = ne; *ne; ++ne) {
4854 if (*ne == '|') break;
4856 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
4861 static __attribute__ ((__unused__)) swig_cast_info *
4862 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
4864 swig_cast_info *iter = ty->cast;
4866 if (strcmp(iter->type->name, c) == 0) {
4867 if (iter == ty->cast)
4869 iter->prev->next = iter->next;
4871 iter->next->prev = iter->prev;
4872 iter->next = ty->cast;
4874 if (ty->cast) ty->cast->prev = iter;
4883 static __attribute__ ((__unused__)) swig_cast_info *
4884 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
4886 swig_cast_info *iter = ty->cast;
4888 if (iter->type == from) {
4889 if (iter == ty->cast)
4891 iter->prev->next = iter->next;
4893 iter->next->prev = iter->prev;
4894 iter->next = ty->cast;
4896 if (ty->cast) ty->cast->prev = iter;
4905 static __attribute__ ((__unused__)) inline void *
4906 SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
4907 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
4909 static __attribute__ ((__unused__)) swig_type_info *
4910 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
4911 swig_type_info *lastty = ty;
4912 if (!ty || !ty->dcast) return ty;
4913 while (ty && (ty->dcast)) {
4914 ty = (*ty->dcast)(ptr);
4915 if (ty) lastty = ty;
4919 static __attribute__ ((__unused__)) inline const char *
4920 SWIG_TypeName(const swig_type_info *ty) {
4923 static __attribute__ ((__unused__)) const char *
4924 SWIG_TypePrettyName(const swig_type_info *type) {
4925 if (!type) return __null;
4926 if (type->str != __null) {
4927 const char *last_name = type->str;
4929 for (s = type->str; *s; s++)
4930 if (*s == '|') last_name = s+1;
4936 static __attribute__ ((__unused__)) void
4937 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
4938 swig_cast_info *cast = ti->cast;
4939 ti->clientdata = clientdata;
4941 if (!cast->converter) {
4942 swig_type_info *tc = cast->type;
4943 if (!tc->clientdata) {
4944 SWIG_TypeClientData(tc, clientdata);
4950 static __attribute__ ((__unused__)) void
4951 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
4952 SWIG_TypeClientData(ti, clientdata);
4955 static __attribute__ ((__unused__)) swig_type_info *
4956 SWIG_MangledTypeQueryModule(swig_module_info *start,
4957 swig_module_info *end,
4959 swig_module_info *iter = start;
4962 register size_t l = 0;
4963 register size_t r = iter->size - 1;
4965 register size_t i = (l + r) >> 1;
4966 const char *iname = iter->types[i]->name;
4968 register int compare = strcmp(name, iname);
4970 return iter->types[i];
4971 } else if (compare < 0) {
4977 } else if (compare > 0) {
4986 } while (iter != end);
4989 static __attribute__ ((__unused__)) swig_type_info *
4990 SWIG_TypeQueryModule(swig_module_info *start,
4991 swig_module_info *end,
4993 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
4997 swig_module_info *iter = start;
4999 register size_t i = 0;
5000 for (; i < iter->size; ++i) {
5001 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
5002 return iter->types[i];
5005 } while (iter != end);
5009 static __attribute__ ((__unused__)) char *
5010 SWIG_PackData(char *c, void *ptr, size_t sz) {
5011 static const char hex[17] = "0123456789abcdef";
5012 register const unsigned char *u = (unsigned char *) ptr;
5013 register const unsigned char *eu = u + sz;
5014 for (; u != eu; ++u) {
5015 register unsigned char uu = *u;
5016 *(c++) = hex[(uu & 0xf0) >> 4];
5017 *(c++) = hex[uu & 0xf];
5021 static __attribute__ ((__unused__)) const char *
5022 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
5023 register unsigned char *u = (unsigned char *) ptr;
5024 register const unsigned char *eu = u + sz;
5025 for (; u != eu; ++u) {
5026 register char d = *(c++);
5027 register unsigned char uu;
5028 if ((d >= '0') && (d <= '9'))
5029 uu = ((d - '0') << 4);
5030 else if ((d >= 'a') && (d <= 'f'))
5031 uu = ((d - ('a'-10)) << 4);
5035 if ((d >= '0') && (d <= '9'))
5037 else if ((d >= 'a') && (d <= 'f'))
5038 uu |= (d - ('a'-10));
5045 static __attribute__ ((__unused__)) char *
5046 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
5048 if ((2*sizeof(void *) + 2) > bsz) return 0;
5050 r = SWIG_PackData(r,&ptr,sizeof(void *));
5051 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
5055 static __attribute__ ((__unused__)) const char *
5056 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
5058 if (strcmp(c,"NULL") == 0) {
5065 return SWIG_UnpackData(++c,ptr,sizeof(void *));
5067 static __attribute__ ((__unused__)) char *
5068 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
5070 size_t lname = (name ? strlen(name) : 0);
5071 if ((2*sz + 2 + lname) > bsz) return 0;
5073 r = SWIG_PackData(r,ptr,sz);
5075 strncpy(r,name,lname+1);
5081 static __attribute__ ((__unused__)) const char *
5082 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
5084 if (strcmp(c,"NULL") == 0) {
5091 return SWIG_UnpackData(++c,ptr,sz);
5094 static __attribute__ ((__unused__)) char*
5095 SWIG_Python_str_AsChar(PyObject *str)
5097 return PyString_AsString(str);
5099 static __attribute__ ((__unused__)) PyObject*
5100 SWIG_Python_str_FromChar(const char *c)
5102 return PyString_FromString(c);
5104 static __attribute__ ((__unused__)) PyObject*
5105 SWIG_Python_ErrorType(int code) {
5109 type = PyExc_MemoryError;
5112 type = PyExc_IOError;
5115 type = PyExc_RuntimeError;
5118 type = PyExc_IndexError;
5121 type = PyExc_TypeError;
5124 type = PyExc_ZeroDivisionError;
5127 type = PyExc_OverflowError;
5130 type = PyExc_SyntaxError;
5133 type = PyExc_ValueError;
5136 type = PyExc_SystemError;
5139 type = PyExc_AttributeError;
5142 type = PyExc_RuntimeError;
5146 static __attribute__ ((__unused__)) void
5147 SWIG_Python_AddErrorMsg(const char* mesg)
5150 PyObject *value = 0;
5151 PyObject *traceback = 0;
5152 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
5155 PyObject *old_str = PyObject_Str(value);
5157 if ((type) == __null) ; else ( ((PyObject*)(type))->ob_refcnt++);
5158 PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
5160 if ( --((PyObject*)(old_str))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(old_str)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(old_str))));
5161 if ( --((PyObject*)(value))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(value)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(value))));
5163 PyErr_SetString(PyExc_RuntimeError, mesg);
5166 class SWIG_Python_Thread_Block {
5168 PyGILState_STATE state;
5170 void end() { if (status) { PyGILState_Release(state); status = false;} }
5171 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
5172 ~SWIG_Python_Thread_Block() { end(); }
5174 class SWIG_Python_Thread_Allow {
5176 PyThreadState *save;
5178 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
5179 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
5180 ~SWIG_Python_Thread_Allow() { end(); }
5183 typedef struct swig_const_info {
5189 swig_type_info **ptype;
5191 static __attribute__ ((__unused__)) PyObject* SWIG_PyInstanceMethod_New(PyObject *self, PyObject *func)
5196 static __attribute__ ((__unused__)) void
5197 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
5198 SWIG_Python_Thread_Block _swig_thread_block;
5199 PyErr_SetObject(errtype, obj);
5200 if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj))));
5201 _swig_thread_block.end();
5203 static __attribute__ ((__unused__)) void
5204 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
5205 SWIG_Python_Thread_Block _swig_thread_block;
5206 PyErr_SetString(errtype, (char *) msg);
5207 _swig_thread_block.end();
5209 static __attribute__ ((__unused__)) void
5210 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
5211 PyDict_SetItemString(d, (char*) name, obj);
5212 if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj))));
5214 static __attribute__ ((__unused__)) PyObject*
5215 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
5218 } else if (result == (&_Py_NoneStruct)) {
5219 if ( --((PyObject*)(result))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(result)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(result))));
5222 if (!((((((PyObject*)(result))->ob_type))->tp_flags & ((1L<<25))) != 0)) {
5223 PyObject *o2 = result;
5224 result = PyList_New(1);
5225 PyList_SetItem(result, 0, o2);
5227 PyList_Append(result,obj);
5228 if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj))));
5232 static __attribute__ ((__unused__)) int
5233 SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs)
5239 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
5240 name, (min == max ? "" : "at least "), (int)min);
5244 if (!((((((PyObject*)(args))->ob_type))->tp_flags & ((1L<<26))) != 0)) {
5245 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
5248 register Py_ssize_t l = (((PyVarObject*)(args))->ob_size);
5250 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
5251 name, (min == max ? "" : "at least "), (int)min, (int)l);
5253 } else if (l > max) {
5254 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
5255 name, (min == max ? "" : "at most "), (int)max, (int)l);
5259 for (i = 0; i < l; ++i) {
5260 objs[i] = (((PyTupleObject *)(args))->ob_item[i]);
5262 for (; l < max; ++l) {
5270 static __attribute__ ((__unused__)) inline PyObject *
5273 PyObject *none = (&_Py_NoneStruct);
5274 ( ((PyObject*)(none))->ob_refcnt++);
5285 static __attribute__ ((__unused__)) inline int
5286 SWIG_Python_CheckImplicit(swig_type_info *ty)
5288 SwigPyClientData *data = (SwigPyClientData *)ty->clientdata;
5289 return data ? data->implicitconv : 0;
5291 static __attribute__ ((__unused__)) inline PyObject *
5292 SWIG_Python_ExceptionType(swig_type_info *desc) {
5293 SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0;
5294 PyObject *klass = data ? data->klass : 0;
5295 return (klass ? klass : PyExc_RuntimeError);
5297 static __attribute__ ((__unused__)) SwigPyClientData *
5298 SwigPyClientData_New(PyObject* obj)
5303 SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData));
5305 ( ((PyObject*)(data->klass))->ob_refcnt++);
5306 if (((obj)->ob_type == &PyClass_Type)) {
5308 data->newargs = obj;
5309 ( ((PyObject*)(obj))->ob_refcnt++);
5311 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
5313 ( ((PyObject*)(data->newraw))->ob_refcnt++);
5314 data->newargs = PyTuple_New(1);
5315 PyTuple_SetItem(data->newargs, 0, obj);
5317 data->newargs = obj;
5319 ( ((PyObject*)(data->newargs))->ob_refcnt++);
5321 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
5322 if (PyErr_Occurred()) {
5326 if (data->destroy) {
5328 ( ((PyObject*)(data->destroy))->ob_refcnt++);
5329 flags = (((PyCFunctionObject *)data->destroy) -> m_ml -> ml_flags);
5330 data->delargs = !(flags & (0x0008));
5334 data->implicitconv = 0;
5338 static __attribute__ ((__unused__)) void
5339 SwigPyClientData_Del(SwigPyClientData* data)
5341 if ((data->newraw) == __null) ; else if ( --((PyObject*)(data->newraw))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(data->newraw)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(data->newraw))));
5342 if ((data->newargs) == __null) ; else if ( --((PyObject*)(data->newargs))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(data->newargs)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(data->newargs))));
5343 if ((data->destroy) == __null) ; else if ( --((PyObject*)(data->destroy))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(data->destroy)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(data->destroy))));
5346 Py_ssize_t ob_refcnt; struct _typeobject *ob_type;
5352 static __attribute__ ((__unused__)) PyObject *
5353 SwigPyObject_long(SwigPyObject *v)
5355 return PyLong_FromVoidPtr(v->ptr);
5357 static __attribute__ ((__unused__)) PyObject *
5358 SwigPyObject_format(const char* fmt, SwigPyObject *v)
5360 PyObject *res = __null;
5361 PyObject *args = PyTuple_New(1);
5363 if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) {
5364 PyObject *ofmt = SWIG_Python_str_FromChar(fmt);
5366 res = PyString_Format(ofmt,args);
5367 if ( --((PyObject*)(ofmt))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ofmt)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ofmt))));
5369 if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args))));
5374 static __attribute__ ((__unused__)) PyObject *
5375 SwigPyObject_oct(SwigPyObject *v)
5377 return SwigPyObject_format("%o",v);
5379 static __attribute__ ((__unused__)) PyObject *
5380 SwigPyObject_hex(SwigPyObject *v)
5382 return SwigPyObject_format("%x",v);
5384 static __attribute__ ((__unused__)) PyObject *
5385 SwigPyObject_repr(SwigPyObject *v)
5387 const char *name = SWIG_TypePrettyName(v->ty);
5388 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at %p>", name, v);
5390 PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next);
5391 PyString_ConcatAndDel(&repr,nrep);
5395 static __attribute__ ((__unused__)) int
5396 SwigPyObject_print(SwigPyObject *v, FILE *fp, int )
5399 PyObject *repr = SwigPyObject_repr(v);
5401 str = SWIG_Python_str_AsChar(repr);
5404 if ( --((PyObject*)(repr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(repr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(repr))));
5410 static __attribute__ ((__unused__)) PyObject *
5411 SwigPyObject_str(SwigPyObject *v)
5414 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
5415 SWIG_Python_str_FromChar(result) : 0;
5417 static __attribute__ ((__unused__)) int
5418 SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w)
5422 return (i < j) ? -1 : ((i > j) ? 1 : 0);
5424 static __attribute__ ((__unused__)) PyObject*
5425 SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op)
5428 if( op != 2 && op != 3 ) {
5429 ( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt++);
5430 return (&_Py_NotImplementedStruct);
5432 if( (SwigPyObject_compare(v, w)==0) == (op == 2) )
5433 res = ((PyObject *) &_Py_TrueStruct);
5435 res = ((PyObject *) &_Py_ZeroStruct);
5436 ( ((PyObject*)(res))->ob_refcnt++);
5439 static __attribute__ ((__unused__)) PyTypeObject* _PySwigObject_type(void);
5440 static __attribute__ ((__unused__)) PyTypeObject*
5441 SwigPyObject_type(void) {
5442 static PyTypeObject *type = _PySwigObject_type();
5445 static __attribute__ ((__unused__)) inline int
5446 SwigPyObject_Check(PyObject *op) {
5447 return ((((PyObject*)(op))->ob_type) == SwigPyObject_type())
5448 || (strcmp((((PyObject*)(op))->ob_type)->tp_name,"SwigPyObject") == 0);
5450 static __attribute__ ((__unused__)) PyObject *
5451 SwigPyObject_New(void *ptr, swig_type_info *ty, int own);
5452 static __attribute__ ((__unused__)) void
5453 SwigPyObject_dealloc(PyObject *v)
5455 SwigPyObject *sobj = (SwigPyObject *) v;
5456 PyObject *next = sobj->next;
5457 if (sobj->own == 0x1) {
5458 swig_type_info *ty = sobj->ty;
5459 SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
5460 PyObject *destroy = data ? data->destroy : 0;
5463 if (data->delargs) {
5464 PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0);
5465 res = PyObject_CallFunctionObjArgs(destroy, tmp, __null);;
5466 if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp))));
5468 PyCFunction meth = (((PyCFunctionObject *)destroy) -> m_ml -> ml_meth);
5469 PyObject *mself = (((PyCFunctionObject *)destroy) -> m_self);
5470 res = ((*meth)(mself, v));
5472 if ((res) == __null) ; else if ( --((PyObject*)(res))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(res)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(res))));
5475 const char *name = SWIG_TypePrettyName(ty);
5476 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown"));
5479 if ((next) == __null) ; else if ( --((PyObject*)(next))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(next)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(next))));
5482 static __attribute__ ((__unused__)) PyObject*
5483 SwigPyObject_append(PyObject* v, PyObject* next)
5485 SwigPyObject *sobj = (SwigPyObject *) v;
5486 if (!SwigPyObject_Check(next)) {
5490 ( ((PyObject*)(next))->ob_refcnt++);
5491 return SWIG_Py_Void();
5493 static __attribute__ ((__unused__)) PyObject*
5494 SwigPyObject_next(PyObject* v)
5496 SwigPyObject *sobj = (SwigPyObject *) v;
5498 ( ((PyObject*)(sobj->next))->ob_refcnt++);
5501 return SWIG_Py_Void();
5504 static __attribute__ ((__unused__)) PyObject*
5505 SwigPyObject_disown(PyObject *v)
5507 SwigPyObject *sobj = (SwigPyObject *)v;
5509 return SWIG_Py_Void();
5511 static __attribute__ ((__unused__)) PyObject*
5512 SwigPyObject_acquire(PyObject *v)
5514 SwigPyObject *sobj = (SwigPyObject *)v;
5516 return SWIG_Py_Void();
5518 static __attribute__ ((__unused__)) PyObject*
5519 SwigPyObject_own(PyObject *v, PyObject *args)
5522 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
5528 SwigPyObject *sobj = (SwigPyObject *)v;
5529 PyObject *obj = PyBool_FromLong(sobj->own);
5531 if (PyObject_IsTrue(val)) {
5532 SwigPyObject_acquire(v);
5534 SwigPyObject_disown(v);
5541 swigobject_methods[] = {
5542 {(char *)"disown", (PyCFunction)SwigPyObject_disown, 0x0004, (char *)"releases ownership of the pointer"},
5543 {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, 0x0004, (char *)"aquires ownership of the pointer"},
5544 {(char *)"own", (PyCFunction)SwigPyObject_own, 0x0001, (char *)"returns/sets ownership of the pointer"},
5545 {(char *)"append", (PyCFunction)SwigPyObject_append, 0x0008, (char *)"appends another 'this' object"},
5546 {(char *)"next", (PyCFunction)SwigPyObject_next, 0x0004, (char *)"returns the next 'this' object"},
5547 {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, 0x0004, (char *)"returns object representation"},
5550 static __attribute__ ((__unused__)) PyTypeObject*
5551 _PySwigObject_type(void) {
5552 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
5553 static PyNumberMethods SwigPyObject_as_number = {
5572 (unaryfunc)SwigPyObject_long,
5573 (unaryfunc)SwigPyObject_long,
5575 (unaryfunc)SwigPyObject_oct,
5576 (unaryfunc)SwigPyObject_hex,
5577 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
5579 static PyTypeObject swigpyobject_type;
5580 static int type_init = 0;
5582 const PyTypeObject tmp
5586 (char *)"SwigPyObject",
5587 sizeof(SwigPyObject),
5589 (destructor)SwigPyObject_dealloc,
5590 (printfunc)SwigPyObject_print,
5593 (cmpfunc)SwigPyObject_compare,
5594 (reprfunc)SwigPyObject_repr,
5595 &SwigPyObject_as_number,
5600 (reprfunc)SwigPyObject_str,
5601 PyObject_GenericGetAttr,
5604 ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0),
5608 (richcmpfunc)SwigPyObject_richcompare,
5632 swigpyobject_type = tmp;
5633 swigpyobject_type.ob_type = &PyType_Type;
5636 return &swigpyobject_type;
5638 static __attribute__ ((__unused__)) PyObject *
5639 SwigPyObject_New(void *ptr, swig_type_info *ty, int own)
5641 SwigPyObject *sobj = ( (SwigPyObject *) PyObject_Init( (PyObject *) PyObject_Malloc( ( (SwigPyObject_type())->tp_basicsize ) ), (SwigPyObject_type())) );
5648 return (PyObject *)sobj;
5651 Py_ssize_t ob_refcnt; struct _typeobject *ob_type;
5656 static __attribute__ ((__unused__)) int
5657 SwigPyPacked_print(SwigPyPacked *v, FILE *fp, int )
5660 fputs("<Swig Packed ", fp);
5661 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
5665 fputs(v->ty->name,fp);
5669 static __attribute__ ((__unused__)) PyObject *
5670 SwigPyPacked_repr(SwigPyPacked *v)
5673 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
5674 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
5676 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
5679 static __attribute__ ((__unused__)) PyObject *
5680 SwigPyPacked_str(SwigPyPacked *v)
5683 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
5684 return PyString_FromFormat("%s%s", result, v->ty->name);
5686 return SWIG_Python_str_FromChar(v->ty->name);
5689 static __attribute__ ((__unused__)) int
5690 SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w)
5694 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
5695 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
5697 static __attribute__ ((__unused__)) PyTypeObject* _PySwigPacked_type(void);
5698 static __attribute__ ((__unused__)) PyTypeObject*
5699 SwigPyPacked_type(void) {
5700 static PyTypeObject *type = _PySwigPacked_type();
5703 static __attribute__ ((__unused__)) inline int
5704 SwigPyPacked_Check(PyObject *op) {
5705 return ((op)->ob_type == _PySwigPacked_type())
5706 || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0);
5708 static __attribute__ ((__unused__)) void
5709 SwigPyPacked_dealloc(PyObject *v)
5711 if (SwigPyPacked_Check(v)) {
5712 SwigPyPacked *sobj = (SwigPyPacked *) v;
5717 static __attribute__ ((__unused__)) PyTypeObject*
5718 _PySwigPacked_type(void) {
5719 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
5720 static PyTypeObject swigpypacked_type;
5721 static int type_init = 0;
5723 const PyTypeObject tmp
5727 (char *)"SwigPyPacked",
5728 sizeof(SwigPyPacked),
5730 (destructor)SwigPyPacked_dealloc,
5731 (printfunc)SwigPyPacked_print,
5734 (cmpfunc)SwigPyPacked_compare,
5735 (reprfunc)SwigPyPacked_repr,
5741 (reprfunc)SwigPyPacked_str,
5742 PyObject_GenericGetAttr,
5745 ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0),
5773 swigpypacked_type = tmp;
5774 swigpypacked_type.ob_type = &PyType_Type;
5777 return &swigpypacked_type;
5779 static __attribute__ ((__unused__)) PyObject *
5780 SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty)
5782 SwigPyPacked *sobj = ( (SwigPyPacked *) PyObject_Init( (PyObject *) PyObject_Malloc( ( (SwigPyPacked_type())->tp_basicsize ) ), (SwigPyPacked_type())) );
5784 void *pack = malloc(size);
5786 memcpy(pack, ptr, size);
5791 PyObject_Free((PyObject *) sobj);
5795 return (PyObject *) sobj;
5797 static __attribute__ ((__unused__)) swig_type_info *
5798 SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
5800 if (SwigPyPacked_Check(obj)) {
5801 SwigPyPacked *sobj = (SwigPyPacked *)obj;
5802 if (sobj->size != size) return 0;
5803 memcpy(ptr, sobj->pack, size);
5809 static __attribute__ ((__unused__)) inline PyObject *
5812 return SWIG_Python_str_FromChar("this");
5814 static __attribute__ ((__unused__)) PyObject *
5817 static PyObject *swig_this = _SWIG_This();
5820 static __attribute__ ((__unused__)) SwigPyObject *
5821 SWIG_Python_GetSwigThis(PyObject *pyobj)
5823 if (SwigPyObject_Check(pyobj)) {
5824 return (SwigPyObject *) pyobj;
5827 if (((pyobj)->ob_type == &PyInstance_Type)) {
5828 obj = _PyInstance_Lookup(pyobj, SWIG_This());
5830 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
5831 if (dictptr != __null) {
5832 PyObject *dict = *dictptr;
5833 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
5835 if ((((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_ProxyType) || ((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_CallableProxyType))) {
5836 PyObject *wobj = (((PyWeakReference *)(pyobj))->wr_object);
5837 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
5839 obj = PyObject_GetAttr(pyobj,SWIG_This());
5841 if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj))));
5843 if (PyErr_Occurred()) PyErr_Clear();
5848 if (obj && !SwigPyObject_Check(obj)) {
5849 return SWIG_Python_GetSwigThis(obj);
5851 return (SwigPyObject *)obj;
5854 static __attribute__ ((__unused__)) int
5855 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
5857 SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj);
5859 int oldown = sobj->own;
5866 static __attribute__ ((__unused__)) int
5867 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
5868 if (!obj) return (-1);
5869 if (obj == (&_Py_NoneStruct)) {
5873 SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj);
5877 void *vptr = sobj->ptr;
5879 swig_type_info *to = sobj->ty;
5881 if (ptr) *ptr = vptr;
5884 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
5886 sobj = (SwigPyObject *)sobj->next;
5890 *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
5891 if (newmemory == 0x2) {
5892 ((own) ? static_cast<void> (0) : __assert_fail ("own", "modern/xapian_wrap.cc", 2183, __PRETTY_FUNCTION__));
5901 if (ptr) *ptr = vptr;
5907 *own = *own | sobj->own;
5914 if (flags & (0x1 << 1)) {
5915 SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
5916 if (data && !data->implicitconv) {
5917 PyObject *klass = data->klass;
5920 data->implicitconv = 1;
5921 impconv = PyObject_CallFunctionObjArgs(klass, obj, __null);;
5922 data->implicitconv = 0;
5923 if (PyErr_Occurred()) {
5928 SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv);
5931 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
5937 res = ((res >= 0) ? (res | ((1 << 8) << 1)) : res);
5943 if ( --((PyObject*)(impconv))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(impconv)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(impconv))));
5952 static __attribute__ ((__unused__)) int
5953 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
5954 if (!((((PyObject*)(obj))->ob_type) == &PyCFunction_Type)) {
5955 return SWIG_Python_ConvertPtrAndOwn(obj, ptr, ty, 0, 0);
5958 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
5959 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
5961 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
5962 if (!desc) return (-1);
5965 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
5968 *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
5969 ((!newmemory) ? static_cast<void> (0) : __assert_fail ("!newmemory", "modern/xapian_wrap.cc", 2266, __PRETTY_FUNCTION__));
5979 static __attribute__ ((__unused__)) int
5980 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
5981 swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz);
5982 if (!to) return (-1);
5985 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
5986 if (!tc) return (-1);
5991 static __attribute__ ((__unused__)) PyObject*
5992 SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this)
5995 PyObject *newraw = data->newraw;
5997 inst = PyObject_Call(newraw, data->newargs, __null);
5999 PyObject **dictptr = _PyObject_GetDictPtr(inst);
6000 if (dictptr != __null) {
6001 PyObject *dict = *dictptr;
6002 if (dict == __null) {
6003 dict = PyDict_New();
6005 PyDict_SetItem(dict, SWIG_This(), swig_this);
6010 PyObject *dict = PyDict_New();
6011 PyDict_SetItem(dict, SWIG_This(), swig_this);
6012 inst = PyInstance_NewRaw(data->newargs, dict);
6013 if ( --((PyObject*)(dict))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dict)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dict))));
6017 static __attribute__ ((__unused__)) void
6018 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
6021 PyObject **dictptr = _PyObject_GetDictPtr(inst);
6022 if (dictptr != __null) {
6024 if (dict == __null) {
6025 dict = PyDict_New();
6028 PyDict_SetItem(dict, SWIG_This(), swig_this);
6031 dict = PyObject_GetAttrString(inst, (char*)"__dict__");
6032 PyDict_SetItem(dict, SWIG_This(), swig_this);
6033 if ( --((PyObject*)(dict))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dict)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dict))));
6035 static __attribute__ ((__unused__)) PyObject *
6036 SWIG_Python_InitShadowInstance(PyObject *args) {
6038 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
6041 SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
6043 SwigPyObject_append((PyObject*) sthis, obj[1]);
6045 SWIG_Python_SetSwigThis(obj[0], obj[1]);
6047 return SWIG_Py_Void();
6050 static __attribute__ ((__unused__)) PyObject *
6051 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
6053 return SWIG_Py_Void();
6055 int own = (flags & 0x1) ? 0x1 : 0;
6056 PyObject *robj = SwigPyObject_New(ptr, type, own);
6057 SwigPyClientData *clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0;
6058 if (clientdata && !(flags & (0x1 << 1))) {
6059 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
6061 if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(robj))));
6068 static __attribute__ ((__unused__)) inline PyObject *
6069 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
6070 return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
6072 static __attribute__ ((__unused__)) swig_module_info *
6073 SWIG_Python_GetModule(void) {
6074 static void *type_pointer = (void *)0;
6075 if (!type_pointer) {
6076 type_pointer = PyCObject_Import((char*)"swig_runtime_data" "4",
6077 (char*)"type_pointer" );
6078 if (PyErr_Occurred()) {
6080 type_pointer = (void *)0;
6083 return (swig_module_info *) type_pointer;
6085 static __attribute__ ((__unused__)) void
6086 SWIG_Python_DestroyModule(void *vptr)
6088 swig_module_info *swig_module = (swig_module_info *) vptr;
6089 swig_type_info **types = swig_module->types;
6091 for (i =0; i < swig_module->size; ++i) {
6092 swig_type_info *ty = types[i];
6094 SwigPyClientData *data = (SwigPyClientData *) ty->clientdata;
6095 if (data) SwigPyClientData_Del(data);
6098 if ( --((PyObject*)(SWIG_This()))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(SWIG_This())))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(SWIG_This()))));
6100 static __attribute__ ((__unused__)) void
6101 SWIG_Python_SetModule(swig_module_info *swig_module) {
6102 static PyMethodDef swig_empty_runtime_method_table[] = { {__null, __null, 0, __null} };
6103 PyObject *module = Py_InitModule4_64((char*)"swig_runtime_data" "4", swig_empty_runtime_method_table, (char *)__null, (PyObject *)__null, 1013);
6104 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
6105 if (pointer && module) {
6106 PyModule_AddObject(module, (char*)"type_pointer" , pointer);
6108 if ((pointer) == __null) ; else if ( --((PyObject*)(pointer))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(pointer)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(pointer))));
6111 static __attribute__ ((__unused__)) PyObject *
6112 SWIG_Python_TypeCache(void) {
6113 static PyObject *cache = PyDict_New();
6116 static __attribute__ ((__unused__)) swig_type_info *
6117 SWIG_Python_TypeQuery(const char *type)
6119 PyObject *cache = SWIG_Python_TypeCache();
6120 PyObject *key = SWIG_Python_str_FromChar(type);
6121 PyObject *obj = PyDict_GetItem(cache, key);
6122 swig_type_info *descriptor;
6124 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
6126 swig_module_info *swig_module = SWIG_Python_GetModule();
6127 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
6129 obj = PyCObject_FromVoidPtr(descriptor, __null);
6130 PyDict_SetItem(cache, key, obj);
6131 if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj))));
6134 if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key))));
6137 static __attribute__ ((__unused__)) int
6138 SWIG_Python_AddErrMesg(const char* mesg, int infront)
6140 if (PyErr_Occurred()) {
6142 PyObject *value = 0;
6143 PyObject *traceback = 0;
6144 PyErr_Fetch(&type, &value, &traceback);
6147 PyObject *old_str = PyObject_Str(value);
6148 if ((type) == __null) ; else ( ((PyObject*)(type))->ob_refcnt++);
6151 PyErr_Format(type, "%s %s", mesg, tmp = SWIG_Python_str_AsChar(old_str));
6153 PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
6156 if ( --((PyObject*)(old_str))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(old_str)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(old_str))));
6163 static __attribute__ ((__unused__)) int
6164 SWIG_Python_ArgFail(int argnum)
6166 if (PyErr_Occurred()) {
6168 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
6169 return SWIG_Python_AddErrMesg(mesg, 1);
6174 static __attribute__ ((__unused__)) inline const char *
6175 SwigPyObject_GetDesc(PyObject *self)
6177 SwigPyObject *v = (SwigPyObject *)self;
6178 swig_type_info *ty = v ? v->ty : 0;
6179 return ty ? ty->str : (char*)"";
6181 static __attribute__ ((__unused__)) void
6182 SWIG_Python_TypeError(const char *type, PyObject *obj)
6186 const char *otype = (obj ? obj->ob_type->tp_name : 0);
6188 PyObject *str = PyObject_Str(obj);
6189 const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0;
6191 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
6195 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
6198 if ((str) == __null) ; else if ( --((PyObject*)(str))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(str)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(str))));
6202 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
6204 PyErr_Format(PyExc_TypeError, "unexpected type is received");
6207 static __attribute__ ((__unused__)) void *
6208 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
6210 if (SWIG_Python_ConvertPtrAndOwn(obj, &result, ty, flags, 0) == -1) {
6218 namespace std __attribute__ ((__visibility__ ("default"))) {
6219 template<typename _Alloc>
6221 template<class _CharT>
6223 template<typename _CharT, typename _Traits = char_traits<_CharT>,
6224 typename _Alloc = allocator<_CharT> >
6226 template<> struct char_traits<char>;
6227 typedef basic_string<char> string;
6228 template<> struct char_traits<wchar_t>;
6229 typedef basic_string<wchar_t> wstring;
6233 typedef long int ptrdiff_t;
6234 namespace std __attribute__ ((__visibility__ ("default"))) {
6238 namespace std __attribute__ ((__visibility__ ("default"))) {
6240 __throw_bad_exception(void) __attribute__((__noreturn__));
6242 __throw_bad_alloc(void) __attribute__((__noreturn__));
6244 __throw_bad_cast(void) __attribute__((__noreturn__));
6246 __throw_bad_typeid(void) __attribute__((__noreturn__));
6248 __throw_logic_error(const char*) __attribute__((__noreturn__));
6250 __throw_domain_error(const char*) __attribute__((__noreturn__));
6252 __throw_invalid_argument(const char*) __attribute__((__noreturn__));
6254 __throw_length_error(const char*) __attribute__((__noreturn__));
6256 __throw_out_of_range(const char*) __attribute__((__noreturn__));
6258 __throw_runtime_error(const char*) __attribute__((__noreturn__));
6260 __throw_range_error(const char*) __attribute__((__noreturn__));
6262 __throw_overflow_error(const char*) __attribute__((__noreturn__));
6264 __throw_underflow_error(const char*) __attribute__((__noreturn__));
6266 __throw_ios_failure(const char*) __attribute__((__noreturn__));
6268 __throw_system_error(int) __attribute__((__noreturn__));
6271 namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) {
6272 template<typename _Iterator, typename _Container>
6273 class __normal_iterator;
6275 namespace std __attribute__ ((__visibility__ ("default"))) {
6276 struct __true_type { };
6277 struct __false_type { };
6280 { typedef __false_type __type; };
6282 struct __truth_type<true>
6283 { typedef __true_type __type; };
6284 template<class _Sp, class _Tp>
6287 enum { __value = bool(_Sp::__value) || bool(_Tp::__value) };
6288 typedef typename __truth_type<__value>::__type __type;
6290 template<typename, typename>
6293 enum { __value = 0 };
6294 typedef __false_type __type;
6296 template<typename _Tp>
6297 struct __are_same<_Tp, _Tp>
6299 enum { __value = 1 };
6300 typedef __true_type __type;
6302 template<typename _Tp>
6305 enum { __value = 0 };
6306 typedef __false_type __type;
6309 struct __is_void<void>
6311 enum { __value = 1 };
6312 typedef __true_type __type;
6314 template<typename _Tp>
6317 enum { __value = 0 };
6318 typedef __false_type __type;
6321 struct __is_integer<bool>
6323 enum { __value = 1 };
6324 typedef __true_type __type;
6327 struct __is_integer<char>
6329 enum { __value = 1 };
6330 typedef __true_type __type;
6333 struct __is_integer<signed char>
6335 enum { __value = 1 };
6336 typedef __true_type __type;
6339 struct __is_integer<unsigned char>
6341 enum { __value = 1 };
6342 typedef __true_type __type;
6345 struct __is_integer<wchar_t>
6347 enum { __value = 1 };
6348 typedef __true_type __type;
6351 struct __is_integer<short>
6353 enum { __value = 1 };
6354 typedef __true_type __type;
6357 struct __is_integer<unsigned short>
6359 enum { __value = 1 };
6360 typedef __true_type __type;
6363 struct __is_integer<int>
6365 enum { __value = 1 };
6366 typedef __true_type __type;
6369 struct __is_integer<unsigned int>
6371 enum { __value = 1 };
6372 typedef __true_type __type;
6375 struct __is_integer<long>
6377 enum { __value = 1 };
6378 typedef __true_type __type;
6381 struct __is_integer<unsigned long>
6383 enum { __value = 1 };
6384 typedef __true_type __type;
6387 struct __is_integer<long long>
6389 enum { __value = 1 };
6390 typedef __true_type __type;
6393 struct __is_integer<unsigned long long>
6395 enum { __value = 1 };
6396 typedef __true_type __type;
6398 template<typename _Tp>
6399 struct __is_floating
6401 enum { __value = 0 };
6402 typedef __false_type __type;
6405 struct __is_floating<float>
6407 enum { __value = 1 };
6408 typedef __true_type __type;
6411 struct __is_floating<double>
6413 enum { __value = 1 };
6414 typedef __true_type __type;
6417 struct __is_floating<long double>
6419 enum { __value = 1 };
6420 typedef __true_type __type;
6422 template<typename _Tp>
6425 enum { __value = 0 };
6426 typedef __false_type __type;
6428 template<typename _Tp>
6429 struct __is_pointer<_Tp*>
6431 enum { __value = 1 };
6432 typedef __true_type __type;
6434 template<typename _Tp>
6435 struct __is_normal_iterator
6437 enum { __value = 0 };
6438 typedef __false_type __type;
6440 template<typename _Iterator, typename _Container>
6441 struct __is_normal_iterator< __gnu_cxx::__normal_iterator<_Iterator,
6444 enum { __value = 1 };
6445 typedef __true_type __type;
6447 template<typename _Tp>
6448 struct __is_arithmetic
6449 : public __traitor<__is_integer<_Tp>, __is_floating<_Tp> >
6451 template<typename _Tp>
6452 struct __is_fundamental
6453 : public __traitor<__is_void<_Tp>, __is_arithmetic<_Tp> >
6455 template<typename _Tp>
6457 : public __traitor<__is_arithmetic<_Tp>, __is_pointer<_Tp> >
6459 template<typename _Tp>
6462 enum { __value = 0 };
6463 typedef __false_type __type;
6466 struct __is_char<char>
6468 enum { __value = 1 };
6469 typedef __true_type __type;
6472 struct __is_char<wchar_t>
6474 enum { __value = 1 };
6475 typedef __true_type __type;
6477 template<typename _Tp>
6480 enum { __value = 0 };
6481 typedef __false_type __type;
6484 struct __is_byte<char>
6486 enum { __value = 1 };
6487 typedef __true_type __type;
6490 struct __is_byte<signed char>
6492 enum { __value = 1 };
6493 typedef __true_type __type;
6496 struct __is_byte<unsigned char>
6498 enum { __value = 1 };
6499 typedef __true_type __type;
6501 template<typename _Tp>
6502 struct __is_move_iterator
6504 enum { __value = 0 };
6505 typedef __false_type __type;
6509 namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) {
6510 template<bool, typename>
6513 template<typename _Tp>
6514 struct __enable_if<true, _Tp>
6515 { typedef _Tp __type; };
6516 template<bool _Cond, typename _Iftrue, typename _Iffalse>
6517 struct __conditional_type
6518 { typedef _Iftrue __type; };
6519 template<typename _Iftrue, typename _Iffalse>
6520 struct __conditional_type<false, _Iftrue, _Iffalse>
6521 { typedef _Iffalse __type; };
6522 template<typename _Tp>
6523 struct __add_unsigned
6526 typedef __enable_if<std::__is_integer<_Tp>::__value, _Tp> __if_type;
6528 typedef typename __if_type::__type __type;
6531 struct __add_unsigned<char>
6532 { typedef unsigned char __type; };
6534 struct __add_unsigned<signed char>
6535 { typedef unsigned char __type; };
6537 struct __add_unsigned<short>
6538 { typedef unsigned short __type; };
6540 struct __add_unsigned<int>
6541 { typedef unsigned int __type; };
6543 struct __add_unsigned<long>
6544 { typedef unsigned long __type; };
6546 struct __add_unsigned<long long>
6547 { typedef unsigned long long __type; };
6549 struct __add_unsigned<bool>;
6551 struct __add_unsigned<wchar_t>;
6552 template<typename _Tp>
6553 struct __remove_unsigned
6556 typedef __enable_if<std::__is_integer<_Tp>::__value, _Tp> __if_type;
6558 typedef typename __if_type::__type __type;
6561 struct __remove_unsigned<char>
6562 { typedef signed char __type; };
6564 struct __remove_unsigned<unsigned char>
6565 { typedef signed char __type; };
6567 struct __remove_unsigned<unsigned short>
6568 { typedef short __type; };
6570 struct __remove_unsigned<unsigned int>
6571 { typedef int __type; };
6573 struct __remove_unsigned<unsigned long>
6574 { typedef long __type; };
6576 struct __remove_unsigned<unsigned long long>
6577 { typedef long long __type; };
6579 struct __remove_unsigned<bool>;
6581 struct __remove_unsigned<wchar_t>;
6582 template<typename _Type>
6584 __is_null_pointer(_Type* __ptr)
6585 { return __ptr == 0; }
6586 template<typename _Type>
6588 __is_null_pointer(_Type)
6590 template<typename _Tp, bool = std::__is_integer<_Tp>::__value>
6592 { typedef double __type; };
6593 template<typename _Tp>
6594 struct __promote<_Tp, false>
6595 { typedef _Tp __type; };
6596 template<typename _Tp, typename _Up>
6600 typedef typename __promote<_Tp>::__type __type1;
6601 typedef typename __promote<_Up>::__type __type2;
6603 typedef __typeof__(__type1() + __type2()) __type;
6605 template<typename _Tp, typename _Up, typename _Vp>
6609 typedef typename __promote<_Tp>::__type __type1;
6610 typedef typename __promote<_Up>::__type __type2;
6611 typedef typename __promote<_Vp>::__type __type3;
6613 typedef __typeof__(__type1() + __type2() + __type3()) __type;
6615 template<typename _Tp, typename _Up, typename _Vp, typename _Wp>
6619 typedef typename __promote<_Tp>::__type __type1;
6620 typedef typename __promote<_Up>::__type __type2;
6621 typedef typename __promote<_Vp>::__type __type3;
6622 typedef typename __promote<_Wp>::__type __type4;
6624 typedef __typeof__(__type1() + __type2() + __type3() + __type4()) __type;
6628 namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) {
6629 template<typename _Value>
6630 struct __numeric_traits_integer
6632 static const _Value __min = (((_Value)(-1) < 0) ? (_Value)1 << (sizeof(_Value) * 8 - ((_Value)(-1) < 0)) : (_Value)0);
6633 static const _Value __max = (((_Value)(-1) < 0) ? (((((_Value)1 << ((sizeof(_Value) * 8 - ((_Value)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(_Value)0);
6634 static const bool __is_signed = ((_Value)(-1) < 0);
6635 static const int __digits = (sizeof(_Value) * 8 - ((_Value)(-1) < 0));
6637 template<typename _Value>
6638 const _Value __numeric_traits_integer<_Value>::__min;
6639 template<typename _Value>
6640 const _Value __numeric_traits_integer<_Value>::__max;
6641 template<typename _Value>
6642 const bool __numeric_traits_integer<_Value>::__is_signed;
6643 template<typename _Value>
6644 const int __numeric_traits_integer<_Value>::__digits;
6645 template<typename _Value>
6646 struct __numeric_traits_floating
6648 static const int __max_digits10 = (2 + (std::__are_same<_Value, float>::__value ? 24 : std::__are_same<_Value, double>::__value ? 53 : 64) * 3010 / 10000);
6649 static const bool __is_signed = true;
6650 static const int __digits10 = (std::__are_same<_Value, float>::__value ? 6 : std::__are_same<_Value, double>::__value ? 15 : 18);
6651 static const int __max_exponent10 = (std::__are_same<_Value, float>::__value ? 38 : std::__are_same<_Value, double>::__value ? 308 : 4932);
6653 template<typename _Value>
6654 const int __numeric_traits_floating<_Value>::__max_digits10;
6655 template<typename _Value>
6656 const bool __numeric_traits_floating<_Value>::__is_signed;
6657 template<typename _Value>
6658 const int __numeric_traits_floating<_Value>::__digits10;
6659 template<typename _Value>
6660 const int __numeric_traits_floating<_Value>::__max_exponent10;
6661 template<typename _Value>
6662 struct __numeric_traits
6663 : public __conditional_type<std::__is_integer<_Value>::__value,
6664 __numeric_traits_integer<_Value>,
6665 __numeric_traits_floating<_Value> >::__type
6670 namespace std __attribute__ ((__visibility__ ("default"))) {
6671 template<typename _Tp>
6673 swap(_Tp& __a, _Tp& __b)
6680 template<typename _Tp, size_t _Nm>
6682 swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
6684 for (size_t __n = 0; __n < _Nm; ++__n)
6685 swap(__a[__n], __b[__n]);
6688 namespace std __attribute__ ((__visibility__ ("default"))) {
6689 template<class _T1, class _T2>
6692 typedef _T1 first_type;
6693 typedef _T2 second_type;
6697 : first(), second() { }
6698 pair(const _T1& __a, const _T2& __b)
6699 : first(__a), second(__b) { }
6700 template<class _U1, class _U2>
6701 pair(const pair<_U1, _U2>& __p)
6703 second(__p.second) { }
6705 template<class _T1, class _T2>
6707 operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
6708 { return __x.first == __y.first && __x.second == __y.second; }
6709 template<class _T1, class _T2>
6711 operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
6712 { return __x.first < __y.first
6713 || (!(__y.first < __x.first) && __x.second < __y.second); }
6714 template<class _T1, class _T2>
6716 operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
6717 { return !(__x == __y); }
6718 template<class _T1, class _T2>
6720 operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
6721 { return __y < __x; }
6722 template<class _T1, class _T2>
6724 operator<=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
6725 { return !(__y < __x); }
6726 template<class _T1, class _T2>
6728 operator>=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
6729 { return !(__x < __y); }
6730 template<class _T1, class _T2>
6731 inline pair<_T1, _T2>
6732 make_pair(_T1 __x, _T2 __y)
6733 { return pair<_T1, _T2>(__x, __y); }
6737 namespace std __attribute__ ((__visibility__ ("default"))) {
6738 struct input_iterator_tag { };
6739 struct output_iterator_tag { };
6740 struct forward_iterator_tag : public input_iterator_tag { };
6741 struct bidirectional_iterator_tag : public forward_iterator_tag { };
6742 struct random_access_iterator_tag : public bidirectional_iterator_tag { };
6743 template<typename _Category, typename _Tp, typename _Distance = ptrdiff_t,
6744 typename _Pointer = _Tp*, typename _Reference = _Tp&>
6747 typedef _Category iterator_category;
6748 typedef _Tp value_type;
6749 typedef _Distance difference_type;
6750 typedef _Pointer pointer;
6751 typedef _Reference reference;
6753 template<typename _Iterator>
6754 struct iterator_traits
6756 typedef typename _Iterator::iterator_category iterator_category;
6757 typedef typename _Iterator::value_type value_type;
6758 typedef typename _Iterator::difference_type difference_type;
6759 typedef typename _Iterator::pointer pointer;
6760 typedef typename _Iterator::reference reference;
6762 template<typename _Tp>
6763 struct iterator_traits<_Tp*>
6765 typedef random_access_iterator_tag iterator_category;
6766 typedef _Tp value_type;
6767 typedef ptrdiff_t difference_type;
6768 typedef _Tp* pointer;
6769 typedef _Tp& reference;
6771 template<typename _Tp>
6772 struct iterator_traits<const _Tp*>
6774 typedef random_access_iterator_tag iterator_category;
6775 typedef _Tp value_type;
6776 typedef ptrdiff_t difference_type;
6777 typedef const _Tp* pointer;
6778 typedef const _Tp& reference;
6780 template<typename _Iter>
6781 inline typename iterator_traits<_Iter>::iterator_category
6782 __iterator_category(const _Iter&)
6783 { return typename iterator_traits<_Iter>::iterator_category(); }
6786 namespace std __attribute__ ((__visibility__ ("default"))) {
6787 template<typename _InputIterator>
6788 inline typename iterator_traits<_InputIterator>::difference_type
6789 __distance(_InputIterator __first, _InputIterator __last,
6793 typename iterator_traits<_InputIterator>::difference_type __n = 0;
6794 while (__first != __last)
6801 template<typename _RandomAccessIterator>
6802 inline typename iterator_traits<_RandomAccessIterator>::difference_type
6803 __distance(_RandomAccessIterator __first, _RandomAccessIterator __last,
6804 random_access_iterator_tag)
6807 return __last - __first;
6809 template<typename _InputIterator>
6810 inline typename iterator_traits<_InputIterator>::difference_type
6811 distance(_InputIterator __first, _InputIterator __last)
6813 return std::__distance(__first, __last,
6814 std::__iterator_category(__first));
6816 template<typename _InputIterator, typename _Distance>
6818 __advance(_InputIterator& __i, _Distance __n, input_iterator_tag)
6824 template<typename _BidirectionalIterator, typename _Distance>
6826 __advance(_BidirectionalIterator& __i, _Distance __n,
6827 bidirectional_iterator_tag)
6837 template<typename _RandomAccessIterator, typename _Distance>
6839 __advance(_RandomAccessIterator& __i, _Distance __n,
6840 random_access_iterator_tag)
6845 template<typename _InputIterator, typename _Distance>
6847 advance(_InputIterator& __i, _Distance __n)
6849 typename iterator_traits<_InputIterator>::difference_type __d = __n;
6850 std::__advance(__i, __d, std::__iterator_category(__i));
6853 namespace std __attribute__ ((__visibility__ ("default"))) {
6854 template<typename _Iterator>
6855 class reverse_iterator
6856 : public iterator<typename iterator_traits<_Iterator>::iterator_category,
6857 typename iterator_traits<_Iterator>::value_type,
6858 typename iterator_traits<_Iterator>::difference_type,
6859 typename iterator_traits<_Iterator>::pointer,
6860 typename iterator_traits<_Iterator>::reference>
6865 typedef _Iterator iterator_type;
6866 typedef typename iterator_traits<_Iterator>::difference_type
6868 typedef typename iterator_traits<_Iterator>::reference reference;
6869 typedef typename iterator_traits<_Iterator>::pointer pointer;
6871 reverse_iterator() : current() { }
6873 reverse_iterator(iterator_type __x) : current(__x) { }
6874 reverse_iterator(const reverse_iterator& __x)
6875 : current(__x.current) { }
6876 template<typename _Iter>
6877 reverse_iterator(const reverse_iterator<_Iter>& __x)
6878 : current(__x.base()) { }
6885 _Iterator __tmp = current;
6890 { return &(operator*()); }
6900 reverse_iterator __tmp = *this;
6913 reverse_iterator __tmp = *this;
6918 operator+(difference_type __n) const
6919 { return reverse_iterator(current - __n); }
6921 operator+=(difference_type __n)
6927 operator-(difference_type __n) const
6928 { return reverse_iterator(current + __n); }
6930 operator-=(difference_type __n)
6936 operator[](difference_type __n) const
6937 { return *(*this + __n); }
6939 template<typename _Iterator>
6941 operator==(const reverse_iterator<_Iterator>& __x,
6942 const reverse_iterator<_Iterator>& __y)
6943 { return __x.base() == __y.base(); }
6944 template<typename _Iterator>
6946 operator<(const reverse_iterator<_Iterator>& __x,
6947 const reverse_iterator<_Iterator>& __y)
6948 { return __y.base() < __x.base(); }
6949 template<typename _Iterator>
6951 operator!=(const reverse_iterator<_Iterator>& __x,
6952 const reverse_iterator<_Iterator>& __y)
6953 { return !(__x == __y); }
6954 template<typename _Iterator>
6956 operator>(const reverse_iterator<_Iterator>& __x,
6957 const reverse_iterator<_Iterator>& __y)
6958 { return __y < __x; }
6959 template<typename _Iterator>
6961 operator<=(const reverse_iterator<_Iterator>& __x,
6962 const reverse_iterator<_Iterator>& __y)
6963 { return !(__y < __x); }
6964 template<typename _Iterator>
6966 operator>=(const reverse_iterator<_Iterator>& __x,
6967 const reverse_iterator<_Iterator>& __y)
6968 { return !(__x < __y); }
6969 template<typename _Iterator>
6970 inline typename reverse_iterator<_Iterator>::difference_type
6971 operator-(const reverse_iterator<_Iterator>& __x,
6972 const reverse_iterator<_Iterator>& __y)
6973 { return __y.base() - __x.base(); }
6974 template<typename _Iterator>
6975 inline reverse_iterator<_Iterator>
6976 operator+(typename reverse_iterator<_Iterator>::difference_type __n,
6977 const reverse_iterator<_Iterator>& __x)
6978 { return reverse_iterator<_Iterator>(__x.base() - __n); }
6979 template<typename _IteratorL, typename _IteratorR>
6981 operator==(const reverse_iterator<_IteratorL>& __x,
6982 const reverse_iterator<_IteratorR>& __y)
6983 { return __x.base() == __y.base(); }
6984 template<typename _IteratorL, typename _IteratorR>
6986 operator<(const reverse_iterator<_IteratorL>& __x,
6987 const reverse_iterator<_IteratorR>& __y)
6988 { return __y.base() < __x.base(); }
6989 template<typename _IteratorL, typename _IteratorR>
6991 operator!=(const reverse_iterator<_IteratorL>& __x,
6992 const reverse_iterator<_IteratorR>& __y)
6993 { return !(__x == __y); }
6994 template<typename _IteratorL, typename _IteratorR>
6996 operator>(const reverse_iterator<_IteratorL>& __x,
6997 const reverse_iterator<_IteratorR>& __y)
6998 { return __y < __x; }
6999 template<typename _IteratorL, typename _IteratorR>
7001 operator<=(const reverse_iterator<_IteratorL>& __x,
7002 const reverse_iterator<_IteratorR>& __y)
7003 { return !(__y < __x); }
7004 template<typename _IteratorL, typename _IteratorR>
7006 operator>=(const reverse_iterator<_IteratorL>& __x,
7007 const reverse_iterator<_IteratorR>& __y)
7008 { return !(__x < __y); }
7009 template<typename _IteratorL, typename _IteratorR>
7010 inline typename reverse_iterator<_IteratorL>::difference_type
7011 operator-(const reverse_iterator<_IteratorL>& __x,
7012 const reverse_iterator<_IteratorR>& __y)
7013 { return __y.base() - __x.base(); }
7014 template<typename _Container>
7015 class back_insert_iterator
7016 : public iterator<output_iterator_tag, void, void, void, void>
7019 _Container* container;
7021 typedef _Container container_type;
7023 back_insert_iterator(_Container& __x) : container(&__x) { }
7024 back_insert_iterator&
7025 operator=(typename _Container::const_reference __value)
7027 container->push_back(__value);
7030 back_insert_iterator&
7033 back_insert_iterator&
7036 back_insert_iterator
7040 template<typename _Container>
7041 inline back_insert_iterator<_Container>
7042 back_inserter(_Container& __x)
7043 { return back_insert_iterator<_Container>(__x); }
7044 template<typename _Container>
7045 class front_insert_iterator
7046 : public iterator<output_iterator_tag, void, void, void, void>
7049 _Container* container;
7051 typedef _Container container_type;
7052 explicit front_insert_iterator(_Container& __x) : container(&__x) { }
7053 front_insert_iterator&
7054 operator=(typename _Container::const_reference __value)
7056 container->push_front(__value);
7059 front_insert_iterator&
7062 front_insert_iterator&
7065 front_insert_iterator
7069 template<typename _Container>
7070 inline front_insert_iterator<_Container>
7071 front_inserter(_Container& __x)
7072 { return front_insert_iterator<_Container>(__x); }
7073 template<typename _Container>
7074 class insert_iterator
7075 : public iterator<output_iterator_tag, void, void, void, void>
7078 _Container* container;
7079 typename _Container::iterator iter;
7081 typedef _Container container_type;
7082 insert_iterator(_Container& __x, typename _Container::iterator __i)
7083 : container(&__x), iter(__i) {}
7085 operator=(typename _Container::const_reference __value)
7087 iter = container->insert(iter, __value);
7101 template<typename _Container, typename _Iterator>
7102 inline insert_iterator<_Container>
7103 inserter(_Container& __x, _Iterator __i)
7105 return insert_iterator<_Container>(__x,
7106 typename _Container::iterator(__i));
7109 namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) {
7110 using std::iterator_traits;
7111 using std::iterator;
7112 template<typename _Iterator, typename _Container>
7113 class __normal_iterator
7116 _Iterator _M_current;
7118 typedef _Iterator iterator_type;
7119 typedef typename iterator_traits<_Iterator>::iterator_category
7121 typedef typename iterator_traits<_Iterator>::value_type value_type;
7122 typedef typename iterator_traits<_Iterator>::difference_type
7124 typedef typename iterator_traits<_Iterator>::reference reference;
7125 typedef typename iterator_traits<_Iterator>::pointer pointer;
7126 __normal_iterator() : _M_current(_Iterator()) { }
7128 __normal_iterator(const _Iterator& __i) : _M_current(__i) { }
7129 template<typename _Iter>
7130 __normal_iterator(const __normal_iterator<_Iter,
7131 typename __enable_if<
7132 (std::__are_same<_Iter, typename _Container::pointer>::__value),
7133 _Container>::__type>& __i)
7134 : _M_current(__i.base()) { }
7137 { return *_M_current; }
7140 { return _M_current; }
7149 { return __normal_iterator(_M_current++); }
7158 { return __normal_iterator(_M_current--); }
7160 operator[](const difference_type& __n) const
7161 { return _M_current[__n]; }
7163 operator+=(const difference_type& __n)
7164 { _M_current += __n; return *this; }
7166 operator+(const difference_type& __n) const
7167 { return __normal_iterator(_M_current + __n); }
7169 operator-=(const difference_type& __n)
7170 { _M_current -= __n; return *this; }
7172 operator-(const difference_type& __n) const
7173 { return __normal_iterator(_M_current - __n); }
7176 { return _M_current; }
7178 template<typename _IteratorL, typename _IteratorR, typename _Container>
7180 operator==(const __normal_iterator<_IteratorL, _Container>& __lhs,
7181 const __normal_iterator<_IteratorR, _Container>& __rhs)
7182 { return __lhs.base() == __rhs.base(); }
7183 template<typename _Iterator, typename _Container>
7185 operator==(const __normal_iterator<_Iterator, _Container>& __lhs,
7186 const __normal_iterator<_Iterator, _Container>& __rhs)
7187 { return __lhs.base() == __rhs.base(); }
7188 template<typename _IteratorL, typename _IteratorR, typename _Container>
7190 operator!=(const __normal_iterator<_IteratorL, _Container>& __lhs,
7191 const __normal_iterator<_IteratorR, _Container>& __rhs)
7192 { return __lhs.base() != __rhs.base(); }
7193 template<typename _Iterator, typename _Container>
7195 operator!=(const __normal_iterator<_Iterator, _Container>& __lhs,
7196 const __normal_iterator<_Iterator, _Container>& __rhs)
7197 { return __lhs.base() != __rhs.base(); }
7198 template<typename _IteratorL, typename _IteratorR, typename _Container>
7200 operator<(const __normal_iterator<_IteratorL, _Container>& __lhs,
7201 const __normal_iterator<_IteratorR, _Container>& __rhs)
7202 { return __lhs.base() < __rhs.base(); }
7203 template<typename _Iterator, typename _Container>
7205 operator<(const __normal_iterator<_Iterator, _Container>& __lhs,
7206 const __normal_iterator<_Iterator, _Container>& __rhs)
7207 { return __lhs.base() < __rhs.base(); }
7208 template<typename _IteratorL, typename _IteratorR, typename _Container>
7210 operator>(const __normal_iterator<_IteratorL, _Container>& __lhs,
7211 const __normal_iterator<_IteratorR, _Container>& __rhs)
7212 { return __lhs.base() > __rhs.base(); }
7213 template<typename _Iterator, typename _Container>
7215 operator>(const __normal_iterator<_Iterator, _Container>& __lhs,
7216 const __normal_iterator<_Iterator, _Container>& __rhs)
7217 { return __lhs.base() > __rhs.base(); }
7218 template<typename _IteratorL, typename _IteratorR, typename _Container>
7220 operator<=(const __normal_iterator<_IteratorL, _Container>& __lhs,
7221 const __normal_iterator<_IteratorR, _Container>& __rhs)
7222 { return __lhs.base() <= __rhs.base(); }
7223 template<typename _Iterator, typename _Container>
7225 operator<=(const __normal_iterator<_Iterator, _Container>& __lhs,
7226 const __normal_iterator<_Iterator, _Container>& __rhs)
7227 { return __lhs.base() <= __rhs.base(); }
7228 template<typename _IteratorL, typename _IteratorR, typename _Container>
7230 operator>=(const __normal_iterator<_IteratorL, _Container>& __lhs,
7231 const __normal_iterator<_IteratorR, _Container>& __rhs)
7232 { return __lhs.base() >= __rhs.base(); }
7233 template<typename _Iterator, typename _Container>
7235 operator>=(const __normal_iterator<_Iterator, _Container>& __lhs,
7236 const __normal_iterator<_Iterator, _Container>& __rhs)
7237 { return __lhs.base() >= __rhs.base(); }
7238 template<typename _IteratorL, typename _IteratorR, typename _Container>
7239 inline typename __normal_iterator<_IteratorL, _Container>::difference_type
7240 operator-(const __normal_iterator<_IteratorL, _Container>& __lhs,
7241 const __normal_iterator<_IteratorR, _Container>& __rhs)
7242 { return __lhs.base() - __rhs.base(); }
7243 template<typename _Iterator, typename _Container>
7244 inline typename __normal_iterator<_Iterator, _Container>::difference_type
7245 operator-(const __normal_iterator<_Iterator, _Container>& __lhs,
7246 const __normal_iterator<_Iterator, _Container>& __rhs)
7247 { return __lhs.base() - __rhs.base(); }
7248 template<typename _Iterator, typename _Container>
7249 inline __normal_iterator<_Iterator, _Container>
7250 operator+(typename __normal_iterator<_Iterator, _Container>::difference_type
7251 __n, const __normal_iterator<_Iterator, _Container>& __i)
7252 { return __normal_iterator<_Iterator, _Container>(__i.base() + __n); }
7256 namespace __debug { }
7258 namespace __gnu_debug
7260 using namespace std::__debug;
7262 namespace std __attribute__ ((__visibility__ ("default"))) {
7263 template<bool _BoolType>
7266 template<typename _ForwardIterator1, typename _ForwardIterator2>
7268 iter_swap(_ForwardIterator1 __a, _ForwardIterator2 __b)
7270 typedef typename iterator_traits<_ForwardIterator1>::value_type
7272 _ValueType1 __tmp = (*__a);
7278 struct __iter_swap<true>
7280 template<typename _ForwardIterator1, typename _ForwardIterator2>
7282 iter_swap(_ForwardIterator1 __a, _ForwardIterator2 __b)
7287 template<typename _ForwardIterator1, typename _ForwardIterator2>
7289 iter_swap(_ForwardIterator1 __a, _ForwardIterator2 __b)
7291 typedef typename iterator_traits<_ForwardIterator1>::value_type
7293 typedef typename iterator_traits<_ForwardIterator2>::value_type
7299 typedef typename iterator_traits<_ForwardIterator1>::reference
7301 typedef typename iterator_traits<_ForwardIterator2>::reference
7303 std::__iter_swap<__are_same<_ValueType1, _ValueType2>::__value
7304 && __are_same<_ValueType1&, _ReferenceType1>::__value
7305 && __are_same<_ValueType2&, _ReferenceType2>::__value>::
7306 iter_swap(__a, __b);
7308 template<typename _ForwardIterator1, typename _ForwardIterator2>
7310 swap_ranges(_ForwardIterator1 __first1, _ForwardIterator1 __last1,
7311 _ForwardIterator2 __first2)
7316 for (; __first1 != __last1; ++__first1, ++__first2)
7317 std::iter_swap(__first1, __first2);
7320 template<typename _Tp>
7322 min(const _Tp& __a, const _Tp& __b)
7329 template<typename _Tp>
7331 max(const _Tp& __a, const _Tp& __b)
7338 template<typename _Tp, typename _Compare>
7340 min(const _Tp& __a, const _Tp& __b, _Compare __comp)
7342 if (__comp(__b, __a))
7346 template<typename _Tp, typename _Compare>
7348 max(const _Tp& __a, const _Tp& __b, _Compare __comp)
7350 if (__comp(__a, __b))
7354 template<typename _Iterator,
7355 bool _IsNormal = __is_normal_iterator<_Iterator>::__value>
7362 template<typename _Iterator>
7363 struct __niter_base<_Iterator, true>
7365 static typename _Iterator::iterator_type
7367 { return __it.base(); }
7369 template<typename _Iterator,
7370 bool _IsMove = __is_move_iterator<_Iterator>::__value>
7377 template<typename _Iterator>
7378 struct __miter_base<_Iterator, true>
7380 static typename _Iterator::iterator_type
7382 { return __it.base(); }
7384 template<bool, bool, typename>
7387 template<typename _II, typename _OI>
7389 __copy_m(_II __first, _II __last, _OI __result)
7391 for (; __first != __last; ++__result, ++__first)
7392 *__result = *__first;
7397 struct __copy_move<false, false, random_access_iterator_tag>
7399 template<typename _II, typename _OI>
7401 __copy_m(_II __first, _II __last, _OI __result)
7403 typedef typename iterator_traits<_II>::difference_type _Distance;
7404 for(_Distance __n = __last - __first; __n > 0; --__n)
7406 *__result = *__first;
7413 template<bool _IsMove>
7414 struct __copy_move<_IsMove, true, random_access_iterator_tag>
7416 template<typename _Tp>
7418 __copy_m(const _Tp* __first, const _Tp* __last, _Tp* __result)
7420 __builtin_memmove(__result, __first,
7421 sizeof(_Tp) * (__last - __first));
7422 return __result + (__last - __first);
7425 template<bool _IsMove, typename _II, typename _OI>
7427 __copy_move_a(_II __first, _II __last, _OI __result)
7429 typedef typename iterator_traits<_II>::value_type _ValueTypeI;
7430 typedef typename iterator_traits<_OI>::value_type _ValueTypeO;
7431 typedef typename iterator_traits<_II>::iterator_category _Category;
7432 const bool __simple = (__is_pod(_ValueTypeI)
7433 && __is_pointer<_II>::__value
7434 && __is_pointer<_OI>::__value
7435 && __are_same<_ValueTypeI, _ValueTypeO>::__value);
7436 return std::__copy_move<_IsMove, __simple,
7437 _Category>::__copy_m(__first, __last, __result);
7439 template<typename _CharT>
7441 template<typename _CharT, typename _Traits>
7442 class istreambuf_iterator;
7443 template<typename _CharT, typename _Traits>
7444 class ostreambuf_iterator;
7445 template<bool _IsMove, typename _CharT>
7446 typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value,
7447 ostreambuf_iterator<_CharT, char_traits<_CharT> > >::__type
7448 __copy_move_a2(_CharT*, _CharT*,
7449 ostreambuf_iterator<_CharT, char_traits<_CharT> >);
7450 template<bool _IsMove, typename _CharT>
7451 typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value,
7452 ostreambuf_iterator<_CharT, char_traits<_CharT> > >::__type
7453 __copy_move_a2(const _CharT*, const _CharT*,
7454 ostreambuf_iterator<_CharT, char_traits<_CharT> >);
7455 template<bool _IsMove, typename _CharT>
7456 typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value,
7458 __copy_move_a2(istreambuf_iterator<_CharT, char_traits<_CharT> >,
7459 istreambuf_iterator<_CharT, char_traits<_CharT> >, _CharT*);
7460 template<bool _IsMove, typename _II, typename _OI>
7462 __copy_move_a2(_II __first, _II __last, _OI __result)
7464 return _OI(std::__copy_move_a<_IsMove>
7465 (std::__niter_base<_II>::__b(__first),
7466 std::__niter_base<_II>::__b(__last),
7467 std::__niter_base<_OI>::__b(__result)));
7469 template<typename _II, typename _OI>
7471 copy(_II __first, _II __last, _OI __result)
7476 return (std::__copy_move_a2<__is_move_iterator<_II>::__value>
7477 (std::__miter_base<_II>::__b(__first),
7478 std::__miter_base<_II>::__b(__last), __result));
7480 template<bool, bool, typename>
7481 struct __copy_move_backward
7483 template<typename _BI1, typename _BI2>
7485 __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result)
7487 while (__first != __last)
7488 *--__result = *--__last;
7493 struct __copy_move_backward<false, false, random_access_iterator_tag>
7495 template<typename _BI1, typename _BI2>
7497 __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result)
7499 typename iterator_traits<_BI1>::difference_type __n;
7500 for (__n = __last - __first; __n > 0; --__n)
7501 *--__result = *--__last;
7505 template<bool _IsMove>
7506 struct __copy_move_backward<_IsMove, true, random_access_iterator_tag>
7508 template<typename _Tp>
7510 __copy_move_b(const _Tp* __first, const _Tp* __last, _Tp* __result)
7512 const ptrdiff_t _Num = __last - __first;
7513 __builtin_memmove(__result - _Num, __first, sizeof(_Tp) * _Num);
7514 return __result - _Num;
7517 template<bool _IsMove, typename _BI1, typename _BI2>
7519 __copy_move_backward_a(_BI1 __first, _BI1 __last, _BI2 __result)
7521 typedef typename iterator_traits<_BI1>::value_type _ValueType1;
7522 typedef typename iterator_traits<_BI2>::value_type _ValueType2;
7523 typedef typename iterator_traits<_BI1>::iterator_category _Category;
7524 const bool __simple = (__is_pod(_ValueType1)
7525 && __is_pointer<_BI1>::__value
7526 && __is_pointer<_BI2>::__value
7527 && __are_same<_ValueType1, _ValueType2>::__value);
7528 return std::__copy_move_backward<_IsMove, __simple,
7529 _Category>::__copy_move_b(__first,
7533 template<bool _IsMove, typename _BI1, typename _BI2>
7535 __copy_move_backward_a2(_BI1 __first, _BI1 __last, _BI2 __result)
7537 return _BI2(std::__copy_move_backward_a<_IsMove>
7538 (std::__niter_base<_BI1>::__b(__first),
7539 std::__niter_base<_BI1>::__b(__last),
7540 std::__niter_base<_BI2>::__b(__result)));
7542 template<typename _BI1, typename _BI2>
7544 copy_backward(_BI1 __first, _BI1 __last, _BI2 __result)
7550 return (std::__copy_move_backward_a2<__is_move_iterator<_BI1>::__value>
7551 (std::__miter_base<_BI1>::__b(__first),
7552 std::__miter_base<_BI1>::__b(__last), __result));
7554 template<typename _ForwardIterator, typename _Tp>
7556 __gnu_cxx::__enable_if<!__is_scalar<_Tp>::__value, void>::__type
7557 __fill_a(_ForwardIterator __first, _ForwardIterator __last,
7560 for (; __first != __last; ++__first)
7563 template<typename _ForwardIterator, typename _Tp>
7565 __gnu_cxx::__enable_if<__is_scalar<_Tp>::__value, void>::__type
7566 __fill_a(_ForwardIterator __first, _ForwardIterator __last,
7569 const _Tp __tmp = __value;
7570 for (; __first != __last; ++__first)
7573 template<typename _Tp>
7575 __gnu_cxx::__enable_if<__is_byte<_Tp>::__value, void>::__type
7576 __fill_a(_Tp* __first, _Tp* __last, const _Tp& __c)
7578 const _Tp __tmp = __c;
7579 __builtin_memset(__first, static_cast<unsigned char>(__tmp),
7582 template<typename _ForwardIterator, typename _Tp>
7584 fill(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __value)
7588 std::__fill_a(std::__niter_base<_ForwardIterator>::__b(__first),
7589 std::__niter_base<_ForwardIterator>::__b(__last), __value);
7591 template<typename _OutputIterator, typename _Size, typename _Tp>
7593 __gnu_cxx::__enable_if<!__is_scalar<_Tp>::__value, _OutputIterator>::__type
7594 __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value)
7596 for (; __n > 0; --__n, ++__first)
7600 template<typename _OutputIterator, typename _Size, typename _Tp>
7602 __gnu_cxx::__enable_if<__is_scalar<_Tp>::__value, _OutputIterator>::__type
7603 __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value)
7605 const _Tp __tmp = __value;
7606 for (; __n > 0; --__n, ++__first)
7610 template<typename _Size, typename _Tp>
7612 __gnu_cxx::__enable_if<__is_byte<_Tp>::__value, _Tp*>::__type
7613 __fill_n_a(_Tp* __first, _Size __n, const _Tp& __c)
7615 std::__fill_a(__first, __first + __n, __c);
7616 return __first + __n;
7618 template<typename _OI, typename _Size, typename _Tp>
7620 fill_n(_OI __first, _Size __n, const _Tp& __value)
7623 return _OI(std::__fill_n_a(std::__niter_base<_OI>::__b(__first),
7626 template<bool _BoolType>
7629 template<typename _II1, typename _II2>
7631 equal(_II1 __first1, _II1 __last1, _II2 __first2)
7633 for (; __first1 != __last1; ++__first1, ++__first2)
7634 if (!(*__first1 == *__first2))
7640 struct __equal<true>
7642 template<typename _Tp>
7644 equal(const _Tp* __first1, const _Tp* __last1, const _Tp* __first2)
7646 return !__builtin_memcmp(__first1, __first2, sizeof(_Tp)
7647 * (__last1 - __first1));
7650 template<typename _II1, typename _II2>
7652 __equal_aux(_II1 __first1, _II1 __last1, _II2 __first2)
7654 typedef typename iterator_traits<_II1>::value_type _ValueType1;
7655 typedef typename iterator_traits<_II2>::value_type _ValueType2;
7656 const bool __simple = (__is_integer<_ValueType1>::__value
7657 && __is_pointer<_II1>::__value
7658 && __is_pointer<_II2>::__value
7659 && __are_same<_ValueType1, _ValueType2>::__value);
7660 return std::__equal<__simple>::equal(__first1, __last1, __first2);
7662 template<typename, typename>
7665 template<typename _II1, typename _II2>
7667 __newlast1(_II1, _II1 __last1, _II2, _II2)
7669 template<typename _II>
7671 __cnd2(_II __first, _II __last)
7672 { return __first != __last; }
7675 struct __lc_rai<random_access_iterator_tag, random_access_iterator_tag>
7677 template<typename _RAI1, typename _RAI2>
7679 __newlast1(_RAI1 __first1, _RAI1 __last1,
7680 _RAI2 __first2, _RAI2 __last2)
7682 const typename iterator_traits<_RAI1>::difference_type
7683 __diff1 = __last1 - __first1;
7684 const typename iterator_traits<_RAI2>::difference_type
7685 __diff2 = __last2 - __first2;
7686 return __diff2 < __diff1 ? __first1 + __diff2 : __last1;
7688 template<typename _RAI>
7693 template<bool _BoolType>
7694 struct __lexicographical_compare
7696 template<typename _II1, typename _II2>
7697 static bool __lc(_II1, _II1, _II2, _II2);
7699 template<bool _BoolType>
7700 template<typename _II1, typename _II2>
7702 __lexicographical_compare<_BoolType>::
7703 __lc(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2)
7705 typedef typename iterator_traits<_II1>::iterator_category _Category1;
7706 typedef typename iterator_traits<_II2>::iterator_category _Category2;
7707 typedef std::__lc_rai<_Category1, _Category2> __rai_type;
7708 __last1 = __rai_type::__newlast1(__first1, __last1,
7710 for (; __first1 != __last1 && __rai_type::__cnd2(__first2, __last2);
7711 ++__first1, ++__first2)
7713 if (*__first1 < *__first2)
7715 if (*__first2 < *__first1)
7718 return __first1 == __last1 && __first2 != __last2;
7721 struct __lexicographical_compare<true>
7723 template<typename _Tp, typename _Up>
7725 __lc(const _Tp* __first1, const _Tp* __last1,
7726 const _Up* __first2, const _Up* __last2)
7728 const size_t __len1 = __last1 - __first1;
7729 const size_t __len2 = __last2 - __first2;
7730 const int __result = __builtin_memcmp(__first1, __first2,
7731 std::min(__len1, __len2));
7732 return __result != 0 ? __result < 0 : __len1 < __len2;
7735 template<typename _II1, typename _II2>
7737 __lexicographical_compare_aux(_II1 __first1, _II1 __last1,
7738 _II2 __first2, _II2 __last2)
7740 typedef typename iterator_traits<_II1>::value_type _ValueType1;
7741 typedef typename iterator_traits<_II2>::value_type _ValueType2;
7742 const bool __simple =
7743 (__is_byte<_ValueType1>::__value && __is_byte<_ValueType2>::__value
7744 && !__gnu_cxx::__numeric_traits<_ValueType1>::__is_signed
7745 && !__gnu_cxx::__numeric_traits<_ValueType2>::__is_signed
7746 && __is_pointer<_II1>::__value
7747 && __is_pointer<_II2>::__value);
7748 return std::__lexicographical_compare<__simple>::__lc(__first1, __last1,
7752 namespace std __attribute__ ((__visibility__ ("default"))) {
7753 template<typename _II1, typename _II2>
7755 equal(_II1 __first1, _II1 __last1, _II2 __first2)
7761 return std::__equal_aux(std::__niter_base<_II1>::__b(__first1),
7762 std::__niter_base<_II1>::__b(__last1),
7763 std::__niter_base<_II2>::__b(__first2));
7765 template<typename _IIter1, typename _IIter2, typename _BinaryPredicate>
7767 equal(_IIter1 __first1, _IIter1 __last1,
7768 _IIter2 __first2, _BinaryPredicate __binary_pred)
7773 for (; __first1 != __last1; ++__first1, ++__first2)
7774 if (!bool(__binary_pred(*__first1, *__first2)))
7778 template<typename _II1, typename _II2>
7780 lexicographical_compare(_II1 __first1, _II1 __last1,
7781 _II2 __first2, _II2 __last2)
7783 typedef typename iterator_traits<_II1>::value_type _ValueType1;
7784 typedef typename iterator_traits<_II2>::value_type _ValueType2;
7791 return std::__lexicographical_compare_aux
7792 (std::__niter_base<_II1>::__b(__first1),
7793 std::__niter_base<_II1>::__b(__last1),
7794 std::__niter_base<_II2>::__b(__first2),
7795 std::__niter_base<_II2>::__b(__last2));
7797 template<typename _II1, typename _II2, typename _Compare>
7799 lexicographical_compare(_II1 __first1, _II1 __last1,
7800 _II2 __first2, _II2 __last2, _Compare __comp)
7802 typedef typename iterator_traits<_II1>::iterator_category _Category1;
7803 typedef typename iterator_traits<_II2>::iterator_category _Category2;
7804 typedef std::__lc_rai<_Category1, _Category2> __rai_type;
7809 __last1 = __rai_type::__newlast1(__first1, __last1, __first2, __last2);
7810 for (; __first1 != __last1 && __rai_type::__cnd2(__first2, __last2);
7811 ++__first1, ++__first2)
7813 if (__comp(*__first1, *__first2))
7815 if (__comp(*__first2, *__first1))
7818 return __first1 == __last1 && __first2 != __last2;
7820 template<typename _InputIterator1, typename _InputIterator2>
7821 pair<_InputIterator1, _InputIterator2>
7822 mismatch(_InputIterator1 __first1, _InputIterator1 __last1,
7823 _InputIterator2 __first2)
7829 while (__first1 != __last1 && *__first1 == *__first2)
7834 return pair<_InputIterator1, _InputIterator2>(__first1, __first2);
7836 template<typename _InputIterator1, typename _InputIterator2,
7837 typename _BinaryPredicate>
7838 pair<_InputIterator1, _InputIterator2>
7839 mismatch(_InputIterator1 __first1, _InputIterator1 __last1,
7840 _InputIterator2 __first2, _BinaryPredicate __binary_pred)
7845 while (__first1 != __last1 && bool(__binary_pred(*__first1, *__first2)))
7850 return pair<_InputIterator1, _InputIterator2>(__first1, __first2);
7856 namespace std __attribute__ ((__visibility__ ("default"))) {
7859 namespace std __attribute__ ((__visibility__ ("default"))) {
7918 namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) {
7923 namespace std __attribute__ ((__visibility__ ("default"))) {
7924 using ::__gnu_cxx::wcstold;
7925 using ::__gnu_cxx::wcstoll;
7926 using ::__gnu_cxx::wcstoull;
7928 namespace std __attribute__ ((__visibility__ ("default"))) {
7929 typedef long streamoff;
7930 typedef ptrdiff_t streamsize;
7931 template<typename _StateT>
7939 : _M_off(0), _M_state() { }
7940 fpos(streamoff __off)
7941 : _M_off(__off), _M_state() { }
7942 operator streamoff() const { return _M_off; }
7945 { _M_state = __st; }
7948 { return _M_state; }
7950 operator+=(streamoff __off)
7956 operator-=(streamoff __off)
7962 operator+(streamoff __off) const
7969 operator-(streamoff __off) const
7976 operator-(const fpos& __other) const
7977 { return _M_off - __other._M_off; }
7979 template<typename _StateT>
7981 operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
7982 { return streamoff(__lhs) == streamoff(__rhs); }
7983 template<typename _StateT>
7985 operator!=(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
7986 { return streamoff(__lhs) != streamoff(__rhs); }
7987 typedef fpos<mbstate_t> streampos;
7988 typedef fpos<mbstate_t> wstreampos;
7992 namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) {
7993 template<typename _CharT>
7996 typedef unsigned long int_type;
7997 typedef std::streampos pos_type;
7998 typedef std::streamoff off_type;
7999 typedef std::mbstate_t state_type;
8001 template<typename _CharT>
8004 typedef _CharT char_type;
8005 typedef typename _Char_types<_CharT>::int_type int_type;
8006 typedef typename _Char_types<_CharT>::pos_type pos_type;
8007 typedef typename _Char_types<_CharT>::off_type off_type;
8008 typedef typename _Char_types<_CharT>::state_type state_type;
8010 assign(char_type& __c1, const char_type& __c2)
8013 eq(const char_type& __c1, const char_type& __c2)
8014 { return __c1 == __c2; }
8016 lt(const char_type& __c1, const char_type& __c2)
8017 { return __c1 < __c2; }
8019 compare(const char_type* __s1, const char_type* __s2, std::size_t __n);
8021 length(const char_type* __s);
8022 static const char_type*
8023 find(const char_type* __s, std::size_t __n, const char_type& __a);
8025 move(char_type* __s1, const char_type* __s2, std::size_t __n);
8027 copy(char_type* __s1, const char_type* __s2, std::size_t __n);
8029 assign(char_type* __s, std::size_t __n, char_type __a);
8031 to_char_type(const int_type& __c)
8032 { return static_cast<char_type>(__c); }
8034 to_int_type(const char_type& __c)
8035 { return static_cast<int_type>(__c); }
8037 eq_int_type(const int_type& __c1, const int_type& __c2)
8038 { return __c1 == __c2; }
8041 { return static_cast<int_type>((-1)); }
8043 not_eof(const int_type& __c)
8044 { return !eq_int_type(__c, eof()) ? __c : to_int_type(char_type()); }
8046 template<typename _CharT>
8048 char_traits<_CharT>::
8049 compare(const char_type* __s1, const char_type* __s2, std::size_t __n)
8051 for (std::size_t __i = 0; __i < __n; ++__i)
8052 if (lt(__s1[__i], __s2[__i]))
8054 else if (lt(__s2[__i], __s1[__i]))
8058 template<typename _CharT>
8060 char_traits<_CharT>::
8061 length(const char_type* __p)
8063 std::size_t __i = 0;
8064 while (!eq(__p[__i], char_type()))
8068 template<typename _CharT>
8069 const typename char_traits<_CharT>::char_type*
8070 char_traits<_CharT>::
8071 find(const char_type* __s, std::size_t __n, const char_type& __a)
8073 for (std::size_t __i = 0; __i < __n; ++__i)
8074 if (eq(__s[__i], __a))
8078 template<typename _CharT>
8079 typename char_traits<_CharT>::char_type*
8080 char_traits<_CharT>::
8081 move(char_type* __s1, const char_type* __s2, std::size_t __n)
8083 return static_cast<_CharT*>(__builtin_memmove(__s1, __s2,
8084 __n * sizeof(char_type)));
8086 template<typename _CharT>
8087 typename char_traits<_CharT>::char_type*
8088 char_traits<_CharT>::
8089 copy(char_type* __s1, const char_type* __s2, std::size_t __n)
8091 std::copy(__s2, __s2 + __n, __s1);
8094 template<typename _CharT>
8095 typename char_traits<_CharT>::char_type*
8096 char_traits<_CharT>::
8097 assign(char_type* __s, std::size_t __n, char_type __a)
8099 std::fill_n(__s, __n, __a);
8103 namespace std __attribute__ ((__visibility__ ("default"))) {
8104 template<class _CharT>
8105 struct char_traits : public __gnu_cxx::char_traits<_CharT>
8108 struct char_traits<char>
8110 typedef char char_type;
8111 typedef int int_type;
8112 typedef streampos pos_type;
8113 typedef streamoff off_type;
8114 typedef mbstate_t state_type;
8116 assign(char_type& __c1, const char_type& __c2)
8119 eq(const char_type& __c1, const char_type& __c2)
8120 { return __c1 == __c2; }
8122 lt(const char_type& __c1, const char_type& __c2)
8123 { return __c1 < __c2; }
8125 compare(const char_type* __s1, const char_type* __s2, size_t __n)
8126 { return __builtin_memcmp(__s1, __s2, __n); }
8128 length(const char_type* __s)
8129 { return __builtin_strlen(__s); }
8130 static const char_type*
8131 find(const char_type* __s, size_t __n, const char_type& __a)
8132 { return static_cast<const char_type*>(__builtin_memchr(__s, __a, __n)); }
8134 move(char_type* __s1, const char_type* __s2, size_t __n)
8135 { return static_cast<char_type*>(__builtin_memmove(__s1, __s2, __n)); }
8137 copy(char_type* __s1, const char_type* __s2, size_t __n)
8138 { return static_cast<char_type*>(__builtin_memcpy(__s1, __s2, __n)); }
8140 assign(char_type* __s, size_t __n, char_type __a)
8141 { return static_cast<char_type*>(__builtin_memset(__s, __a, __n)); }
8143 to_char_type(const int_type& __c)
8144 { return static_cast<char_type>(__c); }
8146 to_int_type(const char_type& __c)
8147 { return static_cast<int_type>(static_cast<unsigned char>(__c)); }
8149 eq_int_type(const int_type& __c1, const int_type& __c2)
8150 { return __c1 == __c2; }
8153 { return static_cast<int_type>((-1)); }
8155 not_eof(const int_type& __c)
8156 { return (__c == eof()) ? 0 : __c; }
8159 struct char_traits<wchar_t>
8161 typedef wchar_t char_type;
8162 typedef wint_t int_type;
8163 typedef streamoff off_type;
8164 typedef wstreampos pos_type;
8165 typedef mbstate_t state_type;
8167 assign(char_type& __c1, const char_type& __c2)
8170 eq(const char_type& __c1, const char_type& __c2)
8171 { return __c1 == __c2; }
8173 lt(const char_type& __c1, const char_type& __c2)
8174 { return __c1 < __c2; }
8176 compare(const char_type* __s1, const char_type* __s2, size_t __n)
8177 { return wmemcmp(__s1, __s2, __n); }
8179 length(const char_type* __s)
8180 { return wcslen(__s); }
8181 static const char_type*
8182 find(const char_type* __s, size_t __n, const char_type& __a)
8183 { return wmemchr(__s, __a, __n); }
8185 move(char_type* __s1, const char_type* __s2, size_t __n)
8186 { return wmemmove(__s1, __s2, __n); }
8188 copy(char_type* __s1, const char_type* __s2, size_t __n)
8189 { return wmemcpy(__s1, __s2, __n); }
8191 assign(char_type* __s, size_t __n, char_type __a)
8192 { return wmemset(__s, __a, __n); }
8194 to_char_type(const int_type& __c)
8195 { return char_type(__c); }
8197 to_int_type(const char_type& __c)
8198 { return int_type(__c); }
8200 eq_int_type(const int_type& __c1, const int_type& __c2)
8201 { return __c1 == __c2; }
8204 { return static_cast<int_type>((0xffffffffu)); }
8206 not_eof(const int_type& __c)
8207 { return eq_int_type(__c, eof()) ? 0 : __c; }
8217 exception() throw() { }
8218 virtual ~exception() throw();
8219 virtual const char* what() const throw();
8221 class bad_exception : public exception
8224 bad_exception() throw() { }
8225 virtual ~bad_exception() throw();
8226 virtual const char* what() const throw();
8228 typedef void (*terminate_handler) ();
8229 typedef void (*unexpected_handler) ();
8230 terminate_handler set_terminate(terminate_handler) throw();
8231 void terminate() __attribute__ ((__noreturn__));
8232 unexpected_handler set_unexpected(unexpected_handler) throw();
8233 void unexpected() __attribute__ ((__noreturn__));
8234 bool uncaught_exception() throw();
8236 namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) {
8237 void __verbose_terminate_handler();
8243 class bad_alloc : public exception
8246 bad_alloc() throw() { }
8247 virtual ~bad_alloc() throw();
8248 virtual const char* what() const throw();
8250 struct nothrow_t { };
8251 extern const nothrow_t nothrow;
8252 typedef void (*new_handler)();
8253 new_handler set_new_handler(new_handler) throw();
8255 void* operator new(std::size_t) throw (std::bad_alloc);
8256 void* operator new[](std::size_t) throw (std::bad_alloc);
8257 void operator delete(void*) throw();
8258 void operator delete[](void*) throw();
8259 void* operator new(std::size_t, const std::nothrow_t&) throw();
8260 void* operator new[](std::size_t, const std::nothrow_t&) throw();
8261 void operator delete(void*, const std::nothrow_t&) throw();
8262 void operator delete[](void*, const std::nothrow_t&) throw();
8263 inline void* operator new(std::size_t, void* __p) throw() { return __p; }
8264 inline void* operator new[](std::size_t, void* __p) throw() { return __p; }
8265 inline void operator delete (void*, void*) throw() { }
8266 inline void operator delete[](void*, void*) throw() { }
8268 namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) {
8270 using std::ptrdiff_t;
8271 template<typename _Tp>
8275 typedef size_t size_type;
8276 typedef ptrdiff_t difference_type;
8277 typedef _Tp* pointer;
8278 typedef const _Tp* const_pointer;
8279 typedef _Tp& reference;
8280 typedef const _Tp& const_reference;
8281 typedef _Tp value_type;
8282 template<typename _Tp1>
8284 { typedef new_allocator<_Tp1> other; };
8285 new_allocator() throw() { }
8286 new_allocator(const new_allocator&) throw() { }
8287 template<typename _Tp1>
8288 new_allocator(const new_allocator<_Tp1>&) throw() { }
8289 ~new_allocator() throw() { }
8291 address(reference __x) const { return &__x; }
8293 address(const_reference __x) const { return &__x; }
8295 allocate(size_type __n, const void* = 0)
8297 if (__builtin_expect(__n > this->max_size(), false))
8298 std::__throw_bad_alloc();
8299 return static_cast<_Tp*>(::operator new(__n * sizeof(_Tp)));
8302 deallocate(pointer __p, size_type)
8303 { ::operator delete(__p); }
8305 max_size() const throw()
8306 { return size_t(-1) / sizeof(_Tp); }
8308 construct(pointer __p, const _Tp& __val)
8309 { ::new((void *)__p) _Tp(__val); }
8311 destroy(pointer __p) { __p->~_Tp(); }
8313 template<typename _Tp>
8315 operator==(const new_allocator<_Tp>&, const new_allocator<_Tp>&)
8317 template<typename _Tp>
8319 operator!=(const new_allocator<_Tp>&, const new_allocator<_Tp>&)
8322 namespace std __attribute__ ((__visibility__ ("default"))) {
8323 template<typename _Tp>
8326 class allocator<void>
8329 typedef size_t size_type;
8330 typedef ptrdiff_t difference_type;
8331 typedef void* pointer;
8332 typedef const void* const_pointer;
8333 typedef void value_type;
8334 template<typename _Tp1>
8336 { typedef allocator<_Tp1> other; };
8338 template<typename _Tp>
8339 class allocator: public __gnu_cxx::new_allocator<_Tp>
8342 typedef size_t size_type;
8343 typedef ptrdiff_t difference_type;
8344 typedef _Tp* pointer;
8345 typedef const _Tp* const_pointer;
8346 typedef _Tp& reference;
8347 typedef const _Tp& const_reference;
8348 typedef _Tp value_type;
8349 template<typename _Tp1>
8351 { typedef allocator<_Tp1> other; };
8352 allocator() throw() { }
8353 allocator(const allocator& __a) throw()
8354 : __gnu_cxx::new_allocator<_Tp>(__a) { }
8355 template<typename _Tp1>
8356 allocator(const allocator<_Tp1>&) throw() { }
8357 ~allocator() throw() { }
8359 template<typename _T1, typename _T2>
8361 operator==(const allocator<_T1>&, const allocator<_T2>&)
8363 template<typename _Tp>
8365 operator==(const allocator<_Tp>&, const allocator<_Tp>&)
8367 template<typename _T1, typename _T2>
8369 operator!=(const allocator<_T1>&, const allocator<_T2>&)
8371 template<typename _Tp>
8373 operator!=(const allocator<_Tp>&, const allocator<_Tp>&)
8375 extern template class allocator<char>;
8376 extern template class allocator<wchar_t>;
8377 template<typename _Alloc, bool = __is_empty(_Alloc)>
8379 { static void _S_do_it(_Alloc&, _Alloc&) { } };
8380 template<typename _Alloc>
8381 struct __alloc_swap<_Alloc, false>
8384 _S_do_it(_Alloc& __one, _Alloc& __two)
8390 template<typename _Alloc, bool = __is_empty(_Alloc)>
8394 _S_do_it(const _Alloc&, const _Alloc&)
8397 template<typename _Alloc>
8398 struct __alloc_neq<_Alloc, false>
8401 _S_do_it(const _Alloc& __one, const _Alloc& __two)
8402 { return __one != __two; }
8420 __LC_TELEPHONE = 10,
8421 __LC_MEASUREMENT = 11,
8422 __LC_IDENTIFICATION = 12
8427 char *decimal_point;
8428 char *thousands_sep;
8430 char *int_curr_symbol;
8431 char *currency_symbol;
8432 char *mon_decimal_point;
8433 char *mon_thousands_sep;
8435 char *positive_sign;
8436 char *negative_sign;
8437 char int_frac_digits;
8440 char p_sep_by_space;
8442 char n_sep_by_space;
8445 char int_p_cs_precedes;
8446 char int_p_sep_by_space;
8447 char int_n_cs_precedes;
8448 char int_n_sep_by_space;
8449 char int_p_sign_posn;
8450 char int_n_sign_posn;
8452 extern char *setlocale (int __category, __const char *__locale) throw ();
8453 extern struct lconv *localeconv (void) throw ();
8454 extern __locale_t newlocale (int __category_mask, __const char *__locale,
8455 __locale_t __base) throw ();
8456 extern __locale_t duplocale (__locale_t __dataset) throw ();
8457 extern void freelocale (__locale_t __dataset) throw ();
8458 extern __locale_t uselocale (__locale_t __dataset) throw ();
8460 namespace std __attribute__ ((__visibility__ ("default"))) {
8466 namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) {
8467 extern "C" __typeof(uselocale) __uselocale;
8469 namespace std __attribute__ ((__visibility__ ("default"))) {
8470 typedef __locale_t __c_locale;
8472 __convert_from_v(const __c_locale& __cloc __attribute__ ((__unused__)),
8474 const int __size __attribute__ ((__unused__)),
8475 const char* __fmt, ...)
8477 __c_locale __old = __gnu_cxx::__uselocale(__cloc);
8478 __builtin_va_list __args;
8479 __builtin_va_start(__args, __fmt);
8480 const int __ret = __builtin_vsnprintf(__out, __size, __fmt, __args);
8481 __builtin_va_end(__args);
8482 __gnu_cxx::__uselocale(__old);
8487 namespace std __attribute__ ((__visibility__ ("default"))) {
8488 template<typename _CharT, typename _Traits = char_traits<_CharT> >
8490 template<typename _CharT, typename _Traits = char_traits<_CharT> >
8491 class basic_streambuf;
8492 template<typename _CharT, typename _Traits = char_traits<_CharT> >
8493 class basic_istream;
8494 template<typename _CharT, typename _Traits = char_traits<_CharT> >
8495 class basic_ostream;
8496 template<typename _CharT, typename _Traits = char_traits<_CharT> >
8497 class basic_iostream;
8498 template<typename _CharT, typename _Traits = char_traits<_CharT>,
8499 typename _Alloc = allocator<_CharT> >
8500 class basic_stringbuf;
8501 template<typename _CharT, typename _Traits = char_traits<_CharT>,
8502 typename _Alloc = allocator<_CharT> >
8503 class basic_istringstream;
8504 template<typename _CharT, typename _Traits = char_traits<_CharT>,
8505 typename _Alloc = allocator<_CharT> >
8506 class basic_ostringstream;
8507 template<typename _CharT, typename _Traits = char_traits<_CharT>,
8508 typename _Alloc = allocator<_CharT> >
8509 class basic_stringstream;
8510 template<typename _CharT, typename _Traits = char_traits<_CharT> >
8511 class basic_filebuf;
8512 template<typename _CharT, typename _Traits = char_traits<_CharT> >
8513 class basic_ifstream;
8514 template<typename _CharT, typename _Traits = char_traits<_CharT> >
8515 class basic_ofstream;
8516 template<typename _CharT, typename _Traits = char_traits<_CharT> >
8517 class basic_fstream;
8518 template<typename _CharT, typename _Traits = char_traits<_CharT> >
8519 class istreambuf_iterator;
8520 template<typename _CharT, typename _Traits = char_traits<_CharT> >
8521 class ostreambuf_iterator;
8523 typedef basic_ios<char> ios;
8524 typedef basic_streambuf<char> streambuf;
8525 typedef basic_istream<char> istream;
8526 typedef basic_ostream<char> ostream;
8527 typedef basic_iostream<char> iostream;
8528 typedef basic_stringbuf<char> stringbuf;
8529 typedef basic_istringstream<char> istringstream;
8530 typedef basic_ostringstream<char> ostringstream;
8531 typedef basic_stringstream<char> stringstream;
8532 typedef basic_filebuf<char> filebuf;
8533 typedef basic_ifstream<char> ifstream;
8534 typedef basic_ofstream<char> ofstream;
8535 typedef basic_fstream<char> fstream;
8536 typedef basic_ios<wchar_t> wios;
8537 typedef basic_streambuf<wchar_t> wstreambuf;
8538 typedef basic_istream<wchar_t> wistream;
8539 typedef basic_ostream<wchar_t> wostream;
8540 typedef basic_iostream<wchar_t> wiostream;
8541 typedef basic_stringbuf<wchar_t> wstringbuf;
8542 typedef basic_istringstream<wchar_t> wistringstream;
8543 typedef basic_ostringstream<wchar_t> wostringstream;
8544 typedef basic_stringstream<wchar_t> wstringstream;
8545 typedef basic_filebuf<wchar_t> wfilebuf;
8546 typedef basic_ifstream<wchar_t> wifstream;
8547 typedef basic_ofstream<wchar_t> wofstream;
8548 typedef basic_fstream<wchar_t> wfstream;
8551 namespace std __attribute__ ((__visibility__ ("default"))) {
8566 namespace std __attribute__ ((__visibility__ ("default"))) {
8568 template<typename _Facet>
8570 has_facet(const locale&) throw();
8571 template<typename _Facet>
8573 use_facet(const locale&);
8574 template<typename _CharT>
8576 isspace(_CharT, const locale&);
8577 template<typename _CharT>
8579 isprint(_CharT, const locale&);
8580 template<typename _CharT>
8582 iscntrl(_CharT, const locale&);
8583 template<typename _CharT>
8585 isupper(_CharT, const locale&);
8586 template<typename _CharT>
8588 islower(_CharT, const locale&);
8589 template<typename _CharT>
8591 isalpha(_CharT, const locale&);
8592 template<typename _CharT>
8594 isdigit(_CharT, const locale&);
8595 template<typename _CharT>
8597 ispunct(_CharT, const locale&);
8598 template<typename _CharT>
8600 isxdigit(_CharT, const locale&);
8601 template<typename _CharT>
8603 isalnum(_CharT, const locale&);
8604 template<typename _CharT>
8606 isgraph(_CharT, const locale&);
8607 template<typename _CharT>
8609 toupper(_CharT, const locale&);
8610 template<typename _CharT>
8612 tolower(_CharT, const locale&);
8614 template<typename _CharT>
8616 template<> class ctype<char>;
8617 template<> class ctype<wchar_t>;
8618 template<typename _CharT>
8621 template<typename _InternT, typename _ExternT, typename _StateT>
8623 template<> class codecvt<char, char, mbstate_t>;
8624 template<> class codecvt<wchar_t, char, mbstate_t>;
8625 template<typename _InternT, typename _ExternT, typename _StateT>
8626 class codecvt_byname;
8627 template<typename _CharT, typename _InIter = istreambuf_iterator<_CharT> >
8629 template<typename _CharT, typename _OutIter = ostreambuf_iterator<_CharT> >
8631 template<typename _CharT> class numpunct;
8632 template<typename _CharT> class numpunct_byname;
8633 template<typename _CharT>
8635 template<typename _CharT> class
8638 template<typename _CharT, typename _InIter = istreambuf_iterator<_CharT> >
8640 template<typename _CharT, typename _InIter = istreambuf_iterator<_CharT> >
8641 class time_get_byname;
8642 template<typename _CharT, typename _OutIter = ostreambuf_iterator<_CharT> >
8644 template<typename _CharT, typename _OutIter = ostreambuf_iterator<_CharT> >
8645 class time_put_byname;
8647 template<typename _CharT, typename _InIter = istreambuf_iterator<_CharT> >
8649 template<typename _CharT, typename _OutIter = ostreambuf_iterator<_CharT> >
8651 template<typename _CharT, bool _Intl = false>
8653 template<typename _CharT, bool _Intl = false>
8654 class moneypunct_byname;
8655 class messages_base;
8656 template<typename _CharT>
8658 template<typename _CharT>
8659 class messages_byname;
8662 namespace __cxxabiv1
8664 class __forced_unwind
8666 virtual ~__forced_unwind() throw();
8667 virtual void __pure_dummy() = 0;
8670 namespace std __attribute__ ((__visibility__ ("default"))) {
8671 template<typename _CharT, typename _Traits>
8673 __ostream_write(basic_ostream<_CharT, _Traits>& __out,
8674 const _CharT* __s, streamsize __n)
8676 typedef basic_ostream<_CharT, _Traits> __ostream_type;
8677 typedef typename __ostream_type::ios_base __ios_base;
8678 const streamsize __put = __out.rdbuf()->sputn(__s, __n);
8680 __out.setstate(__ios_base::badbit);
8682 template<typename _CharT, typename _Traits>
8684 __ostream_fill(basic_ostream<_CharT, _Traits>& __out, streamsize __n)
8686 typedef basic_ostream<_CharT, _Traits> __ostream_type;
8687 typedef typename __ostream_type::ios_base __ios_base;
8688 const _CharT __c = __out.fill();
8689 for (; __n > 0; --__n)
8691 const typename _Traits::int_type __put = __out.rdbuf()->sputc(__c);
8692 if (_Traits::eq_int_type(__put, _Traits::eof()))
8694 __out.setstate(__ios_base::badbit);
8699 template<typename _CharT, typename _Traits>
8700 basic_ostream<_CharT, _Traits>&
8701 __ostream_insert(basic_ostream<_CharT, _Traits>& __out,
8702 const _CharT* __s, streamsize __n)
8704 typedef basic_ostream<_CharT, _Traits> __ostream_type;
8705 typedef typename __ostream_type::ios_base __ios_base;
8706 typename __ostream_type::sentry __cerb(__out);
8711 const streamsize __w = __out.width();
8714 const bool __left = ((__out.flags()
8715 & __ios_base::adjustfield)
8716 == __ios_base::left);
8718 __ostream_fill(__out, __w - __n);
8720 __ostream_write(__out, __s, __n);
8721 if (__left && __out.good())
8722 __ostream_fill(__out, __w - __n);
8725 __ostream_write(__out, __s, __n);
8728 catch(__cxxabiv1::__forced_unwind&)
8730 __out._M_setstate(__ios_base::badbit);
8734 { __out._M_setstate(__ios_base::badbit); }
8738 extern template ostream& __ostream_insert(ostream&, const char*, streamsize);
8739 extern template wostream& __ostream_insert(wostream&, const wchar_t*,
8742 namespace std __attribute__ ((__visibility__ ("default"))) {
8743 template<typename _Arg, typename _Result>
8744 struct unary_function
8746 typedef _Arg argument_type;
8747 typedef _Result result_type;
8749 template<typename _Arg1, typename _Arg2, typename _Result>
8750 struct binary_function
8752 typedef _Arg1 first_argument_type;
8753 typedef _Arg2 second_argument_type;
8754 typedef _Result result_type;
8756 template<typename _Tp>
8757 struct plus : public binary_function<_Tp, _Tp, _Tp>
8760 operator()(const _Tp& __x, const _Tp& __y) const
8761 { return __x + __y; }
8763 template<typename _Tp>
8764 struct minus : public binary_function<_Tp, _Tp, _Tp>
8767 operator()(const _Tp& __x, const _Tp& __y) const
8768 { return __x - __y; }
8770 template<typename _Tp>
8771 struct multiplies : public binary_function<_Tp, _Tp, _Tp>
8774 operator()(const _Tp& __x, const _Tp& __y) const
8775 { return __x * __y; }
8777 template<typename _Tp>
8778 struct divides : public binary_function<_Tp, _Tp, _Tp>
8781 operator()(const _Tp& __x, const _Tp& __y) const
8782 { return __x / __y; }
8784 template<typename _Tp>
8785 struct modulus : public binary_function<_Tp, _Tp, _Tp>
8788 operator()(const _Tp& __x, const _Tp& __y) const
8789 { return __x % __y; }
8791 template<typename _Tp>
8792 struct negate : public unary_function<_Tp, _Tp>
8795 operator()(const _Tp& __x) const
8798 template<typename _Tp>
8799 struct equal_to : public binary_function<_Tp, _Tp, bool>
8802 operator()(const _Tp& __x, const _Tp& __y) const
8803 { return __x == __y; }
8805 template<typename _Tp>
8806 struct not_equal_to : public binary_function<_Tp, _Tp, bool>
8809 operator()(const _Tp& __x, const _Tp& __y) const
8810 { return __x != __y; }
8812 template<typename _Tp>
8813 struct greater : public binary_function<_Tp, _Tp, bool>
8816 operator()(const _Tp& __x, const _Tp& __y) const
8817 { return __x > __y; }
8819 template<typename _Tp>
8820 struct less : public binary_function<_Tp, _Tp, bool>
8823 operator()(const _Tp& __x, const _Tp& __y) const
8824 { return __x < __y; }
8826 template<typename _Tp>
8827 struct greater_equal : public binary_function<_Tp, _Tp, bool>
8830 operator()(const _Tp& __x, const _Tp& __y) const
8831 { return __x >= __y; }
8833 template<typename _Tp>
8834 struct less_equal : public binary_function<_Tp, _Tp, bool>
8837 operator()(const _Tp& __x, const _Tp& __y) const
8838 { return __x <= __y; }
8840 template<typename _Tp>
8841 struct logical_and : public binary_function<_Tp, _Tp, bool>
8844 operator()(const _Tp& __x, const _Tp& __y) const
8845 { return __x && __y; }
8847 template<typename _Tp>
8848 struct logical_or : public binary_function<_Tp, _Tp, bool>
8851 operator()(const _Tp& __x, const _Tp& __y) const
8852 { return __x || __y; }
8854 template<typename _Tp>
8855 struct logical_not : public unary_function<_Tp, bool>
8858 operator()(const _Tp& __x) const
8861 template<typename _Tp>
8862 struct bit_and : public binary_function<_Tp, _Tp, _Tp>
8865 operator()(const _Tp& __x, const _Tp& __y) const
8866 { return __x & __y; }
8868 template<typename _Tp>
8869 struct bit_or : public binary_function<_Tp, _Tp, _Tp>
8872 operator()(const _Tp& __x, const _Tp& __y) const
8873 { return __x | __y; }
8875 template<typename _Tp>
8876 struct bit_xor : public binary_function<_Tp, _Tp, _Tp>
8879 operator()(const _Tp& __x, const _Tp& __y) const
8880 { return __x ^ __y; }
8882 template<typename _Predicate>
8884 : public unary_function<typename _Predicate::argument_type, bool>
8890 unary_negate(const _Predicate& __x) : _M_pred(__x) { }
8892 operator()(const typename _Predicate::argument_type& __x) const
8893 { return !_M_pred(__x); }
8895 template<typename _Predicate>
8896 inline unary_negate<_Predicate>
8897 not1(const _Predicate& __pred)
8898 { return unary_negate<_Predicate>(__pred); }
8899 template<typename _Predicate>
8901 : public binary_function<typename _Predicate::first_argument_type,
8902 typename _Predicate::second_argument_type, bool>
8908 binary_negate(const _Predicate& __x) : _M_pred(__x) { }
8910 operator()(const typename _Predicate::first_argument_type& __x,
8911 const typename _Predicate::second_argument_type& __y) const
8912 { return !_M_pred(__x, __y); }
8914 template<typename _Predicate>
8915 inline binary_negate<_Predicate>
8916 not2(const _Predicate& __pred)
8917 { return binary_negate<_Predicate>(__pred); }
8918 template<typename _Arg, typename _Result>
8919 class pointer_to_unary_function : public unary_function<_Arg, _Result>
8922 _Result (*_M_ptr)(_Arg);
8924 pointer_to_unary_function() { }
8926 pointer_to_unary_function(_Result (*__x)(_Arg))
8929 operator()(_Arg __x) const
8930 { return _M_ptr(__x); }
8932 template<typename _Arg, typename _Result>
8933 inline pointer_to_unary_function<_Arg, _Result>
8934 ptr_fun(_Result (*__x)(_Arg))
8935 { return pointer_to_unary_function<_Arg, _Result>(__x); }
8936 template<typename _Arg1, typename _Arg2, typename _Result>
8937 class pointer_to_binary_function
8938 : public binary_function<_Arg1, _Arg2, _Result>
8941 _Result (*_M_ptr)(_Arg1, _Arg2);
8943 pointer_to_binary_function() { }
8945 pointer_to_binary_function(_Result (*__x)(_Arg1, _Arg2))
8948 operator()(_Arg1 __x, _Arg2 __y) const
8949 { return _M_ptr(__x, __y); }
8951 template<typename _Arg1, typename _Arg2, typename _Result>
8952 inline pointer_to_binary_function<_Arg1, _Arg2, _Result>
8953 ptr_fun(_Result (*__x)(_Arg1, _Arg2))
8954 { return pointer_to_binary_function<_Arg1, _Arg2, _Result>(__x); }
8955 template<typename _Tp>
8956 struct _Identity : public unary_function<_Tp,_Tp>
8959 operator()(_Tp& __x) const
8962 operator()(const _Tp& __x) const
8965 template<typename _Pair>
8966 struct _Select1st : public unary_function<_Pair,
8967 typename _Pair::first_type>
8969 typename _Pair::first_type&
8970 operator()(_Pair& __x) const
8971 { return __x.first; }
8972 const typename _Pair::first_type&
8973 operator()(const _Pair& __x) const
8974 { return __x.first; }
8976 template<typename _Pair>
8977 struct _Select2nd : public unary_function<_Pair,
8978 typename _Pair::second_type>
8980 typename _Pair::second_type&
8981 operator()(_Pair& __x) const
8982 { return __x.second; }
8983 const typename _Pair::second_type&
8984 operator()(const _Pair& __x) const
8985 { return __x.second; }
8987 template<typename _Ret, typename _Tp>
8988 class mem_fun_t : public unary_function<_Tp*, _Ret>
8992 mem_fun_t(_Ret (_Tp::*__pf)())
8995 operator()(_Tp* __p) const
8996 { return (__p->*_M_f)(); }
8998 _Ret (_Tp::*_M_f)();
9000 template<typename _Ret, typename _Tp>
9001 class const_mem_fun_t : public unary_function<const _Tp*, _Ret>
9005 const_mem_fun_t(_Ret (_Tp::*__pf)() const)
9008 operator()(const _Tp* __p) const
9009 { return (__p->*_M_f)(); }
9011 _Ret (_Tp::*_M_f)() const;
9013 template<typename _Ret, typename _Tp>
9014 class mem_fun_ref_t : public unary_function<_Tp, _Ret>
9018 mem_fun_ref_t(_Ret (_Tp::*__pf)())
9021 operator()(_Tp& __r) const
9022 { return (__r.*_M_f)(); }
9024 _Ret (_Tp::*_M_f)();
9026 template<typename _Ret, typename _Tp>
9027 class const_mem_fun_ref_t : public unary_function<_Tp, _Ret>
9031 const_mem_fun_ref_t(_Ret (_Tp::*__pf)() const)
9034 operator()(const _Tp& __r) const
9035 { return (__r.*_M_f)(); }
9037 _Ret (_Tp::*_M_f)() const;
9039 template<typename _Ret, typename _Tp, typename _Arg>
9040 class mem_fun1_t : public binary_function<_Tp*, _Arg, _Ret>
9044 mem_fun1_t(_Ret (_Tp::*__pf)(_Arg))
9047 operator()(_Tp* __p, _Arg __x) const
9048 { return (__p->*_M_f)(__x); }
9050 _Ret (_Tp::*_M_f)(_Arg);
9052 template<typename _Ret, typename _Tp, typename _Arg>
9053 class const_mem_fun1_t : public binary_function<const _Tp*, _Arg, _Ret>
9057 const_mem_fun1_t(_Ret (_Tp::*__pf)(_Arg) const)
9060 operator()(const _Tp* __p, _Arg __x) const
9061 { return (__p->*_M_f)(__x); }
9063 _Ret (_Tp::*_M_f)(_Arg) const;
9065 template<typename _Ret, typename _Tp, typename _Arg>
9066 class mem_fun1_ref_t : public binary_function<_Tp, _Arg, _Ret>
9070 mem_fun1_ref_t(_Ret (_Tp::*__pf)(_Arg))
9073 operator()(_Tp& __r, _Arg __x) const
9074 { return (__r.*_M_f)(__x); }
9076 _Ret (_Tp::*_M_f)(_Arg);
9078 template<typename _Ret, typename _Tp, typename _Arg>
9079 class const_mem_fun1_ref_t : public binary_function<_Tp, _Arg, _Ret>
9083 const_mem_fun1_ref_t(_Ret (_Tp::*__pf)(_Arg) const)
9086 operator()(const _Tp& __r, _Arg __x) const
9087 { return (__r.*_M_f)(__x); }
9089 _Ret (_Tp::*_M_f)(_Arg) const;
9091 template<typename _Ret, typename _Tp>
9092 inline mem_fun_t<_Ret, _Tp>
9093 mem_fun(_Ret (_Tp::*__f)())
9094 { return mem_fun_t<_Ret, _Tp>(__f); }
9095 template<typename _Ret, typename _Tp>
9096 inline const_mem_fun_t<_Ret, _Tp>
9097 mem_fun(_Ret (_Tp::*__f)() const)
9098 { return const_mem_fun_t<_Ret, _Tp>(__f); }
9099 template<typename _Ret, typename _Tp>
9100 inline mem_fun_ref_t<_Ret, _Tp>
9101 mem_fun_ref(_Ret (_Tp::*__f)())
9102 { return mem_fun_ref_t<_Ret, _Tp>(__f); }
9103 template<typename _Ret, typename _Tp>
9104 inline const_mem_fun_ref_t<_Ret, _Tp>
9105 mem_fun_ref(_Ret (_Tp::*__f)() const)
9106 { return const_mem_fun_ref_t<_Ret, _Tp>(__f); }
9107 template<typename _Ret, typename _Tp, typename _Arg>
9108 inline mem_fun1_t<_Ret, _Tp, _Arg>
9109 mem_fun(_Ret (_Tp::*__f)(_Arg))
9110 { return mem_fun1_t<_Ret, _Tp, _Arg>(__f); }
9111 template<typename _Ret, typename _Tp, typename _Arg>
9112 inline const_mem_fun1_t<_Ret, _Tp, _Arg>
9113 mem_fun(_Ret (_Tp::*__f)(_Arg) const)
9114 { return const_mem_fun1_t<_Ret, _Tp, _Arg>(__f); }
9115 template<typename _Ret, typename _Tp, typename _Arg>
9116 inline mem_fun1_ref_t<_Ret, _Tp, _Arg>
9117 mem_fun_ref(_Ret (_Tp::*__f)(_Arg))
9118 { return mem_fun1_ref_t<_Ret, _Tp, _Arg>(__f); }
9119 template<typename _Ret, typename _Tp, typename _Arg>
9120 inline const_mem_fun1_ref_t<_Ret, _Tp, _Arg>
9121 mem_fun_ref(_Ret (_Tp::*__f)(_Arg) const)
9122 { return const_mem_fun1_ref_t<_Ret, _Tp, _Arg>(__f); }
9124 namespace std __attribute__ ((__visibility__ ("default"))) {
9125 template<typename _Operation>
9127 : public unary_function<typename _Operation::second_argument_type,
9128 typename _Operation::result_type>
9132 typename _Operation::first_argument_type value;
9134 binder1st(const _Operation& __x,
9135 const typename _Operation::first_argument_type& __y)
9136 : op(__x), value(__y) { }
9137 typename _Operation::result_type
9138 operator()(const typename _Operation::second_argument_type& __x) const
9139 { return op(value, __x); }
9140 typename _Operation::result_type
9141 operator()(typename _Operation::second_argument_type& __x) const
9142 { return op(value, __x); }
9144 template<typename _Operation, typename _Tp>
9145 inline binder1st<_Operation>
9146 bind1st(const _Operation& __fn, const _Tp& __x)
9148 typedef typename _Operation::first_argument_type _Arg1_type;
9149 return binder1st<_Operation>(__fn, _Arg1_type(__x));
9151 template<typename _Operation>
9153 : public unary_function<typename _Operation::first_argument_type,
9154 typename _Operation::result_type>
9158 typename _Operation::second_argument_type value;
9160 binder2nd(const _Operation& __x,
9161 const typename _Operation::second_argument_type& __y)
9162 : op(__x), value(__y) { }
9163 typename _Operation::result_type
9164 operator()(const typename _Operation::first_argument_type& __x) const
9165 { return op(__x, value); }
9166 typename _Operation::result_type
9167 operator()(typename _Operation::first_argument_type& __x) const
9168 { return op(__x, value); }
9170 template<typename _Operation, typename _Tp>
9171 inline binder2nd<_Operation>
9172 bind2nd(const _Operation& __fn, const _Tp& __x)
9174 typedef typename _Operation::second_argument_type _Arg2_type;
9175 return binder2nd<_Operation>(__fn, _Arg2_type(__x));
9181 int __sched_priority;
9184 extern int clone (int (*__fn) (void *__arg), void *__child_stack,
9185 int __flags, void *__arg, ...) throw ();
9186 extern int unshare (int __flags) throw ();
9187 extern int sched_getcpu (void) throw ();
9189 struct __sched_param
9191 int __sched_priority;
9193 typedef unsigned long int __cpu_mask;
9196 __cpu_mask __bits[1024 / (8 * sizeof (__cpu_mask))];
9199 extern int __sched_cpucount (size_t __setsize, const cpu_set_t *__setp)
9201 extern cpu_set_t *__sched_cpualloc (size_t __count) throw () ;
9202 extern void __sched_cpufree (cpu_set_t *__set) throw ();
9205 extern int sched_setparam (__pid_t __pid, __const struct sched_param *__param)
9207 extern int sched_getparam (__pid_t __pid, struct sched_param *__param) throw ();
9208 extern int sched_setscheduler (__pid_t __pid, int __policy,
9209 __const struct sched_param *__param) throw ();
9210 extern int sched_getscheduler (__pid_t __pid) throw ();
9211 extern int sched_yield (void) throw ();
9212 extern int sched_get_priority_max (int __algorithm) throw ();
9213 extern int sched_get_priority_min (int __algorithm) throw ();
9214 extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) throw ();
9215 extern int sched_setaffinity (__pid_t __pid, size_t __cpusetsize,
9216 __const cpu_set_t *__cpuset) throw ();
9217 extern int sched_getaffinity (__pid_t __pid, size_t __cpusetsize,
9218 cpu_set_t *__cpuset) throw ();
9222 PTHREAD_CREATE_JOINABLE,
9223 PTHREAD_CREATE_DETACHED
9227 PTHREAD_MUTEX_TIMED_NP,
9228 PTHREAD_MUTEX_RECURSIVE_NP,
9229 PTHREAD_MUTEX_ERRORCHECK_NP,
9230 PTHREAD_MUTEX_ADAPTIVE_NP
9232 PTHREAD_MUTEX_NORMAL = PTHREAD_MUTEX_TIMED_NP,
9233 PTHREAD_MUTEX_RECURSIVE = PTHREAD_MUTEX_RECURSIVE_NP,
9234 PTHREAD_MUTEX_ERRORCHECK = PTHREAD_MUTEX_ERRORCHECK_NP,
9235 PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_NORMAL
9236 , PTHREAD_MUTEX_FAST_NP = PTHREAD_MUTEX_TIMED_NP
9240 PTHREAD_MUTEX_STALLED,
9241 PTHREAD_MUTEX_STALLED_NP = PTHREAD_MUTEX_STALLED,
9242 PTHREAD_MUTEX_ROBUST,
9243 PTHREAD_MUTEX_ROBUST_NP = PTHREAD_MUTEX_ROBUST
9248 PTHREAD_PRIO_INHERIT,
9249 PTHREAD_PRIO_PROTECT
9253 PTHREAD_RWLOCK_PREFER_READER_NP,
9254 PTHREAD_RWLOCK_PREFER_WRITER_NP,
9255 PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP,
9256 PTHREAD_RWLOCK_DEFAULT_NP = PTHREAD_RWLOCK_PREFER_READER_NP
9260 PTHREAD_INHERIT_SCHED,
9261 PTHREAD_EXPLICIT_SCHED
9265 PTHREAD_SCOPE_SYSTEM,
9266 PTHREAD_SCOPE_PROCESS
9270 PTHREAD_PROCESS_PRIVATE,
9271 PTHREAD_PROCESS_SHARED
9273 struct _pthread_cleanup_buffer
9275 void (*__routine) (void *);
9278 struct _pthread_cleanup_buffer *__prev;
9282 PTHREAD_CANCEL_ENABLE,
9283 PTHREAD_CANCEL_DISABLE
9287 PTHREAD_CANCEL_DEFERRED,
9288 PTHREAD_CANCEL_ASYNCHRONOUS
9291 extern int pthread_create (pthread_t *__restrict __newthread,
9292 __const pthread_attr_t *__restrict __attr,
9293 void *(*__start_routine) (void *),
9294 void *__restrict __arg) throw () __attribute__ ((__nonnull__ (1, 3)));
9295 extern void pthread_exit (void *__retval) __attribute__ ((__noreturn__));
9296 extern int pthread_join (pthread_t __th, void **__thread_return);
9297 extern int pthread_tryjoin_np (pthread_t __th, void **__thread_return) throw ();
9298 extern int pthread_timedjoin_np (pthread_t __th, void **__thread_return,
9299 __const struct timespec *__abstime);
9300 extern int pthread_detach (pthread_t __th) throw ();
9301 extern pthread_t pthread_self (void) throw () __attribute__ ((__const__));
9302 extern int pthread_equal (pthread_t __thread1, pthread_t __thread2) throw ();
9303 extern int pthread_attr_init (pthread_attr_t *__attr) throw () __attribute__ ((__nonnull__ (1)));
9304 extern int pthread_attr_destroy (pthread_attr_t *__attr)
9305 throw () __attribute__ ((__nonnull__ (1)));
9306 extern int pthread_attr_getdetachstate (__const pthread_attr_t *__attr,
9308 throw () __attribute__ ((__nonnull__ (1, 2)));
9309 extern int pthread_attr_setdetachstate (pthread_attr_t *__attr,
9311 throw () __attribute__ ((__nonnull__ (1)));
9312 extern int pthread_attr_getguardsize (__const pthread_attr_t *__attr,
9313 size_t *__guardsize)
9314 throw () __attribute__ ((__nonnull__ (1, 2)));
9315 extern int pthread_attr_setguardsize (pthread_attr_t *__attr,
9317 throw () __attribute__ ((__nonnull__ (1)));
9318 extern int pthread_attr_getschedparam (__const pthread_attr_t *__restrict
9320 struct sched_param *__restrict __param)
9321 throw () __attribute__ ((__nonnull__ (1, 2)));
9322 extern int pthread_attr_setschedparam (pthread_attr_t *__restrict __attr,
9323 __const struct sched_param *__restrict
9324 __param) throw () __attribute__ ((__nonnull__ (1, 2)));
9325 extern int pthread_attr_getschedpolicy (__const pthread_attr_t *__restrict
9326 __attr, int *__restrict __policy)
9327 throw () __attribute__ ((__nonnull__ (1, 2)));
9328 extern int pthread_attr_setschedpolicy (pthread_attr_t *__attr, int __policy)
9329 throw () __attribute__ ((__nonnull__ (1)));
9330 extern int pthread_attr_getinheritsched (__const pthread_attr_t *__restrict
9331 __attr, int *__restrict __inherit)
9332 throw () __attribute__ ((__nonnull__ (1, 2)));
9333 extern int pthread_attr_setinheritsched (pthread_attr_t *__attr,
9335 throw () __attribute__ ((__nonnull__ (1)));
9336 extern int pthread_attr_getscope (__const pthread_attr_t *__restrict __attr,
9337 int *__restrict __scope)
9338 throw () __attribute__ ((__nonnull__ (1, 2)));
9339 extern int pthread_attr_setscope (pthread_attr_t *__attr, int __scope)
9340 throw () __attribute__ ((__nonnull__ (1)));
9341 extern int pthread_attr_getstackaddr (__const pthread_attr_t *__restrict
9342 __attr, void **__restrict __stackaddr)
9343 throw () __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__deprecated__));
9344 extern int pthread_attr_setstackaddr (pthread_attr_t *__attr,
9346 throw () __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__));
9347 extern int pthread_attr_getstacksize (__const pthread_attr_t *__restrict
9348 __attr, size_t *__restrict __stacksize)
9349 throw () __attribute__ ((__nonnull__ (1, 2)));
9350 extern int pthread_attr_setstacksize (pthread_attr_t *__attr,
9352 throw () __attribute__ ((__nonnull__ (1)));
9353 extern int pthread_attr_getstack (__const pthread_attr_t *__restrict __attr,
9354 void **__restrict __stackaddr,
9355 size_t *__restrict __stacksize)
9356 throw () __attribute__ ((__nonnull__ (1, 2, 3)));
9357 extern int pthread_attr_setstack (pthread_attr_t *__attr, void *__stackaddr,
9358 size_t __stacksize) throw () __attribute__ ((__nonnull__ (1)));
9359 extern int pthread_attr_setaffinity_np (pthread_attr_t *__attr,
9360 size_t __cpusetsize,
9361 __const cpu_set_t *__cpuset)
9362 throw () __attribute__ ((__nonnull__ (1, 3)));
9363 extern int pthread_attr_getaffinity_np (__const pthread_attr_t *__attr,
9364 size_t __cpusetsize,
9365 cpu_set_t *__cpuset)
9366 throw () __attribute__ ((__nonnull__ (1, 3)));
9367 extern int pthread_getattr_np (pthread_t __th, pthread_attr_t *__attr)
9368 throw () __attribute__ ((__nonnull__ (2)));
9369 extern int pthread_setschedparam (pthread_t __target_thread, int __policy,
9370 __const struct sched_param *__param)
9371 throw () __attribute__ ((__nonnull__ (3)));
9372 extern int pthread_getschedparam (pthread_t __target_thread,
9373 int *__restrict __policy,
9374 struct sched_param *__restrict __param)
9375 throw () __attribute__ ((__nonnull__ (2, 3)));
9376 extern int pthread_setschedprio (pthread_t __target_thread, int __prio)
9378 extern int pthread_getconcurrency (void) throw ();
9379 extern int pthread_setconcurrency (int __level) throw ();
9380 extern int pthread_yield (void) throw ();
9381 extern int pthread_setaffinity_np (pthread_t __th, size_t __cpusetsize,
9382 __const cpu_set_t *__cpuset)
9383 throw () __attribute__ ((__nonnull__ (3)));
9384 extern int pthread_getaffinity_np (pthread_t __th, size_t __cpusetsize,
9385 cpu_set_t *__cpuset)
9386 throw () __attribute__ ((__nonnull__ (3)));
9387 extern int pthread_once (pthread_once_t *__once_control,
9388 void (*__init_routine) (void)) __attribute__ ((__nonnull__ (1, 2)));
9389 extern int pthread_setcancelstate (int __state, int *__oldstate);
9390 extern int pthread_setcanceltype (int __type, int *__oldtype);
9391 extern int pthread_cancel (pthread_t __th);
9392 extern void pthread_testcancel (void);
9397 __jmp_buf __cancel_jmp_buf;
9398 int __mask_was_saved;
9399 } __cancel_jmp_buf[1];
9401 } __pthread_unwind_buf_t __attribute__ ((__aligned__));
9402 struct __pthread_cleanup_frame
9404 void (*__cancel_routine) (void *);
9409 class __pthread_cleanup_class
9411 void (*__cancel_routine) (void *);
9416 __pthread_cleanup_class (void (*__fct) (void *), void *__arg)
9417 : __cancel_routine (__fct), __cancel_arg (__arg), __do_it (1) { }
9418 ~__pthread_cleanup_class () { if (__do_it) __cancel_routine (__cancel_arg); }
9419 void __setdoit (int __newval) { __do_it = __newval; }
9420 void __defer () { pthread_setcanceltype (PTHREAD_CANCEL_DEFERRED,
9422 void __restore () const { pthread_setcanceltype (__cancel_type, 0); }
9424 struct __jmp_buf_tag;
9425 extern int __sigsetjmp (struct __jmp_buf_tag *__env, int __savemask) throw ();
9426 extern int pthread_mutex_init (pthread_mutex_t *__mutex,
9427 __const pthread_mutexattr_t *__mutexattr)
9428 throw () __attribute__ ((__nonnull__ (1)));
9429 extern int pthread_mutex_destroy (pthread_mutex_t *__mutex)
9430 throw () __attribute__ ((__nonnull__ (1)));
9431 extern int pthread_mutex_trylock (pthread_mutex_t *__mutex)
9432 throw () __attribute__ ((__nonnull__ (1)));
9433 extern int pthread_mutex_lock (pthread_mutex_t *__mutex)
9434 throw () __attribute__ ((__nonnull__ (1)));
9435 extern int pthread_mutex_timedlock (pthread_mutex_t *__restrict __mutex,
9436 __const struct timespec *__restrict
9437 __abstime) throw () __attribute__ ((__nonnull__ (1, 2)));
9438 extern int pthread_mutex_unlock (pthread_mutex_t *__mutex)
9439 throw () __attribute__ ((__nonnull__ (1)));
9440 extern int pthread_mutex_getprioceiling (__const pthread_mutex_t *
9442 int *__restrict __prioceiling)
9443 throw () __attribute__ ((__nonnull__ (1, 2)));
9444 extern int pthread_mutex_setprioceiling (pthread_mutex_t *__restrict __mutex,
9446 int *__restrict __old_ceiling)
9447 throw () __attribute__ ((__nonnull__ (1, 3)));
9448 extern int pthread_mutex_consistent_np (pthread_mutex_t *__mutex)
9449 throw () __attribute__ ((__nonnull__ (1)));
9450 extern int pthread_mutex_consistent_np (pthread_mutex_t *__mutex)
9451 throw () __attribute__ ((__nonnull__ (1)));
9452 extern int pthread_mutexattr_init (pthread_mutexattr_t *__attr)
9453 throw () __attribute__ ((__nonnull__ (1)));
9454 extern int pthread_mutexattr_destroy (pthread_mutexattr_t *__attr)
9455 throw () __attribute__ ((__nonnull__ (1)));
9456 extern int pthread_mutexattr_getpshared (__const pthread_mutexattr_t *
9458 int *__restrict __pshared)
9459 throw () __attribute__ ((__nonnull__ (1, 2)));
9460 extern int pthread_mutexattr_setpshared (pthread_mutexattr_t *__attr,
9462 throw () __attribute__ ((__nonnull__ (1)));
9463 extern int pthread_mutexattr_gettype (__const pthread_mutexattr_t *__restrict
9464 __attr, int *__restrict __kind)
9465 throw () __attribute__ ((__nonnull__ (1, 2)));
9466 extern int pthread_mutexattr_settype (pthread_mutexattr_t *__attr, int __kind)
9467 throw () __attribute__ ((__nonnull__ (1)));
9468 extern int pthread_mutexattr_getprotocol (__const pthread_mutexattr_t *
9470 int *__restrict __protocol)
9471 throw () __attribute__ ((__nonnull__ (1, 2)));
9472 extern int pthread_mutexattr_setprotocol (pthread_mutexattr_t *__attr,
9474 throw () __attribute__ ((__nonnull__ (1)));
9475 extern int pthread_mutexattr_getprioceiling (__const pthread_mutexattr_t *
9477 int *__restrict __prioceiling)
9478 throw () __attribute__ ((__nonnull__ (1, 2)));
9479 extern int pthread_mutexattr_setprioceiling (pthread_mutexattr_t *__attr,
9481 throw () __attribute__ ((__nonnull__ (1)));
9482 extern int pthread_mutexattr_getrobust (__const pthread_mutexattr_t *__attr,
9484 throw () __attribute__ ((__nonnull__ (1, 2)));
9485 extern int pthread_mutexattr_getrobust_np (__const pthread_mutexattr_t *__attr,
9487 throw () __attribute__ ((__nonnull__ (1, 2)));
9488 extern int pthread_mutexattr_setrobust (pthread_mutexattr_t *__attr,
9490 throw () __attribute__ ((__nonnull__ (1)));
9491 extern int pthread_mutexattr_setrobust_np (pthread_mutexattr_t *__attr,
9493 throw () __attribute__ ((__nonnull__ (1)));
9494 extern int pthread_rwlock_init (pthread_rwlock_t *__restrict __rwlock,
9495 __const pthread_rwlockattr_t *__restrict
9496 __attr) throw () __attribute__ ((__nonnull__ (1)));
9497 extern int pthread_rwlock_destroy (pthread_rwlock_t *__rwlock)
9498 throw () __attribute__ ((__nonnull__ (1)));
9499 extern int pthread_rwlock_rdlock (pthread_rwlock_t *__rwlock)
9500 throw () __attribute__ ((__nonnull__ (1)));
9501 extern int pthread_rwlock_tryrdlock (pthread_rwlock_t *__rwlock)
9502 throw () __attribute__ ((__nonnull__ (1)));
9503 extern int pthread_rwlock_timedrdlock (pthread_rwlock_t *__restrict __rwlock,
9504 __const struct timespec *__restrict
9505 __abstime) throw () __attribute__ ((__nonnull__ (1, 2)));
9506 extern int pthread_rwlock_wrlock (pthread_rwlock_t *__rwlock)
9507 throw () __attribute__ ((__nonnull__ (1)));
9508 extern int pthread_rwlock_trywrlock (pthread_rwlock_t *__rwlock)
9509 throw () __attribute__ ((__nonnull__ (1)));
9510 extern int pthread_rwlock_timedwrlock (pthread_rwlock_t *__restrict __rwlock,
9511 __const struct timespec *__restrict
9512 __abstime) throw () __attribute__ ((__nonnull__ (1, 2)));
9513 extern int pthread_rwlock_unlock (pthread_rwlock_t *__rwlock)
9514 throw () __attribute__ ((__nonnull__ (1)));
9515 extern int pthread_rwlockattr_init (pthread_rwlockattr_t *__attr)
9516 throw () __attribute__ ((__nonnull__ (1)));
9517 extern int pthread_rwlockattr_destroy (pthread_rwlockattr_t *__attr)
9518 throw () __attribute__ ((__nonnull__ (1)));
9519 extern int pthread_rwlockattr_getpshared (__const pthread_rwlockattr_t *
9521 int *__restrict __pshared)
9522 throw () __attribute__ ((__nonnull__ (1, 2)));
9523 extern int pthread_rwlockattr_setpshared (pthread_rwlockattr_t *__attr,
9525 throw () __attribute__ ((__nonnull__ (1)));
9526 extern int pthread_rwlockattr_getkind_np (__const pthread_rwlockattr_t *
9528 int *__restrict __pref)
9529 throw () __attribute__ ((__nonnull__ (1, 2)));
9530 extern int pthread_rwlockattr_setkind_np (pthread_rwlockattr_t *__attr,
9531 int __pref) throw () __attribute__ ((__nonnull__ (1)));
9532 extern int pthread_cond_init (pthread_cond_t *__restrict __cond,
9533 __const pthread_condattr_t *__restrict
9534 __cond_attr) throw () __attribute__ ((__nonnull__ (1)));
9535 extern int pthread_cond_destroy (pthread_cond_t *__cond)
9536 throw () __attribute__ ((__nonnull__ (1)));
9537 extern int pthread_cond_signal (pthread_cond_t *__cond)
9538 throw () __attribute__ ((__nonnull__ (1)));
9539 extern int pthread_cond_broadcast (pthread_cond_t *__cond)
9540 throw () __attribute__ ((__nonnull__ (1)));
9541 extern int pthread_cond_wait (pthread_cond_t *__restrict __cond,
9542 pthread_mutex_t *__restrict __mutex)
9543 __attribute__ ((__nonnull__ (1, 2)));
9544 extern int pthread_cond_timedwait (pthread_cond_t *__restrict __cond,
9545 pthread_mutex_t *__restrict __mutex,
9546 __const struct timespec *__restrict
9547 __abstime) __attribute__ ((__nonnull__ (1, 2, 3)));
9548 extern int pthread_condattr_init (pthread_condattr_t *__attr)
9549 throw () __attribute__ ((__nonnull__ (1)));
9550 extern int pthread_condattr_destroy (pthread_condattr_t *__attr)
9551 throw () __attribute__ ((__nonnull__ (1)));
9552 extern int pthread_condattr_getpshared (__const pthread_condattr_t *
9554 int *__restrict __pshared)
9555 throw () __attribute__ ((__nonnull__ (1, 2)));
9556 extern int pthread_condattr_setpshared (pthread_condattr_t *__attr,
9557 int __pshared) throw () __attribute__ ((__nonnull__ (1)));
9558 extern int pthread_condattr_getclock (__const pthread_condattr_t *
9560 __clockid_t *__restrict __clock_id)
9561 throw () __attribute__ ((__nonnull__ (1, 2)));
9562 extern int pthread_condattr_setclock (pthread_condattr_t *__attr,
9563 __clockid_t __clock_id)
9564 throw () __attribute__ ((__nonnull__ (1)));
9565 extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared)
9566 throw () __attribute__ ((__nonnull__ (1)));
9567 extern int pthread_spin_destroy (pthread_spinlock_t *__lock)
9568 throw () __attribute__ ((__nonnull__ (1)));
9569 extern int pthread_spin_lock (pthread_spinlock_t *__lock)
9570 throw () __attribute__ ((__nonnull__ (1)));
9571 extern int pthread_spin_trylock (pthread_spinlock_t *__lock)
9572 throw () __attribute__ ((__nonnull__ (1)));
9573 extern int pthread_spin_unlock (pthread_spinlock_t *__lock)
9574 throw () __attribute__ ((__nonnull__ (1)));
9575 extern int pthread_barrier_init (pthread_barrier_t *__restrict __barrier,
9576 __const pthread_barrierattr_t *__restrict
9577 __attr, unsigned int __count)
9578 throw () __attribute__ ((__nonnull__ (1)));
9579 extern int pthread_barrier_destroy (pthread_barrier_t *__barrier)
9580 throw () __attribute__ ((__nonnull__ (1)));
9581 extern int pthread_barrier_wait (pthread_barrier_t *__barrier)
9582 throw () __attribute__ ((__nonnull__ (1)));
9583 extern int pthread_barrierattr_init (pthread_barrierattr_t *__attr)
9584 throw () __attribute__ ((__nonnull__ (1)));
9585 extern int pthread_barrierattr_destroy (pthread_barrierattr_t *__attr)
9586 throw () __attribute__ ((__nonnull__ (1)));
9587 extern int pthread_barrierattr_getpshared (__const pthread_barrierattr_t *
9589 int *__restrict __pshared)
9590 throw () __attribute__ ((__nonnull__ (1, 2)));
9591 extern int pthread_barrierattr_setpshared (pthread_barrierattr_t *__attr,
9593 throw () __attribute__ ((__nonnull__ (1)));
9594 extern int pthread_key_create (pthread_key_t *__key,
9595 void (*__destr_function) (void *))
9596 throw () __attribute__ ((__nonnull__ (1)));
9597 extern int pthread_key_delete (pthread_key_t __key) throw ();
9598 extern void *pthread_getspecific (pthread_key_t __key) throw ();
9599 extern int pthread_setspecific (pthread_key_t __key,
9600 __const void *__pointer) throw () ;
9601 extern int pthread_getcpuclockid (pthread_t __thread_id,
9602 __clockid_t *__clock_id)
9603 throw () __attribute__ ((__nonnull__ (2)));
9604 extern int pthread_atfork (void (*__prepare) (void),
9605 void (*__parent) (void),
9606 void (*__child) (void)) throw ();
9608 typedef pthread_t __gthread_t;
9609 typedef pthread_key_t __gthread_key_t;
9610 typedef pthread_once_t __gthread_once_t;
9611 typedef pthread_mutex_t __gthread_mutex_t;
9612 typedef pthread_mutex_t __gthread_recursive_mutex_t;
9613 typedef pthread_cond_t __gthread_cond_t;
9614 typedef struct timespec __gthread_time_t;
9615 static __typeof(pthread_once) __gthrw_pthread_once __attribute__ ((__weakref__("pthread_once")));
9616 static __typeof(pthread_getspecific) __gthrw_pthread_getspecific __attribute__ ((__weakref__("pthread_getspecific")));
9617 static __typeof(pthread_setspecific) __gthrw_pthread_setspecific __attribute__ ((__weakref__("pthread_setspecific")));
9618 static __typeof(pthread_create) __gthrw_pthread_create __attribute__ ((__weakref__("pthread_create")));
9619 static __typeof(pthread_join) __gthrw_pthread_join __attribute__ ((__weakref__("pthread_join")));
9620 static __typeof(pthread_equal) __gthrw_pthread_equal __attribute__ ((__weakref__("pthread_equal")));
9621 static __typeof(pthread_self) __gthrw_pthread_self __attribute__ ((__weakref__("pthread_self")));
9622 static __typeof(pthread_detach) __gthrw_pthread_detach __attribute__ ((__weakref__("pthread_detach")));
9623 static __typeof(pthread_cancel) __gthrw_pthread_cancel __attribute__ ((__weakref__("pthread_cancel")));
9624 static __typeof(sched_yield) __gthrw_sched_yield __attribute__ ((__weakref__("sched_yield")));
9625 static __typeof(pthread_mutex_lock) __gthrw_pthread_mutex_lock __attribute__ ((__weakref__("pthread_mutex_lock")));
9626 static __typeof(pthread_mutex_trylock) __gthrw_pthread_mutex_trylock __attribute__ ((__weakref__("pthread_mutex_trylock")));
9627 static __typeof(pthread_mutex_timedlock) __gthrw_pthread_mutex_timedlock __attribute__ ((__weakref__("pthread_mutex_timedlock")));
9628 static __typeof(pthread_mutex_unlock) __gthrw_pthread_mutex_unlock __attribute__ ((__weakref__("pthread_mutex_unlock")));
9629 static __typeof(pthread_mutex_init) __gthrw_pthread_mutex_init __attribute__ ((__weakref__("pthread_mutex_init")));
9630 static __typeof(pthread_mutex_destroy) __gthrw_pthread_mutex_destroy __attribute__ ((__weakref__("pthread_mutex_destroy")));
9631 static __typeof(pthread_cond_broadcast) __gthrw_pthread_cond_broadcast __attribute__ ((__weakref__("pthread_cond_broadcast")));
9632 static __typeof(pthread_cond_signal) __gthrw_pthread_cond_signal __attribute__ ((__weakref__("pthread_cond_signal")));
9633 static __typeof(pthread_cond_wait) __gthrw_pthread_cond_wait __attribute__ ((__weakref__("pthread_cond_wait")));
9634 static __typeof(pthread_cond_timedwait) __gthrw_pthread_cond_timedwait __attribute__ ((__weakref__("pthread_cond_timedwait")));
9635 static __typeof(pthread_cond_destroy) __gthrw_pthread_cond_destroy __attribute__ ((__weakref__("pthread_cond_destroy")));
9636 static __typeof(pthread_key_create) __gthrw_pthread_key_create __attribute__ ((__weakref__("pthread_key_create")));
9637 static __typeof(pthread_key_delete) __gthrw_pthread_key_delete __attribute__ ((__weakref__("pthread_key_delete")));
9638 static __typeof(pthread_mutexattr_init) __gthrw_pthread_mutexattr_init __attribute__ ((__weakref__("pthread_mutexattr_init")));
9639 static __typeof(pthread_mutexattr_settype) __gthrw_pthread_mutexattr_settype __attribute__ ((__weakref__("pthread_mutexattr_settype")));
9640 static __typeof(pthread_mutexattr_destroy) __gthrw_pthread_mutexattr_destroy __attribute__ ((__weakref__("pthread_mutexattr_destroy")));
9642 __gthread_active_p (void)
9644 static void *const __gthread_active_ptr
9645 = __extension__ (void *) &__gthrw_pthread_cancel;
9646 return __gthread_active_ptr != 0;
9649 __gthread_create (__gthread_t *__threadid, void *(*__func) (void*),
9652 return __gthrw_pthread_create (__threadid, __null, __func, __args);
9655 __gthread_join (__gthread_t __threadid, void **__value_ptr)
9657 return __gthrw_pthread_join (__threadid, __value_ptr);
9660 __gthread_detach (__gthread_t __threadid)
9662 return __gthrw_pthread_detach (__threadid);
9665 __gthread_equal (__gthread_t __t1, __gthread_t __t2)
9667 return __gthrw_pthread_equal (__t1, __t2);
9669 static inline __gthread_t
9670 __gthread_self (void)
9672 return __gthrw_pthread_self ();
9675 __gthread_yield (void)
9677 return __gthrw_sched_yield ();
9680 __gthread_once (__gthread_once_t *__once, void (*__func) (void))
9682 if (__gthread_active_p ())
9683 return __gthrw_pthread_once (__once, __func);
9688 __gthread_key_create (__gthread_key_t *__key, void (*__dtor) (void *))
9690 return __gthrw_pthread_key_create (__key, __dtor);
9693 __gthread_key_delete (__gthread_key_t __key)
9695 return __gthrw_pthread_key_delete (__key);
9697 static inline void *
9698 __gthread_getspecific (__gthread_key_t __key)
9700 return __gthrw_pthread_getspecific (__key);
9703 __gthread_setspecific (__gthread_key_t __key, const void *__ptr)
9705 return __gthrw_pthread_setspecific (__key, __ptr);
9708 __gthread_mutex_destroy (__gthread_mutex_t *__mutex)
9710 if (__gthread_active_p ())
9711 return __gthrw_pthread_mutex_destroy (__mutex);
9716 __gthread_mutex_lock (__gthread_mutex_t *__mutex)
9718 if (__gthread_active_p ())
9719 return __gthrw_pthread_mutex_lock (__mutex);
9724 __gthread_mutex_trylock (__gthread_mutex_t *__mutex)
9726 if (__gthread_active_p ())
9727 return __gthrw_pthread_mutex_trylock (__mutex);
9732 __gthread_mutex_timedlock (__gthread_mutex_t *__mutex,
9733 const __gthread_time_t *__abs_timeout)
9735 if (__gthread_active_p ())
9736 return __gthrw_pthread_mutex_timedlock (__mutex, __abs_timeout);
9741 __gthread_mutex_unlock (__gthread_mutex_t *__mutex)
9743 if (__gthread_active_p ())
9744 return __gthrw_pthread_mutex_unlock (__mutex);
9749 __gthread_recursive_mutex_lock (__gthread_recursive_mutex_t *__mutex)
9751 return __gthread_mutex_lock (__mutex);
9754 __gthread_recursive_mutex_trylock (__gthread_recursive_mutex_t *__mutex)
9756 return __gthread_mutex_trylock (__mutex);
9759 __gthread_recursive_mutex_timedlock (__gthread_recursive_mutex_t *__mutex,
9760 const __gthread_time_t *__abs_timeout)
9762 return __gthread_mutex_timedlock (__mutex, __abs_timeout);
9765 __gthread_recursive_mutex_unlock (__gthread_recursive_mutex_t *__mutex)
9767 return __gthread_mutex_unlock (__mutex);
9770 __gthread_cond_broadcast (__gthread_cond_t *__cond)
9772 return __gthrw_pthread_cond_broadcast (__cond);
9775 __gthread_cond_signal (__gthread_cond_t *__cond)
9777 return __gthrw_pthread_cond_signal (__cond);
9780 __gthread_cond_wait (__gthread_cond_t *__cond, __gthread_mutex_t *__mutex)
9782 return __gthrw_pthread_cond_wait (__cond, __mutex);
9785 __gthread_cond_timedwait (__gthread_cond_t *__cond, __gthread_mutex_t *__mutex,
9786 const __gthread_time_t *__abs_timeout)
9788 return __gthrw_pthread_cond_timedwait (__cond, __mutex, __abs_timeout);
9791 __gthread_cond_wait_recursive (__gthread_cond_t *__cond,
9792 __gthread_recursive_mutex_t *__mutex)
9794 return __gthread_cond_wait (__cond, __mutex);
9797 __gthread_cond_timedwait_recursive (__gthread_cond_t *__cond,
9798 __gthread_recursive_mutex_t *__mutex,
9799 const __gthread_time_t *__abs_timeout)
9801 return __gthread_cond_timedwait (__cond, __mutex, __abs_timeout);
9804 __gthread_cond_destroy (__gthread_cond_t* __cond)
9806 return __gthrw_pthread_cond_destroy (__cond);
9808 typedef int _Atomic_word;
9809 namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) {
9810 static inline _Atomic_word
9811 __exchange_and_add(volatile _Atomic_word* __mem, int __val)
9812 { return __sync_fetch_and_add(__mem, __val); }
9814 __atomic_add(volatile _Atomic_word* __mem, int __val)
9815 { __sync_fetch_and_add(__mem, __val); }
9816 static inline _Atomic_word
9817 __exchange_and_add_single(_Atomic_word* __mem, int __val)
9819 _Atomic_word __result = *__mem;
9824 __atomic_add_single(_Atomic_word* __mem, int __val)
9825 { *__mem += __val; }
9826 static inline _Atomic_word
9827 __attribute__ ((__unused__))
9828 __exchange_and_add_dispatch(_Atomic_word* __mem, int __val)
9830 if (__gthread_active_p())
9831 return __exchange_and_add(__mem, __val);
9833 return __exchange_and_add_single(__mem, __val);
9836 __attribute__ ((__unused__))
9837 __atomic_add_dispatch(_Atomic_word* __mem, int __val)
9839 if (__gthread_active_p())
9840 __atomic_add(__mem, __val);
9842 __atomic_add_single(__mem, __val);
9845 namespace std __attribute__ ((__visibility__ ("default"))) {
9846 template<typename _CharT, typename _Traits, typename _Alloc>
9849 typedef typename _Alloc::template rebind<_CharT>::other _CharT_alloc_type;
9851 typedef _Traits traits_type;
9852 typedef typename _Traits::char_type value_type;
9853 typedef _Alloc allocator_type;
9854 typedef typename _CharT_alloc_type::size_type size_type;
9855 typedef typename _CharT_alloc_type::difference_type difference_type;
9856 typedef typename _CharT_alloc_type::reference reference;
9857 typedef typename _CharT_alloc_type::const_reference const_reference;
9858 typedef typename _CharT_alloc_type::pointer pointer;
9859 typedef typename _CharT_alloc_type::const_pointer const_pointer;
9860 typedef __gnu_cxx::__normal_iterator<pointer, basic_string> iterator;
9861 typedef __gnu_cxx::__normal_iterator<const_pointer, basic_string>
9863 typedef std::reverse_iterator<const_iterator> const_reverse_iterator;
9864 typedef std::reverse_iterator<iterator> reverse_iterator;
9868 size_type _M_length;
9869 size_type _M_capacity;
9870 _Atomic_word _M_refcount;
9872 struct _Rep : _Rep_base
9874 typedef typename _Alloc::template rebind<char>::other _Raw_bytes_alloc;
9875 static const size_type _S_max_size;
9876 static const _CharT _S_terminal;
9877 static size_type _S_empty_rep_storage[];
9881 void* __p = reinterpret_cast<void*>(&_S_empty_rep_storage);
9882 return *reinterpret_cast<_Rep*>(__p);
9885 _M_is_leaked() const
9886 { return this->_M_refcount < 0; }
9888 _M_is_shared() const
9889 { return this->_M_refcount > 0; }
9892 { this->_M_refcount = -1; }
9895 { this->_M_refcount = 0; }
9897 _M_set_length_and_sharable(size_type __n)
9899 if (__builtin_expect(this != &_S_empty_rep(), false))
9901 this->_M_set_sharable();
9902 this->_M_length = __n;
9903 traits_type::assign(this->_M_refdata()[__n], _S_terminal);
9907 _M_refdata() throw()
9908 { return reinterpret_cast<_CharT*>(this + 1); }
9910 _M_grab(const _Alloc& __alloc1, const _Alloc& __alloc2)
9912 return (!_M_is_leaked() && __alloc1 == __alloc2)
9913 ? _M_refcopy() : _M_clone(__alloc1);
9916 _S_create(size_type, size_type, const _Alloc&);
9918 _M_dispose(const _Alloc& __a)
9920 if (__builtin_expect(this != &_S_empty_rep(), false))
9921 if (__gnu_cxx::__exchange_and_add_dispatch(&this->_M_refcount,
9926 _M_destroy(const _Alloc&) throw();
9928 _M_refcopy() throw()
9930 if (__builtin_expect(this != &_S_empty_rep(), false))
9931 __gnu_cxx::__atomic_add_dispatch(&this->_M_refcount, 1);
9932 return _M_refdata();
9935 _M_clone(const _Alloc&, size_type __res = 0);
9937 struct _Alloc_hider : _Alloc
9939 _Alloc_hider(_CharT* __dat, const _Alloc& __a)
9940 : _Alloc(__a), _M_p(__dat) { }
9944 static const size_type npos = static_cast<size_type>(-1);
9946 mutable _Alloc_hider _M_dataplus;
9949 { return _M_dataplus._M_p; }
9951 _M_data(_CharT* __p)
9952 { return (_M_dataplus._M_p = __p); }
9955 { return &((reinterpret_cast<_Rep*> (_M_data()))[-1]); }
9958 { return iterator(_M_data()); }
9961 { return iterator(_M_data() + this->size()); }
9965 if (!_M_rep()->_M_is_leaked())
9969 _M_check(size_type __pos, const char* __s) const
9971 if (__pos > this->size())
9972 __throw_out_of_range((__s));
9976 _M_check_length(size_type __n1, size_type __n2, const char* __s) const
9978 if (this->max_size() - (this->size() - __n1) < __n2)
9979 __throw_length_error((__s));
9982 _M_limit(size_type __pos, size_type __off) const
9984 const bool __testoff = __off < this->size() - __pos;
9985 return __testoff ? __off : this->size() - __pos;
9988 _M_disjunct(const _CharT* __s) const
9990 return (less<const _CharT*>()(__s, _M_data())
9991 || less<const _CharT*>()(_M_data() + this->size(), __s));
9994 _M_copy(_CharT* __d, const _CharT* __s, size_type __n)
9997 traits_type::assign(*__d, *__s);
9999 traits_type::copy(__d, __s, __n);
10002 _M_move(_CharT* __d, const _CharT* __s, size_type __n)
10005 traits_type::assign(*__d, *__s);
10007 traits_type::move(__d, __s, __n);
10010 _M_assign(_CharT* __d, size_type __n, _CharT __c)
10013 traits_type::assign(*__d, __c);
10015 traits_type::assign(__d, __n, __c);
10017 template<class _Iterator>
10019 _S_copy_chars(_CharT* __p, _Iterator __k1, _Iterator __k2)
10021 for (; __k1 != __k2; ++__k1, ++__p)
10022 traits_type::assign(*__p, *__k1);
10025 _S_copy_chars(_CharT* __p, iterator __k1, iterator __k2)
10026 { _S_copy_chars(__p, __k1.base(), __k2.base()); }
10028 _S_copy_chars(_CharT* __p, const_iterator __k1, const_iterator __k2)
10029 { _S_copy_chars(__p, __k1.base(), __k2.base()); }
10031 _S_copy_chars(_CharT* __p, _CharT* __k1, _CharT* __k2)
10032 { _M_copy(__p, __k1, __k2 - __k1); }
10034 _S_copy_chars(_CharT* __p, const _CharT* __k1, const _CharT* __k2)
10035 { _M_copy(__p, __k1, __k2 - __k1); }
10037 _S_compare(size_type __n1, size_type __n2)
10039 const difference_type __d = difference_type(__n1 - __n2);
10040 if (__d > __gnu_cxx::__numeric_traits<int>::__max)
10041 return __gnu_cxx::__numeric_traits<int>::__max;
10042 else if (__d < __gnu_cxx::__numeric_traits<int>::__min)
10043 return __gnu_cxx::__numeric_traits<int>::__min;
10048 _M_mutate(size_type __pos, size_type __len1, size_type __len2);
10053 { return _Rep::_S_empty_rep(); }
10058 basic_string(const _Alloc& __a);
10059 basic_string(const basic_string& __str);
10060 basic_string(const basic_string& __str, size_type __pos,
10061 size_type __n = npos);
10062 basic_string(const basic_string& __str, size_type __pos,
10063 size_type __n, const _Alloc& __a);
10064 basic_string(const _CharT* __s, size_type __n,
10065 const _Alloc& __a = _Alloc());
10066 basic_string(const _CharT* __s, const _Alloc& __a = _Alloc());
10067 basic_string(size_type __n, _CharT __c, const _Alloc& __a = _Alloc());
10068 template<class _InputIterator>
10069 basic_string(_InputIterator __beg, _InputIterator __end,
10070 const _Alloc& __a = _Alloc());
10072 { _M_rep()->_M_dispose(this->get_allocator()); }
10074 operator=(const basic_string& __str)
10075 { return this->assign(__str); }
10077 operator=(const _CharT* __s)
10078 { return this->assign(__s); }
10080 operator=(_CharT __c)
10082 this->assign(1, __c);
10089 return iterator(_M_data());
10093 { return const_iterator(_M_data()); }
10098 return iterator(_M_data() + this->size());
10102 { return const_iterator(_M_data() + this->size()); }
10105 { return reverse_iterator(this->end()); }
10106 const_reverse_iterator
10108 { return const_reverse_iterator(this->end()); }
10111 { return reverse_iterator(this->begin()); }
10112 const_reverse_iterator
10114 { return const_reverse_iterator(this->begin()); }
10118 { return _M_rep()->_M_length; }
10121 { return _M_rep()->_M_length; }
10124 { return _Rep::_S_max_size; }
10126 resize(size_type __n, _CharT __c);
10128 resize(size_type __n)
10129 { this->resize(__n, _CharT()); }
10132 { return _M_rep()->_M_capacity; }
10134 reserve(size_type __res_arg = 0);
10137 { _M_mutate(0, this->size(), 0); }
10140 { return this->size() == 0; }
10142 operator[] (size_type __pos) const
10145 return _M_data()[__pos];
10148 operator[](size_type __pos)
10153 return _M_data()[__pos];
10156 at(size_type __n) const
10158 if (__n >= this->size())
10159 __throw_out_of_range(("basic_string::at"));
10160 return _M_data()[__n];
10166 __throw_out_of_range(("basic_string::at"));
10168 return _M_data()[__n];
10171 operator+=(const basic_string& __str)
10172 { return this->append(__str); }
10174 operator+=(const _CharT* __s)
10175 { return this->append(__s); }
10177 operator+=(_CharT __c)
10179 this->push_back(__c);
10183 append(const basic_string& __str);
10185 append(const basic_string& __str, size_type __pos, size_type __n);
10187 append(const _CharT* __s, size_type __n);
10189 append(const _CharT* __s)
10192 return this->append(__s, traits_type::length(__s));
10195 append(size_type __n, _CharT __c);
10196 template<class _InputIterator>
10198 append(_InputIterator __first, _InputIterator __last)
10199 { return this->replace(_M_iend(), _M_iend(), __first, __last); }
10201 push_back(_CharT __c)
10203 const size_type __len = 1 + this->size();
10204 if (__len > this->capacity() || _M_rep()->_M_is_shared())
10205 this->reserve(__len);
10206 traits_type::assign(_M_data()[this->size()], __c);
10207 _M_rep()->_M_set_length_and_sharable(__len);
10210 assign(const basic_string& __str);
10212 assign(const basic_string& __str, size_type __pos, size_type __n)
10213 { return this->assign(__str._M_data()
10214 + __str._M_check(__pos, "basic_string::assign"),
10215 __str._M_limit(__pos, __n)); }
10217 assign(const _CharT* __s, size_type __n);
10219 assign(const _CharT* __s)
10222 return this->assign(__s, traits_type::length(__s));
10225 assign(size_type __n, _CharT __c)
10226 { return _M_replace_aux(size_type(0), this->size(), __n, __c); }
10227 template<class _InputIterator>
10229 assign(_InputIterator __first, _InputIterator __last)
10230 { return this->replace(_M_ibegin(), _M_iend(), __first, __last); }
10232 insert(iterator __p, size_type __n, _CharT __c)
10233 { this->replace(__p, __p, __n, __c); }
10234 template<class _InputIterator>
10236 insert(iterator __p, _InputIterator __beg, _InputIterator __end)
10237 { this->replace(__p, __p, __beg, __end); }
10239 insert(size_type __pos1, const basic_string& __str)
10240 { return this->insert(__pos1, __str, size_type(0), __str.size()); }
10242 insert(size_type __pos1, const basic_string& __str,
10243 size_type __pos2, size_type __n)
10244 { return this->insert(__pos1, __str._M_data()
10245 + __str._M_check(__pos2, "basic_string::insert"),
10246 __str._M_limit(__pos2, __n)); }
10248 insert(size_type __pos, const _CharT* __s, size_type __n);
10250 insert(size_type __pos, const _CharT* __s)
10253 return this->insert(__pos, __s, traits_type::length(__s));
10256 insert(size_type __pos, size_type __n, _CharT __c)
10257 { return _M_replace_aux(_M_check(__pos, "basic_string::insert"),
10258 size_type(0), __n, __c); }
10260 insert(iterator __p, _CharT __c)
10263 const size_type __pos = __p - _M_ibegin();
10264 _M_replace_aux(__pos, size_type(0), size_type(1), __c);
10265 _M_rep()->_M_set_leaked();
10266 return iterator(_M_data() + __pos);
10269 erase(size_type __pos = 0, size_type __n = npos)
10271 _M_mutate(_M_check(__pos, "basic_string::erase"),
10272 _M_limit(__pos, __n), size_type(0));
10276 erase(iterator __position)
10279 const size_type __pos = __position - _M_ibegin();
10280 _M_mutate(__pos, size_type(1), size_type(0));
10281 _M_rep()->_M_set_leaked();
10282 return iterator(_M_data() + __pos);
10285 erase(iterator __first, iterator __last);
10287 replace(size_type __pos, size_type __n, const basic_string& __str)
10288 { return this->replace(__pos, __n, __str._M_data(), __str.size()); }
10290 replace(size_type __pos1, size_type __n1, const basic_string& __str,
10291 size_type __pos2, size_type __n2)
10292 { return this->replace(__pos1, __n1, __str._M_data()
10293 + __str._M_check(__pos2, "basic_string::replace"),
10294 __str._M_limit(__pos2, __n2)); }
10296 replace(size_type __pos, size_type __n1, const _CharT* __s,
10299 replace(size_type __pos, size_type __n1, const _CharT* __s)
10302 return this->replace(__pos, __n1, __s, traits_type::length(__s));
10305 replace(size_type __pos, size_type __n1, size_type __n2, _CharT __c)
10306 { return _M_replace_aux(_M_check(__pos, "basic_string::replace"),
10307 _M_limit(__pos, __n1), __n2, __c); }
10309 replace(iterator __i1, iterator __i2, const basic_string& __str)
10310 { return this->replace(__i1, __i2, __str._M_data(), __str.size()); }
10312 replace(iterator __i1, iterator __i2, const _CharT* __s, size_type __n)
10315 return this->replace(__i1 - _M_ibegin(), __i2 - __i1, __s, __n);
10318 replace(iterator __i1, iterator __i2, const _CharT* __s)
10321 return this->replace(__i1, __i2, __s, traits_type::length(__s));
10324 replace(iterator __i1, iterator __i2, size_type __n, _CharT __c)
10327 return _M_replace_aux(__i1 - _M_ibegin(), __i2 - __i1, __n, __c);
10329 template<class _InputIterator>
10331 replace(iterator __i1, iterator __i2,
10332 _InputIterator __k1, _InputIterator __k2)
10336 typedef typename std::__is_integer<_InputIterator>::__type _Integral;
10337 return _M_replace_dispatch(__i1, __i2, __k1, __k2, _Integral());
10340 replace(iterator __i1, iterator __i2, _CharT* __k1, _CharT* __k2)
10344 return this->replace(__i1 - _M_ibegin(), __i2 - __i1,
10345 __k1, __k2 - __k1);
10348 replace(iterator __i1, iterator __i2,
10349 const _CharT* __k1, const _CharT* __k2)
10353 return this->replace(__i1 - _M_ibegin(), __i2 - __i1,
10354 __k1, __k2 - __k1);
10357 replace(iterator __i1, iterator __i2, iterator __k1, iterator __k2)
10361 return this->replace(__i1 - _M_ibegin(), __i2 - __i1,
10362 __k1.base(), __k2 - __k1);
10365 replace(iterator __i1, iterator __i2,
10366 const_iterator __k1, const_iterator __k2)
10370 return this->replace(__i1 - _M_ibegin(), __i2 - __i1,
10371 __k1.base(), __k2 - __k1);
10374 template<class _Integer>
10376 _M_replace_dispatch(iterator __i1, iterator __i2, _Integer __n,
10377 _Integer __val, __true_type)
10378 { return _M_replace_aux(__i1 - _M_ibegin(), __i2 - __i1, __n, __val); }
10379 template<class _InputIterator>
10381 _M_replace_dispatch(iterator __i1, iterator __i2, _InputIterator __k1,
10382 _InputIterator __k2, __false_type);
10384 _M_replace_aux(size_type __pos1, size_type __n1, size_type __n2,
10387 _M_replace_safe(size_type __pos1, size_type __n1, const _CharT* __s,
10389 template<class _InIterator>
10391 _S_construct_aux(_InIterator __beg, _InIterator __end,
10392 const _Alloc& __a, __false_type)
10394 typedef typename iterator_traits<_InIterator>::iterator_category _Tag;
10395 return _S_construct(__beg, __end, __a, _Tag());
10397 template<class _Integer>
10399 _S_construct_aux(_Integer __beg, _Integer __end,
10400 const _Alloc& __a, __true_type)
10401 { return _S_construct(static_cast<size_type>(__beg), __end, __a); }
10402 template<class _InIterator>
10404 _S_construct(_InIterator __beg, _InIterator __end, const _Alloc& __a)
10406 typedef typename std::__is_integer<_InIterator>::__type _Integral;
10407 return _S_construct_aux(__beg, __end, __a, _Integral());
10409 template<class _InIterator>
10411 _S_construct(_InIterator __beg, _InIterator __end, const _Alloc& __a,
10412 input_iterator_tag);
10413 template<class _FwdIterator>
10415 _S_construct(_FwdIterator __beg, _FwdIterator __end, const _Alloc& __a,
10416 forward_iterator_tag);
10418 _S_construct(size_type __req, _CharT __c, const _Alloc& __a);
10421 copy(_CharT* __s, size_type __n, size_type __pos = 0) const;
10423 swap(basic_string& __s);
10426 { return _M_data(); }
10429 { return _M_data(); }
10431 get_allocator() const
10432 { return _M_dataplus; }
10434 find(const _CharT* __s, size_type __pos, size_type __n) const;
10436 find(const basic_string& __str, size_type __pos = 0) const
10437 { return this->find(__str.data(), __pos, __str.size()); }
10439 find(const _CharT* __s, size_type __pos = 0) const
10442 return this->find(__s, __pos, traits_type::length(__s));
10445 find(_CharT __c, size_type __pos = 0) const;
10447 rfind(const basic_string& __str, size_type __pos = npos) const
10448 { return this->rfind(__str.data(), __pos, __str.size()); }
10450 rfind(const _CharT* __s, size_type __pos, size_type __n) const;
10452 rfind(const _CharT* __s, size_type __pos = npos) const
10455 return this->rfind(__s, __pos, traits_type::length(__s));
10458 rfind(_CharT __c, size_type __pos = npos) const;
10460 find_first_of(const basic_string& __str, size_type __pos = 0) const
10461 { return this->find_first_of(__str.data(), __pos, __str.size()); }
10463 find_first_of(const _CharT* __s, size_type __pos, size_type __n) const;
10465 find_first_of(const _CharT* __s, size_type __pos = 0) const
10468 return this->find_first_of(__s, __pos, traits_type::length(__s));
10471 find_first_of(_CharT __c, size_type __pos = 0) const
10472 { return this->find(__c, __pos); }
10474 find_last_of(const basic_string& __str, size_type __pos = npos) const
10475 { return this->find_last_of(__str.data(), __pos, __str.size()); }
10477 find_last_of(const _CharT* __s, size_type __pos, size_type __n) const;
10479 find_last_of(const _CharT* __s, size_type __pos = npos) const
10482 return this->find_last_of(__s, __pos, traits_type::length(__s));
10485 find_last_of(_CharT __c, size_type __pos = npos) const
10486 { return this->rfind(__c, __pos); }
10488 find_first_not_of(const basic_string& __str, size_type __pos = 0) const
10489 { return this->find_first_not_of(__str.data(), __pos, __str.size()); }
10491 find_first_not_of(const _CharT* __s, size_type __pos,
10492 size_type __n) const;
10494 find_first_not_of(const _CharT* __s, size_type __pos = 0) const
10497 return this->find_first_not_of(__s, __pos, traits_type::length(__s));
10500 find_first_not_of(_CharT __c, size_type __pos = 0) const;
10502 find_last_not_of(const basic_string& __str, size_type __pos = npos) const
10503 { return this->find_last_not_of(__str.data(), __pos, __str.size()); }
10505 find_last_not_of(const _CharT* __s, size_type __pos,
10506 size_type __n) const;
10508 find_last_not_of(const _CharT* __s, size_type __pos = npos) const
10511 return this->find_last_not_of(__s, __pos, traits_type::length(__s));
10514 find_last_not_of(_CharT __c, size_type __pos = npos) const;
10516 substr(size_type __pos = 0, size_type __n = npos) const
10517 { return basic_string(*this,
10518 _M_check(__pos, "basic_string::substr"), __n); }
10520 compare(const basic_string& __str) const
10522 const size_type __size = this->size();
10523 const size_type __osize = __str.size();
10524 const size_type __len = std::min(__size, __osize);
10525 int __r = traits_type::compare(_M_data(), __str.data(), __len);
10527 __r = _S_compare(__size, __osize);
10531 compare(size_type __pos, size_type __n, const basic_string& __str) const;
10533 compare(size_type __pos1, size_type __n1, const basic_string& __str,
10534 size_type __pos2, size_type __n2) const;
10536 compare(const _CharT* __s) const;
10538 compare(size_type __pos, size_type __n1, const _CharT* __s) const;
10540 compare(size_type __pos, size_type __n1, const _CharT* __s,
10541 size_type __n2) const;
10543 template<typename _CharT, typename _Traits, typename _Alloc>
10544 inline basic_string<_CharT, _Traits, _Alloc>::
10546 : _M_dataplus(_S_empty_rep()._M_refdata(), _Alloc()) { }
10547 template<typename _CharT, typename _Traits, typename _Alloc>
10548 basic_string<_CharT, _Traits, _Alloc>
10549 operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
10550 const basic_string<_CharT, _Traits, _Alloc>& __rhs)
10552 basic_string<_CharT, _Traits, _Alloc> __str(__lhs);
10553 __str.append(__rhs);
10556 template<typename _CharT, typename _Traits, typename _Alloc>
10557 basic_string<_CharT,_Traits,_Alloc>
10558 operator+(const _CharT* __lhs,
10559 const basic_string<_CharT,_Traits,_Alloc>& __rhs);
10560 template<typename _CharT, typename _Traits, typename _Alloc>
10561 basic_string<_CharT,_Traits,_Alloc>
10562 operator+(_CharT __lhs, const basic_string<_CharT,_Traits,_Alloc>& __rhs);
10563 template<typename _CharT, typename _Traits, typename _Alloc>
10564 inline basic_string<_CharT, _Traits, _Alloc>
10565 operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
10566 const _CharT* __rhs)
10568 basic_string<_CharT, _Traits, _Alloc> __str(__lhs);
10569 __str.append(__rhs);
10572 template<typename _CharT, typename _Traits, typename _Alloc>
10573 inline basic_string<_CharT, _Traits, _Alloc>
10574 operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, _CharT __rhs)
10576 typedef basic_string<_CharT, _Traits, _Alloc> __string_type;
10577 typedef typename __string_type::size_type __size_type;
10578 __string_type __str(__lhs);
10579 __str.append(__size_type(1), __rhs);
10582 template<typename _CharT, typename _Traits, typename _Alloc>
10584 operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
10585 const basic_string<_CharT, _Traits, _Alloc>& __rhs)
10586 { return __lhs.compare(__rhs) == 0; }
10587 template<typename _CharT>
10589 typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, bool>::__type
10590 operator==(const basic_string<_CharT>& __lhs,
10591 const basic_string<_CharT>& __rhs)
10592 { return (__lhs.size() == __rhs.size()
10593 && !std::char_traits<_CharT>::compare(__lhs.data(), __rhs.data(),
10595 template<typename _CharT, typename _Traits, typename _Alloc>
10597 operator==(const _CharT* __lhs,
10598 const basic_string<_CharT, _Traits, _Alloc>& __rhs)
10599 { return __rhs.compare(__lhs) == 0; }
10600 template<typename _CharT, typename _Traits, typename _Alloc>
10602 operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
10603 const _CharT* __rhs)
10604 { return __lhs.compare(__rhs) == 0; }
10605 template<typename _CharT, typename _Traits, typename _Alloc>
10607 operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
10608 const basic_string<_CharT, _Traits, _Alloc>& __rhs)
10609 { return !(__lhs == __rhs); }
10610 template<typename _CharT, typename _Traits, typename _Alloc>
10612 operator!=(const _CharT* __lhs,
10613 const basic_string<_CharT, _Traits, _Alloc>& __rhs)
10614 { return !(__lhs == __rhs); }
10615 template<typename _CharT, typename _Traits, typename _Alloc>
10617 operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
10618 const _CharT* __rhs)
10619 { return !(__lhs == __rhs); }
10620 template<typename _CharT, typename _Traits, typename _Alloc>
10622 operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
10623 const basic_string<_CharT, _Traits, _Alloc>& __rhs)
10624 { return __lhs.compare(__rhs) < 0; }
10625 template<typename _CharT, typename _Traits, typename _Alloc>
10627 operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
10628 const _CharT* __rhs)
10629 { return __lhs.compare(__rhs) < 0; }
10630 template<typename _CharT, typename _Traits, typename _Alloc>
10632 operator<(const _CharT* __lhs,
10633 const basic_string<_CharT, _Traits, _Alloc>& __rhs)
10634 { return __rhs.compare(__lhs) > 0; }
10635 template<typename _CharT, typename _Traits, typename _Alloc>
10637 operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
10638 const basic_string<_CharT, _Traits, _Alloc>& __rhs)
10639 { return __lhs.compare(__rhs) > 0; }
10640 template<typename _CharT, typename _Traits, typename _Alloc>
10642 operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
10643 const _CharT* __rhs)
10644 { return __lhs.compare(__rhs) > 0; }
10645 template<typename _CharT, typename _Traits, typename _Alloc>
10647 operator>(const _CharT* __lhs,
10648 const basic_string<_CharT, _Traits, _Alloc>& __rhs)
10649 { return __rhs.compare(__lhs) < 0; }
10650 template<typename _CharT, typename _Traits, typename _Alloc>
10652 operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
10653 const basic_string<_CharT, _Traits, _Alloc>& __rhs)
10654 { return __lhs.compare(__rhs) <= 0; }
10655 template<typename _CharT, typename _Traits, typename _Alloc>
10657 operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
10658 const _CharT* __rhs)
10659 { return __lhs.compare(__rhs) <= 0; }
10660 template<typename _CharT, typename _Traits, typename _Alloc>
10662 operator<=(const _CharT* __lhs,
10663 const basic_string<_CharT, _Traits, _Alloc>& __rhs)
10664 { return __rhs.compare(__lhs) >= 0; }
10665 template<typename _CharT, typename _Traits, typename _Alloc>
10667 operator>=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
10668 const basic_string<_CharT, _Traits, _Alloc>& __rhs)
10669 { return __lhs.compare(__rhs) >= 0; }
10670 template<typename _CharT, typename _Traits, typename _Alloc>
10672 operator>=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
10673 const _CharT* __rhs)
10674 { return __lhs.compare(__rhs) >= 0; }
10675 template<typename _CharT, typename _Traits, typename _Alloc>
10677 operator>=(const _CharT* __lhs,
10678 const basic_string<_CharT, _Traits, _Alloc>& __rhs)
10679 { return __rhs.compare(__lhs) <= 0; }
10680 template<typename _CharT, typename _Traits, typename _Alloc>
10682 swap(basic_string<_CharT, _Traits, _Alloc>& __lhs,
10683 basic_string<_CharT, _Traits, _Alloc>& __rhs)
10684 { __lhs.swap(__rhs); }
10685 template<typename _CharT, typename _Traits, typename _Alloc>
10686 basic_istream<_CharT, _Traits>&
10687 operator>>(basic_istream<_CharT, _Traits>& __is,
10688 basic_string<_CharT, _Traits, _Alloc>& __str);
10690 basic_istream<char>&
10691 operator>>(basic_istream<char>& __is, basic_string<char>& __str);
10692 template<typename _CharT, typename _Traits, typename _Alloc>
10693 inline basic_ostream<_CharT, _Traits>&
10694 operator<<(basic_ostream<_CharT, _Traits>& __os,
10695 const basic_string<_CharT, _Traits, _Alloc>& __str)
10697 return __ostream_insert(__os, __str.data(), __str.size());
10699 template<typename _CharT, typename _Traits, typename _Alloc>
10700 basic_istream<_CharT, _Traits>&
10701 getline(basic_istream<_CharT, _Traits>& __is,
10702 basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim);
10703 template<typename _CharT, typename _Traits, typename _Alloc>
10704 inline basic_istream<_CharT, _Traits>&
10705 getline(basic_istream<_CharT, _Traits>& __is,
10706 basic_string<_CharT, _Traits, _Alloc>& __str)
10707 { return getline(__is, __str, __is.widen('\n')); }
10709 basic_istream<char>&
10710 getline(basic_istream<char>& __in, basic_string<char>& __str,
10713 basic_istream<wchar_t>&
10714 getline(basic_istream<wchar_t>& __in, basic_string<wchar_t>& __str,
10718 namespace std __attribute__ ((__visibility__ ("default"))) {
10719 template<typename _CharT, typename _Traits, typename _Alloc>
10720 const typename basic_string<_CharT, _Traits, _Alloc>::size_type
10721 basic_string<_CharT, _Traits, _Alloc>::
10722 _Rep::_S_max_size = (((npos - sizeof(_Rep_base))/sizeof(_CharT)) - 1) / 4;
10723 template<typename _CharT, typename _Traits, typename _Alloc>
10725 basic_string<_CharT, _Traits, _Alloc>::
10726 _Rep::_S_terminal = _CharT();
10727 template<typename _CharT, typename _Traits, typename _Alloc>
10728 const typename basic_string<_CharT, _Traits, _Alloc>::size_type
10729 basic_string<_CharT, _Traits, _Alloc>::npos;
10730 template<typename _CharT, typename _Traits, typename _Alloc>
10731 typename basic_string<_CharT, _Traits, _Alloc>::size_type
10732 basic_string<_CharT, _Traits, _Alloc>::_Rep::_S_empty_rep_storage[
10733 (sizeof(_Rep_base) + sizeof(_CharT) + sizeof(size_type) - 1) /
10734 sizeof(size_type)];
10735 template<typename _CharT, typename _Traits, typename _Alloc>
10736 template<typename _InIterator>
10738 basic_string<_CharT, _Traits, _Alloc>::
10739 _S_construct(_InIterator __beg, _InIterator __end, const _Alloc& __a,
10740 input_iterator_tag)
10742 if (__beg == __end && __a == _Alloc())
10743 return _S_empty_rep()._M_refdata();
10745 size_type __len = 0;
10746 while (__beg != __end && __len < sizeof(__buf) / sizeof(_CharT))
10748 __buf[__len++] = *__beg;
10751 _Rep* __r = _Rep::_S_create(__len, size_type(0), __a);
10752 _M_copy(__r->_M_refdata(), __buf, __len);
10755 while (__beg != __end)
10757 if (__len == __r->_M_capacity)
10759 _Rep* __another = _Rep::_S_create(__len + 1, __len, __a);
10760 _M_copy(__another->_M_refdata(), __r->_M_refdata(), __len);
10761 __r->_M_destroy(__a);
10764 __r->_M_refdata()[__len++] = *__beg;
10770 __r->_M_destroy(__a);
10773 __r->_M_set_length_and_sharable(__len);
10774 return __r->_M_refdata();
10776 template<typename _CharT, typename _Traits, typename _Alloc>
10777 template <typename _InIterator>
10779 basic_string<_CharT, _Traits, _Alloc>::
10780 _S_construct(_InIterator __beg, _InIterator __end, const _Alloc& __a,
10781 forward_iterator_tag)
10783 if (__beg == __end && __a == _Alloc())
10784 return _S_empty_rep()._M_refdata();
10785 if (__builtin_expect(__gnu_cxx::__is_null_pointer(__beg)
10786 && __beg != __end, 0))
10787 __throw_logic_error(("basic_string::_S_construct NULL not valid"));
10788 const size_type __dnew = static_cast<size_type>(std::distance(__beg,
10790 _Rep* __r = _Rep::_S_create(__dnew, size_type(0), __a);
10792 { _S_copy_chars(__r->_M_refdata(), __beg, __end); }
10795 __r->_M_destroy(__a);
10798 __r->_M_set_length_and_sharable(__dnew);
10799 return __r->_M_refdata();
10801 template<typename _CharT, typename _Traits, typename _Alloc>
10803 basic_string<_CharT, _Traits, _Alloc>::
10804 _S_construct(size_type __n, _CharT __c, const _Alloc& __a)
10806 if (__n == 0 && __a == _Alloc())
10807 return _S_empty_rep()._M_refdata();
10808 _Rep* __r = _Rep::_S_create(__n, size_type(0), __a);
10810 _M_assign(__r->_M_refdata(), __n, __c);
10811 __r->_M_set_length_and_sharable(__n);
10812 return __r->_M_refdata();
10814 template<typename _CharT, typename _Traits, typename _Alloc>
10815 basic_string<_CharT, _Traits, _Alloc>::
10816 basic_string(const basic_string& __str)
10817 : _M_dataplus(__str._M_rep()->_M_grab(_Alloc(__str.get_allocator()),
10818 __str.get_allocator()),
10819 __str.get_allocator())
10821 template<typename _CharT, typename _Traits, typename _Alloc>
10822 basic_string<_CharT, _Traits, _Alloc>::
10823 basic_string(const _Alloc& __a)
10824 : _M_dataplus(_S_construct(size_type(), _CharT(), __a), __a)
10826 template<typename _CharT, typename _Traits, typename _Alloc>
10827 basic_string<_CharT, _Traits, _Alloc>::
10828 basic_string(const basic_string& __str, size_type __pos, size_type __n)
10829 : _M_dataplus(_S_construct(__str._M_data()
10830 + __str._M_check(__pos,
10831 "basic_string::basic_string"),
10832 __str._M_data() + __str._M_limit(__pos, __n)
10833 + __pos, _Alloc()), _Alloc())
10835 template<typename _CharT, typename _Traits, typename _Alloc>
10836 basic_string<_CharT, _Traits, _Alloc>::
10837 basic_string(const basic_string& __str, size_type __pos,
10838 size_type __n, const _Alloc& __a)
10839 : _M_dataplus(_S_construct(__str._M_data()
10840 + __str._M_check(__pos,
10841 "basic_string::basic_string"),
10842 __str._M_data() + __str._M_limit(__pos, __n)
10843 + __pos, __a), __a)
10845 template<typename _CharT, typename _Traits, typename _Alloc>
10846 basic_string<_CharT, _Traits, _Alloc>::
10847 basic_string(const _CharT* __s, size_type __n, const _Alloc& __a)
10848 : _M_dataplus(_S_construct(__s, __s + __n, __a), __a)
10850 template<typename _CharT, typename _Traits, typename _Alloc>
10851 basic_string<_CharT, _Traits, _Alloc>::
10852 basic_string(const _CharT* __s, const _Alloc& __a)
10853 : _M_dataplus(_S_construct(__s, __s ? __s + traits_type::length(__s) :
10854 __s + npos, __a), __a)
10856 template<typename _CharT, typename _Traits, typename _Alloc>
10857 basic_string<_CharT, _Traits, _Alloc>::
10858 basic_string(size_type __n, _CharT __c, const _Alloc& __a)
10859 : _M_dataplus(_S_construct(__n, __c, __a), __a)
10861 template<typename _CharT, typename _Traits, typename _Alloc>
10862 template<typename _InputIterator>
10863 basic_string<_CharT, _Traits, _Alloc>::
10864 basic_string(_InputIterator __beg, _InputIterator __end, const _Alloc& __a)
10865 : _M_dataplus(_S_construct(__beg, __end, __a), __a)
10867 template<typename _CharT, typename _Traits, typename _Alloc>
10868 basic_string<_CharT, _Traits, _Alloc>&
10869 basic_string<_CharT, _Traits, _Alloc>::
10870 assign(const basic_string& __str)
10872 if (_M_rep() != __str._M_rep())
10874 const allocator_type __a = this->get_allocator();
10875 _CharT* __tmp = __str._M_rep()->_M_grab(__a, __str.get_allocator());
10876 _M_rep()->_M_dispose(__a);
10881 template<typename _CharT, typename _Traits, typename _Alloc>
10882 basic_string<_CharT, _Traits, _Alloc>&
10883 basic_string<_CharT, _Traits, _Alloc>::
10884 assign(const _CharT* __s, size_type __n)
10887 _M_check_length(this->size(), __n, "basic_string::assign");
10888 if (_M_disjunct(__s) || _M_rep()->_M_is_shared())
10889 return _M_replace_safe(size_type(0), this->size(), __s, __n);
10892 const size_type __pos = __s - _M_data();
10894 _M_copy(_M_data(), __s, __n);
10896 _M_move(_M_data(), __s, __n);
10897 _M_rep()->_M_set_length_and_sharable(__n);
10901 template<typename _CharT, typename _Traits, typename _Alloc>
10902 basic_string<_CharT, _Traits, _Alloc>&
10903 basic_string<_CharT, _Traits, _Alloc>::
10904 append(size_type __n, _CharT __c)
10908 _M_check_length(size_type(0), __n, "basic_string::append");
10909 const size_type __len = __n + this->size();
10910 if (__len > this->capacity() || _M_rep()->_M_is_shared())
10911 this->reserve(__len);
10912 _M_assign(_M_data() + this->size(), __n, __c);
10913 _M_rep()->_M_set_length_and_sharable(__len);
10917 template<typename _CharT, typename _Traits, typename _Alloc>
10918 basic_string<_CharT, _Traits, _Alloc>&
10919 basic_string<_CharT, _Traits, _Alloc>::
10920 append(const _CharT* __s, size_type __n)
10925 _M_check_length(size_type(0), __n, "basic_string::append");
10926 const size_type __len = __n + this->size();
10927 if (__len > this->capacity() || _M_rep()->_M_is_shared())
10929 if (_M_disjunct(__s))
10930 this->reserve(__len);
10933 const size_type __off = __s - _M_data();
10934 this->reserve(__len);
10935 __s = _M_data() + __off;
10938 _M_copy(_M_data() + this->size(), __s, __n);
10939 _M_rep()->_M_set_length_and_sharable(__len);
10943 template<typename _CharT, typename _Traits, typename _Alloc>
10944 basic_string<_CharT, _Traits, _Alloc>&
10945 basic_string<_CharT, _Traits, _Alloc>::
10946 append(const basic_string& __str)
10948 const size_type __size = __str.size();
10951 const size_type __len = __size + this->size();
10952 if (__len > this->capacity() || _M_rep()->_M_is_shared())
10953 this->reserve(__len);
10954 _M_copy(_M_data() + this->size(), __str._M_data(), __size);
10955 _M_rep()->_M_set_length_and_sharable(__len);
10959 template<typename _CharT, typename _Traits, typename _Alloc>
10960 basic_string<_CharT, _Traits, _Alloc>&
10961 basic_string<_CharT, _Traits, _Alloc>::
10962 append(const basic_string& __str, size_type __pos, size_type __n)
10964 __str._M_check(__pos, "basic_string::append");
10965 __n = __str._M_limit(__pos, __n);
10968 const size_type __len = __n + this->size();
10969 if (__len > this->capacity() || _M_rep()->_M_is_shared())
10970 this->reserve(__len);
10971 _M_copy(_M_data() + this->size(), __str._M_data() + __pos, __n);
10972 _M_rep()->_M_set_length_and_sharable(__len);
10976 template<typename _CharT, typename _Traits, typename _Alloc>
10977 basic_string<_CharT, _Traits, _Alloc>&
10978 basic_string<_CharT, _Traits, _Alloc>::
10979 insert(size_type __pos, const _CharT* __s, size_type __n)
10982 _M_check(__pos, "basic_string::insert");
10983 _M_check_length(size_type(0), __n, "basic_string::insert");
10984 if (_M_disjunct(__s) || _M_rep()->_M_is_shared())
10985 return _M_replace_safe(__pos, size_type(0), __s, __n);
10988 const size_type __off = __s - _M_data();
10989 _M_mutate(__pos, 0, __n);
10990 __s = _M_data() + __off;
10991 _CharT* __p = _M_data() + __pos;
10992 if (__s + __n <= __p)
10993 _M_copy(__p, __s, __n);
10994 else if (__s >= __p)
10995 _M_copy(__p, __s + __n, __n);
10998 const size_type __nleft = __p - __s;
10999 _M_copy(__p, __s, __nleft);
11000 _M_copy(__p + __nleft, __p + __n, __n - __nleft);
11005 template<typename _CharT, typename _Traits, typename _Alloc>
11006 typename basic_string<_CharT, _Traits, _Alloc>::iterator
11007 basic_string<_CharT, _Traits, _Alloc>::
11008 erase(iterator __first, iterator __last)
11011 const size_type __size = __last - __first;
11014 const size_type __pos = __first - _M_ibegin();
11015 _M_mutate(__pos, __size, size_type(0));
11016 _M_rep()->_M_set_leaked();
11017 return iterator(_M_data() + __pos);
11022 template<typename _CharT, typename _Traits, typename _Alloc>
11023 basic_string<_CharT, _Traits, _Alloc>&
11024 basic_string<_CharT, _Traits, _Alloc>::
11025 replace(size_type __pos, size_type __n1, const _CharT* __s,
11029 _M_check(__pos, "basic_string::replace");
11030 __n1 = _M_limit(__pos, __n1);
11031 _M_check_length(__n1, __n2, "basic_string::replace");
11033 if (_M_disjunct(__s) || _M_rep()->_M_is_shared())
11034 return _M_replace_safe(__pos, __n1, __s, __n2);
11035 else if ((__left = __s + __n2 <= _M_data() + __pos)
11036 || _M_data() + __pos + __n1 <= __s)
11038 size_type __off = __s - _M_data();
11039 __left ? __off : (__off += __n2 - __n1);
11040 _M_mutate(__pos, __n1, __n2);
11041 _M_copy(_M_data() + __pos, _M_data() + __off, __n2);
11046 const basic_string __tmp(__s, __n2);
11047 return _M_replace_safe(__pos, __n1, __tmp._M_data(), __n2);
11050 template<typename _CharT, typename _Traits, typename _Alloc>
11052 basic_string<_CharT, _Traits, _Alloc>::_Rep::
11053 _M_destroy(const _Alloc& __a) throw ()
11055 const size_type __size = sizeof(_Rep_base) +
11056 (this->_M_capacity + 1) * sizeof(_CharT);
11057 _Raw_bytes_alloc(__a).deallocate(reinterpret_cast<char*>(this), __size);
11059 template<typename _CharT, typename _Traits, typename _Alloc>
11061 basic_string<_CharT, _Traits, _Alloc>::
11064 if (_M_rep() == &_S_empty_rep())
11066 if (_M_rep()->_M_is_shared())
11067 _M_mutate(0, 0, 0);
11068 _M_rep()->_M_set_leaked();
11070 template<typename _CharT, typename _Traits, typename _Alloc>
11072 basic_string<_CharT, _Traits, _Alloc>::
11073 _M_mutate(size_type __pos, size_type __len1, size_type __len2)
11075 const size_type __old_size = this->size();
11076 const size_type __new_size = __old_size + __len2 - __len1;
11077 const size_type __how_much = __old_size - __pos - __len1;
11078 if (__new_size > this->capacity() || _M_rep()->_M_is_shared())
11080 const allocator_type __a = get_allocator();
11081 _Rep* __r = _Rep::_S_create(__new_size, this->capacity(), __a);
11083 _M_copy(__r->_M_refdata(), _M_data(), __pos);
11085 _M_copy(__r->_M_refdata() + __pos + __len2,
11086 _M_data() + __pos + __len1, __how_much);
11087 _M_rep()->_M_dispose(__a);
11088 _M_data(__r->_M_refdata());
11090 else if (__how_much && __len1 != __len2)
11092 _M_move(_M_data() + __pos + __len2,
11093 _M_data() + __pos + __len1, __how_much);
11095 _M_rep()->_M_set_length_and_sharable(__new_size);
11097 template<typename _CharT, typename _Traits, typename _Alloc>
11099 basic_string<_CharT, _Traits, _Alloc>::
11100 reserve(size_type __res)
11102 if (__res != this->capacity() || _M_rep()->_M_is_shared())
11104 if (__res < this->size())
11105 __res = this->size();
11106 const allocator_type __a = get_allocator();
11107 _CharT* __tmp = _M_rep()->_M_clone(__a, __res - this->size());
11108 _M_rep()->_M_dispose(__a);
11112 template<typename _CharT, typename _Traits, typename _Alloc>
11114 basic_string<_CharT, _Traits, _Alloc>::
11115 swap(basic_string& __s)
11117 if (_M_rep()->_M_is_leaked())
11118 _M_rep()->_M_set_sharable();
11119 if (__s._M_rep()->_M_is_leaked())
11120 __s._M_rep()->_M_set_sharable();
11121 if (this->get_allocator() == __s.get_allocator())
11123 _CharT* __tmp = _M_data();
11124 _M_data(__s._M_data());
11125 __s._M_data(__tmp);
11129 const basic_string __tmp1(_M_ibegin(), _M_iend(),
11130 __s.get_allocator());
11131 const basic_string __tmp2(__s._M_ibegin(), __s._M_iend(),
11132 this->get_allocator());
11137 template<typename _CharT, typename _Traits, typename _Alloc>
11138 typename basic_string<_CharT, _Traits, _Alloc>::_Rep*
11139 basic_string<_CharT, _Traits, _Alloc>::_Rep::
11140 _S_create(size_type __capacity, size_type __old_capacity,
11141 const _Alloc& __alloc)
11143 if (__capacity > _S_max_size)
11144 __throw_length_error(("basic_string::_S_create"));
11145 const size_type __pagesize = 4096;
11146 const size_type __malloc_header_size = 4 * sizeof(void*);
11147 if (__capacity > __old_capacity && __capacity < 2 * __old_capacity)
11148 __capacity = 2 * __old_capacity;
11149 size_type __size = (__capacity + 1) * sizeof(_CharT) + sizeof(_Rep);
11150 const size_type __adj_size = __size + __malloc_header_size;
11151 if (__adj_size > __pagesize && __capacity > __old_capacity)
11153 const size_type __extra = __pagesize - __adj_size % __pagesize;
11154 __capacity += __extra / sizeof(_CharT);
11155 if (__capacity > _S_max_size)
11156 __capacity = _S_max_size;
11157 __size = (__capacity + 1) * sizeof(_CharT) + sizeof(_Rep);
11159 void* __place = _Raw_bytes_alloc(__alloc).allocate(__size);
11160 _Rep *__p = new (__place) _Rep;
11161 __p->_M_capacity = __capacity;
11162 __p->_M_set_sharable();
11165 template<typename _CharT, typename _Traits, typename _Alloc>
11167 basic_string<_CharT, _Traits, _Alloc>::_Rep::
11168 _M_clone(const _Alloc& __alloc, size_type __res)
11170 const size_type __requested_cap = this->_M_length + __res;
11171 _Rep* __r = _Rep::_S_create(__requested_cap, this->_M_capacity,
11173 if (this->_M_length)
11174 _M_copy(__r->_M_refdata(), _M_refdata(), this->_M_length);
11175 __r->_M_set_length_and_sharable(this->_M_length);
11176 return __r->_M_refdata();
11178 template<typename _CharT, typename _Traits, typename _Alloc>
11180 basic_string<_CharT, _Traits, _Alloc>::
11181 resize(size_type __n, _CharT __c)
11183 const size_type __size = this->size();
11184 _M_check_length(__size, __n, "basic_string::resize");
11186 this->append(__n - __size, __c);
11187 else if (__n < __size)
11190 template<typename _CharT, typename _Traits, typename _Alloc>
11191 template<typename _InputIterator>
11192 basic_string<_CharT, _Traits, _Alloc>&
11193 basic_string<_CharT, _Traits, _Alloc>::
11194 _M_replace_dispatch(iterator __i1, iterator __i2, _InputIterator __k1,
11195 _InputIterator __k2, __false_type)
11197 const basic_string __s(__k1, __k2);
11198 const size_type __n1 = __i2 - __i1;
11199 _M_check_length(__n1, __s.size(), "basic_string::_M_replace_dispatch");
11200 return _M_replace_safe(__i1 - _M_ibegin(), __n1, __s._M_data(),
11203 template<typename _CharT, typename _Traits, typename _Alloc>
11204 basic_string<_CharT, _Traits, _Alloc>&
11205 basic_string<_CharT, _Traits, _Alloc>::
11206 _M_replace_aux(size_type __pos1, size_type __n1, size_type __n2,
11209 _M_check_length(__n1, __n2, "basic_string::_M_replace_aux");
11210 _M_mutate(__pos1, __n1, __n2);
11212 _M_assign(_M_data() + __pos1, __n2, __c);
11215 template<typename _CharT, typename _Traits, typename _Alloc>
11216 basic_string<_CharT, _Traits, _Alloc>&
11217 basic_string<_CharT, _Traits, _Alloc>::
11218 _M_replace_safe(size_type __pos1, size_type __n1, const _CharT* __s,
11221 _M_mutate(__pos1, __n1, __n2);
11223 _M_copy(_M_data() + __pos1, __s, __n2);
11226 template<typename _CharT, typename _Traits, typename _Alloc>
11227 basic_string<_CharT, _Traits, _Alloc>
11228 operator+(const _CharT* __lhs,
11229 const basic_string<_CharT, _Traits, _Alloc>& __rhs)
11232 typedef basic_string<_CharT, _Traits, _Alloc> __string_type;
11233 typedef typename __string_type::size_type __size_type;
11234 const __size_type __len = _Traits::length(__lhs);
11235 __string_type __str;
11236 __str.reserve(__len + __rhs.size());
11237 __str.append(__lhs, __len);
11238 __str.append(__rhs);
11241 template<typename _CharT, typename _Traits, typename _Alloc>
11242 basic_string<_CharT, _Traits, _Alloc>
11243 operator+(_CharT __lhs, const basic_string<_CharT, _Traits, _Alloc>& __rhs)
11245 typedef basic_string<_CharT, _Traits, _Alloc> __string_type;
11246 typedef typename __string_type::size_type __size_type;
11247 __string_type __str;
11248 const __size_type __len = __rhs.size();
11249 __str.reserve(__len + 1);
11250 __str.append(__size_type(1), __lhs);
11251 __str.append(__rhs);
11254 template<typename _CharT, typename _Traits, typename _Alloc>
11255 typename basic_string<_CharT, _Traits, _Alloc>::size_type
11256 basic_string<_CharT, _Traits, _Alloc>::
11257 copy(_CharT* __s, size_type __n, size_type __pos) const
11259 _M_check(__pos, "basic_string::copy");
11260 __n = _M_limit(__pos, __n);
11263 _M_copy(__s, _M_data() + __pos, __n);
11266 template<typename _CharT, typename _Traits, typename _Alloc>
11267 typename basic_string<_CharT, _Traits, _Alloc>::size_type
11268 basic_string<_CharT, _Traits, _Alloc>::
11269 find(const _CharT* __s, size_type __pos, size_type __n) const
11272 const size_type __size = this->size();
11273 const _CharT* __data = _M_data();
11275 return __pos <= __size ? __pos : npos;
11278 for (; __pos <= __size - __n; ++__pos)
11279 if (traits_type::eq(__data[__pos], __s[0])
11280 && traits_type::compare(__data + __pos + 1,
11281 __s + 1, __n - 1) == 0)
11286 template<typename _CharT, typename _Traits, typename _Alloc>
11287 typename basic_string<_CharT, _Traits, _Alloc>::size_type
11288 basic_string<_CharT, _Traits, _Alloc>::
11289 find(_CharT __c, size_type __pos) const
11291 size_type __ret = npos;
11292 const size_type __size = this->size();
11293 if (__pos < __size)
11295 const _CharT* __data = _M_data();
11296 const size_type __n = __size - __pos;
11297 const _CharT* __p = traits_type::find(__data + __pos, __n, __c);
11299 __ret = __p - __data;
11303 template<typename _CharT, typename _Traits, typename _Alloc>
11304 typename basic_string<_CharT, _Traits, _Alloc>::size_type
11305 basic_string<_CharT, _Traits, _Alloc>::
11306 rfind(const _CharT* __s, size_type __pos, size_type __n) const
11309 const size_type __size = this->size();
11312 __pos = std::min(size_type(__size - __n), __pos);
11313 const _CharT* __data = _M_data();
11316 if (traits_type::compare(__data + __pos, __s, __n) == 0)
11319 while (__pos-- > 0);
11323 template<typename _CharT, typename _Traits, typename _Alloc>
11324 typename basic_string<_CharT, _Traits, _Alloc>::size_type
11325 basic_string<_CharT, _Traits, _Alloc>::
11326 rfind(_CharT __c, size_type __pos) const
11328 size_type __size = this->size();
11331 if (--__size > __pos)
11333 for (++__size; __size-- > 0; )
11334 if (traits_type::eq(_M_data()[__size], __c))
11339 template<typename _CharT, typename _Traits, typename _Alloc>
11340 typename basic_string<_CharT, _Traits, _Alloc>::size_type
11341 basic_string<_CharT, _Traits, _Alloc>::
11342 find_first_of(const _CharT* __s, size_type __pos, size_type __n) const
11345 for (; __n && __pos < this->size(); ++__pos)
11347 const _CharT* __p = traits_type::find(__s, __n, _M_data()[__pos]);
11353 template<typename _CharT, typename _Traits, typename _Alloc>
11354 typename basic_string<_CharT, _Traits, _Alloc>::size_type
11355 basic_string<_CharT, _Traits, _Alloc>::
11356 find_last_of(const _CharT* __s, size_type __pos, size_type __n) const
11359 size_type __size = this->size();
11362 if (--__size > __pos)
11366 if (traits_type::find(__s, __n, _M_data()[__size]))
11369 while (__size-- != 0);
11373 template<typename _CharT, typename _Traits, typename _Alloc>
11374 typename basic_string<_CharT, _Traits, _Alloc>::size_type
11375 basic_string<_CharT, _Traits, _Alloc>::
11376 find_first_not_of(const _CharT* __s, size_type __pos, size_type __n) const
11379 for (; __pos < this->size(); ++__pos)
11380 if (!traits_type::find(__s, __n, _M_data()[__pos]))
11384 template<typename _CharT, typename _Traits, typename _Alloc>
11385 typename basic_string<_CharT, _Traits, _Alloc>::size_type
11386 basic_string<_CharT, _Traits, _Alloc>::
11387 find_first_not_of(_CharT __c, size_type __pos) const
11389 for (; __pos < this->size(); ++__pos)
11390 if (!traits_type::eq(_M_data()[__pos], __c))
11394 template<typename _CharT, typename _Traits, typename _Alloc>
11395 typename basic_string<_CharT, _Traits, _Alloc>::size_type
11396 basic_string<_CharT, _Traits, _Alloc>::
11397 find_last_not_of(const _CharT* __s, size_type __pos, size_type __n) const
11400 size_type __size = this->size();
11403 if (--__size > __pos)
11407 if (!traits_type::find(__s, __n, _M_data()[__size]))
11414 template<typename _CharT, typename _Traits, typename _Alloc>
11415 typename basic_string<_CharT, _Traits, _Alloc>::size_type
11416 basic_string<_CharT, _Traits, _Alloc>::
11417 find_last_not_of(_CharT __c, size_type __pos) const
11419 size_type __size = this->size();
11422 if (--__size > __pos)
11426 if (!traits_type::eq(_M_data()[__size], __c))
11433 template<typename _CharT, typename _Traits, typename _Alloc>
11435 basic_string<_CharT, _Traits, _Alloc>::
11436 compare(size_type __pos, size_type __n, const basic_string& __str) const
11438 _M_check(__pos, "basic_string::compare");
11439 __n = _M_limit(__pos, __n);
11440 const size_type __osize = __str.size();
11441 const size_type __len = std::min(__n, __osize);
11442 int __r = traits_type::compare(_M_data() + __pos, __str.data(), __len);
11444 __r = _S_compare(__n, __osize);
11447 template<typename _CharT, typename _Traits, typename _Alloc>
11449 basic_string<_CharT, _Traits, _Alloc>::
11450 compare(size_type __pos1, size_type __n1, const basic_string& __str,
11451 size_type __pos2, size_type __n2) const
11453 _M_check(__pos1, "basic_string::compare");
11454 __str._M_check(__pos2, "basic_string::compare");
11455 __n1 = _M_limit(__pos1, __n1);
11456 __n2 = __str._M_limit(__pos2, __n2);
11457 const size_type __len = std::min(__n1, __n2);
11458 int __r = traits_type::compare(_M_data() + __pos1,
11459 __str.data() + __pos2, __len);
11461 __r = _S_compare(__n1, __n2);
11464 template<typename _CharT, typename _Traits, typename _Alloc>
11466 basic_string<_CharT, _Traits, _Alloc>::
11467 compare(const _CharT* __s) const
11470 const size_type __size = this->size();
11471 const size_type __osize = traits_type::length(__s);
11472 const size_type __len = std::min(__size, __osize);
11473 int __r = traits_type::compare(_M_data(), __s, __len);
11475 __r = _S_compare(__size, __osize);
11478 template<typename _CharT, typename _Traits, typename _Alloc>
11480 basic_string <_CharT, _Traits, _Alloc>::
11481 compare(size_type __pos, size_type __n1, const _CharT* __s) const
11484 _M_check(__pos, "basic_string::compare");
11485 __n1 = _M_limit(__pos, __n1);
11486 const size_type __osize = traits_type::length(__s);
11487 const size_type __len = std::min(__n1, __osize);
11488 int __r = traits_type::compare(_M_data() + __pos, __s, __len);
11490 __r = _S_compare(__n1, __osize);
11493 template<typename _CharT, typename _Traits, typename _Alloc>
11495 basic_string <_CharT, _Traits, _Alloc>::
11496 compare(size_type __pos, size_type __n1, const _CharT* __s,
11497 size_type __n2) const
11500 _M_check(__pos, "basic_string::compare");
11501 __n1 = _M_limit(__pos, __n1);
11502 const size_type __len = std::min(__n1, __n2);
11503 int __r = traits_type::compare(_M_data() + __pos, __s, __len);
11505 __r = _S_compare(__n1, __n2);
11508 template<typename _CharT, typename _Traits, typename _Alloc>
11509 basic_istream<_CharT, _Traits>&
11510 operator>>(basic_istream<_CharT, _Traits>& __in,
11511 basic_string<_CharT, _Traits, _Alloc>& __str)
11513 typedef basic_istream<_CharT, _Traits> __istream_type;
11514 typedef basic_string<_CharT, _Traits, _Alloc> __string_type;
11515 typedef typename __istream_type::ios_base __ios_base;
11516 typedef typename __istream_type::int_type __int_type;
11517 typedef typename __string_type::size_type __size_type;
11518 typedef ctype<_CharT> __ctype_type;
11519 typedef typename __ctype_type::ctype_base __ctype_base;
11520 __size_type __extracted = 0;
11521 typename __ios_base::iostate __err = __ios_base::goodbit;
11522 typename __istream_type::sentry __cerb(__in, false);
11529 __size_type __len = 0;
11530 const streamsize __w = __in.width();
11531 const __size_type __n = __w > 0 ? static_cast<__size_type>(__w)
11532 : __str.max_size();
11533 const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc());
11534 const __int_type __eof = _Traits::eof();
11535 __int_type __c = __in.rdbuf()->sgetc();
11536 while (__extracted < __n
11537 && !_Traits::eq_int_type(__c, __eof)
11538 && !__ct.is(__ctype_base::space,
11539 _Traits::to_char_type(__c)))
11541 if (__len == sizeof(__buf) / sizeof(_CharT))
11543 __str.append(__buf, sizeof(__buf) / sizeof(_CharT));
11546 __buf[__len++] = _Traits::to_char_type(__c);
11548 __c = __in.rdbuf()->snextc();
11550 __str.append(__buf, __len);
11551 if (_Traits::eq_int_type(__c, __eof))
11552 __err |= __ios_base::eofbit;
11555 catch(__cxxabiv1::__forced_unwind&)
11557 __in._M_setstate(__ios_base::badbit);
11562 __in._M_setstate(__ios_base::badbit);
11566 __err |= __ios_base::failbit;
11568 __in.setstate(__err);
11571 template<typename _CharT, typename _Traits, typename _Alloc>
11572 basic_istream<_CharT, _Traits>&
11573 getline(basic_istream<_CharT, _Traits>& __in,
11574 basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim)
11576 typedef basic_istream<_CharT, _Traits> __istream_type;
11577 typedef basic_string<_CharT, _Traits, _Alloc> __string_type;
11578 typedef typename __istream_type::ios_base __ios_base;
11579 typedef typename __istream_type::int_type __int_type;
11580 typedef typename __string_type::size_type __size_type;
11581 __size_type __extracted = 0;
11582 const __size_type __n = __str.max_size();
11583 typename __ios_base::iostate __err = __ios_base::goodbit;
11584 typename __istream_type::sentry __cerb(__in, true);
11590 const __int_type __idelim = _Traits::to_int_type(__delim);
11591 const __int_type __eof = _Traits::eof();
11592 __int_type __c = __in.rdbuf()->sgetc();
11593 while (__extracted < __n
11594 && !_Traits::eq_int_type(__c, __eof)
11595 && !_Traits::eq_int_type(__c, __idelim))
11597 __str += _Traits::to_char_type(__c);
11599 __c = __in.rdbuf()->snextc();
11601 if (_Traits::eq_int_type(__c, __eof))
11602 __err |= __ios_base::eofbit;
11603 else if (_Traits::eq_int_type(__c, __idelim))
11606 __in.rdbuf()->sbumpc();
11609 __err |= __ios_base::failbit;
11611 catch(__cxxabiv1::__forced_unwind&)
11613 __in._M_setstate(__ios_base::badbit);
11618 __in._M_setstate(__ios_base::badbit);
11622 __err |= __ios_base::failbit;
11624 __in.setstate(__err);
11627 extern template class basic_string<char>;
11629 basic_istream<char>&
11630 operator>>(basic_istream<char>&, string&);
11632 basic_ostream<char>&
11633 operator<<(basic_ostream<char>&, const string&);
11635 basic_istream<char>&
11636 getline(basic_istream<char>&, string&, char);
11638 basic_istream<char>&
11639 getline(basic_istream<char>&, string&);
11640 extern template class basic_string<wchar_t>;
11642 basic_istream<wchar_t>&
11643 operator>>(basic_istream<wchar_t>&, wstring&);
11645 basic_ostream<wchar_t>&
11646 operator<<(basic_ostream<wchar_t>&, const wstring&);
11648 basic_istream<wchar_t>&
11649 getline(basic_istream<wchar_t>&, wstring&, wchar_t);
11651 basic_istream<wchar_t>&
11652 getline(basic_istream<wchar_t>&, wstring&);
11659 namespace std __attribute__ ((__visibility__ ("default"))) {
11663 typedef int category;
11667 friend class facet;
11668 friend class _Impl;
11669 template<typename _Facet>
11671 has_facet(const locale&) throw();
11672 template<typename _Facet>
11673 friend const _Facet&
11674 use_facet(const locale&);
11675 template<typename _Cache>
11676 friend struct __use_cache;
11677 static const category none = 0;
11678 static const category ctype = 1L << 0;
11679 static const category numeric = 1L << 1;
11680 static const category collate = 1L << 2;
11681 static const category time = 1L << 3;
11682 static const category monetary = 1L << 4;
11683 static const category messages = 1L << 5;
11684 static const category all = (ctype | numeric | collate |
11685 time | monetary | messages);
11687 locale(const locale& __other) throw();
11689 locale(const char* __s);
11690 locale(const locale& __base, const char* __s, category __cat);
11691 locale(const locale& __base, const locale& __add, category __cat);
11692 template<typename _Facet>
11693 locale(const locale& __other, _Facet* __f);
11696 operator=(const locale& __other) throw();
11697 template<typename _Facet>
11699 combine(const locale& __other) const;
11703 operator==(const locale& __other) const throw ();
11705 operator!=(const locale& __other) const throw ()
11706 { return !(this->operator==(__other)); }
11707 template<typename _Char, typename _Traits, typename _Alloc>
11709 operator()(const basic_string<_Char, _Traits, _Alloc>& __s1,
11710 const basic_string<_Char, _Traits, _Alloc>& __s2) const;
11712 global(const locale&);
11713 static const locale&
11717 static _Impl* _S_classic;
11718 static _Impl* _S_global;
11719 static const char* const* const _S_categories;
11720 enum { _S_categories_size = 6 + 6 };
11721 static __gthread_once_t _S_once;
11723 locale(_Impl*) throw();
11727 _S_initialize_once();
11729 _S_normalize_category(category);
11731 _M_coalesce(const locale& __base, const locale& __add, category __cat);
11733 class locale::facet
11736 friend class locale;
11737 friend class locale::_Impl;
11738 mutable _Atomic_word _M_refcount;
11739 static __c_locale _S_c_locale;
11740 static const char _S_c_name[2];
11741 static __gthread_once_t _S_once;
11743 _S_initialize_once();
11746 facet(size_t __refs = 0) throw() : _M_refcount(__refs ? 1 : 0)
11751 _S_create_c_locale(__c_locale& __cloc, const char* __s,
11752 __c_locale __old = 0);
11754 _S_clone_c_locale(__c_locale& __cloc);
11756 _S_destroy_c_locale(__c_locale& __cloc);
11763 _M_add_reference() const throw()
11764 { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); }
11766 _M_remove_reference() const throw()
11768 if (__gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1) == 1)
11776 facet(const facet&);
11778 operator=(const facet&);
11783 friend class locale;
11784 friend class locale::_Impl;
11785 template<typename _Facet>
11786 friend const _Facet&
11787 use_facet(const locale&);
11788 template<typename _Facet>
11790 has_facet(const locale&) throw ();
11791 mutable size_t _M_index;
11792 static _Atomic_word _S_refcount;
11794 operator=(const id&);
11801 class locale::_Impl
11804 friend class locale;
11805 friend class locale::facet;
11806 template<typename _Facet>
11808 has_facet(const locale&) throw();
11809 template<typename _Facet>
11810 friend const _Facet&
11811 use_facet(const locale&);
11812 template<typename _Cache>
11813 friend struct __use_cache;
11815 _Atomic_word _M_refcount;
11816 const facet** _M_facets;
11817 size_t _M_facets_size;
11818 const facet** _M_caches;
11820 static const locale::id* const _S_id_ctype[];
11821 static const locale::id* const _S_id_numeric[];
11822 static const locale::id* const _S_id_collate[];
11823 static const locale::id* const _S_id_time[];
11824 static const locale::id* const _S_id_monetary[];
11825 static const locale::id* const _S_id_messages[];
11826 static const locale::id* const* const _S_facet_categories[];
11828 _M_add_reference() throw()
11829 { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); }
11831 _M_remove_reference() throw()
11833 if (__gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1) == 1)
11841 _Impl(const _Impl&, size_t);
11842 _Impl(const char*, size_t);
11843 _Impl(size_t) throw();
11845 _Impl(const _Impl&);
11847 operator=(const _Impl&);
11849 _M_check_same_name()
11853 for (size_t __i = 0; __ret && __i < _S_categories_size - 1; ++__i)
11854 __ret = __builtin_strcmp(_M_names[__i], _M_names[__i + 1]) == 0;
11858 _M_replace_categories(const _Impl*, category);
11860 _M_replace_category(const _Impl*, const locale::id* const*);
11862 _M_replace_facet(const _Impl*, const locale::id*);
11864 _M_install_facet(const locale::id*, const facet*);
11865 template<typename _Facet>
11867 _M_init_facet(_Facet* __facet)
11868 { _M_install_facet(&_Facet::id, __facet); }
11870 _M_install_cache(const facet*, size_t);
11872 template<typename _Facet>
11874 has_facet(const locale& __loc) throw();
11875 template<typename _Facet>
11877 use_facet(const locale& __loc);
11878 template<typename _CharT>
11879 class collate : public locale::facet
11882 typedef _CharT char_type;
11883 typedef basic_string<_CharT> string_type;
11885 __c_locale _M_c_locale_collate;
11887 static locale::id id;
11889 collate(size_t __refs = 0)
11890 : facet(__refs), _M_c_locale_collate(_S_get_c_locale())
11893 collate(__c_locale __cloc, size_t __refs = 0)
11894 : facet(__refs), _M_c_locale_collate(_S_clone_c_locale(__cloc))
11897 compare(const _CharT* __lo1, const _CharT* __hi1,
11898 const _CharT* __lo2, const _CharT* __hi2) const
11899 { return this->do_compare(__lo1, __hi1, __lo2, __hi2); }
11901 transform(const _CharT* __lo, const _CharT* __hi) const
11902 { return this->do_transform(__lo, __hi); }
11904 hash(const _CharT* __lo, const _CharT* __hi) const
11905 { return this->do_hash(__lo, __hi); }
11907 _M_compare(const _CharT*, const _CharT*) const;
11909 _M_transform(_CharT*, const _CharT*, size_t) const;
11913 { _S_destroy_c_locale(_M_c_locale_collate); }
11915 do_compare(const _CharT* __lo1, const _CharT* __hi1,
11916 const _CharT* __lo2, const _CharT* __hi2) const;
11917 virtual string_type
11918 do_transform(const _CharT* __lo, const _CharT* __hi) const;
11920 do_hash(const _CharT* __lo, const _CharT* __hi) const;
11922 template<typename _CharT>
11923 locale::id collate<_CharT>::id;
11926 collate<char>::_M_compare(const char*, const char*) const;
11929 collate<char>::_M_transform(char*, const char*, size_t) const;
11932 collate<wchar_t>::_M_compare(const wchar_t*, const wchar_t*) const;
11935 collate<wchar_t>::_M_transform(wchar_t*, const wchar_t*, size_t) const;
11936 template<typename _CharT>
11937 class collate_byname : public collate<_CharT>
11940 typedef _CharT char_type;
11941 typedef basic_string<_CharT> string_type;
11943 collate_byname(const char* __s, size_t __refs = 0)
11944 : collate<_CharT>(__refs)
11946 if (__builtin_strcmp(__s, "C") != 0
11947 && __builtin_strcmp(__s, "POSIX") != 0)
11949 this->_S_destroy_c_locale(this->_M_c_locale_collate);
11950 this->_S_create_c_locale(this->_M_c_locale_collate, __s);
11955 ~collate_byname() { }
11959 namespace std __attribute__ ((__visibility__ ("default"))) {
11960 template<typename _Facet>
11962 locale(const locale& __other, _Facet* __f)
11964 _M_impl = new _Impl(*__other._M_impl, 1);
11966 { _M_impl->_M_install_facet(&_Facet::id, __f); }
11969 _M_impl->_M_remove_reference();
11972 delete [] _M_impl->_M_names[0];
11973 _M_impl->_M_names[0] = 0;
11975 template<typename _Facet>
11978 combine(const locale& __other) const
11980 _Impl* __tmp = new _Impl(*_M_impl, 1);
11983 __tmp->_M_replace_facet(__other._M_impl, &_Facet::id);
11987 __tmp->_M_remove_reference();
11990 return locale(__tmp);
11992 template<typename _CharT, typename _Traits, typename _Alloc>
11995 operator()(const basic_string<_CharT, _Traits, _Alloc>& __s1,
11996 const basic_string<_CharT, _Traits, _Alloc>& __s2) const
11998 typedef std::collate<_CharT> __collate_type;
11999 const __collate_type& __collate = use_facet<__collate_type>(*this);
12000 return (__collate.compare(__s1.data(), __s1.data() + __s1.length(),
12001 __s2.data(), __s2.data() + __s2.length()) < 0);
12003 template<typename _Facet>
12005 has_facet(const locale& __loc) throw()
12007 const size_t __i = _Facet::id._M_id();
12008 const locale::facet** __facets = __loc._M_impl->_M_facets;
12009 return (__i < __loc._M_impl->_M_facets_size
12010 && dynamic_cast<const _Facet*>(__facets[__i]));
12012 template<typename _Facet>
12014 use_facet(const locale& __loc)
12016 const size_t __i = _Facet::id._M_id();
12017 const locale::facet** __facets = __loc._M_impl->_M_facets;
12018 if (__i >= __loc._M_impl->_M_facets_size || !__facets[__i])
12019 __throw_bad_cast();
12020 return dynamic_cast<const _Facet&>(*__facets[__i]);
12022 template<typename _CharT>
12024 collate<_CharT>::_M_compare(const _CharT*, const _CharT*) const
12026 template<typename _CharT>
12028 collate<_CharT>::_M_transform(_CharT*, const _CharT*, size_t) const
12030 template<typename _CharT>
12033 do_compare(const _CharT* __lo1, const _CharT* __hi1,
12034 const _CharT* __lo2, const _CharT* __hi2) const
12036 const string_type __one(__lo1, __hi1);
12037 const string_type __two(__lo2, __hi2);
12038 const _CharT* __p = __one.c_str();
12039 const _CharT* __pend = __one.data() + __one.length();
12040 const _CharT* __q = __two.c_str();
12041 const _CharT* __qend = __two.data() + __two.length();
12044 const int __res = _M_compare(__p, __q);
12047 __p += char_traits<_CharT>::length(__p);
12048 __q += char_traits<_CharT>::length(__q);
12049 if (__p == __pend && __q == __qend)
12051 else if (__p == __pend)
12053 else if (__q == __qend)
12059 template<typename _CharT>
12060 typename collate<_CharT>::string_type
12062 do_transform(const _CharT* __lo, const _CharT* __hi) const
12065 const string_type __str(__lo, __hi);
12066 const _CharT* __p = __str.c_str();
12067 const _CharT* __pend = __str.data() + __str.length();
12068 size_t __len = (__hi - __lo) * 2;
12069 _CharT* __c = new _CharT[__len];
12074 size_t __res = _M_transform(__c, __p, __len);
12075 if (__res >= __len)
12078 delete [] __c, __c = 0;
12079 __c = new _CharT[__len];
12080 __res = _M_transform(__c, __p, __len);
12082 __ret.append(__c, __res);
12083 __p += char_traits<_CharT>::length(__p);
12087 __ret.push_back(_CharT());
12098 template<typename _CharT>
12101 do_hash(const _CharT* __lo, const _CharT* __hi) const
12103 unsigned long __val = 0;
12104 for (; __lo < __hi; ++__lo)
12106 *__lo + ((__val << 7)
12107 | (__val >> (__gnu_cxx::__numeric_traits<unsigned long>::
12109 return static_cast<long>(__val);
12111 extern template class collate<char>;
12112 extern template class collate_byname<char>;
12114 const collate<char>&
12115 use_facet<collate<char> >(const locale&);
12118 has_facet<collate<char> >(const locale&);
12119 extern template class collate<wchar_t>;
12120 extern template class collate_byname<wchar_t>;
12122 const collate<wchar_t>&
12123 use_facet<collate<wchar_t> >(const locale&);
12126 has_facet<collate<wchar_t> >(const locale&);
12128 namespace std __attribute__ ((__visibility__ ("default"))) {
12131 _S_boolalpha = 1L << 0,
12133 _S_fixed = 1L << 2,
12135 _S_internal = 1L << 4,
12138 _S_right = 1L << 7,
12139 _S_scientific = 1L << 8,
12140 _S_showbase = 1L << 9,
12141 _S_showpoint = 1L << 10,
12142 _S_showpos = 1L << 11,
12143 _S_skipws = 1L << 12,
12144 _S_unitbuf = 1L << 13,
12145 _S_uppercase = 1L << 14,
12146 _S_adjustfield = _S_left | _S_right | _S_internal,
12147 _S_basefield = _S_dec | _S_oct | _S_hex,
12148 _S_floatfield = _S_scientific | _S_fixed,
12149 _S_ios_fmtflags_end = 1L << 16
12151 inline _Ios_Fmtflags
12152 operator&(_Ios_Fmtflags __a, _Ios_Fmtflags __b)
12153 { return _Ios_Fmtflags(static_cast<int>(__a) & static_cast<int>(__b)); }
12154 inline _Ios_Fmtflags
12155 operator|(_Ios_Fmtflags __a, _Ios_Fmtflags __b)
12156 { return _Ios_Fmtflags(static_cast<int>(__a) | static_cast<int>(__b)); }
12157 inline _Ios_Fmtflags
12158 operator^(_Ios_Fmtflags __a, _Ios_Fmtflags __b)
12159 { return _Ios_Fmtflags(static_cast<int>(__a) ^ static_cast<int>(__b)); }
12160 inline _Ios_Fmtflags&
12161 operator|=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b)
12162 { return __a = __a | __b; }
12163 inline _Ios_Fmtflags&
12164 operator&=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b)
12165 { return __a = __a & __b; }
12166 inline _Ios_Fmtflags&
12167 operator^=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b)
12168 { return __a = __a ^ __b; }
12169 inline _Ios_Fmtflags
12170 operator~(_Ios_Fmtflags __a)
12171 { return _Ios_Fmtflags(~static_cast<int>(__a)); }
12179 _S_trunc = 1L << 5,
12180 _S_ios_openmode_end = 1L << 16
12182 inline _Ios_Openmode
12183 operator&(_Ios_Openmode __a, _Ios_Openmode __b)
12184 { return _Ios_Openmode(static_cast<int>(__a) & static_cast<int>(__b)); }
12185 inline _Ios_Openmode
12186 operator|(_Ios_Openmode __a, _Ios_Openmode __b)
12187 { return _Ios_Openmode(static_cast<int>(__a) | static_cast<int>(__b)); }
12188 inline _Ios_Openmode
12189 operator^(_Ios_Openmode __a, _Ios_Openmode __b)
12190 { return _Ios_Openmode(static_cast<int>(__a) ^ static_cast<int>(__b)); }
12191 inline _Ios_Openmode&
12192 operator|=(_Ios_Openmode& __a, _Ios_Openmode __b)
12193 { return __a = __a | __b; }
12194 inline _Ios_Openmode&
12195 operator&=(_Ios_Openmode& __a, _Ios_Openmode __b)
12196 { return __a = __a & __b; }
12197 inline _Ios_Openmode&
12198 operator^=(_Ios_Openmode& __a, _Ios_Openmode __b)
12199 { return __a = __a ^ __b; }
12200 inline _Ios_Openmode
12201 operator~(_Ios_Openmode __a)
12202 { return _Ios_Openmode(~static_cast<int>(__a)); }
12206 _S_badbit = 1L << 0,
12207 _S_eofbit = 1L << 1,
12208 _S_failbit = 1L << 2,
12209 _S_ios_iostate_end = 1L << 16
12211 inline _Ios_Iostate
12212 operator&(_Ios_Iostate __a, _Ios_Iostate __b)
12213 { return _Ios_Iostate(static_cast<int>(__a) & static_cast<int>(__b)); }
12214 inline _Ios_Iostate
12215 operator|(_Ios_Iostate __a, _Ios_Iostate __b)
12216 { return _Ios_Iostate(static_cast<int>(__a) | static_cast<int>(__b)); }
12217 inline _Ios_Iostate
12218 operator^(_Ios_Iostate __a, _Ios_Iostate __b)
12219 { return _Ios_Iostate(static_cast<int>(__a) ^ static_cast<int>(__b)); }
12220 inline _Ios_Iostate&
12221 operator|=(_Ios_Iostate& __a, _Ios_Iostate __b)
12222 { return __a = __a | __b; }
12223 inline _Ios_Iostate&
12224 operator&=(_Ios_Iostate& __a, _Ios_Iostate __b)
12225 { return __a = __a & __b; }
12226 inline _Ios_Iostate&
12227 operator^=(_Ios_Iostate& __a, _Ios_Iostate __b)
12228 { return __a = __a ^ __b; }
12229 inline _Ios_Iostate
12230 operator~(_Ios_Iostate __a)
12231 { return _Ios_Iostate(~static_cast<int>(__a)); }
12237 _S_ios_seekdir_end = 1L << 16
12242 class failure : public exception
12246 failure(const string& __str) throw();
12248 ~failure() throw();
12249 virtual const char*
12250 what() const throw();
12254 typedef _Ios_Fmtflags fmtflags;
12255 static const fmtflags boolalpha = _S_boolalpha;
12256 static const fmtflags dec = _S_dec;
12257 static const fmtflags fixed = _S_fixed;
12258 static const fmtflags hex = _S_hex;
12259 static const fmtflags internal = _S_internal;
12260 static const fmtflags left = _S_left;
12261 static const fmtflags oct = _S_oct;
12262 static const fmtflags right = _S_right;
12263 static const fmtflags scientific = _S_scientific;
12264 static const fmtflags showbase = _S_showbase;
12265 static const fmtflags showpoint = _S_showpoint;
12266 static const fmtflags showpos = _S_showpos;
12267 static const fmtflags skipws = _S_skipws;
12268 static const fmtflags unitbuf = _S_unitbuf;
12269 static const fmtflags uppercase = _S_uppercase;
12270 static const fmtflags adjustfield = _S_adjustfield;
12271 static const fmtflags basefield = _S_basefield;
12272 static const fmtflags floatfield = _S_floatfield;
12273 typedef _Ios_Iostate iostate;
12274 static const iostate badbit = _S_badbit;
12275 static const iostate eofbit = _S_eofbit;
12276 static const iostate failbit = _S_failbit;
12277 static const iostate goodbit = _S_goodbit;
12278 typedef _Ios_Openmode openmode;
12279 static const openmode app = _S_app;
12280 static const openmode ate = _S_ate;
12281 static const openmode binary = _S_bin;
12282 static const openmode in = _S_in;
12283 static const openmode out = _S_out;
12284 static const openmode trunc = _S_trunc;
12285 typedef _Ios_Seekdir seekdir;
12286 static const seekdir beg = _S_beg;
12287 static const seekdir cur = _S_cur;
12288 static const seekdir end = _S_end;
12289 typedef int io_state;
12290 typedef int open_mode;
12291 typedef int seek_dir;
12292 typedef std::streampos streampos;
12293 typedef std::streamoff streamoff;
12300 typedef void (*event_callback) (event, ios_base&, int);
12302 register_callback(event_callback __fn, int __index);
12304 streamsize _M_precision;
12305 streamsize _M_width;
12307 iostate _M_exception;
12308 iostate _M_streambuf_state;
12309 struct _Callback_list
12311 _Callback_list* _M_next;
12312 ios_base::event_callback _M_fn;
12314 _Atomic_word _M_refcount;
12315 _Callback_list(ios_base::event_callback __fn, int __index,
12316 _Callback_list* __cb)
12317 : _M_next(__cb), _M_fn(__fn), _M_index(__index), _M_refcount(0) { }
12319 _M_add_reference() { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); }
12321 _M_remove_reference()
12322 { return __gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1); }
12324 _Callback_list* _M_callbacks;
12326 _M_call_callbacks(event __ev) throw();
12328 _M_dispose_callbacks(void);
12333 _Words() : _M_pword(0), _M_iword(0) { }
12335 _Words _M_word_zero;
12336 enum { _S_local_word_size = 8 };
12337 _Words _M_local_word[_S_local_word_size];
12341 _M_grow_words(int __index, bool __iword);
12342 locale _M_ios_locale;
12348 friend class ios_base;
12353 static _Atomic_word _S_refcount;
12354 static bool _S_synced_with_stdio;
12358 { return _M_flags; }
12360 flags(fmtflags __fmtfl)
12362 fmtflags __old = _M_flags;
12363 _M_flags = __fmtfl;
12367 setf(fmtflags __fmtfl)
12369 fmtflags __old = _M_flags;
12370 _M_flags |= __fmtfl;
12374 setf(fmtflags __fmtfl, fmtflags __mask)
12376 fmtflags __old = _M_flags;
12377 _M_flags &= ~__mask;
12378 _M_flags |= (__fmtfl & __mask);
12382 unsetf(fmtflags __mask)
12383 { _M_flags &= ~__mask; }
12386 { return _M_precision; }
12388 precision(streamsize __prec)
12390 streamsize __old = _M_precision;
12391 _M_precision = __prec;
12396 { return _M_width; }
12398 width(streamsize __wide)
12400 streamsize __old = _M_width;
12405 sync_with_stdio(bool __sync = true);
12407 imbue(const locale& __loc);
12410 { return _M_ios_locale; }
12413 { return _M_ios_locale; }
12419 _Words& __word = (__ix < _M_word_size)
12420 ? _M_word[__ix] : _M_grow_words(__ix, true);
12421 return __word._M_iword;
12426 _Words& __word = (__ix < _M_word_size)
12427 ? _M_word[__ix] : _M_grow_words(__ix, false);
12428 return __word._M_pword;
12430 virtual ~ios_base();
12434 ios_base(const ios_base&);
12436 operator=(const ios_base&);
12439 boolalpha(ios_base& __base)
12441 __base.setf(ios_base::boolalpha);
12445 noboolalpha(ios_base& __base)
12447 __base.unsetf(ios_base::boolalpha);
12451 showbase(ios_base& __base)
12453 __base.setf(ios_base::showbase);
12457 noshowbase(ios_base& __base)
12459 __base.unsetf(ios_base::showbase);
12463 showpoint(ios_base& __base)
12465 __base.setf(ios_base::showpoint);
12469 noshowpoint(ios_base& __base)
12471 __base.unsetf(ios_base::showpoint);
12475 showpos(ios_base& __base)
12477 __base.setf(ios_base::showpos);
12481 noshowpos(ios_base& __base)
12483 __base.unsetf(ios_base::showpos);
12487 skipws(ios_base& __base)
12489 __base.setf(ios_base::skipws);
12493 noskipws(ios_base& __base)
12495 __base.unsetf(ios_base::skipws);
12499 uppercase(ios_base& __base)
12501 __base.setf(ios_base::uppercase);
12505 nouppercase(ios_base& __base)
12507 __base.unsetf(ios_base::uppercase);
12511 unitbuf(ios_base& __base)
12513 __base.setf(ios_base::unitbuf);
12517 nounitbuf(ios_base& __base)
12519 __base.unsetf(ios_base::unitbuf);
12523 internal(ios_base& __base)
12525 __base.setf(ios_base::internal, ios_base::adjustfield);
12529 left(ios_base& __base)
12531 __base.setf(ios_base::left, ios_base::adjustfield);
12535 right(ios_base& __base)
12537 __base.setf(ios_base::right, ios_base::adjustfield);
12541 dec(ios_base& __base)
12543 __base.setf(ios_base::dec, ios_base::basefield);
12547 hex(ios_base& __base)
12549 __base.setf(ios_base::hex, ios_base::basefield);
12553 oct(ios_base& __base)
12555 __base.setf(ios_base::oct, ios_base::basefield);
12559 fixed(ios_base& __base)
12561 __base.setf(ios_base::fixed, ios_base::floatfield);
12565 scientific(ios_base& __base)
12567 __base.setf(ios_base::scientific, ios_base::floatfield);
12572 namespace std __attribute__ ((__visibility__ ("default"))) {
12573 template<typename _CharT, typename _Traits>
12575 __copy_streambufs_eof(basic_streambuf<_CharT, _Traits>*,
12576 basic_streambuf<_CharT, _Traits>*, bool&);
12577 template<typename _CharT, typename _Traits>
12578 class basic_streambuf
12581 typedef _CharT char_type;
12582 typedef _Traits traits_type;
12583 typedef typename traits_type::int_type int_type;
12584 typedef typename traits_type::pos_type pos_type;
12585 typedef typename traits_type::off_type off_type;
12586 typedef basic_streambuf<char_type, traits_type> __streambuf_type;
12587 friend class basic_ios<char_type, traits_type>;
12588 friend class basic_istream<char_type, traits_type>;
12589 friend class basic_ostream<char_type, traits_type>;
12590 friend class istreambuf_iterator<char_type, traits_type>;
12591 friend class ostreambuf_iterator<char_type, traits_type>;
12593 __copy_streambufs_eof<>(__streambuf_type*, __streambuf_type*, bool&);
12594 template<bool _IsMove, typename _CharT2>
12595 friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value,
12597 __copy_move_a2(istreambuf_iterator<_CharT2>,
12598 istreambuf_iterator<_CharT2>, _CharT2*);
12599 template<typename _CharT2>
12600 friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value,
12601 istreambuf_iterator<_CharT2> >::__type
12602 find(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>,
12604 template<typename _CharT2, typename _Traits2>
12605 friend basic_istream<_CharT2, _Traits2>&
12606 operator>>(basic_istream<_CharT2, _Traits2>&, _CharT2*);
12607 template<typename _CharT2, typename _Traits2, typename _Alloc>
12608 friend basic_istream<_CharT2, _Traits2>&
12609 operator>>(basic_istream<_CharT2, _Traits2>&,
12610 basic_string<_CharT2, _Traits2, _Alloc>&);
12611 template<typename _CharT2, typename _Traits2, typename _Alloc>
12612 friend basic_istream<_CharT2, _Traits2>&
12613 getline(basic_istream<_CharT2, _Traits2>&,
12614 basic_string<_CharT2, _Traits2, _Alloc>&, _CharT2);
12616 char_type* _M_in_beg;
12617 char_type* _M_in_cur;
12618 char_type* _M_in_end;
12619 char_type* _M_out_beg;
12620 char_type* _M_out_cur;
12621 char_type* _M_out_end;
12622 locale _M_buf_locale;
12628 pubimbue(const locale &__loc)
12630 locale __tmp(this->getloc());
12631 this->imbue(__loc);
12632 _M_buf_locale = __loc;
12637 { return _M_buf_locale; }
12639 pubsetbuf(char_type* __s, streamsize __n)
12640 { return this->setbuf(__s, __n); }
12642 pubseekoff(off_type __off, ios_base::seekdir __way,
12643 ios_base::openmode __mode = ios_base::in | ios_base::out)
12644 { return this->seekoff(__off, __way, __mode); }
12646 pubseekpos(pos_type __sp,
12647 ios_base::openmode __mode = ios_base::in | ios_base::out)
12648 { return this->seekpos(__sp, __mode); }
12650 pubsync() { return this->sync(); }
12654 const streamsize __ret = this->egptr() - this->gptr();
12655 return __ret ? __ret : this->showmanyc();
12660 int_type __ret = traits_type::eof();
12661 if (__builtin_expect(!traits_type::eq_int_type(this->sbumpc(),
12663 __ret = this->sgetc();
12670 if (__builtin_expect(this->gptr() < this->egptr(), true))
12672 __ret = traits_type::to_int_type(*this->gptr());
12676 __ret = this->uflow();
12683 if (__builtin_expect(this->gptr() < this->egptr(), true))
12684 __ret = traits_type::to_int_type(*this->gptr());
12686 __ret = this->underflow();
12690 sgetn(char_type* __s, streamsize __n)
12691 { return this->xsgetn(__s, __n); }
12693 sputbackc(char_type __c)
12696 const bool __testpos = this->eback() < this->gptr();
12697 if (__builtin_expect(!__testpos ||
12698 !traits_type::eq(__c, this->gptr()[-1]), false))
12699 __ret = this->pbackfail(traits_type::to_int_type(__c));
12703 __ret = traits_type::to_int_type(*this->gptr());
12711 if (__builtin_expect(this->eback() < this->gptr(), true))
12714 __ret = traits_type::to_int_type(*this->gptr());
12717 __ret = this->pbackfail();
12721 sputc(char_type __c)
12724 if (__builtin_expect(this->pptr() < this->epptr(), true))
12726 *this->pptr() = __c;
12728 __ret = traits_type::to_int_type(__c);
12731 __ret = this->overflow(traits_type::to_int_type(__c));
12735 sputn(const char_type* __s, streamsize __n)
12736 { return this->xsputn(__s, __n); }
12739 : _M_in_beg(0), _M_in_cur(0), _M_in_end(0),
12740 _M_out_beg(0), _M_out_cur(0), _M_out_end(0),
12741 _M_buf_locale(locale())
12744 eback() const { return _M_in_beg; }
12746 gptr() const { return _M_in_cur; }
12748 egptr() const { return _M_in_end; }
12750 gbump(int __n) { _M_in_cur += __n; }
12752 setg(char_type* __gbeg, char_type* __gnext, char_type* __gend)
12754 _M_in_beg = __gbeg;
12755 _M_in_cur = __gnext;
12756 _M_in_end = __gend;
12759 pbase() const { return _M_out_beg; }
12761 pptr() const { return _M_out_cur; }
12763 epptr() const { return _M_out_end; }
12765 pbump(int __n) { _M_out_cur += __n; }
12767 setp(char_type* __pbeg, char_type* __pend)
12769 _M_out_beg = _M_out_cur = __pbeg;
12770 _M_out_end = __pend;
12773 imbue(const locale&)
12775 virtual basic_streambuf<char_type,_Traits>*
12776 setbuf(char_type*, streamsize)
12779 seekoff(off_type, ios_base::seekdir,
12780 ios_base::openmode = ios_base::in | ios_base::out)
12781 { return pos_type(off_type(-1)); }
12784 ios_base::openmode = ios_base::in | ios_base::out)
12785 { return pos_type(off_type(-1)); }
12787 sync() { return 0; }
12789 showmanyc() { return 0; }
12791 xsgetn(char_type* __s, streamsize __n);
12794 { return traits_type::eof(); }
12798 int_type __ret = traits_type::eof();
12799 const bool __testeof = traits_type::eq_int_type(this->underflow(),
12803 __ret = traits_type::to_int_type(*this->gptr());
12809 pbackfail(int_type = traits_type::eof())
12810 { return traits_type::eof(); }
12812 xsputn(const char_type* __s, streamsize __n);
12814 overflow(int_type = traits_type::eof())
12815 { return traits_type::eof(); }
12820 if (this->gptr() < this->egptr())
12826 basic_streambuf(const __streambuf_type& __sb)
12827 : _M_in_beg(__sb._M_in_beg), _M_in_cur(__sb._M_in_cur),
12828 _M_in_end(__sb._M_in_end), _M_out_beg(__sb._M_out_beg),
12829 _M_out_cur(__sb._M_out_cur), _M_out_end(__sb._M_out_cur),
12830 _M_buf_locale(__sb._M_buf_locale)
12833 operator=(const __streambuf_type&) { return *this; };
12837 __copy_streambufs_eof(basic_streambuf<char>* __sbin,
12838 basic_streambuf<char>* __sbout, bool& __ineof);
12841 __copy_streambufs_eof(basic_streambuf<wchar_t>* __sbin,
12842 basic_streambuf<wchar_t>* __sbout, bool& __ineof);
12845 namespace std __attribute__ ((__visibility__ ("default"))) {
12846 template<typename _CharT, typename _Traits>
12848 basic_streambuf<_CharT, _Traits>::
12849 xsgetn(char_type* __s, streamsize __n)
12851 streamsize __ret = 0;
12852 while (__ret < __n)
12854 const streamsize __buf_len = this->egptr() - this->gptr();
12857 const streamsize __remaining = __n - __ret;
12858 const streamsize __len = std::min(__buf_len, __remaining);
12859 traits_type::copy(__s, this->gptr(), __len);
12862 this->gbump(__len);
12866 const int_type __c = this->uflow();
12867 if (!traits_type::eq_int_type(__c, traits_type::eof()))
12869 traits_type::assign(*__s++, traits_type::to_char_type(__c));
12878 template<typename _CharT, typename _Traits>
12880 basic_streambuf<_CharT, _Traits>::
12881 xsputn(const char_type* __s, streamsize __n)
12883 streamsize __ret = 0;
12884 while (__ret < __n)
12886 const streamsize __buf_len = this->epptr() - this->pptr();
12889 const streamsize __remaining = __n - __ret;
12890 const streamsize __len = std::min(__buf_len, __remaining);
12891 traits_type::copy(this->pptr(), __s, __len);
12894 this->pbump(__len);
12898 int_type __c = this->overflow(traits_type::to_int_type(*__s));
12899 if (!traits_type::eq_int_type(__c, traits_type::eof()))
12910 template<typename _CharT, typename _Traits>
12912 __copy_streambufs_eof(basic_streambuf<_CharT, _Traits>* __sbin,
12913 basic_streambuf<_CharT, _Traits>* __sbout,
12916 streamsize __ret = 0;
12918 typename _Traits::int_type __c = __sbin->sgetc();
12919 while (!_Traits::eq_int_type(__c, _Traits::eof()))
12921 __c = __sbout->sputc(_Traits::to_char_type(__c));
12922 if (_Traits::eq_int_type(__c, _Traits::eof()))
12928 __c = __sbin->snextc();
12932 template<typename _CharT, typename _Traits>
12934 __copy_streambufs(basic_streambuf<_CharT, _Traits>* __sbin,
12935 basic_streambuf<_CharT, _Traits>* __sbout)
12938 return __copy_streambufs_eof(__sbin, __sbout, __ineof);
12940 extern template class basic_streambuf<char>;
12943 __copy_streambufs(basic_streambuf<char>*,
12944 basic_streambuf<char>*);
12947 __copy_streambufs_eof(basic_streambuf<char>*,
12948 basic_streambuf<char>*, bool&);
12949 extern template class basic_streambuf<wchar_t>;
12952 __copy_streambufs(basic_streambuf<wchar_t>*,
12953 basic_streambuf<wchar_t>*);
12956 __copy_streambufs_eof(basic_streambuf<wchar_t>*,
12957 basic_streambuf<wchar_t>*, bool&);
12962 typedef unsigned long int wctype_t;
12977 _ISwupper = ((__ISwupper) < 8 ? (int) ((1UL << (__ISwupper)) << 24) : ((__ISwupper) < 16 ? (int) ((1UL << (__ISwupper)) << 8) : ((__ISwupper) < 24 ? (int) ((1UL << (__ISwupper)) >> 8) : (int) ((1UL << (__ISwupper)) >> 24)))),
12978 _ISwlower = ((__ISwlower) < 8 ? (int) ((1UL << (__ISwlower)) << 24) : ((__ISwlower) < 16 ? (int) ((1UL << (__ISwlower)) << 8) : ((__ISwlower) < 24 ? (int) ((1UL << (__ISwlower)) >> 8) : (int) ((1UL << (__ISwlower)) >> 24)))),
12979 _ISwalpha = ((__ISwalpha) < 8 ? (int) ((1UL << (__ISwalpha)) << 24) : ((__ISwalpha) < 16 ? (int) ((1UL << (__ISwalpha)) << 8) : ((__ISwalpha) < 24 ? (int) ((1UL << (__ISwalpha)) >> 8) : (int) ((1UL << (__ISwalpha)) >> 24)))),
12980 _ISwdigit = ((__ISwdigit) < 8 ? (int) ((1UL << (__ISwdigit)) << 24) : ((__ISwdigit) < 16 ? (int) ((1UL << (__ISwdigit)) << 8) : ((__ISwdigit) < 24 ? (int) ((1UL << (__ISwdigit)) >> 8) : (int) ((1UL << (__ISwdigit)) >> 24)))),
12981 _ISwxdigit = ((__ISwxdigit) < 8 ? (int) ((1UL << (__ISwxdigit)) << 24) : ((__ISwxdigit) < 16 ? (int) ((1UL << (__ISwxdigit)) << 8) : ((__ISwxdigit) < 24 ? (int) ((1UL << (__ISwxdigit)) >> 8) : (int) ((1UL << (__ISwxdigit)) >> 24)))),
12982 _ISwspace = ((__ISwspace) < 8 ? (int) ((1UL << (__ISwspace)) << 24) : ((__ISwspace) < 16 ? (int) ((1UL << (__ISwspace)) << 8) : ((__ISwspace) < 24 ? (int) ((1UL << (__ISwspace)) >> 8) : (int) ((1UL << (__ISwspace)) >> 24)))),
12983 _ISwprint = ((__ISwprint) < 8 ? (int) ((1UL << (__ISwprint)) << 24) : ((__ISwprint) < 16 ? (int) ((1UL << (__ISwprint)) << 8) : ((__ISwprint) < 24 ? (int) ((1UL << (__ISwprint)) >> 8) : (int) ((1UL << (__ISwprint)) >> 24)))),
12984 _ISwgraph = ((__ISwgraph) < 8 ? (int) ((1UL << (__ISwgraph)) << 24) : ((__ISwgraph) < 16 ? (int) ((1UL << (__ISwgraph)) << 8) : ((__ISwgraph) < 24 ? (int) ((1UL << (__ISwgraph)) >> 8) : (int) ((1UL << (__ISwgraph)) >> 24)))),
12985 _ISwblank = ((__ISwblank) < 8 ? (int) ((1UL << (__ISwblank)) << 24) : ((__ISwblank) < 16 ? (int) ((1UL << (__ISwblank)) << 8) : ((__ISwblank) < 24 ? (int) ((1UL << (__ISwblank)) >> 8) : (int) ((1UL << (__ISwblank)) >> 24)))),
12986 _ISwcntrl = ((__ISwcntrl) < 8 ? (int) ((1UL << (__ISwcntrl)) << 24) : ((__ISwcntrl) < 16 ? (int) ((1UL << (__ISwcntrl)) << 8) : ((__ISwcntrl) < 24 ? (int) ((1UL << (__ISwcntrl)) >> 8) : (int) ((1UL << (__ISwcntrl)) >> 24)))),
12987 _ISwpunct = ((__ISwpunct) < 8 ? (int) ((1UL << (__ISwpunct)) << 24) : ((__ISwpunct) < 16 ? (int) ((1UL << (__ISwpunct)) << 8) : ((__ISwpunct) < 24 ? (int) ((1UL << (__ISwpunct)) >> 8) : (int) ((1UL << (__ISwpunct)) >> 24)))),
12988 _ISwalnum = ((__ISwalnum) < 8 ? (int) ((1UL << (__ISwalnum)) << 24) : ((__ISwalnum) < 16 ? (int) ((1UL << (__ISwalnum)) << 8) : ((__ISwalnum) < 24 ? (int) ((1UL << (__ISwalnum)) >> 8) : (int) ((1UL << (__ISwalnum)) >> 24))))
12991 extern int iswalnum (wint_t __wc) throw ();
12992 extern int iswalpha (wint_t __wc) throw ();
12993 extern int iswcntrl (wint_t __wc) throw ();
12994 extern int iswdigit (wint_t __wc) throw ();
12995 extern int iswgraph (wint_t __wc) throw ();
12996 extern int iswlower (wint_t __wc) throw ();
12997 extern int iswprint (wint_t __wc) throw ();
12998 extern int iswpunct (wint_t __wc) throw ();
12999 extern int iswspace (wint_t __wc) throw ();
13000 extern int iswupper (wint_t __wc) throw ();
13001 extern int iswxdigit (wint_t __wc) throw ();
13002 extern int iswblank (wint_t __wc) throw ();
13003 extern wctype_t wctype (__const char *__property) throw ();
13004 extern int iswctype (wint_t __wc, wctype_t __desc) throw ();
13005 typedef __const __int32_t *wctrans_t;
13006 extern wint_t towlower (wint_t __wc) throw ();
13007 extern wint_t towupper (wint_t __wc) throw ();
13010 extern wctrans_t wctrans (__const char *__property) throw ();
13011 extern wint_t towctrans (wint_t __wc, wctrans_t __desc) throw ();
13012 extern int iswalnum_l (wint_t __wc, __locale_t __locale) throw ();
13013 extern int iswalpha_l (wint_t __wc, __locale_t __locale) throw ();
13014 extern int iswcntrl_l (wint_t __wc, __locale_t __locale) throw ();
13015 extern int iswdigit_l (wint_t __wc, __locale_t __locale) throw ();
13016 extern int iswgraph_l (wint_t __wc, __locale_t __locale) throw ();
13017 extern int iswlower_l (wint_t __wc, __locale_t __locale) throw ();
13018 extern int iswprint_l (wint_t __wc, __locale_t __locale) throw ();
13019 extern int iswpunct_l (wint_t __wc, __locale_t __locale) throw ();
13020 extern int iswspace_l (wint_t __wc, __locale_t __locale) throw ();
13021 extern int iswupper_l (wint_t __wc, __locale_t __locale) throw ();
13022 extern int iswxdigit_l (wint_t __wc, __locale_t __locale) throw ();
13023 extern int iswblank_l (wint_t __wc, __locale_t __locale) throw ();
13024 extern wctype_t wctype_l (__const char *__property, __locale_t __locale)
13026 extern int iswctype_l (wint_t __wc, wctype_t __desc, __locale_t __locale)
13028 extern wint_t towlower_l (wint_t __wc, __locale_t __locale) throw ();
13029 extern wint_t towupper_l (wint_t __wc, __locale_t __locale) throw ();
13030 extern wctrans_t wctrans_l (__const char *__property, __locale_t __locale)
13032 extern wint_t towctrans_l (wint_t __wc, wctrans_t __desc,
13033 __locale_t __locale) throw ();
13035 namespace std __attribute__ ((__visibility__ ("default"))) {
13059 namespace std __attribute__ ((__visibility__ ("default"))) {
13062 typedef const int* __to_type;
13063 typedef unsigned short mask;
13064 static const mask upper = _ISupper;
13065 static const mask lower = _ISlower;
13066 static const mask alpha = _ISalpha;
13067 static const mask digit = _ISdigit;
13068 static const mask xdigit = _ISxdigit;
13069 static const mask space = _ISspace;
13070 static const mask print = _ISprint;
13071 static const mask graph = _ISalpha | _ISdigit | _ISpunct;
13072 static const mask cntrl = _IScntrl;
13073 static const mask punct = _ISpunct;
13074 static const mask alnum = _ISalpha | _ISdigit;
13078 namespace std __attribute__ ((__visibility__ ("default"))) {
13079 template<typename _CharT, typename _Traits>
13080 class istreambuf_iterator
13081 : public iterator<input_iterator_tag, _CharT, typename _Traits::off_type,
13085 typedef _CharT char_type;
13086 typedef _Traits traits_type;
13087 typedef typename _Traits::int_type int_type;
13088 typedef basic_streambuf<_CharT, _Traits> streambuf_type;
13089 typedef basic_istream<_CharT, _Traits> istream_type;
13090 template<typename _CharT2>
13091 friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value,
13092 ostreambuf_iterator<_CharT2> >::__type
13093 copy(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>,
13094 ostreambuf_iterator<_CharT2>);
13095 template<bool _IsMove, typename _CharT2>
13096 friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value,
13098 __copy_move_a2(istreambuf_iterator<_CharT2>,
13099 istreambuf_iterator<_CharT2>, _CharT2*);
13100 template<typename _CharT2>
13101 friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value,
13102 istreambuf_iterator<_CharT2> >::__type
13103 find(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>,
13106 mutable streambuf_type* _M_sbuf;
13107 mutable int_type _M_c;
13109 istreambuf_iterator() throw()
13110 : _M_sbuf(0), _M_c(traits_type::eof()) { }
13111 istreambuf_iterator(istream_type& __s) throw()
13112 : _M_sbuf(__s.rdbuf()), _M_c(traits_type::eof()) { }
13113 istreambuf_iterator(streambuf_type* __s) throw()
13114 : _M_sbuf(__s), _M_c(traits_type::eof()) { }
13118 return traits_type::to_char_type(_M_get());
13120 istreambuf_iterator&
13127 _M_c = traits_type::eof();
13131 istreambuf_iterator
13135 istreambuf_iterator __old = *this;
13138 __old._M_c = _M_sbuf->sbumpc();
13139 _M_c = traits_type::eof();
13144 equal(const istreambuf_iterator& __b) const
13145 { return _M_at_eof() == __b._M_at_eof(); }
13150 const int_type __eof = traits_type::eof();
13151 int_type __ret = __eof;
13154 if (!traits_type::eq_int_type(_M_c, __eof))
13156 else if (!traits_type::eq_int_type((__ret = _M_sbuf->sgetc()),
13167 const int_type __eof = traits_type::eof();
13168 return traits_type::eq_int_type(_M_get(), __eof);
13171 template<typename _CharT, typename _Traits>
13173 operator==(const istreambuf_iterator<_CharT, _Traits>& __a,
13174 const istreambuf_iterator<_CharT, _Traits>& __b)
13175 { return __a.equal(__b); }
13176 template<typename _CharT, typename _Traits>
13178 operator!=(const istreambuf_iterator<_CharT, _Traits>& __a,
13179 const istreambuf_iterator<_CharT, _Traits>& __b)
13180 { return !__a.equal(__b); }
13181 template<typename _CharT, typename _Traits>
13182 class ostreambuf_iterator
13183 : public iterator<output_iterator_tag, void, void, void, void>
13186 typedef _CharT char_type;
13187 typedef _Traits traits_type;
13188 typedef basic_streambuf<_CharT, _Traits> streambuf_type;
13189 typedef basic_ostream<_CharT, _Traits> ostream_type;
13190 template<typename _CharT2>
13191 friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value,
13192 ostreambuf_iterator<_CharT2> >::__type
13193 copy(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>,
13194 ostreambuf_iterator<_CharT2>);
13196 streambuf_type* _M_sbuf;
13199 ostreambuf_iterator(ostream_type& __s) throw ()
13200 : _M_sbuf(__s.rdbuf()), _M_failed(!_M_sbuf) { }
13201 ostreambuf_iterator(streambuf_type* __s) throw ()
13202 : _M_sbuf(__s), _M_failed(!_M_sbuf) { }
13203 ostreambuf_iterator&
13204 operator=(_CharT __c)
13207 _Traits::eq_int_type(_M_sbuf->sputc(__c), _Traits::eof()))
13211 ostreambuf_iterator&
13214 ostreambuf_iterator&
13217 ostreambuf_iterator&
13221 failed() const throw()
13222 { return _M_failed; }
13223 ostreambuf_iterator&
13224 _M_put(const _CharT* __ws, streamsize __len)
13226 if (__builtin_expect(!_M_failed, true)
13227 && __builtin_expect(this->_M_sbuf->sputn(__ws, __len) != __len,
13233 template<typename _CharT>
13234 typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value,
13235 ostreambuf_iterator<_CharT> >::__type
13236 copy(istreambuf_iterator<_CharT> __first,
13237 istreambuf_iterator<_CharT> __last,
13238 ostreambuf_iterator<_CharT> __result)
13240 if (__first._M_sbuf && !__last._M_sbuf && !__result._M_failed)
13243 __copy_streambufs_eof(__first._M_sbuf, __result._M_sbuf, __ineof);
13245 __result._M_failed = true;
13249 template<bool _IsMove, typename _CharT>
13250 typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value,
13251 ostreambuf_iterator<_CharT> >::__type
13252 __copy_move_a2(_CharT* __first, _CharT* __last,
13253 ostreambuf_iterator<_CharT> __result)
13255 const streamsize __num = __last - __first;
13257 __result._M_put(__first, __num);
13260 template<bool _IsMove, typename _CharT>
13261 typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value,
13262 ostreambuf_iterator<_CharT> >::__type
13263 __copy_move_a2(const _CharT* __first, const _CharT* __last,
13264 ostreambuf_iterator<_CharT> __result)
13266 const streamsize __num = __last - __first;
13268 __result._M_put(__first, __num);
13271 template<bool _IsMove, typename _CharT>
13272 typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value,
13274 __copy_move_a2(istreambuf_iterator<_CharT> __first,
13275 istreambuf_iterator<_CharT> __last, _CharT* __result)
13277 typedef istreambuf_iterator<_CharT> __is_iterator_type;
13278 typedef typename __is_iterator_type::traits_type traits_type;
13279 typedef typename __is_iterator_type::streambuf_type streambuf_type;
13280 typedef typename traits_type::int_type int_type;
13281 if (__first._M_sbuf && !__last._M_sbuf)
13283 streambuf_type* __sb = __first._M_sbuf;
13284 int_type __c = __sb->sgetc();
13285 while (!traits_type::eq_int_type(__c, traits_type::eof()))
13287 const streamsize __n = __sb->egptr() - __sb->gptr();
13290 traits_type::copy(__result, __sb->gptr(), __n);
13293 __c = __sb->underflow();
13297 *__result++ = traits_type::to_char_type(__c);
13298 __c = __sb->snextc();
13304 template<typename _CharT>
13305 typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value,
13306 istreambuf_iterator<_CharT> >::__type
13307 find(istreambuf_iterator<_CharT> __first,
13308 istreambuf_iterator<_CharT> __last, const _CharT& __val)
13310 typedef istreambuf_iterator<_CharT> __is_iterator_type;
13311 typedef typename __is_iterator_type::traits_type traits_type;
13312 typedef typename __is_iterator_type::streambuf_type streambuf_type;
13313 typedef typename traits_type::int_type int_type;
13314 if (__first._M_sbuf && !__last._M_sbuf)
13316 const int_type __ival = traits_type::to_int_type(__val);
13317 streambuf_type* __sb = __first._M_sbuf;
13318 int_type __c = __sb->sgetc();
13319 while (!traits_type::eq_int_type(__c, traits_type::eof())
13320 && !traits_type::eq_int_type(__c, __ival))
13322 streamsize __n = __sb->egptr() - __sb->gptr();
13325 const _CharT* __p = traits_type::find(__sb->gptr(),
13328 __n = __p - __sb->gptr();
13330 __c = __sb->sgetc();
13333 __c = __sb->snextc();
13335 if (!traits_type::eq_int_type(__c, traits_type::eof()))
13336 __first._M_c = __c;
13338 __first._M_sbuf = 0;
13343 namespace std __attribute__ ((__visibility__ ("default"))) {
13344 template<typename _Tv>
13346 __convert_to_v(const char* __in, _Tv& __out, ios_base::iostate& __err,
13347 const __c_locale& __cloc);
13350 __convert_to_v(const char*, float&, ios_base::iostate&,
13351 const __c_locale&);
13354 __convert_to_v(const char*, double&, ios_base::iostate&,
13355 const __c_locale&);
13358 __convert_to_v(const char*, long double&, ios_base::iostate&,
13359 const __c_locale&);
13360 template<typename _CharT, typename _Traits>
13364 _S_pad(ios_base& __io, _CharT __fill, _CharT* __news,
13365 const _CharT* __olds, streamsize __newlen, streamsize __oldlen);
13367 template<typename _CharT>
13369 __add_grouping(_CharT* __s, _CharT __sep,
13370 const char* __gbeg, size_t __gsize,
13371 const _CharT* __first, const _CharT* __last);
13372 template<typename _CharT>
13374 ostreambuf_iterator<_CharT>
13375 __write(ostreambuf_iterator<_CharT> __s, const _CharT* __ws, int __len)
13377 __s._M_put(__ws, __len);
13380 template<typename _CharT, typename _OutIter>
13383 __write(_OutIter __s, const _CharT* __ws, int __len)
13385 for (int __j = 0; __j < __len; __j++, ++__s)
13389 template<typename _CharT>
13390 class __ctype_abstract_base : public locale::facet, public ctype_base
13393 typedef _CharT char_type;
13395 is(mask __m, char_type __c) const
13396 { return this->do_is(__m, __c); }
13398 is(const char_type *__lo, const char_type *__hi, mask *__vec) const
13399 { return this->do_is(__lo, __hi, __vec); }
13401 scan_is(mask __m, const char_type* __lo, const char_type* __hi) const
13402 { return this->do_scan_is(__m, __lo, __hi); }
13404 scan_not(mask __m, const char_type* __lo, const char_type* __hi) const
13405 { return this->do_scan_not(__m, __lo, __hi); }
13407 toupper(char_type __c) const
13408 { return this->do_toupper(__c); }
13410 toupper(char_type *__lo, const char_type* __hi) const
13411 { return this->do_toupper(__lo, __hi); }
13413 tolower(char_type __c) const
13414 { return this->do_tolower(__c); }
13416 tolower(char_type* __lo, const char_type* __hi) const
13417 { return this->do_tolower(__lo, __hi); }
13419 widen(char __c) const
13420 { return this->do_widen(__c); }
13422 widen(const char* __lo, const char* __hi, char_type* __to) const
13423 { return this->do_widen(__lo, __hi, __to); }
13425 narrow(char_type __c, char __dfault) const
13426 { return this->do_narrow(__c, __dfault); }
13428 narrow(const char_type* __lo, const char_type* __hi,
13429 char __dfault, char *__to) const
13430 { return this->do_narrow(__lo, __hi, __dfault, __to); }
13433 __ctype_abstract_base(size_t __refs = 0): facet(__refs) { }
13435 ~__ctype_abstract_base() { }
13437 do_is(mask __m, char_type __c) const = 0;
13438 virtual const char_type*
13439 do_is(const char_type* __lo, const char_type* __hi,
13440 mask* __vec) const = 0;
13441 virtual const char_type*
13442 do_scan_is(mask __m, const char_type* __lo,
13443 const char_type* __hi) const = 0;
13444 virtual const char_type*
13445 do_scan_not(mask __m, const char_type* __lo,
13446 const char_type* __hi) const = 0;
13448 do_toupper(char_type) const = 0;
13449 virtual const char_type*
13450 do_toupper(char_type* __lo, const char_type* __hi) const = 0;
13452 do_tolower(char_type) const = 0;
13453 virtual const char_type*
13454 do_tolower(char_type* __lo, const char_type* __hi) const = 0;
13456 do_widen(char) const = 0;
13457 virtual const char*
13458 do_widen(const char* __lo, const char* __hi,
13459 char_type* __dest) const = 0;
13461 do_narrow(char_type, char __dfault) const = 0;
13462 virtual const char_type*
13463 do_narrow(const char_type* __lo, const char_type* __hi,
13464 char __dfault, char* __dest) const = 0;
13466 template<typename _CharT>
13467 class ctype : public __ctype_abstract_base<_CharT>
13470 typedef _CharT char_type;
13471 typedef typename __ctype_abstract_base<_CharT>::mask mask;
13472 static locale::id id;
13474 ctype(size_t __refs = 0) : __ctype_abstract_base<_CharT>(__refs) { }
13479 do_is(mask __m, char_type __c) const;
13480 virtual const char_type*
13481 do_is(const char_type* __lo, const char_type* __hi, mask* __vec) const;
13482 virtual const char_type*
13483 do_scan_is(mask __m, const char_type* __lo, const char_type* __hi) const;
13484 virtual const char_type*
13485 do_scan_not(mask __m, const char_type* __lo,
13486 const char_type* __hi) const;
13488 do_toupper(char_type __c) const;
13489 virtual const char_type*
13490 do_toupper(char_type* __lo, const char_type* __hi) const;
13492 do_tolower(char_type __c) const;
13493 virtual const char_type*
13494 do_tolower(char_type* __lo, const char_type* __hi) const;
13496 do_widen(char __c) const;
13497 virtual const char*
13498 do_widen(const char* __lo, const char* __hi, char_type* __dest) const;
13500 do_narrow(char_type, char __dfault) const;
13501 virtual const char_type*
13502 do_narrow(const char_type* __lo, const char_type* __hi,
13503 char __dfault, char* __dest) const;
13505 template<typename _CharT>
13506 locale::id ctype<_CharT>::id;
13508 class ctype<char> : public locale::facet, public ctype_base
13511 typedef char char_type;
13513 __c_locale _M_c_locale_ctype;
13515 __to_type _M_toupper;
13516 __to_type _M_tolower;
13517 const mask* _M_table;
13518 mutable char _M_widen_ok;
13519 mutable char _M_widen[1 + static_cast<unsigned char>(-1)];
13520 mutable char _M_narrow[1 + static_cast<unsigned char>(-1)];
13521 mutable char _M_narrow_ok;
13523 static locale::id id;
13524 static const size_t table_size = 1 + static_cast<unsigned char>(-1);
13526 ctype(const mask* __table = 0, bool __del = false, size_t __refs = 0);
13528 ctype(__c_locale __cloc, const mask* __table = 0, bool __del = false,
13529 size_t __refs = 0);
13531 is(mask __m, char __c) const;
13533 is(const char* __lo, const char* __hi, mask* __vec) const;
13535 scan_is(mask __m, const char* __lo, const char* __hi) const;
13537 scan_not(mask __m, const char* __lo, const char* __hi) const;
13539 toupper(char_type __c) const
13540 { return this->do_toupper(__c); }
13542 toupper(char_type *__lo, const char_type* __hi) const
13543 { return this->do_toupper(__lo, __hi); }
13545 tolower(char_type __c) const
13546 { return this->do_tolower(__c); }
13548 tolower(char_type* __lo, const char_type* __hi) const
13549 { return this->do_tolower(__lo, __hi); }
13551 widen(char __c) const
13554 return _M_widen[static_cast<unsigned char>(__c)];
13555 this->_M_widen_init();
13556 return this->do_widen(__c);
13559 widen(const char* __lo, const char* __hi, char_type* __to) const
13561 if (_M_widen_ok == 1)
13563 __builtin_memcpy(__to, __lo, __hi - __lo);
13568 return this->do_widen(__lo, __hi, __to);
13571 narrow(char_type __c, char __dfault) const
13573 if (_M_narrow[static_cast<unsigned char>(__c)])
13574 return _M_narrow[static_cast<unsigned char>(__c)];
13575 const char __t = do_narrow(__c, __dfault);
13576 if (__t != __dfault)
13577 _M_narrow[static_cast<unsigned char>(__c)] = __t;
13581 narrow(const char_type* __lo, const char_type* __hi,
13582 char __dfault, char *__to) const
13584 if (__builtin_expect(_M_narrow_ok == 1, true))
13586 __builtin_memcpy(__to, __lo, __hi - __lo);
13591 return this->do_narrow(__lo, __hi, __dfault, __to);
13594 table() const throw()
13595 { return _M_table; }
13597 classic_table() throw();
13602 do_toupper(char_type) const;
13603 virtual const char_type*
13604 do_toupper(char_type* __lo, const char_type* __hi) const;
13606 do_tolower(char_type) const;
13607 virtual const char_type*
13608 do_tolower(char_type* __lo, const char_type* __hi) const;
13610 do_widen(char __c) const
13612 virtual const char*
13613 do_widen(const char* __lo, const char* __hi, char_type* __dest) const
13615 __builtin_memcpy(__dest, __lo, __hi - __lo);
13619 do_narrow(char_type __c, char) const
13621 virtual const char_type*
13622 do_narrow(const char_type* __lo, const char_type* __hi,
13623 char, char* __dest) const
13625 __builtin_memcpy(__dest, __lo, __hi - __lo);
13629 void _M_narrow_init() const;
13630 void _M_widen_init() const;
13633 class ctype<wchar_t> : public __ctype_abstract_base<wchar_t>
13636 typedef wchar_t char_type;
13637 typedef wctype_t __wmask_type;
13639 __c_locale _M_c_locale_ctype;
13641 char _M_narrow[128];
13642 wint_t _M_widen[1 + static_cast<unsigned char>(-1)];
13644 __wmask_type _M_wmask[16];
13646 static locale::id id;
13648 ctype(size_t __refs = 0);
13650 ctype(__c_locale __cloc, size_t __refs = 0);
13653 _M_convert_to_wmask(const mask __m) const;
13657 do_is(mask __m, char_type __c) const;
13658 virtual const char_type*
13659 do_is(const char_type* __lo, const char_type* __hi, mask* __vec) const;
13660 virtual const char_type*
13661 do_scan_is(mask __m, const char_type* __lo, const char_type* __hi) const;
13662 virtual const char_type*
13663 do_scan_not(mask __m, const char_type* __lo,
13664 const char_type* __hi) const;
13666 do_toupper(char_type) const;
13667 virtual const char_type*
13668 do_toupper(char_type* __lo, const char_type* __hi) const;
13670 do_tolower(char_type) const;
13671 virtual const char_type*
13672 do_tolower(char_type* __lo, const char_type* __hi) const;
13674 do_widen(char) const;
13675 virtual const char*
13676 do_widen(const char* __lo, const char* __hi, char_type* __dest) const;
13678 do_narrow(char_type, char __dfault) const;
13679 virtual const char_type*
13680 do_narrow(const char_type* __lo, const char_type* __hi,
13681 char __dfault, char* __dest) const;
13683 _M_initialize_ctype();
13685 template<typename _CharT>
13686 class ctype_byname : public ctype<_CharT>
13689 typedef typename ctype<_CharT>::mask mask;
13691 ctype_byname(const char* __s, size_t __refs = 0);
13694 ~ctype_byname() { };
13697 class ctype_byname<char> : public ctype<char>
13701 ctype_byname(const char* __s, size_t __refs = 0);
13707 class ctype_byname<wchar_t> : public ctype<wchar_t>
13711 ctype_byname(const char* __s, size_t __refs = 0);
13717 namespace std __attribute__ ((__visibility__ ("default"))) {
13720 is(mask __m, char __c) const
13721 { return _M_table[static_cast<unsigned char>(__c)] & __m; }
13724 is(const char* __low, const char* __high, mask* __vec) const
13726 while (__low < __high)
13727 *__vec++ = _M_table[static_cast<unsigned char>(*__low++)];
13732 scan_is(mask __m, const char* __low, const char* __high) const
13734 while (__low < __high
13735 && !(_M_table[static_cast<unsigned char>(*__low)] & __m))
13741 scan_not(mask __m, const char* __low, const char* __high) const
13743 while (__low < __high
13744 && (_M_table[static_cast<unsigned char>(*__low)] & __m) != 0)
13749 namespace std __attribute__ ((__visibility__ ("default"))) {
13760 _S_odigits_end = _S_odigits + 16,
13761 _S_oudigits = _S_odigits_end,
13762 _S_oudigits_end = _S_oudigits + 16,
13763 _S_oe = _S_odigits + 14,
13764 _S_oE = _S_oudigits + 14,
13765 _S_oend = _S_oudigits_end
13767 static const char* _S_atoms_out;
13768 static const char* _S_atoms_in;
13776 _S_ie = _S_izero + 14,
13777 _S_iE = _S_izero + 20,
13781 _S_format_float(const ios_base& __io, char* __fptr, char __mod);
13783 template<typename _CharT>
13784 struct __numpunct_cache : public locale::facet
13786 const char* _M_grouping;
13787 size_t _M_grouping_size;
13788 bool _M_use_grouping;
13789 const _CharT* _M_truename;
13790 size_t _M_truename_size;
13791 const _CharT* _M_falsename;
13792 size_t _M_falsename_size;
13793 _CharT _M_decimal_point;
13794 _CharT _M_thousands_sep;
13795 _CharT _M_atoms_out[__num_base::_S_oend];
13796 _CharT _M_atoms_in[__num_base::_S_iend];
13798 __numpunct_cache(size_t __refs = 0) : facet(__refs),
13799 _M_grouping(__null), _M_grouping_size(0), _M_use_grouping(false),
13800 _M_truename(__null), _M_truename_size(0), _M_falsename(__null),
13801 _M_falsename_size(0), _M_decimal_point(_CharT()),
13802 _M_thousands_sep(_CharT()), _M_allocated(false)
13804 ~__numpunct_cache();
13806 _M_cache(const locale& __loc);
13809 operator=(const __numpunct_cache&);
13811 __numpunct_cache(const __numpunct_cache&);
13813 template<typename _CharT>
13814 __numpunct_cache<_CharT>::~__numpunct_cache()
13818 delete [] _M_grouping;
13819 delete [] _M_truename;
13820 delete [] _M_falsename;
13823 template<typename _CharT>
13824 class numpunct : public locale::facet
13827 typedef _CharT char_type;
13828 typedef basic_string<_CharT> string_type;
13829 typedef __numpunct_cache<_CharT> __cache_type;
13831 __cache_type* _M_data;
13833 static locale::id id;
13835 numpunct(size_t __refs = 0) : facet(__refs), _M_data(__null)
13836 { _M_initialize_numpunct(); }
13838 numpunct(__cache_type* __cache, size_t __refs = 0)
13839 : facet(__refs), _M_data(__cache)
13840 { _M_initialize_numpunct(); }
13842 numpunct(__c_locale __cloc, size_t __refs = 0)
13843 : facet(__refs), _M_data(__null)
13844 { _M_initialize_numpunct(__cloc); }
13846 decimal_point() const
13847 { return this->do_decimal_point(); }
13849 thousands_sep() const
13850 { return this->do_thousands_sep(); }
13853 { return this->do_grouping(); }
13856 { return this->do_truename(); }
13859 { return this->do_falsename(); }
13864 do_decimal_point() const
13865 { return _M_data->_M_decimal_point; }
13867 do_thousands_sep() const
13868 { return _M_data->_M_thousands_sep; }
13870 do_grouping() const
13871 { return _M_data->_M_grouping; }
13872 virtual string_type
13873 do_truename() const
13874 { return _M_data->_M_truename; }
13875 virtual string_type
13876 do_falsename() const
13877 { return _M_data->_M_falsename; }
13879 _M_initialize_numpunct(__c_locale __cloc = __null);
13881 template<typename _CharT>
13882 locale::id numpunct<_CharT>::id;
13884 numpunct<char>::~numpunct();
13887 numpunct<char>::_M_initialize_numpunct(__c_locale __cloc);
13889 numpunct<wchar_t>::~numpunct();
13892 numpunct<wchar_t>::_M_initialize_numpunct(__c_locale __cloc);
13893 template<typename _CharT>
13894 class numpunct_byname : public numpunct<_CharT>
13897 typedef _CharT char_type;
13898 typedef basic_string<_CharT> string_type;
13900 numpunct_byname(const char* __s, size_t __refs = 0)
13901 : numpunct<_CharT>(__refs)
13903 if (__builtin_strcmp(__s, "C") != 0
13904 && __builtin_strcmp(__s, "POSIX") != 0)
13907 this->_S_create_c_locale(__tmp, __s);
13908 this->_M_initialize_numpunct(__tmp);
13909 this->_S_destroy_c_locale(__tmp);
13914 ~numpunct_byname() { }
13916 template<typename _CharT, typename _InIter>
13917 class num_get : public locale::facet
13920 typedef _CharT char_type;
13921 typedef _InIter iter_type;
13922 static locale::id id;
13924 num_get(size_t __refs = 0) : facet(__refs) { }
13926 get(iter_type __in, iter_type __end, ios_base& __io,
13927 ios_base::iostate& __err, bool& __v) const
13928 { return this->do_get(__in, __end, __io, __err, __v); }
13930 get(iter_type __in, iter_type __end, ios_base& __io,
13931 ios_base::iostate& __err, long& __v) const
13932 { return this->do_get(__in, __end, __io, __err, __v); }
13934 get(iter_type __in, iter_type __end, ios_base& __io,
13935 ios_base::iostate& __err, unsigned short& __v) const
13936 { return this->do_get(__in, __end, __io, __err, __v); }
13938 get(iter_type __in, iter_type __end, ios_base& __io,
13939 ios_base::iostate& __err, unsigned int& __v) const
13940 { return this->do_get(__in, __end, __io, __err, __v); }
13942 get(iter_type __in, iter_type __end, ios_base& __io,
13943 ios_base::iostate& __err, unsigned long& __v) const
13944 { return this->do_get(__in, __end, __io, __err, __v); }
13946 get(iter_type __in, iter_type __end, ios_base& __io,
13947 ios_base::iostate& __err, long long& __v) const
13948 { return this->do_get(__in, __end, __io, __err, __v); }
13950 get(iter_type __in, iter_type __end, ios_base& __io,
13951 ios_base::iostate& __err, unsigned long long& __v) const
13952 { return this->do_get(__in, __end, __io, __err, __v); }
13954 get(iter_type __in, iter_type __end, ios_base& __io,
13955 ios_base::iostate& __err, float& __v) const
13956 { return this->do_get(__in, __end, __io, __err, __v); }
13958 get(iter_type __in, iter_type __end, ios_base& __io,
13959 ios_base::iostate& __err, double& __v) const
13960 { return this->do_get(__in, __end, __io, __err, __v); }
13962 get(iter_type __in, iter_type __end, ios_base& __io,
13963 ios_base::iostate& __err, long double& __v) const
13964 { return this->do_get(__in, __end, __io, __err, __v); }
13966 get(iter_type __in, iter_type __end, ios_base& __io,
13967 ios_base::iostate& __err, void*& __v) const
13968 { return this->do_get(__in, __end, __io, __err, __v); }
13970 virtual ~num_get() { }
13972 _M_extract_float(iter_type, iter_type, ios_base&, ios_base::iostate&,
13974 template<typename _ValueT>
13976 _M_extract_int(iter_type, iter_type, ios_base&, ios_base::iostate&,
13978 template<typename _CharT2>
13979 typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, int>::__type
13980 _M_find(const _CharT2*, size_t __len, _CharT2 __c) const
13985 if (__c >= _CharT2('0') && __c < _CharT2(_CharT2('0') + __len))
13986 __ret = __c - _CharT2('0');
13990 if (__c >= _CharT2('0') && __c <= _CharT2('9'))
13991 __ret = __c - _CharT2('0');
13992 else if (__c >= _CharT2('a') && __c <= _CharT2('f'))
13993 __ret = 10 + (__c - _CharT2('a'));
13994 else if (__c >= _CharT2('A') && __c <= _CharT2('F'))
13995 __ret = 10 + (__c - _CharT2('A'));
13999 template<typename _CharT2>
14000 typename __gnu_cxx::__enable_if<!__is_char<_CharT2>::__value,
14002 _M_find(const _CharT2* __zero, size_t __len, _CharT2 __c) const
14005 const char_type* __q = char_traits<_CharT2>::find(__zero, __len, __c);
14008 __ret = __q - __zero;
14015 do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, bool&) const;
14017 do_get(iter_type __beg, iter_type __end, ios_base& __io,
14018 ios_base::iostate& __err, long& __v) const
14019 { return _M_extract_int(__beg, __end, __io, __err, __v); }
14021 do_get(iter_type __beg, iter_type __end, ios_base& __io,
14022 ios_base::iostate& __err, unsigned short& __v) const
14023 { return _M_extract_int(__beg, __end, __io, __err, __v); }
14025 do_get(iter_type __beg, iter_type __end, ios_base& __io,
14026 ios_base::iostate& __err, unsigned int& __v) const
14027 { return _M_extract_int(__beg, __end, __io, __err, __v); }
14029 do_get(iter_type __beg, iter_type __end, ios_base& __io,
14030 ios_base::iostate& __err, unsigned long& __v) const
14031 { return _M_extract_int(__beg, __end, __io, __err, __v); }
14033 do_get(iter_type __beg, iter_type __end, ios_base& __io,
14034 ios_base::iostate& __err, long long& __v) const
14035 { return _M_extract_int(__beg, __end, __io, __err, __v); }
14037 do_get(iter_type __beg, iter_type __end, ios_base& __io,
14038 ios_base::iostate& __err, unsigned long long& __v) const
14039 { return _M_extract_int(__beg, __end, __io, __err, __v); }
14041 do_get(iter_type, iter_type, ios_base&, ios_base::iostate& __err,
14044 do_get(iter_type, iter_type, ios_base&, ios_base::iostate& __err,
14047 do_get(iter_type, iter_type, ios_base&, ios_base::iostate& __err,
14048 long double&) const;
14050 do_get(iter_type, iter_type, ios_base&, ios_base::iostate& __err,
14053 template<typename _CharT, typename _InIter>
14054 locale::id num_get<_CharT, _InIter>::id;
14055 template<typename _CharT, typename _OutIter>
14056 class num_put : public locale::facet
14059 typedef _CharT char_type;
14060 typedef _OutIter iter_type;
14061 static locale::id id;
14063 num_put(size_t __refs = 0) : facet(__refs) { }
14065 put(iter_type __s, ios_base& __f, char_type __fill, bool __v) const
14066 { return this->do_put(__s, __f, __fill, __v); }
14068 put(iter_type __s, ios_base& __f, char_type __fill, long __v) const
14069 { return this->do_put(__s, __f, __fill, __v); }
14071 put(iter_type __s, ios_base& __f, char_type __fill,
14072 unsigned long __v) const
14073 { return this->do_put(__s, __f, __fill, __v); }
14075 put(iter_type __s, ios_base& __f, char_type __fill, long long __v) const
14076 { return this->do_put(__s, __f, __fill, __v); }
14078 put(iter_type __s, ios_base& __f, char_type __fill,
14079 unsigned long long __v) const
14080 { return this->do_put(__s, __f, __fill, __v); }
14082 put(iter_type __s, ios_base& __f, char_type __fill, double __v) const
14083 { return this->do_put(__s, __f, __fill, __v); }
14085 put(iter_type __s, ios_base& __f, char_type __fill,
14086 long double __v) const
14087 { return this->do_put(__s, __f, __fill, __v); }
14089 put(iter_type __s, ios_base& __f, char_type __fill,
14090 const void* __v) const
14091 { return this->do_put(__s, __f, __fill, __v); }
14093 template<typename _ValueT>
14095 _M_insert_float(iter_type, ios_base& __io, char_type __fill,
14096 char __mod, _ValueT __v) const;
14098 _M_group_float(const char* __grouping, size_t __grouping_size,
14099 char_type __sep, const char_type* __p, char_type* __new,
14100 char_type* __cs, int& __len) const;
14101 template<typename _ValueT>
14103 _M_insert_int(iter_type, ios_base& __io, char_type __fill,
14104 _ValueT __v) const;
14106 _M_group_int(const char* __grouping, size_t __grouping_size,
14107 char_type __sep, ios_base& __io, char_type* __new,
14108 char_type* __cs, int& __len) const;
14110 _M_pad(char_type __fill, streamsize __w, ios_base& __io,
14111 char_type* __new, const char_type* __cs, int& __len) const;
14115 do_put(iter_type, ios_base&, char_type __fill, bool __v) const;
14117 do_put(iter_type __s, ios_base& __io, char_type __fill, long __v) const
14118 { return _M_insert_int(__s, __io, __fill, __v); }
14120 do_put(iter_type __s, ios_base& __io, char_type __fill,
14121 unsigned long __v) const
14122 { return _M_insert_int(__s, __io, __fill, __v); }
14124 do_put(iter_type __s, ios_base& __io, char_type __fill,
14125 long long __v) const
14126 { return _M_insert_int(__s, __io, __fill, __v); }
14128 do_put(iter_type __s, ios_base& __io, char_type __fill,
14129 unsigned long long __v) const
14130 { return _M_insert_int(__s, __io, __fill, __v); }
14132 do_put(iter_type, ios_base&, char_type __fill, double __v) const;
14134 do_put(iter_type, ios_base&, char_type __fill, long double __v) const;
14136 do_put(iter_type, ios_base&, char_type __fill, const void* __v) const;
14138 template <typename _CharT, typename _OutIter>
14139 locale::id num_put<_CharT, _OutIter>::id;
14140 template<typename _CharT>
14142 isspace(_CharT __c, const locale& __loc)
14143 { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::space, __c); }
14144 template<typename _CharT>
14146 isprint(_CharT __c, const locale& __loc)
14147 { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::print, __c); }
14148 template<typename _CharT>
14150 iscntrl(_CharT __c, const locale& __loc)
14151 { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::cntrl, __c); }
14152 template<typename _CharT>
14154 isupper(_CharT __c, const locale& __loc)
14155 { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::upper, __c); }
14156 template<typename _CharT>
14158 islower(_CharT __c, const locale& __loc)
14159 { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::lower, __c); }
14160 template<typename _CharT>
14162 isalpha(_CharT __c, const locale& __loc)
14163 { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::alpha, __c); }
14164 template<typename _CharT>
14166 isdigit(_CharT __c, const locale& __loc)
14167 { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::digit, __c); }
14168 template<typename _CharT>
14170 ispunct(_CharT __c, const locale& __loc)
14171 { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::punct, __c); }
14172 template<typename _CharT>
14174 isxdigit(_CharT __c, const locale& __loc)
14175 { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::xdigit, __c); }
14176 template<typename _CharT>
14178 isalnum(_CharT __c, const locale& __loc)
14179 { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::alnum, __c); }
14180 template<typename _CharT>
14182 isgraph(_CharT __c, const locale& __loc)
14183 { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::graph, __c); }
14184 template<typename _CharT>
14186 toupper(_CharT __c, const locale& __loc)
14187 { return use_facet<ctype<_CharT> >(__loc).toupper(__c); }
14188 template<typename _CharT>
14190 tolower(_CharT __c, const locale& __loc)
14191 { return use_facet<ctype<_CharT> >(__loc).tolower(__c); }
14194 namespace std __attribute__ ((__visibility__ ("default"))) {
14195 template<typename _Facet>
14199 operator() (const locale& __loc) const;
14201 template<typename _CharT>
14202 struct __use_cache<__numpunct_cache<_CharT> >
14204 const __numpunct_cache<_CharT>*
14205 operator() (const locale& __loc) const
14207 const size_t __i = numpunct<_CharT>::id._M_id();
14208 const locale::facet** __caches = __loc._M_impl->_M_caches;
14209 if (!__caches[__i])
14211 __numpunct_cache<_CharT>* __tmp = __null;
14214 __tmp = new __numpunct_cache<_CharT>;
14215 __tmp->_M_cache(__loc);
14222 __loc._M_impl->_M_install_cache(__tmp, __i);
14224 return static_cast<const __numpunct_cache<_CharT>*>(__caches[__i]);
14227 template<typename _CharT>
14229 __numpunct_cache<_CharT>::_M_cache(const locale& __loc)
14231 _M_allocated = true;
14232 const numpunct<_CharT>& __np = use_facet<numpunct<_CharT> >(__loc);
14233 _M_grouping_size = __np.grouping().size();
14234 char* __grouping = new char[_M_grouping_size];
14235 __np.grouping().copy(__grouping, _M_grouping_size);
14236 _M_grouping = __grouping;
14237 _M_use_grouping = (_M_grouping_size
14238 && static_cast<signed char>(_M_grouping[0]) > 0
14240 != __gnu_cxx::__numeric_traits<char>::__max));
14241 _M_truename_size = __np.truename().size();
14242 _CharT* __truename = new _CharT[_M_truename_size];
14243 __np.truename().copy(__truename, _M_truename_size);
14244 _M_truename = __truename;
14245 _M_falsename_size = __np.falsename().size();
14246 _CharT* __falsename = new _CharT[_M_falsename_size];
14247 __np.falsename().copy(__falsename, _M_falsename_size);
14248 _M_falsename = __falsename;
14249 _M_decimal_point = __np.decimal_point();
14250 _M_thousands_sep = __np.thousands_sep();
14251 const ctype<_CharT>& __ct = use_facet<ctype<_CharT> >(__loc);
14252 __ct.widen(__num_base::_S_atoms_out,
14253 __num_base::_S_atoms_out + __num_base::_S_oend, _M_atoms_out);
14254 __ct.widen(__num_base::_S_atoms_in,
14255 __num_base::_S_atoms_in + __num_base::_S_iend, _M_atoms_in);
14258 __verify_grouping(const char* __grouping, size_t __grouping_size,
14259 const string& __grouping_tmp);
14260 template<typename _CharT, typename _InIter>
14262 num_get<_CharT, _InIter>::
14263 _M_extract_float(_InIter __beg, _InIter __end, ios_base& __io,
14264 ios_base::iostate& __err, string& __xtrc) const
14266 typedef char_traits<_CharT> __traits_type;
14267 typedef __numpunct_cache<_CharT> __cache_type;
14268 __use_cache<__cache_type> __uc;
14269 const locale& __loc = __io._M_getloc();
14270 const __cache_type* __lc = __uc(__loc);
14271 const _CharT* __lit = __lc->_M_atoms_in;
14272 char_type __c = char_type();
14273 bool __testeof = __beg == __end;
14277 const bool __plus = __c == __lit[__num_base::_S_iplus];
14278 if ((__plus || __c == __lit[__num_base::_S_iminus])
14279 && !(__lc->_M_use_grouping && __c == __lc->_M_thousands_sep)
14280 && !(__c == __lc->_M_decimal_point))
14282 __xtrc += __plus ? '+' : '-';
14283 if (++__beg != __end)
14289 bool __found_mantissa = false;
14293 if ((__lc->_M_use_grouping && __c == __lc->_M_thousands_sep)
14294 || __c == __lc->_M_decimal_point)
14296 else if (__c == __lit[__num_base::_S_izero])
14298 if (!__found_mantissa)
14301 __found_mantissa = true;
14304 if (++__beg != __end)
14312 bool __found_dec = false;
14313 bool __found_sci = false;
14314 string __found_grouping;
14315 if (__lc->_M_use_grouping)
14316 __found_grouping.reserve(32);
14317 const char_type* __lit_zero = __lit + __num_base::_S_izero;
14318 if (!__lc->_M_allocated)
14321 const int __digit = _M_find(__lit_zero, 10, __c);
14324 __xtrc += '0' + __digit;
14325 __found_mantissa = true;
14327 else if (__c == __lc->_M_decimal_point
14328 && !__found_dec && !__found_sci)
14331 __found_dec = true;
14333 else if ((__c == __lit[__num_base::_S_ie]
14334 || __c == __lit[__num_base::_S_iE])
14335 && !__found_sci && __found_mantissa)
14338 __found_sci = true;
14339 if (++__beg != __end)
14342 const bool __plus = __c == __lit[__num_base::_S_iplus];
14343 if (__plus || __c == __lit[__num_base::_S_iminus])
14344 __xtrc += __plus ? '+' : '-';
14356 if (++__beg != __end)
14364 if (__lc->_M_use_grouping && __c == __lc->_M_thousands_sep)
14366 if (!__found_dec && !__found_sci)
14370 __found_grouping += static_cast<char>(__sep_pos);
14382 else if (__c == __lc->_M_decimal_point)
14384 if (!__found_dec && !__found_sci)
14386 if (__found_grouping.size())
14387 __found_grouping += static_cast<char>(__sep_pos);
14389 __found_dec = true;
14396 const char_type* __q =
14397 __traits_type::find(__lit_zero, 10, __c);
14400 __xtrc += '0' + (__q - __lit_zero);
14401 __found_mantissa = true;
14404 else if ((__c == __lit[__num_base::_S_ie]
14405 || __c == __lit[__num_base::_S_iE])
14406 && !__found_sci && __found_mantissa)
14408 if (__found_grouping.size() && !__found_dec)
14409 __found_grouping += static_cast<char>(__sep_pos);
14411 __found_sci = true;
14412 if (++__beg != __end)
14415 const bool __plus = __c == __lit[__num_base::_S_iplus];
14416 if ((__plus || __c == __lit[__num_base::_S_iminus])
14417 && !(__lc->_M_use_grouping
14418 && __c == __lc->_M_thousands_sep)
14419 && !(__c == __lc->_M_decimal_point))
14420 __xtrc += __plus ? '+' : '-';
14433 if (++__beg != __end)
14438 if (__found_grouping.size())
14440 if (!__found_dec && !__found_sci)
14441 __found_grouping += static_cast<char>(__sep_pos);
14442 if (!std::__verify_grouping(__lc->_M_grouping,
14443 __lc->_M_grouping_size,
14445 __err = ios_base::failbit;
14449 template<typename _CharT, typename _InIter>
14450 template<typename _ValueT>
14452 num_get<_CharT, _InIter>::
14453 _M_extract_int(_InIter __beg, _InIter __end, ios_base& __io,
14454 ios_base::iostate& __err, _ValueT& __v) const
14456 typedef char_traits<_CharT> __traits_type;
14457 using __gnu_cxx::__add_unsigned;
14458 typedef typename __add_unsigned<_ValueT>::__type __unsigned_type;
14459 typedef __numpunct_cache<_CharT> __cache_type;
14460 __use_cache<__cache_type> __uc;
14461 const locale& __loc = __io._M_getloc();
14462 const __cache_type* __lc = __uc(__loc);
14463 const _CharT* __lit = __lc->_M_atoms_in;
14464 char_type __c = char_type();
14465 const ios_base::fmtflags __basefield = __io.flags()
14466 & ios_base::basefield;
14467 const bool __oct = __basefield == ios_base::oct;
14468 int __base = __oct ? 8 : (__basefield == ios_base::hex ? 16 : 10);
14469 bool __testeof = __beg == __end;
14470 bool __negative = false;
14474 __negative = __c == __lit[__num_base::_S_iminus];
14475 if ((__negative || __c == __lit[__num_base::_S_iplus])
14476 && !(__lc->_M_use_grouping && __c == __lc->_M_thousands_sep)
14477 && !(__c == __lc->_M_decimal_point))
14479 if (++__beg != __end)
14485 bool __found_zero = false;
14489 if ((__lc->_M_use_grouping && __c == __lc->_M_thousands_sep)
14490 || __c == __lc->_M_decimal_point)
14492 else if (__c == __lit[__num_base::_S_izero]
14493 && (!__found_zero || __base == 10))
14495 __found_zero = true;
14497 if (__basefield == 0)
14502 else if (__found_zero
14503 && (__c == __lit[__num_base::_S_ix]
14504 || __c == __lit[__num_base::_S_iX]))
14506 if (__basefield == 0)
14510 __found_zero = false;
14518 if (++__beg != __end)
14527 const size_t __len = (__base == 16 ? __num_base::_S_iend
14528 - __num_base::_S_izero : __base);
14529 string __found_grouping;
14530 if (__lc->_M_use_grouping)
14531 __found_grouping.reserve(32);
14532 bool __testfail = false;
14533 bool __testoverflow = false;
14534 const __unsigned_type __max =
14535 (__negative && __gnu_cxx::__numeric_traits<_ValueT>::__is_signed)
14536 ? -__gnu_cxx::__numeric_traits<_ValueT>::__min
14537 : __gnu_cxx::__numeric_traits<_ValueT>::__max;
14538 const __unsigned_type __smax = __max / __base;
14539 __unsigned_type __result = 0;
14541 const char_type* __lit_zero = __lit + __num_base::_S_izero;
14542 if (!__lc->_M_allocated)
14545 __digit = _M_find(__lit_zero, __len, __c);
14548 if (__result > __smax)
14549 __testoverflow = true;
14552 __result *= __base;
14553 __testoverflow |= __result > __max - __digit;
14554 __result += __digit;
14557 if (++__beg != __end)
14565 if (__lc->_M_use_grouping && __c == __lc->_M_thousands_sep)
14569 __found_grouping += static_cast<char>(__sep_pos);
14578 else if (__c == __lc->_M_decimal_point)
14582 const char_type* __q =
14583 __traits_type::find(__lit_zero, __len, __c);
14586 __digit = __q - __lit_zero;
14589 if (__result > __smax)
14590 __testoverflow = true;
14593 __result *= __base;
14594 __testoverflow |= __result > __max - __digit;
14595 __result += __digit;
14599 if (++__beg != __end)
14604 if (__found_grouping.size())
14606 __found_grouping += static_cast<char>(__sep_pos);
14607 if (!std::__verify_grouping(__lc->_M_grouping,
14608 __lc->_M_grouping_size,
14610 __err = ios_base::failbit;
14612 if ((!__sep_pos && !__found_zero && !__found_grouping.size())
14616 __err = ios_base::failbit;
14618 else if (__testoverflow)
14621 && __gnu_cxx::__numeric_traits<_ValueT>::__is_signed)
14622 __v = __gnu_cxx::__numeric_traits<_ValueT>::__min;
14624 __v = __gnu_cxx::__numeric_traits<_ValueT>::__max;
14625 __err = ios_base::failbit;
14628 __v = __negative ? -__result : __result;
14630 __err |= ios_base::eofbit;
14633 template<typename _CharT, typename _InIter>
14635 num_get<_CharT, _InIter>::
14636 do_get(iter_type __beg, iter_type __end, ios_base& __io,
14637 ios_base::iostate& __err, bool& __v) const
14639 if (!(__io.flags() & ios_base::boolalpha))
14642 __beg = _M_extract_int(__beg, __end, __io, __err, __l);
14643 if (__l == 0 || __l == 1)
14648 __err = ios_base::failbit;
14649 if (__beg == __end)
14650 __err |= ios_base::eofbit;
14655 typedef __numpunct_cache<_CharT> __cache_type;
14656 __use_cache<__cache_type> __uc;
14657 const locale& __loc = __io._M_getloc();
14658 const __cache_type* __lc = __uc(__loc);
14659 bool __testf = true;
14660 bool __testt = true;
14661 bool __donef = __lc->_M_falsename_size == 0;
14662 bool __donet = __lc->_M_truename_size == 0;
14663 bool __testeof = false;
14665 while (!__donef || !__donet)
14667 if (__beg == __end)
14672 const char_type __c = *__beg;
14674 __testf = __c == __lc->_M_falsename[__n];
14675 if (!__testf && __donet)
14678 __testt = __c == __lc->_M_truename[__n];
14679 if (!__testt && __donef)
14681 if (!__testt && !__testf)
14685 __donef = !__testf || __n >= __lc->_M_falsename_size;
14686 __donet = !__testt || __n >= __lc->_M_truename_size;
14688 if (__testf && __n == __lc->_M_falsename_size && __n)
14691 if (__testt && __n == __lc->_M_truename_size)
14692 __err = ios_base::failbit;
14694 __err = __testeof ? ios_base::eofbit : ios_base::goodbit;
14696 else if (__testt && __n == __lc->_M_truename_size && __n)
14699 __err = __testeof ? ios_base::eofbit : ios_base::goodbit;
14704 __err = ios_base::failbit;
14706 __err |= ios_base::eofbit;
14711 template<typename _CharT, typename _InIter>
14713 num_get<_CharT, _InIter>::
14714 do_get(iter_type __beg, iter_type __end, ios_base& __io,
14715 ios_base::iostate& __err, float& __v) const
14718 __xtrc.reserve(32);
14719 __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc);
14720 std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale());
14721 if (__beg == __end)
14722 __err |= ios_base::eofbit;
14725 template<typename _CharT, typename _InIter>
14727 num_get<_CharT, _InIter>::
14728 do_get(iter_type __beg, iter_type __end, ios_base& __io,
14729 ios_base::iostate& __err, double& __v) const
14732 __xtrc.reserve(32);
14733 __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc);
14734 std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale());
14735 if (__beg == __end)
14736 __err |= ios_base::eofbit;
14739 template<typename _CharT, typename _InIter>
14741 num_get<_CharT, _InIter>::
14742 do_get(iter_type __beg, iter_type __end, ios_base& __io,
14743 ios_base::iostate& __err, long double& __v) const
14746 __xtrc.reserve(32);
14747 __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc);
14748 std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale());
14749 if (__beg == __end)
14750 __err |= ios_base::eofbit;
14753 template<typename _CharT, typename _InIter>
14755 num_get<_CharT, _InIter>::
14756 do_get(iter_type __beg, iter_type __end, ios_base& __io,
14757 ios_base::iostate& __err, void*& __v) const
14759 typedef ios_base::fmtflags fmtflags;
14760 const fmtflags __fmt = __io.flags();
14761 __io.flags((__fmt & ~ios_base::basefield) | ios_base::hex);
14762 typedef __gnu_cxx::__conditional_type<(sizeof(void*)
14763 <= sizeof(unsigned long)),
14764 unsigned long, unsigned long long>::__type _UIntPtrType;
14766 __beg = _M_extract_int(__beg, __end, __io, __err, __ul);
14768 __v = reinterpret_cast<void*>(__ul);
14771 template<typename _CharT, typename _OutIter>
14773 num_put<_CharT, _OutIter>::
14774 _M_pad(_CharT __fill, streamsize __w, ios_base& __io,
14775 _CharT* __new, const _CharT* __cs, int& __len) const
14777 __pad<_CharT, char_traits<_CharT> >::_S_pad(__io, __fill, __new,
14779 __len = static_cast<int>(__w);
14781 template<typename _CharT, typename _ValueT>
14783 __int_to_char(_CharT* __bufend, _ValueT __v, const _CharT* __lit,
14784 ios_base::fmtflags __flags, bool __dec)
14786 _CharT* __buf = __bufend;
14787 if (__builtin_expect(__dec, true))
14791 *--__buf = __lit[(__v % 10) + __num_base::_S_odigits];
14796 else if ((__flags & ios_base::basefield) == ios_base::oct)
14800 *--__buf = __lit[(__v & 0x7) + __num_base::_S_odigits];
14807 const bool __uppercase = __flags & ios_base::uppercase;
14808 const int __case_offset = __uppercase ? __num_base::_S_oudigits
14809 : __num_base::_S_odigits;
14812 *--__buf = __lit[(__v & 0xf) + __case_offset];
14817 return __bufend - __buf;
14819 template<typename _CharT, typename _OutIter>
14821 num_put<_CharT, _OutIter>::
14822 _M_group_int(const char* __grouping, size_t __grouping_size, _CharT __sep,
14823 ios_base&, _CharT* __new, _CharT* __cs, int& __len) const
14825 _CharT* __p = std::__add_grouping(__new, __sep, __grouping,
14826 __grouping_size, __cs, __cs + __len);
14827 __len = __p - __new;
14829 template<typename _CharT, typename _OutIter>
14830 template<typename _ValueT>
14832 num_put<_CharT, _OutIter>::
14833 _M_insert_int(_OutIter __s, ios_base& __io, _CharT __fill,
14836 using __gnu_cxx::__add_unsigned;
14837 typedef typename __add_unsigned<_ValueT>::__type __unsigned_type;
14838 typedef __numpunct_cache<_CharT> __cache_type;
14839 __use_cache<__cache_type> __uc;
14840 const locale& __loc = __io._M_getloc();
14841 const __cache_type* __lc = __uc(__loc);
14842 const _CharT* __lit = __lc->_M_atoms_out;
14843 const ios_base::fmtflags __flags = __io.flags();
14844 const int __ilen = 5 * sizeof(_ValueT);
14845 _CharT* __cs = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT)
14847 const ios_base::fmtflags __basefield = __flags & ios_base::basefield;
14848 const bool __dec = (__basefield != ios_base::oct
14849 && __basefield != ios_base::hex);
14850 const __unsigned_type __u = ((__v > 0 || !__dec)
14851 ? __unsigned_type(__v)
14852 : -__unsigned_type(__v));
14853 int __len = __int_to_char(__cs + __ilen, __u, __lit, __flags, __dec);
14854 __cs += __ilen - __len;
14855 if (__lc->_M_use_grouping)
14857 _CharT* __cs2 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT)
14860 _M_group_int(__lc->_M_grouping, __lc->_M_grouping_size,
14861 __lc->_M_thousands_sep, __io, __cs2 + 2, __cs, __len);
14864 if (__builtin_expect(__dec, true))
14868 if (bool(__flags & ios_base::showpos)
14869 && __gnu_cxx::__numeric_traits<_ValueT>::__is_signed)
14870 *--__cs = __lit[__num_base::_S_oplus], ++__len;
14873 *--__cs = __lit[__num_base::_S_ominus], ++__len;
14875 else if (bool(__flags & ios_base::showbase) && __v)
14877 if (__basefield == ios_base::oct)
14878 *--__cs = __lit[__num_base::_S_odigits], ++__len;
14881 const bool __uppercase = __flags & ios_base::uppercase;
14882 *--__cs = __lit[__num_base::_S_ox + __uppercase];
14883 *--__cs = __lit[__num_base::_S_odigits];
14887 const streamsize __w = __io.width();
14888 if (__w > static_cast<streamsize>(__len))
14890 _CharT* __cs3 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT)
14892 _M_pad(__fill, __w, __io, __cs3, __cs, __len);
14896 return std::__write(__s, __cs, __len);
14898 template<typename _CharT, typename _OutIter>
14900 num_put<_CharT, _OutIter>::
14901 _M_group_float(const char* __grouping, size_t __grouping_size,
14902 _CharT __sep, const _CharT* __p, _CharT* __new,
14903 _CharT* __cs, int& __len) const
14905 const int __declen = __p ? __p - __cs : __len;
14906 _CharT* __p2 = std::__add_grouping(__new, __sep, __grouping,
14908 __cs, __cs + __declen);
14909 int __newlen = __p2 - __new;
14912 char_traits<_CharT>::copy(__p2, __p, __len - __declen);
14913 __newlen += __len - __declen;
14917 template<typename _CharT, typename _OutIter>
14918 template<typename _ValueT>
14920 num_put<_CharT, _OutIter>::
14921 _M_insert_float(_OutIter __s, ios_base& __io, _CharT __fill, char __mod,
14924 typedef __numpunct_cache<_CharT> __cache_type;
14925 __use_cache<__cache_type> __uc;
14926 const locale& __loc = __io._M_getloc();
14927 const __cache_type* __lc = __uc(__loc);
14928 const streamsize __prec = __io.precision() < 0 ? 6 : __io.precision();
14929 const int __max_digits =
14930 __gnu_cxx::__numeric_traits<_ValueT>::__digits10;
14933 __num_base::_S_format_float(__io, __fbuf, __mod);
14934 int __cs_size = __max_digits * 3;
14935 char* __cs = static_cast<char*>(__builtin_alloca(__cs_size));
14936 __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size,
14937 __fbuf, __prec, __v);
14938 if (__len >= __cs_size)
14940 __cs_size = __len + 1;
14941 __cs = static_cast<char*>(__builtin_alloca(__cs_size));
14942 __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size,
14943 __fbuf, __prec, __v);
14945 const ctype<_CharT>& __ctype = use_facet<ctype<_CharT> >(__loc);
14946 _CharT* __ws = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT)
14948 __ctype.widen(__cs, __cs + __len, __ws);
14950 const char* __p = char_traits<char>::find(__cs, __len, '.');
14953 __wp = __ws + (__p - __cs);
14954 *__wp = __lc->_M_decimal_point;
14956 if (__lc->_M_use_grouping
14957 && (__wp || __len < 3 || (__cs[1] <= '9' && __cs[2] <= '9'
14958 && __cs[1] >= '0' && __cs[2] >= '0')))
14960 _CharT* __ws2 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT)
14962 streamsize __off = 0;
14963 if (__cs[0] == '-' || __cs[0] == '+')
14966 __ws2[0] = __ws[0];
14969 _M_group_float(__lc->_M_grouping, __lc->_M_grouping_size,
14970 __lc->_M_thousands_sep, __wp, __ws2 + __off,
14971 __ws + __off, __len);
14975 const streamsize __w = __io.width();
14976 if (__w > static_cast<streamsize>(__len))
14978 _CharT* __ws3 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT)
14980 _M_pad(__fill, __w, __io, __ws3, __ws, __len);
14984 return std::__write(__s, __ws, __len);
14986 template<typename _CharT, typename _OutIter>
14988 num_put<_CharT, _OutIter>::
14989 do_put(iter_type __s, ios_base& __io, char_type __fill, bool __v) const
14991 const ios_base::fmtflags __flags = __io.flags();
14992 if ((__flags & ios_base::boolalpha) == 0)
14994 const long __l = __v;
14995 __s = _M_insert_int(__s, __io, __fill, __l);
14999 typedef __numpunct_cache<_CharT> __cache_type;
15000 __use_cache<__cache_type> __uc;
15001 const locale& __loc = __io._M_getloc();
15002 const __cache_type* __lc = __uc(__loc);
15003 const _CharT* __name = __v ? __lc->_M_truename
15004 : __lc->_M_falsename;
15005 int __len = __v ? __lc->_M_truename_size
15006 : __lc->_M_falsename_size;
15007 const streamsize __w = __io.width();
15008 if (__w > static_cast<streamsize>(__len))
15010 const streamsize __plen = __w - __len;
15012 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT)
15014 char_traits<_CharT>::assign(__ps, __plen, __fill);
15016 if ((__flags & ios_base::adjustfield) == ios_base::left)
15018 __s = std::__write(__s, __name, __len);
15019 __s = std::__write(__s, __ps, __plen);
15023 __s = std::__write(__s, __ps, __plen);
15024 __s = std::__write(__s, __name, __len);
15029 __s = std::__write(__s, __name, __len);
15033 template<typename _CharT, typename _OutIter>
15035 num_put<_CharT, _OutIter>::
15036 do_put(iter_type __s, ios_base& __io, char_type __fill, double __v) const
15037 { return _M_insert_float(__s, __io, __fill, char(), __v); }
15038 template<typename _CharT, typename _OutIter>
15040 num_put<_CharT, _OutIter>::
15041 do_put(iter_type __s, ios_base& __io, char_type __fill,
15042 long double __v) const
15043 { return _M_insert_float(__s, __io, __fill, 'L', __v); }
15044 template<typename _CharT, typename _OutIter>
15046 num_put<_CharT, _OutIter>::
15047 do_put(iter_type __s, ios_base& __io, char_type __fill,
15048 const void* __v) const
15050 const ios_base::fmtflags __flags = __io.flags();
15051 const ios_base::fmtflags __fmt = ~(ios_base::basefield
15052 | ios_base::uppercase);
15053 __io.flags((__flags & __fmt) | (ios_base::hex | ios_base::showbase));
15054 typedef __gnu_cxx::__conditional_type<(sizeof(const void*)
15055 <= sizeof(unsigned long)),
15056 unsigned long, unsigned long long>::__type _UIntPtrType;
15057 __s = _M_insert_int(__s, __io, __fill,
15058 reinterpret_cast<_UIntPtrType>(__v));
15059 __io.flags(__flags);
15062 template<typename _CharT, typename _Traits>
15064 __pad<_CharT, _Traits>::_S_pad(ios_base& __io, _CharT __fill,
15065 _CharT* __news, const _CharT* __olds,
15066 streamsize __newlen, streamsize __oldlen)
15068 const size_t __plen = static_cast<size_t>(__newlen - __oldlen);
15069 const ios_base::fmtflags __adjust = __io.flags() & ios_base::adjustfield;
15070 if (__adjust == ios_base::left)
15072 _Traits::copy(__news, __olds, __oldlen);
15073 _Traits::assign(__news + __oldlen, __plen, __fill);
15077 if (__adjust == ios_base::internal)
15079 const locale& __loc = __io._M_getloc();
15080 const ctype<_CharT>& __ctype = use_facet<ctype<_CharT> >(__loc);
15081 if (__ctype.widen('-') == __olds[0]
15082 || __ctype.widen('+') == __olds[0])
15084 __news[0] = __olds[0];
15088 else if (__ctype.widen('0') == __olds[0]
15090 && (__ctype.widen('x') == __olds[1]
15091 || __ctype.widen('X') == __olds[1]))
15093 __news[0] = __olds[0];
15094 __news[1] = __olds[1];
15099 _Traits::assign(__news, __plen, __fill);
15100 _Traits::copy(__news + __plen, __olds + __mod, __oldlen - __mod);
15102 template<typename _CharT>
15104 __add_grouping(_CharT* __s, _CharT __sep,
15105 const char* __gbeg, size_t __gsize,
15106 const _CharT* __first, const _CharT* __last)
15110 while (__last - __first > __gbeg[__idx]
15111 && static_cast<signed char>(__gbeg[__idx]) > 0
15112 && __gbeg[__idx] != __gnu_cxx::__numeric_traits<char>::__max)
15114 __last -= __gbeg[__idx];
15115 __idx < __gsize - 1 ? ++__idx : ++__ctr;
15117 while (__first != __last)
15118 *__s++ = *__first++;
15122 for (char __i = __gbeg[__idx]; __i > 0; --__i)
15123 *__s++ = *__first++;
15128 for (char __i = __gbeg[__idx]; __i > 0; --__i)
15129 *__s++ = *__first++;
15133 extern template class numpunct<char>;
15134 extern template class numpunct_byname<char>;
15135 extern template class num_get<char>;
15136 extern template class num_put<char>;
15137 extern template class ctype_byname<char>;
15140 use_facet<ctype<char> >(const locale&);
15142 const numpunct<char>&
15143 use_facet<numpunct<char> >(const locale&);
15145 const num_put<char>&
15146 use_facet<num_put<char> >(const locale&);
15148 const num_get<char>&
15149 use_facet<num_get<char> >(const locale&);
15152 has_facet<ctype<char> >(const locale&);
15155 has_facet<numpunct<char> >(const locale&);
15158 has_facet<num_put<char> >(const locale&);
15161 has_facet<num_get<char> >(const locale&);
15162 extern template class numpunct<wchar_t>;
15163 extern template class numpunct_byname<wchar_t>;
15164 extern template class num_get<wchar_t>;
15165 extern template class num_put<wchar_t>;
15166 extern template class ctype_byname<wchar_t>;
15168 const ctype<wchar_t>&
15169 use_facet<ctype<wchar_t> >(const locale&);
15171 const numpunct<wchar_t>&
15172 use_facet<numpunct<wchar_t> >(const locale&);
15174 const num_put<wchar_t>&
15175 use_facet<num_put<wchar_t> >(const locale&);
15177 const num_get<wchar_t>&
15178 use_facet<num_get<wchar_t> >(const locale&);
15181 has_facet<ctype<wchar_t> >(const locale&);
15184 has_facet<numpunct<wchar_t> >(const locale&);
15187 has_facet<num_put<wchar_t> >(const locale&);
15190 has_facet<num_get<wchar_t> >(const locale&);
15192 namespace std __attribute__ ((__visibility__ ("default"))) {
15193 template<typename _Facet>
15194 inline const _Facet&
15195 __check_facet(const _Facet* __f)
15198 __throw_bad_cast();
15201 template<typename _CharT, typename _Traits>
15202 class basic_ios : public ios_base
15205 typedef _CharT char_type;
15206 typedef typename _Traits::int_type int_type;
15207 typedef typename _Traits::pos_type pos_type;
15208 typedef typename _Traits::off_type off_type;
15209 typedef _Traits traits_type;
15210 typedef ctype<_CharT> __ctype_type;
15211 typedef num_put<_CharT, ostreambuf_iterator<_CharT, _Traits> >
15213 typedef num_get<_CharT, istreambuf_iterator<_CharT, _Traits> >
15216 basic_ostream<_CharT, _Traits>* _M_tie;
15217 mutable char_type _M_fill;
15218 mutable bool _M_fill_init;
15219 basic_streambuf<_CharT, _Traits>* _M_streambuf;
15220 const __ctype_type* _M_ctype;
15221 const __num_put_type* _M_num_put;
15222 const __num_get_type* _M_num_get;
15224 operator void*() const
15225 { return this->fail() ? 0 : const_cast<basic_ios*>(this); }
15228 { return this->fail(); }
15231 { return _M_streambuf_state; }
15233 clear(iostate __state = goodbit);
15235 setstate(iostate __state)
15236 { this->clear(this->rdstate() | __state); }
15238 _M_setstate(iostate __state)
15240 _M_streambuf_state |= __state;
15241 if (this->exceptions() & __state)
15246 { return this->rdstate() == 0; }
15249 { return (this->rdstate() & eofbit) != 0; }
15252 { return (this->rdstate() & (badbit | failbit)) != 0; }
15255 { return (this->rdstate() & badbit) != 0; }
15258 { return _M_exception; }
15260 exceptions(iostate __except)
15262 _M_exception = __except;
15263 this->clear(_M_streambuf_state);
15266 basic_ios(basic_streambuf<_CharT, _Traits>* __sb)
15267 : ios_base(), _M_tie(0), _M_fill(), _M_fill_init(false), _M_streambuf(0),
15268 _M_ctype(0), _M_num_put(0), _M_num_get(0)
15269 { this->init(__sb); }
15272 basic_ostream<_CharT, _Traits>*
15275 basic_ostream<_CharT, _Traits>*
15276 tie(basic_ostream<_CharT, _Traits>* __tiestr)
15278 basic_ostream<_CharT, _Traits>* __old = _M_tie;
15282 basic_streambuf<_CharT, _Traits>*
15284 { return _M_streambuf; }
15285 basic_streambuf<_CharT, _Traits>*
15286 rdbuf(basic_streambuf<_CharT, _Traits>* __sb);
15288 copyfmt(const basic_ios& __rhs);
15294 _M_fill = this->widen(' ');
15295 _M_fill_init = true;
15300 fill(char_type __ch)
15302 char_type __old = this->fill();
15307 imbue(const locale& __loc);
15309 narrow(char_type __c, char __dfault) const
15310 { return __check_facet(_M_ctype).narrow(__c, __dfault); }
15312 widen(char __c) const
15313 { return __check_facet(_M_ctype).widen(__c); }
15316 : ios_base(), _M_tie(0), _M_fill(char_type()), _M_fill_init(false),
15317 _M_streambuf(0), _M_ctype(0), _M_num_put(0), _M_num_get(0)
15320 init(basic_streambuf<_CharT, _Traits>* __sb);
15322 _M_cache_locale(const locale& __loc);
15326 namespace std __attribute__ ((__visibility__ ("default"))) {
15327 template<typename _CharT, typename _Traits>
15329 basic_ios<_CharT, _Traits>::clear(iostate __state)
15332 _M_streambuf_state = __state;
15334 _M_streambuf_state = __state | badbit;
15335 if (this->exceptions() & this->rdstate())
15336 __throw_ios_failure(("basic_ios::clear"));
15338 template<typename _CharT, typename _Traits>
15339 basic_streambuf<_CharT, _Traits>*
15340 basic_ios<_CharT, _Traits>::rdbuf(basic_streambuf<_CharT, _Traits>* __sb)
15342 basic_streambuf<_CharT, _Traits>* __old = _M_streambuf;
15343 _M_streambuf = __sb;
15347 template<typename _CharT, typename _Traits>
15348 basic_ios<_CharT, _Traits>&
15349 basic_ios<_CharT, _Traits>::copyfmt(const basic_ios& __rhs)
15351 if (this != &__rhs)
15353 _Words* __words = (__rhs._M_word_size <= _S_local_word_size) ?
15354 _M_local_word : new _Words[__rhs._M_word_size];
15355 _Callback_list* __cb = __rhs._M_callbacks;
15357 __cb->_M_add_reference();
15358 _M_call_callbacks(erase_event);
15359 if (_M_word != _M_local_word)
15364 _M_dispose_callbacks();
15365 _M_callbacks = __cb;
15366 for (int __i = 0; __i < __rhs._M_word_size; ++__i)
15367 __words[__i] = __rhs._M_word[__i];
15369 _M_word_size = __rhs._M_word_size;
15370 this->flags(__rhs.flags());
15371 this->width(__rhs.width());
15372 this->precision(__rhs.precision());
15373 this->tie(__rhs.tie());
15374 this->fill(__rhs.fill());
15375 _M_ios_locale = __rhs.getloc();
15376 _M_cache_locale(_M_ios_locale);
15377 _M_call_callbacks(copyfmt_event);
15378 this->exceptions(__rhs.exceptions());
15382 template<typename _CharT, typename _Traits>
15384 basic_ios<_CharT, _Traits>::imbue(const locale& __loc)
15386 locale __old(this->getloc());
15387 ios_base::imbue(__loc);
15388 _M_cache_locale(__loc);
15389 if (this->rdbuf() != 0)
15390 this->rdbuf()->pubimbue(__loc);
15393 template<typename _CharT, typename _Traits>
15395 basic_ios<_CharT, _Traits>::init(basic_streambuf<_CharT, _Traits>* __sb)
15397 ios_base::_M_init();
15398 _M_cache_locale(_M_ios_locale);
15399 _M_fill = _CharT();
15400 _M_fill_init = false;
15402 _M_exception = goodbit;
15403 _M_streambuf = __sb;
15404 _M_streambuf_state = __sb ? goodbit : badbit;
15406 template<typename _CharT, typename _Traits>
15408 basic_ios<_CharT, _Traits>::_M_cache_locale(const locale& __loc)
15410 if (__builtin_expect(has_facet<__ctype_type>(__loc), true))
15411 _M_ctype = &use_facet<__ctype_type>(__loc);
15414 if (__builtin_expect(has_facet<__num_put_type>(__loc), true))
15415 _M_num_put = &use_facet<__num_put_type>(__loc);
15418 if (__builtin_expect(has_facet<__num_get_type>(__loc), true))
15419 _M_num_get = &use_facet<__num_get_type>(__loc);
15423 extern template class basic_ios<char>;
15424 extern template class basic_ios<wchar_t>;
15426 namespace std __attribute__ ((__visibility__ ("default"))) {
15427 template<typename _CharT, typename _Traits>
15428 class basic_ostream : virtual public basic_ios<_CharT, _Traits>
15431 typedef _CharT char_type;
15432 typedef typename _Traits::int_type int_type;
15433 typedef typename _Traits::pos_type pos_type;
15434 typedef typename _Traits::off_type off_type;
15435 typedef _Traits traits_type;
15436 typedef basic_streambuf<_CharT, _Traits> __streambuf_type;
15437 typedef basic_ios<_CharT, _Traits> __ios_type;
15438 typedef basic_ostream<_CharT, _Traits> __ostream_type;
15439 typedef num_put<_CharT, ostreambuf_iterator<_CharT, _Traits> >
15441 typedef ctype<_CharT> __ctype_type;
15443 basic_ostream(__streambuf_type* __sb)
15444 { this->init(__sb); }
15446 ~basic_ostream() { }
15448 friend class sentry;
15450 operator<<(__ostream_type& (*__pf)(__ostream_type&))
15452 return __pf(*this);
15455 operator<<(__ios_type& (*__pf)(__ios_type&))
15461 operator<<(ios_base& (*__pf) (ios_base&))
15467 operator<<(long __n)
15468 { return _M_insert(__n); }
15470 operator<<(unsigned long __n)
15471 { return _M_insert(__n); }
15473 operator<<(bool __n)
15474 { return _M_insert(__n); }
15476 operator<<(short __n);
15478 operator<<(unsigned short __n)
15480 return _M_insert(static_cast<unsigned long>(__n));
15483 operator<<(int __n);
15485 operator<<(unsigned int __n)
15487 return _M_insert(static_cast<unsigned long>(__n));
15490 operator<<(long long __n)
15491 { return _M_insert(__n); }
15493 operator<<(unsigned long long __n)
15494 { return _M_insert(__n); }
15496 operator<<(double __f)
15497 { return _M_insert(__f); }
15499 operator<<(float __f)
15501 return _M_insert(static_cast<double>(__f));
15504 operator<<(long double __f)
15505 { return _M_insert(__f); }
15507 operator<<(const void* __p)
15508 { return _M_insert(__p); }
15510 operator<<(__streambuf_type* __sb);
15512 put(char_type __c);
15514 _M_write(const char_type* __s, streamsize __n)
15516 const streamsize __put = this->rdbuf()->sputn(__s, __n);
15518 this->setstate(ios_base::badbit);
15521 write(const char_type* __s, streamsize __n);
15529 seekp(off_type, ios_base::seekdir);
15533 template<typename _ValueT>
15535 _M_insert(_ValueT __v);
15537 template <typename _CharT, typename _Traits>
15538 class basic_ostream<_CharT, _Traits>::sentry
15541 basic_ostream<_CharT, _Traits>& _M_os;
15544 sentry(basic_ostream<_CharT, _Traits>& __os);
15547 if (bool(_M_os.flags() & ios_base::unitbuf) && !uncaught_exception())
15549 if (_M_os.rdbuf() && _M_os.rdbuf()->pubsync() == -1)
15550 _M_os.setstate(ios_base::badbit);
15553 operator bool() const
15556 template<typename _CharT, typename _Traits>
15557 inline basic_ostream<_CharT, _Traits>&
15558 operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
15559 { return __ostream_insert(__out, &__c, 1); }
15560 template<typename _CharT, typename _Traits>
15561 inline basic_ostream<_CharT, _Traits>&
15562 operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
15563 { return (__out << __out.widen(__c)); }
15564 template <class _Traits>
15565 inline basic_ostream<char, _Traits>&
15566 operator<<(basic_ostream<char, _Traits>& __out, char __c)
15567 { return __ostream_insert(__out, &__c, 1); }
15568 template<class _Traits>
15569 inline basic_ostream<char, _Traits>&
15570 operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
15571 { return (__out << static_cast<char>(__c)); }
15572 template<class _Traits>
15573 inline basic_ostream<char, _Traits>&
15574 operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)
15575 { return (__out << static_cast<char>(__c)); }
15576 template<typename _CharT, typename _Traits>
15577 inline basic_ostream<_CharT, _Traits>&
15578 operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s)
15581 __out.setstate(ios_base::badbit);
15583 __ostream_insert(__out, __s,
15584 static_cast<streamsize>(_Traits::length(__s)));
15587 template<typename _CharT, typename _Traits>
15588 basic_ostream<_CharT, _Traits> &
15589 operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s);
15590 template<class _Traits>
15591 inline basic_ostream<char, _Traits>&
15592 operator<<(basic_ostream<char, _Traits>& __out, const char* __s)
15595 __out.setstate(ios_base::badbit);
15597 __ostream_insert(__out, __s,
15598 static_cast<streamsize>(_Traits::length(__s)));
15601 template<class _Traits>
15602 inline basic_ostream<char, _Traits>&
15603 operator<<(basic_ostream<char, _Traits>& __out, const signed char* __s)
15604 { return (__out << reinterpret_cast<const char*>(__s)); }
15605 template<class _Traits>
15606 inline basic_ostream<char, _Traits> &
15607 operator<<(basic_ostream<char, _Traits>& __out, const unsigned char* __s)
15608 { return (__out << reinterpret_cast<const char*>(__s)); }
15609 template<typename _CharT, typename _Traits>
15610 inline basic_ostream<_CharT, _Traits>&
15611 endl(basic_ostream<_CharT, _Traits>& __os)
15612 { return flush(__os.put(__os.widen('\n'))); }
15613 template<typename _CharT, typename _Traits>
15614 inline basic_ostream<_CharT, _Traits>&
15615 ends(basic_ostream<_CharT, _Traits>& __os)
15616 { return __os.put(_CharT()); }
15617 template<typename _CharT, typename _Traits>
15618 inline basic_ostream<_CharT, _Traits>&
15619 flush(basic_ostream<_CharT, _Traits>& __os)
15620 { return __os.flush(); }
15623 namespace std __attribute__ ((__visibility__ ("default"))) {
15624 template<typename _CharT, typename _Traits>
15625 basic_ostream<_CharT, _Traits>::sentry::
15626 sentry(basic_ostream<_CharT, _Traits>& __os)
15627 : _M_ok(false), _M_os(__os)
15629 if (__os.tie() && __os.good())
15630 __os.tie()->flush();
15634 __os.setstate(ios_base::failbit);
15636 template<typename _CharT, typename _Traits>
15637 template<typename _ValueT>
15638 basic_ostream<_CharT, _Traits>&
15639 basic_ostream<_CharT, _Traits>::
15640 _M_insert(_ValueT __v)
15642 sentry __cerb(*this);
15645 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
15648 const __num_put_type& __np = __check_facet(this->_M_num_put);
15649 if (__np.put(*this, *this, this->fill(), __v).failed())
15650 __err |= ios_base::badbit;
15652 catch(__cxxabiv1::__forced_unwind&)
15654 this->_M_setstate(ios_base::badbit);
15658 { this->_M_setstate(ios_base::badbit); }
15660 this->setstate(__err);
15664 template<typename _CharT, typename _Traits>
15665 basic_ostream<_CharT, _Traits>&
15666 basic_ostream<_CharT, _Traits>::
15667 operator<<(short __n)
15669 const ios_base::fmtflags __fmt = this->flags() & ios_base::basefield;
15670 if (__fmt == ios_base::oct || __fmt == ios_base::hex)
15671 return _M_insert(static_cast<long>(static_cast<unsigned short>(__n)));
15673 return _M_insert(static_cast<long>(__n));
15675 template<typename _CharT, typename _Traits>
15676 basic_ostream<_CharT, _Traits>&
15677 basic_ostream<_CharT, _Traits>::
15678 operator<<(int __n)
15680 const ios_base::fmtflags __fmt = this->flags() & ios_base::basefield;
15681 if (__fmt == ios_base::oct || __fmt == ios_base::hex)
15682 return _M_insert(static_cast<long>(static_cast<unsigned int>(__n)));
15684 return _M_insert(static_cast<long>(__n));
15686 template<typename _CharT, typename _Traits>
15687 basic_ostream<_CharT, _Traits>&
15688 basic_ostream<_CharT, _Traits>::
15689 operator<<(__streambuf_type* __sbin)
15691 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
15692 sentry __cerb(*this);
15693 if (__cerb && __sbin)
15697 if (!__copy_streambufs(__sbin, this->rdbuf()))
15698 __err |= ios_base::failbit;
15700 catch(__cxxabiv1::__forced_unwind&)
15702 this->_M_setstate(ios_base::badbit);
15706 { this->_M_setstate(ios_base::failbit); }
15709 __err |= ios_base::badbit;
15711 this->setstate(__err);
15714 template<typename _CharT, typename _Traits>
15715 basic_ostream<_CharT, _Traits>&
15716 basic_ostream<_CharT, _Traits>::
15719 sentry __cerb(*this);
15722 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
15725 const int_type __put = this->rdbuf()->sputc(__c);
15726 if (traits_type::eq_int_type(__put, traits_type::eof()))
15727 __err |= ios_base::badbit;
15729 catch(__cxxabiv1::__forced_unwind&)
15731 this->_M_setstate(ios_base::badbit);
15735 { this->_M_setstate(ios_base::badbit); }
15737 this->setstate(__err);
15741 template<typename _CharT, typename _Traits>
15742 basic_ostream<_CharT, _Traits>&
15743 basic_ostream<_CharT, _Traits>::
15744 write(const _CharT* __s, streamsize __n)
15746 sentry __cerb(*this);
15750 { _M_write(__s, __n); }
15751 catch(__cxxabiv1::__forced_unwind&)
15753 this->_M_setstate(ios_base::badbit);
15757 { this->_M_setstate(ios_base::badbit); }
15761 template<typename _CharT, typename _Traits>
15762 basic_ostream<_CharT, _Traits>&
15763 basic_ostream<_CharT, _Traits>::
15766 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
15769 if (this->rdbuf() && this->rdbuf()->pubsync() == -1)
15770 __err |= ios_base::badbit;
15772 catch(__cxxabiv1::__forced_unwind&)
15774 this->_M_setstate(ios_base::badbit);
15778 { this->_M_setstate(ios_base::badbit); }
15780 this->setstate(__err);
15783 template<typename _CharT, typename _Traits>
15784 typename basic_ostream<_CharT, _Traits>::pos_type
15785 basic_ostream<_CharT, _Traits>::
15788 pos_type __ret = pos_type(-1);
15792 __ret = this->rdbuf()->pubseekoff(0, ios_base::cur, ios_base::out);
15794 catch(__cxxabiv1::__forced_unwind&)
15796 this->_M_setstate(ios_base::badbit);
15800 { this->_M_setstate(ios_base::badbit); }
15803 template<typename _CharT, typename _Traits>
15804 basic_ostream<_CharT, _Traits>&
15805 basic_ostream<_CharT, _Traits>::
15806 seekp(pos_type __pos)
15808 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
15813 const pos_type __p = this->rdbuf()->pubseekpos(__pos,
15815 if (__p == pos_type(off_type(-1)))
15816 __err |= ios_base::failbit;
15819 catch(__cxxabiv1::__forced_unwind&)
15821 this->_M_setstate(ios_base::badbit);
15825 { this->_M_setstate(ios_base::badbit); }
15827 this->setstate(__err);
15830 template<typename _CharT, typename _Traits>
15831 basic_ostream<_CharT, _Traits>&
15832 basic_ostream<_CharT, _Traits>::
15833 seekp(off_type __off, ios_base::seekdir __dir)
15835 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
15840 const pos_type __p = this->rdbuf()->pubseekoff(__off, __dir,
15842 if (__p == pos_type(off_type(-1)))
15843 __err |= ios_base::failbit;
15846 catch(__cxxabiv1::__forced_unwind&)
15848 this->_M_setstate(ios_base::badbit);
15852 { this->_M_setstate(ios_base::badbit); }
15854 this->setstate(__err);
15857 template<typename _CharT, typename _Traits>
15858 basic_ostream<_CharT, _Traits>&
15859 operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s)
15862 __out.setstate(ios_base::badbit);
15865 const size_t __clen = char_traits<char>::length(__s);
15871 __ptr_guard (_CharT *__ip): __p(__ip) { }
15872 ~__ptr_guard() { delete[] __p; }
15873 _CharT* __get() { return __p; }
15874 } __pg (new _CharT[__clen]);
15875 _CharT *__ws = __pg.__get();
15876 for (size_t __i = 0; __i < __clen; ++__i)
15877 __ws[__i] = __out.widen(__s[__i]);
15878 __ostream_insert(__out, __ws, __clen);
15880 catch(__cxxabiv1::__forced_unwind&)
15882 __out._M_setstate(ios_base::badbit);
15886 { __out._M_setstate(ios_base::badbit); }
15890 extern template class basic_ostream<char>;
15891 extern template ostream& endl(ostream&);
15892 extern template ostream& ends(ostream&);
15893 extern template ostream& flush(ostream&);
15894 extern template ostream& operator<<(ostream&, char);
15895 extern template ostream& operator<<(ostream&, unsigned char);
15896 extern template ostream& operator<<(ostream&, signed char);
15897 extern template ostream& operator<<(ostream&, const char*);
15898 extern template ostream& operator<<(ostream&, const unsigned char*);
15899 extern template ostream& operator<<(ostream&, const signed char*);
15900 extern template ostream& ostream::_M_insert(long);
15901 extern template ostream& ostream::_M_insert(unsigned long);
15902 extern template ostream& ostream::_M_insert(bool);
15903 extern template ostream& ostream::_M_insert(long long);
15904 extern template ostream& ostream::_M_insert(unsigned long long);
15905 extern template ostream& ostream::_M_insert(double);
15906 extern template ostream& ostream::_M_insert(long double);
15907 extern template ostream& ostream::_M_insert(const void*);
15908 extern template class basic_ostream<wchar_t>;
15909 extern template wostream& endl(wostream&);
15910 extern template wostream& ends(wostream&);
15911 extern template wostream& flush(wostream&);
15912 extern template wostream& operator<<(wostream&, wchar_t);
15913 extern template wostream& operator<<(wostream&, char);
15914 extern template wostream& operator<<(wostream&, const wchar_t*);
15915 extern template wostream& operator<<(wostream&, const char*);
15916 extern template wostream& wostream::_M_insert(long);
15917 extern template wostream& wostream::_M_insert(unsigned long);
15918 extern template wostream& wostream::_M_insert(bool);
15919 extern template wostream& wostream::_M_insert(long long);
15920 extern template wostream& wostream::_M_insert(unsigned long long);
15921 extern template wostream& wostream::_M_insert(double);
15922 extern template wostream& wostream::_M_insert(long double);
15923 extern template wostream& wostream::_M_insert(const void*);
15926 namespace std __attribute__ ((__visibility__ ("default"))) {
15927 template<typename _CharT, typename _Traits>
15928 class basic_istream : virtual public basic_ios<_CharT, _Traits>
15931 typedef _CharT char_type;
15932 typedef typename _Traits::int_type int_type;
15933 typedef typename _Traits::pos_type pos_type;
15934 typedef typename _Traits::off_type off_type;
15935 typedef _Traits traits_type;
15936 typedef basic_streambuf<_CharT, _Traits> __streambuf_type;
15937 typedef basic_ios<_CharT, _Traits> __ios_type;
15938 typedef basic_istream<_CharT, _Traits> __istream_type;
15939 typedef num_get<_CharT, istreambuf_iterator<_CharT, _Traits> >
15941 typedef ctype<_CharT> __ctype_type;
15943 streamsize _M_gcount;
15946 basic_istream(__streambuf_type* __sb)
15947 : _M_gcount(streamsize(0))
15948 { this->init(__sb); }
15951 { _M_gcount = streamsize(0); }
15953 friend class sentry;
15955 operator>>(__istream_type& (*__pf)(__istream_type&))
15956 { return __pf(*this); }
15958 operator>>(__ios_type& (*__pf)(__ios_type&))
15964 operator>>(ios_base& (*__pf)(ios_base&))
15970 operator>>(bool& __n)
15971 { return _M_extract(__n); }
15973 operator>>(short& __n);
15975 operator>>(unsigned short& __n)
15976 { return _M_extract(__n); }
15978 operator>>(int& __n);
15980 operator>>(unsigned int& __n)
15981 { return _M_extract(__n); }
15983 operator>>(long& __n)
15984 { return _M_extract(__n); }
15986 operator>>(unsigned long& __n)
15987 { return _M_extract(__n); }
15989 operator>>(long long& __n)
15990 { return _M_extract(__n); }
15992 operator>>(unsigned long long& __n)
15993 { return _M_extract(__n); }
15995 operator>>(float& __f)
15996 { return _M_extract(__f); }
15998 operator>>(double& __f)
15999 { return _M_extract(__f); }
16001 operator>>(long double& __f)
16002 { return _M_extract(__f); }
16004 operator>>(void*& __p)
16005 { return _M_extract(__p); }
16007 operator>>(__streambuf_type* __sb);
16010 { return _M_gcount; }
16014 get(char_type& __c);
16016 get(char_type* __s, streamsize __n, char_type __delim);
16018 get(char_type* __s, streamsize __n)
16019 { return this->get(__s, __n, this->widen('\n')); }
16021 get(__streambuf_type& __sb, char_type __delim);
16023 get(__streambuf_type& __sb)
16024 { return this->get(__sb, this->widen('\n')); }
16026 getline(char_type* __s, streamsize __n, char_type __delim);
16028 getline(char_type* __s, streamsize __n)
16029 { return this->getline(__s, __n, this->widen('\n')); }
16033 ignore(streamsize __n);
16035 ignore(streamsize __n, int_type __delim);
16039 read(char_type* __s, streamsize __n);
16041 readsome(char_type* __s, streamsize __n);
16043 putback(char_type __c);
16053 seekg(off_type, ios_base::seekdir);
16056 : _M_gcount(streamsize(0))
16058 template<typename _ValueT>
16060 _M_extract(_ValueT& __v);
16063 basic_istream<char>&
16064 basic_istream<char>::
16065 getline(char_type* __s, streamsize __n, char_type __delim);
16067 basic_istream<char>&
16068 basic_istream<char>::
16069 ignore(streamsize __n);
16071 basic_istream<char>&
16072 basic_istream<char>::
16073 ignore(streamsize __n, int_type __delim);
16075 basic_istream<wchar_t>&
16076 basic_istream<wchar_t>::
16077 getline(char_type* __s, streamsize __n, char_type __delim);
16079 basic_istream<wchar_t>&
16080 basic_istream<wchar_t>::
16081 ignore(streamsize __n);
16083 basic_istream<wchar_t>&
16084 basic_istream<wchar_t>::
16085 ignore(streamsize __n, int_type __delim);
16086 template<typename _CharT, typename _Traits>
16087 class basic_istream<_CharT, _Traits>::sentry
16090 typedef _Traits traits_type;
16091 typedef basic_streambuf<_CharT, _Traits> __streambuf_type;
16092 typedef basic_istream<_CharT, _Traits> __istream_type;
16093 typedef typename __istream_type::__ctype_type __ctype_type;
16094 typedef typename _Traits::int_type __int_type;
16096 sentry(basic_istream<_CharT, _Traits>& __is, bool __noskipws = false);
16097 operator bool() const
16102 template<typename _CharT, typename _Traits>
16103 basic_istream<_CharT, _Traits>&
16104 operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c);
16105 template<class _Traits>
16106 inline basic_istream<char, _Traits>&
16107 operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
16108 { return (__in >> reinterpret_cast<char&>(__c)); }
16109 template<class _Traits>
16110 inline basic_istream<char, _Traits>&
16111 operator>>(basic_istream<char, _Traits>& __in, signed char& __c)
16112 { return (__in >> reinterpret_cast<char&>(__c)); }
16113 template<typename _CharT, typename _Traits>
16114 basic_istream<_CharT, _Traits>&
16115 operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s);
16117 basic_istream<char>&
16118 operator>>(basic_istream<char>& __in, char* __s);
16119 template<class _Traits>
16120 inline basic_istream<char, _Traits>&
16121 operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s)
16122 { return (__in >> reinterpret_cast<char*>(__s)); }
16123 template<class _Traits>
16124 inline basic_istream<char, _Traits>&
16125 operator>>(basic_istream<char, _Traits>& __in, signed char* __s)
16126 { return (__in >> reinterpret_cast<char*>(__s)); }
16127 template<typename _CharT, typename _Traits>
16128 class basic_iostream
16129 : public basic_istream<_CharT, _Traits>,
16130 public basic_ostream<_CharT, _Traits>
16133 typedef _CharT char_type;
16134 typedef typename _Traits::int_type int_type;
16135 typedef typename _Traits::pos_type pos_type;
16136 typedef typename _Traits::off_type off_type;
16137 typedef _Traits traits_type;
16138 typedef basic_istream<_CharT, _Traits> __istream_type;
16139 typedef basic_ostream<_CharT, _Traits> __ostream_type;
16141 basic_iostream(basic_streambuf<_CharT, _Traits>* __sb)
16142 : __istream_type(__sb), __ostream_type(__sb) { }
16144 ~basic_iostream() { }
16147 : __istream_type(), __ostream_type() { }
16149 template<typename _CharT, typename _Traits>
16150 basic_istream<_CharT, _Traits>&
16151 ws(basic_istream<_CharT, _Traits>& __is);
16154 namespace std __attribute__ ((__visibility__ ("default"))) {
16155 template<typename _CharT, typename _Traits>
16156 basic_istream<_CharT, _Traits>::sentry::
16157 sentry(basic_istream<_CharT, _Traits>& __in, bool __noskip) : _M_ok(false)
16159 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
16163 __in.tie()->flush();
16164 if (!__noskip && bool(__in.flags() & ios_base::skipws))
16166 const __int_type __eof = traits_type::eof();
16167 __streambuf_type* __sb = __in.rdbuf();
16168 __int_type __c = __sb->sgetc();
16169 const __ctype_type& __ct = __check_facet(__in._M_ctype);
16170 while (!traits_type::eq_int_type(__c, __eof)
16171 && __ct.is(ctype_base::space,
16172 traits_type::to_char_type(__c)))
16173 __c = __sb->snextc();
16174 if (traits_type::eq_int_type(__c, __eof))
16175 __err |= ios_base::eofbit;
16178 if (__in.good() && __err == ios_base::goodbit)
16182 __err |= ios_base::failbit;
16183 __in.setstate(__err);
16186 template<typename _CharT, typename _Traits>
16187 template<typename _ValueT>
16188 basic_istream<_CharT, _Traits>&
16189 basic_istream<_CharT, _Traits>::
16190 _M_extract(_ValueT& __v)
16192 sentry __cerb(*this, false);
16195 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
16198 const __num_get_type& __ng = __check_facet(this->_M_num_get);
16199 __ng.get(*this, 0, *this, __err, __v);
16201 catch(__cxxabiv1::__forced_unwind&)
16203 this->_M_setstate(ios_base::badbit);
16207 { this->_M_setstate(ios_base::badbit); }
16209 this->setstate(__err);
16213 template<typename _CharT, typename _Traits>
16214 basic_istream<_CharT, _Traits>&
16215 basic_istream<_CharT, _Traits>::
16216 operator>>(short& __n)
16222 if (__gnu_cxx::__numeric_traits<short>::__min <= __l
16223 && __l <= __gnu_cxx::__numeric_traits<short>::__max)
16226 this->setstate(ios_base::failbit);
16230 template<typename _CharT, typename _Traits>
16231 basic_istream<_CharT, _Traits>&
16232 basic_istream<_CharT, _Traits>::
16233 operator>>(int& __n)
16239 if (__gnu_cxx::__numeric_traits<int>::__min <= __l
16240 && __l <= __gnu_cxx::__numeric_traits<int>::__max)
16243 this->setstate(ios_base::failbit);
16247 template<typename _CharT, typename _Traits>
16248 basic_istream<_CharT, _Traits>&
16249 basic_istream<_CharT, _Traits>::
16250 operator>>(__streambuf_type* __sbout)
16252 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
16253 sentry __cerb(*this, false);
16254 if (__cerb && __sbout)
16259 if (!__copy_streambufs_eof(this->rdbuf(), __sbout, __ineof))
16260 __err |= ios_base::failbit;
16262 __err |= ios_base::eofbit;
16264 catch(__cxxabiv1::__forced_unwind&)
16266 this->_M_setstate(ios_base::failbit);
16270 { this->_M_setstate(ios_base::failbit); }
16273 __err |= ios_base::failbit;
16275 this->setstate(__err);
16278 template<typename _CharT, typename _Traits>
16279 typename basic_istream<_CharT, _Traits>::int_type
16280 basic_istream<_CharT, _Traits>::
16283 const int_type __eof = traits_type::eof();
16284 int_type __c = __eof;
16286 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
16287 sentry __cerb(*this, true);
16292 __c = this->rdbuf()->sbumpc();
16293 if (!traits_type::eq_int_type(__c, __eof))
16296 __err |= ios_base::eofbit;
16298 catch(__cxxabiv1::__forced_unwind&)
16300 this->_M_setstate(ios_base::badbit);
16304 { this->_M_setstate(ios_base::badbit); }
16307 __err |= ios_base::failbit;
16309 this->setstate(__err);
16312 template<typename _CharT, typename _Traits>
16313 basic_istream<_CharT, _Traits>&
16314 basic_istream<_CharT, _Traits>::
16315 get(char_type& __c)
16318 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
16319 sentry __cerb(*this, true);
16324 const int_type __cb = this->rdbuf()->sbumpc();
16325 if (!traits_type::eq_int_type(__cb, traits_type::eof()))
16328 __c = traits_type::to_char_type(__cb);
16331 __err |= ios_base::eofbit;
16333 catch(__cxxabiv1::__forced_unwind&)
16335 this->_M_setstate(ios_base::badbit);
16339 { this->_M_setstate(ios_base::badbit); }
16342 __err |= ios_base::failbit;
16344 this->setstate(__err);
16347 template<typename _CharT, typename _Traits>
16348 basic_istream<_CharT, _Traits>&
16349 basic_istream<_CharT, _Traits>::
16350 get(char_type* __s, streamsize __n, char_type __delim)
16353 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
16354 sentry __cerb(*this, true);
16359 const int_type __idelim = traits_type::to_int_type(__delim);
16360 const int_type __eof = traits_type::eof();
16361 __streambuf_type* __sb = this->rdbuf();
16362 int_type __c = __sb->sgetc();
16363 while (_M_gcount + 1 < __n
16364 && !traits_type::eq_int_type(__c, __eof)
16365 && !traits_type::eq_int_type(__c, __idelim))
16367 *__s++ = traits_type::to_char_type(__c);
16369 __c = __sb->snextc();
16371 if (traits_type::eq_int_type(__c, __eof))
16372 __err |= ios_base::eofbit;
16374 catch(__cxxabiv1::__forced_unwind&)
16376 this->_M_setstate(ios_base::badbit);
16380 { this->_M_setstate(ios_base::badbit); }
16383 *__s = char_type();
16385 __err |= ios_base::failbit;
16387 this->setstate(__err);
16390 template<typename _CharT, typename _Traits>
16391 basic_istream<_CharT, _Traits>&
16392 basic_istream<_CharT, _Traits>::
16393 get(__streambuf_type& __sb, char_type __delim)
16396 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
16397 sentry __cerb(*this, true);
16402 const int_type __idelim = traits_type::to_int_type(__delim);
16403 const int_type __eof = traits_type::eof();
16404 __streambuf_type* __this_sb = this->rdbuf();
16405 int_type __c = __this_sb->sgetc();
16406 char_type __c2 = traits_type::to_char_type(__c);
16407 while (!traits_type::eq_int_type(__c, __eof)
16408 && !traits_type::eq_int_type(__c, __idelim)
16409 && !traits_type::eq_int_type(__sb.sputc(__c2), __eof))
16412 __c = __this_sb->snextc();
16413 __c2 = traits_type::to_char_type(__c);
16415 if (traits_type::eq_int_type(__c, __eof))
16416 __err |= ios_base::eofbit;
16418 catch(__cxxabiv1::__forced_unwind&)
16420 this->_M_setstate(ios_base::badbit);
16424 { this->_M_setstate(ios_base::badbit); }
16427 __err |= ios_base::failbit;
16429 this->setstate(__err);
16432 template<typename _CharT, typename _Traits>
16433 basic_istream<_CharT, _Traits>&
16434 basic_istream<_CharT, _Traits>::
16435 getline(char_type* __s, streamsize __n, char_type __delim)
16438 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
16439 sentry __cerb(*this, true);
16444 const int_type __idelim = traits_type::to_int_type(__delim);
16445 const int_type __eof = traits_type::eof();
16446 __streambuf_type* __sb = this->rdbuf();
16447 int_type __c = __sb->sgetc();
16448 while (_M_gcount + 1 < __n
16449 && !traits_type::eq_int_type(__c, __eof)
16450 && !traits_type::eq_int_type(__c, __idelim))
16452 *__s++ = traits_type::to_char_type(__c);
16453 __c = __sb->snextc();
16456 if (traits_type::eq_int_type(__c, __eof))
16457 __err |= ios_base::eofbit;
16460 if (traits_type::eq_int_type(__c, __idelim))
16466 __err |= ios_base::failbit;
16469 catch(__cxxabiv1::__forced_unwind&)
16471 this->_M_setstate(ios_base::badbit);
16475 { this->_M_setstate(ios_base::badbit); }
16478 *__s = char_type();
16480 __err |= ios_base::failbit;
16482 this->setstate(__err);
16485 template<typename _CharT, typename _Traits>
16486 basic_istream<_CharT, _Traits>&
16487 basic_istream<_CharT, _Traits>::
16491 sentry __cerb(*this, true);
16494 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
16497 const int_type __eof = traits_type::eof();
16498 __streambuf_type* __sb = this->rdbuf();
16499 if (traits_type::eq_int_type(__sb->sbumpc(), __eof))
16500 __err |= ios_base::eofbit;
16504 catch(__cxxabiv1::__forced_unwind&)
16506 this->_M_setstate(ios_base::badbit);
16510 { this->_M_setstate(ios_base::badbit); }
16512 this->setstate(__err);
16516 template<typename _CharT, typename _Traits>
16517 basic_istream<_CharT, _Traits>&
16518 basic_istream<_CharT, _Traits>::
16519 ignore(streamsize __n)
16522 sentry __cerb(*this, true);
16523 if (__cerb && __n > 0)
16525 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
16528 const int_type __eof = traits_type::eof();
16529 __streambuf_type* __sb = this->rdbuf();
16530 int_type __c = __sb->sgetc();
16531 bool __large_ignore = false;
16534 while (_M_gcount < __n
16535 && !traits_type::eq_int_type(__c, __eof))
16538 __c = __sb->snextc();
16540 if (__n == __gnu_cxx::__numeric_traits<streamsize>::__max
16541 && !traits_type::eq_int_type(__c, __eof))
16544 __gnu_cxx::__numeric_traits<streamsize>::__min;
16545 __large_ignore = true;
16550 if (__large_ignore)
16551 _M_gcount = __gnu_cxx::__numeric_traits<streamsize>::__max;
16552 if (traits_type::eq_int_type(__c, __eof))
16553 __err |= ios_base::eofbit;
16555 catch(__cxxabiv1::__forced_unwind&)
16557 this->_M_setstate(ios_base::badbit);
16561 { this->_M_setstate(ios_base::badbit); }
16563 this->setstate(__err);
16567 template<typename _CharT, typename _Traits>
16568 basic_istream<_CharT, _Traits>&
16569 basic_istream<_CharT, _Traits>::
16570 ignore(streamsize __n, int_type __delim)
16573 sentry __cerb(*this, true);
16574 if (__cerb && __n > 0)
16576 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
16579 const int_type __eof = traits_type::eof();
16580 __streambuf_type* __sb = this->rdbuf();
16581 int_type __c = __sb->sgetc();
16582 bool __large_ignore = false;
16585 while (_M_gcount < __n
16586 && !traits_type::eq_int_type(__c, __eof)
16587 && !traits_type::eq_int_type(__c, __delim))
16590 __c = __sb->snextc();
16592 if (__n == __gnu_cxx::__numeric_traits<streamsize>::__max
16593 && !traits_type::eq_int_type(__c, __eof)
16594 && !traits_type::eq_int_type(__c, __delim))
16597 __gnu_cxx::__numeric_traits<streamsize>::__min;
16598 __large_ignore = true;
16603 if (__large_ignore)
16604 _M_gcount = __gnu_cxx::__numeric_traits<streamsize>::__max;
16605 if (traits_type::eq_int_type(__c, __eof))
16606 __err |= ios_base::eofbit;
16607 else if (traits_type::eq_int_type(__c, __delim))
16610 < __gnu_cxx::__numeric_traits<streamsize>::__max)
16615 catch(__cxxabiv1::__forced_unwind&)
16617 this->_M_setstate(ios_base::badbit);
16621 { this->_M_setstate(ios_base::badbit); }
16623 this->setstate(__err);
16627 template<typename _CharT, typename _Traits>
16628 typename basic_istream<_CharT, _Traits>::int_type
16629 basic_istream<_CharT, _Traits>::
16632 int_type __c = traits_type::eof();
16634 sentry __cerb(*this, true);
16637 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
16640 __c = this->rdbuf()->sgetc();
16641 if (traits_type::eq_int_type(__c, traits_type::eof()))
16642 __err |= ios_base::eofbit;
16644 catch(__cxxabiv1::__forced_unwind&)
16646 this->_M_setstate(ios_base::badbit);
16650 { this->_M_setstate(ios_base::badbit); }
16652 this->setstate(__err);
16656 template<typename _CharT, typename _Traits>
16657 basic_istream<_CharT, _Traits>&
16658 basic_istream<_CharT, _Traits>::
16659 read(char_type* __s, streamsize __n)
16662 sentry __cerb(*this, true);
16665 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
16668 _M_gcount = this->rdbuf()->sgetn(__s, __n);
16669 if (_M_gcount != __n)
16670 __err |= (ios_base::eofbit | ios_base::failbit);
16672 catch(__cxxabiv1::__forced_unwind&)
16674 this->_M_setstate(ios_base::badbit);
16678 { this->_M_setstate(ios_base::badbit); }
16680 this->setstate(__err);
16684 template<typename _CharT, typename _Traits>
16686 basic_istream<_CharT, _Traits>::
16687 readsome(char_type* __s, streamsize __n)
16690 sentry __cerb(*this, true);
16693 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
16696 const streamsize __num = this->rdbuf()->in_avail();
16698 _M_gcount = this->rdbuf()->sgetn(__s, std::min(__num, __n));
16699 else if (__num == -1)
16700 __err |= ios_base::eofbit;
16702 catch(__cxxabiv1::__forced_unwind&)
16704 this->_M_setstate(ios_base::badbit);
16708 { this->_M_setstate(ios_base::badbit); }
16710 this->setstate(__err);
16714 template<typename _CharT, typename _Traits>
16715 basic_istream<_CharT, _Traits>&
16716 basic_istream<_CharT, _Traits>::
16717 putback(char_type __c)
16720 sentry __cerb(*this, true);
16723 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
16726 const int_type __eof = traits_type::eof();
16727 __streambuf_type* __sb = this->rdbuf();
16729 || traits_type::eq_int_type(__sb->sputbackc(__c), __eof))
16730 __err |= ios_base::badbit;
16732 catch(__cxxabiv1::__forced_unwind&)
16734 this->_M_setstate(ios_base::badbit);
16738 { this->_M_setstate(ios_base::badbit); }
16740 this->setstate(__err);
16744 template<typename _CharT, typename _Traits>
16745 basic_istream<_CharT, _Traits>&
16746 basic_istream<_CharT, _Traits>::
16750 sentry __cerb(*this, true);
16753 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
16756 const int_type __eof = traits_type::eof();
16757 __streambuf_type* __sb = this->rdbuf();
16759 || traits_type::eq_int_type(__sb->sungetc(), __eof))
16760 __err |= ios_base::badbit;
16762 catch(__cxxabiv1::__forced_unwind&)
16764 this->_M_setstate(ios_base::badbit);
16768 { this->_M_setstate(ios_base::badbit); }
16770 this->setstate(__err);
16774 template<typename _CharT, typename _Traits>
16776 basic_istream<_CharT, _Traits>::
16780 sentry __cerb(*this, true);
16783 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
16786 __streambuf_type* __sb = this->rdbuf();
16789 if (__sb->pubsync() == -1)
16790 __err |= ios_base::badbit;
16795 catch(__cxxabiv1::__forced_unwind&)
16797 this->_M_setstate(ios_base::badbit);
16801 { this->_M_setstate(ios_base::badbit); }
16803 this->setstate(__err);
16807 template<typename _CharT, typename _Traits>
16808 typename basic_istream<_CharT, _Traits>::pos_type
16809 basic_istream<_CharT, _Traits>::
16812 pos_type __ret = pos_type(-1);
16816 __ret = this->rdbuf()->pubseekoff(0, ios_base::cur,
16819 catch(__cxxabiv1::__forced_unwind&)
16821 this->_M_setstate(ios_base::badbit);
16825 { this->_M_setstate(ios_base::badbit); }
16828 template<typename _CharT, typename _Traits>
16829 basic_istream<_CharT, _Traits>&
16830 basic_istream<_CharT, _Traits>::
16831 seekg(pos_type __pos)
16833 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
16838 const pos_type __p = this->rdbuf()->pubseekpos(__pos,
16840 if (__p == pos_type(off_type(-1)))
16841 __err |= ios_base::failbit;
16844 catch(__cxxabiv1::__forced_unwind&)
16846 this->_M_setstate(ios_base::badbit);
16850 { this->_M_setstate(ios_base::badbit); }
16852 this->setstate(__err);
16855 template<typename _CharT, typename _Traits>
16856 basic_istream<_CharT, _Traits>&
16857 basic_istream<_CharT, _Traits>::
16858 seekg(off_type __off, ios_base::seekdir __dir)
16860 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
16865 const pos_type __p = this->rdbuf()->pubseekoff(__off, __dir,
16867 if (__p == pos_type(off_type(-1)))
16868 __err |= ios_base::failbit;
16871 catch(__cxxabiv1::__forced_unwind&)
16873 this->_M_setstate(ios_base::badbit);
16877 { this->_M_setstate(ios_base::badbit); }
16879 this->setstate(__err);
16882 template<typename _CharT, typename _Traits>
16883 basic_istream<_CharT, _Traits>&
16884 operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
16886 typedef basic_istream<_CharT, _Traits> __istream_type;
16887 typedef typename __istream_type::int_type __int_type;
16888 typename __istream_type::sentry __cerb(__in, false);
16891 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
16894 const __int_type __cb = __in.rdbuf()->sbumpc();
16895 if (!_Traits::eq_int_type(__cb, _Traits::eof()))
16896 __c = _Traits::to_char_type(__cb);
16898 __err |= (ios_base::eofbit | ios_base::failbit);
16900 catch(__cxxabiv1::__forced_unwind&)
16902 __in._M_setstate(ios_base::badbit);
16906 { __in._M_setstate(ios_base::badbit); }
16908 __in.setstate(__err);
16912 template<typename _CharT, typename _Traits>
16913 basic_istream<_CharT, _Traits>&
16914 operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)
16916 typedef basic_istream<_CharT, _Traits> __istream_type;
16917 typedef basic_streambuf<_CharT, _Traits> __streambuf_type;
16918 typedef typename _Traits::int_type int_type;
16919 typedef _CharT char_type;
16920 typedef ctype<_CharT> __ctype_type;
16921 streamsize __extracted = 0;
16922 ios_base::iostate __err = ios_base::iostate(ios_base::goodbit);
16923 typename __istream_type::sentry __cerb(__in, false);
16928 streamsize __num = __in.width();
16930 __num = __gnu_cxx::__numeric_traits<streamsize>::__max;
16931 const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc());
16932 const int_type __eof = _Traits::eof();
16933 __streambuf_type* __sb = __in.rdbuf();
16934 int_type __c = __sb->sgetc();
16935 while (__extracted < __num - 1
16936 && !_Traits::eq_int_type(__c, __eof)
16937 && !__ct.is(ctype_base::space,
16938 _Traits::to_char_type(__c)))
16940 *__s++ = _Traits::to_char_type(__c);
16942 __c = __sb->snextc();
16944 if (_Traits::eq_int_type(__c, __eof))
16945 __err |= ios_base::eofbit;
16946 *__s = char_type();
16949 catch(__cxxabiv1::__forced_unwind&)
16951 __in._M_setstate(ios_base::badbit);
16955 { __in._M_setstate(ios_base::badbit); }
16958 __err |= ios_base::failbit;
16960 __in.setstate(__err);
16963 template<typename _CharT, typename _Traits>
16964 basic_istream<_CharT, _Traits>&
16965 ws(basic_istream<_CharT, _Traits>& __in)
16967 typedef basic_istream<_CharT, _Traits> __istream_type;
16968 typedef basic_streambuf<_CharT, _Traits> __streambuf_type;
16969 typedef typename __istream_type::int_type __int_type;
16970 typedef ctype<_CharT> __ctype_type;
16971 const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc());
16972 const __int_type __eof = _Traits::eof();
16973 __streambuf_type* __sb = __in.rdbuf();
16974 __int_type __c = __sb->sgetc();
16975 while (!_Traits::eq_int_type(__c, __eof)
16976 && __ct.is(ctype_base::space, _Traits::to_char_type(__c)))
16977 __c = __sb->snextc();
16978 if (_Traits::eq_int_type(__c, __eof))
16979 __in.setstate(ios_base::eofbit);
16982 extern template class basic_istream<char>;
16983 extern template istream& ws(istream&);
16984 extern template istream& operator>>(istream&, char&);
16985 extern template istream& operator>>(istream&, char*);
16986 extern template istream& operator>>(istream&, unsigned char&);
16987 extern template istream& operator>>(istream&, signed char&);
16988 extern template istream& operator>>(istream&, unsigned char*);
16989 extern template istream& operator>>(istream&, signed char*);
16990 extern template istream& istream::_M_extract(unsigned short&);
16991 extern template istream& istream::_M_extract(unsigned int&);
16992 extern template istream& istream::_M_extract(long&);
16993 extern template istream& istream::_M_extract(unsigned long&);
16994 extern template istream& istream::_M_extract(bool&);
16995 extern template istream& istream::_M_extract(long long&);
16996 extern template istream& istream::_M_extract(unsigned long long&);
16997 extern template istream& istream::_M_extract(float&);
16998 extern template istream& istream::_M_extract(double&);
16999 extern template istream& istream::_M_extract(long double&);
17000 extern template istream& istream::_M_extract(void*&);
17001 extern template class basic_iostream<char>;
17002 extern template class basic_istream<wchar_t>;
17003 extern template wistream& ws(wistream&);
17004 extern template wistream& operator>>(wistream&, wchar_t&);
17005 extern template wistream& operator>>(wistream&, wchar_t*);
17006 extern template wistream& wistream::_M_extract(unsigned short&);
17007 extern template wistream& wistream::_M_extract(unsigned int&);
17008 extern template wistream& wistream::_M_extract(long&);
17009 extern template wistream& wistream::_M_extract(unsigned long&);
17010 extern template wistream& wistream::_M_extract(bool&);
17011 extern template wistream& wistream::_M_extract(long long&);
17012 extern template wistream& wistream::_M_extract(unsigned long long&);
17013 extern template wistream& wistream::_M_extract(float&);
17014 extern template wistream& wistream::_M_extract(double&);
17015 extern template wistream& wistream::_M_extract(long double&);
17016 extern template wistream& wistream::_M_extract(void*&);
17017 extern template class basic_iostream<wchar_t>;
17019 namespace std __attribute__ ((__visibility__ ("default"))) {
17020 extern istream cin;
17021 extern ostream cout;
17022 extern ostream cerr;
17023 extern ostream clog;
17024 extern wistream wcin;
17025 extern wostream wcout;
17026 extern wostream wcerr;
17027 extern wostream wclog;
17028 static ios_base::Init __ioinit;
17031 namespace std __attribute__ ((__visibility__ ("default"))) {
17032 template<typename _T1, typename _T2>
17034 _Construct(_T1* __p, const _T2& __value)
17036 ::new(static_cast<void*>(__p)) _T1(__value);
17038 template<typename _Tp>
17040 _Destroy(_Tp* __pointer)
17041 { __pointer->~_Tp(); }
17043 struct _Destroy_aux
17045 template<typename _ForwardIterator>
17047 __destroy(_ForwardIterator __first, _ForwardIterator __last)
17049 for (; __first != __last; ++__first)
17050 std::_Destroy(&*__first);
17054 struct _Destroy_aux<true>
17056 template<typename _ForwardIterator>
17058 __destroy(_ForwardIterator, _ForwardIterator) { }
17060 template<typename _ForwardIterator>
17062 _Destroy(_ForwardIterator __first, _ForwardIterator __last)
17064 typedef typename iterator_traits<_ForwardIterator>::value_type
17066 std::_Destroy_aux<__has_trivial_destructor(_Value_type)>::
17067 __destroy(__first, __last);
17069 template <typename _Tp> class allocator;
17070 template<typename _ForwardIterator, typename _Allocator>
17072 _Destroy(_ForwardIterator __first, _ForwardIterator __last,
17073 _Allocator& __alloc)
17075 for (; __first != __last; ++__first)
17076 __alloc.destroy(&*__first);
17078 template<typename _ForwardIterator, typename _Tp>
17080 _Destroy(_ForwardIterator __first, _ForwardIterator __last,
17083 _Destroy(__first, __last);
17086 namespace std __attribute__ ((__visibility__ ("default"))) {
17088 struct __uninitialized_copy
17090 template<typename _InputIterator, typename _ForwardIterator>
17091 static _ForwardIterator
17092 uninitialized_copy(_InputIterator __first, _InputIterator __last,
17093 _ForwardIterator __result)
17095 _ForwardIterator __cur = __result;
17098 for (; __first != __last; ++__first, ++__cur)
17099 ::new(static_cast<void*>(&*__cur)) typename
17100 iterator_traits<_ForwardIterator>::value_type(*__first);
17105 std::_Destroy(__result, __cur);
17111 struct __uninitialized_copy<true>
17113 template<typename _InputIterator, typename _ForwardIterator>
17114 static _ForwardIterator
17115 uninitialized_copy(_InputIterator __first, _InputIterator __last,
17116 _ForwardIterator __result)
17117 { return std::copy(__first, __last, __result); }
17119 template<typename _InputIterator, typename _ForwardIterator>
17120 inline _ForwardIterator
17121 uninitialized_copy(_InputIterator __first, _InputIterator __last,
17122 _ForwardIterator __result)
17124 typedef typename iterator_traits<_InputIterator>::value_type
17126 typedef typename iterator_traits<_ForwardIterator>::value_type
17128 return std::__uninitialized_copy<(__is_pod(_ValueType1)
17129 && __is_pod(_ValueType2))>::
17130 uninitialized_copy(__first, __last, __result);
17133 struct __uninitialized_fill
17135 template<typename _ForwardIterator, typename _Tp>
17137 uninitialized_fill(_ForwardIterator __first,
17138 _ForwardIterator __last, const _Tp& __x)
17140 _ForwardIterator __cur = __first;
17143 for (; __cur != __last; ++__cur)
17144 std::_Construct(&*__cur, __x);
17148 std::_Destroy(__first, __cur);
17154 struct __uninitialized_fill<true>
17156 template<typename _ForwardIterator, typename _Tp>
17158 uninitialized_fill(_ForwardIterator __first,
17159 _ForwardIterator __last, const _Tp& __x)
17160 { std::fill(__first, __last, __x); }
17162 template<typename _ForwardIterator, typename _Tp>
17164 uninitialized_fill(_ForwardIterator __first, _ForwardIterator __last,
17167 typedef typename iterator_traits<_ForwardIterator>::value_type
17169 std::__uninitialized_fill<__is_pod(_ValueType)>::
17170 uninitialized_fill(__first, __last, __x);
17173 struct __uninitialized_fill_n
17175 template<typename _ForwardIterator, typename _Size, typename _Tp>
17177 uninitialized_fill_n(_ForwardIterator __first, _Size __n,
17180 _ForwardIterator __cur = __first;
17183 for (; __n > 0; --__n, ++__cur)
17184 std::_Construct(&*__cur, __x);
17188 std::_Destroy(__first, __cur);
17194 struct __uninitialized_fill_n<true>
17196 template<typename _ForwardIterator, typename _Size, typename _Tp>
17198 uninitialized_fill_n(_ForwardIterator __first, _Size __n,
17200 { std::fill_n(__first, __n, __x); }
17202 template<typename _ForwardIterator, typename _Size, typename _Tp>
17204 uninitialized_fill_n(_ForwardIterator __first, _Size __n, const _Tp& __x)
17206 typedef typename iterator_traits<_ForwardIterator>::value_type
17208 std::__uninitialized_fill_n<__is_pod(_ValueType)>::
17209 uninitialized_fill_n(__first, __n, __x);
17211 template<typename _InputIterator, typename _ForwardIterator,
17212 typename _Allocator>
17214 __uninitialized_copy_a(_InputIterator __first, _InputIterator __last,
17215 _ForwardIterator __result, _Allocator& __alloc)
17217 _ForwardIterator __cur = __result;
17220 for (; __first != __last; ++__first, ++__cur)
17221 __alloc.construct(&*__cur, *__first);
17226 std::_Destroy(__result, __cur, __alloc);
17230 template<typename _InputIterator, typename _ForwardIterator, typename _Tp>
17231 inline _ForwardIterator
17232 __uninitialized_copy_a(_InputIterator __first, _InputIterator __last,
17233 _ForwardIterator __result, allocator<_Tp>&)
17234 { return std::uninitialized_copy(__first, __last, __result); }
17235 template<typename _InputIterator, typename _ForwardIterator,
17236 typename _Allocator>
17237 inline _ForwardIterator
17238 __uninitialized_move_a(_InputIterator __first, _InputIterator __last,
17239 _ForwardIterator __result, _Allocator& __alloc)
17241 return std::__uninitialized_copy_a((__first),
17243 __result, __alloc);
17245 template<typename _ForwardIterator, typename _Tp, typename _Allocator>
17247 __uninitialized_fill_a(_ForwardIterator __first, _ForwardIterator __last,
17248 const _Tp& __x, _Allocator& __alloc)
17250 _ForwardIterator __cur = __first;
17253 for (; __cur != __last; ++__cur)
17254 __alloc.construct(&*__cur, __x);
17258 std::_Destroy(__first, __cur, __alloc);
17262 template<typename _ForwardIterator, typename _Tp, typename _Tp2>
17264 __uninitialized_fill_a(_ForwardIterator __first, _ForwardIterator __last,
17265 const _Tp& __x, allocator<_Tp2>&)
17266 { std::uninitialized_fill(__first, __last, __x); }
17267 template<typename _ForwardIterator, typename _Size, typename _Tp,
17268 typename _Allocator>
17270 __uninitialized_fill_n_a(_ForwardIterator __first, _Size __n,
17271 const _Tp& __x, _Allocator& __alloc)
17273 _ForwardIterator __cur = __first;
17276 for (; __n > 0; --__n, ++__cur)
17277 __alloc.construct(&*__cur, __x);
17281 std::_Destroy(__first, __cur, __alloc);
17285 template<typename _ForwardIterator, typename _Size, typename _Tp,
17288 __uninitialized_fill_n_a(_ForwardIterator __first, _Size __n,
17289 const _Tp& __x, allocator<_Tp2>&)
17290 { std::uninitialized_fill_n(__first, __n, __x); }
17291 template<typename _InputIterator1, typename _InputIterator2,
17292 typename _ForwardIterator, typename _Allocator>
17293 inline _ForwardIterator
17294 __uninitialized_copy_move(_InputIterator1 __first1,
17295 _InputIterator1 __last1,
17296 _InputIterator2 __first2,
17297 _InputIterator2 __last2,
17298 _ForwardIterator __result,
17299 _Allocator& __alloc)
17301 _ForwardIterator __mid = std::__uninitialized_copy_a(__first1, __last1,
17306 return std::__uninitialized_move_a(__first2, __last2, __mid, __alloc);
17310 std::_Destroy(__result, __mid, __alloc);
17314 template<typename _InputIterator1, typename _InputIterator2,
17315 typename _ForwardIterator, typename _Allocator>
17316 inline _ForwardIterator
17317 __uninitialized_move_copy(_InputIterator1 __first1,
17318 _InputIterator1 __last1,
17319 _InputIterator2 __first2,
17320 _InputIterator2 __last2,
17321 _ForwardIterator __result,
17322 _Allocator& __alloc)
17324 _ForwardIterator __mid = std::__uninitialized_move_a(__first1, __last1,
17329 return std::__uninitialized_copy_a(__first2, __last2, __mid, __alloc);
17333 std::_Destroy(__result, __mid, __alloc);
17337 template<typename _ForwardIterator, typename _Tp, typename _InputIterator,
17338 typename _Allocator>
17339 inline _ForwardIterator
17340 __uninitialized_fill_move(_ForwardIterator __result, _ForwardIterator __mid,
17341 const _Tp& __x, _InputIterator __first,
17342 _InputIterator __last, _Allocator& __alloc)
17344 std::__uninitialized_fill_a(__result, __mid, __x, __alloc);
17347 return std::__uninitialized_move_a(__first, __last, __mid, __alloc);
17351 std::_Destroy(__result, __mid, __alloc);
17355 template<typename _InputIterator, typename _ForwardIterator, typename _Tp,
17356 typename _Allocator>
17358 __uninitialized_move_fill(_InputIterator __first1, _InputIterator __last1,
17359 _ForwardIterator __first2,
17360 _ForwardIterator __last2, const _Tp& __x,
17361 _Allocator& __alloc)
17363 _ForwardIterator __mid2 = std::__uninitialized_move_a(__first1, __last1,
17368 std::__uninitialized_fill_a(__mid2, __last2, __x, __alloc);
17372 std::_Destroy(__first2, __mid2, __alloc);
17377 namespace std __attribute__ ((__visibility__ ("default"))) {
17378 template<typename _Tp, typename _Alloc>
17379 struct _Vector_base
17381 typedef typename _Alloc::template rebind<_Tp>::other _Tp_alloc_type;
17382 struct _Vector_impl
17383 : public _Tp_alloc_type
17385 typename _Tp_alloc_type::pointer _M_start;
17386 typename _Tp_alloc_type::pointer _M_finish;
17387 typename _Tp_alloc_type::pointer _M_end_of_storage;
17389 : _Tp_alloc_type(), _M_start(0), _M_finish(0), _M_end_of_storage(0)
17391 _Vector_impl(_Tp_alloc_type const& __a)
17392 : _Tp_alloc_type(__a), _M_start(0), _M_finish(0), _M_end_of_storage(0)
17396 typedef _Alloc allocator_type;
17398 _M_get_Tp_allocator()
17399 { return *static_cast<_Tp_alloc_type*>(&this->_M_impl); }
17400 const _Tp_alloc_type&
17401 _M_get_Tp_allocator() const
17402 { return *static_cast<const _Tp_alloc_type*>(&this->_M_impl); }
17404 get_allocator() const
17405 { return allocator_type(_M_get_Tp_allocator()); }
17408 _Vector_base(const allocator_type& __a)
17410 _Vector_base(size_t __n, const allocator_type& __a)
17413 this->_M_impl._M_start = this->_M_allocate(__n);
17414 this->_M_impl._M_finish = this->_M_impl._M_start;
17415 this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n;
17418 { _M_deallocate(this->_M_impl._M_start, this->_M_impl._M_end_of_storage
17419 - this->_M_impl._M_start); }
17421 _Vector_impl _M_impl;
17422 typename _Tp_alloc_type::pointer
17423 _M_allocate(size_t __n)
17424 { return __n != 0 ? _M_impl.allocate(__n) : 0; }
17426 _M_deallocate(typename _Tp_alloc_type::pointer __p, size_t __n)
17429 _M_impl.deallocate(__p, __n);
17432 template<typename _Tp, typename _Alloc = std::allocator<_Tp> >
17433 class vector : protected _Vector_base<_Tp, _Alloc>
17435 typedef typename _Alloc::value_type _Alloc_value_type;
17438 typedef _Vector_base<_Tp, _Alloc> _Base;
17439 typedef typename _Base::_Tp_alloc_type _Tp_alloc_type;
17441 typedef _Tp value_type;
17442 typedef typename _Tp_alloc_type::pointer pointer;
17443 typedef typename _Tp_alloc_type::const_pointer const_pointer;
17444 typedef typename _Tp_alloc_type::reference reference;
17445 typedef typename _Tp_alloc_type::const_reference const_reference;
17446 typedef __gnu_cxx::__normal_iterator<pointer, vector> iterator;
17447 typedef __gnu_cxx::__normal_iterator<const_pointer, vector>
17449 typedef std::reverse_iterator<const_iterator> const_reverse_iterator;
17450 typedef std::reverse_iterator<iterator> reverse_iterator;
17451 typedef size_t size_type;
17452 typedef ptrdiff_t difference_type;
17453 typedef _Alloc allocator_type;
17455 using _Base::_M_allocate;
17456 using _Base::_M_deallocate;
17457 using _Base::_M_impl;
17458 using _Base::_M_get_Tp_allocator;
17463 vector(const allocator_type& __a)
17466 vector(size_type __n, const value_type& __value = value_type(),
17467 const allocator_type& __a = allocator_type())
17469 { _M_fill_initialize(__n, __value); }
17470 vector(const vector& __x)
17471 : _Base(__x.size(), __x._M_get_Tp_allocator())
17472 { this->_M_impl._M_finish =
17473 std::__uninitialized_copy_a(__x.begin(), __x.end(),
17474 this->_M_impl._M_start,
17475 _M_get_Tp_allocator());
17477 template<typename _InputIterator>
17478 vector(_InputIterator __first, _InputIterator __last,
17479 const allocator_type& __a = allocator_type())
17482 typedef typename std::__is_integer<_InputIterator>::__type _Integral;
17483 _M_initialize_dispatch(__first, __last, _Integral());
17486 { std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
17487 _M_get_Tp_allocator()); }
17489 operator=(const vector& __x);
17491 assign(size_type __n, const value_type& __val)
17492 { _M_fill_assign(__n, __val); }
17493 template<typename _InputIterator>
17495 assign(_InputIterator __first, _InputIterator __last)
17497 typedef typename std::__is_integer<_InputIterator>::__type _Integral;
17498 _M_assign_dispatch(__first, __last, _Integral());
17500 using _Base::get_allocator;
17503 { return iterator(this->_M_impl._M_start); }
17506 { return const_iterator(this->_M_impl._M_start); }
17509 { return iterator(this->_M_impl._M_finish); }
17512 { return const_iterator(this->_M_impl._M_finish); }
17515 { return reverse_iterator(end()); }
17516 const_reverse_iterator
17518 { return const_reverse_iterator(end()); }
17521 { return reverse_iterator(begin()); }
17522 const_reverse_iterator
17524 { return const_reverse_iterator(begin()); }
17527 { return size_type(this->_M_impl._M_finish - this->_M_impl._M_start); }
17530 { return _M_get_Tp_allocator().max_size(); }
17532 resize(size_type __new_size, value_type __x = value_type())
17534 if (__new_size < size())
17535 _M_erase_at_end(this->_M_impl._M_start + __new_size);
17537 insert(end(), __new_size - size(), __x);
17541 { return size_type(this->_M_impl._M_end_of_storage
17542 - this->_M_impl._M_start); }
17545 { return begin() == end(); }
17547 reserve(size_type __n);
17549 operator[](size_type __n)
17550 { return *(this->_M_impl._M_start + __n); }
17552 operator[](size_type __n) const
17553 { return *(this->_M_impl._M_start + __n); }
17556 _M_range_check(size_type __n) const
17558 if (__n >= this->size())
17559 __throw_out_of_range(("vector::_M_range_check"));
17565 _M_range_check(__n);
17566 return (*this)[__n];
17569 at(size_type __n) const
17571 _M_range_check(__n);
17572 return (*this)[__n];
17576 { return *begin(); }
17579 { return *begin(); }
17582 { return *(end() - 1); }
17585 { return *(end() - 1); }
17588 { return pointer(this->_M_impl._M_start); }
17591 { return const_pointer(this->_M_impl._M_start); }
17593 push_back(const value_type& __x)
17595 if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage)
17597 this->_M_impl.construct(this->_M_impl._M_finish, __x);
17598 ++this->_M_impl._M_finish;
17601 _M_insert_aux(end(), __x);
17606 --this->_M_impl._M_finish;
17607 this->_M_impl.destroy(this->_M_impl._M_finish);
17610 insert(iterator __position, const value_type& __x);
17612 insert(iterator __position, size_type __n, const value_type& __x)
17613 { _M_fill_insert(__position, __n, __x); }
17614 template<typename _InputIterator>
17616 insert(iterator __position, _InputIterator __first,
17617 _InputIterator __last)
17619 typedef typename std::__is_integer<_InputIterator>::__type _Integral;
17620 _M_insert_dispatch(__position, __first, __last, _Integral());
17623 erase(iterator __position);
17625 erase(iterator __first, iterator __last);
17629 std::swap(this->_M_impl._M_start, __x._M_impl._M_start);
17630 std::swap(this->_M_impl._M_finish, __x._M_impl._M_finish);
17631 std::swap(this->_M_impl._M_end_of_storage,
17632 __x._M_impl._M_end_of_storage);
17633 std::__alloc_swap<_Tp_alloc_type>::_S_do_it(_M_get_Tp_allocator(),
17634 __x._M_get_Tp_allocator());
17638 { _M_erase_at_end(this->_M_impl._M_start); }
17640 template<typename _ForwardIterator>
17642 _M_allocate_and_copy(size_type __n,
17643 _ForwardIterator __first, _ForwardIterator __last)
17645 pointer __result = this->_M_allocate(__n);
17648 std::__uninitialized_copy_a(__first, __last, __result,
17649 _M_get_Tp_allocator());
17654 _M_deallocate(__result, __n);
17658 template<typename _Integer>
17660 _M_initialize_dispatch(_Integer __n, _Integer __value, __true_type)
17662 this->_M_impl._M_start = _M_allocate(static_cast<size_type>(__n));
17663 this->_M_impl._M_end_of_storage =
17664 this->_M_impl._M_start + static_cast<size_type>(__n);
17665 _M_fill_initialize(static_cast<size_type>(__n), __value);
17667 template<typename _InputIterator>
17669 _M_initialize_dispatch(_InputIterator __first, _InputIterator __last,
17672 typedef typename std::iterator_traits<_InputIterator>::
17673 iterator_category _IterCategory;
17674 _M_range_initialize(__first, __last, _IterCategory());
17676 template<typename _InputIterator>
17678 _M_range_initialize(_InputIterator __first,
17679 _InputIterator __last, std::input_iterator_tag)
17681 for (; __first != __last; ++__first)
17682 push_back(*__first);
17684 template<typename _ForwardIterator>
17686 _M_range_initialize(_ForwardIterator __first,
17687 _ForwardIterator __last, std::forward_iterator_tag)
17689 const size_type __n = std::distance(__first, __last);
17690 this->_M_impl._M_start = this->_M_allocate(__n);
17691 this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n;
17692 this->_M_impl._M_finish =
17693 std::__uninitialized_copy_a(__first, __last,
17694 this->_M_impl._M_start,
17695 _M_get_Tp_allocator());
17698 _M_fill_initialize(size_type __n, const value_type& __value)
17700 std::__uninitialized_fill_n_a(this->_M_impl._M_start, __n, __value,
17701 _M_get_Tp_allocator());
17702 this->_M_impl._M_finish = this->_M_impl._M_end_of_storage;
17704 template<typename _Integer>
17706 _M_assign_dispatch(_Integer __n, _Integer __val, __true_type)
17707 { _M_fill_assign(__n, __val); }
17708 template<typename _InputIterator>
17710 _M_assign_dispatch(_InputIterator __first, _InputIterator __last,
17713 typedef typename std::iterator_traits<_InputIterator>::
17714 iterator_category _IterCategory;
17715 _M_assign_aux(__first, __last, _IterCategory());
17717 template<typename _InputIterator>
17719 _M_assign_aux(_InputIterator __first, _InputIterator __last,
17720 std::input_iterator_tag);
17721 template<typename _ForwardIterator>
17723 _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last,
17724 std::forward_iterator_tag);
17726 _M_fill_assign(size_type __n, const value_type& __val);
17727 template<typename _Integer>
17729 _M_insert_dispatch(iterator __pos, _Integer __n, _Integer __val,
17731 { _M_fill_insert(__pos, __n, __val); }
17732 template<typename _InputIterator>
17734 _M_insert_dispatch(iterator __pos, _InputIterator __first,
17735 _InputIterator __last, __false_type)
17737 typedef typename std::iterator_traits<_InputIterator>::
17738 iterator_category _IterCategory;
17739 _M_range_insert(__pos, __first, __last, _IterCategory());
17741 template<typename _InputIterator>
17743 _M_range_insert(iterator __pos, _InputIterator __first,
17744 _InputIterator __last, std::input_iterator_tag);
17745 template<typename _ForwardIterator>
17747 _M_range_insert(iterator __pos, _ForwardIterator __first,
17748 _ForwardIterator __last, std::forward_iterator_tag);
17750 _M_fill_insert(iterator __pos, size_type __n, const value_type& __x);
17752 _M_insert_aux(iterator __position, const value_type& __x);
17754 _M_check_len(size_type __n, const char* __s) const
17756 if (max_size() - size() < __n)
17757 __throw_length_error((__s));
17758 const size_type __len = size() + std::max(size(), __n);
17759 return (__len < size() || __len > max_size()) ? max_size() : __len;
17762 _M_erase_at_end(pointer __pos)
17764 std::_Destroy(__pos, this->_M_impl._M_finish, _M_get_Tp_allocator());
17765 this->_M_impl._M_finish = __pos;
17768 template<typename _Tp, typename _Alloc>
17770 operator==(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y)
17771 { return (__x.size() == __y.size()
17772 && std::equal(__x.begin(), __x.end(), __y.begin())); }
17773 template<typename _Tp, typename _Alloc>
17775 operator<(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y)
17776 { return std::lexicographical_compare(__x.begin(), __x.end(),
17777 __y.begin(), __y.end()); }
17778 template<typename _Tp, typename _Alloc>
17780 operator!=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y)
17781 { return !(__x == __y); }
17782 template<typename _Tp, typename _Alloc>
17784 operator>(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y)
17785 { return __y < __x; }
17786 template<typename _Tp, typename _Alloc>
17788 operator<=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y)
17789 { return !(__y < __x); }
17790 template<typename _Tp, typename _Alloc>
17792 operator>=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y)
17793 { return !(__x < __y); }
17794 template<typename _Tp, typename _Alloc>
17796 swap(vector<_Tp, _Alloc>& __x, vector<_Tp, _Alloc>& __y)
17799 namespace std __attribute__ ((__visibility__ ("default"))) {
17800 typedef unsigned long _Bit_type;
17801 enum { _S_word_bit = int(8 * sizeof(_Bit_type)) };
17802 struct _Bit_reference
17806 _Bit_reference(_Bit_type * __x, _Bit_type __y)
17807 : _M_p(__x), _M_mask(__y) { }
17808 _Bit_reference() : _M_p(0), _M_mask(0) { }
17809 operator bool() const
17810 { return !!(*_M_p & _M_mask); }
17812 operator=(bool __x)
17821 operator=(const _Bit_reference& __x)
17822 { return *this = bool(__x); }
17824 operator==(const _Bit_reference& __x) const
17825 { return bool(*this) == bool(__x); }
17827 operator<(const _Bit_reference& __x) const
17828 { return !bool(*this) && bool(__x); }
17831 { *_M_p ^= _M_mask; }
17833 struct _Bit_iterator_base
17834 : public std::iterator<std::random_access_iterator_tag, bool>
17837 unsigned int _M_offset;
17838 _Bit_iterator_base(_Bit_type * __x, unsigned int __y)
17839 : _M_p(__x), _M_offset(__y) { }
17843 if (_M_offset++ == int(_S_word_bit) - 1)
17852 if (_M_offset-- == 0)
17854 _M_offset = int(_S_word_bit) - 1;
17859 _M_incr(ptrdiff_t __i)
17861 difference_type __n = __i + _M_offset;
17862 _M_p += __n / int(_S_word_bit);
17863 __n = __n % int(_S_word_bit);
17866 __n += int(_S_word_bit);
17869 _M_offset = static_cast<unsigned int>(__n);
17872 operator==(const _Bit_iterator_base& __i) const
17873 { return _M_p == __i._M_p && _M_offset == __i._M_offset; }
17875 operator<(const _Bit_iterator_base& __i) const
17877 return _M_p < __i._M_p
17878 || (_M_p == __i._M_p && _M_offset < __i._M_offset);
17881 operator!=(const _Bit_iterator_base& __i) const
17882 { return !(*this == __i); }
17884 operator>(const _Bit_iterator_base& __i) const
17885 { return __i < *this; }
17887 operator<=(const _Bit_iterator_base& __i) const
17888 { return !(__i < *this); }
17890 operator>=(const _Bit_iterator_base& __i) const
17891 { return !(*this < __i); }
17894 operator-(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y)
17896 return (int(_S_word_bit) * (__x._M_p - __y._M_p)
17897 + __x._M_offset - __y._M_offset);
17899 struct _Bit_iterator : public _Bit_iterator_base
17901 typedef _Bit_reference reference;
17902 typedef _Bit_reference* pointer;
17903 typedef _Bit_iterator iterator;
17904 _Bit_iterator() : _Bit_iterator_base(0, 0) { }
17905 _Bit_iterator(_Bit_type * __x, unsigned int __y)
17906 : _Bit_iterator_base(__x, __y) { }
17909 { return reference(_M_p, 1UL << _M_offset); }
17919 iterator __tmp = *this;
17932 iterator __tmp = *this;
17937 operator+=(difference_type __i)
17943 operator-=(difference_type __i)
17949 operator+(difference_type __i) const
17951 iterator __tmp = *this;
17952 return __tmp += __i;
17955 operator-(difference_type __i) const
17957 iterator __tmp = *this;
17958 return __tmp -= __i;
17961 operator[](difference_type __i) const
17962 { return *(*this + __i); }
17964 inline _Bit_iterator
17965 operator+(ptrdiff_t __n, const _Bit_iterator& __x)
17966 { return __x + __n; }
17967 struct _Bit_const_iterator : public _Bit_iterator_base
17969 typedef bool reference;
17970 typedef bool const_reference;
17971 typedef const bool* pointer;
17972 typedef _Bit_const_iterator const_iterator;
17973 _Bit_const_iterator() : _Bit_iterator_base(0, 0) { }
17974 _Bit_const_iterator(_Bit_type * __x, unsigned int __y)
17975 : _Bit_iterator_base(__x, __y) { }
17976 _Bit_const_iterator(const _Bit_iterator& __x)
17977 : _Bit_iterator_base(__x._M_p, __x._M_offset) { }
17980 { return _Bit_reference(_M_p, 1UL << _M_offset); }
17990 const_iterator __tmp = *this;
18003 const_iterator __tmp = *this;
18008 operator+=(difference_type __i)
18014 operator-=(difference_type __i)
18020 operator+(difference_type __i) const
18022 const_iterator __tmp = *this;
18023 return __tmp += __i;
18026 operator-(difference_type __i) const
18028 const_iterator __tmp = *this;
18029 return __tmp -= __i;
18032 operator[](difference_type __i) const
18033 { return *(*this + __i); }
18035 inline _Bit_const_iterator
18036 operator+(ptrdiff_t __n, const _Bit_const_iterator& __x)
18037 { return __x + __n; }
18039 __fill_bvector(_Bit_iterator __first, _Bit_iterator __last, bool __x)
18041 for (; __first != __last; ++__first)
18045 fill(_Bit_iterator __first, _Bit_iterator __last, const bool& __x)
18047 if (__first._M_p != __last._M_p)
18049 std::fill(__first._M_p + 1, __last._M_p, __x ? ~0 : 0);
18050 __fill_bvector(__first, _Bit_iterator(__first._M_p + 1, 0), __x);
18051 __fill_bvector(_Bit_iterator(__last._M_p, 0), __last, __x);
18054 __fill_bvector(__first, __last, __x);
18056 template<typename _Alloc>
18057 struct _Bvector_base
18059 typedef typename _Alloc::template rebind<_Bit_type>::other
18061 struct _Bvector_impl
18062 : public _Bit_alloc_type
18064 _Bit_iterator _M_start;
18065 _Bit_iterator _M_finish;
18066 _Bit_type* _M_end_of_storage;
18068 : _Bit_alloc_type(), _M_start(), _M_finish(), _M_end_of_storage(0)
18070 _Bvector_impl(const _Bit_alloc_type& __a)
18071 : _Bit_alloc_type(__a), _M_start(), _M_finish(), _M_end_of_storage(0)
18075 typedef _Alloc allocator_type;
18077 _M_get_Bit_allocator()
18078 { return *static_cast<_Bit_alloc_type*>(&this->_M_impl); }
18079 const _Bit_alloc_type&
18080 _M_get_Bit_allocator() const
18081 { return *static_cast<const _Bit_alloc_type*>(&this->_M_impl); }
18083 get_allocator() const
18084 { return allocator_type(_M_get_Bit_allocator()); }
18087 _Bvector_base(const allocator_type& __a)
18090 { this->_M_deallocate(); }
18092 _Bvector_impl _M_impl;
18094 _M_allocate(size_t __n)
18095 { return _M_impl.allocate((__n + int(_S_word_bit) - 1)
18096 / int(_S_word_bit)); }
18100 if (_M_impl._M_start._M_p)
18101 _M_impl.deallocate(_M_impl._M_start._M_p,
18102 _M_impl._M_end_of_storage - _M_impl._M_start._M_p);
18106 namespace std __attribute__ ((__visibility__ ("default"))) {
18107 template<typename _Alloc>
18108 class vector<bool, _Alloc> : protected _Bvector_base<_Alloc>
18110 typedef _Bvector_base<_Alloc> _Base;
18112 typedef bool value_type;
18113 typedef size_t size_type;
18114 typedef ptrdiff_t difference_type;
18115 typedef _Bit_reference reference;
18116 typedef bool const_reference;
18117 typedef _Bit_reference* pointer;
18118 typedef const bool* const_pointer;
18119 typedef _Bit_iterator iterator;
18120 typedef _Bit_const_iterator const_iterator;
18121 typedef std::reverse_iterator<const_iterator> const_reverse_iterator;
18122 typedef std::reverse_iterator<iterator> reverse_iterator;
18123 typedef _Alloc allocator_type;
18124 allocator_type get_allocator() const
18125 { return _Base::get_allocator(); }
18127 using _Base::_M_allocate;
18128 using _Base::_M_deallocate;
18129 using _Base::_M_get_Bit_allocator;
18134 vector(const allocator_type& __a)
18137 vector(size_type __n, const bool& __value = bool(),
18138 const allocator_type& __a = allocator_type())
18141 _M_initialize(__n);
18142 std::fill(this->_M_impl._M_start._M_p, this->_M_impl._M_end_of_storage,
18145 vector(const vector& __x)
18146 : _Base(__x._M_get_Bit_allocator())
18148 _M_initialize(__x.size());
18149 _M_copy_aligned(__x.begin(), __x.end(), this->_M_impl._M_start);
18151 template<typename _InputIterator>
18152 vector(_InputIterator __first, _InputIterator __last,
18153 const allocator_type& __a = allocator_type())
18156 typedef typename std::__is_integer<_InputIterator>::__type _Integral;
18157 _M_initialize_dispatch(__first, __last, _Integral());
18161 operator=(const vector& __x)
18165 if (__x.size() > capacity())
18167 this->_M_deallocate();
18168 _M_initialize(__x.size());
18170 this->_M_impl._M_finish = _M_copy_aligned(__x.begin(), __x.end(),
18175 assign(size_type __n, const bool& __x)
18176 { _M_fill_assign(__n, __x); }
18177 template<typename _InputIterator>
18179 assign(_InputIterator __first, _InputIterator __last)
18181 typedef typename std::__is_integer<_InputIterator>::__type _Integral;
18182 _M_assign_dispatch(__first, __last, _Integral());
18186 { return this->_M_impl._M_start; }
18189 { return this->_M_impl._M_start; }
18192 { return this->_M_impl._M_finish; }
18195 { return this->_M_impl._M_finish; }
18198 { return reverse_iterator(end()); }
18199 const_reverse_iterator
18201 { return const_reverse_iterator(end()); }
18204 { return reverse_iterator(begin()); }
18205 const_reverse_iterator
18207 { return const_reverse_iterator(begin()); }
18210 { return size_type(end() - begin()); }
18214 const size_type __isize =
18215 __gnu_cxx::__numeric_traits<difference_type>::__max
18216 - int(_S_word_bit) + 1;
18217 const size_type __asize = _M_get_Bit_allocator().max_size();
18218 return (__asize <= __isize / int(_S_word_bit)
18219 ? __asize * int(_S_word_bit) : __isize);
18223 { return size_type(const_iterator(this->_M_impl._M_end_of_storage, 0)
18227 { return begin() == end(); }
18229 operator[](size_type __n)
18231 return *iterator(this->_M_impl._M_start._M_p
18232 + __n / int(_S_word_bit), __n % int(_S_word_bit));
18235 operator[](size_type __n) const
18237 return *const_iterator(this->_M_impl._M_start._M_p
18238 + __n / int(_S_word_bit), __n % int(_S_word_bit));
18242 _M_range_check(size_type __n) const
18244 if (__n >= this->size())
18245 __throw_out_of_range(("vector<bool>::_M_range_check"));
18250 { _M_range_check(__n); return (*this)[__n]; }
18252 at(size_type __n) const
18253 { _M_range_check(__n); return (*this)[__n]; }
18255 reserve(size_type __n);
18258 { return *begin(); }
18261 { return *begin(); }
18264 { return *(end() - 1); }
18267 { return *(end() - 1); }
18271 push_back(bool __x)
18273 if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_of_storage)
18274 *this->_M_impl._M_finish++ = __x;
18276 _M_insert_aux(end(), __x);
18281 std::swap(this->_M_impl._M_start, __x._M_impl._M_start);
18282 std::swap(this->_M_impl._M_finish, __x._M_impl._M_finish);
18283 std::swap(this->_M_impl._M_end_of_storage,
18284 __x._M_impl._M_end_of_storage);
18285 std::__alloc_swap<typename _Base::_Bit_alloc_type>::
18286 _S_do_it(_M_get_Bit_allocator(), __x._M_get_Bit_allocator());
18289 swap(reference __x, reference __y)
18296 insert(iterator __position, const bool& __x = bool())
18298 const difference_type __n = __position - begin();
18299 if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_of_storage
18300 && __position == end())
18301 *this->_M_impl._M_finish++ = __x;
18303 _M_insert_aux(__position, __x);
18304 return begin() + __n;
18306 template<typename _InputIterator>
18308 insert(iterator __position,
18309 _InputIterator __first, _InputIterator __last)
18311 typedef typename std::__is_integer<_InputIterator>::__type _Integral;
18312 _M_insert_dispatch(__position, __first, __last, _Integral());
18315 insert(iterator __position, size_type __n, const bool& __x)
18316 { _M_fill_insert(__position, __n, __x); }
18319 { --this->_M_impl._M_finish; }
18321 erase(iterator __position)
18323 if (__position + 1 != end())
18324 std::copy(__position + 1, end(), __position);
18325 --this->_M_impl._M_finish;
18329 erase(iterator __first, iterator __last)
18331 _M_erase_at_end(std::copy(__last, end(), __first));
18335 resize(size_type __new_size, bool __x = bool())
18337 if (__new_size < size())
18338 _M_erase_at_end(begin() + difference_type(__new_size));
18340 insert(end(), __new_size - size(), __x);
18345 for (_Bit_type * __p = this->_M_impl._M_start._M_p;
18346 __p != this->_M_impl._M_end_of_storage; ++__p)
18351 { _M_erase_at_end(begin()); }
18354 _M_copy_aligned(const_iterator __first, const_iterator __last,
18357 _Bit_type* __q = std::copy(__first._M_p, __last._M_p, __result._M_p);
18358 return std::copy(const_iterator(__last._M_p, 0), __last,
18362 _M_initialize(size_type __n)
18364 _Bit_type* __q = this->_M_allocate(__n);
18365 this->_M_impl._M_end_of_storage = (__q
18366 + ((__n + int(_S_word_bit) - 1)
18367 / int(_S_word_bit)));
18368 this->_M_impl._M_start = iterator(__q, 0);
18369 this->_M_impl._M_finish = this->_M_impl._M_start + difference_type(__n);
18371 template<typename _Integer>
18373 _M_initialize_dispatch(_Integer __n, _Integer __x, __true_type)
18375 _M_initialize(static_cast<size_type>(__n));
18376 std::fill(this->_M_impl._M_start._M_p,
18377 this->_M_impl._M_end_of_storage, __x ? ~0 : 0);
18379 template<typename _InputIterator>
18381 _M_initialize_dispatch(_InputIterator __first, _InputIterator __last,
18383 { _M_initialize_range(__first, __last,
18384 std::__iterator_category(__first)); }
18385 template<typename _InputIterator>
18387 _M_initialize_range(_InputIterator __first, _InputIterator __last,
18388 std::input_iterator_tag)
18390 for (; __first != __last; ++__first)
18391 push_back(*__first);
18393 template<typename _ForwardIterator>
18395 _M_initialize_range(_ForwardIterator __first, _ForwardIterator __last,
18396 std::forward_iterator_tag)
18398 const size_type __n = std::distance(__first, __last);
18399 _M_initialize(__n);
18400 std::copy(__first, __last, this->_M_impl._M_start);
18402 template<typename _Integer>
18404 _M_assign_dispatch(_Integer __n, _Integer __val, __true_type)
18405 { _M_fill_assign(__n, __val); }
18406 template<class _InputIterator>
18408 _M_assign_dispatch(_InputIterator __first, _InputIterator __last,
18410 { _M_assign_aux(__first, __last, std::__iterator_category(__first)); }
18412 _M_fill_assign(size_t __n, bool __x)
18416 std::fill(this->_M_impl._M_start._M_p,
18417 this->_M_impl._M_end_of_storage, __x ? ~0 : 0);
18418 insert(end(), __n - size(), __x);
18422 _M_erase_at_end(begin() + __n);
18423 std::fill(this->_M_impl._M_start._M_p,
18424 this->_M_impl._M_end_of_storage, __x ? ~0 : 0);
18427 template<typename _InputIterator>
18429 _M_assign_aux(_InputIterator __first, _InputIterator __last,
18430 std::input_iterator_tag)
18432 iterator __cur = begin();
18433 for (; __first != __last && __cur != end(); ++__cur, ++__first)
18435 if (__first == __last)
18436 _M_erase_at_end(__cur);
18438 insert(end(), __first, __last);
18440 template<typename _ForwardIterator>
18442 _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last,
18443 std::forward_iterator_tag)
18445 const size_type __len = std::distance(__first, __last);
18446 if (__len < size())
18447 _M_erase_at_end(std::copy(__first, __last, begin()));
18450 _ForwardIterator __mid = __first;
18451 std::advance(__mid, size());
18452 std::copy(__first, __mid, begin());
18453 insert(end(), __mid, __last);
18456 template<typename _Integer>
18458 _M_insert_dispatch(iterator __pos, _Integer __n, _Integer __x,
18460 { _M_fill_insert(__pos, __n, __x); }
18461 template<typename _InputIterator>
18463 _M_insert_dispatch(iterator __pos,
18464 _InputIterator __first, _InputIterator __last,
18466 { _M_insert_range(__pos, __first, __last,
18467 std::__iterator_category(__first)); }
18469 _M_fill_insert(iterator __position, size_type __n, bool __x);
18470 template<typename _InputIterator>
18472 _M_insert_range(iterator __pos, _InputIterator __first,
18473 _InputIterator __last, std::input_iterator_tag)
18475 for (; __first != __last; ++__first)
18477 __pos = insert(__pos, *__first);
18481 template<typename _ForwardIterator>
18483 _M_insert_range(iterator __position, _ForwardIterator __first,
18484 _ForwardIterator __last, std::forward_iterator_tag);
18486 _M_insert_aux(iterator __position, bool __x);
18488 _M_check_len(size_type __n, const char* __s) const
18490 if (max_size() - size() < __n)
18491 __throw_length_error((__s));
18492 const size_type __len = size() + std::max(size(), __n);
18493 return (__len < size() || __len > max_size()) ? max_size() : __len;
18496 _M_erase_at_end(iterator __pos)
18497 { this->_M_impl._M_finish = __pos; }
18500 namespace std __attribute__ ((__visibility__ ("default"))) {
18501 template<typename _Tp, typename _Alloc>
18503 vector<_Tp, _Alloc>::
18504 reserve(size_type __n)
18506 if (__n > this->max_size())
18507 __throw_length_error(("vector::reserve"));
18508 if (this->capacity() < __n)
18510 const size_type __old_size = size();
18511 pointer __tmp = _M_allocate_and_copy(__n,
18512 (this->_M_impl._M_start),
18513 (this->_M_impl._M_finish));
18514 std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
18515 _M_get_Tp_allocator());
18516 _M_deallocate(this->_M_impl._M_start,
18517 this->_M_impl._M_end_of_storage
18518 - this->_M_impl._M_start);
18519 this->_M_impl._M_start = __tmp;
18520 this->_M_impl._M_finish = __tmp + __old_size;
18521 this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n;
18524 template<typename _Tp, typename _Alloc>
18525 typename vector<_Tp, _Alloc>::iterator
18526 vector<_Tp, _Alloc>::
18527 insert(iterator __position, const value_type& __x)
18529 const size_type __n = __position - begin();
18530 if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage
18531 && __position == end())
18533 this->_M_impl.construct(this->_M_impl._M_finish, __x);
18534 ++this->_M_impl._M_finish;
18538 _M_insert_aux(__position, __x);
18540 return iterator(this->_M_impl._M_start + __n);
18542 template<typename _Tp, typename _Alloc>
18543 typename vector<_Tp, _Alloc>::iterator
18544 vector<_Tp, _Alloc>::
18545 erase(iterator __position)
18547 if (__position + 1 != end())
18548 std::copy(__position + 1, end(), __position);
18549 --this->_M_impl._M_finish;
18550 this->_M_impl.destroy(this->_M_impl._M_finish);
18553 template<typename _Tp, typename _Alloc>
18554 typename vector<_Tp, _Alloc>::iterator
18555 vector<_Tp, _Alloc>::
18556 erase(iterator __first, iterator __last)
18558 if (__last != end())
18559 std::copy(__last, end(), __first);
18560 _M_erase_at_end(__first.base() + (end() - __last));
18563 template<typename _Tp, typename _Alloc>
18564 vector<_Tp, _Alloc>&
18565 vector<_Tp, _Alloc>::
18566 operator=(const vector<_Tp, _Alloc>& __x)
18570 const size_type __xlen = __x.size();
18571 if (__xlen > capacity())
18573 pointer __tmp = _M_allocate_and_copy(__xlen, __x.begin(),
18575 std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
18576 _M_get_Tp_allocator());
18577 _M_deallocate(this->_M_impl._M_start,
18578 this->_M_impl._M_end_of_storage
18579 - this->_M_impl._M_start);
18580 this->_M_impl._M_start = __tmp;
18581 this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __xlen;
18583 else if (size() >= __xlen)
18585 std::_Destroy(std::copy(__x.begin(), __x.end(), begin()),
18586 end(), _M_get_Tp_allocator());
18590 std::copy(__x._M_impl._M_start, __x._M_impl._M_start + size(),
18591 this->_M_impl._M_start);
18592 std::__uninitialized_copy_a(__x._M_impl._M_start + size(),
18593 __x._M_impl._M_finish,
18594 this->_M_impl._M_finish,
18595 _M_get_Tp_allocator());
18597 this->_M_impl._M_finish = this->_M_impl._M_start + __xlen;
18601 template<typename _Tp, typename _Alloc>
18603 vector<_Tp, _Alloc>::
18604 _M_fill_assign(size_t __n, const value_type& __val)
18606 if (__n > capacity())
18608 vector __tmp(__n, __val, _M_get_Tp_allocator());
18611 else if (__n > size())
18613 std::fill(begin(), end(), __val);
18614 std::__uninitialized_fill_n_a(this->_M_impl._M_finish,
18615 __n - size(), __val,
18616 _M_get_Tp_allocator());
18617 this->_M_impl._M_finish += __n - size();
18620 _M_erase_at_end(std::fill_n(this->_M_impl._M_start, __n, __val));
18622 template<typename _Tp, typename _Alloc>
18623 template<typename _InputIterator>
18625 vector<_Tp, _Alloc>::
18626 _M_assign_aux(_InputIterator __first, _InputIterator __last,
18627 std::input_iterator_tag)
18629 pointer __cur(this->_M_impl._M_start);
18630 for (; __first != __last && __cur != this->_M_impl._M_finish;
18631 ++__cur, ++__first)
18633 if (__first == __last)
18634 _M_erase_at_end(__cur);
18636 insert(end(), __first, __last);
18638 template<typename _Tp, typename _Alloc>
18639 template<typename _ForwardIterator>
18641 vector<_Tp, _Alloc>::
18642 _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last,
18643 std::forward_iterator_tag)
18645 const size_type __len = std::distance(__first, __last);
18646 if (__len > capacity())
18648 pointer __tmp(_M_allocate_and_copy(__len, __first, __last));
18649 std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
18650 _M_get_Tp_allocator());
18651 _M_deallocate(this->_M_impl._M_start,
18652 this->_M_impl._M_end_of_storage
18653 - this->_M_impl._M_start);
18654 this->_M_impl._M_start = __tmp;
18655 this->_M_impl._M_finish = this->_M_impl._M_start + __len;
18656 this->_M_impl._M_end_of_storage = this->_M_impl._M_finish;
18658 else if (size() >= __len)
18659 _M_erase_at_end(std::copy(__first, __last, this->_M_impl._M_start));
18662 _ForwardIterator __mid = __first;
18663 std::advance(__mid, size());
18664 std::copy(__first, __mid, this->_M_impl._M_start);
18665 this->_M_impl._M_finish =
18666 std::__uninitialized_copy_a(__mid, __last,
18667 this->_M_impl._M_finish,
18668 _M_get_Tp_allocator());
18671 template<typename _Tp, typename _Alloc>
18673 vector<_Tp, _Alloc>::
18674 _M_insert_aux(iterator __position, const _Tp& __x)
18676 if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage)
18678 this->_M_impl.construct(this->_M_impl._M_finish,
18679 (*(this->_M_impl._M_finish - 1)));
18680 ++this->_M_impl._M_finish;
18681 _Tp __x_copy = __x;
18682 std::copy_backward(__position.base(), this->_M_impl._M_finish - 2, this->_M_impl._M_finish - 1);
18683 *__position = __x_copy;
18687 const size_type __len =
18688 _M_check_len(size_type(1), "vector::_M_insert_aux");
18689 const size_type __elems_before = __position - begin();
18690 pointer __new_start(this->_M_allocate(__len));
18691 pointer __new_finish(__new_start);
18694 this->_M_impl.construct(__new_start + __elems_before,
18698 std::__uninitialized_move_a(this->_M_impl._M_start,
18699 __position.base(), __new_start,
18700 _M_get_Tp_allocator());
18703 std::__uninitialized_move_a(__position.base(),
18704 this->_M_impl._M_finish,
18706 _M_get_Tp_allocator());
18711 this->_M_impl.destroy(__new_start + __elems_before);
18713 std::_Destroy(__new_start, __new_finish, _M_get_Tp_allocator());
18714 _M_deallocate(__new_start, __len);
18717 std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
18718 _M_get_Tp_allocator());
18719 _M_deallocate(this->_M_impl._M_start,
18720 this->_M_impl._M_end_of_storage
18721 - this->_M_impl._M_start);
18722 this->_M_impl._M_start = __new_start;
18723 this->_M_impl._M_finish = __new_finish;
18724 this->_M_impl._M_end_of_storage = __new_start + __len;
18727 template<typename _Tp, typename _Alloc>
18729 vector<_Tp, _Alloc>::
18730 _M_fill_insert(iterator __position, size_type __n, const value_type& __x)
18734 if (size_type(this->_M_impl._M_end_of_storage
18735 - this->_M_impl._M_finish) >= __n)
18737 value_type __x_copy = __x;
18738 const size_type __elems_after = end() - __position;
18739 pointer __old_finish(this->_M_impl._M_finish);
18740 if (__elems_after > __n)
18742 std::__uninitialized_move_a(this->_M_impl._M_finish - __n,
18743 this->_M_impl._M_finish,
18744 this->_M_impl._M_finish,
18745 _M_get_Tp_allocator());
18746 this->_M_impl._M_finish += __n;
18747 std::copy_backward(__position.base(), __old_finish - __n, __old_finish);
18748 std::fill(__position.base(), __position.base() + __n,
18753 std::__uninitialized_fill_n_a(this->_M_impl._M_finish,
18754 __n - __elems_after,
18756 _M_get_Tp_allocator());
18757 this->_M_impl._M_finish += __n - __elems_after;
18758 std::__uninitialized_move_a(__position.base(), __old_finish,
18759 this->_M_impl._M_finish,
18760 _M_get_Tp_allocator());
18761 this->_M_impl._M_finish += __elems_after;
18762 std::fill(__position.base(), __old_finish, __x_copy);
18767 const size_type __len =
18768 _M_check_len(__n, "vector::_M_fill_insert");
18769 const size_type __elems_before = __position - begin();
18770 pointer __new_start(this->_M_allocate(__len));
18771 pointer __new_finish(__new_start);
18774 std::__uninitialized_fill_n_a(__new_start + __elems_before,
18776 _M_get_Tp_allocator());
18779 std::__uninitialized_move_a(this->_M_impl._M_start,
18782 _M_get_Tp_allocator());
18783 __new_finish += __n;
18785 std::__uninitialized_move_a(__position.base(),
18786 this->_M_impl._M_finish,
18788 _M_get_Tp_allocator());
18793 std::_Destroy(__new_start + __elems_before,
18794 __new_start + __elems_before + __n,
18795 _M_get_Tp_allocator());
18797 std::_Destroy(__new_start, __new_finish,
18798 _M_get_Tp_allocator());
18799 _M_deallocate(__new_start, __len);
18802 std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
18803 _M_get_Tp_allocator());
18804 _M_deallocate(this->_M_impl._M_start,
18805 this->_M_impl._M_end_of_storage
18806 - this->_M_impl._M_start);
18807 this->_M_impl._M_start = __new_start;
18808 this->_M_impl._M_finish = __new_finish;
18809 this->_M_impl._M_end_of_storage = __new_start + __len;
18813 template<typename _Tp, typename _Alloc>
18814 template<typename _InputIterator>
18816 vector<_Tp, _Alloc>::
18817 _M_range_insert(iterator __pos, _InputIterator __first,
18818 _InputIterator __last, std::input_iterator_tag)
18820 for (; __first != __last; ++__first)
18822 __pos = insert(__pos, *__first);
18826 template<typename _Tp, typename _Alloc>
18827 template<typename _ForwardIterator>
18829 vector<_Tp, _Alloc>::
18830 _M_range_insert(iterator __position, _ForwardIterator __first,
18831 _ForwardIterator __last, std::forward_iterator_tag)
18833 if (__first != __last)
18835 const size_type __n = std::distance(__first, __last);
18836 if (size_type(this->_M_impl._M_end_of_storage
18837 - this->_M_impl._M_finish) >= __n)
18839 const size_type __elems_after = end() - __position;
18840 pointer __old_finish(this->_M_impl._M_finish);
18841 if (__elems_after > __n)
18843 std::__uninitialized_move_a(this->_M_impl._M_finish - __n,
18844 this->_M_impl._M_finish,
18845 this->_M_impl._M_finish,
18846 _M_get_Tp_allocator());
18847 this->_M_impl._M_finish += __n;
18848 std::copy_backward(__position.base(), __old_finish - __n, __old_finish);
18849 std::copy(__first, __last, __position);
18853 _ForwardIterator __mid = __first;
18854 std::advance(__mid, __elems_after);
18855 std::__uninitialized_copy_a(__mid, __last,
18856 this->_M_impl._M_finish,
18857 _M_get_Tp_allocator());
18858 this->_M_impl._M_finish += __n - __elems_after;
18859 std::__uninitialized_move_a(__position.base(),
18861 this->_M_impl._M_finish,
18862 _M_get_Tp_allocator());
18863 this->_M_impl._M_finish += __elems_after;
18864 std::copy(__first, __mid, __position);
18869 const size_type __len =
18870 _M_check_len(__n, "vector::_M_range_insert");
18871 pointer __new_start(this->_M_allocate(__len));
18872 pointer __new_finish(__new_start);
18876 std::__uninitialized_move_a(this->_M_impl._M_start,
18879 _M_get_Tp_allocator());
18881 std::__uninitialized_copy_a(__first, __last,
18883 _M_get_Tp_allocator());
18885 std::__uninitialized_move_a(__position.base(),
18886 this->_M_impl._M_finish,
18888 _M_get_Tp_allocator());
18892 std::_Destroy(__new_start, __new_finish,
18893 _M_get_Tp_allocator());
18894 _M_deallocate(__new_start, __len);
18897 std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
18898 _M_get_Tp_allocator());
18899 _M_deallocate(this->_M_impl._M_start,
18900 this->_M_impl._M_end_of_storage
18901 - this->_M_impl._M_start);
18902 this->_M_impl._M_start = __new_start;
18903 this->_M_impl._M_finish = __new_finish;
18904 this->_M_impl._M_end_of_storage = __new_start + __len;
18908 template<typename _Alloc>
18910 vector<bool, _Alloc>::
18911 reserve(size_type __n)
18913 if (__n > this->max_size())
18914 __throw_length_error(("vector::reserve"));
18915 if (this->capacity() < __n)
18917 _Bit_type* __q = this->_M_allocate(__n);
18918 this->_M_impl._M_finish = _M_copy_aligned(begin(), end(),
18920 this->_M_deallocate();
18921 this->_M_impl._M_start = iterator(__q, 0);
18922 this->_M_impl._M_end_of_storage = (__q + (__n + int(_S_word_bit) - 1)
18923 / int(_S_word_bit));
18926 template<typename _Alloc>
18928 vector<bool, _Alloc>::
18929 _M_fill_insert(iterator __position, size_type __n, bool __x)
18933 if (capacity() - size() >= __n)
18935 std::copy_backward(__position, end(),
18936 this->_M_impl._M_finish + difference_type(__n));
18937 std::fill(__position, __position + difference_type(__n), __x);
18938 this->_M_impl._M_finish += difference_type(__n);
18942 const size_type __len =
18943 _M_check_len(__n, "vector<bool>::_M_fill_insert");
18944 _Bit_type * __q = this->_M_allocate(__len);
18945 iterator __i = _M_copy_aligned(begin(), __position,
18947 std::fill(__i, __i + difference_type(__n), __x);
18948 this->_M_impl._M_finish = std::copy(__position, end(),
18949 __i + difference_type(__n));
18950 this->_M_deallocate();
18951 this->_M_impl._M_end_of_storage = (__q + ((__len
18952 + int(_S_word_bit) - 1)
18953 / int(_S_word_bit)));
18954 this->_M_impl._M_start = iterator(__q, 0);
18957 template<typename _Alloc>
18958 template<typename _ForwardIterator>
18960 vector<bool, _Alloc>::
18961 _M_insert_range(iterator __position, _ForwardIterator __first,
18962 _ForwardIterator __last, std::forward_iterator_tag)
18964 if (__first != __last)
18966 size_type __n = std::distance(__first, __last);
18967 if (capacity() - size() >= __n)
18969 std::copy_backward(__position, end(),
18970 this->_M_impl._M_finish
18971 + difference_type(__n));
18972 std::copy(__first, __last, __position);
18973 this->_M_impl._M_finish += difference_type(__n);
18977 const size_type __len =
18978 _M_check_len(__n, "vector<bool>::_M_insert_range");
18979 _Bit_type * __q = this->_M_allocate(__len);
18980 iterator __i = _M_copy_aligned(begin(), __position,
18982 __i = std::copy(__first, __last, __i);
18983 this->_M_impl._M_finish = std::copy(__position, end(), __i);
18984 this->_M_deallocate();
18985 this->_M_impl._M_end_of_storage = (__q
18987 + int(_S_word_bit) - 1)
18988 / int(_S_word_bit)));
18989 this->_M_impl._M_start = iterator(__q, 0);
18993 template<typename _Alloc>
18995 vector<bool, _Alloc>::
18996 _M_insert_aux(iterator __position, bool __x)
18998 if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_of_storage)
19000 std::copy_backward(__position, this->_M_impl._M_finish,
19001 this->_M_impl._M_finish + 1);
19003 ++this->_M_impl._M_finish;
19007 const size_type __len =
19008 _M_check_len(size_type(1), "vector<bool>::_M_insert_aux");
19009 _Bit_type * __q = this->_M_allocate(__len);
19010 iterator __i = _M_copy_aligned(begin(), __position,
19013 this->_M_impl._M_finish = std::copy(__position, end(), __i);
19014 this->_M_deallocate();
19015 this->_M_impl._M_end_of_storage = (__q + ((__len
19016 + int(_S_word_bit) - 1)
19017 / int(_S_word_bit)));
19018 this->_M_impl._M_start = iterator(__q, 0);
19023 namespace std __attribute__ ((__visibility__ ("default"))) {
19024 enum _Rb_tree_color { _S_red = false, _S_black = true };
19025 struct _Rb_tree_node_base
19027 typedef _Rb_tree_node_base* _Base_ptr;
19028 typedef const _Rb_tree_node_base* _Const_Base_ptr;
19029 _Rb_tree_color _M_color;
19030 _Base_ptr _M_parent;
19032 _Base_ptr _M_right;
19034 _S_minimum(_Base_ptr __x)
19036 while (__x->_M_left != 0) __x = __x->_M_left;
19039 static _Const_Base_ptr
19040 _S_minimum(_Const_Base_ptr __x)
19042 while (__x->_M_left != 0) __x = __x->_M_left;
19046 _S_maximum(_Base_ptr __x)
19048 while (__x->_M_right != 0) __x = __x->_M_right;
19051 static _Const_Base_ptr
19052 _S_maximum(_Const_Base_ptr __x)
19054 while (__x->_M_right != 0) __x = __x->_M_right;
19058 template<typename _Val>
19059 struct _Rb_tree_node : public _Rb_tree_node_base
19061 typedef _Rb_tree_node<_Val>* _Link_type;
19062 _Val _M_value_field;
19064 _Rb_tree_node_base*
19065 _Rb_tree_increment(_Rb_tree_node_base* __x);
19066 const _Rb_tree_node_base*
19067 _Rb_tree_increment(const _Rb_tree_node_base* __x);
19068 _Rb_tree_node_base*
19069 _Rb_tree_decrement(_Rb_tree_node_base* __x);
19070 const _Rb_tree_node_base*
19071 _Rb_tree_decrement(const _Rb_tree_node_base* __x);
19072 template<typename _Tp>
19073 struct _Rb_tree_iterator
19075 typedef _Tp value_type;
19076 typedef _Tp& reference;
19077 typedef _Tp* pointer;
19078 typedef bidirectional_iterator_tag iterator_category;
19079 typedef ptrdiff_t difference_type;
19080 typedef _Rb_tree_iterator<_Tp> _Self;
19081 typedef _Rb_tree_node_base::_Base_ptr _Base_ptr;
19082 typedef _Rb_tree_node<_Tp>* _Link_type;
19083 _Rb_tree_iterator()
19086 _Rb_tree_iterator(_Link_type __x)
19090 { return static_cast<_Link_type>(_M_node)->_M_value_field; }
19093 { return &static_cast<_Link_type>(_M_node)->_M_value_field; }
19097 _M_node = _Rb_tree_increment(_M_node);
19103 _Self __tmp = *this;
19104 _M_node = _Rb_tree_increment(_M_node);
19110 _M_node = _Rb_tree_decrement(_M_node);
19116 _Self __tmp = *this;
19117 _M_node = _Rb_tree_decrement(_M_node);
19121 operator==(const _Self& __x) const
19122 { return _M_node == __x._M_node; }
19124 operator!=(const _Self& __x) const
19125 { return _M_node != __x._M_node; }
19128 template<typename _Tp>
19129 struct _Rb_tree_const_iterator
19131 typedef _Tp value_type;
19132 typedef const _Tp& reference;
19133 typedef const _Tp* pointer;
19134 typedef _Rb_tree_iterator<_Tp> iterator;
19135 typedef bidirectional_iterator_tag iterator_category;
19136 typedef ptrdiff_t difference_type;
19137 typedef _Rb_tree_const_iterator<_Tp> _Self;
19138 typedef _Rb_tree_node_base::_Const_Base_ptr _Base_ptr;
19139 typedef const _Rb_tree_node<_Tp>* _Link_type;
19140 _Rb_tree_const_iterator()
19143 _Rb_tree_const_iterator(_Link_type __x)
19145 _Rb_tree_const_iterator(const iterator& __it)
19146 : _M_node(__it._M_node) { }
19149 { return static_cast<_Link_type>(_M_node)->_M_value_field; }
19152 { return &static_cast<_Link_type>(_M_node)->_M_value_field; }
19156 _M_node = _Rb_tree_increment(_M_node);
19162 _Self __tmp = *this;
19163 _M_node = _Rb_tree_increment(_M_node);
19169 _M_node = _Rb_tree_decrement(_M_node);
19175 _Self __tmp = *this;
19176 _M_node = _Rb_tree_decrement(_M_node);
19180 operator==(const _Self& __x) const
19181 { return _M_node == __x._M_node; }
19183 operator!=(const _Self& __x) const
19184 { return _M_node != __x._M_node; }
19187 template<typename _Val>
19189 operator==(const _Rb_tree_iterator<_Val>& __x,
19190 const _Rb_tree_const_iterator<_Val>& __y)
19191 { return __x._M_node == __y._M_node; }
19192 template<typename _Val>
19194 operator!=(const _Rb_tree_iterator<_Val>& __x,
19195 const _Rb_tree_const_iterator<_Val>& __y)
19196 { return __x._M_node != __y._M_node; }
19198 _Rb_tree_insert_and_rebalance(const bool __insert_left,
19199 _Rb_tree_node_base* __x,
19200 _Rb_tree_node_base* __p,
19201 _Rb_tree_node_base& __header);
19202 _Rb_tree_node_base*
19203 _Rb_tree_rebalance_for_erase(_Rb_tree_node_base* const __z,
19204 _Rb_tree_node_base& __header);
19205 template<typename _Key, typename _Val, typename _KeyOfValue,
19206 typename _Compare, typename _Alloc = allocator<_Val> >
19209 typedef typename _Alloc::template rebind<_Rb_tree_node<_Val> >::other
19212 typedef _Rb_tree_node_base* _Base_ptr;
19213 typedef const _Rb_tree_node_base* _Const_Base_ptr;
19215 typedef _Key key_type;
19216 typedef _Val value_type;
19217 typedef value_type* pointer;
19218 typedef const value_type* const_pointer;
19219 typedef value_type& reference;
19220 typedef const value_type& const_reference;
19221 typedef _Rb_tree_node<_Val>* _Link_type;
19222 typedef const _Rb_tree_node<_Val>* _Const_Link_type;
19223 typedef size_t size_type;
19224 typedef ptrdiff_t difference_type;
19225 typedef _Alloc allocator_type;
19227 _M_get_Node_allocator()
19228 { return *static_cast<_Node_allocator*>(&this->_M_impl); }
19229 const _Node_allocator&
19230 _M_get_Node_allocator() const
19231 { return *static_cast<const _Node_allocator*>(&this->_M_impl); }
19233 get_allocator() const
19234 { return allocator_type(_M_get_Node_allocator()); }
19238 { return _M_impl._Node_allocator::allocate(1); }
19240 _M_put_node(_Link_type __p)
19241 { _M_impl._Node_allocator::deallocate(__p, 1); }
19243 _M_create_node(const value_type& __x)
19245 _Link_type __tmp = _M_get_node();
19247 { get_allocator().construct(&__tmp->_M_value_field, __x); }
19250 _M_put_node(__tmp);
19256 _M_destroy_node(_Link_type __p)
19258 get_allocator().destroy(&__p->_M_value_field);
19262 _M_clone_node(_Const_Link_type __x)
19264 _Link_type __tmp = _M_create_node(__x->_M_value_field);
19265 __tmp->_M_color = __x->_M_color;
19266 __tmp->_M_left = 0;
19267 __tmp->_M_right = 0;
19271 template<typename _Key_compare,
19272 bool _Is_pod_comparator = __is_pod(_Key_compare)>
19273 struct _Rb_tree_impl : public _Node_allocator
19275 _Key_compare _M_key_compare;
19276 _Rb_tree_node_base _M_header;
19277 size_type _M_node_count;
19279 : _Node_allocator(), _M_key_compare(), _M_header(),
19281 { _M_initialize(); }
19282 _Rb_tree_impl(const _Key_compare& __comp, const _Node_allocator& __a)
19283 : _Node_allocator(__a), _M_key_compare(__comp), _M_header(),
19285 { _M_initialize(); }
19290 this->_M_header._M_color = _S_red;
19291 this->_M_header._M_parent = 0;
19292 this->_M_header._M_left = &this->_M_header;
19293 this->_M_header._M_right = &this->_M_header;
19296 _Rb_tree_impl<_Compare> _M_impl;
19300 { return this->_M_impl._M_header._M_parent; }
19303 { return this->_M_impl._M_header._M_parent; }
19306 { return this->_M_impl._M_header._M_left; }
19308 _M_leftmost() const
19309 { return this->_M_impl._M_header._M_left; }
19312 { return this->_M_impl._M_header._M_right; }
19314 _M_rightmost() const
19315 { return this->_M_impl._M_header._M_right; }
19318 { return static_cast<_Link_type>(this->_M_impl._M_header._M_parent); }
19322 return static_cast<_Const_Link_type>
19323 (this->_M_impl._M_header._M_parent);
19327 { return static_cast<_Link_type>(&this->_M_impl._M_header); }
19330 { return static_cast<_Const_Link_type>(&this->_M_impl._M_header); }
19331 static const_reference
19332 _S_value(_Const_Link_type __x)
19333 { return __x->_M_value_field; }
19335 _S_key(_Const_Link_type __x)
19336 { return _KeyOfValue()(_S_value(__x)); }
19338 _S_left(_Base_ptr __x)
19339 { return static_cast<_Link_type>(__x->_M_left); }
19340 static _Const_Link_type
19341 _S_left(_Const_Base_ptr __x)
19342 { return static_cast<_Const_Link_type>(__x->_M_left); }
19344 _S_right(_Base_ptr __x)
19345 { return static_cast<_Link_type>(__x->_M_right); }
19346 static _Const_Link_type
19347 _S_right(_Const_Base_ptr __x)
19348 { return static_cast<_Const_Link_type>(__x->_M_right); }
19349 static const_reference
19350 _S_value(_Const_Base_ptr __x)
19351 { return static_cast<_Const_Link_type>(__x)->_M_value_field; }
19353 _S_key(_Const_Base_ptr __x)
19354 { return _KeyOfValue()(_S_value(__x)); }
19356 _S_minimum(_Base_ptr __x)
19357 { return _Rb_tree_node_base::_S_minimum(__x); }
19358 static _Const_Base_ptr
19359 _S_minimum(_Const_Base_ptr __x)
19360 { return _Rb_tree_node_base::_S_minimum(__x); }
19362 _S_maximum(_Base_ptr __x)
19363 { return _Rb_tree_node_base::_S_maximum(__x); }
19364 static _Const_Base_ptr
19365 _S_maximum(_Const_Base_ptr __x)
19366 { return _Rb_tree_node_base::_S_maximum(__x); }
19368 typedef _Rb_tree_iterator<value_type> iterator;
19369 typedef _Rb_tree_const_iterator<value_type> const_iterator;
19370 typedef std::reverse_iterator<iterator> reverse_iterator;
19371 typedef std::reverse_iterator<const_iterator> const_reverse_iterator;
19374 _M_insert_(_Const_Base_ptr __x, _Const_Base_ptr __y,
19375 const value_type& __v);
19377 _M_insert_lower(_Base_ptr __x, _Base_ptr __y, const value_type& __v);
19379 _M_insert_equal_lower(const value_type& __x);
19381 _M_copy(_Const_Link_type __x, _Link_type __p);
19383 _M_erase(_Link_type __x);
19385 _M_lower_bound(_Link_type __x, _Link_type __y,
19388 _M_lower_bound(_Const_Link_type __x, _Const_Link_type __y,
19389 const _Key& __k) const;
19391 _M_upper_bound(_Link_type __x, _Link_type __y,
19394 _M_upper_bound(_Const_Link_type __x, _Const_Link_type __y,
19395 const _Key& __k) const;
19398 _Rb_tree(const _Compare& __comp,
19399 const allocator_type& __a = allocator_type())
19400 : _M_impl(__comp, __a) { }
19401 _Rb_tree(const _Rb_tree& __x)
19402 : _M_impl(__x._M_impl._M_key_compare, __x._M_get_Node_allocator())
19404 if (__x._M_root() != 0)
19406 _M_root() = _M_copy(__x._M_begin(), _M_end());
19407 _M_leftmost() = _S_minimum(_M_root());
19408 _M_rightmost() = _S_maximum(_M_root());
19409 _M_impl._M_node_count = __x._M_impl._M_node_count;
19413 { _M_erase(_M_begin()); }
19415 operator=(const _Rb_tree& __x);
19418 { return _M_impl._M_key_compare; }
19422 return iterator(static_cast<_Link_type>
19423 (this->_M_impl._M_header._M_left));
19428 return const_iterator(static_cast<_Const_Link_type>
19429 (this->_M_impl._M_header._M_left));
19433 { return iterator(static_cast<_Link_type>(&this->_M_impl._M_header)); }
19437 return const_iterator(static_cast<_Const_Link_type>
19438 (&this->_M_impl._M_header));
19442 { return reverse_iterator(end()); }
19443 const_reverse_iterator
19445 { return const_reverse_iterator(end()); }
19448 { return reverse_iterator(begin()); }
19449 const_reverse_iterator
19451 { return const_reverse_iterator(begin()); }
19454 { return _M_impl._M_node_count == 0; }
19457 { return _M_impl._M_node_count; }
19460 { return _M_get_Node_allocator().max_size(); }
19462 swap(_Rb_tree& __t);
19463 pair<iterator, bool>
19464 _M_insert_unique(const value_type& __x);
19466 _M_insert_equal(const value_type& __x);
19468 _M_insert_unique_(const_iterator __position, const value_type& __x);
19470 _M_insert_equal_(const_iterator __position, const value_type& __x);
19471 template<typename _InputIterator>
19473 _M_insert_unique(_InputIterator __first, _InputIterator __last);
19474 template<typename _InputIterator>
19476 _M_insert_equal(_InputIterator __first, _InputIterator __last);
19478 erase(iterator __position);
19480 erase(const_iterator __position);
19482 erase(const key_type& __x);
19484 erase(iterator __first, iterator __last);
19486 erase(const_iterator __first, const_iterator __last);
19488 erase(const key_type* __first, const key_type* __last);
19492 _M_erase(_M_begin());
19493 _M_leftmost() = _M_end();
19495 _M_rightmost() = _M_end();
19496 _M_impl._M_node_count = 0;
19499 find(const key_type& __k);
19501 find(const key_type& __k) const;
19503 count(const key_type& __k) const;
19505 lower_bound(const key_type& __k)
19506 { return _M_lower_bound(_M_begin(), _M_end(), __k); }
19508 lower_bound(const key_type& __k) const
19509 { return _M_lower_bound(_M_begin(), _M_end(), __k); }
19511 upper_bound(const key_type& __k)
19512 { return _M_upper_bound(_M_begin(), _M_end(), __k); }
19514 upper_bound(const key_type& __k) const
19515 { return _M_upper_bound(_M_begin(), _M_end(), __k); }
19516 pair<iterator, iterator>
19517 equal_range(const key_type& __k);
19518 pair<const_iterator, const_iterator>
19519 equal_range(const key_type& __k) const;
19521 __rb_verify() const;
19523 template<typename _Key, typename _Val, typename _KeyOfValue,
19524 typename _Compare, typename _Alloc>
19526 operator==(const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x,
19527 const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __y)
19529 return __x.size() == __y.size()
19530 && std::equal(__x.begin(), __x.end(), __y.begin());
19532 template<typename _Key, typename _Val, typename _KeyOfValue,
19533 typename _Compare, typename _Alloc>
19535 operator<(const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x,
19536 const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __y)
19538 return std::lexicographical_compare(__x.begin(), __x.end(),
19539 __y.begin(), __y.end());
19541 template<typename _Key, typename _Val, typename _KeyOfValue,
19542 typename _Compare, typename _Alloc>
19544 operator!=(const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x,
19545 const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __y)
19546 { return !(__x == __y); }
19547 template<typename _Key, typename _Val, typename _KeyOfValue,
19548 typename _Compare, typename _Alloc>
19550 operator>(const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x,
19551 const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __y)
19552 { return __y < __x; }
19553 template<typename _Key, typename _Val, typename _KeyOfValue,
19554 typename _Compare, typename _Alloc>
19556 operator<=(const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x,
19557 const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __y)
19558 { return !(__y < __x); }
19559 template<typename _Key, typename _Val, typename _KeyOfValue,
19560 typename _Compare, typename _Alloc>
19562 operator>=(const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x,
19563 const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __y)
19564 { return !(__x < __y); }
19565 template<typename _Key, typename _Val, typename _KeyOfValue,
19566 typename _Compare, typename _Alloc>
19568 swap(_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x,
19569 _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __y)
19571 template<typename _Key, typename _Val, typename _KeyOfValue,
19572 typename _Compare, typename _Alloc>
19573 _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>&
19574 _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
19575 operator=(const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x)
19580 _M_impl._M_key_compare = __x._M_impl._M_key_compare;
19581 if (__x._M_root() != 0)
19583 _M_root() = _M_copy(__x._M_begin(), _M_end());
19584 _M_leftmost() = _S_minimum(_M_root());
19585 _M_rightmost() = _S_maximum(_M_root());
19586 _M_impl._M_node_count = __x._M_impl._M_node_count;
19591 template<typename _Key, typename _Val, typename _KeyOfValue,
19592 typename _Compare, typename _Alloc>
19593 typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator
19594 _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
19595 _M_insert_(_Const_Base_ptr __x, _Const_Base_ptr __p, const _Val& __v)
19597 bool __insert_left = (__x != 0 || __p == _M_end()
19598 || _M_impl._M_key_compare(_KeyOfValue()(__v),
19600 _Link_type __z = _M_create_node(__v);
19601 _Rb_tree_insert_and_rebalance(__insert_left, __z,
19602 const_cast<_Base_ptr>(__p),
19603 this->_M_impl._M_header);
19604 ++_M_impl._M_node_count;
19605 return iterator(__z);
19607 template<typename _Key, typename _Val, typename _KeyOfValue,
19608 typename _Compare, typename _Alloc>
19609 typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator
19610 _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
19611 _M_insert_lower(_Base_ptr __x, _Base_ptr __p, const _Val& __v)
19613 bool __insert_left = (__x != 0 || __p == _M_end()
19614 || !_M_impl._M_key_compare(_S_key(__p),
19615 _KeyOfValue()(__v)));
19616 _Link_type __z = _M_create_node(__v);
19617 _Rb_tree_insert_and_rebalance(__insert_left, __z, __p,
19618 this->_M_impl._M_header);
19619 ++_M_impl._M_node_count;
19620 return iterator(__z);
19622 template<typename _Key, typename _Val, typename _KeyOfValue,
19623 typename _Compare, typename _Alloc>
19624 typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator
19625 _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
19626 _M_insert_equal_lower(const _Val& __v)
19628 _Link_type __x = _M_begin();
19629 _Link_type __y = _M_end();
19633 __x = !_M_impl._M_key_compare(_S_key(__x), _KeyOfValue()(__v)) ?
19634 _S_left(__x) : _S_right(__x);
19636 return _M_insert_lower(__x, __y, __v);
19638 template<typename _Key, typename _Val, typename _KoV,
19639 typename _Compare, typename _Alloc>
19640 typename _Rb_tree<_Key, _Val, _KoV, _Compare, _Alloc>::_Link_type
19641 _Rb_tree<_Key, _Val, _KoV, _Compare, _Alloc>::
19642 _M_copy(_Const_Link_type __x, _Link_type __p)
19644 _Link_type __top = _M_clone_node(__x);
19645 __top->_M_parent = __p;
19649 __top->_M_right = _M_copy(_S_right(__x), __top);
19651 __x = _S_left(__x);
19654 _Link_type __y = _M_clone_node(__x);
19655 __p->_M_left = __y;
19656 __y->_M_parent = __p;
19658 __y->_M_right = _M_copy(_S_right(__x), __y);
19660 __x = _S_left(__x);
19670 template<typename _Key, typename _Val, typename _KeyOfValue,
19671 typename _Compare, typename _Alloc>
19673 _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
19674 _M_erase(_Link_type __x)
19678 _M_erase(_S_right(__x));
19679 _Link_type __y = _S_left(__x);
19680 _M_destroy_node(__x);
19684 template<typename _Key, typename _Val, typename _KeyOfValue,
19685 typename _Compare, typename _Alloc>
19686 typename _Rb_tree<_Key, _Val, _KeyOfValue,
19687 _Compare, _Alloc>::iterator
19688 _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
19689 _M_lower_bound(_Link_type __x, _Link_type __y,
19693 if (!_M_impl._M_key_compare(_S_key(__x), __k))
19694 __y = __x, __x = _S_left(__x);
19696 __x = _S_right(__x);
19697 return iterator(__y);
19699 template<typename _Key, typename _Val, typename _KeyOfValue,
19700 typename _Compare, typename _Alloc>
19701 typename _Rb_tree<_Key, _Val, _KeyOfValue,
19702 _Compare, _Alloc>::const_iterator
19703 _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
19704 _M_lower_bound(_Const_Link_type __x, _Const_Link_type __y,
19705 const _Key& __k) const
19708 if (!_M_impl._M_key_compare(_S_key(__x), __k))
19709 __y = __x, __x = _S_left(__x);
19711 __x = _S_right(__x);
19712 return const_iterator(__y);
19714 template<typename _Key, typename _Val, typename _KeyOfValue,
19715 typename _Compare, typename _Alloc>
19716 typename _Rb_tree<_Key, _Val, _KeyOfValue,
19717 _Compare, _Alloc>::iterator
19718 _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
19719 _M_upper_bound(_Link_type __x, _Link_type __y,
19723 if (_M_impl._M_key_compare(__k, _S_key(__x)))
19724 __y = __x, __x = _S_left(__x);
19726 __x = _S_right(__x);
19727 return iterator(__y);
19729 template<typename _Key, typename _Val, typename _KeyOfValue,
19730 typename _Compare, typename _Alloc>
19731 typename _Rb_tree<_Key, _Val, _KeyOfValue,
19732 _Compare, _Alloc>::const_iterator
19733 _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
19734 _M_upper_bound(_Const_Link_type __x, _Const_Link_type __y,
19735 const _Key& __k) const
19738 if (_M_impl._M_key_compare(__k, _S_key(__x)))
19739 __y = __x, __x = _S_left(__x);
19741 __x = _S_right(__x);
19742 return const_iterator(__y);
19744 template<typename _Key, typename _Val, typename _KeyOfValue,
19745 typename _Compare, typename _Alloc>
19746 pair<typename _Rb_tree<_Key, _Val, _KeyOfValue,
19747 _Compare, _Alloc>::iterator,
19748 typename _Rb_tree<_Key, _Val, _KeyOfValue,
19749 _Compare, _Alloc>::iterator>
19750 _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
19751 equal_range(const _Key& __k)
19753 _Link_type __x = _M_begin();
19754 _Link_type __y = _M_end();
19757 if (_M_impl._M_key_compare(_S_key(__x), __k))
19758 __x = _S_right(__x);
19759 else if (_M_impl._M_key_compare(__k, _S_key(__x)))
19760 __y = __x, __x = _S_left(__x);
19763 _Link_type __xu(__x), __yu(__y);
19764 __y = __x, __x = _S_left(__x);
19765 __xu = _S_right(__xu);
19766 return pair<iterator,
19767 iterator>(_M_lower_bound(__x, __y, __k),
19768 _M_upper_bound(__xu, __yu, __k));
19771 return pair<iterator, iterator>(iterator(__y),
19774 template<typename _Key, typename _Val, typename _KeyOfValue,
19775 typename _Compare, typename _Alloc>
19776 pair<typename _Rb_tree<_Key, _Val, _KeyOfValue,
19777 _Compare, _Alloc>::const_iterator,
19778 typename _Rb_tree<_Key, _Val, _KeyOfValue,
19779 _Compare, _Alloc>::const_iterator>
19780 _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
19781 equal_range(const _Key& __k) const
19783 _Const_Link_type __x = _M_begin();
19784 _Const_Link_type __y = _M_end();
19787 if (_M_impl._M_key_compare(_S_key(__x), __k))
19788 __x = _S_right(__x);
19789 else if (_M_impl._M_key_compare(__k, _S_key(__x)))
19790 __y = __x, __x = _S_left(__x);
19793 _Const_Link_type __xu(__x), __yu(__y);
19794 __y = __x, __x = _S_left(__x);
19795 __xu = _S_right(__xu);
19796 return pair<const_iterator,
19797 const_iterator>(_M_lower_bound(__x, __y, __k),
19798 _M_upper_bound(__xu, __yu, __k));
19801 return pair<const_iterator, const_iterator>(const_iterator(__y),
19802 const_iterator(__y));
19804 template<typename _Key, typename _Val, typename _KeyOfValue,
19805 typename _Compare, typename _Alloc>
19807 _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
19808 swap(_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __t)
19810 if (_M_root() == 0)
19812 if (__t._M_root() != 0)
19814 _M_root() = __t._M_root();
19815 _M_leftmost() = __t._M_leftmost();
19816 _M_rightmost() = __t._M_rightmost();
19817 _M_root()->_M_parent = _M_end();
19819 __t._M_leftmost() = __t._M_end();
19820 __t._M_rightmost() = __t._M_end();
19823 else if (__t._M_root() == 0)
19825 __t._M_root() = _M_root();
19826 __t._M_leftmost() = _M_leftmost();
19827 __t._M_rightmost() = _M_rightmost();
19828 __t._M_root()->_M_parent = __t._M_end();
19830 _M_leftmost() = _M_end();
19831 _M_rightmost() = _M_end();
19835 std::swap(_M_root(),__t._M_root());
19836 std::swap(_M_leftmost(),__t._M_leftmost());
19837 std::swap(_M_rightmost(),__t._M_rightmost());
19838 _M_root()->_M_parent = _M_end();
19839 __t._M_root()->_M_parent = __t._M_end();
19841 std::swap(this->_M_impl._M_node_count, __t._M_impl._M_node_count);
19842 std::swap(this->_M_impl._M_key_compare, __t._M_impl._M_key_compare);
19843 std::__alloc_swap<_Node_allocator>::
19844 _S_do_it(_M_get_Node_allocator(), __t._M_get_Node_allocator());
19846 template<typename _Key, typename _Val, typename _KeyOfValue,
19847 typename _Compare, typename _Alloc>
19848 pair<typename _Rb_tree<_Key, _Val, _KeyOfValue,
19849 _Compare, _Alloc>::iterator, bool>
19850 _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
19851 _M_insert_unique(const _Val& __v)
19853 _Link_type __x = _M_begin();
19854 _Link_type __y = _M_end();
19855 bool __comp = true;
19859 __comp = _M_impl._M_key_compare(_KeyOfValue()(__v), _S_key(__x));
19860 __x = __comp ? _S_left(__x) : _S_right(__x);
19862 iterator __j = iterator(__y);
19865 if (__j == begin())
19866 return pair<iterator, bool>(_M_insert_(__x, __y, __v), true);
19870 if (_M_impl._M_key_compare(_S_key(__j._M_node), _KeyOfValue()(__v)))
19871 return pair<iterator, bool>(_M_insert_(__x, __y, __v), true);
19872 return pair<iterator, bool>(__j, false);
19874 template<typename _Key, typename _Val, typename _KeyOfValue,
19875 typename _Compare, typename _Alloc>
19876 typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator
19877 _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
19878 _M_insert_equal(const _Val& __v)
19880 _Link_type __x = _M_begin();
19881 _Link_type __y = _M_end();
19885 __x = _M_impl._M_key_compare(_KeyOfValue()(__v), _S_key(__x)) ?
19886 _S_left(__x) : _S_right(__x);
19888 return _M_insert_(__x, __y, __v);
19890 template<typename _Key, typename _Val, typename _KeyOfValue,
19891 typename _Compare, typename _Alloc>
19892 typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator
19893 _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
19894 _M_insert_unique_(const_iterator __position, const _Val& __v)
19896 if (__position._M_node == _M_end())
19899 && _M_impl._M_key_compare(_S_key(_M_rightmost()),
19900 _KeyOfValue()(__v)))
19901 return _M_insert_(0, _M_rightmost(), __v);
19903 return _M_insert_unique(__v).first;
19905 else if (_M_impl._M_key_compare(_KeyOfValue()(__v),
19906 _S_key(__position._M_node)))
19908 const_iterator __before = __position;
19909 if (__position._M_node == _M_leftmost())
19910 return _M_insert_(_M_leftmost(), _M_leftmost(), __v);
19911 else if (_M_impl._M_key_compare(_S_key((--__before)._M_node),
19912 _KeyOfValue()(__v)))
19914 if (_S_right(__before._M_node) == 0)
19915 return _M_insert_(0, __before._M_node, __v);
19917 return _M_insert_(__position._M_node,
19918 __position._M_node, __v);
19921 return _M_insert_unique(__v).first;
19923 else if (_M_impl._M_key_compare(_S_key(__position._M_node),
19924 _KeyOfValue()(__v)))
19926 const_iterator __after = __position;
19927 if (__position._M_node == _M_rightmost())
19928 return _M_insert_(0, _M_rightmost(), __v);
19929 else if (_M_impl._M_key_compare(_KeyOfValue()(__v),
19930 _S_key((++__after)._M_node)))
19932 if (_S_right(__position._M_node) == 0)
19933 return _M_insert_(0, __position._M_node, __v);
19935 return _M_insert_(__after._M_node, __after._M_node, __v);
19938 return _M_insert_unique(__v).first;
19941 return iterator(static_cast<_Link_type>
19942 (const_cast<_Base_ptr>(__position._M_node)));
19944 template<typename _Key, typename _Val, typename _KeyOfValue,
19945 typename _Compare, typename _Alloc>
19946 typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator
19947 _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
19948 _M_insert_equal_(const_iterator __position, const _Val& __v)
19950 if (__position._M_node == _M_end())
19953 && !_M_impl._M_key_compare(_KeyOfValue()(__v),
19954 _S_key(_M_rightmost())))
19955 return _M_insert_(0, _M_rightmost(), __v);
19957 return _M_insert_equal(__v);
19959 else if (!_M_impl._M_key_compare(_S_key(__position._M_node),
19960 _KeyOfValue()(__v)))
19962 const_iterator __before = __position;
19963 if (__position._M_node == _M_leftmost())
19964 return _M_insert_(_M_leftmost(), _M_leftmost(), __v);
19965 else if (!_M_impl._M_key_compare(_KeyOfValue()(__v),
19966 _S_key((--__before)._M_node)))
19968 if (_S_right(__before._M_node) == 0)
19969 return _M_insert_(0, __before._M_node, __v);
19971 return _M_insert_(__position._M_node,
19972 __position._M_node, __v);
19975 return _M_insert_equal(__v);
19979 const_iterator __after = __position;
19980 if (__position._M_node == _M_rightmost())
19981 return _M_insert_(0, _M_rightmost(), __v);
19982 else if (!_M_impl._M_key_compare(_S_key((++__after)._M_node),
19983 _KeyOfValue()(__v)))
19985 if (_S_right(__position._M_node) == 0)
19986 return _M_insert_(0, __position._M_node, __v);
19988 return _M_insert_(__after._M_node, __after._M_node, __v);
19991 return _M_insert_equal_lower(__v);
19994 template<typename _Key, typename _Val, typename _KoV,
19995 typename _Cmp, typename _Alloc>
19996 template<class _II>
19998 _Rb_tree<_Key, _Val, _KoV, _Cmp, _Alloc>::
19999 _M_insert_unique(_II __first, _II __last)
20001 for (; __first != __last; ++__first)
20002 _M_insert_unique_(end(), *__first);
20004 template<typename _Key, typename _Val, typename _KoV,
20005 typename _Cmp, typename _Alloc>
20006 template<class _II>
20008 _Rb_tree<_Key, _Val, _KoV, _Cmp, _Alloc>::
20009 _M_insert_equal(_II __first, _II __last)
20011 for (; __first != __last; ++__first)
20012 _M_insert_equal_(end(), *__first);
20014 template<typename _Key, typename _Val, typename _KeyOfValue,
20015 typename _Compare, typename _Alloc>
20017 _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
20018 erase(iterator __position)
20021 static_cast<_Link_type>(_Rb_tree_rebalance_for_erase
20022 (__position._M_node,
20023 this->_M_impl._M_header));
20024 _M_destroy_node(__y);
20025 --_M_impl._M_node_count;
20027 template<typename _Key, typename _Val, typename _KeyOfValue,
20028 typename _Compare, typename _Alloc>
20030 _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
20031 erase(const_iterator __position)
20034 static_cast<_Link_type>(_Rb_tree_rebalance_for_erase
20035 (const_cast<_Base_ptr>(__position._M_node),
20036 this->_M_impl._M_header));
20037 _M_destroy_node(__y);
20038 --_M_impl._M_node_count;
20040 template<typename _Key, typename _Val, typename _KeyOfValue,
20041 typename _Compare, typename _Alloc>
20042 typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::size_type
20043 _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
20044 erase(const _Key& __x)
20046 pair<iterator, iterator> __p = equal_range(__x);
20047 const size_type __old_size = size();
20048 erase(__p.first, __p.second);
20049 return __old_size - size();
20051 template<typename _Key, typename _Val, typename _KeyOfValue,
20052 typename _Compare, typename _Alloc>
20054 _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
20055 erase(iterator __first, iterator __last)
20057 if (__first == begin() && __last == end())
20060 while (__first != __last)
20063 template<typename _Key, typename _Val, typename _KeyOfValue,
20064 typename _Compare, typename _Alloc>
20066 _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
20067 erase(const_iterator __first, const_iterator __last)
20069 if (__first == begin() && __last == end())
20072 while (__first != __last)
20075 template<typename _Key, typename _Val, typename _KeyOfValue,
20076 typename _Compare, typename _Alloc>
20078 _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
20079 erase(const _Key* __first, const _Key* __last)
20081 while (__first != __last)
20084 template<typename _Key, typename _Val, typename _KeyOfValue,
20085 typename _Compare, typename _Alloc>
20086 typename _Rb_tree<_Key, _Val, _KeyOfValue,
20087 _Compare, _Alloc>::iterator
20088 _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
20089 find(const _Key& __k)
20091 iterator __j = _M_lower_bound(_M_begin(), _M_end(), __k);
20092 return (__j == end()
20093 || _M_impl._M_key_compare(__k,
20094 _S_key(__j._M_node))) ? end() : __j;
20096 template<typename _Key, typename _Val, typename _KeyOfValue,
20097 typename _Compare, typename _Alloc>
20098 typename _Rb_tree<_Key, _Val, _KeyOfValue,
20099 _Compare, _Alloc>::const_iterator
20100 _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
20101 find(const _Key& __k) const
20103 const_iterator __j = _M_lower_bound(_M_begin(), _M_end(), __k);
20104 return (__j == end()
20105 || _M_impl._M_key_compare(__k,
20106 _S_key(__j._M_node))) ? end() : __j;
20108 template<typename _Key, typename _Val, typename _KeyOfValue,
20109 typename _Compare, typename _Alloc>
20110 typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::size_type
20111 _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
20112 count(const _Key& __k) const
20114 pair<const_iterator, const_iterator> __p = equal_range(__k);
20115 const size_type __n = std::distance(__p.first, __p.second);
20119 _Rb_tree_black_count(const _Rb_tree_node_base* __node,
20120 const _Rb_tree_node_base* __root);
20121 template<typename _Key, typename _Val, typename _KeyOfValue,
20122 typename _Compare, typename _Alloc>
20124 _Rb_tree<_Key,_Val,_KeyOfValue,_Compare,_Alloc>::__rb_verify() const
20126 if (_M_impl._M_node_count == 0 || begin() == end())
20127 return _M_impl._M_node_count == 0 && begin() == end()
20128 && this->_M_impl._M_header._M_left == _M_end()
20129 && this->_M_impl._M_header._M_right == _M_end();
20130 unsigned int __len = _Rb_tree_black_count(_M_leftmost(), _M_root());
20131 for (const_iterator __it = begin(); __it != end(); ++__it)
20133 _Const_Link_type __x = static_cast<_Const_Link_type>(__it._M_node);
20134 _Const_Link_type __L = _S_left(__x);
20135 _Const_Link_type __R = _S_right(__x);
20136 if (__x->_M_color == _S_red)
20137 if ((__L && __L->_M_color == _S_red)
20138 || (__R && __R->_M_color == _S_red))
20140 if (__L && _M_impl._M_key_compare(_S_key(__x), _S_key(__L)))
20142 if (__R && _M_impl._M_key_compare(_S_key(__R), _S_key(__x)))
20144 if (!__L && !__R && _Rb_tree_black_count(__x, _M_root()) != __len)
20147 if (_M_leftmost() != _Rb_tree_node_base::_S_minimum(_M_root()))
20149 if (_M_rightmost() != _Rb_tree_node_base::_S_maximum(_M_root()))
20154 namespace std __attribute__ ((__visibility__ ("default"))) {
20155 template <typename _Key, typename _Tp, typename _Compare = std::less<_Key>,
20156 typename _Alloc = std::allocator<std::pair<const _Key, _Tp> > >
20160 typedef _Key key_type;
20161 typedef _Tp mapped_type;
20162 typedef std::pair<const _Key, _Tp> value_type;
20163 typedef _Compare key_compare;
20164 typedef _Alloc allocator_type;
20166 typedef typename _Alloc::value_type _Alloc_value_type;
20171 class value_compare
20172 : public std::binary_function<value_type, value_type, bool>
20174 friend class map<_Key, _Tp, _Compare, _Alloc>;
20177 value_compare(_Compare __c)
20180 bool operator()(const value_type& __x, const value_type& __y) const
20181 { return comp(__x.first, __y.first); }
20184 typedef typename _Alloc::template rebind<value_type>::other
20186 typedef _Rb_tree<key_type, value_type, _Select1st<value_type>,
20187 key_compare, _Pair_alloc_type> _Rep_type;
20190 typedef typename _Pair_alloc_type::pointer pointer;
20191 typedef typename _Pair_alloc_type::const_pointer const_pointer;
20192 typedef typename _Pair_alloc_type::reference reference;
20193 typedef typename _Pair_alloc_type::const_reference const_reference;
20194 typedef typename _Rep_type::iterator iterator;
20195 typedef typename _Rep_type::const_iterator const_iterator;
20196 typedef typename _Rep_type::size_type size_type;
20197 typedef typename _Rep_type::difference_type difference_type;
20198 typedef typename _Rep_type::reverse_iterator reverse_iterator;
20199 typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator;
20203 map(const _Compare& __comp,
20204 const allocator_type& __a = allocator_type())
20205 : _M_t(__comp, __a) { }
20206 map(const map& __x)
20207 : _M_t(__x._M_t) { }
20208 template<typename _InputIterator>
20209 map(_InputIterator __first, _InputIterator __last)
20211 { _M_t._M_insert_unique(__first, __last); }
20212 template<typename _InputIterator>
20213 map(_InputIterator __first, _InputIterator __last,
20214 const _Compare& __comp,
20215 const allocator_type& __a = allocator_type())
20216 : _M_t(__comp, __a)
20217 { _M_t._M_insert_unique(__first, __last); }
20219 operator=(const map& __x)
20225 get_allocator() const
20226 { return _M_t.get_allocator(); }
20229 { return _M_t.begin(); }
20232 { return _M_t.begin(); }
20235 { return _M_t.end(); }
20238 { return _M_t.end(); }
20241 { return _M_t.rbegin(); }
20242 const_reverse_iterator
20244 { return _M_t.rbegin(); }
20247 { return _M_t.rend(); }
20248 const_reverse_iterator
20250 { return _M_t.rend(); }
20253 { return _M_t.empty(); }
20256 { return _M_t.size(); }
20259 { return _M_t.max_size(); }
20261 operator[](const key_type& __k)
20263 iterator __i = lower_bound(__k);
20264 if (__i == end() || key_comp()(__k, (*__i).first))
20265 __i = insert(__i, value_type(__k, mapped_type()));
20266 return (*__i).second;
20269 at(const key_type& __k)
20271 iterator __i = lower_bound(__k);
20272 if (__i == end() || key_comp()(__k, (*__i).first))
20273 __throw_out_of_range(("map::at"));
20274 return (*__i).second;
20277 at(const key_type& __k) const
20279 const_iterator __i = lower_bound(__k);
20280 if (__i == end() || key_comp()(__k, (*__i).first))
20281 __throw_out_of_range(("map::at"));
20282 return (*__i).second;
20284 std::pair<iterator, bool>
20285 insert(const value_type& __x)
20286 { return _M_t._M_insert_unique(__x); }
20288 insert(iterator __position, const value_type& __x)
20289 { return _M_t._M_insert_unique_(__position, __x); }
20290 template<typename _InputIterator>
20292 insert(_InputIterator __first, _InputIterator __last)
20293 { _M_t._M_insert_unique(__first, __last); }
20295 erase(iterator __position)
20296 { _M_t.erase(__position); }
20298 erase(const key_type& __x)
20299 { return _M_t.erase(__x); }
20301 erase(iterator __first, iterator __last)
20302 { _M_t.erase(__first, __last); }
20305 { _M_t.swap(__x._M_t); }
20311 { return _M_t.key_comp(); }
20314 { return value_compare(_M_t.key_comp()); }
20316 find(const key_type& __x)
20317 { return _M_t.find(__x); }
20319 find(const key_type& __x) const
20320 { return _M_t.find(__x); }
20322 count(const key_type& __x) const
20323 { return _M_t.find(__x) == _M_t.end() ? 0 : 1; }
20325 lower_bound(const key_type& __x)
20326 { return _M_t.lower_bound(__x); }
20328 lower_bound(const key_type& __x) const
20329 { return _M_t.lower_bound(__x); }
20331 upper_bound(const key_type& __x)
20332 { return _M_t.upper_bound(__x); }
20334 upper_bound(const key_type& __x) const
20335 { return _M_t.upper_bound(__x); }
20336 std::pair<iterator, iterator>
20337 equal_range(const key_type& __x)
20338 { return _M_t.equal_range(__x); }
20339 std::pair<const_iterator, const_iterator>
20340 equal_range(const key_type& __x) const
20341 { return _M_t.equal_range(__x); }
20342 template<typename _K1, typename _T1, typename _C1, typename _A1>
20344 operator==(const map<_K1, _T1, _C1, _A1>&,
20345 const map<_K1, _T1, _C1, _A1>&);
20346 template<typename _K1, typename _T1, typename _C1, typename _A1>
20348 operator<(const map<_K1, _T1, _C1, _A1>&,
20349 const map<_K1, _T1, _C1, _A1>&);
20351 template<typename _Key, typename _Tp, typename _Compare, typename _Alloc>
20353 operator==(const map<_Key, _Tp, _Compare, _Alloc>& __x,
20354 const map<_Key, _Tp, _Compare, _Alloc>& __y)
20355 { return __x._M_t == __y._M_t; }
20356 template<typename _Key, typename _Tp, typename _Compare, typename _Alloc>
20358 operator<(const map<_Key, _Tp, _Compare, _Alloc>& __x,
20359 const map<_Key, _Tp, _Compare, _Alloc>& __y)
20360 { return __x._M_t < __y._M_t; }
20361 template<typename _Key, typename _Tp, typename _Compare, typename _Alloc>
20363 operator!=(const map<_Key, _Tp, _Compare, _Alloc>& __x,
20364 const map<_Key, _Tp, _Compare, _Alloc>& __y)
20365 { return !(__x == __y); }
20366 template<typename _Key, typename _Tp, typename _Compare, typename _Alloc>
20368 operator>(const map<_Key, _Tp, _Compare, _Alloc>& __x,
20369 const map<_Key, _Tp, _Compare, _Alloc>& __y)
20370 { return __y < __x; }
20371 template<typename _Key, typename _Tp, typename _Compare, typename _Alloc>
20373 operator<=(const map<_Key, _Tp, _Compare, _Alloc>& __x,
20374 const map<_Key, _Tp, _Compare, _Alloc>& __y)
20375 { return !(__y < __x); }
20376 template<typename _Key, typename _Tp, typename _Compare, typename _Alloc>
20378 operator>=(const map<_Key, _Tp, _Compare, _Alloc>& __x,
20379 const map<_Key, _Tp, _Compare, _Alloc>& __y)
20380 { return !(__x < __y); }
20381 template<typename _Key, typename _Tp, typename _Compare, typename _Alloc>
20383 swap(map<_Key, _Tp, _Compare, _Alloc>& __x,
20384 map<_Key, _Tp, _Compare, _Alloc>& __y)
20387 namespace std __attribute__ ((__visibility__ ("default"))) {
20388 template <typename _Key, typename _Tp,
20389 typename _Compare = std::less<_Key>,
20390 typename _Alloc = std::allocator<std::pair<const _Key, _Tp> > >
20394 typedef _Key key_type;
20395 typedef _Tp mapped_type;
20396 typedef std::pair<const _Key, _Tp> value_type;
20397 typedef _Compare key_compare;
20398 typedef _Alloc allocator_type;
20400 typedef typename _Alloc::value_type _Alloc_value_type;
20405 class value_compare
20406 : public std::binary_function<value_type, value_type, bool>
20408 friend class multimap<_Key, _Tp, _Compare, _Alloc>;
20411 value_compare(_Compare __c)
20414 bool operator()(const value_type& __x, const value_type& __y) const
20415 { return comp(__x.first, __y.first); }
20418 typedef typename _Alloc::template rebind<value_type>::other
20420 typedef _Rb_tree<key_type, value_type, _Select1st<value_type>,
20421 key_compare, _Pair_alloc_type> _Rep_type;
20424 typedef typename _Pair_alloc_type::pointer pointer;
20425 typedef typename _Pair_alloc_type::const_pointer const_pointer;
20426 typedef typename _Pair_alloc_type::reference reference;
20427 typedef typename _Pair_alloc_type::const_reference const_reference;
20428 typedef typename _Rep_type::iterator iterator;
20429 typedef typename _Rep_type::const_iterator const_iterator;
20430 typedef typename _Rep_type::size_type size_type;
20431 typedef typename _Rep_type::difference_type difference_type;
20432 typedef typename _Rep_type::reverse_iterator reverse_iterator;
20433 typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator;
20437 multimap(const _Compare& __comp,
20438 const allocator_type& __a = allocator_type())
20439 : _M_t(__comp, __a) { }
20440 multimap(const multimap& __x)
20441 : _M_t(__x._M_t) { }
20442 template<typename _InputIterator>
20443 multimap(_InputIterator __first, _InputIterator __last)
20445 { _M_t._M_insert_equal(__first, __last); }
20446 template<typename _InputIterator>
20447 multimap(_InputIterator __first, _InputIterator __last,
20448 const _Compare& __comp,
20449 const allocator_type& __a = allocator_type())
20450 : _M_t(__comp, __a)
20451 { _M_t._M_insert_equal(__first, __last); }
20453 operator=(const multimap& __x)
20459 get_allocator() const
20460 { return _M_t.get_allocator(); }
20463 { return _M_t.begin(); }
20466 { return _M_t.begin(); }
20469 { return _M_t.end(); }
20472 { return _M_t.end(); }
20475 { return _M_t.rbegin(); }
20476 const_reverse_iterator
20478 { return _M_t.rbegin(); }
20481 { return _M_t.rend(); }
20482 const_reverse_iterator
20484 { return _M_t.rend(); }
20487 { return _M_t.empty(); }
20490 { return _M_t.size(); }
20493 { return _M_t.max_size(); }
20495 insert(const value_type& __x)
20496 { return _M_t._M_insert_equal(__x); }
20498 insert(iterator __position, const value_type& __x)
20499 { return _M_t._M_insert_equal_(__position, __x); }
20500 template<typename _InputIterator>
20502 insert(_InputIterator __first, _InputIterator __last)
20503 { _M_t._M_insert_equal(__first, __last); }
20505 erase(iterator __position)
20506 { _M_t.erase(__position); }
20508 erase(const key_type& __x)
20509 { return _M_t.erase(__x); }
20511 erase(iterator __first, iterator __last)
20512 { _M_t.erase(__first, __last); }
20514 swap(multimap& __x)
20515 { _M_t.swap(__x._M_t); }
20521 { return _M_t.key_comp(); }
20524 { return value_compare(_M_t.key_comp()); }
20526 find(const key_type& __x)
20527 { return _M_t.find(__x); }
20529 find(const key_type& __x) const
20530 { return _M_t.find(__x); }
20532 count(const key_type& __x) const
20533 { return _M_t.count(__x); }
20535 lower_bound(const key_type& __x)
20536 { return _M_t.lower_bound(__x); }
20538 lower_bound(const key_type& __x) const
20539 { return _M_t.lower_bound(__x); }
20541 upper_bound(const key_type& __x)
20542 { return _M_t.upper_bound(__x); }
20544 upper_bound(const key_type& __x) const
20545 { return _M_t.upper_bound(__x); }
20546 std::pair<iterator, iterator>
20547 equal_range(const key_type& __x)
20548 { return _M_t.equal_range(__x); }
20549 std::pair<const_iterator, const_iterator>
20550 equal_range(const key_type& __x) const
20551 { return _M_t.equal_range(__x); }
20552 template<typename _K1, typename _T1, typename _C1, typename _A1>
20554 operator==(const multimap<_K1, _T1, _C1, _A1>&,
20555 const multimap<_K1, _T1, _C1, _A1>&);
20556 template<typename _K1, typename _T1, typename _C1, typename _A1>
20558 operator<(const multimap<_K1, _T1, _C1, _A1>&,
20559 const multimap<_K1, _T1, _C1, _A1>&);
20561 template<typename _Key, typename _Tp, typename _Compare, typename _Alloc>
20563 operator==(const multimap<_Key, _Tp, _Compare, _Alloc>& __x,
20564 const multimap<_Key, _Tp, _Compare, _Alloc>& __y)
20565 { return __x._M_t == __y._M_t; }
20566 template<typename _Key, typename _Tp, typename _Compare, typename _Alloc>
20568 operator<(const multimap<_Key, _Tp, _Compare, _Alloc>& __x,
20569 const multimap<_Key, _Tp, _Compare, _Alloc>& __y)
20570 { return __x._M_t < __y._M_t; }
20571 template<typename _Key, typename _Tp, typename _Compare, typename _Alloc>
20573 operator!=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x,
20574 const multimap<_Key, _Tp, _Compare, _Alloc>& __y)
20575 { return !(__x == __y); }
20576 template<typename _Key, typename _Tp, typename _Compare, typename _Alloc>
20578 operator>(const multimap<_Key, _Tp, _Compare, _Alloc>& __x,
20579 const multimap<_Key, _Tp, _Compare, _Alloc>& __y)
20580 { return __y < __x; }
20581 template<typename _Key, typename _Tp, typename _Compare, typename _Alloc>
20583 operator<=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x,
20584 const multimap<_Key, _Tp, _Compare, _Alloc>& __y)
20585 { return !(__y < __x); }
20586 template<typename _Key, typename _Tp, typename _Compare, typename _Alloc>
20588 operator>=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x,
20589 const multimap<_Key, _Tp, _Compare, _Alloc>& __y)
20590 { return !(__x < __y); }
20591 template<typename _Key, typename _Tp, typename _Compare, typename _Alloc>
20593 swap(multimap<_Key, _Tp, _Compare, _Alloc>& __x,
20594 multimap<_Key, _Tp, _Compare, _Alloc>& __y)
20598 struct swig_type_info;
20603 virtual ~GCItem() {}
20604 virtual int get_own() const
20611 GCItem_var(GCItem *item = 0) : _item(item)
20614 GCItem_var& operator=(GCItem *item)
20616 GCItem *tmp = _item;
20625 GCItem * operator->() const
20632 struct GCItem_Object : GCItem
20634 GCItem_Object(int own) : _own(own)
20637 virtual ~GCItem_Object()
20640 int get_own() const
20647 template <typename Type>
20648 struct GCItem_T : GCItem
20650 GCItem_T(Type *ptr) : _ptr(ptr)
20653 virtual ~GCItem_T()
20660 template <typename Type>
20661 struct GCArray_T : GCItem
20663 GCArray_T(Type *ptr) : _ptr(ptr)
20666 virtual ~GCArray_T()
20673 class DirectorException {
20675 std::string swig_msg;
20677 DirectorException(PyObject *error, const char* hdr ="", const char* msg ="")
20680 SWIG_Python_Thread_Block _swig_thread_block;
20685 if (!PyErr_Occurred()) {
20686 PyErr_SetString(error, getMessage());
20688 _swig_thread_block.end();
20690 const char *getMessage() const
20692 return swig_msg.c_str();
20694 static void raise(PyObject *error, const char *msg)
20696 throw DirectorException(error, msg);
20698 static void raise(const char *msg)
20700 raise(PyExc_RuntimeError, msg);
20703 class UnknownExceptionHandler
20705 static void handler() {
20708 } catch (DirectorException& e) {
20709 std::cerr << "Swig Director exception caught:" << std::endl
20710 << e.getMessage() << std::endl;
20711 } catch (std::exception& e) {
20712 std::cerr << "std::exception caught: "<< e.what() << std::endl;
20714 std::cerr << "Unknown exception caught." << std::endl;
20716 std::cerr << std::endl
20717 << "Python interpreter traceback:" << std::endl;
20719 std::cerr << std::endl;
20720 std::cerr << "This exception was caught by the SWIG unexpected exception handler." << std::endl
20721 << "Try using %feature(\"director:except\") to avoid reaching this point." << std::endl
20723 << "Exception is being re-thrown, program will like abort/terminate." << std::endl;
20727 std::unexpected_handler old;
20728 UnknownExceptionHandler(std::unexpected_handler nh = handler)
20730 old = std::set_unexpected(nh);
20732 ~UnknownExceptionHandler()
20734 std::set_unexpected(old);
20737 class DirectorTypeMismatchException : public Swig::DirectorException {
20739 DirectorTypeMismatchException(PyObject *error, const char* msg="")
20740 : Swig::DirectorException(error, "Swig director type mismatch", msg)
20743 DirectorTypeMismatchException(const char* msg="")
20744 : Swig::DirectorException(PyExc_TypeError, "Swig director type mismatch", msg)
20747 static void raise(PyObject *error, const char *msg)
20749 throw DirectorTypeMismatchException(error, msg);
20751 static void raise(const char *msg)
20753 throw DirectorTypeMismatchException(msg);
20756 class DirectorMethodException : public Swig::DirectorException {
20758 DirectorMethodException(const char* msg = "")
20759 : DirectorException(PyExc_RuntimeError, "Swig director method error.", msg)
20762 static void raise(const char *msg)
20764 throw DirectorMethodException(msg);
20767 class DirectorPureVirtualException : public Swig::DirectorException
20770 DirectorPureVirtualException(const char* msg = "")
20771 : DirectorException(PyExc_RuntimeError, "Swig director pure virtual method called", msg)
20774 static void raise(const char *msg)
20776 throw DirectorPureVirtualException(msg);
20779 typedef void *PyThread_type_lock;
20780 typedef void *PyThread_type_sema;
20782 void PyThread_init_thread(void);
20783 long PyThread_start_new_thread(void (*)(void *), void *);
20784 void PyThread_exit_thread(void);
20785 void PyThread__PyThread_exit_thread(void);
20786 long PyThread_get_thread_ident(void);
20787 PyThread_type_lock PyThread_allocate_lock(void);
20788 void PyThread_free_lock(PyThread_type_lock);
20789 int PyThread_acquire_lock(PyThread_type_lock, int);
20790 void PyThread_release_lock(PyThread_type_lock);
20791 size_t PyThread_get_stacksize(void);
20792 int PyThread_set_stacksize(size_t);
20793 int PyThread_create_key(void);
20794 void PyThread_delete_key(int);
20795 int PyThread_set_key_value(int, void *);
20796 void * PyThread_get_key_value(int);
20797 void PyThread_delete_key_value(int key);
20798 void PyThread_ReInitTLS(void);
20802 PyThread_type_lock & mutex_;
20804 Guard(PyThread_type_lock & mutex) : mutex_(mutex)
20806 PyThread_acquire_lock(mutex_, 1);
20810 PyThread_release_lock(mutex_);
20815 PyObject* swig_self;
20816 mutable bool swig_disown_flag;
20817 void swig_decref() const {
20818 if (swig_disown_flag) {
20819 SWIG_Python_Thread_Block _swig_thread_block;
20820 if ( --((PyObject*)(swig_self))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(swig_self)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(swig_self))));
20821 _swig_thread_block.end();
20825 Director(PyObject* self) : swig_self(self), swig_disown_flag(false) {
20828 virtual ~Director() {
20831 PyObject *swig_get_self() const {
20834 void swig_disown() const {
20835 if (!swig_disown_flag) {
20836 swig_disown_flag=true;
20840 void swig_incref() const {
20841 if (swig_disown_flag) {
20842 ( ((PyObject*)(swig_self))->ob_refcnt++);
20845 virtual bool swig_get_inner(const char* ) const {
20848 virtual void swig_set_inner(const char* , bool ) const {
20851 typedef std::map<void*, GCItem_var> ownership_map;
20852 mutable ownership_map owner;
20853 static PyThread_type_lock swig_mutex_own;
20855 template <typename Type>
20856 void swig_acquire_ownership_array(Type *vptr) const
20859 Guard _guard(swig_mutex_own);
20860 owner[vptr] = new GCArray_T<Type>(vptr);
20863 template <typename Type>
20864 void swig_acquire_ownership(Type *vptr) const
20867 Guard _guard(swig_mutex_own);
20868 owner[vptr] = new GCItem_T<Type>(vptr);
20871 void swig_acquire_ownership_obj(void *vptr, int own) const
20874 Guard _guard(swig_mutex_own);
20875 owner[vptr] = new GCItem_Object(own);
20878 int swig_release_ownership(void *vptr) const
20882 Guard _guard(swig_mutex_own);
20883 ownership_map::iterator iter = owner.find(vptr);
20884 if (iter != owner.end()) {
20885 own = iter->second->get_own();
20892 PyThread_type_lock Director::swig_mutex_own = PyThread_allocate_lock();
20894 static swig_type_info *swig_types[82];
20895 static swig_module_info swig_module = {swig_types, 81, 0, 0, 0, 0};
20897 namespace std __attribute__ ((__visibility__ ("default"))) {
20898 class logic_error : public exception
20903 logic_error(const string& __arg);
20905 ~logic_error() throw();
20906 virtual const char*
20907 what() const throw();
20909 class domain_error : public logic_error
20912 explicit domain_error(const string& __arg);
20914 class invalid_argument : public logic_error
20917 explicit invalid_argument(const string& __arg);
20919 class length_error : public logic_error
20922 explicit length_error(const string& __arg);
20924 class out_of_range : public logic_error
20927 explicit out_of_range(const string& __arg);
20929 class runtime_error : public exception
20934 runtime_error(const string& __arg);
20936 ~runtime_error() throw();
20937 virtual const char*
20938 what() const throw();
20940 class range_error : public runtime_error
20943 explicit range_error(const string& __arg);
20945 class overflow_error : public runtime_error
20948 explicit overflow_error(const string& __arg);
20950 class underflow_error : public runtime_error
20953 explicit underflow_error(const string& __arg);
20957 class SwigPtr_PyObject {
20961 SwigPtr_PyObject() :_obj(0)
20964 SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj)
20966 if ((_obj) == __null) ; else ( ((PyObject*)(_obj))->ob_refcnt++);
20968 SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj)
20971 if ((_obj) == __null) ; else ( ((PyObject*)(_obj))->ob_refcnt++);
20974 SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item)
20976 if ((item._obj) == __null) ; else ( ((PyObject*)(item._obj))->ob_refcnt++);
20977 if ((_obj) == __null) ; else if ( --((PyObject*)(_obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(_obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(_obj))));
20981 ~SwigPtr_PyObject()
20983 if ((_obj) == __null) ; else if ( --((PyObject*)(_obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(_obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(_obj))));
20985 operator PyObject *() const
20989 PyObject *operator->() const
20996 struct SwigVar_PyObject : SwigPtr_PyObject {
20997 SwigVar_PyObject(PyObject* obj = 0) : SwigPtr_PyObject(obj, false) { }
20998 SwigVar_PyObject & operator = (PyObject* obj)
21000 if ((_obj) == __null) ; else if ( --((PyObject*)(_obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(_obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(_obj))));
21007 typedef unsigned doccount;
21008 typedef int doccount_diff;
21009 typedef unsigned docid;
21010 typedef double doclength;
21011 typedef int percent;
21012 typedef unsigned termcount;
21013 typedef int termcount_diff;
21014 typedef unsigned termpos;
21015 typedef int termpos_diff;
21016 typedef unsigned timeout;
21017 typedef unsigned valueno;
21018 typedef int valueno_diff;
21019 typedef double weight;
21020 const valueno BAD_VALUENO = static_cast<valueno>(-1);
21023 class ErrorHandler;
21024 class __attribute__((visibility("default"))) Error {
21025 friend class ErrorHandler;
21027 std::string context;
21030 mutable std::string error_string;
21031 bool already_handled;
21032 void operator=(const Error &o);
21034 Error(const std::string &msg_, const std::string &context_,
21035 const char * type_, const char * error_string_);
21036 Error(const std::string &msg_, const std::string &context_,
21037 const char * type_, int errno_)
21038 : msg(msg_), context(context_), type(type_), my_errno(errno_),
21039 error_string(), already_handled(false) { }
21041 const char * get_type() const { return type; }
21042 const std::string & get_msg() const { return msg; }
21043 const std::string & get_context() const { return context; }
21044 const char * get_error_string() const;
21045 std::string get_description() const;
21047 class __attribute__((visibility("default"))) LogicError : public Error {
21049 LogicError(const std::string &msg_, const std::string &context_, const char * type_, const char * error_string_)
21050 : Error(msg_, context_, type_, error_string_) {}
21051 LogicError(const std::string &msg_, const std::string &context_, const char * type_, int errno_)
21052 : Error(msg_, context_, type_, errno_) {}
21054 class __attribute__((visibility("default"))) RuntimeError : public Error {
21056 RuntimeError(const std::string &msg_, const std::string &context_, const char * type_, const char * error_string_)
21057 : Error(msg_, context_, type_, error_string_) {}
21058 RuntimeError(const std::string &msg_, const std::string &context_, const char * type_, int errno_)
21059 : Error(msg_, context_, type_, errno_) {}
21061 class __attribute__((visibility("default"))) AssertionError : public LogicError {
21063 AssertionError(const std::string &msg_, const std::string &context_, const char * error_string_)
21064 : LogicError(msg_, context_, "AssertionError", error_string_) {}
21065 explicit AssertionError(const std::string &msg_, const std::string &context_ = std::string(), int errno_ = 0)
21066 : LogicError(msg_, context_, "AssertionError", errno_) {}
21067 AssertionError(const std::string &msg_, int errno_)
21068 : LogicError(msg_, std::string(), "AssertionError", errno_) {}
21070 AssertionError(const std::string &msg_, const std::string &context_, const char * type_, const char * error_string_)
21071 : LogicError(msg_, context_, type_, error_string_) {}
21072 AssertionError(const std::string &msg_, const std::string &context_, const char * type_, int errno_)
21073 : LogicError(msg_, context_, type_, errno_) {}
21075 class __attribute__((visibility("default"))) InvalidArgumentError : public LogicError {
21077 InvalidArgumentError(const std::string &msg_, const std::string &context_, const char * error_string_)
21078 : LogicError(msg_, context_, "InvalidArgumentError", error_string_) {}
21079 explicit InvalidArgumentError(const std::string &msg_, const std::string &context_ = std::string(), int errno_ = 0)
21080 : LogicError(msg_, context_, "InvalidArgumentError", errno_) {}
21081 InvalidArgumentError(const std::string &msg_, int errno_)
21082 : LogicError(msg_, std::string(), "InvalidArgumentError", errno_) {}
21084 InvalidArgumentError(const std::string &msg_, const std::string &context_, const char * type_, const char * error_string_)
21085 : LogicError(msg_, context_, type_, error_string_) {}
21086 InvalidArgumentError(const std::string &msg_, const std::string &context_, const char * type_, int errno_)
21087 : LogicError(msg_, context_, type_, errno_) {}
21089 class __attribute__((visibility("default"))) InvalidOperationError : public LogicError {
21091 InvalidOperationError(const std::string &msg_, const std::string &context_, const char * error_string_)
21092 : LogicError(msg_, context_, "InvalidOperationError", error_string_) {}
21093 explicit InvalidOperationError(const std::string &msg_, const std::string &context_ = std::string(), int errno_ = 0)
21094 : LogicError(msg_, context_, "InvalidOperationError", errno_) {}
21095 InvalidOperationError(const std::string &msg_, int errno_)
21096 : LogicError(msg_, std::string(), "InvalidOperationError", errno_) {}
21098 InvalidOperationError(const std::string &msg_, const std::string &context_, const char * type_, const char * error_string_)
21099 : LogicError(msg_, context_, type_, error_string_) {}
21100 InvalidOperationError(const std::string &msg_, const std::string &context_, const char * type_, int errno_)
21101 : LogicError(msg_, context_, type_, errno_) {}
21103 class __attribute__((visibility("default"))) UnimplementedError : public LogicError {
21105 UnimplementedError(const std::string &msg_, const std::string &context_, const char * error_string_)
21106 : LogicError(msg_, context_, "UnimplementedError", error_string_) {}
21107 explicit UnimplementedError(const std::string &msg_, const std::string &context_ = std::string(), int errno_ = 0)
21108 : LogicError(msg_, context_, "UnimplementedError", errno_) {}
21109 UnimplementedError(const std::string &msg_, int errno_)
21110 : LogicError(msg_, std::string(), "UnimplementedError", errno_) {}
21112 UnimplementedError(const std::string &msg_, const std::string &context_, const char * type_, const char * error_string_)
21113 : LogicError(msg_, context_, type_, error_string_) {}
21114 UnimplementedError(const std::string &msg_, const std::string &context_, const char * type_, int errno_)
21115 : LogicError(msg_, context_, type_, errno_) {}
21117 class __attribute__((visibility("default"))) DatabaseError : public RuntimeError {
21119 DatabaseError(const std::string &msg_, const std::string &context_, const char * error_string_)
21120 : RuntimeError(msg_, context_, "DatabaseError", error_string_) {}
21121 explicit DatabaseError(const std::string &msg_, const std::string &context_ = std::string(), int errno_ = 0)
21122 : RuntimeError(msg_, context_, "DatabaseError", errno_) {}
21123 DatabaseError(const std::string &msg_, int errno_)
21124 : RuntimeError(msg_, std::string(), "DatabaseError", errno_) {}
21126 DatabaseError(const std::string &msg_, const std::string &context_, const char * type_, const char * error_string_)
21127 : RuntimeError(msg_, context_, type_, error_string_) {}
21128 DatabaseError(const std::string &msg_, const std::string &context_, const char * type_, int errno_)
21129 : RuntimeError(msg_, context_, type_, errno_) {}
21131 class __attribute__((visibility("default"))) DatabaseCorruptError : public DatabaseError {
21133 DatabaseCorruptError(const std::string &msg_, const std::string &context_, const char * error_string_)
21134 : DatabaseError(msg_, context_, "DatabaseCorruptError", error_string_) {}
21135 explicit DatabaseCorruptError(const std::string &msg_, const std::string &context_ = std::string(), int errno_ = 0)
21136 : DatabaseError(msg_, context_, "DatabaseCorruptError", errno_) {}
21137 DatabaseCorruptError(const std::string &msg_, int errno_)
21138 : DatabaseError(msg_, std::string(), "DatabaseCorruptError", errno_) {}
21140 DatabaseCorruptError(const std::string &msg_, const std::string &context_, const char * type_, const char * error_string_)
21141 : DatabaseError(msg_, context_, type_, error_string_) {}
21142 DatabaseCorruptError(const std::string &msg_, const std::string &context_, const char * type_, int errno_)
21143 : DatabaseError(msg_, context_, type_, errno_) {}
21145 class __attribute__((visibility("default"))) DatabaseCreateError : public DatabaseError {
21147 DatabaseCreateError(const std::string &msg_, const std::string &context_, const char * error_string_)
21148 : DatabaseError(msg_, context_, "DatabaseCreateError", error_string_) {}
21149 explicit DatabaseCreateError(const std::string &msg_, const std::string &context_ = std::string(), int errno_ = 0)
21150 : DatabaseError(msg_, context_, "DatabaseCreateError", errno_) {}
21151 DatabaseCreateError(const std::string &msg_, int errno_)
21152 : DatabaseError(msg_, std::string(), "DatabaseCreateError", errno_) {}
21154 DatabaseCreateError(const std::string &msg_, const std::string &context_, const char * type_, const char * error_string_)
21155 : DatabaseError(msg_, context_, type_, error_string_) {}
21156 DatabaseCreateError(const std::string &msg_, const std::string &context_, const char * type_, int errno_)
21157 : DatabaseError(msg_, context_, type_, errno_) {}
21159 class __attribute__((visibility("default"))) DatabaseLockError : public DatabaseError {
21161 DatabaseLockError(const std::string &msg_, const std::string &context_, const char * error_string_)
21162 : DatabaseError(msg_, context_, "DatabaseLockError", error_string_) {}
21163 explicit DatabaseLockError(const std::string &msg_, const std::string &context_ = std::string(), int errno_ = 0)
21164 : DatabaseError(msg_, context_, "DatabaseLockError", errno_) {}
21165 DatabaseLockError(const std::string &msg_, int errno_)
21166 : DatabaseError(msg_, std::string(), "DatabaseLockError", errno_) {}
21168 DatabaseLockError(const std::string &msg_, const std::string &context_, const char * type_, const char * error_string_)
21169 : DatabaseError(msg_, context_, type_, error_string_) {}
21170 DatabaseLockError(const std::string &msg_, const std::string &context_, const char * type_, int errno_)
21171 : DatabaseError(msg_, context_, type_, errno_) {}
21173 class __attribute__((visibility("default"))) DatabaseModifiedError : public DatabaseError {
21175 DatabaseModifiedError(const std::string &msg_, const std::string &context_, const char * error_string_)
21176 : DatabaseError(msg_, context_, "DatabaseModifiedError", error_string_) {}
21177 explicit DatabaseModifiedError(const std::string &msg_, const std::string &context_ = std::string(), int errno_ = 0)
21178 : DatabaseError(msg_, context_, "DatabaseModifiedError", errno_) {}
21179 DatabaseModifiedError(const std::string &msg_, int errno_)
21180 : DatabaseError(msg_, std::string(), "DatabaseModifiedError", errno_) {}
21182 DatabaseModifiedError(const std::string &msg_, const std::string &context_, const char * type_, const char * error_string_)
21183 : DatabaseError(msg_, context_, type_, error_string_) {}
21184 DatabaseModifiedError(const std::string &msg_, const std::string &context_, const char * type_, int errno_)
21185 : DatabaseError(msg_, context_, type_, errno_) {}
21187 class __attribute__((visibility("default"))) DatabaseOpeningError : public DatabaseError {
21189 DatabaseOpeningError(const std::string &msg_, const std::string &context_, const char * error_string_)
21190 : DatabaseError(msg_, context_, "DatabaseOpeningError", error_string_) {}
21191 explicit DatabaseOpeningError(const std::string &msg_, const std::string &context_ = std::string(), int errno_ = 0)
21192 : DatabaseError(msg_, context_, "DatabaseOpeningError", errno_) {}
21193 DatabaseOpeningError(const std::string &msg_, int errno_)
21194 : DatabaseError(msg_, std::string(), "DatabaseOpeningError", errno_) {}
21196 DatabaseOpeningError(const std::string &msg_, const std::string &context_, const char * type_, const char * error_string_)
21197 : DatabaseError(msg_, context_, type_, error_string_) {}
21198 DatabaseOpeningError(const std::string &msg_, const std::string &context_, const char * type_, int errno_)
21199 : DatabaseError(msg_, context_, type_, errno_) {}
21201 class __attribute__((visibility("default"))) DatabaseVersionError : public DatabaseOpeningError {
21203 DatabaseVersionError(const std::string &msg_, const std::string &context_, const char * error_string_)
21204 : DatabaseOpeningError(msg_, context_, "DatabaseVersionError", error_string_) {}
21205 explicit DatabaseVersionError(const std::string &msg_, const std::string &context_ = std::string(), int errno_ = 0)
21206 : DatabaseOpeningError(msg_, context_, "DatabaseVersionError", errno_) {}
21207 DatabaseVersionError(const std::string &msg_, int errno_)
21208 : DatabaseOpeningError(msg_, std::string(), "DatabaseVersionError", errno_) {}
21210 DatabaseVersionError(const std::string &msg_, const std::string &context_, const char * type_, const char * error_string_)
21211 : DatabaseOpeningError(msg_, context_, type_, error_string_) {}
21212 DatabaseVersionError(const std::string &msg_, const std::string &context_, const char * type_, int errno_)
21213 : DatabaseOpeningError(msg_, context_, type_, errno_) {}
21215 class __attribute__((visibility("default"))) DocNotFoundError : public RuntimeError {
21217 DocNotFoundError(const std::string &msg_, const std::string &context_, const char * error_string_)
21218 : RuntimeError(msg_, context_, "DocNotFoundError", error_string_) {}
21219 explicit DocNotFoundError(const std::string &msg_, const std::string &context_ = std::string(), int errno_ = 0)
21220 : RuntimeError(msg_, context_, "DocNotFoundError", errno_) {}
21221 DocNotFoundError(const std::string &msg_, int errno_)
21222 : RuntimeError(msg_, std::string(), "DocNotFoundError", errno_) {}
21224 DocNotFoundError(const std::string &msg_, const std::string &context_, const char * type_, const char * error_string_)
21225 : RuntimeError(msg_, context_, type_, error_string_) {}
21226 DocNotFoundError(const std::string &msg_, const std::string &context_, const char * type_, int errno_)
21227 : RuntimeError(msg_, context_, type_, errno_) {}
21229 class __attribute__((visibility("default"))) FeatureUnavailableError : public RuntimeError {
21231 FeatureUnavailableError(const std::string &msg_, const std::string &context_, const char * error_string_)
21232 : RuntimeError(msg_, context_, "FeatureUnavailableError", error_string_) {}
21233 explicit FeatureUnavailableError(const std::string &msg_, const std::string &context_ = std::string(), int errno_ = 0)
21234 : RuntimeError(msg_, context_, "FeatureUnavailableError", errno_) {}
21235 FeatureUnavailableError(const std::string &msg_, int errno_)
21236 : RuntimeError(msg_, std::string(), "FeatureUnavailableError", errno_) {}
21238 FeatureUnavailableError(const std::string &msg_, const std::string &context_, const char * type_, const char * error_string_)
21239 : RuntimeError(msg_, context_, type_, error_string_) {}
21240 FeatureUnavailableError(const std::string &msg_, const std::string &context_, const char * type_, int errno_)
21241 : RuntimeError(msg_, context_, type_, errno_) {}
21243 class __attribute__((visibility("default"))) InternalError : public RuntimeError {
21245 InternalError(const std::string &msg_, const std::string &context_, const char * error_string_)
21246 : RuntimeError(msg_, context_, "InternalError", error_string_) {}
21247 explicit InternalError(const std::string &msg_, const std::string &context_ = std::string(), int errno_ = 0)
21248 : RuntimeError(msg_, context_, "InternalError", errno_) {}
21249 InternalError(const std::string &msg_, int errno_)
21250 : RuntimeError(msg_, std::string(), "InternalError", errno_) {}
21252 InternalError(const std::string &msg_, const std::string &context_, const char * type_, const char * error_string_)
21253 : RuntimeError(msg_, context_, type_, error_string_) {}
21254 InternalError(const std::string &msg_, const std::string &context_, const char * type_, int errno_)
21255 : RuntimeError(msg_, context_, type_, errno_) {}
21257 class __attribute__((visibility("default"))) NetworkError : public RuntimeError {
21259 NetworkError(const std::string &msg_, const std::string &context_, const char * error_string_)
21260 : RuntimeError(msg_, context_, "NetworkError", error_string_) {}
21261 explicit NetworkError(const std::string &msg_, const std::string &context_ = std::string(), int errno_ = 0)
21262 : RuntimeError(msg_, context_, "NetworkError", errno_) {}
21263 NetworkError(const std::string &msg_, int errno_)
21264 : RuntimeError(msg_, std::string(), "NetworkError", errno_) {}
21266 NetworkError(const std::string &msg_, const std::string &context_, const char * type_, const char * error_string_)
21267 : RuntimeError(msg_, context_, type_, error_string_) {}
21268 NetworkError(const std::string &msg_, const std::string &context_, const char * type_, int errno_)
21269 : RuntimeError(msg_, context_, type_, errno_) {}
21271 class __attribute__((visibility("default"))) NetworkTimeoutError : public NetworkError {
21273 NetworkTimeoutError(const std::string &msg_, const std::string &context_, const char * error_string_)
21274 : NetworkError(msg_, context_, "NetworkTimeoutError", error_string_) {}
21275 explicit NetworkTimeoutError(const std::string &msg_, const std::string &context_ = std::string(), int errno_ = 0)
21276 : NetworkError(msg_, context_, "NetworkTimeoutError", errno_) {}
21277 NetworkTimeoutError(const std::string &msg_, int errno_)
21278 : NetworkError(msg_, std::string(), "NetworkTimeoutError", errno_) {}
21280 NetworkTimeoutError(const std::string &msg_, const std::string &context_, const char * type_, const char * error_string_)
21281 : NetworkError(msg_, context_, type_, error_string_) {}
21282 NetworkTimeoutError(const std::string &msg_, const std::string &context_, const char * type_, int errno_)
21283 : NetworkError(msg_, context_, type_, errno_) {}
21285 class __attribute__((visibility("default"))) QueryParserError : public RuntimeError {
21287 QueryParserError(const std::string &msg_, const std::string &context_, const char * error_string_)
21288 : RuntimeError(msg_, context_, "QueryParserError", error_string_) {}
21289 explicit QueryParserError(const std::string &msg_, const std::string &context_ = std::string(), int errno_ = 0)
21290 : RuntimeError(msg_, context_, "QueryParserError", errno_) {}
21291 QueryParserError(const std::string &msg_, int errno_)
21292 : RuntimeError(msg_, std::string(), "QueryParserError", errno_) {}
21294 QueryParserError(const std::string &msg_, const std::string &context_, const char * type_, const char * error_string_)
21295 : RuntimeError(msg_, context_, type_, error_string_) {}
21296 QueryParserError(const std::string &msg_, const std::string &context_, const char * type_, int errno_)
21297 : RuntimeError(msg_, context_, type_, errno_) {}
21299 class __attribute__((visibility("default"))) SerialisationError : public RuntimeError {
21301 SerialisationError(const std::string &msg_, const std::string &context_, const char * error_string_)
21302 : RuntimeError(msg_, context_, "SerialisationError", error_string_) {}
21303 explicit SerialisationError(const std::string &msg_, const std::string &context_ = std::string(), int errno_ = 0)
21304 : RuntimeError(msg_, context_, "SerialisationError", errno_) {}
21305 SerialisationError(const std::string &msg_, int errno_)
21306 : RuntimeError(msg_, std::string(), "SerialisationError", errno_) {}
21308 SerialisationError(const std::string &msg_, const std::string &context_, const char * type_, const char * error_string_)
21309 : RuntimeError(msg_, context_, type_, error_string_) {}
21310 SerialisationError(const std::string &msg_, const std::string &context_, const char * type_, int errno_)
21311 : RuntimeError(msg_, context_, type_, errno_) {}
21313 class __attribute__((visibility("default"))) RangeError : public RuntimeError {
21315 RangeError(const std::string &msg_, const std::string &context_, const char * error_string_)
21316 : RuntimeError(msg_, context_, "RangeError", error_string_) {}
21317 explicit RangeError(const std::string &msg_, const std::string &context_ = std::string(), int errno_ = 0)
21318 : RuntimeError(msg_, context_, "RangeError", errno_) {}
21319 RangeError(const std::string &msg_, int errno_)
21320 : RuntimeError(msg_, std::string(), "RangeError", errno_) {}
21322 RangeError(const std::string &msg_, const std::string &context_, const char * type_, const char * error_string_)
21323 : RuntimeError(msg_, context_, type_, error_string_) {}
21324 RangeError(const std::string &msg_, const std::string &context_, const char * type_, int errno_)
21325 : RuntimeError(msg_, context_, type_, errno_) {}
21330 class __attribute__((visibility("default"))) ErrorHandler {
21331 void operator=(const ErrorHandler &);
21332 ErrorHandler(const Xapian::ErrorHandler &);
21333 virtual bool handle_error(Xapian::Error &error) = 0;
21336 virtual ~ErrorHandler();
21337 void operator()(Xapian::Error &error);
21341 namespace Internal {
21344 RefCntBase(const RefCntBase &) : ref_count(0) { }
21346 RefCntBase() : ref_count(0) { }
21347 typedef unsigned int ref_count_t;
21348 mutable ref_count_t ref_count;
21355 T *operator->() const;
21356 T &operator*() const;
21358 RefCntPtr(T *dest_);
21360 RefCntPtr(const RefCntPtr &other);
21361 void operator=(const RefCntPtr &other);
21362 void operator=(T *dest_);
21365 RefCntPtr(const RefCntPtr<U> &other);
21368 inline RefCntPtr<T>::RefCntPtr(T *dest_) : dest(dest_)
21370 if (dest) ++dest->ref_count;
21373 inline RefCntPtr<T>::RefCntPtr() : dest(0)
21377 inline RefCntPtr<T>::RefCntPtr(const RefCntPtr &other) : dest(other.dest)
21379 if (dest) ++dest->ref_count;
21382 inline void RefCntPtr<T>::operator=(const RefCntPtr &other) {
21383 operator=(other.dest);
21386 inline void RefCntPtr<T>::operator=(T *dest_) {
21387 if (dest == dest_) return;
21388 T *old_dest = dest;
21390 if (dest) ++dest->ref_count;
21391 if (old_dest && --old_dest->ref_count == 0) delete old_dest;
21394 inline RefCntPtr<T>::~RefCntPtr()
21396 if (dest && --dest->ref_count == 0) {
21397 T * condemned = dest;
21405 RefCntPtr<T>::RefCntPtr(const RefCntPtr<U> &other)
21406 : dest(other.get())
21408 if (dest) ++dest->ref_count;
21411 inline T *RefCntPtr<T>::operator->() const
21416 inline T &RefCntPtr<T>::operator*() const
21421 inline T *RefCntPtr<T>::get() const
21430 namespace std __attribute__ ((__visibility__ ("default"))) {
21431 template<typename _Tp, typename _CharT = char,
21432 typename _Traits = char_traits<_CharT>, typename _Dist = ptrdiff_t>
21433 class istream_iterator
21434 : public iterator<input_iterator_tag, _Tp, _Dist, const _Tp*, const _Tp&>
21437 typedef _CharT char_type;
21438 typedef _Traits traits_type;
21439 typedef basic_istream<_CharT, _Traits> istream_type;
21441 istream_type* _M_stream;
21446 : _M_stream(0), _M_value(), _M_ok(false) {}
21447 istream_iterator(istream_type& __s)
21450 istream_iterator(const istream_iterator& __obj)
21451 : _M_stream(__obj._M_stream), _M_value(__obj._M_value),
21461 operator->() const { return &(operator*()); }
21473 istream_iterator __tmp = *this;
21478 _M_equal(const istream_iterator& __x) const
21479 { return (_M_ok == __x._M_ok) && (!_M_ok || _M_stream == __x._M_stream); }
21484 _M_ok = (_M_stream && *_M_stream) ? true : false;
21487 *_M_stream >> _M_value;
21488 _M_ok = *_M_stream ? true : false;
21492 template<typename _Tp, typename _CharT, typename _Traits, typename _Dist>
21494 operator==(const istream_iterator<_Tp, _CharT, _Traits, _Dist>& __x,
21495 const istream_iterator<_Tp, _CharT, _Traits, _Dist>& __y)
21496 { return __x._M_equal(__y); }
21497 template <class _Tp, class _CharT, class _Traits, class _Dist>
21499 operator!=(const istream_iterator<_Tp, _CharT, _Traits, _Dist>& __x,
21500 const istream_iterator<_Tp, _CharT, _Traits, _Dist>& __y)
21501 { return !__x._M_equal(__y); }
21502 template<typename _Tp, typename _CharT = char,
21503 typename _Traits = char_traits<_CharT> >
21504 class ostream_iterator
21505 : public iterator<output_iterator_tag, void, void, void, void>
21508 typedef _CharT char_type;
21509 typedef _Traits traits_type;
21510 typedef basic_ostream<_CharT, _Traits> ostream_type;
21512 ostream_type* _M_stream;
21513 const _CharT* _M_string;
21515 ostream_iterator(ostream_type& __s) : _M_stream(&__s), _M_string(0) {}
21516 ostream_iterator(ostream_type& __s, const _CharT* __c)
21517 : _M_stream(&__s), _M_string(__c) { }
21518 ostream_iterator(const ostream_iterator& __obj)
21519 : _M_stream(__obj._M_stream), _M_string(__obj._M_string) { }
21521 operator=(const _Tp& __value)
21524 *_M_stream << __value;
21525 if (_M_string) *_M_stream << _M_string;
21540 template<typename T>
21541 class DerefWrapper_ {
21542 void operator=(const DerefWrapper_ &);
21545 explicit DerefWrapper_(const T &res_) : res(res_) { }
21546 const T & operator*() const { return res; }
21551 class PostingIterator;
21552 class TermIterator;
21553 class __attribute__((visibility("default"))) PositionIterator {
21555 friend class PostingIterator;
21556 friend class TermIterator;
21557 friend class Database;
21560 Xapian::Internal::RefCntPtr<Internal> internal;
21561 friend bool operator==(const PositionIterator &a, const PositionIterator &b);
21562 explicit PositionIterator(Internal *internal_);
21563 PositionIterator();
21564 ~PositionIterator();
21565 PositionIterator(const PositionIterator &o);
21566 void operator=(const PositionIterator &o);
21567 Xapian::termpos operator *() const;
21568 PositionIterator & operator++();
21569 DerefWrapper_<termpos> operator++(int) {
21570 Xapian::termpos tmp = **this;
21572 return DerefWrapper_<termpos>(tmp);
21574 void skip_to(Xapian::termpos pos);
21575 std::string get_description() const;
21576 typedef std::input_iterator_tag iterator_category;
21577 typedef Xapian::termpos value_type;
21578 typedef Xapian::termpos_diff difference_type;
21579 typedef Xapian::termpos * pointer;
21580 typedef Xapian::termpos & reference;
21583 operator==(const PositionIterator &a, const PositionIterator &b)
21585 return (a.internal.get() == b.internal.get());
21588 operator!=(const PositionIterator &a, const PositionIterator &b)
21595 class __attribute__((visibility("default"))) TermIterator {
21598 Xapian::Internal::RefCntPtr<Internal> internal;
21599 explicit TermIterator(Internal *internal_);
21602 TermIterator(const TermIterator &other);
21603 void operator=(const TermIterator &other);
21604 std::string operator *() const;
21605 TermIterator & operator++();
21606 DerefWrapper_<std::string> operator++(int) {
21607 const std::string & term(**this);
21609 return DerefWrapper_<std::string>(term);
21611 void skip_to(const std::string & tname);
21612 Xapian::termcount get_wdf() const;
21613 Xapian::doccount get_termfreq() const;
21614 Xapian::termcount positionlist_count() const;
21615 PositionIterator positionlist_begin() const;
21616 PositionIterator positionlist_end() const {
21617 return PositionIterator(__null);
21619 std::string get_description() const;
21620 typedef std::input_iterator_tag iterator_category;
21621 typedef std::string value_type;
21622 typedef Xapian::termcount_diff difference_type;
21623 typedef std::string * pointer;
21624 typedef std::string & reference;
21627 operator==(const TermIterator &a, const TermIterator &b)
21629 return (a.internal.get() == b.internal.get());
21632 operator!=(const TermIterator &a, const TermIterator &b)
21638 class ValueIteratorEnd_ { };
21639 class __attribute__((visibility("default"))) ValueIterator {
21642 Xapian::Internal::RefCntPtr<Internal> internal;
21643 explicit ValueIterator(Internal *internal_);
21644 ValueIterator(const ValueIterator & o);
21645 ValueIterator(const ValueIteratorEnd_ &);
21646 ValueIterator & operator=(const ValueIterator & o);
21647 ValueIterator & operator=(const ValueIteratorEnd_ &);
21650 std::string operator*() const;
21651 ValueIterator & operator++();
21652 DerefWrapper_<std::string> operator++(int) {
21653 const std::string & value(**this);
21655 return DerefWrapper_<std::string>(value);
21657 Xapian::docid get_docid() const;
21658 Xapian::valueno get_valueno() const;
21659 void skip_to(Xapian::docid docid_or_slot);
21660 bool check(Xapian::docid docid);
21661 std::string get_description() const;
21662 typedef std::input_iterator_tag iterator_category;
21663 typedef std::string value_type;
21664 typedef Xapian::doccount_diff difference_type;
21665 typedef std::string * pointer;
21666 typedef std::string & reference;
21669 operator==(const ValueIterator &a, const ValueIterator &b)
21671 return a.internal.get() == b.internal.get();
21674 operator==(const ValueIterator &a, const ValueIteratorEnd_ &)
21676 return a.internal.get() == __null;
21679 operator==(const ValueIteratorEnd_ &a, const ValueIterator &b)
21684 operator==(const ValueIteratorEnd_ &, const ValueIteratorEnd_ &)
21689 operator!=(const ValueIterator &a, const ValueIterator &b)
21694 operator!=(const ValueIterator &a, const ValueIteratorEnd_ &b)
21699 operator!=(const ValueIteratorEnd_ &a, const ValueIterator &b)
21704 operator!=(const ValueIteratorEnd_ &a, const ValueIteratorEnd_ &b)
21710 class __attribute__((visibility("default"))) Document {
21713 Xapian::Internal::RefCntPtr<Internal> internal;
21714 explicit Document(Internal *internal_);
21715 Document(const Document &other);
21716 void operator=(const Document &other);
21719 std::string get_value(Xapian::valueno valueno) const;
21720 void add_value(Xapian::valueno valueno, const std::string &value);
21721 void remove_value(Xapian::valueno valueno);
21722 void clear_values();
21723 std::string get_data() const;
21724 void set_data(const std::string &data);
21725 void add_posting(const std::string & tname,
21726 Xapian::termpos tpos,
21727 Xapian::termcount wdfinc = 1);
21728 void add_term(const std::string & tname, Xapian::termcount wdfinc = 1);
21729 void add_boolean_term(const std::string & term) { add_term(term, 0); }
21730 void remove_posting(const std::string & tname,
21731 Xapian::termpos tpos,
21732 Xapian::termcount wdfdec = 1);
21733 void remove_term(const std::string & tname);
21734 void clear_terms();
21735 Xapian::termcount termlist_count() const;
21736 TermIterator termlist_begin() const;
21737 TermIterator termlist_end() const {
21738 return TermIterator(__null);
21740 Xapian::termcount values_count() const;
21741 ValueIterator values_begin() const;
21742 ValueIteratorEnd_ values_end() const {
21743 return ValueIteratorEnd_();
21745 docid get_docid() const;
21746 std::string serialise() const;
21747 static Document unserialise(const std::string &s);
21748 std::string get_description() const;
21753 class __attribute__((visibility("default"))) PostingIterator {
21756 Xapian::Internal::RefCntPtr<Internal> internal;
21758 friend class Database;
21759 explicit PostingIterator(Internal *internal_);
21761 friend bool operator==(const PostingIterator &a,
21762 const PostingIterator &b);
21764 ~PostingIterator();
21765 PostingIterator(const PostingIterator &other);
21766 void operator=(const PostingIterator &other);
21767 PostingIterator & operator++();
21768 DerefWrapper_<docid> operator++(int) {
21769 Xapian::docid tmp = **this;
21771 return DerefWrapper_<docid>(tmp);
21773 void skip_to(Xapian::docid did);
21774 Xapian::docid operator *() const;
21775 Xapian::termcount get_doclength() const;
21776 Xapian::termcount get_wdf() const;
21777 PositionIterator positionlist_begin() const;
21778 PositionIterator positionlist_end() const {
21779 return PositionIterator(__null);
21781 std::string get_description() const;
21782 typedef std::input_iterator_tag iterator_category;
21783 typedef Xapian::docid value_type;
21784 typedef Xapian::doccount_diff difference_type;
21785 typedef Xapian::docid * pointer;
21786 typedef Xapian::docid & reference;
21788 inline bool operator==(const PostingIterator &a, const PostingIterator &b)
21790 return (a.internal.get() == b.internal.get());
21792 inline bool operator!=(const PostingIterator &a, const PostingIterator &b)
21798 class __attribute__((visibility("default"))) Database {
21801 std::vector<Xapian::Internal::RefCntPtr<Internal> > internal;
21802 Document::Internal * get_document_lazily(Xapian::docid did) const;
21803 void add_database(const Database & database);
21805 explicit Database(const std::string &path);
21806 explicit Database(Internal *internal);
21807 virtual ~Database();
21808 Database(const Database &other);
21809 void operator=(const Database &other);
21811 virtual void close();
21812 virtual std::string get_description() const;
21813 PostingIterator postlist_begin(const std::string &tname) const;
21814 PostingIterator postlist_end(const std::string &) const {
21815 return PostingIterator(__null);
21817 TermIterator termlist_begin(Xapian::docid did) const;
21818 TermIterator termlist_end(Xapian::docid) const {
21819 return TermIterator(__null);
21821 bool has_positions() const;
21822 PositionIterator positionlist_begin(Xapian::docid did, const std::string &tname) const;
21823 PositionIterator positionlist_end(Xapian::docid, const std::string &) const {
21824 return PositionIterator(__null);
21826 TermIterator allterms_begin() const;
21827 TermIterator allterms_end() const {
21828 return TermIterator(__null);
21830 TermIterator allterms_begin(const std::string & prefix) const;
21831 TermIterator allterms_end(const std::string &) const {
21832 return TermIterator(__null);
21834 Xapian::doccount get_doccount() const;
21835 Xapian::docid get_lastdocid() const;
21836 Xapian::doclength get_avlength() const;
21837 Xapian::doccount get_termfreq(const std::string & tname) const;
21838 bool term_exists(const std::string & tname) const;
21839 Xapian::termcount get_collection_freq(const std::string & tname) const;
21840 Xapian::doccount get_value_freq(Xapian::valueno valno) const;
21841 std::string get_value_lower_bound(Xapian::valueno valno) const;
21842 std::string get_value_upper_bound(Xapian::valueno valno) const;
21843 Xapian::termcount get_doclength_lower_bound() const;
21844 Xapian::termcount get_doclength_upper_bound() const;
21845 Xapian::termcount get_wdf_upper_bound(const std::string & term) const;
21846 ValueIterator valuestream_begin(Xapian::valueno slot) const;
21847 ValueIteratorEnd_ valuestream_end(Xapian::valueno) const {
21848 return ValueIteratorEnd_();
21850 Xapian::termcount get_doclength(Xapian::docid did) const;
21852 Xapian::Document get_document(Xapian::docid did) const;
21853 std::string get_spelling_suggestion(const std::string &word,
21854 unsigned max_edit_distance = 2) const;
21855 Xapian::TermIterator spellings_begin() const;
21856 Xapian::TermIterator spellings_end() const {
21857 return Xapian::TermIterator(__null);
21859 Xapian::TermIterator synonyms_begin(const std::string &term) const;
21860 Xapian::TermIterator synonyms_end(const std::string &) const {
21861 return Xapian::TermIterator(__null);
21863 Xapian::TermIterator synonym_keys_begin(const std::string &prefix = std::string()) const;
21864 Xapian::TermIterator synonym_keys_end(const std::string & = std::string()) const {
21865 return Xapian::TermIterator(__null);
21867 std::string get_metadata(const std::string & key) const;
21868 Xapian::TermIterator metadata_keys_begin(const std::string &prefix = std::string()) const;
21869 Xapian::TermIterator metadata_keys_end(const std::string & = std::string()) const {
21870 return Xapian::TermIterator(__null);
21872 std::string get_uuid() const;
21874 class __attribute__((visibility("default"))) WritableDatabase : public Database {
21876 virtual ~WritableDatabase();
21877 WritableDatabase();
21878 WritableDatabase(const std::string &path, int action);
21879 explicit WritableDatabase(Database::Internal *internal);
21880 WritableDatabase(const WritableDatabase &other);
21881 void operator=(const WritableDatabase &other);
21883 void flush() { commit(); }
21884 void begin_transaction(bool flushed=true);
21885 void commit_transaction();
21886 void cancel_transaction();
21887 Xapian::docid add_document(const Xapian::Document & document);
21888 void delete_document(Xapian::docid did);
21889 void delete_document(const std::string & unique_term);
21890 void replace_document(Xapian::docid did,
21891 const Xapian::Document & document);
21892 Xapian::docid replace_document(const std::string & unique_term,
21893 const Xapian::Document & document);
21894 void add_spelling(const std::string & word,
21895 Xapian::termcount freqinc = 1) const;
21896 void remove_spelling(const std::string & word,
21897 Xapian::termcount freqdec = 1) const;
21898 void add_synonym(const std::string & term,
21899 const std::string & synonym) const;
21900 void remove_synonym(const std::string & term,
21901 const std::string & synonym) const;
21902 void clear_synonyms(const std::string & term) const;
21903 void set_metadata(const std::string & key, const std::string & value);
21904 std::string get_description() const;
21906 const int DB_CREATE_OR_OPEN = 1;
21907 const int DB_CREATE = 2;
21908 const int DB_CREATE_OR_OVERWRITE = 3;
21909 const int DB_OPEN = 4;
21913 class WritableDatabase;
21915 __attribute__((visibility("default")))
21916 Database open_stub(const std::string &file);
21917 __attribute__((visibility("default")))
21918 WritableDatabase open_stub(const std::string &file, int action);
21920 namespace InMemory {
21921 __attribute__((visibility("default")))
21922 WritableDatabase open();
21925 __attribute__((visibility("default")))
21926 Database open(const std::string &dir);
21927 __attribute__((visibility("default")))
21929 open(const std::string &dir, int action, int block_size = 8192);
21932 __attribute__((visibility("default")))
21933 Database open(const std::string &dir);
21934 __attribute__((visibility("default")))
21936 open(const std::string &dir, int action, int block_size = 8192);
21939 __attribute__((visibility("default")))
21940 Database open(const std::string &dir);
21941 __attribute__((visibility("default")))
21943 open(const std::string &dir, int action, int block_size = 8192);
21946 __attribute__((visibility("default")))
21947 Database open(const std::string &host, unsigned int port, Xapian::timeout timeout = 10000, Xapian::timeout connect_timeout = 10000);
21948 __attribute__((visibility("default")))
21949 WritableDatabase open_writable(const std::string &host, unsigned int port, Xapian::timeout timeout = 0, Xapian::timeout connect_timeout = 10000);
21950 __attribute__((visibility("default")))
21951 Database open(const std::string &program, const std::string &args, Xapian::timeout timeout = 10000);
21952 __attribute__((visibility("default")))
21953 WritableDatabase open_writable(const std::string &program, const std::string &args, Xapian::timeout timeout = 0);
21957 class __attribute__((visibility("default"))) Utf8Iterator {
21958 const unsigned char *p;
21959 const unsigned char *end;
21960 mutable unsigned seqlen;
21961 void calculate_sequence_length() const;
21962 unsigned get_char() const;
21963 Utf8Iterator(const unsigned char *p_, const unsigned char *end_, unsigned seqlen_)
21964 : p(p_), end(end_), seqlen(seqlen_) { }
21966 const char * raw() const {
21967 return reinterpret_cast<const char *>(p ? p : end);
21969 size_t left() const { return p ? end - p : 0; }
21970 void assign(const char *p_, size_t len) {
21972 p = reinterpret_cast<const unsigned char*>(p_);
21979 void assign(const std::string &s) { assign(s.data(), s.size()); }
21980 explicit Utf8Iterator(const char *p_);
21981 Utf8Iterator(const char *p_, size_t len) { assign(p_, len); }
21982 Utf8Iterator(const std::string &s) { assign(s.data(), s.size()); }
21983 Utf8Iterator() : p(__null), end(0), seqlen(0) { }
21984 unsigned operator*() const;
21985 Utf8Iterator operator++(int) {
21986 if (seqlen == 0) calculate_sequence_length();
21987 const unsigned char *old_p = p;
21988 unsigned old_seqlen = seqlen;
21990 if (p == end) p = __null;
21992 return Utf8Iterator(old_p, end, old_seqlen);
21994 Utf8Iterator & operator++() {
21995 if (seqlen == 0) calculate_sequence_length();
21997 if (p == end) p = __null;
22001 bool operator==(const Utf8Iterator &other) const { return p == other.p; }
22002 bool operator!=(const Utf8Iterator &other) const { return p != other.p; }
22003 typedef std::input_iterator_tag iterator_category;
22004 typedef unsigned value_type;
22005 typedef size_t difference_type;
22006 typedef const unsigned * pointer;
22007 typedef const unsigned & reference;
22009 namespace Unicode {
22019 COMBINING_SPACING_MARK,
22020 DECIMAL_DIGIT_NUMBER,
22025 PARAGRAPH_SEPARATOR,
22030 CONNECTOR_PUNCTUATION,
22034 INITIAL_QUOTE_PUNCTUATION,
22035 FINAL_QUOTE_PUNCTUATION,
22042 namespace Internal {
22043 __attribute__((visibility("default")))
22044 int get_character_info(unsigned ch);
22045 inline int get_case_type(int info) { return ((info & 0xe0) >> 5); }
22046 inline category get_category(int info) { return static_cast<category>(info & 0x1f); }
22047 inline int get_delta(int info) {
22048 return (info >= 0) ? (info >> 15) : (~(~info >> 15));
22051 __attribute__((visibility("default")))
22052 unsigned nonascii_to_utf8(unsigned ch, char * buf);
22053 inline unsigned to_utf8(unsigned ch, char *buf) {
22055 *buf = static_cast<unsigned char>(ch);
22058 return Xapian::Unicode::nonascii_to_utf8(ch, buf);
22060 inline void append_utf8(std::string &s, unsigned ch) {
22062 s.append(buf, to_utf8(ch, buf));
22064 inline category get_category(unsigned ch) {
22065 if (ch >= 0x110000) return Xapian::Unicode::UNASSIGNED;
22066 return Internal::get_category(Internal::get_character_info(ch));
22068 inline bool is_wordchar(unsigned ch) {
22069 const unsigned int WORDCHAR_MASK =
22070 (1 << Xapian::Unicode::UPPERCASE_LETTER) |
22071 (1 << Xapian::Unicode::LOWERCASE_LETTER) |
22072 (1 << Xapian::Unicode::TITLECASE_LETTER) |
22073 (1 << Xapian::Unicode::MODIFIER_LETTER) |
22074 (1 << Xapian::Unicode::OTHER_LETTER) |
22075 (1 << Xapian::Unicode::NON_SPACING_MARK) |
22076 (1 << Xapian::Unicode::ENCLOSING_MARK) |
22077 (1 << Xapian::Unicode::COMBINING_SPACING_MARK) |
22078 (1 << Xapian::Unicode::DECIMAL_DIGIT_NUMBER) |
22079 (1 << Xapian::Unicode::LETTER_NUMBER) |
22080 (1 << Xapian::Unicode::OTHER_NUMBER) |
22081 (1 << Xapian::Unicode::CONNECTOR_PUNCTUATION);
22082 return ((WORDCHAR_MASK >> get_category(ch)) & 1);
22084 inline bool is_whitespace(unsigned ch) {
22085 const unsigned int WHITESPACE_MASK =
22086 (1 << Xapian::Unicode::CONTROL) |
22087 (1 << Xapian::Unicode::SPACE_SEPARATOR) |
22088 (1 << Xapian::Unicode::LINE_SEPARATOR) |
22089 (1 << Xapian::Unicode::PARAGRAPH_SEPARATOR);
22090 return ((WHITESPACE_MASK >> get_category(ch)) & 1);
22092 inline bool is_currency(unsigned ch) {
22093 return (get_category(ch) == Xapian::Unicode::CURRENCY_SYMBOL);
22095 inline unsigned tolower(unsigned ch) {
22097 if (ch >= 0x110000 || !(Internal::get_case_type((info = Xapian::Unicode::Internal::get_character_info(ch))) & 2))
22099 return ch + Internal::get_delta(info);
22101 inline unsigned toupper(unsigned ch) {
22103 if (ch >= 0x110000 || !(Internal::get_case_type((info = Xapian::Unicode::Internal::get_character_info(ch))) & 4))
22105 return ch - Internal::get_delta(info);
22108 tolower(const std::string &term)
22110 std::string result;
22111 result.reserve(term.size());
22112 for (Utf8Iterator i(term); i != Utf8Iterator(); ++i) {
22113 append_utf8(result, tolower(*i));
22118 toupper(const std::string &term)
22120 std::string result;
22121 result.reserve(term.size());
22122 for (Utf8Iterator i(term); i != Utf8Iterator(); ++i) {
22123 append_utf8(result, toupper(*i));
22133 class WritableDatabase;
22134 class __attribute__((visibility("default"))) TermGenerator {
22137 Xapian::Internal::RefCntPtr<Internal> internal;
22138 TermGenerator(const TermGenerator & o);
22139 TermGenerator & operator=(const TermGenerator & o);
22142 void set_stemmer(const Xapian::Stem & stemmer);
22143 void set_stopper(const Xapian::Stopper *stop = __null);
22144 void set_document(const Xapian::Document & doc);
22145 const Xapian::Document & get_document() const;
22146 void set_database(const Xapian::WritableDatabase &db);
22148 FLAG_SPELLING = 128
22150 flags set_flags(flags toggle, flags mask = flags(0));
22151 void index_text(const Xapian::Utf8Iterator & itor,
22152 Xapian::termcount weight = 1,
22153 const std::string & prefix = std::string());
22154 void index_text(const std::string & text,
22155 Xapian::termcount weight = 1,
22156 const std::string & prefix = std::string()) {
22157 return index_text(Utf8Iterator(text), weight, prefix);
22159 void index_text_without_positions(const Xapian::Utf8Iterator & itor,
22160 Xapian::termcount weight = 1,
22161 const std::string & prefix = std::string());
22162 void index_text_without_positions(const std::string & text,
22163 Xapian::termcount weight = 1,
22164 const std::string & prefix = std::string()) {
22165 return index_text_without_positions(Utf8Iterator(text), weight, prefix);
22167 void increase_termpos(Xapian::termcount delta = 100);
22168 Xapian::termcount get_termpos() const;
22169 void set_termpos(Xapian::termcount termpos);
22170 std::string get_description() const;
22175 class __attribute__((visibility("default"))) KeyMaker {
22177 virtual std::string operator()(const Xapian::Document & doc) const = 0;
22178 virtual ~KeyMaker();
22180 class __attribute__((visibility("default"))) MultiValueKeyMaker : public KeyMaker {
22181 std::vector<std::pair<Xapian::valueno, bool> > valnos;
22183 MultiValueKeyMaker() { }
22184 template <class Iterator>
22185 MultiValueKeyMaker(Iterator begin, Iterator end) {
22186 while (begin != end) add_value(*begin++);
22188 virtual std::string operator()(const Xapian::Document & doc) const;
22189 void add_value(Xapian::valueno valno, bool reverse = false) {
22190 valnos.push_back(std::make_pair(valno, reverse));
22193 class __attribute__((visibility("default"))) Sorter : public KeyMaker { };
22194 class __attribute__((visibility("default"))) MultiValueSorter : public Sorter {
22195 std::vector<std::pair<Xapian::valueno, bool> > valnos;
22197 MultiValueSorter() { }
22198 template <class Iterator>
22199 MultiValueSorter(Iterator begin, Iterator end) {
22200 while (begin != end) add(*begin++);
22202 virtual std::string operator()(const Xapian::Document & doc) const;
22203 void add(Xapian::valueno valno, bool forward = true) {
22204 valnos.push_back(std::make_pair(valno, forward));
22211 class ErrorHandler;
22212 class ExpandDecider;
22214 class MSetIterator;
22217 class __attribute__((visibility("default"))) MSet {
22220 Xapian::Internal::RefCntPtr<Internal> internal;
22221 explicit MSet(MSet::Internal * internal_);
22224 MSet(const MSet & other);
22225 void operator=(const MSet &other);
22226 void fetch(const MSetIterator &begin, const MSetIterator &end) const;
22227 void fetch(const MSetIterator &item) const;
22228 void fetch() const;
22229 Xapian::percent convert_to_percent(Xapian::weight wt) const;
22230 Xapian::percent convert_to_percent(const MSetIterator &it) const;
22231 Xapian::doccount get_termfreq(const std::string &tname) const;
22232 Xapian::weight get_termweight(const std::string &tname) const;
22233 Xapian::doccount get_firstitem() const;
22234 Xapian::doccount get_matches_lower_bound() const;
22235 Xapian::doccount get_matches_estimated() const;
22236 Xapian::doccount get_matches_upper_bound() const;
22237 Xapian::doccount get_uncollapsed_matches_lower_bound() const;
22238 Xapian::doccount get_uncollapsed_matches_estimated() const;
22239 Xapian::doccount get_uncollapsed_matches_upper_bound() const;
22240 Xapian::weight get_max_possible() const;
22241 Xapian::weight get_max_attained() const;
22242 Xapian::doccount size() const;
22243 Xapian::doccount max_size() const { return size(); }
22244 bool empty() const;
22245 void swap(MSet & other);
22246 MSetIterator begin() const;
22247 MSetIterator end() const;
22248 MSetIterator back() const;
22249 MSetIterator operator[](Xapian::doccount i) const;
22250 typedef MSetIterator value_type;
22251 typedef MSetIterator iterator;
22252 typedef MSetIterator const_iterator;
22253 typedef MSetIterator & reference;
22254 typedef MSetIterator & const_reference;
22255 typedef MSetIterator * pointer;
22256 typedef Xapian::doccount_diff difference_type;
22257 typedef Xapian::doccount size_type;
22258 std::string get_description() const;
22260 class __attribute__((visibility("default"))) MSetIterator {
22263 friend bool operator==(const MSetIterator &a, const MSetIterator &b);
22264 friend bool operator!=(const MSetIterator &a, const MSetIterator &b);
22265 MSetIterator(Xapian::doccount index_, const MSet & mset_)
22266 : index(index_), mset(mset_) { }
22267 Xapian::doccount index;
22270 MSetIterator() : index(0), mset() { }
22271 MSetIterator(const MSetIterator &other) {
22272 index = other.index;
22275 void operator=(const MSetIterator &other) {
22276 index = other.index;
22279 MSetIterator & operator++() {
22283 MSetIterator operator++(int) {
22284 MSetIterator tmp = *this;
22288 MSetIterator & operator--() {
22292 MSetIterator operator--(int) {
22293 MSetIterator tmp = *this;
22297 Xapian::docid operator*() const;
22298 Xapian::Document get_document() const;
22299 Xapian::doccount get_rank() const {
22300 return mset.get_firstitem() + index;
22302 Xapian::weight get_weight() const;
22303 std::string get_collapse_key() const;
22304 Xapian::doccount get_collapse_count() const;
22305 Xapian::percent get_percent() const;
22306 std::string get_description() const;
22307 typedef std::bidirectional_iterator_tag iterator_category;
22308 typedef Xapian::docid value_type;
22309 typedef Xapian::doccount_diff difference_type;
22310 typedef Xapian::docid * pointer;
22311 typedef Xapian::docid & reference;
22313 inline bool operator==(const MSetIterator &a, const MSetIterator &b)
22315 return (a.index == b.index);
22317 inline bool operator!=(const MSetIterator &a, const MSetIterator &b)
22319 return (a.index != b.index);
22321 class ESetIterator;
22322 class __attribute__((visibility("default"))) ESet {
22325 Xapian::Internal::RefCntPtr<Internal> internal;
22328 ESet(const ESet & other);
22329 void operator=(const ESet &other);
22330 Xapian::termcount get_ebound() const;
22331 Xapian::termcount size() const;
22332 Xapian::termcount max_size() const { return size(); }
22333 bool empty() const;
22334 void swap(ESet & other);
22335 ESetIterator begin() const;
22336 ESetIterator end() const;
22337 ESetIterator back() const;
22338 ESetIterator operator[](Xapian::termcount i) const;
22339 std::string get_description() const;
22341 class __attribute__((visibility("default"))) ESetIterator {
22344 friend bool operator==(const ESetIterator &a, const ESetIterator &b);
22345 friend bool operator!=(const ESetIterator &a, const ESetIterator &b);
22346 ESetIterator(Xapian::termcount index_, const ESet & eset_)
22347 : index(index_), eset(eset_) { }
22348 Xapian::termcount index;
22351 ESetIterator() : index(0), eset() { }
22352 ESetIterator(const ESetIterator &other) {
22353 index = other.index;
22356 void operator=(const ESetIterator &other) {
22357 index = other.index;
22360 ESetIterator & operator++() {
22364 ESetIterator operator++(int) {
22365 ESetIterator tmp = *this;
22369 ESetIterator & operator--() {
22373 ESetIterator operator--(int) {
22374 ESetIterator tmp = *this;
22378 const std::string & operator *() const;
22379 Xapian::weight get_weight() const;
22380 std::string get_description() const;
22381 typedef std::bidirectional_iterator_tag iterator_category;
22382 typedef std::string value_type;
22383 typedef Xapian::termcount_diff difference_type;
22384 typedef std::string * pointer;
22385 typedef std::string & reference;
22387 inline bool operator==(const ESetIterator &a, const ESetIterator &b)
22389 return (a.index == b.index);
22391 inline bool operator!=(const ESetIterator &a, const ESetIterator &b)
22393 return (a.index != b.index);
22395 class __attribute__((visibility("default"))) RSet {
22398 Xapian::Internal::RefCntPtr<Internal> internal;
22399 RSet(const RSet &rset);
22400 void operator=(const RSet &rset);
22403 Xapian::doccount size() const;
22404 bool empty() const;
22405 void add_document(Xapian::docid did);
22406 void add_document(const Xapian::MSetIterator & i) { add_document(*i); }
22407 void remove_document(Xapian::docid did);
22408 void remove_document(const Xapian::MSetIterator & i) { remove_document(*i); }
22409 bool contains(Xapian::docid did) const;
22410 bool contains(const Xapian::MSetIterator & i) const { return contains(*i); }
22411 std::string get_description() const;
22413 class __attribute__((visibility("default"))) MatchDecider {
22415 virtual bool operator()(const Xapian::Document &doc) const = 0;
22416 virtual ~MatchDecider();
22418 class __attribute__((visibility("default"))) Enquire {
22420 Enquire(const Enquire & other);
22421 void operator=(const Enquire & other);
22423 Xapian::Internal::RefCntPtr<Internal> internal;
22424 explicit Enquire(const Database &database, ErrorHandler * errorhandler_ = 0);
22426 void set_query(const Xapian::Query & query, Xapian::termcount qlen = 0);
22427 const Xapian::Query & get_query() const;
22428 void add_matchspy(MatchSpy * spy);
22429 void clear_matchspies();
22430 void set_weighting_scheme(const Weight &weight_);
22431 void set_collapse_key(Xapian::valueno collapse_key,
22432 Xapian::doccount collapse_max = 1);
22438 void set_docid_order(docid_order order);
22439 void set_cutoff(Xapian::percent percent_cutoff, Xapian::weight weight_cutoff = 0);
22440 void set_sort_by_relevance();
22441 void set_sort_by_value(Xapian::valueno sort_key, bool reverse);
22442 void set_sort_by_value(Xapian::valueno sort_key);
22443 void set_sort_by_key(Xapian::KeyMaker * sorter, bool reverse);
22444 void set_sort_by_key(Xapian::KeyMaker * sorter);
22445 void set_sort_by_value_then_relevance(Xapian::valueno sort_key,
22447 void set_sort_by_value_then_relevance(Xapian::valueno sort_key);
22448 void set_sort_by_key_then_relevance(Xapian::KeyMaker * sorter,
22450 void set_sort_by_key_then_relevance(Xapian::KeyMaker * sorter);
22451 void set_sort_by_relevance_then_value(Xapian::valueno sort_key,
22453 void set_sort_by_relevance_then_value(Xapian::valueno sort_key);
22454 void set_sort_by_relevance_then_key(Xapian::KeyMaker * sorter,
22456 void set_sort_by_relevance_then_key(Xapian::KeyMaker * sorter);
22457 MSet get_mset(Xapian::doccount first, Xapian::doccount maxitems,
22458 Xapian::doccount checkatleast = 0,
22459 const RSet * omrset = 0,
22460 const MatchDecider * mdecider = 0) const;
22461 MSet get_mset(Xapian::doccount first, Xapian::doccount maxitems, Xapian::doccount checkatleast, const RSet * omrset, const MatchDecider * mdecider, const MatchDecider * matchspy) const;
22462 MSet get_mset(Xapian::doccount first, Xapian::doccount maxitems,
22463 const RSet * omrset,
22464 const MatchDecider * mdecider = 0) const {
22465 return get_mset(first, maxitems, 0, omrset, mdecider);
22467 static const int INCLUDE_QUERY_TERMS = 1;
22468 static const int USE_EXACT_TERMFREQ = 2;
22469 ESet get_eset(Xapian::termcount maxitems,
22470 const RSet & omrset,
22473 const Xapian::ExpandDecider * edecider = 0) const;
22474 inline ESet get_eset(Xapian::termcount maxitems, const RSet & omrset,
22475 const Xapian::ExpandDecider * edecider) const {
22476 return get_eset(maxitems, omrset, 0, 1.0, edecider);
22478 TermIterator get_matching_terms_begin(Xapian::docid did) const;
22479 TermIterator get_matching_terms_end(Xapian::docid ) const {
22480 return TermIterator(__null);
22482 TermIterator get_matching_terms_begin(const MSetIterator &it) const;
22483 TermIterator get_matching_terms_end(const MSetIterator & ) const {
22484 return TermIterator(__null);
22486 std::string get_description() const;
22489 Enquire::set_sort_by_value(Xapian::valueno sort_key)
22491 return set_sort_by_value(sort_key, true);
22494 Enquire::set_sort_by_key(Xapian::KeyMaker * sorter)
22496 return set_sort_by_key(sorter, true);
22499 Enquire::set_sort_by_value_then_relevance(Xapian::valueno sort_key)
22501 return set_sort_by_value_then_relevance(sort_key, true);
22504 Enquire::set_sort_by_key_then_relevance(Xapian::KeyMaker * sorter)
22506 return set_sort_by_key_then_relevance(sorter, true);
22509 Enquire::set_sort_by_relevance_then_value(Xapian::valueno sort_key)
22511 return set_sort_by_relevance_then_value(sort_key, true);
22514 Enquire::set_sort_by_relevance_then_key(Xapian::KeyMaker * sorter)
22516 return set_sort_by_relevance_then_key(sorter, true);
22520 namespace std __attribute__ ((__visibility__ ("default"))) {
22521 template<typename _Key, typename _Compare = std::less<_Key>,
22522 typename _Alloc = std::allocator<_Key> >
22525 typedef typename _Alloc::value_type _Alloc_value_type;
22530 typedef _Key key_type;
22531 typedef _Key value_type;
22532 typedef _Compare key_compare;
22533 typedef _Compare value_compare;
22534 typedef _Alloc allocator_type;
22536 typedef typename _Alloc::template rebind<_Key>::other _Key_alloc_type;
22537 typedef _Rb_tree<key_type, value_type, _Identity<value_type>,
22538 key_compare, _Key_alloc_type> _Rep_type;
22541 typedef typename _Key_alloc_type::pointer pointer;
22542 typedef typename _Key_alloc_type::const_pointer const_pointer;
22543 typedef typename _Key_alloc_type::reference reference;
22544 typedef typename _Key_alloc_type::const_reference const_reference;
22545 typedef typename _Rep_type::const_iterator iterator;
22546 typedef typename _Rep_type::const_iterator const_iterator;
22547 typedef typename _Rep_type::const_reverse_iterator reverse_iterator;
22548 typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator;
22549 typedef typename _Rep_type::size_type size_type;
22550 typedef typename _Rep_type::difference_type difference_type;
22554 set(const _Compare& __comp,
22555 const allocator_type& __a = allocator_type())
22556 : _M_t(__comp, __a) { }
22557 template<typename _InputIterator>
22558 set(_InputIterator __first, _InputIterator __last)
22560 { _M_t._M_insert_unique(__first, __last); }
22561 template<typename _InputIterator>
22562 set(_InputIterator __first, _InputIterator __last,
22563 const _Compare& __comp,
22564 const allocator_type& __a = allocator_type())
22565 : _M_t(__comp, __a)
22566 { _M_t._M_insert_unique(__first, __last); }
22567 set(const set& __x)
22568 : _M_t(__x._M_t) { }
22570 operator=(const set& __x)
22577 { return _M_t.key_comp(); }
22580 { return _M_t.key_comp(); }
22582 get_allocator() const
22583 { return _M_t.get_allocator(); }
22586 { return _M_t.begin(); }
22589 { return _M_t.end(); }
22592 { return _M_t.rbegin(); }
22595 { return _M_t.rend(); }
22598 { return _M_t.empty(); }
22601 { return _M_t.size(); }
22604 { return _M_t.max_size(); }
22607 { _M_t.swap(__x._M_t); }
22608 std::pair<iterator, bool>
22609 insert(const value_type& __x)
22611 std::pair<typename _Rep_type::iterator, bool> __p =
22612 _M_t._M_insert_unique(__x);
22613 return std::pair<iterator, bool>(__p.first, __p.second);
22616 insert(iterator __position, const value_type& __x)
22617 { return _M_t._M_insert_unique_(__position, __x); }
22618 template<typename _InputIterator>
22620 insert(_InputIterator __first, _InputIterator __last)
22621 { _M_t._M_insert_unique(__first, __last); }
22623 erase(iterator __position)
22624 { _M_t.erase(__position); }
22626 erase(const key_type& __x)
22627 { return _M_t.erase(__x); }
22629 erase(iterator __first, iterator __last)
22630 { _M_t.erase(__first, __last); }
22635 count(const key_type& __x) const
22636 { return _M_t.find(__x) == _M_t.end() ? 0 : 1; }
22638 find(const key_type& __x)
22639 { return _M_t.find(__x); }
22641 find(const key_type& __x) const
22642 { return _M_t.find(__x); }
22644 lower_bound(const key_type& __x)
22645 { return _M_t.lower_bound(__x); }
22647 lower_bound(const key_type& __x) const
22648 { return _M_t.lower_bound(__x); }
22650 upper_bound(const key_type& __x)
22651 { return _M_t.upper_bound(__x); }
22653 upper_bound(const key_type& __x) const
22654 { return _M_t.upper_bound(__x); }
22655 std::pair<iterator, iterator>
22656 equal_range(const key_type& __x)
22657 { return _M_t.equal_range(__x); }
22658 std::pair<const_iterator, const_iterator>
22659 equal_range(const key_type& __x) const
22660 { return _M_t.equal_range(__x); }
22661 template<typename _K1, typename _C1, typename _A1>
22663 operator==(const set<_K1, _C1, _A1>&, const set<_K1, _C1, _A1>&);
22664 template<typename _K1, typename _C1, typename _A1>
22666 operator<(const set<_K1, _C1, _A1>&, const set<_K1, _C1, _A1>&);
22668 template<typename _Key, typename _Compare, typename _Alloc>
22670 operator==(const set<_Key, _Compare, _Alloc>& __x,
22671 const set<_Key, _Compare, _Alloc>& __y)
22672 { return __x._M_t == __y._M_t; }
22673 template<typename _Key, typename _Compare, typename _Alloc>
22675 operator<(const set<_Key, _Compare, _Alloc>& __x,
22676 const set<_Key, _Compare, _Alloc>& __y)
22677 { return __x._M_t < __y._M_t; }
22678 template<typename _Key, typename _Compare, typename _Alloc>
22680 operator!=(const set<_Key, _Compare, _Alloc>& __x,
22681 const set<_Key, _Compare, _Alloc>& __y)
22682 { return !(__x == __y); }
22683 template<typename _Key, typename _Compare, typename _Alloc>
22685 operator>(const set<_Key, _Compare, _Alloc>& __x,
22686 const set<_Key, _Compare, _Alloc>& __y)
22687 { return __y < __x; }
22688 template<typename _Key, typename _Compare, typename _Alloc>
22690 operator<=(const set<_Key, _Compare, _Alloc>& __x,
22691 const set<_Key, _Compare, _Alloc>& __y)
22692 { return !(__y < __x); }
22693 template<typename _Key, typename _Compare, typename _Alloc>
22695 operator>=(const set<_Key, _Compare, _Alloc>& __x,
22696 const set<_Key, _Compare, _Alloc>& __y)
22697 { return !(__x < __y); }
22698 template<typename _Key, typename _Compare, typename _Alloc>
22700 swap(set<_Key, _Compare, _Alloc>& __x, set<_Key, _Compare, _Alloc>& __y)
22703 namespace std __attribute__ ((__visibility__ ("default"))) {
22704 template <typename _Key, typename _Compare = std::less<_Key>,
22705 typename _Alloc = std::allocator<_Key> >
22708 typedef typename _Alloc::value_type _Alloc_value_type;
22713 typedef _Key key_type;
22714 typedef _Key value_type;
22715 typedef _Compare key_compare;
22716 typedef _Compare value_compare;
22717 typedef _Alloc allocator_type;
22719 typedef typename _Alloc::template rebind<_Key>::other _Key_alloc_type;
22720 typedef _Rb_tree<key_type, value_type, _Identity<value_type>,
22721 key_compare, _Key_alloc_type> _Rep_type;
22724 typedef typename _Key_alloc_type::pointer pointer;
22725 typedef typename _Key_alloc_type::const_pointer const_pointer;
22726 typedef typename _Key_alloc_type::reference reference;
22727 typedef typename _Key_alloc_type::const_reference const_reference;
22728 typedef typename _Rep_type::const_iterator iterator;
22729 typedef typename _Rep_type::const_iterator const_iterator;
22730 typedef typename _Rep_type::const_reverse_iterator reverse_iterator;
22731 typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator;
22732 typedef typename _Rep_type::size_type size_type;
22733 typedef typename _Rep_type::difference_type difference_type;
22737 multiset(const _Compare& __comp,
22738 const allocator_type& __a = allocator_type())
22739 : _M_t(__comp, __a) { }
22740 template<typename _InputIterator>
22741 multiset(_InputIterator __first, _InputIterator __last)
22743 { _M_t._M_insert_equal(__first, __last); }
22744 template<typename _InputIterator>
22745 multiset(_InputIterator __first, _InputIterator __last,
22746 const _Compare& __comp,
22747 const allocator_type& __a = allocator_type())
22748 : _M_t(__comp, __a)
22749 { _M_t._M_insert_equal(__first, __last); }
22750 multiset(const multiset& __x)
22751 : _M_t(__x._M_t) { }
22753 operator=(const multiset& __x)
22760 { return _M_t.key_comp(); }
22763 { return _M_t.key_comp(); }
22765 get_allocator() const
22766 { return _M_t.get_allocator(); }
22769 { return _M_t.begin(); }
22772 { return _M_t.end(); }
22775 { return _M_t.rbegin(); }
22778 { return _M_t.rend(); }
22781 { return _M_t.empty(); }
22784 { return _M_t.size(); }
22787 { return _M_t.max_size(); }
22789 swap(multiset& __x)
22790 { _M_t.swap(__x._M_t); }
22792 insert(const value_type& __x)
22793 { return _M_t._M_insert_equal(__x); }
22795 insert(iterator __position, const value_type& __x)
22796 { return _M_t._M_insert_equal_(__position, __x); }
22797 template<typename _InputIterator>
22799 insert(_InputIterator __first, _InputIterator __last)
22800 { _M_t._M_insert_equal(__first, __last); }
22802 erase(iterator __position)
22803 { _M_t.erase(__position); }
22805 erase(const key_type& __x)
22806 { return _M_t.erase(__x); }
22808 erase(iterator __first, iterator __last)
22809 { _M_t.erase(__first, __last); }
22814 count(const key_type& __x) const
22815 { return _M_t.count(__x); }
22817 find(const key_type& __x)
22818 { return _M_t.find(__x); }
22820 find(const key_type& __x) const
22821 { return _M_t.find(__x); }
22823 lower_bound(const key_type& __x)
22824 { return _M_t.lower_bound(__x); }
22826 lower_bound(const key_type& __x) const
22827 { return _M_t.lower_bound(__x); }
22829 upper_bound(const key_type& __x)
22830 { return _M_t.upper_bound(__x); }
22832 upper_bound(const key_type& __x) const
22833 { return _M_t.upper_bound(__x); }
22834 std::pair<iterator, iterator>
22835 equal_range(const key_type& __x)
22836 { return _M_t.equal_range(__x); }
22837 std::pair<const_iterator, const_iterator>
22838 equal_range(const key_type& __x) const
22839 { return _M_t.equal_range(__x); }
22840 template<typename _K1, typename _C1, typename _A1>
22842 operator==(const multiset<_K1, _C1, _A1>&,
22843 const multiset<_K1, _C1, _A1>&);
22844 template<typename _K1, typename _C1, typename _A1>
22846 operator< (const multiset<_K1, _C1, _A1>&,
22847 const multiset<_K1, _C1, _A1>&);
22849 template<typename _Key, typename _Compare, typename _Alloc>
22851 operator==(const multiset<_Key, _Compare, _Alloc>& __x,
22852 const multiset<_Key, _Compare, _Alloc>& __y)
22853 { return __x._M_t == __y._M_t; }
22854 template<typename _Key, typename _Compare, typename _Alloc>
22856 operator<(const multiset<_Key, _Compare, _Alloc>& __x,
22857 const multiset<_Key, _Compare, _Alloc>& __y)
22858 { return __x._M_t < __y._M_t; }
22859 template<typename _Key, typename _Compare, typename _Alloc>
22861 operator!=(const multiset<_Key, _Compare, _Alloc>& __x,
22862 const multiset<_Key, _Compare, _Alloc>& __y)
22863 { return !(__x == __y); }
22864 template<typename _Key, typename _Compare, typename _Alloc>
22866 operator>(const multiset<_Key,_Compare,_Alloc>& __x,
22867 const multiset<_Key,_Compare,_Alloc>& __y)
22868 { return __y < __x; }
22869 template<typename _Key, typename _Compare, typename _Alloc>
22871 operator<=(const multiset<_Key, _Compare, _Alloc>& __x,
22872 const multiset<_Key, _Compare, _Alloc>& __y)
22873 { return !(__y < __x); }
22874 template<typename _Key, typename _Compare, typename _Alloc>
22876 operator>=(const multiset<_Key, _Compare, _Alloc>& __x,
22877 const multiset<_Key, _Compare, _Alloc>& __y)
22878 { return !(__x < __y); }
22879 template<typename _Key, typename _Compare, typename _Alloc>
22881 swap(multiset<_Key, _Compare, _Alloc>& __x,
22882 multiset<_Key, _Compare, _Alloc>& __y)
22886 class __attribute__((visibility("default"))) ExpandDecider {
22888 virtual bool operator()(const std::string &term) const = 0;
22889 virtual ~ExpandDecider();
22891 class __attribute__((visibility("default"))) ExpandDeciderAnd : public ExpandDecider {
22892 const ExpandDecider &first, &second;
22894 ExpandDeciderAnd(const ExpandDecider &first_,
22895 const ExpandDecider &second_)
22896 : first(first_), second(second_) { }
22897 ExpandDeciderAnd(const ExpandDecider *first_,
22898 const ExpandDecider *second_)
22899 : first(*first_), second(*second_) { }
22900 virtual bool operator()(const std::string &term) const;
22902 class __attribute__((visibility("default"))) ExpandDeciderFilterTerms : public ExpandDecider {
22903 std::set<std::string> rejects;
22905 template <class Iterator>
22906 ExpandDeciderFilterTerms(Iterator reject_begin, Iterator reject_end)
22907 : rejects(reject_begin, reject_end) { }
22908 virtual bool operator()(const std::string &term) const;
22914 class __attribute__((visibility("default"))) MatchSpy {
22916 void operator=(const MatchSpy &);
22917 MatchSpy(const MatchSpy &);
22921 virtual ~MatchSpy();
22922 virtual void operator()(const Xapian::Document &doc,
22923 Xapian::weight wt) = 0;
22924 virtual MatchSpy * clone() const;
22925 virtual std::string name() const;
22926 virtual std::string serialise() const;
22927 virtual MatchSpy * unserialise(const std::string & s,
22928 const Registry & context) const;
22929 virtual std::string serialise_results() const;
22930 virtual void merge_results(const std::string & s);
22931 virtual std::string get_description() const;
22933 class __attribute__((visibility("default"))) ValueCountMatchSpy : public MatchSpy {
22936 struct __attribute__((visibility("default"))) Internal
22937 : public Xapian::Internal::RefCntBase
22939 Xapian::valueno slot;
22940 Xapian::doccount total;
22941 std::map<std::string, Xapian::doccount> values;
22942 Internal() : slot(Xapian::BAD_VALUENO), total(0) {}
22943 Internal(Xapian::valueno slot_) : slot(slot_), total(0) {}
22946 Xapian::Internal::RefCntPtr<Internal> internal;
22948 ValueCountMatchSpy() : internal() {}
22949 ValueCountMatchSpy(Xapian::valueno slot_)
22950 : internal(new Internal(slot_)) {}
22951 size_t get_total() const {
22952 return internal->total;
22954 TermIterator values_begin() const;
22955 TermIterator values_end() const {
22956 return TermIterator(__null);
22958 TermIterator top_values_begin(size_t maxvalues) const;
22959 TermIterator top_values_end(size_t) const {
22960 return TermIterator(__null);
22962 void operator()(const Xapian::Document &doc, Xapian::weight wt);
22963 virtual MatchSpy * clone() const;
22964 virtual std::string name() const;
22965 virtual std::string serialise() const;
22966 virtual MatchSpy * unserialise(const std::string & s,
22967 const Registry & context) const;
22968 virtual std::string serialise_results() const;
22969 virtual void merge_results(const std::string & s);
22970 virtual std::string get_description() const;
22974 class __attribute__((visibility("default"))) PostingSource {
22975 void operator=(const PostingSource &);
22976 PostingSource(const PostingSource &);
22977 double max_weight_;
22980 PostingSource() : max_weight_(0), matcher_(__null) { }
22981 void set_maxweight(Xapian::weight max_weight);
22983 void register_matcher_(void * matcher) { matcher_ = matcher; }
22984 virtual ~PostingSource();
22985 virtual Xapian::doccount get_termfreq_min() const = 0;
22986 virtual Xapian::doccount get_termfreq_est() const = 0;
22987 virtual Xapian::doccount get_termfreq_max() const = 0;
22988 Xapian::weight get_maxweight() const { return max_weight_; }
22989 virtual Xapian::weight get_weight() const;
22990 virtual Xapian::docid get_docid() const = 0;
22991 virtual void next(Xapian::weight min_wt) = 0;
22992 virtual void skip_to(Xapian::docid did, Xapian::weight min_wt);
22993 virtual bool check(Xapian::docid did, Xapian::weight min_wt);
22994 virtual bool at_end() const = 0;
22995 virtual PostingSource * clone() const;
22996 virtual std::string name() const;
22997 virtual std::string serialise() const;
22998 virtual PostingSource * unserialise(const std::string &s) const;
22999 virtual void init(const Database & db) = 0;
23000 virtual std::string get_description() const;
23002 class __attribute__((visibility("default"))) ValuePostingSource : public PostingSource {
23004 Xapian::Database db;
23005 Xapian::valueno slot;
23006 Xapian::ValueIterator value_it;
23008 Xapian::doccount termfreq_min;
23009 Xapian::doccount termfreq_est;
23010 Xapian::doccount termfreq_max;
23012 ValuePostingSource(Xapian::valueno slot_);
23013 Xapian::doccount get_termfreq_min() const;
23014 Xapian::doccount get_termfreq_est() const;
23015 Xapian::doccount get_termfreq_max() const;
23016 void next(Xapian::weight min_wt);
23017 void skip_to(Xapian::docid min_docid, Xapian::weight min_wt);
23018 bool check(Xapian::docid min_docid, Xapian::weight min_wt);
23019 bool at_end() const;
23020 Xapian::docid get_docid() const;
23021 void init(const Database & db_);
23023 class __attribute__((visibility("default"))) ValueWeightPostingSource
23024 : public ValuePostingSource {
23026 ValueWeightPostingSource(Xapian::valueno slot_);
23027 Xapian::weight get_weight() const;
23028 ValueWeightPostingSource * clone() const;
23029 std::string name() const;
23030 std::string serialise() const;
23031 ValueWeightPostingSource * unserialise(const std::string &s) const;
23032 void init(const Database & db_);
23033 std::string get_description() const;
23035 class __attribute__((visibility("default"))) DecreasingValueWeightPostingSource
23036 : public Xapian::ValueWeightPostingSource {
23038 Xapian::docid range_start;
23039 Xapian::docid range_end;
23040 double curr_weight;
23042 void skip_if_in_range(Xapian::weight min_wt);
23044 DecreasingValueWeightPostingSource(Xapian::valueno slot_,
23045 Xapian::docid range_start_ = 0,
23046 Xapian::docid range_end_ = 0);
23047 Xapian::weight get_weight() const;
23048 DecreasingValueWeightPostingSource * clone() const;
23049 std::string name() const;
23050 std::string serialise() const;
23051 DecreasingValueWeightPostingSource * unserialise(const std::string &s) const;
23052 void init(const Xapian::Database & db_);
23053 void next(Xapian::weight min_wt);
23054 void skip_to(Xapian::docid min_docid, Xapian::weight min_wt);
23055 bool check(Xapian::docid min_docid, Xapian::weight min_wt);
23056 std::string get_description() const;
23058 class __attribute__((visibility("default"))) ValueMapPostingSource
23059 : public ValuePostingSource {
23060 double default_weight;
23061 double max_weight_in_map;
23062 std::map<std::string, double> weight_map;
23064 ValueMapPostingSource(Xapian::valueno slot_);
23065 void add_mapping(const std::string &key, double weight);
23066 void clear_mappings();
23067 void set_default_weight(double wt);
23068 Xapian::weight get_weight() const;
23069 ValueMapPostingSource * clone() const;
23070 std::string name() const;
23071 std::string serialise() const;
23072 ValueMapPostingSource * unserialise(const std::string &s) const;
23073 void init(const Database & db_);
23074 std::string get_description() const;
23076 class __attribute__((visibility("default"))) FixedWeightPostingSource : public PostingSource {
23077 Xapian::Database db;
23078 Xapian::doccount termfreq;
23079 Xapian::PostingIterator it;
23081 Xapian::docid check_docid;
23083 FixedWeightPostingSource(Xapian::weight wt);
23084 Xapian::doccount get_termfreq_min() const;
23085 Xapian::doccount get_termfreq_est() const;
23086 Xapian::doccount get_termfreq_max() const;
23087 Xapian::weight get_weight() const;
23088 void next(Xapian::weight min_wt);
23089 void skip_to(Xapian::docid min_docid, Xapian::weight min_wt);
23090 bool check(Xapian::docid min_docid, Xapian::weight min_wt);
23091 bool at_end() const;
23092 Xapian::docid get_docid() const;
23093 FixedWeightPostingSource * clone() const;
23094 std::string name() const;
23095 std::string serialise() const;
23096 FixedWeightPostingSource * unserialise(const std::string &s) const;
23097 void init(const Database & db_);
23098 std::string get_description() const;
23101 class LocalSubMatch;
23103 class QueryOptimiser;
23104 struct SortPosName;
23106 class PostingSource;
23108 class __attribute__((visibility("default"))) Query {
23111 Xapian::Internal::RefCntPtr<Internal> internal;
23128 Query(const Query & copyme);
23129 Query & operator=(const Query & copyme);
23132 Query(const std::string & tname_, Xapian::termcount wqf_ = 1,
23133 Xapian::termpos pos_ = 0);
23134 Query(Query::op op_, const Query & left, const Query & right);
23135 Query(Query::op op_,
23136 const std::string & left, const std::string & right);
23137 template <class Iterator>
23138 Query(Query::op op_, Iterator qbegin, Iterator qend,
23139 Xapian::termcount parameter = 0);
23140 Query(Query::op op_, Xapian::Query q, double parameter);
23141 Query(Query::op op_, Xapian::valueno valno,
23142 const std::string &begin, const std::string &end);
23143 Query(Query::op op_, Xapian::valueno valno, const std::string &value);
23144 explicit Query(Xapian::PostingSource * external_source);
23145 static const Xapian::Query MatchAll;
23146 static const Xapian::Query MatchNothing;
23147 Xapian::termcount get_length() const;
23148 TermIterator get_terms_begin() const;
23149 TermIterator get_terms_end() const {
23150 return TermIterator(__null);
23152 bool empty() const;
23153 std::string serialise() const;
23154 static Query unserialise(const std::string &s);
23155 static Query unserialise(const std::string & s,
23156 const Registry & registry);
23157 std::string get_description() const;
23159 void add_subquery(const Query & subq);
23160 void add_subquery(const Query * subq);
23161 void add_subquery(const std::string & tname);
23162 void start_construction(Query::op op_, Xapian::termcount parameter);
23163 void end_construction();
23164 void abort_construction();
23166 template <class Iterator>
23167 Query::Query(Query::op op_, Iterator qbegin, Iterator qend, termcount parameter)
23171 start_construction(op_, parameter);
23172 while (qbegin != qend) {
23173 add_subquery(*qbegin);
23176 end_construction();
23178 abort_construction();
23182 class __attribute__((visibility("default"))) Query::Internal : public Xapian::Internal::RefCntBase {
23183 friend class ::LocalSubMatch;
23184 friend class ::MultiMatch;
23185 friend class ::QueryOptimiser;
23186 friend struct ::SortPosName;
23187 friend class Query;
23189 static const int OP_LEAF = -1;
23190 static const int OP_EXTERNAL_SOURCE = -2;
23191 typedef std::vector<Internal *> subquery_list;
23194 Xapian::Query::Internal::op_t op;
23195 subquery_list subqs;
23196 Xapian::termcount parameter;
23198 std::string str_parameter;
23199 Xapian::termpos term_pos;
23200 Xapian::PostingSource * external_source;
23201 bool external_source_owned;
23202 void initialise_from_copy(const Query::Internal & copyme);
23203 void accumulate_terms(
23204 std::vector<std::pair<std::string, Xapian::termpos> > &terms) const;
23205 Internal * simplify_query();
23206 void validate_query() const;
23207 bool simplify_matchnothing();
23208 static std::string get_op_name(Xapian::Query::Internal::op_t op);
23209 void collapse_subqs();
23210 Xapian::Query::Internal * flatten_subqs();
23211 std::string serialise(Xapian::termpos & curpos) const;
23213 Internal(const Query::Internal & copyme);
23214 void operator=(const Query::Internal & copyme);
23215 explicit Internal(const std::string & tname_, Xapian::termcount wqf_ = 1,
23216 Xapian::termpos term_pos_ = 0);
23217 Internal(op_t op_, Xapian::termcount parameter);
23218 Internal(op_t op_, Xapian::valueno valno,
23219 const std::string &begin, const std::string &end);
23220 Internal(op_t op_, Xapian::valueno valno, const std::string &value);
23221 explicit Internal(Xapian::PostingSource * external_source_, bool owned);
23223 static Xapian::Query::Internal * unserialise(const std::string &s,
23224 const Registry & registry);
23225 void add_subquery(const Query::Internal * subq);
23226 void add_subquery_nocopy(Query::Internal * subq);
23227 void set_dbl_parameter(double dbl_parameter_);
23228 double get_dbl_parameter() const;
23229 Query::Internal * end_construction();
23230 std::string serialise() const {
23231 Xapian::termpos curpos = 1;
23232 return serialise(curpos);
23234 std::string get_description() const;
23235 Xapian::termcount get_parameter() const { return parameter; }
23236 Xapian::termcount get_wqf() const { return parameter; }
23237 Xapian::termcount get_length() const;
23238 TermIterator get_terms() const;
23244 class __attribute__((visibility("default"))) Stopper {
23246 virtual bool operator()(const std::string & term) const = 0;
23247 virtual ~Stopper() { }
23248 virtual std::string get_description() const;
23250 class __attribute__((visibility("default"))) SimpleStopper : public Stopper {
23251 std::set<std::string> stop_words;
23253 SimpleStopper() { }
23254 template <class Iterator>
23255 SimpleStopper(Iterator begin, Iterator end) : stop_words(begin, end) { }
23256 void add(const std::string & word) { stop_words.insert(word); }
23257 virtual bool operator()(const std::string & term) const {
23258 return stop_words.find(term) != stop_words.end();
23260 virtual std::string get_description() const;
23262 struct __attribute__((visibility("default"))) ValueRangeProcessor {
23263 virtual ~ValueRangeProcessor();
23264 virtual Xapian::valueno operator()(std::string &begin, std::string &end) = 0;
23266 class __attribute__((visibility("default"))) StringValueRangeProcessor : public ValueRangeProcessor {
23268 Xapian::valueno valno;
23273 StringValueRangeProcessor(Xapian::valueno valno_)
23274 : valno(valno_), str() { }
23275 StringValueRangeProcessor(Xapian::valueno valno_, const std::string &str_,
23276 bool prefix_ = true)
23277 : valno(valno_), prefix(prefix_), str(str_) { }
23278 Xapian::valueno operator()(std::string &, std::string &);
23280 class __attribute__((visibility("default"))) DateValueRangeProcessor : public StringValueRangeProcessor {
23284 DateValueRangeProcessor(Xapian::valueno valno_, bool prefer_mdy_ = false,
23285 int epoch_year_ = 1970)
23286 : StringValueRangeProcessor(valno_),
23287 prefer_mdy(prefer_mdy_), epoch_year(epoch_year_) { }
23288 DateValueRangeProcessor(Xapian::valueno valno_, const std::string &str_,
23289 bool prefix_ = true,
23290 bool prefer_mdy_ = false, int epoch_year_ = 1970)
23291 : StringValueRangeProcessor(valno_, str_, prefix_),
23292 prefer_mdy(prefer_mdy_), epoch_year(epoch_year_) { }
23293 Xapian::valueno operator()(std::string &begin, std::string &end);
23295 class __attribute__((visibility("default"))) NumberValueRangeProcessor : public StringValueRangeProcessor {
23297 NumberValueRangeProcessor(Xapian::valueno valno_)
23298 : StringValueRangeProcessor(valno_) { }
23299 NumberValueRangeProcessor(Xapian::valueno valno_, const std::string &str_,
23300 bool prefix_ = true)
23301 : StringValueRangeProcessor(valno_, str_, prefix_) { }
23302 Xapian::valueno operator()(std::string &begin, std::string &end);
23304 class __attribute__((visibility("default"))) QueryParser {
23307 Xapian::Internal::RefCntPtr<Internal> internal;
23312 FLAG_BOOLEAN_ANY_CASE = 8,
23313 FLAG_WILDCARD = 16,
23314 FLAG_PURE_NOT = 32,
23316 FLAG_SPELLING_CORRECTION = 128,
23317 FLAG_SYNONYM = 256,
23318 FLAG_AUTO_SYNONYMS = 512,
23319 FLAG_AUTO_MULTIWORD_SYNONYMS = 1024 | FLAG_AUTO_SYNONYMS,
23320 FLAG_DEFAULT = FLAG_PHRASE|FLAG_BOOLEAN|FLAG_LOVEHATE
23322 typedef enum { STEM_NONE, STEM_SOME, STEM_ALL } stem_strategy;
23323 QueryParser(const QueryParser & o);
23324 QueryParser & operator=(const QueryParser & o);
23327 void set_stemmer(const Xapian::Stem & stemmer);
23328 void set_stemming_strategy(stem_strategy strategy);
23329 void set_stopper(const Stopper *stop = __null);
23330 void set_default_op(Query::op default_op);
23331 Query::op get_default_op() const;
23332 void set_database(const Database &db);
23333 Query parse_query(const std::string &query_string,
23334 unsigned flags = FLAG_DEFAULT,
23335 const std::string &default_prefix = std::string());
23336 void add_prefix(const std::string &field, const std::string &prefix);
23337 void add_boolean_prefix(const std::string &field, const std::string &prefix,
23339 void add_boolean_prefix(const std::string &field, const std::string &prefix);
23340 TermIterator stoplist_begin() const;
23341 TermIterator stoplist_end() const {
23342 return TermIterator(__null);
23344 TermIterator unstem_begin(const std::string &term) const;
23345 TermIterator unstem_end(const std::string &) const {
23346 return TermIterator(__null);
23348 void add_valuerangeprocessor(Xapian::ValueRangeProcessor * vrproc);
23349 std::string get_corrected_query_string() const;
23350 std::string get_description() const;
23352 __attribute__((visibility("default")))
23353 std::string sortable_serialise(double value);
23354 __attribute__((visibility("default")))
23355 double sortable_unserialise(const std::string & value);
23359 class __attribute__((visibility("default"))) ValueSetMatchDecider : public MatchDecider {
23360 std::set<std::string> testset;
23364 ValueSetMatchDecider(Xapian::valueno slot, bool inclusive_)
23365 : valuenum(slot), inclusive(inclusive_) { }
23366 void add_value(const std::string& value)
23368 testset.insert(value);
23370 void remove_value(const std::string& value)
23372 testset.erase(value);
23374 bool operator()(const Xapian::Document& doc) const;
23378 class __attribute__((visibility("default"))) Weight {
23381 COLLECTION_SIZE = 1,
23383 AVERAGE_LENGTH = 4,
23390 DOC_LENGTH_MIN = 512,
23391 DOC_LENGTH_MAX = 1024,
23394 void need_stat(stat_flags flag) {
23395 stats_needed = stat_flags(stats_needed | flag);
23397 virtual void init(double factor) = 0;
23399 void operator=(const Weight &);
23400 stat_flags stats_needed;
23401 Xapian::doccount collection_size_;
23402 Xapian::doccount rset_size_;
23403 Xapian::doclength average_length_;
23404 Xapian::doccount termfreq_;
23405 Xapian::doccount reltermfreq_;
23406 Xapian::termcount query_length_;
23407 Xapian::termcount wqf_;
23408 Xapian::termcount doclength_lower_bound_;
23409 Xapian::termcount doclength_upper_bound_;
23410 Xapian::termcount wdf_upper_bound_;
23414 virtual Weight * clone() const = 0;
23415 virtual std::string name() const;
23416 virtual std::string serialise() const;
23417 virtual Weight * unserialise(const std::string & s) const;
23418 virtual Xapian::weight get_sumpart(Xapian::termcount wdf,
23419 Xapian::termcount doclen) const = 0;
23420 virtual Xapian::weight get_maxpart() const = 0;
23421 virtual Xapian::weight get_sumextra(Xapian::termcount doclen) const = 0;
23422 virtual Xapian::weight get_maxextra() const = 0;
23423 void init_(const Internal & stats, Xapian::termcount query_len_,
23424 const std::string & term, Xapian::termcount wqf_,
23426 void init_(const Internal & stats, Xapian::termcount query_len_,
23427 double factor, Xapian::doccount termfreq,
23428 Xapian::doccount reltermfreq);
23429 void init_(const Internal & stats, Xapian::termcount query_len_);
23430 bool get_sumpart_needs_doclength_() const {
23431 return stats_needed & DOC_LENGTH;
23433 bool get_sumpart_needs_wdf_() const {
23434 return stats_needed & WDF;
23437 Weight(const Weight &);
23438 Weight() : stats_needed() { }
23439 Xapian::doccount get_collection_size() const { return collection_size_; }
23440 Xapian::doccount get_rset_size() const { return rset_size_; }
23441 Xapian::doclength get_average_length() const { return average_length_; }
23442 Xapian::doccount get_termfreq() const { return termfreq_; }
23443 Xapian::doccount get_reltermfreq() const { return reltermfreq_; }
23444 Xapian::termcount get_query_length() const { return query_length_; }
23445 Xapian::termcount get_wqf() const { return wqf_; }
23446 Xapian::termcount get_doclength_upper_bound() const {
23447 return doclength_upper_bound_;
23449 Xapian::termcount get_doclength_lower_bound() const {
23450 return doclength_lower_bound_;
23452 Xapian::termcount get_wdf_upper_bound() const {
23453 return wdf_upper_bound_;
23456 class __attribute__((visibility("default"))) BoolWeight : public Weight {
23457 BoolWeight * clone() const;
23458 void init(double factor);
23461 std::string name() const;
23462 std::string serialise() const;
23463 BoolWeight * unserialise(const std::string & s) const;
23464 Xapian::weight get_sumpart(Xapian::termcount wdf,
23465 Xapian::termcount doclen) const;
23466 Xapian::weight get_maxpart() const;
23467 Xapian::weight get_sumextra(Xapian::termcount doclen) const;
23468 Xapian::weight get_maxextra() const;
23470 class __attribute__((visibility("default"))) BM25Weight : public Weight {
23471 mutable Xapian::doclength len_factor;
23472 mutable Xapian::weight termweight;
23473 double param_k1, param_k2, param_k3, param_b;
23474 Xapian::doclength param_min_normlen;
23475 BM25Weight * clone() const;
23476 void init(double factor);
23478 BM25Weight(double k1, double k2, double k3, double b, double min_normlen)
23479 : param_k1(k1), param_k2(k2), param_k3(k3), param_b(b),
23480 param_min_normlen(min_normlen)
23482 if (param_k1 < 0) param_k1 = 0;
23483 if (param_k2 < 0) param_k2 = 0;
23484 if (param_k3 < 0) param_k3 = 0;
23487 } else if (param_b > 1) {
23490 need_stat(COLLECTION_SIZE);
23491 need_stat(RSET_SIZE);
23492 need_stat(TERMFREQ);
23493 need_stat(RELTERMFREQ);
23495 need_stat(WDF_MAX);
23497 if (param_k2 != 0 || (param_k1 != 0 && param_b != 0)) {
23498 need_stat(DOC_LENGTH_MIN);
23499 need_stat(AVERAGE_LENGTH);
23501 if (param_k1 != 0 && param_b != 0) need_stat(DOC_LENGTH);
23502 if (param_k2 != 0) need_stat(QUERY_LENGTH);
23503 if (param_k3 != 0) need_stat(WQF);
23506 : param_k1(1), param_k2(0), param_k3(1), param_b(0.5),
23507 param_min_normlen(0.5)
23509 need_stat(COLLECTION_SIZE);
23510 need_stat(RSET_SIZE);
23511 need_stat(TERMFREQ);
23512 need_stat(RELTERMFREQ);
23514 need_stat(WDF_MAX);
23516 need_stat(DOC_LENGTH_MIN);
23517 need_stat(AVERAGE_LENGTH);
23518 need_stat(DOC_LENGTH);
23521 std::string name() const;
23522 std::string serialise() const;
23523 BM25Weight * unserialise(const std::string & s) const;
23524 Xapian::weight get_sumpart(Xapian::termcount wdf,
23525 Xapian::termcount doclen) const;
23526 Xapian::weight get_maxpart() const;
23527 Xapian::weight get_sumextra(Xapian::termcount doclen) const;
23528 Xapian::weight get_maxextra() const;
23530 class __attribute__((visibility("default"))) TradWeight : public Weight {
23531 mutable Xapian::doclength len_factor;
23532 mutable Xapian::weight termweight;
23534 TradWeight * clone() const;
23535 void init(double factor);
23537 explicit TradWeight(double k = 1.0) : param_k(k) {
23538 if (param_k < 0) param_k = 0;
23539 if (param_k != 0.0) {
23540 need_stat(AVERAGE_LENGTH);
23541 need_stat(DOC_LENGTH);
23543 need_stat(COLLECTION_SIZE);
23544 need_stat(RSET_SIZE);
23545 need_stat(TERMFREQ);
23546 need_stat(RELTERMFREQ);
23547 need_stat(DOC_LENGTH_MIN);
23549 need_stat(WDF_MAX);
23552 std::string name() const;
23553 std::string serialise() const;
23554 TradWeight * unserialise(const std::string & s) const;
23555 Xapian::weight get_sumpart(Xapian::termcount wdf,
23556 Xapian::termcount doclen) const;
23557 Xapian::weight get_maxpart() const;
23558 Xapian::weight get_sumextra(Xapian::termcount doclen) const;
23559 Xapian::weight get_maxextra() const;
23563 struct __attribute__((visibility("default"))) StemImplementation
23564 : public Xapian::Internal::RefCntBase
23566 virtual ~StemImplementation();
23567 virtual std::string operator()(const std::string & word) = 0;
23568 virtual std::string get_description() const = 0;
23570 class __attribute__((visibility("default"))) Stem {
23572 Xapian::Internal::RefCntPtr<StemImplementation> internal;
23573 Stem(const Stem & o);
23574 void operator=(const Stem & o);
23576 explicit Stem(const std::string &language);
23577 explicit Stem(StemImplementation * p);
23579 std::string operator()(const std::string &word) const;
23580 std::string get_description() const;
23581 static std::string get_available_languages();
23586 class PostingSource;
23588 class __attribute__((visibility("default"))) Registry {
23592 Xapian::Internal::RefCntPtr<Internal> internal;
23594 Registry(const Registry & other);
23595 Registry & operator=(const Registry & other);
23598 void register_weighting_scheme(const Xapian::Weight &wt);
23599 const Xapian::Weight *
23600 get_weighting_scheme(const std::string & name) const;
23601 void register_posting_source(const Xapian::PostingSource &source);
23602 const Xapian::PostingSource *
23603 get_posting_source(const std::string & name) const;
23604 void register_match_spy(const Xapian::MatchSpy &spy);
23605 const Xapian::MatchSpy *
23606 get_match_spy(const std::string & name) const;
23610 class __attribute__((visibility("default"))) Compactor {
23613 typedef enum { STANDARD, FULL, FULLER } compaction_level;
23615 Xapian::Internal::RefCntPtr<Internal> internal;
23618 virtual ~Compactor();
23619 void set_block_size(size_t block_size);
23620 void set_renumber(bool renumber);
23621 void set_multipass(bool multipass);
23622 void set_compaction_level(compaction_level compaction);
23623 void set_destdir(const std::string & destdir);
23624 void add_source(const std::string & srcdir);
23627 set_status(const std::string & table, const std::string & status);
23628 virtual std::string
23629 resolve_duplicate_metadata(const std::string & key,
23630 size_t num_tags, const std::string tags[]);
23634 __attribute__((visibility("default")))
23635 const char * version_string();
23636 __attribute__((visibility("default")))
23637 int major_version();
23638 __attribute__((visibility("default")))
23639 int minor_version();
23640 __attribute__((visibility("default")))
23643 using namespace std;
23647 struct stop_iteration {
23649 struct SwigPyIterator {
23651 SwigPtr_PyObject _seq;
23653 SwigPyIterator(PyObject *seq) : _seq(seq)
23657 virtual ~SwigPyIterator() {}
23658 virtual PyObject *value() const = 0;
23659 virtual SwigPyIterator *incr(size_t n = 1) = 0;
23660 virtual SwigPyIterator *decr(size_t = 1)
23662 throw stop_iteration();
23664 virtual ptrdiff_t distance(const SwigPyIterator & ) const
23666 throw std::invalid_argument("operation not supported");
23668 virtual bool equal (const SwigPyIterator & ) const
23670 throw std::invalid_argument("operation not supported");
23672 virtual SwigPyIterator *copy() const = 0;
23675 SWIG_Python_Thread_Block _swig_thread_block;
23676 PyObject *obj = value();
23678 _swig_thread_block.end();
23681 PyObject *__next__()
23685 PyObject *previous()
23687 SWIG_Python_Thread_Block _swig_thread_block;
23689 PyObject *obj = value();
23690 _swig_thread_block.end();
23693 SwigPyIterator *advance(ptrdiff_t n)
23695 return (n > 0) ? incr(n) : decr(-n);
23697 bool operator == (const SwigPyIterator& x) const
23701 bool operator != (const SwigPyIterator& x) const
23703 return ! operator==(x);
23705 SwigPyIterator& operator += (ptrdiff_t n)
23707 return *advance(n);
23709 SwigPyIterator& operator -= (ptrdiff_t n)
23711 return *advance(-n);
23713 SwigPyIterator* operator + (ptrdiff_t n) const
23715 return copy()->advance(n);
23717 SwigPyIterator* operator - (ptrdiff_t n) const
23719 return copy()->advance(-n);
23721 ptrdiff_t operator - (const SwigPyIterator& x) const
23723 return x.distance(*this);
23725 static swig_type_info* descriptor() {
23726 static int init = 0;
23727 static swig_type_info* desc = 0;
23729 desc = SWIG_Python_TypeQuery("swig::SwigPyIterator *");
23736 static __attribute__ ((__unused__)) int
23737 SWIG_AsVal_double (PyObject *obj, double *val)
23740 if (((((PyObject*)(obj))->ob_type) == (&PyFloat_Type) || PyType_IsSubtype((((PyObject*)(obj))->ob_type), (&PyFloat_Type)))) {
23741 if (val) *val = PyFloat_AsDouble(obj);
23743 } else if (((((obj)->ob_type)->tp_flags & ((1L<<23))) != 0)) {
23744 if (val) *val = PyInt_AsLong(obj);
23746 } else if (((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<24))) != 0)) {
23747 double v = PyLong_AsDouble(obj);
23748 if (!PyErr_Occurred()) {
23757 static __attribute__ ((__unused__)) inline int
23758 SWIG_CanCastAsInteger(double *d, double min, double max) {
23760 if ((min <= x && x <= max)) {
23761 double fx = floor(x);
23762 double cx = ceil(x);
23763 double rd = ((x - fx) < 0.5) ? fx : cx;
23764 if (((*__errno_location ()) == 33) || ((*__errno_location ()) == 34)) {
23765 (*__errno_location ()) = 0;
23767 double summ, reps, diff;
23770 } else if (rd > x) {
23777 if (reps < 8*2.2204460492503131e-16) {
23785 static __attribute__ ((__unused__)) int
23786 SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val)
23788 if (((((obj)->ob_type)->tp_flags & ((1L<<23))) != 0)) {
23789 long v = PyInt_AsLong(obj);
23796 } else if (((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<24))) != 0)) {
23797 unsigned long v = PyLong_AsUnsignedLong(obj);
23798 if (!PyErr_Occurred()) {
23807 static __attribute__ ((__unused__)) inline int
23808 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
23811 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
23812 if ((res >= 0) && val) *val = static_cast< size_t >(v);
23815 static __attribute__ ((__unused__)) inline PyObject *
23816 SWIG_From_ptrdiff_t (ptrdiff_t value)
23818 return PyInt_FromLong (static_cast< long >(value));
23820 static __attribute__ ((__unused__)) inline PyObject*
23821 SWIG_From_bool (bool value)
23823 return PyBool_FromLong(value ? 1 : 0);
23825 static __attribute__ ((__unused__)) int
23826 SWIG_AsVal_long (PyObject *obj, long* val)
23828 if (((((obj)->ob_type)->tp_flags & ((1L<<23))) != 0)) {
23829 if (val) *val = PyInt_AsLong(obj);
23831 } else if (((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<24))) != 0)) {
23832 long v = PyLong_AsLong(obj);
23833 if (!PyErr_Occurred()) {
23842 static __attribute__ ((__unused__)) inline int
23843 SWIG_AsVal_ptrdiff_t (PyObject * obj, ptrdiff_t *val)
23846 int res = SWIG_AsVal_long (obj, val ? &v : 0);
23847 if ((res >= 0) && val) *val = static_cast< ptrdiff_t >(v);
23853 namespace std __attribute__ ((__visibility__ ("default"))) {
23885 abs(long __i) { return labs(__i); }
23887 div(long __i, long __j) { return ldiv(__i, __j); }
23889 namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) {
23893 abs(long long __x) { return __x >= 0 ? __x : -__x; }
23896 div(long long __n, long long __d)
23897 { lldiv_t __q; __q.quot = __n / __d; __q.rem = __n % __d; return __q; }
23905 namespace std __attribute__ ((__visibility__ ("default"))) {
23906 using ::__gnu_cxx::lldiv_t;
23907 using ::__gnu_cxx::_Exit;
23908 using ::__gnu_cxx::abs;
23909 using ::__gnu_cxx::llabs;
23910 using ::__gnu_cxx::div;
23911 using ::__gnu_cxx::lldiv;
23912 using ::__gnu_cxx::atoll;
23913 using ::__gnu_cxx::strtof;
23914 using ::__gnu_cxx::strtoll;
23915 using ::__gnu_cxx::strtoull;
23916 using ::__gnu_cxx::strtold;
23919 namespace std __attribute__ ((__visibility__ ("default"))) {
23920 template<typename _FIter, typename _Tp>
23922 binary_search(_FIter, _FIter, const _Tp&);
23923 template<typename _FIter, typename _Tp, typename _Compare>
23925 binary_search(_FIter, _FIter, const _Tp&, _Compare);
23926 template<typename _IIter, typename _OIter>
23928 copy(_IIter, _IIter, _OIter);
23929 template<typename _BIter1, typename _BIter2>
23931 copy_backward(_BIter1, _BIter1, _BIter2);
23932 template<typename _FIter, typename _Tp>
23933 pair<_FIter, _FIter>
23934 equal_range(_FIter, _FIter, const _Tp&);
23935 template<typename _FIter, typename _Tp, typename _Compare>
23936 pair<_FIter, _FIter>
23937 equal_range(_FIter, _FIter, const _Tp&, _Compare);
23938 template<typename _FIter, typename _Tp>
23940 fill(_FIter, _FIter, const _Tp&);
23941 template<typename _OIter, typename _Size, typename _Tp>
23943 fill_n(_OIter, _Size, const _Tp&);
23944 template<typename _FIter1, typename _FIter2>
23946 find_end(_FIter1, _FIter1, _FIter2, _FIter2);
23947 template<typename _FIter1, typename _FIter2, typename _BinaryPredicate>
23949 find_end(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate);
23950 template<typename _IIter1, typename _IIter2>
23952 includes(_IIter1, _IIter1, _IIter2, _IIter2);
23953 template<typename _IIter1, typename _IIter2, typename _Compare>
23955 includes(_IIter1, _IIter1, _IIter2, _IIter2, _Compare);
23956 template<typename _BIter>
23958 inplace_merge(_BIter, _BIter, _BIter);
23959 template<typename _BIter, typename _Compare>
23961 inplace_merge(_BIter, _BIter, _BIter, _Compare);
23962 template<typename _FIter1, typename _FIter2>
23964 iter_swap(_FIter1, _FIter2);
23965 template<typename _FIter, typename _Tp>
23967 lower_bound(_FIter, _FIter, const _Tp&);
23968 template<typename _FIter, typename _Tp, typename _Compare>
23970 lower_bound(_FIter, _FIter, const _Tp&, _Compare);
23971 template<typename _RAIter>
23973 make_heap(_RAIter, _RAIter);
23974 template<typename _RAIter, typename _Compare>
23976 make_heap(_RAIter, _RAIter, _Compare);
23977 template<typename _Tp>
23979 max(const _Tp&, const _Tp&);
23980 template<typename _Tp, typename _Compare>
23982 max(const _Tp&, const _Tp&, _Compare);
23983 template<typename _Tp>
23985 min(const _Tp&, const _Tp&);
23986 template<typename _Tp, typename _Compare>
23988 min(const _Tp&, const _Tp&, _Compare);
23989 template<typename _BIter>
23991 next_permutation(_BIter, _BIter);
23992 template<typename _BIter, typename _Compare>
23994 next_permutation(_BIter, _BIter, _Compare);
23995 template<typename _IIter, typename _RAIter>
23997 partial_sort_copy(_IIter, _IIter, _RAIter, _RAIter);
23998 template<typename _IIter, typename _RAIter, typename _Compare>
24000 partial_sort_copy(_IIter, _IIter, _RAIter, _RAIter, _Compare);
24001 template<typename _RAIter>
24003 pop_heap(_RAIter, _RAIter);
24004 template<typename _RAIter, typename _Compare>
24006 pop_heap(_RAIter, _RAIter, _Compare);
24007 template<typename _BIter>
24009 prev_permutation(_BIter, _BIter);
24010 template<typename _BIter, typename _Compare>
24012 prev_permutation(_BIter, _BIter, _Compare);
24013 template<typename _RAIter>
24015 push_heap(_RAIter, _RAIter);
24016 template<typename _RAIter, typename _Compare>
24018 push_heap(_RAIter, _RAIter, _Compare);
24019 template<typename _FIter, typename _Tp>
24021 remove(_FIter, _FIter, const _Tp&);
24022 template<typename _FIter, typename _Predicate>
24024 remove_if(_FIter, _FIter, _Predicate);
24025 template<typename _IIter, typename _OIter, typename _Tp>
24027 remove_copy(_IIter, _IIter, _OIter, const _Tp&);
24028 template<typename _IIter, typename _OIter, typename _Predicate>
24030 remove_copy_if(_IIter, _IIter, _OIter, _Predicate);
24031 template<typename _IIter, typename _OIter, typename _Tp>
24033 replace_copy(_IIter, _IIter, _OIter, const _Tp&, const _Tp&);
24034 template<typename _Iter, typename _OIter, typename _Predicate, typename _Tp>
24036 replace_copy_if(_Iter, _Iter, _OIter, _Predicate, const _Tp&);
24037 template<typename _BIter>
24039 reverse(_BIter, _BIter);
24040 template<typename _BIter, typename _OIter>
24042 reverse_copy(_BIter, _BIter, _OIter);
24043 template<typename _FIter>
24045 rotate(_FIter, _FIter, _FIter);
24046 template<typename _FIter, typename _OIter>
24048 rotate_copy(_FIter, _FIter, _FIter, _OIter);
24049 template<typename _RAIter>
24051 sort_heap(_RAIter, _RAIter);
24052 template<typename _RAIter, typename _Compare>
24054 sort_heap(_RAIter, _RAIter, _Compare);
24055 template<typename _BIter, typename _Predicate>
24057 stable_partition(_BIter, _BIter, _Predicate);
24058 template<typename _Tp>
24061 template<typename _Tp, size_t _Nm>
24063 swap(_Tp (&)[_Nm], _Tp (&)[_Nm]);
24064 template<typename _FIter1, typename _FIter2>
24066 swap_ranges(_FIter1, _FIter1, _FIter2);
24067 template<typename _FIter>
24069 unique(_FIter, _FIter);
24070 template<typename _FIter, typename _BinaryPredicate>
24072 unique(_FIter, _FIter, _BinaryPredicate);
24073 template<typename _FIter, typename _Tp>
24075 upper_bound(_FIter, _FIter, const _Tp&);
24076 template<typename _FIter, typename _Tp, typename _Compare>
24078 upper_bound(_FIter, _FIter, const _Tp&, _Compare);
24080 namespace std __attribute__ ((__visibility__ ("default"))) {
24081 template<typename _FIter>
24083 adjacent_find(_FIter, _FIter);
24084 template<typename _FIter, typename _BinaryPredicate>
24086 adjacent_find(_FIter, _FIter, _BinaryPredicate);
24087 template<typename _IIter, typename _Tp>
24088 typename iterator_traits<_IIter>::difference_type
24089 count(_IIter, _IIter, const _Tp&);
24090 template<typename _IIter, typename _Predicate>
24091 typename iterator_traits<_IIter>::difference_type
24092 count_if(_IIter, _IIter, _Predicate);
24093 template<typename _IIter1, typename _IIter2>
24095 equal(_IIter1, _IIter1, _IIter2);
24096 template<typename _IIter1, typename _IIter2, typename _BinaryPredicate>
24098 equal(_IIter1, _IIter1, _IIter2, _BinaryPredicate);
24099 template<typename _IIter, typename _Tp>
24101 find(_IIter, _IIter, const _Tp&);
24102 template<typename _FIter1, typename _FIter2>
24104 find_first_of(_FIter1, _FIter1, _FIter2, _FIter2);
24105 template<typename _FIter1, typename _FIter2, typename _BinaryPredicate>
24107 find_first_of(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate);
24108 template<typename _IIter, typename _Predicate>
24110 find_if(_IIter, _IIter, _Predicate);
24111 template<typename _IIter, typename _Funct>
24113 for_each(_IIter, _IIter, _Funct);
24114 template<typename _FIter, typename _Generator>
24116 generate(_FIter, _FIter, _Generator);
24117 template<typename _OIter, typename _Size, typename _Generator>
24119 generate_n(_OIter, _Size, _Generator);
24120 template<typename _IIter1, typename _IIter2>
24122 lexicographical_compare(_IIter1, _IIter1, _IIter2, _IIter2);
24123 template<typename _IIter1, typename _IIter2, typename _Compare>
24125 lexicographical_compare(_IIter1, _IIter1, _IIter2, _IIter2, _Compare);
24126 template<typename _FIter>
24128 max_element(_FIter, _FIter);
24129 template<typename _FIter, typename _Compare>
24131 max_element(_FIter, _FIter, _Compare);
24132 template<typename _IIter1, typename _IIter2, typename _OIter>
24134 merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter);
24135 template<typename _IIter1, typename _IIter2, typename _OIter,
24138 merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare);
24139 template<typename _FIter>
24141 min_element(_FIter, _FIter);
24142 template<typename _FIter, typename _Compare>
24144 min_element(_FIter, _FIter, _Compare);
24145 template<typename _IIter1, typename _IIter2>
24146 pair<_IIter1, _IIter2>
24147 mismatch(_IIter1, _IIter1, _IIter2);
24148 template<typename _IIter1, typename _IIter2, typename _BinaryPredicate>
24149 pair<_IIter1, _IIter2>
24150 mismatch(_IIter1, _IIter1, _IIter2, _BinaryPredicate);
24151 template<typename _RAIter>
24153 nth_element(_RAIter, _RAIter, _RAIter);
24154 template<typename _RAIter, typename _Compare>
24156 nth_element(_RAIter, _RAIter, _RAIter, _Compare);
24157 template<typename _RAIter>
24159 partial_sort(_RAIter, _RAIter, _RAIter);
24160 template<typename _RAIter, typename _Compare>
24162 partial_sort(_RAIter, _RAIter, _RAIter, _Compare);
24163 template<typename _BIter, typename _Predicate>
24165 partition(_BIter, _BIter, _Predicate);
24166 template<typename _RAIter>
24168 random_shuffle(_RAIter, _RAIter);
24169 template<typename _RAIter, typename _Generator>
24171 random_shuffle(_RAIter, _RAIter, _Generator&);
24172 template<typename _FIter, typename _Tp>
24174 replace(_FIter, _FIter, const _Tp&, const _Tp&);
24175 template<typename _FIter, typename _Predicate, typename _Tp>
24177 replace_if(_FIter, _FIter, _Predicate, const _Tp&);
24178 template<typename _FIter1, typename _FIter2>
24180 search(_FIter1, _FIter1, _FIter2, _FIter2);
24181 template<typename _FIter1, typename _FIter2, typename _BinaryPredicate>
24183 search(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate);
24184 template<typename _FIter, typename _Size, typename _Tp>
24186 search_n(_FIter, _FIter, _Size, const _Tp&);
24187 template<typename _FIter, typename _Size, typename _Tp,
24188 typename _BinaryPredicate>
24190 search_n(_FIter, _FIter, _Size, const _Tp&, _BinaryPredicate);
24191 template<typename _IIter1, typename _IIter2, typename _OIter>
24193 set_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter);
24194 template<typename _IIter1, typename _IIter2, typename _OIter,
24197 set_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare);
24198 template<typename _IIter1, typename _IIter2, typename _OIter>
24200 set_intersection(_IIter1, _IIter1, _IIter2, _IIter2, _OIter);
24201 template<typename _IIter1, typename _IIter2, typename _OIter,
24204 set_intersection(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare);
24205 template<typename _IIter1, typename _IIter2, typename _OIter>
24207 set_symmetric_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter);
24208 template<typename _IIter1, typename _IIter2, typename _OIter,
24211 set_symmetric_difference(_IIter1, _IIter1, _IIter2, _IIter2,
24213 template<typename _IIter1, typename _IIter2, typename _OIter>
24215 set_union(_IIter1, _IIter1, _IIter2, _IIter2, _OIter);
24216 template<typename _IIter1, typename _IIter2, typename _OIter,
24219 set_union(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare);
24220 template<typename _RAIter>
24222 sort(_RAIter, _RAIter);
24223 template<typename _RAIter, typename _Compare>
24225 sort(_RAIter, _RAIter, _Compare);
24226 template<typename _RAIter>
24228 stable_sort(_RAIter, _RAIter);
24229 template<typename _RAIter, typename _Compare>
24231 stable_sort(_RAIter, _RAIter, _Compare);
24232 template<typename _IIter, typename _OIter, typename _UnaryOperation>
24234 transform(_IIter, _IIter, _OIter, _UnaryOperation);
24235 template<typename _IIter1, typename _IIter2, typename _OIter,
24236 typename _BinaryOperation>
24238 transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation);
24239 template<typename _IIter, typename _OIter>
24241 unique_copy(_IIter, _IIter, _OIter);
24242 template<typename _IIter, typename _OIter, typename _BinaryPredicate>
24244 unique_copy(_IIter, _IIter, _OIter, _BinaryPredicate);
24246 namespace std __attribute__ ((__visibility__ ("default"))) {
24247 template<typename _RandomAccessIterator, typename _Distance>
24249 __is_heap_until(_RandomAccessIterator __first, _Distance __n)
24251 _Distance __parent = 0;
24252 for (_Distance __child = 1; __child < __n; ++__child)
24254 if (__first[__parent] < __first[__child])
24256 if ((__child & 1) == 0)
24261 template<typename _RandomAccessIterator, typename _Distance,
24264 __is_heap_until(_RandomAccessIterator __first, _Distance __n,
24267 _Distance __parent = 0;
24268 for (_Distance __child = 1; __child < __n; ++__child)
24270 if (__comp(__first[__parent], __first[__child]))
24272 if ((__child & 1) == 0)
24277 template<typename _RandomAccessIterator, typename _Distance>
24279 __is_heap(_RandomAccessIterator __first, _Distance __n)
24280 { return std::__is_heap_until(__first, __n) == __n; }
24281 template<typename _RandomAccessIterator, typename _Compare,
24282 typename _Distance>
24284 __is_heap(_RandomAccessIterator __first, _Compare __comp, _Distance __n)
24285 { return std::__is_heap_until(__first, __n, __comp) == __n; }
24286 template<typename _RandomAccessIterator>
24288 __is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last)
24289 { return std::__is_heap(__first, std::distance(__first, __last)); }
24290 template<typename _RandomAccessIterator, typename _Compare>
24292 __is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last,
24294 { return std::__is_heap(__first, __comp, std::distance(__first, __last)); }
24295 template<typename _RandomAccessIterator, typename _Distance, typename _Tp>
24297 __push_heap(_RandomAccessIterator __first,
24298 _Distance __holeIndex, _Distance __topIndex, _Tp __value)
24300 _Distance __parent = (__holeIndex - 1) / 2;
24301 while (__holeIndex > __topIndex && *(__first + __parent) < __value)
24303 *(__first + __holeIndex) = (*(__first + __parent));
24304 __holeIndex = __parent;
24305 __parent = (__holeIndex - 1) / 2;
24307 *(__first + __holeIndex) = (__value);
24309 template<typename _RandomAccessIterator>
24311 push_heap(_RandomAccessIterator __first, _RandomAccessIterator __last)
24313 typedef typename iterator_traits<_RandomAccessIterator>::value_type
24315 typedef typename iterator_traits<_RandomAccessIterator>::difference_type
24321 _ValueType __value = (*(__last - 1));
24322 std::__push_heap(__first, _DistanceType((__last - __first) - 1),
24323 _DistanceType(0), (__value));
24325 template<typename _RandomAccessIterator, typename _Distance, typename _Tp,
24328 __push_heap(_RandomAccessIterator __first, _Distance __holeIndex,
24329 _Distance __topIndex, _Tp __value, _Compare __comp)
24331 _Distance __parent = (__holeIndex - 1) / 2;
24332 while (__holeIndex > __topIndex
24333 && __comp(*(__first + __parent), __value))
24335 *(__first + __holeIndex) = (*(__first + __parent));
24336 __holeIndex = __parent;
24337 __parent = (__holeIndex - 1) / 2;
24339 *(__first + __holeIndex) = (__value);
24341 template<typename _RandomAccessIterator, typename _Compare>
24343 push_heap(_RandomAccessIterator __first, _RandomAccessIterator __last,
24346 typedef typename iterator_traits<_RandomAccessIterator>::value_type
24348 typedef typename iterator_traits<_RandomAccessIterator>::difference_type
24353 _ValueType __value = (*(__last - 1));
24354 std::__push_heap(__first, _DistanceType((__last - __first) - 1),
24355 _DistanceType(0), (__value), __comp);
24357 template<typename _RandomAccessIterator, typename _Distance, typename _Tp>
24359 __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex,
24360 _Distance __len, _Tp __value)
24362 const _Distance __topIndex = __holeIndex;
24363 _Distance __secondChild = __holeIndex;
24364 while (__secondChild < (__len - 1) / 2)
24366 __secondChild = 2 * (__secondChild + 1);
24367 if (*(__first + __secondChild) < *(__first + (__secondChild - 1)))
24369 *(__first + __holeIndex) = (*(__first + __secondChild));
24370 __holeIndex = __secondChild;
24372 if ((__len & 1) == 0 && __secondChild == (__len - 2) / 2)
24374 __secondChild = 2 * (__secondChild + 1);
24375 *(__first + __holeIndex) = (*(__first + (__secondChild - 1)));
24376 __holeIndex = __secondChild - 1;
24378 std::__push_heap(__first, __holeIndex, __topIndex,
24381 template<typename _RandomAccessIterator>
24383 __pop_heap(_RandomAccessIterator __first, _RandomAccessIterator __last,
24384 _RandomAccessIterator __result)
24386 typedef typename iterator_traits<_RandomAccessIterator>::value_type
24388 typedef typename iterator_traits<_RandomAccessIterator>::difference_type
24390 _ValueType __value = (*__result);
24391 *__result = (*__first);
24392 std::__adjust_heap(__first, _DistanceType(0),
24393 _DistanceType(__last - __first),
24396 template<typename _RandomAccessIterator>
24398 pop_heap(_RandomAccessIterator __first, _RandomAccessIterator __last)
24400 typedef typename iterator_traits<_RandomAccessIterator>::value_type
24407 std::__pop_heap(__first, __last, __last);
24409 template<typename _RandomAccessIterator, typename _Distance,
24410 typename _Tp, typename _Compare>
24412 __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex,
24413 _Distance __len, _Tp __value, _Compare __comp)
24415 const _Distance __topIndex = __holeIndex;
24416 _Distance __secondChild = __holeIndex;
24417 while (__secondChild < (__len - 1) / 2)
24419 __secondChild = 2 * (__secondChild + 1);
24420 if (__comp(*(__first + __secondChild),
24421 *(__first + (__secondChild - 1))))
24423 *(__first + __holeIndex) = (*(__first + __secondChild));
24424 __holeIndex = __secondChild;
24426 if ((__len & 1) == 0 && __secondChild == (__len - 2) / 2)
24428 __secondChild = 2 * (__secondChild + 1);
24429 *(__first + __holeIndex) = (*(__first + (__secondChild - 1)));
24430 __holeIndex = __secondChild - 1;
24432 std::__push_heap(__first, __holeIndex, __topIndex,
24433 (__value), __comp);
24435 template<typename _RandomAccessIterator, typename _Compare>
24437 __pop_heap(_RandomAccessIterator __first, _RandomAccessIterator __last,
24438 _RandomAccessIterator __result, _Compare __comp)
24440 typedef typename iterator_traits<_RandomAccessIterator>::value_type
24442 typedef typename iterator_traits<_RandomAccessIterator>::difference_type
24444 _ValueType __value = (*__result);
24445 *__result = (*__first);
24446 std::__adjust_heap(__first, _DistanceType(0),
24447 _DistanceType(__last - __first),
24448 (__value), __comp);
24450 template<typename _RandomAccessIterator, typename _Compare>
24452 pop_heap(_RandomAccessIterator __first,
24453 _RandomAccessIterator __last, _Compare __comp)
24459 std::__pop_heap(__first, __last, __last, __comp);
24461 template<typename _RandomAccessIterator>
24463 make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last)
24465 typedef typename iterator_traits<_RandomAccessIterator>::value_type
24467 typedef typename iterator_traits<_RandomAccessIterator>::difference_type
24472 if (__last - __first < 2)
24474 const _DistanceType __len = __last - __first;
24475 _DistanceType __parent = (__len - 2) / 2;
24478 _ValueType __value = (*(__first + __parent));
24479 std::__adjust_heap(__first, __parent, __len, (__value));
24485 template<typename _RandomAccessIterator, typename _Compare>
24487 make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last,
24490 typedef typename iterator_traits<_RandomAccessIterator>::value_type
24492 typedef typename iterator_traits<_RandomAccessIterator>::difference_type
24496 if (__last - __first < 2)
24498 const _DistanceType __len = __last - __first;
24499 _DistanceType __parent = (__len - 2) / 2;
24502 _ValueType __value = (*(__first + __parent));
24503 std::__adjust_heap(__first, __parent, __len, (__value),
24510 template<typename _RandomAccessIterator>
24512 sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last)
24518 while (__last - __first > 1)
24521 std::__pop_heap(__first, __last, __last);
24524 template<typename _RandomAccessIterator, typename _Compare>
24526 sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last,
24532 while (__last - __first > 1)
24535 std::__pop_heap(__first, __last, __last, __comp);
24539 namespace std __attribute__ ((__visibility__ ("default"))) {
24540 template<typename _Tp>
24541 pair<_Tp*, ptrdiff_t>
24542 get_temporary_buffer(ptrdiff_t __len)
24544 const ptrdiff_t __max =
24545 __gnu_cxx::__numeric_traits<ptrdiff_t>::__max / sizeof(_Tp);
24550 _Tp* __tmp = static_cast<_Tp*>(::operator new(__len * sizeof(_Tp),
24553 return std::pair<_Tp*, ptrdiff_t>(__tmp, __len);
24556 return std::pair<_Tp*, ptrdiff_t>(static_cast<_Tp*>(0), 0);
24558 template<typename _Tp>
24560 return_temporary_buffer(_Tp* __p)
24561 { ::operator delete(__p, std::nothrow); }
24562 template<typename _ForwardIterator, typename _Tp>
24563 class _Temporary_buffer
24567 typedef _Tp value_type;
24568 typedef value_type* pointer;
24569 typedef pointer iterator;
24570 typedef ptrdiff_t size_type;
24572 size_type _M_original_len;
24580 requested_size() const
24581 { return _M_original_len; }
24584 { return _M_buffer; }
24587 { return _M_buffer + _M_len; }
24588 _Temporary_buffer(_ForwardIterator __first, _ForwardIterator __last);
24589 ~_Temporary_buffer()
24591 std::_Destroy(_M_buffer, _M_buffer + _M_len);
24592 std::return_temporary_buffer(_M_buffer);
24595 _Temporary_buffer(const _Temporary_buffer&);
24597 operator=(const _Temporary_buffer&);
24599 template<typename _ForwardIterator, typename _Tp>
24600 _Temporary_buffer<_ForwardIterator, _Tp>::
24601 _Temporary_buffer(_ForwardIterator __first, _ForwardIterator __last)
24602 : _M_original_len(std::distance(__first, __last)),
24603 _M_len(0), _M_buffer(0)
24607 std::pair<pointer, size_type> __p(std::get_temporary_buffer<
24608 value_type>(_M_original_len));
24609 _M_buffer = __p.first;
24610 _M_len = __p.second;
24611 if (!__is_pod(_Tp) && _M_len > 0)
24612 std::uninitialized_fill_n(_M_buffer, _M_len, *__first);
24616 std::return_temporary_buffer(_M_buffer);
24623 namespace std __attribute__ ((__visibility__ ("default"))) {
24624 template<typename _Tp>
24626 __median(const _Tp& __a, const _Tp& __b, const _Tp& __c)
24632 else if (__a < __c)
24636 else if (__a < __c)
24638 else if (__b < __c)
24643 template<typename _Tp, typename _Compare>
24645 __median(const _Tp& __a, const _Tp& __b, const _Tp& __c, _Compare __comp)
24648 if (__comp(__a, __b))
24649 if (__comp(__b, __c))
24651 else if (__comp(__a, __c))
24655 else if (__comp(__a, __c))
24657 else if (__comp(__b, __c))
24662 template<typename _InputIterator, typename _Tp>
24663 inline _InputIterator
24664 __find(_InputIterator __first, _InputIterator __last,
24665 const _Tp& __val, input_iterator_tag)
24667 while (__first != __last && !(*__first == __val))
24671 template<typename _InputIterator, typename _Predicate>
24672 inline _InputIterator
24673 __find_if(_InputIterator __first, _InputIterator __last,
24674 _Predicate __pred, input_iterator_tag)
24676 while (__first != __last && !bool(__pred(*__first)))
24680 template<typename _RandomAccessIterator, typename _Tp>
24681 _RandomAccessIterator
24682 __find(_RandomAccessIterator __first, _RandomAccessIterator __last,
24683 const _Tp& __val, random_access_iterator_tag)
24685 typename iterator_traits<_RandomAccessIterator>::difference_type
24686 __trip_count = (__last - __first) >> 2;
24687 for (; __trip_count > 0; --__trip_count)
24689 if (*__first == __val)
24692 if (*__first == __val)
24695 if (*__first == __val)
24698 if (*__first == __val)
24702 switch (__last - __first)
24705 if (*__first == __val)
24709 if (*__first == __val)
24713 if (*__first == __val)
24721 template<typename _RandomAccessIterator, typename _Predicate>
24722 _RandomAccessIterator
24723 __find_if(_RandomAccessIterator __first, _RandomAccessIterator __last,
24724 _Predicate __pred, random_access_iterator_tag)
24726 typename iterator_traits<_RandomAccessIterator>::difference_type
24727 __trip_count = (__last - __first) >> 2;
24728 for (; __trip_count > 0; --__trip_count)
24730 if (__pred(*__first))
24733 if (__pred(*__first))
24736 if (__pred(*__first))
24739 if (__pred(*__first))
24743 switch (__last - __first)
24746 if (__pred(*__first))
24750 if (__pred(*__first))
24754 if (__pred(*__first))
24762 template<typename _ForwardIterator, typename _Integer, typename _Tp>
24764 __search_n(_ForwardIterator __first, _ForwardIterator __last,
24765 _Integer __count, const _Tp& __val,
24766 std::forward_iterator_tag)
24768 __first = std::find(__first, __last, __val);
24769 while (__first != __last)
24771 typename iterator_traits<_ForwardIterator>::difference_type
24773 _ForwardIterator __i = __first;
24775 while (__i != __last && __n != 1 && *__i == __val)
24784 __first = std::find(++__i, __last, __val);
24788 template<typename _RandomAccessIter, typename _Integer, typename _Tp>
24790 __search_n(_RandomAccessIter __first, _RandomAccessIter __last,
24791 _Integer __count, const _Tp& __val,
24792 std::random_access_iterator_tag)
24794 typedef typename std::iterator_traits<_RandomAccessIter>::difference_type
24796 _DistanceType __tailSize = __last - __first;
24797 const _DistanceType __pattSize = __count;
24798 if (__tailSize < __pattSize)
24800 const _DistanceType __skipOffset = __pattSize - 1;
24801 _RandomAccessIter __lookAhead = __first + __skipOffset;
24802 __tailSize -= __pattSize;
24805 while (!(*__lookAhead == __val))
24807 if (__tailSize < __pattSize)
24809 __lookAhead += __pattSize;
24810 __tailSize -= __pattSize;
24812 _DistanceType __remainder = __skipOffset;
24813 for (_RandomAccessIter __backTrack = __lookAhead - 1;
24814 *__backTrack == __val; --__backTrack)
24816 if (--__remainder == 0)
24817 return (__lookAhead - __skipOffset);
24819 if (__remainder > __tailSize)
24821 __lookAhead += __remainder;
24822 __tailSize -= __remainder;
24825 template<typename _ForwardIterator, typename _Integer, typename _Tp,
24826 typename _BinaryPredicate>
24828 __search_n(_ForwardIterator __first, _ForwardIterator __last,
24829 _Integer __count, const _Tp& __val,
24830 _BinaryPredicate __binary_pred, std::forward_iterator_tag)
24832 while (__first != __last && !bool(__binary_pred(*__first, __val)))
24834 while (__first != __last)
24836 typename iterator_traits<_ForwardIterator>::difference_type
24838 _ForwardIterator __i = __first;
24840 while (__i != __last && __n != 1 && bool(__binary_pred(*__i, __val)))
24850 while (__first != __last
24851 && !bool(__binary_pred(*__first, __val)))
24856 template<typename _RandomAccessIter, typename _Integer, typename _Tp,
24857 typename _BinaryPredicate>
24859 __search_n(_RandomAccessIter __first, _RandomAccessIter __last,
24860 _Integer __count, const _Tp& __val,
24861 _BinaryPredicate __binary_pred, std::random_access_iterator_tag)
24863 typedef typename std::iterator_traits<_RandomAccessIter>::difference_type
24865 _DistanceType __tailSize = __last - __first;
24866 const _DistanceType __pattSize = __count;
24867 if (__tailSize < __pattSize)
24869 const _DistanceType __skipOffset = __pattSize - 1;
24870 _RandomAccessIter __lookAhead = __first + __skipOffset;
24871 __tailSize -= __pattSize;
24874 while (!bool(__binary_pred(*__lookAhead, __val)))
24876 if (__tailSize < __pattSize)
24878 __lookAhead += __pattSize;
24879 __tailSize -= __pattSize;
24881 _DistanceType __remainder = __skipOffset;
24882 for (_RandomAccessIter __backTrack = __lookAhead - 1;
24883 __binary_pred(*__backTrack, __val); --__backTrack)
24885 if (--__remainder == 0)
24886 return (__lookAhead - __skipOffset);
24888 if (__remainder > __tailSize)
24890 __lookAhead += __remainder;
24891 __tailSize -= __remainder;
24894 template<typename _ForwardIterator1, typename _ForwardIterator2>
24896 __find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1,
24897 _ForwardIterator2 __first2, _ForwardIterator2 __last2,
24898 forward_iterator_tag, forward_iterator_tag)
24900 if (__first2 == __last2)
24904 _ForwardIterator1 __result = __last1;
24907 _ForwardIterator1 __new_result
24908 = std::search(__first1, __last1, __first2, __last2);
24909 if (__new_result == __last1)
24913 __result = __new_result;
24914 __first1 = __new_result;
24920 template<typename _ForwardIterator1, typename _ForwardIterator2,
24921 typename _BinaryPredicate>
24923 __find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1,
24924 _ForwardIterator2 __first2, _ForwardIterator2 __last2,
24925 forward_iterator_tag, forward_iterator_tag,
24926 _BinaryPredicate __comp)
24928 if (__first2 == __last2)
24932 _ForwardIterator1 __result = __last1;
24935 _ForwardIterator1 __new_result
24936 = std::search(__first1, __last1, __first2,
24938 if (__new_result == __last1)
24942 __result = __new_result;
24943 __first1 = __new_result;
24949 template<typename _BidirectionalIterator1, typename _BidirectionalIterator2>
24950 _BidirectionalIterator1
24951 __find_end(_BidirectionalIterator1 __first1,
24952 _BidirectionalIterator1 __last1,
24953 _BidirectionalIterator2 __first2,
24954 _BidirectionalIterator2 __last2,
24955 bidirectional_iterator_tag, bidirectional_iterator_tag)
24959 typedef reverse_iterator<_BidirectionalIterator1> _RevIterator1;
24960 typedef reverse_iterator<_BidirectionalIterator2> _RevIterator2;
24961 _RevIterator1 __rlast1(__first1);
24962 _RevIterator2 __rlast2(__first2);
24963 _RevIterator1 __rresult = std::search(_RevIterator1(__last1),
24965 _RevIterator2(__last2),
24967 if (__rresult == __rlast1)
24971 _BidirectionalIterator1 __result = __rresult.base();
24972 std::advance(__result, -std::distance(__first2, __last2));
24976 template<typename _BidirectionalIterator1, typename _BidirectionalIterator2,
24977 typename _BinaryPredicate>
24978 _BidirectionalIterator1
24979 __find_end(_BidirectionalIterator1 __first1,
24980 _BidirectionalIterator1 __last1,
24981 _BidirectionalIterator2 __first2,
24982 _BidirectionalIterator2 __last2,
24983 bidirectional_iterator_tag, bidirectional_iterator_tag,
24984 _BinaryPredicate __comp)
24988 typedef reverse_iterator<_BidirectionalIterator1> _RevIterator1;
24989 typedef reverse_iterator<_BidirectionalIterator2> _RevIterator2;
24990 _RevIterator1 __rlast1(__first1);
24991 _RevIterator2 __rlast2(__first2);
24992 _RevIterator1 __rresult = std::search(_RevIterator1(__last1), __rlast1,
24993 _RevIterator2(__last2), __rlast2,
24995 if (__rresult == __rlast1)
24999 _BidirectionalIterator1 __result = __rresult.base();
25000 std::advance(__result, -std::distance(__first2, __last2));
25004 template<typename _ForwardIterator1, typename _ForwardIterator2>
25005 inline _ForwardIterator1
25006 find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1,
25007 _ForwardIterator2 __first2, _ForwardIterator2 __last2)
25014 return std::__find_end(__first1, __last1, __first2, __last2,
25015 std::__iterator_category(__first1),
25016 std::__iterator_category(__first2));
25018 template<typename _ForwardIterator1, typename _ForwardIterator2,
25019 typename _BinaryPredicate>
25020 inline _ForwardIterator1
25021 find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1,
25022 _ForwardIterator2 __first2, _ForwardIterator2 __last2,
25023 _BinaryPredicate __comp)
25030 return std::__find_end(__first1, __last1, __first2, __last2,
25031 std::__iterator_category(__first1),
25032 std::__iterator_category(__first2),
25035 template<typename _InputIterator, typename _OutputIterator, typename _Tp>
25037 remove_copy(_InputIterator __first, _InputIterator __last,
25038 _OutputIterator __result, const _Tp& __value)
25044 for (; __first != __last; ++__first)
25045 if (!(*__first == __value))
25047 *__result = *__first;
25052 template<typename _InputIterator, typename _OutputIterator,
25053 typename _Predicate>
25055 remove_copy_if(_InputIterator __first, _InputIterator __last,
25056 _OutputIterator __result, _Predicate __pred)
25062 for (; __first != __last; ++__first)
25063 if (!bool(__pred(*__first)))
25065 *__result = *__first;
25070 template<typename _ForwardIterator, typename _Tp>
25072 remove(_ForwardIterator __first, _ForwardIterator __last,
25073 const _Tp& __value)
25078 __first = std::find(__first, __last, __value);
25079 if(__first == __last)
25081 _ForwardIterator __result = __first;
25083 for(; __first != __last; ++__first)
25084 if(!(*__first == __value))
25086 *__result = (*__first);
25091 template<typename _ForwardIterator, typename _Predicate>
25093 remove_if(_ForwardIterator __first, _ForwardIterator __last,
25099 __first = std::find_if(__first, __last, __pred);
25100 if(__first == __last)
25102 _ForwardIterator __result = __first;
25104 for(; __first != __last; ++__first)
25105 if(!bool(__pred(*__first)))
25107 *__result = (*__first);
25112 template<typename _ForwardIterator>
25114 unique(_ForwardIterator __first, _ForwardIterator __last)
25119 __first = std::adjacent_find(__first, __last);
25120 if (__first == __last)
25122 _ForwardIterator __dest = __first;
25124 while (++__first != __last)
25125 if (!(*__dest == *__first))
25126 *++__dest = (*__first);
25129 template<typename _ForwardIterator, typename _BinaryPredicate>
25131 unique(_ForwardIterator __first, _ForwardIterator __last,
25132 _BinaryPredicate __binary_pred)
25137 __first = std::adjacent_find(__first, __last, __binary_pred);
25138 if (__first == __last)
25140 _ForwardIterator __dest = __first;
25142 while (++__first != __last)
25143 if (!bool(__binary_pred(*__dest, *__first)))
25144 *++__dest = (*__first);
25147 template<typename _ForwardIterator, typename _OutputIterator>
25149 __unique_copy(_ForwardIterator __first, _ForwardIterator __last,
25150 _OutputIterator __result,
25151 forward_iterator_tag, output_iterator_tag)
25153 _ForwardIterator __next = __first;
25154 *__result = *__first;
25155 while (++__next != __last)
25156 if (!(*__first == *__next))
25159 *++__result = *__first;
25163 template<typename _InputIterator, typename _OutputIterator>
25165 __unique_copy(_InputIterator __first, _InputIterator __last,
25166 _OutputIterator __result,
25167 input_iterator_tag, output_iterator_tag)
25169 typename iterator_traits<_InputIterator>::value_type __value = *__first;
25170 *__result = __value;
25171 while (++__first != __last)
25172 if (!(__value == *__first))
25174 __value = *__first;
25175 *++__result = __value;
25179 template<typename _InputIterator, typename _ForwardIterator>
25181 __unique_copy(_InputIterator __first, _InputIterator __last,
25182 _ForwardIterator __result,
25183 input_iterator_tag, forward_iterator_tag)
25185 *__result = *__first;
25186 while (++__first != __last)
25187 if (!(*__result == *__first))
25188 *++__result = *__first;
25191 template<typename _ForwardIterator, typename _OutputIterator,
25192 typename _BinaryPredicate>
25194 __unique_copy(_ForwardIterator __first, _ForwardIterator __last,
25195 _OutputIterator __result, _BinaryPredicate __binary_pred,
25196 forward_iterator_tag, output_iterator_tag)
25199 _ForwardIterator __next = __first;
25200 *__result = *__first;
25201 while (++__next != __last)
25202 if (!bool(__binary_pred(*__first, *__next)))
25205 *++__result = *__first;
25209 template<typename _InputIterator, typename _OutputIterator,
25210 typename _BinaryPredicate>
25212 __unique_copy(_InputIterator __first, _InputIterator __last,
25213 _OutputIterator __result, _BinaryPredicate __binary_pred,
25214 input_iterator_tag, output_iterator_tag)
25217 typename iterator_traits<_InputIterator>::value_type __value = *__first;
25218 *__result = __value;
25219 while (++__first != __last)
25220 if (!bool(__binary_pred(__value, *__first)))
25222 __value = *__first;
25223 *++__result = __value;
25227 template<typename _InputIterator, typename _ForwardIterator,
25228 typename _BinaryPredicate>
25230 __unique_copy(_InputIterator __first, _InputIterator __last,
25231 _ForwardIterator __result, _BinaryPredicate __binary_pred,
25232 input_iterator_tag, forward_iterator_tag)
25235 *__result = *__first;
25236 while (++__first != __last)
25237 if (!bool(__binary_pred(*__result, *__first)))
25238 *++__result = *__first;
25241 template<typename _BidirectionalIterator>
25243 __reverse(_BidirectionalIterator __first, _BidirectionalIterator __last,
25244 bidirectional_iterator_tag)
25247 if (__first == __last || __first == --__last)
25251 std::iter_swap(__first, __last);
25255 template<typename _RandomAccessIterator>
25257 __reverse(_RandomAccessIterator __first, _RandomAccessIterator __last,
25258 random_access_iterator_tag)
25260 if (__first == __last)
25263 while (__first < __last)
25265 std::iter_swap(__first, __last);
25270 template<typename _BidirectionalIterator>
25272 reverse(_BidirectionalIterator __first, _BidirectionalIterator __last)
25276 std::__reverse(__first, __last, std::__iterator_category(__first));
25278 template<typename _BidirectionalIterator, typename _OutputIterator>
25280 reverse_copy(_BidirectionalIterator __first, _BidirectionalIterator __last,
25281 _OutputIterator __result)
25286 while (__first != __last)
25289 *__result = *__last;
25294 template<typename _EuclideanRingElement>
25295 _EuclideanRingElement
25296 __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n)
25300 _EuclideanRingElement __t = __m % __n;
25306 template<typename _ForwardIterator>
25308 __rotate(_ForwardIterator __first,
25309 _ForwardIterator __middle,
25310 _ForwardIterator __last,
25311 forward_iterator_tag)
25313 if (__first == __middle || __last == __middle)
25315 _ForwardIterator __first2 = __middle;
25318 std::iter_swap(__first, __first2);
25321 if (__first == __middle)
25322 __middle = __first2;
25324 while (__first2 != __last);
25325 __first2 = __middle;
25326 while (__first2 != __last)
25328 std::iter_swap(__first, __first2);
25331 if (__first == __middle)
25332 __middle = __first2;
25333 else if (__first2 == __last)
25334 __first2 = __middle;
25337 template<typename _BidirectionalIterator>
25339 __rotate(_BidirectionalIterator __first,
25340 _BidirectionalIterator __middle,
25341 _BidirectionalIterator __last,
25342 bidirectional_iterator_tag)
25345 if (__first == __middle || __last == __middle)
25347 std::__reverse(__first, __middle, bidirectional_iterator_tag());
25348 std::__reverse(__middle, __last, bidirectional_iterator_tag());
25349 while (__first != __middle && __middle != __last)
25351 std::iter_swap(__first, --__last);
25354 if (__first == __middle)
25355 std::__reverse(__middle, __last, bidirectional_iterator_tag());
25357 std::__reverse(__first, __middle, bidirectional_iterator_tag());
25359 template<typename _RandomAccessIterator>
25361 __rotate(_RandomAccessIterator __first,
25362 _RandomAccessIterator __middle,
25363 _RandomAccessIterator __last,
25364 random_access_iterator_tag)
25367 if (__first == __middle || __last == __middle)
25369 typedef typename iterator_traits<_RandomAccessIterator>::difference_type
25371 typedef typename iterator_traits<_RandomAccessIterator>::value_type
25373 const _Distance __n = __last - __first;
25374 const _Distance __k = __middle - __first;
25375 const _Distance __l = __n - __k;
25378 std::swap_ranges(__first, __middle, __middle);
25381 const _Distance __d = std::__gcd(__n, __k);
25382 for (_Distance __i = 0; __i < __d; __i++)
25384 _ValueType __tmp = (*__first);
25385 _RandomAccessIterator __p = __first;
25388 for (_Distance __j = 0; __j < __l / __d; __j++)
25390 if (__p > __first + __l)
25392 *__p = (*(__p - __l));
25395 *__p = (*(__p + __k));
25401 for (_Distance __j = 0; __j < __k / __d - 1; __j ++)
25403 if (__p < __last - __k)
25405 *__p = (*(__p + __k));
25408 *__p = (*(__p - __l));
25416 template<typename _ForwardIterator>
25418 rotate(_ForwardIterator __first, _ForwardIterator __middle,
25419 _ForwardIterator __last)
25424 typedef typename iterator_traits<_ForwardIterator>::iterator_category
25426 std::__rotate(__first, __middle, __last, _IterType());
25428 template<typename _ForwardIterator, typename _OutputIterator>
25430 rotate_copy(_ForwardIterator __first, _ForwardIterator __middle,
25431 _ForwardIterator __last, _OutputIterator __result)
25437 return std::copy(__first, __middle,
25438 std::copy(__middle, __last, __result));
25440 template<typename _ForwardIterator, typename _Predicate>
25442 __partition(_ForwardIterator __first, _ForwardIterator __last,
25443 _Predicate __pred, forward_iterator_tag)
25445 if (__first == __last)
25447 while (__pred(*__first))
25448 if (++__first == __last)
25450 _ForwardIterator __next = __first;
25451 while (++__next != __last)
25452 if (__pred(*__next))
25454 std::iter_swap(__first, __next);
25459 template<typename _BidirectionalIterator, typename _Predicate>
25460 _BidirectionalIterator
25461 __partition(_BidirectionalIterator __first, _BidirectionalIterator __last,
25462 _Predicate __pred, bidirectional_iterator_tag)
25467 if (__first == __last)
25469 else if (__pred(*__first))
25475 if (__first == __last)
25477 else if (!bool(__pred(*__last)))
25481 std::iter_swap(__first, __last);
25485 template<typename _ForwardIterator, typename _Predicate, typename _Distance>
25487 __inplace_stable_partition(_ForwardIterator __first,
25488 _ForwardIterator __last,
25489 _Predicate __pred, _Distance __len)
25492 return __pred(*__first) ? __last : __first;
25493 _ForwardIterator __middle = __first;
25494 std::advance(__middle, __len / 2);
25495 _ForwardIterator __begin = std::__inplace_stable_partition(__first,
25499 _ForwardIterator __end = std::__inplace_stable_partition(__middle, __last,
25503 std::rotate(__begin, __middle, __end);
25504 std::advance(__begin, std::distance(__middle, __end));
25507 template<typename _ForwardIterator, typename _Pointer, typename _Predicate,
25508 typename _Distance>
25510 __stable_partition_adaptive(_ForwardIterator __first,
25511 _ForwardIterator __last,
25512 _Predicate __pred, _Distance __len,
25514 _Distance __buffer_size)
25516 if (__len <= __buffer_size)
25518 _ForwardIterator __result1 = __first;
25519 _Pointer __result2 = __buffer;
25520 for (; __first != __last; ++__first)
25521 if (__pred(*__first))
25523 *__result1 = *__first;
25528 *__result2 = *__first;
25531 std::copy(__buffer, __result2, __result1);
25536 _ForwardIterator __middle = __first;
25537 std::advance(__middle, __len / 2);
25538 _ForwardIterator __begin =
25539 std::__stable_partition_adaptive(__first, __middle, __pred,
25540 __len / 2, __buffer,
25542 _ForwardIterator __end =
25543 std::__stable_partition_adaptive(__middle, __last, __pred,
25545 __buffer, __buffer_size);
25546 std::rotate(__begin, __middle, __end);
25547 std::advance(__begin, std::distance(__middle, __end));
25551 template<typename _ForwardIterator, typename _Predicate>
25553 stable_partition(_ForwardIterator __first, _ForwardIterator __last,
25559 if (__first == __last)
25563 typedef typename iterator_traits<_ForwardIterator>::value_type
25565 typedef typename iterator_traits<_ForwardIterator>::difference_type
25567 _Temporary_buffer<_ForwardIterator, _ValueType> __buf(__first,
25569 if (__buf.size() > 0)
25571 std::__stable_partition_adaptive(__first, __last, __pred,
25572 _DistanceType(__buf.requested_size()),
25574 _DistanceType(__buf.size()));
25577 std::__inplace_stable_partition(__first, __last, __pred,
25578 _DistanceType(__buf.requested_size()));
25581 template<typename _RandomAccessIterator>
25583 __heap_select(_RandomAccessIterator __first,
25584 _RandomAccessIterator __middle,
25585 _RandomAccessIterator __last)
25587 std::make_heap(__first, __middle);
25588 for (_RandomAccessIterator __i = __middle; __i < __last; ++__i)
25589 if (*__i < *__first)
25590 std::__pop_heap(__first, __middle, __i);
25592 template<typename _RandomAccessIterator, typename _Compare>
25594 __heap_select(_RandomAccessIterator __first,
25595 _RandomAccessIterator __middle,
25596 _RandomAccessIterator __last, _Compare __comp)
25598 std::make_heap(__first, __middle, __comp);
25599 for (_RandomAccessIterator __i = __middle; __i < __last; ++__i)
25600 if (__comp(*__i, *__first))
25601 std::__pop_heap(__first, __middle, __i, __comp);
25603 template<typename _InputIterator, typename _RandomAccessIterator>
25604 _RandomAccessIterator
25605 partial_sort_copy(_InputIterator __first, _InputIterator __last,
25606 _RandomAccessIterator __result_first,
25607 _RandomAccessIterator __result_last)
25609 typedef typename iterator_traits<_InputIterator>::value_type
25611 typedef typename iterator_traits<_RandomAccessIterator>::value_type
25613 typedef typename iterator_traits<_RandomAccessIterator>::difference_type
25621 if (__result_first == __result_last)
25622 return __result_last;
25623 _RandomAccessIterator __result_real_last = __result_first;
25624 while(__first != __last && __result_real_last != __result_last)
25626 *__result_real_last = *__first;
25627 ++__result_real_last;
25630 std::make_heap(__result_first, __result_real_last);
25631 while (__first != __last)
25633 if (*__first < *__result_first)
25634 std::__adjust_heap(__result_first, _DistanceType(0),
25635 _DistanceType(__result_real_last
25637 _InputValueType(*__first));
25640 std::sort_heap(__result_first, __result_real_last);
25641 return __result_real_last;
25643 template<typename _InputIterator, typename _RandomAccessIterator, typename _Compare>
25644 _RandomAccessIterator
25645 partial_sort_copy(_InputIterator __first, _InputIterator __last,
25646 _RandomAccessIterator __result_first,
25647 _RandomAccessIterator __result_last,
25650 typedef typename iterator_traits<_InputIterator>::value_type
25652 typedef typename iterator_traits<_RandomAccessIterator>::value_type
25654 typedef typename iterator_traits<_RandomAccessIterator>::difference_type
25663 if (__result_first == __result_last)
25664 return __result_last;
25665 _RandomAccessIterator __result_real_last = __result_first;
25666 while(__first != __last && __result_real_last != __result_last)
25668 *__result_real_last = *__first;
25669 ++__result_real_last;
25672 std::make_heap(__result_first, __result_real_last, __comp);
25673 while (__first != __last)
25675 if (__comp(*__first, *__result_first))
25676 std::__adjust_heap(__result_first, _DistanceType(0),
25677 _DistanceType(__result_real_last
25679 _InputValueType(*__first),
25683 std::sort_heap(__result_first, __result_real_last, __comp);
25684 return __result_real_last;
25686 template<typename _RandomAccessIterator, typename _Tp>
25688 __unguarded_linear_insert(_RandomAccessIterator __last, _Tp __val)
25690 _RandomAccessIterator __next = __last;
25692 while (__val < *__next)
25700 template<typename _RandomAccessIterator, typename _Tp, typename _Compare>
25702 __unguarded_linear_insert(_RandomAccessIterator __last, _Tp __val,
25705 _RandomAccessIterator __next = __last;
25707 while (__comp(__val, *__next))
25715 template<typename _RandomAccessIterator>
25717 __insertion_sort(_RandomAccessIterator __first,
25718 _RandomAccessIterator __last)
25720 if (__first == __last)
25722 for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i)
25724 typename iterator_traits<_RandomAccessIterator>::value_type
25726 if (__val < *__first)
25728 std::copy_backward(__first, __i, __i + 1);
25732 std::__unguarded_linear_insert(__i, __val);
25735 template<typename _RandomAccessIterator, typename _Compare>
25737 __insertion_sort(_RandomAccessIterator __first,
25738 _RandomAccessIterator __last, _Compare __comp)
25740 if (__first == __last) return;
25741 for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i)
25743 typename iterator_traits<_RandomAccessIterator>::value_type
25745 if (__comp(__val, *__first))
25747 std::copy_backward(__first, __i, __i + 1);
25751 std::__unguarded_linear_insert(__i, __val, __comp);
25754 template<typename _RandomAccessIterator>
25756 __unguarded_insertion_sort(_RandomAccessIterator __first,
25757 _RandomAccessIterator __last)
25759 typedef typename iterator_traits<_RandomAccessIterator>::value_type
25761 for (_RandomAccessIterator __i = __first; __i != __last; ++__i)
25762 std::__unguarded_linear_insert(__i, _ValueType(*__i));
25764 template<typename _RandomAccessIterator, typename _Compare>
25766 __unguarded_insertion_sort(_RandomAccessIterator __first,
25767 _RandomAccessIterator __last, _Compare __comp)
25769 typedef typename iterator_traits<_RandomAccessIterator>::value_type
25771 for (_RandomAccessIterator __i = __first; __i != __last; ++__i)
25772 std::__unguarded_linear_insert(__i, _ValueType(*__i), __comp);
25774 enum { _S_threshold = 16 };
25775 template<typename _RandomAccessIterator>
25777 __final_insertion_sort(_RandomAccessIterator __first,
25778 _RandomAccessIterator __last)
25780 if (__last - __first > int(_S_threshold))
25782 std::__insertion_sort(__first, __first + int(_S_threshold));
25783 std::__unguarded_insertion_sort(__first + int(_S_threshold), __last);
25786 std::__insertion_sort(__first, __last);
25788 template<typename _RandomAccessIterator, typename _Compare>
25790 __final_insertion_sort(_RandomAccessIterator __first,
25791 _RandomAccessIterator __last, _Compare __comp)
25793 if (__last - __first > int(_S_threshold))
25795 std::__insertion_sort(__first, __first + int(_S_threshold), __comp);
25796 std::__unguarded_insertion_sort(__first + int(_S_threshold), __last,
25800 std::__insertion_sort(__first, __last, __comp);
25802 template<typename _RandomAccessIterator, typename _Tp>
25803 _RandomAccessIterator
25804 __unguarded_partition(_RandomAccessIterator __first,
25805 _RandomAccessIterator __last, _Tp __pivot)
25809 while (*__first < __pivot)
25812 while (__pivot < *__last)
25814 if (!(__first < __last))
25816 std::iter_swap(__first, __last);
25820 template<typename _RandomAccessIterator, typename _Tp, typename _Compare>
25821 _RandomAccessIterator
25822 __unguarded_partition(_RandomAccessIterator __first,
25823 _RandomAccessIterator __last,
25824 _Tp __pivot, _Compare __comp)
25828 while (__comp(*__first, __pivot))
25831 while (__comp(__pivot, *__last))
25833 if (!(__first < __last))
25835 std::iter_swap(__first, __last);
25839 template<typename _RandomAccessIterator, typename _Size>
25841 __introsort_loop(_RandomAccessIterator __first,
25842 _RandomAccessIterator __last,
25843 _Size __depth_limit)
25845 typedef typename iterator_traits<_RandomAccessIterator>::value_type
25847 while (__last - __first > int(_S_threshold))
25849 if (__depth_limit == 0)
25851 std::partial_sort(__first, __last, __last);
25855 _RandomAccessIterator __cut =
25856 std::__unguarded_partition(__first, __last,
25857 _ValueType(std::__median(*__first,
25864 std::__introsort_loop(__cut, __last, __depth_limit);
25868 template<typename _RandomAccessIterator, typename _Size, typename _Compare>
25870 __introsort_loop(_RandomAccessIterator __first,
25871 _RandomAccessIterator __last,
25872 _Size __depth_limit, _Compare __comp)
25874 typedef typename iterator_traits<_RandomAccessIterator>::value_type
25876 while (__last - __first > int(_S_threshold))
25878 if (__depth_limit == 0)
25880 std::partial_sort(__first, __last, __last, __comp);
25884 _RandomAccessIterator __cut =
25885 std::__unguarded_partition(__first, __last,
25886 _ValueType(std::__median(*__first,
25894 std::__introsort_loop(__cut, __last, __depth_limit, __comp);
25898 template<typename _Size>
25903 for (__k = 0; __n != 0; __n >>= 1)
25909 { return sizeof(int) * 8 - 1 - __builtin_clz(__n); }
25912 { return sizeof(long) * 8 - 1 - __builtin_clzl(__n); }
25914 __lg(long long __n)
25915 { return sizeof(long long) * 8 - 1 - __builtin_clzll(__n); }
25916 template<typename _RandomAccessIterator, typename _Size>
25918 __introselect(_RandomAccessIterator __first, _RandomAccessIterator __nth,
25919 _RandomAccessIterator __last, _Size __depth_limit)
25921 typedef typename iterator_traits<_RandomAccessIterator>::value_type
25923 while (__last - __first > 3)
25925 if (__depth_limit == 0)
25927 std::__heap_select(__first, __nth + 1, __last);
25928 std::iter_swap(__first, __nth);
25932 _RandomAccessIterator __cut =
25933 std::__unguarded_partition(__first, __last,
25934 _ValueType(std::__median(*__first,
25941 if (__cut <= __nth)
25946 std::__insertion_sort(__first, __last);
25948 template<typename _RandomAccessIterator, typename _Size, typename _Compare>
25950 __introselect(_RandomAccessIterator __first, _RandomAccessIterator __nth,
25951 _RandomAccessIterator __last, _Size __depth_limit,
25954 typedef typename iterator_traits<_RandomAccessIterator>::value_type
25956 while (__last - __first > 3)
25958 if (__depth_limit == 0)
25960 std::__heap_select(__first, __nth + 1, __last, __comp);
25961 std::iter_swap(__first, __nth);
25965 _RandomAccessIterator __cut =
25966 std::__unguarded_partition(__first, __last,
25967 _ValueType(std::__median(*__first,
25975 if (__cut <= __nth)
25980 std::__insertion_sort(__first, __last, __comp);
25982 template<typename _ForwardIterator, typename _Tp>
25984 lower_bound(_ForwardIterator __first, _ForwardIterator __last,
25987 typedef typename iterator_traits<_ForwardIterator>::value_type
25989 typedef typename iterator_traits<_ForwardIterator>::difference_type
25994 _DistanceType __len = std::distance(__first, __last);
25995 _DistanceType __half;
25996 _ForwardIterator __middle;
25999 __half = __len >> 1;
26000 __middle = __first;
26001 std::advance(__middle, __half);
26002 if (*__middle < __val)
26004 __first = __middle;
26006 __len = __len - __half - 1;
26013 template<typename _ForwardIterator, typename _Tp, typename _Compare>
26015 lower_bound(_ForwardIterator __first, _ForwardIterator __last,
26016 const _Tp& __val, _Compare __comp)
26018 typedef typename iterator_traits<_ForwardIterator>::value_type
26020 typedef typename iterator_traits<_ForwardIterator>::difference_type
26025 _DistanceType __len = std::distance(__first, __last);
26026 _DistanceType __half;
26027 _ForwardIterator __middle;
26030 __half = __len >> 1;
26031 __middle = __first;
26032 std::advance(__middle, __half);
26033 if (__comp(*__middle, __val))
26035 __first = __middle;
26037 __len = __len - __half - 1;
26044 template<typename _ForwardIterator, typename _Tp>
26046 upper_bound(_ForwardIterator __first, _ForwardIterator __last,
26049 typedef typename iterator_traits<_ForwardIterator>::value_type
26051 typedef typename iterator_traits<_ForwardIterator>::difference_type
26056 _DistanceType __len = std::distance(__first, __last);
26057 _DistanceType __half;
26058 _ForwardIterator __middle;
26061 __half = __len >> 1;
26062 __middle = __first;
26063 std::advance(__middle, __half);
26064 if (__val < *__middle)
26068 __first = __middle;
26070 __len = __len - __half - 1;
26075 template<typename _ForwardIterator, typename _Tp, typename _Compare>
26077 upper_bound(_ForwardIterator __first, _ForwardIterator __last,
26078 const _Tp& __val, _Compare __comp)
26080 typedef typename iterator_traits<_ForwardIterator>::value_type
26082 typedef typename iterator_traits<_ForwardIterator>::difference_type
26087 _DistanceType __len = std::distance(__first, __last);
26088 _DistanceType __half;
26089 _ForwardIterator __middle;
26092 __half = __len >> 1;
26093 __middle = __first;
26094 std::advance(__middle, __half);
26095 if (__comp(__val, *__middle))
26099 __first = __middle;
26101 __len = __len - __half - 1;
26106 template<typename _ForwardIterator, typename _Tp>
26107 pair<_ForwardIterator, _ForwardIterator>
26108 equal_range(_ForwardIterator __first, _ForwardIterator __last,
26111 typedef typename iterator_traits<_ForwardIterator>::value_type
26113 typedef typename iterator_traits<_ForwardIterator>::difference_type
26120 _DistanceType __len = std::distance(__first, __last);
26121 _DistanceType __half;
26122 _ForwardIterator __middle, __left, __right;
26125 __half = __len >> 1;
26126 __middle = __first;
26127 std::advance(__middle, __half);
26128 if (*__middle < __val)
26130 __first = __middle;
26132 __len = __len - __half - 1;
26134 else if (__val < *__middle)
26138 __left = std::lower_bound(__first, __middle, __val);
26139 std::advance(__first, __len);
26140 __right = std::upper_bound(++__middle, __first, __val);
26141 return pair<_ForwardIterator, _ForwardIterator>(__left, __right);
26144 return pair<_ForwardIterator, _ForwardIterator>(__first, __first);
26146 template<typename _ForwardIterator, typename _Tp, typename _Compare>
26147 pair<_ForwardIterator, _ForwardIterator>
26148 equal_range(_ForwardIterator __first, _ForwardIterator __last,
26152 typedef typename iterator_traits<_ForwardIterator>::value_type
26154 typedef typename iterator_traits<_ForwardIterator>::difference_type
26161 _DistanceType __len = std::distance(__first, __last);
26162 _DistanceType __half;
26163 _ForwardIterator __middle, __left, __right;
26166 __half = __len >> 1;
26167 __middle = __first;
26168 std::advance(__middle, __half);
26169 if (__comp(*__middle, __val))
26171 __first = __middle;
26173 __len = __len - __half - 1;
26175 else if (__comp(__val, *__middle))
26179 __left = std::lower_bound(__first, __middle, __val, __comp);
26180 std::advance(__first, __len);
26181 __right = std::upper_bound(++__middle, __first, __val, __comp);
26182 return pair<_ForwardIterator, _ForwardIterator>(__left, __right);
26185 return pair<_ForwardIterator, _ForwardIterator>(__first, __first);
26187 template<typename _ForwardIterator, typename _Tp>
26189 binary_search(_ForwardIterator __first, _ForwardIterator __last,
26192 typedef typename iterator_traits<_ForwardIterator>::value_type
26198 _ForwardIterator __i = std::lower_bound(__first, __last, __val);
26199 return __i != __last && !(__val < *__i);
26201 template<typename _ForwardIterator, typename _Tp, typename _Compare>
26203 binary_search(_ForwardIterator __first, _ForwardIterator __last,
26204 const _Tp& __val, _Compare __comp)
26206 typedef typename iterator_traits<_ForwardIterator>::value_type
26212 _ForwardIterator __i = std::lower_bound(__first, __last, __val, __comp);
26213 return __i != __last && !bool(__comp(__val, *__i));
26215 template<typename _BidirectionalIterator1, typename _BidirectionalIterator2,
26216 typename _BidirectionalIterator3>
26217 _BidirectionalIterator3
26218 __merge_backward(_BidirectionalIterator1 __first1,
26219 _BidirectionalIterator1 __last1,
26220 _BidirectionalIterator2 __first2,
26221 _BidirectionalIterator2 __last2,
26222 _BidirectionalIterator3 __result)
26224 if (__first1 == __last1)
26225 return std::copy_backward(__first2, __last2, __result);
26226 if (__first2 == __last2)
26227 return std::copy_backward(__first1, __last1, __result);
26232 if (*__last2 < *__last1)
26234 *--__result = *__last1;
26235 if (__first1 == __last1)
26236 return std::copy_backward(__first2, ++__last2, __result);
26241 *--__result = *__last2;
26242 if (__first2 == __last2)
26243 return std::copy_backward(__first1, ++__last1, __result);
26248 template<typename _BidirectionalIterator1, typename _BidirectionalIterator2,
26249 typename _BidirectionalIterator3, typename _Compare>
26250 _BidirectionalIterator3
26251 __merge_backward(_BidirectionalIterator1 __first1,
26252 _BidirectionalIterator1 __last1,
26253 _BidirectionalIterator2 __first2,
26254 _BidirectionalIterator2 __last2,
26255 _BidirectionalIterator3 __result,
26258 if (__first1 == __last1)
26259 return std::copy_backward(__first2, __last2, __result);
26260 if (__first2 == __last2)
26261 return std::copy_backward(__first1, __last1, __result);
26266 if (__comp(*__last2, *__last1))
26268 *--__result = *__last1;
26269 if (__first1 == __last1)
26270 return std::copy_backward(__first2, ++__last2, __result);
26275 *--__result = *__last2;
26276 if (__first2 == __last2)
26277 return std::copy_backward(__first1, ++__last1, __result);
26282 template<typename _BidirectionalIterator1, typename _BidirectionalIterator2,
26283 typename _Distance>
26284 _BidirectionalIterator1
26285 __rotate_adaptive(_BidirectionalIterator1 __first,
26286 _BidirectionalIterator1 __middle,
26287 _BidirectionalIterator1 __last,
26288 _Distance __len1, _Distance __len2,
26289 _BidirectionalIterator2 __buffer,
26290 _Distance __buffer_size)
26292 _BidirectionalIterator2 __buffer_end;
26293 if (__len1 > __len2 && __len2 <= __buffer_size)
26295 __buffer_end = std::copy(__middle, __last, __buffer);
26296 std::copy_backward(__first, __middle, __last);
26297 return std::copy(__buffer, __buffer_end, __first);
26299 else if (__len1 <= __buffer_size)
26301 __buffer_end = std::copy(__first, __middle, __buffer);
26302 std::copy(__middle, __last, __first);
26303 return std::copy_backward(__buffer, __buffer_end, __last);
26307 std::rotate(__first, __middle, __last);
26308 std::advance(__first, std::distance(__middle, __last));
26312 template<typename _BidirectionalIterator, typename _Distance,
26315 __merge_adaptive(_BidirectionalIterator __first,
26316 _BidirectionalIterator __middle,
26317 _BidirectionalIterator __last,
26318 _Distance __len1, _Distance __len2,
26319 _Pointer __buffer, _Distance __buffer_size)
26321 if (__len1 <= __len2 && __len1 <= __buffer_size)
26323 _Pointer __buffer_end = std::copy(__first, __middle, __buffer);
26324 std::merge(__buffer, __buffer_end, __middle, __last,
26327 else if (__len2 <= __buffer_size)
26329 _Pointer __buffer_end = std::copy(__middle, __last, __buffer);
26330 std::__merge_backward(__first, __middle, __buffer,
26331 __buffer_end, __last);
26335 _BidirectionalIterator __first_cut = __first;
26336 _BidirectionalIterator __second_cut = __middle;
26337 _Distance __len11 = 0;
26338 _Distance __len22 = 0;
26339 if (__len1 > __len2)
26341 __len11 = __len1 / 2;
26342 std::advance(__first_cut, __len11);
26343 __second_cut = std::lower_bound(__middle, __last,
26345 __len22 = std::distance(__middle, __second_cut);
26349 __len22 = __len2 / 2;
26350 std::advance(__second_cut, __len22);
26351 __first_cut = std::upper_bound(__first, __middle,
26353 __len11 = std::distance(__first, __first_cut);
26355 _BidirectionalIterator __new_middle =
26356 std::__rotate_adaptive(__first_cut, __middle, __second_cut,
26357 __len1 - __len11, __len22, __buffer,
26359 std::__merge_adaptive(__first, __first_cut, __new_middle, __len11,
26360 __len22, __buffer, __buffer_size);
26361 std::__merge_adaptive(__new_middle, __second_cut, __last,
26363 __len2 - __len22, __buffer, __buffer_size);
26366 template<typename _BidirectionalIterator, typename _Distance,
26367 typename _Pointer, typename _Compare>
26369 __merge_adaptive(_BidirectionalIterator __first,
26370 _BidirectionalIterator __middle,
26371 _BidirectionalIterator __last,
26372 _Distance __len1, _Distance __len2,
26373 _Pointer __buffer, _Distance __buffer_size,
26376 if (__len1 <= __len2 && __len1 <= __buffer_size)
26378 _Pointer __buffer_end = std::copy(__first, __middle, __buffer);
26379 std::merge(__buffer, __buffer_end, __middle, __last,
26382 else if (__len2 <= __buffer_size)
26384 _Pointer __buffer_end = std::copy(__middle, __last, __buffer);
26385 std::__merge_backward(__first, __middle, __buffer, __buffer_end,
26390 _BidirectionalIterator __first_cut = __first;
26391 _BidirectionalIterator __second_cut = __middle;
26392 _Distance __len11 = 0;
26393 _Distance __len22 = 0;
26394 if (__len1 > __len2)
26396 __len11 = __len1 / 2;
26397 std::advance(__first_cut, __len11);
26398 __second_cut = std::lower_bound(__middle, __last, *__first_cut,
26400 __len22 = std::distance(__middle, __second_cut);
26404 __len22 = __len2 / 2;
26405 std::advance(__second_cut, __len22);
26406 __first_cut = std::upper_bound(__first, __middle, *__second_cut,
26408 __len11 = std::distance(__first, __first_cut);
26410 _BidirectionalIterator __new_middle =
26411 std::__rotate_adaptive(__first_cut, __middle, __second_cut,
26412 __len1 - __len11, __len22, __buffer,
26414 std::__merge_adaptive(__first, __first_cut, __new_middle, __len11,
26415 __len22, __buffer, __buffer_size, __comp);
26416 std::__merge_adaptive(__new_middle, __second_cut, __last,
26418 __len2 - __len22, __buffer,
26419 __buffer_size, __comp);
26422 template<typename _BidirectionalIterator, typename _Distance>
26424 __merge_without_buffer(_BidirectionalIterator __first,
26425 _BidirectionalIterator __middle,
26426 _BidirectionalIterator __last,
26427 _Distance __len1, _Distance __len2)
26429 if (__len1 == 0 || __len2 == 0)
26431 if (__len1 + __len2 == 2)
26433 if (*__middle < *__first)
26434 std::iter_swap(__first, __middle);
26437 _BidirectionalIterator __first_cut = __first;
26438 _BidirectionalIterator __second_cut = __middle;
26439 _Distance __len11 = 0;
26440 _Distance __len22 = 0;
26441 if (__len1 > __len2)
26443 __len11 = __len1 / 2;
26444 std::advance(__first_cut, __len11);
26445 __second_cut = std::lower_bound(__middle, __last, *__first_cut);
26446 __len22 = std::distance(__middle, __second_cut);
26450 __len22 = __len2 / 2;
26451 std::advance(__second_cut, __len22);
26452 __first_cut = std::upper_bound(__first, __middle, *__second_cut);
26453 __len11 = std::distance(__first, __first_cut);
26455 std::rotate(__first_cut, __middle, __second_cut);
26456 _BidirectionalIterator __new_middle = __first_cut;
26457 std::advance(__new_middle, std::distance(__middle, __second_cut));
26458 std::__merge_without_buffer(__first, __first_cut, __new_middle,
26460 std::__merge_without_buffer(__new_middle, __second_cut, __last,
26461 __len1 - __len11, __len2 - __len22);
26463 template<typename _BidirectionalIterator, typename _Distance,
26466 __merge_without_buffer(_BidirectionalIterator __first,
26467 _BidirectionalIterator __middle,
26468 _BidirectionalIterator __last,
26469 _Distance __len1, _Distance __len2,
26472 if (__len1 == 0 || __len2 == 0)
26474 if (__len1 + __len2 == 2)
26476 if (__comp(*__middle, *__first))
26477 std::iter_swap(__first, __middle);
26480 _BidirectionalIterator __first_cut = __first;
26481 _BidirectionalIterator __second_cut = __middle;
26482 _Distance __len11 = 0;
26483 _Distance __len22 = 0;
26484 if (__len1 > __len2)
26486 __len11 = __len1 / 2;
26487 std::advance(__first_cut, __len11);
26488 __second_cut = std::lower_bound(__middle, __last, *__first_cut,
26490 __len22 = std::distance(__middle, __second_cut);
26494 __len22 = __len2 / 2;
26495 std::advance(__second_cut, __len22);
26496 __first_cut = std::upper_bound(__first, __middle, *__second_cut,
26498 __len11 = std::distance(__first, __first_cut);
26500 std::rotate(__first_cut, __middle, __second_cut);
26501 _BidirectionalIterator __new_middle = __first_cut;
26502 std::advance(__new_middle, std::distance(__middle, __second_cut));
26503 std::__merge_without_buffer(__first, __first_cut, __new_middle,
26504 __len11, __len22, __comp);
26505 std::__merge_without_buffer(__new_middle, __second_cut, __last,
26506 __len1 - __len11, __len2 - __len22, __comp);
26508 template<typename _BidirectionalIterator>
26510 inplace_merge(_BidirectionalIterator __first,
26511 _BidirectionalIterator __middle,
26512 _BidirectionalIterator __last)
26514 typedef typename iterator_traits<_BidirectionalIterator>::value_type
26516 typedef typename iterator_traits<_BidirectionalIterator>::difference_type
26522 if (__first == __middle || __middle == __last)
26524 _DistanceType __len1 = std::distance(__first, __middle);
26525 _DistanceType __len2 = std::distance(__middle, __last);
26526 _Temporary_buffer<_BidirectionalIterator, _ValueType> __buf(__first,
26528 if (__buf.begin() == 0)
26529 std::__merge_without_buffer(__first, __middle, __last, __len1, __len2);
26531 std::__merge_adaptive(__first, __middle, __last, __len1, __len2,
26532 __buf.begin(), _DistanceType(__buf.size()));
26534 template<typename _BidirectionalIterator, typename _Compare>
26536 inplace_merge(_BidirectionalIterator __first,
26537 _BidirectionalIterator __middle,
26538 _BidirectionalIterator __last,
26541 typedef typename iterator_traits<_BidirectionalIterator>::value_type
26543 typedef typename iterator_traits<_BidirectionalIterator>::difference_type
26549 if (__first == __middle || __middle == __last)
26551 const _DistanceType __len1 = std::distance(__first, __middle);
26552 const _DistanceType __len2 = std::distance(__middle, __last);
26553 _Temporary_buffer<_BidirectionalIterator, _ValueType> __buf(__first,
26555 if (__buf.begin() == 0)
26556 std::__merge_without_buffer(__first, __middle, __last, __len1,
26559 std::__merge_adaptive(__first, __middle, __last, __len1, __len2,
26560 __buf.begin(), _DistanceType(__buf.size()),
26563 template<typename _RandomAccessIterator1, typename _RandomAccessIterator2,
26564 typename _Distance>
26566 __merge_sort_loop(_RandomAccessIterator1 __first,
26567 _RandomAccessIterator1 __last,
26568 _RandomAccessIterator2 __result,
26569 _Distance __step_size)
26571 const _Distance __two_step = 2 * __step_size;
26572 while (__last - __first >= __two_step)
26574 __result = std::merge(__first, __first + __step_size,
26575 __first + __step_size,
26576 __first + __two_step,
26578 __first += __two_step;
26580 __step_size = std::min(_Distance(__last - __first), __step_size);
26581 std::merge(__first, __first + __step_size,
26582 __first + __step_size, __last,
26585 template<typename _RandomAccessIterator1, typename _RandomAccessIterator2,
26586 typename _Distance, typename _Compare>
26588 __merge_sort_loop(_RandomAccessIterator1 __first,
26589 _RandomAccessIterator1 __last,
26590 _RandomAccessIterator2 __result, _Distance __step_size,
26593 const _Distance __two_step = 2 * __step_size;
26594 while (__last - __first >= __two_step)
26596 __result = std::merge(__first, __first + __step_size,
26597 __first + __step_size, __first + __two_step,
26600 __first += __two_step;
26602 __step_size = std::min(_Distance(__last - __first), __step_size);
26603 std::merge(__first, __first + __step_size,
26604 __first + __step_size, __last, __result, __comp);
26606 template<typename _RandomAccessIterator, typename _Distance>
26608 __chunk_insertion_sort(_RandomAccessIterator __first,
26609 _RandomAccessIterator __last,
26610 _Distance __chunk_size)
26612 while (__last - __first >= __chunk_size)
26614 std::__insertion_sort(__first, __first + __chunk_size);
26615 __first += __chunk_size;
26617 std::__insertion_sort(__first, __last);
26619 template<typename _RandomAccessIterator, typename _Distance,
26622 __chunk_insertion_sort(_RandomAccessIterator __first,
26623 _RandomAccessIterator __last,
26624 _Distance __chunk_size, _Compare __comp)
26626 while (__last - __first >= __chunk_size)
26628 std::__insertion_sort(__first, __first + __chunk_size, __comp);
26629 __first += __chunk_size;
26631 std::__insertion_sort(__first, __last, __comp);
26633 enum { _S_chunk_size = 7 };
26634 template<typename _RandomAccessIterator, typename _Pointer>
26636 __merge_sort_with_buffer(_RandomAccessIterator __first,
26637 _RandomAccessIterator __last,
26640 typedef typename iterator_traits<_RandomAccessIterator>::difference_type
26642 const _Distance __len = __last - __first;
26643 const _Pointer __buffer_last = __buffer + __len;
26644 _Distance __step_size = _S_chunk_size;
26645 std::__chunk_insertion_sort(__first, __last, __step_size);
26646 while (__step_size < __len)
26648 std::__merge_sort_loop(__first, __last, __buffer, __step_size);
26650 std::__merge_sort_loop(__buffer, __buffer_last, __first, __step_size);
26654 template<typename _RandomAccessIterator, typename _Pointer, typename _Compare>
26656 __merge_sort_with_buffer(_RandomAccessIterator __first,
26657 _RandomAccessIterator __last,
26658 _Pointer __buffer, _Compare __comp)
26660 typedef typename iterator_traits<_RandomAccessIterator>::difference_type
26662 const _Distance __len = __last - __first;
26663 const _Pointer __buffer_last = __buffer + __len;
26664 _Distance __step_size = _S_chunk_size;
26665 std::__chunk_insertion_sort(__first, __last, __step_size, __comp);
26666 while (__step_size < __len)
26668 std::__merge_sort_loop(__first, __last, __buffer,
26669 __step_size, __comp);
26671 std::__merge_sort_loop(__buffer, __buffer_last, __first,
26672 __step_size, __comp);
26676 template<typename _RandomAccessIterator, typename _Pointer,
26677 typename _Distance>
26679 __stable_sort_adaptive(_RandomAccessIterator __first,
26680 _RandomAccessIterator __last,
26681 _Pointer __buffer, _Distance __buffer_size)
26683 const _Distance __len = (__last - __first + 1) / 2;
26684 const _RandomAccessIterator __middle = __first + __len;
26685 if (__len > __buffer_size)
26687 std::__stable_sort_adaptive(__first, __middle,
26688 __buffer, __buffer_size);
26689 std::__stable_sort_adaptive(__middle, __last,
26690 __buffer, __buffer_size);
26694 std::__merge_sort_with_buffer(__first, __middle, __buffer);
26695 std::__merge_sort_with_buffer(__middle, __last, __buffer);
26697 std::__merge_adaptive(__first, __middle, __last,
26698 _Distance(__middle - __first),
26699 _Distance(__last - __middle),
26700 __buffer, __buffer_size);
26702 template<typename _RandomAccessIterator, typename _Pointer,
26703 typename _Distance, typename _Compare>
26705 __stable_sort_adaptive(_RandomAccessIterator __first,
26706 _RandomAccessIterator __last,
26707 _Pointer __buffer, _Distance __buffer_size,
26710 const _Distance __len = (__last - __first + 1) / 2;
26711 const _RandomAccessIterator __middle = __first + __len;
26712 if (__len > __buffer_size)
26714 std::__stable_sort_adaptive(__first, __middle, __buffer,
26715 __buffer_size, __comp);
26716 std::__stable_sort_adaptive(__middle, __last, __buffer,
26717 __buffer_size, __comp);
26721 std::__merge_sort_with_buffer(__first, __middle, __buffer, __comp);
26722 std::__merge_sort_with_buffer(__middle, __last, __buffer, __comp);
26724 std::__merge_adaptive(__first, __middle, __last,
26725 _Distance(__middle - __first),
26726 _Distance(__last - __middle),
26727 __buffer, __buffer_size,
26730 template<typename _RandomAccessIterator>
26732 __inplace_stable_sort(_RandomAccessIterator __first,
26733 _RandomAccessIterator __last)
26735 if (__last - __first < 15)
26737 std::__insertion_sort(__first, __last);
26740 _RandomAccessIterator __middle = __first + (__last - __first) / 2;
26741 std::__inplace_stable_sort(__first, __middle);
26742 std::__inplace_stable_sort(__middle, __last);
26743 std::__merge_without_buffer(__first, __middle, __last,
26744 __middle - __first,
26745 __last - __middle);
26747 template<typename _RandomAccessIterator, typename _Compare>
26749 __inplace_stable_sort(_RandomAccessIterator __first,
26750 _RandomAccessIterator __last, _Compare __comp)
26752 if (__last - __first < 15)
26754 std::__insertion_sort(__first, __last, __comp);
26757 _RandomAccessIterator __middle = __first + (__last - __first) / 2;
26758 std::__inplace_stable_sort(__first, __middle, __comp);
26759 std::__inplace_stable_sort(__middle, __last, __comp);
26760 std::__merge_without_buffer(__first, __middle, __last,
26761 __middle - __first,
26765 template<typename _InputIterator1, typename _InputIterator2>
26767 includes(_InputIterator1 __first1, _InputIterator1 __last1,
26768 _InputIterator2 __first2, _InputIterator2 __last2)
26770 typedef typename iterator_traits<_InputIterator1>::value_type
26772 typedef typename iterator_traits<_InputIterator2>::value_type
26780 while (__first1 != __last1 && __first2 != __last2)
26781 if (*__first2 < *__first1)
26783 else if(*__first1 < *__first2)
26786 ++__first1, ++__first2;
26787 return __first2 == __last2;
26789 template<typename _InputIterator1, typename _InputIterator2,
26792 includes(_InputIterator1 __first1, _InputIterator1 __last1,
26793 _InputIterator2 __first2, _InputIterator2 __last2,
26796 typedef typename iterator_traits<_InputIterator1>::value_type
26798 typedef typename iterator_traits<_InputIterator2>::value_type
26806 while (__first1 != __last1 && __first2 != __last2)
26807 if (__comp(*__first2, *__first1))
26809 else if(__comp(*__first1, *__first2))
26812 ++__first1, ++__first2;
26813 return __first2 == __last2;
26815 template<typename _BidirectionalIterator>
26817 next_permutation(_BidirectionalIterator __first,
26818 _BidirectionalIterator __last)
26823 if (__first == __last)
26825 _BidirectionalIterator __i = __first;
26833 _BidirectionalIterator __ii = __i;
26837 _BidirectionalIterator __j = __last;
26838 while (!(*__i < *--__j))
26840 std::iter_swap(__i, __j);
26841 std::reverse(__ii, __last);
26844 if (__i == __first)
26846 std::reverse(__first, __last);
26851 template<typename _BidirectionalIterator, typename _Compare>
26853 next_permutation(_BidirectionalIterator __first,
26854 _BidirectionalIterator __last, _Compare __comp)
26859 if (__first == __last)
26861 _BidirectionalIterator __i = __first;
26869 _BidirectionalIterator __ii = __i;
26871 if (__comp(*__i, *__ii))
26873 _BidirectionalIterator __j = __last;
26874 while (!bool(__comp(*__i, *--__j)))
26876 std::iter_swap(__i, __j);
26877 std::reverse(__ii, __last);
26880 if (__i == __first)
26882 std::reverse(__first, __last);
26887 template<typename _BidirectionalIterator>
26889 prev_permutation(_BidirectionalIterator __first,
26890 _BidirectionalIterator __last)
26895 if (__first == __last)
26897 _BidirectionalIterator __i = __first;
26905 _BidirectionalIterator __ii = __i;
26909 _BidirectionalIterator __j = __last;
26910 while (!(*--__j < *__i))
26912 std::iter_swap(__i, __j);
26913 std::reverse(__ii, __last);
26916 if (__i == __first)
26918 std::reverse(__first, __last);
26923 template<typename _BidirectionalIterator, typename _Compare>
26925 prev_permutation(_BidirectionalIterator __first,
26926 _BidirectionalIterator __last, _Compare __comp)
26931 if (__first == __last)
26933 _BidirectionalIterator __i = __first;
26941 _BidirectionalIterator __ii = __i;
26943 if (__comp(*__ii, *__i))
26945 _BidirectionalIterator __j = __last;
26946 while (!bool(__comp(*--__j, *__i)))
26948 std::iter_swap(__i, __j);
26949 std::reverse(__ii, __last);
26952 if (__i == __first)
26954 std::reverse(__first, __last);
26959 template<typename _InputIterator, typename _OutputIterator, typename _Tp>
26961 replace_copy(_InputIterator __first, _InputIterator __last,
26962 _OutputIterator __result,
26963 const _Tp& __old_value, const _Tp& __new_value)
26969 for (; __first != __last; ++__first, ++__result)
26970 if (*__first == __old_value)
26971 *__result = __new_value;
26973 *__result = *__first;
26976 template<typename _InputIterator, typename _OutputIterator,
26977 typename _Predicate, typename _Tp>
26979 replace_copy_if(_InputIterator __first, _InputIterator __last,
26980 _OutputIterator __result,
26981 _Predicate __pred, const _Tp& __new_value)
26987 for (; __first != __last; ++__first, ++__result)
26988 if (__pred(*__first))
26989 *__result = __new_value;
26991 *__result = *__first;
26995 namespace std __attribute__ ((__visibility__ ("default"))) {
26996 template<typename _InputIterator, typename _Function>
26998 for_each(_InputIterator __first, _InputIterator __last, _Function __f)
27002 for (; __first != __last; ++__first)
27006 template<typename _InputIterator, typename _Tp>
27007 inline _InputIterator
27008 find(_InputIterator __first, _InputIterator __last,
27014 return std::__find(__first, __last, __val,
27015 std::__iterator_category(__first));
27017 template<typename _InputIterator, typename _Predicate>
27018 inline _InputIterator
27019 find_if(_InputIterator __first, _InputIterator __last,
27025 return std::__find_if(__first, __last, __pred,
27026 std::__iterator_category(__first));
27028 template<typename _InputIterator, typename _ForwardIterator>
27030 find_first_of(_InputIterator __first1, _InputIterator __last1,
27031 _ForwardIterator __first2, _ForwardIterator __last2)
27038 for (; __first1 != __last1; ++__first1)
27039 for (_ForwardIterator __iter = __first2; __iter != __last2; ++__iter)
27040 if (*__first1 == *__iter)
27044 template<typename _InputIterator, typename _ForwardIterator,
27045 typename _BinaryPredicate>
27047 find_first_of(_InputIterator __first1, _InputIterator __last1,
27048 _ForwardIterator __first2, _ForwardIterator __last2,
27049 _BinaryPredicate __comp)
27056 for (; __first1 != __last1; ++__first1)
27057 for (_ForwardIterator __iter = __first2; __iter != __last2; ++__iter)
27058 if (__comp(*__first1, *__iter))
27062 template<typename _ForwardIterator>
27064 adjacent_find(_ForwardIterator __first, _ForwardIterator __last)
27069 if (__first == __last)
27071 _ForwardIterator __next = __first;
27072 while(++__next != __last)
27074 if (*__first == *__next)
27080 template<typename _ForwardIterator, typename _BinaryPredicate>
27082 adjacent_find(_ForwardIterator __first, _ForwardIterator __last,
27083 _BinaryPredicate __binary_pred)
27088 if (__first == __last)
27090 _ForwardIterator __next = __first;
27091 while(++__next != __last)
27093 if (__binary_pred(*__first, *__next))
27099 template<typename _InputIterator, typename _Tp>
27100 typename iterator_traits<_InputIterator>::difference_type
27101 count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
27106 typename iterator_traits<_InputIterator>::difference_type __n = 0;
27107 for (; __first != __last; ++__first)
27108 if (*__first == __value)
27112 template<typename _InputIterator, typename _Predicate>
27113 typename iterator_traits<_InputIterator>::difference_type
27114 count_if(_InputIterator __first, _InputIterator __last, _Predicate __pred)
27119 typename iterator_traits<_InputIterator>::difference_type __n = 0;
27120 for (; __first != __last; ++__first)
27121 if (__pred(*__first))
27125 template<typename _ForwardIterator1, typename _ForwardIterator2>
27127 search(_ForwardIterator1 __first1, _ForwardIterator1 __last1,
27128 _ForwardIterator2 __first2, _ForwardIterator2 __last2)
27135 if (__first1 == __last1 || __first2 == __last2)
27137 _ForwardIterator2 __p1(__first2);
27138 if (++__p1 == __last2)
27139 return std::find(__first1, __last1, *__first2);
27140 _ForwardIterator2 __p;
27141 _ForwardIterator1 __current = __first1;
27144 __first1 = std::find(__first1, __last1, *__first2);
27145 if (__first1 == __last1)
27148 __current = __first1;
27149 if (++__current == __last1)
27151 while (*__current == *__p)
27153 if (++__p == __last2)
27155 if (++__current == __last1)
27162 template<typename _ForwardIterator1, typename _ForwardIterator2,
27163 typename _BinaryPredicate>
27165 search(_ForwardIterator1 __first1, _ForwardIterator1 __last1,
27166 _ForwardIterator2 __first2, _ForwardIterator2 __last2,
27167 _BinaryPredicate __predicate)
27174 if (__first1 == __last1 || __first2 == __last2)
27176 _ForwardIterator2 __p1(__first2);
27177 if (++__p1 == __last2)
27179 while (__first1 != __last1
27180 && !bool(__predicate(*__first1, *__first2)))
27184 _ForwardIterator2 __p;
27185 _ForwardIterator1 __current = __first1;
27188 while (__first1 != __last1
27189 && !bool(__predicate(*__first1, *__first2)))
27191 if (__first1 == __last1)
27194 __current = __first1;
27195 if (++__current == __last1)
27197 while (__predicate(*__current, *__p))
27199 if (++__p == __last2)
27201 if (++__current == __last1)
27208 template<typename _ForwardIterator, typename _Integer, typename _Tp>
27210 search_n(_ForwardIterator __first, _ForwardIterator __last,
27211 _Integer __count, const _Tp& __val)
27219 return std::find(__first, __last, __val);
27220 return std::__search_n(__first, __last, __count, __val,
27221 std::__iterator_category(__first));
27223 template<typename _ForwardIterator, typename _Integer, typename _Tp,
27224 typename _BinaryPredicate>
27226 search_n(_ForwardIterator __first, _ForwardIterator __last,
27227 _Integer __count, const _Tp& __val,
27228 _BinaryPredicate __binary_pred)
27237 while (__first != __last && !bool(__binary_pred(*__first, __val)))
27241 return std::__search_n(__first, __last, __count, __val, __binary_pred,
27242 std::__iterator_category(__first));
27244 template<typename _InputIterator, typename _OutputIterator,
27245 typename _UnaryOperation>
27247 transform(_InputIterator __first, _InputIterator __last,
27248 _OutputIterator __result, _UnaryOperation __unary_op)
27253 for (; __first != __last; ++__first, ++__result)
27254 *__result = __unary_op(*__first);
27257 template<typename _InputIterator1, typename _InputIterator2,
27258 typename _OutputIterator, typename _BinaryOperation>
27260 transform(_InputIterator1 __first1, _InputIterator1 __last1,
27261 _InputIterator2 __first2, _OutputIterator __result,
27262 _BinaryOperation __binary_op)
27268 for (; __first1 != __last1; ++__first1, ++__first2, ++__result)
27269 *__result = __binary_op(*__first1, *__first2);
27272 template<typename _ForwardIterator, typename _Tp>
27274 replace(_ForwardIterator __first, _ForwardIterator __last,
27275 const _Tp& __old_value, const _Tp& __new_value)
27281 for (; __first != __last; ++__first)
27282 if (*__first == __old_value)
27283 *__first = __new_value;
27285 template<typename _ForwardIterator, typename _Predicate, typename _Tp>
27287 replace_if(_ForwardIterator __first, _ForwardIterator __last,
27288 _Predicate __pred, const _Tp& __new_value)
27294 for (; __first != __last; ++__first)
27295 if (__pred(*__first))
27296 *__first = __new_value;
27298 template<typename _ForwardIterator, typename _Generator>
27300 generate(_ForwardIterator __first, _ForwardIterator __last,
27306 for (; __first != __last; ++__first)
27307 *__first = __gen();
27309 template<typename _OutputIterator, typename _Size, typename _Generator>
27311 generate_n(_OutputIterator __first, _Size __n, _Generator __gen)
27314 for (; __n > 0; --__n, ++__first)
27315 *__first = __gen();
27318 template<typename _InputIterator, typename _OutputIterator>
27319 inline _OutputIterator
27320 unique_copy(_InputIterator __first, _InputIterator __last,
27321 _OutputIterator __result)
27327 if (__first == __last)
27329 return std::__unique_copy(__first, __last, __result,
27330 std::__iterator_category(__first),
27331 std::__iterator_category(__result));
27333 template<typename _InputIterator, typename _OutputIterator,
27334 typename _BinaryPredicate>
27335 inline _OutputIterator
27336 unique_copy(_InputIterator __first, _InputIterator __last,
27337 _OutputIterator __result,
27338 _BinaryPredicate __binary_pred)
27343 if (__first == __last)
27345 return std::__unique_copy(__first, __last, __result, __binary_pred,
27346 std::__iterator_category(__first),
27347 std::__iterator_category(__result));
27349 template<typename _RandomAccessIterator>
27351 random_shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last)
27355 if (__first != __last)
27356 for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i)
27357 std::iter_swap(__i, __first + (std::rand() % ((__i - __first) + 1)));
27359 template<typename _RandomAccessIterator, typename _RandomNumberGenerator>
27361 random_shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last,
27362 _RandomNumberGenerator& __rand)
27366 if (__first == __last)
27368 for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i)
27369 std::iter_swap(__i, __first + __rand((__i - __first) + 1));
27371 template<typename _ForwardIterator, typename _Predicate>
27372 inline _ForwardIterator
27373 partition(_ForwardIterator __first, _ForwardIterator __last,
27379 return std::__partition(__first, __last, __pred,
27380 std::__iterator_category(__first));
27382 template<typename _RandomAccessIterator>
27384 partial_sort(_RandomAccessIterator __first,
27385 _RandomAccessIterator __middle,
27386 _RandomAccessIterator __last)
27388 typedef typename iterator_traits<_RandomAccessIterator>::value_type
27394 std::__heap_select(__first, __middle, __last);
27395 std::sort_heap(__first, __middle);
27397 template<typename _RandomAccessIterator, typename _Compare>
27399 partial_sort(_RandomAccessIterator __first,
27400 _RandomAccessIterator __middle,
27401 _RandomAccessIterator __last,
27404 typedef typename iterator_traits<_RandomAccessIterator>::value_type
27410 std::__heap_select(__first, __middle, __last, __comp);
27411 std::sort_heap(__first, __middle, __comp);
27413 template<typename _RandomAccessIterator>
27415 nth_element(_RandomAccessIterator __first, _RandomAccessIterator __nth,
27416 _RandomAccessIterator __last)
27418 typedef typename iterator_traits<_RandomAccessIterator>::value_type
27424 if (__first == __last || __nth == __last)
27426 std::__introselect(__first, __nth, __last,
27427 std::__lg(__last - __first) * 2);
27429 template<typename _RandomAccessIterator, typename _Compare>
27431 nth_element(_RandomAccessIterator __first, _RandomAccessIterator __nth,
27432 _RandomAccessIterator __last, _Compare __comp)
27434 typedef typename iterator_traits<_RandomAccessIterator>::value_type
27440 if (__first == __last || __nth == __last)
27442 std::__introselect(__first, __nth, __last,
27443 std::__lg(__last - __first) * 2, __comp);
27445 template<typename _RandomAccessIterator>
27447 sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
27449 typedef typename iterator_traits<_RandomAccessIterator>::value_type
27454 if (__first != __last)
27456 std::__introsort_loop(__first, __last,
27457 std::__lg(__last - __first) * 2);
27458 std::__final_insertion_sort(__first, __last);
27461 template<typename _RandomAccessIterator, typename _Compare>
27463 sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
27466 typedef typename iterator_traits<_RandomAccessIterator>::value_type
27471 if (__first != __last)
27473 std::__introsort_loop(__first, __last,
27474 std::__lg(__last - __first) * 2, __comp);
27475 std::__final_insertion_sort(__first, __last, __comp);
27478 template<typename _InputIterator1, typename _InputIterator2,
27479 typename _OutputIterator>
27481 merge(_InputIterator1 __first1, _InputIterator1 __last1,
27482 _InputIterator2 __first2, _InputIterator2 __last2,
27483 _OutputIterator __result)
27485 typedef typename iterator_traits<_InputIterator1>::value_type
27487 typedef typename iterator_traits<_InputIterator2>::value_type
27496 while (__first1 != __last1 && __first2 != __last2)
27498 if (*__first2 < *__first1)
27500 *__result = *__first2;
27505 *__result = *__first1;
27510 return std::copy(__first2, __last2, std::copy(__first1, __last1,
27513 template<typename _InputIterator1, typename _InputIterator2,
27514 typename _OutputIterator, typename _Compare>
27516 merge(_InputIterator1 __first1, _InputIterator1 __last1,
27517 _InputIterator2 __first2, _InputIterator2 __last2,
27518 _OutputIterator __result, _Compare __comp)
27520 typedef typename iterator_traits<_InputIterator1>::value_type
27522 typedef typename iterator_traits<_InputIterator2>::value_type
27531 while (__first1 != __last1 && __first2 != __last2)
27533 if (__comp(*__first2, *__first1))
27535 *__result = *__first2;
27540 *__result = *__first1;
27545 return std::copy(__first2, __last2, std::copy(__first1, __last1,
27548 template<typename _RandomAccessIterator>
27550 stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
27552 typedef typename iterator_traits<_RandomAccessIterator>::value_type
27554 typedef typename iterator_traits<_RandomAccessIterator>::difference_type
27559 _Temporary_buffer<_RandomAccessIterator, _ValueType> __buf(__first,
27561 if (__buf.begin() == 0)
27562 std::__inplace_stable_sort(__first, __last);
27564 std::__stable_sort_adaptive(__first, __last, __buf.begin(),
27565 _DistanceType(__buf.size()));
27567 template<typename _RandomAccessIterator, typename _Compare>
27569 stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
27572 typedef typename iterator_traits<_RandomAccessIterator>::value_type
27574 typedef typename iterator_traits<_RandomAccessIterator>::difference_type
27579 _Temporary_buffer<_RandomAccessIterator, _ValueType> __buf(__first,
27581 if (__buf.begin() == 0)
27582 std::__inplace_stable_sort(__first, __last, __comp);
27584 std::__stable_sort_adaptive(__first, __last, __buf.begin(),
27585 _DistanceType(__buf.size()), __comp);
27587 template<typename _InputIterator1, typename _InputIterator2,
27588 typename _OutputIterator>
27590 set_union(_InputIterator1 __first1, _InputIterator1 __last1,
27591 _InputIterator2 __first2, _InputIterator2 __last2,
27592 _OutputIterator __result)
27594 typedef typename iterator_traits<_InputIterator1>::value_type
27596 typedef typename iterator_traits<_InputIterator2>::value_type
27606 while (__first1 != __last1 && __first2 != __last2)
27608 if (*__first1 < *__first2)
27610 *__result = *__first1;
27613 else if (*__first2 < *__first1)
27615 *__result = *__first2;
27620 *__result = *__first1;
27626 return std::copy(__first2, __last2, std::copy(__first1, __last1,
27629 template<typename _InputIterator1, typename _InputIterator2,
27630 typename _OutputIterator, typename _Compare>
27632 set_union(_InputIterator1 __first1, _InputIterator1 __last1,
27633 _InputIterator2 __first2, _InputIterator2 __last2,
27634 _OutputIterator __result, _Compare __comp)
27636 typedef typename iterator_traits<_InputIterator1>::value_type
27638 typedef typename iterator_traits<_InputIterator2>::value_type
27648 while (__first1 != __last1 && __first2 != __last2)
27650 if (__comp(*__first1, *__first2))
27652 *__result = *__first1;
27655 else if (__comp(*__first2, *__first1))
27657 *__result = *__first2;
27662 *__result = *__first1;
27668 return std::copy(__first2, __last2, std::copy(__first1, __last1,
27671 template<typename _InputIterator1, typename _InputIterator2,
27672 typename _OutputIterator>
27674 set_intersection(_InputIterator1 __first1, _InputIterator1 __last1,
27675 _InputIterator2 __first2, _InputIterator2 __last2,
27676 _OutputIterator __result)
27678 typedef typename iterator_traits<_InputIterator1>::value_type
27680 typedef typename iterator_traits<_InputIterator2>::value_type
27689 while (__first1 != __last1 && __first2 != __last2)
27690 if (*__first1 < *__first2)
27692 else if (*__first2 < *__first1)
27696 *__result = *__first1;
27703 template<typename _InputIterator1, typename _InputIterator2,
27704 typename _OutputIterator, typename _Compare>
27706 set_intersection(_InputIterator1 __first1, _InputIterator1 __last1,
27707 _InputIterator2 __first2, _InputIterator2 __last2,
27708 _OutputIterator __result, _Compare __comp)
27710 typedef typename iterator_traits<_InputIterator1>::value_type
27712 typedef typename iterator_traits<_InputIterator2>::value_type
27721 while (__first1 != __last1 && __first2 != __last2)
27722 if (__comp(*__first1, *__first2))
27724 else if (__comp(*__first2, *__first1))
27728 *__result = *__first1;
27735 template<typename _InputIterator1, typename _InputIterator2,
27736 typename _OutputIterator>
27738 set_difference(_InputIterator1 __first1, _InputIterator1 __last1,
27739 _InputIterator2 __first2, _InputIterator2 __last2,
27740 _OutputIterator __result)
27742 typedef typename iterator_traits<_InputIterator1>::value_type
27744 typedef typename iterator_traits<_InputIterator2>::value_type
27753 while (__first1 != __last1 && __first2 != __last2)
27754 if (*__first1 < *__first2)
27756 *__result = *__first1;
27760 else if (*__first2 < *__first1)
27767 return std::copy(__first1, __last1, __result);
27769 template<typename _InputIterator1, typename _InputIterator2,
27770 typename _OutputIterator, typename _Compare>
27772 set_difference(_InputIterator1 __first1, _InputIterator1 __last1,
27773 _InputIterator2 __first2, _InputIterator2 __last2,
27774 _OutputIterator __result, _Compare __comp)
27776 typedef typename iterator_traits<_InputIterator1>::value_type
27778 typedef typename iterator_traits<_InputIterator2>::value_type
27787 while (__first1 != __last1 && __first2 != __last2)
27788 if (__comp(*__first1, *__first2))
27790 *__result = *__first1;
27794 else if (__comp(*__first2, *__first1))
27801 return std::copy(__first1, __last1, __result);
27803 template<typename _InputIterator1, typename _InputIterator2,
27804 typename _OutputIterator>
27806 set_symmetric_difference(_InputIterator1 __first1, _InputIterator1 __last1,
27807 _InputIterator2 __first2, _InputIterator2 __last2,
27808 _OutputIterator __result)
27810 typedef typename iterator_traits<_InputIterator1>::value_type
27812 typedef typename iterator_traits<_InputIterator2>::value_type
27822 while (__first1 != __last1 && __first2 != __last2)
27823 if (*__first1 < *__first2)
27825 *__result = *__first1;
27829 else if (*__first2 < *__first1)
27831 *__result = *__first2;
27840 return std::copy(__first2, __last2, std::copy(__first1,
27841 __last1, __result));
27843 template<typename _InputIterator1, typename _InputIterator2,
27844 typename _OutputIterator, typename _Compare>
27846 set_symmetric_difference(_InputIterator1 __first1, _InputIterator1 __last1,
27847 _InputIterator2 __first2, _InputIterator2 __last2,
27848 _OutputIterator __result,
27851 typedef typename iterator_traits<_InputIterator1>::value_type
27853 typedef typename iterator_traits<_InputIterator2>::value_type
27863 while (__first1 != __last1 && __first2 != __last2)
27864 if (__comp(*__first1, *__first2))
27866 *__result = *__first1;
27870 else if (__comp(*__first2, *__first1))
27872 *__result = *__first2;
27881 return std::copy(__first2, __last2,
27882 std::copy(__first1, __last1, __result));
27884 template<typename _ForwardIterator>
27886 min_element(_ForwardIterator __first, _ForwardIterator __last)
27891 if (__first == __last)
27893 _ForwardIterator __result = __first;
27894 while (++__first != __last)
27895 if (*__first < *__result)
27896 __result = __first;
27899 template<typename _ForwardIterator, typename _Compare>
27901 min_element(_ForwardIterator __first, _ForwardIterator __last,
27907 if (__first == __last)
27909 _ForwardIterator __result = __first;
27910 while (++__first != __last)
27911 if (__comp(*__first, *__result))
27912 __result = __first;
27915 template<typename _ForwardIterator>
27917 max_element(_ForwardIterator __first, _ForwardIterator __last)
27922 if (__first == __last)
27924 _ForwardIterator __result = __first;
27925 while (++__first != __last)
27926 if (*__result < *__first)
27927 __result = __first;
27930 template<typename _ForwardIterator, typename _Compare>
27932 max_element(_ForwardIterator __first, _ForwardIterator __last,
27938 if (__first == __last) return __first;
27939 _ForwardIterator __result = __first;
27940 while (++__first != __last)
27941 if (__comp(*__result, *__first))
27942 __result = __first;
27947 namespace std __attribute__ ((__visibility__ ("default"))) {
27950 template <class _Tp>
27952 operator!=(const _Tp& __x, const _Tp& __y)
27953 { return !(__x == __y); }
27954 template <class _Tp>
27956 operator>(const _Tp& __x, const _Tp& __y)
27957 { return __y < __x; }
27958 template <class _Tp>
27960 operator<=(const _Tp& __x, const _Tp& __y)
27961 { return !(__y < __x); }
27962 template <class _Tp>
27964 operator>=(const _Tp& __x, const _Tp& __y)
27965 { return !(__x < __y); }
27968 static __attribute__ ((__unused__)) inline PyObject*
27969 SWIG_From_unsigned_SS_long (unsigned long value)
27971 return (value > 9223372036854775807L) ?
27972 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
27974 static __attribute__ ((__unused__)) inline PyObject *
27975 SWIG_From_unsigned_SS_int (unsigned int value)
27977 return SWIG_From_unsigned_SS_long (value);
27980 Query *get_py_query(PyObject *obj) {
27981 PyObject * mythis = PyObject_GetAttrString(obj, "this");
27984 Query * retval = 0;
27985 int res = SWIG_Python_ConvertPtrAndOwn(mythis, (void **)&retval, swig_types[40], 0, 0);
27989 if ( --((PyObject*)(mythis))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mythis)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mythis))));
27993 static __attribute__ ((__unused__)) inline PyObject *
27994 SWIG_From_int (int value)
27996 return PyInt_FromLong (value);
27998 PyObject *Xapian_MSet_items_get(Xapian::MSet *mset)
28000 PyObject *retval = PyList_New(mset->size());
28004 Py_ssize_t idx = 0;
28005 for (Xapian::MSetIterator i = mset->begin(); i != mset->end(); ++i) {
28006 PyObject *t = PyTuple_New(4);
28008 if ( --((PyObject*)(retval))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(retval)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(retval))));
28011 (((PyListObject *)(retval))->ob_item[idx++] = (t));
28012 (((PyTupleObject *)(t))->ob_item[0] = PyInt_FromLong(*i));
28013 (((PyTupleObject *)(t))->ob_item[1] = PyFloat_FromDouble(i.get_weight()));
28014 (((PyTupleObject *)(t))->ob_item[2] = PyInt_FromLong(i.get_rank()));
28015 (((PyTupleObject *)(t))->ob_item[3] = PyInt_FromLong(i.get_percent()));
28019 PyObject *Xapian_ESet_items_get(Xapian::ESet *eset)
28021 PyObject *retval = PyList_New(eset->size());
28025 Py_ssize_t idx = 0;
28026 for (Xapian::ESetIterator i = eset->begin(); i != eset->end(); ++i) {
28027 PyObject *t = PyTuple_New(2);
28029 if ( --((PyObject*)(retval))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(retval)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(retval))));
28032 (((PyListObject *)(retval))->ob_item[idx++] = (t));
28033 PyObject * str = PyString_FromStringAndSize((*i).data(), (*i).size());
28035 if ( --((PyObject*)(retval))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(retval)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(retval))));
28038 (((PyTupleObject *)(t))->ob_item[0] = str);
28039 (((PyTupleObject *)(t))->ob_item[1] = PyFloat_FromDouble(i.get_weight()));
28043 static __attribute__ ((__unused__)) int
28044 SWIG_AsPtr_std_string (PyObject * obj, std::string **val);
28045 static __attribute__ ((__unused__)) int
28046 SWIG_anystring_as_ptr(PyObject ** obj, std::string **val)
28048 if (((((((PyObject*)(*obj))->ob_type))->tp_flags & ((1L<<28))) != 0)) {
28049 PyObject * strobj = PyUnicodeUCS4_EncodeUTF8((((PyUnicodeObject *)(*obj))->str), (((PyUnicodeObject *)(*obj))->length), "ignore");
28050 if (strobj == __null) return (-1);
28051 int res = SWIG_AsPtr_std_string(strobj, val);
28052 if ( --((PyObject*)(strobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(strobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(strobj))));
28055 return SWIG_AsPtr_std_string(*obj, val);
28058 static __attribute__ ((__unused__)) swig_type_info*
28059 SWIG_pchar_descriptor(void)
28061 static int init = 0;
28062 static swig_type_info* info = 0;
28064 info = SWIG_Python_TypeQuery("_p_char");
28069 static __attribute__ ((__unused__)) inline PyObject *
28070 SWIG_FromCharPtrAndSize(const char* carray, size_t size)
28073 if (size > 2147483647) {
28074 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
28075 return pchar_descriptor ?
28076 SWIG_Python_NewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : SWIG_Py_Void();
28078 return PyString_FromStringAndSize(carray, static_cast< int >(size));
28081 return SWIG_Py_Void();
28084 static __attribute__ ((__unused__)) inline PyObject *
28085 SWIG_FromCharPtr(const char *cptr)
28087 return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
28089 static __attribute__ ((__unused__)) inline PyObject *
28090 SWIG_From_std_string (const std::string& s)
28093 return SWIG_FromCharPtrAndSize(s.data(), s.size());
28095 return SWIG_FromCharPtrAndSize(s.c_str(), 0);
28098 static __attribute__ ((__unused__)) std::string Xapian_Error___str__(Xapian::Error const *self){
28099 std::string desc(self->get_msg());
28100 if (!self->get_context().empty()) {
28101 desc += " (context: ";
28102 desc += self->get_context();
28105 if (self->get_error_string()) {
28107 desc += self->get_error_string();
28112 static __attribute__ ((__unused__)) int
28113 SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
28115 if (((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<27))) != 0))
28117 char *cstr; Py_ssize_t len;
28118 PyString_AsStringAndSize(obj, &cstr, &len);
28121 if (*alloc == ((0) | ((1 << 8) << 1)))
28123 *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1)));
28124 *alloc = ((0) | ((1 << 8) << 1));
28131 *cptr = SWIG_Python_str_AsChar(obj);
28134 if (psize) *psize = len + 1;
28137 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
28138 if (pchar_descriptor) {
28140 if (SWIG_Python_ConvertPtrAndOwn(obj, &vptr, pchar_descriptor, 0, 0) == (0)) {
28141 if (cptr) *cptr = (char *) vptr;
28142 if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
28143 if (alloc) *alloc = ((0));
28150 static __attribute__ ((__unused__)) int
28151 SWIG_AsVal_int (PyObject * obj, int *val)
28154 int res = SWIG_AsVal_long (obj, &v);
28156 if ((v < (-2147483647 - 1) || v > 2147483647)) {
28159 if (val) *val = static_cast< int >(v);
28165 __attribute__ ((visibility("default"))) void SetPythonException() {
28168 } catch (Swig::DirectorException &e) {
28169 } catch (const Xapian::RangeError &e) {
28170 SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(swig_types[44]), SWIG_Python_NewPointerObj((new Xapian::RangeError(e)), swig_types[44], 0x1));
28171 } catch (const Xapian::SerialisationError &e) {
28172 SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(swig_types[47]), SWIG_Python_NewPointerObj((new Xapian::SerialisationError(e)), swig_types[47], 0x1));
28173 } catch (const Xapian::QueryParserError &e) {
28174 SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(swig_types[42]), SWIG_Python_NewPointerObj((new Xapian::QueryParserError(e)), swig_types[42], 0x1));
28175 } catch (const Xapian::NetworkTimeoutError &e) {
28176 SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(swig_types[35]), SWIG_Python_NewPointerObj((new Xapian::NetworkTimeoutError(e)), swig_types[35], 0x1));
28177 } catch (const Xapian::NetworkError &e) {
28178 SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(swig_types[34]), SWIG_Python_NewPointerObj((new Xapian::NetworkError(e)), swig_types[34], 0x1));
28179 } catch (const Xapian::InternalError &e) {
28180 SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(swig_types[23]), SWIG_Python_NewPointerObj((new Xapian::InternalError(e)), swig_types[23], 0x1));
28181 } catch (const Xapian::FeatureUnavailableError &e) {
28182 SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(swig_types[21]), SWIG_Python_NewPointerObj((new Xapian::FeatureUnavailableError(e)), swig_types[21], 0x1));
28183 } catch (const Xapian::DocNotFoundError &e) {
28184 SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(swig_types[14]), SWIG_Python_NewPointerObj((new Xapian::DocNotFoundError(e)), swig_types[14], 0x1));
28185 } catch (const Xapian::DatabaseVersionError &e) {
28186 SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(swig_types[11]), SWIG_Python_NewPointerObj((new Xapian::DatabaseVersionError(e)), swig_types[11], 0x1));
28187 } catch (const Xapian::DatabaseOpeningError &e) {
28188 SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(swig_types[10]), SWIG_Python_NewPointerObj((new Xapian::DatabaseOpeningError(e)), swig_types[10], 0x1));
28189 } catch (const Xapian::DatabaseModifiedError &e) {
28190 SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(swig_types[9]), SWIG_Python_NewPointerObj((new Xapian::DatabaseModifiedError(e)), swig_types[9], 0x1));
28191 } catch (const Xapian::DatabaseLockError &e) {
28192 SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(swig_types[8]), SWIG_Python_NewPointerObj((new Xapian::DatabaseLockError(e)), swig_types[8], 0x1));
28193 } catch (const Xapian::DatabaseCreateError &e) {
28194 SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(swig_types[6]), SWIG_Python_NewPointerObj((new Xapian::DatabaseCreateError(e)), swig_types[6], 0x1));
28195 } catch (const Xapian::DatabaseCorruptError &e) {
28196 SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(swig_types[5]), SWIG_Python_NewPointerObj((new Xapian::DatabaseCorruptError(e)), swig_types[5], 0x1));
28197 } catch (const Xapian::DatabaseError &e) {
28198 SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(swig_types[7]), SWIG_Python_NewPointerObj((new Xapian::DatabaseError(e)), swig_types[7], 0x1));
28199 } catch (const Xapian::UnimplementedError &e) {
28200 SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(swig_types[57]), SWIG_Python_NewPointerObj((new Xapian::UnimplementedError(e)), swig_types[57], 0x1));
28201 } catch (const Xapian::InvalidOperationError &e) {
28202 SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(swig_types[25]), SWIG_Python_NewPointerObj((new Xapian::InvalidOperationError(e)), swig_types[25], 0x1));
28203 } catch (const Xapian::InvalidArgumentError &e) {
28204 SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(swig_types[24]), SWIG_Python_NewPointerObj((new Xapian::InvalidArgumentError(e)), swig_types[24], 0x1));
28205 } catch (const Xapian::AssertionError &e) {
28206 SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(swig_types[0]), SWIG_Python_NewPointerObj((new Xapian::AssertionError(e)), swig_types[0], 0x1));
28207 } catch (const Xapian::RuntimeError &e) {
28208 SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(swig_types[46]), SWIG_Python_NewPointerObj((new Xapian::RuntimeError(e)), swig_types[46], 0x1));
28209 } catch (const Xapian::LogicError &e) {
28210 SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(swig_types[27]), SWIG_Python_NewPointerObj((new Xapian::LogicError(e)), swig_types[27], 0x1));
28211 } catch (const Xapian::Error &e) {
28212 SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(swig_types[19]), SWIG_Python_NewPointerObj((new Xapian::Error(e)), swig_types[19], 0x1));
28213 } catch (const std::exception& e) {
28214 SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what());
28216 SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-1), "unknown error in Xapian");
28220 static __attribute__ ((__unused__)) Xapian::termpos Xapian_PositionIterator_get_termpos(Xapian::PositionIterator const *self){
28223 static __attribute__ ((__unused__)) void Xapian_PositionIterator_next(Xapian::PositionIterator *self){ ++(*self); }
28224 static __attribute__ ((__unused__)) bool Xapian_PositionIterator_equals(Xapian::PositionIterator const *self,Xapian::PositionIterator const &other){
28225 return (*self) == other;
28227 static __attribute__ ((__unused__)) int
28228 SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
28231 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
28233 if ((v > (2147483647 * 2U + 1U))) {
28236 if (val) *val = static_cast< unsigned int >(v);
28241 static __attribute__ ((__unused__)) bool Xapian_PositionIterator___eq__(Xapian::PositionIterator *self,Xapian::PositionIterator const &other){
28242 return (*self)==other;
28244 static __attribute__ ((__unused__)) bool Xapian_PositionIterator___ne__(Xapian::PositionIterator *self,Xapian::PositionIterator const &other){
28245 return (*self)!=other;
28247 static __attribute__ ((__unused__)) bool Xapian_PostingIterator___eq__(Xapian::PostingIterator *self,Xapian::PostingIterator const &other){
28248 return (*self)==other;
28250 static __attribute__ ((__unused__)) bool Xapian_PostingIterator___ne__(Xapian::PostingIterator *self,Xapian::PostingIterator const &other){
28251 return (*self)!=other;
28253 static __attribute__ ((__unused__)) Xapian::docid Xapian_PostingIterator_get_docid(Xapian::PostingIterator const *self){
28256 static __attribute__ ((__unused__)) void Xapian_PostingIterator_next(Xapian::PostingIterator *self){ ++(*self); }
28257 static __attribute__ ((__unused__)) bool Xapian_PostingIterator_equals(Xapian::PostingIterator const *self,Xapian::PostingIterator const &other){
28258 return (*self) == other;
28260 static __attribute__ ((__unused__)) std::string Xapian_TermIterator_get_term(Xapian::TermIterator const *self){
28263 static __attribute__ ((__unused__)) void Xapian_TermIterator_next(Xapian::TermIterator *self){ ++(*self); }
28264 static __attribute__ ((__unused__)) bool Xapian_TermIterator_equals(Xapian::TermIterator const *self,Xapian::TermIterator const &other){
28265 return (*self) == other;
28267 static __attribute__ ((__unused__)) bool Xapian_TermIterator___eq__(Xapian::TermIterator *self,Xapian::TermIterator const &other){
28268 return (*self)==other;
28270 static __attribute__ ((__unused__)) bool Xapian_TermIterator___ne__(Xapian::TermIterator *self,Xapian::TermIterator const &other){
28271 return (*self)!=other;
28273 static __attribute__ ((__unused__)) std::string Xapian_ValueIterator_get_value(Xapian::ValueIterator const *self){
28276 static __attribute__ ((__unused__)) void Xapian_ValueIterator_next(Xapian::ValueIterator *self){ ++(*self); }
28277 static __attribute__ ((__unused__)) bool Xapian_ValueIterator_equals(Xapian::ValueIterator const *self,Xapian::ValueIterator const &other){
28278 return (*self) == other;
28280 static __attribute__ ((__unused__)) bool Xapian_ValueIterator___eq__(Xapian::ValueIterator *self,Xapian::ValueIterator const &other){
28281 return (*self)==other;
28283 static __attribute__ ((__unused__)) bool Xapian_ValueIterator___ne__(Xapian::ValueIterator *self,Xapian::ValueIterator const &other){
28284 return (*self)!=other;
28286 static __attribute__ ((__unused__)) int
28287 SWIG_AsVal_bool (PyObject *obj, bool *val)
28289 int r = PyObject_IsTrue(obj);
28292 if (val) *val = r ? true : false;
28295 static __attribute__ ((__unused__)) int
28296 SWIG_AsPtr_std_string (PyObject * obj, std::string **val)
28298 char* buf = 0 ; size_t size = 0; int alloc = ((0));
28299 if (((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc)) >= 0)) {
28301 if (val) *val = new std::string(buf, size - 1);
28302 if (alloc == ((0) | ((1 << 8) << 1))) delete[] buf;
28303 return ((0) | ((1 << 8) << 1));
28309 static int init = 0;
28310 static swig_type_info* descriptor = 0;
28312 descriptor = SWIG_Python_TypeQuery("std::string" " *");
28317 int res = SWIG_Python_ConvertPtrAndOwn(obj, (void**)&vptr, descriptor, 0, 0);
28318 if ((res >= 0) && val) *val = vptr;
28324 static __attribute__ ((__unused__)) Xapian::MSetIterator Xapian_MSet_get_hit(Xapian::MSet const *self,Xapian::doccount i){
28325 return ((*self)[i]);
28327 static __attribute__ ((__unused__)) int Xapian_MSet_get_document_percentage(Xapian::MSet const *self,Xapian::doccount i){
28328 return (*self).convert_to_percent( ((*self)[i]) );
28330 static __attribute__ ((__unused__)) Xapian::Document const Xapian_MSet_get_document(Xapian::MSet const *self,Xapian::doccount i){
28331 return ((*self)[i]).get_document();
28333 static __attribute__ ((__unused__)) Xapian::docid Xapian_MSet_get_docid(Xapian::MSet const *self,Xapian::doccount i){
28334 return *((*self)[i]);
28336 static __attribute__ ((__unused__)) int Xapian_MSet___cmp__(Xapian::MSet *self,Xapian::MSet const &other){
28337 if (self->get_max_possible() != other.get_max_possible()) {
28338 return (self->get_max_possible() < other.get_max_possible())? -1 : 1;
28340 if (self->size() != other.size()) {
28341 return (self->size() < other.size())? -1 : 1;
28343 for (size_t i=0; i<self->size(); ++i) {
28344 if (*(*self)[i] != *other[i]) {
28345 return (*(*self)[i] < *other[i])? -1 : 1;
28347 if ((*self)[i].get_weight() != other[i].get_weight()) {
28348 return ((*self)[i].get_weight() < other[i].get_weight())? -1 : 1;
28353 static __attribute__ ((__unused__)) Xapian::docid Xapian_MSetIterator_get_docid(Xapian::MSetIterator const *self){
28356 static __attribute__ ((__unused__)) void Xapian_MSetIterator_next(Xapian::MSetIterator *self){ ++(*self); }
28357 static __attribute__ ((__unused__)) void Xapian_MSetIterator_prev(Xapian::MSetIterator *self){ --(*self); }
28358 static __attribute__ ((__unused__)) bool Xapian_MSetIterator_equals(Xapian::MSetIterator const *self,Xapian::MSetIterator const &other){
28359 return (*self) == other;
28361 static __attribute__ ((__unused__)) bool Xapian_MSetIterator___eq__(Xapian::MSetIterator *self,Xapian::MSetIterator const &other){
28362 return (*self)==other;
28364 static __attribute__ ((__unused__)) bool Xapian_MSetIterator___ne__(Xapian::MSetIterator *self,Xapian::MSetIterator const &other){
28365 return (*self)!=other;
28367 static __attribute__ ((__unused__)) std::string Xapian_ESetIterator_get_term(Xapian::ESetIterator const *self){
28370 static __attribute__ ((__unused__)) void Xapian_ESetIterator_next(Xapian::ESetIterator *self){ ++(*self); }
28371 static __attribute__ ((__unused__)) void Xapian_ESetIterator_prev(Xapian::ESetIterator *self){ --(*self); }
28372 static __attribute__ ((__unused__)) bool Xapian_ESetIterator_equals(Xapian::ESetIterator const *self,Xapian::ESetIterator const &other){
28373 return (*self) == other;
28375 static __attribute__ ((__unused__)) bool Xapian_ESetIterator___eq__(Xapian::ESetIterator *self,Xapian::ESetIterator const &other){
28376 return (*self)==other;
28378 static __attribute__ ((__unused__)) bool Xapian_ESetIterator___ne__(Xapian::ESetIterator *self,Xapian::ESetIterator const &other){
28379 return (*self)!=other;
28381 static __attribute__ ((__unused__)) std::pair< Xapian::TermIterator,Xapian::TermIterator > Xapian_Enquire_get_matching_terms(Xapian::Enquire const *self,Xapian::MSetIterator const &hit){
28382 return make_pair(self->get_matching_terms_begin(hit),
28383 self->get_matching_terms_end(hit));
28385 static __attribute__ ((__unused__)) inline PyObject *
28386 SWIG_From_size_t (size_t value)
28388 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
28390 static __attribute__ ((__unused__)) Xapian::Query *new_Xapian_Query__SWIG_13(Xapian::Query::op op,std::vector< Xapian::Query > const &subqs,Xapian::termcount param=0){
28391 return new Xapian::Query(op, subqs.begin(), subqs.end(), param);
28393 class SwigDirector_PostingSource : public Xapian::PostingSource, public Swig::Director {
28395 SwigDirector_PostingSource(PyObject *self);
28396 virtual ~SwigDirector_PostingSource();
28397 virtual Xapian::doccount get_termfreq_min() const;
28398 virtual Xapian::doccount get_termfreq_est() const;
28399 virtual Xapian::doccount get_termfreq_max() const;
28400 virtual Xapian::weight get_weight() const;
28401 virtual Xapian::docid get_docid() const;
28402 virtual void next(Xapian::weight min_wt);
28403 virtual void skip_to(Xapian::docid did, Xapian::weight min_wt);
28404 virtual bool check(Xapian::docid did, Xapian::weight min_wt);
28405 virtual bool at_end() const;
28406 virtual Xapian::PostingSource *clone() const;
28407 virtual std::string name() const;
28408 virtual std::string serialise() const;
28409 virtual Xapian::PostingSource *unserialise(std::string const &s) const;
28410 virtual void init(Xapian::Database const &db);
28411 virtual std::string get_description() const;
28413 bool swig_get_inner(const char* name) const {
28414 std::map<std::string, bool>::const_iterator iv = inner.find(name);
28415 return (iv != inner.end() ? iv->second : false);
28417 void swig_set_inner(const char* name, bool val) const
28418 { inner[name] = val;}
28420 mutable std::map<std::string, bool> inner;
28421 PyObject *swig_get_method(size_t method_index, const char *method_name) const {
28422 PyObject *method = vtable[method_index];
28424 swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name);
28425 method = PyObject_GetAttr(swig_get_self(), name);
28426 if (method == __null) {
28427 std::string msg = "Method in class PostingSource doesn't exist, undefined ";
28428 msg += method_name;
28429 Swig::DirectorMethodException::raise(msg.c_str());
28431 vtable[method_index] = method;
28436 mutable swig::SwigVar_PyObject vtable[12];
28438 class SwigDirector_MatchDecider : public Xapian::MatchDecider, public Swig::Director {
28440 SwigDirector_MatchDecider(PyObject *self);
28441 virtual bool operator ()(Xapian::Document const &doc) const;
28442 virtual ~SwigDirector_MatchDecider();
28444 bool swig_get_inner(const char* name) const {
28445 std::map<std::string, bool>::const_iterator iv = inner.find(name);
28446 return (iv != inner.end() ? iv->second : false);
28448 void swig_set_inner(const char* name, bool val) const
28449 { inner[name] = val;}
28451 mutable std::map<std::string, bool> inner;
28452 PyObject *swig_get_method(size_t method_index, const char *method_name) const {
28453 PyObject *method = vtable[method_index];
28455 swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name);
28456 method = PyObject_GetAttr(swig_get_self(), name);
28457 if (method == __null) {
28458 std::string msg = "Method in class MatchDecider doesn't exist, undefined ";
28459 msg += method_name;
28460 Swig::DirectorMethodException::raise(msg.c_str());
28462 vtable[method_index] = method;
28467 mutable swig::SwigVar_PyObject vtable[1];
28469 class SwigDirector_ExpandDecider : public Xapian::ExpandDecider, public Swig::Director {
28471 SwigDirector_ExpandDecider(PyObject *self);
28472 virtual bool operator ()(std::string const &term) const;
28473 virtual ~SwigDirector_ExpandDecider();
28475 bool swig_get_inner(const char* name) const {
28476 std::map<std::string, bool>::const_iterator iv = inner.find(name);
28477 return (iv != inner.end() ? iv->second : false);
28479 void swig_set_inner(const char* name, bool val) const
28480 { inner[name] = val;}
28482 mutable std::map<std::string, bool> inner;
28483 PyObject *swig_get_method(size_t method_index, const char *method_name) const {
28484 PyObject *method = vtable[method_index];
28486 swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name);
28487 method = PyObject_GetAttr(swig_get_self(), name);
28488 if (method == __null) {
28489 std::string msg = "Method in class ExpandDecider doesn't exist, undefined ";
28490 msg += method_name;
28491 Swig::DirectorMethodException::raise(msg.c_str());
28493 vtable[method_index] = method;
28498 mutable swig::SwigVar_PyObject vtable[1];
28500 class SwigDirector_MatchSpy : public Xapian::MatchSpy, public Swig::Director {
28502 SwigDirector_MatchSpy(PyObject *self);
28503 virtual ~SwigDirector_MatchSpy();
28504 virtual void operator ()(Xapian::Document const &doc, Xapian::weight wt);
28505 virtual Xapian::MatchSpy *clone() const;
28506 virtual std::string name() const;
28507 virtual std::string serialise() const;
28508 virtual Xapian::MatchSpy *unserialise(std::string const &s, Xapian::Registry const &context) const;
28509 virtual std::string serialise_results() const;
28510 virtual void merge_results(std::string const &s);
28511 virtual std::string get_description() const;
28513 bool swig_get_inner(const char* name) const {
28514 std::map<std::string, bool>::const_iterator iv = inner.find(name);
28515 return (iv != inner.end() ? iv->second : false);
28517 void swig_set_inner(const char* name, bool val) const
28518 { inner[name] = val;}
28520 mutable std::map<std::string, bool> inner;
28521 PyObject *swig_get_method(size_t method_index, const char *method_name) const {
28522 PyObject *method = vtable[method_index];
28524 swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name);
28525 method = PyObject_GetAttr(swig_get_self(), name);
28526 if (method == __null) {
28527 std::string msg = "Method in class MatchSpy doesn't exist, undefined ";
28528 msg += method_name;
28529 Swig::DirectorMethodException::raise(msg.c_str());
28531 vtable[method_index] = method;
28536 mutable swig::SwigVar_PyObject vtable[4];
28538 class SwigDirector_Stopper : public Xapian::Stopper, public Swig::Director {
28540 SwigDirector_Stopper(PyObject *self);
28541 virtual bool operator ()(std::string const &term) const;
28542 virtual ~SwigDirector_Stopper();
28543 virtual std::string get_description() const;
28545 bool swig_get_inner(const char* name) const {
28546 std::map<std::string, bool>::const_iterator iv = inner.find(name);
28547 return (iv != inner.end() ? iv->second : false);
28549 void swig_set_inner(const char* name, bool val) const
28550 { inner[name] = val;}
28552 mutable std::map<std::string, bool> inner;
28553 PyObject *swig_get_method(size_t method_index, const char *method_name) const {
28554 PyObject *method = vtable[method_index];
28556 swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name);
28557 method = PyObject_GetAttr(swig_get_self(), name);
28558 if (method == __null) {
28559 std::string msg = "Method in class Stopper doesn't exist, undefined ";
28560 msg += method_name;
28561 Swig::DirectorMethodException::raise(msg.c_str());
28563 vtable[method_index] = method;
28568 mutable swig::SwigVar_PyObject vtable[2];
28570 struct SwigDirector_ValueRangeProcessor : public Xapian::ValueRangeProcessor, public Swig::Director {
28572 SwigDirector_ValueRangeProcessor(PyObject *self);
28573 virtual ~SwigDirector_ValueRangeProcessor();
28574 virtual Xapian::valueno operator ()(std::string &begin, std::string &end);
28576 bool swig_get_inner(const char* name) const {
28577 std::map<std::string, bool>::const_iterator iv = inner.find(name);
28578 return (iv != inner.end() ? iv->second : false);
28580 void swig_set_inner(const char* name, bool val) const
28581 { inner[name] = val;}
28583 mutable std::map<std::string, bool> inner;
28584 PyObject *swig_get_method(size_t method_index, const char *method_name) const {
28585 PyObject *method = vtable[method_index];
28587 swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name);
28588 method = PyObject_GetAttr(swig_get_self(), name);
28589 if (method == __null) {
28590 std::string msg = "Method in class ValueRangeProcessor doesn't exist, undefined ";
28591 msg += method_name;
28592 Swig::DirectorMethodException::raise(msg.c_str());
28594 vtable[method_index] = method;
28599 mutable swig::SwigVar_PyObject vtable[1];
28601 struct SwigDirector_StemImplementation : public Xapian::StemImplementation, public Swig::Director {
28603 SwigDirector_StemImplementation(PyObject *self);
28604 virtual ~SwigDirector_StemImplementation();
28605 virtual std::string operator ()(std::string const &word);
28606 virtual std::string get_description() const;
28608 bool swig_get_inner(const char* name) const {
28609 std::map<std::string, bool>::const_iterator iv = inner.find(name);
28610 return (iv != inner.end() ? iv->second : false);
28612 void swig_set_inner(const char* name, bool val) const
28613 { inner[name] = val;}
28615 mutable std::map<std::string, bool> inner;
28616 PyObject *swig_get_method(size_t method_index, const char *method_name) const {
28617 PyObject *method = vtable[method_index];
28619 swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name);
28620 method = PyObject_GetAttr(swig_get_self(), name);
28621 if (method == __null) {
28622 std::string msg = "Method in class StemImplementation doesn't exist, undefined ";
28623 msg += method_name;
28624 Swig::DirectorMethodException::raise(msg.c_str());
28626 vtable[method_index] = method;
28631 mutable swig::SwigVar_PyObject vtable[2];
28633 class SwigDirector_KeyMaker : public Xapian::KeyMaker, public Swig::Director {
28635 SwigDirector_KeyMaker(PyObject *self);
28636 virtual std::string operator ()(Xapian::Document const &doc) const;
28637 virtual ~SwigDirector_KeyMaker();
28639 bool swig_get_inner(const char* name) const {
28640 std::map<std::string, bool>::const_iterator iv = inner.find(name);
28641 return (iv != inner.end() ? iv->second : false);
28643 void swig_set_inner(const char* name, bool val) const
28644 { inner[name] = val;}
28646 mutable std::map<std::string, bool> inner;
28647 PyObject *swig_get_method(size_t method_index, const char *method_name) const {
28648 PyObject *method = vtable[method_index];
28650 swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name);
28651 method = PyObject_GetAttr(swig_get_self(), name);
28652 if (method == __null) {
28653 std::string msg = "Method in class KeyMaker doesn't exist, undefined ";
28654 msg += method_name;
28655 Swig::DirectorMethodException::raise(msg.c_str());
28657 vtable[method_index] = method;
28662 mutable swig::SwigVar_PyObject vtable[1];
28664 class SwigDirector_Compactor : public Xapian::Compactor, public Swig::Director {
28666 SwigDirector_Compactor(PyObject *self);
28667 virtual ~SwigDirector_Compactor();
28668 virtual void set_status(std::string const &table, std::string const &status);
28669 virtual std::string resolve_duplicate_metadata(std::string const &key, size_t num_tags, std::string const tags[]);
28671 bool swig_get_inner(const char* name) const {
28672 std::map<std::string, bool>::const_iterator iv = inner.find(name);
28673 return (iv != inner.end() ? iv->second : false);
28675 void swig_set_inner(const char* name, bool val) const
28676 { inner[name] = val;}
28678 mutable std::map<std::string, bool> inner;
28679 PyObject *swig_get_method(size_t method_index, const char *method_name) const {
28680 PyObject *method = vtable[method_index];
28682 swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name);
28683 method = PyObject_GetAttr(swig_get_self(), name);
28684 if (method == __null) {
28685 std::string msg = "Method in class Compactor doesn't exist, undefined ";
28686 msg += method_name;
28687 Swig::DirectorMethodException::raise(msg.c_str());
28689 vtable[method_index] = method;
28694 mutable swig::SwigVar_PyObject vtable[2];
28696 SwigDirector_PostingSource::SwigDirector_PostingSource(PyObject *self): Xapian::PostingSource(), Swig::Director(self) {
28699 SwigDirector_PostingSource::~SwigDirector_PostingSource() {
28701 Xapian::doccount SwigDirector_PostingSource::get_termfreq_min() const {
28702 Xapian::doccount c_result;
28703 SWIG_Python_Thread_Block _swig_thread_block;
28705 if (!swig_get_self()) {
28706 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call PostingSource.__init__.");
28708 const size_t swig_method_index = 0;
28709 const char * const swig_method_name = "get_termfreq_min";
28710 PyObject* method = swig_get_method(swig_method_index, swig_method_name);
28711 swig::SwigVar_PyObject args = PyTuple_New(0);
28712 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject*) args, __null);
28713 if (result == __null) {
28714 PyObject *error = PyErr_Occurred();
28716 if (error != __null) {
28717 throw Swig::DirectorMethodException();
28721 unsigned int swig_val;
28722 int swig_res = SWIG_AsVal_unsigned_SS_int(result, &swig_val);
28723 if (!(swig_res >= 0)) {
28724 Swig::DirectorTypeMismatchException::raise(SWIG_Python_ErrorType(((swig_res != (-1)) ? swig_res : -5)), "in output value of type '""Xapian::doccount""'");
28726 c_result = static_cast< Xapian::doccount >(swig_val);
28728 _swig_thread_block.end();
28729 return (Xapian::doccount) c_result;
28731 Xapian::doccount SwigDirector_PostingSource::get_termfreq_est() const {
28732 Xapian::doccount c_result;
28733 SWIG_Python_Thread_Block _swig_thread_block;
28735 if (!swig_get_self()) {
28736 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call PostingSource.__init__.");
28738 const size_t swig_method_index = 1;
28739 const char * const swig_method_name = "get_termfreq_est";
28740 PyObject* method = swig_get_method(swig_method_index, swig_method_name);
28741 swig::SwigVar_PyObject args = PyTuple_New(0);
28742 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject*) args, __null);
28743 if (result == __null) {
28744 PyObject *error = PyErr_Occurred();
28746 if (error != __null) {
28747 throw Swig::DirectorMethodException();
28751 unsigned int swig_val;
28752 int swig_res = SWIG_AsVal_unsigned_SS_int(result, &swig_val);
28753 if (!(swig_res >= 0)) {
28754 Swig::DirectorTypeMismatchException::raise(SWIG_Python_ErrorType(((swig_res != (-1)) ? swig_res : -5)), "in output value of type '""Xapian::doccount""'");
28756 c_result = static_cast< Xapian::doccount >(swig_val);
28758 _swig_thread_block.end();
28759 return (Xapian::doccount) c_result;
28761 Xapian::doccount SwigDirector_PostingSource::get_termfreq_max() const {
28762 Xapian::doccount c_result;
28763 SWIG_Python_Thread_Block _swig_thread_block;
28765 if (!swig_get_self()) {
28766 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call PostingSource.__init__.");
28768 const size_t swig_method_index = 2;
28769 const char * const swig_method_name = "get_termfreq_max";
28770 PyObject* method = swig_get_method(swig_method_index, swig_method_name);
28771 swig::SwigVar_PyObject args = PyTuple_New(0);
28772 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject*) args, __null);
28773 if (result == __null) {
28774 PyObject *error = PyErr_Occurred();
28776 if (error != __null) {
28777 throw Swig::DirectorMethodException();
28781 unsigned int swig_val;
28782 int swig_res = SWIG_AsVal_unsigned_SS_int(result, &swig_val);
28783 if (!(swig_res >= 0)) {
28784 Swig::DirectorTypeMismatchException::raise(SWIG_Python_ErrorType(((swig_res != (-1)) ? swig_res : -5)), "in output value of type '""Xapian::doccount""'");
28786 c_result = static_cast< Xapian::doccount >(swig_val);
28788 _swig_thread_block.end();
28789 return (Xapian::doccount) c_result;
28791 Xapian::weight SwigDirector_PostingSource::get_weight() const {
28792 Xapian::weight c_result;
28793 SWIG_Python_Thread_Block _swig_thread_block;
28795 if (!swig_get_self()) {
28796 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call PostingSource.__init__.");
28798 const size_t swig_method_index = 3;
28799 const char * const swig_method_name = "get_weight";
28800 PyObject* method = swig_get_method(swig_method_index, swig_method_name);
28801 swig::SwigVar_PyObject args = PyTuple_New(0);
28802 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject*) args, __null);
28803 if (result == __null) {
28804 PyObject *error = PyErr_Occurred();
28806 if (error != __null) {
28807 throw Swig::DirectorMethodException();
28812 int swig_res = SWIG_AsVal_double(result, &swig_val);
28813 if (!(swig_res >= 0)) {
28814 Swig::DirectorTypeMismatchException::raise(SWIG_Python_ErrorType(((swig_res != (-1)) ? swig_res : -5)), "in output value of type '""Xapian::weight""'");
28816 c_result = static_cast< Xapian::weight >(swig_val);
28818 _swig_thread_block.end();
28819 return (Xapian::weight) c_result;
28821 Xapian::docid SwigDirector_PostingSource::get_docid() const {
28822 Xapian::docid c_result;
28823 SWIG_Python_Thread_Block _swig_thread_block;
28825 if (!swig_get_self()) {
28826 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call PostingSource.__init__.");
28828 const size_t swig_method_index = 4;
28829 const char * const swig_method_name = "get_docid";
28830 PyObject* method = swig_get_method(swig_method_index, swig_method_name);
28831 swig::SwigVar_PyObject args = PyTuple_New(0);
28832 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject*) args, __null);
28833 if (result == __null) {
28834 PyObject *error = PyErr_Occurred();
28836 if (error != __null) {
28837 throw Swig::DirectorMethodException();
28841 unsigned int swig_val;
28842 int swig_res = SWIG_AsVal_unsigned_SS_int(result, &swig_val);
28843 if (!(swig_res >= 0)) {
28844 Swig::DirectorTypeMismatchException::raise(SWIG_Python_ErrorType(((swig_res != (-1)) ? swig_res : -5)), "in output value of type '""Xapian::docid""'");
28846 c_result = static_cast< Xapian::docid >(swig_val);
28848 _swig_thread_block.end();
28849 return (Xapian::docid) c_result;
28851 void SwigDirector_PostingSource::next(Xapian::weight min_wt) {
28852 SWIG_Python_Thread_Block _swig_thread_block;
28854 swig::SwigVar_PyObject obj0;
28855 obj0 = PyFloat_FromDouble(static_cast< double >(min_wt));
28856 if (!swig_get_self()) {
28857 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call PostingSource.__init__.");
28859 const size_t swig_method_index = 5;
28860 const char * const swig_method_name = "next";
28861 PyObject* method = swig_get_method(swig_method_index, swig_method_name);
28862 swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0, __null);
28863 if (result == __null) {
28864 PyObject *error = PyErr_Occurred();
28866 if (error != __null) {
28867 throw Swig::DirectorMethodException();
28872 _swig_thread_block.end();
28874 void SwigDirector_PostingSource::skip_to(Xapian::docid did, Xapian::weight min_wt) {
28875 SWIG_Python_Thread_Block _swig_thread_block;
28877 swig::SwigVar_PyObject obj0;
28878 obj0 = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(did));
28879 swig::SwigVar_PyObject obj1;
28880 obj1 = PyFloat_FromDouble(static_cast< double >(min_wt));
28881 if (!swig_get_self()) {
28882 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call PostingSource.__init__.");
28884 const size_t swig_method_index = 6;
28885 const char * const swig_method_name = "skip_to";
28886 PyObject* method = swig_get_method(swig_method_index, swig_method_name);
28887 swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, __null);
28888 if (result == __null) {
28889 PyObject *error = PyErr_Occurred();
28891 if (error != __null) {
28892 throw Swig::DirectorMethodException();
28897 _swig_thread_block.end();
28899 bool SwigDirector_PostingSource::check(Xapian::docid did, Xapian::weight min_wt) {
28901 SWIG_Python_Thread_Block _swig_thread_block;
28903 swig::SwigVar_PyObject obj0;
28904 obj0 = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(did));
28905 swig::SwigVar_PyObject obj1;
28906 obj1 = PyFloat_FromDouble(static_cast< double >(min_wt));
28907 if (!swig_get_self()) {
28908 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call PostingSource.__init__.");
28910 const size_t swig_method_index = 7;
28911 const char * const swig_method_name = "check";
28912 PyObject* method = swig_get_method(swig_method_index, swig_method_name);
28913 swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, __null);
28914 if (result == __null) {
28915 PyObject *error = PyErr_Occurred();
28917 if (error != __null) {
28918 throw Swig::DirectorMethodException();
28923 int swig_res = SWIG_AsVal_bool(result, &swig_val);
28924 if (!(swig_res >= 0)) {
28925 Swig::DirectorTypeMismatchException::raise(SWIG_Python_ErrorType(((swig_res != (-1)) ? swig_res : -5)), "in output value of type '""bool""'");
28927 c_result = static_cast< bool >(swig_val);
28929 _swig_thread_block.end();
28930 return (bool) c_result;
28932 bool SwigDirector_PostingSource::at_end() const {
28934 SWIG_Python_Thread_Block _swig_thread_block;
28936 if (!swig_get_self()) {
28937 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call PostingSource.__init__.");
28939 const size_t swig_method_index = 8;
28940 const char * const swig_method_name = "at_end";
28941 PyObject* method = swig_get_method(swig_method_index, swig_method_name);
28942 swig::SwigVar_PyObject args = PyTuple_New(0);
28943 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject*) args, __null);
28944 if (result == __null) {
28945 PyObject *error = PyErr_Occurred();
28947 if (error != __null) {
28948 throw Swig::DirectorMethodException();
28953 int swig_res = SWIG_AsVal_bool(result, &swig_val);
28954 if (!(swig_res >= 0)) {
28955 Swig::DirectorTypeMismatchException::raise(SWIG_Python_ErrorType(((swig_res != (-1)) ? swig_res : -5)), "in output value of type '""bool""'");
28957 c_result = static_cast< bool >(swig_val);
28959 _swig_thread_block.end();
28960 return (bool) c_result;
28962 Xapian::PostingSource *SwigDirector_PostingSource::clone() const {
28963 return Xapian::PostingSource::clone();
28965 std::string SwigDirector_PostingSource::name() const {
28966 std::string c_result;
28967 SWIG_Python_Thread_Block _swig_thread_block;
28969 if (!swig_get_self()) {
28970 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call PostingSource.__init__.");
28972 const size_t swig_method_index = 9;
28973 const char * const swig_method_name = "name";
28974 PyObject* method = swig_get_method(swig_method_index, swig_method_name);
28975 swig::SwigVar_PyObject args = PyTuple_New(0);
28976 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject*) args, __null);
28977 if (result == __null) {
28978 PyObject *error = PyErr_Occurred();
28980 if (error != __null) {
28981 throw Swig::DirectorMethodException();
28985 std::string *swig_optr = 0;
28988 PyObject * tmp = result;
28989 ( ((PyObject*)(tmp))->ob_refcnt++);
28990 swig_ores = SWIG_anystring_as_ptr(&tmp, &swig_optr);
28991 if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp))));
28993 if (!(swig_ores >= 0) || !swig_optr) {
28994 Swig::DirectorTypeMismatchException::raise(SWIG_Python_ErrorType((((swig_optr ? swig_ores : -5) != (-1)) ? (swig_optr ? swig_ores : -5) : -5)), "in output value of type '""std::string""'");
28996 c_result = *swig_optr;
28997 if (((swig_ores >= 0) && (swig_ores & ((1 << 8) << 1)))) delete swig_optr;
28999 _swig_thread_block.end();
29000 return (std::string) c_result;
29002 std::string SwigDirector_PostingSource::serialise() const {
29003 return Xapian::PostingSource::serialise();
29005 Xapian::PostingSource *SwigDirector_PostingSource::unserialise(std::string const &s) const {
29006 return Xapian::PostingSource::unserialise(s);
29008 void SwigDirector_PostingSource::init(Xapian::Database const &db) {
29009 SWIG_Python_Thread_Block _swig_thread_block;
29011 swig::SwigVar_PyObject obj0;
29012 obj0 = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(&db)), swig_types[4], 0);
29013 if (!swig_get_self()) {
29014 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call PostingSource.__init__.");
29016 const size_t swig_method_index = 10;
29017 const char * const swig_method_name = "init";
29018 PyObject* method = swig_get_method(swig_method_index, swig_method_name);
29019 swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0, __null);
29020 if (result == __null) {
29021 PyObject *error = PyErr_Occurred();
29023 if (error != __null) {
29024 throw Swig::DirectorMethodException();
29029 _swig_thread_block.end();
29031 std::string SwigDirector_PostingSource::get_description() const {
29032 std::string c_result;
29033 SWIG_Python_Thread_Block _swig_thread_block;
29035 if (!swig_get_self()) {
29036 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call PostingSource.__init__.");
29038 const size_t swig_method_index = 11;
29039 const char * const swig_method_name = "__str__";
29040 PyObject* method = swig_get_method(swig_method_index, swig_method_name);
29041 swig::SwigVar_PyObject args = PyTuple_New(0);
29042 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject*) args, __null);
29043 if (result == __null) {
29044 PyObject *error = PyErr_Occurred();
29046 if (error != __null) {
29047 throw Swig::DirectorMethodException();
29051 std::string *swig_optr = 0;
29054 PyObject * tmp = result;
29055 ( ((PyObject*)(tmp))->ob_refcnt++);
29056 swig_ores = SWIG_anystring_as_ptr(&tmp, &swig_optr);
29057 if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp))));
29059 if (!(swig_ores >= 0) || !swig_optr) {
29060 Swig::DirectorTypeMismatchException::raise(SWIG_Python_ErrorType((((swig_optr ? swig_ores : -5) != (-1)) ? (swig_optr ? swig_ores : -5) : -5)), "in output value of type '""std::string""'");
29062 c_result = *swig_optr;
29063 if (((swig_ores >= 0) && (swig_ores & ((1 << 8) << 1)))) delete swig_optr;
29065 _swig_thread_block.end();
29066 return (std::string) c_result;
29068 SwigDirector_MatchDecider::SwigDirector_MatchDecider(PyObject *self): Xapian::MatchDecider(), Swig::Director(self) {
29071 bool SwigDirector_MatchDecider::operator ()(Xapian::Document const &doc) const {
29073 SWIG_Python_Thread_Block _swig_thread_block;
29075 swig::SwigVar_PyObject obj0;
29076 obj0 = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(&doc)), swig_types[15], 0);
29077 if (!swig_get_self()) {
29078 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call MatchDecider.__init__.");
29080 const size_t swig_method_index = 0;
29081 const char * const swig_method_name = "__call__";
29082 PyObject* method = swig_get_method(swig_method_index, swig_method_name);
29083 swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0, __null);
29084 if (result == __null) {
29085 PyObject *error = PyErr_Occurred();
29087 if (error != __null) {
29088 throw Swig::DirectorMethodException();
29093 int swig_res = SWIG_AsVal_bool(result, &swig_val);
29094 if (!(swig_res >= 0)) {
29095 Swig::DirectorTypeMismatchException::raise(SWIG_Python_ErrorType(((swig_res != (-1)) ? swig_res : -5)), "in output value of type '""bool""'");
29097 c_result = static_cast< bool >(swig_val);
29099 _swig_thread_block.end();
29100 return (bool) c_result;
29102 SwigDirector_MatchDecider::~SwigDirector_MatchDecider() {
29104 SwigDirector_ExpandDecider::SwigDirector_ExpandDecider(PyObject *self): Xapian::ExpandDecider(), Swig::Director(self) {
29107 bool SwigDirector_ExpandDecider::operator ()(std::string const &term) const {
29109 SWIG_Python_Thread_Block _swig_thread_block;
29111 swig::SwigVar_PyObject obj0;
29112 obj0 = SWIG_From_std_string(static_cast< std::string >(term));
29113 if (!swig_get_self()) {
29114 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ExpandDecider.__init__.");
29116 const size_t swig_method_index = 0;
29117 const char * const swig_method_name = "__call__";
29118 PyObject* method = swig_get_method(swig_method_index, swig_method_name);
29119 swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0, __null);
29120 if (result == __null) {
29121 PyObject *error = PyErr_Occurred();
29123 if (error != __null) {
29124 throw Swig::DirectorMethodException();
29129 int swig_res = SWIG_AsVal_bool(result, &swig_val);
29130 if (!(swig_res >= 0)) {
29131 Swig::DirectorTypeMismatchException::raise(SWIG_Python_ErrorType(((swig_res != (-1)) ? swig_res : -5)), "in output value of type '""bool""'");
29133 c_result = static_cast< bool >(swig_val);
29135 _swig_thread_block.end();
29136 return (bool) c_result;
29138 SwigDirector_ExpandDecider::~SwigDirector_ExpandDecider() {
29140 SwigDirector_MatchSpy::SwigDirector_MatchSpy(PyObject *self): Xapian::MatchSpy(), Swig::Director(self) {
29143 SwigDirector_MatchSpy::~SwigDirector_MatchSpy() {
29145 void SwigDirector_MatchSpy::operator ()(Xapian::Document const &doc, Xapian::weight wt) {
29146 SWIG_Python_Thread_Block _swig_thread_block;
29148 swig::SwigVar_PyObject obj0;
29149 obj0 = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(&doc)), swig_types[15], 0);
29150 swig::SwigVar_PyObject obj1;
29151 obj1 = PyFloat_FromDouble(static_cast< double >(wt));
29152 if (!swig_get_self()) {
29153 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call MatchSpy.__init__.");
29155 const size_t swig_method_index = 0;
29156 const char * const swig_method_name = "__call__";
29157 PyObject* method = swig_get_method(swig_method_index, swig_method_name);
29158 swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, __null);
29159 if (result == __null) {
29160 PyObject *error = PyErr_Occurred();
29162 if (error != __null) {
29163 throw Swig::DirectorMethodException();
29168 _swig_thread_block.end();
29170 Xapian::MatchSpy *SwigDirector_MatchSpy::clone() const {
29171 return Xapian::MatchSpy::clone();
29173 std::string SwigDirector_MatchSpy::name() const {
29174 std::string c_result;
29175 SWIG_Python_Thread_Block _swig_thread_block;
29177 if (!swig_get_self()) {
29178 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call MatchSpy.__init__.");
29180 const size_t swig_method_index = 1;
29181 const char * const swig_method_name = "name";
29182 PyObject* method = swig_get_method(swig_method_index, swig_method_name);
29183 swig::SwigVar_PyObject args = PyTuple_New(0);
29184 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject*) args, __null);
29185 if (result == __null) {
29186 PyObject *error = PyErr_Occurred();
29188 if (error != __null) {
29189 throw Swig::DirectorMethodException();
29193 std::string *swig_optr = 0;
29196 PyObject * tmp = result;
29197 ( ((PyObject*)(tmp))->ob_refcnt++);
29198 swig_ores = SWIG_anystring_as_ptr(&tmp, &swig_optr);
29199 if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp))));
29201 if (!(swig_ores >= 0) || !swig_optr) {
29202 Swig::DirectorTypeMismatchException::raise(SWIG_Python_ErrorType((((swig_optr ? swig_ores : -5) != (-1)) ? (swig_optr ? swig_ores : -5) : -5)), "in output value of type '""std::string""'");
29204 c_result = *swig_optr;
29205 if (((swig_ores >= 0) && (swig_ores & ((1 << 8) << 1)))) delete swig_optr;
29207 _swig_thread_block.end();
29208 return (std::string) c_result;
29210 std::string SwigDirector_MatchSpy::serialise() const {
29211 return Xapian::MatchSpy::serialise();
29213 Xapian::MatchSpy *SwigDirector_MatchSpy::unserialise(std::string const &s, Xapian::Registry const &context) const {
29214 return Xapian::MatchSpy::unserialise(s,context);
29216 std::string SwigDirector_MatchSpy::serialise_results() const {
29217 return Xapian::MatchSpy::serialise_results();
29219 void SwigDirector_MatchSpy::merge_results(std::string const &s) {
29220 SWIG_Python_Thread_Block _swig_thread_block;
29222 swig::SwigVar_PyObject obj0;
29223 obj0 = SWIG_From_std_string(static_cast< std::string >(s));
29224 if (!swig_get_self()) {
29225 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call MatchSpy.__init__.");
29227 const size_t swig_method_index = 2;
29228 const char * const swig_method_name = "merge_results";
29229 PyObject* method = swig_get_method(swig_method_index, swig_method_name);
29230 swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0, __null);
29231 if (result == __null) {
29232 PyObject *error = PyErr_Occurred();
29234 if (error != __null) {
29235 throw Swig::DirectorMethodException();
29240 _swig_thread_block.end();
29242 std::string SwigDirector_MatchSpy::get_description() const {
29243 std::string c_result;
29244 SWIG_Python_Thread_Block _swig_thread_block;
29246 if (!swig_get_self()) {
29247 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call MatchSpy.__init__.");
29249 const size_t swig_method_index = 3;
29250 const char * const swig_method_name = "__str__";
29251 PyObject* method = swig_get_method(swig_method_index, swig_method_name);
29252 swig::SwigVar_PyObject args = PyTuple_New(0);
29253 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject*) args, __null);
29254 if (result == __null) {
29255 PyObject *error = PyErr_Occurred();
29257 if (error != __null) {
29258 throw Swig::DirectorMethodException();
29262 std::string *swig_optr = 0;
29265 PyObject * tmp = result;
29266 ( ((PyObject*)(tmp))->ob_refcnt++);
29267 swig_ores = SWIG_anystring_as_ptr(&tmp, &swig_optr);
29268 if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp))));
29270 if (!(swig_ores >= 0) || !swig_optr) {
29271 Swig::DirectorTypeMismatchException::raise(SWIG_Python_ErrorType((((swig_optr ? swig_ores : -5) != (-1)) ? (swig_optr ? swig_ores : -5) : -5)), "in output value of type '""std::string""'");
29273 c_result = *swig_optr;
29274 if (((swig_ores >= 0) && (swig_ores & ((1 << 8) << 1)))) delete swig_optr;
29276 _swig_thread_block.end();
29277 return (std::string) c_result;
29279 SwigDirector_Stopper::SwigDirector_Stopper(PyObject *self): Xapian::Stopper(), Swig::Director(self) {
29282 bool SwigDirector_Stopper::operator ()(std::string const &term) const {
29284 SWIG_Python_Thread_Block _swig_thread_block;
29286 swig::SwigVar_PyObject obj0;
29287 obj0 = SWIG_From_std_string(static_cast< std::string >(term));
29288 if (!swig_get_self()) {
29289 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call Stopper.__init__.");
29291 const size_t swig_method_index = 0;
29292 const char * const swig_method_name = "__call__";
29293 PyObject* method = swig_get_method(swig_method_index, swig_method_name);
29294 swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0, __null);
29295 if (result == __null) {
29296 PyObject *error = PyErr_Occurred();
29298 if (error != __null) {
29299 throw Swig::DirectorMethodException();
29304 int swig_res = SWIG_AsVal_bool(result, &swig_val);
29305 if (!(swig_res >= 0)) {
29306 Swig::DirectorTypeMismatchException::raise(SWIG_Python_ErrorType(((swig_res != (-1)) ? swig_res : -5)), "in output value of type '""bool""'");
29308 c_result = static_cast< bool >(swig_val);
29310 _swig_thread_block.end();
29311 return (bool) c_result;
29313 SwigDirector_Stopper::~SwigDirector_Stopper() {
29315 std::string SwigDirector_Stopper::get_description() const {
29316 std::string c_result;
29317 SWIG_Python_Thread_Block _swig_thread_block;
29319 if (!swig_get_self()) {
29320 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call Stopper.__init__.");
29322 const size_t swig_method_index = 1;
29323 const char * const swig_method_name = "__str__";
29324 PyObject* method = swig_get_method(swig_method_index, swig_method_name);
29325 swig::SwigVar_PyObject args = PyTuple_New(0);
29326 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject*) args, __null);
29327 if (result == __null) {
29328 PyObject *error = PyErr_Occurred();
29330 if (error != __null) {
29331 throw Swig::DirectorMethodException();
29335 std::string *swig_optr = 0;
29338 PyObject * tmp = result;
29339 ( ((PyObject*)(tmp))->ob_refcnt++);
29340 swig_ores = SWIG_anystring_as_ptr(&tmp, &swig_optr);
29341 if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp))));
29343 if (!(swig_ores >= 0) || !swig_optr) {
29344 Swig::DirectorTypeMismatchException::raise(SWIG_Python_ErrorType((((swig_optr ? swig_ores : -5) != (-1)) ? (swig_optr ? swig_ores : -5) : -5)), "in output value of type '""std::string""'");
29346 c_result = *swig_optr;
29347 if (((swig_ores >= 0) && (swig_ores & ((1 << 8) << 1)))) delete swig_optr;
29349 _swig_thread_block.end();
29350 return (std::string) c_result;
29352 SwigDirector_ValueRangeProcessor::SwigDirector_ValueRangeProcessor(PyObject *self): Xapian::ValueRangeProcessor(), Swig::Director(self) {
29355 SwigDirector_ValueRangeProcessor::~SwigDirector_ValueRangeProcessor() {
29357 Xapian::valueno SwigDirector_ValueRangeProcessor::operator ()(std::string &begin, std::string &end) {
29358 Xapian::valueno c_result;
29359 SWIG_Python_Thread_Block _swig_thread_block;
29361 swig::SwigVar_PyObject obj0;
29362 obj0 = SWIG_From_std_string(static_cast< std::string >(begin));
29363 swig::SwigVar_PyObject obj1;
29364 obj1 = SWIG_From_std_string(static_cast< std::string >(end));
29365 if (!swig_get_self()) {
29366 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValueRangeProcessor.__init__.");
29368 const size_t swig_method_index = 0;
29369 const char * const swig_method_name = "__call__";
29370 PyObject* method = swig_get_method(swig_method_index, swig_method_name);
29371 swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, __null);
29372 if (result == __null) {
29373 PyObject *error = PyErr_Occurred();
29375 if (error != __null) {
29376 throw Swig::DirectorMethodException();
29380 if (!((((((PyObject*)(result))->ob_type))->tp_flags & ((1L<<26))) != 0)) {
29381 Swig::DirectorTypeMismatchException::raise(SWIG_Python_ErrorType(((-5 != (-1)) ? -5 : -5)), "in output value of type '""(Xapian::valueno, std::string, std::string)""'");
29383 if (PyTuple_Size(result) != 3) {
29384 Swig::DirectorTypeMismatchException::raise(SWIG_Python_ErrorType(((-4 != (-1)) ? -4 : -5)), "in output value of type '""(Xapian::valueno, std::string, std::string)""'");
29386 unsigned int swig_val;
29387 int swig_res = SWIG_AsVal_unsigned_SS_int((((PyTupleObject *)((PyObject *)result))->ob_item[0]), &swig_val);
29388 if (!(swig_res >= 0)) {
29389 Swig::DirectorTypeMismatchException::raise(SWIG_Python_ErrorType(((swig_res != (-1)) ? swig_res : -5)), "in output value of type '""(Xapian::valueno, std::string, std::string)""'");
29391 c_result = static_cast< Xapian::valueno >(swig_val);
29392 std::string *ptr = (std::string *)0;
29393 swig_res = SWIG_AsPtr_std_string((((PyTupleObject *)((PyObject *)result))->ob_item[1]), &ptr);
29394 if (!(swig_res >= 0) || !ptr) {
29396 ptr = (std::string *)0;
29397 Swig::DirectorTypeMismatchException::raise(SWIG_Python_ErrorType((((ptr ? swig_res : -5) != (-1)) ? (ptr ? swig_res : -5) : -5)), "in output value of type '""(Xapian::valueno, std::string, std::string)""'");
29401 ptr = (std::string *)0;
29402 swig_res = SWIG_AsPtr_std_string((((PyTupleObject *)((PyObject *)result))->ob_item[2]), &ptr);
29403 if (!(swig_res >= 0) || !ptr) {
29405 ptr = (std::string *)0;
29406 Swig::DirectorTypeMismatchException::raise(SWIG_Python_ErrorType((((ptr ? swig_res : -5) != (-1)) ? (ptr ? swig_res : -5) : -5)), "in output value of type '""(Xapian::valueno, std::string, std::string)""'");
29410 ptr = (std::string *)0;
29412 _swig_thread_block.end();
29413 return (Xapian::valueno) c_result;
29415 SwigDirector_StemImplementation::SwigDirector_StemImplementation(PyObject *self): Xapian::StemImplementation(), Swig::Director(self) {
29418 SwigDirector_StemImplementation::~SwigDirector_StemImplementation() {
29420 std::string SwigDirector_StemImplementation::operator ()(std::string const &word) {
29421 std::string c_result;
29422 SWIG_Python_Thread_Block _swig_thread_block;
29424 swig::SwigVar_PyObject obj0;
29425 obj0 = SWIG_From_std_string(static_cast< std::string >(word));
29426 if (!swig_get_self()) {
29427 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call StemImplementation.__init__.");
29429 const size_t swig_method_index = 0;
29430 const char * const swig_method_name = "__call__";
29431 PyObject* method = swig_get_method(swig_method_index, swig_method_name);
29432 swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0, __null);
29433 if (result == __null) {
29434 PyObject *error = PyErr_Occurred();
29436 if (error != __null) {
29437 throw Swig::DirectorMethodException();
29441 std::string *swig_optr = 0;
29444 PyObject * tmp = result;
29445 ( ((PyObject*)(tmp))->ob_refcnt++);
29446 swig_ores = SWIG_anystring_as_ptr(&tmp, &swig_optr);
29447 if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp))));
29449 if (!(swig_ores >= 0) || !swig_optr) {
29450 Swig::DirectorTypeMismatchException::raise(SWIG_Python_ErrorType((((swig_optr ? swig_ores : -5) != (-1)) ? (swig_optr ? swig_ores : -5) : -5)), "in output value of type '""std::string""'");
29452 c_result = *swig_optr;
29453 if (((swig_ores >= 0) && (swig_ores & ((1 << 8) << 1)))) delete swig_optr;
29455 _swig_thread_block.end();
29456 return (std::string) c_result;
29458 std::string SwigDirector_StemImplementation::get_description() const {
29459 std::string c_result;
29460 SWIG_Python_Thread_Block _swig_thread_block;
29462 if (!swig_get_self()) {
29463 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call StemImplementation.__init__.");
29465 const size_t swig_method_index = 1;
29466 const char * const swig_method_name = "__str__";
29467 PyObject* method = swig_get_method(swig_method_index, swig_method_name);
29468 swig::SwigVar_PyObject args = PyTuple_New(0);
29469 swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject*) args, __null);
29470 if (result == __null) {
29471 PyObject *error = PyErr_Occurred();
29473 if (error != __null) {
29474 throw Swig::DirectorMethodException();
29478 std::string *swig_optr = 0;
29481 PyObject * tmp = result;
29482 ( ((PyObject*)(tmp))->ob_refcnt++);
29483 swig_ores = SWIG_anystring_as_ptr(&tmp, &swig_optr);
29484 if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp))));
29486 if (!(swig_ores >= 0) || !swig_optr) {
29487 Swig::DirectorTypeMismatchException::raise(SWIG_Python_ErrorType((((swig_optr ? swig_ores : -5) != (-1)) ? (swig_optr ? swig_ores : -5) : -5)), "in output value of type '""std::string""'");
29489 c_result = *swig_optr;
29490 if (((swig_ores >= 0) && (swig_ores & ((1 << 8) << 1)))) delete swig_optr;
29492 _swig_thread_block.end();
29493 return (std::string) c_result;
29495 SwigDirector_KeyMaker::SwigDirector_KeyMaker(PyObject *self): Xapian::KeyMaker(), Swig::Director(self) {
29498 std::string SwigDirector_KeyMaker::operator ()(Xapian::Document const &doc) const {
29499 std::string c_result;
29500 SWIG_Python_Thread_Block _swig_thread_block;
29502 swig::SwigVar_PyObject obj0;
29503 obj0 = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(&doc)), swig_types[15], 0);
29504 if (!swig_get_self()) {
29505 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call KeyMaker.__init__.");
29507 const size_t swig_method_index = 0;
29508 const char * const swig_method_name = "__call__";
29509 PyObject* method = swig_get_method(swig_method_index, swig_method_name);
29510 swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0, __null);
29511 if (result == __null) {
29512 PyObject *error = PyErr_Occurred();
29514 if (error != __null) {
29515 throw Swig::DirectorMethodException();
29519 std::string *swig_optr = 0;
29522 PyObject * tmp = result;
29523 ( ((PyObject*)(tmp))->ob_refcnt++);
29524 swig_ores = SWIG_anystring_as_ptr(&tmp, &swig_optr);
29525 if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp))));
29527 if (!(swig_ores >= 0) || !swig_optr) {
29528 Swig::DirectorTypeMismatchException::raise(SWIG_Python_ErrorType((((swig_optr ? swig_ores : -5) != (-1)) ? (swig_optr ? swig_ores : -5) : -5)), "in output value of type '""std::string""'");
29530 c_result = *swig_optr;
29531 if (((swig_ores >= 0) && (swig_ores & ((1 << 8) << 1)))) delete swig_optr;
29533 _swig_thread_block.end();
29534 return (std::string) c_result;
29536 SwigDirector_KeyMaker::~SwigDirector_KeyMaker() {
29538 SwigDirector_Compactor::SwigDirector_Compactor(PyObject *self): Xapian::Compactor(), Swig::Director(self) {
29541 SwigDirector_Compactor::~SwigDirector_Compactor() {
29543 void SwigDirector_Compactor::set_status(std::string const &table, std::string const &status) {
29544 SWIG_Python_Thread_Block _swig_thread_block;
29546 swig::SwigVar_PyObject obj0;
29547 obj0 = SWIG_From_std_string(static_cast< std::string >(table));
29548 swig::SwigVar_PyObject obj1;
29549 obj1 = SWIG_From_std_string(static_cast< std::string >(status));
29550 if (!swig_get_self()) {
29551 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call Compactor.__init__.");
29553 const size_t swig_method_index = 0;
29554 const char * const swig_method_name = "set_status";
29555 PyObject* method = swig_get_method(swig_method_index, swig_method_name);
29556 swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, __null);
29557 if (result == __null) {
29558 PyObject *error = PyErr_Occurred();
29560 if (error != __null) {
29561 throw Swig::DirectorMethodException();
29566 _swig_thread_block.end();
29568 std::string SwigDirector_Compactor::resolve_duplicate_metadata(std::string const &key, size_t num_tags, std::string const tags[]) {
29569 std::string c_result;
29570 SWIG_Python_Thread_Block _swig_thread_block;
29572 swig::SwigVar_PyObject obj0;
29573 obj0 = SWIG_From_std_string(static_cast< std::string >(key));
29574 swig::SwigVar_PyObject obj1;
29576 PyObject * result = PyList_New(num_tags);
29580 for (size_t i = 0; i != num_tags; ++i) {
29581 PyObject * str = PyString_FromStringAndSize(tags[i].data(), tags[i].size());
29583 if ( --((PyObject*)(result))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(result)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(result))));
29586 (((PyListObject *)(result))->ob_item[i] = (str));
29590 if (!swig_get_self()) {
29591 Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call Compactor.__init__.");
29593 const size_t swig_method_index = 1;
29594 const char * const swig_method_name = "resolve_duplicate_metadata";
29595 PyObject* method = swig_get_method(swig_method_index, swig_method_name);
29596 swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, __null);
29597 if (result == __null) {
29598 PyObject *error = PyErr_Occurred();
29600 if (error != __null) {
29601 throw Swig::DirectorMethodException();
29605 std::string *swig_optr = 0;
29608 PyObject * tmp = result;
29609 ( ((PyObject*)(tmp))->ob_refcnt++);
29610 swig_ores = SWIG_anystring_as_ptr(&tmp, &swig_optr);
29611 if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp))));
29613 if (!(swig_ores >= 0) || !swig_optr) {
29614 Swig::DirectorTypeMismatchException::raise(SWIG_Python_ErrorType((((swig_optr ? swig_ores : -5) != (-1)) ? (swig_optr ? swig_ores : -5) : -5)), "in output value of type '""std::string""'");
29616 c_result = *swig_optr;
29617 if (((swig_ores >= 0) && (swig_ores & ((1 << 8) << 1)))) delete swig_optr;
29619 _swig_thread_block.end();
29620 return (std::string) c_result;
29623 static __attribute__ ((__unused__)) PyObject *_wrap_delete_SwigPyIterator(PyObject *, PyObject *args) {
29624 PyObject *resultobj = 0;
29625 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
29628 PyObject *swig_obj[1] ;
29629 if (!args) goto fail;
29630 swig_obj[0] = args;
29631 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[79], 0x1 | 0, 0);
29632 if (!(res1 >= 0)) {
29633 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_SwigPyIterator" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while(0);
29635 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
29637 SWIG_Python_Thread_Allow _swig_thread_allow;
29639 _swig_thread_allow.end();
29641 resultobj = SWIG_Py_Void();
29646 static __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_value(PyObject *, PyObject *args) {
29647 PyObject *resultobj = 0;
29648 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
29651 PyObject *swig_obj[1] ;
29652 PyObject *result = 0 ;
29653 if (!args) goto fail;
29654 swig_obj[0] = args;
29655 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[79], 0 | 0, 0);
29656 if (!(res1 >= 0)) {
29657 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "SwigPyIterator_value" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); goto fail; } while(0);
29659 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
29661 SWIG_Python_Thread_Allow _swig_thread_allow;
29663 result = (PyObject *)((swig::SwigPyIterator const *)arg1)->value();
29665 catch(swig::stop_iteration &_e) {
29668 SWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
29672 _swig_thread_allow.end();
29674 resultobj = result;
29679 static __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
29680 PyObject *resultobj = 0;
29681 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
29687 swig::SwigPyIterator *result = 0 ;
29688 if ((nobjs < 2) || (nobjs > 2)) goto fail;
29689 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[79], 0 | 0, 0);
29690 if (!(res1 >= 0)) {
29691 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "SwigPyIterator_incr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while(0);
29693 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
29694 ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
29695 if (!(ecode2 >= 0)) {
29696 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "SwigPyIterator_incr" "', argument " "2"" of type '" "size_t""'"); goto fail; } while(0);
29698 arg2 = static_cast< size_t >(val2);
29700 SWIG_Python_Thread_Allow _swig_thread_allow;
29702 result = (swig::SwigPyIterator *)(arg1)->incr(arg2);
29704 catch(swig::stop_iteration &_e) {
29707 SWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
29711 _swig_thread_allow.end();
29713 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[79], 0 | 0);
29718 static __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
29719 PyObject *resultobj = 0;
29720 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
29723 swig::SwigPyIterator *result = 0 ;
29724 if ((nobjs < 1) || (nobjs > 1)) goto fail;
29725 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[79], 0 | 0, 0);
29726 if (!(res1 >= 0)) {
29727 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "SwigPyIterator_incr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while(0);
29729 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
29731 SWIG_Python_Thread_Allow _swig_thread_allow;
29733 result = (swig::SwigPyIterator *)(arg1)->incr();
29735 catch(swig::stop_iteration &_e) {
29738 SWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
29742 _swig_thread_allow.end();
29744 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[79], 0 | 0);
29749 static __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr(PyObject *self, PyObject *args) {
29752 if (!(argc = SWIG_Python_UnpackTuple(args,"SwigPyIterator_incr",0,2,argv))) goto fail;
29755 return _wrap_SwigPyIterator_incr__SWIG_1(self, argc, argv);
29758 return _wrap_SwigPyIterator_incr__SWIG_0(self, argc, argv);
29761 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'SwigPyIterator_incr'.\n"
29762 " Possible C/C++ prototypes are:\n"
29763 " incr(swig::SwigPyIterator *,size_t)\n"
29764 " incr(swig::SwigPyIterator *)\n");
29767 static __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
29768 PyObject *resultobj = 0;
29769 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
29775 swig::SwigPyIterator *result = 0 ;
29776 if ((nobjs < 2) || (nobjs > 2)) goto fail;
29777 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[79], 0 | 0, 0);
29778 if (!(res1 >= 0)) {
29779 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "SwigPyIterator_decr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while(0);
29781 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
29782 ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
29783 if (!(ecode2 >= 0)) {
29784 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "SwigPyIterator_decr" "', argument " "2"" of type '" "size_t""'"); goto fail; } while(0);
29786 arg2 = static_cast< size_t >(val2);
29788 SWIG_Python_Thread_Allow _swig_thread_allow;
29790 result = (swig::SwigPyIterator *)(arg1)->decr(arg2);
29792 catch(swig::stop_iteration &_e) {
29795 SWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
29799 _swig_thread_allow.end();
29801 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[79], 0 | 0);
29806 static __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
29807 PyObject *resultobj = 0;
29808 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
29811 swig::SwigPyIterator *result = 0 ;
29812 if ((nobjs < 1) || (nobjs > 1)) goto fail;
29813 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[79], 0 | 0, 0);
29814 if (!(res1 >= 0)) {
29815 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "SwigPyIterator_decr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while(0);
29817 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
29819 SWIG_Python_Thread_Allow _swig_thread_allow;
29821 result = (swig::SwigPyIterator *)(arg1)->decr();
29823 catch(swig::stop_iteration &_e) {
29826 SWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
29830 _swig_thread_allow.end();
29832 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[79], 0 | 0);
29837 static __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr(PyObject *self, PyObject *args) {
29840 if (!(argc = SWIG_Python_UnpackTuple(args,"SwigPyIterator_decr",0,2,argv))) goto fail;
29843 return _wrap_SwigPyIterator_decr__SWIG_1(self, argc, argv);
29846 return _wrap_SwigPyIterator_decr__SWIG_0(self, argc, argv);
29849 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'SwigPyIterator_decr'.\n"
29850 " Possible C/C++ prototypes are:\n"
29851 " decr(swig::SwigPyIterator *,size_t)\n"
29852 " decr(swig::SwigPyIterator *)\n");
29855 static __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_distance(PyObject *, PyObject *args) {
29856 PyObject *resultobj = 0;
29857 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
29858 swig::SwigPyIterator *arg2 = 0 ;
29863 PyObject *swig_obj[2] ;
29865 if (!SWIG_Python_UnpackTuple(args,"SwigPyIterator_distance",2,2,swig_obj)) goto fail;
29866 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[79], 0 | 0, 0);
29867 if (!(res1 >= 0)) {
29868 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "SwigPyIterator_distance" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); goto fail; } while(0);
29870 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
29871 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[79], 0 | 0, 0);
29872 if (!(res2 >= 0)) {
29873 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "SwigPyIterator_distance" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); goto fail; } while(0);
29876 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "SwigPyIterator_distance" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); goto fail; } while(0);
29878 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
29880 SWIG_Python_Thread_Allow _swig_thread_allow;
29882 result = ((swig::SwigPyIterator const *)arg1)->distance((swig::SwigPyIterator const &)*arg2);
29884 catch(std::invalid_argument &_e) {
29885 SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(swig_types[76]), SWIG_Python_NewPointerObj((new std::invalid_argument(static_cast< const std::invalid_argument& >(_e))), swig_types[76], 0x1)); goto fail;
29887 _swig_thread_allow.end();
29889 resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result));
29894 static __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_equal(PyObject *, PyObject *args) {
29895 PyObject *resultobj = 0;
29896 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
29897 swig::SwigPyIterator *arg2 = 0 ;
29902 PyObject *swig_obj[2] ;
29904 if (!SWIG_Python_UnpackTuple(args,"SwigPyIterator_equal",2,2,swig_obj)) goto fail;
29905 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[79], 0 | 0, 0);
29906 if (!(res1 >= 0)) {
29907 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "SwigPyIterator_equal" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); goto fail; } while(0);
29909 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
29910 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[79], 0 | 0, 0);
29911 if (!(res2 >= 0)) {
29912 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "SwigPyIterator_equal" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); goto fail; } while(0);
29915 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "SwigPyIterator_equal" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); goto fail; } while(0);
29917 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
29919 SWIG_Python_Thread_Allow _swig_thread_allow;
29921 result = (bool)((swig::SwigPyIterator const *)arg1)->equal((swig::SwigPyIterator const &)*arg2);
29923 catch(std::invalid_argument &_e) {
29924 SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(swig_types[76]), SWIG_Python_NewPointerObj((new std::invalid_argument(static_cast< const std::invalid_argument& >(_e))), swig_types[76], 0x1)); goto fail;
29926 _swig_thread_allow.end();
29928 resultobj = SWIG_From_bool(static_cast< bool >(result));
29933 static __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_copy(PyObject *, PyObject *args) {
29934 PyObject *resultobj = 0;
29935 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
29938 PyObject *swig_obj[1] ;
29939 swig::SwigPyIterator *result = 0 ;
29940 if (!args) goto fail;
29941 swig_obj[0] = args;
29942 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[79], 0 | 0, 0);
29943 if (!(res1 >= 0)) {
29944 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "SwigPyIterator_copy" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); goto fail; } while(0);
29946 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
29948 SWIG_Python_Thread_Allow _swig_thread_allow;
29949 result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->copy();
29950 _swig_thread_allow.end();
29952 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[79], 0x1 | 0);
29957 static __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_next(PyObject *, PyObject *args) {
29958 PyObject *resultobj = 0;
29959 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
29962 PyObject *swig_obj[1] ;
29963 PyObject *result = 0 ;
29964 if (!args) goto fail;
29965 swig_obj[0] = args;
29966 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[79], 0 | 0, 0);
29967 if (!(res1 >= 0)) {
29968 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "SwigPyIterator_next" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while(0);
29970 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
29972 SWIG_Python_Thread_Allow _swig_thread_allow;
29974 result = (PyObject *)(arg1)->next();
29976 catch(swig::stop_iteration &_e) {
29979 SWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
29983 _swig_thread_allow.end();
29985 resultobj = result;
29990 static __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___next__(PyObject *, PyObject *args) {
29991 PyObject *resultobj = 0;
29992 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
29995 PyObject *swig_obj[1] ;
29996 PyObject *result = 0 ;
29997 if (!args) goto fail;
29998 swig_obj[0] = args;
29999 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[79], 0 | 0, 0);
30000 if (!(res1 >= 0)) {
30001 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "SwigPyIterator___next__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while(0);
30003 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
30005 SWIG_Python_Thread_Allow _swig_thread_allow;
30007 result = (PyObject *)(arg1)->__next__();
30009 catch(swig::stop_iteration &_e) {
30012 SWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
30016 _swig_thread_allow.end();
30018 resultobj = result;
30023 static __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_previous(PyObject *, PyObject *args) {
30024 PyObject *resultobj = 0;
30025 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
30028 PyObject *swig_obj[1] ;
30029 PyObject *result = 0 ;
30030 if (!args) goto fail;
30031 swig_obj[0] = args;
30032 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[79], 0 | 0, 0);
30033 if (!(res1 >= 0)) {
30034 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "SwigPyIterator_previous" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while(0);
30036 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
30038 SWIG_Python_Thread_Allow _swig_thread_allow;
30040 result = (PyObject *)(arg1)->previous();
30042 catch(swig::stop_iteration &_e) {
30045 SWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
30049 _swig_thread_allow.end();
30051 resultobj = result;
30056 static __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_advance(PyObject *, PyObject *args) {
30057 PyObject *resultobj = 0;
30058 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
30064 PyObject *swig_obj[2] ;
30065 swig::SwigPyIterator *result = 0 ;
30066 if (!SWIG_Python_UnpackTuple(args,"SwigPyIterator_advance",2,2,swig_obj)) goto fail;
30067 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[79], 0 | 0, 0);
30068 if (!(res1 >= 0)) {
30069 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "SwigPyIterator_advance" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while(0);
30071 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
30072 ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
30073 if (!(ecode2 >= 0)) {
30074 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "SwigPyIterator_advance" "', argument " "2"" of type '" "ptrdiff_t""'"); goto fail; } while(0);
30076 arg2 = static_cast< ptrdiff_t >(val2);
30078 SWIG_Python_Thread_Allow _swig_thread_allow;
30080 result = (swig::SwigPyIterator *)(arg1)->advance(arg2);
30082 catch(swig::stop_iteration &_e) {
30085 SWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
30089 _swig_thread_allow.end();
30091 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[79], 0 | 0);
30096 static __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___eq__(PyObject *, PyObject *args) {
30097 PyObject *resultobj = 0;
30098 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
30099 swig::SwigPyIterator *arg2 = 0 ;
30104 PyObject *swig_obj[2] ;
30106 if (!SWIG_Python_UnpackTuple(args,"SwigPyIterator___eq__",2,2,swig_obj)) goto fail;
30107 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[79], 0 | 0, 0);
30108 if (!(res1 >= 0)) {
30109 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "SwigPyIterator___eq__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); goto fail; } while(0);
30111 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
30112 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[79], 0 | 0, 0);
30113 if (!(res2 >= 0)) {
30114 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "SwigPyIterator___eq__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); goto fail; } while(0);
30117 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "SwigPyIterator___eq__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); goto fail; } while(0);
30119 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
30121 SWIG_Python_Thread_Allow _swig_thread_allow;
30122 result = (bool)((swig::SwigPyIterator const *)arg1)->operator ==((swig::SwigPyIterator const &)*arg2);
30123 _swig_thread_allow.end();
30125 resultobj = SWIG_From_bool(static_cast< bool >(result));
30130 static __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___ne__(PyObject *, PyObject *args) {
30131 PyObject *resultobj = 0;
30132 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
30133 swig::SwigPyIterator *arg2 = 0 ;
30138 PyObject *swig_obj[2] ;
30140 if (!SWIG_Python_UnpackTuple(args,"SwigPyIterator___ne__",2,2,swig_obj)) goto fail;
30141 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[79], 0 | 0, 0);
30142 if (!(res1 >= 0)) {
30143 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "SwigPyIterator___ne__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); goto fail; } while(0);
30145 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
30146 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[79], 0 | 0, 0);
30147 if (!(res2 >= 0)) {
30148 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "SwigPyIterator___ne__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); goto fail; } while(0);
30151 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "SwigPyIterator___ne__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); goto fail; } while(0);
30153 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
30155 SWIG_Python_Thread_Allow _swig_thread_allow;
30156 result = (bool)((swig::SwigPyIterator const *)arg1)->operator !=((swig::SwigPyIterator const &)*arg2);
30157 _swig_thread_allow.end();
30159 resultobj = SWIG_From_bool(static_cast< bool >(result));
30164 static __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___iadd__(PyObject *, PyObject *args) {
30165 PyObject *resultobj = 0;
30166 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
30172 PyObject *swig_obj[2] ;
30173 swig::SwigPyIterator *result = 0 ;
30174 if (!SWIG_Python_UnpackTuple(args,"SwigPyIterator___iadd__",2,2,swig_obj)) goto fail;
30175 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[79], 0x1 | 0, 0);
30176 if (!(res1 >= 0)) {
30177 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "SwigPyIterator___iadd__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while(0);
30179 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
30180 ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
30181 if (!(ecode2 >= 0)) {
30182 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "SwigPyIterator___iadd__" "', argument " "2"" of type '" "ptrdiff_t""'"); goto fail; } while(0);
30184 arg2 = static_cast< ptrdiff_t >(val2);
30186 SWIG_Python_Thread_Allow _swig_thread_allow;
30188 result = (swig::SwigPyIterator *) &(arg1)->operator +=(arg2);
30190 catch(swig::stop_iteration &_e) {
30193 SWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
30197 _swig_thread_allow.end();
30199 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[79], 0x1 | 0);
30204 static __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___isub__(PyObject *, PyObject *args) {
30205 PyObject *resultobj = 0;
30206 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
30212 PyObject *swig_obj[2] ;
30213 swig::SwigPyIterator *result = 0 ;
30214 if (!SWIG_Python_UnpackTuple(args,"SwigPyIterator___isub__",2,2,swig_obj)) goto fail;
30215 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[79], 0x1 | 0, 0);
30216 if (!(res1 >= 0)) {
30217 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "SwigPyIterator___isub__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while(0);
30219 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
30220 ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
30221 if (!(ecode2 >= 0)) {
30222 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "SwigPyIterator___isub__" "', argument " "2"" of type '" "ptrdiff_t""'"); goto fail; } while(0);
30224 arg2 = static_cast< ptrdiff_t >(val2);
30226 SWIG_Python_Thread_Allow _swig_thread_allow;
30228 result = (swig::SwigPyIterator *) &(arg1)->operator -=(arg2);
30230 catch(swig::stop_iteration &_e) {
30233 SWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
30237 _swig_thread_allow.end();
30239 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[79], 0x1 | 0);
30244 static __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___add__(PyObject *, PyObject *args) {
30245 PyObject *resultobj = 0;
30246 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
30252 PyObject *swig_obj[2] ;
30253 swig::SwigPyIterator *result = 0 ;
30254 if (!SWIG_Python_UnpackTuple(args,"SwigPyIterator___add__",2,2,swig_obj)) goto fail;
30255 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[79], 0 | 0, 0);
30256 if (!(res1 >= 0)) {
30257 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "SwigPyIterator___add__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); goto fail; } while(0);
30259 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
30260 ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
30261 if (!(ecode2 >= 0)) {
30262 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "SwigPyIterator___add__" "', argument " "2"" of type '" "ptrdiff_t""'"); goto fail; } while(0);
30264 arg2 = static_cast< ptrdiff_t >(val2);
30266 SWIG_Python_Thread_Allow _swig_thread_allow;
30268 result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator +(arg2);
30270 catch(swig::stop_iteration &_e) {
30273 SWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
30277 _swig_thread_allow.end();
30279 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[79], 0x1 | 0);
30284 static __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub____SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
30285 PyObject *resultobj = 0;
30286 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
30292 swig::SwigPyIterator *result = 0 ;
30293 if ((nobjs < 2) || (nobjs > 2)) goto fail;
30294 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[79], 0 | 0, 0);
30295 if (!(res1 >= 0)) {
30296 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "SwigPyIterator___sub__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); goto fail; } while(0);
30298 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
30299 ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
30300 if (!(ecode2 >= 0)) {
30301 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "ptrdiff_t""'"); goto fail; } while(0);
30303 arg2 = static_cast< ptrdiff_t >(val2);
30305 SWIG_Python_Thread_Allow _swig_thread_allow;
30307 result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator -(arg2);
30309 catch(swig::stop_iteration &_e) {
30312 SWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
30316 _swig_thread_allow.end();
30318 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[79], 0x1 | 0);
30323 static __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub____SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
30324 PyObject *resultobj = 0;
30325 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
30326 swig::SwigPyIterator *arg2 = 0 ;
30332 if ((nobjs < 2) || (nobjs > 2)) goto fail;
30333 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[79], 0 | 0, 0);
30334 if (!(res1 >= 0)) {
30335 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "SwigPyIterator___sub__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); goto fail; } while(0);
30337 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
30338 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[79], 0 | 0, 0);
30339 if (!(res2 >= 0)) {
30340 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); goto fail; } while(0);
30343 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); goto fail; } while(0);
30345 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
30347 SWIG_Python_Thread_Allow _swig_thread_allow;
30348 result = ((swig::SwigPyIterator const *)arg1)->operator -((swig::SwigPyIterator const &)*arg2);
30349 _swig_thread_allow.end();
30351 resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result));
30356 static __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub__(PyObject *self, PyObject *args) {
30359 if (!(argc = SWIG_Python_UnpackTuple(args,"SwigPyIterator___sub__",0,2,argv))) goto fail;
30364 int res = SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[79], 0, 0);
30365 _v = ((res >= 0) ? 1 : 0);
30367 if (!_v) goto check_1;
30368 return _wrap_SwigPyIterator___sub____SWIG_1(self, argc, argv);
30372 return _wrap_SwigPyIterator___sub____SWIG_0(self, argc, argv);
30375 ( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt++);
30376 return (&_Py_NotImplementedStruct);
30378 static __attribute__ ((__unused__)) PyObject *SwigPyIterator_swigregister(PyObject *, PyObject *args) {
30380 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
30381 SWIG_TypeNewClientData(swig_types[79], SwigPyClientData_New(obj));
30382 return SWIG_Py_Void();
30384 static __attribute__ ((__unused__)) PyObject *_wrap_Error_get_type(PyObject *, PyObject *args) {
30385 PyObject *resultobj = 0;
30386 Xapian::Error *arg1 = (Xapian::Error *) 0 ;
30389 PyObject *swig_obj[1] ;
30391 if (!args) goto fail;
30392 swig_obj[0] = args;
30393 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[19], 0 | 0, 0);
30394 if (!(res1 >= 0)) {
30395 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Error_get_type" "', argument " "1"" of type '" "Xapian::Error const *""'"); goto fail; } while(0);
30397 arg1 = reinterpret_cast< Xapian::Error * >(argp1);
30399 SWIG_Python_Thread_Allow _swig_thread_allow;
30400 result = (char *)((Xapian::Error const *)arg1)->get_type();
30401 _swig_thread_allow.end();
30403 resultobj = SWIG_FromCharPtr((const char *)result);
30408 static __attribute__ ((__unused__)) PyObject *_wrap_Error_get_msg(PyObject *, PyObject *args) {
30409 PyObject *resultobj = 0;
30410 Xapian::Error *arg1 = (Xapian::Error *) 0 ;
30413 PyObject *swig_obj[1] ;
30414 std::string *result = 0 ;
30415 if (!args) goto fail;
30416 swig_obj[0] = args;
30417 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[19], 0 | 0, 0);
30418 if (!(res1 >= 0)) {
30419 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Error_get_msg" "', argument " "1"" of type '" "Xapian::Error const *""'"); goto fail; } while(0);
30421 arg1 = reinterpret_cast< Xapian::Error * >(argp1);
30423 SWIG_Python_Thread_Allow _swig_thread_allow;
30424 result = (std::string *) &((Xapian::Error const *)arg1)->get_msg();
30425 _swig_thread_allow.end();
30427 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
30432 static __attribute__ ((__unused__)) PyObject *_wrap_Error_get_context(PyObject *, PyObject *args) {
30433 PyObject *resultobj = 0;
30434 Xapian::Error *arg1 = (Xapian::Error *) 0 ;
30437 PyObject *swig_obj[1] ;
30438 std::string *result = 0 ;
30439 if (!args) goto fail;
30440 swig_obj[0] = args;
30441 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[19], 0 | 0, 0);
30442 if (!(res1 >= 0)) {
30443 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Error_get_context" "', argument " "1"" of type '" "Xapian::Error const *""'"); goto fail; } while(0);
30445 arg1 = reinterpret_cast< Xapian::Error * >(argp1);
30447 SWIG_Python_Thread_Allow _swig_thread_allow;
30448 result = (std::string *) &((Xapian::Error const *)arg1)->get_context();
30449 _swig_thread_allow.end();
30451 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
30456 static __attribute__ ((__unused__)) PyObject *_wrap_Error_get_error_string(PyObject *, PyObject *args) {
30457 PyObject *resultobj = 0;
30458 Xapian::Error *arg1 = (Xapian::Error *) 0 ;
30461 PyObject *swig_obj[1] ;
30463 if (!args) goto fail;
30464 swig_obj[0] = args;
30465 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[19], 0 | 0, 0);
30466 if (!(res1 >= 0)) {
30467 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Error_get_error_string" "', argument " "1"" of type '" "Xapian::Error const *""'"); goto fail; } while(0);
30469 arg1 = reinterpret_cast< Xapian::Error * >(argp1);
30471 SWIG_Python_Thread_Allow _swig_thread_allow;
30472 result = (char *)((Xapian::Error const *)arg1)->get_error_string();
30473 _swig_thread_allow.end();
30475 resultobj = SWIG_FromCharPtr((const char *)result);
30480 static __attribute__ ((__unused__)) PyObject *_wrap_Error___str__(PyObject *, PyObject *args) {
30481 PyObject *resultobj = 0;
30482 Xapian::Error *arg1 = (Xapian::Error *) 0 ;
30485 PyObject *swig_obj[1] ;
30486 std::string result;
30487 if (!args) goto fail;
30488 swig_obj[0] = args;
30489 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[19], 0 | 0, 0);
30490 if (!(res1 >= 0)) {
30491 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Error___str__" "', argument " "1"" of type '" "Xapian::Error const *""'"); goto fail; } while(0);
30493 arg1 = reinterpret_cast< Xapian::Error * >(argp1);
30495 SWIG_Python_Thread_Allow _swig_thread_allow;
30496 result = Xapian_Error___str__((Xapian::Error const *)arg1);
30497 _swig_thread_allow.end();
30499 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
30504 static __attribute__ ((__unused__)) PyObject *_wrap_delete_Error(PyObject *, PyObject *args) {
30505 PyObject *resultobj = 0;
30506 Xapian::Error *arg1 = (Xapian::Error *) 0 ;
30509 PyObject *swig_obj[1] ;
30510 if (!args) goto fail;
30511 swig_obj[0] = args;
30512 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[19], 0x1 | 0, 0);
30513 if (!(res1 >= 0)) {
30514 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_Error" "', argument " "1"" of type '" "Xapian::Error *""'"); goto fail; } while(0);
30516 arg1 = reinterpret_cast< Xapian::Error * >(argp1);
30518 SWIG_Python_Thread_Allow _swig_thread_allow;
30523 _swig_thread_allow.end();
30524 Xapian::SetPythonException();
30528 _swig_thread_allow.end();
30530 resultobj = SWIG_Py_Void();
30535 static __attribute__ ((__unused__)) PyObject *Error_swigregister(PyObject *, PyObject *args) {
30537 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
30538 SWIG_TypeNewClientData(swig_types[19], SwigPyClientData_New(obj));
30539 return SWIG_Py_Void();
30541 static __attribute__ ((__unused__)) PyObject *_wrap_delete_LogicError(PyObject *, PyObject *args) {
30542 PyObject *resultobj = 0;
30543 Xapian::LogicError *arg1 = (Xapian::LogicError *) 0 ;
30546 PyObject *swig_obj[1] ;
30547 if (!args) goto fail;
30548 swig_obj[0] = args;
30549 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[27], 0x1 | 0, 0);
30550 if (!(res1 >= 0)) {
30551 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_LogicError" "', argument " "1"" of type '" "Xapian::LogicError *""'"); goto fail; } while(0);
30553 arg1 = reinterpret_cast< Xapian::LogicError * >(argp1);
30555 SWIG_Python_Thread_Allow _swig_thread_allow;
30560 _swig_thread_allow.end();
30561 Xapian::SetPythonException();
30565 _swig_thread_allow.end();
30567 resultobj = SWIG_Py_Void();
30572 static __attribute__ ((__unused__)) PyObject *LogicError_swigregister(PyObject *, PyObject *args) {
30574 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
30575 SWIG_TypeNewClientData(swig_types[27], SwigPyClientData_New(obj));
30576 return SWIG_Py_Void();
30578 static __attribute__ ((__unused__)) PyObject *_wrap_delete_RuntimeError(PyObject *, PyObject *args) {
30579 PyObject *resultobj = 0;
30580 Xapian::RuntimeError *arg1 = (Xapian::RuntimeError *) 0 ;
30583 PyObject *swig_obj[1] ;
30584 if (!args) goto fail;
30585 swig_obj[0] = args;
30586 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[46], 0x1 | 0, 0);
30587 if (!(res1 >= 0)) {
30588 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_RuntimeError" "', argument " "1"" of type '" "Xapian::RuntimeError *""'"); goto fail; } while(0);
30590 arg1 = reinterpret_cast< Xapian::RuntimeError * >(argp1);
30592 SWIG_Python_Thread_Allow _swig_thread_allow;
30597 _swig_thread_allow.end();
30598 Xapian::SetPythonException();
30602 _swig_thread_allow.end();
30604 resultobj = SWIG_Py_Void();
30609 static __attribute__ ((__unused__)) PyObject *RuntimeError_swigregister(PyObject *, PyObject *args) {
30611 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
30612 SWIG_TypeNewClientData(swig_types[46], SwigPyClientData_New(obj));
30613 return SWIG_Py_Void();
30615 static __attribute__ ((__unused__)) PyObject *_wrap_new_AssertionError__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
30616 PyObject *resultobj = 0;
30617 std::string *arg1 = 0 ;
30618 std::string *arg2 = 0 ;
30619 char *arg3 = (char *) 0 ;
30625 Xapian::AssertionError *result = 0 ;
30626 if ((nobjs < 3) || (nobjs > 3)) goto fail;
30628 std::string *ptr = (std::string *)0;
30629 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
30630 if (!(res1 >= 0)) {
30631 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_AssertionError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
30634 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_AssertionError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
30639 std::string *ptr = (std::string *)0;
30640 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
30641 if (!(res2 >= 0)) {
30642 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_AssertionError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
30645 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_AssertionError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
30649 res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, __null, &alloc3);
30650 if (!(res3 >= 0)) {
30651 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (-1)) ? res3 : -5)), "in method '" "new_AssertionError" "', argument " "3"" of type '" "char const *""'"); goto fail; } while(0);
30653 arg3 = reinterpret_cast< char * >(buf3);
30655 SWIG_Python_Thread_Allow _swig_thread_allow;
30656 result = (Xapian::AssertionError *)new Xapian::AssertionError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
30657 _swig_thread_allow.end();
30659 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[0], ((0x1 << 1) | 0x1) | 0);
30660 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
30661 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
30662 if (alloc3 == ((0) | ((1 << 8) << 1))) delete[] buf3;
30665 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
30666 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
30667 if (alloc3 == ((0) | ((1 << 8) << 1))) delete[] buf3;
30670 static __attribute__ ((__unused__)) PyObject *_wrap_new_AssertionError__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
30671 PyObject *resultobj = 0;
30672 std::string *arg1 = 0 ;
30673 std::string *arg2 = 0 ;
30679 Xapian::AssertionError *result = 0 ;
30680 if ((nobjs < 3) || (nobjs > 3)) goto fail;
30682 std::string *ptr = (std::string *)0;
30683 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
30684 if (!(res1 >= 0)) {
30685 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_AssertionError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
30688 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_AssertionError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
30693 std::string *ptr = (std::string *)0;
30694 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
30695 if (!(res2 >= 0)) {
30696 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_AssertionError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
30699 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_AssertionError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
30703 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
30704 if (!(ecode3 >= 0)) {
30705 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "new_AssertionError" "', argument " "3"" of type '" "int""'"); goto fail; } while(0);
30707 arg3 = static_cast< int >(val3);
30709 SWIG_Python_Thread_Allow _swig_thread_allow;
30710 result = (Xapian::AssertionError *)new Xapian::AssertionError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
30711 _swig_thread_allow.end();
30713 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[0], ((0x1 << 1) | 0x1) | 0);
30714 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
30715 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
30718 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
30719 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
30722 static __attribute__ ((__unused__)) PyObject *_wrap_new_AssertionError__SWIG_2(PyObject *, int nobjs, PyObject **swig_obj) {
30723 PyObject *resultobj = 0;
30724 std::string *arg1 = 0 ;
30725 std::string *arg2 = 0 ;
30728 Xapian::AssertionError *result = 0 ;
30729 if ((nobjs < 2) || (nobjs > 2)) goto fail;
30731 std::string *ptr = (std::string *)0;
30732 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
30733 if (!(res1 >= 0)) {
30734 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_AssertionError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
30737 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_AssertionError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
30742 std::string *ptr = (std::string *)0;
30743 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
30744 if (!(res2 >= 0)) {
30745 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_AssertionError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
30748 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_AssertionError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
30753 SWIG_Python_Thread_Allow _swig_thread_allow;
30754 result = (Xapian::AssertionError *)new Xapian::AssertionError((std::string const &)*arg1,(std::string const &)*arg2);
30755 _swig_thread_allow.end();
30757 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[0], ((0x1 << 1) | 0x1) | 0);
30758 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
30759 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
30762 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
30763 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
30766 static __attribute__ ((__unused__)) PyObject *_wrap_new_AssertionError__SWIG_3(PyObject *, int nobjs, PyObject **swig_obj) {
30767 PyObject *resultobj = 0;
30768 std::string *arg1 = 0 ;
30770 Xapian::AssertionError *result = 0 ;
30771 if ((nobjs < 1) || (nobjs > 1)) goto fail;
30773 std::string *ptr = (std::string *)0;
30774 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
30775 if (!(res1 >= 0)) {
30776 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_AssertionError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
30779 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_AssertionError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
30784 SWIG_Python_Thread_Allow _swig_thread_allow;
30785 result = (Xapian::AssertionError *)new Xapian::AssertionError((std::string const &)*arg1);
30786 _swig_thread_allow.end();
30788 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[0], ((0x1 << 1) | 0x1) | 0);
30789 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
30792 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
30795 static __attribute__ ((__unused__)) PyObject *_wrap_new_AssertionError__SWIG_4(PyObject *, int nobjs, PyObject **swig_obj) {
30796 PyObject *resultobj = 0;
30797 std::string *arg1 = 0 ;
30802 Xapian::AssertionError *result = 0 ;
30803 if ((nobjs < 2) || (nobjs > 2)) goto fail;
30805 std::string *ptr = (std::string *)0;
30806 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
30807 if (!(res1 >= 0)) {
30808 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_AssertionError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
30811 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_AssertionError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
30815 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
30816 if (!(ecode2 >= 0)) {
30817 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_AssertionError" "', argument " "2"" of type '" "int""'"); goto fail; } while(0);
30819 arg2 = static_cast< int >(val2);
30821 SWIG_Python_Thread_Allow _swig_thread_allow;
30822 result = (Xapian::AssertionError *)new Xapian::AssertionError((std::string const &)*arg1,arg2);
30823 _swig_thread_allow.end();
30825 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[0], ((0x1 << 1) | 0x1) | 0);
30826 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
30829 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
30832 static __attribute__ ((__unused__)) PyObject *_wrap_new_AssertionError(PyObject *self, PyObject *args) {
30835 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AssertionError",0,3,argv))) goto fail;
30838 return _wrap_new_AssertionError__SWIG_3(self, argc, argv);
30844 int res = SWIG_AsVal_int(argv[1], __null);
30845 _v = ((res >= 0) ? 1 : 0);
30848 if (!_v) goto check_2;
30849 return _wrap_new_AssertionError__SWIG_4(self, argc, argv);
30853 return _wrap_new_AssertionError__SWIG_2(self, argc, argv);
30859 int res = SWIG_AsVal_int(argv[2], __null);
30860 _v = ((res >= 0) ? 1 : 0);
30863 if (!_v) goto check_4;
30864 return _wrap_new_AssertionError__SWIG_1(self, argc, argv);
30868 return _wrap_new_AssertionError__SWIG_0(self, argc, argv);
30871 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_AssertionError'.\n"
30872 " Possible C/C++ prototypes are:\n"
30873 " Xapian::AssertionError(std::string const &,std::string const &,char const *)\n"
30874 " Xapian::AssertionError(std::string const &,std::string const &,int)\n"
30875 " Xapian::AssertionError(std::string const &,std::string const &)\n"
30876 " Xapian::AssertionError(std::string const &)\n"
30877 " Xapian::AssertionError(std::string const &,int)\n");
30880 static __attribute__ ((__unused__)) PyObject *_wrap_delete_AssertionError(PyObject *, PyObject *args) {
30881 PyObject *resultobj = 0;
30882 Xapian::AssertionError *arg1 = (Xapian::AssertionError *) 0 ;
30885 PyObject *swig_obj[1] ;
30886 if (!args) goto fail;
30887 swig_obj[0] = args;
30888 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[0], 0x1 | 0, 0);
30889 if (!(res1 >= 0)) {
30890 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_AssertionError" "', argument " "1"" of type '" "Xapian::AssertionError *""'"); goto fail; } while(0);
30892 arg1 = reinterpret_cast< Xapian::AssertionError * >(argp1);
30894 SWIG_Python_Thread_Allow _swig_thread_allow;
30899 _swig_thread_allow.end();
30900 Xapian::SetPythonException();
30904 _swig_thread_allow.end();
30906 resultobj = SWIG_Py_Void();
30911 static __attribute__ ((__unused__)) PyObject *AssertionError_swigregister(PyObject *, PyObject *args) {
30913 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
30914 SWIG_TypeNewClientData(swig_types[0], SwigPyClientData_New(obj));
30915 return SWIG_Py_Void();
30917 static __attribute__ ((__unused__)) PyObject *AssertionError_swiginit(PyObject *, PyObject *args) {
30918 return SWIG_Python_InitShadowInstance(args);
30920 static __attribute__ ((__unused__)) PyObject *_wrap_new_InvalidArgumentError__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
30921 PyObject *resultobj = 0;
30922 std::string *arg1 = 0 ;
30923 std::string *arg2 = 0 ;
30924 char *arg3 = (char *) 0 ;
30930 Xapian::InvalidArgumentError *result = 0 ;
30931 if ((nobjs < 3) || (nobjs > 3)) goto fail;
30933 std::string *ptr = (std::string *)0;
30934 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
30935 if (!(res1 >= 0)) {
30936 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_InvalidArgumentError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
30939 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_InvalidArgumentError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
30944 std::string *ptr = (std::string *)0;
30945 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
30946 if (!(res2 >= 0)) {
30947 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_InvalidArgumentError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
30950 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_InvalidArgumentError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
30954 res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, __null, &alloc3);
30955 if (!(res3 >= 0)) {
30956 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (-1)) ? res3 : -5)), "in method '" "new_InvalidArgumentError" "', argument " "3"" of type '" "char const *""'"); goto fail; } while(0);
30958 arg3 = reinterpret_cast< char * >(buf3);
30960 SWIG_Python_Thread_Allow _swig_thread_allow;
30961 result = (Xapian::InvalidArgumentError *)new Xapian::InvalidArgumentError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
30962 _swig_thread_allow.end();
30964 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[24], ((0x1 << 1) | 0x1) | 0);
30965 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
30966 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
30967 if (alloc3 == ((0) | ((1 << 8) << 1))) delete[] buf3;
30970 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
30971 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
30972 if (alloc3 == ((0) | ((1 << 8) << 1))) delete[] buf3;
30975 static __attribute__ ((__unused__)) PyObject *_wrap_new_InvalidArgumentError__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
30976 PyObject *resultobj = 0;
30977 std::string *arg1 = 0 ;
30978 std::string *arg2 = 0 ;
30984 Xapian::InvalidArgumentError *result = 0 ;
30985 if ((nobjs < 3) || (nobjs > 3)) goto fail;
30987 std::string *ptr = (std::string *)0;
30988 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
30989 if (!(res1 >= 0)) {
30990 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_InvalidArgumentError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
30993 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_InvalidArgumentError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
30998 std::string *ptr = (std::string *)0;
30999 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
31000 if (!(res2 >= 0)) {
31001 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_InvalidArgumentError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
31004 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_InvalidArgumentError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
31008 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
31009 if (!(ecode3 >= 0)) {
31010 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "new_InvalidArgumentError" "', argument " "3"" of type '" "int""'"); goto fail; } while(0);
31012 arg3 = static_cast< int >(val3);
31014 SWIG_Python_Thread_Allow _swig_thread_allow;
31015 result = (Xapian::InvalidArgumentError *)new Xapian::InvalidArgumentError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
31016 _swig_thread_allow.end();
31018 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[24], ((0x1 << 1) | 0x1) | 0);
31019 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
31020 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
31023 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
31024 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
31027 static __attribute__ ((__unused__)) PyObject *_wrap_new_InvalidArgumentError__SWIG_2(PyObject *, int nobjs, PyObject **swig_obj) {
31028 PyObject *resultobj = 0;
31029 std::string *arg1 = 0 ;
31030 std::string *arg2 = 0 ;
31033 Xapian::InvalidArgumentError *result = 0 ;
31034 if ((nobjs < 2) || (nobjs > 2)) goto fail;
31036 std::string *ptr = (std::string *)0;
31037 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
31038 if (!(res1 >= 0)) {
31039 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_InvalidArgumentError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
31042 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_InvalidArgumentError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
31047 std::string *ptr = (std::string *)0;
31048 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
31049 if (!(res2 >= 0)) {
31050 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_InvalidArgumentError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
31053 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_InvalidArgumentError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
31058 SWIG_Python_Thread_Allow _swig_thread_allow;
31059 result = (Xapian::InvalidArgumentError *)new Xapian::InvalidArgumentError((std::string const &)*arg1,(std::string const &)*arg2);
31060 _swig_thread_allow.end();
31062 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[24], ((0x1 << 1) | 0x1) | 0);
31063 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
31064 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
31067 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
31068 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
31071 static __attribute__ ((__unused__)) PyObject *_wrap_new_InvalidArgumentError__SWIG_3(PyObject *, int nobjs, PyObject **swig_obj) {
31072 PyObject *resultobj = 0;
31073 std::string *arg1 = 0 ;
31075 Xapian::InvalidArgumentError *result = 0 ;
31076 if ((nobjs < 1) || (nobjs > 1)) goto fail;
31078 std::string *ptr = (std::string *)0;
31079 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
31080 if (!(res1 >= 0)) {
31081 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_InvalidArgumentError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
31084 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_InvalidArgumentError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
31089 SWIG_Python_Thread_Allow _swig_thread_allow;
31090 result = (Xapian::InvalidArgumentError *)new Xapian::InvalidArgumentError((std::string const &)*arg1);
31091 _swig_thread_allow.end();
31093 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[24], ((0x1 << 1) | 0x1) | 0);
31094 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
31097 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
31100 static __attribute__ ((__unused__)) PyObject *_wrap_new_InvalidArgumentError__SWIG_4(PyObject *, int nobjs, PyObject **swig_obj) {
31101 PyObject *resultobj = 0;
31102 std::string *arg1 = 0 ;
31107 Xapian::InvalidArgumentError *result = 0 ;
31108 if ((nobjs < 2) || (nobjs > 2)) goto fail;
31110 std::string *ptr = (std::string *)0;
31111 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
31112 if (!(res1 >= 0)) {
31113 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_InvalidArgumentError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
31116 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_InvalidArgumentError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
31120 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
31121 if (!(ecode2 >= 0)) {
31122 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_InvalidArgumentError" "', argument " "2"" of type '" "int""'"); goto fail; } while(0);
31124 arg2 = static_cast< int >(val2);
31126 SWIG_Python_Thread_Allow _swig_thread_allow;
31127 result = (Xapian::InvalidArgumentError *)new Xapian::InvalidArgumentError((std::string const &)*arg1,arg2);
31128 _swig_thread_allow.end();
31130 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[24], ((0x1 << 1) | 0x1) | 0);
31131 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
31134 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
31137 static __attribute__ ((__unused__)) PyObject *_wrap_new_InvalidArgumentError(PyObject *self, PyObject *args) {
31140 if (!(argc = SWIG_Python_UnpackTuple(args,"new_InvalidArgumentError",0,3,argv))) goto fail;
31143 return _wrap_new_InvalidArgumentError__SWIG_3(self, argc, argv);
31149 int res = SWIG_AsVal_int(argv[1], __null);
31150 _v = ((res >= 0) ? 1 : 0);
31153 if (!_v) goto check_2;
31154 return _wrap_new_InvalidArgumentError__SWIG_4(self, argc, argv);
31158 return _wrap_new_InvalidArgumentError__SWIG_2(self, argc, argv);
31164 int res = SWIG_AsVal_int(argv[2], __null);
31165 _v = ((res >= 0) ? 1 : 0);
31168 if (!_v) goto check_4;
31169 return _wrap_new_InvalidArgumentError__SWIG_1(self, argc, argv);
31173 return _wrap_new_InvalidArgumentError__SWIG_0(self, argc, argv);
31176 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_InvalidArgumentError'.\n"
31177 " Possible C/C++ prototypes are:\n"
31178 " Xapian::InvalidArgumentError(std::string const &,std::string const &,char const *)\n"
31179 " Xapian::InvalidArgumentError(std::string const &,std::string const &,int)\n"
31180 " Xapian::InvalidArgumentError(std::string const &,std::string const &)\n"
31181 " Xapian::InvalidArgumentError(std::string const &)\n"
31182 " Xapian::InvalidArgumentError(std::string const &,int)\n");
31185 static __attribute__ ((__unused__)) PyObject *_wrap_delete_InvalidArgumentError(PyObject *, PyObject *args) {
31186 PyObject *resultobj = 0;
31187 Xapian::InvalidArgumentError *arg1 = (Xapian::InvalidArgumentError *) 0 ;
31190 PyObject *swig_obj[1] ;
31191 if (!args) goto fail;
31192 swig_obj[0] = args;
31193 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[24], 0x1 | 0, 0);
31194 if (!(res1 >= 0)) {
31195 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_InvalidArgumentError" "', argument " "1"" of type '" "Xapian::InvalidArgumentError *""'"); goto fail; } while(0);
31197 arg1 = reinterpret_cast< Xapian::InvalidArgumentError * >(argp1);
31199 SWIG_Python_Thread_Allow _swig_thread_allow;
31204 _swig_thread_allow.end();
31205 Xapian::SetPythonException();
31209 _swig_thread_allow.end();
31211 resultobj = SWIG_Py_Void();
31216 static __attribute__ ((__unused__)) PyObject *InvalidArgumentError_swigregister(PyObject *, PyObject *args) {
31218 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
31219 SWIG_TypeNewClientData(swig_types[24], SwigPyClientData_New(obj));
31220 return SWIG_Py_Void();
31222 static __attribute__ ((__unused__)) PyObject *InvalidArgumentError_swiginit(PyObject *, PyObject *args) {
31223 return SWIG_Python_InitShadowInstance(args);
31225 static __attribute__ ((__unused__)) PyObject *_wrap_new_InvalidOperationError__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
31226 PyObject *resultobj = 0;
31227 std::string *arg1 = 0 ;
31228 std::string *arg2 = 0 ;
31229 char *arg3 = (char *) 0 ;
31235 Xapian::InvalidOperationError *result = 0 ;
31236 if ((nobjs < 3) || (nobjs > 3)) goto fail;
31238 std::string *ptr = (std::string *)0;
31239 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
31240 if (!(res1 >= 0)) {
31241 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_InvalidOperationError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
31244 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_InvalidOperationError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
31249 std::string *ptr = (std::string *)0;
31250 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
31251 if (!(res2 >= 0)) {
31252 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_InvalidOperationError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
31255 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_InvalidOperationError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
31259 res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, __null, &alloc3);
31260 if (!(res3 >= 0)) {
31261 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (-1)) ? res3 : -5)), "in method '" "new_InvalidOperationError" "', argument " "3"" of type '" "char const *""'"); goto fail; } while(0);
31263 arg3 = reinterpret_cast< char * >(buf3);
31265 SWIG_Python_Thread_Allow _swig_thread_allow;
31266 result = (Xapian::InvalidOperationError *)new Xapian::InvalidOperationError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
31267 _swig_thread_allow.end();
31269 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[25], ((0x1 << 1) | 0x1) | 0);
31270 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
31271 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
31272 if (alloc3 == ((0) | ((1 << 8) << 1))) delete[] buf3;
31275 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
31276 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
31277 if (alloc3 == ((0) | ((1 << 8) << 1))) delete[] buf3;
31280 static __attribute__ ((__unused__)) PyObject *_wrap_new_InvalidOperationError__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
31281 PyObject *resultobj = 0;
31282 std::string *arg1 = 0 ;
31283 std::string *arg2 = 0 ;
31289 Xapian::InvalidOperationError *result = 0 ;
31290 if ((nobjs < 3) || (nobjs > 3)) goto fail;
31292 std::string *ptr = (std::string *)0;
31293 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
31294 if (!(res1 >= 0)) {
31295 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_InvalidOperationError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
31298 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_InvalidOperationError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
31303 std::string *ptr = (std::string *)0;
31304 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
31305 if (!(res2 >= 0)) {
31306 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_InvalidOperationError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
31309 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_InvalidOperationError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
31313 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
31314 if (!(ecode3 >= 0)) {
31315 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "new_InvalidOperationError" "', argument " "3"" of type '" "int""'"); goto fail; } while(0);
31317 arg3 = static_cast< int >(val3);
31319 SWIG_Python_Thread_Allow _swig_thread_allow;
31320 result = (Xapian::InvalidOperationError *)new Xapian::InvalidOperationError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
31321 _swig_thread_allow.end();
31323 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[25], ((0x1 << 1) | 0x1) | 0);
31324 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
31325 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
31328 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
31329 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
31332 static __attribute__ ((__unused__)) PyObject *_wrap_new_InvalidOperationError__SWIG_2(PyObject *, int nobjs, PyObject **swig_obj) {
31333 PyObject *resultobj = 0;
31334 std::string *arg1 = 0 ;
31335 std::string *arg2 = 0 ;
31338 Xapian::InvalidOperationError *result = 0 ;
31339 if ((nobjs < 2) || (nobjs > 2)) goto fail;
31341 std::string *ptr = (std::string *)0;
31342 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
31343 if (!(res1 >= 0)) {
31344 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_InvalidOperationError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
31347 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_InvalidOperationError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
31352 std::string *ptr = (std::string *)0;
31353 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
31354 if (!(res2 >= 0)) {
31355 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_InvalidOperationError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
31358 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_InvalidOperationError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
31363 SWIG_Python_Thread_Allow _swig_thread_allow;
31364 result = (Xapian::InvalidOperationError *)new Xapian::InvalidOperationError((std::string const &)*arg1,(std::string const &)*arg2);
31365 _swig_thread_allow.end();
31367 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[25], ((0x1 << 1) | 0x1) | 0);
31368 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
31369 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
31372 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
31373 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
31376 static __attribute__ ((__unused__)) PyObject *_wrap_new_InvalidOperationError__SWIG_3(PyObject *, int nobjs, PyObject **swig_obj) {
31377 PyObject *resultobj = 0;
31378 std::string *arg1 = 0 ;
31380 Xapian::InvalidOperationError *result = 0 ;
31381 if ((nobjs < 1) || (nobjs > 1)) goto fail;
31383 std::string *ptr = (std::string *)0;
31384 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
31385 if (!(res1 >= 0)) {
31386 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_InvalidOperationError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
31389 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_InvalidOperationError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
31394 SWIG_Python_Thread_Allow _swig_thread_allow;
31395 result = (Xapian::InvalidOperationError *)new Xapian::InvalidOperationError((std::string const &)*arg1);
31396 _swig_thread_allow.end();
31398 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[25], ((0x1 << 1) | 0x1) | 0);
31399 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
31402 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
31405 static __attribute__ ((__unused__)) PyObject *_wrap_new_InvalidOperationError__SWIG_4(PyObject *, int nobjs, PyObject **swig_obj) {
31406 PyObject *resultobj = 0;
31407 std::string *arg1 = 0 ;
31412 Xapian::InvalidOperationError *result = 0 ;
31413 if ((nobjs < 2) || (nobjs > 2)) goto fail;
31415 std::string *ptr = (std::string *)0;
31416 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
31417 if (!(res1 >= 0)) {
31418 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_InvalidOperationError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
31421 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_InvalidOperationError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
31425 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
31426 if (!(ecode2 >= 0)) {
31427 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_InvalidOperationError" "', argument " "2"" of type '" "int""'"); goto fail; } while(0);
31429 arg2 = static_cast< int >(val2);
31431 SWIG_Python_Thread_Allow _swig_thread_allow;
31432 result = (Xapian::InvalidOperationError *)new Xapian::InvalidOperationError((std::string const &)*arg1,arg2);
31433 _swig_thread_allow.end();
31435 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[25], ((0x1 << 1) | 0x1) | 0);
31436 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
31439 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
31442 static __attribute__ ((__unused__)) PyObject *_wrap_new_InvalidOperationError(PyObject *self, PyObject *args) {
31445 if (!(argc = SWIG_Python_UnpackTuple(args,"new_InvalidOperationError",0,3,argv))) goto fail;
31448 return _wrap_new_InvalidOperationError__SWIG_3(self, argc, argv);
31454 int res = SWIG_AsVal_int(argv[1], __null);
31455 _v = ((res >= 0) ? 1 : 0);
31458 if (!_v) goto check_2;
31459 return _wrap_new_InvalidOperationError__SWIG_4(self, argc, argv);
31463 return _wrap_new_InvalidOperationError__SWIG_2(self, argc, argv);
31469 int res = SWIG_AsVal_int(argv[2], __null);
31470 _v = ((res >= 0) ? 1 : 0);
31473 if (!_v) goto check_4;
31474 return _wrap_new_InvalidOperationError__SWIG_1(self, argc, argv);
31478 return _wrap_new_InvalidOperationError__SWIG_0(self, argc, argv);
31481 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_InvalidOperationError'.\n"
31482 " Possible C/C++ prototypes are:\n"
31483 " Xapian::InvalidOperationError(std::string const &,std::string const &,char const *)\n"
31484 " Xapian::InvalidOperationError(std::string const &,std::string const &,int)\n"
31485 " Xapian::InvalidOperationError(std::string const &,std::string const &)\n"
31486 " Xapian::InvalidOperationError(std::string const &)\n"
31487 " Xapian::InvalidOperationError(std::string const &,int)\n");
31490 static __attribute__ ((__unused__)) PyObject *_wrap_delete_InvalidOperationError(PyObject *, PyObject *args) {
31491 PyObject *resultobj = 0;
31492 Xapian::InvalidOperationError *arg1 = (Xapian::InvalidOperationError *) 0 ;
31495 PyObject *swig_obj[1] ;
31496 if (!args) goto fail;
31497 swig_obj[0] = args;
31498 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[25], 0x1 | 0, 0);
31499 if (!(res1 >= 0)) {
31500 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_InvalidOperationError" "', argument " "1"" of type '" "Xapian::InvalidOperationError *""'"); goto fail; } while(0);
31502 arg1 = reinterpret_cast< Xapian::InvalidOperationError * >(argp1);
31504 SWIG_Python_Thread_Allow _swig_thread_allow;
31509 _swig_thread_allow.end();
31510 Xapian::SetPythonException();
31514 _swig_thread_allow.end();
31516 resultobj = SWIG_Py_Void();
31521 static __attribute__ ((__unused__)) PyObject *InvalidOperationError_swigregister(PyObject *, PyObject *args) {
31523 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
31524 SWIG_TypeNewClientData(swig_types[25], SwigPyClientData_New(obj));
31525 return SWIG_Py_Void();
31527 static __attribute__ ((__unused__)) PyObject *InvalidOperationError_swiginit(PyObject *, PyObject *args) {
31528 return SWIG_Python_InitShadowInstance(args);
31530 static __attribute__ ((__unused__)) PyObject *_wrap_new_UnimplementedError__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
31531 PyObject *resultobj = 0;
31532 std::string *arg1 = 0 ;
31533 std::string *arg2 = 0 ;
31534 char *arg3 = (char *) 0 ;
31540 Xapian::UnimplementedError *result = 0 ;
31541 if ((nobjs < 3) || (nobjs > 3)) goto fail;
31543 std::string *ptr = (std::string *)0;
31544 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
31545 if (!(res1 >= 0)) {
31546 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_UnimplementedError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
31549 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_UnimplementedError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
31554 std::string *ptr = (std::string *)0;
31555 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
31556 if (!(res2 >= 0)) {
31557 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_UnimplementedError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
31560 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_UnimplementedError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
31564 res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, __null, &alloc3);
31565 if (!(res3 >= 0)) {
31566 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (-1)) ? res3 : -5)), "in method '" "new_UnimplementedError" "', argument " "3"" of type '" "char const *""'"); goto fail; } while(0);
31568 arg3 = reinterpret_cast< char * >(buf3);
31570 SWIG_Python_Thread_Allow _swig_thread_allow;
31571 result = (Xapian::UnimplementedError *)new Xapian::UnimplementedError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
31572 _swig_thread_allow.end();
31574 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[57], ((0x1 << 1) | 0x1) | 0);
31575 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
31576 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
31577 if (alloc3 == ((0) | ((1 << 8) << 1))) delete[] buf3;
31580 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
31581 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
31582 if (alloc3 == ((0) | ((1 << 8) << 1))) delete[] buf3;
31585 static __attribute__ ((__unused__)) PyObject *_wrap_new_UnimplementedError__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
31586 PyObject *resultobj = 0;
31587 std::string *arg1 = 0 ;
31588 std::string *arg2 = 0 ;
31594 Xapian::UnimplementedError *result = 0 ;
31595 if ((nobjs < 3) || (nobjs > 3)) goto fail;
31597 std::string *ptr = (std::string *)0;
31598 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
31599 if (!(res1 >= 0)) {
31600 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_UnimplementedError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
31603 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_UnimplementedError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
31608 std::string *ptr = (std::string *)0;
31609 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
31610 if (!(res2 >= 0)) {
31611 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_UnimplementedError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
31614 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_UnimplementedError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
31618 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
31619 if (!(ecode3 >= 0)) {
31620 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "new_UnimplementedError" "', argument " "3"" of type '" "int""'"); goto fail; } while(0);
31622 arg3 = static_cast< int >(val3);
31624 SWIG_Python_Thread_Allow _swig_thread_allow;
31625 result = (Xapian::UnimplementedError *)new Xapian::UnimplementedError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
31626 _swig_thread_allow.end();
31628 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[57], ((0x1 << 1) | 0x1) | 0);
31629 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
31630 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
31633 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
31634 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
31637 static __attribute__ ((__unused__)) PyObject *_wrap_new_UnimplementedError__SWIG_2(PyObject *, int nobjs, PyObject **swig_obj) {
31638 PyObject *resultobj = 0;
31639 std::string *arg1 = 0 ;
31640 std::string *arg2 = 0 ;
31643 Xapian::UnimplementedError *result = 0 ;
31644 if ((nobjs < 2) || (nobjs > 2)) goto fail;
31646 std::string *ptr = (std::string *)0;
31647 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
31648 if (!(res1 >= 0)) {
31649 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_UnimplementedError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
31652 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_UnimplementedError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
31657 std::string *ptr = (std::string *)0;
31658 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
31659 if (!(res2 >= 0)) {
31660 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_UnimplementedError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
31663 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_UnimplementedError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
31668 SWIG_Python_Thread_Allow _swig_thread_allow;
31669 result = (Xapian::UnimplementedError *)new Xapian::UnimplementedError((std::string const &)*arg1,(std::string const &)*arg2);
31670 _swig_thread_allow.end();
31672 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[57], ((0x1 << 1) | 0x1) | 0);
31673 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
31674 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
31677 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
31678 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
31681 static __attribute__ ((__unused__)) PyObject *_wrap_new_UnimplementedError__SWIG_3(PyObject *, int nobjs, PyObject **swig_obj) {
31682 PyObject *resultobj = 0;
31683 std::string *arg1 = 0 ;
31685 Xapian::UnimplementedError *result = 0 ;
31686 if ((nobjs < 1) || (nobjs > 1)) goto fail;
31688 std::string *ptr = (std::string *)0;
31689 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
31690 if (!(res1 >= 0)) {
31691 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_UnimplementedError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
31694 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_UnimplementedError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
31699 SWIG_Python_Thread_Allow _swig_thread_allow;
31700 result = (Xapian::UnimplementedError *)new Xapian::UnimplementedError((std::string const &)*arg1);
31701 _swig_thread_allow.end();
31703 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[57], ((0x1 << 1) | 0x1) | 0);
31704 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
31707 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
31710 static __attribute__ ((__unused__)) PyObject *_wrap_new_UnimplementedError__SWIG_4(PyObject *, int nobjs, PyObject **swig_obj) {
31711 PyObject *resultobj = 0;
31712 std::string *arg1 = 0 ;
31717 Xapian::UnimplementedError *result = 0 ;
31718 if ((nobjs < 2) || (nobjs > 2)) goto fail;
31720 std::string *ptr = (std::string *)0;
31721 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
31722 if (!(res1 >= 0)) {
31723 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_UnimplementedError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
31726 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_UnimplementedError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
31730 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
31731 if (!(ecode2 >= 0)) {
31732 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_UnimplementedError" "', argument " "2"" of type '" "int""'"); goto fail; } while(0);
31734 arg2 = static_cast< int >(val2);
31736 SWIG_Python_Thread_Allow _swig_thread_allow;
31737 result = (Xapian::UnimplementedError *)new Xapian::UnimplementedError((std::string const &)*arg1,arg2);
31738 _swig_thread_allow.end();
31740 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[57], ((0x1 << 1) | 0x1) | 0);
31741 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
31744 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
31747 static __attribute__ ((__unused__)) PyObject *_wrap_new_UnimplementedError(PyObject *self, PyObject *args) {
31750 if (!(argc = SWIG_Python_UnpackTuple(args,"new_UnimplementedError",0,3,argv))) goto fail;
31753 return _wrap_new_UnimplementedError__SWIG_3(self, argc, argv);
31759 int res = SWIG_AsVal_int(argv[1], __null);
31760 _v = ((res >= 0) ? 1 : 0);
31763 if (!_v) goto check_2;
31764 return _wrap_new_UnimplementedError__SWIG_4(self, argc, argv);
31768 return _wrap_new_UnimplementedError__SWIG_2(self, argc, argv);
31774 int res = SWIG_AsVal_int(argv[2], __null);
31775 _v = ((res >= 0) ? 1 : 0);
31778 if (!_v) goto check_4;
31779 return _wrap_new_UnimplementedError__SWIG_1(self, argc, argv);
31783 return _wrap_new_UnimplementedError__SWIG_0(self, argc, argv);
31786 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_UnimplementedError'.\n"
31787 " Possible C/C++ prototypes are:\n"
31788 " Xapian::UnimplementedError(std::string const &,std::string const &,char const *)\n"
31789 " Xapian::UnimplementedError(std::string const &,std::string const &,int)\n"
31790 " Xapian::UnimplementedError(std::string const &,std::string const &)\n"
31791 " Xapian::UnimplementedError(std::string const &)\n"
31792 " Xapian::UnimplementedError(std::string const &,int)\n");
31795 static __attribute__ ((__unused__)) PyObject *_wrap_delete_UnimplementedError(PyObject *, PyObject *args) {
31796 PyObject *resultobj = 0;
31797 Xapian::UnimplementedError *arg1 = (Xapian::UnimplementedError *) 0 ;
31800 PyObject *swig_obj[1] ;
31801 if (!args) goto fail;
31802 swig_obj[0] = args;
31803 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[57], 0x1 | 0, 0);
31804 if (!(res1 >= 0)) {
31805 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_UnimplementedError" "', argument " "1"" of type '" "Xapian::UnimplementedError *""'"); goto fail; } while(0);
31807 arg1 = reinterpret_cast< Xapian::UnimplementedError * >(argp1);
31809 SWIG_Python_Thread_Allow _swig_thread_allow;
31814 _swig_thread_allow.end();
31815 Xapian::SetPythonException();
31819 _swig_thread_allow.end();
31821 resultobj = SWIG_Py_Void();
31826 static __attribute__ ((__unused__)) PyObject *UnimplementedError_swigregister(PyObject *, PyObject *args) {
31828 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
31829 SWIG_TypeNewClientData(swig_types[57], SwigPyClientData_New(obj));
31830 return SWIG_Py_Void();
31832 static __attribute__ ((__unused__)) PyObject *UnimplementedError_swiginit(PyObject *, PyObject *args) {
31833 return SWIG_Python_InitShadowInstance(args);
31835 static __attribute__ ((__unused__)) PyObject *_wrap_new_DatabaseError__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
31836 PyObject *resultobj = 0;
31837 std::string *arg1 = 0 ;
31838 std::string *arg2 = 0 ;
31839 char *arg3 = (char *) 0 ;
31845 Xapian::DatabaseError *result = 0 ;
31846 if ((nobjs < 3) || (nobjs > 3)) goto fail;
31848 std::string *ptr = (std::string *)0;
31849 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
31850 if (!(res1 >= 0)) {
31851 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_DatabaseError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
31854 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
31859 std::string *ptr = (std::string *)0;
31860 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
31861 if (!(res2 >= 0)) {
31862 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_DatabaseError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
31865 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
31869 res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, __null, &alloc3);
31870 if (!(res3 >= 0)) {
31871 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (-1)) ? res3 : -5)), "in method '" "new_DatabaseError" "', argument " "3"" of type '" "char const *""'"); goto fail; } while(0);
31873 arg3 = reinterpret_cast< char * >(buf3);
31875 SWIG_Python_Thread_Allow _swig_thread_allow;
31876 result = (Xapian::DatabaseError *)new Xapian::DatabaseError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
31877 _swig_thread_allow.end();
31879 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[7], ((0x1 << 1) | 0x1) | 0);
31880 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
31881 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
31882 if (alloc3 == ((0) | ((1 << 8) << 1))) delete[] buf3;
31885 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
31886 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
31887 if (alloc3 == ((0) | ((1 << 8) << 1))) delete[] buf3;
31890 static __attribute__ ((__unused__)) PyObject *_wrap_new_DatabaseError__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
31891 PyObject *resultobj = 0;
31892 std::string *arg1 = 0 ;
31893 std::string *arg2 = 0 ;
31899 Xapian::DatabaseError *result = 0 ;
31900 if ((nobjs < 3) || (nobjs > 3)) goto fail;
31902 std::string *ptr = (std::string *)0;
31903 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
31904 if (!(res1 >= 0)) {
31905 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_DatabaseError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
31908 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
31913 std::string *ptr = (std::string *)0;
31914 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
31915 if (!(res2 >= 0)) {
31916 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_DatabaseError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
31919 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
31923 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
31924 if (!(ecode3 >= 0)) {
31925 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "new_DatabaseError" "', argument " "3"" of type '" "int""'"); goto fail; } while(0);
31927 arg3 = static_cast< int >(val3);
31929 SWIG_Python_Thread_Allow _swig_thread_allow;
31930 result = (Xapian::DatabaseError *)new Xapian::DatabaseError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
31931 _swig_thread_allow.end();
31933 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[7], ((0x1 << 1) | 0x1) | 0);
31934 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
31935 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
31938 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
31939 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
31942 static __attribute__ ((__unused__)) PyObject *_wrap_new_DatabaseError__SWIG_2(PyObject *, int nobjs, PyObject **swig_obj) {
31943 PyObject *resultobj = 0;
31944 std::string *arg1 = 0 ;
31945 std::string *arg2 = 0 ;
31948 Xapian::DatabaseError *result = 0 ;
31949 if ((nobjs < 2) || (nobjs > 2)) goto fail;
31951 std::string *ptr = (std::string *)0;
31952 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
31953 if (!(res1 >= 0)) {
31954 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_DatabaseError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
31957 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
31962 std::string *ptr = (std::string *)0;
31963 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
31964 if (!(res2 >= 0)) {
31965 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_DatabaseError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
31968 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
31973 SWIG_Python_Thread_Allow _swig_thread_allow;
31974 result = (Xapian::DatabaseError *)new Xapian::DatabaseError((std::string const &)*arg1,(std::string const &)*arg2);
31975 _swig_thread_allow.end();
31977 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[7], ((0x1 << 1) | 0x1) | 0);
31978 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
31979 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
31982 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
31983 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
31986 static __attribute__ ((__unused__)) PyObject *_wrap_new_DatabaseError__SWIG_3(PyObject *, int nobjs, PyObject **swig_obj) {
31987 PyObject *resultobj = 0;
31988 std::string *arg1 = 0 ;
31990 Xapian::DatabaseError *result = 0 ;
31991 if ((nobjs < 1) || (nobjs > 1)) goto fail;
31993 std::string *ptr = (std::string *)0;
31994 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
31995 if (!(res1 >= 0)) {
31996 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_DatabaseError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
31999 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
32004 SWIG_Python_Thread_Allow _swig_thread_allow;
32005 result = (Xapian::DatabaseError *)new Xapian::DatabaseError((std::string const &)*arg1);
32006 _swig_thread_allow.end();
32008 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[7], ((0x1 << 1) | 0x1) | 0);
32009 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
32012 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
32015 static __attribute__ ((__unused__)) PyObject *_wrap_new_DatabaseError__SWIG_4(PyObject *, int nobjs, PyObject **swig_obj) {
32016 PyObject *resultobj = 0;
32017 std::string *arg1 = 0 ;
32022 Xapian::DatabaseError *result = 0 ;
32023 if ((nobjs < 2) || (nobjs > 2)) goto fail;
32025 std::string *ptr = (std::string *)0;
32026 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
32027 if (!(res1 >= 0)) {
32028 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_DatabaseError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
32031 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
32035 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
32036 if (!(ecode2 >= 0)) {
32037 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_DatabaseError" "', argument " "2"" of type '" "int""'"); goto fail; } while(0);
32039 arg2 = static_cast< int >(val2);
32041 SWIG_Python_Thread_Allow _swig_thread_allow;
32042 result = (Xapian::DatabaseError *)new Xapian::DatabaseError((std::string const &)*arg1,arg2);
32043 _swig_thread_allow.end();
32045 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[7], ((0x1 << 1) | 0x1) | 0);
32046 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
32049 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
32052 static __attribute__ ((__unused__)) PyObject *_wrap_new_DatabaseError(PyObject *self, PyObject *args) {
32055 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DatabaseError",0,3,argv))) goto fail;
32058 return _wrap_new_DatabaseError__SWIG_3(self, argc, argv);
32064 int res = SWIG_AsVal_int(argv[1], __null);
32065 _v = ((res >= 0) ? 1 : 0);
32068 if (!_v) goto check_2;
32069 return _wrap_new_DatabaseError__SWIG_4(self, argc, argv);
32073 return _wrap_new_DatabaseError__SWIG_2(self, argc, argv);
32079 int res = SWIG_AsVal_int(argv[2], __null);
32080 _v = ((res >= 0) ? 1 : 0);
32083 if (!_v) goto check_4;
32084 return _wrap_new_DatabaseError__SWIG_1(self, argc, argv);
32088 return _wrap_new_DatabaseError__SWIG_0(self, argc, argv);
32091 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_DatabaseError'.\n"
32092 " Possible C/C++ prototypes are:\n"
32093 " Xapian::DatabaseError(std::string const &,std::string const &,char const *)\n"
32094 " Xapian::DatabaseError(std::string const &,std::string const &,int)\n"
32095 " Xapian::DatabaseError(std::string const &,std::string const &)\n"
32096 " Xapian::DatabaseError(std::string const &)\n"
32097 " Xapian::DatabaseError(std::string const &,int)\n");
32100 static __attribute__ ((__unused__)) PyObject *_wrap_delete_DatabaseError(PyObject *, PyObject *args) {
32101 PyObject *resultobj = 0;
32102 Xapian::DatabaseError *arg1 = (Xapian::DatabaseError *) 0 ;
32105 PyObject *swig_obj[1] ;
32106 if (!args) goto fail;
32107 swig_obj[0] = args;
32108 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[7], 0x1 | 0, 0);
32109 if (!(res1 >= 0)) {
32110 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_DatabaseError" "', argument " "1"" of type '" "Xapian::DatabaseError *""'"); goto fail; } while(0);
32112 arg1 = reinterpret_cast< Xapian::DatabaseError * >(argp1);
32114 SWIG_Python_Thread_Allow _swig_thread_allow;
32119 _swig_thread_allow.end();
32120 Xapian::SetPythonException();
32124 _swig_thread_allow.end();
32126 resultobj = SWIG_Py_Void();
32131 static __attribute__ ((__unused__)) PyObject *DatabaseError_swigregister(PyObject *, PyObject *args) {
32133 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
32134 SWIG_TypeNewClientData(swig_types[7], SwigPyClientData_New(obj));
32135 return SWIG_Py_Void();
32137 static __attribute__ ((__unused__)) PyObject *DatabaseError_swiginit(PyObject *, PyObject *args) {
32138 return SWIG_Python_InitShadowInstance(args);
32140 static __attribute__ ((__unused__)) PyObject *_wrap_new_DatabaseCorruptError__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
32141 PyObject *resultobj = 0;
32142 std::string *arg1 = 0 ;
32143 std::string *arg2 = 0 ;
32144 char *arg3 = (char *) 0 ;
32150 Xapian::DatabaseCorruptError *result = 0 ;
32151 if ((nobjs < 3) || (nobjs > 3)) goto fail;
32153 std::string *ptr = (std::string *)0;
32154 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
32155 if (!(res1 >= 0)) {
32156 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_DatabaseCorruptError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
32159 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseCorruptError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
32164 std::string *ptr = (std::string *)0;
32165 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
32166 if (!(res2 >= 0)) {
32167 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_DatabaseCorruptError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
32170 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseCorruptError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
32174 res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, __null, &alloc3);
32175 if (!(res3 >= 0)) {
32176 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (-1)) ? res3 : -5)), "in method '" "new_DatabaseCorruptError" "', argument " "3"" of type '" "char const *""'"); goto fail; } while(0);
32178 arg3 = reinterpret_cast< char * >(buf3);
32180 SWIG_Python_Thread_Allow _swig_thread_allow;
32181 result = (Xapian::DatabaseCorruptError *)new Xapian::DatabaseCorruptError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
32182 _swig_thread_allow.end();
32184 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[5], ((0x1 << 1) | 0x1) | 0);
32185 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
32186 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
32187 if (alloc3 == ((0) | ((1 << 8) << 1))) delete[] buf3;
32190 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
32191 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
32192 if (alloc3 == ((0) | ((1 << 8) << 1))) delete[] buf3;
32195 static __attribute__ ((__unused__)) PyObject *_wrap_new_DatabaseCorruptError__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
32196 PyObject *resultobj = 0;
32197 std::string *arg1 = 0 ;
32198 std::string *arg2 = 0 ;
32204 Xapian::DatabaseCorruptError *result = 0 ;
32205 if ((nobjs < 3) || (nobjs > 3)) goto fail;
32207 std::string *ptr = (std::string *)0;
32208 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
32209 if (!(res1 >= 0)) {
32210 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_DatabaseCorruptError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
32213 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseCorruptError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
32218 std::string *ptr = (std::string *)0;
32219 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
32220 if (!(res2 >= 0)) {
32221 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_DatabaseCorruptError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
32224 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseCorruptError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
32228 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
32229 if (!(ecode3 >= 0)) {
32230 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "new_DatabaseCorruptError" "', argument " "3"" of type '" "int""'"); goto fail; } while(0);
32232 arg3 = static_cast< int >(val3);
32234 SWIG_Python_Thread_Allow _swig_thread_allow;
32235 result = (Xapian::DatabaseCorruptError *)new Xapian::DatabaseCorruptError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
32236 _swig_thread_allow.end();
32238 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[5], ((0x1 << 1) | 0x1) | 0);
32239 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
32240 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
32243 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
32244 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
32247 static __attribute__ ((__unused__)) PyObject *_wrap_new_DatabaseCorruptError__SWIG_2(PyObject *, int nobjs, PyObject **swig_obj) {
32248 PyObject *resultobj = 0;
32249 std::string *arg1 = 0 ;
32250 std::string *arg2 = 0 ;
32253 Xapian::DatabaseCorruptError *result = 0 ;
32254 if ((nobjs < 2) || (nobjs > 2)) goto fail;
32256 std::string *ptr = (std::string *)0;
32257 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
32258 if (!(res1 >= 0)) {
32259 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_DatabaseCorruptError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
32262 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseCorruptError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
32267 std::string *ptr = (std::string *)0;
32268 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
32269 if (!(res2 >= 0)) {
32270 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_DatabaseCorruptError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
32273 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseCorruptError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
32278 SWIG_Python_Thread_Allow _swig_thread_allow;
32279 result = (Xapian::DatabaseCorruptError *)new Xapian::DatabaseCorruptError((std::string const &)*arg1,(std::string const &)*arg2);
32280 _swig_thread_allow.end();
32282 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[5], ((0x1 << 1) | 0x1) | 0);
32283 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
32284 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
32287 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
32288 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
32291 static __attribute__ ((__unused__)) PyObject *_wrap_new_DatabaseCorruptError__SWIG_3(PyObject *, int nobjs, PyObject **swig_obj) {
32292 PyObject *resultobj = 0;
32293 std::string *arg1 = 0 ;
32295 Xapian::DatabaseCorruptError *result = 0 ;
32296 if ((nobjs < 1) || (nobjs > 1)) goto fail;
32298 std::string *ptr = (std::string *)0;
32299 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
32300 if (!(res1 >= 0)) {
32301 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_DatabaseCorruptError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
32304 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseCorruptError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
32309 SWIG_Python_Thread_Allow _swig_thread_allow;
32310 result = (Xapian::DatabaseCorruptError *)new Xapian::DatabaseCorruptError((std::string const &)*arg1);
32311 _swig_thread_allow.end();
32313 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[5], ((0x1 << 1) | 0x1) | 0);
32314 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
32317 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
32320 static __attribute__ ((__unused__)) PyObject *_wrap_new_DatabaseCorruptError__SWIG_4(PyObject *, int nobjs, PyObject **swig_obj) {
32321 PyObject *resultobj = 0;
32322 std::string *arg1 = 0 ;
32327 Xapian::DatabaseCorruptError *result = 0 ;
32328 if ((nobjs < 2) || (nobjs > 2)) goto fail;
32330 std::string *ptr = (std::string *)0;
32331 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
32332 if (!(res1 >= 0)) {
32333 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_DatabaseCorruptError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
32336 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseCorruptError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
32340 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
32341 if (!(ecode2 >= 0)) {
32342 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_DatabaseCorruptError" "', argument " "2"" of type '" "int""'"); goto fail; } while(0);
32344 arg2 = static_cast< int >(val2);
32346 SWIG_Python_Thread_Allow _swig_thread_allow;
32347 result = (Xapian::DatabaseCorruptError *)new Xapian::DatabaseCorruptError((std::string const &)*arg1,arg2);
32348 _swig_thread_allow.end();
32350 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[5], ((0x1 << 1) | 0x1) | 0);
32351 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
32354 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
32357 static __attribute__ ((__unused__)) PyObject *_wrap_new_DatabaseCorruptError(PyObject *self, PyObject *args) {
32360 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DatabaseCorruptError",0,3,argv))) goto fail;
32363 return _wrap_new_DatabaseCorruptError__SWIG_3(self, argc, argv);
32369 int res = SWIG_AsVal_int(argv[1], __null);
32370 _v = ((res >= 0) ? 1 : 0);
32373 if (!_v) goto check_2;
32374 return _wrap_new_DatabaseCorruptError__SWIG_4(self, argc, argv);
32378 return _wrap_new_DatabaseCorruptError__SWIG_2(self, argc, argv);
32384 int res = SWIG_AsVal_int(argv[2], __null);
32385 _v = ((res >= 0) ? 1 : 0);
32388 if (!_v) goto check_4;
32389 return _wrap_new_DatabaseCorruptError__SWIG_1(self, argc, argv);
32393 return _wrap_new_DatabaseCorruptError__SWIG_0(self, argc, argv);
32396 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_DatabaseCorruptError'.\n"
32397 " Possible C/C++ prototypes are:\n"
32398 " Xapian::DatabaseCorruptError(std::string const &,std::string const &,char const *)\n"
32399 " Xapian::DatabaseCorruptError(std::string const &,std::string const &,int)\n"
32400 " Xapian::DatabaseCorruptError(std::string const &,std::string const &)\n"
32401 " Xapian::DatabaseCorruptError(std::string const &)\n"
32402 " Xapian::DatabaseCorruptError(std::string const &,int)\n");
32405 static __attribute__ ((__unused__)) PyObject *_wrap_delete_DatabaseCorruptError(PyObject *, PyObject *args) {
32406 PyObject *resultobj = 0;
32407 Xapian::DatabaseCorruptError *arg1 = (Xapian::DatabaseCorruptError *) 0 ;
32410 PyObject *swig_obj[1] ;
32411 if (!args) goto fail;
32412 swig_obj[0] = args;
32413 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[5], 0x1 | 0, 0);
32414 if (!(res1 >= 0)) {
32415 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_DatabaseCorruptError" "', argument " "1"" of type '" "Xapian::DatabaseCorruptError *""'"); goto fail; } while(0);
32417 arg1 = reinterpret_cast< Xapian::DatabaseCorruptError * >(argp1);
32419 SWIG_Python_Thread_Allow _swig_thread_allow;
32424 _swig_thread_allow.end();
32425 Xapian::SetPythonException();
32429 _swig_thread_allow.end();
32431 resultobj = SWIG_Py_Void();
32436 static __attribute__ ((__unused__)) PyObject *DatabaseCorruptError_swigregister(PyObject *, PyObject *args) {
32438 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
32439 SWIG_TypeNewClientData(swig_types[5], SwigPyClientData_New(obj));
32440 return SWIG_Py_Void();
32442 static __attribute__ ((__unused__)) PyObject *DatabaseCorruptError_swiginit(PyObject *, PyObject *args) {
32443 return SWIG_Python_InitShadowInstance(args);
32445 static __attribute__ ((__unused__)) PyObject *_wrap_new_DatabaseCreateError__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
32446 PyObject *resultobj = 0;
32447 std::string *arg1 = 0 ;
32448 std::string *arg2 = 0 ;
32449 char *arg3 = (char *) 0 ;
32455 Xapian::DatabaseCreateError *result = 0 ;
32456 if ((nobjs < 3) || (nobjs > 3)) goto fail;
32458 std::string *ptr = (std::string *)0;
32459 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
32460 if (!(res1 >= 0)) {
32461 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_DatabaseCreateError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
32464 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseCreateError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
32469 std::string *ptr = (std::string *)0;
32470 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
32471 if (!(res2 >= 0)) {
32472 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_DatabaseCreateError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
32475 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseCreateError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
32479 res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, __null, &alloc3);
32480 if (!(res3 >= 0)) {
32481 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (-1)) ? res3 : -5)), "in method '" "new_DatabaseCreateError" "', argument " "3"" of type '" "char const *""'"); goto fail; } while(0);
32483 arg3 = reinterpret_cast< char * >(buf3);
32485 SWIG_Python_Thread_Allow _swig_thread_allow;
32486 result = (Xapian::DatabaseCreateError *)new Xapian::DatabaseCreateError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
32487 _swig_thread_allow.end();
32489 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[6], ((0x1 << 1) | 0x1) | 0);
32490 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
32491 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
32492 if (alloc3 == ((0) | ((1 << 8) << 1))) delete[] buf3;
32495 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
32496 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
32497 if (alloc3 == ((0) | ((1 << 8) << 1))) delete[] buf3;
32500 static __attribute__ ((__unused__)) PyObject *_wrap_new_DatabaseCreateError__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
32501 PyObject *resultobj = 0;
32502 std::string *arg1 = 0 ;
32503 std::string *arg2 = 0 ;
32509 Xapian::DatabaseCreateError *result = 0 ;
32510 if ((nobjs < 3) || (nobjs > 3)) goto fail;
32512 std::string *ptr = (std::string *)0;
32513 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
32514 if (!(res1 >= 0)) {
32515 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_DatabaseCreateError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
32518 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseCreateError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
32523 std::string *ptr = (std::string *)0;
32524 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
32525 if (!(res2 >= 0)) {
32526 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_DatabaseCreateError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
32529 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseCreateError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
32533 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
32534 if (!(ecode3 >= 0)) {
32535 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "new_DatabaseCreateError" "', argument " "3"" of type '" "int""'"); goto fail; } while(0);
32537 arg3 = static_cast< int >(val3);
32539 SWIG_Python_Thread_Allow _swig_thread_allow;
32540 result = (Xapian::DatabaseCreateError *)new Xapian::DatabaseCreateError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
32541 _swig_thread_allow.end();
32543 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[6], ((0x1 << 1) | 0x1) | 0);
32544 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
32545 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
32548 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
32549 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
32552 static __attribute__ ((__unused__)) PyObject *_wrap_new_DatabaseCreateError__SWIG_2(PyObject *, int nobjs, PyObject **swig_obj) {
32553 PyObject *resultobj = 0;
32554 std::string *arg1 = 0 ;
32555 std::string *arg2 = 0 ;
32558 Xapian::DatabaseCreateError *result = 0 ;
32559 if ((nobjs < 2) || (nobjs > 2)) goto fail;
32561 std::string *ptr = (std::string *)0;
32562 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
32563 if (!(res1 >= 0)) {
32564 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_DatabaseCreateError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
32567 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseCreateError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
32572 std::string *ptr = (std::string *)0;
32573 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
32574 if (!(res2 >= 0)) {
32575 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_DatabaseCreateError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
32578 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseCreateError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
32583 SWIG_Python_Thread_Allow _swig_thread_allow;
32584 result = (Xapian::DatabaseCreateError *)new Xapian::DatabaseCreateError((std::string const &)*arg1,(std::string const &)*arg2);
32585 _swig_thread_allow.end();
32587 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[6], ((0x1 << 1) | 0x1) | 0);
32588 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
32589 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
32592 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
32593 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
32596 static __attribute__ ((__unused__)) PyObject *_wrap_new_DatabaseCreateError__SWIG_3(PyObject *, int nobjs, PyObject **swig_obj) {
32597 PyObject *resultobj = 0;
32598 std::string *arg1 = 0 ;
32600 Xapian::DatabaseCreateError *result = 0 ;
32601 if ((nobjs < 1) || (nobjs > 1)) goto fail;
32603 std::string *ptr = (std::string *)0;
32604 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
32605 if (!(res1 >= 0)) {
32606 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_DatabaseCreateError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
32609 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseCreateError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
32614 SWIG_Python_Thread_Allow _swig_thread_allow;
32615 result = (Xapian::DatabaseCreateError *)new Xapian::DatabaseCreateError((std::string const &)*arg1);
32616 _swig_thread_allow.end();
32618 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[6], ((0x1 << 1) | 0x1) | 0);
32619 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
32622 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
32625 static __attribute__ ((__unused__)) PyObject *_wrap_new_DatabaseCreateError__SWIG_4(PyObject *, int nobjs, PyObject **swig_obj) {
32626 PyObject *resultobj = 0;
32627 std::string *arg1 = 0 ;
32632 Xapian::DatabaseCreateError *result = 0 ;
32633 if ((nobjs < 2) || (nobjs > 2)) goto fail;
32635 std::string *ptr = (std::string *)0;
32636 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
32637 if (!(res1 >= 0)) {
32638 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_DatabaseCreateError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
32641 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseCreateError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
32645 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
32646 if (!(ecode2 >= 0)) {
32647 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_DatabaseCreateError" "', argument " "2"" of type '" "int""'"); goto fail; } while(0);
32649 arg2 = static_cast< int >(val2);
32651 SWIG_Python_Thread_Allow _swig_thread_allow;
32652 result = (Xapian::DatabaseCreateError *)new Xapian::DatabaseCreateError((std::string const &)*arg1,arg2);
32653 _swig_thread_allow.end();
32655 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[6], ((0x1 << 1) | 0x1) | 0);
32656 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
32659 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
32662 static __attribute__ ((__unused__)) PyObject *_wrap_new_DatabaseCreateError(PyObject *self, PyObject *args) {
32665 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DatabaseCreateError",0,3,argv))) goto fail;
32668 return _wrap_new_DatabaseCreateError__SWIG_3(self, argc, argv);
32674 int res = SWIG_AsVal_int(argv[1], __null);
32675 _v = ((res >= 0) ? 1 : 0);
32678 if (!_v) goto check_2;
32679 return _wrap_new_DatabaseCreateError__SWIG_4(self, argc, argv);
32683 return _wrap_new_DatabaseCreateError__SWIG_2(self, argc, argv);
32689 int res = SWIG_AsVal_int(argv[2], __null);
32690 _v = ((res >= 0) ? 1 : 0);
32693 if (!_v) goto check_4;
32694 return _wrap_new_DatabaseCreateError__SWIG_1(self, argc, argv);
32698 return _wrap_new_DatabaseCreateError__SWIG_0(self, argc, argv);
32701 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_DatabaseCreateError'.\n"
32702 " Possible C/C++ prototypes are:\n"
32703 " Xapian::DatabaseCreateError(std::string const &,std::string const &,char const *)\n"
32704 " Xapian::DatabaseCreateError(std::string const &,std::string const &,int)\n"
32705 " Xapian::DatabaseCreateError(std::string const &,std::string const &)\n"
32706 " Xapian::DatabaseCreateError(std::string const &)\n"
32707 " Xapian::DatabaseCreateError(std::string const &,int)\n");
32710 static __attribute__ ((__unused__)) PyObject *_wrap_delete_DatabaseCreateError(PyObject *, PyObject *args) {
32711 PyObject *resultobj = 0;
32712 Xapian::DatabaseCreateError *arg1 = (Xapian::DatabaseCreateError *) 0 ;
32715 PyObject *swig_obj[1] ;
32716 if (!args) goto fail;
32717 swig_obj[0] = args;
32718 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[6], 0x1 | 0, 0);
32719 if (!(res1 >= 0)) {
32720 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_DatabaseCreateError" "', argument " "1"" of type '" "Xapian::DatabaseCreateError *""'"); goto fail; } while(0);
32722 arg1 = reinterpret_cast< Xapian::DatabaseCreateError * >(argp1);
32724 SWIG_Python_Thread_Allow _swig_thread_allow;
32729 _swig_thread_allow.end();
32730 Xapian::SetPythonException();
32734 _swig_thread_allow.end();
32736 resultobj = SWIG_Py_Void();
32741 static __attribute__ ((__unused__)) PyObject *DatabaseCreateError_swigregister(PyObject *, PyObject *args) {
32743 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
32744 SWIG_TypeNewClientData(swig_types[6], SwigPyClientData_New(obj));
32745 return SWIG_Py_Void();
32747 static __attribute__ ((__unused__)) PyObject *DatabaseCreateError_swiginit(PyObject *, PyObject *args) {
32748 return SWIG_Python_InitShadowInstance(args);
32750 static __attribute__ ((__unused__)) PyObject *_wrap_new_DatabaseLockError__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
32751 PyObject *resultobj = 0;
32752 std::string *arg1 = 0 ;
32753 std::string *arg2 = 0 ;
32754 char *arg3 = (char *) 0 ;
32760 Xapian::DatabaseLockError *result = 0 ;
32761 if ((nobjs < 3) || (nobjs > 3)) goto fail;
32763 std::string *ptr = (std::string *)0;
32764 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
32765 if (!(res1 >= 0)) {
32766 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_DatabaseLockError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
32769 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseLockError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
32774 std::string *ptr = (std::string *)0;
32775 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
32776 if (!(res2 >= 0)) {
32777 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_DatabaseLockError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
32780 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseLockError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
32784 res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, __null, &alloc3);
32785 if (!(res3 >= 0)) {
32786 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (-1)) ? res3 : -5)), "in method '" "new_DatabaseLockError" "', argument " "3"" of type '" "char const *""'"); goto fail; } while(0);
32788 arg3 = reinterpret_cast< char * >(buf3);
32790 SWIG_Python_Thread_Allow _swig_thread_allow;
32791 result = (Xapian::DatabaseLockError *)new Xapian::DatabaseLockError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
32792 _swig_thread_allow.end();
32794 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[8], ((0x1 << 1) | 0x1) | 0);
32795 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
32796 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
32797 if (alloc3 == ((0) | ((1 << 8) << 1))) delete[] buf3;
32800 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
32801 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
32802 if (alloc3 == ((0) | ((1 << 8) << 1))) delete[] buf3;
32805 static __attribute__ ((__unused__)) PyObject *_wrap_new_DatabaseLockError__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
32806 PyObject *resultobj = 0;
32807 std::string *arg1 = 0 ;
32808 std::string *arg2 = 0 ;
32814 Xapian::DatabaseLockError *result = 0 ;
32815 if ((nobjs < 3) || (nobjs > 3)) goto fail;
32817 std::string *ptr = (std::string *)0;
32818 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
32819 if (!(res1 >= 0)) {
32820 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_DatabaseLockError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
32823 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseLockError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
32828 std::string *ptr = (std::string *)0;
32829 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
32830 if (!(res2 >= 0)) {
32831 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_DatabaseLockError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
32834 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseLockError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
32838 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
32839 if (!(ecode3 >= 0)) {
32840 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "new_DatabaseLockError" "', argument " "3"" of type '" "int""'"); goto fail; } while(0);
32842 arg3 = static_cast< int >(val3);
32844 SWIG_Python_Thread_Allow _swig_thread_allow;
32845 result = (Xapian::DatabaseLockError *)new Xapian::DatabaseLockError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
32846 _swig_thread_allow.end();
32848 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[8], ((0x1 << 1) | 0x1) | 0);
32849 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
32850 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
32853 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
32854 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
32857 static __attribute__ ((__unused__)) PyObject *_wrap_new_DatabaseLockError__SWIG_2(PyObject *, int nobjs, PyObject **swig_obj) {
32858 PyObject *resultobj = 0;
32859 std::string *arg1 = 0 ;
32860 std::string *arg2 = 0 ;
32863 Xapian::DatabaseLockError *result = 0 ;
32864 if ((nobjs < 2) || (nobjs > 2)) goto fail;
32866 std::string *ptr = (std::string *)0;
32867 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
32868 if (!(res1 >= 0)) {
32869 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_DatabaseLockError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
32872 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseLockError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
32877 std::string *ptr = (std::string *)0;
32878 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
32879 if (!(res2 >= 0)) {
32880 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_DatabaseLockError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
32883 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseLockError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
32888 SWIG_Python_Thread_Allow _swig_thread_allow;
32889 result = (Xapian::DatabaseLockError *)new Xapian::DatabaseLockError((std::string const &)*arg1,(std::string const &)*arg2);
32890 _swig_thread_allow.end();
32892 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[8], ((0x1 << 1) | 0x1) | 0);
32893 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
32894 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
32897 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
32898 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
32901 static __attribute__ ((__unused__)) PyObject *_wrap_new_DatabaseLockError__SWIG_3(PyObject *, int nobjs, PyObject **swig_obj) {
32902 PyObject *resultobj = 0;
32903 std::string *arg1 = 0 ;
32905 Xapian::DatabaseLockError *result = 0 ;
32906 if ((nobjs < 1) || (nobjs > 1)) goto fail;
32908 std::string *ptr = (std::string *)0;
32909 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
32910 if (!(res1 >= 0)) {
32911 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_DatabaseLockError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
32914 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseLockError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
32919 SWIG_Python_Thread_Allow _swig_thread_allow;
32920 result = (Xapian::DatabaseLockError *)new Xapian::DatabaseLockError((std::string const &)*arg1);
32921 _swig_thread_allow.end();
32923 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[8], ((0x1 << 1) | 0x1) | 0);
32924 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
32927 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
32930 static __attribute__ ((__unused__)) PyObject *_wrap_new_DatabaseLockError__SWIG_4(PyObject *, int nobjs, PyObject **swig_obj) {
32931 PyObject *resultobj = 0;
32932 std::string *arg1 = 0 ;
32937 Xapian::DatabaseLockError *result = 0 ;
32938 if ((nobjs < 2) || (nobjs > 2)) goto fail;
32940 std::string *ptr = (std::string *)0;
32941 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
32942 if (!(res1 >= 0)) {
32943 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_DatabaseLockError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
32946 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseLockError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
32950 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
32951 if (!(ecode2 >= 0)) {
32952 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_DatabaseLockError" "', argument " "2"" of type '" "int""'"); goto fail; } while(0);
32954 arg2 = static_cast< int >(val2);
32956 SWIG_Python_Thread_Allow _swig_thread_allow;
32957 result = (Xapian::DatabaseLockError *)new Xapian::DatabaseLockError((std::string const &)*arg1,arg2);
32958 _swig_thread_allow.end();
32960 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[8], ((0x1 << 1) | 0x1) | 0);
32961 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
32964 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
32967 static __attribute__ ((__unused__)) PyObject *_wrap_new_DatabaseLockError(PyObject *self, PyObject *args) {
32970 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DatabaseLockError",0,3,argv))) goto fail;
32973 return _wrap_new_DatabaseLockError__SWIG_3(self, argc, argv);
32979 int res = SWIG_AsVal_int(argv[1], __null);
32980 _v = ((res >= 0) ? 1 : 0);
32983 if (!_v) goto check_2;
32984 return _wrap_new_DatabaseLockError__SWIG_4(self, argc, argv);
32988 return _wrap_new_DatabaseLockError__SWIG_2(self, argc, argv);
32994 int res = SWIG_AsVal_int(argv[2], __null);
32995 _v = ((res >= 0) ? 1 : 0);
32998 if (!_v) goto check_4;
32999 return _wrap_new_DatabaseLockError__SWIG_1(self, argc, argv);
33003 return _wrap_new_DatabaseLockError__SWIG_0(self, argc, argv);
33006 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_DatabaseLockError'.\n"
33007 " Possible C/C++ prototypes are:\n"
33008 " Xapian::DatabaseLockError(std::string const &,std::string const &,char const *)\n"
33009 " Xapian::DatabaseLockError(std::string const &,std::string const &,int)\n"
33010 " Xapian::DatabaseLockError(std::string const &,std::string const &)\n"
33011 " Xapian::DatabaseLockError(std::string const &)\n"
33012 " Xapian::DatabaseLockError(std::string const &,int)\n");
33015 static __attribute__ ((__unused__)) PyObject *_wrap_delete_DatabaseLockError(PyObject *, PyObject *args) {
33016 PyObject *resultobj = 0;
33017 Xapian::DatabaseLockError *arg1 = (Xapian::DatabaseLockError *) 0 ;
33020 PyObject *swig_obj[1] ;
33021 if (!args) goto fail;
33022 swig_obj[0] = args;
33023 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[8], 0x1 | 0, 0);
33024 if (!(res1 >= 0)) {
33025 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_DatabaseLockError" "', argument " "1"" of type '" "Xapian::DatabaseLockError *""'"); goto fail; } while(0);
33027 arg1 = reinterpret_cast< Xapian::DatabaseLockError * >(argp1);
33029 SWIG_Python_Thread_Allow _swig_thread_allow;
33034 _swig_thread_allow.end();
33035 Xapian::SetPythonException();
33039 _swig_thread_allow.end();
33041 resultobj = SWIG_Py_Void();
33046 static __attribute__ ((__unused__)) PyObject *DatabaseLockError_swigregister(PyObject *, PyObject *args) {
33048 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
33049 SWIG_TypeNewClientData(swig_types[8], SwigPyClientData_New(obj));
33050 return SWIG_Py_Void();
33052 static __attribute__ ((__unused__)) PyObject *DatabaseLockError_swiginit(PyObject *, PyObject *args) {
33053 return SWIG_Python_InitShadowInstance(args);
33055 static __attribute__ ((__unused__)) PyObject *_wrap_new_DatabaseModifiedError__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
33056 PyObject *resultobj = 0;
33057 std::string *arg1 = 0 ;
33058 std::string *arg2 = 0 ;
33059 char *arg3 = (char *) 0 ;
33065 Xapian::DatabaseModifiedError *result = 0 ;
33066 if ((nobjs < 3) || (nobjs > 3)) goto fail;
33068 std::string *ptr = (std::string *)0;
33069 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
33070 if (!(res1 >= 0)) {
33071 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_DatabaseModifiedError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
33074 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseModifiedError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
33079 std::string *ptr = (std::string *)0;
33080 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
33081 if (!(res2 >= 0)) {
33082 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_DatabaseModifiedError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
33085 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseModifiedError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
33089 res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, __null, &alloc3);
33090 if (!(res3 >= 0)) {
33091 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (-1)) ? res3 : -5)), "in method '" "new_DatabaseModifiedError" "', argument " "3"" of type '" "char const *""'"); goto fail; } while(0);
33093 arg3 = reinterpret_cast< char * >(buf3);
33095 SWIG_Python_Thread_Allow _swig_thread_allow;
33096 result = (Xapian::DatabaseModifiedError *)new Xapian::DatabaseModifiedError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
33097 _swig_thread_allow.end();
33099 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[9], ((0x1 << 1) | 0x1) | 0);
33100 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
33101 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
33102 if (alloc3 == ((0) | ((1 << 8) << 1))) delete[] buf3;
33105 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
33106 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
33107 if (alloc3 == ((0) | ((1 << 8) << 1))) delete[] buf3;
33110 static __attribute__ ((__unused__)) PyObject *_wrap_new_DatabaseModifiedError__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
33111 PyObject *resultobj = 0;
33112 std::string *arg1 = 0 ;
33113 std::string *arg2 = 0 ;
33119 Xapian::DatabaseModifiedError *result = 0 ;
33120 if ((nobjs < 3) || (nobjs > 3)) goto fail;
33122 std::string *ptr = (std::string *)0;
33123 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
33124 if (!(res1 >= 0)) {
33125 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_DatabaseModifiedError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
33128 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseModifiedError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
33133 std::string *ptr = (std::string *)0;
33134 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
33135 if (!(res2 >= 0)) {
33136 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_DatabaseModifiedError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
33139 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseModifiedError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
33143 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
33144 if (!(ecode3 >= 0)) {
33145 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "new_DatabaseModifiedError" "', argument " "3"" of type '" "int""'"); goto fail; } while(0);
33147 arg3 = static_cast< int >(val3);
33149 SWIG_Python_Thread_Allow _swig_thread_allow;
33150 result = (Xapian::DatabaseModifiedError *)new Xapian::DatabaseModifiedError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
33151 _swig_thread_allow.end();
33153 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[9], ((0x1 << 1) | 0x1) | 0);
33154 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
33155 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
33158 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
33159 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
33162 static __attribute__ ((__unused__)) PyObject *_wrap_new_DatabaseModifiedError__SWIG_2(PyObject *, int nobjs, PyObject **swig_obj) {
33163 PyObject *resultobj = 0;
33164 std::string *arg1 = 0 ;
33165 std::string *arg2 = 0 ;
33168 Xapian::DatabaseModifiedError *result = 0 ;
33169 if ((nobjs < 2) || (nobjs > 2)) goto fail;
33171 std::string *ptr = (std::string *)0;
33172 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
33173 if (!(res1 >= 0)) {
33174 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_DatabaseModifiedError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
33177 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseModifiedError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
33182 std::string *ptr = (std::string *)0;
33183 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
33184 if (!(res2 >= 0)) {
33185 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_DatabaseModifiedError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
33188 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseModifiedError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
33193 SWIG_Python_Thread_Allow _swig_thread_allow;
33194 result = (Xapian::DatabaseModifiedError *)new Xapian::DatabaseModifiedError((std::string const &)*arg1,(std::string const &)*arg2);
33195 _swig_thread_allow.end();
33197 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[9], ((0x1 << 1) | 0x1) | 0);
33198 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
33199 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
33202 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
33203 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
33206 static __attribute__ ((__unused__)) PyObject *_wrap_new_DatabaseModifiedError__SWIG_3(PyObject *, int nobjs, PyObject **swig_obj) {
33207 PyObject *resultobj = 0;
33208 std::string *arg1 = 0 ;
33210 Xapian::DatabaseModifiedError *result = 0 ;
33211 if ((nobjs < 1) || (nobjs > 1)) goto fail;
33213 std::string *ptr = (std::string *)0;
33214 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
33215 if (!(res1 >= 0)) {
33216 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_DatabaseModifiedError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
33219 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseModifiedError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
33224 SWIG_Python_Thread_Allow _swig_thread_allow;
33225 result = (Xapian::DatabaseModifiedError *)new Xapian::DatabaseModifiedError((std::string const &)*arg1);
33226 _swig_thread_allow.end();
33228 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[9], ((0x1 << 1) | 0x1) | 0);
33229 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
33232 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
33235 static __attribute__ ((__unused__)) PyObject *_wrap_new_DatabaseModifiedError__SWIG_4(PyObject *, int nobjs, PyObject **swig_obj) {
33236 PyObject *resultobj = 0;
33237 std::string *arg1 = 0 ;
33242 Xapian::DatabaseModifiedError *result = 0 ;
33243 if ((nobjs < 2) || (nobjs > 2)) goto fail;
33245 std::string *ptr = (std::string *)0;
33246 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
33247 if (!(res1 >= 0)) {
33248 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_DatabaseModifiedError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
33251 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseModifiedError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
33255 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
33256 if (!(ecode2 >= 0)) {
33257 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_DatabaseModifiedError" "', argument " "2"" of type '" "int""'"); goto fail; } while(0);
33259 arg2 = static_cast< int >(val2);
33261 SWIG_Python_Thread_Allow _swig_thread_allow;
33262 result = (Xapian::DatabaseModifiedError *)new Xapian::DatabaseModifiedError((std::string const &)*arg1,arg2);
33263 _swig_thread_allow.end();
33265 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[9], ((0x1 << 1) | 0x1) | 0);
33266 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
33269 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
33272 static __attribute__ ((__unused__)) PyObject *_wrap_new_DatabaseModifiedError(PyObject *self, PyObject *args) {
33275 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DatabaseModifiedError",0,3,argv))) goto fail;
33278 return _wrap_new_DatabaseModifiedError__SWIG_3(self, argc, argv);
33284 int res = SWIG_AsVal_int(argv[1], __null);
33285 _v = ((res >= 0) ? 1 : 0);
33288 if (!_v) goto check_2;
33289 return _wrap_new_DatabaseModifiedError__SWIG_4(self, argc, argv);
33293 return _wrap_new_DatabaseModifiedError__SWIG_2(self, argc, argv);
33299 int res = SWIG_AsVal_int(argv[2], __null);
33300 _v = ((res >= 0) ? 1 : 0);
33303 if (!_v) goto check_4;
33304 return _wrap_new_DatabaseModifiedError__SWIG_1(self, argc, argv);
33308 return _wrap_new_DatabaseModifiedError__SWIG_0(self, argc, argv);
33311 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_DatabaseModifiedError'.\n"
33312 " Possible C/C++ prototypes are:\n"
33313 " Xapian::DatabaseModifiedError(std::string const &,std::string const &,char const *)\n"
33314 " Xapian::DatabaseModifiedError(std::string const &,std::string const &,int)\n"
33315 " Xapian::DatabaseModifiedError(std::string const &,std::string const &)\n"
33316 " Xapian::DatabaseModifiedError(std::string const &)\n"
33317 " Xapian::DatabaseModifiedError(std::string const &,int)\n");
33320 static __attribute__ ((__unused__)) PyObject *_wrap_delete_DatabaseModifiedError(PyObject *, PyObject *args) {
33321 PyObject *resultobj = 0;
33322 Xapian::DatabaseModifiedError *arg1 = (Xapian::DatabaseModifiedError *) 0 ;
33325 PyObject *swig_obj[1] ;
33326 if (!args) goto fail;
33327 swig_obj[0] = args;
33328 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[9], 0x1 | 0, 0);
33329 if (!(res1 >= 0)) {
33330 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_DatabaseModifiedError" "', argument " "1"" of type '" "Xapian::DatabaseModifiedError *""'"); goto fail; } while(0);
33332 arg1 = reinterpret_cast< Xapian::DatabaseModifiedError * >(argp1);
33334 SWIG_Python_Thread_Allow _swig_thread_allow;
33339 _swig_thread_allow.end();
33340 Xapian::SetPythonException();
33344 _swig_thread_allow.end();
33346 resultobj = SWIG_Py_Void();
33351 static __attribute__ ((__unused__)) PyObject *DatabaseModifiedError_swigregister(PyObject *, PyObject *args) {
33353 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
33354 SWIG_TypeNewClientData(swig_types[9], SwigPyClientData_New(obj));
33355 return SWIG_Py_Void();
33357 static __attribute__ ((__unused__)) PyObject *DatabaseModifiedError_swiginit(PyObject *, PyObject *args) {
33358 return SWIG_Python_InitShadowInstance(args);
33360 static __attribute__ ((__unused__)) PyObject *_wrap_new_DatabaseOpeningError__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
33361 PyObject *resultobj = 0;
33362 std::string *arg1 = 0 ;
33363 std::string *arg2 = 0 ;
33364 char *arg3 = (char *) 0 ;
33370 Xapian::DatabaseOpeningError *result = 0 ;
33371 if ((nobjs < 3) || (nobjs > 3)) goto fail;
33373 std::string *ptr = (std::string *)0;
33374 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
33375 if (!(res1 >= 0)) {
33376 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_DatabaseOpeningError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
33379 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseOpeningError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
33384 std::string *ptr = (std::string *)0;
33385 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
33386 if (!(res2 >= 0)) {
33387 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_DatabaseOpeningError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
33390 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseOpeningError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
33394 res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, __null, &alloc3);
33395 if (!(res3 >= 0)) {
33396 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (-1)) ? res3 : -5)), "in method '" "new_DatabaseOpeningError" "', argument " "3"" of type '" "char const *""'"); goto fail; } while(0);
33398 arg3 = reinterpret_cast< char * >(buf3);
33400 SWIG_Python_Thread_Allow _swig_thread_allow;
33401 result = (Xapian::DatabaseOpeningError *)new Xapian::DatabaseOpeningError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
33402 _swig_thread_allow.end();
33404 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[10], ((0x1 << 1) | 0x1) | 0);
33405 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
33406 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
33407 if (alloc3 == ((0) | ((1 << 8) << 1))) delete[] buf3;
33410 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
33411 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
33412 if (alloc3 == ((0) | ((1 << 8) << 1))) delete[] buf3;
33415 static __attribute__ ((__unused__)) PyObject *_wrap_new_DatabaseOpeningError__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
33416 PyObject *resultobj = 0;
33417 std::string *arg1 = 0 ;
33418 std::string *arg2 = 0 ;
33424 Xapian::DatabaseOpeningError *result = 0 ;
33425 if ((nobjs < 3) || (nobjs > 3)) goto fail;
33427 std::string *ptr = (std::string *)0;
33428 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
33429 if (!(res1 >= 0)) {
33430 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_DatabaseOpeningError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
33433 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseOpeningError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
33438 std::string *ptr = (std::string *)0;
33439 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
33440 if (!(res2 >= 0)) {
33441 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_DatabaseOpeningError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
33444 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseOpeningError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
33448 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
33449 if (!(ecode3 >= 0)) {
33450 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "new_DatabaseOpeningError" "', argument " "3"" of type '" "int""'"); goto fail; } while(0);
33452 arg3 = static_cast< int >(val3);
33454 SWIG_Python_Thread_Allow _swig_thread_allow;
33455 result = (Xapian::DatabaseOpeningError *)new Xapian::DatabaseOpeningError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
33456 _swig_thread_allow.end();
33458 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[10], ((0x1 << 1) | 0x1) | 0);
33459 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
33460 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
33463 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
33464 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
33467 static __attribute__ ((__unused__)) PyObject *_wrap_new_DatabaseOpeningError__SWIG_2(PyObject *, int nobjs, PyObject **swig_obj) {
33468 PyObject *resultobj = 0;
33469 std::string *arg1 = 0 ;
33470 std::string *arg2 = 0 ;
33473 Xapian::DatabaseOpeningError *result = 0 ;
33474 if ((nobjs < 2) || (nobjs > 2)) goto fail;
33476 std::string *ptr = (std::string *)0;
33477 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
33478 if (!(res1 >= 0)) {
33479 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_DatabaseOpeningError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
33482 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseOpeningError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
33487 std::string *ptr = (std::string *)0;
33488 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
33489 if (!(res2 >= 0)) {
33490 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_DatabaseOpeningError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
33493 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseOpeningError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
33498 SWIG_Python_Thread_Allow _swig_thread_allow;
33499 result = (Xapian::DatabaseOpeningError *)new Xapian::DatabaseOpeningError((std::string const &)*arg1,(std::string const &)*arg2);
33500 _swig_thread_allow.end();
33502 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[10], ((0x1 << 1) | 0x1) | 0);
33503 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
33504 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
33507 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
33508 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
33511 static __attribute__ ((__unused__)) PyObject *_wrap_new_DatabaseOpeningError__SWIG_3(PyObject *, int nobjs, PyObject **swig_obj) {
33512 PyObject *resultobj = 0;
33513 std::string *arg1 = 0 ;
33515 Xapian::DatabaseOpeningError *result = 0 ;
33516 if ((nobjs < 1) || (nobjs > 1)) goto fail;
33518 std::string *ptr = (std::string *)0;
33519 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
33520 if (!(res1 >= 0)) {
33521 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_DatabaseOpeningError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
33524 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseOpeningError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
33529 SWIG_Python_Thread_Allow _swig_thread_allow;
33530 result = (Xapian::DatabaseOpeningError *)new Xapian::DatabaseOpeningError((std::string const &)*arg1);
33531 _swig_thread_allow.end();
33533 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[10], ((0x1 << 1) | 0x1) | 0);
33534 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
33537 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
33540 static __attribute__ ((__unused__)) PyObject *_wrap_new_DatabaseOpeningError__SWIG_4(PyObject *, int nobjs, PyObject **swig_obj) {
33541 PyObject *resultobj = 0;
33542 std::string *arg1 = 0 ;
33547 Xapian::DatabaseOpeningError *result = 0 ;
33548 if ((nobjs < 2) || (nobjs > 2)) goto fail;
33550 std::string *ptr = (std::string *)0;
33551 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
33552 if (!(res1 >= 0)) {
33553 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_DatabaseOpeningError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
33556 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseOpeningError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
33560 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
33561 if (!(ecode2 >= 0)) {
33562 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_DatabaseOpeningError" "', argument " "2"" of type '" "int""'"); goto fail; } while(0);
33564 arg2 = static_cast< int >(val2);
33566 SWIG_Python_Thread_Allow _swig_thread_allow;
33567 result = (Xapian::DatabaseOpeningError *)new Xapian::DatabaseOpeningError((std::string const &)*arg1,arg2);
33568 _swig_thread_allow.end();
33570 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[10], ((0x1 << 1) | 0x1) | 0);
33571 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
33574 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
33577 static __attribute__ ((__unused__)) PyObject *_wrap_new_DatabaseOpeningError(PyObject *self, PyObject *args) {
33580 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DatabaseOpeningError",0,3,argv))) goto fail;
33583 return _wrap_new_DatabaseOpeningError__SWIG_3(self, argc, argv);
33589 int res = SWIG_AsVal_int(argv[1], __null);
33590 _v = ((res >= 0) ? 1 : 0);
33593 if (!_v) goto check_2;
33594 return _wrap_new_DatabaseOpeningError__SWIG_4(self, argc, argv);
33598 return _wrap_new_DatabaseOpeningError__SWIG_2(self, argc, argv);
33604 int res = SWIG_AsVal_int(argv[2], __null);
33605 _v = ((res >= 0) ? 1 : 0);
33608 if (!_v) goto check_4;
33609 return _wrap_new_DatabaseOpeningError__SWIG_1(self, argc, argv);
33613 return _wrap_new_DatabaseOpeningError__SWIG_0(self, argc, argv);
33616 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_DatabaseOpeningError'.\n"
33617 " Possible C/C++ prototypes are:\n"
33618 " Xapian::DatabaseOpeningError(std::string const &,std::string const &,char const *)\n"
33619 " Xapian::DatabaseOpeningError(std::string const &,std::string const &,int)\n"
33620 " Xapian::DatabaseOpeningError(std::string const &,std::string const &)\n"
33621 " Xapian::DatabaseOpeningError(std::string const &)\n"
33622 " Xapian::DatabaseOpeningError(std::string const &,int)\n");
33625 static __attribute__ ((__unused__)) PyObject *_wrap_delete_DatabaseOpeningError(PyObject *, PyObject *args) {
33626 PyObject *resultobj = 0;
33627 Xapian::DatabaseOpeningError *arg1 = (Xapian::DatabaseOpeningError *) 0 ;
33630 PyObject *swig_obj[1] ;
33631 if (!args) goto fail;
33632 swig_obj[0] = args;
33633 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[10], 0x1 | 0, 0);
33634 if (!(res1 >= 0)) {
33635 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_DatabaseOpeningError" "', argument " "1"" of type '" "Xapian::DatabaseOpeningError *""'"); goto fail; } while(0);
33637 arg1 = reinterpret_cast< Xapian::DatabaseOpeningError * >(argp1);
33639 SWIG_Python_Thread_Allow _swig_thread_allow;
33644 _swig_thread_allow.end();
33645 Xapian::SetPythonException();
33649 _swig_thread_allow.end();
33651 resultobj = SWIG_Py_Void();
33656 static __attribute__ ((__unused__)) PyObject *DatabaseOpeningError_swigregister(PyObject *, PyObject *args) {
33658 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
33659 SWIG_TypeNewClientData(swig_types[10], SwigPyClientData_New(obj));
33660 return SWIG_Py_Void();
33662 static __attribute__ ((__unused__)) PyObject *DatabaseOpeningError_swiginit(PyObject *, PyObject *args) {
33663 return SWIG_Python_InitShadowInstance(args);
33665 static __attribute__ ((__unused__)) PyObject *_wrap_new_DatabaseVersionError__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
33666 PyObject *resultobj = 0;
33667 std::string *arg1 = 0 ;
33668 std::string *arg2 = 0 ;
33669 char *arg3 = (char *) 0 ;
33675 Xapian::DatabaseVersionError *result = 0 ;
33676 if ((nobjs < 3) || (nobjs > 3)) goto fail;
33678 std::string *ptr = (std::string *)0;
33679 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
33680 if (!(res1 >= 0)) {
33681 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_DatabaseVersionError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
33684 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseVersionError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
33689 std::string *ptr = (std::string *)0;
33690 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
33691 if (!(res2 >= 0)) {
33692 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_DatabaseVersionError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
33695 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseVersionError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
33699 res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, __null, &alloc3);
33700 if (!(res3 >= 0)) {
33701 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (-1)) ? res3 : -5)), "in method '" "new_DatabaseVersionError" "', argument " "3"" of type '" "char const *""'"); goto fail; } while(0);
33703 arg3 = reinterpret_cast< char * >(buf3);
33705 SWIG_Python_Thread_Allow _swig_thread_allow;
33706 result = (Xapian::DatabaseVersionError *)new Xapian::DatabaseVersionError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
33707 _swig_thread_allow.end();
33709 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[11], ((0x1 << 1) | 0x1) | 0);
33710 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
33711 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
33712 if (alloc3 == ((0) | ((1 << 8) << 1))) delete[] buf3;
33715 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
33716 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
33717 if (alloc3 == ((0) | ((1 << 8) << 1))) delete[] buf3;
33720 static __attribute__ ((__unused__)) PyObject *_wrap_new_DatabaseVersionError__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
33721 PyObject *resultobj = 0;
33722 std::string *arg1 = 0 ;
33723 std::string *arg2 = 0 ;
33729 Xapian::DatabaseVersionError *result = 0 ;
33730 if ((nobjs < 3) || (nobjs > 3)) goto fail;
33732 std::string *ptr = (std::string *)0;
33733 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
33734 if (!(res1 >= 0)) {
33735 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_DatabaseVersionError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
33738 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseVersionError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
33743 std::string *ptr = (std::string *)0;
33744 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
33745 if (!(res2 >= 0)) {
33746 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_DatabaseVersionError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
33749 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseVersionError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
33753 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
33754 if (!(ecode3 >= 0)) {
33755 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "new_DatabaseVersionError" "', argument " "3"" of type '" "int""'"); goto fail; } while(0);
33757 arg3 = static_cast< int >(val3);
33759 SWIG_Python_Thread_Allow _swig_thread_allow;
33760 result = (Xapian::DatabaseVersionError *)new Xapian::DatabaseVersionError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
33761 _swig_thread_allow.end();
33763 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[11], ((0x1 << 1) | 0x1) | 0);
33764 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
33765 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
33768 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
33769 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
33772 static __attribute__ ((__unused__)) PyObject *_wrap_new_DatabaseVersionError__SWIG_2(PyObject *, int nobjs, PyObject **swig_obj) {
33773 PyObject *resultobj = 0;
33774 std::string *arg1 = 0 ;
33775 std::string *arg2 = 0 ;
33778 Xapian::DatabaseVersionError *result = 0 ;
33779 if ((nobjs < 2) || (nobjs > 2)) goto fail;
33781 std::string *ptr = (std::string *)0;
33782 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
33783 if (!(res1 >= 0)) {
33784 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_DatabaseVersionError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
33787 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseVersionError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
33792 std::string *ptr = (std::string *)0;
33793 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
33794 if (!(res2 >= 0)) {
33795 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_DatabaseVersionError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
33798 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseVersionError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
33803 SWIG_Python_Thread_Allow _swig_thread_allow;
33804 result = (Xapian::DatabaseVersionError *)new Xapian::DatabaseVersionError((std::string const &)*arg1,(std::string const &)*arg2);
33805 _swig_thread_allow.end();
33807 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[11], ((0x1 << 1) | 0x1) | 0);
33808 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
33809 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
33812 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
33813 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
33816 static __attribute__ ((__unused__)) PyObject *_wrap_new_DatabaseVersionError__SWIG_3(PyObject *, int nobjs, PyObject **swig_obj) {
33817 PyObject *resultobj = 0;
33818 std::string *arg1 = 0 ;
33820 Xapian::DatabaseVersionError *result = 0 ;
33821 if ((nobjs < 1) || (nobjs > 1)) goto fail;
33823 std::string *ptr = (std::string *)0;
33824 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
33825 if (!(res1 >= 0)) {
33826 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_DatabaseVersionError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
33829 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseVersionError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
33834 SWIG_Python_Thread_Allow _swig_thread_allow;
33835 result = (Xapian::DatabaseVersionError *)new Xapian::DatabaseVersionError((std::string const &)*arg1);
33836 _swig_thread_allow.end();
33838 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[11], ((0x1 << 1) | 0x1) | 0);
33839 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
33842 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
33845 static __attribute__ ((__unused__)) PyObject *_wrap_new_DatabaseVersionError__SWIG_4(PyObject *, int nobjs, PyObject **swig_obj) {
33846 PyObject *resultobj = 0;
33847 std::string *arg1 = 0 ;
33852 Xapian::DatabaseVersionError *result = 0 ;
33853 if ((nobjs < 2) || (nobjs > 2)) goto fail;
33855 std::string *ptr = (std::string *)0;
33856 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
33857 if (!(res1 >= 0)) {
33858 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_DatabaseVersionError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
33861 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DatabaseVersionError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
33865 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
33866 if (!(ecode2 >= 0)) {
33867 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_DatabaseVersionError" "', argument " "2"" of type '" "int""'"); goto fail; } while(0);
33869 arg2 = static_cast< int >(val2);
33871 SWIG_Python_Thread_Allow _swig_thread_allow;
33872 result = (Xapian::DatabaseVersionError *)new Xapian::DatabaseVersionError((std::string const &)*arg1,arg2);
33873 _swig_thread_allow.end();
33875 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[11], ((0x1 << 1) | 0x1) | 0);
33876 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
33879 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
33882 static __attribute__ ((__unused__)) PyObject *_wrap_new_DatabaseVersionError(PyObject *self, PyObject *args) {
33885 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DatabaseVersionError",0,3,argv))) goto fail;
33888 return _wrap_new_DatabaseVersionError__SWIG_3(self, argc, argv);
33894 int res = SWIG_AsVal_int(argv[1], __null);
33895 _v = ((res >= 0) ? 1 : 0);
33898 if (!_v) goto check_2;
33899 return _wrap_new_DatabaseVersionError__SWIG_4(self, argc, argv);
33903 return _wrap_new_DatabaseVersionError__SWIG_2(self, argc, argv);
33909 int res = SWIG_AsVal_int(argv[2], __null);
33910 _v = ((res >= 0) ? 1 : 0);
33913 if (!_v) goto check_4;
33914 return _wrap_new_DatabaseVersionError__SWIG_1(self, argc, argv);
33918 return _wrap_new_DatabaseVersionError__SWIG_0(self, argc, argv);
33921 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_DatabaseVersionError'.\n"
33922 " Possible C/C++ prototypes are:\n"
33923 " Xapian::DatabaseVersionError(std::string const &,std::string const &,char const *)\n"
33924 " Xapian::DatabaseVersionError(std::string const &,std::string const &,int)\n"
33925 " Xapian::DatabaseVersionError(std::string const &,std::string const &)\n"
33926 " Xapian::DatabaseVersionError(std::string const &)\n"
33927 " Xapian::DatabaseVersionError(std::string const &,int)\n");
33930 static __attribute__ ((__unused__)) PyObject *_wrap_delete_DatabaseVersionError(PyObject *, PyObject *args) {
33931 PyObject *resultobj = 0;
33932 Xapian::DatabaseVersionError *arg1 = (Xapian::DatabaseVersionError *) 0 ;
33935 PyObject *swig_obj[1] ;
33936 if (!args) goto fail;
33937 swig_obj[0] = args;
33938 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[11], 0x1 | 0, 0);
33939 if (!(res1 >= 0)) {
33940 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_DatabaseVersionError" "', argument " "1"" of type '" "Xapian::DatabaseVersionError *""'"); goto fail; } while(0);
33942 arg1 = reinterpret_cast< Xapian::DatabaseVersionError * >(argp1);
33944 SWIG_Python_Thread_Allow _swig_thread_allow;
33949 _swig_thread_allow.end();
33950 Xapian::SetPythonException();
33954 _swig_thread_allow.end();
33956 resultobj = SWIG_Py_Void();
33961 static __attribute__ ((__unused__)) PyObject *DatabaseVersionError_swigregister(PyObject *, PyObject *args) {
33963 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
33964 SWIG_TypeNewClientData(swig_types[11], SwigPyClientData_New(obj));
33965 return SWIG_Py_Void();
33967 static __attribute__ ((__unused__)) PyObject *DatabaseVersionError_swiginit(PyObject *, PyObject *args) {
33968 return SWIG_Python_InitShadowInstance(args);
33970 static __attribute__ ((__unused__)) PyObject *_wrap_new_DocNotFoundError__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
33971 PyObject *resultobj = 0;
33972 std::string *arg1 = 0 ;
33973 std::string *arg2 = 0 ;
33974 char *arg3 = (char *) 0 ;
33980 Xapian::DocNotFoundError *result = 0 ;
33981 if ((nobjs < 3) || (nobjs > 3)) goto fail;
33983 std::string *ptr = (std::string *)0;
33984 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
33985 if (!(res1 >= 0)) {
33986 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_DocNotFoundError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
33989 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DocNotFoundError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
33994 std::string *ptr = (std::string *)0;
33995 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
33996 if (!(res2 >= 0)) {
33997 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_DocNotFoundError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
34000 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DocNotFoundError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
34004 res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, __null, &alloc3);
34005 if (!(res3 >= 0)) {
34006 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (-1)) ? res3 : -5)), "in method '" "new_DocNotFoundError" "', argument " "3"" of type '" "char const *""'"); goto fail; } while(0);
34008 arg3 = reinterpret_cast< char * >(buf3);
34010 SWIG_Python_Thread_Allow _swig_thread_allow;
34011 result = (Xapian::DocNotFoundError *)new Xapian::DocNotFoundError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
34012 _swig_thread_allow.end();
34014 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[14], ((0x1 << 1) | 0x1) | 0);
34015 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
34016 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
34017 if (alloc3 == ((0) | ((1 << 8) << 1))) delete[] buf3;
34020 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
34021 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
34022 if (alloc3 == ((0) | ((1 << 8) << 1))) delete[] buf3;
34025 static __attribute__ ((__unused__)) PyObject *_wrap_new_DocNotFoundError__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
34026 PyObject *resultobj = 0;
34027 std::string *arg1 = 0 ;
34028 std::string *arg2 = 0 ;
34034 Xapian::DocNotFoundError *result = 0 ;
34035 if ((nobjs < 3) || (nobjs > 3)) goto fail;
34037 std::string *ptr = (std::string *)0;
34038 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
34039 if (!(res1 >= 0)) {
34040 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_DocNotFoundError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
34043 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DocNotFoundError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
34048 std::string *ptr = (std::string *)0;
34049 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
34050 if (!(res2 >= 0)) {
34051 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_DocNotFoundError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
34054 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DocNotFoundError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
34058 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
34059 if (!(ecode3 >= 0)) {
34060 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "new_DocNotFoundError" "', argument " "3"" of type '" "int""'"); goto fail; } while(0);
34062 arg3 = static_cast< int >(val3);
34064 SWIG_Python_Thread_Allow _swig_thread_allow;
34065 result = (Xapian::DocNotFoundError *)new Xapian::DocNotFoundError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
34066 _swig_thread_allow.end();
34068 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[14], ((0x1 << 1) | 0x1) | 0);
34069 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
34070 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
34073 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
34074 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
34077 static __attribute__ ((__unused__)) PyObject *_wrap_new_DocNotFoundError__SWIG_2(PyObject *, int nobjs, PyObject **swig_obj) {
34078 PyObject *resultobj = 0;
34079 std::string *arg1 = 0 ;
34080 std::string *arg2 = 0 ;
34083 Xapian::DocNotFoundError *result = 0 ;
34084 if ((nobjs < 2) || (nobjs > 2)) goto fail;
34086 std::string *ptr = (std::string *)0;
34087 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
34088 if (!(res1 >= 0)) {
34089 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_DocNotFoundError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
34092 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DocNotFoundError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
34097 std::string *ptr = (std::string *)0;
34098 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
34099 if (!(res2 >= 0)) {
34100 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_DocNotFoundError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
34103 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DocNotFoundError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
34108 SWIG_Python_Thread_Allow _swig_thread_allow;
34109 result = (Xapian::DocNotFoundError *)new Xapian::DocNotFoundError((std::string const &)*arg1,(std::string const &)*arg2);
34110 _swig_thread_allow.end();
34112 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[14], ((0x1 << 1) | 0x1) | 0);
34113 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
34114 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
34117 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
34118 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
34121 static __attribute__ ((__unused__)) PyObject *_wrap_new_DocNotFoundError__SWIG_3(PyObject *, int nobjs, PyObject **swig_obj) {
34122 PyObject *resultobj = 0;
34123 std::string *arg1 = 0 ;
34125 Xapian::DocNotFoundError *result = 0 ;
34126 if ((nobjs < 1) || (nobjs > 1)) goto fail;
34128 std::string *ptr = (std::string *)0;
34129 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
34130 if (!(res1 >= 0)) {
34131 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_DocNotFoundError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
34134 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DocNotFoundError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
34139 SWIG_Python_Thread_Allow _swig_thread_allow;
34140 result = (Xapian::DocNotFoundError *)new Xapian::DocNotFoundError((std::string const &)*arg1);
34141 _swig_thread_allow.end();
34143 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[14], ((0x1 << 1) | 0x1) | 0);
34144 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
34147 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
34150 static __attribute__ ((__unused__)) PyObject *_wrap_new_DocNotFoundError__SWIG_4(PyObject *, int nobjs, PyObject **swig_obj) {
34151 PyObject *resultobj = 0;
34152 std::string *arg1 = 0 ;
34157 Xapian::DocNotFoundError *result = 0 ;
34158 if ((nobjs < 2) || (nobjs > 2)) goto fail;
34160 std::string *ptr = (std::string *)0;
34161 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
34162 if (!(res1 >= 0)) {
34163 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_DocNotFoundError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
34166 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DocNotFoundError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
34170 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
34171 if (!(ecode2 >= 0)) {
34172 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_DocNotFoundError" "', argument " "2"" of type '" "int""'"); goto fail; } while(0);
34174 arg2 = static_cast< int >(val2);
34176 SWIG_Python_Thread_Allow _swig_thread_allow;
34177 result = (Xapian::DocNotFoundError *)new Xapian::DocNotFoundError((std::string const &)*arg1,arg2);
34178 _swig_thread_allow.end();
34180 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[14], ((0x1 << 1) | 0x1) | 0);
34181 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
34184 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
34187 static __attribute__ ((__unused__)) PyObject *_wrap_new_DocNotFoundError(PyObject *self, PyObject *args) {
34190 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DocNotFoundError",0,3,argv))) goto fail;
34193 return _wrap_new_DocNotFoundError__SWIG_3(self, argc, argv);
34199 int res = SWIG_AsVal_int(argv[1], __null);
34200 _v = ((res >= 0) ? 1 : 0);
34203 if (!_v) goto check_2;
34204 return _wrap_new_DocNotFoundError__SWIG_4(self, argc, argv);
34208 return _wrap_new_DocNotFoundError__SWIG_2(self, argc, argv);
34214 int res = SWIG_AsVal_int(argv[2], __null);
34215 _v = ((res >= 0) ? 1 : 0);
34218 if (!_v) goto check_4;
34219 return _wrap_new_DocNotFoundError__SWIG_1(self, argc, argv);
34223 return _wrap_new_DocNotFoundError__SWIG_0(self, argc, argv);
34226 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_DocNotFoundError'.\n"
34227 " Possible C/C++ prototypes are:\n"
34228 " Xapian::DocNotFoundError(std::string const &,std::string const &,char const *)\n"
34229 " Xapian::DocNotFoundError(std::string const &,std::string const &,int)\n"
34230 " Xapian::DocNotFoundError(std::string const &,std::string const &)\n"
34231 " Xapian::DocNotFoundError(std::string const &)\n"
34232 " Xapian::DocNotFoundError(std::string const &,int)\n");
34235 static __attribute__ ((__unused__)) PyObject *_wrap_delete_DocNotFoundError(PyObject *, PyObject *args) {
34236 PyObject *resultobj = 0;
34237 Xapian::DocNotFoundError *arg1 = (Xapian::DocNotFoundError *) 0 ;
34240 PyObject *swig_obj[1] ;
34241 if (!args) goto fail;
34242 swig_obj[0] = args;
34243 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[14], 0x1 | 0, 0);
34244 if (!(res1 >= 0)) {
34245 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_DocNotFoundError" "', argument " "1"" of type '" "Xapian::DocNotFoundError *""'"); goto fail; } while(0);
34247 arg1 = reinterpret_cast< Xapian::DocNotFoundError * >(argp1);
34249 SWIG_Python_Thread_Allow _swig_thread_allow;
34254 _swig_thread_allow.end();
34255 Xapian::SetPythonException();
34259 _swig_thread_allow.end();
34261 resultobj = SWIG_Py_Void();
34266 static __attribute__ ((__unused__)) PyObject *DocNotFoundError_swigregister(PyObject *, PyObject *args) {
34268 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
34269 SWIG_TypeNewClientData(swig_types[14], SwigPyClientData_New(obj));
34270 return SWIG_Py_Void();
34272 static __attribute__ ((__unused__)) PyObject *DocNotFoundError_swiginit(PyObject *, PyObject *args) {
34273 return SWIG_Python_InitShadowInstance(args);
34275 static __attribute__ ((__unused__)) PyObject *_wrap_new_FeatureUnavailableError__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
34276 PyObject *resultobj = 0;
34277 std::string *arg1 = 0 ;
34278 std::string *arg2 = 0 ;
34279 char *arg3 = (char *) 0 ;
34285 Xapian::FeatureUnavailableError *result = 0 ;
34286 if ((nobjs < 3) || (nobjs > 3)) goto fail;
34288 std::string *ptr = (std::string *)0;
34289 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
34290 if (!(res1 >= 0)) {
34291 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_FeatureUnavailableError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
34294 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_FeatureUnavailableError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
34299 std::string *ptr = (std::string *)0;
34300 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
34301 if (!(res2 >= 0)) {
34302 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_FeatureUnavailableError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
34305 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_FeatureUnavailableError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
34309 res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, __null, &alloc3);
34310 if (!(res3 >= 0)) {
34311 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (-1)) ? res3 : -5)), "in method '" "new_FeatureUnavailableError" "', argument " "3"" of type '" "char const *""'"); goto fail; } while(0);
34313 arg3 = reinterpret_cast< char * >(buf3);
34315 SWIG_Python_Thread_Allow _swig_thread_allow;
34316 result = (Xapian::FeatureUnavailableError *)new Xapian::FeatureUnavailableError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
34317 _swig_thread_allow.end();
34319 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[21], ((0x1 << 1) | 0x1) | 0);
34320 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
34321 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
34322 if (alloc3 == ((0) | ((1 << 8) << 1))) delete[] buf3;
34325 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
34326 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
34327 if (alloc3 == ((0) | ((1 << 8) << 1))) delete[] buf3;
34330 static __attribute__ ((__unused__)) PyObject *_wrap_new_FeatureUnavailableError__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
34331 PyObject *resultobj = 0;
34332 std::string *arg1 = 0 ;
34333 std::string *arg2 = 0 ;
34339 Xapian::FeatureUnavailableError *result = 0 ;
34340 if ((nobjs < 3) || (nobjs > 3)) goto fail;
34342 std::string *ptr = (std::string *)0;
34343 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
34344 if (!(res1 >= 0)) {
34345 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_FeatureUnavailableError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
34348 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_FeatureUnavailableError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
34353 std::string *ptr = (std::string *)0;
34354 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
34355 if (!(res2 >= 0)) {
34356 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_FeatureUnavailableError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
34359 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_FeatureUnavailableError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
34363 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
34364 if (!(ecode3 >= 0)) {
34365 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "new_FeatureUnavailableError" "', argument " "3"" of type '" "int""'"); goto fail; } while(0);
34367 arg3 = static_cast< int >(val3);
34369 SWIG_Python_Thread_Allow _swig_thread_allow;
34370 result = (Xapian::FeatureUnavailableError *)new Xapian::FeatureUnavailableError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
34371 _swig_thread_allow.end();
34373 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[21], ((0x1 << 1) | 0x1) | 0);
34374 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
34375 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
34378 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
34379 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
34382 static __attribute__ ((__unused__)) PyObject *_wrap_new_FeatureUnavailableError__SWIG_2(PyObject *, int nobjs, PyObject **swig_obj) {
34383 PyObject *resultobj = 0;
34384 std::string *arg1 = 0 ;
34385 std::string *arg2 = 0 ;
34388 Xapian::FeatureUnavailableError *result = 0 ;
34389 if ((nobjs < 2) || (nobjs > 2)) goto fail;
34391 std::string *ptr = (std::string *)0;
34392 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
34393 if (!(res1 >= 0)) {
34394 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_FeatureUnavailableError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
34397 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_FeatureUnavailableError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
34402 std::string *ptr = (std::string *)0;
34403 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
34404 if (!(res2 >= 0)) {
34405 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_FeatureUnavailableError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
34408 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_FeatureUnavailableError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
34413 SWIG_Python_Thread_Allow _swig_thread_allow;
34414 result = (Xapian::FeatureUnavailableError *)new Xapian::FeatureUnavailableError((std::string const &)*arg1,(std::string const &)*arg2);
34415 _swig_thread_allow.end();
34417 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[21], ((0x1 << 1) | 0x1) | 0);
34418 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
34419 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
34422 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
34423 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
34426 static __attribute__ ((__unused__)) PyObject *_wrap_new_FeatureUnavailableError__SWIG_3(PyObject *, int nobjs, PyObject **swig_obj) {
34427 PyObject *resultobj = 0;
34428 std::string *arg1 = 0 ;
34430 Xapian::FeatureUnavailableError *result = 0 ;
34431 if ((nobjs < 1) || (nobjs > 1)) goto fail;
34433 std::string *ptr = (std::string *)0;
34434 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
34435 if (!(res1 >= 0)) {
34436 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_FeatureUnavailableError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
34439 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_FeatureUnavailableError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
34444 SWIG_Python_Thread_Allow _swig_thread_allow;
34445 result = (Xapian::FeatureUnavailableError *)new Xapian::FeatureUnavailableError((std::string const &)*arg1);
34446 _swig_thread_allow.end();
34448 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[21], ((0x1 << 1) | 0x1) | 0);
34449 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
34452 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
34455 static __attribute__ ((__unused__)) PyObject *_wrap_new_FeatureUnavailableError__SWIG_4(PyObject *, int nobjs, PyObject **swig_obj) {
34456 PyObject *resultobj = 0;
34457 std::string *arg1 = 0 ;
34462 Xapian::FeatureUnavailableError *result = 0 ;
34463 if ((nobjs < 2) || (nobjs > 2)) goto fail;
34465 std::string *ptr = (std::string *)0;
34466 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
34467 if (!(res1 >= 0)) {
34468 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_FeatureUnavailableError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
34471 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_FeatureUnavailableError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
34475 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
34476 if (!(ecode2 >= 0)) {
34477 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_FeatureUnavailableError" "', argument " "2"" of type '" "int""'"); goto fail; } while(0);
34479 arg2 = static_cast< int >(val2);
34481 SWIG_Python_Thread_Allow _swig_thread_allow;
34482 result = (Xapian::FeatureUnavailableError *)new Xapian::FeatureUnavailableError((std::string const &)*arg1,arg2);
34483 _swig_thread_allow.end();
34485 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[21], ((0x1 << 1) | 0x1) | 0);
34486 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
34489 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
34492 static __attribute__ ((__unused__)) PyObject *_wrap_new_FeatureUnavailableError(PyObject *self, PyObject *args) {
34495 if (!(argc = SWIG_Python_UnpackTuple(args,"new_FeatureUnavailableError",0,3,argv))) goto fail;
34498 return _wrap_new_FeatureUnavailableError__SWIG_3(self, argc, argv);
34504 int res = SWIG_AsVal_int(argv[1], __null);
34505 _v = ((res >= 0) ? 1 : 0);
34508 if (!_v) goto check_2;
34509 return _wrap_new_FeatureUnavailableError__SWIG_4(self, argc, argv);
34513 return _wrap_new_FeatureUnavailableError__SWIG_2(self, argc, argv);
34519 int res = SWIG_AsVal_int(argv[2], __null);
34520 _v = ((res >= 0) ? 1 : 0);
34523 if (!_v) goto check_4;
34524 return _wrap_new_FeatureUnavailableError__SWIG_1(self, argc, argv);
34528 return _wrap_new_FeatureUnavailableError__SWIG_0(self, argc, argv);
34531 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_FeatureUnavailableError'.\n"
34532 " Possible C/C++ prototypes are:\n"
34533 " Xapian::FeatureUnavailableError(std::string const &,std::string const &,char const *)\n"
34534 " Xapian::FeatureUnavailableError(std::string const &,std::string const &,int)\n"
34535 " Xapian::FeatureUnavailableError(std::string const &,std::string const &)\n"
34536 " Xapian::FeatureUnavailableError(std::string const &)\n"
34537 " Xapian::FeatureUnavailableError(std::string const &,int)\n");
34540 static __attribute__ ((__unused__)) PyObject *_wrap_delete_FeatureUnavailableError(PyObject *, PyObject *args) {
34541 PyObject *resultobj = 0;
34542 Xapian::FeatureUnavailableError *arg1 = (Xapian::FeatureUnavailableError *) 0 ;
34545 PyObject *swig_obj[1] ;
34546 if (!args) goto fail;
34547 swig_obj[0] = args;
34548 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[21], 0x1 | 0, 0);
34549 if (!(res1 >= 0)) {
34550 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_FeatureUnavailableError" "', argument " "1"" of type '" "Xapian::FeatureUnavailableError *""'"); goto fail; } while(0);
34552 arg1 = reinterpret_cast< Xapian::FeatureUnavailableError * >(argp1);
34554 SWIG_Python_Thread_Allow _swig_thread_allow;
34559 _swig_thread_allow.end();
34560 Xapian::SetPythonException();
34564 _swig_thread_allow.end();
34566 resultobj = SWIG_Py_Void();
34571 static __attribute__ ((__unused__)) PyObject *FeatureUnavailableError_swigregister(PyObject *, PyObject *args) {
34573 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
34574 SWIG_TypeNewClientData(swig_types[21], SwigPyClientData_New(obj));
34575 return SWIG_Py_Void();
34577 static __attribute__ ((__unused__)) PyObject *FeatureUnavailableError_swiginit(PyObject *, PyObject *args) {
34578 return SWIG_Python_InitShadowInstance(args);
34580 static __attribute__ ((__unused__)) PyObject *_wrap_new_InternalError__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
34581 PyObject *resultobj = 0;
34582 std::string *arg1 = 0 ;
34583 std::string *arg2 = 0 ;
34584 char *arg3 = (char *) 0 ;
34590 Xapian::InternalError *result = 0 ;
34591 if ((nobjs < 3) || (nobjs > 3)) goto fail;
34593 std::string *ptr = (std::string *)0;
34594 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
34595 if (!(res1 >= 0)) {
34596 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_InternalError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
34599 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_InternalError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
34604 std::string *ptr = (std::string *)0;
34605 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
34606 if (!(res2 >= 0)) {
34607 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_InternalError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
34610 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_InternalError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
34614 res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, __null, &alloc3);
34615 if (!(res3 >= 0)) {
34616 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (-1)) ? res3 : -5)), "in method '" "new_InternalError" "', argument " "3"" of type '" "char const *""'"); goto fail; } while(0);
34618 arg3 = reinterpret_cast< char * >(buf3);
34620 SWIG_Python_Thread_Allow _swig_thread_allow;
34621 result = (Xapian::InternalError *)new Xapian::InternalError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
34622 _swig_thread_allow.end();
34624 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[23], ((0x1 << 1) | 0x1) | 0);
34625 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
34626 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
34627 if (alloc3 == ((0) | ((1 << 8) << 1))) delete[] buf3;
34630 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
34631 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
34632 if (alloc3 == ((0) | ((1 << 8) << 1))) delete[] buf3;
34635 static __attribute__ ((__unused__)) PyObject *_wrap_new_InternalError__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
34636 PyObject *resultobj = 0;
34637 std::string *arg1 = 0 ;
34638 std::string *arg2 = 0 ;
34644 Xapian::InternalError *result = 0 ;
34645 if ((nobjs < 3) || (nobjs > 3)) goto fail;
34647 std::string *ptr = (std::string *)0;
34648 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
34649 if (!(res1 >= 0)) {
34650 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_InternalError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
34653 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_InternalError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
34658 std::string *ptr = (std::string *)0;
34659 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
34660 if (!(res2 >= 0)) {
34661 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_InternalError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
34664 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_InternalError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
34668 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
34669 if (!(ecode3 >= 0)) {
34670 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "new_InternalError" "', argument " "3"" of type '" "int""'"); goto fail; } while(0);
34672 arg3 = static_cast< int >(val3);
34674 SWIG_Python_Thread_Allow _swig_thread_allow;
34675 result = (Xapian::InternalError *)new Xapian::InternalError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
34676 _swig_thread_allow.end();
34678 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[23], ((0x1 << 1) | 0x1) | 0);
34679 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
34680 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
34683 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
34684 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
34687 static __attribute__ ((__unused__)) PyObject *_wrap_new_InternalError__SWIG_2(PyObject *, int nobjs, PyObject **swig_obj) {
34688 PyObject *resultobj = 0;
34689 std::string *arg1 = 0 ;
34690 std::string *arg2 = 0 ;
34693 Xapian::InternalError *result = 0 ;
34694 if ((nobjs < 2) || (nobjs > 2)) goto fail;
34696 std::string *ptr = (std::string *)0;
34697 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
34698 if (!(res1 >= 0)) {
34699 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_InternalError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
34702 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_InternalError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
34707 std::string *ptr = (std::string *)0;
34708 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
34709 if (!(res2 >= 0)) {
34710 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_InternalError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
34713 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_InternalError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
34718 SWIG_Python_Thread_Allow _swig_thread_allow;
34719 result = (Xapian::InternalError *)new Xapian::InternalError((std::string const &)*arg1,(std::string const &)*arg2);
34720 _swig_thread_allow.end();
34722 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[23], ((0x1 << 1) | 0x1) | 0);
34723 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
34724 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
34727 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
34728 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
34731 static __attribute__ ((__unused__)) PyObject *_wrap_new_InternalError__SWIG_3(PyObject *, int nobjs, PyObject **swig_obj) {
34732 PyObject *resultobj = 0;
34733 std::string *arg1 = 0 ;
34735 Xapian::InternalError *result = 0 ;
34736 if ((nobjs < 1) || (nobjs > 1)) goto fail;
34738 std::string *ptr = (std::string *)0;
34739 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
34740 if (!(res1 >= 0)) {
34741 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_InternalError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
34744 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_InternalError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
34749 SWIG_Python_Thread_Allow _swig_thread_allow;
34750 result = (Xapian::InternalError *)new Xapian::InternalError((std::string const &)*arg1);
34751 _swig_thread_allow.end();
34753 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[23], ((0x1 << 1) | 0x1) | 0);
34754 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
34757 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
34760 static __attribute__ ((__unused__)) PyObject *_wrap_new_InternalError__SWIG_4(PyObject *, int nobjs, PyObject **swig_obj) {
34761 PyObject *resultobj = 0;
34762 std::string *arg1 = 0 ;
34767 Xapian::InternalError *result = 0 ;
34768 if ((nobjs < 2) || (nobjs > 2)) goto fail;
34770 std::string *ptr = (std::string *)0;
34771 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
34772 if (!(res1 >= 0)) {
34773 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_InternalError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
34776 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_InternalError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
34780 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
34781 if (!(ecode2 >= 0)) {
34782 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_InternalError" "', argument " "2"" of type '" "int""'"); goto fail; } while(0);
34784 arg2 = static_cast< int >(val2);
34786 SWIG_Python_Thread_Allow _swig_thread_allow;
34787 result = (Xapian::InternalError *)new Xapian::InternalError((std::string const &)*arg1,arg2);
34788 _swig_thread_allow.end();
34790 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[23], ((0x1 << 1) | 0x1) | 0);
34791 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
34794 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
34797 static __attribute__ ((__unused__)) PyObject *_wrap_new_InternalError(PyObject *self, PyObject *args) {
34800 if (!(argc = SWIG_Python_UnpackTuple(args,"new_InternalError",0,3,argv))) goto fail;
34803 return _wrap_new_InternalError__SWIG_3(self, argc, argv);
34809 int res = SWIG_AsVal_int(argv[1], __null);
34810 _v = ((res >= 0) ? 1 : 0);
34813 if (!_v) goto check_2;
34814 return _wrap_new_InternalError__SWIG_4(self, argc, argv);
34818 return _wrap_new_InternalError__SWIG_2(self, argc, argv);
34824 int res = SWIG_AsVal_int(argv[2], __null);
34825 _v = ((res >= 0) ? 1 : 0);
34828 if (!_v) goto check_4;
34829 return _wrap_new_InternalError__SWIG_1(self, argc, argv);
34833 return _wrap_new_InternalError__SWIG_0(self, argc, argv);
34836 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_InternalError'.\n"
34837 " Possible C/C++ prototypes are:\n"
34838 " Xapian::InternalError(std::string const &,std::string const &,char const *)\n"
34839 " Xapian::InternalError(std::string const &,std::string const &,int)\n"
34840 " Xapian::InternalError(std::string const &,std::string const &)\n"
34841 " Xapian::InternalError(std::string const &)\n"
34842 " Xapian::InternalError(std::string const &,int)\n");
34845 static __attribute__ ((__unused__)) PyObject *_wrap_delete_InternalError(PyObject *, PyObject *args) {
34846 PyObject *resultobj = 0;
34847 Xapian::InternalError *arg1 = (Xapian::InternalError *) 0 ;
34850 PyObject *swig_obj[1] ;
34851 if (!args) goto fail;
34852 swig_obj[0] = args;
34853 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[23], 0x1 | 0, 0);
34854 if (!(res1 >= 0)) {
34855 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_InternalError" "', argument " "1"" of type '" "Xapian::InternalError *""'"); goto fail; } while(0);
34857 arg1 = reinterpret_cast< Xapian::InternalError * >(argp1);
34859 SWIG_Python_Thread_Allow _swig_thread_allow;
34864 _swig_thread_allow.end();
34865 Xapian::SetPythonException();
34869 _swig_thread_allow.end();
34871 resultobj = SWIG_Py_Void();
34876 static __attribute__ ((__unused__)) PyObject *InternalError_swigregister(PyObject *, PyObject *args) {
34878 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
34879 SWIG_TypeNewClientData(swig_types[23], SwigPyClientData_New(obj));
34880 return SWIG_Py_Void();
34882 static __attribute__ ((__unused__)) PyObject *InternalError_swiginit(PyObject *, PyObject *args) {
34883 return SWIG_Python_InitShadowInstance(args);
34885 static __attribute__ ((__unused__)) PyObject *_wrap_new_NetworkError__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
34886 PyObject *resultobj = 0;
34887 std::string *arg1 = 0 ;
34888 std::string *arg2 = 0 ;
34889 char *arg3 = (char *) 0 ;
34895 Xapian::NetworkError *result = 0 ;
34896 if ((nobjs < 3) || (nobjs > 3)) goto fail;
34898 std::string *ptr = (std::string *)0;
34899 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
34900 if (!(res1 >= 0)) {
34901 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_NetworkError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
34904 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_NetworkError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
34909 std::string *ptr = (std::string *)0;
34910 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
34911 if (!(res2 >= 0)) {
34912 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_NetworkError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
34915 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_NetworkError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
34919 res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, __null, &alloc3);
34920 if (!(res3 >= 0)) {
34921 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (-1)) ? res3 : -5)), "in method '" "new_NetworkError" "', argument " "3"" of type '" "char const *""'"); goto fail; } while(0);
34923 arg3 = reinterpret_cast< char * >(buf3);
34925 SWIG_Python_Thread_Allow _swig_thread_allow;
34926 result = (Xapian::NetworkError *)new Xapian::NetworkError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
34927 _swig_thread_allow.end();
34929 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[34], ((0x1 << 1) | 0x1) | 0);
34930 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
34931 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
34932 if (alloc3 == ((0) | ((1 << 8) << 1))) delete[] buf3;
34935 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
34936 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
34937 if (alloc3 == ((0) | ((1 << 8) << 1))) delete[] buf3;
34940 static __attribute__ ((__unused__)) PyObject *_wrap_new_NetworkError__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
34941 PyObject *resultobj = 0;
34942 std::string *arg1 = 0 ;
34943 std::string *arg2 = 0 ;
34949 Xapian::NetworkError *result = 0 ;
34950 if ((nobjs < 3) || (nobjs > 3)) goto fail;
34952 std::string *ptr = (std::string *)0;
34953 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
34954 if (!(res1 >= 0)) {
34955 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_NetworkError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
34958 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_NetworkError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
34963 std::string *ptr = (std::string *)0;
34964 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
34965 if (!(res2 >= 0)) {
34966 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_NetworkError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
34969 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_NetworkError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
34973 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
34974 if (!(ecode3 >= 0)) {
34975 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "new_NetworkError" "', argument " "3"" of type '" "int""'"); goto fail; } while(0);
34977 arg3 = static_cast< int >(val3);
34979 SWIG_Python_Thread_Allow _swig_thread_allow;
34980 result = (Xapian::NetworkError *)new Xapian::NetworkError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
34981 _swig_thread_allow.end();
34983 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[34], ((0x1 << 1) | 0x1) | 0);
34984 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
34985 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
34988 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
34989 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
34992 static __attribute__ ((__unused__)) PyObject *_wrap_new_NetworkError__SWIG_2(PyObject *, int nobjs, PyObject **swig_obj) {
34993 PyObject *resultobj = 0;
34994 std::string *arg1 = 0 ;
34995 std::string *arg2 = 0 ;
34998 Xapian::NetworkError *result = 0 ;
34999 if ((nobjs < 2) || (nobjs > 2)) goto fail;
35001 std::string *ptr = (std::string *)0;
35002 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
35003 if (!(res1 >= 0)) {
35004 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_NetworkError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
35007 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_NetworkError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
35012 std::string *ptr = (std::string *)0;
35013 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
35014 if (!(res2 >= 0)) {
35015 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_NetworkError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
35018 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_NetworkError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
35023 SWIG_Python_Thread_Allow _swig_thread_allow;
35024 result = (Xapian::NetworkError *)new Xapian::NetworkError((std::string const &)*arg1,(std::string const &)*arg2);
35025 _swig_thread_allow.end();
35027 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[34], ((0x1 << 1) | 0x1) | 0);
35028 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
35029 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
35032 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
35033 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
35036 static __attribute__ ((__unused__)) PyObject *_wrap_new_NetworkError__SWIG_3(PyObject *, int nobjs, PyObject **swig_obj) {
35037 PyObject *resultobj = 0;
35038 std::string *arg1 = 0 ;
35040 Xapian::NetworkError *result = 0 ;
35041 if ((nobjs < 1) || (nobjs > 1)) goto fail;
35043 std::string *ptr = (std::string *)0;
35044 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
35045 if (!(res1 >= 0)) {
35046 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_NetworkError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
35049 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_NetworkError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
35054 SWIG_Python_Thread_Allow _swig_thread_allow;
35055 result = (Xapian::NetworkError *)new Xapian::NetworkError((std::string const &)*arg1);
35056 _swig_thread_allow.end();
35058 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[34], ((0x1 << 1) | 0x1) | 0);
35059 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
35062 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
35065 static __attribute__ ((__unused__)) PyObject *_wrap_new_NetworkError__SWIG_4(PyObject *, int nobjs, PyObject **swig_obj) {
35066 PyObject *resultobj = 0;
35067 std::string *arg1 = 0 ;
35072 Xapian::NetworkError *result = 0 ;
35073 if ((nobjs < 2) || (nobjs > 2)) goto fail;
35075 std::string *ptr = (std::string *)0;
35076 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
35077 if (!(res1 >= 0)) {
35078 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_NetworkError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
35081 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_NetworkError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
35085 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
35086 if (!(ecode2 >= 0)) {
35087 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_NetworkError" "', argument " "2"" of type '" "int""'"); goto fail; } while(0);
35089 arg2 = static_cast< int >(val2);
35091 SWIG_Python_Thread_Allow _swig_thread_allow;
35092 result = (Xapian::NetworkError *)new Xapian::NetworkError((std::string const &)*arg1,arg2);
35093 _swig_thread_allow.end();
35095 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[34], ((0x1 << 1) | 0x1) | 0);
35096 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
35099 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
35102 static __attribute__ ((__unused__)) PyObject *_wrap_new_NetworkError(PyObject *self, PyObject *args) {
35105 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NetworkError",0,3,argv))) goto fail;
35108 return _wrap_new_NetworkError__SWIG_3(self, argc, argv);
35114 int res = SWIG_AsVal_int(argv[1], __null);
35115 _v = ((res >= 0) ? 1 : 0);
35118 if (!_v) goto check_2;
35119 return _wrap_new_NetworkError__SWIG_4(self, argc, argv);
35123 return _wrap_new_NetworkError__SWIG_2(self, argc, argv);
35129 int res = SWIG_AsVal_int(argv[2], __null);
35130 _v = ((res >= 0) ? 1 : 0);
35133 if (!_v) goto check_4;
35134 return _wrap_new_NetworkError__SWIG_1(self, argc, argv);
35138 return _wrap_new_NetworkError__SWIG_0(self, argc, argv);
35141 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_NetworkError'.\n"
35142 " Possible C/C++ prototypes are:\n"
35143 " Xapian::NetworkError(std::string const &,std::string const &,char const *)\n"
35144 " Xapian::NetworkError(std::string const &,std::string const &,int)\n"
35145 " Xapian::NetworkError(std::string const &,std::string const &)\n"
35146 " Xapian::NetworkError(std::string const &)\n"
35147 " Xapian::NetworkError(std::string const &,int)\n");
35150 static __attribute__ ((__unused__)) PyObject *_wrap_delete_NetworkError(PyObject *, PyObject *args) {
35151 PyObject *resultobj = 0;
35152 Xapian::NetworkError *arg1 = (Xapian::NetworkError *) 0 ;
35155 PyObject *swig_obj[1] ;
35156 if (!args) goto fail;
35157 swig_obj[0] = args;
35158 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[34], 0x1 | 0, 0);
35159 if (!(res1 >= 0)) {
35160 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_NetworkError" "', argument " "1"" of type '" "Xapian::NetworkError *""'"); goto fail; } while(0);
35162 arg1 = reinterpret_cast< Xapian::NetworkError * >(argp1);
35164 SWIG_Python_Thread_Allow _swig_thread_allow;
35169 _swig_thread_allow.end();
35170 Xapian::SetPythonException();
35174 _swig_thread_allow.end();
35176 resultobj = SWIG_Py_Void();
35181 static __attribute__ ((__unused__)) PyObject *NetworkError_swigregister(PyObject *, PyObject *args) {
35183 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
35184 SWIG_TypeNewClientData(swig_types[34], SwigPyClientData_New(obj));
35185 return SWIG_Py_Void();
35187 static __attribute__ ((__unused__)) PyObject *NetworkError_swiginit(PyObject *, PyObject *args) {
35188 return SWIG_Python_InitShadowInstance(args);
35190 static __attribute__ ((__unused__)) PyObject *_wrap_new_NetworkTimeoutError__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
35191 PyObject *resultobj = 0;
35192 std::string *arg1 = 0 ;
35193 std::string *arg2 = 0 ;
35194 char *arg3 = (char *) 0 ;
35200 Xapian::NetworkTimeoutError *result = 0 ;
35201 if ((nobjs < 3) || (nobjs > 3)) goto fail;
35203 std::string *ptr = (std::string *)0;
35204 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
35205 if (!(res1 >= 0)) {
35206 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_NetworkTimeoutError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
35209 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_NetworkTimeoutError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
35214 std::string *ptr = (std::string *)0;
35215 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
35216 if (!(res2 >= 0)) {
35217 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_NetworkTimeoutError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
35220 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_NetworkTimeoutError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
35224 res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, __null, &alloc3);
35225 if (!(res3 >= 0)) {
35226 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (-1)) ? res3 : -5)), "in method '" "new_NetworkTimeoutError" "', argument " "3"" of type '" "char const *""'"); goto fail; } while(0);
35228 arg3 = reinterpret_cast< char * >(buf3);
35230 SWIG_Python_Thread_Allow _swig_thread_allow;
35231 result = (Xapian::NetworkTimeoutError *)new Xapian::NetworkTimeoutError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
35232 _swig_thread_allow.end();
35234 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[35], ((0x1 << 1) | 0x1) | 0);
35235 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
35236 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
35237 if (alloc3 == ((0) | ((1 << 8) << 1))) delete[] buf3;
35240 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
35241 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
35242 if (alloc3 == ((0) | ((1 << 8) << 1))) delete[] buf3;
35245 static __attribute__ ((__unused__)) PyObject *_wrap_new_NetworkTimeoutError__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
35246 PyObject *resultobj = 0;
35247 std::string *arg1 = 0 ;
35248 std::string *arg2 = 0 ;
35254 Xapian::NetworkTimeoutError *result = 0 ;
35255 if ((nobjs < 3) || (nobjs > 3)) goto fail;
35257 std::string *ptr = (std::string *)0;
35258 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
35259 if (!(res1 >= 0)) {
35260 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_NetworkTimeoutError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
35263 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_NetworkTimeoutError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
35268 std::string *ptr = (std::string *)0;
35269 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
35270 if (!(res2 >= 0)) {
35271 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_NetworkTimeoutError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
35274 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_NetworkTimeoutError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
35278 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
35279 if (!(ecode3 >= 0)) {
35280 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "new_NetworkTimeoutError" "', argument " "3"" of type '" "int""'"); goto fail; } while(0);
35282 arg3 = static_cast< int >(val3);
35284 SWIG_Python_Thread_Allow _swig_thread_allow;
35285 result = (Xapian::NetworkTimeoutError *)new Xapian::NetworkTimeoutError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
35286 _swig_thread_allow.end();
35288 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[35], ((0x1 << 1) | 0x1) | 0);
35289 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
35290 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
35293 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
35294 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
35297 static __attribute__ ((__unused__)) PyObject *_wrap_new_NetworkTimeoutError__SWIG_2(PyObject *, int nobjs, PyObject **swig_obj) {
35298 PyObject *resultobj = 0;
35299 std::string *arg1 = 0 ;
35300 std::string *arg2 = 0 ;
35303 Xapian::NetworkTimeoutError *result = 0 ;
35304 if ((nobjs < 2) || (nobjs > 2)) goto fail;
35306 std::string *ptr = (std::string *)0;
35307 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
35308 if (!(res1 >= 0)) {
35309 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_NetworkTimeoutError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
35312 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_NetworkTimeoutError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
35317 std::string *ptr = (std::string *)0;
35318 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
35319 if (!(res2 >= 0)) {
35320 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_NetworkTimeoutError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
35323 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_NetworkTimeoutError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
35328 SWIG_Python_Thread_Allow _swig_thread_allow;
35329 result = (Xapian::NetworkTimeoutError *)new Xapian::NetworkTimeoutError((std::string const &)*arg1,(std::string const &)*arg2);
35330 _swig_thread_allow.end();
35332 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[35], ((0x1 << 1) | 0x1) | 0);
35333 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
35334 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
35337 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
35338 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
35341 static __attribute__ ((__unused__)) PyObject *_wrap_new_NetworkTimeoutError__SWIG_3(PyObject *, int nobjs, PyObject **swig_obj) {
35342 PyObject *resultobj = 0;
35343 std::string *arg1 = 0 ;
35345 Xapian::NetworkTimeoutError *result = 0 ;
35346 if ((nobjs < 1) || (nobjs > 1)) goto fail;
35348 std::string *ptr = (std::string *)0;
35349 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
35350 if (!(res1 >= 0)) {
35351 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_NetworkTimeoutError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
35354 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_NetworkTimeoutError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
35359 SWIG_Python_Thread_Allow _swig_thread_allow;
35360 result = (Xapian::NetworkTimeoutError *)new Xapian::NetworkTimeoutError((std::string const &)*arg1);
35361 _swig_thread_allow.end();
35363 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[35], ((0x1 << 1) | 0x1) | 0);
35364 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
35367 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
35370 static __attribute__ ((__unused__)) PyObject *_wrap_new_NetworkTimeoutError__SWIG_4(PyObject *, int nobjs, PyObject **swig_obj) {
35371 PyObject *resultobj = 0;
35372 std::string *arg1 = 0 ;
35377 Xapian::NetworkTimeoutError *result = 0 ;
35378 if ((nobjs < 2) || (nobjs > 2)) goto fail;
35380 std::string *ptr = (std::string *)0;
35381 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
35382 if (!(res1 >= 0)) {
35383 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_NetworkTimeoutError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
35386 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_NetworkTimeoutError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
35390 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
35391 if (!(ecode2 >= 0)) {
35392 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_NetworkTimeoutError" "', argument " "2"" of type '" "int""'"); goto fail; } while(0);
35394 arg2 = static_cast< int >(val2);
35396 SWIG_Python_Thread_Allow _swig_thread_allow;
35397 result = (Xapian::NetworkTimeoutError *)new Xapian::NetworkTimeoutError((std::string const &)*arg1,arg2);
35398 _swig_thread_allow.end();
35400 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[35], ((0x1 << 1) | 0x1) | 0);
35401 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
35404 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
35407 static __attribute__ ((__unused__)) PyObject *_wrap_new_NetworkTimeoutError(PyObject *self, PyObject *args) {
35410 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NetworkTimeoutError",0,3,argv))) goto fail;
35413 return _wrap_new_NetworkTimeoutError__SWIG_3(self, argc, argv);
35419 int res = SWIG_AsVal_int(argv[1], __null);
35420 _v = ((res >= 0) ? 1 : 0);
35423 if (!_v) goto check_2;
35424 return _wrap_new_NetworkTimeoutError__SWIG_4(self, argc, argv);
35428 return _wrap_new_NetworkTimeoutError__SWIG_2(self, argc, argv);
35434 int res = SWIG_AsVal_int(argv[2], __null);
35435 _v = ((res >= 0) ? 1 : 0);
35438 if (!_v) goto check_4;
35439 return _wrap_new_NetworkTimeoutError__SWIG_1(self, argc, argv);
35443 return _wrap_new_NetworkTimeoutError__SWIG_0(self, argc, argv);
35446 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_NetworkTimeoutError'.\n"
35447 " Possible C/C++ prototypes are:\n"
35448 " Xapian::NetworkTimeoutError(std::string const &,std::string const &,char const *)\n"
35449 " Xapian::NetworkTimeoutError(std::string const &,std::string const &,int)\n"
35450 " Xapian::NetworkTimeoutError(std::string const &,std::string const &)\n"
35451 " Xapian::NetworkTimeoutError(std::string const &)\n"
35452 " Xapian::NetworkTimeoutError(std::string const &,int)\n");
35455 static __attribute__ ((__unused__)) PyObject *_wrap_delete_NetworkTimeoutError(PyObject *, PyObject *args) {
35456 PyObject *resultobj = 0;
35457 Xapian::NetworkTimeoutError *arg1 = (Xapian::NetworkTimeoutError *) 0 ;
35460 PyObject *swig_obj[1] ;
35461 if (!args) goto fail;
35462 swig_obj[0] = args;
35463 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[35], 0x1 | 0, 0);
35464 if (!(res1 >= 0)) {
35465 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_NetworkTimeoutError" "', argument " "1"" of type '" "Xapian::NetworkTimeoutError *""'"); goto fail; } while(0);
35467 arg1 = reinterpret_cast< Xapian::NetworkTimeoutError * >(argp1);
35469 SWIG_Python_Thread_Allow _swig_thread_allow;
35474 _swig_thread_allow.end();
35475 Xapian::SetPythonException();
35479 _swig_thread_allow.end();
35481 resultobj = SWIG_Py_Void();
35486 static __attribute__ ((__unused__)) PyObject *NetworkTimeoutError_swigregister(PyObject *, PyObject *args) {
35488 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
35489 SWIG_TypeNewClientData(swig_types[35], SwigPyClientData_New(obj));
35490 return SWIG_Py_Void();
35492 static __attribute__ ((__unused__)) PyObject *NetworkTimeoutError_swiginit(PyObject *, PyObject *args) {
35493 return SWIG_Python_InitShadowInstance(args);
35495 static __attribute__ ((__unused__)) PyObject *_wrap_new_QueryParserError__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
35496 PyObject *resultobj = 0;
35497 std::string *arg1 = 0 ;
35498 std::string *arg2 = 0 ;
35499 char *arg3 = (char *) 0 ;
35505 Xapian::QueryParserError *result = 0 ;
35506 if ((nobjs < 3) || (nobjs > 3)) goto fail;
35508 std::string *ptr = (std::string *)0;
35509 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
35510 if (!(res1 >= 0)) {
35511 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_QueryParserError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
35514 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_QueryParserError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
35519 std::string *ptr = (std::string *)0;
35520 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
35521 if (!(res2 >= 0)) {
35522 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_QueryParserError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
35525 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_QueryParserError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
35529 res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, __null, &alloc3);
35530 if (!(res3 >= 0)) {
35531 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (-1)) ? res3 : -5)), "in method '" "new_QueryParserError" "', argument " "3"" of type '" "char const *""'"); goto fail; } while(0);
35533 arg3 = reinterpret_cast< char * >(buf3);
35535 SWIG_Python_Thread_Allow _swig_thread_allow;
35536 result = (Xapian::QueryParserError *)new Xapian::QueryParserError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
35537 _swig_thread_allow.end();
35539 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[42], ((0x1 << 1) | 0x1) | 0);
35540 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
35541 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
35542 if (alloc3 == ((0) | ((1 << 8) << 1))) delete[] buf3;
35545 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
35546 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
35547 if (alloc3 == ((0) | ((1 << 8) << 1))) delete[] buf3;
35550 static __attribute__ ((__unused__)) PyObject *_wrap_new_QueryParserError__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
35551 PyObject *resultobj = 0;
35552 std::string *arg1 = 0 ;
35553 std::string *arg2 = 0 ;
35559 Xapian::QueryParserError *result = 0 ;
35560 if ((nobjs < 3) || (nobjs > 3)) goto fail;
35562 std::string *ptr = (std::string *)0;
35563 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
35564 if (!(res1 >= 0)) {
35565 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_QueryParserError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
35568 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_QueryParserError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
35573 std::string *ptr = (std::string *)0;
35574 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
35575 if (!(res2 >= 0)) {
35576 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_QueryParserError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
35579 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_QueryParserError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
35583 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
35584 if (!(ecode3 >= 0)) {
35585 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "new_QueryParserError" "', argument " "3"" of type '" "int""'"); goto fail; } while(0);
35587 arg3 = static_cast< int >(val3);
35589 SWIG_Python_Thread_Allow _swig_thread_allow;
35590 result = (Xapian::QueryParserError *)new Xapian::QueryParserError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
35591 _swig_thread_allow.end();
35593 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[42], ((0x1 << 1) | 0x1) | 0);
35594 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
35595 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
35598 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
35599 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
35602 static __attribute__ ((__unused__)) PyObject *_wrap_new_QueryParserError__SWIG_2(PyObject *, int nobjs, PyObject **swig_obj) {
35603 PyObject *resultobj = 0;
35604 std::string *arg1 = 0 ;
35605 std::string *arg2 = 0 ;
35608 Xapian::QueryParserError *result = 0 ;
35609 if ((nobjs < 2) || (nobjs > 2)) goto fail;
35611 std::string *ptr = (std::string *)0;
35612 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
35613 if (!(res1 >= 0)) {
35614 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_QueryParserError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
35617 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_QueryParserError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
35622 std::string *ptr = (std::string *)0;
35623 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
35624 if (!(res2 >= 0)) {
35625 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_QueryParserError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
35628 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_QueryParserError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
35633 SWIG_Python_Thread_Allow _swig_thread_allow;
35634 result = (Xapian::QueryParserError *)new Xapian::QueryParserError((std::string const &)*arg1,(std::string const &)*arg2);
35635 _swig_thread_allow.end();
35637 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[42], ((0x1 << 1) | 0x1) | 0);
35638 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
35639 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
35642 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
35643 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
35646 static __attribute__ ((__unused__)) PyObject *_wrap_new_QueryParserError__SWIG_3(PyObject *, int nobjs, PyObject **swig_obj) {
35647 PyObject *resultobj = 0;
35648 std::string *arg1 = 0 ;
35650 Xapian::QueryParserError *result = 0 ;
35651 if ((nobjs < 1) || (nobjs > 1)) goto fail;
35653 std::string *ptr = (std::string *)0;
35654 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
35655 if (!(res1 >= 0)) {
35656 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_QueryParserError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
35659 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_QueryParserError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
35664 SWIG_Python_Thread_Allow _swig_thread_allow;
35665 result = (Xapian::QueryParserError *)new Xapian::QueryParserError((std::string const &)*arg1);
35666 _swig_thread_allow.end();
35668 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[42], ((0x1 << 1) | 0x1) | 0);
35669 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
35672 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
35675 static __attribute__ ((__unused__)) PyObject *_wrap_new_QueryParserError__SWIG_4(PyObject *, int nobjs, PyObject **swig_obj) {
35676 PyObject *resultobj = 0;
35677 std::string *arg1 = 0 ;
35682 Xapian::QueryParserError *result = 0 ;
35683 if ((nobjs < 2) || (nobjs > 2)) goto fail;
35685 std::string *ptr = (std::string *)0;
35686 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
35687 if (!(res1 >= 0)) {
35688 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_QueryParserError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
35691 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_QueryParserError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
35695 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
35696 if (!(ecode2 >= 0)) {
35697 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_QueryParserError" "', argument " "2"" of type '" "int""'"); goto fail; } while(0);
35699 arg2 = static_cast< int >(val2);
35701 SWIG_Python_Thread_Allow _swig_thread_allow;
35702 result = (Xapian::QueryParserError *)new Xapian::QueryParserError((std::string const &)*arg1,arg2);
35703 _swig_thread_allow.end();
35705 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[42], ((0x1 << 1) | 0x1) | 0);
35706 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
35709 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
35712 static __attribute__ ((__unused__)) PyObject *_wrap_new_QueryParserError(PyObject *self, PyObject *args) {
35715 if (!(argc = SWIG_Python_UnpackTuple(args,"new_QueryParserError",0,3,argv))) goto fail;
35718 return _wrap_new_QueryParserError__SWIG_3(self, argc, argv);
35724 int res = SWIG_AsVal_int(argv[1], __null);
35725 _v = ((res >= 0) ? 1 : 0);
35728 if (!_v) goto check_2;
35729 return _wrap_new_QueryParserError__SWIG_4(self, argc, argv);
35733 return _wrap_new_QueryParserError__SWIG_2(self, argc, argv);
35739 int res = SWIG_AsVal_int(argv[2], __null);
35740 _v = ((res >= 0) ? 1 : 0);
35743 if (!_v) goto check_4;
35744 return _wrap_new_QueryParserError__SWIG_1(self, argc, argv);
35748 return _wrap_new_QueryParserError__SWIG_0(self, argc, argv);
35751 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_QueryParserError'.\n"
35752 " Possible C/C++ prototypes are:\n"
35753 " Xapian::QueryParserError(std::string const &,std::string const &,char const *)\n"
35754 " Xapian::QueryParserError(std::string const &,std::string const &,int)\n"
35755 " Xapian::QueryParserError(std::string const &,std::string const &)\n"
35756 " Xapian::QueryParserError(std::string const &)\n"
35757 " Xapian::QueryParserError(std::string const &,int)\n");
35760 static __attribute__ ((__unused__)) PyObject *_wrap_delete_QueryParserError(PyObject *, PyObject *args) {
35761 PyObject *resultobj = 0;
35762 Xapian::QueryParserError *arg1 = (Xapian::QueryParserError *) 0 ;
35765 PyObject *swig_obj[1] ;
35766 if (!args) goto fail;
35767 swig_obj[0] = args;
35768 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[42], 0x1 | 0, 0);
35769 if (!(res1 >= 0)) {
35770 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_QueryParserError" "', argument " "1"" of type '" "Xapian::QueryParserError *""'"); goto fail; } while(0);
35772 arg1 = reinterpret_cast< Xapian::QueryParserError * >(argp1);
35774 SWIG_Python_Thread_Allow _swig_thread_allow;
35779 _swig_thread_allow.end();
35780 Xapian::SetPythonException();
35784 _swig_thread_allow.end();
35786 resultobj = SWIG_Py_Void();
35791 static __attribute__ ((__unused__)) PyObject *QueryParserError_swigregister(PyObject *, PyObject *args) {
35793 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
35794 SWIG_TypeNewClientData(swig_types[42], SwigPyClientData_New(obj));
35795 return SWIG_Py_Void();
35797 static __attribute__ ((__unused__)) PyObject *QueryParserError_swiginit(PyObject *, PyObject *args) {
35798 return SWIG_Python_InitShadowInstance(args);
35800 static __attribute__ ((__unused__)) PyObject *_wrap_new_SerialisationError__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
35801 PyObject *resultobj = 0;
35802 std::string *arg1 = 0 ;
35803 std::string *arg2 = 0 ;
35804 char *arg3 = (char *) 0 ;
35810 Xapian::SerialisationError *result = 0 ;
35811 if ((nobjs < 3) || (nobjs > 3)) goto fail;
35813 std::string *ptr = (std::string *)0;
35814 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
35815 if (!(res1 >= 0)) {
35816 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_SerialisationError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
35819 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_SerialisationError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
35824 std::string *ptr = (std::string *)0;
35825 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
35826 if (!(res2 >= 0)) {
35827 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_SerialisationError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
35830 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_SerialisationError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
35834 res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, __null, &alloc3);
35835 if (!(res3 >= 0)) {
35836 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (-1)) ? res3 : -5)), "in method '" "new_SerialisationError" "', argument " "3"" of type '" "char const *""'"); goto fail; } while(0);
35838 arg3 = reinterpret_cast< char * >(buf3);
35840 SWIG_Python_Thread_Allow _swig_thread_allow;
35841 result = (Xapian::SerialisationError *)new Xapian::SerialisationError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
35842 _swig_thread_allow.end();
35844 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[47], ((0x1 << 1) | 0x1) | 0);
35845 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
35846 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
35847 if (alloc3 == ((0) | ((1 << 8) << 1))) delete[] buf3;
35850 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
35851 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
35852 if (alloc3 == ((0) | ((1 << 8) << 1))) delete[] buf3;
35855 static __attribute__ ((__unused__)) PyObject *_wrap_new_SerialisationError__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
35856 PyObject *resultobj = 0;
35857 std::string *arg1 = 0 ;
35858 std::string *arg2 = 0 ;
35864 Xapian::SerialisationError *result = 0 ;
35865 if ((nobjs < 3) || (nobjs > 3)) goto fail;
35867 std::string *ptr = (std::string *)0;
35868 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
35869 if (!(res1 >= 0)) {
35870 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_SerialisationError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
35873 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_SerialisationError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
35878 std::string *ptr = (std::string *)0;
35879 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
35880 if (!(res2 >= 0)) {
35881 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_SerialisationError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
35884 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_SerialisationError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
35888 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
35889 if (!(ecode3 >= 0)) {
35890 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "new_SerialisationError" "', argument " "3"" of type '" "int""'"); goto fail; } while(0);
35892 arg3 = static_cast< int >(val3);
35894 SWIG_Python_Thread_Allow _swig_thread_allow;
35895 result = (Xapian::SerialisationError *)new Xapian::SerialisationError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
35896 _swig_thread_allow.end();
35898 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[47], ((0x1 << 1) | 0x1) | 0);
35899 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
35900 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
35903 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
35904 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
35907 static __attribute__ ((__unused__)) PyObject *_wrap_new_SerialisationError__SWIG_2(PyObject *, int nobjs, PyObject **swig_obj) {
35908 PyObject *resultobj = 0;
35909 std::string *arg1 = 0 ;
35910 std::string *arg2 = 0 ;
35913 Xapian::SerialisationError *result = 0 ;
35914 if ((nobjs < 2) || (nobjs > 2)) goto fail;
35916 std::string *ptr = (std::string *)0;
35917 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
35918 if (!(res1 >= 0)) {
35919 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_SerialisationError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
35922 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_SerialisationError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
35927 std::string *ptr = (std::string *)0;
35928 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
35929 if (!(res2 >= 0)) {
35930 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_SerialisationError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
35933 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_SerialisationError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
35938 SWIG_Python_Thread_Allow _swig_thread_allow;
35939 result = (Xapian::SerialisationError *)new Xapian::SerialisationError((std::string const &)*arg1,(std::string const &)*arg2);
35940 _swig_thread_allow.end();
35942 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[47], ((0x1 << 1) | 0x1) | 0);
35943 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
35944 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
35947 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
35948 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
35951 static __attribute__ ((__unused__)) PyObject *_wrap_new_SerialisationError__SWIG_3(PyObject *, int nobjs, PyObject **swig_obj) {
35952 PyObject *resultobj = 0;
35953 std::string *arg1 = 0 ;
35955 Xapian::SerialisationError *result = 0 ;
35956 if ((nobjs < 1) || (nobjs > 1)) goto fail;
35958 std::string *ptr = (std::string *)0;
35959 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
35960 if (!(res1 >= 0)) {
35961 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_SerialisationError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
35964 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_SerialisationError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
35969 SWIG_Python_Thread_Allow _swig_thread_allow;
35970 result = (Xapian::SerialisationError *)new Xapian::SerialisationError((std::string const &)*arg1);
35971 _swig_thread_allow.end();
35973 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[47], ((0x1 << 1) | 0x1) | 0);
35974 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
35977 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
35980 static __attribute__ ((__unused__)) PyObject *_wrap_new_SerialisationError__SWIG_4(PyObject *, int nobjs, PyObject **swig_obj) {
35981 PyObject *resultobj = 0;
35982 std::string *arg1 = 0 ;
35987 Xapian::SerialisationError *result = 0 ;
35988 if ((nobjs < 2) || (nobjs > 2)) goto fail;
35990 std::string *ptr = (std::string *)0;
35991 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
35992 if (!(res1 >= 0)) {
35993 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_SerialisationError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
35996 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_SerialisationError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
36000 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
36001 if (!(ecode2 >= 0)) {
36002 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_SerialisationError" "', argument " "2"" of type '" "int""'"); goto fail; } while(0);
36004 arg2 = static_cast< int >(val2);
36006 SWIG_Python_Thread_Allow _swig_thread_allow;
36007 result = (Xapian::SerialisationError *)new Xapian::SerialisationError((std::string const &)*arg1,arg2);
36008 _swig_thread_allow.end();
36010 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[47], ((0x1 << 1) | 0x1) | 0);
36011 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
36014 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
36017 static __attribute__ ((__unused__)) PyObject *_wrap_new_SerialisationError(PyObject *self, PyObject *args) {
36020 if (!(argc = SWIG_Python_UnpackTuple(args,"new_SerialisationError",0,3,argv))) goto fail;
36023 return _wrap_new_SerialisationError__SWIG_3(self, argc, argv);
36029 int res = SWIG_AsVal_int(argv[1], __null);
36030 _v = ((res >= 0) ? 1 : 0);
36033 if (!_v) goto check_2;
36034 return _wrap_new_SerialisationError__SWIG_4(self, argc, argv);
36038 return _wrap_new_SerialisationError__SWIG_2(self, argc, argv);
36044 int res = SWIG_AsVal_int(argv[2], __null);
36045 _v = ((res >= 0) ? 1 : 0);
36048 if (!_v) goto check_4;
36049 return _wrap_new_SerialisationError__SWIG_1(self, argc, argv);
36053 return _wrap_new_SerialisationError__SWIG_0(self, argc, argv);
36056 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_SerialisationError'.\n"
36057 " Possible C/C++ prototypes are:\n"
36058 " Xapian::SerialisationError(std::string const &,std::string const &,char const *)\n"
36059 " Xapian::SerialisationError(std::string const &,std::string const &,int)\n"
36060 " Xapian::SerialisationError(std::string const &,std::string const &)\n"
36061 " Xapian::SerialisationError(std::string const &)\n"
36062 " Xapian::SerialisationError(std::string const &,int)\n");
36065 static __attribute__ ((__unused__)) PyObject *_wrap_delete_SerialisationError(PyObject *, PyObject *args) {
36066 PyObject *resultobj = 0;
36067 Xapian::SerialisationError *arg1 = (Xapian::SerialisationError *) 0 ;
36070 PyObject *swig_obj[1] ;
36071 if (!args) goto fail;
36072 swig_obj[0] = args;
36073 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[47], 0x1 | 0, 0);
36074 if (!(res1 >= 0)) {
36075 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_SerialisationError" "', argument " "1"" of type '" "Xapian::SerialisationError *""'"); goto fail; } while(0);
36077 arg1 = reinterpret_cast< Xapian::SerialisationError * >(argp1);
36079 SWIG_Python_Thread_Allow _swig_thread_allow;
36084 _swig_thread_allow.end();
36085 Xapian::SetPythonException();
36089 _swig_thread_allow.end();
36091 resultobj = SWIG_Py_Void();
36096 static __attribute__ ((__unused__)) PyObject *SerialisationError_swigregister(PyObject *, PyObject *args) {
36098 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
36099 SWIG_TypeNewClientData(swig_types[47], SwigPyClientData_New(obj));
36100 return SWIG_Py_Void();
36102 static __attribute__ ((__unused__)) PyObject *SerialisationError_swiginit(PyObject *, PyObject *args) {
36103 return SWIG_Python_InitShadowInstance(args);
36105 static __attribute__ ((__unused__)) PyObject *_wrap_new_RangeError__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
36106 PyObject *resultobj = 0;
36107 std::string *arg1 = 0 ;
36108 std::string *arg2 = 0 ;
36109 char *arg3 = (char *) 0 ;
36115 Xapian::RangeError *result = 0 ;
36116 if ((nobjs < 3) || (nobjs > 3)) goto fail;
36118 std::string *ptr = (std::string *)0;
36119 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
36120 if (!(res1 >= 0)) {
36121 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_RangeError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
36124 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_RangeError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
36129 std::string *ptr = (std::string *)0;
36130 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
36131 if (!(res2 >= 0)) {
36132 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_RangeError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
36135 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_RangeError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
36139 res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, __null, &alloc3);
36140 if (!(res3 >= 0)) {
36141 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (-1)) ? res3 : -5)), "in method '" "new_RangeError" "', argument " "3"" of type '" "char const *""'"); goto fail; } while(0);
36143 arg3 = reinterpret_cast< char * >(buf3);
36145 SWIG_Python_Thread_Allow _swig_thread_allow;
36146 result = (Xapian::RangeError *)new Xapian::RangeError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
36147 _swig_thread_allow.end();
36149 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[44], ((0x1 << 1) | 0x1) | 0);
36150 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
36151 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
36152 if (alloc3 == ((0) | ((1 << 8) << 1))) delete[] buf3;
36155 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
36156 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
36157 if (alloc3 == ((0) | ((1 << 8) << 1))) delete[] buf3;
36160 static __attribute__ ((__unused__)) PyObject *_wrap_new_RangeError__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
36161 PyObject *resultobj = 0;
36162 std::string *arg1 = 0 ;
36163 std::string *arg2 = 0 ;
36169 Xapian::RangeError *result = 0 ;
36170 if ((nobjs < 3) || (nobjs > 3)) goto fail;
36172 std::string *ptr = (std::string *)0;
36173 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
36174 if (!(res1 >= 0)) {
36175 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_RangeError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
36178 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_RangeError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
36183 std::string *ptr = (std::string *)0;
36184 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
36185 if (!(res2 >= 0)) {
36186 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_RangeError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
36189 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_RangeError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
36193 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
36194 if (!(ecode3 >= 0)) {
36195 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "new_RangeError" "', argument " "3"" of type '" "int""'"); goto fail; } while(0);
36197 arg3 = static_cast< int >(val3);
36199 SWIG_Python_Thread_Allow _swig_thread_allow;
36200 result = (Xapian::RangeError *)new Xapian::RangeError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
36201 _swig_thread_allow.end();
36203 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[44], ((0x1 << 1) | 0x1) | 0);
36204 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
36205 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
36208 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
36209 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
36212 static __attribute__ ((__unused__)) PyObject *_wrap_new_RangeError__SWIG_2(PyObject *, int nobjs, PyObject **swig_obj) {
36213 PyObject *resultobj = 0;
36214 std::string *arg1 = 0 ;
36215 std::string *arg2 = 0 ;
36218 Xapian::RangeError *result = 0 ;
36219 if ((nobjs < 2) || (nobjs > 2)) goto fail;
36221 std::string *ptr = (std::string *)0;
36222 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
36223 if (!(res1 >= 0)) {
36224 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_RangeError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
36227 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_RangeError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
36232 std::string *ptr = (std::string *)0;
36233 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
36234 if (!(res2 >= 0)) {
36235 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_RangeError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
36238 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_RangeError" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
36243 SWIG_Python_Thread_Allow _swig_thread_allow;
36244 result = (Xapian::RangeError *)new Xapian::RangeError((std::string const &)*arg1,(std::string const &)*arg2);
36245 _swig_thread_allow.end();
36247 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[44], ((0x1 << 1) | 0x1) | 0);
36248 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
36249 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
36252 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
36253 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
36256 static __attribute__ ((__unused__)) PyObject *_wrap_new_RangeError__SWIG_3(PyObject *, int nobjs, PyObject **swig_obj) {
36257 PyObject *resultobj = 0;
36258 std::string *arg1 = 0 ;
36260 Xapian::RangeError *result = 0 ;
36261 if ((nobjs < 1) || (nobjs > 1)) goto fail;
36263 std::string *ptr = (std::string *)0;
36264 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
36265 if (!(res1 >= 0)) {
36266 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_RangeError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
36269 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_RangeError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
36274 SWIG_Python_Thread_Allow _swig_thread_allow;
36275 result = (Xapian::RangeError *)new Xapian::RangeError((std::string const &)*arg1);
36276 _swig_thread_allow.end();
36278 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[44], ((0x1 << 1) | 0x1) | 0);
36279 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
36282 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
36285 static __attribute__ ((__unused__)) PyObject *_wrap_new_RangeError__SWIG_4(PyObject *, int nobjs, PyObject **swig_obj) {
36286 PyObject *resultobj = 0;
36287 std::string *arg1 = 0 ;
36292 Xapian::RangeError *result = 0 ;
36293 if ((nobjs < 2) || (nobjs > 2)) goto fail;
36295 std::string *ptr = (std::string *)0;
36296 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
36297 if (!(res1 >= 0)) {
36298 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_RangeError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
36301 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_RangeError" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
36305 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
36306 if (!(ecode2 >= 0)) {
36307 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_RangeError" "', argument " "2"" of type '" "int""'"); goto fail; } while(0);
36309 arg2 = static_cast< int >(val2);
36311 SWIG_Python_Thread_Allow _swig_thread_allow;
36312 result = (Xapian::RangeError *)new Xapian::RangeError((std::string const &)*arg1,arg2);
36313 _swig_thread_allow.end();
36315 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[44], ((0x1 << 1) | 0x1) | 0);
36316 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
36319 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
36322 static __attribute__ ((__unused__)) PyObject *_wrap_new_RangeError(PyObject *self, PyObject *args) {
36325 if (!(argc = SWIG_Python_UnpackTuple(args,"new_RangeError",0,3,argv))) goto fail;
36328 return _wrap_new_RangeError__SWIG_3(self, argc, argv);
36334 int res = SWIG_AsVal_int(argv[1], __null);
36335 _v = ((res >= 0) ? 1 : 0);
36338 if (!_v) goto check_2;
36339 return _wrap_new_RangeError__SWIG_4(self, argc, argv);
36343 return _wrap_new_RangeError__SWIG_2(self, argc, argv);
36349 int res = SWIG_AsVal_int(argv[2], __null);
36350 _v = ((res >= 0) ? 1 : 0);
36353 if (!_v) goto check_4;
36354 return _wrap_new_RangeError__SWIG_1(self, argc, argv);
36358 return _wrap_new_RangeError__SWIG_0(self, argc, argv);
36361 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_RangeError'.\n"
36362 " Possible C/C++ prototypes are:\n"
36363 " Xapian::RangeError(std::string const &,std::string const &,char const *)\n"
36364 " Xapian::RangeError(std::string const &,std::string const &,int)\n"
36365 " Xapian::RangeError(std::string const &,std::string const &)\n"
36366 " Xapian::RangeError(std::string const &)\n"
36367 " Xapian::RangeError(std::string const &,int)\n");
36370 static __attribute__ ((__unused__)) PyObject *_wrap_delete_RangeError(PyObject *, PyObject *args) {
36371 PyObject *resultobj = 0;
36372 Xapian::RangeError *arg1 = (Xapian::RangeError *) 0 ;
36375 PyObject *swig_obj[1] ;
36376 if (!args) goto fail;
36377 swig_obj[0] = args;
36378 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[44], 0x1 | 0, 0);
36379 if (!(res1 >= 0)) {
36380 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_RangeError" "', argument " "1"" of type '" "Xapian::RangeError *""'"); goto fail; } while(0);
36382 arg1 = reinterpret_cast< Xapian::RangeError * >(argp1);
36384 SWIG_Python_Thread_Allow _swig_thread_allow;
36389 _swig_thread_allow.end();
36390 Xapian::SetPythonException();
36394 _swig_thread_allow.end();
36396 resultobj = SWIG_Py_Void();
36401 static __attribute__ ((__unused__)) PyObject *RangeError_swigregister(PyObject *, PyObject *args) {
36403 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
36404 SWIG_TypeNewClientData(swig_types[44], SwigPyClientData_New(obj));
36405 return SWIG_Py_Void();
36407 static __attribute__ ((__unused__)) PyObject *RangeError_swiginit(PyObject *, PyObject *args) {
36408 return SWIG_Python_InitShadowInstance(args);
36410 static __attribute__ ((__unused__)) PyObject *_wrap_version_string(PyObject *, PyObject *args) {
36411 PyObject *resultobj = 0;
36413 if (!SWIG_Python_UnpackTuple(args,"version_string",0,0,0)) goto fail;
36415 SWIG_Python_Thread_Allow _swig_thread_allow;
36416 result = (char *)Xapian::version_string();
36417 _swig_thread_allow.end();
36419 resultobj = SWIG_FromCharPtr((const char *)result);
36424 static __attribute__ ((__unused__)) PyObject *_wrap_major_version(PyObject *, PyObject *args) {
36425 PyObject *resultobj = 0;
36427 if (!SWIG_Python_UnpackTuple(args,"major_version",0,0,0)) goto fail;
36429 SWIG_Python_Thread_Allow _swig_thread_allow;
36430 result = (int)Xapian::major_version();
36431 _swig_thread_allow.end();
36433 resultobj = SWIG_From_int(static_cast< int >(result));
36438 static __attribute__ ((__unused__)) PyObject *_wrap_minor_version(PyObject *, PyObject *args) {
36439 PyObject *resultobj = 0;
36441 if (!SWIG_Python_UnpackTuple(args,"minor_version",0,0,0)) goto fail;
36443 SWIG_Python_Thread_Allow _swig_thread_allow;
36444 result = (int)Xapian::minor_version();
36445 _swig_thread_allow.end();
36447 resultobj = SWIG_From_int(static_cast< int >(result));
36452 static __attribute__ ((__unused__)) PyObject *_wrap_revision(PyObject *, PyObject *args) {
36453 PyObject *resultobj = 0;
36455 if (!SWIG_Python_UnpackTuple(args,"revision",0,0,0)) goto fail;
36457 SWIG_Python_Thread_Allow _swig_thread_allow;
36458 result = (int)Xapian::revision();
36459 _swig_thread_allow.end();
36461 resultobj = SWIG_From_int(static_cast< int >(result));
36466 static __attribute__ ((__unused__)) PyObject *_wrap_new_PositionIterator__SWIG_0(PyObject *, int nobjs, PyObject **) {
36467 PyObject *resultobj = 0;
36468 Xapian::PositionIterator *result = 0 ;
36469 if ((nobjs < 0) || (nobjs > 0)) goto fail;
36471 SWIG_Python_Thread_Allow _swig_thread_allow;
36474 result = (Xapian::PositionIterator *)new Xapian::PositionIterator();
36476 _swig_thread_allow.end();
36477 Xapian::SetPythonException();
36481 _swig_thread_allow.end();
36483 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[37], ((0x1 << 1) | 0x1) | 0);
36488 static __attribute__ ((__unused__)) PyObject *_wrap_new_PositionIterator__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
36489 PyObject *resultobj = 0;
36490 Xapian::PositionIterator *arg1 = 0 ;
36493 Xapian::PositionIterator *result = 0 ;
36494 if ((nobjs < 1) || (nobjs > 1)) goto fail;
36495 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[37], 0 | 0, 0);
36496 if (!(res1 >= 0)) {
36497 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_PositionIterator" "', argument " "1"" of type '" "Xapian::PositionIterator const &""'"); goto fail; } while(0);
36500 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_PositionIterator" "', argument " "1"" of type '" "Xapian::PositionIterator const &""'"); goto fail; } while(0);
36502 arg1 = reinterpret_cast< Xapian::PositionIterator * >(argp1);
36504 SWIG_Python_Thread_Allow _swig_thread_allow;
36507 result = (Xapian::PositionIterator *)new Xapian::PositionIterator((Xapian::PositionIterator const &)*arg1);
36509 _swig_thread_allow.end();
36510 Xapian::SetPythonException();
36514 _swig_thread_allow.end();
36516 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[37], ((0x1 << 1) | 0x1) | 0);
36521 static __attribute__ ((__unused__)) PyObject *_wrap_new_PositionIterator(PyObject *self, PyObject *args) {
36524 if (!(argc = SWIG_Python_UnpackTuple(args,"new_PositionIterator",0,1,argv))) goto fail;
36527 return _wrap_new_PositionIterator__SWIG_0(self, argc, argv);
36530 return _wrap_new_PositionIterator__SWIG_1(self, argc, argv);
36533 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_PositionIterator'.\n"
36534 " Possible C/C++ prototypes are:\n"
36535 " Xapian::PositionIterator()\n"
36536 " Xapian::PositionIterator(Xapian::PositionIterator const &)\n");
36539 static __attribute__ ((__unused__)) PyObject *_wrap_delete_PositionIterator(PyObject *, PyObject *args) {
36540 PyObject *resultobj = 0;
36541 Xapian::PositionIterator *arg1 = (Xapian::PositionIterator *) 0 ;
36544 PyObject *swig_obj[1] ;
36545 if (!args) goto fail;
36546 swig_obj[0] = args;
36547 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[37], 0x1 | 0, 0);
36548 if (!(res1 >= 0)) {
36549 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_PositionIterator" "', argument " "1"" of type '" "Xapian::PositionIterator *""'"); goto fail; } while(0);
36551 arg1 = reinterpret_cast< Xapian::PositionIterator * >(argp1);
36553 SWIG_Python_Thread_Allow _swig_thread_allow;
36558 _swig_thread_allow.end();
36559 Xapian::SetPythonException();
36563 _swig_thread_allow.end();
36565 resultobj = SWIG_Py_Void();
36570 static __attribute__ ((__unused__)) PyObject *_wrap_PositionIterator_get_termpos(PyObject *, PyObject *args) {
36571 PyObject *resultobj = 0;
36572 Xapian::PositionIterator *arg1 = (Xapian::PositionIterator *) 0 ;
36575 PyObject *swig_obj[1] ;
36576 Xapian::termpos result;
36577 if (!args) goto fail;
36578 swig_obj[0] = args;
36579 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[37], 0 | 0, 0);
36580 if (!(res1 >= 0)) {
36581 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "PositionIterator_get_termpos" "', argument " "1"" of type '" "Xapian::PositionIterator const *""'"); goto fail; } while(0);
36583 arg1 = reinterpret_cast< Xapian::PositionIterator * >(argp1);
36585 SWIG_Python_Thread_Allow _swig_thread_allow;
36588 result = (Xapian::termpos)Xapian_PositionIterator_get_termpos((Xapian::PositionIterator const *)arg1);
36590 _swig_thread_allow.end();
36591 Xapian::SetPythonException();
36595 _swig_thread_allow.end();
36597 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
36602 static __attribute__ ((__unused__)) PyObject *_wrap_PositionIterator_next(PyObject *, PyObject *args) {
36603 PyObject *resultobj = 0;
36604 Xapian::PositionIterator *arg1 = (Xapian::PositionIterator *) 0 ;
36607 PyObject *swig_obj[1] ;
36608 if (!args) goto fail;
36609 swig_obj[0] = args;
36610 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[37], 0 | 0, 0);
36611 if (!(res1 >= 0)) {
36612 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "PositionIterator_next" "', argument " "1"" of type '" "Xapian::PositionIterator *""'"); goto fail; } while(0);
36614 arg1 = reinterpret_cast< Xapian::PositionIterator * >(argp1);
36616 SWIG_Python_Thread_Allow _swig_thread_allow;
36619 Xapian_PositionIterator_next(arg1);
36621 _swig_thread_allow.end();
36622 Xapian::SetPythonException();
36626 _swig_thread_allow.end();
36628 resultobj = SWIG_Py_Void();
36633 static __attribute__ ((__unused__)) PyObject *_wrap_PositionIterator_equals(PyObject *, PyObject *args) {
36634 PyObject *resultobj = 0;
36635 Xapian::PositionIterator *arg1 = (Xapian::PositionIterator *) 0 ;
36636 Xapian::PositionIterator *arg2 = 0 ;
36641 PyObject *swig_obj[2] ;
36643 if (!SWIG_Python_UnpackTuple(args,"PositionIterator_equals",2,2,swig_obj)) goto fail;
36644 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[37], 0 | 0, 0);
36645 if (!(res1 >= 0)) {
36646 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "PositionIterator_equals" "', argument " "1"" of type '" "Xapian::PositionIterator const *""'"); goto fail; } while(0);
36648 arg1 = reinterpret_cast< Xapian::PositionIterator * >(argp1);
36649 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[37], 0 | 0, 0);
36650 if (!(res2 >= 0)) {
36651 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "PositionIterator_equals" "', argument " "2"" of type '" "Xapian::PositionIterator const &""'"); goto fail; } while(0);
36654 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "PositionIterator_equals" "', argument " "2"" of type '" "Xapian::PositionIterator const &""'"); goto fail; } while(0);
36656 arg2 = reinterpret_cast< Xapian::PositionIterator * >(argp2);
36658 SWIG_Python_Thread_Allow _swig_thread_allow;
36661 result = (bool)Xapian_PositionIterator_equals((Xapian::PositionIterator const *)arg1,(Xapian::PositionIterator const &)*arg2);
36663 _swig_thread_allow.end();
36664 Xapian::SetPythonException();
36668 _swig_thread_allow.end();
36670 resultobj = SWIG_From_bool(static_cast< bool >(result));
36675 static __attribute__ ((__unused__)) PyObject *_wrap_PositionIterator_skip_to(PyObject *, PyObject *args) {
36676 PyObject *resultobj = 0;
36677 Xapian::PositionIterator *arg1 = (Xapian::PositionIterator *) 0 ;
36678 Xapian::termpos arg2 ;
36681 unsigned int val2 ;
36683 PyObject *swig_obj[2] ;
36684 if (!SWIG_Python_UnpackTuple(args,"PositionIterator_skip_to",2,2,swig_obj)) goto fail;
36685 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[37], 0 | 0, 0);
36686 if (!(res1 >= 0)) {
36687 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "PositionIterator_skip_to" "', argument " "1"" of type '" "Xapian::PositionIterator *""'"); goto fail; } while(0);
36689 arg1 = reinterpret_cast< Xapian::PositionIterator * >(argp1);
36690 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
36691 if (!(ecode2 >= 0)) {
36692 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "PositionIterator_skip_to" "', argument " "2"" of type '" "Xapian::termpos""'"); goto fail; } while(0);
36694 arg2 = static_cast< Xapian::termpos >(val2);
36696 SWIG_Python_Thread_Allow _swig_thread_allow;
36699 (arg1)->skip_to(arg2);
36701 _swig_thread_allow.end();
36702 Xapian::SetPythonException();
36706 _swig_thread_allow.end();
36708 resultobj = SWIG_Py_Void();
36713 static __attribute__ ((__unused__)) PyObject *_wrap_PositionIterator___str__(PyObject *, PyObject *args) {
36714 PyObject *resultobj = 0;
36715 Xapian::PositionIterator *arg1 = (Xapian::PositionIterator *) 0 ;
36718 PyObject *swig_obj[1] ;
36719 std::string result;
36720 if (!args) goto fail;
36721 swig_obj[0] = args;
36722 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[37], 0 | 0, 0);
36723 if (!(res1 >= 0)) {
36724 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "PositionIterator___str__" "', argument " "1"" of type '" "Xapian::PositionIterator const *""'"); goto fail; } while(0);
36726 arg1 = reinterpret_cast< Xapian::PositionIterator * >(argp1);
36728 SWIG_Python_Thread_Allow _swig_thread_allow;
36731 result = ((Xapian::PositionIterator const *)arg1)->get_description();
36733 _swig_thread_allow.end();
36734 Xapian::SetPythonException();
36738 _swig_thread_allow.end();
36740 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
36745 static __attribute__ ((__unused__)) PyObject *_wrap_PositionIterator___eq__(PyObject *, PyObject *args) {
36746 PyObject *resultobj = 0;
36747 Xapian::PositionIterator *arg1 = (Xapian::PositionIterator *) 0 ;
36748 Xapian::PositionIterator *arg2 = 0 ;
36753 PyObject *swig_obj[2] ;
36755 if (!SWIG_Python_UnpackTuple(args,"PositionIterator___eq__",2,2,swig_obj)) goto fail;
36756 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[37], 0 | 0, 0);
36757 if (!(res1 >= 0)) {
36758 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "PositionIterator___eq__" "', argument " "1"" of type '" "Xapian::PositionIterator *""'"); goto fail; } while(0);
36760 arg1 = reinterpret_cast< Xapian::PositionIterator * >(argp1);
36761 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[37], 0 | 0, 0);
36762 if (!(res2 >= 0)) {
36763 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "PositionIterator___eq__" "', argument " "2"" of type '" "Xapian::PositionIterator const &""'"); goto fail; } while(0);
36766 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "PositionIterator___eq__" "', argument " "2"" of type '" "Xapian::PositionIterator const &""'"); goto fail; } while(0);
36768 arg2 = reinterpret_cast< Xapian::PositionIterator * >(argp2);
36770 SWIG_Python_Thread_Allow _swig_thread_allow;
36771 result = (bool)Xapian_PositionIterator___eq__(arg1,(Xapian::PositionIterator const &)*arg2);
36772 _swig_thread_allow.end();
36774 resultobj = SWIG_From_bool(static_cast< bool >(result));
36779 static __attribute__ ((__unused__)) PyObject *_wrap_PositionIterator___ne__(PyObject *, PyObject *args) {
36780 PyObject *resultobj = 0;
36781 Xapian::PositionIterator *arg1 = (Xapian::PositionIterator *) 0 ;
36782 Xapian::PositionIterator *arg2 = 0 ;
36787 PyObject *swig_obj[2] ;
36789 if (!SWIG_Python_UnpackTuple(args,"PositionIterator___ne__",2,2,swig_obj)) goto fail;
36790 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[37], 0 | 0, 0);
36791 if (!(res1 >= 0)) {
36792 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "PositionIterator___ne__" "', argument " "1"" of type '" "Xapian::PositionIterator *""'"); goto fail; } while(0);
36794 arg1 = reinterpret_cast< Xapian::PositionIterator * >(argp1);
36795 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[37], 0 | 0, 0);
36796 if (!(res2 >= 0)) {
36797 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "PositionIterator___ne__" "', argument " "2"" of type '" "Xapian::PositionIterator const &""'"); goto fail; } while(0);
36800 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "PositionIterator___ne__" "', argument " "2"" of type '" "Xapian::PositionIterator const &""'"); goto fail; } while(0);
36802 arg2 = reinterpret_cast< Xapian::PositionIterator * >(argp2);
36804 SWIG_Python_Thread_Allow _swig_thread_allow;
36805 result = (bool)Xapian_PositionIterator___ne__(arg1,(Xapian::PositionIterator const &)*arg2);
36806 _swig_thread_allow.end();
36808 resultobj = SWIG_From_bool(static_cast< bool >(result));
36813 static __attribute__ ((__unused__)) PyObject *PositionIterator_swigregister(PyObject *, PyObject *args) {
36815 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
36816 SWIG_TypeNewClientData(swig_types[37], SwigPyClientData_New(obj));
36817 return SWIG_Py_Void();
36819 static __attribute__ ((__unused__)) PyObject *PositionIterator_swiginit(PyObject *, PyObject *args) {
36820 return SWIG_Python_InitShadowInstance(args);
36822 static __attribute__ ((__unused__)) PyObject *_wrap_new_PostingIterator__SWIG_0(PyObject *, int nobjs, PyObject **) {
36823 PyObject *resultobj = 0;
36824 Xapian::PostingIterator *result = 0 ;
36825 if ((nobjs < 0) || (nobjs > 0)) goto fail;
36827 SWIG_Python_Thread_Allow _swig_thread_allow;
36830 result = (Xapian::PostingIterator *)new Xapian::PostingIterator();
36832 _swig_thread_allow.end();
36833 Xapian::SetPythonException();
36837 _swig_thread_allow.end();
36839 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[38], ((0x1 << 1) | 0x1) | 0);
36844 static __attribute__ ((__unused__)) PyObject *_wrap_delete_PostingIterator(PyObject *, PyObject *args) {
36845 PyObject *resultobj = 0;
36846 Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
36849 PyObject *swig_obj[1] ;
36850 if (!args) goto fail;
36851 swig_obj[0] = args;
36852 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[38], 0x1 | 0, 0);
36853 if (!(res1 >= 0)) {
36854 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_PostingIterator" "', argument " "1"" of type '" "Xapian::PostingIterator *""'"); goto fail; } while(0);
36856 arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
36858 SWIG_Python_Thread_Allow _swig_thread_allow;
36863 _swig_thread_allow.end();
36864 Xapian::SetPythonException();
36868 _swig_thread_allow.end();
36870 resultobj = SWIG_Py_Void();
36875 static __attribute__ ((__unused__)) PyObject *_wrap_new_PostingIterator__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
36876 PyObject *resultobj = 0;
36877 Xapian::PostingIterator *arg1 = 0 ;
36880 Xapian::PostingIterator *result = 0 ;
36881 if ((nobjs < 1) || (nobjs > 1)) goto fail;
36882 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[38], 0 | 0, 0);
36883 if (!(res1 >= 0)) {
36884 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_PostingIterator" "', argument " "1"" of type '" "Xapian::PostingIterator const &""'"); goto fail; } while(0);
36887 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_PostingIterator" "', argument " "1"" of type '" "Xapian::PostingIterator const &""'"); goto fail; } while(0);
36889 arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
36891 SWIG_Python_Thread_Allow _swig_thread_allow;
36894 result = (Xapian::PostingIterator *)new Xapian::PostingIterator((Xapian::PostingIterator const &)*arg1);
36896 _swig_thread_allow.end();
36897 Xapian::SetPythonException();
36901 _swig_thread_allow.end();
36903 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[38], ((0x1 << 1) | 0x1) | 0);
36908 static __attribute__ ((__unused__)) PyObject *_wrap_new_PostingIterator(PyObject *self, PyObject *args) {
36911 if (!(argc = SWIG_Python_UnpackTuple(args,"new_PostingIterator",0,1,argv))) goto fail;
36914 return _wrap_new_PostingIterator__SWIG_0(self, argc, argv);
36917 return _wrap_new_PostingIterator__SWIG_1(self, argc, argv);
36920 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_PostingIterator'.\n"
36921 " Possible C/C++ prototypes are:\n"
36922 " Xapian::PostingIterator()\n"
36923 " Xapian::PostingIterator(Xapian::PostingIterator const &)\n");
36926 static __attribute__ ((__unused__)) PyObject *_wrap_PostingIterator_skip_to(PyObject *, PyObject *args) {
36927 PyObject *resultobj = 0;
36928 Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
36929 Xapian::docid arg2 ;
36932 unsigned int val2 ;
36934 PyObject *swig_obj[2] ;
36935 if (!SWIG_Python_UnpackTuple(args,"PostingIterator_skip_to",2,2,swig_obj)) goto fail;
36936 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[38], 0 | 0, 0);
36937 if (!(res1 >= 0)) {
36938 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "PostingIterator_skip_to" "', argument " "1"" of type '" "Xapian::PostingIterator *""'"); goto fail; } while(0);
36940 arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
36941 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
36942 if (!(ecode2 >= 0)) {
36943 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "PostingIterator_skip_to" "', argument " "2"" of type '" "Xapian::docid""'"); goto fail; } while(0);
36945 arg2 = static_cast< Xapian::docid >(val2);
36947 SWIG_Python_Thread_Allow _swig_thread_allow;
36950 (arg1)->skip_to(arg2);
36952 _swig_thread_allow.end();
36953 Xapian::SetPythonException();
36957 _swig_thread_allow.end();
36959 resultobj = SWIG_Py_Void();
36964 static __attribute__ ((__unused__)) PyObject *_wrap_PostingIterator_get_doclength(PyObject *, PyObject *args) {
36965 PyObject *resultobj = 0;
36966 Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
36969 PyObject *swig_obj[1] ;
36970 Xapian::termcount result;
36971 if (!args) goto fail;
36972 swig_obj[0] = args;
36973 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[38], 0 | 0, 0);
36974 if (!(res1 >= 0)) {
36975 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "PostingIterator_get_doclength" "', argument " "1"" of type '" "Xapian::PostingIterator const *""'"); goto fail; } while(0);
36977 arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
36979 SWIG_Python_Thread_Allow _swig_thread_allow;
36982 result = (Xapian::termcount)((Xapian::PostingIterator const *)arg1)->get_doclength();
36984 _swig_thread_allow.end();
36985 Xapian::SetPythonException();
36989 _swig_thread_allow.end();
36991 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
36996 static __attribute__ ((__unused__)) PyObject *_wrap_PostingIterator_get_wdf(PyObject *, PyObject *args) {
36997 PyObject *resultobj = 0;
36998 Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
37001 PyObject *swig_obj[1] ;
37002 Xapian::termcount result;
37003 if (!args) goto fail;
37004 swig_obj[0] = args;
37005 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[38], 0 | 0, 0);
37006 if (!(res1 >= 0)) {
37007 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "PostingIterator_get_wdf" "', argument " "1"" of type '" "Xapian::PostingIterator const *""'"); goto fail; } while(0);
37009 arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
37011 SWIG_Python_Thread_Allow _swig_thread_allow;
37014 result = (Xapian::termcount)((Xapian::PostingIterator const *)arg1)->get_wdf();
37016 _swig_thread_allow.end();
37017 Xapian::SetPythonException();
37021 _swig_thread_allow.end();
37023 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
37028 static __attribute__ ((__unused__)) PyObject *_wrap_PostingIterator_positionlist_begin(PyObject *, PyObject *args) {
37029 PyObject *resultobj = 0;
37030 Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
37033 PyObject *swig_obj[1] ;
37034 Xapian::PositionIterator result;
37035 if (!args) goto fail;
37036 swig_obj[0] = args;
37037 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[38], 0 | 0, 0);
37038 if (!(res1 >= 0)) {
37039 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "PostingIterator_positionlist_begin" "', argument " "1"" of type '" "Xapian::PostingIterator const *""'"); goto fail; } while(0);
37041 arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
37043 SWIG_Python_Thread_Allow _swig_thread_allow;
37046 result = ((Xapian::PostingIterator const *)arg1)->positionlist_begin();
37048 _swig_thread_allow.end();
37049 Xapian::SetPythonException();
37053 _swig_thread_allow.end();
37055 resultobj = SWIG_Python_NewPointerObj((new Xapian::PositionIterator(static_cast< const Xapian::PositionIterator& >(result))), swig_types[37], 0x1 | 0);
37060 static __attribute__ ((__unused__)) PyObject *_wrap_PostingIterator_positionlist_end(PyObject *, PyObject *args) {
37061 PyObject *resultobj = 0;
37062 Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
37065 PyObject *swig_obj[1] ;
37066 Xapian::PositionIterator result;
37067 if (!args) goto fail;
37068 swig_obj[0] = args;
37069 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[38], 0 | 0, 0);
37070 if (!(res1 >= 0)) {
37071 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "PostingIterator_positionlist_end" "', argument " "1"" of type '" "Xapian::PostingIterator const *""'"); goto fail; } while(0);
37073 arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
37075 SWIG_Python_Thread_Allow _swig_thread_allow;
37078 result = ((Xapian::PostingIterator const *)arg1)->positionlist_end();
37080 _swig_thread_allow.end();
37081 Xapian::SetPythonException();
37085 _swig_thread_allow.end();
37087 resultobj = SWIG_Python_NewPointerObj((new Xapian::PositionIterator(static_cast< const Xapian::PositionIterator& >(result))), swig_types[37], 0x1 | 0);
37092 static __attribute__ ((__unused__)) PyObject *_wrap_PostingIterator___str__(PyObject *, PyObject *args) {
37093 PyObject *resultobj = 0;
37094 Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
37097 PyObject *swig_obj[1] ;
37098 std::string result;
37099 if (!args) goto fail;
37100 swig_obj[0] = args;
37101 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[38], 0 | 0, 0);
37102 if (!(res1 >= 0)) {
37103 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "PostingIterator___str__" "', argument " "1"" of type '" "Xapian::PostingIterator const *""'"); goto fail; } while(0);
37105 arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
37107 SWIG_Python_Thread_Allow _swig_thread_allow;
37110 result = ((Xapian::PostingIterator const *)arg1)->get_description();
37112 _swig_thread_allow.end();
37113 Xapian::SetPythonException();
37117 _swig_thread_allow.end();
37119 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
37124 static __attribute__ ((__unused__)) PyObject *_wrap_PostingIterator___eq__(PyObject *, PyObject *args) {
37125 PyObject *resultobj = 0;
37126 Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
37127 Xapian::PostingIterator *arg2 = 0 ;
37132 PyObject *swig_obj[2] ;
37134 if (!SWIG_Python_UnpackTuple(args,"PostingIterator___eq__",2,2,swig_obj)) goto fail;
37135 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[38], 0 | 0, 0);
37136 if (!(res1 >= 0)) {
37137 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "PostingIterator___eq__" "', argument " "1"" of type '" "Xapian::PostingIterator *""'"); goto fail; } while(0);
37139 arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
37140 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[38], 0 | 0, 0);
37141 if (!(res2 >= 0)) {
37142 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "PostingIterator___eq__" "', argument " "2"" of type '" "Xapian::PostingIterator const &""'"); goto fail; } while(0);
37145 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "PostingIterator___eq__" "', argument " "2"" of type '" "Xapian::PostingIterator const &""'"); goto fail; } while(0);
37147 arg2 = reinterpret_cast< Xapian::PostingIterator * >(argp2);
37149 SWIG_Python_Thread_Allow _swig_thread_allow;
37150 result = (bool)Xapian_PostingIterator___eq__(arg1,(Xapian::PostingIterator const &)*arg2);
37151 _swig_thread_allow.end();
37153 resultobj = SWIG_From_bool(static_cast< bool >(result));
37158 static __attribute__ ((__unused__)) PyObject *_wrap_PostingIterator___ne__(PyObject *, PyObject *args) {
37159 PyObject *resultobj = 0;
37160 Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
37161 Xapian::PostingIterator *arg2 = 0 ;
37166 PyObject *swig_obj[2] ;
37168 if (!SWIG_Python_UnpackTuple(args,"PostingIterator___ne__",2,2,swig_obj)) goto fail;
37169 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[38], 0 | 0, 0);
37170 if (!(res1 >= 0)) {
37171 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "PostingIterator___ne__" "', argument " "1"" of type '" "Xapian::PostingIterator *""'"); goto fail; } while(0);
37173 arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
37174 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[38], 0 | 0, 0);
37175 if (!(res2 >= 0)) {
37176 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "PostingIterator___ne__" "', argument " "2"" of type '" "Xapian::PostingIterator const &""'"); goto fail; } while(0);
37179 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "PostingIterator___ne__" "', argument " "2"" of type '" "Xapian::PostingIterator const &""'"); goto fail; } while(0);
37181 arg2 = reinterpret_cast< Xapian::PostingIterator * >(argp2);
37183 SWIG_Python_Thread_Allow _swig_thread_allow;
37184 result = (bool)Xapian_PostingIterator___ne__(arg1,(Xapian::PostingIterator const &)*arg2);
37185 _swig_thread_allow.end();
37187 resultobj = SWIG_From_bool(static_cast< bool >(result));
37192 static __attribute__ ((__unused__)) PyObject *_wrap_PostingIterator_get_docid(PyObject *, PyObject *args) {
37193 PyObject *resultobj = 0;
37194 Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
37197 PyObject *swig_obj[1] ;
37198 Xapian::docid result;
37199 if (!args) goto fail;
37200 swig_obj[0] = args;
37201 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[38], 0 | 0, 0);
37202 if (!(res1 >= 0)) {
37203 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "PostingIterator_get_docid" "', argument " "1"" of type '" "Xapian::PostingIterator const *""'"); goto fail; } while(0);
37205 arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
37207 SWIG_Python_Thread_Allow _swig_thread_allow;
37210 result = (Xapian::docid)Xapian_PostingIterator_get_docid((Xapian::PostingIterator const *)arg1);
37212 _swig_thread_allow.end();
37213 Xapian::SetPythonException();
37217 _swig_thread_allow.end();
37219 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
37224 static __attribute__ ((__unused__)) PyObject *_wrap_PostingIterator_next(PyObject *, PyObject *args) {
37225 PyObject *resultobj = 0;
37226 Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
37229 PyObject *swig_obj[1] ;
37230 if (!args) goto fail;
37231 swig_obj[0] = args;
37232 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[38], 0 | 0, 0);
37233 if (!(res1 >= 0)) {
37234 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "PostingIterator_next" "', argument " "1"" of type '" "Xapian::PostingIterator *""'"); goto fail; } while(0);
37236 arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
37238 SWIG_Python_Thread_Allow _swig_thread_allow;
37241 Xapian_PostingIterator_next(arg1);
37243 _swig_thread_allow.end();
37244 Xapian::SetPythonException();
37248 _swig_thread_allow.end();
37250 resultobj = SWIG_Py_Void();
37255 static __attribute__ ((__unused__)) PyObject *_wrap_PostingIterator_equals(PyObject *, PyObject *args) {
37256 PyObject *resultobj = 0;
37257 Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
37258 Xapian::PostingIterator *arg2 = 0 ;
37263 PyObject *swig_obj[2] ;
37265 if (!SWIG_Python_UnpackTuple(args,"PostingIterator_equals",2,2,swig_obj)) goto fail;
37266 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[38], 0 | 0, 0);
37267 if (!(res1 >= 0)) {
37268 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "PostingIterator_equals" "', argument " "1"" of type '" "Xapian::PostingIterator const *""'"); goto fail; } while(0);
37270 arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
37271 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[38], 0 | 0, 0);
37272 if (!(res2 >= 0)) {
37273 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "PostingIterator_equals" "', argument " "2"" of type '" "Xapian::PostingIterator const &""'"); goto fail; } while(0);
37276 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "PostingIterator_equals" "', argument " "2"" of type '" "Xapian::PostingIterator const &""'"); goto fail; } while(0);
37278 arg2 = reinterpret_cast< Xapian::PostingIterator * >(argp2);
37280 SWIG_Python_Thread_Allow _swig_thread_allow;
37283 result = (bool)Xapian_PostingIterator_equals((Xapian::PostingIterator const *)arg1,(Xapian::PostingIterator const &)*arg2);
37285 _swig_thread_allow.end();
37286 Xapian::SetPythonException();
37290 _swig_thread_allow.end();
37292 resultobj = SWIG_From_bool(static_cast< bool >(result));
37297 static __attribute__ ((__unused__)) PyObject *PostingIterator_swigregister(PyObject *, PyObject *args) {
37299 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
37300 SWIG_TypeNewClientData(swig_types[38], SwigPyClientData_New(obj));
37301 return SWIG_Py_Void();
37303 static __attribute__ ((__unused__)) PyObject *PostingIterator_swiginit(PyObject *, PyObject *args) {
37304 return SWIG_Python_InitShadowInstance(args);
37306 static __attribute__ ((__unused__)) PyObject *_wrap___eq__(PyObject *, PyObject *args) {
37307 PyObject *resultobj = 0;
37308 Xapian::PostingIterator *arg1 = 0 ;
37309 Xapian::PostingIterator *arg2 = 0 ;
37314 PyObject *swig_obj[2] ;
37316 if (!SWIG_Python_UnpackTuple(args,"__eq__",2,2,swig_obj)) goto fail;
37317 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[38], 0 | 0, 0);
37318 if (!(res1 >= 0)) {
37319 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "__eq__" "', argument " "1"" of type '" "Xapian::PostingIterator const &""'"); goto fail; } while(0);
37322 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "__eq__" "', argument " "1"" of type '" "Xapian::PostingIterator const &""'"); goto fail; } while(0);
37324 arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
37325 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[38], 0 | 0, 0);
37326 if (!(res2 >= 0)) {
37327 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "__eq__" "', argument " "2"" of type '" "Xapian::PostingIterator const &""'"); goto fail; } while(0);
37330 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "__eq__" "', argument " "2"" of type '" "Xapian::PostingIterator const &""'"); goto fail; } while(0);
37332 arg2 = reinterpret_cast< Xapian::PostingIterator * >(argp2);
37334 SWIG_Python_Thread_Allow _swig_thread_allow;
37337 result = (bool)Xapian::operator ==((Xapian::PostingIterator const &)*arg1,(Xapian::PostingIterator const &)*arg2);
37339 _swig_thread_allow.end();
37340 Xapian::SetPythonException();
37344 _swig_thread_allow.end();
37346 resultobj = SWIG_From_bool(static_cast< bool >(result));
37351 static __attribute__ ((__unused__)) PyObject *_wrap___ne__(PyObject *, PyObject *args) {
37352 PyObject *resultobj = 0;
37353 Xapian::PostingIterator *arg1 = 0 ;
37354 Xapian::PostingIterator *arg2 = 0 ;
37359 PyObject *swig_obj[2] ;
37361 if (!SWIG_Python_UnpackTuple(args,"__ne__",2,2,swig_obj)) goto fail;
37362 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[38], 0 | 0, 0);
37363 if (!(res1 >= 0)) {
37364 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "__ne__" "', argument " "1"" of type '" "Xapian::PostingIterator const &""'"); goto fail; } while(0);
37367 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "__ne__" "', argument " "1"" of type '" "Xapian::PostingIterator const &""'"); goto fail; } while(0);
37369 arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
37370 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[38], 0 | 0, 0);
37371 if (!(res2 >= 0)) {
37372 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "__ne__" "', argument " "2"" of type '" "Xapian::PostingIterator const &""'"); goto fail; } while(0);
37375 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "__ne__" "', argument " "2"" of type '" "Xapian::PostingIterator const &""'"); goto fail; } while(0);
37377 arg2 = reinterpret_cast< Xapian::PostingIterator * >(argp2);
37379 SWIG_Python_Thread_Allow _swig_thread_allow;
37382 result = (bool)Xapian::operator !=((Xapian::PostingIterator const &)*arg1,(Xapian::PostingIterator const &)*arg2);
37384 _swig_thread_allow.end();
37385 Xapian::SetPythonException();
37389 _swig_thread_allow.end();
37391 resultobj = SWIG_From_bool(static_cast< bool >(result));
37396 static __attribute__ ((__unused__)) PyObject *_wrap_new_TermIterator__SWIG_0(PyObject *, int nobjs, PyObject **) {
37397 PyObject *resultobj = 0;
37398 Xapian::TermIterator *result = 0 ;
37399 if ((nobjs < 0) || (nobjs > 0)) goto fail;
37401 SWIG_Python_Thread_Allow _swig_thread_allow;
37404 result = (Xapian::TermIterator *)new Xapian::TermIterator();
37406 _swig_thread_allow.end();
37407 Xapian::SetPythonException();
37411 _swig_thread_allow.end();
37413 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[55], ((0x1 << 1) | 0x1) | 0);
37418 static __attribute__ ((__unused__)) PyObject *_wrap_new_TermIterator__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
37419 PyObject *resultobj = 0;
37420 Xapian::TermIterator *arg1 = 0 ;
37423 Xapian::TermIterator *result = 0 ;
37424 if ((nobjs < 1) || (nobjs > 1)) goto fail;
37425 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[55], 0 | 0, 0);
37426 if (!(res1 >= 0)) {
37427 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_TermIterator" "', argument " "1"" of type '" "Xapian::TermIterator const &""'"); goto fail; } while(0);
37430 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_TermIterator" "', argument " "1"" of type '" "Xapian::TermIterator const &""'"); goto fail; } while(0);
37432 arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
37434 SWIG_Python_Thread_Allow _swig_thread_allow;
37437 result = (Xapian::TermIterator *)new Xapian::TermIterator((Xapian::TermIterator const &)*arg1);
37439 _swig_thread_allow.end();
37440 Xapian::SetPythonException();
37444 _swig_thread_allow.end();
37446 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[55], ((0x1 << 1) | 0x1) | 0);
37451 static __attribute__ ((__unused__)) PyObject *_wrap_new_TermIterator(PyObject *self, PyObject *args) {
37454 if (!(argc = SWIG_Python_UnpackTuple(args,"new_TermIterator",0,1,argv))) goto fail;
37457 return _wrap_new_TermIterator__SWIG_0(self, argc, argv);
37460 return _wrap_new_TermIterator__SWIG_1(self, argc, argv);
37463 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_TermIterator'.\n"
37464 " Possible C/C++ prototypes are:\n"
37465 " Xapian::TermIterator()\n"
37466 " Xapian::TermIterator(Xapian::TermIterator const &)\n");
37469 static __attribute__ ((__unused__)) PyObject *_wrap_delete_TermIterator(PyObject *, PyObject *args) {
37470 PyObject *resultobj = 0;
37471 Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
37474 PyObject *swig_obj[1] ;
37475 if (!args) goto fail;
37476 swig_obj[0] = args;
37477 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[55], 0x1 | 0, 0);
37478 if (!(res1 >= 0)) {
37479 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_TermIterator" "', argument " "1"" of type '" "Xapian::TermIterator *""'"); goto fail; } while(0);
37481 arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
37483 SWIG_Python_Thread_Allow _swig_thread_allow;
37488 _swig_thread_allow.end();
37489 Xapian::SetPythonException();
37493 _swig_thread_allow.end();
37495 resultobj = SWIG_Py_Void();
37500 static __attribute__ ((__unused__)) PyObject *_wrap_TermIterator_get_term(PyObject *, PyObject *args) {
37501 PyObject *resultobj = 0;
37502 Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
37505 PyObject *swig_obj[1] ;
37506 std::string result;
37507 if (!args) goto fail;
37508 swig_obj[0] = args;
37509 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[55], 0 | 0, 0);
37510 if (!(res1 >= 0)) {
37511 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "TermIterator_get_term" "', argument " "1"" of type '" "Xapian::TermIterator const *""'"); goto fail; } while(0);
37513 arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
37515 SWIG_Python_Thread_Allow _swig_thread_allow;
37518 result = Xapian_TermIterator_get_term((Xapian::TermIterator const *)arg1);
37520 _swig_thread_allow.end();
37521 Xapian::SetPythonException();
37525 _swig_thread_allow.end();
37527 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
37532 static __attribute__ ((__unused__)) PyObject *_wrap_TermIterator_next(PyObject *, PyObject *args) {
37533 PyObject *resultobj = 0;
37534 Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
37537 PyObject *swig_obj[1] ;
37538 if (!args) goto fail;
37539 swig_obj[0] = args;
37540 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[55], 0 | 0, 0);
37541 if (!(res1 >= 0)) {
37542 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "TermIterator_next" "', argument " "1"" of type '" "Xapian::TermIterator *""'"); goto fail; } while(0);
37544 arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
37546 SWIG_Python_Thread_Allow _swig_thread_allow;
37549 Xapian_TermIterator_next(arg1);
37551 _swig_thread_allow.end();
37552 Xapian::SetPythonException();
37556 _swig_thread_allow.end();
37558 resultobj = SWIG_Py_Void();
37563 static __attribute__ ((__unused__)) PyObject *_wrap_TermIterator_equals(PyObject *, PyObject *args) {
37564 PyObject *resultobj = 0;
37565 Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
37566 Xapian::TermIterator *arg2 = 0 ;
37571 PyObject *swig_obj[2] ;
37573 if (!SWIG_Python_UnpackTuple(args,"TermIterator_equals",2,2,swig_obj)) goto fail;
37574 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[55], 0 | 0, 0);
37575 if (!(res1 >= 0)) {
37576 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "TermIterator_equals" "', argument " "1"" of type '" "Xapian::TermIterator const *""'"); goto fail; } while(0);
37578 arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
37579 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[55], 0 | 0, 0);
37580 if (!(res2 >= 0)) {
37581 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "TermIterator_equals" "', argument " "2"" of type '" "Xapian::TermIterator const &""'"); goto fail; } while(0);
37584 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "TermIterator_equals" "', argument " "2"" of type '" "Xapian::TermIterator const &""'"); goto fail; } while(0);
37586 arg2 = reinterpret_cast< Xapian::TermIterator * >(argp2);
37588 SWIG_Python_Thread_Allow _swig_thread_allow;
37591 result = (bool)Xapian_TermIterator_equals((Xapian::TermIterator const *)arg1,(Xapian::TermIterator const &)*arg2);
37593 _swig_thread_allow.end();
37594 Xapian::SetPythonException();
37598 _swig_thread_allow.end();
37600 resultobj = SWIG_From_bool(static_cast< bool >(result));
37605 static __attribute__ ((__unused__)) PyObject *_wrap_TermIterator_skip_to(PyObject *, PyObject *args) {
37606 PyObject *resultobj = 0;
37607 Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
37608 std::string *arg2 = 0 ;
37612 PyObject *swig_obj[2] ;
37613 if (!SWIG_Python_UnpackTuple(args,"TermIterator_skip_to",2,2,swig_obj)) goto fail;
37614 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[55], 0 | 0, 0);
37615 if (!(res1 >= 0)) {
37616 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "TermIterator_skip_to" "', argument " "1"" of type '" "Xapian::TermIterator *""'"); goto fail; } while(0);
37618 arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
37620 std::string *ptr = (std::string *)0;
37621 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
37622 if (!(res2 >= 0)) {
37623 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "TermIterator_skip_to" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
37626 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "TermIterator_skip_to" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
37631 SWIG_Python_Thread_Allow _swig_thread_allow;
37634 (arg1)->skip_to((std::string const &)*arg2);
37636 _swig_thread_allow.end();
37637 Xapian::SetPythonException();
37641 _swig_thread_allow.end();
37643 resultobj = SWIG_Py_Void();
37644 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
37647 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
37650 static __attribute__ ((__unused__)) PyObject *_wrap_TermIterator_get_wdf(PyObject *, PyObject *args) {
37651 PyObject *resultobj = 0;
37652 Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
37655 PyObject *swig_obj[1] ;
37656 Xapian::termcount result;
37657 if (!args) goto fail;
37658 swig_obj[0] = args;
37659 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[55], 0 | 0, 0);
37660 if (!(res1 >= 0)) {
37661 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "TermIterator_get_wdf" "', argument " "1"" of type '" "Xapian::TermIterator const *""'"); goto fail; } while(0);
37663 arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
37665 SWIG_Python_Thread_Allow _swig_thread_allow;
37668 result = (Xapian::termcount)((Xapian::TermIterator const *)arg1)->get_wdf();
37670 _swig_thread_allow.end();
37671 Xapian::SetPythonException();
37675 _swig_thread_allow.end();
37677 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
37682 static __attribute__ ((__unused__)) PyObject *_wrap_TermIterator_get_termfreq(PyObject *, PyObject *args) {
37683 PyObject *resultobj = 0;
37684 Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
37687 PyObject *swig_obj[1] ;
37688 Xapian::doccount result;
37689 if (!args) goto fail;
37690 swig_obj[0] = args;
37691 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[55], 0 | 0, 0);
37692 if (!(res1 >= 0)) {
37693 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "TermIterator_get_termfreq" "', argument " "1"" of type '" "Xapian::TermIterator const *""'"); goto fail; } while(0);
37695 arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
37697 SWIG_Python_Thread_Allow _swig_thread_allow;
37700 result = (Xapian::doccount)((Xapian::TermIterator const *)arg1)->get_termfreq();
37702 _swig_thread_allow.end();
37703 Xapian::SetPythonException();
37707 _swig_thread_allow.end();
37709 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
37714 static __attribute__ ((__unused__)) PyObject *_wrap_TermIterator_positionlist_begin(PyObject *, PyObject *args) {
37715 PyObject *resultobj = 0;
37716 Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
37719 PyObject *swig_obj[1] ;
37720 Xapian::PositionIterator result;
37721 if (!args) goto fail;
37722 swig_obj[0] = args;
37723 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[55], 0 | 0, 0);
37724 if (!(res1 >= 0)) {
37725 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "TermIterator_positionlist_begin" "', argument " "1"" of type '" "Xapian::TermIterator *""'"); goto fail; } while(0);
37727 arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
37729 SWIG_Python_Thread_Allow _swig_thread_allow;
37732 result = (arg1)->positionlist_begin();
37734 _swig_thread_allow.end();
37735 Xapian::SetPythonException();
37739 _swig_thread_allow.end();
37741 resultobj = SWIG_Python_NewPointerObj((new Xapian::PositionIterator(static_cast< const Xapian::PositionIterator& >(result))), swig_types[37], 0x1 | 0);
37746 static __attribute__ ((__unused__)) PyObject *_wrap_TermIterator_positionlist_end(PyObject *, PyObject *args) {
37747 PyObject *resultobj = 0;
37748 Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
37751 PyObject *swig_obj[1] ;
37752 Xapian::PositionIterator result;
37753 if (!args) goto fail;
37754 swig_obj[0] = args;
37755 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[55], 0 | 0, 0);
37756 if (!(res1 >= 0)) {
37757 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "TermIterator_positionlist_end" "', argument " "1"" of type '" "Xapian::TermIterator *""'"); goto fail; } while(0);
37759 arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
37761 SWIG_Python_Thread_Allow _swig_thread_allow;
37764 result = (arg1)->positionlist_end();
37766 _swig_thread_allow.end();
37767 Xapian::SetPythonException();
37771 _swig_thread_allow.end();
37773 resultobj = SWIG_Python_NewPointerObj((new Xapian::PositionIterator(static_cast< const Xapian::PositionIterator& >(result))), swig_types[37], 0x1 | 0);
37778 static __attribute__ ((__unused__)) PyObject *_wrap_TermIterator___str__(PyObject *, PyObject *args) {
37779 PyObject *resultobj = 0;
37780 Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
37783 PyObject *swig_obj[1] ;
37784 std::string result;
37785 if (!args) goto fail;
37786 swig_obj[0] = args;
37787 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[55], 0 | 0, 0);
37788 if (!(res1 >= 0)) {
37789 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "TermIterator___str__" "', argument " "1"" of type '" "Xapian::TermIterator const *""'"); goto fail; } while(0);
37791 arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
37793 SWIG_Python_Thread_Allow _swig_thread_allow;
37796 result = ((Xapian::TermIterator const *)arg1)->get_description();
37798 _swig_thread_allow.end();
37799 Xapian::SetPythonException();
37803 _swig_thread_allow.end();
37805 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
37810 static __attribute__ ((__unused__)) PyObject *_wrap_TermIterator___eq__(PyObject *, PyObject *args) {
37811 PyObject *resultobj = 0;
37812 Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
37813 Xapian::TermIterator *arg2 = 0 ;
37818 PyObject *swig_obj[2] ;
37820 if (!SWIG_Python_UnpackTuple(args,"TermIterator___eq__",2,2,swig_obj)) goto fail;
37821 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[55], 0 | 0, 0);
37822 if (!(res1 >= 0)) {
37823 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "TermIterator___eq__" "', argument " "1"" of type '" "Xapian::TermIterator *""'"); goto fail; } while(0);
37825 arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
37826 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[55], 0 | 0, 0);
37827 if (!(res2 >= 0)) {
37828 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "TermIterator___eq__" "', argument " "2"" of type '" "Xapian::TermIterator const &""'"); goto fail; } while(0);
37831 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "TermIterator___eq__" "', argument " "2"" of type '" "Xapian::TermIterator const &""'"); goto fail; } while(0);
37833 arg2 = reinterpret_cast< Xapian::TermIterator * >(argp2);
37835 SWIG_Python_Thread_Allow _swig_thread_allow;
37836 result = (bool)Xapian_TermIterator___eq__(arg1,(Xapian::TermIterator const &)*arg2);
37837 _swig_thread_allow.end();
37839 resultobj = SWIG_From_bool(static_cast< bool >(result));
37844 static __attribute__ ((__unused__)) PyObject *_wrap_TermIterator___ne__(PyObject *, PyObject *args) {
37845 PyObject *resultobj = 0;
37846 Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
37847 Xapian::TermIterator *arg2 = 0 ;
37852 PyObject *swig_obj[2] ;
37854 if (!SWIG_Python_UnpackTuple(args,"TermIterator___ne__",2,2,swig_obj)) goto fail;
37855 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[55], 0 | 0, 0);
37856 if (!(res1 >= 0)) {
37857 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "TermIterator___ne__" "', argument " "1"" of type '" "Xapian::TermIterator *""'"); goto fail; } while(0);
37859 arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
37860 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[55], 0 | 0, 0);
37861 if (!(res2 >= 0)) {
37862 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "TermIterator___ne__" "', argument " "2"" of type '" "Xapian::TermIterator const &""'"); goto fail; } while(0);
37865 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "TermIterator___ne__" "', argument " "2"" of type '" "Xapian::TermIterator const &""'"); goto fail; } while(0);
37867 arg2 = reinterpret_cast< Xapian::TermIterator * >(argp2);
37869 SWIG_Python_Thread_Allow _swig_thread_allow;
37870 result = (bool)Xapian_TermIterator___ne__(arg1,(Xapian::TermIterator const &)*arg2);
37871 _swig_thread_allow.end();
37873 resultobj = SWIG_From_bool(static_cast< bool >(result));
37878 static __attribute__ ((__unused__)) PyObject *TermIterator_swigregister(PyObject *, PyObject *args) {
37880 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
37881 SWIG_TypeNewClientData(swig_types[55], SwigPyClientData_New(obj));
37882 return SWIG_Py_Void();
37884 static __attribute__ ((__unused__)) PyObject *TermIterator_swiginit(PyObject *, PyObject *args) {
37885 return SWIG_Python_InitShadowInstance(args);
37887 static __attribute__ ((__unused__)) PyObject *_wrap_new_ValueIterator__SWIG_0(PyObject *, int nobjs, PyObject **) {
37888 PyObject *resultobj = 0;
37889 Xapian::ValueIterator *result = 0 ;
37890 if ((nobjs < 0) || (nobjs > 0)) goto fail;
37892 SWIG_Python_Thread_Allow _swig_thread_allow;
37895 result = (Xapian::ValueIterator *)new Xapian::ValueIterator();
37897 _swig_thread_allow.end();
37898 Xapian::SetPythonException();
37902 _swig_thread_allow.end();
37904 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[59], ((0x1 << 1) | 0x1) | 0);
37909 static __attribute__ ((__unused__)) PyObject *_wrap_new_ValueIterator__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
37910 PyObject *resultobj = 0;
37911 Xapian::ValueIterator *arg1 = 0 ;
37914 Xapian::ValueIterator *result = 0 ;
37915 if ((nobjs < 1) || (nobjs > 1)) goto fail;
37916 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[59], 0 | 0, 0);
37917 if (!(res1 >= 0)) {
37918 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_ValueIterator" "', argument " "1"" of type '" "Xapian::ValueIterator const &""'"); goto fail; } while(0);
37921 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_ValueIterator" "', argument " "1"" of type '" "Xapian::ValueIterator const &""'"); goto fail; } while(0);
37923 arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
37925 SWIG_Python_Thread_Allow _swig_thread_allow;
37928 result = (Xapian::ValueIterator *)new Xapian::ValueIterator((Xapian::ValueIterator const &)*arg1);
37930 _swig_thread_allow.end();
37931 Xapian::SetPythonException();
37935 _swig_thread_allow.end();
37937 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[59], ((0x1 << 1) | 0x1) | 0);
37942 static __attribute__ ((__unused__)) PyObject *_wrap_new_ValueIterator(PyObject *self, PyObject *args) {
37945 if (!(argc = SWIG_Python_UnpackTuple(args,"new_ValueIterator",0,1,argv))) goto fail;
37948 return _wrap_new_ValueIterator__SWIG_0(self, argc, argv);
37951 return _wrap_new_ValueIterator__SWIG_1(self, argc, argv);
37954 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_ValueIterator'.\n"
37955 " Possible C/C++ prototypes are:\n"
37956 " Xapian::ValueIterator()\n"
37957 " Xapian::ValueIterator(Xapian::ValueIterator const &)\n");
37960 static __attribute__ ((__unused__)) PyObject *_wrap_delete_ValueIterator(PyObject *, PyObject *args) {
37961 PyObject *resultobj = 0;
37962 Xapian::ValueIterator *arg1 = (Xapian::ValueIterator *) 0 ;
37965 PyObject *swig_obj[1] ;
37966 if (!args) goto fail;
37967 swig_obj[0] = args;
37968 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[59], 0x1 | 0, 0);
37969 if (!(res1 >= 0)) {
37970 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_ValueIterator" "', argument " "1"" of type '" "Xapian::ValueIterator *""'"); goto fail; } while(0);
37972 arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
37974 SWIG_Python_Thread_Allow _swig_thread_allow;
37979 _swig_thread_allow.end();
37980 Xapian::SetPythonException();
37984 _swig_thread_allow.end();
37986 resultobj = SWIG_Py_Void();
37991 static __attribute__ ((__unused__)) PyObject *_wrap_ValueIterator_get_value(PyObject *, PyObject *args) {
37992 PyObject *resultobj = 0;
37993 Xapian::ValueIterator *arg1 = (Xapian::ValueIterator *) 0 ;
37996 PyObject *swig_obj[1] ;
37997 std::string result;
37998 if (!args) goto fail;
37999 swig_obj[0] = args;
38000 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[59], 0 | 0, 0);
38001 if (!(res1 >= 0)) {
38002 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "ValueIterator_get_value" "', argument " "1"" of type '" "Xapian::ValueIterator const *""'"); goto fail; } while(0);
38004 arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
38006 SWIG_Python_Thread_Allow _swig_thread_allow;
38009 result = Xapian_ValueIterator_get_value((Xapian::ValueIterator const *)arg1);
38011 _swig_thread_allow.end();
38012 Xapian::SetPythonException();
38016 _swig_thread_allow.end();
38018 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
38023 static __attribute__ ((__unused__)) PyObject *_wrap_ValueIterator_next(PyObject *, PyObject *args) {
38024 PyObject *resultobj = 0;
38025 Xapian::ValueIterator *arg1 = (Xapian::ValueIterator *) 0 ;
38028 PyObject *swig_obj[1] ;
38029 if (!args) goto fail;
38030 swig_obj[0] = args;
38031 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[59], 0 | 0, 0);
38032 if (!(res1 >= 0)) {
38033 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "ValueIterator_next" "', argument " "1"" of type '" "Xapian::ValueIterator *""'"); goto fail; } while(0);
38035 arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
38037 SWIG_Python_Thread_Allow _swig_thread_allow;
38040 Xapian_ValueIterator_next(arg1);
38042 _swig_thread_allow.end();
38043 Xapian::SetPythonException();
38047 _swig_thread_allow.end();
38049 resultobj = SWIG_Py_Void();
38054 static __attribute__ ((__unused__)) PyObject *_wrap_ValueIterator_equals(PyObject *, PyObject *args) {
38055 PyObject *resultobj = 0;
38056 Xapian::ValueIterator *arg1 = (Xapian::ValueIterator *) 0 ;
38057 Xapian::ValueIterator *arg2 = 0 ;
38062 PyObject *swig_obj[2] ;
38064 if (!SWIG_Python_UnpackTuple(args,"ValueIterator_equals",2,2,swig_obj)) goto fail;
38065 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[59], 0 | 0, 0);
38066 if (!(res1 >= 0)) {
38067 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "ValueIterator_equals" "', argument " "1"" of type '" "Xapian::ValueIterator const *""'"); goto fail; } while(0);
38069 arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
38070 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[59], 0 | 0, 0);
38071 if (!(res2 >= 0)) {
38072 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "ValueIterator_equals" "', argument " "2"" of type '" "Xapian::ValueIterator const &""'"); goto fail; } while(0);
38075 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "ValueIterator_equals" "', argument " "2"" of type '" "Xapian::ValueIterator const &""'"); goto fail; } while(0);
38077 arg2 = reinterpret_cast< Xapian::ValueIterator * >(argp2);
38079 SWIG_Python_Thread_Allow _swig_thread_allow;
38082 result = (bool)Xapian_ValueIterator_equals((Xapian::ValueIterator const *)arg1,(Xapian::ValueIterator const &)*arg2);
38084 _swig_thread_allow.end();
38085 Xapian::SetPythonException();
38089 _swig_thread_allow.end();
38091 resultobj = SWIG_From_bool(static_cast< bool >(result));
38096 static __attribute__ ((__unused__)) PyObject *_wrap_ValueIterator_get_docid(PyObject *, PyObject *args) {
38097 PyObject *resultobj = 0;
38098 Xapian::ValueIterator *arg1 = (Xapian::ValueIterator *) 0 ;
38101 PyObject *swig_obj[1] ;
38102 Xapian::docid result;
38103 if (!args) goto fail;
38104 swig_obj[0] = args;
38105 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[59], 0 | 0, 0);
38106 if (!(res1 >= 0)) {
38107 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "ValueIterator_get_docid" "', argument " "1"" of type '" "Xapian::ValueIterator const *""'"); goto fail; } while(0);
38109 arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
38111 SWIG_Python_Thread_Allow _swig_thread_allow;
38114 result = (Xapian::docid)((Xapian::ValueIterator const *)arg1)->get_docid();
38116 _swig_thread_allow.end();
38117 Xapian::SetPythonException();
38121 _swig_thread_allow.end();
38123 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
38128 static __attribute__ ((__unused__)) PyObject *_wrap_ValueIterator_get_valueno(PyObject *, PyObject *args) {
38129 PyObject *resultobj = 0;
38130 Xapian::ValueIterator *arg1 = (Xapian::ValueIterator *) 0 ;
38133 PyObject *swig_obj[1] ;
38134 Xapian::valueno result;
38135 if (!args) goto fail;
38136 swig_obj[0] = args;
38137 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[59], 0 | 0, 0);
38138 if (!(res1 >= 0)) {
38139 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "ValueIterator_get_valueno" "', argument " "1"" of type '" "Xapian::ValueIterator const *""'"); goto fail; } while(0);
38141 arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
38143 SWIG_Python_Thread_Allow _swig_thread_allow;
38146 result = (Xapian::valueno)((Xapian::ValueIterator const *)arg1)->get_valueno();
38148 _swig_thread_allow.end();
38149 Xapian::SetPythonException();
38153 _swig_thread_allow.end();
38155 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
38160 static __attribute__ ((__unused__)) PyObject *_wrap_ValueIterator_skip_to(PyObject *, PyObject *args) {
38161 PyObject *resultobj = 0;
38162 Xapian::ValueIterator *arg1 = (Xapian::ValueIterator *) 0 ;
38163 Xapian::docid arg2 ;
38166 unsigned int val2 ;
38168 PyObject *swig_obj[2] ;
38169 if (!SWIG_Python_UnpackTuple(args,"ValueIterator_skip_to",2,2,swig_obj)) goto fail;
38170 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[59], 0 | 0, 0);
38171 if (!(res1 >= 0)) {
38172 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "ValueIterator_skip_to" "', argument " "1"" of type '" "Xapian::ValueIterator *""'"); goto fail; } while(0);
38174 arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
38175 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
38176 if (!(ecode2 >= 0)) {
38177 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "ValueIterator_skip_to" "', argument " "2"" of type '" "Xapian::docid""'"); goto fail; } while(0);
38179 arg2 = static_cast< Xapian::docid >(val2);
38181 SWIG_Python_Thread_Allow _swig_thread_allow;
38184 (arg1)->skip_to(arg2);
38186 _swig_thread_allow.end();
38187 Xapian::SetPythonException();
38191 _swig_thread_allow.end();
38193 resultobj = SWIG_Py_Void();
38198 static __attribute__ ((__unused__)) PyObject *_wrap_ValueIterator_check(PyObject *, PyObject *args) {
38199 PyObject *resultobj = 0;
38200 Xapian::ValueIterator *arg1 = (Xapian::ValueIterator *) 0 ;
38201 Xapian::docid arg2 ;
38204 unsigned int val2 ;
38206 PyObject *swig_obj[2] ;
38208 if (!SWIG_Python_UnpackTuple(args,"ValueIterator_check",2,2,swig_obj)) goto fail;
38209 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[59], 0 | 0, 0);
38210 if (!(res1 >= 0)) {
38211 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "ValueIterator_check" "', argument " "1"" of type '" "Xapian::ValueIterator *""'"); goto fail; } while(0);
38213 arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
38214 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
38215 if (!(ecode2 >= 0)) {
38216 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "ValueIterator_check" "', argument " "2"" of type '" "Xapian::docid""'"); goto fail; } while(0);
38218 arg2 = static_cast< Xapian::docid >(val2);
38220 SWIG_Python_Thread_Allow _swig_thread_allow;
38223 result = (bool)(arg1)->check(arg2);
38225 _swig_thread_allow.end();
38226 Xapian::SetPythonException();
38230 _swig_thread_allow.end();
38232 resultobj = SWIG_From_bool(static_cast< bool >(result));
38237 static __attribute__ ((__unused__)) PyObject *_wrap_ValueIterator___str__(PyObject *, PyObject *args) {
38238 PyObject *resultobj = 0;
38239 Xapian::ValueIterator *arg1 = (Xapian::ValueIterator *) 0 ;
38242 PyObject *swig_obj[1] ;
38243 std::string result;
38244 if (!args) goto fail;
38245 swig_obj[0] = args;
38246 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[59], 0 | 0, 0);
38247 if (!(res1 >= 0)) {
38248 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "ValueIterator___str__" "', argument " "1"" of type '" "Xapian::ValueIterator const *""'"); goto fail; } while(0);
38250 arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
38252 SWIG_Python_Thread_Allow _swig_thread_allow;
38255 result = ((Xapian::ValueIterator const *)arg1)->get_description();
38257 _swig_thread_allow.end();
38258 Xapian::SetPythonException();
38262 _swig_thread_allow.end();
38264 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
38269 static __attribute__ ((__unused__)) PyObject *_wrap_ValueIterator___eq__(PyObject *, PyObject *args) {
38270 PyObject *resultobj = 0;
38271 Xapian::ValueIterator *arg1 = (Xapian::ValueIterator *) 0 ;
38272 Xapian::ValueIterator *arg2 = 0 ;
38277 PyObject *swig_obj[2] ;
38279 if (!SWIG_Python_UnpackTuple(args,"ValueIterator___eq__",2,2,swig_obj)) goto fail;
38280 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[59], 0 | 0, 0);
38281 if (!(res1 >= 0)) {
38282 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "ValueIterator___eq__" "', argument " "1"" of type '" "Xapian::ValueIterator *""'"); goto fail; } while(0);
38284 arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
38285 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[59], 0 | 0, 0);
38286 if (!(res2 >= 0)) {
38287 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "ValueIterator___eq__" "', argument " "2"" of type '" "Xapian::ValueIterator const &""'"); goto fail; } while(0);
38290 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "ValueIterator___eq__" "', argument " "2"" of type '" "Xapian::ValueIterator const &""'"); goto fail; } while(0);
38292 arg2 = reinterpret_cast< Xapian::ValueIterator * >(argp2);
38294 SWIG_Python_Thread_Allow _swig_thread_allow;
38295 result = (bool)Xapian_ValueIterator___eq__(arg1,(Xapian::ValueIterator const &)*arg2);
38296 _swig_thread_allow.end();
38298 resultobj = SWIG_From_bool(static_cast< bool >(result));
38303 static __attribute__ ((__unused__)) PyObject *_wrap_ValueIterator___ne__(PyObject *, PyObject *args) {
38304 PyObject *resultobj = 0;
38305 Xapian::ValueIterator *arg1 = (Xapian::ValueIterator *) 0 ;
38306 Xapian::ValueIterator *arg2 = 0 ;
38311 PyObject *swig_obj[2] ;
38313 if (!SWIG_Python_UnpackTuple(args,"ValueIterator___ne__",2,2,swig_obj)) goto fail;
38314 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[59], 0 | 0, 0);
38315 if (!(res1 >= 0)) {
38316 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "ValueIterator___ne__" "', argument " "1"" of type '" "Xapian::ValueIterator *""'"); goto fail; } while(0);
38318 arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
38319 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[59], 0 | 0, 0);
38320 if (!(res2 >= 0)) {
38321 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "ValueIterator___ne__" "', argument " "2"" of type '" "Xapian::ValueIterator const &""'"); goto fail; } while(0);
38324 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "ValueIterator___ne__" "', argument " "2"" of type '" "Xapian::ValueIterator const &""'"); goto fail; } while(0);
38326 arg2 = reinterpret_cast< Xapian::ValueIterator * >(argp2);
38328 SWIG_Python_Thread_Allow _swig_thread_allow;
38329 result = (bool)Xapian_ValueIterator___ne__(arg1,(Xapian::ValueIterator const &)*arg2);
38330 _swig_thread_allow.end();
38332 resultobj = SWIG_From_bool(static_cast< bool >(result));
38337 static __attribute__ ((__unused__)) PyObject *ValueIterator_swigregister(PyObject *, PyObject *args) {
38339 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
38340 SWIG_TypeNewClientData(swig_types[59], SwigPyClientData_New(obj));
38341 return SWIG_Py_Void();
38343 static __attribute__ ((__unused__)) PyObject *ValueIterator_swiginit(PyObject *, PyObject *args) {
38344 return SWIG_Python_InitShadowInstance(args);
38346 static __attribute__ ((__unused__)) PyObject *_wrap_new_Document__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
38347 PyObject *resultobj = 0;
38348 Xapian::Document *arg1 = 0 ;
38351 Xapian::Document *result = 0 ;
38352 if ((nobjs < 1) || (nobjs > 1)) goto fail;
38353 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[15], 0 | 0, 0);
38354 if (!(res1 >= 0)) {
38355 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_Document" "', argument " "1"" of type '" "Xapian::Document const &""'"); goto fail; } while(0);
38358 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_Document" "', argument " "1"" of type '" "Xapian::Document const &""'"); goto fail; } while(0);
38360 arg1 = reinterpret_cast< Xapian::Document * >(argp1);
38362 SWIG_Python_Thread_Allow _swig_thread_allow;
38365 result = (Xapian::Document *)new Xapian::Document((Xapian::Document const &)*arg1);
38367 _swig_thread_allow.end();
38368 Xapian::SetPythonException();
38372 _swig_thread_allow.end();
38374 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[15], ((0x1 << 1) | 0x1) | 0);
38379 static __attribute__ ((__unused__)) PyObject *_wrap_new_Document__SWIG_1(PyObject *, int nobjs, PyObject **) {
38380 PyObject *resultobj = 0;
38381 Xapian::Document *result = 0 ;
38382 if ((nobjs < 0) || (nobjs > 0)) goto fail;
38384 SWIG_Python_Thread_Allow _swig_thread_allow;
38387 result = (Xapian::Document *)new Xapian::Document();
38389 _swig_thread_allow.end();
38390 Xapian::SetPythonException();
38394 _swig_thread_allow.end();
38396 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[15], ((0x1 << 1) | 0x1) | 0);
38401 static __attribute__ ((__unused__)) PyObject *_wrap_new_Document(PyObject *self, PyObject *args) {
38404 if (!(argc = SWIG_Python_UnpackTuple(args,"new_Document",0,1,argv))) goto fail;
38407 return _wrap_new_Document__SWIG_1(self, argc, argv);
38410 return _wrap_new_Document__SWIG_0(self, argc, argv);
38413 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_Document'.\n"
38414 " Possible C/C++ prototypes are:\n"
38415 " Xapian::Document(Xapian::Document const &)\n"
38416 " Xapian::Document()\n");
38419 static __attribute__ ((__unused__)) PyObject *_wrap_delete_Document(PyObject *, PyObject *args) {
38420 PyObject *resultobj = 0;
38421 Xapian::Document *arg1 = (Xapian::Document *) 0 ;
38424 PyObject *swig_obj[1] ;
38425 if (!args) goto fail;
38426 swig_obj[0] = args;
38427 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[15], 0x1 | 0, 0);
38428 if (!(res1 >= 0)) {
38429 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_Document" "', argument " "1"" of type '" "Xapian::Document *""'"); goto fail; } while(0);
38431 arg1 = reinterpret_cast< Xapian::Document * >(argp1);
38433 SWIG_Python_Thread_Allow _swig_thread_allow;
38438 _swig_thread_allow.end();
38439 Xapian::SetPythonException();
38443 _swig_thread_allow.end();
38445 resultobj = SWIG_Py_Void();
38450 static __attribute__ ((__unused__)) PyObject *_wrap_Document_get_value(PyObject *, PyObject *args) {
38451 PyObject *resultobj = 0;
38452 Xapian::Document *arg1 = (Xapian::Document *) 0 ;
38453 Xapian::valueno arg2 ;
38456 unsigned int val2 ;
38458 PyObject *swig_obj[2] ;
38459 std::string result;
38460 if (!SWIG_Python_UnpackTuple(args,"Document_get_value",2,2,swig_obj)) goto fail;
38461 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[15], 0 | 0, 0);
38462 if (!(res1 >= 0)) {
38463 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Document_get_value" "', argument " "1"" of type '" "Xapian::Document const *""'"); goto fail; } while(0);
38465 arg1 = reinterpret_cast< Xapian::Document * >(argp1);
38466 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
38467 if (!(ecode2 >= 0)) {
38468 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Document_get_value" "', argument " "2"" of type '" "Xapian::valueno""'"); goto fail; } while(0);
38470 arg2 = static_cast< Xapian::valueno >(val2);
38472 SWIG_Python_Thread_Allow _swig_thread_allow;
38475 result = ((Xapian::Document const *)arg1)->get_value(arg2);
38477 _swig_thread_allow.end();
38478 Xapian::SetPythonException();
38482 _swig_thread_allow.end();
38484 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
38489 static __attribute__ ((__unused__)) PyObject *_wrap_Document_add_value(PyObject *, PyObject *args) {
38490 PyObject *resultobj = 0;
38491 Xapian::Document *arg1 = (Xapian::Document *) 0 ;
38492 Xapian::valueno arg2 ;
38493 std::string *arg3 = 0 ;
38496 unsigned int val2 ;
38499 PyObject *swig_obj[3] ;
38500 if (!SWIG_Python_UnpackTuple(args,"Document_add_value",3,3,swig_obj)) goto fail;
38501 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[15], 0 | 0, 0);
38502 if (!(res1 >= 0)) {
38503 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Document_add_value" "', argument " "1"" of type '" "Xapian::Document *""'"); goto fail; } while(0);
38505 arg1 = reinterpret_cast< Xapian::Document * >(argp1);
38506 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
38507 if (!(ecode2 >= 0)) {
38508 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Document_add_value" "', argument " "2"" of type '" "Xapian::valueno""'"); goto fail; } while(0);
38510 arg2 = static_cast< Xapian::valueno >(val2);
38512 std::string *ptr = (std::string *)0;
38513 res3 = SWIG_anystring_as_ptr(&(swig_obj[2]), &ptr);
38514 if (!(res3 >= 0)) {
38515 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (-1)) ? res3 : -5)), "in method '" "Document_add_value" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while(0);
38518 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Document_add_value" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while(0);
38523 SWIG_Python_Thread_Allow _swig_thread_allow;
38526 (arg1)->add_value(arg2,(std::string const &)*arg3);
38528 _swig_thread_allow.end();
38529 Xapian::SetPythonException();
38533 _swig_thread_allow.end();
38535 resultobj = SWIG_Py_Void();
38536 if (((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3;
38539 if (((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3;
38542 static __attribute__ ((__unused__)) PyObject *_wrap_Document_remove_value(PyObject *, PyObject *args) {
38543 PyObject *resultobj = 0;
38544 Xapian::Document *arg1 = (Xapian::Document *) 0 ;
38545 Xapian::valueno arg2 ;
38548 unsigned int val2 ;
38550 PyObject *swig_obj[2] ;
38551 if (!SWIG_Python_UnpackTuple(args,"Document_remove_value",2,2,swig_obj)) goto fail;
38552 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[15], 0 | 0, 0);
38553 if (!(res1 >= 0)) {
38554 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Document_remove_value" "', argument " "1"" of type '" "Xapian::Document *""'"); goto fail; } while(0);
38556 arg1 = reinterpret_cast< Xapian::Document * >(argp1);
38557 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
38558 if (!(ecode2 >= 0)) {
38559 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Document_remove_value" "', argument " "2"" of type '" "Xapian::valueno""'"); goto fail; } while(0);
38561 arg2 = static_cast< Xapian::valueno >(val2);
38563 SWIG_Python_Thread_Allow _swig_thread_allow;
38566 (arg1)->remove_value(arg2);
38568 _swig_thread_allow.end();
38569 Xapian::SetPythonException();
38573 _swig_thread_allow.end();
38575 resultobj = SWIG_Py_Void();
38580 static __attribute__ ((__unused__)) PyObject *_wrap_Document_clear_values(PyObject *, PyObject *args) {
38581 PyObject *resultobj = 0;
38582 Xapian::Document *arg1 = (Xapian::Document *) 0 ;
38585 PyObject *swig_obj[1] ;
38586 if (!args) goto fail;
38587 swig_obj[0] = args;
38588 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[15], 0 | 0, 0);
38589 if (!(res1 >= 0)) {
38590 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Document_clear_values" "', argument " "1"" of type '" "Xapian::Document *""'"); goto fail; } while(0);
38592 arg1 = reinterpret_cast< Xapian::Document * >(argp1);
38594 SWIG_Python_Thread_Allow _swig_thread_allow;
38597 (arg1)->clear_values();
38599 _swig_thread_allow.end();
38600 Xapian::SetPythonException();
38604 _swig_thread_allow.end();
38606 resultobj = SWIG_Py_Void();
38611 static __attribute__ ((__unused__)) PyObject *_wrap_Document_get_data(PyObject *, PyObject *args) {
38612 PyObject *resultobj = 0;
38613 Xapian::Document *arg1 = (Xapian::Document *) 0 ;
38616 PyObject *swig_obj[1] ;
38617 std::string result;
38618 if (!args) goto fail;
38619 swig_obj[0] = args;
38620 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[15], 0 | 0, 0);
38621 if (!(res1 >= 0)) {
38622 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Document_get_data" "', argument " "1"" of type '" "Xapian::Document const *""'"); goto fail; } while(0);
38624 arg1 = reinterpret_cast< Xapian::Document * >(argp1);
38626 SWIG_Python_Thread_Allow _swig_thread_allow;
38629 result = ((Xapian::Document const *)arg1)->get_data();
38631 _swig_thread_allow.end();
38632 Xapian::SetPythonException();
38636 _swig_thread_allow.end();
38638 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
38643 static __attribute__ ((__unused__)) PyObject *_wrap_Document_set_data(PyObject *, PyObject *args) {
38644 PyObject *resultobj = 0;
38645 Xapian::Document *arg1 = (Xapian::Document *) 0 ;
38646 std::string *arg2 = 0 ;
38650 PyObject *swig_obj[2] ;
38651 if (!SWIG_Python_UnpackTuple(args,"Document_set_data",2,2,swig_obj)) goto fail;
38652 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[15], 0 | 0, 0);
38653 if (!(res1 >= 0)) {
38654 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Document_set_data" "', argument " "1"" of type '" "Xapian::Document *""'"); goto fail; } while(0);
38656 arg1 = reinterpret_cast< Xapian::Document * >(argp1);
38658 std::string *ptr = (std::string *)0;
38659 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
38660 if (!(res2 >= 0)) {
38661 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Document_set_data" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
38664 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Document_set_data" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
38669 SWIG_Python_Thread_Allow _swig_thread_allow;
38672 (arg1)->set_data((std::string const &)*arg2);
38674 _swig_thread_allow.end();
38675 Xapian::SetPythonException();
38679 _swig_thread_allow.end();
38681 resultobj = SWIG_Py_Void();
38682 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
38685 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
38688 static __attribute__ ((__unused__)) PyObject *_wrap_Document_add_posting__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
38689 PyObject *resultobj = 0;
38690 Xapian::Document *arg1 = (Xapian::Document *) 0 ;
38691 std::string *arg2 = 0 ;
38692 Xapian::termpos arg3 ;
38693 Xapian::termcount arg4 ;
38697 unsigned int val3 ;
38699 unsigned int val4 ;
38701 if ((nobjs < 4) || (nobjs > 4)) goto fail;
38702 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[15], 0 | 0, 0);
38703 if (!(res1 >= 0)) {
38704 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Document_add_posting" "', argument " "1"" of type '" "Xapian::Document *""'"); goto fail; } while(0);
38706 arg1 = reinterpret_cast< Xapian::Document * >(argp1);
38708 std::string *ptr = (std::string *)0;
38709 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
38710 if (!(res2 >= 0)) {
38711 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Document_add_posting" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
38714 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Document_add_posting" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
38718 ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
38719 if (!(ecode3 >= 0)) {
38720 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "Document_add_posting" "', argument " "3"" of type '" "Xapian::termpos""'"); goto fail; } while(0);
38722 arg3 = static_cast< Xapian::termpos >(val3);
38723 ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4);
38724 if (!(ecode4 >= 0)) {
38725 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 != (-1)) ? ecode4 : -5)), "in method '" "Document_add_posting" "', argument " "4"" of type '" "Xapian::termcount""'"); goto fail; } while(0);
38727 arg4 = static_cast< Xapian::termcount >(val4);
38729 SWIG_Python_Thread_Allow _swig_thread_allow;
38732 (arg1)->add_posting((std::string const &)*arg2,arg3,arg4);
38734 _swig_thread_allow.end();
38735 Xapian::SetPythonException();
38739 _swig_thread_allow.end();
38741 resultobj = SWIG_Py_Void();
38742 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
38745 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
38748 static __attribute__ ((__unused__)) PyObject *_wrap_Document_add_posting__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
38749 PyObject *resultobj = 0;
38750 Xapian::Document *arg1 = (Xapian::Document *) 0 ;
38751 std::string *arg2 = 0 ;
38752 Xapian::termpos arg3 ;
38756 unsigned int val3 ;
38758 if ((nobjs < 3) || (nobjs > 3)) goto fail;
38759 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[15], 0 | 0, 0);
38760 if (!(res1 >= 0)) {
38761 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Document_add_posting" "', argument " "1"" of type '" "Xapian::Document *""'"); goto fail; } while(0);
38763 arg1 = reinterpret_cast< Xapian::Document * >(argp1);
38765 std::string *ptr = (std::string *)0;
38766 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
38767 if (!(res2 >= 0)) {
38768 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Document_add_posting" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
38771 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Document_add_posting" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
38775 ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
38776 if (!(ecode3 >= 0)) {
38777 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "Document_add_posting" "', argument " "3"" of type '" "Xapian::termpos""'"); goto fail; } while(0);
38779 arg3 = static_cast< Xapian::termpos >(val3);
38781 SWIG_Python_Thread_Allow _swig_thread_allow;
38784 (arg1)->add_posting((std::string const &)*arg2,arg3);
38786 _swig_thread_allow.end();
38787 Xapian::SetPythonException();
38791 _swig_thread_allow.end();
38793 resultobj = SWIG_Py_Void();
38794 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
38797 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
38800 static __attribute__ ((__unused__)) PyObject *_wrap_Document_add_posting(PyObject *self, PyObject *args) {
38803 if (!(argc = SWIG_Python_UnpackTuple(args,"Document_add_posting",0,4,argv))) goto fail;
38806 return _wrap_Document_add_posting__SWIG_1(self, argc, argv);
38809 return _wrap_Document_add_posting__SWIG_0(self, argc, argv);
38812 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'Document_add_posting'.\n"
38813 " Possible C/C++ prototypes are:\n"
38814 " add_posting(Xapian::Document *,std::string const &,Xapian::termpos,Xapian::termcount)\n"
38815 " add_posting(Xapian::Document *,std::string const &,Xapian::termpos)\n");
38818 static __attribute__ ((__unused__)) PyObject *_wrap_Document_add_term__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
38819 PyObject *resultobj = 0;
38820 Xapian::Document *arg1 = (Xapian::Document *) 0 ;
38821 std::string *arg2 = 0 ;
38822 Xapian::termcount arg3 ;
38826 unsigned int val3 ;
38828 if ((nobjs < 3) || (nobjs > 3)) goto fail;
38829 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[15], 0 | 0, 0);
38830 if (!(res1 >= 0)) {
38831 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Document_add_term" "', argument " "1"" of type '" "Xapian::Document *""'"); goto fail; } while(0);
38833 arg1 = reinterpret_cast< Xapian::Document * >(argp1);
38835 std::string *ptr = (std::string *)0;
38836 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
38837 if (!(res2 >= 0)) {
38838 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Document_add_term" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
38841 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Document_add_term" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
38845 ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
38846 if (!(ecode3 >= 0)) {
38847 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "Document_add_term" "', argument " "3"" of type '" "Xapian::termcount""'"); goto fail; } while(0);
38849 arg3 = static_cast< Xapian::termcount >(val3);
38851 SWIG_Python_Thread_Allow _swig_thread_allow;
38854 (arg1)->add_term((std::string const &)*arg2,arg3);
38856 _swig_thread_allow.end();
38857 Xapian::SetPythonException();
38861 _swig_thread_allow.end();
38863 resultobj = SWIG_Py_Void();
38864 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
38867 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
38870 static __attribute__ ((__unused__)) PyObject *_wrap_Document_add_term__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
38871 PyObject *resultobj = 0;
38872 Xapian::Document *arg1 = (Xapian::Document *) 0 ;
38873 std::string *arg2 = 0 ;
38877 if ((nobjs < 2) || (nobjs > 2)) goto fail;
38878 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[15], 0 | 0, 0);
38879 if (!(res1 >= 0)) {
38880 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Document_add_term" "', argument " "1"" of type '" "Xapian::Document *""'"); goto fail; } while(0);
38882 arg1 = reinterpret_cast< Xapian::Document * >(argp1);
38884 std::string *ptr = (std::string *)0;
38885 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
38886 if (!(res2 >= 0)) {
38887 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Document_add_term" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
38890 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Document_add_term" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
38895 SWIG_Python_Thread_Allow _swig_thread_allow;
38898 (arg1)->add_term((std::string const &)*arg2);
38900 _swig_thread_allow.end();
38901 Xapian::SetPythonException();
38905 _swig_thread_allow.end();
38907 resultobj = SWIG_Py_Void();
38908 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
38911 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
38914 static __attribute__ ((__unused__)) PyObject *_wrap_Document_add_term(PyObject *self, PyObject *args) {
38917 if (!(argc = SWIG_Python_UnpackTuple(args,"Document_add_term",0,3,argv))) goto fail;
38920 return _wrap_Document_add_term__SWIG_1(self, argc, argv);
38923 return _wrap_Document_add_term__SWIG_0(self, argc, argv);
38926 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'Document_add_term'.\n"
38927 " Possible C/C++ prototypes are:\n"
38928 " add_term(Xapian::Document *,std::string const &,Xapian::termcount)\n"
38929 " add_term(Xapian::Document *,std::string const &)\n");
38932 static __attribute__ ((__unused__)) PyObject *_wrap_Document_add_boolean_term(PyObject *, PyObject *args) {
38933 PyObject *resultobj = 0;
38934 Xapian::Document *arg1 = (Xapian::Document *) 0 ;
38935 std::string *arg2 = 0 ;
38939 PyObject *swig_obj[2] ;
38940 if (!SWIG_Python_UnpackTuple(args,"Document_add_boolean_term",2,2,swig_obj)) goto fail;
38941 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[15], 0 | 0, 0);
38942 if (!(res1 >= 0)) {
38943 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Document_add_boolean_term" "', argument " "1"" of type '" "Xapian::Document *""'"); goto fail; } while(0);
38945 arg1 = reinterpret_cast< Xapian::Document * >(argp1);
38947 std::string *ptr = (std::string *)0;
38948 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
38949 if (!(res2 >= 0)) {
38950 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Document_add_boolean_term" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
38953 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Document_add_boolean_term" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
38958 SWIG_Python_Thread_Allow _swig_thread_allow;
38961 (arg1)->add_boolean_term((std::string const &)*arg2);
38963 _swig_thread_allow.end();
38964 Xapian::SetPythonException();
38968 _swig_thread_allow.end();
38970 resultobj = SWIG_Py_Void();
38971 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
38974 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
38977 static __attribute__ ((__unused__)) PyObject *_wrap_Document_remove_posting__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
38978 PyObject *resultobj = 0;
38979 Xapian::Document *arg1 = (Xapian::Document *) 0 ;
38980 std::string *arg2 = 0 ;
38981 Xapian::termpos arg3 ;
38982 Xapian::termcount arg4 ;
38986 unsigned int val3 ;
38988 unsigned int val4 ;
38990 if ((nobjs < 4) || (nobjs > 4)) goto fail;
38991 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[15], 0 | 0, 0);
38992 if (!(res1 >= 0)) {
38993 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Document_remove_posting" "', argument " "1"" of type '" "Xapian::Document *""'"); goto fail; } while(0);
38995 arg1 = reinterpret_cast< Xapian::Document * >(argp1);
38997 std::string *ptr = (std::string *)0;
38998 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
38999 if (!(res2 >= 0)) {
39000 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Document_remove_posting" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
39003 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Document_remove_posting" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
39007 ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
39008 if (!(ecode3 >= 0)) {
39009 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "Document_remove_posting" "', argument " "3"" of type '" "Xapian::termpos""'"); goto fail; } while(0);
39011 arg3 = static_cast< Xapian::termpos >(val3);
39012 ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4);
39013 if (!(ecode4 >= 0)) {
39014 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 != (-1)) ? ecode4 : -5)), "in method '" "Document_remove_posting" "', argument " "4"" of type '" "Xapian::termcount""'"); goto fail; } while(0);
39016 arg4 = static_cast< Xapian::termcount >(val4);
39018 SWIG_Python_Thread_Allow _swig_thread_allow;
39021 (arg1)->remove_posting((std::string const &)*arg2,arg3,arg4);
39023 _swig_thread_allow.end();
39024 Xapian::SetPythonException();
39028 _swig_thread_allow.end();
39030 resultobj = SWIG_Py_Void();
39031 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
39034 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
39037 static __attribute__ ((__unused__)) PyObject *_wrap_Document_remove_posting__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
39038 PyObject *resultobj = 0;
39039 Xapian::Document *arg1 = (Xapian::Document *) 0 ;
39040 std::string *arg2 = 0 ;
39041 Xapian::termpos arg3 ;
39045 unsigned int val3 ;
39047 if ((nobjs < 3) || (nobjs > 3)) goto fail;
39048 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[15], 0 | 0, 0);
39049 if (!(res1 >= 0)) {
39050 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Document_remove_posting" "', argument " "1"" of type '" "Xapian::Document *""'"); goto fail; } while(0);
39052 arg1 = reinterpret_cast< Xapian::Document * >(argp1);
39054 std::string *ptr = (std::string *)0;
39055 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
39056 if (!(res2 >= 0)) {
39057 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Document_remove_posting" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
39060 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Document_remove_posting" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
39064 ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
39065 if (!(ecode3 >= 0)) {
39066 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "Document_remove_posting" "', argument " "3"" of type '" "Xapian::termpos""'"); goto fail; } while(0);
39068 arg3 = static_cast< Xapian::termpos >(val3);
39070 SWIG_Python_Thread_Allow _swig_thread_allow;
39073 (arg1)->remove_posting((std::string const &)*arg2,arg3);
39075 _swig_thread_allow.end();
39076 Xapian::SetPythonException();
39080 _swig_thread_allow.end();
39082 resultobj = SWIG_Py_Void();
39083 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
39086 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
39089 static __attribute__ ((__unused__)) PyObject *_wrap_Document_remove_posting(PyObject *self, PyObject *args) {
39092 if (!(argc = SWIG_Python_UnpackTuple(args,"Document_remove_posting",0,4,argv))) goto fail;
39095 return _wrap_Document_remove_posting__SWIG_1(self, argc, argv);
39098 return _wrap_Document_remove_posting__SWIG_0(self, argc, argv);
39101 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'Document_remove_posting'.\n"
39102 " Possible C/C++ prototypes are:\n"
39103 " remove_posting(Xapian::Document *,std::string const &,Xapian::termpos,Xapian::termcount)\n"
39104 " remove_posting(Xapian::Document *,std::string const &,Xapian::termpos)\n");
39107 static __attribute__ ((__unused__)) PyObject *_wrap_Document_remove_term(PyObject *, PyObject *args) {
39108 PyObject *resultobj = 0;
39109 Xapian::Document *arg1 = (Xapian::Document *) 0 ;
39110 std::string *arg2 = 0 ;
39114 PyObject *swig_obj[2] ;
39115 if (!SWIG_Python_UnpackTuple(args,"Document_remove_term",2,2,swig_obj)) goto fail;
39116 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[15], 0 | 0, 0);
39117 if (!(res1 >= 0)) {
39118 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Document_remove_term" "', argument " "1"" of type '" "Xapian::Document *""'"); goto fail; } while(0);
39120 arg1 = reinterpret_cast< Xapian::Document * >(argp1);
39122 std::string *ptr = (std::string *)0;
39123 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
39124 if (!(res2 >= 0)) {
39125 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Document_remove_term" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
39128 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Document_remove_term" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
39133 SWIG_Python_Thread_Allow _swig_thread_allow;
39136 (arg1)->remove_term((std::string const &)*arg2);
39138 _swig_thread_allow.end();
39139 Xapian::SetPythonException();
39143 _swig_thread_allow.end();
39145 resultobj = SWIG_Py_Void();
39146 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
39149 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
39152 static __attribute__ ((__unused__)) PyObject *_wrap_Document_clear_terms(PyObject *, PyObject *args) {
39153 PyObject *resultobj = 0;
39154 Xapian::Document *arg1 = (Xapian::Document *) 0 ;
39157 PyObject *swig_obj[1] ;
39158 if (!args) goto fail;
39159 swig_obj[0] = args;
39160 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[15], 0 | 0, 0);
39161 if (!(res1 >= 0)) {
39162 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Document_clear_terms" "', argument " "1"" of type '" "Xapian::Document *""'"); goto fail; } while(0);
39164 arg1 = reinterpret_cast< Xapian::Document * >(argp1);
39166 SWIG_Python_Thread_Allow _swig_thread_allow;
39169 (arg1)->clear_terms();
39171 _swig_thread_allow.end();
39172 Xapian::SetPythonException();
39176 _swig_thread_allow.end();
39178 resultobj = SWIG_Py_Void();
39183 static __attribute__ ((__unused__)) PyObject *_wrap_Document_termlist_count(PyObject *, PyObject *args) {
39184 PyObject *resultobj = 0;
39185 Xapian::Document *arg1 = (Xapian::Document *) 0 ;
39188 PyObject *swig_obj[1] ;
39189 Xapian::termcount result;
39190 if (!args) goto fail;
39191 swig_obj[0] = args;
39192 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[15], 0 | 0, 0);
39193 if (!(res1 >= 0)) {
39194 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Document_termlist_count" "', argument " "1"" of type '" "Xapian::Document const *""'"); goto fail; } while(0);
39196 arg1 = reinterpret_cast< Xapian::Document * >(argp1);
39198 SWIG_Python_Thread_Allow _swig_thread_allow;
39201 result = (Xapian::termcount)((Xapian::Document const *)arg1)->termlist_count();
39203 _swig_thread_allow.end();
39204 Xapian::SetPythonException();
39208 _swig_thread_allow.end();
39210 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
39215 static __attribute__ ((__unused__)) PyObject *_wrap_Document_termlist_begin(PyObject *, PyObject *args) {
39216 PyObject *resultobj = 0;
39217 Xapian::Document *arg1 = (Xapian::Document *) 0 ;
39220 PyObject *swig_obj[1] ;
39221 Xapian::TermIterator result;
39222 if (!args) goto fail;
39223 swig_obj[0] = args;
39224 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[15], 0 | 0, 0);
39225 if (!(res1 >= 0)) {
39226 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Document_termlist_begin" "', argument " "1"" of type '" "Xapian::Document const *""'"); goto fail; } while(0);
39228 arg1 = reinterpret_cast< Xapian::Document * >(argp1);
39230 SWIG_Python_Thread_Allow _swig_thread_allow;
39233 result = ((Xapian::Document const *)arg1)->termlist_begin();
39235 _swig_thread_allow.end();
39236 Xapian::SetPythonException();
39240 _swig_thread_allow.end();
39242 resultobj = SWIG_Python_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), swig_types[55], 0x1 | 0);
39247 static __attribute__ ((__unused__)) PyObject *_wrap_Document_termlist_end(PyObject *, PyObject *args) {
39248 PyObject *resultobj = 0;
39249 Xapian::Document *arg1 = (Xapian::Document *) 0 ;
39252 PyObject *swig_obj[1] ;
39253 Xapian::TermIterator result;
39254 if (!args) goto fail;
39255 swig_obj[0] = args;
39256 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[15], 0 | 0, 0);
39257 if (!(res1 >= 0)) {
39258 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Document_termlist_end" "', argument " "1"" of type '" "Xapian::Document const *""'"); goto fail; } while(0);
39260 arg1 = reinterpret_cast< Xapian::Document * >(argp1);
39262 SWIG_Python_Thread_Allow _swig_thread_allow;
39265 result = ((Xapian::Document const *)arg1)->termlist_end();
39267 _swig_thread_allow.end();
39268 Xapian::SetPythonException();
39272 _swig_thread_allow.end();
39274 resultobj = SWIG_Python_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), swig_types[55], 0x1 | 0);
39279 static __attribute__ ((__unused__)) PyObject *_wrap_Document_values_count(PyObject *, PyObject *args) {
39280 PyObject *resultobj = 0;
39281 Xapian::Document *arg1 = (Xapian::Document *) 0 ;
39284 PyObject *swig_obj[1] ;
39285 Xapian::termcount result;
39286 if (!args) goto fail;
39287 swig_obj[0] = args;
39288 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[15], 0 | 0, 0);
39289 if (!(res1 >= 0)) {
39290 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Document_values_count" "', argument " "1"" of type '" "Xapian::Document const *""'"); goto fail; } while(0);
39292 arg1 = reinterpret_cast< Xapian::Document * >(argp1);
39294 SWIG_Python_Thread_Allow _swig_thread_allow;
39297 result = (Xapian::termcount)((Xapian::Document const *)arg1)->values_count();
39299 _swig_thread_allow.end();
39300 Xapian::SetPythonException();
39304 _swig_thread_allow.end();
39306 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
39311 static __attribute__ ((__unused__)) PyObject *_wrap_Document_values_begin(PyObject *, PyObject *args) {
39312 PyObject *resultobj = 0;
39313 Xapian::Document *arg1 = (Xapian::Document *) 0 ;
39316 PyObject *swig_obj[1] ;
39317 Xapian::ValueIterator result;
39318 if (!args) goto fail;
39319 swig_obj[0] = args;
39320 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[15], 0 | 0, 0);
39321 if (!(res1 >= 0)) {
39322 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Document_values_begin" "', argument " "1"" of type '" "Xapian::Document const *""'"); goto fail; } while(0);
39324 arg1 = reinterpret_cast< Xapian::Document * >(argp1);
39326 SWIG_Python_Thread_Allow _swig_thread_allow;
39329 result = ((Xapian::Document const *)arg1)->values_begin();
39331 _swig_thread_allow.end();
39332 Xapian::SetPythonException();
39336 _swig_thread_allow.end();
39338 resultobj = SWIG_Python_NewPointerObj((new Xapian::ValueIterator(static_cast< const Xapian::ValueIterator& >(result))), swig_types[59], 0x1 | 0);
39343 static __attribute__ ((__unused__)) PyObject *_wrap_Document_values_end(PyObject *, PyObject *args) {
39344 PyObject *resultobj = 0;
39345 Xapian::Document *arg1 = (Xapian::Document *) 0 ;
39348 PyObject *swig_obj[1] ;
39349 Xapian::ValueIterator result;
39350 if (!args) goto fail;
39351 swig_obj[0] = args;
39352 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[15], 0 | 0, 0);
39353 if (!(res1 >= 0)) {
39354 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Document_values_end" "', argument " "1"" of type '" "Xapian::Document const *""'"); goto fail; } while(0);
39356 arg1 = reinterpret_cast< Xapian::Document * >(argp1);
39358 SWIG_Python_Thread_Allow _swig_thread_allow;
39361 result = ((Xapian::Document const *)arg1)->values_end();
39363 _swig_thread_allow.end();
39364 Xapian::SetPythonException();
39368 _swig_thread_allow.end();
39370 resultobj = SWIG_Python_NewPointerObj((new Xapian::ValueIterator(static_cast< const Xapian::ValueIterator& >(result))), swig_types[59], 0x1 | 0);
39375 static __attribute__ ((__unused__)) PyObject *_wrap_Document_get_docid(PyObject *, PyObject *args) {
39376 PyObject *resultobj = 0;
39377 Xapian::Document *arg1 = (Xapian::Document *) 0 ;
39380 PyObject *swig_obj[1] ;
39381 Xapian::docid result;
39382 if (!args) goto fail;
39383 swig_obj[0] = args;
39384 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[15], 0 | 0, 0);
39385 if (!(res1 >= 0)) {
39386 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Document_get_docid" "', argument " "1"" of type '" "Xapian::Document const *""'"); goto fail; } while(0);
39388 arg1 = reinterpret_cast< Xapian::Document * >(argp1);
39390 SWIG_Python_Thread_Allow _swig_thread_allow;
39393 result = (Xapian::docid)((Xapian::Document const *)arg1)->get_docid();
39395 _swig_thread_allow.end();
39396 Xapian::SetPythonException();
39400 _swig_thread_allow.end();
39402 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
39407 static __attribute__ ((__unused__)) PyObject *_wrap_Document_serialise(PyObject *, PyObject *args) {
39408 PyObject *resultobj = 0;
39409 Xapian::Document *arg1 = (Xapian::Document *) 0 ;
39412 PyObject *swig_obj[1] ;
39413 std::string result;
39414 if (!args) goto fail;
39415 swig_obj[0] = args;
39416 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[15], 0 | 0, 0);
39417 if (!(res1 >= 0)) {
39418 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Document_serialise" "', argument " "1"" of type '" "Xapian::Document const *""'"); goto fail; } while(0);
39420 arg1 = reinterpret_cast< Xapian::Document * >(argp1);
39422 SWIG_Python_Thread_Allow _swig_thread_allow;
39425 result = ((Xapian::Document const *)arg1)->serialise();
39427 _swig_thread_allow.end();
39428 Xapian::SetPythonException();
39432 _swig_thread_allow.end();
39434 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
39439 static __attribute__ ((__unused__)) PyObject *_wrap_Document_unserialise(PyObject *, PyObject *args) {
39440 PyObject *resultobj = 0;
39441 std::string *arg1 = 0 ;
39443 PyObject *swig_obj[1] ;
39444 Xapian::Document result;
39445 if (!args) goto fail;
39446 swig_obj[0] = args;
39448 std::string *ptr = (std::string *)0;
39449 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
39450 if (!(res1 >= 0)) {
39451 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Document_unserialise" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
39454 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Document_unserialise" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
39459 SWIG_Python_Thread_Allow _swig_thread_allow;
39462 result = Xapian::Document::unserialise((std::string const &)*arg1);
39464 _swig_thread_allow.end();
39465 Xapian::SetPythonException();
39469 _swig_thread_allow.end();
39471 resultobj = SWIG_Python_NewPointerObj((new Xapian::Document(static_cast< const Xapian::Document& >(result))), swig_types[15], 0x1 | 0);
39472 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
39475 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
39478 static __attribute__ ((__unused__)) PyObject *_wrap_Document___str__(PyObject *, PyObject *args) {
39479 PyObject *resultobj = 0;
39480 Xapian::Document *arg1 = (Xapian::Document *) 0 ;
39483 PyObject *swig_obj[1] ;
39484 std::string result;
39485 if (!args) goto fail;
39486 swig_obj[0] = args;
39487 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[15], 0 | 0, 0);
39488 if (!(res1 >= 0)) {
39489 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Document___str__" "', argument " "1"" of type '" "Xapian::Document const *""'"); goto fail; } while(0);
39491 arg1 = reinterpret_cast< Xapian::Document * >(argp1);
39493 SWIG_Python_Thread_Allow _swig_thread_allow;
39496 result = ((Xapian::Document const *)arg1)->get_description();
39498 _swig_thread_allow.end();
39499 Xapian::SetPythonException();
39503 _swig_thread_allow.end();
39505 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
39510 static __attribute__ ((__unused__)) PyObject *Document_swigregister(PyObject *, PyObject *args) {
39512 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
39513 SWIG_TypeNewClientData(swig_types[15], SwigPyClientData_New(obj));
39514 return SWIG_Py_Void();
39516 static __attribute__ ((__unused__)) PyObject *Document_swiginit(PyObject *, PyObject *args) {
39517 return SWIG_Python_InitShadowInstance(args);
39519 static __attribute__ ((__unused__)) PyObject *_wrap_new_PostingSource(PyObject *, PyObject *args) {
39520 PyObject *resultobj = 0;
39521 PyObject *arg1 = (PyObject *) 0 ;
39522 PyObject *swig_obj[1] ;
39523 Xapian::PostingSource *result = 0 ;
39524 if (!args) goto fail;
39525 swig_obj[0] = args;
39526 arg1 = swig_obj[0];
39528 SWIG_Python_Thread_Allow _swig_thread_allow;
39531 if ( arg1 != (&_Py_NoneStruct) ) {
39532 result = (Xapian::PostingSource *)new SwigDirector_PostingSource(arg1);
39534 SWIG_Python_SetErrorMsg(PyExc_RuntimeError,"accessing abstract class or protected constructor");
39538 _swig_thread_allow.end();
39539 Xapian::SetPythonException();
39543 _swig_thread_allow.end();
39545 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[39], ((0x1 << 1) | 0x1) | 0);
39550 static __attribute__ ((__unused__)) PyObject *_wrap_delete_PostingSource(PyObject *, PyObject *args) {
39551 PyObject *resultobj = 0;
39552 Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
39555 PyObject *swig_obj[1] ;
39556 if (!args) goto fail;
39557 swig_obj[0] = args;
39558 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[39], 0x1 | 0, 0);
39559 if (!(res1 >= 0)) {
39560 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_PostingSource" "', argument " "1"" of type '" "Xapian::PostingSource *""'"); goto fail; } while(0);
39562 arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
39564 SWIG_Python_Thread_Allow _swig_thread_allow;
39569 _swig_thread_allow.end();
39570 Xapian::SetPythonException();
39574 _swig_thread_allow.end();
39576 resultobj = SWIG_Py_Void();
39581 static __attribute__ ((__unused__)) PyObject *_wrap_PostingSource_get_termfreq_min(PyObject *, PyObject *args) {
39582 PyObject *resultobj = 0;
39583 Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
39586 PyObject *swig_obj[1] ;
39587 Swig::Director *director = 0;
39588 bool upcall = false;
39589 Xapian::doccount result;
39590 if (!args) goto fail;
39591 swig_obj[0] = args;
39592 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[39], 0 | 0, 0);
39593 if (!(res1 >= 0)) {
39594 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "PostingSource_get_termfreq_min" "', argument " "1"" of type '" "Xapian::PostingSource const *""'"); goto fail; } while(0);
39596 arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
39597 director = dynamic_cast<Swig::Director*>(arg1);
39598 upcall = (director && (director->swig_get_self()==swig_obj[0]));
39603 Swig::DirectorPureVirtualException::raise("Xapian::PostingSource::get_termfreq_min");
39605 result = (Xapian::doccount)((Xapian::PostingSource const *)arg1)->get_termfreq_min();
39608 Xapian::SetPythonException();
39612 } catch (Swig::DirectorException&) {
39615 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
39620 static __attribute__ ((__unused__)) PyObject *_wrap_PostingSource_get_termfreq_est(PyObject *, PyObject *args) {
39621 PyObject *resultobj = 0;
39622 Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
39625 PyObject *swig_obj[1] ;
39626 Swig::Director *director = 0;
39627 bool upcall = false;
39628 Xapian::doccount result;
39629 if (!args) goto fail;
39630 swig_obj[0] = args;
39631 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[39], 0 | 0, 0);
39632 if (!(res1 >= 0)) {
39633 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "PostingSource_get_termfreq_est" "', argument " "1"" of type '" "Xapian::PostingSource const *""'"); goto fail; } while(0);
39635 arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
39636 director = dynamic_cast<Swig::Director*>(arg1);
39637 upcall = (director && (director->swig_get_self()==swig_obj[0]));
39642 Swig::DirectorPureVirtualException::raise("Xapian::PostingSource::get_termfreq_est");
39644 result = (Xapian::doccount)((Xapian::PostingSource const *)arg1)->get_termfreq_est();
39647 Xapian::SetPythonException();
39651 } catch (Swig::DirectorException&) {
39654 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
39659 static __attribute__ ((__unused__)) PyObject *_wrap_PostingSource_get_termfreq_max(PyObject *, PyObject *args) {
39660 PyObject *resultobj = 0;
39661 Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
39664 PyObject *swig_obj[1] ;
39665 Swig::Director *director = 0;
39666 bool upcall = false;
39667 Xapian::doccount result;
39668 if (!args) goto fail;
39669 swig_obj[0] = args;
39670 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[39], 0 | 0, 0);
39671 if (!(res1 >= 0)) {
39672 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "PostingSource_get_termfreq_max" "', argument " "1"" of type '" "Xapian::PostingSource const *""'"); goto fail; } while(0);
39674 arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
39675 director = dynamic_cast<Swig::Director*>(arg1);
39676 upcall = (director && (director->swig_get_self()==swig_obj[0]));
39681 Swig::DirectorPureVirtualException::raise("Xapian::PostingSource::get_termfreq_max");
39683 result = (Xapian::doccount)((Xapian::PostingSource const *)arg1)->get_termfreq_max();
39686 Xapian::SetPythonException();
39690 } catch (Swig::DirectorException&) {
39693 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
39698 static __attribute__ ((__unused__)) PyObject *_wrap_PostingSource_get_maxweight(PyObject *, PyObject *args) {
39699 PyObject *resultobj = 0;
39700 Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
39703 PyObject *swig_obj[1] ;
39704 Xapian::weight result;
39705 if (!args) goto fail;
39706 swig_obj[0] = args;
39707 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[39], 0 | 0, 0);
39708 if (!(res1 >= 0)) {
39709 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "PostingSource_get_maxweight" "', argument " "1"" of type '" "Xapian::PostingSource const *""'"); goto fail; } while(0);
39711 arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
39713 SWIG_Python_Thread_Allow _swig_thread_allow;
39716 result = (Xapian::weight)((Xapian::PostingSource const *)arg1)->get_maxweight();
39718 Xapian::SetPythonException();
39722 _swig_thread_allow.end();
39724 resultobj = PyFloat_FromDouble(static_cast< double >(result));
39729 static __attribute__ ((__unused__)) PyObject *_wrap_PostingSource_get_weight(PyObject *, PyObject *args) {
39730 PyObject *resultobj = 0;
39731 Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
39734 PyObject *swig_obj[1] ;
39735 Swig::Director *director = 0;
39736 bool upcall = false;
39737 Xapian::weight result;
39738 if (!args) goto fail;
39739 swig_obj[0] = args;
39740 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[39], 0 | 0, 0);
39741 if (!(res1 >= 0)) {
39742 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "PostingSource_get_weight" "', argument " "1"" of type '" "Xapian::PostingSource const *""'"); goto fail; } while(0);
39744 arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
39745 director = dynamic_cast<Swig::Director*>(arg1);
39746 upcall = (director && (director->swig_get_self()==swig_obj[0]));
39751 result = (Xapian::weight)((Xapian::PostingSource const *)arg1)->Xapian::PostingSource::get_weight();
39753 result = (Xapian::weight)((Xapian::PostingSource const *)arg1)->get_weight();
39756 Xapian::SetPythonException();
39760 } catch (Swig::DirectorException&) {
39763 resultobj = PyFloat_FromDouble(static_cast< double >(result));
39768 static __attribute__ ((__unused__)) PyObject *_wrap_PostingSource_get_docid(PyObject *, PyObject *args) {
39769 PyObject *resultobj = 0;
39770 Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
39773 PyObject *swig_obj[1] ;
39774 Swig::Director *director = 0;
39775 bool upcall = false;
39776 Xapian::docid result;
39777 if (!args) goto fail;
39778 swig_obj[0] = args;
39779 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[39], 0 | 0, 0);
39780 if (!(res1 >= 0)) {
39781 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "PostingSource_get_docid" "', argument " "1"" of type '" "Xapian::PostingSource const *""'"); goto fail; } while(0);
39783 arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
39784 director = dynamic_cast<Swig::Director*>(arg1);
39785 upcall = (director && (director->swig_get_self()==swig_obj[0]));
39790 Swig::DirectorPureVirtualException::raise("Xapian::PostingSource::get_docid");
39792 result = (Xapian::docid)((Xapian::PostingSource const *)arg1)->get_docid();
39795 Xapian::SetPythonException();
39799 } catch (Swig::DirectorException&) {
39802 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
39807 static __attribute__ ((__unused__)) PyObject *_wrap_PostingSource_next(PyObject *, PyObject *args) {
39808 PyObject *resultobj = 0;
39809 Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
39810 Xapian::weight arg2 ;
39815 PyObject *swig_obj[2] ;
39816 Swig::Director *director = 0;
39817 bool upcall = false;
39818 if (!SWIG_Python_UnpackTuple(args,"PostingSource_next",2,2,swig_obj)) goto fail;
39819 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[39], 0 | 0, 0);
39820 if (!(res1 >= 0)) {
39821 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "PostingSource_next" "', argument " "1"" of type '" "Xapian::PostingSource *""'"); goto fail; } while(0);
39823 arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
39824 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
39825 if (!(ecode2 >= 0)) {
39826 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "PostingSource_next" "', argument " "2"" of type '" "Xapian::weight""'"); goto fail; } while(0);
39828 arg2 = static_cast< Xapian::weight >(val2);
39829 director = dynamic_cast<Swig::Director*>(arg1);
39830 upcall = (director && (director->swig_get_self()==swig_obj[0]));
39835 Swig::DirectorPureVirtualException::raise("Xapian::PostingSource::next");
39837 (arg1)->next(arg2);
39840 Xapian::SetPythonException();
39844 } catch (Swig::DirectorException&) {
39847 resultobj = SWIG_Py_Void();
39852 static __attribute__ ((__unused__)) PyObject *_wrap_PostingSource_skip_to(PyObject *, PyObject *args) {
39853 PyObject *resultobj = 0;
39854 Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
39855 Xapian::docid arg2 ;
39856 Xapian::weight arg3 ;
39859 unsigned int val2 ;
39863 PyObject *swig_obj[3] ;
39864 Swig::Director *director = 0;
39865 bool upcall = false;
39866 if (!SWIG_Python_UnpackTuple(args,"PostingSource_skip_to",3,3,swig_obj)) goto fail;
39867 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[39], 0 | 0, 0);
39868 if (!(res1 >= 0)) {
39869 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "PostingSource_skip_to" "', argument " "1"" of type '" "Xapian::PostingSource *""'"); goto fail; } while(0);
39871 arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
39872 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
39873 if (!(ecode2 >= 0)) {
39874 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "PostingSource_skip_to" "', argument " "2"" of type '" "Xapian::docid""'"); goto fail; } while(0);
39876 arg2 = static_cast< Xapian::docid >(val2);
39877 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
39878 if (!(ecode3 >= 0)) {
39879 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "PostingSource_skip_to" "', argument " "3"" of type '" "Xapian::weight""'"); goto fail; } while(0);
39881 arg3 = static_cast< Xapian::weight >(val3);
39882 director = dynamic_cast<Swig::Director*>(arg1);
39883 upcall = (director && (director->swig_get_self()==swig_obj[0]));
39888 (arg1)->Xapian::PostingSource::skip_to(arg2,arg3);
39890 (arg1)->skip_to(arg2,arg3);
39893 Xapian::SetPythonException();
39897 } catch (Swig::DirectorException&) {
39900 resultobj = SWIG_Py_Void();
39905 static __attribute__ ((__unused__)) PyObject *_wrap_PostingSource_check(PyObject *, PyObject *args) {
39906 PyObject *resultobj = 0;
39907 Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
39908 Xapian::docid arg2 ;
39909 Xapian::weight arg3 ;
39912 unsigned int val2 ;
39916 PyObject *swig_obj[3] ;
39917 Swig::Director *director = 0;
39918 bool upcall = false;
39920 if (!SWIG_Python_UnpackTuple(args,"PostingSource_check",3,3,swig_obj)) goto fail;
39921 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[39], 0 | 0, 0);
39922 if (!(res1 >= 0)) {
39923 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "PostingSource_check" "', argument " "1"" of type '" "Xapian::PostingSource *""'"); goto fail; } while(0);
39925 arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
39926 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
39927 if (!(ecode2 >= 0)) {
39928 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "PostingSource_check" "', argument " "2"" of type '" "Xapian::docid""'"); goto fail; } while(0);
39930 arg2 = static_cast< Xapian::docid >(val2);
39931 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
39932 if (!(ecode3 >= 0)) {
39933 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "PostingSource_check" "', argument " "3"" of type '" "Xapian::weight""'"); goto fail; } while(0);
39935 arg3 = static_cast< Xapian::weight >(val3);
39936 director = dynamic_cast<Swig::Director*>(arg1);
39937 upcall = (director && (director->swig_get_self()==swig_obj[0]));
39942 result = (bool)(arg1)->Xapian::PostingSource::check(arg2,arg3);
39944 result = (bool)(arg1)->check(arg2,arg3);
39947 Xapian::SetPythonException();
39951 } catch (Swig::DirectorException&) {
39954 resultobj = SWIG_From_bool(static_cast< bool >(result));
39959 static __attribute__ ((__unused__)) PyObject *_wrap_PostingSource_at_end(PyObject *, PyObject *args) {
39960 PyObject *resultobj = 0;
39961 Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
39964 PyObject *swig_obj[1] ;
39965 Swig::Director *director = 0;
39966 bool upcall = false;
39968 if (!args) goto fail;
39969 swig_obj[0] = args;
39970 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[39], 0 | 0, 0);
39971 if (!(res1 >= 0)) {
39972 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "PostingSource_at_end" "', argument " "1"" of type '" "Xapian::PostingSource const *""'"); goto fail; } while(0);
39974 arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
39975 director = dynamic_cast<Swig::Director*>(arg1);
39976 upcall = (director && (director->swig_get_self()==swig_obj[0]));
39981 Swig::DirectorPureVirtualException::raise("Xapian::PostingSource::at_end");
39983 result = (bool)((Xapian::PostingSource const *)arg1)->at_end();
39986 Xapian::SetPythonException();
39990 } catch (Swig::DirectorException&) {
39993 resultobj = SWIG_From_bool(static_cast< bool >(result));
39998 static __attribute__ ((__unused__)) PyObject *_wrap_PostingSource_name(PyObject *, PyObject *args) {
39999 PyObject *resultobj = 0;
40000 Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
40003 PyObject *swig_obj[1] ;
40004 Swig::Director *director = 0;
40005 bool upcall = false;
40006 std::string result;
40007 if (!args) goto fail;
40008 swig_obj[0] = args;
40009 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[39], 0 | 0, 0);
40010 if (!(res1 >= 0)) {
40011 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "PostingSource_name" "', argument " "1"" of type '" "Xapian::PostingSource const *""'"); goto fail; } while(0);
40013 arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
40014 director = dynamic_cast<Swig::Director*>(arg1);
40015 upcall = (director && (director->swig_get_self()==swig_obj[0]));
40020 result = ((Xapian::PostingSource const *)arg1)->Xapian::PostingSource::name();
40022 result = ((Xapian::PostingSource const *)arg1)->name();
40025 Xapian::SetPythonException();
40029 } catch (Swig::DirectorException&) {
40032 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
40037 static __attribute__ ((__unused__)) PyObject *_wrap_PostingSource_init(PyObject *, PyObject *args) {
40038 PyObject *resultobj = 0;
40039 Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
40040 Xapian::Database *arg2 = 0 ;
40045 PyObject *swig_obj[2] ;
40046 Swig::Director *director = 0;
40047 bool upcall = false;
40048 if (!SWIG_Python_UnpackTuple(args,"PostingSource_init",2,2,swig_obj)) goto fail;
40049 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[39], 0 | 0, 0);
40050 if (!(res1 >= 0)) {
40051 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "PostingSource_init" "', argument " "1"" of type '" "Xapian::PostingSource *""'"); goto fail; } while(0);
40053 arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
40054 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[4], 0 | 0, 0);
40055 if (!(res2 >= 0)) {
40056 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "PostingSource_init" "', argument " "2"" of type '" "Xapian::Database const &""'"); goto fail; } while(0);
40059 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "PostingSource_init" "', argument " "2"" of type '" "Xapian::Database const &""'"); goto fail; } while(0);
40061 arg2 = reinterpret_cast< Xapian::Database * >(argp2);
40062 director = dynamic_cast<Swig::Director*>(arg1);
40063 upcall = (director && (director->swig_get_self()==swig_obj[0]));
40068 Swig::DirectorPureVirtualException::raise("Xapian::PostingSource::init");
40070 (arg1)->init((Xapian::Database const &)*arg2);
40073 Xapian::SetPythonException();
40077 } catch (Swig::DirectorException&) {
40080 resultobj = SWIG_Py_Void();
40085 static __attribute__ ((__unused__)) PyObject *_wrap_PostingSource___str__(PyObject *, PyObject *args) {
40086 PyObject *resultobj = 0;
40087 Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
40090 PyObject *swig_obj[1] ;
40091 Swig::Director *director = 0;
40092 bool upcall = false;
40093 std::string result;
40094 if (!args) goto fail;
40095 swig_obj[0] = args;
40096 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[39], 0 | 0, 0);
40097 if (!(res1 >= 0)) {
40098 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "PostingSource___str__" "', argument " "1"" of type '" "Xapian::PostingSource const *""'"); goto fail; } while(0);
40100 arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
40101 director = dynamic_cast<Swig::Director*>(arg1);
40102 upcall = (director && (director->swig_get_self()==swig_obj[0]));
40107 result = ((Xapian::PostingSource const *)arg1)->Xapian::PostingSource::get_description();
40109 result = ((Xapian::PostingSource const *)arg1)->get_description();
40112 Xapian::SetPythonException();
40116 } catch (Swig::DirectorException&) {
40119 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
40124 static __attribute__ ((__unused__)) PyObject *_wrap_disown_PostingSource(PyObject *, PyObject *args) {
40125 PyObject *resultobj = 0;
40126 Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
40129 PyObject *swig_obj[1] ;
40130 if (!args) goto fail;
40131 swig_obj[0] = args;
40132 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[39], 0 | 0, 0);
40133 if (!(res1 >= 0)) {
40134 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "disown_PostingSource" "', argument " "1"" of type '" "Xapian::PostingSource *""'"); goto fail; } while(0);
40136 arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
40138 SWIG_Python_Thread_Allow _swig_thread_allow;
40140 Swig::Director *director = dynamic_cast<Swig::Director *>(arg1);
40141 if (director) director->swig_disown();
40143 _swig_thread_allow.end();
40145 resultobj = SWIG_Py_Void();
40150 static __attribute__ ((__unused__)) PyObject *PostingSource_swigregister(PyObject *, PyObject *args) {
40152 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
40153 SWIG_TypeNewClientData(swig_types[39], SwigPyClientData_New(obj));
40154 return SWIG_Py_Void();
40156 static __attribute__ ((__unused__)) PyObject *PostingSource_swiginit(PyObject *, PyObject *args) {
40157 return SWIG_Python_InitShadowInstance(args);
40159 static __attribute__ ((__unused__)) PyObject *_wrap_new_ValuePostingSource(PyObject *, PyObject *args) {
40160 PyObject *resultobj = 0;
40161 Xapian::valueno arg1 ;
40162 unsigned int val1 ;
40164 PyObject *swig_obj[1] ;
40165 Xapian::ValuePostingSource *result = 0 ;
40166 if (!args) goto fail;
40167 swig_obj[0] = args;
40168 ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
40169 if (!(ecode1 >= 0)) {
40170 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_ValuePostingSource" "', argument " "1"" of type '" "Xapian::valueno""'"); goto fail; } while(0);
40172 arg1 = static_cast< Xapian::valueno >(val1);
40174 SWIG_Python_Thread_Allow _swig_thread_allow;
40177 result = (Xapian::ValuePostingSource *)new Xapian::ValuePostingSource(arg1);
40179 _swig_thread_allow.end();
40180 Xapian::SetPythonException();
40184 _swig_thread_allow.end();
40186 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[61], ((0x1 << 1) | 0x1) | 0);
40191 static __attribute__ ((__unused__)) PyObject *_wrap_delete_ValuePostingSource(PyObject *, PyObject *args) {
40192 PyObject *resultobj = 0;
40193 Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
40196 PyObject *swig_obj[1] ;
40197 if (!args) goto fail;
40198 swig_obj[0] = args;
40199 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[61], 0x1 | 0, 0);
40200 if (!(res1 >= 0)) {
40201 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_ValuePostingSource" "', argument " "1"" of type '" "Xapian::ValuePostingSource *""'"); goto fail; } while(0);
40203 arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
40205 SWIG_Python_Thread_Allow _swig_thread_allow;
40210 _swig_thread_allow.end();
40211 Xapian::SetPythonException();
40215 _swig_thread_allow.end();
40217 resultobj = SWIG_Py_Void();
40222 static __attribute__ ((__unused__)) PyObject *ValuePostingSource_swigregister(PyObject *, PyObject *args) {
40224 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
40225 SWIG_TypeNewClientData(swig_types[61], SwigPyClientData_New(obj));
40226 return SWIG_Py_Void();
40228 static __attribute__ ((__unused__)) PyObject *ValuePostingSource_swiginit(PyObject *, PyObject *args) {
40229 return SWIG_Python_InitShadowInstance(args);
40231 static __attribute__ ((__unused__)) PyObject *_wrap_new_ValueWeightPostingSource(PyObject *, PyObject *args) {
40232 PyObject *resultobj = 0;
40233 Xapian::valueno arg1 ;
40234 unsigned int val1 ;
40236 PyObject *swig_obj[1] ;
40237 Xapian::ValueWeightPostingSource *result = 0 ;
40238 if (!args) goto fail;
40239 swig_obj[0] = args;
40240 ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
40241 if (!(ecode1 >= 0)) {
40242 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_ValueWeightPostingSource" "', argument " "1"" of type '" "Xapian::valueno""'"); goto fail; } while(0);
40244 arg1 = static_cast< Xapian::valueno >(val1);
40246 SWIG_Python_Thread_Allow _swig_thread_allow;
40249 result = (Xapian::ValueWeightPostingSource *)new Xapian::ValueWeightPostingSource(arg1);
40251 _swig_thread_allow.end();
40252 Xapian::SetPythonException();
40256 _swig_thread_allow.end();
40258 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[64], ((0x1 << 1) | 0x1) | 0);
40263 static __attribute__ ((__unused__)) PyObject *_wrap_delete_ValueWeightPostingSource(PyObject *, PyObject *args) {
40264 PyObject *resultobj = 0;
40265 Xapian::ValueWeightPostingSource *arg1 = (Xapian::ValueWeightPostingSource *) 0 ;
40268 PyObject *swig_obj[1] ;
40269 if (!args) goto fail;
40270 swig_obj[0] = args;
40271 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[64], 0x1 | 0, 0);
40272 if (!(res1 >= 0)) {
40273 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_ValueWeightPostingSource" "', argument " "1"" of type '" "Xapian::ValueWeightPostingSource *""'"); goto fail; } while(0);
40275 arg1 = reinterpret_cast< Xapian::ValueWeightPostingSource * >(argp1);
40277 SWIG_Python_Thread_Allow _swig_thread_allow;
40282 _swig_thread_allow.end();
40283 Xapian::SetPythonException();
40287 _swig_thread_allow.end();
40289 resultobj = SWIG_Py_Void();
40294 static __attribute__ ((__unused__)) PyObject *ValueWeightPostingSource_swigregister(PyObject *, PyObject *args) {
40296 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
40297 SWIG_TypeNewClientData(swig_types[64], SwigPyClientData_New(obj));
40298 return SWIG_Py_Void();
40300 static __attribute__ ((__unused__)) PyObject *ValueWeightPostingSource_swiginit(PyObject *, PyObject *args) {
40301 return SWIG_Python_InitShadowInstance(args);
40303 static __attribute__ ((__unused__)) PyObject *_wrap_new_DecreasingValueWeightPostingSource__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
40304 PyObject *resultobj = 0;
40305 Xapian::valueno arg1 ;
40306 Xapian::docid arg2 ;
40307 Xapian::docid arg3 ;
40308 unsigned int val1 ;
40310 unsigned int val2 ;
40312 unsigned int val3 ;
40314 Xapian::DecreasingValueWeightPostingSource *result = 0 ;
40315 if ((nobjs < 3) || (nobjs > 3)) goto fail;
40316 ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
40317 if (!(ecode1 >= 0)) {
40318 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_DecreasingValueWeightPostingSource" "', argument " "1"" of type '" "Xapian::valueno""'"); goto fail; } while(0);
40320 arg1 = static_cast< Xapian::valueno >(val1);
40321 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
40322 if (!(ecode2 >= 0)) {
40323 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_DecreasingValueWeightPostingSource" "', argument " "2"" of type '" "Xapian::docid""'"); goto fail; } while(0);
40325 arg2 = static_cast< Xapian::docid >(val2);
40326 ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
40327 if (!(ecode3 >= 0)) {
40328 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "new_DecreasingValueWeightPostingSource" "', argument " "3"" of type '" "Xapian::docid""'"); goto fail; } while(0);
40330 arg3 = static_cast< Xapian::docid >(val3);
40332 SWIG_Python_Thread_Allow _swig_thread_allow;
40335 result = (Xapian::DecreasingValueWeightPostingSource *)new Xapian::DecreasingValueWeightPostingSource(arg1,arg2,arg3);
40337 _swig_thread_allow.end();
40338 Xapian::SetPythonException();
40342 _swig_thread_allow.end();
40344 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[13], ((0x1 << 1) | 0x1) | 0);
40349 static __attribute__ ((__unused__)) PyObject *_wrap_new_DecreasingValueWeightPostingSource__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
40350 PyObject *resultobj = 0;
40351 Xapian::valueno arg1 ;
40352 Xapian::docid arg2 ;
40353 unsigned int val1 ;
40355 unsigned int val2 ;
40357 Xapian::DecreasingValueWeightPostingSource *result = 0 ;
40358 if ((nobjs < 2) || (nobjs > 2)) goto fail;
40359 ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
40360 if (!(ecode1 >= 0)) {
40361 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_DecreasingValueWeightPostingSource" "', argument " "1"" of type '" "Xapian::valueno""'"); goto fail; } while(0);
40363 arg1 = static_cast< Xapian::valueno >(val1);
40364 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
40365 if (!(ecode2 >= 0)) {
40366 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_DecreasingValueWeightPostingSource" "', argument " "2"" of type '" "Xapian::docid""'"); goto fail; } while(0);
40368 arg2 = static_cast< Xapian::docid >(val2);
40370 SWIG_Python_Thread_Allow _swig_thread_allow;
40373 result = (Xapian::DecreasingValueWeightPostingSource *)new Xapian::DecreasingValueWeightPostingSource(arg1,arg2);
40375 _swig_thread_allow.end();
40376 Xapian::SetPythonException();
40380 _swig_thread_allow.end();
40382 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[13], ((0x1 << 1) | 0x1) | 0);
40387 static __attribute__ ((__unused__)) PyObject *_wrap_new_DecreasingValueWeightPostingSource__SWIG_2(PyObject *, int nobjs, PyObject **swig_obj) {
40388 PyObject *resultobj = 0;
40389 Xapian::valueno arg1 ;
40390 unsigned int val1 ;
40392 Xapian::DecreasingValueWeightPostingSource *result = 0 ;
40393 if ((nobjs < 1) || (nobjs > 1)) goto fail;
40394 ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
40395 if (!(ecode1 >= 0)) {
40396 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_DecreasingValueWeightPostingSource" "', argument " "1"" of type '" "Xapian::valueno""'"); goto fail; } while(0);
40398 arg1 = static_cast< Xapian::valueno >(val1);
40400 SWIG_Python_Thread_Allow _swig_thread_allow;
40403 result = (Xapian::DecreasingValueWeightPostingSource *)new Xapian::DecreasingValueWeightPostingSource(arg1);
40405 _swig_thread_allow.end();
40406 Xapian::SetPythonException();
40410 _swig_thread_allow.end();
40412 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[13], ((0x1 << 1) | 0x1) | 0);
40417 static __attribute__ ((__unused__)) PyObject *_wrap_new_DecreasingValueWeightPostingSource(PyObject *self, PyObject *args) {
40420 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DecreasingValueWeightPostingSource",0,3,argv))) goto fail;
40423 return _wrap_new_DecreasingValueWeightPostingSource__SWIG_2(self, argc, argv);
40426 return _wrap_new_DecreasingValueWeightPostingSource__SWIG_1(self, argc, argv);
40429 return _wrap_new_DecreasingValueWeightPostingSource__SWIG_0(self, argc, argv);
40432 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_DecreasingValueWeightPostingSource'.\n"
40433 " Possible C/C++ prototypes are:\n"
40434 " Xapian::DecreasingValueWeightPostingSource(Xapian::valueno,Xapian::docid,Xapian::docid)\n"
40435 " Xapian::DecreasingValueWeightPostingSource(Xapian::valueno,Xapian::docid)\n"
40436 " Xapian::DecreasingValueWeightPostingSource(Xapian::valueno)\n");
40439 static __attribute__ ((__unused__)) PyObject *_wrap_delete_DecreasingValueWeightPostingSource(PyObject *, PyObject *args) {
40440 PyObject *resultobj = 0;
40441 Xapian::DecreasingValueWeightPostingSource *arg1 = (Xapian::DecreasingValueWeightPostingSource *) 0 ;
40444 PyObject *swig_obj[1] ;
40445 if (!args) goto fail;
40446 swig_obj[0] = args;
40447 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[13], 0x1 | 0, 0);
40448 if (!(res1 >= 0)) {
40449 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_DecreasingValueWeightPostingSource" "', argument " "1"" of type '" "Xapian::DecreasingValueWeightPostingSource *""'"); goto fail; } while(0);
40451 arg1 = reinterpret_cast< Xapian::DecreasingValueWeightPostingSource * >(argp1);
40453 SWIG_Python_Thread_Allow _swig_thread_allow;
40458 _swig_thread_allow.end();
40459 Xapian::SetPythonException();
40463 _swig_thread_allow.end();
40465 resultobj = SWIG_Py_Void();
40470 static __attribute__ ((__unused__)) PyObject *DecreasingValueWeightPostingSource_swigregister(PyObject *, PyObject *args) {
40472 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
40473 SWIG_TypeNewClientData(swig_types[13], SwigPyClientData_New(obj));
40474 return SWIG_Py_Void();
40476 static __attribute__ ((__unused__)) PyObject *DecreasingValueWeightPostingSource_swiginit(PyObject *, PyObject *args) {
40477 return SWIG_Python_InitShadowInstance(args);
40479 static __attribute__ ((__unused__)) PyObject *_wrap_new_ValueMapPostingSource(PyObject *, PyObject *args) {
40480 PyObject *resultobj = 0;
40481 Xapian::valueno arg1 ;
40482 unsigned int val1 ;
40484 PyObject *swig_obj[1] ;
40485 Xapian::ValueMapPostingSource *result = 0 ;
40486 if (!args) goto fail;
40487 swig_obj[0] = args;
40488 ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
40489 if (!(ecode1 >= 0)) {
40490 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_ValueMapPostingSource" "', argument " "1"" of type '" "Xapian::valueno""'"); goto fail; } while(0);
40492 arg1 = static_cast< Xapian::valueno >(val1);
40494 SWIG_Python_Thread_Allow _swig_thread_allow;
40497 result = (Xapian::ValueMapPostingSource *)new Xapian::ValueMapPostingSource(arg1);
40499 _swig_thread_allow.end();
40500 Xapian::SetPythonException();
40504 _swig_thread_allow.end();
40506 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[60], ((0x1 << 1) | 0x1) | 0);
40511 static __attribute__ ((__unused__)) PyObject *_wrap_ValueMapPostingSource_add_mapping(PyObject *, PyObject *args) {
40512 PyObject *resultobj = 0;
40513 Xapian::ValueMapPostingSource *arg1 = (Xapian::ValueMapPostingSource *) 0 ;
40514 std::string *arg2 = 0 ;
40521 PyObject *swig_obj[3] ;
40522 if (!SWIG_Python_UnpackTuple(args,"ValueMapPostingSource_add_mapping",3,3,swig_obj)) goto fail;
40523 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[60], 0 | 0, 0);
40524 if (!(res1 >= 0)) {
40525 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "ValueMapPostingSource_add_mapping" "', argument " "1"" of type '" "Xapian::ValueMapPostingSource *""'"); goto fail; } while(0);
40527 arg1 = reinterpret_cast< Xapian::ValueMapPostingSource * >(argp1);
40529 std::string *ptr = (std::string *)0;
40530 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
40531 if (!(res2 >= 0)) {
40532 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "ValueMapPostingSource_add_mapping" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
40535 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "ValueMapPostingSource_add_mapping" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
40539 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
40540 if (!(ecode3 >= 0)) {
40541 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "ValueMapPostingSource_add_mapping" "', argument " "3"" of type '" "double""'"); goto fail; } while(0);
40543 arg3 = static_cast< double >(val3);
40545 SWIG_Python_Thread_Allow _swig_thread_allow;
40548 (arg1)->add_mapping((std::string const &)*arg2,arg3);
40550 _swig_thread_allow.end();
40551 Xapian::SetPythonException();
40555 _swig_thread_allow.end();
40557 resultobj = SWIG_Py_Void();
40558 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
40561 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
40564 static __attribute__ ((__unused__)) PyObject *_wrap_ValueMapPostingSource_clear_mappings(PyObject *, PyObject *args) {
40565 PyObject *resultobj = 0;
40566 Xapian::ValueMapPostingSource *arg1 = (Xapian::ValueMapPostingSource *) 0 ;
40569 PyObject *swig_obj[1] ;
40570 if (!args) goto fail;
40571 swig_obj[0] = args;
40572 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[60], 0 | 0, 0);
40573 if (!(res1 >= 0)) {
40574 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "ValueMapPostingSource_clear_mappings" "', argument " "1"" of type '" "Xapian::ValueMapPostingSource *""'"); goto fail; } while(0);
40576 arg1 = reinterpret_cast< Xapian::ValueMapPostingSource * >(argp1);
40578 SWIG_Python_Thread_Allow _swig_thread_allow;
40581 (arg1)->clear_mappings();
40583 _swig_thread_allow.end();
40584 Xapian::SetPythonException();
40588 _swig_thread_allow.end();
40590 resultobj = SWIG_Py_Void();
40595 static __attribute__ ((__unused__)) PyObject *_wrap_ValueMapPostingSource_set_default_weight(PyObject *, PyObject *args) {
40596 PyObject *resultobj = 0;
40597 Xapian::ValueMapPostingSource *arg1 = (Xapian::ValueMapPostingSource *) 0 ;
40603 PyObject *swig_obj[2] ;
40604 if (!SWIG_Python_UnpackTuple(args,"ValueMapPostingSource_set_default_weight",2,2,swig_obj)) goto fail;
40605 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[60], 0 | 0, 0);
40606 if (!(res1 >= 0)) {
40607 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "ValueMapPostingSource_set_default_weight" "', argument " "1"" of type '" "Xapian::ValueMapPostingSource *""'"); goto fail; } while(0);
40609 arg1 = reinterpret_cast< Xapian::ValueMapPostingSource * >(argp1);
40610 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
40611 if (!(ecode2 >= 0)) {
40612 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "ValueMapPostingSource_set_default_weight" "', argument " "2"" of type '" "double""'"); goto fail; } while(0);
40614 arg2 = static_cast< double >(val2);
40616 SWIG_Python_Thread_Allow _swig_thread_allow;
40619 (arg1)->set_default_weight(arg2);
40621 _swig_thread_allow.end();
40622 Xapian::SetPythonException();
40626 _swig_thread_allow.end();
40628 resultobj = SWIG_Py_Void();
40633 static __attribute__ ((__unused__)) PyObject *_wrap_delete_ValueMapPostingSource(PyObject *, PyObject *args) {
40634 PyObject *resultobj = 0;
40635 Xapian::ValueMapPostingSource *arg1 = (Xapian::ValueMapPostingSource *) 0 ;
40638 PyObject *swig_obj[1] ;
40639 if (!args) goto fail;
40640 swig_obj[0] = args;
40641 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[60], 0x1 | 0, 0);
40642 if (!(res1 >= 0)) {
40643 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_ValueMapPostingSource" "', argument " "1"" of type '" "Xapian::ValueMapPostingSource *""'"); goto fail; } while(0);
40645 arg1 = reinterpret_cast< Xapian::ValueMapPostingSource * >(argp1);
40647 SWIG_Python_Thread_Allow _swig_thread_allow;
40652 _swig_thread_allow.end();
40653 Xapian::SetPythonException();
40657 _swig_thread_allow.end();
40659 resultobj = SWIG_Py_Void();
40664 static __attribute__ ((__unused__)) PyObject *ValueMapPostingSource_swigregister(PyObject *, PyObject *args) {
40666 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
40667 SWIG_TypeNewClientData(swig_types[60], SwigPyClientData_New(obj));
40668 return SWIG_Py_Void();
40670 static __attribute__ ((__unused__)) PyObject *ValueMapPostingSource_swiginit(PyObject *, PyObject *args) {
40671 return SWIG_Python_InitShadowInstance(args);
40673 static __attribute__ ((__unused__)) PyObject *_wrap_new_FixedWeightPostingSource(PyObject *, PyObject *args) {
40674 PyObject *resultobj = 0;
40675 Xapian::weight arg1 ;
40678 PyObject *swig_obj[1] ;
40679 Xapian::FixedWeightPostingSource *result = 0 ;
40680 if (!args) goto fail;
40681 swig_obj[0] = args;
40682 ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
40683 if (!(ecode1 >= 0)) {
40684 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_FixedWeightPostingSource" "', argument " "1"" of type '" "Xapian::weight""'"); goto fail; } while(0);
40686 arg1 = static_cast< Xapian::weight >(val1);
40688 SWIG_Python_Thread_Allow _swig_thread_allow;
40691 result = (Xapian::FixedWeightPostingSource *)new Xapian::FixedWeightPostingSource(arg1);
40693 _swig_thread_allow.end();
40694 Xapian::SetPythonException();
40698 _swig_thread_allow.end();
40700 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[22], ((0x1 << 1) | 0x1) | 0);
40705 static __attribute__ ((__unused__)) PyObject *_wrap_delete_FixedWeightPostingSource(PyObject *, PyObject *args) {
40706 PyObject *resultobj = 0;
40707 Xapian::FixedWeightPostingSource *arg1 = (Xapian::FixedWeightPostingSource *) 0 ;
40710 PyObject *swig_obj[1] ;
40711 if (!args) goto fail;
40712 swig_obj[0] = args;
40713 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[22], 0x1 | 0, 0);
40714 if (!(res1 >= 0)) {
40715 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_FixedWeightPostingSource" "', argument " "1"" of type '" "Xapian::FixedWeightPostingSource *""'"); goto fail; } while(0);
40717 arg1 = reinterpret_cast< Xapian::FixedWeightPostingSource * >(argp1);
40719 SWIG_Python_Thread_Allow _swig_thread_allow;
40724 _swig_thread_allow.end();
40725 Xapian::SetPythonException();
40729 _swig_thread_allow.end();
40731 resultobj = SWIG_Py_Void();
40736 static __attribute__ ((__unused__)) PyObject *FixedWeightPostingSource_swigregister(PyObject *, PyObject *args) {
40738 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
40739 SWIG_TypeNewClientData(swig_types[22], SwigPyClientData_New(obj));
40740 return SWIG_Py_Void();
40742 static __attribute__ ((__unused__)) PyObject *FixedWeightPostingSource_swiginit(PyObject *, PyObject *args) {
40743 return SWIG_Python_InitShadowInstance(args);
40745 static __attribute__ ((__unused__)) PyObject *_wrap_new_MSet__SWIG_0(PyObject *, int nobjs, PyObject **) {
40746 PyObject *resultobj = 0;
40747 Xapian::MSet *result = 0 ;
40748 if ((nobjs < 0) || (nobjs > 0)) goto fail;
40750 SWIG_Python_Thread_Allow _swig_thread_allow;
40753 result = (Xapian::MSet *)new Xapian::MSet();
40755 _swig_thread_allow.end();
40756 Xapian::SetPythonException();
40760 _swig_thread_allow.end();
40762 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[28], ((0x1 << 1) | 0x1) | 0);
40767 static __attribute__ ((__unused__)) PyObject *_wrap_new_MSet__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
40768 PyObject *resultobj = 0;
40769 Xapian::MSet *arg1 = 0 ;
40772 Xapian::MSet *result = 0 ;
40773 if ((nobjs < 1) || (nobjs > 1)) goto fail;
40774 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[28], 0 | 0, 0);
40775 if (!(res1 >= 0)) {
40776 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_MSet" "', argument " "1"" of type '" "Xapian::MSet const &""'"); goto fail; } while(0);
40779 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_MSet" "', argument " "1"" of type '" "Xapian::MSet const &""'"); goto fail; } while(0);
40781 arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
40783 SWIG_Python_Thread_Allow _swig_thread_allow;
40786 result = (Xapian::MSet *)new Xapian::MSet((Xapian::MSet const &)*arg1);
40788 _swig_thread_allow.end();
40789 Xapian::SetPythonException();
40793 _swig_thread_allow.end();
40795 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[28], ((0x1 << 1) | 0x1) | 0);
40800 static __attribute__ ((__unused__)) PyObject *_wrap_new_MSet(PyObject *self, PyObject *args) {
40803 if (!(argc = SWIG_Python_UnpackTuple(args,"new_MSet",0,1,argv))) goto fail;
40806 return _wrap_new_MSet__SWIG_0(self, argc, argv);
40809 return _wrap_new_MSet__SWIG_1(self, argc, argv);
40812 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_MSet'.\n"
40813 " Possible C/C++ prototypes are:\n"
40814 " Xapian::MSet()\n"
40815 " Xapian::MSet(Xapian::MSet const &)\n");
40818 static __attribute__ ((__unused__)) PyObject *_wrap_delete_MSet(PyObject *, PyObject *args) {
40819 PyObject *resultobj = 0;
40820 Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
40823 PyObject *swig_obj[1] ;
40824 if (!args) goto fail;
40825 swig_obj[0] = args;
40826 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[28], 0x1 | 0, 0);
40827 if (!(res1 >= 0)) {
40828 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_MSet" "', argument " "1"" of type '" "Xapian::MSet *""'"); goto fail; } while(0);
40830 arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
40832 SWIG_Python_Thread_Allow _swig_thread_allow;
40837 _swig_thread_allow.end();
40838 Xapian::SetPythonException();
40842 _swig_thread_allow.end();
40844 resultobj = SWIG_Py_Void();
40849 static __attribute__ ((__unused__)) PyObject *_wrap_MSet_fetch__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
40850 PyObject *resultobj = 0;
40851 Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
40852 Xapian::MSetIterator *arg2 = 0 ;
40853 Xapian::MSetIterator *arg3 = 0 ;
40860 if ((nobjs < 3) || (nobjs > 3)) goto fail;
40861 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[28], 0 | 0, 0);
40862 if (!(res1 >= 0)) {
40863 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MSet_fetch" "', argument " "1"" of type '" "Xapian::MSet const *""'"); goto fail; } while(0);
40865 arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
40866 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[29], 0, 0);
40867 if (!(res2 >= 0)) {
40868 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "MSet_fetch" "', argument " "2"" of type '" "Xapian::MSetIterator &""'"); goto fail; } while(0);
40871 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "MSet_fetch" "', argument " "2"" of type '" "Xapian::MSetIterator &""'"); goto fail; } while(0);
40873 arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
40874 res3 = SWIG_Python_ConvertPtrAndOwn(swig_obj[2], &argp3, swig_types[29], 0, 0);
40875 if (!(res3 >= 0)) {
40876 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (-1)) ? res3 : -5)), "in method '" "MSet_fetch" "', argument " "3"" of type '" "Xapian::MSetIterator &""'"); goto fail; } while(0);
40879 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "MSet_fetch" "', argument " "3"" of type '" "Xapian::MSetIterator &""'"); goto fail; } while(0);
40881 arg3 = reinterpret_cast< Xapian::MSetIterator * >(argp3);
40883 SWIG_Python_Thread_Allow _swig_thread_allow;
40886 ((Xapian::MSet const *)arg1)->fetch(*arg2,*arg3);
40888 _swig_thread_allow.end();
40889 Xapian::SetPythonException();
40893 _swig_thread_allow.end();
40895 resultobj = SWIG_Py_Void();
40900 static __attribute__ ((__unused__)) PyObject *_wrap_MSet_fetch__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
40901 PyObject *resultobj = 0;
40902 Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
40903 Xapian::MSetIterator *arg2 = 0 ;
40908 if ((nobjs < 2) || (nobjs > 2)) goto fail;
40909 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[28], 0 | 0, 0);
40910 if (!(res1 >= 0)) {
40911 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MSet_fetch" "', argument " "1"" of type '" "Xapian::MSet const *""'"); goto fail; } while(0);
40913 arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
40914 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[29], 0, 0);
40915 if (!(res2 >= 0)) {
40916 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "MSet_fetch" "', argument " "2"" of type '" "Xapian::MSetIterator &""'"); goto fail; } while(0);
40919 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "MSet_fetch" "', argument " "2"" of type '" "Xapian::MSetIterator &""'"); goto fail; } while(0);
40921 arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
40923 SWIG_Python_Thread_Allow _swig_thread_allow;
40926 ((Xapian::MSet const *)arg1)->fetch(*arg2);
40928 _swig_thread_allow.end();
40929 Xapian::SetPythonException();
40933 _swig_thread_allow.end();
40935 resultobj = SWIG_Py_Void();
40940 static __attribute__ ((__unused__)) PyObject *_wrap_MSet_fetch__SWIG_2(PyObject *, int nobjs, PyObject **swig_obj) {
40941 PyObject *resultobj = 0;
40942 Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
40945 if ((nobjs < 1) || (nobjs > 1)) goto fail;
40946 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[28], 0 | 0, 0);
40947 if (!(res1 >= 0)) {
40948 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MSet_fetch" "', argument " "1"" of type '" "Xapian::MSet const *""'"); goto fail; } while(0);
40950 arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
40952 SWIG_Python_Thread_Allow _swig_thread_allow;
40955 ((Xapian::MSet const *)arg1)->fetch();
40957 _swig_thread_allow.end();
40958 Xapian::SetPythonException();
40962 _swig_thread_allow.end();
40964 resultobj = SWIG_Py_Void();
40969 static __attribute__ ((__unused__)) PyObject *_wrap_MSet_fetch(PyObject *self, PyObject *args) {
40972 if (!(argc = SWIG_Python_UnpackTuple(args,"MSet_fetch",0,3,argv))) goto fail;
40975 return _wrap_MSet_fetch__SWIG_2(self, argc, argv);
40978 return _wrap_MSet_fetch__SWIG_1(self, argc, argv);
40981 return _wrap_MSet_fetch__SWIG_0(self, argc, argv);
40984 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'MSet_fetch'.\n"
40985 " Possible C/C++ prototypes are:\n"
40986 " fetch(Xapian::MSet const *,Xapian::MSetIterator &,Xapian::MSetIterator &)\n"
40987 " fetch(Xapian::MSet const *,Xapian::MSetIterator &)\n"
40988 " fetch(Xapian::MSet const *)\n");
40991 static __attribute__ ((__unused__)) PyObject *_wrap_MSet_convert_to_percent__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
40992 PyObject *resultobj = 0;
40993 Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
40994 Xapian::weight arg2 ;
40999 Xapian::percent result;
41000 if ((nobjs < 2) || (nobjs > 2)) goto fail;
41001 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[28], 0 | 0, 0);
41002 if (!(res1 >= 0)) {
41003 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MSet_convert_to_percent" "', argument " "1"" of type '" "Xapian::MSet const *""'"); goto fail; } while(0);
41005 arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
41006 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
41007 if (!(ecode2 >= 0)) {
41008 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "MSet_convert_to_percent" "', argument " "2"" of type '" "Xapian::weight""'"); goto fail; } while(0);
41010 arg2 = static_cast< Xapian::weight >(val2);
41012 SWIG_Python_Thread_Allow _swig_thread_allow;
41015 result = (Xapian::percent)((Xapian::MSet const *)arg1)->convert_to_percent(arg2);
41017 _swig_thread_allow.end();
41018 Xapian::SetPythonException();
41022 _swig_thread_allow.end();
41024 resultobj = SWIG_From_int(static_cast< int >(result));
41029 static __attribute__ ((__unused__)) PyObject *_wrap_MSet_convert_to_percent__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
41030 PyObject *resultobj = 0;
41031 Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
41032 Xapian::MSetIterator *arg2 = 0 ;
41037 Xapian::percent result;
41038 if ((nobjs < 2) || (nobjs > 2)) goto fail;
41039 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[28], 0 | 0, 0);
41040 if (!(res1 >= 0)) {
41041 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MSet_convert_to_percent" "', argument " "1"" of type '" "Xapian::MSet const *""'"); goto fail; } while(0);
41043 arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
41044 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[29], 0 | 0, 0);
41045 if (!(res2 >= 0)) {
41046 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "MSet_convert_to_percent" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'"); goto fail; } while(0);
41049 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "MSet_convert_to_percent" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'"); goto fail; } while(0);
41051 arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
41053 SWIG_Python_Thread_Allow _swig_thread_allow;
41056 result = (Xapian::percent)((Xapian::MSet const *)arg1)->convert_to_percent((Xapian::MSetIterator const &)*arg2);
41058 _swig_thread_allow.end();
41059 Xapian::SetPythonException();
41063 _swig_thread_allow.end();
41065 resultobj = SWIG_From_int(static_cast< int >(result));
41070 static __attribute__ ((__unused__)) PyObject *_wrap_MSet_convert_to_percent(PyObject *self, PyObject *args) {
41073 if (!(argc = SWIG_Python_UnpackTuple(args,"MSet_convert_to_percent",0,2,argv))) goto fail;
41078 int res = SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[29], 0, 0);
41079 _v = ((res >= 0) ? 1 : 0);
41081 if (!_v) goto check_1;
41082 return _wrap_MSet_convert_to_percent__SWIG_1(self, argc, argv);
41086 return _wrap_MSet_convert_to_percent__SWIG_0(self, argc, argv);
41089 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'MSet_convert_to_percent'.\n"
41090 " Possible C/C++ prototypes are:\n"
41091 " convert_to_percent(Xapian::MSet const *,Xapian::weight)\n"
41092 " convert_to_percent(Xapian::MSet const *,Xapian::MSetIterator const &)\n");
41095 static __attribute__ ((__unused__)) PyObject *_wrap_MSet_get_termfreq(PyObject *, PyObject *args) {
41096 PyObject *resultobj = 0;
41097 Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
41101 PyObject *swig_obj[2] ;
41102 Xapian::doccount result;
41103 if (!SWIG_Python_UnpackTuple(args,"MSet_get_termfreq",2,2,swig_obj)) goto fail;
41104 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[28], 0 | 0, 0);
41105 if (!(res1 >= 0)) {
41106 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MSet_get_termfreq" "', argument " "1"" of type '" "Xapian::MSet const *""'"); goto fail; } while(0);
41108 arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
41110 std::string *ptr = (std::string *)0;
41111 int res = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
41112 if (!(res >= 0) || !ptr) {
41113 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType((((ptr ? res : -5) != (-1)) ? (ptr ? res : -5) : -5)), "in method '" "MSet_get_termfreq" "', argument " "2"" of type '" "std::string""'"); goto fail; } while(0);
41116 if (((res >= 0) && (res & ((1 << 8) << 1)))) delete ptr;
41119 SWIG_Python_Thread_Allow _swig_thread_allow;
41122 result = (Xapian::doccount)((Xapian::MSet const *)arg1)->get_termfreq(arg2);
41124 _swig_thread_allow.end();
41125 Xapian::SetPythonException();
41129 _swig_thread_allow.end();
41131 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
41136 static __attribute__ ((__unused__)) PyObject *_wrap_MSet_get_termweight(PyObject *, PyObject *args) {
41137 PyObject *resultobj = 0;
41138 Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
41142 PyObject *swig_obj[2] ;
41143 Xapian::weight result;
41144 if (!SWIG_Python_UnpackTuple(args,"MSet_get_termweight",2,2,swig_obj)) goto fail;
41145 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[28], 0 | 0, 0);
41146 if (!(res1 >= 0)) {
41147 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MSet_get_termweight" "', argument " "1"" of type '" "Xapian::MSet const *""'"); goto fail; } while(0);
41149 arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
41151 std::string *ptr = (std::string *)0;
41152 int res = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
41153 if (!(res >= 0) || !ptr) {
41154 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType((((ptr ? res : -5) != (-1)) ? (ptr ? res : -5) : -5)), "in method '" "MSet_get_termweight" "', argument " "2"" of type '" "std::string""'"); goto fail; } while(0);
41157 if (((res >= 0) && (res & ((1 << 8) << 1)))) delete ptr;
41160 SWIG_Python_Thread_Allow _swig_thread_allow;
41163 result = (Xapian::weight)((Xapian::MSet const *)arg1)->get_termweight(arg2);
41165 _swig_thread_allow.end();
41166 Xapian::SetPythonException();
41170 _swig_thread_allow.end();
41172 resultobj = PyFloat_FromDouble(static_cast< double >(result));
41177 static __attribute__ ((__unused__)) PyObject *_wrap_MSet_get_firstitem(PyObject *, PyObject *args) {
41178 PyObject *resultobj = 0;
41179 Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
41182 PyObject *swig_obj[1] ;
41183 Xapian::doccount result;
41184 if (!args) goto fail;
41185 swig_obj[0] = args;
41186 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[28], 0 | 0, 0);
41187 if (!(res1 >= 0)) {
41188 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MSet_get_firstitem" "', argument " "1"" of type '" "Xapian::MSet const *""'"); goto fail; } while(0);
41190 arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
41192 SWIG_Python_Thread_Allow _swig_thread_allow;
41195 result = (Xapian::doccount)((Xapian::MSet const *)arg1)->get_firstitem();
41197 _swig_thread_allow.end();
41198 Xapian::SetPythonException();
41202 _swig_thread_allow.end();
41204 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
41209 static __attribute__ ((__unused__)) PyObject *_wrap_MSet_get_matches_lower_bound(PyObject *, PyObject *args) {
41210 PyObject *resultobj = 0;
41211 Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
41214 PyObject *swig_obj[1] ;
41215 Xapian::doccount result;
41216 if (!args) goto fail;
41217 swig_obj[0] = args;
41218 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[28], 0 | 0, 0);
41219 if (!(res1 >= 0)) {
41220 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MSet_get_matches_lower_bound" "', argument " "1"" of type '" "Xapian::MSet const *""'"); goto fail; } while(0);
41222 arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
41224 SWIG_Python_Thread_Allow _swig_thread_allow;
41227 result = (Xapian::doccount)((Xapian::MSet const *)arg1)->get_matches_lower_bound();
41229 _swig_thread_allow.end();
41230 Xapian::SetPythonException();
41234 _swig_thread_allow.end();
41236 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
41241 static __attribute__ ((__unused__)) PyObject *_wrap_MSet_get_matches_estimated(PyObject *, PyObject *args) {
41242 PyObject *resultobj = 0;
41243 Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
41246 PyObject *swig_obj[1] ;
41247 Xapian::doccount result;
41248 if (!args) goto fail;
41249 swig_obj[0] = args;
41250 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[28], 0 | 0, 0);
41251 if (!(res1 >= 0)) {
41252 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MSet_get_matches_estimated" "', argument " "1"" of type '" "Xapian::MSet const *""'"); goto fail; } while(0);
41254 arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
41256 SWIG_Python_Thread_Allow _swig_thread_allow;
41259 result = (Xapian::doccount)((Xapian::MSet const *)arg1)->get_matches_estimated();
41261 _swig_thread_allow.end();
41262 Xapian::SetPythonException();
41266 _swig_thread_allow.end();
41268 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
41273 static __attribute__ ((__unused__)) PyObject *_wrap_MSet_get_matches_upper_bound(PyObject *, PyObject *args) {
41274 PyObject *resultobj = 0;
41275 Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
41278 PyObject *swig_obj[1] ;
41279 Xapian::doccount result;
41280 if (!args) goto fail;
41281 swig_obj[0] = args;
41282 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[28], 0 | 0, 0);
41283 if (!(res1 >= 0)) {
41284 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MSet_get_matches_upper_bound" "', argument " "1"" of type '" "Xapian::MSet const *""'"); goto fail; } while(0);
41286 arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
41288 SWIG_Python_Thread_Allow _swig_thread_allow;
41291 result = (Xapian::doccount)((Xapian::MSet const *)arg1)->get_matches_upper_bound();
41293 _swig_thread_allow.end();
41294 Xapian::SetPythonException();
41298 _swig_thread_allow.end();
41300 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
41305 static __attribute__ ((__unused__)) PyObject *_wrap_MSet_get_uncollapsed_matches_lower_bound(PyObject *, PyObject *args) {
41306 PyObject *resultobj = 0;
41307 Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
41310 PyObject *swig_obj[1] ;
41311 Xapian::doccount result;
41312 if (!args) goto fail;
41313 swig_obj[0] = args;
41314 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[28], 0 | 0, 0);
41315 if (!(res1 >= 0)) {
41316 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MSet_get_uncollapsed_matches_lower_bound" "', argument " "1"" of type '" "Xapian::MSet const *""'"); goto fail; } while(0);
41318 arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
41320 SWIG_Python_Thread_Allow _swig_thread_allow;
41323 result = (Xapian::doccount)((Xapian::MSet const *)arg1)->get_uncollapsed_matches_lower_bound();
41325 _swig_thread_allow.end();
41326 Xapian::SetPythonException();
41330 _swig_thread_allow.end();
41332 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
41337 static __attribute__ ((__unused__)) PyObject *_wrap_MSet_get_uncollapsed_matches_estimated(PyObject *, PyObject *args) {
41338 PyObject *resultobj = 0;
41339 Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
41342 PyObject *swig_obj[1] ;
41343 Xapian::doccount result;
41344 if (!args) goto fail;
41345 swig_obj[0] = args;
41346 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[28], 0 | 0, 0);
41347 if (!(res1 >= 0)) {
41348 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MSet_get_uncollapsed_matches_estimated" "', argument " "1"" of type '" "Xapian::MSet const *""'"); goto fail; } while(0);
41350 arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
41352 SWIG_Python_Thread_Allow _swig_thread_allow;
41355 result = (Xapian::doccount)((Xapian::MSet const *)arg1)->get_uncollapsed_matches_estimated();
41357 _swig_thread_allow.end();
41358 Xapian::SetPythonException();
41362 _swig_thread_allow.end();
41364 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
41369 static __attribute__ ((__unused__)) PyObject *_wrap_MSet_get_uncollapsed_matches_upper_bound(PyObject *, PyObject *args) {
41370 PyObject *resultobj = 0;
41371 Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
41374 PyObject *swig_obj[1] ;
41375 Xapian::doccount result;
41376 if (!args) goto fail;
41377 swig_obj[0] = args;
41378 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[28], 0 | 0, 0);
41379 if (!(res1 >= 0)) {
41380 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MSet_get_uncollapsed_matches_upper_bound" "', argument " "1"" of type '" "Xapian::MSet const *""'"); goto fail; } while(0);
41382 arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
41384 SWIG_Python_Thread_Allow _swig_thread_allow;
41387 result = (Xapian::doccount)((Xapian::MSet const *)arg1)->get_uncollapsed_matches_upper_bound();
41389 _swig_thread_allow.end();
41390 Xapian::SetPythonException();
41394 _swig_thread_allow.end();
41396 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
41401 static __attribute__ ((__unused__)) PyObject *_wrap_MSet_get_max_possible(PyObject *, PyObject *args) {
41402 PyObject *resultobj = 0;
41403 Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
41406 PyObject *swig_obj[1] ;
41407 Xapian::weight result;
41408 if (!args) goto fail;
41409 swig_obj[0] = args;
41410 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[28], 0 | 0, 0);
41411 if (!(res1 >= 0)) {
41412 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MSet_get_max_possible" "', argument " "1"" of type '" "Xapian::MSet *""'"); goto fail; } while(0);
41414 arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
41416 SWIG_Python_Thread_Allow _swig_thread_allow;
41419 result = (Xapian::weight)(arg1)->get_max_possible();
41421 _swig_thread_allow.end();
41422 Xapian::SetPythonException();
41426 _swig_thread_allow.end();
41428 resultobj = PyFloat_FromDouble(static_cast< double >(result));
41433 static __attribute__ ((__unused__)) PyObject *_wrap_MSet_get_max_attained(PyObject *, PyObject *args) {
41434 PyObject *resultobj = 0;
41435 Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
41438 PyObject *swig_obj[1] ;
41439 Xapian::weight result;
41440 if (!args) goto fail;
41441 swig_obj[0] = args;
41442 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[28], 0 | 0, 0);
41443 if (!(res1 >= 0)) {
41444 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MSet_get_max_attained" "', argument " "1"" of type '" "Xapian::MSet *""'"); goto fail; } while(0);
41446 arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
41448 SWIG_Python_Thread_Allow _swig_thread_allow;
41451 result = (Xapian::weight)(arg1)->get_max_attained();
41453 _swig_thread_allow.end();
41454 Xapian::SetPythonException();
41458 _swig_thread_allow.end();
41460 resultobj = PyFloat_FromDouble(static_cast< double >(result));
41465 static __attribute__ ((__unused__)) PyObject *_wrap_MSet_size(PyObject *, PyObject *args) {
41466 PyObject *resultobj = 0;
41467 Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
41470 PyObject *swig_obj[1] ;
41471 Xapian::doccount result;
41472 if (!args) goto fail;
41473 swig_obj[0] = args;
41474 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[28], 0 | 0, 0);
41475 if (!(res1 >= 0)) {
41476 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MSet_size" "', argument " "1"" of type '" "Xapian::MSet const *""'"); goto fail; } while(0);
41478 arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
41480 SWIG_Python_Thread_Allow _swig_thread_allow;
41483 result = (Xapian::doccount)((Xapian::MSet const *)arg1)->size();
41485 _swig_thread_allow.end();
41486 Xapian::SetPythonException();
41490 _swig_thread_allow.end();
41492 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
41497 static __attribute__ ((__unused__)) PyObject *_wrap_MSet_empty(PyObject *, PyObject *args) {
41498 PyObject *resultobj = 0;
41499 Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
41502 PyObject *swig_obj[1] ;
41504 if (!args) goto fail;
41505 swig_obj[0] = args;
41506 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[28], 0 | 0, 0);
41507 if (!(res1 >= 0)) {
41508 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MSet_empty" "', argument " "1"" of type '" "Xapian::MSet const *""'"); goto fail; } while(0);
41510 arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
41512 SWIG_Python_Thread_Allow _swig_thread_allow;
41515 result = (bool)((Xapian::MSet const *)arg1)->empty();
41517 _swig_thread_allow.end();
41518 Xapian::SetPythonException();
41522 _swig_thread_allow.end();
41524 resultobj = SWIG_From_bool(static_cast< bool >(result));
41529 static __attribute__ ((__unused__)) PyObject *_wrap_MSet_begin(PyObject *, PyObject *args) {
41530 PyObject *resultobj = 0;
41531 Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
41534 PyObject *swig_obj[1] ;
41535 Xapian::MSetIterator result;
41536 if (!args) goto fail;
41537 swig_obj[0] = args;
41538 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[28], 0 | 0, 0);
41539 if (!(res1 >= 0)) {
41540 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MSet_begin" "', argument " "1"" of type '" "Xapian::MSet const *""'"); goto fail; } while(0);
41542 arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
41544 SWIG_Python_Thread_Allow _swig_thread_allow;
41547 result = ((Xapian::MSet const *)arg1)->begin();
41549 _swig_thread_allow.end();
41550 Xapian::SetPythonException();
41554 _swig_thread_allow.end();
41556 resultobj = SWIG_Python_NewPointerObj((new Xapian::MSetIterator(static_cast< const Xapian::MSetIterator& >(result))), swig_types[29], 0x1 | 0);
41561 static __attribute__ ((__unused__)) PyObject *_wrap_MSet_end(PyObject *, PyObject *args) {
41562 PyObject *resultobj = 0;
41563 Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
41566 PyObject *swig_obj[1] ;
41567 Xapian::MSetIterator result;
41568 if (!args) goto fail;
41569 swig_obj[0] = args;
41570 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[28], 0 | 0, 0);
41571 if (!(res1 >= 0)) {
41572 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MSet_end" "', argument " "1"" of type '" "Xapian::MSet const *""'"); goto fail; } while(0);
41574 arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
41576 SWIG_Python_Thread_Allow _swig_thread_allow;
41579 result = ((Xapian::MSet const *)arg1)->end();
41581 _swig_thread_allow.end();
41582 Xapian::SetPythonException();
41586 _swig_thread_allow.end();
41588 resultobj = SWIG_Python_NewPointerObj((new Xapian::MSetIterator(static_cast< const Xapian::MSetIterator& >(result))), swig_types[29], 0x1 | 0);
41593 static __attribute__ ((__unused__)) PyObject *_wrap_MSet_back(PyObject *, PyObject *args) {
41594 PyObject *resultobj = 0;
41595 Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
41598 PyObject *swig_obj[1] ;
41599 Xapian::MSetIterator result;
41600 if (!args) goto fail;
41601 swig_obj[0] = args;
41602 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[28], 0 | 0, 0);
41603 if (!(res1 >= 0)) {
41604 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MSet_back" "', argument " "1"" of type '" "Xapian::MSet const *""'"); goto fail; } while(0);
41606 arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
41608 SWIG_Python_Thread_Allow _swig_thread_allow;
41611 result = ((Xapian::MSet const *)arg1)->back();
41613 _swig_thread_allow.end();
41614 Xapian::SetPythonException();
41618 _swig_thread_allow.end();
41620 resultobj = SWIG_Python_NewPointerObj((new Xapian::MSetIterator(static_cast< const Xapian::MSetIterator& >(result))), swig_types[29], 0x1 | 0);
41625 static __attribute__ ((__unused__)) PyObject *_wrap_MSet__get_hit_internal(PyObject *, PyObject *args) {
41626 PyObject *resultobj = 0;
41627 Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
41628 Xapian::doccount arg2 ;
41631 unsigned int val2 ;
41633 PyObject *swig_obj[2] ;
41634 Xapian::MSetIterator result;
41635 if (!SWIG_Python_UnpackTuple(args,"MSet__get_hit_internal",2,2,swig_obj)) goto fail;
41636 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[28], 0 | 0, 0);
41637 if (!(res1 >= 0)) {
41638 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MSet__get_hit_internal" "', argument " "1"" of type '" "Xapian::MSet const *""'"); goto fail; } while(0);
41640 arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
41641 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
41642 if (!(ecode2 >= 0)) {
41643 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "MSet__get_hit_internal" "', argument " "2"" of type '" "Xapian::doccount""'"); goto fail; } while(0);
41645 arg2 = static_cast< Xapian::doccount >(val2);
41647 SWIG_Python_Thread_Allow _swig_thread_allow;
41650 result = Xapian_MSet_get_hit((Xapian::MSet const *)arg1,arg2);
41652 _swig_thread_allow.end();
41653 Xapian::SetPythonException();
41657 _swig_thread_allow.end();
41659 resultobj = SWIG_Python_NewPointerObj((new Xapian::MSetIterator(static_cast< const Xapian::MSetIterator& >(result))), swig_types[29], 0x1 | 0);
41664 static __attribute__ ((__unused__)) PyObject *_wrap_MSet_get_document_percentage(PyObject *, PyObject *args) {
41665 PyObject *resultobj = 0;
41666 Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
41667 Xapian::doccount arg2 ;
41670 unsigned int val2 ;
41672 PyObject *swig_obj[2] ;
41674 if (!SWIG_Python_UnpackTuple(args,"MSet_get_document_percentage",2,2,swig_obj)) goto fail;
41675 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[28], 0 | 0, 0);
41676 if (!(res1 >= 0)) {
41677 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MSet_get_document_percentage" "', argument " "1"" of type '" "Xapian::MSet const *""'"); goto fail; } while(0);
41679 arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
41680 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
41681 if (!(ecode2 >= 0)) {
41682 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "MSet_get_document_percentage" "', argument " "2"" of type '" "Xapian::doccount""'"); goto fail; } while(0);
41684 arg2 = static_cast< Xapian::doccount >(val2);
41686 SWIG_Python_Thread_Allow _swig_thread_allow;
41689 result = (int)Xapian_MSet_get_document_percentage((Xapian::MSet const *)arg1,arg2);
41691 _swig_thread_allow.end();
41692 Xapian::SetPythonException();
41696 _swig_thread_allow.end();
41698 resultobj = SWIG_From_int(static_cast< int >(result));
41703 static __attribute__ ((__unused__)) PyObject *_wrap_MSet_get_document(PyObject *, PyObject *args) {
41704 PyObject *resultobj = 0;
41705 Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
41706 Xapian::doccount arg2 ;
41709 unsigned int val2 ;
41711 PyObject *swig_obj[2] ;
41712 Xapian::Document result;
41713 if (!SWIG_Python_UnpackTuple(args,"MSet_get_document",2,2,swig_obj)) goto fail;
41714 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[28], 0 | 0, 0);
41715 if (!(res1 >= 0)) {
41716 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MSet_get_document" "', argument " "1"" of type '" "Xapian::MSet const *""'"); goto fail; } while(0);
41718 arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
41719 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
41720 if (!(ecode2 >= 0)) {
41721 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "MSet_get_document" "', argument " "2"" of type '" "Xapian::doccount""'"); goto fail; } while(0);
41723 arg2 = static_cast< Xapian::doccount >(val2);
41725 SWIG_Python_Thread_Allow _swig_thread_allow;
41728 result = Xapian_MSet_get_document((Xapian::MSet const *)arg1,arg2);
41730 _swig_thread_allow.end();
41731 Xapian::SetPythonException();
41735 _swig_thread_allow.end();
41737 resultobj = SWIG_Python_NewPointerObj((new Xapian::Document(static_cast< const Xapian::Document& >(result))), swig_types[15], 0x1 | 0);
41742 static __attribute__ ((__unused__)) PyObject *_wrap_MSet_get_docid(PyObject *, PyObject *args) {
41743 PyObject *resultobj = 0;
41744 Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
41745 Xapian::doccount arg2 ;
41748 unsigned int val2 ;
41750 PyObject *swig_obj[2] ;
41751 Xapian::docid result;
41752 if (!SWIG_Python_UnpackTuple(args,"MSet_get_docid",2,2,swig_obj)) goto fail;
41753 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[28], 0 | 0, 0);
41754 if (!(res1 >= 0)) {
41755 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MSet_get_docid" "', argument " "1"" of type '" "Xapian::MSet const *""'"); goto fail; } while(0);
41757 arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
41758 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
41759 if (!(ecode2 >= 0)) {
41760 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "MSet_get_docid" "', argument " "2"" of type '" "Xapian::doccount""'"); goto fail; } while(0);
41762 arg2 = static_cast< Xapian::doccount >(val2);
41764 SWIG_Python_Thread_Allow _swig_thread_allow;
41767 result = (Xapian::docid)Xapian_MSet_get_docid((Xapian::MSet const *)arg1,arg2);
41769 _swig_thread_allow.end();
41770 Xapian::SetPythonException();
41774 _swig_thread_allow.end();
41776 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
41781 static __attribute__ ((__unused__)) PyObject *_wrap_MSet___str__(PyObject *, PyObject *args) {
41782 PyObject *resultobj = 0;
41783 Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
41786 PyObject *swig_obj[1] ;
41787 std::string result;
41788 if (!args) goto fail;
41789 swig_obj[0] = args;
41790 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[28], 0 | 0, 0);
41791 if (!(res1 >= 0)) {
41792 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MSet___str__" "', argument " "1"" of type '" "Xapian::MSet const *""'"); goto fail; } while(0);
41794 arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
41796 SWIG_Python_Thread_Allow _swig_thread_allow;
41799 result = ((Xapian::MSet const *)arg1)->get_description();
41801 _swig_thread_allow.end();
41802 Xapian::SetPythonException();
41806 _swig_thread_allow.end();
41808 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
41813 static __attribute__ ((__unused__)) PyObject *_wrap_MSet_items_get(PyObject *, PyObject *args) {
41814 PyObject *resultobj = 0;
41815 Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
41818 PyObject *swig_obj[1] ;
41819 PyObject *result = 0 ;
41820 if (!args) goto fail;
41821 swig_obj[0] = args;
41822 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[28], 0 | 0, 0);
41823 if (!(res1 >= 0)) {
41824 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MSet_items_get" "', argument " "1"" of type '" "Xapian::MSet *""'"); goto fail; } while(0);
41826 arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
41827 result = (PyObject *)Xapian_MSet_items_get(arg1);
41828 resultobj = result;
41833 static __attribute__ ((__unused__)) PyObject *_wrap_MSet___cmp__(PyObject *, PyObject *args) {
41834 PyObject *resultobj = 0;
41835 Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
41836 Xapian::MSet *arg2 = 0 ;
41841 PyObject *swig_obj[2] ;
41843 if (!SWIG_Python_UnpackTuple(args,"MSet___cmp__",2,2,swig_obj)) goto fail;
41844 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[28], 0 | 0, 0);
41845 if (!(res1 >= 0)) {
41846 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MSet___cmp__" "', argument " "1"" of type '" "Xapian::MSet *""'"); goto fail; } while(0);
41848 arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
41849 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[28], 0 | 0, 0);
41850 if (!(res2 >= 0)) {
41851 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "MSet___cmp__" "', argument " "2"" of type '" "Xapian::MSet const &""'"); goto fail; } while(0);
41854 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "MSet___cmp__" "', argument " "2"" of type '" "Xapian::MSet const &""'"); goto fail; } while(0);
41856 arg2 = reinterpret_cast< Xapian::MSet * >(argp2);
41858 SWIG_Python_Thread_Allow _swig_thread_allow;
41859 result = (int)Xapian_MSet___cmp__(arg1,(Xapian::MSet const &)*arg2);
41860 _swig_thread_allow.end();
41862 resultobj = SWIG_From_int(static_cast< int >(result));
41867 static __attribute__ ((__unused__)) PyObject *MSet_swigregister(PyObject *, PyObject *args) {
41869 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
41870 SWIG_TypeNewClientData(swig_types[28], SwigPyClientData_New(obj));
41871 return SWIG_Py_Void();
41873 static __attribute__ ((__unused__)) PyObject *MSet_swiginit(PyObject *, PyObject *args) {
41874 return SWIG_Python_InitShadowInstance(args);
41876 static __attribute__ ((__unused__)) PyObject *_wrap_new_MSetIterator__SWIG_0(PyObject *, int nobjs, PyObject **) {
41877 PyObject *resultobj = 0;
41878 Xapian::MSetIterator *result = 0 ;
41879 if ((nobjs < 0) || (nobjs > 0)) goto fail;
41881 SWIG_Python_Thread_Allow _swig_thread_allow;
41884 result = (Xapian::MSetIterator *)new Xapian::MSetIterator();
41886 _swig_thread_allow.end();
41887 Xapian::SetPythonException();
41891 _swig_thread_allow.end();
41893 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[29], ((0x1 << 1) | 0x1) | 0);
41898 static __attribute__ ((__unused__)) PyObject *_wrap_new_MSetIterator__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
41899 PyObject *resultobj = 0;
41900 Xapian::MSetIterator *arg1 = 0 ;
41903 Xapian::MSetIterator *result = 0 ;
41904 if ((nobjs < 1) || (nobjs > 1)) goto fail;
41905 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[29], 0 | 0, 0);
41906 if (!(res1 >= 0)) {
41907 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_MSetIterator" "', argument " "1"" of type '" "Xapian::MSetIterator const &""'"); goto fail; } while(0);
41910 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_MSetIterator" "', argument " "1"" of type '" "Xapian::MSetIterator const &""'"); goto fail; } while(0);
41912 arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
41914 SWIG_Python_Thread_Allow _swig_thread_allow;
41917 result = (Xapian::MSetIterator *)new Xapian::MSetIterator((Xapian::MSetIterator const &)*arg1);
41919 _swig_thread_allow.end();
41920 Xapian::SetPythonException();
41924 _swig_thread_allow.end();
41926 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[29], ((0x1 << 1) | 0x1) | 0);
41931 static __attribute__ ((__unused__)) PyObject *_wrap_new_MSetIterator(PyObject *self, PyObject *args) {
41934 if (!(argc = SWIG_Python_UnpackTuple(args,"new_MSetIterator",0,1,argv))) goto fail;
41937 return _wrap_new_MSetIterator__SWIG_0(self, argc, argv);
41940 return _wrap_new_MSetIterator__SWIG_1(self, argc, argv);
41943 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_MSetIterator'.\n"
41944 " Possible C/C++ prototypes are:\n"
41945 " Xapian::MSetIterator()\n"
41946 " Xapian::MSetIterator(Xapian::MSetIterator const &)\n");
41949 static __attribute__ ((__unused__)) PyObject *_wrap_delete_MSetIterator(PyObject *, PyObject *args) {
41950 PyObject *resultobj = 0;
41951 Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
41954 PyObject *swig_obj[1] ;
41955 if (!args) goto fail;
41956 swig_obj[0] = args;
41957 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[29], 0x1 | 0, 0);
41958 if (!(res1 >= 0)) {
41959 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_MSetIterator" "', argument " "1"" of type '" "Xapian::MSetIterator *""'"); goto fail; } while(0);
41961 arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
41963 SWIG_Python_Thread_Allow _swig_thread_allow;
41968 _swig_thread_allow.end();
41969 Xapian::SetPythonException();
41973 _swig_thread_allow.end();
41975 resultobj = SWIG_Py_Void();
41980 static __attribute__ ((__unused__)) PyObject *_wrap_MSetIterator_get_docid(PyObject *, PyObject *args) {
41981 PyObject *resultobj = 0;
41982 Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
41985 PyObject *swig_obj[1] ;
41986 Xapian::docid result;
41987 if (!args) goto fail;
41988 swig_obj[0] = args;
41989 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[29], 0 | 0, 0);
41990 if (!(res1 >= 0)) {
41991 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MSetIterator_get_docid" "', argument " "1"" of type '" "Xapian::MSetIterator const *""'"); goto fail; } while(0);
41993 arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
41995 SWIG_Python_Thread_Allow _swig_thread_allow;
41998 result = (Xapian::docid)Xapian_MSetIterator_get_docid((Xapian::MSetIterator const *)arg1);
42000 _swig_thread_allow.end();
42001 Xapian::SetPythonException();
42005 _swig_thread_allow.end();
42007 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
42012 static __attribute__ ((__unused__)) PyObject *_wrap_MSetIterator_next(PyObject *, PyObject *args) {
42013 PyObject *resultobj = 0;
42014 Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
42017 PyObject *swig_obj[1] ;
42018 if (!args) goto fail;
42019 swig_obj[0] = args;
42020 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[29], 0 | 0, 0);
42021 if (!(res1 >= 0)) {
42022 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MSetIterator_next" "', argument " "1"" of type '" "Xapian::MSetIterator *""'"); goto fail; } while(0);
42024 arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
42026 SWIG_Python_Thread_Allow _swig_thread_allow;
42029 Xapian_MSetIterator_next(arg1);
42031 _swig_thread_allow.end();
42032 Xapian::SetPythonException();
42036 _swig_thread_allow.end();
42038 resultobj = SWIG_Py_Void();
42043 static __attribute__ ((__unused__)) PyObject *_wrap_MSetIterator_prev(PyObject *, PyObject *args) {
42044 PyObject *resultobj = 0;
42045 Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
42048 PyObject *swig_obj[1] ;
42049 if (!args) goto fail;
42050 swig_obj[0] = args;
42051 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[29], 0 | 0, 0);
42052 if (!(res1 >= 0)) {
42053 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MSetIterator_prev" "', argument " "1"" of type '" "Xapian::MSetIterator *""'"); goto fail; } while(0);
42055 arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
42057 SWIG_Python_Thread_Allow _swig_thread_allow;
42060 Xapian_MSetIterator_prev(arg1);
42062 _swig_thread_allow.end();
42063 Xapian::SetPythonException();
42067 _swig_thread_allow.end();
42069 resultobj = SWIG_Py_Void();
42074 static __attribute__ ((__unused__)) PyObject *_wrap_MSetIterator_equals(PyObject *, PyObject *args) {
42075 PyObject *resultobj = 0;
42076 Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
42077 Xapian::MSetIterator *arg2 = 0 ;
42082 PyObject *swig_obj[2] ;
42084 if (!SWIG_Python_UnpackTuple(args,"MSetIterator_equals",2,2,swig_obj)) goto fail;
42085 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[29], 0 | 0, 0);
42086 if (!(res1 >= 0)) {
42087 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MSetIterator_equals" "', argument " "1"" of type '" "Xapian::MSetIterator const *""'"); goto fail; } while(0);
42089 arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
42090 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[29], 0 | 0, 0);
42091 if (!(res2 >= 0)) {
42092 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "MSetIterator_equals" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'"); goto fail; } while(0);
42095 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "MSetIterator_equals" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'"); goto fail; } while(0);
42097 arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
42099 SWIG_Python_Thread_Allow _swig_thread_allow;
42102 result = (bool)Xapian_MSetIterator_equals((Xapian::MSetIterator const *)arg1,(Xapian::MSetIterator const &)*arg2);
42104 _swig_thread_allow.end();
42105 Xapian::SetPythonException();
42109 _swig_thread_allow.end();
42111 resultobj = SWIG_From_bool(static_cast< bool >(result));
42116 static __attribute__ ((__unused__)) PyObject *_wrap_MSetIterator_get_document(PyObject *, PyObject *args) {
42117 PyObject *resultobj = 0;
42118 Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
42121 PyObject *swig_obj[1] ;
42122 Xapian::Document result;
42123 if (!args) goto fail;
42124 swig_obj[0] = args;
42125 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[29], 0 | 0, 0);
42126 if (!(res1 >= 0)) {
42127 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MSetIterator_get_document" "', argument " "1"" of type '" "Xapian::MSetIterator const *""'"); goto fail; } while(0);
42129 arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
42131 SWIG_Python_Thread_Allow _swig_thread_allow;
42134 result = ((Xapian::MSetIterator const *)arg1)->get_document();
42136 _swig_thread_allow.end();
42137 Xapian::SetPythonException();
42141 _swig_thread_allow.end();
42143 resultobj = SWIG_Python_NewPointerObj((new Xapian::Document(static_cast< const Xapian::Document& >(result))), swig_types[15], 0x1 | 0);
42148 static __attribute__ ((__unused__)) PyObject *_wrap_MSetIterator_get_rank(PyObject *, PyObject *args) {
42149 PyObject *resultobj = 0;
42150 Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
42153 PyObject *swig_obj[1] ;
42154 Xapian::doccount result;
42155 if (!args) goto fail;
42156 swig_obj[0] = args;
42157 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[29], 0 | 0, 0);
42158 if (!(res1 >= 0)) {
42159 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MSetIterator_get_rank" "', argument " "1"" of type '" "Xapian::MSetIterator const *""'"); goto fail; } while(0);
42161 arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
42163 SWIG_Python_Thread_Allow _swig_thread_allow;
42166 result = (Xapian::doccount)((Xapian::MSetIterator const *)arg1)->get_rank();
42168 _swig_thread_allow.end();
42169 Xapian::SetPythonException();
42173 _swig_thread_allow.end();
42175 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
42180 static __attribute__ ((__unused__)) PyObject *_wrap_MSetIterator_get_weight(PyObject *, PyObject *args) {
42181 PyObject *resultobj = 0;
42182 Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
42185 PyObject *swig_obj[1] ;
42186 Xapian::weight result;
42187 if (!args) goto fail;
42188 swig_obj[0] = args;
42189 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[29], 0 | 0, 0);
42190 if (!(res1 >= 0)) {
42191 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MSetIterator_get_weight" "', argument " "1"" of type '" "Xapian::MSetIterator const *""'"); goto fail; } while(0);
42193 arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
42195 SWIG_Python_Thread_Allow _swig_thread_allow;
42198 result = (Xapian::weight)((Xapian::MSetIterator const *)arg1)->get_weight();
42200 _swig_thread_allow.end();
42201 Xapian::SetPythonException();
42205 _swig_thread_allow.end();
42207 resultobj = PyFloat_FromDouble(static_cast< double >(result));
42212 static __attribute__ ((__unused__)) PyObject *_wrap_MSetIterator_get_collapse_key(PyObject *, PyObject *args) {
42213 PyObject *resultobj = 0;
42214 Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
42217 PyObject *swig_obj[1] ;
42218 std::string result;
42219 if (!args) goto fail;
42220 swig_obj[0] = args;
42221 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[29], 0 | 0, 0);
42222 if (!(res1 >= 0)) {
42223 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MSetIterator_get_collapse_key" "', argument " "1"" of type '" "Xapian::MSetIterator const *""'"); goto fail; } while(0);
42225 arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
42227 SWIG_Python_Thread_Allow _swig_thread_allow;
42230 result = ((Xapian::MSetIterator const *)arg1)->get_collapse_key();
42232 _swig_thread_allow.end();
42233 Xapian::SetPythonException();
42237 _swig_thread_allow.end();
42239 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
42244 static __attribute__ ((__unused__)) PyObject *_wrap_MSetIterator_get_collapse_count(PyObject *, PyObject *args) {
42245 PyObject *resultobj = 0;
42246 Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
42249 PyObject *swig_obj[1] ;
42250 Xapian::doccount result;
42251 if (!args) goto fail;
42252 swig_obj[0] = args;
42253 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[29], 0 | 0, 0);
42254 if (!(res1 >= 0)) {
42255 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MSetIterator_get_collapse_count" "', argument " "1"" of type '" "Xapian::MSetIterator const *""'"); goto fail; } while(0);
42257 arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
42259 SWIG_Python_Thread_Allow _swig_thread_allow;
42262 result = (Xapian::doccount)((Xapian::MSetIterator const *)arg1)->get_collapse_count();
42264 _swig_thread_allow.end();
42265 Xapian::SetPythonException();
42269 _swig_thread_allow.end();
42271 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
42276 static __attribute__ ((__unused__)) PyObject *_wrap_MSetIterator_get_percent(PyObject *, PyObject *args) {
42277 PyObject *resultobj = 0;
42278 Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
42281 PyObject *swig_obj[1] ;
42282 Xapian::percent result;
42283 if (!args) goto fail;
42284 swig_obj[0] = args;
42285 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[29], 0 | 0, 0);
42286 if (!(res1 >= 0)) {
42287 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MSetIterator_get_percent" "', argument " "1"" of type '" "Xapian::MSetIterator const *""'"); goto fail; } while(0);
42289 arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
42291 SWIG_Python_Thread_Allow _swig_thread_allow;
42294 result = (Xapian::percent)((Xapian::MSetIterator const *)arg1)->get_percent();
42296 _swig_thread_allow.end();
42297 Xapian::SetPythonException();
42301 _swig_thread_allow.end();
42303 resultobj = SWIG_From_int(static_cast< int >(result));
42308 static __attribute__ ((__unused__)) PyObject *_wrap_MSetIterator___str__(PyObject *, PyObject *args) {
42309 PyObject *resultobj = 0;
42310 Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
42313 PyObject *swig_obj[1] ;
42314 std::string result;
42315 if (!args) goto fail;
42316 swig_obj[0] = args;
42317 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[29], 0 | 0, 0);
42318 if (!(res1 >= 0)) {
42319 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MSetIterator___str__" "', argument " "1"" of type '" "Xapian::MSetIterator const *""'"); goto fail; } while(0);
42321 arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
42323 SWIG_Python_Thread_Allow _swig_thread_allow;
42326 result = ((Xapian::MSetIterator const *)arg1)->get_description();
42328 _swig_thread_allow.end();
42329 Xapian::SetPythonException();
42333 _swig_thread_allow.end();
42335 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
42340 static __attribute__ ((__unused__)) PyObject *_wrap_MSetIterator___eq__(PyObject *, PyObject *args) {
42341 PyObject *resultobj = 0;
42342 Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
42343 Xapian::MSetIterator *arg2 = 0 ;
42348 PyObject *swig_obj[2] ;
42350 if (!SWIG_Python_UnpackTuple(args,"MSetIterator___eq__",2,2,swig_obj)) goto fail;
42351 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[29], 0 | 0, 0);
42352 if (!(res1 >= 0)) {
42353 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MSetIterator___eq__" "', argument " "1"" of type '" "Xapian::MSetIterator *""'"); goto fail; } while(0);
42355 arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
42356 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[29], 0 | 0, 0);
42357 if (!(res2 >= 0)) {
42358 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "MSetIterator___eq__" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'"); goto fail; } while(0);
42361 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "MSetIterator___eq__" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'"); goto fail; } while(0);
42363 arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
42365 SWIG_Python_Thread_Allow _swig_thread_allow;
42366 result = (bool)Xapian_MSetIterator___eq__(arg1,(Xapian::MSetIterator const &)*arg2);
42367 _swig_thread_allow.end();
42369 resultobj = SWIG_From_bool(static_cast< bool >(result));
42374 static __attribute__ ((__unused__)) PyObject *_wrap_MSetIterator___ne__(PyObject *, PyObject *args) {
42375 PyObject *resultobj = 0;
42376 Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
42377 Xapian::MSetIterator *arg2 = 0 ;
42382 PyObject *swig_obj[2] ;
42384 if (!SWIG_Python_UnpackTuple(args,"MSetIterator___ne__",2,2,swig_obj)) goto fail;
42385 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[29], 0 | 0, 0);
42386 if (!(res1 >= 0)) {
42387 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MSetIterator___ne__" "', argument " "1"" of type '" "Xapian::MSetIterator *""'"); goto fail; } while(0);
42389 arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
42390 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[29], 0 | 0, 0);
42391 if (!(res2 >= 0)) {
42392 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "MSetIterator___ne__" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'"); goto fail; } while(0);
42395 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "MSetIterator___ne__" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'"); goto fail; } while(0);
42397 arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
42399 SWIG_Python_Thread_Allow _swig_thread_allow;
42400 result = (bool)Xapian_MSetIterator___ne__(arg1,(Xapian::MSetIterator const &)*arg2);
42401 _swig_thread_allow.end();
42403 resultobj = SWIG_From_bool(static_cast< bool >(result));
42408 static __attribute__ ((__unused__)) PyObject *MSetIterator_swigregister(PyObject *, PyObject *args) {
42410 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
42411 SWIG_TypeNewClientData(swig_types[29], SwigPyClientData_New(obj));
42412 return SWIG_Py_Void();
42414 static __attribute__ ((__unused__)) PyObject *MSetIterator_swiginit(PyObject *, PyObject *args) {
42415 return SWIG_Python_InitShadowInstance(args);
42417 static __attribute__ ((__unused__)) PyObject *_wrap_new_ESet__SWIG_0(PyObject *, int nobjs, PyObject **) {
42418 PyObject *resultobj = 0;
42419 Xapian::ESet *result = 0 ;
42420 if ((nobjs < 0) || (nobjs > 0)) goto fail;
42422 SWIG_Python_Thread_Allow _swig_thread_allow;
42425 result = (Xapian::ESet *)new Xapian::ESet();
42427 _swig_thread_allow.end();
42428 Xapian::SetPythonException();
42432 _swig_thread_allow.end();
42434 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[16], ((0x1 << 1) | 0x1) | 0);
42439 static __attribute__ ((__unused__)) PyObject *_wrap_new_ESet__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
42440 PyObject *resultobj = 0;
42441 Xapian::ESet *arg1 = 0 ;
42444 Xapian::ESet *result = 0 ;
42445 if ((nobjs < 1) || (nobjs > 1)) goto fail;
42446 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[16], 0 | 0, 0);
42447 if (!(res1 >= 0)) {
42448 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_ESet" "', argument " "1"" of type '" "Xapian::ESet const &""'"); goto fail; } while(0);
42451 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_ESet" "', argument " "1"" of type '" "Xapian::ESet const &""'"); goto fail; } while(0);
42453 arg1 = reinterpret_cast< Xapian::ESet * >(argp1);
42455 SWIG_Python_Thread_Allow _swig_thread_allow;
42458 result = (Xapian::ESet *)new Xapian::ESet((Xapian::ESet const &)*arg1);
42460 _swig_thread_allow.end();
42461 Xapian::SetPythonException();
42465 _swig_thread_allow.end();
42467 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[16], ((0x1 << 1) | 0x1) | 0);
42472 static __attribute__ ((__unused__)) PyObject *_wrap_new_ESet(PyObject *self, PyObject *args) {
42475 if (!(argc = SWIG_Python_UnpackTuple(args,"new_ESet",0,1,argv))) goto fail;
42478 return _wrap_new_ESet__SWIG_0(self, argc, argv);
42481 return _wrap_new_ESet__SWIG_1(self, argc, argv);
42484 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_ESet'.\n"
42485 " Possible C/C++ prototypes are:\n"
42486 " Xapian::ESet()\n"
42487 " Xapian::ESet(Xapian::ESet const &)\n");
42490 static __attribute__ ((__unused__)) PyObject *_wrap_delete_ESet(PyObject *, PyObject *args) {
42491 PyObject *resultobj = 0;
42492 Xapian::ESet *arg1 = (Xapian::ESet *) 0 ;
42495 PyObject *swig_obj[1] ;
42496 if (!args) goto fail;
42497 swig_obj[0] = args;
42498 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[16], 0x1 | 0, 0);
42499 if (!(res1 >= 0)) {
42500 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_ESet" "', argument " "1"" of type '" "Xapian::ESet *""'"); goto fail; } while(0);
42502 arg1 = reinterpret_cast< Xapian::ESet * >(argp1);
42504 SWIG_Python_Thread_Allow _swig_thread_allow;
42509 _swig_thread_allow.end();
42510 Xapian::SetPythonException();
42514 _swig_thread_allow.end();
42516 resultobj = SWIG_Py_Void();
42521 static __attribute__ ((__unused__)) PyObject *_wrap_ESet_get_ebound(PyObject *, PyObject *args) {
42522 PyObject *resultobj = 0;
42523 Xapian::ESet *arg1 = (Xapian::ESet *) 0 ;
42526 PyObject *swig_obj[1] ;
42527 Xapian::termcount result;
42528 if (!args) goto fail;
42529 swig_obj[0] = args;
42530 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[16], 0 | 0, 0);
42531 if (!(res1 >= 0)) {
42532 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "ESet_get_ebound" "', argument " "1"" of type '" "Xapian::ESet const *""'"); goto fail; } while(0);
42534 arg1 = reinterpret_cast< Xapian::ESet * >(argp1);
42536 SWIG_Python_Thread_Allow _swig_thread_allow;
42539 result = (Xapian::termcount)((Xapian::ESet const *)arg1)->get_ebound();
42541 _swig_thread_allow.end();
42542 Xapian::SetPythonException();
42546 _swig_thread_allow.end();
42548 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
42553 static __attribute__ ((__unused__)) PyObject *_wrap_ESet_size(PyObject *, PyObject *args) {
42554 PyObject *resultobj = 0;
42555 Xapian::ESet *arg1 = (Xapian::ESet *) 0 ;
42558 PyObject *swig_obj[1] ;
42559 Xapian::termcount result;
42560 if (!args) goto fail;
42561 swig_obj[0] = args;
42562 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[16], 0 | 0, 0);
42563 if (!(res1 >= 0)) {
42564 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "ESet_size" "', argument " "1"" of type '" "Xapian::ESet const *""'"); goto fail; } while(0);
42566 arg1 = reinterpret_cast< Xapian::ESet * >(argp1);
42568 SWIG_Python_Thread_Allow _swig_thread_allow;
42571 result = (Xapian::termcount)((Xapian::ESet const *)arg1)->size();
42573 _swig_thread_allow.end();
42574 Xapian::SetPythonException();
42578 _swig_thread_allow.end();
42580 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
42585 static __attribute__ ((__unused__)) PyObject *_wrap_ESet_empty(PyObject *, PyObject *args) {
42586 PyObject *resultobj = 0;
42587 Xapian::ESet *arg1 = (Xapian::ESet *) 0 ;
42590 PyObject *swig_obj[1] ;
42592 if (!args) goto fail;
42593 swig_obj[0] = args;
42594 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[16], 0 | 0, 0);
42595 if (!(res1 >= 0)) {
42596 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "ESet_empty" "', argument " "1"" of type '" "Xapian::ESet const *""'"); goto fail; } while(0);
42598 arg1 = reinterpret_cast< Xapian::ESet * >(argp1);
42600 SWIG_Python_Thread_Allow _swig_thread_allow;
42603 result = (bool)((Xapian::ESet const *)arg1)->empty();
42605 _swig_thread_allow.end();
42606 Xapian::SetPythonException();
42610 _swig_thread_allow.end();
42612 resultobj = SWIG_From_bool(static_cast< bool >(result));
42617 static __attribute__ ((__unused__)) PyObject *_wrap_ESet_begin(PyObject *, PyObject *args) {
42618 PyObject *resultobj = 0;
42619 Xapian::ESet *arg1 = (Xapian::ESet *) 0 ;
42622 PyObject *swig_obj[1] ;
42623 Xapian::ESetIterator result;
42624 if (!args) goto fail;
42625 swig_obj[0] = args;
42626 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[16], 0 | 0, 0);
42627 if (!(res1 >= 0)) {
42628 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "ESet_begin" "', argument " "1"" of type '" "Xapian::ESet const *""'"); goto fail; } while(0);
42630 arg1 = reinterpret_cast< Xapian::ESet * >(argp1);
42632 SWIG_Python_Thread_Allow _swig_thread_allow;
42635 result = ((Xapian::ESet const *)arg1)->begin();
42637 _swig_thread_allow.end();
42638 Xapian::SetPythonException();
42642 _swig_thread_allow.end();
42644 resultobj = SWIG_Python_NewPointerObj((new Xapian::ESetIterator(static_cast< const Xapian::ESetIterator& >(result))), swig_types[17], 0x1 | 0);
42649 static __attribute__ ((__unused__)) PyObject *_wrap_ESet_end(PyObject *, PyObject *args) {
42650 PyObject *resultobj = 0;
42651 Xapian::ESet *arg1 = (Xapian::ESet *) 0 ;
42654 PyObject *swig_obj[1] ;
42655 Xapian::ESetIterator result;
42656 if (!args) goto fail;
42657 swig_obj[0] = args;
42658 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[16], 0 | 0, 0);
42659 if (!(res1 >= 0)) {
42660 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "ESet_end" "', argument " "1"" of type '" "Xapian::ESet const *""'"); goto fail; } while(0);
42662 arg1 = reinterpret_cast< Xapian::ESet * >(argp1);
42664 SWIG_Python_Thread_Allow _swig_thread_allow;
42667 result = ((Xapian::ESet const *)arg1)->end();
42669 _swig_thread_allow.end();
42670 Xapian::SetPythonException();
42674 _swig_thread_allow.end();
42676 resultobj = SWIG_Python_NewPointerObj((new Xapian::ESetIterator(static_cast< const Xapian::ESetIterator& >(result))), swig_types[17], 0x1 | 0);
42681 static __attribute__ ((__unused__)) PyObject *_wrap_ESet_back(PyObject *, PyObject *args) {
42682 PyObject *resultobj = 0;
42683 Xapian::ESet *arg1 = (Xapian::ESet *) 0 ;
42686 PyObject *swig_obj[1] ;
42687 Xapian::ESetIterator result;
42688 if (!args) goto fail;
42689 swig_obj[0] = args;
42690 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[16], 0 | 0, 0);
42691 if (!(res1 >= 0)) {
42692 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "ESet_back" "', argument " "1"" of type '" "Xapian::ESet const *""'"); goto fail; } while(0);
42694 arg1 = reinterpret_cast< Xapian::ESet * >(argp1);
42696 SWIG_Python_Thread_Allow _swig_thread_allow;
42699 result = ((Xapian::ESet const *)arg1)->back();
42701 _swig_thread_allow.end();
42702 Xapian::SetPythonException();
42706 _swig_thread_allow.end();
42708 resultobj = SWIG_Python_NewPointerObj((new Xapian::ESetIterator(static_cast< const Xapian::ESetIterator& >(result))), swig_types[17], 0x1 | 0);
42713 static __attribute__ ((__unused__)) PyObject *_wrap_ESet___str__(PyObject *, PyObject *args) {
42714 PyObject *resultobj = 0;
42715 Xapian::ESet *arg1 = (Xapian::ESet *) 0 ;
42718 PyObject *swig_obj[1] ;
42719 std::string result;
42720 if (!args) goto fail;
42721 swig_obj[0] = args;
42722 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[16], 0 | 0, 0);
42723 if (!(res1 >= 0)) {
42724 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "ESet___str__" "', argument " "1"" of type '" "Xapian::ESet const *""'"); goto fail; } while(0);
42726 arg1 = reinterpret_cast< Xapian::ESet * >(argp1);
42728 SWIG_Python_Thread_Allow _swig_thread_allow;
42731 result = ((Xapian::ESet const *)arg1)->get_description();
42733 _swig_thread_allow.end();
42734 Xapian::SetPythonException();
42738 _swig_thread_allow.end();
42740 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
42745 static __attribute__ ((__unused__)) PyObject *_wrap_ESet_items_get(PyObject *, PyObject *args) {
42746 PyObject *resultobj = 0;
42747 Xapian::ESet *arg1 = (Xapian::ESet *) 0 ;
42750 PyObject *swig_obj[1] ;
42751 PyObject *result = 0 ;
42752 if (!args) goto fail;
42753 swig_obj[0] = args;
42754 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[16], 0 | 0, 0);
42755 if (!(res1 >= 0)) {
42756 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "ESet_items_get" "', argument " "1"" of type '" "Xapian::ESet *""'"); goto fail; } while(0);
42758 arg1 = reinterpret_cast< Xapian::ESet * >(argp1);
42759 result = (PyObject *)Xapian_ESet_items_get(arg1);
42760 resultobj = result;
42765 static __attribute__ ((__unused__)) PyObject *ESet_swigregister(PyObject *, PyObject *args) {
42767 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
42768 SWIG_TypeNewClientData(swig_types[16], SwigPyClientData_New(obj));
42769 return SWIG_Py_Void();
42771 static __attribute__ ((__unused__)) PyObject *ESet_swiginit(PyObject *, PyObject *args) {
42772 return SWIG_Python_InitShadowInstance(args);
42774 static __attribute__ ((__unused__)) PyObject *_wrap_new_ESetIterator__SWIG_0(PyObject *, int nobjs, PyObject **) {
42775 PyObject *resultobj = 0;
42776 Xapian::ESetIterator *result = 0 ;
42777 if ((nobjs < 0) || (nobjs > 0)) goto fail;
42779 SWIG_Python_Thread_Allow _swig_thread_allow;
42782 result = (Xapian::ESetIterator *)new Xapian::ESetIterator();
42784 _swig_thread_allow.end();
42785 Xapian::SetPythonException();
42789 _swig_thread_allow.end();
42791 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[17], ((0x1 << 1) | 0x1) | 0);
42796 static __attribute__ ((__unused__)) PyObject *_wrap_new_ESetIterator__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
42797 PyObject *resultobj = 0;
42798 Xapian::ESetIterator *arg1 = 0 ;
42801 Xapian::ESetIterator *result = 0 ;
42802 if ((nobjs < 1) || (nobjs > 1)) goto fail;
42803 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[17], 0 | 0, 0);
42804 if (!(res1 >= 0)) {
42805 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_ESetIterator" "', argument " "1"" of type '" "Xapian::ESetIterator const &""'"); goto fail; } while(0);
42808 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_ESetIterator" "', argument " "1"" of type '" "Xapian::ESetIterator const &""'"); goto fail; } while(0);
42810 arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
42812 SWIG_Python_Thread_Allow _swig_thread_allow;
42815 result = (Xapian::ESetIterator *)new Xapian::ESetIterator((Xapian::ESetIterator const &)*arg1);
42817 _swig_thread_allow.end();
42818 Xapian::SetPythonException();
42822 _swig_thread_allow.end();
42824 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[17], ((0x1 << 1) | 0x1) | 0);
42829 static __attribute__ ((__unused__)) PyObject *_wrap_new_ESetIterator(PyObject *self, PyObject *args) {
42832 if (!(argc = SWIG_Python_UnpackTuple(args,"new_ESetIterator",0,1,argv))) goto fail;
42835 return _wrap_new_ESetIterator__SWIG_0(self, argc, argv);
42838 return _wrap_new_ESetIterator__SWIG_1(self, argc, argv);
42841 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_ESetIterator'.\n"
42842 " Possible C/C++ prototypes are:\n"
42843 " Xapian::ESetIterator()\n"
42844 " Xapian::ESetIterator(Xapian::ESetIterator const &)\n");
42847 static __attribute__ ((__unused__)) PyObject *_wrap_delete_ESetIterator(PyObject *, PyObject *args) {
42848 PyObject *resultobj = 0;
42849 Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
42852 PyObject *swig_obj[1] ;
42853 if (!args) goto fail;
42854 swig_obj[0] = args;
42855 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[17], 0x1 | 0, 0);
42856 if (!(res1 >= 0)) {
42857 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_ESetIterator" "', argument " "1"" of type '" "Xapian::ESetIterator *""'"); goto fail; } while(0);
42859 arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
42861 SWIG_Python_Thread_Allow _swig_thread_allow;
42866 _swig_thread_allow.end();
42867 Xapian::SetPythonException();
42871 _swig_thread_allow.end();
42873 resultobj = SWIG_Py_Void();
42878 static __attribute__ ((__unused__)) PyObject *_wrap_ESetIterator_get_term(PyObject *, PyObject *args) {
42879 PyObject *resultobj = 0;
42880 Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
42883 PyObject *swig_obj[1] ;
42884 std::string result;
42885 if (!args) goto fail;
42886 swig_obj[0] = args;
42887 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[17], 0 | 0, 0);
42888 if (!(res1 >= 0)) {
42889 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "ESetIterator_get_term" "', argument " "1"" of type '" "Xapian::ESetIterator const *""'"); goto fail; } while(0);
42891 arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
42893 SWIG_Python_Thread_Allow _swig_thread_allow;
42896 result = Xapian_ESetIterator_get_term((Xapian::ESetIterator const *)arg1);
42898 _swig_thread_allow.end();
42899 Xapian::SetPythonException();
42903 _swig_thread_allow.end();
42905 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
42910 static __attribute__ ((__unused__)) PyObject *_wrap_ESetIterator_next(PyObject *, PyObject *args) {
42911 PyObject *resultobj = 0;
42912 Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
42915 PyObject *swig_obj[1] ;
42916 if (!args) goto fail;
42917 swig_obj[0] = args;
42918 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[17], 0 | 0, 0);
42919 if (!(res1 >= 0)) {
42920 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "ESetIterator_next" "', argument " "1"" of type '" "Xapian::ESetIterator *""'"); goto fail; } while(0);
42922 arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
42924 SWIG_Python_Thread_Allow _swig_thread_allow;
42927 Xapian_ESetIterator_next(arg1);
42929 _swig_thread_allow.end();
42930 Xapian::SetPythonException();
42934 _swig_thread_allow.end();
42936 resultobj = SWIG_Py_Void();
42941 static __attribute__ ((__unused__)) PyObject *_wrap_ESetIterator_prev(PyObject *, PyObject *args) {
42942 PyObject *resultobj = 0;
42943 Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
42946 PyObject *swig_obj[1] ;
42947 if (!args) goto fail;
42948 swig_obj[0] = args;
42949 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[17], 0 | 0, 0);
42950 if (!(res1 >= 0)) {
42951 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "ESetIterator_prev" "', argument " "1"" of type '" "Xapian::ESetIterator *""'"); goto fail; } while(0);
42953 arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
42955 SWIG_Python_Thread_Allow _swig_thread_allow;
42958 Xapian_ESetIterator_prev(arg1);
42960 _swig_thread_allow.end();
42961 Xapian::SetPythonException();
42965 _swig_thread_allow.end();
42967 resultobj = SWIG_Py_Void();
42972 static __attribute__ ((__unused__)) PyObject *_wrap_ESetIterator_equals(PyObject *, PyObject *args) {
42973 PyObject *resultobj = 0;
42974 Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
42975 Xapian::ESetIterator *arg2 = 0 ;
42980 PyObject *swig_obj[2] ;
42982 if (!SWIG_Python_UnpackTuple(args,"ESetIterator_equals",2,2,swig_obj)) goto fail;
42983 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[17], 0 | 0, 0);
42984 if (!(res1 >= 0)) {
42985 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "ESetIterator_equals" "', argument " "1"" of type '" "Xapian::ESetIterator const *""'"); goto fail; } while(0);
42987 arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
42988 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[17], 0 | 0, 0);
42989 if (!(res2 >= 0)) {
42990 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "ESetIterator_equals" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'"); goto fail; } while(0);
42993 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "ESetIterator_equals" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'"); goto fail; } while(0);
42995 arg2 = reinterpret_cast< Xapian::ESetIterator * >(argp2);
42997 SWIG_Python_Thread_Allow _swig_thread_allow;
43000 result = (bool)Xapian_ESetIterator_equals((Xapian::ESetIterator const *)arg1,(Xapian::ESetIterator const &)*arg2);
43002 _swig_thread_allow.end();
43003 Xapian::SetPythonException();
43007 _swig_thread_allow.end();
43009 resultobj = SWIG_From_bool(static_cast< bool >(result));
43014 static __attribute__ ((__unused__)) PyObject *_wrap_ESetIterator_get_weight(PyObject *, PyObject *args) {
43015 PyObject *resultobj = 0;
43016 Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
43019 PyObject *swig_obj[1] ;
43020 Xapian::weight result;
43021 if (!args) goto fail;
43022 swig_obj[0] = args;
43023 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[17], 0 | 0, 0);
43024 if (!(res1 >= 0)) {
43025 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "ESetIterator_get_weight" "', argument " "1"" of type '" "Xapian::ESetIterator const *""'"); goto fail; } while(0);
43027 arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
43029 SWIG_Python_Thread_Allow _swig_thread_allow;
43032 result = (Xapian::weight)((Xapian::ESetIterator const *)arg1)->get_weight();
43034 _swig_thread_allow.end();
43035 Xapian::SetPythonException();
43039 _swig_thread_allow.end();
43041 resultobj = PyFloat_FromDouble(static_cast< double >(result));
43046 static __attribute__ ((__unused__)) PyObject *_wrap_ESetIterator___str__(PyObject *, PyObject *args) {
43047 PyObject *resultobj = 0;
43048 Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
43051 PyObject *swig_obj[1] ;
43052 std::string result;
43053 if (!args) goto fail;
43054 swig_obj[0] = args;
43055 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[17], 0 | 0, 0);
43056 if (!(res1 >= 0)) {
43057 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "ESetIterator___str__" "', argument " "1"" of type '" "Xapian::ESetIterator const *""'"); goto fail; } while(0);
43059 arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
43061 SWIG_Python_Thread_Allow _swig_thread_allow;
43064 result = ((Xapian::ESetIterator const *)arg1)->get_description();
43066 _swig_thread_allow.end();
43067 Xapian::SetPythonException();
43071 _swig_thread_allow.end();
43073 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
43078 static __attribute__ ((__unused__)) PyObject *_wrap_ESetIterator___eq__(PyObject *, PyObject *args) {
43079 PyObject *resultobj = 0;
43080 Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
43081 Xapian::ESetIterator *arg2 = 0 ;
43086 PyObject *swig_obj[2] ;
43088 if (!SWIG_Python_UnpackTuple(args,"ESetIterator___eq__",2,2,swig_obj)) goto fail;
43089 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[17], 0 | 0, 0);
43090 if (!(res1 >= 0)) {
43091 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "ESetIterator___eq__" "', argument " "1"" of type '" "Xapian::ESetIterator *""'"); goto fail; } while(0);
43093 arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
43094 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[17], 0 | 0, 0);
43095 if (!(res2 >= 0)) {
43096 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "ESetIterator___eq__" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'"); goto fail; } while(0);
43099 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "ESetIterator___eq__" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'"); goto fail; } while(0);
43101 arg2 = reinterpret_cast< Xapian::ESetIterator * >(argp2);
43103 SWIG_Python_Thread_Allow _swig_thread_allow;
43104 result = (bool)Xapian_ESetIterator___eq__(arg1,(Xapian::ESetIterator const &)*arg2);
43105 _swig_thread_allow.end();
43107 resultobj = SWIG_From_bool(static_cast< bool >(result));
43112 static __attribute__ ((__unused__)) PyObject *_wrap_ESetIterator___ne__(PyObject *, PyObject *args) {
43113 PyObject *resultobj = 0;
43114 Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
43115 Xapian::ESetIterator *arg2 = 0 ;
43120 PyObject *swig_obj[2] ;
43122 if (!SWIG_Python_UnpackTuple(args,"ESetIterator___ne__",2,2,swig_obj)) goto fail;
43123 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[17], 0 | 0, 0);
43124 if (!(res1 >= 0)) {
43125 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "ESetIterator___ne__" "', argument " "1"" of type '" "Xapian::ESetIterator *""'"); goto fail; } while(0);
43127 arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
43128 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[17], 0 | 0, 0);
43129 if (!(res2 >= 0)) {
43130 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "ESetIterator___ne__" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'"); goto fail; } while(0);
43133 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "ESetIterator___ne__" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'"); goto fail; } while(0);
43135 arg2 = reinterpret_cast< Xapian::ESetIterator * >(argp2);
43137 SWIG_Python_Thread_Allow _swig_thread_allow;
43138 result = (bool)Xapian_ESetIterator___ne__(arg1,(Xapian::ESetIterator const &)*arg2);
43139 _swig_thread_allow.end();
43141 resultobj = SWIG_From_bool(static_cast< bool >(result));
43146 static __attribute__ ((__unused__)) PyObject *ESetIterator_swigregister(PyObject *, PyObject *args) {
43148 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
43149 SWIG_TypeNewClientData(swig_types[17], SwigPyClientData_New(obj));
43150 return SWIG_Py_Void();
43152 static __attribute__ ((__unused__)) PyObject *ESetIterator_swiginit(PyObject *, PyObject *args) {
43153 return SWIG_Python_InitShadowInstance(args);
43155 static __attribute__ ((__unused__)) PyObject *_wrap_new_RSet__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
43156 PyObject *resultobj = 0;
43157 Xapian::RSet *arg1 = 0 ;
43160 Xapian::RSet *result = 0 ;
43161 if ((nobjs < 1) || (nobjs > 1)) goto fail;
43162 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[43], 0 | 0, 0);
43163 if (!(res1 >= 0)) {
43164 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_RSet" "', argument " "1"" of type '" "Xapian::RSet const &""'"); goto fail; } while(0);
43167 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_RSet" "', argument " "1"" of type '" "Xapian::RSet const &""'"); goto fail; } while(0);
43169 arg1 = reinterpret_cast< Xapian::RSet * >(argp1);
43171 SWIG_Python_Thread_Allow _swig_thread_allow;
43174 result = (Xapian::RSet *)new Xapian::RSet((Xapian::RSet const &)*arg1);
43176 _swig_thread_allow.end();
43177 Xapian::SetPythonException();
43181 _swig_thread_allow.end();
43183 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[43], ((0x1 << 1) | 0x1) | 0);
43188 static __attribute__ ((__unused__)) PyObject *_wrap_new_RSet__SWIG_1(PyObject *, int nobjs, PyObject **) {
43189 PyObject *resultobj = 0;
43190 Xapian::RSet *result = 0 ;
43191 if ((nobjs < 0) || (nobjs > 0)) goto fail;
43193 SWIG_Python_Thread_Allow _swig_thread_allow;
43196 result = (Xapian::RSet *)new Xapian::RSet();
43198 _swig_thread_allow.end();
43199 Xapian::SetPythonException();
43203 _swig_thread_allow.end();
43205 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[43], ((0x1 << 1) | 0x1) | 0);
43210 static __attribute__ ((__unused__)) PyObject *_wrap_new_RSet(PyObject *self, PyObject *args) {
43213 if (!(argc = SWIG_Python_UnpackTuple(args,"new_RSet",0,1,argv))) goto fail;
43216 return _wrap_new_RSet__SWIG_1(self, argc, argv);
43219 return _wrap_new_RSet__SWIG_0(self, argc, argv);
43222 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_RSet'.\n"
43223 " Possible C/C++ prototypes are:\n"
43224 " Xapian::RSet(Xapian::RSet const &)\n"
43225 " Xapian::RSet()\n");
43228 static __attribute__ ((__unused__)) PyObject *_wrap_delete_RSet(PyObject *, PyObject *args) {
43229 PyObject *resultobj = 0;
43230 Xapian::RSet *arg1 = (Xapian::RSet *) 0 ;
43233 PyObject *swig_obj[1] ;
43234 if (!args) goto fail;
43235 swig_obj[0] = args;
43236 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[43], 0x1 | 0, 0);
43237 if (!(res1 >= 0)) {
43238 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_RSet" "', argument " "1"" of type '" "Xapian::RSet *""'"); goto fail; } while(0);
43240 arg1 = reinterpret_cast< Xapian::RSet * >(argp1);
43242 SWIG_Python_Thread_Allow _swig_thread_allow;
43247 _swig_thread_allow.end();
43248 Xapian::SetPythonException();
43252 _swig_thread_allow.end();
43254 resultobj = SWIG_Py_Void();
43259 static __attribute__ ((__unused__)) PyObject *_wrap_RSet_size(PyObject *, PyObject *args) {
43260 PyObject *resultobj = 0;
43261 Xapian::RSet *arg1 = (Xapian::RSet *) 0 ;
43264 PyObject *swig_obj[1] ;
43265 Xapian::doccount result;
43266 if (!args) goto fail;
43267 swig_obj[0] = args;
43268 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[43], 0 | 0, 0);
43269 if (!(res1 >= 0)) {
43270 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "RSet_size" "', argument " "1"" of type '" "Xapian::RSet const *""'"); goto fail; } while(0);
43272 arg1 = reinterpret_cast< Xapian::RSet * >(argp1);
43274 SWIG_Python_Thread_Allow _swig_thread_allow;
43277 result = (Xapian::doccount)((Xapian::RSet const *)arg1)->size();
43279 _swig_thread_allow.end();
43280 Xapian::SetPythonException();
43284 _swig_thread_allow.end();
43286 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
43291 static __attribute__ ((__unused__)) PyObject *_wrap_RSet_empty(PyObject *, PyObject *args) {
43292 PyObject *resultobj = 0;
43293 Xapian::RSet *arg1 = (Xapian::RSet *) 0 ;
43296 PyObject *swig_obj[1] ;
43298 if (!args) goto fail;
43299 swig_obj[0] = args;
43300 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[43], 0 | 0, 0);
43301 if (!(res1 >= 0)) {
43302 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "RSet_empty" "', argument " "1"" of type '" "Xapian::RSet const *""'"); goto fail; } while(0);
43304 arg1 = reinterpret_cast< Xapian::RSet * >(argp1);
43306 SWIG_Python_Thread_Allow _swig_thread_allow;
43309 result = (bool)((Xapian::RSet const *)arg1)->empty();
43311 _swig_thread_allow.end();
43312 Xapian::SetPythonException();
43316 _swig_thread_allow.end();
43318 resultobj = SWIG_From_bool(static_cast< bool >(result));
43323 static __attribute__ ((__unused__)) PyObject *_wrap_RSet_add_document__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
43324 PyObject *resultobj = 0;
43325 Xapian::RSet *arg1 = (Xapian::RSet *) 0 ;
43326 Xapian::docid arg2 ;
43329 unsigned int val2 ;
43331 if ((nobjs < 2) || (nobjs > 2)) goto fail;
43332 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[43], 0 | 0, 0);
43333 if (!(res1 >= 0)) {
43334 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "RSet_add_document" "', argument " "1"" of type '" "Xapian::RSet *""'"); goto fail; } while(0);
43336 arg1 = reinterpret_cast< Xapian::RSet * >(argp1);
43337 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
43338 if (!(ecode2 >= 0)) {
43339 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "RSet_add_document" "', argument " "2"" of type '" "Xapian::docid""'"); goto fail; } while(0);
43341 arg2 = static_cast< Xapian::docid >(val2);
43343 SWIG_Python_Thread_Allow _swig_thread_allow;
43346 (arg1)->add_document(arg2);
43348 _swig_thread_allow.end();
43349 Xapian::SetPythonException();
43353 _swig_thread_allow.end();
43355 resultobj = SWIG_Py_Void();
43360 static __attribute__ ((__unused__)) PyObject *_wrap_RSet_add_document__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
43361 PyObject *resultobj = 0;
43362 Xapian::RSet *arg1 = (Xapian::RSet *) 0 ;
43363 Xapian::MSetIterator *arg2 = 0 ;
43368 if ((nobjs < 2) || (nobjs > 2)) goto fail;
43369 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[43], 0 | 0, 0);
43370 if (!(res1 >= 0)) {
43371 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "RSet_add_document" "', argument " "1"" of type '" "Xapian::RSet *""'"); goto fail; } while(0);
43373 arg1 = reinterpret_cast< Xapian::RSet * >(argp1);
43374 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[29], 0, 0);
43375 if (!(res2 >= 0)) {
43376 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "RSet_add_document" "', argument " "2"" of type '" "Xapian::MSetIterator &""'"); goto fail; } while(0);
43379 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "RSet_add_document" "', argument " "2"" of type '" "Xapian::MSetIterator &""'"); goto fail; } while(0);
43381 arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
43383 SWIG_Python_Thread_Allow _swig_thread_allow;
43386 (arg1)->add_document(*arg2);
43388 _swig_thread_allow.end();
43389 Xapian::SetPythonException();
43393 _swig_thread_allow.end();
43395 resultobj = SWIG_Py_Void();
43400 static __attribute__ ((__unused__)) PyObject *_wrap_RSet_add_document(PyObject *self, PyObject *args) {
43403 if (!(argc = SWIG_Python_UnpackTuple(args,"RSet_add_document",0,2,argv))) goto fail;
43409 int res = SWIG_Python_ConvertPtrAndOwn(argv[1], &vptr, swig_types[29], 0, 0);
43410 _v = ((res >= 0) ? 1 : 0);
43412 if (!_v) goto check_1;
43413 return _wrap_RSet_add_document__SWIG_1(self, argc, argv);
43417 return _wrap_RSet_add_document__SWIG_0(self, argc, argv);
43420 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'RSet_add_document'.\n"
43421 " Possible C/C++ prototypes are:\n"
43422 " add_document(Xapian::RSet *,Xapian::docid)\n"
43423 " add_document(Xapian::RSet *,Xapian::MSetIterator &)\n");
43426 static __attribute__ ((__unused__)) PyObject *_wrap_RSet_remove_document__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
43427 PyObject *resultobj = 0;
43428 Xapian::RSet *arg1 = (Xapian::RSet *) 0 ;
43429 Xapian::docid arg2 ;
43432 unsigned int val2 ;
43434 if ((nobjs < 2) || (nobjs > 2)) goto fail;
43435 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[43], 0 | 0, 0);
43436 if (!(res1 >= 0)) {
43437 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "RSet_remove_document" "', argument " "1"" of type '" "Xapian::RSet *""'"); goto fail; } while(0);
43439 arg1 = reinterpret_cast< Xapian::RSet * >(argp1);
43440 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
43441 if (!(ecode2 >= 0)) {
43442 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "RSet_remove_document" "', argument " "2"" of type '" "Xapian::docid""'"); goto fail; } while(0);
43444 arg2 = static_cast< Xapian::docid >(val2);
43446 SWIG_Python_Thread_Allow _swig_thread_allow;
43449 (arg1)->remove_document(arg2);
43451 _swig_thread_allow.end();
43452 Xapian::SetPythonException();
43456 _swig_thread_allow.end();
43458 resultobj = SWIG_Py_Void();
43463 static __attribute__ ((__unused__)) PyObject *_wrap_RSet_remove_document__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
43464 PyObject *resultobj = 0;
43465 Xapian::RSet *arg1 = (Xapian::RSet *) 0 ;
43466 Xapian::MSetIterator *arg2 = 0 ;
43471 if ((nobjs < 2) || (nobjs > 2)) goto fail;
43472 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[43], 0 | 0, 0);
43473 if (!(res1 >= 0)) {
43474 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "RSet_remove_document" "', argument " "1"" of type '" "Xapian::RSet *""'"); goto fail; } while(0);
43476 arg1 = reinterpret_cast< Xapian::RSet * >(argp1);
43477 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[29], 0, 0);
43478 if (!(res2 >= 0)) {
43479 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "RSet_remove_document" "', argument " "2"" of type '" "Xapian::MSetIterator &""'"); goto fail; } while(0);
43482 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "RSet_remove_document" "', argument " "2"" of type '" "Xapian::MSetIterator &""'"); goto fail; } while(0);
43484 arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
43486 SWIG_Python_Thread_Allow _swig_thread_allow;
43489 (arg1)->remove_document(*arg2);
43491 _swig_thread_allow.end();
43492 Xapian::SetPythonException();
43496 _swig_thread_allow.end();
43498 resultobj = SWIG_Py_Void();
43503 static __attribute__ ((__unused__)) PyObject *_wrap_RSet_remove_document(PyObject *self, PyObject *args) {
43506 if (!(argc = SWIG_Python_UnpackTuple(args,"RSet_remove_document",0,2,argv))) goto fail;
43512 int res = SWIG_Python_ConvertPtrAndOwn(argv[1], &vptr, swig_types[29], 0, 0);
43513 _v = ((res >= 0) ? 1 : 0);
43515 if (!_v) goto check_1;
43516 return _wrap_RSet_remove_document__SWIG_1(self, argc, argv);
43520 return _wrap_RSet_remove_document__SWIG_0(self, argc, argv);
43523 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'RSet_remove_document'.\n"
43524 " Possible C/C++ prototypes are:\n"
43525 " remove_document(Xapian::RSet *,Xapian::docid)\n"
43526 " remove_document(Xapian::RSet *,Xapian::MSetIterator &)\n");
43529 static __attribute__ ((__unused__)) PyObject *_wrap_RSet_contains__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
43530 PyObject *resultobj = 0;
43531 Xapian::RSet *arg1 = (Xapian::RSet *) 0 ;
43532 Xapian::docid arg2 ;
43535 unsigned int val2 ;
43538 if ((nobjs < 2) || (nobjs > 2)) goto fail;
43539 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[43], 0 | 0, 0);
43540 if (!(res1 >= 0)) {
43541 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "RSet_contains" "', argument " "1"" of type '" "Xapian::RSet *""'"); goto fail; } while(0);
43543 arg1 = reinterpret_cast< Xapian::RSet * >(argp1);
43544 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
43545 if (!(ecode2 >= 0)) {
43546 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "RSet_contains" "', argument " "2"" of type '" "Xapian::docid""'"); goto fail; } while(0);
43548 arg2 = static_cast< Xapian::docid >(val2);
43550 SWIG_Python_Thread_Allow _swig_thread_allow;
43553 result = (bool)(arg1)->contains(arg2);
43555 _swig_thread_allow.end();
43556 Xapian::SetPythonException();
43560 _swig_thread_allow.end();
43562 resultobj = SWIG_From_bool(static_cast< bool >(result));
43567 static __attribute__ ((__unused__)) PyObject *_wrap_RSet_contains__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
43568 PyObject *resultobj = 0;
43569 Xapian::RSet *arg1 = (Xapian::RSet *) 0 ;
43570 Xapian::MSetIterator *arg2 = 0 ;
43576 if ((nobjs < 2) || (nobjs > 2)) goto fail;
43577 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[43], 0 | 0, 0);
43578 if (!(res1 >= 0)) {
43579 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "RSet_contains" "', argument " "1"" of type '" "Xapian::RSet *""'"); goto fail; } while(0);
43581 arg1 = reinterpret_cast< Xapian::RSet * >(argp1);
43582 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[29], 0, 0);
43583 if (!(res2 >= 0)) {
43584 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "RSet_contains" "', argument " "2"" of type '" "Xapian::MSetIterator &""'"); goto fail; } while(0);
43587 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "RSet_contains" "', argument " "2"" of type '" "Xapian::MSetIterator &""'"); goto fail; } while(0);
43589 arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
43591 SWIG_Python_Thread_Allow _swig_thread_allow;
43594 result = (bool)(arg1)->contains(*arg2);
43596 _swig_thread_allow.end();
43597 Xapian::SetPythonException();
43601 _swig_thread_allow.end();
43603 resultobj = SWIG_From_bool(static_cast< bool >(result));
43608 static __attribute__ ((__unused__)) PyObject *_wrap_RSet_contains(PyObject *self, PyObject *args) {
43611 if (!(argc = SWIG_Python_UnpackTuple(args,"RSet_contains",0,2,argv))) goto fail;
43617 int res = SWIG_Python_ConvertPtrAndOwn(argv[1], &vptr, swig_types[29], 0, 0);
43618 _v = ((res >= 0) ? 1 : 0);
43620 if (!_v) goto check_1;
43621 return _wrap_RSet_contains__SWIG_1(self, argc, argv);
43625 return _wrap_RSet_contains__SWIG_0(self, argc, argv);
43628 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'RSet_contains'.\n"
43629 " Possible C/C++ prototypes are:\n"
43630 " contains(Xapian::RSet *,Xapian::docid)\n"
43631 " contains(Xapian::RSet *,Xapian::MSetIterator &)\n");
43634 static __attribute__ ((__unused__)) PyObject *_wrap_RSet___str__(PyObject *, PyObject *args) {
43635 PyObject *resultobj = 0;
43636 Xapian::RSet *arg1 = (Xapian::RSet *) 0 ;
43639 PyObject *swig_obj[1] ;
43640 std::string result;
43641 if (!args) goto fail;
43642 swig_obj[0] = args;
43643 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[43], 0 | 0, 0);
43644 if (!(res1 >= 0)) {
43645 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "RSet___str__" "', argument " "1"" of type '" "Xapian::RSet const *""'"); goto fail; } while(0);
43647 arg1 = reinterpret_cast< Xapian::RSet * >(argp1);
43649 SWIG_Python_Thread_Allow _swig_thread_allow;
43652 result = ((Xapian::RSet const *)arg1)->get_description();
43654 _swig_thread_allow.end();
43655 Xapian::SetPythonException();
43659 _swig_thread_allow.end();
43661 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
43666 static __attribute__ ((__unused__)) PyObject *RSet_swigregister(PyObject *, PyObject *args) {
43668 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
43669 SWIG_TypeNewClientData(swig_types[43], SwigPyClientData_New(obj));
43670 return SWIG_Py_Void();
43672 static __attribute__ ((__unused__)) PyObject *RSet_swiginit(PyObject *, PyObject *args) {
43673 return SWIG_Python_InitShadowInstance(args);
43675 static __attribute__ ((__unused__)) PyObject *_wrap_MatchDecider___call__(PyObject *, PyObject *args) {
43676 PyObject *resultobj = 0;
43677 Xapian::MatchDecider *arg1 = (Xapian::MatchDecider *) 0 ;
43678 Xapian::Document *arg2 = 0 ;
43683 PyObject *swig_obj[2] ;
43684 Swig::Director *director = 0;
43685 bool upcall = false;
43687 if (!SWIG_Python_UnpackTuple(args,"MatchDecider___call__",2,2,swig_obj)) goto fail;
43688 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[30], 0 | 0, 0);
43689 if (!(res1 >= 0)) {
43690 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MatchDecider___call__" "', argument " "1"" of type '" "Xapian::MatchDecider const *""'"); goto fail; } while(0);
43692 arg1 = reinterpret_cast< Xapian::MatchDecider * >(argp1);
43693 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[15], 0 | 0, 0);
43694 if (!(res2 >= 0)) {
43695 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "MatchDecider___call__" "', argument " "2"" of type '" "Xapian::Document const &""'"); goto fail; } while(0);
43698 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "MatchDecider___call__" "', argument " "2"" of type '" "Xapian::Document const &""'"); goto fail; } while(0);
43700 arg2 = reinterpret_cast< Xapian::Document * >(argp2);
43701 director = dynamic_cast<Swig::Director*>(arg1);
43702 upcall = (director && (director->swig_get_self()==swig_obj[0]));
43707 Swig::DirectorPureVirtualException::raise("Xapian::MatchDecider::operator ()");
43709 result = (bool)((Xapian::MatchDecider const *)arg1)->operator ()((Xapian::Document const &)*arg2);
43712 Xapian::SetPythonException();
43716 } catch (Swig::DirectorException&) {
43719 resultobj = SWIG_From_bool(static_cast< bool >(result));
43724 static __attribute__ ((__unused__)) PyObject *_wrap_delete_MatchDecider(PyObject *, PyObject *args) {
43725 PyObject *resultobj = 0;
43726 Xapian::MatchDecider *arg1 = (Xapian::MatchDecider *) 0 ;
43729 PyObject *swig_obj[1] ;
43730 if (!args) goto fail;
43731 swig_obj[0] = args;
43732 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[30], 0x1 | 0, 0);
43733 if (!(res1 >= 0)) {
43734 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_MatchDecider" "', argument " "1"" of type '" "Xapian::MatchDecider *""'"); goto fail; } while(0);
43736 arg1 = reinterpret_cast< Xapian::MatchDecider * >(argp1);
43738 SWIG_Python_Thread_Allow _swig_thread_allow;
43743 _swig_thread_allow.end();
43744 Xapian::SetPythonException();
43748 _swig_thread_allow.end();
43750 resultobj = SWIG_Py_Void();
43755 static __attribute__ ((__unused__)) PyObject *_wrap_new_MatchDecider(PyObject *, PyObject *args) {
43756 PyObject *resultobj = 0;
43757 PyObject *arg1 = (PyObject *) 0 ;
43758 PyObject *swig_obj[1] ;
43759 Xapian::MatchDecider *result = 0 ;
43760 if (!args) goto fail;
43761 swig_obj[0] = args;
43762 arg1 = swig_obj[0];
43764 SWIG_Python_Thread_Allow _swig_thread_allow;
43767 if ( arg1 != (&_Py_NoneStruct) ) {
43768 result = (Xapian::MatchDecider *)new SwigDirector_MatchDecider(arg1);
43770 SWIG_Python_SetErrorMsg(PyExc_RuntimeError,"accessing abstract class or protected constructor");
43774 _swig_thread_allow.end();
43775 Xapian::SetPythonException();
43779 _swig_thread_allow.end();
43781 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[30], ((0x1 << 1) | 0x1) | 0);
43786 static __attribute__ ((__unused__)) PyObject *_wrap_disown_MatchDecider(PyObject *, PyObject *args) {
43787 PyObject *resultobj = 0;
43788 Xapian::MatchDecider *arg1 = (Xapian::MatchDecider *) 0 ;
43791 PyObject *swig_obj[1] ;
43792 if (!args) goto fail;
43793 swig_obj[0] = args;
43794 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[30], 0 | 0, 0);
43795 if (!(res1 >= 0)) {
43796 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "disown_MatchDecider" "', argument " "1"" of type '" "Xapian::MatchDecider *""'"); goto fail; } while(0);
43798 arg1 = reinterpret_cast< Xapian::MatchDecider * >(argp1);
43800 SWIG_Python_Thread_Allow _swig_thread_allow;
43802 Swig::Director *director = dynamic_cast<Swig::Director *>(arg1);
43803 if (director) director->swig_disown();
43805 _swig_thread_allow.end();
43807 resultobj = SWIG_Py_Void();
43812 static __attribute__ ((__unused__)) PyObject *MatchDecider_swigregister(PyObject *, PyObject *args) {
43814 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
43815 SWIG_TypeNewClientData(swig_types[30], SwigPyClientData_New(obj));
43816 return SWIG_Py_Void();
43818 static __attribute__ ((__unused__)) PyObject *MatchDecider_swiginit(PyObject *, PyObject *args) {
43819 return SWIG_Python_InitShadowInstance(args);
43821 static __attribute__ ((__unused__)) PyObject *_wrap_ExpandDecider___call__(PyObject *, PyObject *args) {
43822 PyObject *resultobj = 0;
43823 Xapian::ExpandDecider *arg1 = (Xapian::ExpandDecider *) 0 ;
43824 std::string *arg2 = 0 ;
43828 PyObject *swig_obj[2] ;
43829 Swig::Director *director = 0;
43830 bool upcall = false;
43832 if (!SWIG_Python_UnpackTuple(args,"ExpandDecider___call__",2,2,swig_obj)) goto fail;
43833 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[20], 0 | 0, 0);
43834 if (!(res1 >= 0)) {
43835 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "ExpandDecider___call__" "', argument " "1"" of type '" "Xapian::ExpandDecider const *""'"); goto fail; } while(0);
43837 arg1 = reinterpret_cast< Xapian::ExpandDecider * >(argp1);
43839 std::string *ptr = (std::string *)0;
43840 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
43841 if (!(res2 >= 0)) {
43842 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "ExpandDecider___call__" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
43845 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "ExpandDecider___call__" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
43849 director = dynamic_cast<Swig::Director*>(arg1);
43850 upcall = (director && (director->swig_get_self()==swig_obj[0]));
43855 Swig::DirectorPureVirtualException::raise("Xapian::ExpandDecider::operator ()");
43857 result = (bool)((Xapian::ExpandDecider const *)arg1)->operator ()((std::string const &)*arg2);
43860 Xapian::SetPythonException();
43864 } catch (Swig::DirectorException&) {
43867 resultobj = SWIG_From_bool(static_cast< bool >(result));
43868 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
43871 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
43874 static __attribute__ ((__unused__)) PyObject *_wrap_delete_ExpandDecider(PyObject *, PyObject *args) {
43875 PyObject *resultobj = 0;
43876 Xapian::ExpandDecider *arg1 = (Xapian::ExpandDecider *) 0 ;
43879 PyObject *swig_obj[1] ;
43880 if (!args) goto fail;
43881 swig_obj[0] = args;
43882 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[20], 0x1 | 0, 0);
43883 if (!(res1 >= 0)) {
43884 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_ExpandDecider" "', argument " "1"" of type '" "Xapian::ExpandDecider *""'"); goto fail; } while(0);
43886 arg1 = reinterpret_cast< Xapian::ExpandDecider * >(argp1);
43888 SWIG_Python_Thread_Allow _swig_thread_allow;
43893 _swig_thread_allow.end();
43894 Xapian::SetPythonException();
43898 _swig_thread_allow.end();
43900 resultobj = SWIG_Py_Void();
43905 static __attribute__ ((__unused__)) PyObject *_wrap_new_ExpandDecider(PyObject *, PyObject *args) {
43906 PyObject *resultobj = 0;
43907 PyObject *arg1 = (PyObject *) 0 ;
43908 PyObject *swig_obj[1] ;
43909 Xapian::ExpandDecider *result = 0 ;
43910 if (!args) goto fail;
43911 swig_obj[0] = args;
43912 arg1 = swig_obj[0];
43914 SWIG_Python_Thread_Allow _swig_thread_allow;
43917 if ( arg1 != (&_Py_NoneStruct) ) {
43918 result = (Xapian::ExpandDecider *)new SwigDirector_ExpandDecider(arg1);
43920 SWIG_Python_SetErrorMsg(PyExc_RuntimeError,"accessing abstract class or protected constructor");
43924 _swig_thread_allow.end();
43925 Xapian::SetPythonException();
43929 _swig_thread_allow.end();
43931 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[20], ((0x1 << 1) | 0x1) | 0);
43936 static __attribute__ ((__unused__)) PyObject *_wrap_disown_ExpandDecider(PyObject *, PyObject *args) {
43937 PyObject *resultobj = 0;
43938 Xapian::ExpandDecider *arg1 = (Xapian::ExpandDecider *) 0 ;
43941 PyObject *swig_obj[1] ;
43942 if (!args) goto fail;
43943 swig_obj[0] = args;
43944 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[20], 0 | 0, 0);
43945 if (!(res1 >= 0)) {
43946 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "disown_ExpandDecider" "', argument " "1"" of type '" "Xapian::ExpandDecider *""'"); goto fail; } while(0);
43948 arg1 = reinterpret_cast< Xapian::ExpandDecider * >(argp1);
43950 SWIG_Python_Thread_Allow _swig_thread_allow;
43952 Swig::Director *director = dynamic_cast<Swig::Director *>(arg1);
43953 if (director) director->swig_disown();
43955 _swig_thread_allow.end();
43957 resultobj = SWIG_Py_Void();
43962 static __attribute__ ((__unused__)) PyObject *ExpandDecider_swigregister(PyObject *, PyObject *args) {
43964 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
43965 SWIG_TypeNewClientData(swig_types[20], SwigPyClientData_New(obj));
43966 return SWIG_Py_Void();
43968 static __attribute__ ((__unused__)) PyObject *ExpandDecider_swiginit(PyObject *, PyObject *args) {
43969 return SWIG_Python_InitShadowInstance(args);
43971 static __attribute__ ((__unused__)) PyObject *_wrap_new_Enquire(PyObject *, PyObject *args) {
43972 PyObject *resultobj = 0;
43973 Xapian::Database *arg1 = 0 ;
43976 PyObject *swig_obj[1] ;
43977 Xapian::Enquire *result = 0 ;
43978 if (!args) goto fail;
43979 swig_obj[0] = args;
43980 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
43981 if (!(res1 >= 0)) {
43982 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_Enquire" "', argument " "1"" of type '" "Xapian::Database const &""'"); goto fail; } while(0);
43985 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_Enquire" "', argument " "1"" of type '" "Xapian::Database const &""'"); goto fail; } while(0);
43987 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
43989 SWIG_Python_Thread_Allow _swig_thread_allow;
43992 result = (Xapian::Enquire *)new Xapian::Enquire((Xapian::Database const &)*arg1);
43994 _swig_thread_allow.end();
43995 Xapian::SetPythonException();
43999 _swig_thread_allow.end();
44001 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[18], ((0x1 << 1) | 0x1) | 0);
44006 static __attribute__ ((__unused__)) PyObject *_wrap_delete_Enquire(PyObject *, PyObject *args) {
44007 PyObject *resultobj = 0;
44008 Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
44011 PyObject *swig_obj[1] ;
44012 if (!args) goto fail;
44013 swig_obj[0] = args;
44014 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[18], 0x1 | 0, 0);
44015 if (!(res1 >= 0)) {
44016 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_Enquire" "', argument " "1"" of type '" "Xapian::Enquire *""'"); goto fail; } while(0);
44018 arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
44020 SWIG_Python_Thread_Allow _swig_thread_allow;
44025 _swig_thread_allow.end();
44026 Xapian::SetPythonException();
44030 _swig_thread_allow.end();
44032 resultobj = SWIG_Py_Void();
44037 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_set_query__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
44038 PyObject *resultobj = 0;
44039 Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
44040 Xapian::Query *arg2 = 0 ;
44041 Xapian::termcount arg3 ;
44046 unsigned int val3 ;
44048 if ((nobjs < 3) || (nobjs > 3)) goto fail;
44049 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[18], 0 | 0, 0);
44050 if (!(res1 >= 0)) {
44051 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Enquire_set_query" "', argument " "1"" of type '" "Xapian::Enquire *""'"); goto fail; } while(0);
44053 arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
44054 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[40], 0 | 0, 0);
44055 if (!(res2 >= 0)) {
44056 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Enquire_set_query" "', argument " "2"" of type '" "Xapian::Query const &""'"); goto fail; } while(0);
44059 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Enquire_set_query" "', argument " "2"" of type '" "Xapian::Query const &""'"); goto fail; } while(0);
44061 arg2 = reinterpret_cast< Xapian::Query * >(argp2);
44062 ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
44063 if (!(ecode3 >= 0)) {
44064 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "Enquire_set_query" "', argument " "3"" of type '" "Xapian::termcount""'"); goto fail; } while(0);
44066 arg3 = static_cast< Xapian::termcount >(val3);
44068 SWIG_Python_Thread_Allow _swig_thread_allow;
44071 (arg1)->set_query((Xapian::Query const &)*arg2,arg3);
44073 _swig_thread_allow.end();
44074 Xapian::SetPythonException();
44078 _swig_thread_allow.end();
44080 resultobj = SWIG_Py_Void();
44085 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_set_query__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
44086 PyObject *resultobj = 0;
44087 Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
44088 Xapian::Query *arg2 = 0 ;
44093 if ((nobjs < 2) || (nobjs > 2)) goto fail;
44094 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[18], 0 | 0, 0);
44095 if (!(res1 >= 0)) {
44096 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Enquire_set_query" "', argument " "1"" of type '" "Xapian::Enquire *""'"); goto fail; } while(0);
44098 arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
44099 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[40], 0 | 0, 0);
44100 if (!(res2 >= 0)) {
44101 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Enquire_set_query" "', argument " "2"" of type '" "Xapian::Query const &""'"); goto fail; } while(0);
44104 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Enquire_set_query" "', argument " "2"" of type '" "Xapian::Query const &""'"); goto fail; } while(0);
44106 arg2 = reinterpret_cast< Xapian::Query * >(argp2);
44108 SWIG_Python_Thread_Allow _swig_thread_allow;
44111 (arg1)->set_query((Xapian::Query const &)*arg2);
44113 _swig_thread_allow.end();
44114 Xapian::SetPythonException();
44118 _swig_thread_allow.end();
44120 resultobj = SWIG_Py_Void();
44125 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_set_query(PyObject *self, PyObject *args) {
44128 if (!(argc = SWIG_Python_UnpackTuple(args,"Enquire_set_query",0,3,argv))) goto fail;
44131 return _wrap_Enquire_set_query__SWIG_1(self, argc, argv);
44134 return _wrap_Enquire_set_query__SWIG_0(self, argc, argv);
44137 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'Enquire_set_query'.\n"
44138 " Possible C/C++ prototypes are:\n"
44139 " set_query(Xapian::Enquire *,Xapian::Query const &,Xapian::termcount)\n"
44140 " set_query(Xapian::Enquire *,Xapian::Query const &)\n");
44143 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_get_query(PyObject *, PyObject *args) {
44144 PyObject *resultobj = 0;
44145 Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
44148 PyObject *swig_obj[1] ;
44149 Xapian::Query *result = 0 ;
44150 if (!args) goto fail;
44151 swig_obj[0] = args;
44152 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[18], 0 | 0, 0);
44153 if (!(res1 >= 0)) {
44154 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Enquire_get_query" "', argument " "1"" of type '" "Xapian::Enquire *""'"); goto fail; } while(0);
44156 arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
44158 SWIG_Python_Thread_Allow _swig_thread_allow;
44161 result = (Xapian::Query *) &(arg1)->get_query();
44163 _swig_thread_allow.end();
44164 Xapian::SetPythonException();
44168 _swig_thread_allow.end();
44170 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[40], 0 | 0);
44175 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_add_matchspy(PyObject *, PyObject *args) {
44176 PyObject *resultobj = 0;
44177 Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
44178 Xapian::MatchSpy *arg2 = (Xapian::MatchSpy *) 0 ;
44183 PyObject *swig_obj[2] ;
44184 if (!SWIG_Python_UnpackTuple(args,"Enquire_add_matchspy",2,2,swig_obj)) goto fail;
44185 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[18], 0 | 0, 0);
44186 if (!(res1 >= 0)) {
44187 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Enquire_add_matchspy" "', argument " "1"" of type '" "Xapian::Enquire *""'"); goto fail; } while(0);
44189 arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
44190 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[31], 0 | 0, 0);
44191 if (!(res2 >= 0)) {
44192 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Enquire_add_matchspy" "', argument " "2"" of type '" "Xapian::MatchSpy *""'"); goto fail; } while(0);
44194 arg2 = reinterpret_cast< Xapian::MatchSpy * >(argp2);
44196 SWIG_Python_Thread_Allow _swig_thread_allow;
44199 (arg1)->add_matchspy(arg2);
44201 _swig_thread_allow.end();
44202 Xapian::SetPythonException();
44206 _swig_thread_allow.end();
44208 resultobj = SWIG_Py_Void();
44213 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_clear_matchspies(PyObject *, PyObject *args) {
44214 PyObject *resultobj = 0;
44215 Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
44218 PyObject *swig_obj[1] ;
44219 if (!args) goto fail;
44220 swig_obj[0] = args;
44221 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[18], 0 | 0, 0);
44222 if (!(res1 >= 0)) {
44223 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Enquire_clear_matchspies" "', argument " "1"" of type '" "Xapian::Enquire *""'"); goto fail; } while(0);
44225 arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
44227 SWIG_Python_Thread_Allow _swig_thread_allow;
44230 (arg1)->clear_matchspies();
44232 _swig_thread_allow.end();
44233 Xapian::SetPythonException();
44237 _swig_thread_allow.end();
44239 resultobj = SWIG_Py_Void();
44244 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_set_weighting_scheme(PyObject *, PyObject *args) {
44245 PyObject *resultobj = 0;
44246 Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
44247 Xapian::Weight *arg2 = 0 ;
44252 PyObject *swig_obj[2] ;
44253 if (!SWIG_Python_UnpackTuple(args,"Enquire_set_weighting_scheme",2,2,swig_obj)) goto fail;
44254 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[18], 0 | 0, 0);
44255 if (!(res1 >= 0)) {
44256 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Enquire_set_weighting_scheme" "', argument " "1"" of type '" "Xapian::Enquire *""'"); goto fail; } while(0);
44258 arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
44259 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[65], 0 | 0, 0);
44260 if (!(res2 >= 0)) {
44261 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Enquire_set_weighting_scheme" "', argument " "2"" of type '" "Xapian::Weight const &""'"); goto fail; } while(0);
44264 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Enquire_set_weighting_scheme" "', argument " "2"" of type '" "Xapian::Weight const &""'"); goto fail; } while(0);
44266 arg2 = reinterpret_cast< Xapian::Weight * >(argp2);
44268 SWIG_Python_Thread_Allow _swig_thread_allow;
44271 (arg1)->set_weighting_scheme((Xapian::Weight const &)*arg2);
44273 _swig_thread_allow.end();
44274 Xapian::SetPythonException();
44278 _swig_thread_allow.end();
44280 resultobj = SWIG_Py_Void();
44285 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_set_collapse_key__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
44286 PyObject *resultobj = 0;
44287 Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
44288 Xapian::valueno arg2 ;
44289 Xapian::doccount arg3 ;
44292 unsigned int val2 ;
44294 unsigned int val3 ;
44296 if ((nobjs < 3) || (nobjs > 3)) goto fail;
44297 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[18], 0 | 0, 0);
44298 if (!(res1 >= 0)) {
44299 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Enquire_set_collapse_key" "', argument " "1"" of type '" "Xapian::Enquire *""'"); goto fail; } while(0);
44301 arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
44302 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
44303 if (!(ecode2 >= 0)) {
44304 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Enquire_set_collapse_key" "', argument " "2"" of type '" "Xapian::valueno""'"); goto fail; } while(0);
44306 arg2 = static_cast< Xapian::valueno >(val2);
44307 ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
44308 if (!(ecode3 >= 0)) {
44309 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "Enquire_set_collapse_key" "', argument " "3"" of type '" "Xapian::doccount""'"); goto fail; } while(0);
44311 arg3 = static_cast< Xapian::doccount >(val3);
44313 SWIG_Python_Thread_Allow _swig_thread_allow;
44316 (arg1)->set_collapse_key(arg2,arg3);
44318 _swig_thread_allow.end();
44319 Xapian::SetPythonException();
44323 _swig_thread_allow.end();
44325 resultobj = SWIG_Py_Void();
44330 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_set_collapse_key__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
44331 PyObject *resultobj = 0;
44332 Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
44333 Xapian::valueno arg2 ;
44336 unsigned int val2 ;
44338 if ((nobjs < 2) || (nobjs > 2)) goto fail;
44339 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[18], 0 | 0, 0);
44340 if (!(res1 >= 0)) {
44341 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Enquire_set_collapse_key" "', argument " "1"" of type '" "Xapian::Enquire *""'"); goto fail; } while(0);
44343 arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
44344 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
44345 if (!(ecode2 >= 0)) {
44346 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Enquire_set_collapse_key" "', argument " "2"" of type '" "Xapian::valueno""'"); goto fail; } while(0);
44348 arg2 = static_cast< Xapian::valueno >(val2);
44350 SWIG_Python_Thread_Allow _swig_thread_allow;
44353 (arg1)->set_collapse_key(arg2);
44355 _swig_thread_allow.end();
44356 Xapian::SetPythonException();
44360 _swig_thread_allow.end();
44362 resultobj = SWIG_Py_Void();
44367 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_set_collapse_key(PyObject *self, PyObject *args) {
44370 if (!(argc = SWIG_Python_UnpackTuple(args,"Enquire_set_collapse_key",0,3,argv))) goto fail;
44373 return _wrap_Enquire_set_collapse_key__SWIG_1(self, argc, argv);
44376 return _wrap_Enquire_set_collapse_key__SWIG_0(self, argc, argv);
44379 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'Enquire_set_collapse_key'.\n"
44380 " Possible C/C++ prototypes are:\n"
44381 " set_collapse_key(Xapian::Enquire *,Xapian::valueno,Xapian::doccount)\n"
44382 " set_collapse_key(Xapian::Enquire *,Xapian::valueno)\n");
44385 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_set_docid_order(PyObject *, PyObject *args) {
44386 PyObject *resultobj = 0;
44387 Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
44388 Xapian::Enquire::docid_order arg2 ;
44393 PyObject *swig_obj[2] ;
44394 if (!SWIG_Python_UnpackTuple(args,"Enquire_set_docid_order",2,2,swig_obj)) goto fail;
44395 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[18], 0 | 0, 0);
44396 if (!(res1 >= 0)) {
44397 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Enquire_set_docid_order" "', argument " "1"" of type '" "Xapian::Enquire *""'"); goto fail; } while(0);
44399 arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
44400 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
44401 if (!(ecode2 >= 0)) {
44402 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Enquire_set_docid_order" "', argument " "2"" of type '" "Xapian::Enquire::docid_order""'"); goto fail; } while(0);
44404 arg2 = static_cast< Xapian::Enquire::docid_order >(val2);
44406 SWIG_Python_Thread_Allow _swig_thread_allow;
44409 (arg1)->set_docid_order(arg2);
44411 _swig_thread_allow.end();
44412 Xapian::SetPythonException();
44416 _swig_thread_allow.end();
44418 resultobj = SWIG_Py_Void();
44423 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_set_cutoff__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
44424 PyObject *resultobj = 0;
44425 Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
44427 Xapian::weight arg3 ;
44434 if ((nobjs < 3) || (nobjs > 3)) goto fail;
44435 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[18], 0 | 0, 0);
44436 if (!(res1 >= 0)) {
44437 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Enquire_set_cutoff" "', argument " "1"" of type '" "Xapian::Enquire *""'"); goto fail; } while(0);
44439 arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
44440 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
44441 if (!(ecode2 >= 0)) {
44442 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Enquire_set_cutoff" "', argument " "2"" of type '" "int""'"); goto fail; } while(0);
44444 arg2 = static_cast< int >(val2);
44445 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
44446 if (!(ecode3 >= 0)) {
44447 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "Enquire_set_cutoff" "', argument " "3"" of type '" "Xapian::weight""'"); goto fail; } while(0);
44449 arg3 = static_cast< Xapian::weight >(val3);
44451 SWIG_Python_Thread_Allow _swig_thread_allow;
44454 (arg1)->set_cutoff(arg2,arg3);
44456 _swig_thread_allow.end();
44457 Xapian::SetPythonException();
44461 _swig_thread_allow.end();
44463 resultobj = SWIG_Py_Void();
44468 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_set_cutoff__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
44469 PyObject *resultobj = 0;
44470 Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
44476 if ((nobjs < 2) || (nobjs > 2)) goto fail;
44477 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[18], 0 | 0, 0);
44478 if (!(res1 >= 0)) {
44479 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Enquire_set_cutoff" "', argument " "1"" of type '" "Xapian::Enquire *""'"); goto fail; } while(0);
44481 arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
44482 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
44483 if (!(ecode2 >= 0)) {
44484 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Enquire_set_cutoff" "', argument " "2"" of type '" "int""'"); goto fail; } while(0);
44486 arg2 = static_cast< int >(val2);
44488 SWIG_Python_Thread_Allow _swig_thread_allow;
44491 (arg1)->set_cutoff(arg2);
44493 _swig_thread_allow.end();
44494 Xapian::SetPythonException();
44498 _swig_thread_allow.end();
44500 resultobj = SWIG_Py_Void();
44505 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_set_cutoff(PyObject *self, PyObject *args) {
44508 if (!(argc = SWIG_Python_UnpackTuple(args,"Enquire_set_cutoff",0,3,argv))) goto fail;
44511 return _wrap_Enquire_set_cutoff__SWIG_1(self, argc, argv);
44514 return _wrap_Enquire_set_cutoff__SWIG_0(self, argc, argv);
44517 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'Enquire_set_cutoff'.\n"
44518 " Possible C/C++ prototypes are:\n"
44519 " set_cutoff(Xapian::Enquire *,int,Xapian::weight)\n"
44520 " set_cutoff(Xapian::Enquire *,int)\n");
44523 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_set_sort_by_relevance(PyObject *, PyObject *args) {
44524 PyObject *resultobj = 0;
44525 Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
44528 PyObject *swig_obj[1] ;
44529 if (!args) goto fail;
44530 swig_obj[0] = args;
44531 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[18], 0 | 0, 0);
44532 if (!(res1 >= 0)) {
44533 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Enquire_set_sort_by_relevance" "', argument " "1"" of type '" "Xapian::Enquire *""'"); goto fail; } while(0);
44535 arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
44537 SWIG_Python_Thread_Allow _swig_thread_allow;
44540 (arg1)->set_sort_by_relevance();
44542 _swig_thread_allow.end();
44543 Xapian::SetPythonException();
44547 _swig_thread_allow.end();
44549 resultobj = SWIG_Py_Void();
44554 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_set_sort_by_value__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
44555 PyObject *resultobj = 0;
44556 Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
44557 Xapian::valueno arg2 ;
44561 unsigned int val2 ;
44565 if ((nobjs < 3) || (nobjs > 3)) goto fail;
44566 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[18], 0 | 0, 0);
44567 if (!(res1 >= 0)) {
44568 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Enquire_set_sort_by_value" "', argument " "1"" of type '" "Xapian::Enquire *""'"); goto fail; } while(0);
44570 arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
44571 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
44572 if (!(ecode2 >= 0)) {
44573 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Enquire_set_sort_by_value" "', argument " "2"" of type '" "Xapian::valueno""'"); goto fail; } while(0);
44575 arg2 = static_cast< Xapian::valueno >(val2);
44576 ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
44577 if (!(ecode3 >= 0)) {
44578 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "Enquire_set_sort_by_value" "', argument " "3"" of type '" "bool""'"); goto fail; } while(0);
44580 arg3 = static_cast< bool >(val3);
44582 SWIG_Python_Thread_Allow _swig_thread_allow;
44585 (arg1)->set_sort_by_value(arg2,arg3);
44587 _swig_thread_allow.end();
44588 Xapian::SetPythonException();
44592 _swig_thread_allow.end();
44594 resultobj = SWIG_Py_Void();
44599 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_set_sort_by_value__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
44600 PyObject *resultobj = 0;
44601 Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
44602 Xapian::valueno arg2 ;
44605 unsigned int val2 ;
44607 if ((nobjs < 2) || (nobjs > 2)) goto fail;
44608 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[18], 0 | 0, 0);
44609 if (!(res1 >= 0)) {
44610 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Enquire_set_sort_by_value" "', argument " "1"" of type '" "Xapian::Enquire *""'"); goto fail; } while(0);
44612 arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
44613 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
44614 if (!(ecode2 >= 0)) {
44615 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Enquire_set_sort_by_value" "', argument " "2"" of type '" "Xapian::valueno""'"); goto fail; } while(0);
44617 arg2 = static_cast< Xapian::valueno >(val2);
44619 SWIG_Python_Thread_Allow _swig_thread_allow;
44622 (arg1)->set_sort_by_value(arg2);
44624 _swig_thread_allow.end();
44625 Xapian::SetPythonException();
44629 _swig_thread_allow.end();
44631 resultobj = SWIG_Py_Void();
44636 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_set_sort_by_value(PyObject *self, PyObject *args) {
44639 if (!(argc = SWIG_Python_UnpackTuple(args,"Enquire_set_sort_by_value",0,3,argv))) goto fail;
44642 return _wrap_Enquire_set_sort_by_value__SWIG_1(self, argc, argv);
44645 return _wrap_Enquire_set_sort_by_value__SWIG_0(self, argc, argv);
44648 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'Enquire_set_sort_by_value'.\n"
44649 " Possible C/C++ prototypes are:\n"
44650 " set_sort_by_value(Xapian::Enquire *,Xapian::valueno,bool)\n"
44651 " set_sort_by_value(Xapian::Enquire *,Xapian::valueno)\n");
44654 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_set_sort_by_value_then_relevance__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
44655 PyObject *resultobj = 0;
44656 Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
44657 Xapian::valueno arg2 ;
44661 unsigned int val2 ;
44665 if ((nobjs < 3) || (nobjs > 3)) goto fail;
44666 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[18], 0 | 0, 0);
44667 if (!(res1 >= 0)) {
44668 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Enquire_set_sort_by_value_then_relevance" "', argument " "1"" of type '" "Xapian::Enquire *""'"); goto fail; } while(0);
44670 arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
44671 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
44672 if (!(ecode2 >= 0)) {
44673 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Enquire_set_sort_by_value_then_relevance" "', argument " "2"" of type '" "Xapian::valueno""'"); goto fail; } while(0);
44675 arg2 = static_cast< Xapian::valueno >(val2);
44676 ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
44677 if (!(ecode3 >= 0)) {
44678 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "Enquire_set_sort_by_value_then_relevance" "', argument " "3"" of type '" "bool""'"); goto fail; } while(0);
44680 arg3 = static_cast< bool >(val3);
44682 SWIG_Python_Thread_Allow _swig_thread_allow;
44685 (arg1)->set_sort_by_value_then_relevance(arg2,arg3);
44687 _swig_thread_allow.end();
44688 Xapian::SetPythonException();
44692 _swig_thread_allow.end();
44694 resultobj = SWIG_Py_Void();
44699 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_set_sort_by_value_then_relevance__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
44700 PyObject *resultobj = 0;
44701 Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
44702 Xapian::valueno arg2 ;
44705 unsigned int val2 ;
44707 if ((nobjs < 2) || (nobjs > 2)) goto fail;
44708 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[18], 0 | 0, 0);
44709 if (!(res1 >= 0)) {
44710 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Enquire_set_sort_by_value_then_relevance" "', argument " "1"" of type '" "Xapian::Enquire *""'"); goto fail; } while(0);
44712 arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
44713 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
44714 if (!(ecode2 >= 0)) {
44715 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Enquire_set_sort_by_value_then_relevance" "', argument " "2"" of type '" "Xapian::valueno""'"); goto fail; } while(0);
44717 arg2 = static_cast< Xapian::valueno >(val2);
44719 SWIG_Python_Thread_Allow _swig_thread_allow;
44722 (arg1)->set_sort_by_value_then_relevance(arg2);
44724 _swig_thread_allow.end();
44725 Xapian::SetPythonException();
44729 _swig_thread_allow.end();
44731 resultobj = SWIG_Py_Void();
44736 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_set_sort_by_value_then_relevance(PyObject *self, PyObject *args) {
44739 if (!(argc = SWIG_Python_UnpackTuple(args,"Enquire_set_sort_by_value_then_relevance",0,3,argv))) goto fail;
44742 return _wrap_Enquire_set_sort_by_value_then_relevance__SWIG_1(self, argc, argv);
44745 return _wrap_Enquire_set_sort_by_value_then_relevance__SWIG_0(self, argc, argv);
44748 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'Enquire_set_sort_by_value_then_relevance'.\n"
44749 " Possible C/C++ prototypes are:\n"
44750 " set_sort_by_value_then_relevance(Xapian::Enquire *,Xapian::valueno,bool)\n"
44751 " set_sort_by_value_then_relevance(Xapian::Enquire *,Xapian::valueno)\n");
44754 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_set_sort_by_relevance_then_value__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
44755 PyObject *resultobj = 0;
44756 Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
44757 Xapian::valueno arg2 ;
44761 unsigned int val2 ;
44765 if ((nobjs < 3) || (nobjs > 3)) goto fail;
44766 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[18], 0 | 0, 0);
44767 if (!(res1 >= 0)) {
44768 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Enquire_set_sort_by_relevance_then_value" "', argument " "1"" of type '" "Xapian::Enquire *""'"); goto fail; } while(0);
44770 arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
44771 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
44772 if (!(ecode2 >= 0)) {
44773 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Enquire_set_sort_by_relevance_then_value" "', argument " "2"" of type '" "Xapian::valueno""'"); goto fail; } while(0);
44775 arg2 = static_cast< Xapian::valueno >(val2);
44776 ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
44777 if (!(ecode3 >= 0)) {
44778 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "Enquire_set_sort_by_relevance_then_value" "', argument " "3"" of type '" "bool""'"); goto fail; } while(0);
44780 arg3 = static_cast< bool >(val3);
44782 SWIG_Python_Thread_Allow _swig_thread_allow;
44785 (arg1)->set_sort_by_relevance_then_value(arg2,arg3);
44787 _swig_thread_allow.end();
44788 Xapian::SetPythonException();
44792 _swig_thread_allow.end();
44794 resultobj = SWIG_Py_Void();
44799 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_set_sort_by_relevance_then_value__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
44800 PyObject *resultobj = 0;
44801 Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
44802 Xapian::valueno arg2 ;
44805 unsigned int val2 ;
44807 if ((nobjs < 2) || (nobjs > 2)) goto fail;
44808 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[18], 0 | 0, 0);
44809 if (!(res1 >= 0)) {
44810 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Enquire_set_sort_by_relevance_then_value" "', argument " "1"" of type '" "Xapian::Enquire *""'"); goto fail; } while(0);
44812 arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
44813 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
44814 if (!(ecode2 >= 0)) {
44815 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Enquire_set_sort_by_relevance_then_value" "', argument " "2"" of type '" "Xapian::valueno""'"); goto fail; } while(0);
44817 arg2 = static_cast< Xapian::valueno >(val2);
44819 SWIG_Python_Thread_Allow _swig_thread_allow;
44822 (arg1)->set_sort_by_relevance_then_value(arg2);
44824 _swig_thread_allow.end();
44825 Xapian::SetPythonException();
44829 _swig_thread_allow.end();
44831 resultobj = SWIG_Py_Void();
44836 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_set_sort_by_relevance_then_value(PyObject *self, PyObject *args) {
44839 if (!(argc = SWIG_Python_UnpackTuple(args,"Enquire_set_sort_by_relevance_then_value",0,3,argv))) goto fail;
44842 return _wrap_Enquire_set_sort_by_relevance_then_value__SWIG_1(self, argc, argv);
44845 return _wrap_Enquire_set_sort_by_relevance_then_value__SWIG_0(self, argc, argv);
44848 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'Enquire_set_sort_by_relevance_then_value'.\n"
44849 " Possible C/C++ prototypes are:\n"
44850 " set_sort_by_relevance_then_value(Xapian::Enquire *,Xapian::valueno,bool)\n"
44851 " set_sort_by_relevance_then_value(Xapian::Enquire *,Xapian::valueno)\n");
44854 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_set_sort_by_key__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
44855 PyObject *resultobj = 0;
44856 Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
44857 Xapian::KeyMaker *arg2 = (Xapian::KeyMaker *) 0 ;
44865 if ((nobjs < 3) || (nobjs > 3)) goto fail;
44866 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[18], 0 | 0, 0);
44867 if (!(res1 >= 0)) {
44868 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Enquire_set_sort_by_key" "', argument " "1"" of type '" "Xapian::Enquire *""'"); goto fail; } while(0);
44870 arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
44871 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[26], 0 | 0, 0);
44872 if (!(res2 >= 0)) {
44873 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Enquire_set_sort_by_key" "', argument " "2"" of type '" "Xapian::KeyMaker *""'"); goto fail; } while(0);
44875 arg2 = reinterpret_cast< Xapian::KeyMaker * >(argp2);
44876 ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
44877 if (!(ecode3 >= 0)) {
44878 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "Enquire_set_sort_by_key" "', argument " "3"" of type '" "bool""'"); goto fail; } while(0);
44880 arg3 = static_cast< bool >(val3);
44882 SWIG_Python_Thread_Allow _swig_thread_allow;
44885 (arg1)->set_sort_by_key(arg2,arg3);
44887 _swig_thread_allow.end();
44888 Xapian::SetPythonException();
44892 _swig_thread_allow.end();
44894 resultobj = SWIG_Py_Void();
44899 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_set_sort_by_key__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
44900 PyObject *resultobj = 0;
44901 Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
44902 Xapian::Sorter *arg2 = (Xapian::Sorter *) 0 ;
44907 if ((nobjs < 2) || (nobjs > 2)) goto fail;
44908 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[18], 0 | 0, 0);
44909 if (!(res1 >= 0)) {
44910 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Enquire_set_sort_by_key" "', argument " "1"" of type '" "Xapian::Enquire *""'"); goto fail; } while(0);
44912 arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
44913 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[49], 0 | 0, 0);
44914 if (!(res2 >= 0)) {
44915 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Enquire_set_sort_by_key" "', argument " "2"" of type '" "Xapian::Sorter *""'"); goto fail; } while(0);
44917 arg2 = reinterpret_cast< Xapian::Sorter * >(argp2);
44919 SWIG_Python_Thread_Allow _swig_thread_allow;
44922 (arg1)->set_sort_by_key(arg2);
44924 _swig_thread_allow.end();
44925 Xapian::SetPythonException();
44929 _swig_thread_allow.end();
44931 resultobj = SWIG_Py_Void();
44936 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_set_sort_by_key(PyObject *self, PyObject *args) {
44939 if (!(argc = SWIG_Python_UnpackTuple(args,"Enquire_set_sort_by_key",0,3,argv))) goto fail;
44942 return _wrap_Enquire_set_sort_by_key__SWIG_1(self, argc, argv);
44945 return _wrap_Enquire_set_sort_by_key__SWIG_0(self, argc, argv);
44948 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'Enquire_set_sort_by_key'.\n"
44949 " Possible C/C++ prototypes are:\n"
44950 " set_sort_by_key(Xapian::Enquire *,Xapian::KeyMaker *,bool)\n"
44951 " set_sort_by_key(Xapian::Enquire *,Xapian::Sorter *)\n");
44954 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_set_sort_by_key_then_relevance__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
44955 PyObject *resultobj = 0;
44956 Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
44957 Xapian::KeyMaker *arg2 = (Xapian::KeyMaker *) 0 ;
44965 if ((nobjs < 3) || (nobjs > 3)) goto fail;
44966 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[18], 0 | 0, 0);
44967 if (!(res1 >= 0)) {
44968 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Enquire_set_sort_by_key_then_relevance" "', argument " "1"" of type '" "Xapian::Enquire *""'"); goto fail; } while(0);
44970 arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
44971 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[26], 0 | 0, 0);
44972 if (!(res2 >= 0)) {
44973 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Enquire_set_sort_by_key_then_relevance" "', argument " "2"" of type '" "Xapian::KeyMaker *""'"); goto fail; } while(0);
44975 arg2 = reinterpret_cast< Xapian::KeyMaker * >(argp2);
44976 ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
44977 if (!(ecode3 >= 0)) {
44978 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "Enquire_set_sort_by_key_then_relevance" "', argument " "3"" of type '" "bool""'"); goto fail; } while(0);
44980 arg3 = static_cast< bool >(val3);
44982 SWIG_Python_Thread_Allow _swig_thread_allow;
44985 (arg1)->set_sort_by_key_then_relevance(arg2,arg3);
44987 _swig_thread_allow.end();
44988 Xapian::SetPythonException();
44992 _swig_thread_allow.end();
44994 resultobj = SWIG_Py_Void();
44999 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_set_sort_by_key_then_relevance__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
45000 PyObject *resultobj = 0;
45001 Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
45002 Xapian::Sorter *arg2 = (Xapian::Sorter *) 0 ;
45007 if ((nobjs < 2) || (nobjs > 2)) goto fail;
45008 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[18], 0 | 0, 0);
45009 if (!(res1 >= 0)) {
45010 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Enquire_set_sort_by_key_then_relevance" "', argument " "1"" of type '" "Xapian::Enquire *""'"); goto fail; } while(0);
45012 arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
45013 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[49], 0 | 0, 0);
45014 if (!(res2 >= 0)) {
45015 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Enquire_set_sort_by_key_then_relevance" "', argument " "2"" of type '" "Xapian::Sorter *""'"); goto fail; } while(0);
45017 arg2 = reinterpret_cast< Xapian::Sorter * >(argp2);
45019 SWIG_Python_Thread_Allow _swig_thread_allow;
45022 (arg1)->set_sort_by_key_then_relevance(arg2);
45024 _swig_thread_allow.end();
45025 Xapian::SetPythonException();
45029 _swig_thread_allow.end();
45031 resultobj = SWIG_Py_Void();
45036 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_set_sort_by_key_then_relevance(PyObject *self, PyObject *args) {
45039 if (!(argc = SWIG_Python_UnpackTuple(args,"Enquire_set_sort_by_key_then_relevance",0,3,argv))) goto fail;
45042 return _wrap_Enquire_set_sort_by_key_then_relevance__SWIG_1(self, argc, argv);
45045 return _wrap_Enquire_set_sort_by_key_then_relevance__SWIG_0(self, argc, argv);
45048 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'Enquire_set_sort_by_key_then_relevance'.\n"
45049 " Possible C/C++ prototypes are:\n"
45050 " set_sort_by_key_then_relevance(Xapian::Enquire *,Xapian::KeyMaker *,bool)\n"
45051 " set_sort_by_key_then_relevance(Xapian::Enquire *,Xapian::Sorter *)\n");
45054 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_set_sort_by_relevance_then_key__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
45055 PyObject *resultobj = 0;
45056 Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
45057 Xapian::KeyMaker *arg2 = (Xapian::KeyMaker *) 0 ;
45065 if ((nobjs < 3) || (nobjs > 3)) goto fail;
45066 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[18], 0 | 0, 0);
45067 if (!(res1 >= 0)) {
45068 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Enquire_set_sort_by_relevance_then_key" "', argument " "1"" of type '" "Xapian::Enquire *""'"); goto fail; } while(0);
45070 arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
45071 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[26], 0 | 0, 0);
45072 if (!(res2 >= 0)) {
45073 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Enquire_set_sort_by_relevance_then_key" "', argument " "2"" of type '" "Xapian::KeyMaker *""'"); goto fail; } while(0);
45075 arg2 = reinterpret_cast< Xapian::KeyMaker * >(argp2);
45076 ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
45077 if (!(ecode3 >= 0)) {
45078 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "Enquire_set_sort_by_relevance_then_key" "', argument " "3"" of type '" "bool""'"); goto fail; } while(0);
45080 arg3 = static_cast< bool >(val3);
45082 SWIG_Python_Thread_Allow _swig_thread_allow;
45085 (arg1)->set_sort_by_relevance_then_key(arg2,arg3);
45087 _swig_thread_allow.end();
45088 Xapian::SetPythonException();
45092 _swig_thread_allow.end();
45094 resultobj = SWIG_Py_Void();
45099 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_set_sort_by_relevance_then_key__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
45100 PyObject *resultobj = 0;
45101 Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
45102 Xapian::Sorter *arg2 = (Xapian::Sorter *) 0 ;
45107 if ((nobjs < 2) || (nobjs > 2)) goto fail;
45108 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[18], 0 | 0, 0);
45109 if (!(res1 >= 0)) {
45110 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Enquire_set_sort_by_relevance_then_key" "', argument " "1"" of type '" "Xapian::Enquire *""'"); goto fail; } while(0);
45112 arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
45113 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[49], 0 | 0, 0);
45114 if (!(res2 >= 0)) {
45115 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Enquire_set_sort_by_relevance_then_key" "', argument " "2"" of type '" "Xapian::Sorter *""'"); goto fail; } while(0);
45117 arg2 = reinterpret_cast< Xapian::Sorter * >(argp2);
45119 SWIG_Python_Thread_Allow _swig_thread_allow;
45122 (arg1)->set_sort_by_relevance_then_key(arg2);
45124 _swig_thread_allow.end();
45125 Xapian::SetPythonException();
45129 _swig_thread_allow.end();
45131 resultobj = SWIG_Py_Void();
45136 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_set_sort_by_relevance_then_key(PyObject *self, PyObject *args) {
45139 if (!(argc = SWIG_Python_UnpackTuple(args,"Enquire_set_sort_by_relevance_then_key",0,3,argv))) goto fail;
45142 return _wrap_Enquire_set_sort_by_relevance_then_key__SWIG_1(self, argc, argv);
45145 return _wrap_Enquire_set_sort_by_relevance_then_key__SWIG_0(self, argc, argv);
45148 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'Enquire_set_sort_by_relevance_then_key'.\n"
45149 " Possible C/C++ prototypes are:\n"
45150 " set_sort_by_relevance_then_key(Xapian::Enquire *,Xapian::KeyMaker *,bool)\n"
45151 " set_sort_by_relevance_then_key(Xapian::Enquire *,Xapian::Sorter *)\n");
45154 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_get_mset__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
45155 PyObject *resultobj = 0;
45156 Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
45157 Xapian::doccount arg2 ;
45158 Xapian::doccount arg3 ;
45159 Xapian::doccount arg4 ;
45160 Xapian::RSet *arg5 = (Xapian::RSet *) 0 ;
45161 Xapian::MatchDecider *arg6 = (Xapian::MatchDecider *) 0 ;
45162 Xapian::MatchDecider *arg7 = (Xapian::MatchDecider *) 0 ;
45165 unsigned int val2 ;
45167 unsigned int val3 ;
45169 unsigned int val4 ;
45177 Xapian::MSet result;
45178 if ((nobjs < 7) || (nobjs > 7)) goto fail;
45179 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[18], 0 | 0, 0);
45180 if (!(res1 >= 0)) {
45181 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Enquire_get_mset" "', argument " "1"" of type '" "Xapian::Enquire const *""'"); goto fail; } while(0);
45183 arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
45184 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
45185 if (!(ecode2 >= 0)) {
45186 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Enquire_get_mset" "', argument " "2"" of type '" "Xapian::doccount""'"); goto fail; } while(0);
45188 arg2 = static_cast< Xapian::doccount >(val2);
45189 ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
45190 if (!(ecode3 >= 0)) {
45191 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "Enquire_get_mset" "', argument " "3"" of type '" "Xapian::doccount""'"); goto fail; } while(0);
45193 arg3 = static_cast< Xapian::doccount >(val3);
45194 ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4);
45195 if (!(ecode4 >= 0)) {
45196 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 != (-1)) ? ecode4 : -5)), "in method '" "Enquire_get_mset" "', argument " "4"" of type '" "Xapian::doccount""'"); goto fail; } while(0);
45198 arg4 = static_cast< Xapian::doccount >(val4);
45199 res5 = SWIG_Python_ConvertPtrAndOwn(swig_obj[4], &argp5, swig_types[43], 0 | 0, 0);
45200 if (!(res5 >= 0)) {
45201 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res5 != (-1)) ? res5 : -5)), "in method '" "Enquire_get_mset" "', argument " "5"" of type '" "Xapian::RSet const *""'"); goto fail; } while(0);
45203 arg5 = reinterpret_cast< Xapian::RSet * >(argp5);
45204 res6 = SWIG_Python_ConvertPtrAndOwn(swig_obj[5], &argp6, swig_types[30], 0 | 0, 0);
45205 if (!(res6 >= 0)) {
45206 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res6 != (-1)) ? res6 : -5)), "in method '" "Enquire_get_mset" "', argument " "6"" of type '" "Xapian::MatchDecider const *""'"); goto fail; } while(0);
45208 arg6 = reinterpret_cast< Xapian::MatchDecider * >(argp6);
45209 res7 = SWIG_Python_ConvertPtrAndOwn(swig_obj[6], &argp7, swig_types[30], 0 | 0, 0);
45210 if (!(res7 >= 0)) {
45211 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res7 != (-1)) ? res7 : -5)), "in method '" "Enquire_get_mset" "', argument " "7"" of type '" "Xapian::MatchDecider const *""'"); goto fail; } while(0);
45213 arg7 = reinterpret_cast< Xapian::MatchDecider * >(argp7);
45215 SWIG_Python_Thread_Allow _swig_thread_allow;
45218 result = ((Xapian::Enquire const *)arg1)->get_mset(arg2,arg3,arg4,(Xapian::RSet const *)arg5,(Xapian::MatchDecider const *)arg6,(Xapian::MatchDecider const *)arg7);
45220 _swig_thread_allow.end();
45221 Xapian::SetPythonException();
45225 _swig_thread_allow.end();
45227 resultobj = SWIG_Python_NewPointerObj((new Xapian::MSet(static_cast< const Xapian::MSet& >(result))), swig_types[28], 0x1 | 0);
45232 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_get_mset__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
45233 PyObject *resultobj = 0;
45234 Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
45235 Xapian::doccount arg2 ;
45236 Xapian::doccount arg3 ;
45237 Xapian::doccount arg4 ;
45238 Xapian::RSet *arg5 = (Xapian::RSet *) 0 ;
45239 Xapian::MatchDecider *arg6 = (Xapian::MatchDecider *) 0 ;
45242 unsigned int val2 ;
45244 unsigned int val3 ;
45246 unsigned int val4 ;
45252 Xapian::MSet result;
45253 if ((nobjs < 6) || (nobjs > 6)) goto fail;
45254 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[18], 0 | 0, 0);
45255 if (!(res1 >= 0)) {
45256 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Enquire_get_mset" "', argument " "1"" of type '" "Xapian::Enquire const *""'"); goto fail; } while(0);
45258 arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
45259 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
45260 if (!(ecode2 >= 0)) {
45261 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Enquire_get_mset" "', argument " "2"" of type '" "Xapian::doccount""'"); goto fail; } while(0);
45263 arg2 = static_cast< Xapian::doccount >(val2);
45264 ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
45265 if (!(ecode3 >= 0)) {
45266 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "Enquire_get_mset" "', argument " "3"" of type '" "Xapian::doccount""'"); goto fail; } while(0);
45268 arg3 = static_cast< Xapian::doccount >(val3);
45269 ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4);
45270 if (!(ecode4 >= 0)) {
45271 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 != (-1)) ? ecode4 : -5)), "in method '" "Enquire_get_mset" "', argument " "4"" of type '" "Xapian::doccount""'"); goto fail; } while(0);
45273 arg4 = static_cast< Xapian::doccount >(val4);
45274 res5 = SWIG_Python_ConvertPtrAndOwn(swig_obj[4], &argp5, swig_types[43], 0 | 0, 0);
45275 if (!(res5 >= 0)) {
45276 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res5 != (-1)) ? res5 : -5)), "in method '" "Enquire_get_mset" "', argument " "5"" of type '" "Xapian::RSet const *""'"); goto fail; } while(0);
45278 arg5 = reinterpret_cast< Xapian::RSet * >(argp5);
45279 res6 = SWIG_Python_ConvertPtrAndOwn(swig_obj[5], &argp6, swig_types[30], 0 | 0, 0);
45280 if (!(res6 >= 0)) {
45281 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res6 != (-1)) ? res6 : -5)), "in method '" "Enquire_get_mset" "', argument " "6"" of type '" "Xapian::MatchDecider const *""'"); goto fail; } while(0);
45283 arg6 = reinterpret_cast< Xapian::MatchDecider * >(argp6);
45285 SWIG_Python_Thread_Allow _swig_thread_allow;
45288 result = ((Xapian::Enquire const *)arg1)->get_mset(arg2,arg3,arg4,(Xapian::RSet const *)arg5,(Xapian::MatchDecider const *)arg6);
45290 _swig_thread_allow.end();
45291 Xapian::SetPythonException();
45295 _swig_thread_allow.end();
45297 resultobj = SWIG_Python_NewPointerObj((new Xapian::MSet(static_cast< const Xapian::MSet& >(result))), swig_types[28], 0x1 | 0);
45302 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_get_mset__SWIG_2(PyObject *, int nobjs, PyObject **swig_obj) {
45303 PyObject *resultobj = 0;
45304 Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
45305 Xapian::doccount arg2 ;
45306 Xapian::doccount arg3 ;
45307 Xapian::doccount arg4 ;
45308 Xapian::RSet *arg5 = (Xapian::RSet *) 0 ;
45311 unsigned int val2 ;
45313 unsigned int val3 ;
45315 unsigned int val4 ;
45319 Xapian::MSet result;
45320 if ((nobjs < 5) || (nobjs > 5)) goto fail;
45321 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[18], 0 | 0, 0);
45322 if (!(res1 >= 0)) {
45323 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Enquire_get_mset" "', argument " "1"" of type '" "Xapian::Enquire const *""'"); goto fail; } while(0);
45325 arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
45326 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
45327 if (!(ecode2 >= 0)) {
45328 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Enquire_get_mset" "', argument " "2"" of type '" "Xapian::doccount""'"); goto fail; } while(0);
45330 arg2 = static_cast< Xapian::doccount >(val2);
45331 ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
45332 if (!(ecode3 >= 0)) {
45333 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "Enquire_get_mset" "', argument " "3"" of type '" "Xapian::doccount""'"); goto fail; } while(0);
45335 arg3 = static_cast< Xapian::doccount >(val3);
45336 ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4);
45337 if (!(ecode4 >= 0)) {
45338 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 != (-1)) ? ecode4 : -5)), "in method '" "Enquire_get_mset" "', argument " "4"" of type '" "Xapian::doccount""'"); goto fail; } while(0);
45340 arg4 = static_cast< Xapian::doccount >(val4);
45341 res5 = SWIG_Python_ConvertPtrAndOwn(swig_obj[4], &argp5, swig_types[43], 0 | 0, 0);
45342 if (!(res5 >= 0)) {
45343 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res5 != (-1)) ? res5 : -5)), "in method '" "Enquire_get_mset" "', argument " "5"" of type '" "Xapian::RSet const *""'"); goto fail; } while(0);
45345 arg5 = reinterpret_cast< Xapian::RSet * >(argp5);
45347 SWIG_Python_Thread_Allow _swig_thread_allow;
45350 result = ((Xapian::Enquire const *)arg1)->get_mset(arg2,arg3,arg4,(Xapian::RSet const *)arg5);
45352 _swig_thread_allow.end();
45353 Xapian::SetPythonException();
45357 _swig_thread_allow.end();
45359 resultobj = SWIG_Python_NewPointerObj((new Xapian::MSet(static_cast< const Xapian::MSet& >(result))), swig_types[28], 0x1 | 0);
45364 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_get_mset__SWIG_3(PyObject *, int nobjs, PyObject **swig_obj) {
45365 PyObject *resultobj = 0;
45366 Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
45367 Xapian::doccount arg2 ;
45368 Xapian::doccount arg3 ;
45369 Xapian::doccount arg4 ;
45372 unsigned int val2 ;
45374 unsigned int val3 ;
45376 unsigned int val4 ;
45378 Xapian::MSet result;
45379 if ((nobjs < 4) || (nobjs > 4)) goto fail;
45380 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[18], 0 | 0, 0);
45381 if (!(res1 >= 0)) {
45382 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Enquire_get_mset" "', argument " "1"" of type '" "Xapian::Enquire const *""'"); goto fail; } while(0);
45384 arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
45385 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
45386 if (!(ecode2 >= 0)) {
45387 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Enquire_get_mset" "', argument " "2"" of type '" "Xapian::doccount""'"); goto fail; } while(0);
45389 arg2 = static_cast< Xapian::doccount >(val2);
45390 ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
45391 if (!(ecode3 >= 0)) {
45392 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "Enquire_get_mset" "', argument " "3"" of type '" "Xapian::doccount""'"); goto fail; } while(0);
45394 arg3 = static_cast< Xapian::doccount >(val3);
45395 ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4);
45396 if (!(ecode4 >= 0)) {
45397 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 != (-1)) ? ecode4 : -5)), "in method '" "Enquire_get_mset" "', argument " "4"" of type '" "Xapian::doccount""'"); goto fail; } while(0);
45399 arg4 = static_cast< Xapian::doccount >(val4);
45401 SWIG_Python_Thread_Allow _swig_thread_allow;
45404 result = ((Xapian::Enquire const *)arg1)->get_mset(arg2,arg3,arg4);
45406 _swig_thread_allow.end();
45407 Xapian::SetPythonException();
45411 _swig_thread_allow.end();
45413 resultobj = SWIG_Python_NewPointerObj((new Xapian::MSet(static_cast< const Xapian::MSet& >(result))), swig_types[28], 0x1 | 0);
45418 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_get_mset__SWIG_4(PyObject *, int nobjs, PyObject **swig_obj) {
45419 PyObject *resultobj = 0;
45420 Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
45421 Xapian::doccount arg2 ;
45422 Xapian::doccount arg3 ;
45425 unsigned int val2 ;
45427 unsigned int val3 ;
45429 Xapian::MSet result;
45430 if ((nobjs < 3) || (nobjs > 3)) goto fail;
45431 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[18], 0 | 0, 0);
45432 if (!(res1 >= 0)) {
45433 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Enquire_get_mset" "', argument " "1"" of type '" "Xapian::Enquire const *""'"); goto fail; } while(0);
45435 arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
45436 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
45437 if (!(ecode2 >= 0)) {
45438 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Enquire_get_mset" "', argument " "2"" of type '" "Xapian::doccount""'"); goto fail; } while(0);
45440 arg2 = static_cast< Xapian::doccount >(val2);
45441 ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
45442 if (!(ecode3 >= 0)) {
45443 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "Enquire_get_mset" "', argument " "3"" of type '" "Xapian::doccount""'"); goto fail; } while(0);
45445 arg3 = static_cast< Xapian::doccount >(val3);
45447 SWIG_Python_Thread_Allow _swig_thread_allow;
45450 result = ((Xapian::Enquire const *)arg1)->get_mset(arg2,arg3);
45452 _swig_thread_allow.end();
45453 Xapian::SetPythonException();
45457 _swig_thread_allow.end();
45459 resultobj = SWIG_Python_NewPointerObj((new Xapian::MSet(static_cast< const Xapian::MSet& >(result))), swig_types[28], 0x1 | 0);
45464 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_get_mset__SWIG_5(PyObject *, int nobjs, PyObject **swig_obj) {
45465 PyObject *resultobj = 0;
45466 Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
45467 Xapian::doccount arg2 ;
45468 Xapian::doccount arg3 ;
45469 Xapian::RSet *arg4 = (Xapian::RSet *) 0 ;
45470 Xapian::MatchDecider *arg5 = (Xapian::MatchDecider *) 0 ;
45473 unsigned int val2 ;
45475 unsigned int val3 ;
45481 Xapian::MSet result;
45482 if ((nobjs < 5) || (nobjs > 5)) goto fail;
45483 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[18], 0 | 0, 0);
45484 if (!(res1 >= 0)) {
45485 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Enquire_get_mset" "', argument " "1"" of type '" "Xapian::Enquire const *""'"); goto fail; } while(0);
45487 arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
45488 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
45489 if (!(ecode2 >= 0)) {
45490 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Enquire_get_mset" "', argument " "2"" of type '" "Xapian::doccount""'"); goto fail; } while(0);
45492 arg2 = static_cast< Xapian::doccount >(val2);
45493 ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
45494 if (!(ecode3 >= 0)) {
45495 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "Enquire_get_mset" "', argument " "3"" of type '" "Xapian::doccount""'"); goto fail; } while(0);
45497 arg3 = static_cast< Xapian::doccount >(val3);
45498 res4 = SWIG_Python_ConvertPtrAndOwn(swig_obj[3], &argp4, swig_types[43], 0 | 0, 0);
45499 if (!(res4 >= 0)) {
45500 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (-1)) ? res4 : -5)), "in method '" "Enquire_get_mset" "', argument " "4"" of type '" "Xapian::RSet const *""'"); goto fail; } while(0);
45502 arg4 = reinterpret_cast< Xapian::RSet * >(argp4);
45503 res5 = SWIG_Python_ConvertPtrAndOwn(swig_obj[4], &argp5, swig_types[30], 0 | 0, 0);
45504 if (!(res5 >= 0)) {
45505 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res5 != (-1)) ? res5 : -5)), "in method '" "Enquire_get_mset" "', argument " "5"" of type '" "Xapian::MatchDecider const *""'"); goto fail; } while(0);
45507 arg5 = reinterpret_cast< Xapian::MatchDecider * >(argp5);
45509 SWIG_Python_Thread_Allow _swig_thread_allow;
45512 result = ((Xapian::Enquire const *)arg1)->get_mset(arg2,arg3,(Xapian::RSet const *)arg4,(Xapian::MatchDecider const *)arg5);
45514 _swig_thread_allow.end();
45515 Xapian::SetPythonException();
45519 _swig_thread_allow.end();
45521 resultobj = SWIG_Python_NewPointerObj((new Xapian::MSet(static_cast< const Xapian::MSet& >(result))), swig_types[28], 0x1 | 0);
45526 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_get_mset__SWIG_6(PyObject *, int nobjs, PyObject **swig_obj) {
45527 PyObject *resultobj = 0;
45528 Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
45529 Xapian::doccount arg2 ;
45530 Xapian::doccount arg3 ;
45531 Xapian::RSet *arg4 = (Xapian::RSet *) 0 ;
45534 unsigned int val2 ;
45536 unsigned int val3 ;
45540 Xapian::MSet result;
45541 if ((nobjs < 4) || (nobjs > 4)) goto fail;
45542 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[18], 0 | 0, 0);
45543 if (!(res1 >= 0)) {
45544 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Enquire_get_mset" "', argument " "1"" of type '" "Xapian::Enquire const *""'"); goto fail; } while(0);
45546 arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
45547 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
45548 if (!(ecode2 >= 0)) {
45549 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Enquire_get_mset" "', argument " "2"" of type '" "Xapian::doccount""'"); goto fail; } while(0);
45551 arg2 = static_cast< Xapian::doccount >(val2);
45552 ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
45553 if (!(ecode3 >= 0)) {
45554 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "Enquire_get_mset" "', argument " "3"" of type '" "Xapian::doccount""'"); goto fail; } while(0);
45556 arg3 = static_cast< Xapian::doccount >(val3);
45557 res4 = SWIG_Python_ConvertPtrAndOwn(swig_obj[3], &argp4, swig_types[43], 0 | 0, 0);
45558 if (!(res4 >= 0)) {
45559 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (-1)) ? res4 : -5)), "in method '" "Enquire_get_mset" "', argument " "4"" of type '" "Xapian::RSet const *""'"); goto fail; } while(0);
45561 arg4 = reinterpret_cast< Xapian::RSet * >(argp4);
45563 SWIG_Python_Thread_Allow _swig_thread_allow;
45566 result = ((Xapian::Enquire const *)arg1)->get_mset(arg2,arg3,(Xapian::RSet const *)arg4);
45568 _swig_thread_allow.end();
45569 Xapian::SetPythonException();
45573 _swig_thread_allow.end();
45575 resultobj = SWIG_Python_NewPointerObj((new Xapian::MSet(static_cast< const Xapian::MSet& >(result))), swig_types[28], 0x1 | 0);
45580 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_get_mset(PyObject *self, PyObject *args) {
45583 if (!(argc = SWIG_Python_UnpackTuple(args,"Enquire_get_mset",0,7,argv))) goto fail;
45586 return _wrap_Enquire_get_mset__SWIG_4(self, argc, argv);
45592 int res = SWIG_Python_ConvertPtrAndOwn(argv[3], &vptr, swig_types[43], 0, 0);
45593 _v = ((res >= 0) ? 1 : 0);
45595 if (!_v) goto check_2;
45596 return _wrap_Enquire_get_mset__SWIG_6(self, argc, argv);
45600 return _wrap_Enquire_get_mset__SWIG_3(self, argc, argv);
45606 int res = SWIG_Python_ConvertPtrAndOwn(argv[3], &vptr, swig_types[43], 0, 0);
45607 _v = ((res >= 0) ? 1 : 0);
45609 if (!_v) goto check_4;
45612 int res = SWIG_Python_ConvertPtrAndOwn(argv[4], &vptr, swig_types[30], 0, 0);
45613 _v = ((res >= 0) ? 1 : 0);
45615 if (!_v) goto check_4;
45616 return _wrap_Enquire_get_mset__SWIG_5(self, argc, argv);
45620 return _wrap_Enquire_get_mset__SWIG_2(self, argc, argv);
45623 return _wrap_Enquire_get_mset__SWIG_1(self, argc, argv);
45626 return _wrap_Enquire_get_mset__SWIG_0(self, argc, argv);
45629 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'Enquire_get_mset'.\n"
45630 " Possible C/C++ prototypes are:\n"
45631 " get_mset(Xapian::Enquire const *,Xapian::doccount,Xapian::doccount,Xapian::doccount,Xapian::RSet const *,Xapian::MatchDecider const *,Xapian::MatchDecider const *)\n"
45632 " get_mset(Xapian::Enquire const *,Xapian::doccount,Xapian::doccount,Xapian::doccount,Xapian::RSet const *,Xapian::MatchDecider const *)\n"
45633 " get_mset(Xapian::Enquire const *,Xapian::doccount,Xapian::doccount,Xapian::doccount,Xapian::RSet const *)\n"
45634 " get_mset(Xapian::Enquire const *,Xapian::doccount,Xapian::doccount,Xapian::doccount)\n"
45635 " get_mset(Xapian::Enquire const *,Xapian::doccount,Xapian::doccount)\n"
45636 " get_mset(Xapian::Enquire const *,Xapian::doccount,Xapian::doccount,Xapian::RSet const *,Xapian::MatchDecider const *)\n"
45637 " get_mset(Xapian::Enquire const *,Xapian::doccount,Xapian::doccount,Xapian::RSet const *)\n");
45640 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_get_eset__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
45641 PyObject *resultobj = 0;
45642 Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
45643 Xapian::termcount arg2 ;
45644 Xapian::RSet *arg3 = 0 ;
45647 Xapian::ExpandDecider *arg6 = (Xapian::ExpandDecider *) 0 ;
45650 unsigned int val2 ;
45660 Xapian::ESet result;
45661 if ((nobjs < 6) || (nobjs > 6)) goto fail;
45662 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[18], 0 | 0, 0);
45663 if (!(res1 >= 0)) {
45664 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Enquire_get_eset" "', argument " "1"" of type '" "Xapian::Enquire const *""'"); goto fail; } while(0);
45666 arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
45667 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
45668 if (!(ecode2 >= 0)) {
45669 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Enquire_get_eset" "', argument " "2"" of type '" "Xapian::termcount""'"); goto fail; } while(0);
45671 arg2 = static_cast< Xapian::termcount >(val2);
45672 res3 = SWIG_Python_ConvertPtrAndOwn(swig_obj[2], &argp3, swig_types[43], 0 | 0, 0);
45673 if (!(res3 >= 0)) {
45674 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (-1)) ? res3 : -5)), "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'"); goto fail; } while(0);
45677 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'"); goto fail; } while(0);
45679 arg3 = reinterpret_cast< Xapian::RSet * >(argp3);
45680 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
45681 if (!(ecode4 >= 0)) {
45682 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 != (-1)) ? ecode4 : -5)), "in method '" "Enquire_get_eset" "', argument " "4"" of type '" "int""'"); goto fail; } while(0);
45684 arg4 = static_cast< int >(val4);
45685 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
45686 if (!(ecode5 >= 0)) {
45687 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode5 != (-1)) ? ecode5 : -5)), "in method '" "Enquire_get_eset" "', argument " "5"" of type '" "double""'"); goto fail; } while(0);
45689 arg5 = static_cast< double >(val5);
45690 res6 = SWIG_Python_ConvertPtrAndOwn(swig_obj[5], &argp6, swig_types[20], 0 | 0, 0);
45691 if (!(res6 >= 0)) {
45692 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res6 != (-1)) ? res6 : -5)), "in method '" "Enquire_get_eset" "', argument " "6"" of type '" "Xapian::ExpandDecider const *""'"); goto fail; } while(0);
45694 arg6 = reinterpret_cast< Xapian::ExpandDecider * >(argp6);
45696 SWIG_Python_Thread_Allow _swig_thread_allow;
45699 result = ((Xapian::Enquire const *)arg1)->get_eset(arg2,(Xapian::RSet const &)*arg3,arg4,arg5,(Xapian::ExpandDecider const *)arg6);
45701 _swig_thread_allow.end();
45702 Xapian::SetPythonException();
45706 _swig_thread_allow.end();
45708 resultobj = SWIG_Python_NewPointerObj((new Xapian::ESet(static_cast< const Xapian::ESet& >(result))), swig_types[16], 0x1 | 0);
45713 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_get_eset__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
45714 PyObject *resultobj = 0;
45715 Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
45716 Xapian::termcount arg2 ;
45717 Xapian::RSet *arg3 = 0 ;
45722 unsigned int val2 ;
45730 Xapian::ESet result;
45731 if ((nobjs < 5) || (nobjs > 5)) goto fail;
45732 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[18], 0 | 0, 0);
45733 if (!(res1 >= 0)) {
45734 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Enquire_get_eset" "', argument " "1"" of type '" "Xapian::Enquire const *""'"); goto fail; } while(0);
45736 arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
45737 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
45738 if (!(ecode2 >= 0)) {
45739 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Enquire_get_eset" "', argument " "2"" of type '" "Xapian::termcount""'"); goto fail; } while(0);
45741 arg2 = static_cast< Xapian::termcount >(val2);
45742 res3 = SWIG_Python_ConvertPtrAndOwn(swig_obj[2], &argp3, swig_types[43], 0 | 0, 0);
45743 if (!(res3 >= 0)) {
45744 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (-1)) ? res3 : -5)), "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'"); goto fail; } while(0);
45747 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'"); goto fail; } while(0);
45749 arg3 = reinterpret_cast< Xapian::RSet * >(argp3);
45750 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
45751 if (!(ecode4 >= 0)) {
45752 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 != (-1)) ? ecode4 : -5)), "in method '" "Enquire_get_eset" "', argument " "4"" of type '" "int""'"); goto fail; } while(0);
45754 arg4 = static_cast< int >(val4);
45755 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
45756 if (!(ecode5 >= 0)) {
45757 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode5 != (-1)) ? ecode5 : -5)), "in method '" "Enquire_get_eset" "', argument " "5"" of type '" "double""'"); goto fail; } while(0);
45759 arg5 = static_cast< double >(val5);
45761 SWIG_Python_Thread_Allow _swig_thread_allow;
45764 result = ((Xapian::Enquire const *)arg1)->get_eset(arg2,(Xapian::RSet const &)*arg3,arg4,arg5);
45766 _swig_thread_allow.end();
45767 Xapian::SetPythonException();
45771 _swig_thread_allow.end();
45773 resultobj = SWIG_Python_NewPointerObj((new Xapian::ESet(static_cast< const Xapian::ESet& >(result))), swig_types[16], 0x1 | 0);
45778 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_get_eset__SWIG_2(PyObject *, int nobjs, PyObject **swig_obj) {
45779 PyObject *resultobj = 0;
45780 Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
45781 Xapian::termcount arg2 ;
45782 Xapian::RSet *arg3 = 0 ;
45786 unsigned int val2 ;
45792 Xapian::ESet result;
45793 if ((nobjs < 4) || (nobjs > 4)) goto fail;
45794 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[18], 0 | 0, 0);
45795 if (!(res1 >= 0)) {
45796 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Enquire_get_eset" "', argument " "1"" of type '" "Xapian::Enquire const *""'"); goto fail; } while(0);
45798 arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
45799 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
45800 if (!(ecode2 >= 0)) {
45801 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Enquire_get_eset" "', argument " "2"" of type '" "Xapian::termcount""'"); goto fail; } while(0);
45803 arg2 = static_cast< Xapian::termcount >(val2);
45804 res3 = SWIG_Python_ConvertPtrAndOwn(swig_obj[2], &argp3, swig_types[43], 0 | 0, 0);
45805 if (!(res3 >= 0)) {
45806 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (-1)) ? res3 : -5)), "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'"); goto fail; } while(0);
45809 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'"); goto fail; } while(0);
45811 arg3 = reinterpret_cast< Xapian::RSet * >(argp3);
45812 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
45813 if (!(ecode4 >= 0)) {
45814 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 != (-1)) ? ecode4 : -5)), "in method '" "Enquire_get_eset" "', argument " "4"" of type '" "int""'"); goto fail; } while(0);
45816 arg4 = static_cast< int >(val4);
45818 SWIG_Python_Thread_Allow _swig_thread_allow;
45821 result = ((Xapian::Enquire const *)arg1)->get_eset(arg2,(Xapian::RSet const &)*arg3,arg4);
45823 _swig_thread_allow.end();
45824 Xapian::SetPythonException();
45828 _swig_thread_allow.end();
45830 resultobj = SWIG_Python_NewPointerObj((new Xapian::ESet(static_cast< const Xapian::ESet& >(result))), swig_types[16], 0x1 | 0);
45835 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_get_eset__SWIG_3(PyObject *, int nobjs, PyObject **swig_obj) {
45836 PyObject *resultobj = 0;
45837 Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
45838 Xapian::termcount arg2 ;
45839 Xapian::RSet *arg3 = 0 ;
45842 unsigned int val2 ;
45846 Xapian::ESet result;
45847 if ((nobjs < 3) || (nobjs > 3)) goto fail;
45848 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[18], 0 | 0, 0);
45849 if (!(res1 >= 0)) {
45850 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Enquire_get_eset" "', argument " "1"" of type '" "Xapian::Enquire const *""'"); goto fail; } while(0);
45852 arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
45853 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
45854 if (!(ecode2 >= 0)) {
45855 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Enquire_get_eset" "', argument " "2"" of type '" "Xapian::termcount""'"); goto fail; } while(0);
45857 arg2 = static_cast< Xapian::termcount >(val2);
45858 res3 = SWIG_Python_ConvertPtrAndOwn(swig_obj[2], &argp3, swig_types[43], 0 | 0, 0);
45859 if (!(res3 >= 0)) {
45860 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (-1)) ? res3 : -5)), "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'"); goto fail; } while(0);
45863 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'"); goto fail; } while(0);
45865 arg3 = reinterpret_cast< Xapian::RSet * >(argp3);
45867 SWIG_Python_Thread_Allow _swig_thread_allow;
45870 result = ((Xapian::Enquire const *)arg1)->get_eset(arg2,(Xapian::RSet const &)*arg3);
45872 _swig_thread_allow.end();
45873 Xapian::SetPythonException();
45877 _swig_thread_allow.end();
45879 resultobj = SWIG_Python_NewPointerObj((new Xapian::ESet(static_cast< const Xapian::ESet& >(result))), swig_types[16], 0x1 | 0);
45884 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_get_eset__SWIG_4(PyObject *, int nobjs, PyObject **swig_obj) {
45885 PyObject *resultobj = 0;
45886 Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
45887 Xapian::termcount arg2 ;
45888 Xapian::RSet *arg3 = 0 ;
45889 Xapian::ExpandDecider *arg4 = (Xapian::ExpandDecider *) 0 ;
45892 unsigned int val2 ;
45898 Xapian::ESet result;
45899 if ((nobjs < 4) || (nobjs > 4)) goto fail;
45900 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[18], 0 | 0, 0);
45901 if (!(res1 >= 0)) {
45902 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Enquire_get_eset" "', argument " "1"" of type '" "Xapian::Enquire const *""'"); goto fail; } while(0);
45904 arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
45905 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
45906 if (!(ecode2 >= 0)) {
45907 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Enquire_get_eset" "', argument " "2"" of type '" "Xapian::termcount""'"); goto fail; } while(0);
45909 arg2 = static_cast< Xapian::termcount >(val2);
45910 res3 = SWIG_Python_ConvertPtrAndOwn(swig_obj[2], &argp3, swig_types[43], 0 | 0, 0);
45911 if (!(res3 >= 0)) {
45912 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (-1)) ? res3 : -5)), "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'"); goto fail; } while(0);
45915 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'"); goto fail; } while(0);
45917 arg3 = reinterpret_cast< Xapian::RSet * >(argp3);
45918 res4 = SWIG_Python_ConvertPtrAndOwn(swig_obj[3], &argp4, swig_types[20], 0 | 0, 0);
45919 if (!(res4 >= 0)) {
45920 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (-1)) ? res4 : -5)), "in method '" "Enquire_get_eset" "', argument " "4"" of type '" "Xapian::ExpandDecider const *""'"); goto fail; } while(0);
45922 arg4 = reinterpret_cast< Xapian::ExpandDecider * >(argp4);
45924 SWIG_Python_Thread_Allow _swig_thread_allow;
45927 result = ((Xapian::Enquire const *)arg1)->get_eset(arg2,(Xapian::RSet const &)*arg3,(Xapian::ExpandDecider const *)arg4);
45929 _swig_thread_allow.end();
45930 Xapian::SetPythonException();
45934 _swig_thread_allow.end();
45936 resultobj = SWIG_Python_NewPointerObj((new Xapian::ESet(static_cast< const Xapian::ESet& >(result))), swig_types[16], 0x1 | 0);
45941 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_get_eset(PyObject *self, PyObject *args) {
45944 if (!(argc = SWIG_Python_UnpackTuple(args,"Enquire_get_eset",0,6,argv))) goto fail;
45947 return _wrap_Enquire_get_eset__SWIG_3(self, argc, argv);
45953 int res = SWIG_Python_ConvertPtrAndOwn(argv[3], &vptr, swig_types[20], 0, 0);
45954 _v = ((res >= 0) ? 1 : 0);
45956 if (!_v) goto check_2;
45957 return _wrap_Enquire_get_eset__SWIG_4(self, argc, argv);
45961 return _wrap_Enquire_get_eset__SWIG_2(self, argc, argv);
45964 return _wrap_Enquire_get_eset__SWIG_1(self, argc, argv);
45967 return _wrap_Enquire_get_eset__SWIG_0(self, argc, argv);
45970 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'Enquire_get_eset'.\n"
45971 " Possible C/C++ prototypes are:\n"
45972 " get_eset(Xapian::Enquire const *,Xapian::termcount,Xapian::RSet const &,int,double,Xapian::ExpandDecider const *)\n"
45973 " get_eset(Xapian::Enquire const *,Xapian::termcount,Xapian::RSet const &,int,double)\n"
45974 " get_eset(Xapian::Enquire const *,Xapian::termcount,Xapian::RSet const &,int)\n"
45975 " get_eset(Xapian::Enquire const *,Xapian::termcount,Xapian::RSet const &)\n"
45976 " get_eset(Xapian::Enquire const *,Xapian::termcount,Xapian::RSet const &,Xapian::ExpandDecider const *)\n");
45979 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_get_matching_terms_begin__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
45980 PyObject *resultobj = 0;
45981 Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
45982 Xapian::docid arg2 ;
45985 unsigned int val2 ;
45987 Xapian::TermIterator result;
45988 if ((nobjs < 2) || (nobjs > 2)) goto fail;
45989 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[18], 0 | 0, 0);
45990 if (!(res1 >= 0)) {
45991 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Enquire_get_matching_terms_begin" "', argument " "1"" of type '" "Xapian::Enquire const *""'"); goto fail; } while(0);
45993 arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
45994 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
45995 if (!(ecode2 >= 0)) {
45996 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Enquire_get_matching_terms_begin" "', argument " "2"" of type '" "Xapian::docid""'"); goto fail; } while(0);
45998 arg2 = static_cast< Xapian::docid >(val2);
46000 SWIG_Python_Thread_Allow _swig_thread_allow;
46003 result = ((Xapian::Enquire const *)arg1)->get_matching_terms_begin(arg2);
46005 _swig_thread_allow.end();
46006 Xapian::SetPythonException();
46010 _swig_thread_allow.end();
46012 resultobj = SWIG_Python_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), swig_types[55], 0x1 | 0);
46017 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_get_matching_terms_end__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
46018 PyObject *resultobj = 0;
46019 Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
46020 Xapian::docid arg2 ;
46023 unsigned int val2 ;
46025 Xapian::TermIterator result;
46026 if ((nobjs < 2) || (nobjs > 2)) goto fail;
46027 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[18], 0 | 0, 0);
46028 if (!(res1 >= 0)) {
46029 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Enquire_get_matching_terms_end" "', argument " "1"" of type '" "Xapian::Enquire const *""'"); goto fail; } while(0);
46031 arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
46032 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
46033 if (!(ecode2 >= 0)) {
46034 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Enquire_get_matching_terms_end" "', argument " "2"" of type '" "Xapian::docid""'"); goto fail; } while(0);
46036 arg2 = static_cast< Xapian::docid >(val2);
46038 SWIG_Python_Thread_Allow _swig_thread_allow;
46041 result = ((Xapian::Enquire const *)arg1)->get_matching_terms_end(arg2);
46043 _swig_thread_allow.end();
46044 Xapian::SetPythonException();
46048 _swig_thread_allow.end();
46050 resultobj = SWIG_Python_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), swig_types[55], 0x1 | 0);
46055 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_get_matching_terms_begin__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
46056 PyObject *resultobj = 0;
46057 Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
46058 Xapian::MSetIterator *arg2 = 0 ;
46063 Xapian::TermIterator result;
46064 if ((nobjs < 2) || (nobjs > 2)) goto fail;
46065 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[18], 0 | 0, 0);
46066 if (!(res1 >= 0)) {
46067 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Enquire_get_matching_terms_begin" "', argument " "1"" of type '" "Xapian::Enquire const *""'"); goto fail; } while(0);
46069 arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
46070 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[29], 0 | 0, 0);
46071 if (!(res2 >= 0)) {
46072 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Enquire_get_matching_terms_begin" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'"); goto fail; } while(0);
46075 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Enquire_get_matching_terms_begin" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'"); goto fail; } while(0);
46077 arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
46079 SWIG_Python_Thread_Allow _swig_thread_allow;
46082 result = ((Xapian::Enquire const *)arg1)->get_matching_terms_begin((Xapian::MSetIterator const &)*arg2);
46084 _swig_thread_allow.end();
46085 Xapian::SetPythonException();
46089 _swig_thread_allow.end();
46091 resultobj = SWIG_Python_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), swig_types[55], 0x1 | 0);
46096 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_get_matching_terms_begin(PyObject *self, PyObject *args) {
46099 if (!(argc = SWIG_Python_UnpackTuple(args,"Enquire_get_matching_terms_begin",0,2,argv))) goto fail;
46104 int res = SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[29], 0, 0);
46105 _v = ((res >= 0) ? 1 : 0);
46107 if (!_v) goto check_1;
46108 return _wrap_Enquire_get_matching_terms_begin__SWIG_1(self, argc, argv);
46112 return _wrap_Enquire_get_matching_terms_begin__SWIG_0(self, argc, argv);
46115 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'Enquire_get_matching_terms_begin'.\n"
46116 " Possible C/C++ prototypes are:\n"
46117 " get_matching_terms_begin(Xapian::Enquire const *,Xapian::docid)\n"
46118 " get_matching_terms_begin(Xapian::Enquire const *,Xapian::MSetIterator const &)\n");
46121 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_get_matching_terms_end__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
46122 PyObject *resultobj = 0;
46123 Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
46124 Xapian::MSetIterator *arg2 = 0 ;
46129 Xapian::TermIterator result;
46130 if ((nobjs < 2) || (nobjs > 2)) goto fail;
46131 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[18], 0 | 0, 0);
46132 if (!(res1 >= 0)) {
46133 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Enquire_get_matching_terms_end" "', argument " "1"" of type '" "Xapian::Enquire const *""'"); goto fail; } while(0);
46135 arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
46136 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[29], 0 | 0, 0);
46137 if (!(res2 >= 0)) {
46138 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Enquire_get_matching_terms_end" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'"); goto fail; } while(0);
46141 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Enquire_get_matching_terms_end" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'"); goto fail; } while(0);
46143 arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
46145 SWIG_Python_Thread_Allow _swig_thread_allow;
46148 result = ((Xapian::Enquire const *)arg1)->get_matching_terms_end((Xapian::MSetIterator const &)*arg2);
46150 _swig_thread_allow.end();
46151 Xapian::SetPythonException();
46155 _swig_thread_allow.end();
46157 resultobj = SWIG_Python_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), swig_types[55], 0x1 | 0);
46162 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_get_matching_terms_end(PyObject *self, PyObject *args) {
46165 if (!(argc = SWIG_Python_UnpackTuple(args,"Enquire_get_matching_terms_end",0,2,argv))) goto fail;
46170 int res = SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[29], 0, 0);
46171 _v = ((res >= 0) ? 1 : 0);
46173 if (!_v) goto check_1;
46174 return _wrap_Enquire_get_matching_terms_end__SWIG_1(self, argc, argv);
46178 return _wrap_Enquire_get_matching_terms_end__SWIG_0(self, argc, argv);
46181 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'Enquire_get_matching_terms_end'.\n"
46182 " Possible C/C++ prototypes are:\n"
46183 " get_matching_terms_end(Xapian::Enquire const *,Xapian::docid)\n"
46184 " get_matching_terms_end(Xapian::Enquire const *,Xapian::MSetIterator const &)\n");
46187 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire_get_matching_terms(PyObject *, PyObject *args) {
46188 PyObject *resultobj = 0;
46189 Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
46190 Xapian::MSetIterator *arg2 = 0 ;
46195 PyObject *swig_obj[2] ;
46196 std::pair< Xapian::TermIterator,Xapian::TermIterator > result;
46197 if (!SWIG_Python_UnpackTuple(args,"Enquire_get_matching_terms",2,2,swig_obj)) goto fail;
46198 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[18], 0 | 0, 0);
46199 if (!(res1 >= 0)) {
46200 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Enquire_get_matching_terms" "', argument " "1"" of type '" "Xapian::Enquire const *""'"); goto fail; } while(0);
46202 arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
46203 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[29], 0 | 0, 0);
46204 if (!(res2 >= 0)) {
46205 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Enquire_get_matching_terms" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'"); goto fail; } while(0);
46208 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Enquire_get_matching_terms" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'"); goto fail; } while(0);
46210 arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
46212 SWIG_Python_Thread_Allow _swig_thread_allow;
46215 result = Xapian_Enquire_get_matching_terms((Xapian::Enquire const *)arg1,(Xapian::MSetIterator const &)*arg2);
46217 _swig_thread_allow.end();
46218 Xapian::SetPythonException();
46222 _swig_thread_allow.end();
46225 resultobj = PyList_New(0);
46226 if (resultobj == 0) {
46229 for (Xapian::TermIterator i = (&result)->first; i != (&result)->second; ++i) {
46230 PyObject * str = PyString_FromStringAndSize((*i).data(), (*i).size());
46231 if (str == 0) return __null;
46232 if (PyList_Append(resultobj, str) == -1) {
46233 if ( --((PyObject*)(str))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(str)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(str))));
46236 if ( --((PyObject*)(str))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(str)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(str))));
46243 static __attribute__ ((__unused__)) PyObject *_wrap_Enquire___str__(PyObject *, PyObject *args) {
46244 PyObject *resultobj = 0;
46245 Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
46248 PyObject *swig_obj[1] ;
46249 std::string result;
46250 if (!args) goto fail;
46251 swig_obj[0] = args;
46252 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[18], 0 | 0, 0);
46253 if (!(res1 >= 0)) {
46254 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Enquire___str__" "', argument " "1"" of type '" "Xapian::Enquire const *""'"); goto fail; } while(0);
46256 arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
46258 SWIG_Python_Thread_Allow _swig_thread_allow;
46261 result = ((Xapian::Enquire const *)arg1)->get_description();
46263 _swig_thread_allow.end();
46264 Xapian::SetPythonException();
46268 _swig_thread_allow.end();
46270 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
46275 static __attribute__ ((__unused__)) PyObject *Enquire_swigregister(PyObject *, PyObject *args) {
46277 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
46278 SWIG_TypeNewClientData(swig_types[18], SwigPyClientData_New(obj));
46279 return SWIG_Py_Void();
46281 static __attribute__ ((__unused__)) PyObject *Enquire_swiginit(PyObject *, PyObject *args) {
46282 return SWIG_Python_InitShadowInstance(args);
46284 static __attribute__ ((__unused__)) PyObject *_wrap_new_Registry__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
46285 PyObject *resultobj = 0;
46286 Xapian::Registry *arg1 = 0 ;
46289 Xapian::Registry *result = 0 ;
46290 if ((nobjs < 1) || (nobjs > 1)) goto fail;
46291 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[45], 0 | 0, 0);
46292 if (!(res1 >= 0)) {
46293 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_Registry" "', argument " "1"" of type '" "Xapian::Registry const &""'"); goto fail; } while(0);
46296 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_Registry" "', argument " "1"" of type '" "Xapian::Registry const &""'"); goto fail; } while(0);
46298 arg1 = reinterpret_cast< Xapian::Registry * >(argp1);
46300 SWIG_Python_Thread_Allow _swig_thread_allow;
46303 result = (Xapian::Registry *)new Xapian::Registry((Xapian::Registry const &)*arg1);
46305 _swig_thread_allow.end();
46306 Xapian::SetPythonException();
46310 _swig_thread_allow.end();
46312 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[45], ((0x1 << 1) | 0x1) | 0);
46317 static __attribute__ ((__unused__)) PyObject *_wrap_new_Registry__SWIG_1(PyObject *, int nobjs, PyObject **) {
46318 PyObject *resultobj = 0;
46319 Xapian::Registry *result = 0 ;
46320 if ((nobjs < 0) || (nobjs > 0)) goto fail;
46322 SWIG_Python_Thread_Allow _swig_thread_allow;
46325 result = (Xapian::Registry *)new Xapian::Registry();
46327 _swig_thread_allow.end();
46328 Xapian::SetPythonException();
46332 _swig_thread_allow.end();
46334 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[45], ((0x1 << 1) | 0x1) | 0);
46339 static __attribute__ ((__unused__)) PyObject *_wrap_new_Registry(PyObject *self, PyObject *args) {
46342 if (!(argc = SWIG_Python_UnpackTuple(args,"new_Registry",0,1,argv))) goto fail;
46345 return _wrap_new_Registry__SWIG_1(self, argc, argv);
46348 return _wrap_new_Registry__SWIG_0(self, argc, argv);
46351 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_Registry'.\n"
46352 " Possible C/C++ prototypes are:\n"
46353 " Xapian::Registry(Xapian::Registry const &)\n"
46354 " Xapian::Registry()\n");
46357 static __attribute__ ((__unused__)) PyObject *_wrap_delete_Registry(PyObject *, PyObject *args) {
46358 PyObject *resultobj = 0;
46359 Xapian::Registry *arg1 = (Xapian::Registry *) 0 ;
46362 PyObject *swig_obj[1] ;
46363 if (!args) goto fail;
46364 swig_obj[0] = args;
46365 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[45], 0x1 | 0, 0);
46366 if (!(res1 >= 0)) {
46367 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_Registry" "', argument " "1"" of type '" "Xapian::Registry *""'"); goto fail; } while(0);
46369 arg1 = reinterpret_cast< Xapian::Registry * >(argp1);
46371 SWIG_Python_Thread_Allow _swig_thread_allow;
46376 _swig_thread_allow.end();
46377 Xapian::SetPythonException();
46381 _swig_thread_allow.end();
46383 resultobj = SWIG_Py_Void();
46388 static __attribute__ ((__unused__)) PyObject *_wrap_Registry_register_weighting_scheme(PyObject *, PyObject *args) {
46389 PyObject *resultobj = 0;
46390 Xapian::Registry *arg1 = (Xapian::Registry *) 0 ;
46391 Xapian::Weight *arg2 = 0 ;
46396 PyObject *swig_obj[2] ;
46397 if (!SWIG_Python_UnpackTuple(args,"Registry_register_weighting_scheme",2,2,swig_obj)) goto fail;
46398 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[45], 0 | 0, 0);
46399 if (!(res1 >= 0)) {
46400 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Registry_register_weighting_scheme" "', argument " "1"" of type '" "Xapian::Registry *""'"); goto fail; } while(0);
46402 arg1 = reinterpret_cast< Xapian::Registry * >(argp1);
46403 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[65], 0 | 0, 0);
46404 if (!(res2 >= 0)) {
46405 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Registry_register_weighting_scheme" "', argument " "2"" of type '" "Xapian::Weight const &""'"); goto fail; } while(0);
46408 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Registry_register_weighting_scheme" "', argument " "2"" of type '" "Xapian::Weight const &""'"); goto fail; } while(0);
46410 arg2 = reinterpret_cast< Xapian::Weight * >(argp2);
46412 SWIG_Python_Thread_Allow _swig_thread_allow;
46415 (arg1)->register_weighting_scheme((Xapian::Weight const &)*arg2);
46417 _swig_thread_allow.end();
46418 Xapian::SetPythonException();
46422 _swig_thread_allow.end();
46424 resultobj = SWIG_Py_Void();
46429 static __attribute__ ((__unused__)) PyObject *_wrap_Registry_get_weighting_scheme(PyObject *, PyObject *args) {
46430 PyObject *resultobj = 0;
46431 Xapian::Registry *arg1 = (Xapian::Registry *) 0 ;
46432 std::string *arg2 = 0 ;
46436 PyObject *swig_obj[2] ;
46437 Xapian::Weight *result = 0 ;
46438 if (!SWIG_Python_UnpackTuple(args,"Registry_get_weighting_scheme",2,2,swig_obj)) goto fail;
46439 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[45], 0 | 0, 0);
46440 if (!(res1 >= 0)) {
46441 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Registry_get_weighting_scheme" "', argument " "1"" of type '" "Xapian::Registry const *""'"); goto fail; } while(0);
46443 arg1 = reinterpret_cast< Xapian::Registry * >(argp1);
46445 std::string *ptr = (std::string *)0;
46446 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
46447 if (!(res2 >= 0)) {
46448 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Registry_get_weighting_scheme" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
46451 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Registry_get_weighting_scheme" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
46456 SWIG_Python_Thread_Allow _swig_thread_allow;
46459 result = (Xapian::Weight *)((Xapian::Registry const *)arg1)->get_weighting_scheme((std::string const &)*arg2);
46461 _swig_thread_allow.end();
46462 Xapian::SetPythonException();
46466 _swig_thread_allow.end();
46468 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[65], 0 | 0);
46469 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
46472 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
46475 static __attribute__ ((__unused__)) PyObject *_wrap_Registry_register_posting_source(PyObject *, PyObject *args) {
46476 PyObject *resultobj = 0;
46477 Xapian::Registry *arg1 = (Xapian::Registry *) 0 ;
46478 Xapian::PostingSource *arg2 = 0 ;
46483 PyObject *swig_obj[2] ;
46484 if (!SWIG_Python_UnpackTuple(args,"Registry_register_posting_source",2,2,swig_obj)) goto fail;
46485 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[45], 0 | 0, 0);
46486 if (!(res1 >= 0)) {
46487 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Registry_register_posting_source" "', argument " "1"" of type '" "Xapian::Registry *""'"); goto fail; } while(0);
46489 arg1 = reinterpret_cast< Xapian::Registry * >(argp1);
46490 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[39], 0 | 0, 0);
46491 if (!(res2 >= 0)) {
46492 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Registry_register_posting_source" "', argument " "2"" of type '" "Xapian::PostingSource const &""'"); goto fail; } while(0);
46495 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Registry_register_posting_source" "', argument " "2"" of type '" "Xapian::PostingSource const &""'"); goto fail; } while(0);
46497 arg2 = reinterpret_cast< Xapian::PostingSource * >(argp2);
46499 SWIG_Python_Thread_Allow _swig_thread_allow;
46502 (arg1)->register_posting_source((Xapian::PostingSource const &)*arg2);
46504 _swig_thread_allow.end();
46505 Xapian::SetPythonException();
46509 _swig_thread_allow.end();
46511 resultobj = SWIG_Py_Void();
46516 static __attribute__ ((__unused__)) PyObject *_wrap_Registry_get_posting_source(PyObject *, PyObject *args) {
46517 PyObject *resultobj = 0;
46518 Xapian::Registry *arg1 = (Xapian::Registry *) 0 ;
46519 std::string *arg2 = 0 ;
46523 PyObject *swig_obj[2] ;
46524 Swig::Director *director = 0;
46525 Xapian::PostingSource *result = 0 ;
46526 if (!SWIG_Python_UnpackTuple(args,"Registry_get_posting_source",2,2,swig_obj)) goto fail;
46527 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[45], 0 | 0, 0);
46528 if (!(res1 >= 0)) {
46529 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Registry_get_posting_source" "', argument " "1"" of type '" "Xapian::Registry const *""'"); goto fail; } while(0);
46531 arg1 = reinterpret_cast< Xapian::Registry * >(argp1);
46533 std::string *ptr = (std::string *)0;
46534 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
46535 if (!(res2 >= 0)) {
46536 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Registry_get_posting_source" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
46539 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Registry_get_posting_source" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
46544 SWIG_Python_Thread_Allow _swig_thread_allow;
46547 result = (Xapian::PostingSource *)((Xapian::Registry const *)arg1)->get_posting_source((std::string const &)*arg2);
46549 _swig_thread_allow.end();
46550 Xapian::SetPythonException();
46554 _swig_thread_allow.end();
46556 director = dynamic_cast<Swig::Director*>(result);
46558 resultobj = director->swig_get_self();
46559 ( ((PyObject*)(resultobj))->ob_refcnt++);
46561 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[39], 0 | 0);
46563 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
46566 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
46569 static __attribute__ ((__unused__)) PyObject *_wrap_Registry_register_match_spy(PyObject *, PyObject *args) {
46570 PyObject *resultobj = 0;
46571 Xapian::Registry *arg1 = (Xapian::Registry *) 0 ;
46572 Xapian::MatchSpy *arg2 = 0 ;
46577 PyObject *swig_obj[2] ;
46578 if (!SWIG_Python_UnpackTuple(args,"Registry_register_match_spy",2,2,swig_obj)) goto fail;
46579 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[45], 0 | 0, 0);
46580 if (!(res1 >= 0)) {
46581 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Registry_register_match_spy" "', argument " "1"" of type '" "Xapian::Registry *""'"); goto fail; } while(0);
46583 arg1 = reinterpret_cast< Xapian::Registry * >(argp1);
46584 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[31], 0 | 0, 0);
46585 if (!(res2 >= 0)) {
46586 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Registry_register_match_spy" "', argument " "2"" of type '" "Xapian::MatchSpy const &""'"); goto fail; } while(0);
46589 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Registry_register_match_spy" "', argument " "2"" of type '" "Xapian::MatchSpy const &""'"); goto fail; } while(0);
46591 arg2 = reinterpret_cast< Xapian::MatchSpy * >(argp2);
46593 SWIG_Python_Thread_Allow _swig_thread_allow;
46596 (arg1)->register_match_spy((Xapian::MatchSpy const &)*arg2);
46598 _swig_thread_allow.end();
46599 Xapian::SetPythonException();
46603 _swig_thread_allow.end();
46605 resultobj = SWIG_Py_Void();
46610 static __attribute__ ((__unused__)) PyObject *_wrap_Registry_get_match_spy(PyObject *, PyObject *args) {
46611 PyObject *resultobj = 0;
46612 Xapian::Registry *arg1 = (Xapian::Registry *) 0 ;
46613 std::string *arg2 = 0 ;
46617 PyObject *swig_obj[2] ;
46618 Xapian::MatchSpy *result = 0 ;
46619 if (!SWIG_Python_UnpackTuple(args,"Registry_get_match_spy",2,2,swig_obj)) goto fail;
46620 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[45], 0 | 0, 0);
46621 if (!(res1 >= 0)) {
46622 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Registry_get_match_spy" "', argument " "1"" of type '" "Xapian::Registry const *""'"); goto fail; } while(0);
46624 arg1 = reinterpret_cast< Xapian::Registry * >(argp1);
46626 std::string *ptr = (std::string *)0;
46627 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
46628 if (!(res2 >= 0)) {
46629 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Registry_get_match_spy" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
46632 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Registry_get_match_spy" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
46637 SWIG_Python_Thread_Allow _swig_thread_allow;
46640 result = (Xapian::MatchSpy *)((Xapian::Registry const *)arg1)->get_match_spy((std::string const &)*arg2);
46642 _swig_thread_allow.end();
46643 Xapian::SetPythonException();
46647 _swig_thread_allow.end();
46649 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[31], 0 | 0);
46650 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
46653 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
46656 static __attribute__ ((__unused__)) PyObject *Registry_swigregister(PyObject *, PyObject *args) {
46658 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
46659 SWIG_TypeNewClientData(swig_types[45], SwigPyClientData_New(obj));
46660 return SWIG_Py_Void();
46662 static __attribute__ ((__unused__)) PyObject *Registry_swiginit(PyObject *, PyObject *args) {
46663 return SWIG_Python_InitShadowInstance(args);
46665 static __attribute__ ((__unused__)) PyObject *_wrap_delete_Weight(PyObject *, PyObject *args) {
46666 PyObject *resultobj = 0;
46667 Xapian::Weight *arg1 = (Xapian::Weight *) 0 ;
46670 PyObject *swig_obj[1] ;
46671 if (!args) goto fail;
46672 swig_obj[0] = args;
46673 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[65], 0x1 | 0, 0);
46674 if (!(res1 >= 0)) {
46675 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_Weight" "', argument " "1"" of type '" "Xapian::Weight *""'"); goto fail; } while(0);
46677 arg1 = reinterpret_cast< Xapian::Weight * >(argp1);
46679 SWIG_Python_Thread_Allow _swig_thread_allow;
46684 _swig_thread_allow.end();
46685 Xapian::SetPythonException();
46689 _swig_thread_allow.end();
46691 resultobj = SWIG_Py_Void();
46696 static __attribute__ ((__unused__)) PyObject *_wrap_Weight_name(PyObject *, PyObject *args) {
46697 PyObject *resultobj = 0;
46698 Xapian::Weight *arg1 = (Xapian::Weight *) 0 ;
46701 PyObject *swig_obj[1] ;
46702 std::string result;
46703 if (!args) goto fail;
46704 swig_obj[0] = args;
46705 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[65], 0 | 0, 0);
46706 if (!(res1 >= 0)) {
46707 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Weight_name" "', argument " "1"" of type '" "Xapian::Weight const *""'"); goto fail; } while(0);
46709 arg1 = reinterpret_cast< Xapian::Weight * >(argp1);
46711 SWIG_Python_Thread_Allow _swig_thread_allow;
46714 result = ((Xapian::Weight const *)arg1)->name();
46716 _swig_thread_allow.end();
46717 Xapian::SetPythonException();
46721 _swig_thread_allow.end();
46723 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
46728 static __attribute__ ((__unused__)) PyObject *_wrap_Weight_get_sumpart(PyObject *, PyObject *args) {
46729 PyObject *resultobj = 0;
46730 Xapian::Weight *arg1 = (Xapian::Weight *) 0 ;
46731 Xapian::termcount arg2 ;
46732 Xapian::termcount arg3 ;
46735 unsigned int val2 ;
46737 unsigned int val3 ;
46739 PyObject *swig_obj[3] ;
46740 Xapian::weight result;
46741 if (!SWIG_Python_UnpackTuple(args,"Weight_get_sumpart",3,3,swig_obj)) goto fail;
46742 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[65], 0 | 0, 0);
46743 if (!(res1 >= 0)) {
46744 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Weight_get_sumpart" "', argument " "1"" of type '" "Xapian::Weight const *""'"); goto fail; } while(0);
46746 arg1 = reinterpret_cast< Xapian::Weight * >(argp1);
46747 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
46748 if (!(ecode2 >= 0)) {
46749 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Weight_get_sumpart" "', argument " "2"" of type '" "Xapian::termcount""'"); goto fail; } while(0);
46751 arg2 = static_cast< Xapian::termcount >(val2);
46752 ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
46753 if (!(ecode3 >= 0)) {
46754 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "Weight_get_sumpart" "', argument " "3"" of type '" "Xapian::termcount""'"); goto fail; } while(0);
46756 arg3 = static_cast< Xapian::termcount >(val3);
46758 SWIG_Python_Thread_Allow _swig_thread_allow;
46761 result = (Xapian::weight)((Xapian::Weight const *)arg1)->get_sumpart(arg2,arg3);
46763 _swig_thread_allow.end();
46764 Xapian::SetPythonException();
46768 _swig_thread_allow.end();
46770 resultobj = PyFloat_FromDouble(static_cast< double >(result));
46775 static __attribute__ ((__unused__)) PyObject *_wrap_Weight_get_maxpart(PyObject *, PyObject *args) {
46776 PyObject *resultobj = 0;
46777 Xapian::Weight *arg1 = (Xapian::Weight *) 0 ;
46780 PyObject *swig_obj[1] ;
46781 Xapian::weight result;
46782 if (!args) goto fail;
46783 swig_obj[0] = args;
46784 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[65], 0 | 0, 0);
46785 if (!(res1 >= 0)) {
46786 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Weight_get_maxpart" "', argument " "1"" of type '" "Xapian::Weight const *""'"); goto fail; } while(0);
46788 arg1 = reinterpret_cast< Xapian::Weight * >(argp1);
46790 SWIG_Python_Thread_Allow _swig_thread_allow;
46793 result = (Xapian::weight)((Xapian::Weight const *)arg1)->get_maxpart();
46795 _swig_thread_allow.end();
46796 Xapian::SetPythonException();
46800 _swig_thread_allow.end();
46802 resultobj = PyFloat_FromDouble(static_cast< double >(result));
46807 static __attribute__ ((__unused__)) PyObject *_wrap_Weight_get_sumextra(PyObject *, PyObject *args) {
46808 PyObject *resultobj = 0;
46809 Xapian::Weight *arg1 = (Xapian::Weight *) 0 ;
46810 Xapian::termcount arg2 ;
46813 unsigned int val2 ;
46815 PyObject *swig_obj[2] ;
46816 Xapian::weight result;
46817 if (!SWIG_Python_UnpackTuple(args,"Weight_get_sumextra",2,2,swig_obj)) goto fail;
46818 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[65], 0 | 0, 0);
46819 if (!(res1 >= 0)) {
46820 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Weight_get_sumextra" "', argument " "1"" of type '" "Xapian::Weight const *""'"); goto fail; } while(0);
46822 arg1 = reinterpret_cast< Xapian::Weight * >(argp1);
46823 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
46824 if (!(ecode2 >= 0)) {
46825 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Weight_get_sumextra" "', argument " "2"" of type '" "Xapian::termcount""'"); goto fail; } while(0);
46827 arg2 = static_cast< Xapian::termcount >(val2);
46829 SWIG_Python_Thread_Allow _swig_thread_allow;
46832 result = (Xapian::weight)((Xapian::Weight const *)arg1)->get_sumextra(arg2);
46834 _swig_thread_allow.end();
46835 Xapian::SetPythonException();
46839 _swig_thread_allow.end();
46841 resultobj = PyFloat_FromDouble(static_cast< double >(result));
46846 static __attribute__ ((__unused__)) PyObject *_wrap_Weight_get_maxextra(PyObject *, PyObject *args) {
46847 PyObject *resultobj = 0;
46848 Xapian::Weight *arg1 = (Xapian::Weight *) 0 ;
46851 PyObject *swig_obj[1] ;
46852 Xapian::weight result;
46853 if (!args) goto fail;
46854 swig_obj[0] = args;
46855 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[65], 0 | 0, 0);
46856 if (!(res1 >= 0)) {
46857 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Weight_get_maxextra" "', argument " "1"" of type '" "Xapian::Weight const *""'"); goto fail; } while(0);
46859 arg1 = reinterpret_cast< Xapian::Weight * >(argp1);
46861 SWIG_Python_Thread_Allow _swig_thread_allow;
46864 result = (Xapian::weight)((Xapian::Weight const *)arg1)->get_maxextra();
46866 _swig_thread_allow.end();
46867 Xapian::SetPythonException();
46871 _swig_thread_allow.end();
46873 resultobj = PyFloat_FromDouble(static_cast< double >(result));
46878 static __attribute__ ((__unused__)) PyObject *_wrap_Weight_get_sumpart_needs_doclength_(PyObject *, PyObject *args) {
46879 PyObject *resultobj = 0;
46880 Xapian::Weight *arg1 = (Xapian::Weight *) 0 ;
46883 PyObject *swig_obj[1] ;
46885 if (!args) goto fail;
46886 swig_obj[0] = args;
46887 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[65], 0 | 0, 0);
46888 if (!(res1 >= 0)) {
46889 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Weight_get_sumpart_needs_doclength_" "', argument " "1"" of type '" "Xapian::Weight const *""'"); goto fail; } while(0);
46891 arg1 = reinterpret_cast< Xapian::Weight * >(argp1);
46893 SWIG_Python_Thread_Allow _swig_thread_allow;
46896 result = (bool)((Xapian::Weight const *)arg1)->get_sumpart_needs_doclength_();
46898 _swig_thread_allow.end();
46899 Xapian::SetPythonException();
46903 _swig_thread_allow.end();
46905 resultobj = SWIG_From_bool(static_cast< bool >(result));
46910 static __attribute__ ((__unused__)) PyObject *_wrap_Weight_get_sumpart_needs_wdf_(PyObject *, PyObject *args) {
46911 PyObject *resultobj = 0;
46912 Xapian::Weight *arg1 = (Xapian::Weight *) 0 ;
46915 PyObject *swig_obj[1] ;
46917 if (!args) goto fail;
46918 swig_obj[0] = args;
46919 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[65], 0 | 0, 0);
46920 if (!(res1 >= 0)) {
46921 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Weight_get_sumpart_needs_wdf_" "', argument " "1"" of type '" "Xapian::Weight const *""'"); goto fail; } while(0);
46923 arg1 = reinterpret_cast< Xapian::Weight * >(argp1);
46925 SWIG_Python_Thread_Allow _swig_thread_allow;
46928 result = (bool)((Xapian::Weight const *)arg1)->get_sumpart_needs_wdf_();
46930 _swig_thread_allow.end();
46931 Xapian::SetPythonException();
46935 _swig_thread_allow.end();
46937 resultobj = SWIG_From_bool(static_cast< bool >(result));
46942 static __attribute__ ((__unused__)) PyObject *Weight_swigregister(PyObject *, PyObject *args) {
46944 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
46945 SWIG_TypeNewClientData(swig_types[65], SwigPyClientData_New(obj));
46946 return SWIG_Py_Void();
46948 static __attribute__ ((__unused__)) PyObject *_wrap_new_BoolWeight(PyObject *, PyObject *args) {
46949 PyObject *resultobj = 0;
46950 Xapian::BoolWeight *result = 0 ;
46951 if (!SWIG_Python_UnpackTuple(args,"new_BoolWeight",0,0,0)) goto fail;
46953 SWIG_Python_Thread_Allow _swig_thread_allow;
46956 result = (Xapian::BoolWeight *)new Xapian::BoolWeight();
46958 _swig_thread_allow.end();
46959 Xapian::SetPythonException();
46963 _swig_thread_allow.end();
46965 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[2], ((0x1 << 1) | 0x1) | 0);
46970 static __attribute__ ((__unused__)) PyObject *_wrap_delete_BoolWeight(PyObject *, PyObject *args) {
46971 PyObject *resultobj = 0;
46972 Xapian::BoolWeight *arg1 = (Xapian::BoolWeight *) 0 ;
46975 PyObject *swig_obj[1] ;
46976 if (!args) goto fail;
46977 swig_obj[0] = args;
46978 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[2], 0x1 | 0, 0);
46979 if (!(res1 >= 0)) {
46980 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_BoolWeight" "', argument " "1"" of type '" "Xapian::BoolWeight *""'"); goto fail; } while(0);
46982 arg1 = reinterpret_cast< Xapian::BoolWeight * >(argp1);
46984 SWIG_Python_Thread_Allow _swig_thread_allow;
46989 _swig_thread_allow.end();
46990 Xapian::SetPythonException();
46994 _swig_thread_allow.end();
46996 resultobj = SWIG_Py_Void();
47001 static __attribute__ ((__unused__)) PyObject *BoolWeight_swigregister(PyObject *, PyObject *args) {
47003 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
47004 SWIG_TypeNewClientData(swig_types[2], SwigPyClientData_New(obj));
47005 return SWIG_Py_Void();
47007 static __attribute__ ((__unused__)) PyObject *BoolWeight_swiginit(PyObject *, PyObject *args) {
47008 return SWIG_Python_InitShadowInstance(args);
47010 static __attribute__ ((__unused__)) PyObject *_wrap_new_BM25Weight__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
47011 PyObject *resultobj = 0;
47027 Xapian::BM25Weight *result = 0 ;
47028 if ((nobjs < 5) || (nobjs > 5)) goto fail;
47029 ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
47030 if (!(ecode1 >= 0)) {
47031 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_BM25Weight" "', argument " "1"" of type '" "double""'"); goto fail; } while(0);
47033 arg1 = static_cast< double >(val1);
47034 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
47035 if (!(ecode2 >= 0)) {
47036 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_BM25Weight" "', argument " "2"" of type '" "double""'"); goto fail; } while(0);
47038 arg2 = static_cast< double >(val2);
47039 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
47040 if (!(ecode3 >= 0)) {
47041 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "new_BM25Weight" "', argument " "3"" of type '" "double""'"); goto fail; } while(0);
47043 arg3 = static_cast< double >(val3);
47044 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
47045 if (!(ecode4 >= 0)) {
47046 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 != (-1)) ? ecode4 : -5)), "in method '" "new_BM25Weight" "', argument " "4"" of type '" "double""'"); goto fail; } while(0);
47048 arg4 = static_cast< double >(val4);
47049 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
47050 if (!(ecode5 >= 0)) {
47051 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode5 != (-1)) ? ecode5 : -5)), "in method '" "new_BM25Weight" "', argument " "5"" of type '" "double""'"); goto fail; } while(0);
47053 arg5 = static_cast< double >(val5);
47055 SWIG_Python_Thread_Allow _swig_thread_allow;
47058 result = (Xapian::BM25Weight *)new Xapian::BM25Weight(arg1,arg2,arg3,arg4,arg5);
47060 _swig_thread_allow.end();
47061 Xapian::SetPythonException();
47065 _swig_thread_allow.end();
47067 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[1], ((0x1 << 1) | 0x1) | 0);
47072 static __attribute__ ((__unused__)) PyObject *_wrap_new_BM25Weight__SWIG_1(PyObject *, int nobjs, PyObject **) {
47073 PyObject *resultobj = 0;
47074 Xapian::BM25Weight *result = 0 ;
47075 if ((nobjs < 0) || (nobjs > 0)) goto fail;
47077 SWIG_Python_Thread_Allow _swig_thread_allow;
47080 result = (Xapian::BM25Weight *)new Xapian::BM25Weight();
47082 _swig_thread_allow.end();
47083 Xapian::SetPythonException();
47087 _swig_thread_allow.end();
47089 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[1], ((0x1 << 1) | 0x1) | 0);
47094 static __attribute__ ((__unused__)) PyObject *_wrap_new_BM25Weight(PyObject *self, PyObject *args) {
47097 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BM25Weight",0,5,argv))) goto fail;
47100 return _wrap_new_BM25Weight__SWIG_1(self, argc, argv);
47103 return _wrap_new_BM25Weight__SWIG_0(self, argc, argv);
47106 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_BM25Weight'.\n"
47107 " Possible C/C++ prototypes are:\n"
47108 " Xapian::BM25Weight(double,double,double,double,double)\n"
47109 " Xapian::BM25Weight()\n");
47112 static __attribute__ ((__unused__)) PyObject *_wrap_delete_BM25Weight(PyObject *, PyObject *args) {
47113 PyObject *resultobj = 0;
47114 Xapian::BM25Weight *arg1 = (Xapian::BM25Weight *) 0 ;
47117 PyObject *swig_obj[1] ;
47118 if (!args) goto fail;
47119 swig_obj[0] = args;
47120 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[1], 0x1 | 0, 0);
47121 if (!(res1 >= 0)) {
47122 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_BM25Weight" "', argument " "1"" of type '" "Xapian::BM25Weight *""'"); goto fail; } while(0);
47124 arg1 = reinterpret_cast< Xapian::BM25Weight * >(argp1);
47126 SWIG_Python_Thread_Allow _swig_thread_allow;
47131 _swig_thread_allow.end();
47132 Xapian::SetPythonException();
47136 _swig_thread_allow.end();
47138 resultobj = SWIG_Py_Void();
47143 static __attribute__ ((__unused__)) PyObject *BM25Weight_swigregister(PyObject *, PyObject *args) {
47145 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
47146 SWIG_TypeNewClientData(swig_types[1], SwigPyClientData_New(obj));
47147 return SWIG_Py_Void();
47149 static __attribute__ ((__unused__)) PyObject *BM25Weight_swiginit(PyObject *, PyObject *args) {
47150 return SWIG_Python_InitShadowInstance(args);
47152 static __attribute__ ((__unused__)) PyObject *_wrap_new_TradWeight__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
47153 PyObject *resultobj = 0;
47157 Xapian::TradWeight *result = 0 ;
47158 if ((nobjs < 1) || (nobjs > 1)) goto fail;
47159 ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
47160 if (!(ecode1 >= 0)) {
47161 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_TradWeight" "', argument " "1"" of type '" "double""'"); goto fail; } while(0);
47163 arg1 = static_cast< double >(val1);
47165 SWIG_Python_Thread_Allow _swig_thread_allow;
47168 result = (Xapian::TradWeight *)new Xapian::TradWeight(arg1);
47170 _swig_thread_allow.end();
47171 Xapian::SetPythonException();
47175 _swig_thread_allow.end();
47177 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[56], ((0x1 << 1) | 0x1) | 0);
47182 static __attribute__ ((__unused__)) PyObject *_wrap_new_TradWeight__SWIG_1(PyObject *, int nobjs, PyObject **) {
47183 PyObject *resultobj = 0;
47184 Xapian::TradWeight *result = 0 ;
47185 if ((nobjs < 0) || (nobjs > 0)) goto fail;
47187 SWIG_Python_Thread_Allow _swig_thread_allow;
47190 result = (Xapian::TradWeight *)new Xapian::TradWeight();
47192 _swig_thread_allow.end();
47193 Xapian::SetPythonException();
47197 _swig_thread_allow.end();
47199 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[56], ((0x1 << 1) | 0x1) | 0);
47204 static __attribute__ ((__unused__)) PyObject *_wrap_new_TradWeight(PyObject *self, PyObject *args) {
47207 if (!(argc = SWIG_Python_UnpackTuple(args,"new_TradWeight",0,1,argv))) goto fail;
47210 return _wrap_new_TradWeight__SWIG_1(self, argc, argv);
47213 return _wrap_new_TradWeight__SWIG_0(self, argc, argv);
47216 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_TradWeight'.\n"
47217 " Possible C/C++ prototypes are:\n"
47218 " Xapian::TradWeight(double)\n"
47219 " Xapian::TradWeight()\n");
47222 static __attribute__ ((__unused__)) PyObject *_wrap_delete_TradWeight(PyObject *, PyObject *args) {
47223 PyObject *resultobj = 0;
47224 Xapian::TradWeight *arg1 = (Xapian::TradWeight *) 0 ;
47227 PyObject *swig_obj[1] ;
47228 if (!args) goto fail;
47229 swig_obj[0] = args;
47230 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[56], 0x1 | 0, 0);
47231 if (!(res1 >= 0)) {
47232 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_TradWeight" "', argument " "1"" of type '" "Xapian::TradWeight *""'"); goto fail; } while(0);
47234 arg1 = reinterpret_cast< Xapian::TradWeight * >(argp1);
47236 SWIG_Python_Thread_Allow _swig_thread_allow;
47241 _swig_thread_allow.end();
47242 Xapian::SetPythonException();
47246 _swig_thread_allow.end();
47248 resultobj = SWIG_Py_Void();
47253 static __attribute__ ((__unused__)) PyObject *TradWeight_swigregister(PyObject *, PyObject *args) {
47255 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
47256 SWIG_TypeNewClientData(swig_types[56], SwigPyClientData_New(obj));
47257 return SWIG_Py_Void();
47259 static __attribute__ ((__unused__)) PyObject *TradWeight_swiginit(PyObject *, PyObject *args) {
47260 return SWIG_Python_InitShadowInstance(args);
47262 static __attribute__ ((__unused__)) PyObject *_wrap_new_MatchSpy(PyObject *, PyObject *args) {
47263 PyObject *resultobj = 0;
47264 PyObject *arg1 = (PyObject *) 0 ;
47265 PyObject *swig_obj[1] ;
47266 Xapian::MatchSpy *result = 0 ;
47267 if (!args) goto fail;
47268 swig_obj[0] = args;
47269 arg1 = swig_obj[0];
47271 SWIG_Python_Thread_Allow _swig_thread_allow;
47274 if ( arg1 != (&_Py_NoneStruct) ) {
47275 result = (Xapian::MatchSpy *)new SwigDirector_MatchSpy(arg1);
47277 SWIG_Python_SetErrorMsg(PyExc_RuntimeError,"accessing abstract class or protected constructor");
47281 _swig_thread_allow.end();
47282 Xapian::SetPythonException();
47286 _swig_thread_allow.end();
47288 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[31], ((0x1 << 1) | 0x1) | 0);
47293 static __attribute__ ((__unused__)) PyObject *_wrap_delete_MatchSpy(PyObject *, PyObject *args) {
47294 PyObject *resultobj = 0;
47295 Xapian::MatchSpy *arg1 = (Xapian::MatchSpy *) 0 ;
47298 PyObject *swig_obj[1] ;
47299 if (!args) goto fail;
47300 swig_obj[0] = args;
47301 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[31], 0x1 | 0, 0);
47302 if (!(res1 >= 0)) {
47303 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_MatchSpy" "', argument " "1"" of type '" "Xapian::MatchSpy *""'"); goto fail; } while(0);
47305 arg1 = reinterpret_cast< Xapian::MatchSpy * >(argp1);
47307 SWIG_Python_Thread_Allow _swig_thread_allow;
47312 _swig_thread_allow.end();
47313 Xapian::SetPythonException();
47317 _swig_thread_allow.end();
47319 resultobj = SWIG_Py_Void();
47324 static __attribute__ ((__unused__)) PyObject *_wrap_MatchSpy___call__(PyObject *, PyObject *args) {
47325 PyObject *resultobj = 0;
47326 Xapian::MatchSpy *arg1 = (Xapian::MatchSpy *) 0 ;
47327 Xapian::Document *arg2 = 0 ;
47328 Xapian::weight arg3 ;
47335 PyObject *swig_obj[3] ;
47336 Swig::Director *director = 0;
47337 bool upcall = false;
47338 if (!SWIG_Python_UnpackTuple(args,"MatchSpy___call__",3,3,swig_obj)) goto fail;
47339 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[31], 0 | 0, 0);
47340 if (!(res1 >= 0)) {
47341 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MatchSpy___call__" "', argument " "1"" of type '" "Xapian::MatchSpy *""'"); goto fail; } while(0);
47343 arg1 = reinterpret_cast< Xapian::MatchSpy * >(argp1);
47344 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[15], 0 | 0, 0);
47345 if (!(res2 >= 0)) {
47346 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "MatchSpy___call__" "', argument " "2"" of type '" "Xapian::Document const &""'"); goto fail; } while(0);
47349 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "MatchSpy___call__" "', argument " "2"" of type '" "Xapian::Document const &""'"); goto fail; } while(0);
47351 arg2 = reinterpret_cast< Xapian::Document * >(argp2);
47352 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
47353 if (!(ecode3 >= 0)) {
47354 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "MatchSpy___call__" "', argument " "3"" of type '" "Xapian::weight""'"); goto fail; } while(0);
47356 arg3 = static_cast< Xapian::weight >(val3);
47357 director = dynamic_cast<Swig::Director*>(arg1);
47358 upcall = (director && (director->swig_get_self()==swig_obj[0]));
47363 Swig::DirectorPureVirtualException::raise("Xapian::MatchSpy::operator ()");
47365 (arg1)->operator ()((Xapian::Document const &)*arg2,arg3);
47368 Xapian::SetPythonException();
47372 } catch (Swig::DirectorException&) {
47375 resultobj = SWIG_Py_Void();
47380 static __attribute__ ((__unused__)) PyObject *_wrap_MatchSpy_name(PyObject *, PyObject *args) {
47381 PyObject *resultobj = 0;
47382 Xapian::MatchSpy *arg1 = (Xapian::MatchSpy *) 0 ;
47385 PyObject *swig_obj[1] ;
47386 Swig::Director *director = 0;
47387 bool upcall = false;
47388 std::string result;
47389 if (!args) goto fail;
47390 swig_obj[0] = args;
47391 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[31], 0 | 0, 0);
47392 if (!(res1 >= 0)) {
47393 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MatchSpy_name" "', argument " "1"" of type '" "Xapian::MatchSpy const *""'"); goto fail; } while(0);
47395 arg1 = reinterpret_cast< Xapian::MatchSpy * >(argp1);
47396 director = dynamic_cast<Swig::Director*>(arg1);
47397 upcall = (director && (director->swig_get_self()==swig_obj[0]));
47402 result = ((Xapian::MatchSpy const *)arg1)->Xapian::MatchSpy::name();
47404 result = ((Xapian::MatchSpy const *)arg1)->name();
47407 Xapian::SetPythonException();
47411 } catch (Swig::DirectorException&) {
47414 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
47419 static __attribute__ ((__unused__)) PyObject *_wrap_MatchSpy_merge_results(PyObject *, PyObject *args) {
47420 PyObject *resultobj = 0;
47421 Xapian::MatchSpy *arg1 = (Xapian::MatchSpy *) 0 ;
47422 std::string *arg2 = 0 ;
47426 PyObject *swig_obj[2] ;
47427 Swig::Director *director = 0;
47428 bool upcall = false;
47429 if (!SWIG_Python_UnpackTuple(args,"MatchSpy_merge_results",2,2,swig_obj)) goto fail;
47430 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[31], 0 | 0, 0);
47431 if (!(res1 >= 0)) {
47432 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MatchSpy_merge_results" "', argument " "1"" of type '" "Xapian::MatchSpy *""'"); goto fail; } while(0);
47434 arg1 = reinterpret_cast< Xapian::MatchSpy * >(argp1);
47436 std::string *ptr = (std::string *)0;
47437 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
47438 if (!(res2 >= 0)) {
47439 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "MatchSpy_merge_results" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
47442 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "MatchSpy_merge_results" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
47446 director = dynamic_cast<Swig::Director*>(arg1);
47447 upcall = (director && (director->swig_get_self()==swig_obj[0]));
47452 (arg1)->Xapian::MatchSpy::merge_results((std::string const &)*arg2);
47454 (arg1)->merge_results((std::string const &)*arg2);
47457 Xapian::SetPythonException();
47461 } catch (Swig::DirectorException&) {
47464 resultobj = SWIG_Py_Void();
47465 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
47468 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
47471 static __attribute__ ((__unused__)) PyObject *_wrap_MatchSpy___str__(PyObject *, PyObject *args) {
47472 PyObject *resultobj = 0;
47473 Xapian::MatchSpy *arg1 = (Xapian::MatchSpy *) 0 ;
47476 PyObject *swig_obj[1] ;
47477 Swig::Director *director = 0;
47478 bool upcall = false;
47479 std::string result;
47480 if (!args) goto fail;
47481 swig_obj[0] = args;
47482 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[31], 0 | 0, 0);
47483 if (!(res1 >= 0)) {
47484 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MatchSpy___str__" "', argument " "1"" of type '" "Xapian::MatchSpy const *""'"); goto fail; } while(0);
47486 arg1 = reinterpret_cast< Xapian::MatchSpy * >(argp1);
47487 director = dynamic_cast<Swig::Director*>(arg1);
47488 upcall = (director && (director->swig_get_self()==swig_obj[0]));
47493 result = ((Xapian::MatchSpy const *)arg1)->Xapian::MatchSpy::get_description();
47495 result = ((Xapian::MatchSpy const *)arg1)->get_description();
47498 Xapian::SetPythonException();
47502 } catch (Swig::DirectorException&) {
47505 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
47510 static __attribute__ ((__unused__)) PyObject *_wrap_disown_MatchSpy(PyObject *, PyObject *args) {
47511 PyObject *resultobj = 0;
47512 Xapian::MatchSpy *arg1 = (Xapian::MatchSpy *) 0 ;
47515 PyObject *swig_obj[1] ;
47516 if (!args) goto fail;
47517 swig_obj[0] = args;
47518 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[31], 0 | 0, 0);
47519 if (!(res1 >= 0)) {
47520 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "disown_MatchSpy" "', argument " "1"" of type '" "Xapian::MatchSpy *""'"); goto fail; } while(0);
47522 arg1 = reinterpret_cast< Xapian::MatchSpy * >(argp1);
47524 SWIG_Python_Thread_Allow _swig_thread_allow;
47526 Swig::Director *director = dynamic_cast<Swig::Director *>(arg1);
47527 if (director) director->swig_disown();
47529 _swig_thread_allow.end();
47531 resultobj = SWIG_Py_Void();
47536 static __attribute__ ((__unused__)) PyObject *MatchSpy_swigregister(PyObject *, PyObject *args) {
47538 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
47539 SWIG_TypeNewClientData(swig_types[31], SwigPyClientData_New(obj));
47540 return SWIG_Py_Void();
47542 static __attribute__ ((__unused__)) PyObject *MatchSpy_swiginit(PyObject *, PyObject *args) {
47543 return SWIG_Python_InitShadowInstance(args);
47545 static __attribute__ ((__unused__)) PyObject *_wrap_new_ValueCountMatchSpy__SWIG_0(PyObject *, int nobjs, PyObject **) {
47546 PyObject *resultobj = 0;
47547 Xapian::ValueCountMatchSpy *result = 0 ;
47548 if ((nobjs < 0) || (nobjs > 0)) goto fail;
47550 SWIG_Python_Thread_Allow _swig_thread_allow;
47553 result = (Xapian::ValueCountMatchSpy *)new Xapian::ValueCountMatchSpy();
47555 _swig_thread_allow.end();
47556 Xapian::SetPythonException();
47560 _swig_thread_allow.end();
47562 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[58], ((0x1 << 1) | 0x1) | 0);
47567 static __attribute__ ((__unused__)) PyObject *_wrap_new_ValueCountMatchSpy__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
47568 PyObject *resultobj = 0;
47569 Xapian::valueno arg1 ;
47570 unsigned int val1 ;
47572 Xapian::ValueCountMatchSpy *result = 0 ;
47573 if ((nobjs < 1) || (nobjs > 1)) goto fail;
47574 ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
47575 if (!(ecode1 >= 0)) {
47576 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_ValueCountMatchSpy" "', argument " "1"" of type '" "Xapian::valueno""'"); goto fail; } while(0);
47578 arg1 = static_cast< Xapian::valueno >(val1);
47580 SWIG_Python_Thread_Allow _swig_thread_allow;
47583 result = (Xapian::ValueCountMatchSpy *)new Xapian::ValueCountMatchSpy(arg1);
47585 _swig_thread_allow.end();
47586 Xapian::SetPythonException();
47590 _swig_thread_allow.end();
47592 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[58], ((0x1 << 1) | 0x1) | 0);
47597 static __attribute__ ((__unused__)) PyObject *_wrap_new_ValueCountMatchSpy(PyObject *self, PyObject *args) {
47600 if (!(argc = SWIG_Python_UnpackTuple(args,"new_ValueCountMatchSpy",0,1,argv))) goto fail;
47603 return _wrap_new_ValueCountMatchSpy__SWIG_0(self, argc, argv);
47606 return _wrap_new_ValueCountMatchSpy__SWIG_1(self, argc, argv);
47609 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_ValueCountMatchSpy'.\n"
47610 " Possible C/C++ prototypes are:\n"
47611 " Xapian::ValueCountMatchSpy()\n"
47612 " Xapian::ValueCountMatchSpy(Xapian::valueno)\n");
47615 static __attribute__ ((__unused__)) PyObject *_wrap_ValueCountMatchSpy_get_total(PyObject *, PyObject *args) {
47616 PyObject *resultobj = 0;
47617 Xapian::ValueCountMatchSpy *arg1 = (Xapian::ValueCountMatchSpy *) 0 ;
47620 PyObject *swig_obj[1] ;
47622 if (!args) goto fail;
47623 swig_obj[0] = args;
47624 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[58], 0 | 0, 0);
47625 if (!(res1 >= 0)) {
47626 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "ValueCountMatchSpy_get_total" "', argument " "1"" of type '" "Xapian::ValueCountMatchSpy const *""'"); goto fail; } while(0);
47628 arg1 = reinterpret_cast< Xapian::ValueCountMatchSpy * >(argp1);
47630 SWIG_Python_Thread_Allow _swig_thread_allow;
47633 result = ((Xapian::ValueCountMatchSpy const *)arg1)->get_total();
47635 _swig_thread_allow.end();
47636 Xapian::SetPythonException();
47640 _swig_thread_allow.end();
47642 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
47647 static __attribute__ ((__unused__)) PyObject *_wrap_ValueCountMatchSpy_values_begin(PyObject *, PyObject *args) {
47648 PyObject *resultobj = 0;
47649 Xapian::ValueCountMatchSpy *arg1 = (Xapian::ValueCountMatchSpy *) 0 ;
47652 PyObject *swig_obj[1] ;
47653 Xapian::TermIterator result;
47654 if (!args) goto fail;
47655 swig_obj[0] = args;
47656 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[58], 0 | 0, 0);
47657 if (!(res1 >= 0)) {
47658 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "ValueCountMatchSpy_values_begin" "', argument " "1"" of type '" "Xapian::ValueCountMatchSpy const *""'"); goto fail; } while(0);
47660 arg1 = reinterpret_cast< Xapian::ValueCountMatchSpy * >(argp1);
47662 SWIG_Python_Thread_Allow _swig_thread_allow;
47665 result = ((Xapian::ValueCountMatchSpy const *)arg1)->values_begin();
47667 _swig_thread_allow.end();
47668 Xapian::SetPythonException();
47672 _swig_thread_allow.end();
47674 resultobj = SWIG_Python_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), swig_types[55], 0x1 | 0);
47679 static __attribute__ ((__unused__)) PyObject *_wrap_ValueCountMatchSpy_values_end(PyObject *, PyObject *args) {
47680 PyObject *resultobj = 0;
47681 Xapian::ValueCountMatchSpy *arg1 = (Xapian::ValueCountMatchSpy *) 0 ;
47684 PyObject *swig_obj[1] ;
47685 Xapian::TermIterator result;
47686 if (!args) goto fail;
47687 swig_obj[0] = args;
47688 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[58], 0 | 0, 0);
47689 if (!(res1 >= 0)) {
47690 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "ValueCountMatchSpy_values_end" "', argument " "1"" of type '" "Xapian::ValueCountMatchSpy const *""'"); goto fail; } while(0);
47692 arg1 = reinterpret_cast< Xapian::ValueCountMatchSpy * >(argp1);
47694 SWIG_Python_Thread_Allow _swig_thread_allow;
47697 result = ((Xapian::ValueCountMatchSpy const *)arg1)->values_end();
47699 _swig_thread_allow.end();
47700 Xapian::SetPythonException();
47704 _swig_thread_allow.end();
47706 resultobj = SWIG_Python_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), swig_types[55], 0x1 | 0);
47711 static __attribute__ ((__unused__)) PyObject *_wrap_ValueCountMatchSpy_top_values_begin(PyObject *, PyObject *args) {
47712 PyObject *resultobj = 0;
47713 Xapian::ValueCountMatchSpy *arg1 = (Xapian::ValueCountMatchSpy *) 0 ;
47719 PyObject *swig_obj[2] ;
47720 Xapian::TermIterator result;
47721 if (!SWIG_Python_UnpackTuple(args,"ValueCountMatchSpy_top_values_begin",2,2,swig_obj)) goto fail;
47722 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[58], 0 | 0, 0);
47723 if (!(res1 >= 0)) {
47724 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "ValueCountMatchSpy_top_values_begin" "', argument " "1"" of type '" "Xapian::ValueCountMatchSpy const *""'"); goto fail; } while(0);
47726 arg1 = reinterpret_cast< Xapian::ValueCountMatchSpy * >(argp1);
47727 ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
47728 if (!(ecode2 >= 0)) {
47729 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "ValueCountMatchSpy_top_values_begin" "', argument " "2"" of type '" "size_t""'"); goto fail; } while(0);
47731 arg2 = static_cast< size_t >(val2);
47733 SWIG_Python_Thread_Allow _swig_thread_allow;
47736 result = ((Xapian::ValueCountMatchSpy const *)arg1)->top_values_begin(arg2);
47738 _swig_thread_allow.end();
47739 Xapian::SetPythonException();
47743 _swig_thread_allow.end();
47745 resultobj = SWIG_Python_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), swig_types[55], 0x1 | 0);
47750 static __attribute__ ((__unused__)) PyObject *_wrap_ValueCountMatchSpy_top_values_end(PyObject *, PyObject *args) {
47751 PyObject *resultobj = 0;
47752 Xapian::ValueCountMatchSpy *arg1 = (Xapian::ValueCountMatchSpy *) 0 ;
47758 PyObject *swig_obj[2] ;
47759 Xapian::TermIterator result;
47760 if (!SWIG_Python_UnpackTuple(args,"ValueCountMatchSpy_top_values_end",2,2,swig_obj)) goto fail;
47761 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[58], 0 | 0, 0);
47762 if (!(res1 >= 0)) {
47763 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "ValueCountMatchSpy_top_values_end" "', argument " "1"" of type '" "Xapian::ValueCountMatchSpy const *""'"); goto fail; } while(0);
47765 arg1 = reinterpret_cast< Xapian::ValueCountMatchSpy * >(argp1);
47766 ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
47767 if (!(ecode2 >= 0)) {
47768 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "ValueCountMatchSpy_top_values_end" "', argument " "2"" of type '" "size_t""'"); goto fail; } while(0);
47770 arg2 = static_cast< size_t >(val2);
47772 SWIG_Python_Thread_Allow _swig_thread_allow;
47775 result = ((Xapian::ValueCountMatchSpy const *)arg1)->top_values_end(arg2);
47777 _swig_thread_allow.end();
47778 Xapian::SetPythonException();
47782 _swig_thread_allow.end();
47784 resultobj = SWIG_Python_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), swig_types[55], 0x1 | 0);
47789 static __attribute__ ((__unused__)) PyObject *_wrap_delete_ValueCountMatchSpy(PyObject *, PyObject *args) {
47790 PyObject *resultobj = 0;
47791 Xapian::ValueCountMatchSpy *arg1 = (Xapian::ValueCountMatchSpy *) 0 ;
47794 PyObject *swig_obj[1] ;
47795 if (!args) goto fail;
47796 swig_obj[0] = args;
47797 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[58], 0x1 | 0, 0);
47798 if (!(res1 >= 0)) {
47799 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_ValueCountMatchSpy" "', argument " "1"" of type '" "Xapian::ValueCountMatchSpy *""'"); goto fail; } while(0);
47801 arg1 = reinterpret_cast< Xapian::ValueCountMatchSpy * >(argp1);
47803 SWIG_Python_Thread_Allow _swig_thread_allow;
47808 _swig_thread_allow.end();
47809 Xapian::SetPythonException();
47813 _swig_thread_allow.end();
47815 resultobj = SWIG_Py_Void();
47820 static __attribute__ ((__unused__)) PyObject *ValueCountMatchSpy_swigregister(PyObject *, PyObject *args) {
47822 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
47823 SWIG_TypeNewClientData(swig_types[58], SwigPyClientData_New(obj));
47824 return SWIG_Py_Void();
47826 static __attribute__ ((__unused__)) PyObject *ValueCountMatchSpy_swiginit(PyObject *, PyObject *args) {
47827 return SWIG_Python_InitShadowInstance(args);
47829 static __attribute__ ((__unused__)) PyObject *_wrap_Database_add_database(PyObject *, PyObject *args) {
47830 PyObject *resultobj = 0;
47831 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
47832 Xapian::Database *arg2 = 0 ;
47837 PyObject *swig_obj[2] ;
47838 if (!SWIG_Python_UnpackTuple(args,"Database_add_database",2,2,swig_obj)) goto fail;
47839 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
47840 if (!(res1 >= 0)) {
47841 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database_add_database" "', argument " "1"" of type '" "Xapian::Database *""'"); goto fail; } while(0);
47843 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
47844 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[4], 0 | 0, 0);
47845 if (!(res2 >= 0)) {
47846 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Database_add_database" "', argument " "2"" of type '" "Xapian::Database const &""'"); goto fail; } while(0);
47849 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Database_add_database" "', argument " "2"" of type '" "Xapian::Database const &""'"); goto fail; } while(0);
47851 arg2 = reinterpret_cast< Xapian::Database * >(argp2);
47853 SWIG_Python_Thread_Allow _swig_thread_allow;
47856 (arg1)->add_database((Xapian::Database const &)*arg2);
47858 _swig_thread_allow.end();
47859 Xapian::SetPythonException();
47863 _swig_thread_allow.end();
47865 resultobj = SWIG_Py_Void();
47870 static __attribute__ ((__unused__)) PyObject *_wrap_new_Database__SWIG_0(PyObject *, int nobjs, PyObject **) {
47871 PyObject *resultobj = 0;
47872 Xapian::Database *result = 0 ;
47873 if ((nobjs < 0) || (nobjs > 0)) goto fail;
47875 SWIG_Python_Thread_Allow _swig_thread_allow;
47878 result = (Xapian::Database *)new Xapian::Database();
47880 _swig_thread_allow.end();
47881 Xapian::SetPythonException();
47885 _swig_thread_allow.end();
47887 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[4], ((0x1 << 1) | 0x1) | 0);
47892 static __attribute__ ((__unused__)) PyObject *_wrap_new_Database__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
47893 PyObject *resultobj = 0;
47894 std::string *arg1 = 0 ;
47896 Xapian::Database *result = 0 ;
47897 if ((nobjs < 1) || (nobjs > 1)) goto fail;
47899 std::string *ptr = (std::string *)0;
47900 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
47901 if (!(res1 >= 0)) {
47902 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_Database" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
47905 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_Database" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
47910 SWIG_Python_Thread_Allow _swig_thread_allow;
47913 result = (Xapian::Database *)new Xapian::Database((std::string const &)*arg1);
47915 _swig_thread_allow.end();
47916 Xapian::SetPythonException();
47920 _swig_thread_allow.end();
47922 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[4], ((0x1 << 1) | 0x1) | 0);
47923 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
47926 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
47929 static __attribute__ ((__unused__)) PyObject *_wrap_delete_Database(PyObject *, PyObject *args) {
47930 PyObject *resultobj = 0;
47931 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
47934 PyObject *swig_obj[1] ;
47935 if (!args) goto fail;
47936 swig_obj[0] = args;
47937 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0x1 | 0, 0);
47938 if (!(res1 >= 0)) {
47939 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_Database" "', argument " "1"" of type '" "Xapian::Database *""'"); goto fail; } while(0);
47941 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
47943 SWIG_Python_Thread_Allow _swig_thread_allow;
47948 _swig_thread_allow.end();
47949 Xapian::SetPythonException();
47953 _swig_thread_allow.end();
47955 resultobj = SWIG_Py_Void();
47960 static __attribute__ ((__unused__)) PyObject *_wrap_new_Database__SWIG_2(PyObject *, int nobjs, PyObject **swig_obj) {
47961 PyObject *resultobj = 0;
47962 Xapian::Database *arg1 = 0 ;
47965 Xapian::Database *result = 0 ;
47966 if ((nobjs < 1) || (nobjs > 1)) goto fail;
47967 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
47968 if (!(res1 >= 0)) {
47969 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_Database" "', argument " "1"" of type '" "Xapian::Database const &""'"); goto fail; } while(0);
47972 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_Database" "', argument " "1"" of type '" "Xapian::Database const &""'"); goto fail; } while(0);
47974 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
47976 SWIG_Python_Thread_Allow _swig_thread_allow;
47979 result = (Xapian::Database *)new Xapian::Database((Xapian::Database const &)*arg1);
47981 _swig_thread_allow.end();
47982 Xapian::SetPythonException();
47986 _swig_thread_allow.end();
47988 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[4], ((0x1 << 1) | 0x1) | 0);
47993 static __attribute__ ((__unused__)) PyObject *_wrap_new_Database(PyObject *self, PyObject *args) {
47996 if (!(argc = SWIG_Python_UnpackTuple(args,"new_Database",0,1,argv))) goto fail;
47999 return _wrap_new_Database__SWIG_0(self, argc, argv);
48004 int res = SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[4], 0, 0);
48005 _v = ((res >= 0) ? 1 : 0);
48007 if (!_v) goto check_2;
48008 return _wrap_new_Database__SWIG_2(self, argc, argv);
48012 return _wrap_new_Database__SWIG_1(self, argc, argv);
48015 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_Database'.\n"
48016 " Possible C/C++ prototypes are:\n"
48017 " Xapian::Database()\n"
48018 " Xapian::Database(std::string const &)\n"
48019 " Xapian::Database(Xapian::Database const &)\n");
48022 static __attribute__ ((__unused__)) PyObject *_wrap_Database_reopen(PyObject *, PyObject *args) {
48023 PyObject *resultobj = 0;
48024 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
48027 PyObject *swig_obj[1] ;
48028 if (!args) goto fail;
48029 swig_obj[0] = args;
48030 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
48031 if (!(res1 >= 0)) {
48032 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database_reopen" "', argument " "1"" of type '" "Xapian::Database *""'"); goto fail; } while(0);
48034 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
48036 SWIG_Python_Thread_Allow _swig_thread_allow;
48041 _swig_thread_allow.end();
48042 Xapian::SetPythonException();
48046 _swig_thread_allow.end();
48048 resultobj = SWIG_Py_Void();
48053 static __attribute__ ((__unused__)) PyObject *_wrap_Database_close(PyObject *, PyObject *args) {
48054 PyObject *resultobj = 0;
48055 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
48058 PyObject *swig_obj[1] ;
48059 if (!args) goto fail;
48060 swig_obj[0] = args;
48061 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
48062 if (!(res1 >= 0)) {
48063 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database_close" "', argument " "1"" of type '" "Xapian::Database *""'"); goto fail; } while(0);
48065 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
48067 SWIG_Python_Thread_Allow _swig_thread_allow;
48072 _swig_thread_allow.end();
48073 Xapian::SetPythonException();
48077 _swig_thread_allow.end();
48079 resultobj = SWIG_Py_Void();
48084 static __attribute__ ((__unused__)) PyObject *_wrap_Database___str__(PyObject *, PyObject *args) {
48085 PyObject *resultobj = 0;
48086 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
48089 PyObject *swig_obj[1] ;
48090 std::string result;
48091 if (!args) goto fail;
48092 swig_obj[0] = args;
48093 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
48094 if (!(res1 >= 0)) {
48095 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database___str__" "', argument " "1"" of type '" "Xapian::Database const *""'"); goto fail; } while(0);
48097 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
48099 SWIG_Python_Thread_Allow _swig_thread_allow;
48102 result = ((Xapian::Database const *)arg1)->get_description();
48104 _swig_thread_allow.end();
48105 Xapian::SetPythonException();
48109 _swig_thread_allow.end();
48111 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
48116 static __attribute__ ((__unused__)) PyObject *_wrap_Database_postlist_begin(PyObject *, PyObject *args) {
48117 PyObject *resultobj = 0;
48118 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
48119 std::string *arg2 = 0 ;
48123 PyObject *swig_obj[2] ;
48124 Xapian::PostingIterator result;
48125 if (!SWIG_Python_UnpackTuple(args,"Database_postlist_begin",2,2,swig_obj)) goto fail;
48126 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
48127 if (!(res1 >= 0)) {
48128 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database_postlist_begin" "', argument " "1"" of type '" "Xapian::Database const *""'"); goto fail; } while(0);
48130 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
48132 std::string *ptr = (std::string *)0;
48133 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
48134 if (!(res2 >= 0)) {
48135 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Database_postlist_begin" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
48138 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Database_postlist_begin" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
48143 SWIG_Python_Thread_Allow _swig_thread_allow;
48146 result = ((Xapian::Database const *)arg1)->postlist_begin((std::string const &)*arg2);
48148 _swig_thread_allow.end();
48149 Xapian::SetPythonException();
48153 _swig_thread_allow.end();
48155 resultobj = SWIG_Python_NewPointerObj((new Xapian::PostingIterator(static_cast< const Xapian::PostingIterator& >(result))), swig_types[38], 0x1 | 0);
48156 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
48159 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
48162 static __attribute__ ((__unused__)) PyObject *_wrap_Database_postlist_end(PyObject *, PyObject *args) {
48163 PyObject *resultobj = 0;
48164 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
48165 std::string *arg2 = 0 ;
48169 PyObject *swig_obj[2] ;
48170 Xapian::PostingIterator result;
48171 if (!SWIG_Python_UnpackTuple(args,"Database_postlist_end",2,2,swig_obj)) goto fail;
48172 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
48173 if (!(res1 >= 0)) {
48174 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database_postlist_end" "', argument " "1"" of type '" "Xapian::Database const *""'"); goto fail; } while(0);
48176 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
48178 std::string *ptr = (std::string *)0;
48179 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
48180 if (!(res2 >= 0)) {
48181 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Database_postlist_end" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
48184 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Database_postlist_end" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
48189 SWIG_Python_Thread_Allow _swig_thread_allow;
48192 result = ((Xapian::Database const *)arg1)->postlist_end((std::string const &)*arg2);
48194 _swig_thread_allow.end();
48195 Xapian::SetPythonException();
48199 _swig_thread_allow.end();
48201 resultobj = SWIG_Python_NewPointerObj((new Xapian::PostingIterator(static_cast< const Xapian::PostingIterator& >(result))), swig_types[38], 0x1 | 0);
48202 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
48205 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
48208 static __attribute__ ((__unused__)) PyObject *_wrap_Database_termlist_begin(PyObject *, PyObject *args) {
48209 PyObject *resultobj = 0;
48210 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
48211 Xapian::docid arg2 ;
48214 unsigned int val2 ;
48216 PyObject *swig_obj[2] ;
48217 Xapian::TermIterator result;
48218 if (!SWIG_Python_UnpackTuple(args,"Database_termlist_begin",2,2,swig_obj)) goto fail;
48219 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
48220 if (!(res1 >= 0)) {
48221 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database_termlist_begin" "', argument " "1"" of type '" "Xapian::Database const *""'"); goto fail; } while(0);
48223 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
48224 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
48225 if (!(ecode2 >= 0)) {
48226 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Database_termlist_begin" "', argument " "2"" of type '" "Xapian::docid""'"); goto fail; } while(0);
48228 arg2 = static_cast< Xapian::docid >(val2);
48230 SWIG_Python_Thread_Allow _swig_thread_allow;
48233 result = ((Xapian::Database const *)arg1)->termlist_begin(arg2);
48235 _swig_thread_allow.end();
48236 Xapian::SetPythonException();
48240 _swig_thread_allow.end();
48242 resultobj = SWIG_Python_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), swig_types[55], 0x1 | 0);
48247 static __attribute__ ((__unused__)) PyObject *_wrap_Database_termlist_end(PyObject *, PyObject *args) {
48248 PyObject *resultobj = 0;
48249 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
48250 Xapian::docid arg2 ;
48253 unsigned int val2 ;
48255 PyObject *swig_obj[2] ;
48256 Xapian::TermIterator result;
48257 if (!SWIG_Python_UnpackTuple(args,"Database_termlist_end",2,2,swig_obj)) goto fail;
48258 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
48259 if (!(res1 >= 0)) {
48260 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database_termlist_end" "', argument " "1"" of type '" "Xapian::Database const *""'"); goto fail; } while(0);
48262 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
48263 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
48264 if (!(ecode2 >= 0)) {
48265 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Database_termlist_end" "', argument " "2"" of type '" "Xapian::docid""'"); goto fail; } while(0);
48267 arg2 = static_cast< Xapian::docid >(val2);
48269 SWIG_Python_Thread_Allow _swig_thread_allow;
48272 result = ((Xapian::Database const *)arg1)->termlist_end(arg2);
48274 _swig_thread_allow.end();
48275 Xapian::SetPythonException();
48279 _swig_thread_allow.end();
48281 resultobj = SWIG_Python_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), swig_types[55], 0x1 | 0);
48286 static __attribute__ ((__unused__)) PyObject *_wrap_Database_positionlist_begin(PyObject *, PyObject *args) {
48287 PyObject *resultobj = 0;
48288 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
48289 Xapian::docid arg2 ;
48290 std::string *arg3 = 0 ;
48293 unsigned int val2 ;
48296 PyObject *swig_obj[3] ;
48297 Xapian::PositionIterator result;
48298 if (!SWIG_Python_UnpackTuple(args,"Database_positionlist_begin",3,3,swig_obj)) goto fail;
48299 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
48300 if (!(res1 >= 0)) {
48301 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database_positionlist_begin" "', argument " "1"" of type '" "Xapian::Database const *""'"); goto fail; } while(0);
48303 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
48304 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
48305 if (!(ecode2 >= 0)) {
48306 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Database_positionlist_begin" "', argument " "2"" of type '" "Xapian::docid""'"); goto fail; } while(0);
48308 arg2 = static_cast< Xapian::docid >(val2);
48310 std::string *ptr = (std::string *)0;
48311 res3 = SWIG_anystring_as_ptr(&(swig_obj[2]), &ptr);
48312 if (!(res3 >= 0)) {
48313 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (-1)) ? res3 : -5)), "in method '" "Database_positionlist_begin" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while(0);
48316 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Database_positionlist_begin" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while(0);
48321 SWIG_Python_Thread_Allow _swig_thread_allow;
48324 result = ((Xapian::Database const *)arg1)->positionlist_begin(arg2,(std::string const &)*arg3);
48326 _swig_thread_allow.end();
48327 Xapian::SetPythonException();
48331 _swig_thread_allow.end();
48333 resultobj = SWIG_Python_NewPointerObj((new Xapian::PositionIterator(static_cast< const Xapian::PositionIterator& >(result))), swig_types[37], 0x1 | 0);
48334 if (((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3;
48337 if (((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3;
48340 static __attribute__ ((__unused__)) PyObject *_wrap_Database_positionlist_end(PyObject *, PyObject *args) {
48341 PyObject *resultobj = 0;
48342 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
48343 Xapian::docid arg2 ;
48344 std::string *arg3 = 0 ;
48347 unsigned int val2 ;
48350 PyObject *swig_obj[3] ;
48351 Xapian::PositionIterator result;
48352 if (!SWIG_Python_UnpackTuple(args,"Database_positionlist_end",3,3,swig_obj)) goto fail;
48353 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
48354 if (!(res1 >= 0)) {
48355 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database_positionlist_end" "', argument " "1"" of type '" "Xapian::Database const *""'"); goto fail; } while(0);
48357 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
48358 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
48359 if (!(ecode2 >= 0)) {
48360 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Database_positionlist_end" "', argument " "2"" of type '" "Xapian::docid""'"); goto fail; } while(0);
48362 arg2 = static_cast< Xapian::docid >(val2);
48364 std::string *ptr = (std::string *)0;
48365 res3 = SWIG_anystring_as_ptr(&(swig_obj[2]), &ptr);
48366 if (!(res3 >= 0)) {
48367 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (-1)) ? res3 : -5)), "in method '" "Database_positionlist_end" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while(0);
48370 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Database_positionlist_end" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while(0);
48375 SWIG_Python_Thread_Allow _swig_thread_allow;
48378 result = ((Xapian::Database const *)arg1)->positionlist_end(arg2,(std::string const &)*arg3);
48380 _swig_thread_allow.end();
48381 Xapian::SetPythonException();
48385 _swig_thread_allow.end();
48387 resultobj = SWIG_Python_NewPointerObj((new Xapian::PositionIterator(static_cast< const Xapian::PositionIterator& >(result))), swig_types[37], 0x1 | 0);
48388 if (((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3;
48391 if (((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3;
48394 static __attribute__ ((__unused__)) PyObject *_wrap_Database_allterms_begin__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
48395 PyObject *resultobj = 0;
48396 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
48399 Xapian::TermIterator result;
48400 if ((nobjs < 1) || (nobjs > 1)) goto fail;
48401 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
48402 if (!(res1 >= 0)) {
48403 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database_allterms_begin" "', argument " "1"" of type '" "Xapian::Database const *""'"); goto fail; } while(0);
48405 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
48407 SWIG_Python_Thread_Allow _swig_thread_allow;
48410 result = ((Xapian::Database const *)arg1)->allterms_begin();
48412 _swig_thread_allow.end();
48413 Xapian::SetPythonException();
48417 _swig_thread_allow.end();
48419 resultobj = SWIG_Python_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), swig_types[55], 0x1 | 0);
48424 static __attribute__ ((__unused__)) PyObject *_wrap_Database_allterms_end__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
48425 PyObject *resultobj = 0;
48426 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
48429 Xapian::TermIterator result;
48430 if ((nobjs < 1) || (nobjs > 1)) goto fail;
48431 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
48432 if (!(res1 >= 0)) {
48433 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database_allterms_end" "', argument " "1"" of type '" "Xapian::Database const *""'"); goto fail; } while(0);
48435 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
48437 SWIG_Python_Thread_Allow _swig_thread_allow;
48440 result = ((Xapian::Database const *)arg1)->allterms_end();
48442 _swig_thread_allow.end();
48443 Xapian::SetPythonException();
48447 _swig_thread_allow.end();
48449 resultobj = SWIG_Python_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), swig_types[55], 0x1 | 0);
48454 static __attribute__ ((__unused__)) PyObject *_wrap_Database_allterms_begin__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
48455 PyObject *resultobj = 0;
48456 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
48457 std::string *arg2 = 0 ;
48461 Xapian::TermIterator result;
48462 if ((nobjs < 2) || (nobjs > 2)) goto fail;
48463 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
48464 if (!(res1 >= 0)) {
48465 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database_allterms_begin" "', argument " "1"" of type '" "Xapian::Database const *""'"); goto fail; } while(0);
48467 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
48469 std::string *ptr = (std::string *)0;
48470 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
48471 if (!(res2 >= 0)) {
48472 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Database_allterms_begin" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
48475 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Database_allterms_begin" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
48480 SWIG_Python_Thread_Allow _swig_thread_allow;
48483 result = ((Xapian::Database const *)arg1)->allterms_begin((std::string const &)*arg2);
48485 _swig_thread_allow.end();
48486 Xapian::SetPythonException();
48490 _swig_thread_allow.end();
48492 resultobj = SWIG_Python_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), swig_types[55], 0x1 | 0);
48493 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
48496 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
48499 static __attribute__ ((__unused__)) PyObject *_wrap_Database_allterms_begin(PyObject *self, PyObject *args) {
48502 if (!(argc = SWIG_Python_UnpackTuple(args,"Database_allterms_begin",0,2,argv))) goto fail;
48505 return _wrap_Database_allterms_begin__SWIG_0(self, argc, argv);
48508 return _wrap_Database_allterms_begin__SWIG_1(self, argc, argv);
48511 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'Database_allterms_begin'.\n"
48512 " Possible C/C++ prototypes are:\n"
48513 " allterms_begin(Xapian::Database const *)\n"
48514 " allterms_begin(Xapian::Database const *,std::string const &)\n");
48517 static __attribute__ ((__unused__)) PyObject *_wrap_Database_allterms_end__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
48518 PyObject *resultobj = 0;
48519 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
48520 std::string *arg2 = 0 ;
48524 Xapian::TermIterator result;
48525 if ((nobjs < 2) || (nobjs > 2)) goto fail;
48526 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
48527 if (!(res1 >= 0)) {
48528 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database_allterms_end" "', argument " "1"" of type '" "Xapian::Database const *""'"); goto fail; } while(0);
48530 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
48532 std::string *ptr = (std::string *)0;
48533 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
48534 if (!(res2 >= 0)) {
48535 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Database_allterms_end" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
48538 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Database_allterms_end" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
48543 SWIG_Python_Thread_Allow _swig_thread_allow;
48546 result = ((Xapian::Database const *)arg1)->allterms_end((std::string const &)*arg2);
48548 _swig_thread_allow.end();
48549 Xapian::SetPythonException();
48553 _swig_thread_allow.end();
48555 resultobj = SWIG_Python_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), swig_types[55], 0x1 | 0);
48556 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
48559 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
48562 static __attribute__ ((__unused__)) PyObject *_wrap_Database_allterms_end(PyObject *self, PyObject *args) {
48565 if (!(argc = SWIG_Python_UnpackTuple(args,"Database_allterms_end",0,2,argv))) goto fail;
48568 return _wrap_Database_allterms_end__SWIG_0(self, argc, argv);
48571 return _wrap_Database_allterms_end__SWIG_1(self, argc, argv);
48574 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'Database_allterms_end'.\n"
48575 " Possible C/C++ prototypes are:\n"
48576 " allterms_end(Xapian::Database const *)\n"
48577 " allterms_end(Xapian::Database const *,std::string const &)\n");
48580 static __attribute__ ((__unused__)) PyObject *_wrap_Database_get_doccount(PyObject *, PyObject *args) {
48581 PyObject *resultobj = 0;
48582 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
48585 PyObject *swig_obj[1] ;
48586 Xapian::doccount result;
48587 if (!args) goto fail;
48588 swig_obj[0] = args;
48589 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
48590 if (!(res1 >= 0)) {
48591 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database_get_doccount" "', argument " "1"" of type '" "Xapian::Database const *""'"); goto fail; } while(0);
48593 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
48595 SWIG_Python_Thread_Allow _swig_thread_allow;
48598 result = (Xapian::doccount)((Xapian::Database const *)arg1)->get_doccount();
48600 _swig_thread_allow.end();
48601 Xapian::SetPythonException();
48605 _swig_thread_allow.end();
48607 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
48612 static __attribute__ ((__unused__)) PyObject *_wrap_Database_get_lastdocid(PyObject *, PyObject *args) {
48613 PyObject *resultobj = 0;
48614 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
48617 PyObject *swig_obj[1] ;
48618 Xapian::docid result;
48619 if (!args) goto fail;
48620 swig_obj[0] = args;
48621 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
48622 if (!(res1 >= 0)) {
48623 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database_get_lastdocid" "', argument " "1"" of type '" "Xapian::Database const *""'"); goto fail; } while(0);
48625 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
48627 SWIG_Python_Thread_Allow _swig_thread_allow;
48630 result = (Xapian::docid)((Xapian::Database const *)arg1)->get_lastdocid();
48632 _swig_thread_allow.end();
48633 Xapian::SetPythonException();
48637 _swig_thread_allow.end();
48639 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
48644 static __attribute__ ((__unused__)) PyObject *_wrap_Database_get_avlength(PyObject *, PyObject *args) {
48645 PyObject *resultobj = 0;
48646 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
48649 PyObject *swig_obj[1] ;
48650 Xapian::doclength result;
48651 if (!args) goto fail;
48652 swig_obj[0] = args;
48653 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
48654 if (!(res1 >= 0)) {
48655 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database_get_avlength" "', argument " "1"" of type '" "Xapian::Database const *""'"); goto fail; } while(0);
48657 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
48659 SWIG_Python_Thread_Allow _swig_thread_allow;
48662 result = (Xapian::doclength)((Xapian::Database const *)arg1)->get_avlength();
48664 _swig_thread_allow.end();
48665 Xapian::SetPythonException();
48669 _swig_thread_allow.end();
48671 resultobj = PyFloat_FromDouble(static_cast< double >(result));
48676 static __attribute__ ((__unused__)) PyObject *_wrap_Database_get_termfreq(PyObject *, PyObject *args) {
48677 PyObject *resultobj = 0;
48678 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
48679 std::string *arg2 = 0 ;
48683 PyObject *swig_obj[2] ;
48684 Xapian::doccount result;
48685 if (!SWIG_Python_UnpackTuple(args,"Database_get_termfreq",2,2,swig_obj)) goto fail;
48686 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
48687 if (!(res1 >= 0)) {
48688 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database_get_termfreq" "', argument " "1"" of type '" "Xapian::Database const *""'"); goto fail; } while(0);
48690 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
48692 std::string *ptr = (std::string *)0;
48693 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
48694 if (!(res2 >= 0)) {
48695 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Database_get_termfreq" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
48698 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Database_get_termfreq" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
48703 SWIG_Python_Thread_Allow _swig_thread_allow;
48706 result = (Xapian::doccount)((Xapian::Database const *)arg1)->get_termfreq((std::string const &)*arg2);
48708 _swig_thread_allow.end();
48709 Xapian::SetPythonException();
48713 _swig_thread_allow.end();
48715 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
48716 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
48719 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
48722 static __attribute__ ((__unused__)) PyObject *_wrap_Database_term_exists(PyObject *, PyObject *args) {
48723 PyObject *resultobj = 0;
48724 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
48725 std::string *arg2 = 0 ;
48729 PyObject *swig_obj[2] ;
48731 if (!SWIG_Python_UnpackTuple(args,"Database_term_exists",2,2,swig_obj)) goto fail;
48732 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
48733 if (!(res1 >= 0)) {
48734 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database_term_exists" "', argument " "1"" of type '" "Xapian::Database const *""'"); goto fail; } while(0);
48736 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
48738 std::string *ptr = (std::string *)0;
48739 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
48740 if (!(res2 >= 0)) {
48741 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Database_term_exists" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
48744 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Database_term_exists" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
48749 SWIG_Python_Thread_Allow _swig_thread_allow;
48752 result = (bool)((Xapian::Database const *)arg1)->term_exists((std::string const &)*arg2);
48754 _swig_thread_allow.end();
48755 Xapian::SetPythonException();
48759 _swig_thread_allow.end();
48761 resultobj = SWIG_From_bool(static_cast< bool >(result));
48762 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
48765 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
48768 static __attribute__ ((__unused__)) PyObject *_wrap_Database_get_collection_freq(PyObject *, PyObject *args) {
48769 PyObject *resultobj = 0;
48770 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
48771 std::string *arg2 = 0 ;
48775 PyObject *swig_obj[2] ;
48776 Xapian::termcount result;
48777 if (!SWIG_Python_UnpackTuple(args,"Database_get_collection_freq",2,2,swig_obj)) goto fail;
48778 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
48779 if (!(res1 >= 0)) {
48780 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database_get_collection_freq" "', argument " "1"" of type '" "Xapian::Database const *""'"); goto fail; } while(0);
48782 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
48784 std::string *ptr = (std::string *)0;
48785 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
48786 if (!(res2 >= 0)) {
48787 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Database_get_collection_freq" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
48790 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Database_get_collection_freq" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
48795 SWIG_Python_Thread_Allow _swig_thread_allow;
48798 result = (Xapian::termcount)((Xapian::Database const *)arg1)->get_collection_freq((std::string const &)*arg2);
48800 _swig_thread_allow.end();
48801 Xapian::SetPythonException();
48805 _swig_thread_allow.end();
48807 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
48808 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
48811 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
48814 static __attribute__ ((__unused__)) PyObject *_wrap_Database_get_value_freq(PyObject *, PyObject *args) {
48815 PyObject *resultobj = 0;
48816 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
48817 Xapian::valueno arg2 ;
48820 unsigned int val2 ;
48822 PyObject *swig_obj[2] ;
48823 Xapian::doccount result;
48824 if (!SWIG_Python_UnpackTuple(args,"Database_get_value_freq",2,2,swig_obj)) goto fail;
48825 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
48826 if (!(res1 >= 0)) {
48827 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database_get_value_freq" "', argument " "1"" of type '" "Xapian::Database const *""'"); goto fail; } while(0);
48829 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
48830 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
48831 if (!(ecode2 >= 0)) {
48832 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Database_get_value_freq" "', argument " "2"" of type '" "Xapian::valueno""'"); goto fail; } while(0);
48834 arg2 = static_cast< Xapian::valueno >(val2);
48836 SWIG_Python_Thread_Allow _swig_thread_allow;
48839 result = (Xapian::doccount)((Xapian::Database const *)arg1)->get_value_freq(arg2);
48841 _swig_thread_allow.end();
48842 Xapian::SetPythonException();
48846 _swig_thread_allow.end();
48848 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
48853 static __attribute__ ((__unused__)) PyObject *_wrap_Database_get_value_lower_bound(PyObject *, PyObject *args) {
48854 PyObject *resultobj = 0;
48855 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
48856 Xapian::valueno arg2 ;
48859 unsigned int val2 ;
48861 PyObject *swig_obj[2] ;
48862 std::string result;
48863 if (!SWIG_Python_UnpackTuple(args,"Database_get_value_lower_bound",2,2,swig_obj)) goto fail;
48864 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
48865 if (!(res1 >= 0)) {
48866 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database_get_value_lower_bound" "', argument " "1"" of type '" "Xapian::Database const *""'"); goto fail; } while(0);
48868 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
48869 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
48870 if (!(ecode2 >= 0)) {
48871 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Database_get_value_lower_bound" "', argument " "2"" of type '" "Xapian::valueno""'"); goto fail; } while(0);
48873 arg2 = static_cast< Xapian::valueno >(val2);
48875 SWIG_Python_Thread_Allow _swig_thread_allow;
48878 result = ((Xapian::Database const *)arg1)->get_value_lower_bound(arg2);
48880 _swig_thread_allow.end();
48881 Xapian::SetPythonException();
48885 _swig_thread_allow.end();
48887 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
48892 static __attribute__ ((__unused__)) PyObject *_wrap_Database_get_value_upper_bound(PyObject *, PyObject *args) {
48893 PyObject *resultobj = 0;
48894 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
48895 Xapian::valueno arg2 ;
48898 unsigned int val2 ;
48900 PyObject *swig_obj[2] ;
48901 std::string result;
48902 if (!SWIG_Python_UnpackTuple(args,"Database_get_value_upper_bound",2,2,swig_obj)) goto fail;
48903 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
48904 if (!(res1 >= 0)) {
48905 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database_get_value_upper_bound" "', argument " "1"" of type '" "Xapian::Database const *""'"); goto fail; } while(0);
48907 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
48908 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
48909 if (!(ecode2 >= 0)) {
48910 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Database_get_value_upper_bound" "', argument " "2"" of type '" "Xapian::valueno""'"); goto fail; } while(0);
48912 arg2 = static_cast< Xapian::valueno >(val2);
48914 SWIG_Python_Thread_Allow _swig_thread_allow;
48917 result = ((Xapian::Database const *)arg1)->get_value_upper_bound(arg2);
48919 _swig_thread_allow.end();
48920 Xapian::SetPythonException();
48924 _swig_thread_allow.end();
48926 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
48931 static __attribute__ ((__unused__)) PyObject *_wrap_Database_get_doclength_lower_bound(PyObject *, PyObject *args) {
48932 PyObject *resultobj = 0;
48933 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
48936 PyObject *swig_obj[1] ;
48937 Xapian::termcount result;
48938 if (!args) goto fail;
48939 swig_obj[0] = args;
48940 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
48941 if (!(res1 >= 0)) {
48942 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database_get_doclength_lower_bound" "', argument " "1"" of type '" "Xapian::Database const *""'"); goto fail; } while(0);
48944 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
48946 SWIG_Python_Thread_Allow _swig_thread_allow;
48949 result = (Xapian::termcount)((Xapian::Database const *)arg1)->get_doclength_lower_bound();
48951 _swig_thread_allow.end();
48952 Xapian::SetPythonException();
48956 _swig_thread_allow.end();
48958 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
48963 static __attribute__ ((__unused__)) PyObject *_wrap_Database_get_doclength_upper_bound(PyObject *, PyObject *args) {
48964 PyObject *resultobj = 0;
48965 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
48968 PyObject *swig_obj[1] ;
48969 Xapian::termcount result;
48970 if (!args) goto fail;
48971 swig_obj[0] = args;
48972 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
48973 if (!(res1 >= 0)) {
48974 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database_get_doclength_upper_bound" "', argument " "1"" of type '" "Xapian::Database const *""'"); goto fail; } while(0);
48976 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
48978 SWIG_Python_Thread_Allow _swig_thread_allow;
48981 result = (Xapian::termcount)((Xapian::Database const *)arg1)->get_doclength_upper_bound();
48983 _swig_thread_allow.end();
48984 Xapian::SetPythonException();
48988 _swig_thread_allow.end();
48990 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
48995 static __attribute__ ((__unused__)) PyObject *_wrap_Database_get_wdf_upper_bound(PyObject *, PyObject *args) {
48996 PyObject *resultobj = 0;
48997 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
48998 std::string *arg2 = 0 ;
49002 PyObject *swig_obj[2] ;
49003 Xapian::termcount result;
49004 if (!SWIG_Python_UnpackTuple(args,"Database_get_wdf_upper_bound",2,2,swig_obj)) goto fail;
49005 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
49006 if (!(res1 >= 0)) {
49007 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database_get_wdf_upper_bound" "', argument " "1"" of type '" "Xapian::Database const *""'"); goto fail; } while(0);
49009 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
49011 std::string *ptr = (std::string *)0;
49012 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
49013 if (!(res2 >= 0)) {
49014 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Database_get_wdf_upper_bound" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
49017 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Database_get_wdf_upper_bound" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
49022 SWIG_Python_Thread_Allow _swig_thread_allow;
49025 result = (Xapian::termcount)((Xapian::Database const *)arg1)->get_wdf_upper_bound((std::string const &)*arg2);
49027 _swig_thread_allow.end();
49028 Xapian::SetPythonException();
49032 _swig_thread_allow.end();
49034 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
49035 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
49038 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
49041 static __attribute__ ((__unused__)) PyObject *_wrap_Database_valuestream_begin(PyObject *, PyObject *args) {
49042 PyObject *resultobj = 0;
49043 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
49044 Xapian::valueno arg2 ;
49047 unsigned int val2 ;
49049 PyObject *swig_obj[2] ;
49050 Xapian::ValueIterator result;
49051 if (!SWIG_Python_UnpackTuple(args,"Database_valuestream_begin",2,2,swig_obj)) goto fail;
49052 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
49053 if (!(res1 >= 0)) {
49054 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database_valuestream_begin" "', argument " "1"" of type '" "Xapian::Database const *""'"); goto fail; } while(0);
49056 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
49057 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
49058 if (!(ecode2 >= 0)) {
49059 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Database_valuestream_begin" "', argument " "2"" of type '" "Xapian::valueno""'"); goto fail; } while(0);
49061 arg2 = static_cast< Xapian::valueno >(val2);
49063 SWIG_Python_Thread_Allow _swig_thread_allow;
49066 result = ((Xapian::Database const *)arg1)->valuestream_begin(arg2);
49068 _swig_thread_allow.end();
49069 Xapian::SetPythonException();
49073 _swig_thread_allow.end();
49075 resultobj = SWIG_Python_NewPointerObj((new Xapian::ValueIterator(static_cast< const Xapian::ValueIterator& >(result))), swig_types[59], 0x1 | 0);
49080 static __attribute__ ((__unused__)) PyObject *_wrap_Database_valuestream_end(PyObject *, PyObject *args) {
49081 PyObject *resultobj = 0;
49082 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
49083 Xapian::valueno arg2 ;
49086 unsigned int val2 ;
49088 PyObject *swig_obj[2] ;
49089 Xapian::ValueIterator result;
49090 if (!SWIG_Python_UnpackTuple(args,"Database_valuestream_end",2,2,swig_obj)) goto fail;
49091 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
49092 if (!(res1 >= 0)) {
49093 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database_valuestream_end" "', argument " "1"" of type '" "Xapian::Database const *""'"); goto fail; } while(0);
49095 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
49096 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
49097 if (!(ecode2 >= 0)) {
49098 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Database_valuestream_end" "', argument " "2"" of type '" "Xapian::valueno""'"); goto fail; } while(0);
49100 arg2 = static_cast< Xapian::valueno >(val2);
49102 SWIG_Python_Thread_Allow _swig_thread_allow;
49105 result = ((Xapian::Database const *)arg1)->valuestream_end(arg2);
49107 _swig_thread_allow.end();
49108 Xapian::SetPythonException();
49112 _swig_thread_allow.end();
49114 resultobj = SWIG_Python_NewPointerObj((new Xapian::ValueIterator(static_cast< const Xapian::ValueIterator& >(result))), swig_types[59], 0x1 | 0);
49119 static __attribute__ ((__unused__)) PyObject *_wrap_Database_get_doclength(PyObject *, PyObject *args) {
49120 PyObject *resultobj = 0;
49121 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
49122 Xapian::docid arg2 ;
49125 unsigned int val2 ;
49127 PyObject *swig_obj[2] ;
49128 Xapian::doclength result;
49129 if (!SWIG_Python_UnpackTuple(args,"Database_get_doclength",2,2,swig_obj)) goto fail;
49130 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
49131 if (!(res1 >= 0)) {
49132 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database_get_doclength" "', argument " "1"" of type '" "Xapian::Database const *""'"); goto fail; } while(0);
49134 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
49135 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
49136 if (!(ecode2 >= 0)) {
49137 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Database_get_doclength" "', argument " "2"" of type '" "Xapian::docid""'"); goto fail; } while(0);
49139 arg2 = static_cast< Xapian::docid >(val2);
49141 SWIG_Python_Thread_Allow _swig_thread_allow;
49144 result = (Xapian::doclength)((Xapian::Database const *)arg1)->get_doclength(arg2);
49146 _swig_thread_allow.end();
49147 Xapian::SetPythonException();
49151 _swig_thread_allow.end();
49153 resultobj = PyFloat_FromDouble(static_cast< double >(result));
49158 static __attribute__ ((__unused__)) PyObject *_wrap_Database_keep_alive(PyObject *, PyObject *args) {
49159 PyObject *resultobj = 0;
49160 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
49163 PyObject *swig_obj[1] ;
49164 if (!args) goto fail;
49165 swig_obj[0] = args;
49166 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
49167 if (!(res1 >= 0)) {
49168 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database_keep_alive" "', argument " "1"" of type '" "Xapian::Database *""'"); goto fail; } while(0);
49170 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
49172 SWIG_Python_Thread_Allow _swig_thread_allow;
49175 (arg1)->keep_alive();
49177 _swig_thread_allow.end();
49178 Xapian::SetPythonException();
49182 _swig_thread_allow.end();
49184 resultobj = SWIG_Py_Void();
49189 static __attribute__ ((__unused__)) PyObject *_wrap_Database_get_document(PyObject *, PyObject *args) {
49190 PyObject *resultobj = 0;
49191 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
49192 Xapian::docid arg2 ;
49195 unsigned int val2 ;
49197 PyObject *swig_obj[2] ;
49198 Xapian::Document result;
49199 if (!SWIG_Python_UnpackTuple(args,"Database_get_document",2,2,swig_obj)) goto fail;
49200 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
49201 if (!(res1 >= 0)) {
49202 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database_get_document" "', argument " "1"" of type '" "Xapian::Database *""'"); goto fail; } while(0);
49204 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
49205 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
49206 if (!(ecode2 >= 0)) {
49207 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Database_get_document" "', argument " "2"" of type '" "Xapian::docid""'"); goto fail; } while(0);
49209 arg2 = static_cast< Xapian::docid >(val2);
49211 SWIG_Python_Thread_Allow _swig_thread_allow;
49214 result = (arg1)->get_document(arg2);
49216 _swig_thread_allow.end();
49217 Xapian::SetPythonException();
49221 _swig_thread_allow.end();
49223 resultobj = SWIG_Python_NewPointerObj((new Xapian::Document(static_cast< const Xapian::Document& >(result))), swig_types[15], 0x1 | 0);
49228 static __attribute__ ((__unused__)) PyObject *_wrap_Database_get_spelling_suggestion__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
49229 PyObject *resultobj = 0;
49230 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
49231 std::string *arg2 = 0 ;
49232 unsigned int arg3 ;
49236 unsigned int val3 ;
49238 std::string result;
49239 if ((nobjs < 3) || (nobjs > 3)) goto fail;
49240 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
49241 if (!(res1 >= 0)) {
49242 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database_get_spelling_suggestion" "', argument " "1"" of type '" "Xapian::Database const *""'"); goto fail; } while(0);
49244 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
49246 std::string *ptr = (std::string *)0;
49247 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
49248 if (!(res2 >= 0)) {
49249 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Database_get_spelling_suggestion" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
49252 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Database_get_spelling_suggestion" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
49256 ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
49257 if (!(ecode3 >= 0)) {
49258 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "Database_get_spelling_suggestion" "', argument " "3"" of type '" "unsigned int""'"); goto fail; } while(0);
49260 arg3 = static_cast< unsigned int >(val3);
49262 SWIG_Python_Thread_Allow _swig_thread_allow;
49265 result = ((Xapian::Database const *)arg1)->get_spelling_suggestion((std::string const &)*arg2,arg3);
49267 _swig_thread_allow.end();
49268 Xapian::SetPythonException();
49272 _swig_thread_allow.end();
49274 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
49275 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
49278 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
49281 static __attribute__ ((__unused__)) PyObject *_wrap_Database_get_spelling_suggestion__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
49282 PyObject *resultobj = 0;
49283 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
49284 std::string *arg2 = 0 ;
49288 std::string result;
49289 if ((nobjs < 2) || (nobjs > 2)) goto fail;
49290 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
49291 if (!(res1 >= 0)) {
49292 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database_get_spelling_suggestion" "', argument " "1"" of type '" "Xapian::Database const *""'"); goto fail; } while(0);
49294 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
49296 std::string *ptr = (std::string *)0;
49297 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
49298 if (!(res2 >= 0)) {
49299 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Database_get_spelling_suggestion" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
49302 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Database_get_spelling_suggestion" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
49307 SWIG_Python_Thread_Allow _swig_thread_allow;
49310 result = ((Xapian::Database const *)arg1)->get_spelling_suggestion((std::string const &)*arg2);
49312 _swig_thread_allow.end();
49313 Xapian::SetPythonException();
49317 _swig_thread_allow.end();
49319 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
49320 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
49323 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
49326 static __attribute__ ((__unused__)) PyObject *_wrap_Database_get_spelling_suggestion(PyObject *self, PyObject *args) {
49329 if (!(argc = SWIG_Python_UnpackTuple(args,"Database_get_spelling_suggestion",0,3,argv))) goto fail;
49332 return _wrap_Database_get_spelling_suggestion__SWIG_1(self, argc, argv);
49335 return _wrap_Database_get_spelling_suggestion__SWIG_0(self, argc, argv);
49338 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'Database_get_spelling_suggestion'.\n"
49339 " Possible C/C++ prototypes are:\n"
49340 " get_spelling_suggestion(Xapian::Database const *,std::string const &,unsigned int)\n"
49341 " get_spelling_suggestion(Xapian::Database const *,std::string const &)\n");
49344 static __attribute__ ((__unused__)) PyObject *_wrap_Database_spellings_begin(PyObject *, PyObject *args) {
49345 PyObject *resultobj = 0;
49346 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
49349 PyObject *swig_obj[1] ;
49350 Xapian::TermIterator result;
49351 if (!args) goto fail;
49352 swig_obj[0] = args;
49353 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
49354 if (!(res1 >= 0)) {
49355 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database_spellings_begin" "', argument " "1"" of type '" "Xapian::Database const *""'"); goto fail; } while(0);
49357 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
49359 SWIG_Python_Thread_Allow _swig_thread_allow;
49362 result = ((Xapian::Database const *)arg1)->spellings_begin();
49364 _swig_thread_allow.end();
49365 Xapian::SetPythonException();
49369 _swig_thread_allow.end();
49371 resultobj = SWIG_Python_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), swig_types[55], 0x1 | 0);
49376 static __attribute__ ((__unused__)) PyObject *_wrap_Database_spellings_end(PyObject *, PyObject *args) {
49377 PyObject *resultobj = 0;
49378 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
49381 PyObject *swig_obj[1] ;
49382 Xapian::TermIterator result;
49383 if (!args) goto fail;
49384 swig_obj[0] = args;
49385 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
49386 if (!(res1 >= 0)) {
49387 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database_spellings_end" "', argument " "1"" of type '" "Xapian::Database const *""'"); goto fail; } while(0);
49389 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
49391 SWIG_Python_Thread_Allow _swig_thread_allow;
49394 result = ((Xapian::Database const *)arg1)->spellings_end();
49396 _swig_thread_allow.end();
49397 Xapian::SetPythonException();
49401 _swig_thread_allow.end();
49403 resultobj = SWIG_Python_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), swig_types[55], 0x1 | 0);
49408 static __attribute__ ((__unused__)) PyObject *_wrap_Database_synonyms_begin(PyObject *, PyObject *args) {
49409 PyObject *resultobj = 0;
49410 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
49411 std::string *arg2 = 0 ;
49415 PyObject *swig_obj[2] ;
49416 Xapian::TermIterator result;
49417 if (!SWIG_Python_UnpackTuple(args,"Database_synonyms_begin",2,2,swig_obj)) goto fail;
49418 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
49419 if (!(res1 >= 0)) {
49420 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database_synonyms_begin" "', argument " "1"" of type '" "Xapian::Database const *""'"); goto fail; } while(0);
49422 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
49424 std::string *ptr = (std::string *)0;
49425 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
49426 if (!(res2 >= 0)) {
49427 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Database_synonyms_begin" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
49430 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Database_synonyms_begin" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
49435 SWIG_Python_Thread_Allow _swig_thread_allow;
49438 result = ((Xapian::Database const *)arg1)->synonyms_begin((std::string const &)*arg2);
49440 _swig_thread_allow.end();
49441 Xapian::SetPythonException();
49445 _swig_thread_allow.end();
49447 resultobj = SWIG_Python_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), swig_types[55], 0x1 | 0);
49448 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
49451 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
49454 static __attribute__ ((__unused__)) PyObject *_wrap_Database_synonyms_end(PyObject *, PyObject *args) {
49455 PyObject *resultobj = 0;
49456 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
49457 std::string *arg2 = 0 ;
49461 PyObject *swig_obj[2] ;
49462 Xapian::TermIterator result;
49463 if (!SWIG_Python_UnpackTuple(args,"Database_synonyms_end",2,2,swig_obj)) goto fail;
49464 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
49465 if (!(res1 >= 0)) {
49466 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database_synonyms_end" "', argument " "1"" of type '" "Xapian::Database const *""'"); goto fail; } while(0);
49468 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
49470 std::string *ptr = (std::string *)0;
49471 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
49472 if (!(res2 >= 0)) {
49473 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Database_synonyms_end" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
49476 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Database_synonyms_end" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
49481 SWIG_Python_Thread_Allow _swig_thread_allow;
49484 result = ((Xapian::Database const *)arg1)->synonyms_end((std::string const &)*arg2);
49486 _swig_thread_allow.end();
49487 Xapian::SetPythonException();
49491 _swig_thread_allow.end();
49493 resultobj = SWIG_Python_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), swig_types[55], 0x1 | 0);
49494 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
49497 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
49500 static __attribute__ ((__unused__)) PyObject *_wrap_Database_synonym_keys_begin__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
49501 PyObject *resultobj = 0;
49502 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
49503 std::string *arg2 = 0 ;
49507 Xapian::TermIterator result;
49508 if ((nobjs < 2) || (nobjs > 2)) goto fail;
49509 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
49510 if (!(res1 >= 0)) {
49511 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database_synonym_keys_begin" "', argument " "1"" of type '" "Xapian::Database const *""'"); goto fail; } while(0);
49513 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
49515 std::string *ptr = (std::string *)0;
49516 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
49517 if (!(res2 >= 0)) {
49518 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Database_synonym_keys_begin" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
49521 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Database_synonym_keys_begin" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
49526 SWIG_Python_Thread_Allow _swig_thread_allow;
49529 result = ((Xapian::Database const *)arg1)->synonym_keys_begin((std::string const &)*arg2);
49531 _swig_thread_allow.end();
49532 Xapian::SetPythonException();
49536 _swig_thread_allow.end();
49538 resultobj = SWIG_Python_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), swig_types[55], 0x1 | 0);
49539 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
49542 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
49545 static __attribute__ ((__unused__)) PyObject *_wrap_Database_synonym_keys_begin__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
49546 PyObject *resultobj = 0;
49547 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
49550 Xapian::TermIterator result;
49551 if ((nobjs < 1) || (nobjs > 1)) goto fail;
49552 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
49553 if (!(res1 >= 0)) {
49554 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database_synonym_keys_begin" "', argument " "1"" of type '" "Xapian::Database const *""'"); goto fail; } while(0);
49556 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
49558 SWIG_Python_Thread_Allow _swig_thread_allow;
49561 result = ((Xapian::Database const *)arg1)->synonym_keys_begin();
49563 _swig_thread_allow.end();
49564 Xapian::SetPythonException();
49568 _swig_thread_allow.end();
49570 resultobj = SWIG_Python_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), swig_types[55], 0x1 | 0);
49575 static __attribute__ ((__unused__)) PyObject *_wrap_Database_synonym_keys_begin(PyObject *self, PyObject *args) {
49578 if (!(argc = SWIG_Python_UnpackTuple(args,"Database_synonym_keys_begin",0,2,argv))) goto fail;
49581 return _wrap_Database_synonym_keys_begin__SWIG_1(self, argc, argv);
49584 return _wrap_Database_synonym_keys_begin__SWIG_0(self, argc, argv);
49587 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'Database_synonym_keys_begin'.\n"
49588 " Possible C/C++ prototypes are:\n"
49589 " synonym_keys_begin(Xapian::Database const *,std::string const &)\n"
49590 " synonym_keys_begin(Xapian::Database const *)\n");
49593 static __attribute__ ((__unused__)) PyObject *_wrap_Database_synonym_keys_end__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
49594 PyObject *resultobj = 0;
49595 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
49596 std::string *arg2 = 0 ;
49600 Xapian::TermIterator result;
49601 if ((nobjs < 2) || (nobjs > 2)) goto fail;
49602 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
49603 if (!(res1 >= 0)) {
49604 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database_synonym_keys_end" "', argument " "1"" of type '" "Xapian::Database const *""'"); goto fail; } while(0);
49606 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
49608 std::string *ptr = (std::string *)0;
49609 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
49610 if (!(res2 >= 0)) {
49611 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Database_synonym_keys_end" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
49614 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Database_synonym_keys_end" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
49619 SWIG_Python_Thread_Allow _swig_thread_allow;
49622 result = ((Xapian::Database const *)arg1)->synonym_keys_end((std::string const &)*arg2);
49624 _swig_thread_allow.end();
49625 Xapian::SetPythonException();
49629 _swig_thread_allow.end();
49631 resultobj = SWIG_Python_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), swig_types[55], 0x1 | 0);
49632 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
49635 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
49638 static __attribute__ ((__unused__)) PyObject *_wrap_Database_synonym_keys_end__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
49639 PyObject *resultobj = 0;
49640 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
49643 Xapian::TermIterator result;
49644 if ((nobjs < 1) || (nobjs > 1)) goto fail;
49645 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
49646 if (!(res1 >= 0)) {
49647 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database_synonym_keys_end" "', argument " "1"" of type '" "Xapian::Database const *""'"); goto fail; } while(0);
49649 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
49651 SWIG_Python_Thread_Allow _swig_thread_allow;
49654 result = ((Xapian::Database const *)arg1)->synonym_keys_end();
49656 _swig_thread_allow.end();
49657 Xapian::SetPythonException();
49661 _swig_thread_allow.end();
49663 resultobj = SWIG_Python_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), swig_types[55], 0x1 | 0);
49668 static __attribute__ ((__unused__)) PyObject *_wrap_Database_synonym_keys_end(PyObject *self, PyObject *args) {
49671 if (!(argc = SWIG_Python_UnpackTuple(args,"Database_synonym_keys_end",0,2,argv))) goto fail;
49674 return _wrap_Database_synonym_keys_end__SWIG_1(self, argc, argv);
49677 return _wrap_Database_synonym_keys_end__SWIG_0(self, argc, argv);
49680 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'Database_synonym_keys_end'.\n"
49681 " Possible C/C++ prototypes are:\n"
49682 " synonym_keys_end(Xapian::Database const *,std::string const &)\n"
49683 " synonym_keys_end(Xapian::Database const *)\n");
49686 static __attribute__ ((__unused__)) PyObject *_wrap_Database_get_metadata(PyObject *, PyObject *args) {
49687 PyObject *resultobj = 0;
49688 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
49689 std::string *arg2 = 0 ;
49693 PyObject *swig_obj[2] ;
49694 std::string result;
49695 if (!SWIG_Python_UnpackTuple(args,"Database_get_metadata",2,2,swig_obj)) goto fail;
49696 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
49697 if (!(res1 >= 0)) {
49698 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database_get_metadata" "', argument " "1"" of type '" "Xapian::Database const *""'"); goto fail; } while(0);
49700 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
49702 std::string *ptr = (std::string *)0;
49703 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
49704 if (!(res2 >= 0)) {
49705 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Database_get_metadata" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
49708 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Database_get_metadata" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
49713 SWIG_Python_Thread_Allow _swig_thread_allow;
49716 result = ((Xapian::Database const *)arg1)->get_metadata((std::string const &)*arg2);
49718 _swig_thread_allow.end();
49719 Xapian::SetPythonException();
49723 _swig_thread_allow.end();
49725 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
49726 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
49729 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
49732 static __attribute__ ((__unused__)) PyObject *_wrap_Database__metadata_keys_begin__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
49733 PyObject *resultobj = 0;
49734 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
49735 std::string *arg2 = 0 ;
49739 Xapian::TermIterator result;
49740 if ((nobjs < 2) || (nobjs > 2)) goto fail;
49741 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
49742 if (!(res1 >= 0)) {
49743 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database__metadata_keys_begin" "', argument " "1"" of type '" "Xapian::Database const *""'"); goto fail; } while(0);
49745 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
49747 std::string *ptr = (std::string *)0;
49748 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
49749 if (!(res2 >= 0)) {
49750 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Database__metadata_keys_begin" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
49753 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Database__metadata_keys_begin" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
49758 SWIG_Python_Thread_Allow _swig_thread_allow;
49761 result = ((Xapian::Database const *)arg1)->metadata_keys_begin((std::string const &)*arg2);
49763 _swig_thread_allow.end();
49764 Xapian::SetPythonException();
49768 _swig_thread_allow.end();
49770 resultobj = SWIG_Python_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), swig_types[55], 0x1 | 0);
49771 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
49774 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
49777 static __attribute__ ((__unused__)) PyObject *_wrap_Database__metadata_keys_begin__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
49778 PyObject *resultobj = 0;
49779 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
49782 Xapian::TermIterator result;
49783 if ((nobjs < 1) || (nobjs > 1)) goto fail;
49784 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
49785 if (!(res1 >= 0)) {
49786 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database__metadata_keys_begin" "', argument " "1"" of type '" "Xapian::Database const *""'"); goto fail; } while(0);
49788 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
49790 SWIG_Python_Thread_Allow _swig_thread_allow;
49793 result = ((Xapian::Database const *)arg1)->metadata_keys_begin();
49795 _swig_thread_allow.end();
49796 Xapian::SetPythonException();
49800 _swig_thread_allow.end();
49802 resultobj = SWIG_Python_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), swig_types[55], 0x1 | 0);
49807 static __attribute__ ((__unused__)) PyObject *_wrap_Database__metadata_keys_begin(PyObject *self, PyObject *args) {
49810 if (!(argc = SWIG_Python_UnpackTuple(args,"Database__metadata_keys_begin",0,2,argv))) goto fail;
49813 return _wrap_Database__metadata_keys_begin__SWIG_1(self, argc, argv);
49816 return _wrap_Database__metadata_keys_begin__SWIG_0(self, argc, argv);
49819 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'Database__metadata_keys_begin'.\n"
49820 " Possible C/C++ prototypes are:\n"
49821 " metadata_keys_begin(Xapian::Database const *,std::string const &)\n"
49822 " metadata_keys_begin(Xapian::Database const *)\n");
49825 static __attribute__ ((__unused__)) PyObject *_wrap_Database__metadata_keys_end__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
49826 PyObject *resultobj = 0;
49827 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
49828 std::string *arg2 = 0 ;
49832 Xapian::TermIterator result;
49833 if ((nobjs < 2) || (nobjs > 2)) goto fail;
49834 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
49835 if (!(res1 >= 0)) {
49836 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database__metadata_keys_end" "', argument " "1"" of type '" "Xapian::Database const *""'"); goto fail; } while(0);
49838 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
49840 std::string *ptr = (std::string *)0;
49841 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
49842 if (!(res2 >= 0)) {
49843 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Database__metadata_keys_end" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
49846 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Database__metadata_keys_end" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
49851 SWIG_Python_Thread_Allow _swig_thread_allow;
49854 result = ((Xapian::Database const *)arg1)->metadata_keys_end((std::string const &)*arg2);
49856 _swig_thread_allow.end();
49857 Xapian::SetPythonException();
49861 _swig_thread_allow.end();
49863 resultobj = SWIG_Python_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), swig_types[55], 0x1 | 0);
49864 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
49867 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
49870 static __attribute__ ((__unused__)) PyObject *_wrap_Database__metadata_keys_end__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
49871 PyObject *resultobj = 0;
49872 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
49875 Xapian::TermIterator result;
49876 if ((nobjs < 1) || (nobjs > 1)) goto fail;
49877 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
49878 if (!(res1 >= 0)) {
49879 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database__metadata_keys_end" "', argument " "1"" of type '" "Xapian::Database const *""'"); goto fail; } while(0);
49881 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
49883 SWIG_Python_Thread_Allow _swig_thread_allow;
49886 result = ((Xapian::Database const *)arg1)->metadata_keys_end();
49888 _swig_thread_allow.end();
49889 Xapian::SetPythonException();
49893 _swig_thread_allow.end();
49895 resultobj = SWIG_Python_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), swig_types[55], 0x1 | 0);
49900 static __attribute__ ((__unused__)) PyObject *_wrap_Database__metadata_keys_end(PyObject *self, PyObject *args) {
49903 if (!(argc = SWIG_Python_UnpackTuple(args,"Database__metadata_keys_end",0,2,argv))) goto fail;
49906 return _wrap_Database__metadata_keys_end__SWIG_1(self, argc, argv);
49909 return _wrap_Database__metadata_keys_end__SWIG_0(self, argc, argv);
49912 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'Database__metadata_keys_end'.\n"
49913 " Possible C/C++ prototypes are:\n"
49914 " metadata_keys_end(Xapian::Database const *,std::string const &)\n"
49915 " metadata_keys_end(Xapian::Database const *)\n");
49918 static __attribute__ ((__unused__)) PyObject *_wrap_Database_get_uuid(PyObject *, PyObject *args) {
49919 PyObject *resultobj = 0;
49920 Xapian::Database *arg1 = (Xapian::Database *) 0 ;
49923 PyObject *swig_obj[1] ;
49924 std::string result;
49925 if (!args) goto fail;
49926 swig_obj[0] = args;
49927 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[4], 0 | 0, 0);
49928 if (!(res1 >= 0)) {
49929 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Database_get_uuid" "', argument " "1"" of type '" "Xapian::Database const *""'"); goto fail; } while(0);
49931 arg1 = reinterpret_cast< Xapian::Database * >(argp1);
49933 SWIG_Python_Thread_Allow _swig_thread_allow;
49936 result = ((Xapian::Database const *)arg1)->get_uuid();
49938 _swig_thread_allow.end();
49939 Xapian::SetPythonException();
49943 _swig_thread_allow.end();
49945 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
49950 static __attribute__ ((__unused__)) PyObject *Database_swigregister(PyObject *, PyObject *args) {
49952 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
49953 SWIG_TypeNewClientData(swig_types[4], SwigPyClientData_New(obj));
49954 return SWIG_Py_Void();
49956 static __attribute__ ((__unused__)) PyObject *Database_swiginit(PyObject *, PyObject *args) {
49957 return SWIG_Python_InitShadowInstance(args);
49959 static __attribute__ ((__unused__)) PyObject *_wrap_delete_WritableDatabase(PyObject *, PyObject *args) {
49960 PyObject *resultobj = 0;
49961 Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
49964 PyObject *swig_obj[1] ;
49965 if (!args) goto fail;
49966 swig_obj[0] = args;
49967 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[66], 0x1 | 0, 0);
49968 if (!(res1 >= 0)) {
49969 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_WritableDatabase" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'"); goto fail; } while(0);
49971 arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
49973 SWIG_Python_Thread_Allow _swig_thread_allow;
49978 _swig_thread_allow.end();
49979 Xapian::SetPythonException();
49983 _swig_thread_allow.end();
49985 resultobj = SWIG_Py_Void();
49990 static __attribute__ ((__unused__)) PyObject *_wrap_new_WritableDatabase__SWIG_0(PyObject *, int nobjs, PyObject **) {
49991 PyObject *resultobj = 0;
49992 Xapian::WritableDatabase *result = 0 ;
49993 if ((nobjs < 0) || (nobjs > 0)) goto fail;
49995 SWIG_Python_Thread_Allow _swig_thread_allow;
49998 result = (Xapian::WritableDatabase *)new Xapian::WritableDatabase();
50000 _swig_thread_allow.end();
50001 Xapian::SetPythonException();
50005 _swig_thread_allow.end();
50007 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[66], ((0x1 << 1) | 0x1) | 0);
50012 static __attribute__ ((__unused__)) PyObject *_wrap_new_WritableDatabase__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
50013 PyObject *resultobj = 0;
50014 std::string *arg1 = 0 ;
50019 Xapian::WritableDatabase *result = 0 ;
50020 if ((nobjs < 2) || (nobjs > 2)) goto fail;
50022 std::string *ptr = (std::string *)0;
50023 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
50024 if (!(res1 >= 0)) {
50025 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_WritableDatabase" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
50028 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_WritableDatabase" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
50032 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
50033 if (!(ecode2 >= 0)) {
50034 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_WritableDatabase" "', argument " "2"" of type '" "int""'"); goto fail; } while(0);
50036 arg2 = static_cast< int >(val2);
50038 SWIG_Python_Thread_Allow _swig_thread_allow;
50041 result = (Xapian::WritableDatabase *)new Xapian::WritableDatabase((std::string const &)*arg1,arg2);
50043 _swig_thread_allow.end();
50044 Xapian::SetPythonException();
50048 _swig_thread_allow.end();
50050 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[66], ((0x1 << 1) | 0x1) | 0);
50051 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
50054 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
50057 static __attribute__ ((__unused__)) PyObject *_wrap_new_WritableDatabase__SWIG_2(PyObject *, int nobjs, PyObject **swig_obj) {
50058 PyObject *resultobj = 0;
50059 Xapian::WritableDatabase *arg1 = 0 ;
50062 Xapian::WritableDatabase *result = 0 ;
50063 if ((nobjs < 1) || (nobjs > 1)) goto fail;
50064 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[66], 0 | 0, 0);
50065 if (!(res1 >= 0)) {
50066 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_WritableDatabase" "', argument " "1"" of type '" "Xapian::WritableDatabase const &""'"); goto fail; } while(0);
50069 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_WritableDatabase" "', argument " "1"" of type '" "Xapian::WritableDatabase const &""'"); goto fail; } while(0);
50071 arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
50073 SWIG_Python_Thread_Allow _swig_thread_allow;
50076 result = (Xapian::WritableDatabase *)new Xapian::WritableDatabase((Xapian::WritableDatabase const &)*arg1);
50078 _swig_thread_allow.end();
50079 Xapian::SetPythonException();
50083 _swig_thread_allow.end();
50085 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[66], ((0x1 << 1) | 0x1) | 0);
50090 static __attribute__ ((__unused__)) PyObject *_wrap_new_WritableDatabase(PyObject *self, PyObject *args) {
50093 if (!(argc = SWIG_Python_UnpackTuple(args,"new_WritableDatabase",0,2,argv))) goto fail;
50096 return _wrap_new_WritableDatabase__SWIG_0(self, argc, argv);
50099 return _wrap_new_WritableDatabase__SWIG_2(self, argc, argv);
50102 return _wrap_new_WritableDatabase__SWIG_1(self, argc, argv);
50105 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_WritableDatabase'.\n"
50106 " Possible C/C++ prototypes are:\n"
50107 " Xapian::WritableDatabase()\n"
50108 " Xapian::WritableDatabase(std::string const &,int)\n"
50109 " Xapian::WritableDatabase(Xapian::WritableDatabase const &)\n");
50112 static __attribute__ ((__unused__)) PyObject *_wrap_WritableDatabase_commit(PyObject *, PyObject *args) {
50113 PyObject *resultobj = 0;
50114 Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
50117 PyObject *swig_obj[1] ;
50118 if (!args) goto fail;
50119 swig_obj[0] = args;
50120 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[66], 0 | 0, 0);
50121 if (!(res1 >= 0)) {
50122 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "WritableDatabase_commit" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'"); goto fail; } while(0);
50124 arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
50126 SWIG_Python_Thread_Allow _swig_thread_allow;
50131 _swig_thread_allow.end();
50132 Xapian::SetPythonException();
50136 _swig_thread_allow.end();
50138 resultobj = SWIG_Py_Void();
50143 static __attribute__ ((__unused__)) PyObject *_wrap_WritableDatabase_flush(PyObject *, PyObject *args) {
50144 PyObject *resultobj = 0;
50145 Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
50148 PyObject *swig_obj[1] ;
50149 if (!args) goto fail;
50150 swig_obj[0] = args;
50151 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[66], 0 | 0, 0);
50152 if (!(res1 >= 0)) {
50153 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "WritableDatabase_flush" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'"); goto fail; } while(0);
50155 arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
50157 SWIG_Python_Thread_Allow _swig_thread_allow;
50162 _swig_thread_allow.end();
50163 Xapian::SetPythonException();
50167 _swig_thread_allow.end();
50169 resultobj = SWIG_Py_Void();
50174 static __attribute__ ((__unused__)) PyObject *_wrap_WritableDatabase_begin_transaction__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
50175 PyObject *resultobj = 0;
50176 Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
50182 if ((nobjs < 2) || (nobjs > 2)) goto fail;
50183 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[66], 0 | 0, 0);
50184 if (!(res1 >= 0)) {
50185 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "WritableDatabase_begin_transaction" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'"); goto fail; } while(0);
50187 arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
50188 ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
50189 if (!(ecode2 >= 0)) {
50190 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "WritableDatabase_begin_transaction" "', argument " "2"" of type '" "bool""'"); goto fail; } while(0);
50192 arg2 = static_cast< bool >(val2);
50194 SWIG_Python_Thread_Allow _swig_thread_allow;
50197 (arg1)->begin_transaction(arg2);
50199 _swig_thread_allow.end();
50200 Xapian::SetPythonException();
50204 _swig_thread_allow.end();
50206 resultobj = SWIG_Py_Void();
50211 static __attribute__ ((__unused__)) PyObject *_wrap_WritableDatabase_begin_transaction__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
50212 PyObject *resultobj = 0;
50213 Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
50216 if ((nobjs < 1) || (nobjs > 1)) goto fail;
50217 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[66], 0 | 0, 0);
50218 if (!(res1 >= 0)) {
50219 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "WritableDatabase_begin_transaction" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'"); goto fail; } while(0);
50221 arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
50223 SWIG_Python_Thread_Allow _swig_thread_allow;
50226 (arg1)->begin_transaction();
50228 _swig_thread_allow.end();
50229 Xapian::SetPythonException();
50233 _swig_thread_allow.end();
50235 resultobj = SWIG_Py_Void();
50240 static __attribute__ ((__unused__)) PyObject *_wrap_WritableDatabase_begin_transaction(PyObject *self, PyObject *args) {
50243 if (!(argc = SWIG_Python_UnpackTuple(args,"WritableDatabase_begin_transaction",0,2,argv))) goto fail;
50246 return _wrap_WritableDatabase_begin_transaction__SWIG_1(self, argc, argv);
50249 return _wrap_WritableDatabase_begin_transaction__SWIG_0(self, argc, argv);
50252 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'WritableDatabase_begin_transaction'.\n"
50253 " Possible C/C++ prototypes are:\n"
50254 " begin_transaction(Xapian::WritableDatabase *,bool)\n"
50255 " begin_transaction(Xapian::WritableDatabase *)\n");
50258 static __attribute__ ((__unused__)) PyObject *_wrap_WritableDatabase_commit_transaction(PyObject *, PyObject *args) {
50259 PyObject *resultobj = 0;
50260 Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
50263 PyObject *swig_obj[1] ;
50264 if (!args) goto fail;
50265 swig_obj[0] = args;
50266 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[66], 0 | 0, 0);
50267 if (!(res1 >= 0)) {
50268 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "WritableDatabase_commit_transaction" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'"); goto fail; } while(0);
50270 arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
50272 SWIG_Python_Thread_Allow _swig_thread_allow;
50275 (arg1)->commit_transaction();
50277 _swig_thread_allow.end();
50278 Xapian::SetPythonException();
50282 _swig_thread_allow.end();
50284 resultobj = SWIG_Py_Void();
50289 static __attribute__ ((__unused__)) PyObject *_wrap_WritableDatabase_cancel_transaction(PyObject *, PyObject *args) {
50290 PyObject *resultobj = 0;
50291 Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
50294 PyObject *swig_obj[1] ;
50295 if (!args) goto fail;
50296 swig_obj[0] = args;
50297 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[66], 0 | 0, 0);
50298 if (!(res1 >= 0)) {
50299 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "WritableDatabase_cancel_transaction" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'"); goto fail; } while(0);
50301 arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
50303 SWIG_Python_Thread_Allow _swig_thread_allow;
50306 (arg1)->cancel_transaction();
50308 _swig_thread_allow.end();
50309 Xapian::SetPythonException();
50313 _swig_thread_allow.end();
50315 resultobj = SWIG_Py_Void();
50320 static __attribute__ ((__unused__)) PyObject *_wrap_WritableDatabase_add_document(PyObject *, PyObject *args) {
50321 PyObject *resultobj = 0;
50322 Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
50323 Xapian::Document *arg2 = 0 ;
50328 PyObject *swig_obj[2] ;
50329 Xapian::docid result;
50330 if (!SWIG_Python_UnpackTuple(args,"WritableDatabase_add_document",2,2,swig_obj)) goto fail;
50331 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[66], 0 | 0, 0);
50332 if (!(res1 >= 0)) {
50333 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "WritableDatabase_add_document" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'"); goto fail; } while(0);
50335 arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
50336 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[15], 0 | 0, 0);
50337 if (!(res2 >= 0)) {
50338 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "WritableDatabase_add_document" "', argument " "2"" of type '" "Xapian::Document const &""'"); goto fail; } while(0);
50341 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "WritableDatabase_add_document" "', argument " "2"" of type '" "Xapian::Document const &""'"); goto fail; } while(0);
50343 arg2 = reinterpret_cast< Xapian::Document * >(argp2);
50345 SWIG_Python_Thread_Allow _swig_thread_allow;
50348 result = (Xapian::docid)(arg1)->add_document((Xapian::Document const &)*arg2);
50350 _swig_thread_allow.end();
50351 Xapian::SetPythonException();
50355 _swig_thread_allow.end();
50357 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
50362 static __attribute__ ((__unused__)) PyObject *_wrap_WritableDatabase_delete_document__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
50363 PyObject *resultobj = 0;
50364 Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
50365 Xapian::docid arg2 ;
50368 unsigned int val2 ;
50370 if ((nobjs < 2) || (nobjs > 2)) goto fail;
50371 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[66], 0 | 0, 0);
50372 if (!(res1 >= 0)) {
50373 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "WritableDatabase_delete_document" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'"); goto fail; } while(0);
50375 arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
50376 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
50377 if (!(ecode2 >= 0)) {
50378 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "WritableDatabase_delete_document" "', argument " "2"" of type '" "Xapian::docid""'"); goto fail; } while(0);
50380 arg2 = static_cast< Xapian::docid >(val2);
50382 SWIG_Python_Thread_Allow _swig_thread_allow;
50385 (arg1)->delete_document(arg2);
50387 _swig_thread_allow.end();
50388 Xapian::SetPythonException();
50392 _swig_thread_allow.end();
50394 resultobj = SWIG_Py_Void();
50399 static __attribute__ ((__unused__)) PyObject *_wrap_WritableDatabase_replace_document__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
50400 PyObject *resultobj = 0;
50401 Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
50402 Xapian::docid arg2 ;
50403 Xapian::Document *arg3 = 0 ;
50406 unsigned int val2 ;
50410 if ((nobjs < 3) || (nobjs > 3)) goto fail;
50411 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[66], 0 | 0, 0);
50412 if (!(res1 >= 0)) {
50413 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "WritableDatabase_replace_document" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'"); goto fail; } while(0);
50415 arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
50416 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
50417 if (!(ecode2 >= 0)) {
50418 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "WritableDatabase_replace_document" "', argument " "2"" of type '" "Xapian::docid""'"); goto fail; } while(0);
50420 arg2 = static_cast< Xapian::docid >(val2);
50421 res3 = SWIG_Python_ConvertPtrAndOwn(swig_obj[2], &argp3, swig_types[15], 0 | 0, 0);
50422 if (!(res3 >= 0)) {
50423 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (-1)) ? res3 : -5)), "in method '" "WritableDatabase_replace_document" "', argument " "3"" of type '" "Xapian::Document const &""'"); goto fail; } while(0);
50426 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "WritableDatabase_replace_document" "', argument " "3"" of type '" "Xapian::Document const &""'"); goto fail; } while(0);
50428 arg3 = reinterpret_cast< Xapian::Document * >(argp3);
50430 SWIG_Python_Thread_Allow _swig_thread_allow;
50433 (arg1)->replace_document(arg2,(Xapian::Document const &)*arg3);
50435 _swig_thread_allow.end();
50436 Xapian::SetPythonException();
50440 _swig_thread_allow.end();
50442 resultobj = SWIG_Py_Void();
50447 static __attribute__ ((__unused__)) PyObject *_wrap_WritableDatabase_delete_document__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
50448 PyObject *resultobj = 0;
50449 Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
50450 std::string *arg2 = 0 ;
50454 if ((nobjs < 2) || (nobjs > 2)) goto fail;
50455 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[66], 0 | 0, 0);
50456 if (!(res1 >= 0)) {
50457 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "WritableDatabase_delete_document" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'"); goto fail; } while(0);
50459 arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
50461 std::string *ptr = (std::string *)0;
50462 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
50463 if (!(res2 >= 0)) {
50464 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "WritableDatabase_delete_document" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
50467 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "WritableDatabase_delete_document" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
50472 SWIG_Python_Thread_Allow _swig_thread_allow;
50475 (arg1)->delete_document((std::string const &)*arg2);
50477 _swig_thread_allow.end();
50478 Xapian::SetPythonException();
50482 _swig_thread_allow.end();
50484 resultobj = SWIG_Py_Void();
50485 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
50488 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
50491 static __attribute__ ((__unused__)) PyObject *_wrap_WritableDatabase_delete_document(PyObject *self, PyObject *args) {
50494 if (!(argc = SWIG_Python_UnpackTuple(args,"WritableDatabase_delete_document",0,2,argv))) goto fail;
50500 int res = SWIG_AsVal_unsigned_SS_int(argv[1], __null);
50501 _v = ((res >= 0) ? 1 : 0);
50504 if (!_v) goto check_1;
50505 return _wrap_WritableDatabase_delete_document__SWIG_0(self, argc, argv);
50509 return _wrap_WritableDatabase_delete_document__SWIG_1(self, argc, argv);
50512 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'WritableDatabase_delete_document'.\n"
50513 " Possible C/C++ prototypes are:\n"
50514 " delete_document(Xapian::WritableDatabase *,Xapian::docid)\n"
50515 " delete_document(Xapian::WritableDatabase *,std::string const &)\n");
50518 static __attribute__ ((__unused__)) PyObject *_wrap_WritableDatabase_replace_document__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
50519 PyObject *resultobj = 0;
50520 Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
50521 std::string *arg2 = 0 ;
50522 Xapian::Document *arg3 = 0 ;
50528 Xapian::docid result;
50529 if ((nobjs < 3) || (nobjs > 3)) goto fail;
50530 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[66], 0 | 0, 0);
50531 if (!(res1 >= 0)) {
50532 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "WritableDatabase_replace_document" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'"); goto fail; } while(0);
50534 arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
50536 std::string *ptr = (std::string *)0;
50537 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
50538 if (!(res2 >= 0)) {
50539 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "WritableDatabase_replace_document" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
50542 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "WritableDatabase_replace_document" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
50546 res3 = SWIG_Python_ConvertPtrAndOwn(swig_obj[2], &argp3, swig_types[15], 0 | 0, 0);
50547 if (!(res3 >= 0)) {
50548 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (-1)) ? res3 : -5)), "in method '" "WritableDatabase_replace_document" "', argument " "3"" of type '" "Xapian::Document const &""'"); goto fail; } while(0);
50551 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "WritableDatabase_replace_document" "', argument " "3"" of type '" "Xapian::Document const &""'"); goto fail; } while(0);
50553 arg3 = reinterpret_cast< Xapian::Document * >(argp3);
50555 SWIG_Python_Thread_Allow _swig_thread_allow;
50558 result = (Xapian::docid)(arg1)->replace_document((std::string const &)*arg2,(Xapian::Document const &)*arg3);
50560 _swig_thread_allow.end();
50561 Xapian::SetPythonException();
50565 _swig_thread_allow.end();
50567 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
50568 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
50571 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
50574 static __attribute__ ((__unused__)) PyObject *_wrap_WritableDatabase_replace_document(PyObject *self, PyObject *args) {
50577 if (!(argc = SWIG_Python_UnpackTuple(args,"WritableDatabase_replace_document",0,3,argv))) goto fail;
50583 int res = SWIG_AsVal_unsigned_SS_int(argv[1], __null);
50584 _v = ((res >= 0) ? 1 : 0);
50587 if (!_v) goto check_1;
50588 return _wrap_WritableDatabase_replace_document__SWIG_0(self, argc, argv);
50592 return _wrap_WritableDatabase_replace_document__SWIG_1(self, argc, argv);
50595 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'WritableDatabase_replace_document'.\n"
50596 " Possible C/C++ prototypes are:\n"
50597 " replace_document(Xapian::WritableDatabase *,Xapian::docid,Xapian::Document const &)\n"
50598 " replace_document(Xapian::WritableDatabase *,std::string const &,Xapian::Document const &)\n");
50601 static __attribute__ ((__unused__)) PyObject *_wrap_WritableDatabase_add_spelling__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
50602 PyObject *resultobj = 0;
50603 Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
50604 std::string *arg2 = 0 ;
50605 Xapian::termcount arg3 ;
50609 unsigned int val3 ;
50611 if ((nobjs < 3) || (nobjs > 3)) goto fail;
50612 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[66], 0 | 0, 0);
50613 if (!(res1 >= 0)) {
50614 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "WritableDatabase_add_spelling" "', argument " "1"" of type '" "Xapian::WritableDatabase const *""'"); goto fail; } while(0);
50616 arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
50618 std::string *ptr = (std::string *)0;
50619 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
50620 if (!(res2 >= 0)) {
50621 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "WritableDatabase_add_spelling" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
50624 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "WritableDatabase_add_spelling" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
50628 ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
50629 if (!(ecode3 >= 0)) {
50630 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "WritableDatabase_add_spelling" "', argument " "3"" of type '" "Xapian::termcount""'"); goto fail; } while(0);
50632 arg3 = static_cast< Xapian::termcount >(val3);
50634 SWIG_Python_Thread_Allow _swig_thread_allow;
50637 ((Xapian::WritableDatabase const *)arg1)->add_spelling((std::string const &)*arg2,arg3);
50639 _swig_thread_allow.end();
50640 Xapian::SetPythonException();
50644 _swig_thread_allow.end();
50646 resultobj = SWIG_Py_Void();
50647 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
50650 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
50653 static __attribute__ ((__unused__)) PyObject *_wrap_WritableDatabase_add_spelling__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
50654 PyObject *resultobj = 0;
50655 Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
50656 std::string *arg2 = 0 ;
50660 if ((nobjs < 2) || (nobjs > 2)) goto fail;
50661 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[66], 0 | 0, 0);
50662 if (!(res1 >= 0)) {
50663 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "WritableDatabase_add_spelling" "', argument " "1"" of type '" "Xapian::WritableDatabase const *""'"); goto fail; } while(0);
50665 arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
50667 std::string *ptr = (std::string *)0;
50668 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
50669 if (!(res2 >= 0)) {
50670 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "WritableDatabase_add_spelling" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
50673 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "WritableDatabase_add_spelling" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
50678 SWIG_Python_Thread_Allow _swig_thread_allow;
50681 ((Xapian::WritableDatabase const *)arg1)->add_spelling((std::string const &)*arg2);
50683 _swig_thread_allow.end();
50684 Xapian::SetPythonException();
50688 _swig_thread_allow.end();
50690 resultobj = SWIG_Py_Void();
50691 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
50694 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
50697 static __attribute__ ((__unused__)) PyObject *_wrap_WritableDatabase_add_spelling(PyObject *self, PyObject *args) {
50700 if (!(argc = SWIG_Python_UnpackTuple(args,"WritableDatabase_add_spelling",0,3,argv))) goto fail;
50703 return _wrap_WritableDatabase_add_spelling__SWIG_1(self, argc, argv);
50706 return _wrap_WritableDatabase_add_spelling__SWIG_0(self, argc, argv);
50709 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'WritableDatabase_add_spelling'.\n"
50710 " Possible C/C++ prototypes are:\n"
50711 " add_spelling(Xapian::WritableDatabase const *,std::string const &,Xapian::termcount)\n"
50712 " add_spelling(Xapian::WritableDatabase const *,std::string const &)\n");
50715 static __attribute__ ((__unused__)) PyObject *_wrap_WritableDatabase_remove_spelling__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
50716 PyObject *resultobj = 0;
50717 Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
50718 std::string *arg2 = 0 ;
50719 Xapian::termcount arg3 ;
50723 unsigned int val3 ;
50725 if ((nobjs < 3) || (nobjs > 3)) goto fail;
50726 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[66], 0 | 0, 0);
50727 if (!(res1 >= 0)) {
50728 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "WritableDatabase_remove_spelling" "', argument " "1"" of type '" "Xapian::WritableDatabase const *""'"); goto fail; } while(0);
50730 arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
50732 std::string *ptr = (std::string *)0;
50733 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
50734 if (!(res2 >= 0)) {
50735 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "WritableDatabase_remove_spelling" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
50738 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "WritableDatabase_remove_spelling" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
50742 ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
50743 if (!(ecode3 >= 0)) {
50744 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "WritableDatabase_remove_spelling" "', argument " "3"" of type '" "Xapian::termcount""'"); goto fail; } while(0);
50746 arg3 = static_cast< Xapian::termcount >(val3);
50748 SWIG_Python_Thread_Allow _swig_thread_allow;
50751 ((Xapian::WritableDatabase const *)arg1)->remove_spelling((std::string const &)*arg2,arg3);
50753 _swig_thread_allow.end();
50754 Xapian::SetPythonException();
50758 _swig_thread_allow.end();
50760 resultobj = SWIG_Py_Void();
50761 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
50764 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
50767 static __attribute__ ((__unused__)) PyObject *_wrap_WritableDatabase_remove_spelling__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
50768 PyObject *resultobj = 0;
50769 Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
50770 std::string *arg2 = 0 ;
50774 if ((nobjs < 2) || (nobjs > 2)) goto fail;
50775 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[66], 0 | 0, 0);
50776 if (!(res1 >= 0)) {
50777 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "WritableDatabase_remove_spelling" "', argument " "1"" of type '" "Xapian::WritableDatabase const *""'"); goto fail; } while(0);
50779 arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
50781 std::string *ptr = (std::string *)0;
50782 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
50783 if (!(res2 >= 0)) {
50784 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "WritableDatabase_remove_spelling" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
50787 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "WritableDatabase_remove_spelling" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
50792 SWIG_Python_Thread_Allow _swig_thread_allow;
50795 ((Xapian::WritableDatabase const *)arg1)->remove_spelling((std::string const &)*arg2);
50797 _swig_thread_allow.end();
50798 Xapian::SetPythonException();
50802 _swig_thread_allow.end();
50804 resultobj = SWIG_Py_Void();
50805 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
50808 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
50811 static __attribute__ ((__unused__)) PyObject *_wrap_WritableDatabase_remove_spelling(PyObject *self, PyObject *args) {
50814 if (!(argc = SWIG_Python_UnpackTuple(args,"WritableDatabase_remove_spelling",0,3,argv))) goto fail;
50817 return _wrap_WritableDatabase_remove_spelling__SWIG_1(self, argc, argv);
50820 return _wrap_WritableDatabase_remove_spelling__SWIG_0(self, argc, argv);
50823 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'WritableDatabase_remove_spelling'.\n"
50824 " Possible C/C++ prototypes are:\n"
50825 " remove_spelling(Xapian::WritableDatabase const *,std::string const &,Xapian::termcount)\n"
50826 " remove_spelling(Xapian::WritableDatabase const *,std::string const &)\n");
50829 static __attribute__ ((__unused__)) PyObject *_wrap_WritableDatabase_add_synonym(PyObject *, PyObject *args) {
50830 PyObject *resultobj = 0;
50831 Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
50832 std::string *arg2 = 0 ;
50833 std::string *arg3 = 0 ;
50838 PyObject *swig_obj[3] ;
50839 if (!SWIG_Python_UnpackTuple(args,"WritableDatabase_add_synonym",3,3,swig_obj)) goto fail;
50840 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[66], 0 | 0, 0);
50841 if (!(res1 >= 0)) {
50842 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "WritableDatabase_add_synonym" "', argument " "1"" of type '" "Xapian::WritableDatabase const *""'"); goto fail; } while(0);
50844 arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
50846 std::string *ptr = (std::string *)0;
50847 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
50848 if (!(res2 >= 0)) {
50849 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "WritableDatabase_add_synonym" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
50852 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "WritableDatabase_add_synonym" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
50857 std::string *ptr = (std::string *)0;
50858 res3 = SWIG_anystring_as_ptr(&(swig_obj[2]), &ptr);
50859 if (!(res3 >= 0)) {
50860 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (-1)) ? res3 : -5)), "in method '" "WritableDatabase_add_synonym" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while(0);
50863 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "WritableDatabase_add_synonym" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while(0);
50868 SWIG_Python_Thread_Allow _swig_thread_allow;
50871 ((Xapian::WritableDatabase const *)arg1)->add_synonym((std::string const &)*arg2,(std::string const &)*arg3);
50873 _swig_thread_allow.end();
50874 Xapian::SetPythonException();
50878 _swig_thread_allow.end();
50880 resultobj = SWIG_Py_Void();
50881 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
50882 if (((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3;
50885 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
50886 if (((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3;
50889 static __attribute__ ((__unused__)) PyObject *_wrap_WritableDatabase_remove_synonym(PyObject *, PyObject *args) {
50890 PyObject *resultobj = 0;
50891 Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
50892 std::string *arg2 = 0 ;
50893 std::string *arg3 = 0 ;
50898 PyObject *swig_obj[3] ;
50899 if (!SWIG_Python_UnpackTuple(args,"WritableDatabase_remove_synonym",3,3,swig_obj)) goto fail;
50900 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[66], 0 | 0, 0);
50901 if (!(res1 >= 0)) {
50902 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "WritableDatabase_remove_synonym" "', argument " "1"" of type '" "Xapian::WritableDatabase const *""'"); goto fail; } while(0);
50904 arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
50906 std::string *ptr = (std::string *)0;
50907 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
50908 if (!(res2 >= 0)) {
50909 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "WritableDatabase_remove_synonym" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
50912 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "WritableDatabase_remove_synonym" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
50917 std::string *ptr = (std::string *)0;
50918 res3 = SWIG_anystring_as_ptr(&(swig_obj[2]), &ptr);
50919 if (!(res3 >= 0)) {
50920 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (-1)) ? res3 : -5)), "in method '" "WritableDatabase_remove_synonym" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while(0);
50923 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "WritableDatabase_remove_synonym" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while(0);
50928 SWIG_Python_Thread_Allow _swig_thread_allow;
50931 ((Xapian::WritableDatabase const *)arg1)->remove_synonym((std::string const &)*arg2,(std::string const &)*arg3);
50933 _swig_thread_allow.end();
50934 Xapian::SetPythonException();
50938 _swig_thread_allow.end();
50940 resultobj = SWIG_Py_Void();
50941 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
50942 if (((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3;
50945 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
50946 if (((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3;
50949 static __attribute__ ((__unused__)) PyObject *_wrap_WritableDatabase_clear_synonyms(PyObject *, PyObject *args) {
50950 PyObject *resultobj = 0;
50951 Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
50952 std::string *arg2 = 0 ;
50956 PyObject *swig_obj[2] ;
50957 if (!SWIG_Python_UnpackTuple(args,"WritableDatabase_clear_synonyms",2,2,swig_obj)) goto fail;
50958 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[66], 0 | 0, 0);
50959 if (!(res1 >= 0)) {
50960 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "WritableDatabase_clear_synonyms" "', argument " "1"" of type '" "Xapian::WritableDatabase const *""'"); goto fail; } while(0);
50962 arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
50964 std::string *ptr = (std::string *)0;
50965 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
50966 if (!(res2 >= 0)) {
50967 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "WritableDatabase_clear_synonyms" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
50970 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "WritableDatabase_clear_synonyms" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
50975 SWIG_Python_Thread_Allow _swig_thread_allow;
50978 ((Xapian::WritableDatabase const *)arg1)->clear_synonyms((std::string const &)*arg2);
50980 _swig_thread_allow.end();
50981 Xapian::SetPythonException();
50985 _swig_thread_allow.end();
50987 resultobj = SWIG_Py_Void();
50988 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
50991 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
50994 static __attribute__ ((__unused__)) PyObject *_wrap_WritableDatabase_set_metadata(PyObject *, PyObject *args) {
50995 PyObject *resultobj = 0;
50996 Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
50997 std::string *arg2 = 0 ;
50998 std::string *arg3 = 0 ;
51003 PyObject *swig_obj[3] ;
51004 if (!SWIG_Python_UnpackTuple(args,"WritableDatabase_set_metadata",3,3,swig_obj)) goto fail;
51005 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[66], 0 | 0, 0);
51006 if (!(res1 >= 0)) {
51007 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "WritableDatabase_set_metadata" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'"); goto fail; } while(0);
51009 arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
51011 std::string *ptr = (std::string *)0;
51012 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
51013 if (!(res2 >= 0)) {
51014 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "WritableDatabase_set_metadata" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
51017 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "WritableDatabase_set_metadata" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
51022 std::string *ptr = (std::string *)0;
51023 res3 = SWIG_anystring_as_ptr(&(swig_obj[2]), &ptr);
51024 if (!(res3 >= 0)) {
51025 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (-1)) ? res3 : -5)), "in method '" "WritableDatabase_set_metadata" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while(0);
51028 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "WritableDatabase_set_metadata" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while(0);
51033 SWIG_Python_Thread_Allow _swig_thread_allow;
51036 (arg1)->set_metadata((std::string const &)*arg2,(std::string const &)*arg3);
51038 _swig_thread_allow.end();
51039 Xapian::SetPythonException();
51043 _swig_thread_allow.end();
51045 resultobj = SWIG_Py_Void();
51046 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
51047 if (((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3;
51050 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
51051 if (((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3;
51054 static __attribute__ ((__unused__)) PyObject *_wrap_WritableDatabase___str__(PyObject *, PyObject *args) {
51055 PyObject *resultobj = 0;
51056 Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
51059 PyObject *swig_obj[1] ;
51060 std::string result;
51061 if (!args) goto fail;
51062 swig_obj[0] = args;
51063 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[66], 0 | 0, 0);
51064 if (!(res1 >= 0)) {
51065 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "WritableDatabase___str__" "', argument " "1"" of type '" "Xapian::WritableDatabase const *""'"); goto fail; } while(0);
51067 arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
51069 SWIG_Python_Thread_Allow _swig_thread_allow;
51072 result = ((Xapian::WritableDatabase const *)arg1)->get_description();
51074 _swig_thread_allow.end();
51075 Xapian::SetPythonException();
51079 _swig_thread_allow.end();
51081 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
51086 static __attribute__ ((__unused__)) PyObject *WritableDatabase_swigregister(PyObject *, PyObject *args) {
51088 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
51089 SWIG_TypeNewClientData(swig_types[66], SwigPyClientData_New(obj));
51090 return SWIG_Py_Void();
51092 static __attribute__ ((__unused__)) PyObject *WritableDatabase_swiginit(PyObject *, PyObject *args) {
51093 return SWIG_Python_InitShadowInstance(args);
51095 static __attribute__ ((__unused__)) PyObject *_wrap_open_stub(PyObject *, PyObject *args) {
51096 PyObject *resultobj = 0;
51097 std::string *arg1 = 0 ;
51099 PyObject *swig_obj[1] ;
51100 Xapian::Database result;
51101 if (!args) goto fail;
51102 swig_obj[0] = args;
51104 std::string *ptr = (std::string *)0;
51105 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
51106 if (!(res1 >= 0)) {
51107 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "open_stub" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
51110 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "open_stub" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
51115 SWIG_Python_Thread_Allow _swig_thread_allow;
51118 result = Xapian::Auto::open_stub((std::string const &)*arg1);
51120 _swig_thread_allow.end();
51121 Xapian::SetPythonException();
51125 _swig_thread_allow.end();
51127 resultobj = SWIG_Python_NewPointerObj((new Xapian::Database(static_cast< const Xapian::Database& >(result))), swig_types[4], 0x1 | 0);
51128 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
51131 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
51134 static __attribute__ ((__unused__)) PyObject *_wrap_brass_open__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
51135 PyObject *resultobj = 0;
51136 std::string *arg1 = 0 ;
51138 Xapian::Database result;
51139 if ((nobjs < 1) || (nobjs > 1)) goto fail;
51141 std::string *ptr = (std::string *)0;
51142 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
51143 if (!(res1 >= 0)) {
51144 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "brass_open" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
51147 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "brass_open" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
51152 SWIG_Python_Thread_Allow _swig_thread_allow;
51155 result = Xapian::Brass::open((std::string const &)*arg1);
51157 _swig_thread_allow.end();
51158 Xapian::SetPythonException();
51162 _swig_thread_allow.end();
51164 resultobj = SWIG_Python_NewPointerObj((new Xapian::Database(static_cast< const Xapian::Database& >(result))), swig_types[4], 0x1 | 0);
51165 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
51168 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
51171 static __attribute__ ((__unused__)) PyObject *_wrap_brass_open__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
51172 PyObject *resultobj = 0;
51173 std::string *arg1 = 0 ;
51181 Xapian::WritableDatabase result;
51182 if ((nobjs < 3) || (nobjs > 3)) goto fail;
51184 std::string *ptr = (std::string *)0;
51185 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
51186 if (!(res1 >= 0)) {
51187 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "brass_open" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
51190 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "brass_open" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
51194 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
51195 if (!(ecode2 >= 0)) {
51196 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "brass_open" "', argument " "2"" of type '" "int""'"); goto fail; } while(0);
51198 arg2 = static_cast< int >(val2);
51199 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
51200 if (!(ecode3 >= 0)) {
51201 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "brass_open" "', argument " "3"" of type '" "int""'"); goto fail; } while(0);
51203 arg3 = static_cast< int >(val3);
51205 SWIG_Python_Thread_Allow _swig_thread_allow;
51208 result = Xapian::Brass::open((std::string const &)*arg1,arg2,arg3);
51210 _swig_thread_allow.end();
51211 Xapian::SetPythonException();
51215 _swig_thread_allow.end();
51217 resultobj = SWIG_Python_NewPointerObj((new Xapian::WritableDatabase(static_cast< const Xapian::WritableDatabase& >(result))), swig_types[66], 0x1 | 0);
51218 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
51221 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
51224 static __attribute__ ((__unused__)) PyObject *_wrap_brass_open__SWIG_2(PyObject *, int nobjs, PyObject **swig_obj) {
51225 PyObject *resultobj = 0;
51226 std::string *arg1 = 0 ;
51231 Xapian::WritableDatabase result;
51232 if ((nobjs < 2) || (nobjs > 2)) goto fail;
51234 std::string *ptr = (std::string *)0;
51235 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
51236 if (!(res1 >= 0)) {
51237 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "brass_open" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
51240 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "brass_open" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
51244 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
51245 if (!(ecode2 >= 0)) {
51246 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "brass_open" "', argument " "2"" of type '" "int""'"); goto fail; } while(0);
51248 arg2 = static_cast< int >(val2);
51250 SWIG_Python_Thread_Allow _swig_thread_allow;
51253 result = Xapian::Brass::open((std::string const &)*arg1,arg2);
51255 _swig_thread_allow.end();
51256 Xapian::SetPythonException();
51260 _swig_thread_allow.end();
51262 resultobj = SWIG_Python_NewPointerObj((new Xapian::WritableDatabase(static_cast< const Xapian::WritableDatabase& >(result))), swig_types[66], 0x1 | 0);
51263 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
51266 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
51269 static __attribute__ ((__unused__)) PyObject *_wrap_brass_open(PyObject *self, PyObject *args) {
51272 if (!(argc = SWIG_Python_UnpackTuple(args,"brass_open",0,3,argv))) goto fail;
51275 return _wrap_brass_open__SWIG_0(self, argc, argv);
51278 return _wrap_brass_open__SWIG_2(self, argc, argv);
51281 return _wrap_brass_open__SWIG_1(self, argc, argv);
51284 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'brass_open'.\n"
51285 " Possible C/C++ prototypes are:\n"
51286 " Xapian::Brass::open(std::string const &)\n"
51287 " Xapian::Brass::open(std::string const &,int,int)\n"
51288 " Xapian::Brass::open(std::string const &,int)\n");
51291 static __attribute__ ((__unused__)) PyObject *_wrap_chert_open__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
51292 PyObject *resultobj = 0;
51293 std::string *arg1 = 0 ;
51295 Xapian::Database result;
51296 if ((nobjs < 1) || (nobjs > 1)) goto fail;
51298 std::string *ptr = (std::string *)0;
51299 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
51300 if (!(res1 >= 0)) {
51301 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "chert_open" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
51304 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "chert_open" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
51309 SWIG_Python_Thread_Allow _swig_thread_allow;
51312 result = Xapian::Chert::open((std::string const &)*arg1);
51314 _swig_thread_allow.end();
51315 Xapian::SetPythonException();
51319 _swig_thread_allow.end();
51321 resultobj = SWIG_Python_NewPointerObj((new Xapian::Database(static_cast< const Xapian::Database& >(result))), swig_types[4], 0x1 | 0);
51322 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
51325 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
51328 static __attribute__ ((__unused__)) PyObject *_wrap_chert_open__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
51329 PyObject *resultobj = 0;
51330 std::string *arg1 = 0 ;
51338 Xapian::WritableDatabase result;
51339 if ((nobjs < 3) || (nobjs > 3)) goto fail;
51341 std::string *ptr = (std::string *)0;
51342 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
51343 if (!(res1 >= 0)) {
51344 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "chert_open" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
51347 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "chert_open" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
51351 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
51352 if (!(ecode2 >= 0)) {
51353 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "chert_open" "', argument " "2"" of type '" "int""'"); goto fail; } while(0);
51355 arg2 = static_cast< int >(val2);
51356 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
51357 if (!(ecode3 >= 0)) {
51358 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "chert_open" "', argument " "3"" of type '" "int""'"); goto fail; } while(0);
51360 arg3 = static_cast< int >(val3);
51362 SWIG_Python_Thread_Allow _swig_thread_allow;
51365 result = Xapian::Chert::open((std::string const &)*arg1,arg2,arg3);
51367 _swig_thread_allow.end();
51368 Xapian::SetPythonException();
51372 _swig_thread_allow.end();
51374 resultobj = SWIG_Python_NewPointerObj((new Xapian::WritableDatabase(static_cast< const Xapian::WritableDatabase& >(result))), swig_types[66], 0x1 | 0);
51375 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
51378 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
51381 static __attribute__ ((__unused__)) PyObject *_wrap_chert_open__SWIG_2(PyObject *, int nobjs, PyObject **swig_obj) {
51382 PyObject *resultobj = 0;
51383 std::string *arg1 = 0 ;
51388 Xapian::WritableDatabase result;
51389 if ((nobjs < 2) || (nobjs > 2)) goto fail;
51391 std::string *ptr = (std::string *)0;
51392 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
51393 if (!(res1 >= 0)) {
51394 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "chert_open" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
51397 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "chert_open" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
51401 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
51402 if (!(ecode2 >= 0)) {
51403 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "chert_open" "', argument " "2"" of type '" "int""'"); goto fail; } while(0);
51405 arg2 = static_cast< int >(val2);
51407 SWIG_Python_Thread_Allow _swig_thread_allow;
51410 result = Xapian::Chert::open((std::string const &)*arg1,arg2);
51412 _swig_thread_allow.end();
51413 Xapian::SetPythonException();
51417 _swig_thread_allow.end();
51419 resultobj = SWIG_Python_NewPointerObj((new Xapian::WritableDatabase(static_cast< const Xapian::WritableDatabase& >(result))), swig_types[66], 0x1 | 0);
51420 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
51423 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
51426 static __attribute__ ((__unused__)) PyObject *_wrap_chert_open(PyObject *self, PyObject *args) {
51429 if (!(argc = SWIG_Python_UnpackTuple(args,"chert_open",0,3,argv))) goto fail;
51432 return _wrap_chert_open__SWIG_0(self, argc, argv);
51435 return _wrap_chert_open__SWIG_2(self, argc, argv);
51438 return _wrap_chert_open__SWIG_1(self, argc, argv);
51441 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'chert_open'.\n"
51442 " Possible C/C++ prototypes are:\n"
51443 " Xapian::Chert::open(std::string const &)\n"
51444 " Xapian::Chert::open(std::string const &,int,int)\n"
51445 " Xapian::Chert::open(std::string const &,int)\n");
51448 static __attribute__ ((__unused__)) PyObject *_wrap_flint_open__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
51449 PyObject *resultobj = 0;
51450 std::string *arg1 = 0 ;
51452 Xapian::Database result;
51453 if ((nobjs < 1) || (nobjs > 1)) goto fail;
51455 std::string *ptr = (std::string *)0;
51456 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
51457 if (!(res1 >= 0)) {
51458 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "flint_open" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
51461 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "flint_open" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
51466 SWIG_Python_Thread_Allow _swig_thread_allow;
51469 result = Xapian::Flint::open((std::string const &)*arg1);
51471 _swig_thread_allow.end();
51472 Xapian::SetPythonException();
51476 _swig_thread_allow.end();
51478 resultobj = SWIG_Python_NewPointerObj((new Xapian::Database(static_cast< const Xapian::Database& >(result))), swig_types[4], 0x1 | 0);
51479 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
51482 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
51485 static __attribute__ ((__unused__)) PyObject *_wrap_flint_open__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
51486 PyObject *resultobj = 0;
51487 std::string *arg1 = 0 ;
51495 Xapian::WritableDatabase result;
51496 if ((nobjs < 3) || (nobjs > 3)) goto fail;
51498 std::string *ptr = (std::string *)0;
51499 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
51500 if (!(res1 >= 0)) {
51501 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "flint_open" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
51504 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "flint_open" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
51508 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
51509 if (!(ecode2 >= 0)) {
51510 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "flint_open" "', argument " "2"" of type '" "int""'"); goto fail; } while(0);
51512 arg2 = static_cast< int >(val2);
51513 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
51514 if (!(ecode3 >= 0)) {
51515 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "flint_open" "', argument " "3"" of type '" "int""'"); goto fail; } while(0);
51517 arg3 = static_cast< int >(val3);
51519 SWIG_Python_Thread_Allow _swig_thread_allow;
51522 result = Xapian::Flint::open((std::string const &)*arg1,arg2,arg3);
51524 _swig_thread_allow.end();
51525 Xapian::SetPythonException();
51529 _swig_thread_allow.end();
51531 resultobj = SWIG_Python_NewPointerObj((new Xapian::WritableDatabase(static_cast< const Xapian::WritableDatabase& >(result))), swig_types[66], 0x1 | 0);
51532 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
51535 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
51538 static __attribute__ ((__unused__)) PyObject *_wrap_flint_open__SWIG_2(PyObject *, int nobjs, PyObject **swig_obj) {
51539 PyObject *resultobj = 0;
51540 std::string *arg1 = 0 ;
51545 Xapian::WritableDatabase result;
51546 if ((nobjs < 2) || (nobjs > 2)) goto fail;
51548 std::string *ptr = (std::string *)0;
51549 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
51550 if (!(res1 >= 0)) {
51551 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "flint_open" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
51554 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "flint_open" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
51558 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
51559 if (!(ecode2 >= 0)) {
51560 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "flint_open" "', argument " "2"" of type '" "int""'"); goto fail; } while(0);
51562 arg2 = static_cast< int >(val2);
51564 SWIG_Python_Thread_Allow _swig_thread_allow;
51567 result = Xapian::Flint::open((std::string const &)*arg1,arg2);
51569 _swig_thread_allow.end();
51570 Xapian::SetPythonException();
51574 _swig_thread_allow.end();
51576 resultobj = SWIG_Python_NewPointerObj((new Xapian::WritableDatabase(static_cast< const Xapian::WritableDatabase& >(result))), swig_types[66], 0x1 | 0);
51577 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
51580 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
51583 static __attribute__ ((__unused__)) PyObject *_wrap_flint_open(PyObject *self, PyObject *args) {
51586 if (!(argc = SWIG_Python_UnpackTuple(args,"flint_open",0,3,argv))) goto fail;
51589 return _wrap_flint_open__SWIG_0(self, argc, argv);
51592 return _wrap_flint_open__SWIG_2(self, argc, argv);
51595 return _wrap_flint_open__SWIG_1(self, argc, argv);
51598 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'flint_open'.\n"
51599 " Possible C/C++ prototypes are:\n"
51600 " Xapian::Flint::open(std::string const &)\n"
51601 " Xapian::Flint::open(std::string const &,int,int)\n"
51602 " Xapian::Flint::open(std::string const &,int)\n");
51605 static __attribute__ ((__unused__)) PyObject *_wrap_inmemory_open(PyObject *, PyObject *args) {
51606 PyObject *resultobj = 0;
51607 Xapian::WritableDatabase result;
51608 if (!SWIG_Python_UnpackTuple(args,"inmemory_open",0,0,0)) goto fail;
51610 SWIG_Python_Thread_Allow _swig_thread_allow;
51613 result = Xapian::InMemory::open();
51615 _swig_thread_allow.end();
51616 Xapian::SetPythonException();
51620 _swig_thread_allow.end();
51622 resultobj = SWIG_Python_NewPointerObj((new Xapian::WritableDatabase(static_cast< const Xapian::WritableDatabase& >(result))), swig_types[66], 0x1 | 0);
51627 static __attribute__ ((__unused__)) PyObject *_wrap_remote_open__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
51628 PyObject *resultobj = 0;
51629 std::string *arg1 = 0 ;
51630 unsigned int arg2 ;
51631 Xapian::timeout arg3 ;
51632 Xapian::timeout arg4 ;
51634 unsigned int val2 ;
51636 unsigned int val3 ;
51638 unsigned int val4 ;
51640 Xapian::Database result;
51641 if ((nobjs < 4) || (nobjs > 4)) goto fail;
51643 std::string *ptr = (std::string *)0;
51644 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
51645 if (!(res1 >= 0)) {
51646 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "remote_open" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
51649 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "remote_open" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
51653 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
51654 if (!(ecode2 >= 0)) {
51655 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "remote_open" "', argument " "2"" of type '" "unsigned int""'"); goto fail; } while(0);
51657 arg2 = static_cast< unsigned int >(val2);
51658 ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
51659 if (!(ecode3 >= 0)) {
51660 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "remote_open" "', argument " "3"" of type '" "Xapian::timeout""'"); goto fail; } while(0);
51662 arg3 = static_cast< Xapian::timeout >(val3);
51663 ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4);
51664 if (!(ecode4 >= 0)) {
51665 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 != (-1)) ? ecode4 : -5)), "in method '" "remote_open" "', argument " "4"" of type '" "Xapian::timeout""'"); goto fail; } while(0);
51667 arg4 = static_cast< Xapian::timeout >(val4);
51669 SWIG_Python_Thread_Allow _swig_thread_allow;
51672 result = Xapian::Remote::open((std::string const &)*arg1,arg2,arg3,arg4);
51674 _swig_thread_allow.end();
51675 Xapian::SetPythonException();
51679 _swig_thread_allow.end();
51681 resultobj = SWIG_Python_NewPointerObj((new Xapian::Database(static_cast< const Xapian::Database& >(result))), swig_types[4], 0x1 | 0);
51682 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
51685 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
51688 static __attribute__ ((__unused__)) PyObject *_wrap_remote_open__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
51689 PyObject *resultobj = 0;
51690 std::string *arg1 = 0 ;
51691 unsigned int arg2 ;
51692 Xapian::timeout arg3 ;
51694 unsigned int val2 ;
51696 unsigned int val3 ;
51698 Xapian::Database result;
51699 if ((nobjs < 3) || (nobjs > 3)) goto fail;
51701 std::string *ptr = (std::string *)0;
51702 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
51703 if (!(res1 >= 0)) {
51704 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "remote_open" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
51707 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "remote_open" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
51711 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
51712 if (!(ecode2 >= 0)) {
51713 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "remote_open" "', argument " "2"" of type '" "unsigned int""'"); goto fail; } while(0);
51715 arg2 = static_cast< unsigned int >(val2);
51716 ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
51717 if (!(ecode3 >= 0)) {
51718 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "remote_open" "', argument " "3"" of type '" "Xapian::timeout""'"); goto fail; } while(0);
51720 arg3 = static_cast< Xapian::timeout >(val3);
51722 SWIG_Python_Thread_Allow _swig_thread_allow;
51725 result = Xapian::Remote::open((std::string const &)*arg1,arg2,arg3);
51727 _swig_thread_allow.end();
51728 Xapian::SetPythonException();
51732 _swig_thread_allow.end();
51734 resultobj = SWIG_Python_NewPointerObj((new Xapian::Database(static_cast< const Xapian::Database& >(result))), swig_types[4], 0x1 | 0);
51735 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
51738 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
51741 static __attribute__ ((__unused__)) PyObject *_wrap_remote_open__SWIG_2(PyObject *, int nobjs, PyObject **swig_obj) {
51742 PyObject *resultobj = 0;
51743 std::string *arg1 = 0 ;
51744 unsigned int arg2 ;
51746 unsigned int val2 ;
51748 Xapian::Database result;
51749 if ((nobjs < 2) || (nobjs > 2)) goto fail;
51751 std::string *ptr = (std::string *)0;
51752 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
51753 if (!(res1 >= 0)) {
51754 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "remote_open" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
51757 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "remote_open" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
51761 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
51762 if (!(ecode2 >= 0)) {
51763 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "remote_open" "', argument " "2"" of type '" "unsigned int""'"); goto fail; } while(0);
51765 arg2 = static_cast< unsigned int >(val2);
51767 SWIG_Python_Thread_Allow _swig_thread_allow;
51770 result = Xapian::Remote::open((std::string const &)*arg1,arg2);
51772 _swig_thread_allow.end();
51773 Xapian::SetPythonException();
51777 _swig_thread_allow.end();
51779 resultobj = SWIG_Python_NewPointerObj((new Xapian::Database(static_cast< const Xapian::Database& >(result))), swig_types[4], 0x1 | 0);
51780 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
51783 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
51786 static __attribute__ ((__unused__)) PyObject *_wrap_remote_open_writable__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
51787 PyObject *resultobj = 0;
51788 std::string *arg1 = 0 ;
51789 unsigned int arg2 ;
51790 Xapian::timeout arg3 ;
51791 Xapian::timeout arg4 ;
51793 unsigned int val2 ;
51795 unsigned int val3 ;
51797 unsigned int val4 ;
51799 Xapian::WritableDatabase result;
51800 if ((nobjs < 4) || (nobjs > 4)) goto fail;
51802 std::string *ptr = (std::string *)0;
51803 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
51804 if (!(res1 >= 0)) {
51805 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
51808 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
51812 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
51813 if (!(ecode2 >= 0)) {
51814 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "remote_open_writable" "', argument " "2"" of type '" "unsigned int""'"); goto fail; } while(0);
51816 arg2 = static_cast< unsigned int >(val2);
51817 ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
51818 if (!(ecode3 >= 0)) {
51819 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "remote_open_writable" "', argument " "3"" of type '" "Xapian::timeout""'"); goto fail; } while(0);
51821 arg3 = static_cast< Xapian::timeout >(val3);
51822 ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4);
51823 if (!(ecode4 >= 0)) {
51824 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 != (-1)) ? ecode4 : -5)), "in method '" "remote_open_writable" "', argument " "4"" of type '" "Xapian::timeout""'"); goto fail; } while(0);
51826 arg4 = static_cast< Xapian::timeout >(val4);
51828 SWIG_Python_Thread_Allow _swig_thread_allow;
51831 result = Xapian::Remote::open_writable((std::string const &)*arg1,arg2,arg3,arg4);
51833 _swig_thread_allow.end();
51834 Xapian::SetPythonException();
51838 _swig_thread_allow.end();
51840 resultobj = SWIG_Python_NewPointerObj((new Xapian::WritableDatabase(static_cast< const Xapian::WritableDatabase& >(result))), swig_types[66], 0x1 | 0);
51841 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
51844 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
51847 static __attribute__ ((__unused__)) PyObject *_wrap_remote_open_writable__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
51848 PyObject *resultobj = 0;
51849 std::string *arg1 = 0 ;
51850 unsigned int arg2 ;
51851 Xapian::timeout arg3 ;
51853 unsigned int val2 ;
51855 unsigned int val3 ;
51857 Xapian::WritableDatabase result;
51858 if ((nobjs < 3) || (nobjs > 3)) goto fail;
51860 std::string *ptr = (std::string *)0;
51861 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
51862 if (!(res1 >= 0)) {
51863 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
51866 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
51870 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
51871 if (!(ecode2 >= 0)) {
51872 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "remote_open_writable" "', argument " "2"" of type '" "unsigned int""'"); goto fail; } while(0);
51874 arg2 = static_cast< unsigned int >(val2);
51875 ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
51876 if (!(ecode3 >= 0)) {
51877 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "remote_open_writable" "', argument " "3"" of type '" "Xapian::timeout""'"); goto fail; } while(0);
51879 arg3 = static_cast< Xapian::timeout >(val3);
51881 SWIG_Python_Thread_Allow _swig_thread_allow;
51884 result = Xapian::Remote::open_writable((std::string const &)*arg1,arg2,arg3);
51886 _swig_thread_allow.end();
51887 Xapian::SetPythonException();
51891 _swig_thread_allow.end();
51893 resultobj = SWIG_Python_NewPointerObj((new Xapian::WritableDatabase(static_cast< const Xapian::WritableDatabase& >(result))), swig_types[66], 0x1 | 0);
51894 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
51897 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
51900 static __attribute__ ((__unused__)) PyObject *_wrap_remote_open_writable__SWIG_2(PyObject *, int nobjs, PyObject **swig_obj) {
51901 PyObject *resultobj = 0;
51902 std::string *arg1 = 0 ;
51903 unsigned int arg2 ;
51905 unsigned int val2 ;
51907 Xapian::WritableDatabase result;
51908 if ((nobjs < 2) || (nobjs > 2)) goto fail;
51910 std::string *ptr = (std::string *)0;
51911 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
51912 if (!(res1 >= 0)) {
51913 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
51916 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
51920 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
51921 if (!(ecode2 >= 0)) {
51922 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "remote_open_writable" "', argument " "2"" of type '" "unsigned int""'"); goto fail; } while(0);
51924 arg2 = static_cast< unsigned int >(val2);
51926 SWIG_Python_Thread_Allow _swig_thread_allow;
51929 result = Xapian::Remote::open_writable((std::string const &)*arg1,arg2);
51931 _swig_thread_allow.end();
51932 Xapian::SetPythonException();
51936 _swig_thread_allow.end();
51938 resultobj = SWIG_Python_NewPointerObj((new Xapian::WritableDatabase(static_cast< const Xapian::WritableDatabase& >(result))), swig_types[66], 0x1 | 0);
51939 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
51942 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
51945 static __attribute__ ((__unused__)) PyObject *_wrap_remote_open__SWIG_3(PyObject *, int nobjs, PyObject **swig_obj) {
51946 PyObject *resultobj = 0;
51947 std::string *arg1 = 0 ;
51948 std::string *arg2 = 0 ;
51949 Xapian::timeout arg3 ;
51952 unsigned int val3 ;
51954 Xapian::Database result;
51955 if ((nobjs < 3) || (nobjs > 3)) goto fail;
51957 std::string *ptr = (std::string *)0;
51958 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
51959 if (!(res1 >= 0)) {
51960 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "remote_open" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
51963 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "remote_open" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
51968 std::string *ptr = (std::string *)0;
51969 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
51970 if (!(res2 >= 0)) {
51971 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "remote_open" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
51974 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "remote_open" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
51978 ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
51979 if (!(ecode3 >= 0)) {
51980 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "remote_open" "', argument " "3"" of type '" "Xapian::timeout""'"); goto fail; } while(0);
51982 arg3 = static_cast< Xapian::timeout >(val3);
51984 SWIG_Python_Thread_Allow _swig_thread_allow;
51987 result = Xapian::Remote::open((std::string const &)*arg1,(std::string const &)*arg2,arg3);
51989 _swig_thread_allow.end();
51990 Xapian::SetPythonException();
51994 _swig_thread_allow.end();
51996 resultobj = SWIG_Python_NewPointerObj((new Xapian::Database(static_cast< const Xapian::Database& >(result))), swig_types[4], 0x1 | 0);
51997 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
51998 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
52001 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
52002 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
52005 static __attribute__ ((__unused__)) PyObject *_wrap_remote_open__SWIG_4(PyObject *, int nobjs, PyObject **swig_obj) {
52006 PyObject *resultobj = 0;
52007 std::string *arg1 = 0 ;
52008 std::string *arg2 = 0 ;
52011 Xapian::Database result;
52012 if ((nobjs < 2) || (nobjs > 2)) goto fail;
52014 std::string *ptr = (std::string *)0;
52015 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
52016 if (!(res1 >= 0)) {
52017 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "remote_open" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
52020 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "remote_open" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
52025 std::string *ptr = (std::string *)0;
52026 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
52027 if (!(res2 >= 0)) {
52028 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "remote_open" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
52031 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "remote_open" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
52036 SWIG_Python_Thread_Allow _swig_thread_allow;
52039 result = Xapian::Remote::open((std::string const &)*arg1,(std::string const &)*arg2);
52041 _swig_thread_allow.end();
52042 Xapian::SetPythonException();
52046 _swig_thread_allow.end();
52048 resultobj = SWIG_Python_NewPointerObj((new Xapian::Database(static_cast< const Xapian::Database& >(result))), swig_types[4], 0x1 | 0);
52049 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
52050 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
52053 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
52054 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
52057 static __attribute__ ((__unused__)) PyObject *_wrap_remote_open(PyObject *self, PyObject *args) {
52060 if (!(argc = SWIG_Python_UnpackTuple(args,"remote_open",0,4,argv))) goto fail;
52066 int res = SWIG_AsVal_unsigned_SS_int(argv[1], __null);
52067 _v = ((res >= 0) ? 1 : 0);
52070 if (!_v) goto check_1;
52071 return _wrap_remote_open__SWIG_2(self, argc, argv);
52075 return _wrap_remote_open__SWIG_4(self, argc, argv);
52081 int res = SWIG_AsVal_unsigned_SS_int(argv[1], __null);
52082 _v = ((res >= 0) ? 1 : 0);
52085 if (!_v) goto check_3;
52086 return _wrap_remote_open__SWIG_1(self, argc, argv);
52090 return _wrap_remote_open__SWIG_3(self, argc, argv);
52093 return _wrap_remote_open__SWIG_0(self, argc, argv);
52096 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'remote_open'.\n"
52097 " Possible C/C++ prototypes are:\n"
52098 " Xapian::Remote::open(std::string const &,unsigned int,Xapian::timeout,Xapian::timeout)\n"
52099 " Xapian::Remote::open(std::string const &,unsigned int,Xapian::timeout)\n"
52100 " Xapian::Remote::open(std::string const &,unsigned int)\n"
52101 " Xapian::Remote::open(std::string const &,std::string const &,Xapian::timeout)\n"
52102 " Xapian::Remote::open(std::string const &,std::string const &)\n");
52105 static __attribute__ ((__unused__)) PyObject *_wrap_remote_open_writable__SWIG_3(PyObject *, int nobjs, PyObject **swig_obj) {
52106 PyObject *resultobj = 0;
52107 std::string *arg1 = 0 ;
52108 std::string *arg2 = 0 ;
52109 Xapian::timeout arg3 ;
52112 unsigned int val3 ;
52114 Xapian::WritableDatabase result;
52115 if ((nobjs < 3) || (nobjs > 3)) goto fail;
52117 std::string *ptr = (std::string *)0;
52118 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
52119 if (!(res1 >= 0)) {
52120 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
52123 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
52128 std::string *ptr = (std::string *)0;
52129 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
52130 if (!(res2 >= 0)) {
52131 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "remote_open_writable" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
52134 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "remote_open_writable" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
52138 ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
52139 if (!(ecode3 >= 0)) {
52140 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "remote_open_writable" "', argument " "3"" of type '" "Xapian::timeout""'"); goto fail; } while(0);
52142 arg3 = static_cast< Xapian::timeout >(val3);
52144 SWIG_Python_Thread_Allow _swig_thread_allow;
52147 result = Xapian::Remote::open_writable((std::string const &)*arg1,(std::string const &)*arg2,arg3);
52149 _swig_thread_allow.end();
52150 Xapian::SetPythonException();
52154 _swig_thread_allow.end();
52156 resultobj = SWIG_Python_NewPointerObj((new Xapian::WritableDatabase(static_cast< const Xapian::WritableDatabase& >(result))), swig_types[66], 0x1 | 0);
52157 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
52158 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
52161 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
52162 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
52165 static __attribute__ ((__unused__)) PyObject *_wrap_remote_open_writable__SWIG_4(PyObject *, int nobjs, PyObject **swig_obj) {
52166 PyObject *resultobj = 0;
52167 std::string *arg1 = 0 ;
52168 std::string *arg2 = 0 ;
52171 Xapian::WritableDatabase result;
52172 if ((nobjs < 2) || (nobjs > 2)) goto fail;
52174 std::string *ptr = (std::string *)0;
52175 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
52176 if (!(res1 >= 0)) {
52177 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
52180 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
52185 std::string *ptr = (std::string *)0;
52186 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
52187 if (!(res2 >= 0)) {
52188 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "remote_open_writable" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
52191 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "remote_open_writable" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
52196 SWIG_Python_Thread_Allow _swig_thread_allow;
52199 result = Xapian::Remote::open_writable((std::string const &)*arg1,(std::string const &)*arg2);
52201 _swig_thread_allow.end();
52202 Xapian::SetPythonException();
52206 _swig_thread_allow.end();
52208 resultobj = SWIG_Python_NewPointerObj((new Xapian::WritableDatabase(static_cast< const Xapian::WritableDatabase& >(result))), swig_types[66], 0x1 | 0);
52209 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
52210 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
52213 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
52214 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
52217 static __attribute__ ((__unused__)) PyObject *_wrap_remote_open_writable(PyObject *self, PyObject *args) {
52220 if (!(argc = SWIG_Python_UnpackTuple(args,"remote_open_writable",0,4,argv))) goto fail;
52226 int res = SWIG_AsVal_unsigned_SS_int(argv[1], __null);
52227 _v = ((res >= 0) ? 1 : 0);
52230 if (!_v) goto check_1;
52231 return _wrap_remote_open_writable__SWIG_2(self, argc, argv);
52235 return _wrap_remote_open_writable__SWIG_4(self, argc, argv);
52241 int res = SWIG_AsVal_unsigned_SS_int(argv[1], __null);
52242 _v = ((res >= 0) ? 1 : 0);
52245 if (!_v) goto check_3;
52246 return _wrap_remote_open_writable__SWIG_1(self, argc, argv);
52250 return _wrap_remote_open_writable__SWIG_3(self, argc, argv);
52253 return _wrap_remote_open_writable__SWIG_0(self, argc, argv);
52256 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'remote_open_writable'.\n"
52257 " Possible C/C++ prototypes are:\n"
52258 " Xapian::Remote::open_writable(std::string const &,unsigned int,Xapian::timeout,Xapian::timeout)\n"
52259 " Xapian::Remote::open_writable(std::string const &,unsigned int,Xapian::timeout)\n"
52260 " Xapian::Remote::open_writable(std::string const &,unsigned int)\n"
52261 " Xapian::Remote::open_writable(std::string const &,std::string const &,Xapian::timeout)\n"
52262 " Xapian::Remote::open_writable(std::string const &,std::string const &)\n");
52265 static __attribute__ ((__unused__)) PyObject *_wrap_new_Query__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
52266 PyObject *resultobj = 0;
52267 Xapian::Query *arg1 = 0 ;
52270 Xapian::Query *result = 0 ;
52271 if ((nobjs < 1) || (nobjs > 1)) goto fail;
52272 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[40], 0 | 0, 0);
52273 if (!(res1 >= 0)) {
52274 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query const &""'"); goto fail; } while(0);
52277 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query const &""'"); goto fail; } while(0);
52279 arg1 = reinterpret_cast< Xapian::Query * >(argp1);
52281 SWIG_Python_Thread_Allow _swig_thread_allow;
52284 result = (Xapian::Query *)new Xapian::Query((Xapian::Query const &)*arg1);
52286 _swig_thread_allow.end();
52287 Xapian::SetPythonException();
52291 _swig_thread_allow.end();
52293 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[40], ((0x1 << 1) | 0x1) | 0);
52298 static __attribute__ ((__unused__)) PyObject *_wrap_new_Query__SWIG_1(PyObject *, int nobjs, PyObject **) {
52299 PyObject *resultobj = 0;
52300 Xapian::Query *result = 0 ;
52301 if ((nobjs < 0) || (nobjs > 0)) goto fail;
52303 SWIG_Python_Thread_Allow _swig_thread_allow;
52306 result = (Xapian::Query *)new Xapian::Query();
52308 _swig_thread_allow.end();
52309 Xapian::SetPythonException();
52313 _swig_thread_allow.end();
52315 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[40], ((0x1 << 1) | 0x1) | 0);
52320 static __attribute__ ((__unused__)) PyObject *_wrap_delete_Query(PyObject *, PyObject *args) {
52321 PyObject *resultobj = 0;
52322 Xapian::Query *arg1 = (Xapian::Query *) 0 ;
52325 PyObject *swig_obj[1] ;
52326 if (!args) goto fail;
52327 swig_obj[0] = args;
52328 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[40], 0x1 | 0, 0);
52329 if (!(res1 >= 0)) {
52330 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_Query" "', argument " "1"" of type '" "Xapian::Query *""'"); goto fail; } while(0);
52332 arg1 = reinterpret_cast< Xapian::Query * >(argp1);
52334 SWIG_Python_Thread_Allow _swig_thread_allow;
52339 _swig_thread_allow.end();
52340 Xapian::SetPythonException();
52344 _swig_thread_allow.end();
52346 resultobj = SWIG_Py_Void();
52351 static __attribute__ ((__unused__)) PyObject *_wrap_new_Query__SWIG_2(PyObject *, int nobjs, PyObject **swig_obj) {
52352 PyObject *resultobj = 0;
52353 std::string *arg1 = 0 ;
52354 Xapian::termcount arg2 ;
52355 Xapian::termpos arg3 ;
52357 unsigned int val2 ;
52359 unsigned int val3 ;
52361 Xapian::Query *result = 0 ;
52362 if ((nobjs < 3) || (nobjs > 3)) goto fail;
52364 std::string *ptr = (std::string *)0;
52365 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
52366 if (!(res1 >= 0)) {
52367 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_Query" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
52370 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_Query" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
52374 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
52375 if (!(ecode2 >= 0)) {
52376 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_Query" "', argument " "2"" of type '" "Xapian::termcount""'"); goto fail; } while(0);
52378 arg2 = static_cast< Xapian::termcount >(val2);
52379 ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
52380 if (!(ecode3 >= 0)) {
52381 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "new_Query" "', argument " "3"" of type '" "Xapian::termpos""'"); goto fail; } while(0);
52383 arg3 = static_cast< Xapian::termpos >(val3);
52385 SWIG_Python_Thread_Allow _swig_thread_allow;
52388 result = (Xapian::Query *)new Xapian::Query((std::string const &)*arg1,arg2,arg3);
52390 _swig_thread_allow.end();
52391 Xapian::SetPythonException();
52395 _swig_thread_allow.end();
52397 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[40], ((0x1 << 1) | 0x1) | 0);
52398 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
52401 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
52404 static __attribute__ ((__unused__)) PyObject *_wrap_new_Query__SWIG_3(PyObject *, int nobjs, PyObject **swig_obj) {
52405 PyObject *resultobj = 0;
52406 std::string *arg1 = 0 ;
52407 Xapian::termcount arg2 ;
52409 unsigned int val2 ;
52411 Xapian::Query *result = 0 ;
52412 if ((nobjs < 2) || (nobjs > 2)) goto fail;
52414 std::string *ptr = (std::string *)0;
52415 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
52416 if (!(res1 >= 0)) {
52417 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_Query" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
52420 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_Query" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
52424 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
52425 if (!(ecode2 >= 0)) {
52426 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_Query" "', argument " "2"" of type '" "Xapian::termcount""'"); goto fail; } while(0);
52428 arg2 = static_cast< Xapian::termcount >(val2);
52430 SWIG_Python_Thread_Allow _swig_thread_allow;
52433 result = (Xapian::Query *)new Xapian::Query((std::string const &)*arg1,arg2);
52435 _swig_thread_allow.end();
52436 Xapian::SetPythonException();
52440 _swig_thread_allow.end();
52442 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[40], ((0x1 << 1) | 0x1) | 0);
52443 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
52446 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
52449 static __attribute__ ((__unused__)) PyObject *_wrap_new_Query__SWIG_4(PyObject *, int nobjs, PyObject **swig_obj) {
52450 PyObject *resultobj = 0;
52451 std::string *arg1 = 0 ;
52453 Xapian::Query *result = 0 ;
52454 if ((nobjs < 1) || (nobjs > 1)) goto fail;
52456 std::string *ptr = (std::string *)0;
52457 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
52458 if (!(res1 >= 0)) {
52459 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_Query" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
52462 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_Query" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
52467 SWIG_Python_Thread_Allow _swig_thread_allow;
52470 result = (Xapian::Query *)new Xapian::Query((std::string const &)*arg1);
52472 _swig_thread_allow.end();
52473 Xapian::SetPythonException();
52477 _swig_thread_allow.end();
52479 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[40], ((0x1 << 1) | 0x1) | 0);
52480 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
52483 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
52486 static __attribute__ ((__unused__)) PyObject *_wrap_new_Query__SWIG_5(PyObject *, int nobjs, PyObject **swig_obj) {
52487 PyObject *resultobj = 0;
52488 Xapian::Query::op arg1 ;
52489 Xapian::Query *arg2 = 0 ;
52490 Xapian::Query *arg3 = 0 ;
52497 Xapian::Query *result = 0 ;
52498 if ((nobjs < 3) || (nobjs > 3)) goto fail;
52499 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
52500 if (!(ecode1 >= 0)) {
52501 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query::op""'"); goto fail; } while(0);
52503 arg1 = static_cast< Xapian::Query::op >(val1);
52504 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[40], 0 | 0, 0);
52505 if (!(res2 >= 0)) {
52506 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_Query" "', argument " "2"" of type '" "Xapian::Query const &""'"); goto fail; } while(0);
52509 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_Query" "', argument " "2"" of type '" "Xapian::Query const &""'"); goto fail; } while(0);
52511 arg2 = reinterpret_cast< Xapian::Query * >(argp2);
52512 res3 = SWIG_Python_ConvertPtrAndOwn(swig_obj[2], &argp3, swig_types[40], 0 | 0, 0);
52513 if (!(res3 >= 0)) {
52514 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (-1)) ? res3 : -5)), "in method '" "new_Query" "', argument " "3"" of type '" "Xapian::Query const &""'"); goto fail; } while(0);
52517 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_Query" "', argument " "3"" of type '" "Xapian::Query const &""'"); goto fail; } while(0);
52519 arg3 = reinterpret_cast< Xapian::Query * >(argp3);
52521 SWIG_Python_Thread_Allow _swig_thread_allow;
52524 result = (Xapian::Query *)new Xapian::Query(arg1,(Xapian::Query const &)*arg2,(Xapian::Query const &)*arg3);
52526 _swig_thread_allow.end();
52527 Xapian::SetPythonException();
52531 _swig_thread_allow.end();
52533 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[40], ((0x1 << 1) | 0x1) | 0);
52538 static __attribute__ ((__unused__)) PyObject *_wrap_new_Query__SWIG_6(PyObject *, int nobjs, PyObject **swig_obj) {
52539 PyObject *resultobj = 0;
52540 Xapian::Query::op arg1 ;
52541 std::string *arg2 = 0 ;
52542 std::string *arg3 = 0 ;
52547 Xapian::Query *result = 0 ;
52548 if ((nobjs < 3) || (nobjs > 3)) goto fail;
52549 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
52550 if (!(ecode1 >= 0)) {
52551 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query::op""'"); goto fail; } while(0);
52553 arg1 = static_cast< Xapian::Query::op >(val1);
52555 std::string *ptr = (std::string *)0;
52556 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
52557 if (!(res2 >= 0)) {
52558 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_Query" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
52561 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_Query" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
52566 std::string *ptr = (std::string *)0;
52567 res3 = SWIG_anystring_as_ptr(&(swig_obj[2]), &ptr);
52568 if (!(res3 >= 0)) {
52569 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (-1)) ? res3 : -5)), "in method '" "new_Query" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while(0);
52572 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_Query" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while(0);
52577 SWIG_Python_Thread_Allow _swig_thread_allow;
52580 result = (Xapian::Query *)new Xapian::Query(arg1,(std::string const &)*arg2,(std::string const &)*arg3);
52582 _swig_thread_allow.end();
52583 Xapian::SetPythonException();
52587 _swig_thread_allow.end();
52589 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[40], ((0x1 << 1) | 0x1) | 0);
52590 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
52591 if (((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3;
52594 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
52595 if (((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3;
52598 static __attribute__ ((__unused__)) PyObject *_wrap_new_Query__SWIG_9(PyObject *, int nobjs, PyObject **swig_obj) {
52599 PyObject *resultobj = 0;
52600 Xapian::Query::op arg1 ;
52601 Xapian::Query arg2 ;
52609 Xapian::Query *result = 0 ;
52610 if ((nobjs < 3) || (nobjs > 3)) goto fail;
52611 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
52612 if (!(ecode1 >= 0)) {
52613 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query::op""'"); goto fail; } while(0);
52615 arg1 = static_cast< Xapian::Query::op >(val1);
52617 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[40], 0 | 0, 0);
52618 if (!(res2 >= 0)) {
52619 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_Query" "', argument " "2"" of type '" "Xapian::Query""'"); goto fail; } while(0);
52622 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_Query" "', argument " "2"" of type '" "Xapian::Query""'"); goto fail; } while(0);
52624 Xapian::Query * temp = reinterpret_cast< Xapian::Query * >(argp2);
52626 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete temp;
52629 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
52630 if (!(ecode3 >= 0)) {
52631 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "new_Query" "', argument " "3"" of type '" "double""'"); goto fail; } while(0);
52633 arg3 = static_cast< double >(val3);
52635 SWIG_Python_Thread_Allow _swig_thread_allow;
52638 result = (Xapian::Query *)new Xapian::Query(arg1,arg2,arg3);
52640 _swig_thread_allow.end();
52641 Xapian::SetPythonException();
52645 _swig_thread_allow.end();
52647 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[40], ((0x1 << 1) | 0x1) | 0);
52652 static __attribute__ ((__unused__)) PyObject *_wrap_new_Query__SWIG_10(PyObject *, int nobjs, PyObject **swig_obj) {
52653 PyObject *resultobj = 0;
52654 Xapian::Query::op arg1 ;
52655 Xapian::valueno arg2 ;
52656 std::string *arg3 = 0 ;
52657 std::string *arg4 = 0 ;
52660 unsigned int val2 ;
52664 Xapian::Query *result = 0 ;
52665 if ((nobjs < 4) || (nobjs > 4)) goto fail;
52666 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
52667 if (!(ecode1 >= 0)) {
52668 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query::op""'"); goto fail; } while(0);
52670 arg1 = static_cast< Xapian::Query::op >(val1);
52671 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
52672 if (!(ecode2 >= 0)) {
52673 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_Query" "', argument " "2"" of type '" "Xapian::valueno""'"); goto fail; } while(0);
52675 arg2 = static_cast< Xapian::valueno >(val2);
52677 std::string *ptr = (std::string *)0;
52678 res3 = SWIG_anystring_as_ptr(&(swig_obj[2]), &ptr);
52679 if (!(res3 >= 0)) {
52680 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (-1)) ? res3 : -5)), "in method '" "new_Query" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while(0);
52683 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_Query" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while(0);
52688 std::string *ptr = (std::string *)0;
52689 res4 = SWIG_anystring_as_ptr(&(swig_obj[3]), &ptr);
52690 if (!(res4 >= 0)) {
52691 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (-1)) ? res4 : -5)), "in method '" "new_Query" "', argument " "4"" of type '" "std::string const &""'"); goto fail; } while(0);
52694 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_Query" "', argument " "4"" of type '" "std::string const &""'"); goto fail; } while(0);
52699 SWIG_Python_Thread_Allow _swig_thread_allow;
52702 result = (Xapian::Query *)new Xapian::Query(arg1,arg2,(std::string const &)*arg3,(std::string const &)*arg4);
52704 _swig_thread_allow.end();
52705 Xapian::SetPythonException();
52709 _swig_thread_allow.end();
52711 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[40], ((0x1 << 1) | 0x1) | 0);
52712 if (((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3;
52713 if (((res4 >= 0) && (res4 & ((1 << 8) << 1)))) delete arg4;
52716 if (((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3;
52717 if (((res4 >= 0) && (res4 & ((1 << 8) << 1)))) delete arg4;
52720 static __attribute__ ((__unused__)) PyObject *_wrap_new_Query__SWIG_11(PyObject *, int nobjs, PyObject **swig_obj) {
52721 PyObject *resultobj = 0;
52722 Xapian::Query::op arg1 ;
52723 Xapian::valueno arg2 ;
52724 std::string *arg3 = 0 ;
52727 unsigned int val2 ;
52730 Xapian::Query *result = 0 ;
52731 if ((nobjs < 3) || (nobjs > 3)) goto fail;
52732 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
52733 if (!(ecode1 >= 0)) {
52734 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query::op""'"); goto fail; } while(0);
52736 arg1 = static_cast< Xapian::Query::op >(val1);
52737 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
52738 if (!(ecode2 >= 0)) {
52739 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_Query" "', argument " "2"" of type '" "Xapian::valueno""'"); goto fail; } while(0);
52741 arg2 = static_cast< Xapian::valueno >(val2);
52743 std::string *ptr = (std::string *)0;
52744 res3 = SWIG_anystring_as_ptr(&(swig_obj[2]), &ptr);
52745 if (!(res3 >= 0)) {
52746 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (-1)) ? res3 : -5)), "in method '" "new_Query" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while(0);
52749 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_Query" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while(0);
52754 SWIG_Python_Thread_Allow _swig_thread_allow;
52757 result = (Xapian::Query *)new Xapian::Query(arg1,arg2,(std::string const &)*arg3);
52759 _swig_thread_allow.end();
52760 Xapian::SetPythonException();
52764 _swig_thread_allow.end();
52766 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[40], ((0x1 << 1) | 0x1) | 0);
52767 if (((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3;
52770 if (((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3;
52773 static __attribute__ ((__unused__)) PyObject *_wrap_new_Query__SWIG_12(PyObject *, int nobjs, PyObject **swig_obj) {
52774 PyObject *resultobj = 0;
52775 Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
52778 Xapian::Query *result = 0 ;
52779 if ((nobjs < 1) || (nobjs > 1)) goto fail;
52780 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[39], 0 | 0, 0);
52781 if (!(res1 >= 0)) {
52782 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::PostingSource *""'"); goto fail; } while(0);
52784 arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
52786 SWIG_Python_Thread_Allow _swig_thread_allow;
52789 result = (Xapian::Query *)new Xapian::Query(arg1);
52791 _swig_thread_allow.end();
52792 Xapian::SetPythonException();
52796 _swig_thread_allow.end();
52798 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[40], ((0x1 << 1) | 0x1) | 0);
52803 static __attribute__ ((__unused__)) PyObject *_wrap_Query_get_length(PyObject *, PyObject *args) {
52804 PyObject *resultobj = 0;
52805 Xapian::Query *arg1 = (Xapian::Query *) 0 ;
52808 PyObject *swig_obj[1] ;
52809 Xapian::termcount result;
52810 if (!args) goto fail;
52811 swig_obj[0] = args;
52812 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[40], 0 | 0, 0);
52813 if (!(res1 >= 0)) {
52814 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Query_get_length" "', argument " "1"" of type '" "Xapian::Query const *""'"); goto fail; } while(0);
52816 arg1 = reinterpret_cast< Xapian::Query * >(argp1);
52818 SWIG_Python_Thread_Allow _swig_thread_allow;
52821 result = (Xapian::termcount)((Xapian::Query const *)arg1)->get_length();
52823 _swig_thread_allow.end();
52824 Xapian::SetPythonException();
52828 _swig_thread_allow.end();
52830 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
52835 static __attribute__ ((__unused__)) PyObject *_wrap_Query_get_terms_begin(PyObject *, PyObject *args) {
52836 PyObject *resultobj = 0;
52837 Xapian::Query *arg1 = (Xapian::Query *) 0 ;
52840 PyObject *swig_obj[1] ;
52841 Xapian::TermIterator result;
52842 if (!args) goto fail;
52843 swig_obj[0] = args;
52844 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[40], 0 | 0, 0);
52845 if (!(res1 >= 0)) {
52846 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Query_get_terms_begin" "', argument " "1"" of type '" "Xapian::Query const *""'"); goto fail; } while(0);
52848 arg1 = reinterpret_cast< Xapian::Query * >(argp1);
52850 SWIG_Python_Thread_Allow _swig_thread_allow;
52853 result = ((Xapian::Query const *)arg1)->get_terms_begin();
52855 _swig_thread_allow.end();
52856 Xapian::SetPythonException();
52860 _swig_thread_allow.end();
52862 resultobj = SWIG_Python_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), swig_types[55], 0x1 | 0);
52867 static __attribute__ ((__unused__)) PyObject *_wrap_Query_get_terms_end(PyObject *, PyObject *args) {
52868 PyObject *resultobj = 0;
52869 Xapian::Query *arg1 = (Xapian::Query *) 0 ;
52872 PyObject *swig_obj[1] ;
52873 Xapian::TermIterator result;
52874 if (!args) goto fail;
52875 swig_obj[0] = args;
52876 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[40], 0 | 0, 0);
52877 if (!(res1 >= 0)) {
52878 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Query_get_terms_end" "', argument " "1"" of type '" "Xapian::Query const *""'"); goto fail; } while(0);
52880 arg1 = reinterpret_cast< Xapian::Query * >(argp1);
52882 SWIG_Python_Thread_Allow _swig_thread_allow;
52885 result = ((Xapian::Query const *)arg1)->get_terms_end();
52887 _swig_thread_allow.end();
52888 Xapian::SetPythonException();
52892 _swig_thread_allow.end();
52894 resultobj = SWIG_Python_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), swig_types[55], 0x1 | 0);
52899 static __attribute__ ((__unused__)) PyObject *_wrap_Query_empty(PyObject *, PyObject *args) {
52900 PyObject *resultobj = 0;
52901 Xapian::Query *arg1 = (Xapian::Query *) 0 ;
52904 PyObject *swig_obj[1] ;
52906 if (!args) goto fail;
52907 swig_obj[0] = args;
52908 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[40], 0 | 0, 0);
52909 if (!(res1 >= 0)) {
52910 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Query_empty" "', argument " "1"" of type '" "Xapian::Query const *""'"); goto fail; } while(0);
52912 arg1 = reinterpret_cast< Xapian::Query * >(argp1);
52914 SWIG_Python_Thread_Allow _swig_thread_allow;
52917 result = (bool)((Xapian::Query const *)arg1)->empty();
52919 _swig_thread_allow.end();
52920 Xapian::SetPythonException();
52924 _swig_thread_allow.end();
52926 resultobj = SWIG_From_bool(static_cast< bool >(result));
52931 static __attribute__ ((__unused__)) PyObject *_wrap_Query_serialise(PyObject *, PyObject *args) {
52932 PyObject *resultobj = 0;
52933 Xapian::Query *arg1 = (Xapian::Query *) 0 ;
52936 PyObject *swig_obj[1] ;
52937 std::string result;
52938 if (!args) goto fail;
52939 swig_obj[0] = args;
52940 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[40], 0 | 0, 0);
52941 if (!(res1 >= 0)) {
52942 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Query_serialise" "', argument " "1"" of type '" "Xapian::Query const *""'"); goto fail; } while(0);
52944 arg1 = reinterpret_cast< Xapian::Query * >(argp1);
52946 SWIG_Python_Thread_Allow _swig_thread_allow;
52949 result = ((Xapian::Query const *)arg1)->serialise();
52951 _swig_thread_allow.end();
52952 Xapian::SetPythonException();
52956 _swig_thread_allow.end();
52958 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
52963 static __attribute__ ((__unused__)) PyObject *_wrap_Query_unserialise__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
52964 PyObject *resultobj = 0;
52965 std::string *arg1 = 0 ;
52967 Xapian::Query result;
52968 if ((nobjs < 1) || (nobjs > 1)) goto fail;
52970 std::string *ptr = (std::string *)0;
52971 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
52972 if (!(res1 >= 0)) {
52973 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Query_unserialise" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
52976 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Query_unserialise" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
52981 SWIG_Python_Thread_Allow _swig_thread_allow;
52984 result = Xapian::Query::unserialise((std::string const &)*arg1);
52986 _swig_thread_allow.end();
52987 Xapian::SetPythonException();
52991 _swig_thread_allow.end();
52993 resultobj = SWIG_Python_NewPointerObj((new Xapian::Query(static_cast< const Xapian::Query& >(result))), swig_types[40], 0x1 | 0);
52994 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
52997 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
53000 static __attribute__ ((__unused__)) PyObject *_wrap_Query_unserialise__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
53001 PyObject *resultobj = 0;
53002 std::string *arg1 = 0 ;
53003 Xapian::Registry *arg2 = 0 ;
53007 Xapian::Query result;
53008 if ((nobjs < 2) || (nobjs > 2)) goto fail;
53010 std::string *ptr = (std::string *)0;
53011 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
53012 if (!(res1 >= 0)) {
53013 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Query_unserialise" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
53016 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Query_unserialise" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
53020 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[45], 0 | 0, 0);
53021 if (!(res2 >= 0)) {
53022 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Query_unserialise" "', argument " "2"" of type '" "Xapian::Registry const &""'"); goto fail; } while(0);
53025 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Query_unserialise" "', argument " "2"" of type '" "Xapian::Registry const &""'"); goto fail; } while(0);
53027 arg2 = reinterpret_cast< Xapian::Registry * >(argp2);
53029 SWIG_Python_Thread_Allow _swig_thread_allow;
53032 result = Xapian::Query::unserialise((std::string const &)*arg1,(Xapian::Registry const &)*arg2);
53034 _swig_thread_allow.end();
53035 Xapian::SetPythonException();
53039 _swig_thread_allow.end();
53041 resultobj = SWIG_Python_NewPointerObj((new Xapian::Query(static_cast< const Xapian::Query& >(result))), swig_types[40], 0x1 | 0);
53042 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
53045 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
53048 static __attribute__ ((__unused__)) PyObject *_wrap_Query_unserialise(PyObject *self, PyObject *args) {
53051 if (!(argc = SWIG_Python_UnpackTuple(args,"Query_unserialise",0,2,argv))) goto fail;
53054 return _wrap_Query_unserialise__SWIG_0(self, argc, argv);
53057 return _wrap_Query_unserialise__SWIG_1(self, argc, argv);
53060 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'Query_unserialise'.\n"
53061 " Possible C/C++ prototypes are:\n"
53062 " unserialise(std::string const &)\n"
53063 " Xapian::Query::unserialise(std::string const &,Xapian::Registry const &)\n");
53066 static __attribute__ ((__unused__)) PyObject *_wrap_Query___str__(PyObject *, PyObject *args) {
53067 PyObject *resultobj = 0;
53068 Xapian::Query *arg1 = (Xapian::Query *) 0 ;
53071 PyObject *swig_obj[1] ;
53072 std::string result;
53073 if (!args) goto fail;
53074 swig_obj[0] = args;
53075 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[40], 0 | 0, 0);
53076 if (!(res1 >= 0)) {
53077 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Query___str__" "', argument " "1"" of type '" "Xapian::Query const *""'"); goto fail; } while(0);
53079 arg1 = reinterpret_cast< Xapian::Query * >(argp1);
53081 SWIG_Python_Thread_Allow _swig_thread_allow;
53084 result = ((Xapian::Query const *)arg1)->get_description();
53086 _swig_thread_allow.end();
53087 Xapian::SetPythonException();
53091 _swig_thread_allow.end();
53093 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
53098 static __attribute__ ((__unused__)) PyObject *_wrap_new_Query__SWIG_13(PyObject *, int nobjs, PyObject **swig_obj) {
53099 PyObject *resultobj = 0;
53100 Xapian::Query::op arg1 ;
53101 std::vector< Xapian::Query > *arg2 = 0 ;
53102 Xapian::termcount arg3 ;
53105 vector< Xapian::Query > v2 ;
53106 unsigned int val3 ;
53108 Xapian::Query *result = 0 ;
53109 if ((nobjs < 3) || (nobjs > 3)) goto fail;
53110 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
53111 if (!(ecode1 >= 0)) {
53112 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query::op""'"); goto fail; } while(0);
53114 arg1 = static_cast< Xapian::Query::op >(val1);
53116 PyObject * fastseq = PySequence_Fast(swig_obj[1], "expected sequence of strings or queries");
53120 int numitems = (((((((PyObject*)(fastseq))->ob_type))->tp_flags & ((1L<<25))) != 0) ? (((PyVarObject*)(fastseq))->ob_size) : (((PyVarObject*)(fastseq))->ob_size));
53121 v2.reserve(numitems);
53122 for (int i = 0; i < numitems; ++i) {
53123 PyObject *obj = (((((((PyObject*)(fastseq))->ob_type))->tp_flags & ((1L<<25))) != 0) ? (((PyListObject *)(fastseq))->ob_item[i]) : (((PyTupleObject *)(fastseq))->ob_item[i]));
53124 PyObject *decrefme = __null;
53125 if (((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<28))) != 0)) {
53126 PyObject *strobj = PyUnicodeUCS4_EncodeUTF8((((PyUnicodeObject *)(obj))->str), (((PyUnicodeObject *)(obj))->length), "ignore");
53127 if (!strobj) goto fail;
53131 if (((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<27))) != 0))
53135 (void)PyString_AsStringAndSize(obj, &p, &len);
53136 v2.push_back(Xapian::Query(string(p, len)));
53138 Xapian::Query *subqp = Xapian::get_py_query(obj);
53140 PyErr_SetString(PyExc_TypeError, "expected string or query");
53141 if ((decrefme) == __null) ; else if ( --((PyObject*)(decrefme))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(decrefme)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(decrefme))));
53144 v2.push_back(*subqp);
53146 if ((decrefme) == __null) ; else if ( --((PyObject*)(decrefme))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(decrefme)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(decrefme))));
53149 if ( --((PyObject*)(fastseq))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(fastseq)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(fastseq))));
53151 ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
53152 if (!(ecode3 >= 0)) {
53153 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "new_Query" "', argument " "3"" of type '" "Xapian::termcount""'"); goto fail; } while(0);
53155 arg3 = static_cast< Xapian::termcount >(val3);
53157 SWIG_Python_Thread_Allow _swig_thread_allow;
53160 result = (Xapian::Query *)new_Xapian_Query__SWIG_13(arg1,(std::vector< Xapian::Query > const &)*arg2,arg3);
53162 _swig_thread_allow.end();
53163 Xapian::SetPythonException();
53167 _swig_thread_allow.end();
53169 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[40], ((0x1 << 1) | 0x1) | 0);
53174 static __attribute__ ((__unused__)) PyObject *_wrap_new_Query__SWIG_14(PyObject *, int nobjs, PyObject **swig_obj) {
53175 PyObject *resultobj = 0;
53176 Xapian::Query::op arg1 ;
53177 std::vector< Xapian::Query > *arg2 = 0 ;
53180 vector< Xapian::Query > v2 ;
53181 Xapian::Query *result = 0 ;
53182 if ((nobjs < 2) || (nobjs > 2)) goto fail;
53183 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
53184 if (!(ecode1 >= 0)) {
53185 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query::op""'"); goto fail; } while(0);
53187 arg1 = static_cast< Xapian::Query::op >(val1);
53189 PyObject * fastseq = PySequence_Fast(swig_obj[1], "expected sequence of strings or queries");
53193 int numitems = (((((((PyObject*)(fastseq))->ob_type))->tp_flags & ((1L<<25))) != 0) ? (((PyVarObject*)(fastseq))->ob_size) : (((PyVarObject*)(fastseq))->ob_size));
53194 v2.reserve(numitems);
53195 for (int i = 0; i < numitems; ++i) {
53196 PyObject *obj = (((((((PyObject*)(fastseq))->ob_type))->tp_flags & ((1L<<25))) != 0) ? (((PyListObject *)(fastseq))->ob_item[i]) : (((PyTupleObject *)(fastseq))->ob_item[i]));
53197 PyObject *decrefme = __null;
53198 if (((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<28))) != 0)) {
53199 PyObject *strobj = PyUnicodeUCS4_EncodeUTF8((((PyUnicodeObject *)(obj))->str), (((PyUnicodeObject *)(obj))->length), "ignore");
53200 if (!strobj) goto fail;
53204 if (((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<27))) != 0))
53208 (void)PyString_AsStringAndSize(obj, &p, &len);
53209 v2.push_back(Xapian::Query(string(p, len)));
53211 Xapian::Query *subqp = Xapian::get_py_query(obj);
53213 PyErr_SetString(PyExc_TypeError, "expected string or query");
53214 if ((decrefme) == __null) ; else if ( --((PyObject*)(decrefme))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(decrefme)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(decrefme))));
53217 v2.push_back(*subqp);
53219 if ((decrefme) == __null) ; else if ( --((PyObject*)(decrefme))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(decrefme)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(decrefme))));
53222 if ( --((PyObject*)(fastseq))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(fastseq)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(fastseq))));
53225 SWIG_Python_Thread_Allow _swig_thread_allow;
53228 result = (Xapian::Query *)new_Xapian_Query__SWIG_13(arg1,(std::vector< Xapian::Query > const &)*arg2);
53230 _swig_thread_allow.end();
53231 Xapian::SetPythonException();
53235 _swig_thread_allow.end();
53237 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[40], ((0x1 << 1) | 0x1) | 0);
53242 static __attribute__ ((__unused__)) PyObject *_wrap_new_Query(PyObject *self, PyObject *args) {
53245 if (!(argc = SWIG_Python_UnpackTuple(args,"new_Query",0,4,argv))) goto fail;
53248 return _wrap_new_Query__SWIG_1(self, argc, argv);
53253 int res = SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[40], 0, 0);
53254 _v = ((res >= 0) ? 1 : 0);
53256 if (!_v) goto check_2;
53257 return _wrap_new_Query__SWIG_0(self, argc, argv);
53264 int res = SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[39], 0, 0);
53265 _v = ((res >= 0) ? 1 : 0);
53267 if (!_v) goto check_3;
53268 return _wrap_new_Query__SWIG_12(self, argc, argv);
53272 return _wrap_new_Query__SWIG_4(self, argc, argv);
53278 int res = SWIG_AsVal_int(argv[0], __null);
53279 _v = ((res >= 0) ? 1 : 0);
53282 if (!_v) goto check_5;
53285 if (!PySequence_Check(argv[1])) {
53289 PyObject * fastseq = PySequence_Fast(argv[1], "expected sequence of strings or queries");
53293 int numitems = (((((((PyObject*)(fastseq))->ob_type))->tp_flags & ((1L<<25))) != 0) ? (((PyVarObject*)(fastseq))->ob_size) : (((PyVarObject*)(fastseq))->ob_size));
53294 for (int i = 0; i < numitems; ++i) {
53295 PyObject *obj = (((((((PyObject*)(fastseq))->ob_type))->tp_flags & ((1L<<25))) != 0) ? (((PyListObject *)(fastseq))->ob_item[i]) : (((PyTupleObject *)(fastseq))->ob_item[i]));
53296 if (!((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<28))) != 0) &&
53297 !((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<27))) != 0) &&
53298 !Xapian::get_py_query(obj)) {
53303 if ( --((PyObject*)(fastseq))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(fastseq)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(fastseq))));
53307 if (!_v) goto check_5;
53308 return _wrap_new_Query__SWIG_14(self, argc, argv);
53312 return _wrap_new_Query__SWIG_3(self, argc, argv);
53318 int res = SWIG_AsVal_int(argv[0], __null);
53319 _v = ((res >= 0) ? 1 : 0);
53322 if (!_v) goto check_7;
53324 int res = SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[40], 0, 0);
53325 _v = ((res >= 0) ? 1 : 0);
53327 if (!_v) goto check_7;
53329 int res = SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[40], 0, 0);
53330 _v = ((res >= 0) ? 1 : 0);
53332 if (!_v) goto check_7;
53333 return _wrap_new_Query__SWIG_5(self, argc, argv);
53340 int res = SWIG_AsVal_int(argv[0], __null);
53341 _v = ((res >= 0) ? 1 : 0);
53344 if (!_v) goto check_8;
53346 int res = SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[40], 0, 0);
53347 _v = ((res >= 0) ? 1 : 0);
53349 if (!_v) goto check_8;
53352 int res = SWIG_AsVal_double(argv[2], __null);
53353 _v = ((res >= 0) ? 1 : 0);
53356 if (!_v) goto check_8;
53357 return _wrap_new_Query__SWIG_9(self, argc, argv);
53364 int res = SWIG_AsVal_int(argv[0], __null);
53365 _v = ((res >= 0) ? 1 : 0);
53368 if (!_v) goto check_9;
53371 int res = SWIG_AsVal_unsigned_SS_int(argv[1], __null);
53372 _v = ((res >= 0) ? 1 : 0);
53375 if (!_v) goto check_9;
53377 int res = SWIG_anystring_as_ptr(&(argv[2]), (std::string**)(0));
53378 _v = ((res >= 0) ? 1 : 0);
53380 if (!_v) goto check_9;
53381 return _wrap_new_Query__SWIG_11(self, argc, argv);
53388 int res = SWIG_AsVal_int(argv[0], __null);
53389 _v = ((res >= 0) ? 1 : 0);
53392 if (!_v) goto check_10;
53395 if (!PySequence_Check(argv[1])) {
53399 PyObject * fastseq = PySequence_Fast(argv[1], "expected sequence of strings or queries");
53403 int numitems = (((((((PyObject*)(fastseq))->ob_type))->tp_flags & ((1L<<25))) != 0) ? (((PyVarObject*)(fastseq))->ob_size) : (((PyVarObject*)(fastseq))->ob_size));
53404 for (int i = 0; i < numitems; ++i) {
53405 PyObject *obj = (((((((PyObject*)(fastseq))->ob_type))->tp_flags & ((1L<<25))) != 0) ? (((PyListObject *)(fastseq))->ob_item[i]) : (((PyTupleObject *)(fastseq))->ob_item[i]));
53406 if (!((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<28))) != 0) &&
53407 !((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<27))) != 0) &&
53408 !Xapian::get_py_query(obj)) {
53413 if ( --((PyObject*)(fastseq))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(fastseq)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(fastseq))));
53417 if (!_v) goto check_10;
53420 int res = SWIG_AsVal_unsigned_SS_int(argv[2], __null);
53421 _v = ((res >= 0) ? 1 : 0);
53424 if (!_v) goto check_10;
53425 return _wrap_new_Query__SWIG_13(self, argc, argv);
53432 int res = SWIG_AsVal_int(argv[0], __null);
53433 _v = ((res >= 0) ? 1 : 0);
53436 if (!_v) goto check_11;
53438 int res = SWIG_anystring_as_ptr(&(argv[1]), (std::string**)(0));
53439 _v = ((res >= 0) ? 1 : 0);
53441 if (!_v) goto check_11;
53443 int res = SWIG_anystring_as_ptr(&(argv[2]), (std::string**)(0));
53444 _v = ((res >= 0) ? 1 : 0);
53446 if (!_v) goto check_11;
53447 return _wrap_new_Query__SWIG_6(self, argc, argv);
53451 return _wrap_new_Query__SWIG_2(self, argc, argv);
53454 return _wrap_new_Query__SWIG_10(self, argc, argv);
53457 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_Query'.\n"
53458 " Possible C/C++ prototypes are:\n"
53459 " Xapian::Query(Xapian::Query const &)\n"
53460 " Xapian::Query()\n"
53461 " Xapian::Query(std::string const &,Xapian::termcount,Xapian::termpos)\n"
53462 " Xapian::Query(std::string const &,Xapian::termcount)\n"
53463 " Xapian::Query(std::string const &)\n"
53464 " Xapian::Query(Xapian::Query::op,Xapian::Query const &,Xapian::Query const &)\n"
53465 " Xapian::Query(Xapian::Query::op,std::string const &,std::string const &)\n"
53466 " Xapian::Query(Xapian::Query::op,Xapian::Query,double)\n"
53467 " Xapian::Query(Xapian::Query::op,Xapian::valueno,std::string const &,std::string const &)\n"
53468 " Xapian::Query(Xapian::Query::op,Xapian::valueno,std::string const &)\n"
53469 " Xapian::Query(Xapian::PostingSource *)\n"
53470 " Xapian::Query(Xapian::Query::op,std::vector< Xapian::Query > const &,Xapian::termcount)\n"
53471 " Xapian::Query(Xapian::Query::op,std::vector< Xapian::Query > const &)\n");
53474 static __attribute__ ((__unused__)) PyObject *Query_swigregister(PyObject *, PyObject *args) {
53476 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
53477 SWIG_TypeNewClientData(swig_types[40], SwigPyClientData_New(obj));
53478 return SWIG_Py_Void();
53480 static __attribute__ ((__unused__)) PyObject *Query_swiginit(PyObject *, PyObject *args) {
53481 return SWIG_Python_InitShadowInstance(args);
53483 static __attribute__ ((__unused__)) PyObject *_wrap_Stopper___call__(PyObject *, PyObject *args) {
53484 PyObject *resultobj = 0;
53485 Xapian::Stopper *arg1 = (Xapian::Stopper *) 0 ;
53486 std::string *arg2 = 0 ;
53490 PyObject *swig_obj[2] ;
53491 Swig::Director *director = 0;
53492 bool upcall = false;
53494 if (!SWIG_Python_UnpackTuple(args,"Stopper___call__",2,2,swig_obj)) goto fail;
53495 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[52], 0 | 0, 0);
53496 if (!(res1 >= 0)) {
53497 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Stopper___call__" "', argument " "1"" of type '" "Xapian::Stopper const *""'"); goto fail; } while(0);
53499 arg1 = reinterpret_cast< Xapian::Stopper * >(argp1);
53501 std::string *ptr = (std::string *)0;
53502 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
53503 if (!(res2 >= 0)) {
53504 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Stopper___call__" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
53507 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Stopper___call__" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
53511 director = dynamic_cast<Swig::Director*>(arg1);
53512 upcall = (director && (director->swig_get_self()==swig_obj[0]));
53517 Swig::DirectorPureVirtualException::raise("Xapian::Stopper::operator ()");
53519 result = (bool)((Xapian::Stopper const *)arg1)->operator ()((std::string const &)*arg2);
53522 Xapian::SetPythonException();
53526 } catch (Swig::DirectorException&) {
53529 resultobj = SWIG_From_bool(static_cast< bool >(result));
53530 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
53533 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
53536 static __attribute__ ((__unused__)) PyObject *_wrap_delete_Stopper(PyObject *, PyObject *args) {
53537 PyObject *resultobj = 0;
53538 Xapian::Stopper *arg1 = (Xapian::Stopper *) 0 ;
53541 PyObject *swig_obj[1] ;
53542 if (!args) goto fail;
53543 swig_obj[0] = args;
53544 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[52], 0x1 | 0, 0);
53545 if (!(res1 >= 0)) {
53546 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_Stopper" "', argument " "1"" of type '" "Xapian::Stopper *""'"); goto fail; } while(0);
53548 arg1 = reinterpret_cast< Xapian::Stopper * >(argp1);
53550 SWIG_Python_Thread_Allow _swig_thread_allow;
53555 _swig_thread_allow.end();
53556 Xapian::SetPythonException();
53560 _swig_thread_allow.end();
53562 resultobj = SWIG_Py_Void();
53567 static __attribute__ ((__unused__)) PyObject *_wrap_Stopper___str__(PyObject *, PyObject *args) {
53568 PyObject *resultobj = 0;
53569 Xapian::Stopper *arg1 = (Xapian::Stopper *) 0 ;
53572 PyObject *swig_obj[1] ;
53573 Swig::Director *director = 0;
53574 bool upcall = false;
53575 std::string result;
53576 if (!args) goto fail;
53577 swig_obj[0] = args;
53578 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[52], 0 | 0, 0);
53579 if (!(res1 >= 0)) {
53580 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Stopper___str__" "', argument " "1"" of type '" "Xapian::Stopper const *""'"); goto fail; } while(0);
53582 arg1 = reinterpret_cast< Xapian::Stopper * >(argp1);
53583 director = dynamic_cast<Swig::Director*>(arg1);
53584 upcall = (director && (director->swig_get_self()==swig_obj[0]));
53589 result = ((Xapian::Stopper const *)arg1)->Xapian::Stopper::get_description();
53591 result = ((Xapian::Stopper const *)arg1)->get_description();
53594 Xapian::SetPythonException();
53598 } catch (Swig::DirectorException&) {
53601 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
53606 static __attribute__ ((__unused__)) PyObject *_wrap_new_Stopper(PyObject *, PyObject *args) {
53607 PyObject *resultobj = 0;
53608 PyObject *arg1 = (PyObject *) 0 ;
53609 PyObject *swig_obj[1] ;
53610 Xapian::Stopper *result = 0 ;
53611 if (!args) goto fail;
53612 swig_obj[0] = args;
53613 arg1 = swig_obj[0];
53615 SWIG_Python_Thread_Allow _swig_thread_allow;
53618 if ( arg1 != (&_Py_NoneStruct) ) {
53619 result = (Xapian::Stopper *)new SwigDirector_Stopper(arg1);
53621 SWIG_Python_SetErrorMsg(PyExc_RuntimeError,"accessing abstract class or protected constructor");
53625 _swig_thread_allow.end();
53626 Xapian::SetPythonException();
53630 _swig_thread_allow.end();
53632 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[52], ((0x1 << 1) | 0x1) | 0);
53637 static __attribute__ ((__unused__)) PyObject *_wrap_disown_Stopper(PyObject *, PyObject *args) {
53638 PyObject *resultobj = 0;
53639 Xapian::Stopper *arg1 = (Xapian::Stopper *) 0 ;
53642 PyObject *swig_obj[1] ;
53643 if (!args) goto fail;
53644 swig_obj[0] = args;
53645 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[52], 0 | 0, 0);
53646 if (!(res1 >= 0)) {
53647 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "disown_Stopper" "', argument " "1"" of type '" "Xapian::Stopper *""'"); goto fail; } while(0);
53649 arg1 = reinterpret_cast< Xapian::Stopper * >(argp1);
53651 SWIG_Python_Thread_Allow _swig_thread_allow;
53653 Swig::Director *director = dynamic_cast<Swig::Director *>(arg1);
53654 if (director) director->swig_disown();
53656 _swig_thread_allow.end();
53658 resultobj = SWIG_Py_Void();
53663 static __attribute__ ((__unused__)) PyObject *Stopper_swigregister(PyObject *, PyObject *args) {
53665 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
53666 SWIG_TypeNewClientData(swig_types[52], SwigPyClientData_New(obj));
53667 return SWIG_Py_Void();
53669 static __attribute__ ((__unused__)) PyObject *Stopper_swiginit(PyObject *, PyObject *args) {
53670 return SWIG_Python_InitShadowInstance(args);
53672 static __attribute__ ((__unused__)) PyObject *_wrap_new_SimpleStopper(PyObject *, PyObject *args) {
53673 PyObject *resultobj = 0;
53674 Xapian::SimpleStopper *result = 0 ;
53675 if (!SWIG_Python_UnpackTuple(args,"new_SimpleStopper",0,0,0)) goto fail;
53677 SWIG_Python_Thread_Allow _swig_thread_allow;
53680 result = (Xapian::SimpleStopper *)new Xapian::SimpleStopper();
53682 _swig_thread_allow.end();
53683 Xapian::SetPythonException();
53687 _swig_thread_allow.end();
53689 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[48], ((0x1 << 1) | 0x1) | 0);
53694 static __attribute__ ((__unused__)) PyObject *_wrap_SimpleStopper_add(PyObject *, PyObject *args) {
53695 PyObject *resultobj = 0;
53696 Xapian::SimpleStopper *arg1 = (Xapian::SimpleStopper *) 0 ;
53697 std::string *arg2 = 0 ;
53701 PyObject *swig_obj[2] ;
53702 if (!SWIG_Python_UnpackTuple(args,"SimpleStopper_add",2,2,swig_obj)) goto fail;
53703 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[48], 0 | 0, 0);
53704 if (!(res1 >= 0)) {
53705 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "SimpleStopper_add" "', argument " "1"" of type '" "Xapian::SimpleStopper *""'"); goto fail; } while(0);
53707 arg1 = reinterpret_cast< Xapian::SimpleStopper * >(argp1);
53709 std::string *ptr = (std::string *)0;
53710 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
53711 if (!(res2 >= 0)) {
53712 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "SimpleStopper_add" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
53715 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "SimpleStopper_add" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
53720 SWIG_Python_Thread_Allow _swig_thread_allow;
53723 (arg1)->add((std::string const &)*arg2);
53725 _swig_thread_allow.end();
53726 Xapian::SetPythonException();
53730 _swig_thread_allow.end();
53732 resultobj = SWIG_Py_Void();
53733 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
53736 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
53739 static __attribute__ ((__unused__)) PyObject *_wrap_delete_SimpleStopper(PyObject *, PyObject *args) {
53740 PyObject *resultobj = 0;
53741 Xapian::SimpleStopper *arg1 = (Xapian::SimpleStopper *) 0 ;
53744 PyObject *swig_obj[1] ;
53745 if (!args) goto fail;
53746 swig_obj[0] = args;
53747 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[48], 0x1 | 0, 0);
53748 if (!(res1 >= 0)) {
53749 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_SimpleStopper" "', argument " "1"" of type '" "Xapian::SimpleStopper *""'"); goto fail; } while(0);
53751 arg1 = reinterpret_cast< Xapian::SimpleStopper * >(argp1);
53753 SWIG_Python_Thread_Allow _swig_thread_allow;
53758 _swig_thread_allow.end();
53759 Xapian::SetPythonException();
53763 _swig_thread_allow.end();
53765 resultobj = SWIG_Py_Void();
53770 static __attribute__ ((__unused__)) PyObject *SimpleStopper_swigregister(PyObject *, PyObject *args) {
53772 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
53773 SWIG_TypeNewClientData(swig_types[48], SwigPyClientData_New(obj));
53774 return SWIG_Py_Void();
53776 static __attribute__ ((__unused__)) PyObject *SimpleStopper_swiginit(PyObject *, PyObject *args) {
53777 return SWIG_Python_InitShadowInstance(args);
53779 static __attribute__ ((__unused__)) PyObject *_wrap_delete_ValueRangeProcessor(PyObject *, PyObject *args) {
53780 PyObject *resultobj = 0;
53781 Xapian::ValueRangeProcessor *arg1 = (Xapian::ValueRangeProcessor *) 0 ;
53784 PyObject *swig_obj[1] ;
53785 if (!args) goto fail;
53786 swig_obj[0] = args;
53787 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[62], 0x1 | 0, 0);
53788 if (!(res1 >= 0)) {
53789 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_ValueRangeProcessor" "', argument " "1"" of type '" "Xapian::ValueRangeProcessor *""'"); goto fail; } while(0);
53791 arg1 = reinterpret_cast< Xapian::ValueRangeProcessor * >(argp1);
53793 SWIG_Python_Thread_Allow _swig_thread_allow;
53798 _swig_thread_allow.end();
53799 Xapian::SetPythonException();
53803 _swig_thread_allow.end();
53805 resultobj = SWIG_Py_Void();
53810 static __attribute__ ((__unused__)) PyObject *_wrap_ValueRangeProcessor___call__(PyObject *, PyObject *args) {
53811 PyObject *resultobj = 0;
53812 Xapian::ValueRangeProcessor *arg1 = (Xapian::ValueRangeProcessor *) 0 ;
53813 std::string *arg2 = 0 ;
53814 std::string *arg3 = 0 ;
53817 std::string temp2 ;
53818 std::string temp3 ;
53819 PyObject *swig_obj[3] ;
53820 Swig::Director *director = 0;
53821 bool upcall = false;
53822 Xapian::valueno result;
53823 if (!SWIG_Python_UnpackTuple(args,"ValueRangeProcessor___call__",3,3,swig_obj)) goto fail;
53824 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[62], 0 | 0, 0);
53825 if (!(res1 >= 0)) {
53826 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "ValueRangeProcessor___call__" "', argument " "1"" of type '" "Xapian::ValueRangeProcessor *""'"); goto fail; } while(0);
53828 arg1 = reinterpret_cast< Xapian::ValueRangeProcessor * >(argp1);
53830 std::string *ptr = (std::string *)0;
53831 int res = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
53832 if (!(res >= 0) || !ptr) {
53833 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType((((ptr ? res : -5) != (-1)) ? (ptr ? res : -5) : -5)), "in method '" "ValueRangeProcessor___call__" "', argument " "2"" of type '" "std::string &""'"); goto fail; } while(0);
53837 if (((res >= 0) && (res & ((1 << 8) << 1)))) delete ptr;
53840 std::string *ptr = (std::string *)0;
53841 int res = SWIG_AsPtr_std_string(swig_obj[2], &ptr);
53842 if (!(res >= 0) || !ptr) {
53843 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType((((ptr ? res : -5) != (-1)) ? (ptr ? res : -5) : -5)), "in method '" "ValueRangeProcessor___call__" "', argument " "3"" of type '" "std::string &""'"); goto fail; } while(0);
53847 if (((res >= 0) && (res & ((1 << 8) << 1)))) delete ptr;
53849 director = dynamic_cast<Swig::Director*>(arg1);
53850 upcall = (director && (director->swig_get_self()==swig_obj[0]));
53855 Swig::DirectorPureVirtualException::raise("Xapian::ValueRangeProcessor::operator ()");
53857 result = (Xapian::valueno)(arg1)->operator ()(*arg2,*arg3);
53860 Xapian::SetPythonException();
53864 } catch (Swig::DirectorException&) {
53867 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
53870 PyObject * newresult;
53871 newresult = PyTuple_New(3);
53872 if (newresult == 0) {
53873 if ( --((PyObject*)(resultobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(resultobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(resultobj))));
53874 resultobj = __null;
53877 (((PyTupleObject *)(newresult))->ob_item[0] = resultobj);
53878 resultobj = newresult;
53879 str = PyString_FromStringAndSize(arg2->data(), arg2->size());
53881 if ( --((PyObject*)(resultobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(resultobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(resultobj))));
53882 resultobj = __null;
53885 (((PyTupleObject *)(resultobj))->ob_item[1] = str);
53886 str = PyString_FromStringAndSize(arg3->data(), arg3->size());
53888 if ( --((PyObject*)(resultobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(resultobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(resultobj))));
53889 resultobj = __null;
53892 (((PyTupleObject *)(resultobj))->ob_item[2] = str);
53898 static __attribute__ ((__unused__)) PyObject *_wrap_new_ValueRangeProcessor(PyObject *, PyObject *args) {
53899 PyObject *resultobj = 0;
53900 PyObject *arg1 = (PyObject *) 0 ;
53901 PyObject *swig_obj[1] ;
53902 Xapian::ValueRangeProcessor *result = 0 ;
53903 if (!args) goto fail;
53904 swig_obj[0] = args;
53905 arg1 = swig_obj[0];
53907 SWIG_Python_Thread_Allow _swig_thread_allow;
53910 if ( arg1 != (&_Py_NoneStruct) ) {
53911 result = (Xapian::ValueRangeProcessor *)new SwigDirector_ValueRangeProcessor(arg1);
53913 SWIG_Python_SetErrorMsg(PyExc_RuntimeError,"accessing abstract class or protected constructor");
53917 _swig_thread_allow.end();
53918 Xapian::SetPythonException();
53922 _swig_thread_allow.end();
53924 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[62], ((0x1 << 1) | 0x1) | 0);
53929 static __attribute__ ((__unused__)) PyObject *_wrap_disown_ValueRangeProcessor(PyObject *, PyObject *args) {
53930 PyObject *resultobj = 0;
53931 Xapian::ValueRangeProcessor *arg1 = (Xapian::ValueRangeProcessor *) 0 ;
53934 PyObject *swig_obj[1] ;
53935 if (!args) goto fail;
53936 swig_obj[0] = args;
53937 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[62], 0 | 0, 0);
53938 if (!(res1 >= 0)) {
53939 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "disown_ValueRangeProcessor" "', argument " "1"" of type '" "Xapian::ValueRangeProcessor *""'"); goto fail; } while(0);
53941 arg1 = reinterpret_cast< Xapian::ValueRangeProcessor * >(argp1);
53943 SWIG_Python_Thread_Allow _swig_thread_allow;
53945 Swig::Director *director = dynamic_cast<Swig::Director *>(arg1);
53946 if (director) director->swig_disown();
53948 _swig_thread_allow.end();
53950 resultobj = SWIG_Py_Void();
53955 static __attribute__ ((__unused__)) PyObject *ValueRangeProcessor_swigregister(PyObject *, PyObject *args) {
53957 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
53958 SWIG_TypeNewClientData(swig_types[62], SwigPyClientData_New(obj));
53959 return SWIG_Py_Void();
53961 static __attribute__ ((__unused__)) PyObject *ValueRangeProcessor_swiginit(PyObject *, PyObject *args) {
53962 return SWIG_Python_InitShadowInstance(args);
53964 static __attribute__ ((__unused__)) PyObject *_wrap_new_StringValueRangeProcessor__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
53965 PyObject *resultobj = 0;
53966 Xapian::valueno arg1 ;
53967 unsigned int val1 ;
53969 Xapian::StringValueRangeProcessor *result = 0 ;
53970 if ((nobjs < 1) || (nobjs > 1)) goto fail;
53971 ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
53972 if (!(ecode1 >= 0)) {
53973 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_StringValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'"); goto fail; } while(0);
53975 arg1 = static_cast< Xapian::valueno >(val1);
53977 SWIG_Python_Thread_Allow _swig_thread_allow;
53980 result = (Xapian::StringValueRangeProcessor *)new Xapian::StringValueRangeProcessor(arg1);
53982 _swig_thread_allow.end();
53983 Xapian::SetPythonException();
53987 _swig_thread_allow.end();
53989 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[53], ((0x1 << 1) | 0x1) | 0);
53994 static __attribute__ ((__unused__)) PyObject *_wrap_new_StringValueRangeProcessor__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
53995 PyObject *resultobj = 0;
53996 Xapian::valueno arg1 ;
53997 std::string *arg2 = 0 ;
53999 unsigned int val1 ;
54004 Xapian::StringValueRangeProcessor *result = 0 ;
54005 if ((nobjs < 3) || (nobjs > 3)) goto fail;
54006 ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
54007 if (!(ecode1 >= 0)) {
54008 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_StringValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'"); goto fail; } while(0);
54010 arg1 = static_cast< Xapian::valueno >(val1);
54012 std::string *ptr = (std::string *)0;
54013 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
54014 if (!(res2 >= 0)) {
54015 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_StringValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
54018 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_StringValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
54022 ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
54023 if (!(ecode3 >= 0)) {
54024 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "new_StringValueRangeProcessor" "', argument " "3"" of type '" "bool""'"); goto fail; } while(0);
54026 arg3 = static_cast< bool >(val3);
54028 SWIG_Python_Thread_Allow _swig_thread_allow;
54031 result = (Xapian::StringValueRangeProcessor *)new Xapian::StringValueRangeProcessor(arg1,(std::string const &)*arg2,arg3);
54033 _swig_thread_allow.end();
54034 Xapian::SetPythonException();
54038 _swig_thread_allow.end();
54040 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[53], ((0x1 << 1) | 0x1) | 0);
54041 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
54044 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
54047 static __attribute__ ((__unused__)) PyObject *_wrap_new_StringValueRangeProcessor__SWIG_2(PyObject *, int nobjs, PyObject **swig_obj) {
54048 PyObject *resultobj = 0;
54049 Xapian::valueno arg1 ;
54050 std::string *arg2 = 0 ;
54051 unsigned int val1 ;
54054 Xapian::StringValueRangeProcessor *result = 0 ;
54055 if ((nobjs < 2) || (nobjs > 2)) goto fail;
54056 ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
54057 if (!(ecode1 >= 0)) {
54058 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_StringValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'"); goto fail; } while(0);
54060 arg1 = static_cast< Xapian::valueno >(val1);
54062 std::string *ptr = (std::string *)0;
54063 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
54064 if (!(res2 >= 0)) {
54065 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_StringValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
54068 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_StringValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
54073 SWIG_Python_Thread_Allow _swig_thread_allow;
54076 result = (Xapian::StringValueRangeProcessor *)new Xapian::StringValueRangeProcessor(arg1,(std::string const &)*arg2);
54078 _swig_thread_allow.end();
54079 Xapian::SetPythonException();
54083 _swig_thread_allow.end();
54085 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[53], ((0x1 << 1) | 0x1) | 0);
54086 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
54089 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
54092 static __attribute__ ((__unused__)) PyObject *_wrap_new_StringValueRangeProcessor(PyObject *self, PyObject *args) {
54095 if (!(argc = SWIG_Python_UnpackTuple(args,"new_StringValueRangeProcessor",0,3,argv))) goto fail;
54098 return _wrap_new_StringValueRangeProcessor__SWIG_0(self, argc, argv);
54101 return _wrap_new_StringValueRangeProcessor__SWIG_2(self, argc, argv);
54104 return _wrap_new_StringValueRangeProcessor__SWIG_1(self, argc, argv);
54107 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_StringValueRangeProcessor'.\n"
54108 " Possible C/C++ prototypes are:\n"
54109 " Xapian::StringValueRangeProcessor(Xapian::valueno)\n"
54110 " Xapian::StringValueRangeProcessor(Xapian::valueno,std::string const &,bool)\n"
54111 " Xapian::StringValueRangeProcessor(Xapian::valueno,std::string const &)\n");
54114 static __attribute__ ((__unused__)) PyObject *_wrap_delete_StringValueRangeProcessor(PyObject *, PyObject *args) {
54115 PyObject *resultobj = 0;
54116 Xapian::StringValueRangeProcessor *arg1 = (Xapian::StringValueRangeProcessor *) 0 ;
54119 PyObject *swig_obj[1] ;
54120 if (!args) goto fail;
54121 swig_obj[0] = args;
54122 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[53], 0x1 | 0, 0);
54123 if (!(res1 >= 0)) {
54124 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_StringValueRangeProcessor" "', argument " "1"" of type '" "Xapian::StringValueRangeProcessor *""'"); goto fail; } while(0);
54126 arg1 = reinterpret_cast< Xapian::StringValueRangeProcessor * >(argp1);
54128 SWIG_Python_Thread_Allow _swig_thread_allow;
54133 _swig_thread_allow.end();
54134 Xapian::SetPythonException();
54138 _swig_thread_allow.end();
54140 resultobj = SWIG_Py_Void();
54145 static __attribute__ ((__unused__)) PyObject *StringValueRangeProcessor_swigregister(PyObject *, PyObject *args) {
54147 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
54148 SWIG_TypeNewClientData(swig_types[53], SwigPyClientData_New(obj));
54149 return SWIG_Py_Void();
54151 static __attribute__ ((__unused__)) PyObject *StringValueRangeProcessor_swiginit(PyObject *, PyObject *args) {
54152 return SWIG_Python_InitShadowInstance(args);
54154 static __attribute__ ((__unused__)) PyObject *_wrap_new_DateValueRangeProcessor__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
54155 PyObject *resultobj = 0;
54156 Xapian::valueno arg1 ;
54159 unsigned int val1 ;
54165 Xapian::DateValueRangeProcessor *result = 0 ;
54166 if ((nobjs < 3) || (nobjs > 3)) goto fail;
54167 ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
54168 if (!(ecode1 >= 0)) {
54169 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_DateValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'"); goto fail; } while(0);
54171 arg1 = static_cast< Xapian::valueno >(val1);
54172 ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
54173 if (!(ecode2 >= 0)) {
54174 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_DateValueRangeProcessor" "', argument " "2"" of type '" "bool""'"); goto fail; } while(0);
54176 arg2 = static_cast< bool >(val2);
54177 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
54178 if (!(ecode3 >= 0)) {
54179 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "new_DateValueRangeProcessor" "', argument " "3"" of type '" "int""'"); goto fail; } while(0);
54181 arg3 = static_cast< int >(val3);
54183 SWIG_Python_Thread_Allow _swig_thread_allow;
54186 result = (Xapian::DateValueRangeProcessor *)new Xapian::DateValueRangeProcessor(arg1,arg2,arg3);
54188 _swig_thread_allow.end();
54189 Xapian::SetPythonException();
54193 _swig_thread_allow.end();
54195 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[12], ((0x1 << 1) | 0x1) | 0);
54200 static __attribute__ ((__unused__)) PyObject *_wrap_new_DateValueRangeProcessor__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
54201 PyObject *resultobj = 0;
54202 Xapian::valueno arg1 ;
54204 unsigned int val1 ;
54208 Xapian::DateValueRangeProcessor *result = 0 ;
54209 if ((nobjs < 2) || (nobjs > 2)) goto fail;
54210 ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
54211 if (!(ecode1 >= 0)) {
54212 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_DateValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'"); goto fail; } while(0);
54214 arg1 = static_cast< Xapian::valueno >(val1);
54215 ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
54216 if (!(ecode2 >= 0)) {
54217 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_DateValueRangeProcessor" "', argument " "2"" of type '" "bool""'"); goto fail; } while(0);
54219 arg2 = static_cast< bool >(val2);
54221 SWIG_Python_Thread_Allow _swig_thread_allow;
54224 result = (Xapian::DateValueRangeProcessor *)new Xapian::DateValueRangeProcessor(arg1,arg2);
54226 _swig_thread_allow.end();
54227 Xapian::SetPythonException();
54231 _swig_thread_allow.end();
54233 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[12], ((0x1 << 1) | 0x1) | 0);
54238 static __attribute__ ((__unused__)) PyObject *_wrap_new_DateValueRangeProcessor__SWIG_2(PyObject *, int nobjs, PyObject **swig_obj) {
54239 PyObject *resultobj = 0;
54240 Xapian::valueno arg1 ;
54241 unsigned int val1 ;
54243 Xapian::DateValueRangeProcessor *result = 0 ;
54244 if ((nobjs < 1) || (nobjs > 1)) goto fail;
54245 ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
54246 if (!(ecode1 >= 0)) {
54247 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_DateValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'"); goto fail; } while(0);
54249 arg1 = static_cast< Xapian::valueno >(val1);
54251 SWIG_Python_Thread_Allow _swig_thread_allow;
54254 result = (Xapian::DateValueRangeProcessor *)new Xapian::DateValueRangeProcessor(arg1);
54256 _swig_thread_allow.end();
54257 Xapian::SetPythonException();
54261 _swig_thread_allow.end();
54263 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[12], ((0x1 << 1) | 0x1) | 0);
54268 static __attribute__ ((__unused__)) PyObject *_wrap_new_DateValueRangeProcessor__SWIG_3(PyObject *, int nobjs, PyObject **swig_obj) {
54269 PyObject *resultobj = 0;
54270 Xapian::valueno arg1 ;
54271 std::string *arg2 = 0 ;
54275 unsigned int val1 ;
54284 Xapian::DateValueRangeProcessor *result = 0 ;
54285 if ((nobjs < 5) || (nobjs > 5)) goto fail;
54286 ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
54287 if (!(ecode1 >= 0)) {
54288 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_DateValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'"); goto fail; } while(0);
54290 arg1 = static_cast< Xapian::valueno >(val1);
54292 std::string *ptr = (std::string *)0;
54293 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
54294 if (!(res2 >= 0)) {
54295 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_DateValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
54298 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DateValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
54302 ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
54303 if (!(ecode3 >= 0)) {
54304 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "new_DateValueRangeProcessor" "', argument " "3"" of type '" "bool""'"); goto fail; } while(0);
54306 arg3 = static_cast< bool >(val3);
54307 ecode4 = SWIG_AsVal_bool(swig_obj[3], &val4);
54308 if (!(ecode4 >= 0)) {
54309 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 != (-1)) ? ecode4 : -5)), "in method '" "new_DateValueRangeProcessor" "', argument " "4"" of type '" "bool""'"); goto fail; } while(0);
54311 arg4 = static_cast< bool >(val4);
54312 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
54313 if (!(ecode5 >= 0)) {
54314 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode5 != (-1)) ? ecode5 : -5)), "in method '" "new_DateValueRangeProcessor" "', argument " "5"" of type '" "int""'"); goto fail; } while(0);
54316 arg5 = static_cast< int >(val5);
54318 SWIG_Python_Thread_Allow _swig_thread_allow;
54321 result = (Xapian::DateValueRangeProcessor *)new Xapian::DateValueRangeProcessor(arg1,(std::string const &)*arg2,arg3,arg4,arg5);
54323 _swig_thread_allow.end();
54324 Xapian::SetPythonException();
54328 _swig_thread_allow.end();
54330 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[12], ((0x1 << 1) | 0x1) | 0);
54331 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
54334 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
54337 static __attribute__ ((__unused__)) PyObject *_wrap_new_DateValueRangeProcessor__SWIG_4(PyObject *, int nobjs, PyObject **swig_obj) {
54338 PyObject *resultobj = 0;
54339 Xapian::valueno arg1 ;
54340 std::string *arg2 = 0 ;
54343 unsigned int val1 ;
54350 Xapian::DateValueRangeProcessor *result = 0 ;
54351 if ((nobjs < 4) || (nobjs > 4)) goto fail;
54352 ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
54353 if (!(ecode1 >= 0)) {
54354 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_DateValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'"); goto fail; } while(0);
54356 arg1 = static_cast< Xapian::valueno >(val1);
54358 std::string *ptr = (std::string *)0;
54359 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
54360 if (!(res2 >= 0)) {
54361 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_DateValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
54364 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DateValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
54368 ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
54369 if (!(ecode3 >= 0)) {
54370 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "new_DateValueRangeProcessor" "', argument " "3"" of type '" "bool""'"); goto fail; } while(0);
54372 arg3 = static_cast< bool >(val3);
54373 ecode4 = SWIG_AsVal_bool(swig_obj[3], &val4);
54374 if (!(ecode4 >= 0)) {
54375 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 != (-1)) ? ecode4 : -5)), "in method '" "new_DateValueRangeProcessor" "', argument " "4"" of type '" "bool""'"); goto fail; } while(0);
54377 arg4 = static_cast< bool >(val4);
54379 SWIG_Python_Thread_Allow _swig_thread_allow;
54382 result = (Xapian::DateValueRangeProcessor *)new Xapian::DateValueRangeProcessor(arg1,(std::string const &)*arg2,arg3,arg4);
54384 _swig_thread_allow.end();
54385 Xapian::SetPythonException();
54389 _swig_thread_allow.end();
54391 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[12], ((0x1 << 1) | 0x1) | 0);
54392 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
54395 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
54398 static __attribute__ ((__unused__)) PyObject *_wrap_new_DateValueRangeProcessor__SWIG_5(PyObject *, int nobjs, PyObject **swig_obj) {
54399 PyObject *resultobj = 0;
54400 Xapian::valueno arg1 ;
54401 std::string *arg2 = 0 ;
54403 unsigned int val1 ;
54408 Xapian::DateValueRangeProcessor *result = 0 ;
54409 if ((nobjs < 3) || (nobjs > 3)) goto fail;
54410 ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
54411 if (!(ecode1 >= 0)) {
54412 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_DateValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'"); goto fail; } while(0);
54414 arg1 = static_cast< Xapian::valueno >(val1);
54416 std::string *ptr = (std::string *)0;
54417 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
54418 if (!(res2 >= 0)) {
54419 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_DateValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
54422 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DateValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
54426 ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
54427 if (!(ecode3 >= 0)) {
54428 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "new_DateValueRangeProcessor" "', argument " "3"" of type '" "bool""'"); goto fail; } while(0);
54430 arg3 = static_cast< bool >(val3);
54432 SWIG_Python_Thread_Allow _swig_thread_allow;
54435 result = (Xapian::DateValueRangeProcessor *)new Xapian::DateValueRangeProcessor(arg1,(std::string const &)*arg2,arg3);
54437 _swig_thread_allow.end();
54438 Xapian::SetPythonException();
54442 _swig_thread_allow.end();
54444 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[12], ((0x1 << 1) | 0x1) | 0);
54445 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
54448 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
54451 static __attribute__ ((__unused__)) PyObject *_wrap_new_DateValueRangeProcessor__SWIG_6(PyObject *, int nobjs, PyObject **swig_obj) {
54452 PyObject *resultobj = 0;
54453 Xapian::valueno arg1 ;
54454 std::string *arg2 = 0 ;
54455 unsigned int val1 ;
54458 Xapian::DateValueRangeProcessor *result = 0 ;
54459 if ((nobjs < 2) || (nobjs > 2)) goto fail;
54460 ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
54461 if (!(ecode1 >= 0)) {
54462 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_DateValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'"); goto fail; } while(0);
54464 arg1 = static_cast< Xapian::valueno >(val1);
54466 std::string *ptr = (std::string *)0;
54467 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
54468 if (!(res2 >= 0)) {
54469 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_DateValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
54472 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_DateValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
54477 SWIG_Python_Thread_Allow _swig_thread_allow;
54480 result = (Xapian::DateValueRangeProcessor *)new Xapian::DateValueRangeProcessor(arg1,(std::string const &)*arg2);
54482 _swig_thread_allow.end();
54483 Xapian::SetPythonException();
54487 _swig_thread_allow.end();
54489 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[12], ((0x1 << 1) | 0x1) | 0);
54490 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
54493 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
54496 static __attribute__ ((__unused__)) PyObject *_wrap_new_DateValueRangeProcessor(PyObject *self, PyObject *args) {
54499 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DateValueRangeProcessor",0,5,argv))) goto fail;
54502 return _wrap_new_DateValueRangeProcessor__SWIG_2(self, argc, argv);
54507 int res = SWIG_anystring_as_ptr(&(argv[1]), (std::string**)(0));
54508 _v = ((res >= 0) ? 1 : 0);
54510 if (!_v) goto check_2;
54511 return _wrap_new_DateValueRangeProcessor__SWIG_6(self, argc, argv);
54515 return _wrap_new_DateValueRangeProcessor__SWIG_1(self, argc, argv);
54520 int res = SWIG_anystring_as_ptr(&(argv[1]), (std::string**)(0));
54521 _v = ((res >= 0) ? 1 : 0);
54523 if (!_v) goto check_4;
54526 int res = SWIG_AsVal_bool(argv[2], __null);
54527 _v = ((res >= 0) ? 1 : 0);
54530 if (!_v) goto check_4;
54531 return _wrap_new_DateValueRangeProcessor__SWIG_5(self, argc, argv);
54535 return _wrap_new_DateValueRangeProcessor__SWIG_0(self, argc, argv);
54538 return _wrap_new_DateValueRangeProcessor__SWIG_4(self, argc, argv);
54541 return _wrap_new_DateValueRangeProcessor__SWIG_3(self, argc, argv);
54544 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_DateValueRangeProcessor'.\n"
54545 " Possible C/C++ prototypes are:\n"
54546 " Xapian::DateValueRangeProcessor(Xapian::valueno,bool,int)\n"
54547 " Xapian::DateValueRangeProcessor(Xapian::valueno,bool)\n"
54548 " Xapian::DateValueRangeProcessor(Xapian::valueno)\n"
54549 " Xapian::DateValueRangeProcessor(Xapian::valueno,std::string const &,bool,bool,int)\n"
54550 " Xapian::DateValueRangeProcessor(Xapian::valueno,std::string const &,bool,bool)\n"
54551 " Xapian::DateValueRangeProcessor(Xapian::valueno,std::string const &,bool)\n"
54552 " Xapian::DateValueRangeProcessor(Xapian::valueno,std::string const &)\n");
54555 static __attribute__ ((__unused__)) PyObject *_wrap_delete_DateValueRangeProcessor(PyObject *, PyObject *args) {
54556 PyObject *resultobj = 0;
54557 Xapian::DateValueRangeProcessor *arg1 = (Xapian::DateValueRangeProcessor *) 0 ;
54560 PyObject *swig_obj[1] ;
54561 if (!args) goto fail;
54562 swig_obj[0] = args;
54563 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[12], 0x1 | 0, 0);
54564 if (!(res1 >= 0)) {
54565 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_DateValueRangeProcessor" "', argument " "1"" of type '" "Xapian::DateValueRangeProcessor *""'"); goto fail; } while(0);
54567 arg1 = reinterpret_cast< Xapian::DateValueRangeProcessor * >(argp1);
54569 SWIG_Python_Thread_Allow _swig_thread_allow;
54574 _swig_thread_allow.end();
54575 Xapian::SetPythonException();
54579 _swig_thread_allow.end();
54581 resultobj = SWIG_Py_Void();
54586 static __attribute__ ((__unused__)) PyObject *DateValueRangeProcessor_swigregister(PyObject *, PyObject *args) {
54588 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
54589 SWIG_TypeNewClientData(swig_types[12], SwigPyClientData_New(obj));
54590 return SWIG_Py_Void();
54592 static __attribute__ ((__unused__)) PyObject *DateValueRangeProcessor_swiginit(PyObject *, PyObject *args) {
54593 return SWIG_Python_InitShadowInstance(args);
54595 static __attribute__ ((__unused__)) PyObject *_wrap_new_NumberValueRangeProcessor__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
54596 PyObject *resultobj = 0;
54597 Xapian::valueno arg1 ;
54598 unsigned int val1 ;
54600 Xapian::NumberValueRangeProcessor *result = 0 ;
54601 if ((nobjs < 1) || (nobjs > 1)) goto fail;
54602 ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
54603 if (!(ecode1 >= 0)) {
54604 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_NumberValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'"); goto fail; } while(0);
54606 arg1 = static_cast< Xapian::valueno >(val1);
54608 SWIG_Python_Thread_Allow _swig_thread_allow;
54611 result = (Xapian::NumberValueRangeProcessor *)new Xapian::NumberValueRangeProcessor(arg1);
54613 _swig_thread_allow.end();
54614 Xapian::SetPythonException();
54618 _swig_thread_allow.end();
54620 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[36], ((0x1 << 1) | 0x1) | 0);
54625 static __attribute__ ((__unused__)) PyObject *_wrap_new_NumberValueRangeProcessor__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
54626 PyObject *resultobj = 0;
54627 Xapian::valueno arg1 ;
54628 std::string *arg2 = 0 ;
54630 unsigned int val1 ;
54635 Xapian::NumberValueRangeProcessor *result = 0 ;
54636 if ((nobjs < 3) || (nobjs > 3)) goto fail;
54637 ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
54638 if (!(ecode1 >= 0)) {
54639 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_NumberValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'"); goto fail; } while(0);
54641 arg1 = static_cast< Xapian::valueno >(val1);
54643 std::string *ptr = (std::string *)0;
54644 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
54645 if (!(res2 >= 0)) {
54646 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_NumberValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
54649 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_NumberValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
54653 ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
54654 if (!(ecode3 >= 0)) {
54655 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "new_NumberValueRangeProcessor" "', argument " "3"" of type '" "bool""'"); goto fail; } while(0);
54657 arg3 = static_cast< bool >(val3);
54659 SWIG_Python_Thread_Allow _swig_thread_allow;
54662 result = (Xapian::NumberValueRangeProcessor *)new Xapian::NumberValueRangeProcessor(arg1,(std::string const &)*arg2,arg3);
54664 _swig_thread_allow.end();
54665 Xapian::SetPythonException();
54669 _swig_thread_allow.end();
54671 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[36], ((0x1 << 1) | 0x1) | 0);
54672 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
54675 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
54678 static __attribute__ ((__unused__)) PyObject *_wrap_new_NumberValueRangeProcessor__SWIG_2(PyObject *, int nobjs, PyObject **swig_obj) {
54679 PyObject *resultobj = 0;
54680 Xapian::valueno arg1 ;
54681 std::string *arg2 = 0 ;
54682 unsigned int val1 ;
54685 Xapian::NumberValueRangeProcessor *result = 0 ;
54686 if ((nobjs < 2) || (nobjs > 2)) goto fail;
54687 ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
54688 if (!(ecode1 >= 0)) {
54689 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_NumberValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'"); goto fail; } while(0);
54691 arg1 = static_cast< Xapian::valueno >(val1);
54693 std::string *ptr = (std::string *)0;
54694 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
54695 if (!(res2 >= 0)) {
54696 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "new_NumberValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
54699 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_NumberValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
54704 SWIG_Python_Thread_Allow _swig_thread_allow;
54707 result = (Xapian::NumberValueRangeProcessor *)new Xapian::NumberValueRangeProcessor(arg1,(std::string const &)*arg2);
54709 _swig_thread_allow.end();
54710 Xapian::SetPythonException();
54714 _swig_thread_allow.end();
54716 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[36], ((0x1 << 1) | 0x1) | 0);
54717 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
54720 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
54723 static __attribute__ ((__unused__)) PyObject *_wrap_new_NumberValueRangeProcessor(PyObject *self, PyObject *args) {
54726 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NumberValueRangeProcessor",0,3,argv))) goto fail;
54729 return _wrap_new_NumberValueRangeProcessor__SWIG_0(self, argc, argv);
54732 return _wrap_new_NumberValueRangeProcessor__SWIG_2(self, argc, argv);
54735 return _wrap_new_NumberValueRangeProcessor__SWIG_1(self, argc, argv);
54738 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_NumberValueRangeProcessor'.\n"
54739 " Possible C/C++ prototypes are:\n"
54740 " Xapian::NumberValueRangeProcessor(Xapian::valueno)\n"
54741 " Xapian::NumberValueRangeProcessor(Xapian::valueno,std::string const &,bool)\n"
54742 " Xapian::NumberValueRangeProcessor(Xapian::valueno,std::string const &)\n");
54745 static __attribute__ ((__unused__)) PyObject *_wrap_delete_NumberValueRangeProcessor(PyObject *, PyObject *args) {
54746 PyObject *resultobj = 0;
54747 Xapian::NumberValueRangeProcessor *arg1 = (Xapian::NumberValueRangeProcessor *) 0 ;
54750 PyObject *swig_obj[1] ;
54751 if (!args) goto fail;
54752 swig_obj[0] = args;
54753 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[36], 0x1 | 0, 0);
54754 if (!(res1 >= 0)) {
54755 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_NumberValueRangeProcessor" "', argument " "1"" of type '" "Xapian::NumberValueRangeProcessor *""'"); goto fail; } while(0);
54757 arg1 = reinterpret_cast< Xapian::NumberValueRangeProcessor * >(argp1);
54759 SWIG_Python_Thread_Allow _swig_thread_allow;
54764 _swig_thread_allow.end();
54765 Xapian::SetPythonException();
54769 _swig_thread_allow.end();
54771 resultobj = SWIG_Py_Void();
54776 static __attribute__ ((__unused__)) PyObject *NumberValueRangeProcessor_swigregister(PyObject *, PyObject *args) {
54778 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
54779 SWIG_TypeNewClientData(swig_types[36], SwigPyClientData_New(obj));
54780 return SWIG_Py_Void();
54782 static __attribute__ ((__unused__)) PyObject *NumberValueRangeProcessor_swiginit(PyObject *, PyObject *args) {
54783 return SWIG_Python_InitShadowInstance(args);
54785 static __attribute__ ((__unused__)) PyObject *_wrap_new_QueryParser(PyObject *, PyObject *args) {
54786 PyObject *resultobj = 0;
54787 Xapian::QueryParser *result = 0 ;
54788 if (!SWIG_Python_UnpackTuple(args,"new_QueryParser",0,0,0)) goto fail;
54790 SWIG_Python_Thread_Allow _swig_thread_allow;
54793 result = (Xapian::QueryParser *)new Xapian::QueryParser();
54795 _swig_thread_allow.end();
54796 Xapian::SetPythonException();
54800 _swig_thread_allow.end();
54802 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[41], ((0x1 << 1) | 0x1) | 0);
54807 static __attribute__ ((__unused__)) PyObject *_wrap_delete_QueryParser(PyObject *, PyObject *args) {
54808 PyObject *resultobj = 0;
54809 Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
54812 PyObject *swig_obj[1] ;
54813 if (!args) goto fail;
54814 swig_obj[0] = args;
54815 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[41], 0x1 | 0, 0);
54816 if (!(res1 >= 0)) {
54817 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_QueryParser" "', argument " "1"" of type '" "Xapian::QueryParser *""'"); goto fail; } while(0);
54819 arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
54821 SWIG_Python_Thread_Allow _swig_thread_allow;
54826 _swig_thread_allow.end();
54827 Xapian::SetPythonException();
54831 _swig_thread_allow.end();
54833 resultobj = SWIG_Py_Void();
54838 static __attribute__ ((__unused__)) PyObject *_wrap_QueryParser_set_stemmer(PyObject *, PyObject *args) {
54839 PyObject *resultobj = 0;
54840 Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
54841 Xapian::Stem *arg2 = 0 ;
54846 PyObject *swig_obj[2] ;
54847 if (!SWIG_Python_UnpackTuple(args,"QueryParser_set_stemmer",2,2,swig_obj)) goto fail;
54848 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[41], 0 | 0, 0);
54849 if (!(res1 >= 0)) {
54850 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "QueryParser_set_stemmer" "', argument " "1"" of type '" "Xapian::QueryParser *""'"); goto fail; } while(0);
54852 arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
54853 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[50], 0 | 0, 0);
54854 if (!(res2 >= 0)) {
54855 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "QueryParser_set_stemmer" "', argument " "2"" of type '" "Xapian::Stem const &""'"); goto fail; } while(0);
54858 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "QueryParser_set_stemmer" "', argument " "2"" of type '" "Xapian::Stem const &""'"); goto fail; } while(0);
54860 arg2 = reinterpret_cast< Xapian::Stem * >(argp2);
54862 SWIG_Python_Thread_Allow _swig_thread_allow;
54865 (arg1)->set_stemmer((Xapian::Stem const &)*arg2);
54867 _swig_thread_allow.end();
54868 Xapian::SetPythonException();
54872 _swig_thread_allow.end();
54874 resultobj = SWIG_Py_Void();
54879 static __attribute__ ((__unused__)) PyObject *_wrap_QueryParser_set_stemming_strategy(PyObject *, PyObject *args) {
54880 PyObject *resultobj = 0;
54881 Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
54882 Xapian::QueryParser::stem_strategy arg2 ;
54887 PyObject *swig_obj[2] ;
54888 if (!SWIG_Python_UnpackTuple(args,"QueryParser_set_stemming_strategy",2,2,swig_obj)) goto fail;
54889 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[41], 0 | 0, 0);
54890 if (!(res1 >= 0)) {
54891 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "QueryParser_set_stemming_strategy" "', argument " "1"" of type '" "Xapian::QueryParser *""'"); goto fail; } while(0);
54893 arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
54894 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
54895 if (!(ecode2 >= 0)) {
54896 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "QueryParser_set_stemming_strategy" "', argument " "2"" of type '" "Xapian::QueryParser::stem_strategy""'"); goto fail; } while(0);
54898 arg2 = static_cast< Xapian::QueryParser::stem_strategy >(val2);
54900 SWIG_Python_Thread_Allow _swig_thread_allow;
54903 (arg1)->set_stemming_strategy(arg2);
54905 _swig_thread_allow.end();
54906 Xapian::SetPythonException();
54910 _swig_thread_allow.end();
54912 resultobj = SWIG_Py_Void();
54917 static __attribute__ ((__unused__)) PyObject *_wrap_QueryParser_set_stopper__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
54918 PyObject *resultobj = 0;
54919 Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
54920 Xapian::Stopper *arg2 = (Xapian::Stopper *) 0 ;
54925 if ((nobjs < 2) || (nobjs > 2)) goto fail;
54926 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[41], 0 | 0, 0);
54927 if (!(res1 >= 0)) {
54928 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "QueryParser_set_stopper" "', argument " "1"" of type '" "Xapian::QueryParser *""'"); goto fail; } while(0);
54930 arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
54931 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[52], 0 | 0, 0);
54932 if (!(res2 >= 0)) {
54933 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "QueryParser_set_stopper" "', argument " "2"" of type '" "Xapian::Stopper const *""'"); goto fail; } while(0);
54935 arg2 = reinterpret_cast< Xapian::Stopper * >(argp2);
54937 SWIG_Python_Thread_Allow _swig_thread_allow;
54940 (arg1)->set_stopper((Xapian::Stopper const *)arg2);
54942 _swig_thread_allow.end();
54943 Xapian::SetPythonException();
54947 _swig_thread_allow.end();
54949 resultobj = SWIG_Py_Void();
54954 static __attribute__ ((__unused__)) PyObject *_wrap_QueryParser_set_stopper__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
54955 PyObject *resultobj = 0;
54956 Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
54959 if ((nobjs < 1) || (nobjs > 1)) goto fail;
54960 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[41], 0 | 0, 0);
54961 if (!(res1 >= 0)) {
54962 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "QueryParser_set_stopper" "', argument " "1"" of type '" "Xapian::QueryParser *""'"); goto fail; } while(0);
54964 arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
54966 SWIG_Python_Thread_Allow _swig_thread_allow;
54969 (arg1)->set_stopper();
54971 _swig_thread_allow.end();
54972 Xapian::SetPythonException();
54976 _swig_thread_allow.end();
54978 resultobj = SWIG_Py_Void();
54983 static __attribute__ ((__unused__)) PyObject *_wrap_QueryParser_set_stopper(PyObject *self, PyObject *args) {
54986 if (!(argc = SWIG_Python_UnpackTuple(args,"QueryParser_set_stopper",0,2,argv))) goto fail;
54989 return _wrap_QueryParser_set_stopper__SWIG_1(self, argc, argv);
54992 return _wrap_QueryParser_set_stopper__SWIG_0(self, argc, argv);
54995 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'QueryParser_set_stopper'.\n"
54996 " Possible C/C++ prototypes are:\n"
54997 " set_stopper(Xapian::QueryParser *,Xapian::Stopper const *)\n"
54998 " set_stopper(Xapian::QueryParser *)\n");
55001 static __attribute__ ((__unused__)) PyObject *_wrap_QueryParser_set_default_op(PyObject *, PyObject *args) {
55002 PyObject *resultobj = 0;
55003 Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
55004 Xapian::Query::op arg2 ;
55009 PyObject *swig_obj[2] ;
55010 if (!SWIG_Python_UnpackTuple(args,"QueryParser_set_default_op",2,2,swig_obj)) goto fail;
55011 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[41], 0 | 0, 0);
55012 if (!(res1 >= 0)) {
55013 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "QueryParser_set_default_op" "', argument " "1"" of type '" "Xapian::QueryParser *""'"); goto fail; } while(0);
55015 arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
55016 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
55017 if (!(ecode2 >= 0)) {
55018 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "QueryParser_set_default_op" "', argument " "2"" of type '" "Xapian::Query::op""'"); goto fail; } while(0);
55020 arg2 = static_cast< Xapian::Query::op >(val2);
55022 SWIG_Python_Thread_Allow _swig_thread_allow;
55025 (arg1)->set_default_op(arg2);
55027 _swig_thread_allow.end();
55028 Xapian::SetPythonException();
55032 _swig_thread_allow.end();
55034 resultobj = SWIG_Py_Void();
55039 static __attribute__ ((__unused__)) PyObject *_wrap_QueryParser_get_default_op(PyObject *, PyObject *args) {
55040 PyObject *resultobj = 0;
55041 Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
55044 PyObject *swig_obj[1] ;
55045 Xapian::Query::op result;
55046 if (!args) goto fail;
55047 swig_obj[0] = args;
55048 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[41], 0 | 0, 0);
55049 if (!(res1 >= 0)) {
55050 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "QueryParser_get_default_op" "', argument " "1"" of type '" "Xapian::QueryParser const *""'"); goto fail; } while(0);
55052 arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
55054 SWIG_Python_Thread_Allow _swig_thread_allow;
55057 result = (Xapian::Query::op)((Xapian::QueryParser const *)arg1)->get_default_op();
55059 _swig_thread_allow.end();
55060 Xapian::SetPythonException();
55064 _swig_thread_allow.end();
55066 resultobj = SWIG_From_int(static_cast< int >(result));
55071 static __attribute__ ((__unused__)) PyObject *_wrap_QueryParser_set_database(PyObject *, PyObject *args) {
55072 PyObject *resultobj = 0;
55073 Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
55074 Xapian::Database *arg2 = 0 ;
55079 PyObject *swig_obj[2] ;
55080 if (!SWIG_Python_UnpackTuple(args,"QueryParser_set_database",2,2,swig_obj)) goto fail;
55081 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[41], 0 | 0, 0);
55082 if (!(res1 >= 0)) {
55083 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "QueryParser_set_database" "', argument " "1"" of type '" "Xapian::QueryParser *""'"); goto fail; } while(0);
55085 arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
55086 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[4], 0 | 0, 0);
55087 if (!(res2 >= 0)) {
55088 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "QueryParser_set_database" "', argument " "2"" of type '" "Xapian::Database const &""'"); goto fail; } while(0);
55091 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "QueryParser_set_database" "', argument " "2"" of type '" "Xapian::Database const &""'"); goto fail; } while(0);
55093 arg2 = reinterpret_cast< Xapian::Database * >(argp2);
55095 SWIG_Python_Thread_Allow _swig_thread_allow;
55098 (arg1)->set_database((Xapian::Database const &)*arg2);
55100 _swig_thread_allow.end();
55101 Xapian::SetPythonException();
55105 _swig_thread_allow.end();
55107 resultobj = SWIG_Py_Void();
55112 static __attribute__ ((__unused__)) PyObject *_wrap_QueryParser_parse_query__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
55113 PyObject *resultobj = 0;
55114 Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
55115 std::string *arg2 = 0 ;
55116 unsigned int arg3 ;
55117 std::string *arg4 = 0 ;
55121 unsigned int val3 ;
55124 Xapian::Query result;
55125 if ((nobjs < 4) || (nobjs > 4)) goto fail;
55126 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[41], 0 | 0, 0);
55127 if (!(res1 >= 0)) {
55128 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "QueryParser_parse_query" "', argument " "1"" of type '" "Xapian::QueryParser *""'"); goto fail; } while(0);
55130 arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
55132 std::string *ptr = (std::string *)0;
55133 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
55134 if (!(res2 >= 0)) {
55135 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "QueryParser_parse_query" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
55138 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "QueryParser_parse_query" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
55142 ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
55143 if (!(ecode3 >= 0)) {
55144 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "QueryParser_parse_query" "', argument " "3"" of type '" "unsigned int""'"); goto fail; } while(0);
55146 arg3 = static_cast< unsigned int >(val3);
55148 std::string *ptr = (std::string *)0;
55149 res4 = SWIG_anystring_as_ptr(&(swig_obj[3]), &ptr);
55150 if (!(res4 >= 0)) {
55151 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (-1)) ? res4 : -5)), "in method '" "QueryParser_parse_query" "', argument " "4"" of type '" "std::string const &""'"); goto fail; } while(0);
55154 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "QueryParser_parse_query" "', argument " "4"" of type '" "std::string const &""'"); goto fail; } while(0);
55159 SWIG_Python_Thread_Allow _swig_thread_allow;
55162 result = (arg1)->parse_query((std::string const &)*arg2,arg3,(std::string const &)*arg4);
55164 _swig_thread_allow.end();
55165 Xapian::SetPythonException();
55169 _swig_thread_allow.end();
55171 resultobj = SWIG_Python_NewPointerObj((new Xapian::Query(static_cast< const Xapian::Query& >(result))), swig_types[40], 0x1 | 0);
55172 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
55173 if (((res4 >= 0) && (res4 & ((1 << 8) << 1)))) delete arg4;
55176 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
55177 if (((res4 >= 0) && (res4 & ((1 << 8) << 1)))) delete arg4;
55180 static __attribute__ ((__unused__)) PyObject *_wrap_QueryParser_parse_query__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
55181 PyObject *resultobj = 0;
55182 Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
55183 std::string *arg2 = 0 ;
55184 unsigned int arg3 ;
55188 unsigned int val3 ;
55190 Xapian::Query result;
55191 if ((nobjs < 3) || (nobjs > 3)) goto fail;
55192 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[41], 0 | 0, 0);
55193 if (!(res1 >= 0)) {
55194 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "QueryParser_parse_query" "', argument " "1"" of type '" "Xapian::QueryParser *""'"); goto fail; } while(0);
55196 arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
55198 std::string *ptr = (std::string *)0;
55199 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
55200 if (!(res2 >= 0)) {
55201 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "QueryParser_parse_query" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
55204 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "QueryParser_parse_query" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
55208 ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
55209 if (!(ecode3 >= 0)) {
55210 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "QueryParser_parse_query" "', argument " "3"" of type '" "unsigned int""'"); goto fail; } while(0);
55212 arg3 = static_cast< unsigned int >(val3);
55214 SWIG_Python_Thread_Allow _swig_thread_allow;
55217 result = (arg1)->parse_query((std::string const &)*arg2,arg3);
55219 _swig_thread_allow.end();
55220 Xapian::SetPythonException();
55224 _swig_thread_allow.end();
55226 resultobj = SWIG_Python_NewPointerObj((new Xapian::Query(static_cast< const Xapian::Query& >(result))), swig_types[40], 0x1 | 0);
55227 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
55230 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
55233 static __attribute__ ((__unused__)) PyObject *_wrap_QueryParser_parse_query__SWIG_2(PyObject *, int nobjs, PyObject **swig_obj) {
55234 PyObject *resultobj = 0;
55235 Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
55236 std::string *arg2 = 0 ;
55240 Xapian::Query result;
55241 if ((nobjs < 2) || (nobjs > 2)) goto fail;
55242 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[41], 0 | 0, 0);
55243 if (!(res1 >= 0)) {
55244 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "QueryParser_parse_query" "', argument " "1"" of type '" "Xapian::QueryParser *""'"); goto fail; } while(0);
55246 arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
55248 std::string *ptr = (std::string *)0;
55249 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
55250 if (!(res2 >= 0)) {
55251 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "QueryParser_parse_query" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
55254 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "QueryParser_parse_query" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
55259 SWIG_Python_Thread_Allow _swig_thread_allow;
55262 result = (arg1)->parse_query((std::string const &)*arg2);
55264 _swig_thread_allow.end();
55265 Xapian::SetPythonException();
55269 _swig_thread_allow.end();
55271 resultobj = SWIG_Python_NewPointerObj((new Xapian::Query(static_cast< const Xapian::Query& >(result))), swig_types[40], 0x1 | 0);
55272 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
55275 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
55278 static __attribute__ ((__unused__)) PyObject *_wrap_QueryParser_parse_query(PyObject *self, PyObject *args) {
55281 if (!(argc = SWIG_Python_UnpackTuple(args,"QueryParser_parse_query",0,4,argv))) goto fail;
55284 return _wrap_QueryParser_parse_query__SWIG_2(self, argc, argv);
55287 return _wrap_QueryParser_parse_query__SWIG_1(self, argc, argv);
55290 return _wrap_QueryParser_parse_query__SWIG_0(self, argc, argv);
55293 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'QueryParser_parse_query'.\n"
55294 " Possible C/C++ prototypes are:\n"
55295 " parse_query(Xapian::QueryParser *,std::string const &,unsigned int,std::string const &)\n"
55296 " parse_query(Xapian::QueryParser *,std::string const &,unsigned int)\n"
55297 " parse_query(Xapian::QueryParser *,std::string const &)\n");
55300 static __attribute__ ((__unused__)) PyObject *_wrap_QueryParser_add_prefix(PyObject *, PyObject *args) {
55301 PyObject *resultobj = 0;
55302 Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
55303 std::string *arg2 = 0 ;
55304 std::string *arg3 = 0 ;
55309 PyObject *swig_obj[3] ;
55310 if (!SWIG_Python_UnpackTuple(args,"QueryParser_add_prefix",3,3,swig_obj)) goto fail;
55311 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[41], 0 | 0, 0);
55312 if (!(res1 >= 0)) {
55313 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "QueryParser_add_prefix" "', argument " "1"" of type '" "Xapian::QueryParser *""'"); goto fail; } while(0);
55315 arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
55317 std::string *ptr = (std::string *)0;
55318 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
55319 if (!(res2 >= 0)) {
55320 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "QueryParser_add_prefix" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
55323 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "QueryParser_add_prefix" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
55328 std::string *ptr = (std::string *)0;
55329 res3 = SWIG_anystring_as_ptr(&(swig_obj[2]), &ptr);
55330 if (!(res3 >= 0)) {
55331 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (-1)) ? res3 : -5)), "in method '" "QueryParser_add_prefix" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while(0);
55334 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "QueryParser_add_prefix" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while(0);
55339 SWIG_Python_Thread_Allow _swig_thread_allow;
55342 (arg1)->add_prefix((std::string const &)*arg2,(std::string const &)*arg3);
55344 _swig_thread_allow.end();
55345 Xapian::SetPythonException();
55349 _swig_thread_allow.end();
55351 resultobj = SWIG_Py_Void();
55352 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
55353 if (((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3;
55356 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
55357 if (((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3;
55360 static __attribute__ ((__unused__)) PyObject *_wrap_QueryParser_add_boolean_prefix__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
55361 PyObject *resultobj = 0;
55362 Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
55363 std::string *arg2 = 0 ;
55364 std::string *arg3 = 0 ;
55372 if ((nobjs < 4) || (nobjs > 4)) goto fail;
55373 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[41], 0 | 0, 0);
55374 if (!(res1 >= 0)) {
55375 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "QueryParser_add_boolean_prefix" "', argument " "1"" of type '" "Xapian::QueryParser *""'"); goto fail; } while(0);
55377 arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
55379 std::string *ptr = (std::string *)0;
55380 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
55381 if (!(res2 >= 0)) {
55382 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "QueryParser_add_boolean_prefix" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
55385 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "QueryParser_add_boolean_prefix" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
55390 std::string *ptr = (std::string *)0;
55391 res3 = SWIG_anystring_as_ptr(&(swig_obj[2]), &ptr);
55392 if (!(res3 >= 0)) {
55393 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (-1)) ? res3 : -5)), "in method '" "QueryParser_add_boolean_prefix" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while(0);
55396 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "QueryParser_add_boolean_prefix" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while(0);
55400 ecode4 = SWIG_AsVal_bool(swig_obj[3], &val4);
55401 if (!(ecode4 >= 0)) {
55402 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 != (-1)) ? ecode4 : -5)), "in method '" "QueryParser_add_boolean_prefix" "', argument " "4"" of type '" "bool""'"); goto fail; } while(0);
55404 arg4 = static_cast< bool >(val4);
55406 SWIG_Python_Thread_Allow _swig_thread_allow;
55409 (arg1)->add_boolean_prefix((std::string const &)*arg2,(std::string const &)*arg3,arg4);
55411 _swig_thread_allow.end();
55412 Xapian::SetPythonException();
55416 _swig_thread_allow.end();
55418 resultobj = SWIG_Py_Void();
55419 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
55420 if (((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3;
55423 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
55424 if (((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3;
55427 static __attribute__ ((__unused__)) PyObject *_wrap_QueryParser_add_boolean_prefix__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
55428 PyObject *resultobj = 0;
55429 Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
55430 std::string *arg2 = 0 ;
55431 std::string *arg3 = 0 ;
55436 if ((nobjs < 3) || (nobjs > 3)) goto fail;
55437 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[41], 0 | 0, 0);
55438 if (!(res1 >= 0)) {
55439 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "QueryParser_add_boolean_prefix" "', argument " "1"" of type '" "Xapian::QueryParser *""'"); goto fail; } while(0);
55441 arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
55443 std::string *ptr = (std::string *)0;
55444 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
55445 if (!(res2 >= 0)) {
55446 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "QueryParser_add_boolean_prefix" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
55449 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "QueryParser_add_boolean_prefix" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
55454 std::string *ptr = (std::string *)0;
55455 res3 = SWIG_anystring_as_ptr(&(swig_obj[2]), &ptr);
55456 if (!(res3 >= 0)) {
55457 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (-1)) ? res3 : -5)), "in method '" "QueryParser_add_boolean_prefix" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while(0);
55460 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "QueryParser_add_boolean_prefix" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while(0);
55465 SWIG_Python_Thread_Allow _swig_thread_allow;
55468 (arg1)->add_boolean_prefix((std::string const &)*arg2,(std::string const &)*arg3);
55470 _swig_thread_allow.end();
55471 Xapian::SetPythonException();
55475 _swig_thread_allow.end();
55477 resultobj = SWIG_Py_Void();
55478 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
55479 if (((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3;
55482 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
55483 if (((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3;
55486 static __attribute__ ((__unused__)) PyObject *_wrap_QueryParser_add_boolean_prefix(PyObject *self, PyObject *args) {
55489 if (!(argc = SWIG_Python_UnpackTuple(args,"QueryParser_add_boolean_prefix",0,4,argv))) goto fail;
55492 return _wrap_QueryParser_add_boolean_prefix__SWIG_1(self, argc, argv);
55495 return _wrap_QueryParser_add_boolean_prefix__SWIG_0(self, argc, argv);
55498 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'QueryParser_add_boolean_prefix'.\n"
55499 " Possible C/C++ prototypes are:\n"
55500 " add_boolean_prefix(Xapian::QueryParser *,std::string const &,std::string const &,bool)\n"
55501 " add_boolean_prefix(Xapian::QueryParser *,std::string const &,std::string const &)\n");
55504 static __attribute__ ((__unused__)) PyObject *_wrap_QueryParser_stoplist_begin(PyObject *, PyObject *args) {
55505 PyObject *resultobj = 0;
55506 Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
55509 PyObject *swig_obj[1] ;
55510 Xapian::TermIterator result;
55511 if (!args) goto fail;
55512 swig_obj[0] = args;
55513 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[41], 0 | 0, 0);
55514 if (!(res1 >= 0)) {
55515 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "QueryParser_stoplist_begin" "', argument " "1"" of type '" "Xapian::QueryParser const *""'"); goto fail; } while(0);
55517 arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
55519 SWIG_Python_Thread_Allow _swig_thread_allow;
55522 result = ((Xapian::QueryParser const *)arg1)->stoplist_begin();
55524 _swig_thread_allow.end();
55525 Xapian::SetPythonException();
55529 _swig_thread_allow.end();
55531 resultobj = SWIG_Python_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), swig_types[55], 0x1 | 0);
55536 static __attribute__ ((__unused__)) PyObject *_wrap_QueryParser_stoplist_end(PyObject *, PyObject *args) {
55537 PyObject *resultobj = 0;
55538 Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
55541 PyObject *swig_obj[1] ;
55542 Xapian::TermIterator result;
55543 if (!args) goto fail;
55544 swig_obj[0] = args;
55545 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[41], 0 | 0, 0);
55546 if (!(res1 >= 0)) {
55547 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "QueryParser_stoplist_end" "', argument " "1"" of type '" "Xapian::QueryParser const *""'"); goto fail; } while(0);
55549 arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
55551 SWIG_Python_Thread_Allow _swig_thread_allow;
55554 result = ((Xapian::QueryParser const *)arg1)->stoplist_end();
55556 _swig_thread_allow.end();
55557 Xapian::SetPythonException();
55561 _swig_thread_allow.end();
55563 resultobj = SWIG_Python_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), swig_types[55], 0x1 | 0);
55568 static __attribute__ ((__unused__)) PyObject *_wrap_QueryParser_unstem_begin(PyObject *, PyObject *args) {
55569 PyObject *resultobj = 0;
55570 Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
55571 std::string *arg2 = 0 ;
55575 PyObject *swig_obj[2] ;
55576 Xapian::TermIterator result;
55577 if (!SWIG_Python_UnpackTuple(args,"QueryParser_unstem_begin",2,2,swig_obj)) goto fail;
55578 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[41], 0 | 0, 0);
55579 if (!(res1 >= 0)) {
55580 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "QueryParser_unstem_begin" "', argument " "1"" of type '" "Xapian::QueryParser const *""'"); goto fail; } while(0);
55582 arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
55584 std::string *ptr = (std::string *)0;
55585 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
55586 if (!(res2 >= 0)) {
55587 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "QueryParser_unstem_begin" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
55590 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "QueryParser_unstem_begin" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
55595 SWIG_Python_Thread_Allow _swig_thread_allow;
55598 result = ((Xapian::QueryParser const *)arg1)->unstem_begin((std::string const &)*arg2);
55600 _swig_thread_allow.end();
55601 Xapian::SetPythonException();
55605 _swig_thread_allow.end();
55607 resultobj = SWIG_Python_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), swig_types[55], 0x1 | 0);
55608 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
55611 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
55614 static __attribute__ ((__unused__)) PyObject *_wrap_QueryParser_unstem_end(PyObject *, PyObject *args) {
55615 PyObject *resultobj = 0;
55616 Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
55617 std::string *arg2 = 0 ;
55621 PyObject *swig_obj[2] ;
55622 Xapian::TermIterator result;
55623 if (!SWIG_Python_UnpackTuple(args,"QueryParser_unstem_end",2,2,swig_obj)) goto fail;
55624 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[41], 0 | 0, 0);
55625 if (!(res1 >= 0)) {
55626 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "QueryParser_unstem_end" "', argument " "1"" of type '" "Xapian::QueryParser const *""'"); goto fail; } while(0);
55628 arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
55630 std::string *ptr = (std::string *)0;
55631 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
55632 if (!(res2 >= 0)) {
55633 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "QueryParser_unstem_end" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
55636 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "QueryParser_unstem_end" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
55641 SWIG_Python_Thread_Allow _swig_thread_allow;
55644 result = ((Xapian::QueryParser const *)arg1)->unstem_end((std::string const &)*arg2);
55646 _swig_thread_allow.end();
55647 Xapian::SetPythonException();
55651 _swig_thread_allow.end();
55653 resultobj = SWIG_Python_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), swig_types[55], 0x1 | 0);
55654 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
55657 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
55660 static __attribute__ ((__unused__)) PyObject *_wrap_QueryParser_add_valuerangeprocessor(PyObject *, PyObject *args) {
55661 PyObject *resultobj = 0;
55662 Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
55663 Xapian::ValueRangeProcessor *arg2 = (Xapian::ValueRangeProcessor *) 0 ;
55668 PyObject *swig_obj[2] ;
55669 if (!SWIG_Python_UnpackTuple(args,"QueryParser_add_valuerangeprocessor",2,2,swig_obj)) goto fail;
55670 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[41], 0 | 0, 0);
55671 if (!(res1 >= 0)) {
55672 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "QueryParser_add_valuerangeprocessor" "', argument " "1"" of type '" "Xapian::QueryParser *""'"); goto fail; } while(0);
55674 arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
55675 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[62], 0 | 0, 0);
55676 if (!(res2 >= 0)) {
55677 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "QueryParser_add_valuerangeprocessor" "', argument " "2"" of type '" "Xapian::ValueRangeProcessor *""'"); goto fail; } while(0);
55679 arg2 = reinterpret_cast< Xapian::ValueRangeProcessor * >(argp2);
55681 SWIG_Python_Thread_Allow _swig_thread_allow;
55684 (arg1)->add_valuerangeprocessor(arg2);
55686 _swig_thread_allow.end();
55687 Xapian::SetPythonException();
55691 _swig_thread_allow.end();
55693 resultobj = SWIG_Py_Void();
55698 static __attribute__ ((__unused__)) PyObject *_wrap_QueryParser_get_corrected_query_string(PyObject *, PyObject *args) {
55699 PyObject *resultobj = 0;
55700 Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
55703 PyObject *swig_obj[1] ;
55704 std::string result;
55705 if (!args) goto fail;
55706 swig_obj[0] = args;
55707 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[41], 0 | 0, 0);
55708 if (!(res1 >= 0)) {
55709 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "QueryParser_get_corrected_query_string" "', argument " "1"" of type '" "Xapian::QueryParser const *""'"); goto fail; } while(0);
55711 arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
55713 SWIG_Python_Thread_Allow _swig_thread_allow;
55716 result = ((Xapian::QueryParser const *)arg1)->get_corrected_query_string();
55718 _swig_thread_allow.end();
55719 Xapian::SetPythonException();
55723 _swig_thread_allow.end();
55725 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
55730 static __attribute__ ((__unused__)) PyObject *_wrap_QueryParser___str__(PyObject *, PyObject *args) {
55731 PyObject *resultobj = 0;
55732 Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
55735 PyObject *swig_obj[1] ;
55736 std::string result;
55737 if (!args) goto fail;
55738 swig_obj[0] = args;
55739 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[41], 0 | 0, 0);
55740 if (!(res1 >= 0)) {
55741 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "QueryParser___str__" "', argument " "1"" of type '" "Xapian::QueryParser const *""'"); goto fail; } while(0);
55743 arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
55745 SWIG_Python_Thread_Allow _swig_thread_allow;
55748 result = ((Xapian::QueryParser const *)arg1)->get_description();
55750 _swig_thread_allow.end();
55751 Xapian::SetPythonException();
55755 _swig_thread_allow.end();
55757 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
55762 static __attribute__ ((__unused__)) PyObject *QueryParser_swigregister(PyObject *, PyObject *args) {
55764 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
55765 SWIG_TypeNewClientData(swig_types[41], SwigPyClientData_New(obj));
55766 return SWIG_Py_Void();
55768 static __attribute__ ((__unused__)) PyObject *QueryParser_swiginit(PyObject *, PyObject *args) {
55769 return SWIG_Python_InitShadowInstance(args);
55771 static __attribute__ ((__unused__)) PyObject *_wrap_sortable_serialise(PyObject *, PyObject *args) {
55772 PyObject *resultobj = 0;
55776 PyObject *swig_obj[1] ;
55777 std::string result;
55778 if (!args) goto fail;
55779 swig_obj[0] = args;
55780 ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
55781 if (!(ecode1 >= 0)) {
55782 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "sortable_serialise" "', argument " "1"" of type '" "double""'"); goto fail; } while(0);
55784 arg1 = static_cast< double >(val1);
55786 SWIG_Python_Thread_Allow _swig_thread_allow;
55789 result = Xapian::sortable_serialise(arg1);
55791 _swig_thread_allow.end();
55792 Xapian::SetPythonException();
55796 _swig_thread_allow.end();
55798 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
55803 static __attribute__ ((__unused__)) PyObject *_wrap_sortable_unserialise(PyObject *, PyObject *args) {
55804 PyObject *resultobj = 0;
55805 std::string *arg1 = 0 ;
55807 PyObject *swig_obj[1] ;
55809 if (!args) goto fail;
55810 swig_obj[0] = args;
55812 std::string *ptr = (std::string *)0;
55813 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
55814 if (!(res1 >= 0)) {
55815 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "sortable_unserialise" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
55818 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "sortable_unserialise" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
55823 SWIG_Python_Thread_Allow _swig_thread_allow;
55826 result = (double)Xapian::sortable_unserialise((std::string const &)*arg1);
55828 _swig_thread_allow.end();
55829 Xapian::SetPythonException();
55833 _swig_thread_allow.end();
55835 resultobj = PyFloat_FromDouble(static_cast< double >(result));
55836 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
55839 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
55842 static __attribute__ ((__unused__)) PyObject *_wrap_delete_StemImplementation(PyObject *, PyObject *args) {
55843 PyObject *resultobj = 0;
55844 Xapian::StemImplementation *arg1 = (Xapian::StemImplementation *) 0 ;
55847 PyObject *swig_obj[1] ;
55848 if (!args) goto fail;
55849 swig_obj[0] = args;
55850 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[51], 0x1 | 0, 0);
55851 if (!(res1 >= 0)) {
55852 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_StemImplementation" "', argument " "1"" of type '" "Xapian::StemImplementation *""'"); goto fail; } while(0);
55854 arg1 = reinterpret_cast< Xapian::StemImplementation * >(argp1);
55856 SWIG_Python_Thread_Allow _swig_thread_allow;
55861 _swig_thread_allow.end();
55862 Xapian::SetPythonException();
55866 _swig_thread_allow.end();
55868 resultobj = SWIG_Py_Void();
55873 static __attribute__ ((__unused__)) PyObject *_wrap_StemImplementation___call__(PyObject *, PyObject *args) {
55874 PyObject *resultobj = 0;
55875 Xapian::StemImplementation *arg1 = (Xapian::StemImplementation *) 0 ;
55876 std::string *arg2 = 0 ;
55880 PyObject *swig_obj[2] ;
55881 Swig::Director *director = 0;
55882 bool upcall = false;
55883 std::string result;
55884 if (!SWIG_Python_UnpackTuple(args,"StemImplementation___call__",2,2,swig_obj)) goto fail;
55885 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[51], 0 | 0, 0);
55886 if (!(res1 >= 0)) {
55887 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "StemImplementation___call__" "', argument " "1"" of type '" "Xapian::StemImplementation *""'"); goto fail; } while(0);
55889 arg1 = reinterpret_cast< Xapian::StemImplementation * >(argp1);
55891 std::string *ptr = (std::string *)0;
55892 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
55893 if (!(res2 >= 0)) {
55894 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "StemImplementation___call__" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
55897 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "StemImplementation___call__" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
55901 director = dynamic_cast<Swig::Director*>(arg1);
55902 upcall = (director && (director->swig_get_self()==swig_obj[0]));
55907 Swig::DirectorPureVirtualException::raise("Xapian::StemImplementation::operator ()");
55909 result = (arg1)->operator ()((std::string const &)*arg2);
55912 Xapian::SetPythonException();
55916 } catch (Swig::DirectorException&) {
55919 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
55920 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
55923 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
55926 static __attribute__ ((__unused__)) PyObject *_wrap_StemImplementation___str__(PyObject *, PyObject *args) {
55927 PyObject *resultobj = 0;
55928 Xapian::StemImplementation *arg1 = (Xapian::StemImplementation *) 0 ;
55931 PyObject *swig_obj[1] ;
55932 Swig::Director *director = 0;
55933 bool upcall = false;
55934 std::string result;
55935 if (!args) goto fail;
55936 swig_obj[0] = args;
55937 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[51], 0 | 0, 0);
55938 if (!(res1 >= 0)) {
55939 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "StemImplementation___str__" "', argument " "1"" of type '" "Xapian::StemImplementation const *""'"); goto fail; } while(0);
55941 arg1 = reinterpret_cast< Xapian::StemImplementation * >(argp1);
55942 director = dynamic_cast<Swig::Director*>(arg1);
55943 upcall = (director && (director->swig_get_self()==swig_obj[0]));
55948 Swig::DirectorPureVirtualException::raise("Xapian::StemImplementation::get_description");
55950 result = ((Xapian::StemImplementation const *)arg1)->get_description();
55953 Xapian::SetPythonException();
55957 } catch (Swig::DirectorException&) {
55960 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
55965 static __attribute__ ((__unused__)) PyObject *_wrap_new_StemImplementation(PyObject *, PyObject *args) {
55966 PyObject *resultobj = 0;
55967 PyObject *arg1 = (PyObject *) 0 ;
55968 PyObject *swig_obj[1] ;
55969 Xapian::StemImplementation *result = 0 ;
55970 if (!args) goto fail;
55971 swig_obj[0] = args;
55972 arg1 = swig_obj[0];
55974 SWIG_Python_Thread_Allow _swig_thread_allow;
55977 if ( arg1 != (&_Py_NoneStruct) ) {
55978 result = (Xapian::StemImplementation *)new SwigDirector_StemImplementation(arg1);
55980 SWIG_Python_SetErrorMsg(PyExc_RuntimeError,"accessing abstract class or protected constructor");
55984 _swig_thread_allow.end();
55985 Xapian::SetPythonException();
55989 _swig_thread_allow.end();
55991 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[51], ((0x1 << 1) | 0x1) | 0);
55996 static __attribute__ ((__unused__)) PyObject *_wrap_disown_StemImplementation(PyObject *, PyObject *args) {
55997 PyObject *resultobj = 0;
55998 Xapian::StemImplementation *arg1 = (Xapian::StemImplementation *) 0 ;
56001 PyObject *swig_obj[1] ;
56002 if (!args) goto fail;
56003 swig_obj[0] = args;
56004 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[51], 0 | 0, 0);
56005 if (!(res1 >= 0)) {
56006 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "disown_StemImplementation" "', argument " "1"" of type '" "Xapian::StemImplementation *""'"); goto fail; } while(0);
56008 arg1 = reinterpret_cast< Xapian::StemImplementation * >(argp1);
56010 SWIG_Python_Thread_Allow _swig_thread_allow;
56012 Swig::Director *director = dynamic_cast<Swig::Director *>(arg1);
56013 if (director) director->swig_disown();
56015 _swig_thread_allow.end();
56017 resultobj = SWIG_Py_Void();
56022 static __attribute__ ((__unused__)) PyObject *StemImplementation_swigregister(PyObject *, PyObject *args) {
56024 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
56025 SWIG_TypeNewClientData(swig_types[51], SwigPyClientData_New(obj));
56026 return SWIG_Py_Void();
56028 static __attribute__ ((__unused__)) PyObject *StemImplementation_swiginit(PyObject *, PyObject *args) {
56029 return SWIG_Python_InitShadowInstance(args);
56031 static __attribute__ ((__unused__)) PyObject *_wrap_new_Stem__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
56032 PyObject *resultobj = 0;
56033 std::string *arg1 = 0 ;
56035 Xapian::Stem *result = 0 ;
56036 if ((nobjs < 1) || (nobjs > 1)) goto fail;
56038 std::string *ptr = (std::string *)0;
56039 res1 = SWIG_anystring_as_ptr(&(swig_obj[0]), &ptr);
56040 if (!(res1 >= 0)) {
56041 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_Stem" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
56044 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_Stem" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0);
56049 SWIG_Python_Thread_Allow _swig_thread_allow;
56052 result = (Xapian::Stem *)new Xapian::Stem((std::string const &)*arg1);
56054 _swig_thread_allow.end();
56055 Xapian::SetPythonException();
56059 _swig_thread_allow.end();
56061 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[50], ((0x1 << 1) | 0x1) | 0);
56062 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
56065 if (((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1;
56068 static __attribute__ ((__unused__)) PyObject *_wrap_new_Stem__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
56069 PyObject *resultobj = 0;
56070 Xapian::StemImplementation *arg1 = (Xapian::StemImplementation *) 0 ;
56073 Xapian::Stem *result = 0 ;
56074 if ((nobjs < 1) || (nobjs > 1)) goto fail;
56075 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[51], 0 | 0, 0);
56076 if (!(res1 >= 0)) {
56077 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "new_Stem" "', argument " "1"" of type '" "Xapian::StemImplementation *""'"); goto fail; } while(0);
56079 arg1 = reinterpret_cast< Xapian::StemImplementation * >(argp1);
56081 SWIG_Python_Thread_Allow _swig_thread_allow;
56084 result = (Xapian::Stem *)new Xapian::Stem(arg1);
56086 _swig_thread_allow.end();
56087 Xapian::SetPythonException();
56091 _swig_thread_allow.end();
56093 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[50], ((0x1 << 1) | 0x1) | 0);
56098 static __attribute__ ((__unused__)) PyObject *_wrap_new_Stem(PyObject *self, PyObject *args) {
56101 if (!(argc = SWIG_Python_UnpackTuple(args,"new_Stem",0,1,argv))) goto fail;
56107 int res = SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[51], 0, 0);
56108 _v = ((res >= 0) ? 1 : 0);
56110 if (!_v) goto check_1;
56111 return _wrap_new_Stem__SWIG_1(self, argc, argv);
56115 return _wrap_new_Stem__SWIG_0(self, argc, argv);
56118 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_Stem'.\n"
56119 " Possible C/C++ prototypes are:\n"
56120 " Xapian::Stem(std::string const &)\n"
56121 " Xapian::Stem(Xapian::StemImplementation *)\n");
56124 static __attribute__ ((__unused__)) PyObject *_wrap_delete_Stem(PyObject *, PyObject *args) {
56125 PyObject *resultobj = 0;
56126 Xapian::Stem *arg1 = (Xapian::Stem *) 0 ;
56129 PyObject *swig_obj[1] ;
56130 if (!args) goto fail;
56131 swig_obj[0] = args;
56132 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[50], 0x1 | 0, 0);
56133 if (!(res1 >= 0)) {
56134 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_Stem" "', argument " "1"" of type '" "Xapian::Stem *""'"); goto fail; } while(0);
56136 arg1 = reinterpret_cast< Xapian::Stem * >(argp1);
56138 SWIG_Python_Thread_Allow _swig_thread_allow;
56143 _swig_thread_allow.end();
56144 Xapian::SetPythonException();
56148 _swig_thread_allow.end();
56150 resultobj = SWIG_Py_Void();
56155 static __attribute__ ((__unused__)) PyObject *_wrap_Stem___call__(PyObject *, PyObject *args) {
56156 PyObject *resultobj = 0;
56157 Xapian::Stem *arg1 = (Xapian::Stem *) 0 ;
56158 std::string *arg2 = 0 ;
56162 PyObject *swig_obj[2] ;
56163 std::string result;
56164 if (!SWIG_Python_UnpackTuple(args,"Stem___call__",2,2,swig_obj)) goto fail;
56165 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[50], 0 | 0, 0);
56166 if (!(res1 >= 0)) {
56167 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Stem___call__" "', argument " "1"" of type '" "Xapian::Stem const *""'"); goto fail; } while(0);
56169 arg1 = reinterpret_cast< Xapian::Stem * >(argp1);
56171 std::string *ptr = (std::string *)0;
56172 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
56173 if (!(res2 >= 0)) {
56174 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Stem___call__" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
56177 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Stem___call__" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
56182 SWIG_Python_Thread_Allow _swig_thread_allow;
56185 result = ((Xapian::Stem const *)arg1)->operator ()((std::string const &)*arg2);
56187 _swig_thread_allow.end();
56188 Xapian::SetPythonException();
56192 _swig_thread_allow.end();
56194 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
56195 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
56198 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
56201 static __attribute__ ((__unused__)) PyObject *_wrap_Stem___str__(PyObject *, PyObject *args) {
56202 PyObject *resultobj = 0;
56203 Xapian::Stem *arg1 = (Xapian::Stem *) 0 ;
56206 PyObject *swig_obj[1] ;
56207 std::string result;
56208 if (!args) goto fail;
56209 swig_obj[0] = args;
56210 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[50], 0 | 0, 0);
56211 if (!(res1 >= 0)) {
56212 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Stem___str__" "', argument " "1"" of type '" "Xapian::Stem const *""'"); goto fail; } while(0);
56214 arg1 = reinterpret_cast< Xapian::Stem * >(argp1);
56216 SWIG_Python_Thread_Allow _swig_thread_allow;
56219 result = ((Xapian::Stem const *)arg1)->get_description();
56221 _swig_thread_allow.end();
56222 Xapian::SetPythonException();
56226 _swig_thread_allow.end();
56228 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
56233 static __attribute__ ((__unused__)) PyObject *_wrap_Stem_get_available_languages(PyObject *, PyObject *args) {
56234 PyObject *resultobj = 0;
56235 std::string result;
56236 if (!SWIG_Python_UnpackTuple(args,"Stem_get_available_languages",0,0,0)) goto fail;
56238 SWIG_Python_Thread_Allow _swig_thread_allow;
56241 result = Xapian::Stem::get_available_languages();
56243 _swig_thread_allow.end();
56244 Xapian::SetPythonException();
56248 _swig_thread_allow.end();
56250 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
56255 static __attribute__ ((__unused__)) PyObject *Stem_swigregister(PyObject *, PyObject *args) {
56257 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
56258 SWIG_TypeNewClientData(swig_types[50], SwigPyClientData_New(obj));
56259 return SWIG_Py_Void();
56261 static __attribute__ ((__unused__)) PyObject *Stem_swiginit(PyObject *, PyObject *args) {
56262 return SWIG_Python_InitShadowInstance(args);
56264 static __attribute__ ((__unused__)) PyObject *_wrap_new_TermGenerator(PyObject *, PyObject *args) {
56265 PyObject *resultobj = 0;
56266 Xapian::TermGenerator *result = 0 ;
56267 if (!SWIG_Python_UnpackTuple(args,"new_TermGenerator",0,0,0)) goto fail;
56269 SWIG_Python_Thread_Allow _swig_thread_allow;
56272 result = (Xapian::TermGenerator *)new Xapian::TermGenerator();
56274 _swig_thread_allow.end();
56275 Xapian::SetPythonException();
56279 _swig_thread_allow.end();
56281 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[54], ((0x1 << 1) | 0x1) | 0);
56286 static __attribute__ ((__unused__)) PyObject *_wrap_delete_TermGenerator(PyObject *, PyObject *args) {
56287 PyObject *resultobj = 0;
56288 Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
56291 PyObject *swig_obj[1] ;
56292 if (!args) goto fail;
56293 swig_obj[0] = args;
56294 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[54], 0x1 | 0, 0);
56295 if (!(res1 >= 0)) {
56296 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_TermGenerator" "', argument " "1"" of type '" "Xapian::TermGenerator *""'"); goto fail; } while(0);
56298 arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
56300 SWIG_Python_Thread_Allow _swig_thread_allow;
56305 _swig_thread_allow.end();
56306 Xapian::SetPythonException();
56310 _swig_thread_allow.end();
56312 resultobj = SWIG_Py_Void();
56317 static __attribute__ ((__unused__)) PyObject *_wrap_TermGenerator_set_stemmer(PyObject *, PyObject *args) {
56318 PyObject *resultobj = 0;
56319 Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
56320 Xapian::Stem *arg2 = 0 ;
56325 PyObject *swig_obj[2] ;
56326 if (!SWIG_Python_UnpackTuple(args,"TermGenerator_set_stemmer",2,2,swig_obj)) goto fail;
56327 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[54], 0 | 0, 0);
56328 if (!(res1 >= 0)) {
56329 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "TermGenerator_set_stemmer" "', argument " "1"" of type '" "Xapian::TermGenerator *""'"); goto fail; } while(0);
56331 arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
56332 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[50], 0 | 0, 0);
56333 if (!(res2 >= 0)) {
56334 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "TermGenerator_set_stemmer" "', argument " "2"" of type '" "Xapian::Stem const &""'"); goto fail; } while(0);
56337 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "TermGenerator_set_stemmer" "', argument " "2"" of type '" "Xapian::Stem const &""'"); goto fail; } while(0);
56339 arg2 = reinterpret_cast< Xapian::Stem * >(argp2);
56341 SWIG_Python_Thread_Allow _swig_thread_allow;
56344 (arg1)->set_stemmer((Xapian::Stem const &)*arg2);
56346 _swig_thread_allow.end();
56347 Xapian::SetPythonException();
56351 _swig_thread_allow.end();
56353 resultobj = SWIG_Py_Void();
56358 static __attribute__ ((__unused__)) PyObject *_wrap_TermGenerator_set_stopper__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
56359 PyObject *resultobj = 0;
56360 Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
56361 Xapian::Stopper *arg2 = (Xapian::Stopper *) 0 ;
56366 if ((nobjs < 2) || (nobjs > 2)) goto fail;
56367 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[54], 0 | 0, 0);
56368 if (!(res1 >= 0)) {
56369 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "TermGenerator_set_stopper" "', argument " "1"" of type '" "Xapian::TermGenerator *""'"); goto fail; } while(0);
56371 arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
56372 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[52], 0 | 0, 0);
56373 if (!(res2 >= 0)) {
56374 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "TermGenerator_set_stopper" "', argument " "2"" of type '" "Xapian::Stopper const *""'"); goto fail; } while(0);
56376 arg2 = reinterpret_cast< Xapian::Stopper * >(argp2);
56378 SWIG_Python_Thread_Allow _swig_thread_allow;
56381 (arg1)->set_stopper((Xapian::Stopper const *)arg2);
56383 _swig_thread_allow.end();
56384 Xapian::SetPythonException();
56388 _swig_thread_allow.end();
56390 resultobj = SWIG_Py_Void();
56395 static __attribute__ ((__unused__)) PyObject *_wrap_TermGenerator_set_stopper__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
56396 PyObject *resultobj = 0;
56397 Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
56400 if ((nobjs < 1) || (nobjs > 1)) goto fail;
56401 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[54], 0 | 0, 0);
56402 if (!(res1 >= 0)) {
56403 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "TermGenerator_set_stopper" "', argument " "1"" of type '" "Xapian::TermGenerator *""'"); goto fail; } while(0);
56405 arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
56407 SWIG_Python_Thread_Allow _swig_thread_allow;
56410 (arg1)->set_stopper();
56412 _swig_thread_allow.end();
56413 Xapian::SetPythonException();
56417 _swig_thread_allow.end();
56419 resultobj = SWIG_Py_Void();
56424 static __attribute__ ((__unused__)) PyObject *_wrap_TermGenerator_set_stopper(PyObject *self, PyObject *args) {
56427 if (!(argc = SWIG_Python_UnpackTuple(args,"TermGenerator_set_stopper",0,2,argv))) goto fail;
56430 return _wrap_TermGenerator_set_stopper__SWIG_1(self, argc, argv);
56433 return _wrap_TermGenerator_set_stopper__SWIG_0(self, argc, argv);
56436 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'TermGenerator_set_stopper'.\n"
56437 " Possible C/C++ prototypes are:\n"
56438 " set_stopper(Xapian::TermGenerator *,Xapian::Stopper const *)\n"
56439 " set_stopper(Xapian::TermGenerator *)\n");
56442 static __attribute__ ((__unused__)) PyObject *_wrap_TermGenerator_set_document(PyObject *, PyObject *args) {
56443 PyObject *resultobj = 0;
56444 Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
56445 Xapian::Document *arg2 = 0 ;
56450 PyObject *swig_obj[2] ;
56451 if (!SWIG_Python_UnpackTuple(args,"TermGenerator_set_document",2,2,swig_obj)) goto fail;
56452 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[54], 0 | 0, 0);
56453 if (!(res1 >= 0)) {
56454 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "TermGenerator_set_document" "', argument " "1"" of type '" "Xapian::TermGenerator *""'"); goto fail; } while(0);
56456 arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
56457 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[15], 0 | 0, 0);
56458 if (!(res2 >= 0)) {
56459 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "TermGenerator_set_document" "', argument " "2"" of type '" "Xapian::Document const &""'"); goto fail; } while(0);
56462 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "TermGenerator_set_document" "', argument " "2"" of type '" "Xapian::Document const &""'"); goto fail; } while(0);
56464 arg2 = reinterpret_cast< Xapian::Document * >(argp2);
56466 SWIG_Python_Thread_Allow _swig_thread_allow;
56469 (arg1)->set_document((Xapian::Document const &)*arg2);
56471 _swig_thread_allow.end();
56472 Xapian::SetPythonException();
56476 _swig_thread_allow.end();
56478 resultobj = SWIG_Py_Void();
56483 static __attribute__ ((__unused__)) PyObject *_wrap_TermGenerator_get_document(PyObject *, PyObject *args) {
56484 PyObject *resultobj = 0;
56485 Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
56488 PyObject *swig_obj[1] ;
56489 Xapian::Document *result = 0 ;
56490 if (!args) goto fail;
56491 swig_obj[0] = args;
56492 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[54], 0 | 0, 0);
56493 if (!(res1 >= 0)) {
56494 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "TermGenerator_get_document" "', argument " "1"" of type '" "Xapian::TermGenerator const *""'"); goto fail; } while(0);
56496 arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
56498 SWIG_Python_Thread_Allow _swig_thread_allow;
56501 result = (Xapian::Document *) &((Xapian::TermGenerator const *)arg1)->get_document();
56503 _swig_thread_allow.end();
56504 Xapian::SetPythonException();
56508 _swig_thread_allow.end();
56510 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[15], 0 | 0);
56515 static __attribute__ ((__unused__)) PyObject *_wrap_TermGenerator_set_database(PyObject *, PyObject *args) {
56516 PyObject *resultobj = 0;
56517 Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
56518 Xapian::WritableDatabase *arg2 = 0 ;
56523 PyObject *swig_obj[2] ;
56524 if (!SWIG_Python_UnpackTuple(args,"TermGenerator_set_database",2,2,swig_obj)) goto fail;
56525 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[54], 0 | 0, 0);
56526 if (!(res1 >= 0)) {
56527 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "TermGenerator_set_database" "', argument " "1"" of type '" "Xapian::TermGenerator *""'"); goto fail; } while(0);
56529 arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
56530 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[66], 0 | 0, 0);
56531 if (!(res2 >= 0)) {
56532 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "TermGenerator_set_database" "', argument " "2"" of type '" "Xapian::WritableDatabase const &""'"); goto fail; } while(0);
56535 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "TermGenerator_set_database" "', argument " "2"" of type '" "Xapian::WritableDatabase const &""'"); goto fail; } while(0);
56537 arg2 = reinterpret_cast< Xapian::WritableDatabase * >(argp2);
56539 SWIG_Python_Thread_Allow _swig_thread_allow;
56542 (arg1)->set_database((Xapian::WritableDatabase const &)*arg2);
56544 _swig_thread_allow.end();
56545 Xapian::SetPythonException();
56549 _swig_thread_allow.end();
56551 resultobj = SWIG_Py_Void();
56556 static __attribute__ ((__unused__)) PyObject *_wrap_TermGenerator_set_flags__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
56557 PyObject *resultobj = 0;
56558 Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
56559 Xapian::TermGenerator::flags arg2 ;
56560 Xapian::TermGenerator::flags arg3 ;
56567 Xapian::TermGenerator::flags result;
56568 if ((nobjs < 3) || (nobjs > 3)) goto fail;
56569 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[54], 0 | 0, 0);
56570 if (!(res1 >= 0)) {
56571 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "TermGenerator_set_flags" "', argument " "1"" of type '" "Xapian::TermGenerator *""'"); goto fail; } while(0);
56573 arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
56574 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
56575 if (!(ecode2 >= 0)) {
56576 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "TermGenerator_set_flags" "', argument " "2"" of type '" "Xapian::TermGenerator::flags""'"); goto fail; } while(0);
56578 arg2 = static_cast< Xapian::TermGenerator::flags >(val2);
56579 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
56580 if (!(ecode3 >= 0)) {
56581 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "TermGenerator_set_flags" "', argument " "3"" of type '" "Xapian::TermGenerator::flags""'"); goto fail; } while(0);
56583 arg3 = static_cast< Xapian::TermGenerator::flags >(val3);
56585 SWIG_Python_Thread_Allow _swig_thread_allow;
56588 result = (Xapian::TermGenerator::flags)(arg1)->set_flags(arg2,arg3);
56590 _swig_thread_allow.end();
56591 Xapian::SetPythonException();
56595 _swig_thread_allow.end();
56597 resultobj = SWIG_From_int(static_cast< int >(result));
56602 static __attribute__ ((__unused__)) PyObject *_wrap_TermGenerator_set_flags__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
56603 PyObject *resultobj = 0;
56604 Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
56605 Xapian::TermGenerator::flags arg2 ;
56610 Xapian::TermGenerator::flags result;
56611 if ((nobjs < 2) || (nobjs > 2)) goto fail;
56612 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[54], 0 | 0, 0);
56613 if (!(res1 >= 0)) {
56614 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "TermGenerator_set_flags" "', argument " "1"" of type '" "Xapian::TermGenerator *""'"); goto fail; } while(0);
56616 arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
56617 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
56618 if (!(ecode2 >= 0)) {
56619 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "TermGenerator_set_flags" "', argument " "2"" of type '" "Xapian::TermGenerator::flags""'"); goto fail; } while(0);
56621 arg2 = static_cast< Xapian::TermGenerator::flags >(val2);
56623 SWIG_Python_Thread_Allow _swig_thread_allow;
56626 result = (Xapian::TermGenerator::flags)(arg1)->set_flags(arg2);
56628 _swig_thread_allow.end();
56629 Xapian::SetPythonException();
56633 _swig_thread_allow.end();
56635 resultobj = SWIG_From_int(static_cast< int >(result));
56640 static __attribute__ ((__unused__)) PyObject *_wrap_TermGenerator_set_flags(PyObject *self, PyObject *args) {
56643 if (!(argc = SWIG_Python_UnpackTuple(args,"TermGenerator_set_flags",0,3,argv))) goto fail;
56646 return _wrap_TermGenerator_set_flags__SWIG_1(self, argc, argv);
56649 return _wrap_TermGenerator_set_flags__SWIG_0(self, argc, argv);
56652 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'TermGenerator_set_flags'.\n"
56653 " Possible C/C++ prototypes are:\n"
56654 " set_flags(Xapian::TermGenerator *,Xapian::TermGenerator::flags,Xapian::TermGenerator::flags)\n"
56655 " set_flags(Xapian::TermGenerator *,Xapian::TermGenerator::flags)\n");
56658 static __attribute__ ((__unused__)) PyObject *_wrap_TermGenerator_index_text__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
56659 PyObject *resultobj = 0;
56660 Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
56661 std::string *arg2 = 0 ;
56662 Xapian::termcount arg3 ;
56663 std::string *arg4 = 0 ;
56667 unsigned int val3 ;
56670 if ((nobjs < 4) || (nobjs > 4)) goto fail;
56671 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[54], 0 | 0, 0);
56672 if (!(res1 >= 0)) {
56673 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "TermGenerator_index_text" "', argument " "1"" of type '" "Xapian::TermGenerator *""'"); goto fail; } while(0);
56675 arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
56677 std::string *ptr = (std::string *)0;
56678 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
56679 if (!(res2 >= 0)) {
56680 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "TermGenerator_index_text" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
56683 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "TermGenerator_index_text" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
56687 ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
56688 if (!(ecode3 >= 0)) {
56689 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "TermGenerator_index_text" "', argument " "3"" of type '" "Xapian::termcount""'"); goto fail; } while(0);
56691 arg3 = static_cast< Xapian::termcount >(val3);
56693 std::string *ptr = (std::string *)0;
56694 res4 = SWIG_anystring_as_ptr(&(swig_obj[3]), &ptr);
56695 if (!(res4 >= 0)) {
56696 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (-1)) ? res4 : -5)), "in method '" "TermGenerator_index_text" "', argument " "4"" of type '" "std::string const &""'"); goto fail; } while(0);
56699 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "TermGenerator_index_text" "', argument " "4"" of type '" "std::string const &""'"); goto fail; } while(0);
56704 SWIG_Python_Thread_Allow _swig_thread_allow;
56707 (arg1)->index_text((std::string const &)*arg2,arg3,(std::string const &)*arg4);
56709 _swig_thread_allow.end();
56710 Xapian::SetPythonException();
56714 _swig_thread_allow.end();
56716 resultobj = SWIG_Py_Void();
56717 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
56718 if (((res4 >= 0) && (res4 & ((1 << 8) << 1)))) delete arg4;
56721 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
56722 if (((res4 >= 0) && (res4 & ((1 << 8) << 1)))) delete arg4;
56725 static __attribute__ ((__unused__)) PyObject *_wrap_TermGenerator_index_text__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
56726 PyObject *resultobj = 0;
56727 Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
56728 std::string *arg2 = 0 ;
56729 Xapian::termcount arg3 ;
56733 unsigned int val3 ;
56735 if ((nobjs < 3) || (nobjs > 3)) goto fail;
56736 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[54], 0 | 0, 0);
56737 if (!(res1 >= 0)) {
56738 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "TermGenerator_index_text" "', argument " "1"" of type '" "Xapian::TermGenerator *""'"); goto fail; } while(0);
56740 arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
56742 std::string *ptr = (std::string *)0;
56743 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
56744 if (!(res2 >= 0)) {
56745 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "TermGenerator_index_text" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
56748 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "TermGenerator_index_text" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
56752 ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
56753 if (!(ecode3 >= 0)) {
56754 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "TermGenerator_index_text" "', argument " "3"" of type '" "Xapian::termcount""'"); goto fail; } while(0);
56756 arg3 = static_cast< Xapian::termcount >(val3);
56758 SWIG_Python_Thread_Allow _swig_thread_allow;
56761 (arg1)->index_text((std::string const &)*arg2,arg3);
56763 _swig_thread_allow.end();
56764 Xapian::SetPythonException();
56768 _swig_thread_allow.end();
56770 resultobj = SWIG_Py_Void();
56771 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
56774 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
56777 static __attribute__ ((__unused__)) PyObject *_wrap_TermGenerator_index_text__SWIG_2(PyObject *, int nobjs, PyObject **swig_obj) {
56778 PyObject *resultobj = 0;
56779 Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
56780 std::string *arg2 = 0 ;
56784 if ((nobjs < 2) || (nobjs > 2)) goto fail;
56785 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[54], 0 | 0, 0);
56786 if (!(res1 >= 0)) {
56787 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "TermGenerator_index_text" "', argument " "1"" of type '" "Xapian::TermGenerator *""'"); goto fail; } while(0);
56789 arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
56791 std::string *ptr = (std::string *)0;
56792 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
56793 if (!(res2 >= 0)) {
56794 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "TermGenerator_index_text" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
56797 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "TermGenerator_index_text" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
56802 SWIG_Python_Thread_Allow _swig_thread_allow;
56805 (arg1)->index_text((std::string const &)*arg2);
56807 _swig_thread_allow.end();
56808 Xapian::SetPythonException();
56812 _swig_thread_allow.end();
56814 resultobj = SWIG_Py_Void();
56815 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
56818 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
56821 static __attribute__ ((__unused__)) PyObject *_wrap_TermGenerator_index_text(PyObject *self, PyObject *args) {
56824 if (!(argc = SWIG_Python_UnpackTuple(args,"TermGenerator_index_text",0,4,argv))) goto fail;
56827 return _wrap_TermGenerator_index_text__SWIG_2(self, argc, argv);
56830 return _wrap_TermGenerator_index_text__SWIG_1(self, argc, argv);
56833 return _wrap_TermGenerator_index_text__SWIG_0(self, argc, argv);
56836 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'TermGenerator_index_text'.\n"
56837 " Possible C/C++ prototypes are:\n"
56838 " index_text(Xapian::TermGenerator *,std::string const &,Xapian::termcount,std::string const &)\n"
56839 " index_text(Xapian::TermGenerator *,std::string const &,Xapian::termcount)\n"
56840 " index_text(Xapian::TermGenerator *,std::string const &)\n");
56843 static __attribute__ ((__unused__)) PyObject *_wrap_TermGenerator_index_text_without_positions__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
56844 PyObject *resultobj = 0;
56845 Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
56846 std::string *arg2 = 0 ;
56847 Xapian::termcount arg3 ;
56848 std::string *arg4 = 0 ;
56852 unsigned int val3 ;
56855 if ((nobjs < 4) || (nobjs > 4)) goto fail;
56856 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[54], 0 | 0, 0);
56857 if (!(res1 >= 0)) {
56858 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "TermGenerator_index_text_without_positions" "', argument " "1"" of type '" "Xapian::TermGenerator *""'"); goto fail; } while(0);
56860 arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
56862 std::string *ptr = (std::string *)0;
56863 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
56864 if (!(res2 >= 0)) {
56865 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "TermGenerator_index_text_without_positions" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
56868 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "TermGenerator_index_text_without_positions" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
56872 ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
56873 if (!(ecode3 >= 0)) {
56874 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "TermGenerator_index_text_without_positions" "', argument " "3"" of type '" "Xapian::termcount""'"); goto fail; } while(0);
56876 arg3 = static_cast< Xapian::termcount >(val3);
56878 std::string *ptr = (std::string *)0;
56879 res4 = SWIG_anystring_as_ptr(&(swig_obj[3]), &ptr);
56880 if (!(res4 >= 0)) {
56881 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (-1)) ? res4 : -5)), "in method '" "TermGenerator_index_text_without_positions" "', argument " "4"" of type '" "std::string const &""'"); goto fail; } while(0);
56884 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "TermGenerator_index_text_without_positions" "', argument " "4"" of type '" "std::string const &""'"); goto fail; } while(0);
56889 SWIG_Python_Thread_Allow _swig_thread_allow;
56892 (arg1)->index_text_without_positions((std::string const &)*arg2,arg3,(std::string const &)*arg4);
56894 _swig_thread_allow.end();
56895 Xapian::SetPythonException();
56899 _swig_thread_allow.end();
56901 resultobj = SWIG_Py_Void();
56902 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
56903 if (((res4 >= 0) && (res4 & ((1 << 8) << 1)))) delete arg4;
56906 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
56907 if (((res4 >= 0) && (res4 & ((1 << 8) << 1)))) delete arg4;
56910 static __attribute__ ((__unused__)) PyObject *_wrap_TermGenerator_index_text_without_positions__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
56911 PyObject *resultobj = 0;
56912 Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
56913 std::string *arg2 = 0 ;
56914 Xapian::termcount arg3 ;
56918 unsigned int val3 ;
56920 if ((nobjs < 3) || (nobjs > 3)) goto fail;
56921 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[54], 0 | 0, 0);
56922 if (!(res1 >= 0)) {
56923 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "TermGenerator_index_text_without_positions" "', argument " "1"" of type '" "Xapian::TermGenerator *""'"); goto fail; } while(0);
56925 arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
56927 std::string *ptr = (std::string *)0;
56928 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
56929 if (!(res2 >= 0)) {
56930 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "TermGenerator_index_text_without_positions" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
56933 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "TermGenerator_index_text_without_positions" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
56937 ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
56938 if (!(ecode3 >= 0)) {
56939 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "TermGenerator_index_text_without_positions" "', argument " "3"" of type '" "Xapian::termcount""'"); goto fail; } while(0);
56941 arg3 = static_cast< Xapian::termcount >(val3);
56943 SWIG_Python_Thread_Allow _swig_thread_allow;
56946 (arg1)->index_text_without_positions((std::string const &)*arg2,arg3);
56948 _swig_thread_allow.end();
56949 Xapian::SetPythonException();
56953 _swig_thread_allow.end();
56955 resultobj = SWIG_Py_Void();
56956 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
56959 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
56962 static __attribute__ ((__unused__)) PyObject *_wrap_TermGenerator_index_text_without_positions__SWIG_2(PyObject *, int nobjs, PyObject **swig_obj) {
56963 PyObject *resultobj = 0;
56964 Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
56965 std::string *arg2 = 0 ;
56969 if ((nobjs < 2) || (nobjs > 2)) goto fail;
56970 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[54], 0 | 0, 0);
56971 if (!(res1 >= 0)) {
56972 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "TermGenerator_index_text_without_positions" "', argument " "1"" of type '" "Xapian::TermGenerator *""'"); goto fail; } while(0);
56974 arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
56976 std::string *ptr = (std::string *)0;
56977 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
56978 if (!(res2 >= 0)) {
56979 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "TermGenerator_index_text_without_positions" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
56982 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "TermGenerator_index_text_without_positions" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
56987 SWIG_Python_Thread_Allow _swig_thread_allow;
56990 (arg1)->index_text_without_positions((std::string const &)*arg2);
56992 _swig_thread_allow.end();
56993 Xapian::SetPythonException();
56997 _swig_thread_allow.end();
56999 resultobj = SWIG_Py_Void();
57000 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
57003 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
57006 static __attribute__ ((__unused__)) PyObject *_wrap_TermGenerator_index_text_without_positions(PyObject *self, PyObject *args) {
57009 if (!(argc = SWIG_Python_UnpackTuple(args,"TermGenerator_index_text_without_positions",0,4,argv))) goto fail;
57012 return _wrap_TermGenerator_index_text_without_positions__SWIG_2(self, argc, argv);
57015 return _wrap_TermGenerator_index_text_without_positions__SWIG_1(self, argc, argv);
57018 return _wrap_TermGenerator_index_text_without_positions__SWIG_0(self, argc, argv);
57021 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'TermGenerator_index_text_without_positions'.\n"
57022 " Possible C/C++ prototypes are:\n"
57023 " index_text_without_positions(Xapian::TermGenerator *,std::string const &,Xapian::termcount,std::string const &)\n"
57024 " index_text_without_positions(Xapian::TermGenerator *,std::string const &,Xapian::termcount)\n"
57025 " index_text_without_positions(Xapian::TermGenerator *,std::string const &)\n");
57028 static __attribute__ ((__unused__)) PyObject *_wrap_TermGenerator_increase_termpos__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
57029 PyObject *resultobj = 0;
57030 Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
57031 Xapian::termcount arg2 ;
57034 unsigned int val2 ;
57036 if ((nobjs < 2) || (nobjs > 2)) goto fail;
57037 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[54], 0 | 0, 0);
57038 if (!(res1 >= 0)) {
57039 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "TermGenerator_increase_termpos" "', argument " "1"" of type '" "Xapian::TermGenerator *""'"); goto fail; } while(0);
57041 arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
57042 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
57043 if (!(ecode2 >= 0)) {
57044 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "TermGenerator_increase_termpos" "', argument " "2"" of type '" "Xapian::termcount""'"); goto fail; } while(0);
57046 arg2 = static_cast< Xapian::termcount >(val2);
57048 SWIG_Python_Thread_Allow _swig_thread_allow;
57051 (arg1)->increase_termpos(arg2);
57053 _swig_thread_allow.end();
57054 Xapian::SetPythonException();
57058 _swig_thread_allow.end();
57060 resultobj = SWIG_Py_Void();
57065 static __attribute__ ((__unused__)) PyObject *_wrap_TermGenerator_increase_termpos__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
57066 PyObject *resultobj = 0;
57067 Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
57070 if ((nobjs < 1) || (nobjs > 1)) goto fail;
57071 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[54], 0 | 0, 0);
57072 if (!(res1 >= 0)) {
57073 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "TermGenerator_increase_termpos" "', argument " "1"" of type '" "Xapian::TermGenerator *""'"); goto fail; } while(0);
57075 arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
57077 SWIG_Python_Thread_Allow _swig_thread_allow;
57080 (arg1)->increase_termpos();
57082 _swig_thread_allow.end();
57083 Xapian::SetPythonException();
57087 _swig_thread_allow.end();
57089 resultobj = SWIG_Py_Void();
57094 static __attribute__ ((__unused__)) PyObject *_wrap_TermGenerator_increase_termpos(PyObject *self, PyObject *args) {
57097 if (!(argc = SWIG_Python_UnpackTuple(args,"TermGenerator_increase_termpos",0,2,argv))) goto fail;
57100 return _wrap_TermGenerator_increase_termpos__SWIG_1(self, argc, argv);
57103 return _wrap_TermGenerator_increase_termpos__SWIG_0(self, argc, argv);
57106 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'TermGenerator_increase_termpos'.\n"
57107 " Possible C/C++ prototypes are:\n"
57108 " increase_termpos(Xapian::TermGenerator *,Xapian::termcount)\n"
57109 " increase_termpos(Xapian::TermGenerator *)\n");
57112 static __attribute__ ((__unused__)) PyObject *_wrap_TermGenerator_get_termpos(PyObject *, PyObject *args) {
57113 PyObject *resultobj = 0;
57114 Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
57117 PyObject *swig_obj[1] ;
57118 Xapian::termcount result;
57119 if (!args) goto fail;
57120 swig_obj[0] = args;
57121 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[54], 0 | 0, 0);
57122 if (!(res1 >= 0)) {
57123 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "TermGenerator_get_termpos" "', argument " "1"" of type '" "Xapian::TermGenerator const *""'"); goto fail; } while(0);
57125 arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
57127 SWIG_Python_Thread_Allow _swig_thread_allow;
57130 result = (Xapian::termcount)((Xapian::TermGenerator const *)arg1)->get_termpos();
57132 _swig_thread_allow.end();
57133 Xapian::SetPythonException();
57137 _swig_thread_allow.end();
57139 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
57144 static __attribute__ ((__unused__)) PyObject *_wrap_TermGenerator_set_termpos(PyObject *, PyObject *args) {
57145 PyObject *resultobj = 0;
57146 Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
57147 Xapian::termcount arg2 ;
57150 unsigned int val2 ;
57152 PyObject *swig_obj[2] ;
57153 if (!SWIG_Python_UnpackTuple(args,"TermGenerator_set_termpos",2,2,swig_obj)) goto fail;
57154 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[54], 0 | 0, 0);
57155 if (!(res1 >= 0)) {
57156 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "TermGenerator_set_termpos" "', argument " "1"" of type '" "Xapian::TermGenerator *""'"); goto fail; } while(0);
57158 arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
57159 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
57160 if (!(ecode2 >= 0)) {
57161 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "TermGenerator_set_termpos" "', argument " "2"" of type '" "Xapian::termcount""'"); goto fail; } while(0);
57163 arg2 = static_cast< Xapian::termcount >(val2);
57165 SWIG_Python_Thread_Allow _swig_thread_allow;
57168 (arg1)->set_termpos(arg2);
57170 _swig_thread_allow.end();
57171 Xapian::SetPythonException();
57175 _swig_thread_allow.end();
57177 resultobj = SWIG_Py_Void();
57182 static __attribute__ ((__unused__)) PyObject *_wrap_TermGenerator___str__(PyObject *, PyObject *args) {
57183 PyObject *resultobj = 0;
57184 Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
57187 PyObject *swig_obj[1] ;
57188 std::string result;
57189 if (!args) goto fail;
57190 swig_obj[0] = args;
57191 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[54], 0 | 0, 0);
57192 if (!(res1 >= 0)) {
57193 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "TermGenerator___str__" "', argument " "1"" of type '" "Xapian::TermGenerator const *""'"); goto fail; } while(0);
57195 arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
57197 SWIG_Python_Thread_Allow _swig_thread_allow;
57200 result = ((Xapian::TermGenerator const *)arg1)->get_description();
57202 _swig_thread_allow.end();
57203 Xapian::SetPythonException();
57207 _swig_thread_allow.end();
57209 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
57214 static __attribute__ ((__unused__)) PyObject *TermGenerator_swigregister(PyObject *, PyObject *args) {
57216 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
57217 SWIG_TypeNewClientData(swig_types[54], SwigPyClientData_New(obj));
57218 return SWIG_Py_Void();
57220 static __attribute__ ((__unused__)) PyObject *TermGenerator_swiginit(PyObject *, PyObject *args) {
57221 return SWIG_Python_InitShadowInstance(args);
57223 static __attribute__ ((__unused__)) PyObject *_wrap_KeyMaker___call__(PyObject *, PyObject *args) {
57224 PyObject *resultobj = 0;
57225 Xapian::KeyMaker *arg1 = (Xapian::KeyMaker *) 0 ;
57226 Xapian::Document *arg2 = 0 ;
57231 PyObject *swig_obj[2] ;
57232 Swig::Director *director = 0;
57233 bool upcall = false;
57234 std::string result;
57235 if (!SWIG_Python_UnpackTuple(args,"KeyMaker___call__",2,2,swig_obj)) goto fail;
57236 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[26], 0 | 0, 0);
57237 if (!(res1 >= 0)) {
57238 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "KeyMaker___call__" "', argument " "1"" of type '" "Xapian::KeyMaker const *""'"); goto fail; } while(0);
57240 arg1 = reinterpret_cast< Xapian::KeyMaker * >(argp1);
57241 res2 = SWIG_Python_ConvertPtrAndOwn(swig_obj[1], &argp2, swig_types[15], 0 | 0, 0);
57242 if (!(res2 >= 0)) {
57243 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "KeyMaker___call__" "', argument " "2"" of type '" "Xapian::Document const &""'"); goto fail; } while(0);
57246 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "KeyMaker___call__" "', argument " "2"" of type '" "Xapian::Document const &""'"); goto fail; } while(0);
57248 arg2 = reinterpret_cast< Xapian::Document * >(argp2);
57249 director = dynamic_cast<Swig::Director*>(arg1);
57250 upcall = (director && (director->swig_get_self()==swig_obj[0]));
57255 Swig::DirectorPureVirtualException::raise("Xapian::KeyMaker::operator ()");
57257 result = ((Xapian::KeyMaker const *)arg1)->operator ()((Xapian::Document const &)*arg2);
57260 Xapian::SetPythonException();
57264 } catch (Swig::DirectorException&) {
57267 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
57272 static __attribute__ ((__unused__)) PyObject *_wrap_delete_KeyMaker(PyObject *, PyObject *args) {
57273 PyObject *resultobj = 0;
57274 Xapian::KeyMaker *arg1 = (Xapian::KeyMaker *) 0 ;
57277 PyObject *swig_obj[1] ;
57278 if (!args) goto fail;
57279 swig_obj[0] = args;
57280 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[26], 0x1 | 0, 0);
57281 if (!(res1 >= 0)) {
57282 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_KeyMaker" "', argument " "1"" of type '" "Xapian::KeyMaker *""'"); goto fail; } while(0);
57284 arg1 = reinterpret_cast< Xapian::KeyMaker * >(argp1);
57286 SWIG_Python_Thread_Allow _swig_thread_allow;
57291 _swig_thread_allow.end();
57292 Xapian::SetPythonException();
57296 _swig_thread_allow.end();
57298 resultobj = SWIG_Py_Void();
57303 static __attribute__ ((__unused__)) PyObject *_wrap_new_KeyMaker(PyObject *, PyObject *args) {
57304 PyObject *resultobj = 0;
57305 PyObject *arg1 = (PyObject *) 0 ;
57306 PyObject *swig_obj[1] ;
57307 Xapian::KeyMaker *result = 0 ;
57308 if (!args) goto fail;
57309 swig_obj[0] = args;
57310 arg1 = swig_obj[0];
57312 SWIG_Python_Thread_Allow _swig_thread_allow;
57315 if ( arg1 != (&_Py_NoneStruct) ) {
57316 result = (Xapian::KeyMaker *)new SwigDirector_KeyMaker(arg1);
57318 SWIG_Python_SetErrorMsg(PyExc_RuntimeError,"accessing abstract class or protected constructor");
57322 _swig_thread_allow.end();
57323 Xapian::SetPythonException();
57327 _swig_thread_allow.end();
57329 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[26], ((0x1 << 1) | 0x1) | 0);
57334 static __attribute__ ((__unused__)) PyObject *_wrap_disown_KeyMaker(PyObject *, PyObject *args) {
57335 PyObject *resultobj = 0;
57336 Xapian::KeyMaker *arg1 = (Xapian::KeyMaker *) 0 ;
57339 PyObject *swig_obj[1] ;
57340 if (!args) goto fail;
57341 swig_obj[0] = args;
57342 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[26], 0 | 0, 0);
57343 if (!(res1 >= 0)) {
57344 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "disown_KeyMaker" "', argument " "1"" of type '" "Xapian::KeyMaker *""'"); goto fail; } while(0);
57346 arg1 = reinterpret_cast< Xapian::KeyMaker * >(argp1);
57348 SWIG_Python_Thread_Allow _swig_thread_allow;
57350 Swig::Director *director = dynamic_cast<Swig::Director *>(arg1);
57351 if (director) director->swig_disown();
57353 _swig_thread_allow.end();
57355 resultobj = SWIG_Py_Void();
57360 static __attribute__ ((__unused__)) PyObject *KeyMaker_swigregister(PyObject *, PyObject *args) {
57362 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
57363 SWIG_TypeNewClientData(swig_types[26], SwigPyClientData_New(obj));
57364 return SWIG_Py_Void();
57366 static __attribute__ ((__unused__)) PyObject *KeyMaker_swiginit(PyObject *, PyObject *args) {
57367 return SWIG_Python_InitShadowInstance(args);
57369 static __attribute__ ((__unused__)) PyObject *_wrap_new_MultiValueKeyMaker(PyObject *, PyObject *args) {
57370 PyObject *resultobj = 0;
57371 Xapian::MultiValueKeyMaker *result = 0 ;
57372 if (!SWIG_Python_UnpackTuple(args,"new_MultiValueKeyMaker",0,0,0)) goto fail;
57374 SWIG_Python_Thread_Allow _swig_thread_allow;
57377 result = (Xapian::MultiValueKeyMaker *)new Xapian::MultiValueKeyMaker();
57379 _swig_thread_allow.end();
57380 Xapian::SetPythonException();
57384 _swig_thread_allow.end();
57386 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[32], ((0x1 << 1) | 0x1) | 0);
57391 static __attribute__ ((__unused__)) PyObject *_wrap_MultiValueKeyMaker_add_value__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
57392 PyObject *resultobj = 0;
57393 Xapian::MultiValueKeyMaker *arg1 = (Xapian::MultiValueKeyMaker *) 0 ;
57394 Xapian::valueno arg2 ;
57398 unsigned int val2 ;
57402 if ((nobjs < 3) || (nobjs > 3)) goto fail;
57403 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[32], 0 | 0, 0);
57404 if (!(res1 >= 0)) {
57405 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MultiValueKeyMaker_add_value" "', argument " "1"" of type '" "Xapian::MultiValueKeyMaker *""'"); goto fail; } while(0);
57407 arg1 = reinterpret_cast< Xapian::MultiValueKeyMaker * >(argp1);
57408 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
57409 if (!(ecode2 >= 0)) {
57410 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "MultiValueKeyMaker_add_value" "', argument " "2"" of type '" "Xapian::valueno""'"); goto fail; } while(0);
57412 arg2 = static_cast< Xapian::valueno >(val2);
57413 ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
57414 if (!(ecode3 >= 0)) {
57415 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "MultiValueKeyMaker_add_value" "', argument " "3"" of type '" "bool""'"); goto fail; } while(0);
57417 arg3 = static_cast< bool >(val3);
57419 SWIG_Python_Thread_Allow _swig_thread_allow;
57422 (arg1)->add_value(arg2,arg3);
57424 _swig_thread_allow.end();
57425 Xapian::SetPythonException();
57429 _swig_thread_allow.end();
57431 resultobj = SWIG_Py_Void();
57436 static __attribute__ ((__unused__)) PyObject *_wrap_MultiValueKeyMaker_add_value__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
57437 PyObject *resultobj = 0;
57438 Xapian::MultiValueKeyMaker *arg1 = (Xapian::MultiValueKeyMaker *) 0 ;
57439 Xapian::valueno arg2 ;
57442 unsigned int val2 ;
57444 if ((nobjs < 2) || (nobjs > 2)) goto fail;
57445 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[32], 0 | 0, 0);
57446 if (!(res1 >= 0)) {
57447 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MultiValueKeyMaker_add_value" "', argument " "1"" of type '" "Xapian::MultiValueKeyMaker *""'"); goto fail; } while(0);
57449 arg1 = reinterpret_cast< Xapian::MultiValueKeyMaker * >(argp1);
57450 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
57451 if (!(ecode2 >= 0)) {
57452 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "MultiValueKeyMaker_add_value" "', argument " "2"" of type '" "Xapian::valueno""'"); goto fail; } while(0);
57454 arg2 = static_cast< Xapian::valueno >(val2);
57456 SWIG_Python_Thread_Allow _swig_thread_allow;
57459 (arg1)->add_value(arg2);
57461 _swig_thread_allow.end();
57462 Xapian::SetPythonException();
57466 _swig_thread_allow.end();
57468 resultobj = SWIG_Py_Void();
57473 static __attribute__ ((__unused__)) PyObject *_wrap_MultiValueKeyMaker_add_value(PyObject *self, PyObject *args) {
57476 if (!(argc = SWIG_Python_UnpackTuple(args,"MultiValueKeyMaker_add_value",0,3,argv))) goto fail;
57479 return _wrap_MultiValueKeyMaker_add_value__SWIG_1(self, argc, argv);
57482 return _wrap_MultiValueKeyMaker_add_value__SWIG_0(self, argc, argv);
57485 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'MultiValueKeyMaker_add_value'.\n"
57486 " Possible C/C++ prototypes are:\n"
57487 " add_value(Xapian::MultiValueKeyMaker *,Xapian::valueno,bool)\n"
57488 " add_value(Xapian::MultiValueKeyMaker *,Xapian::valueno)\n");
57491 static __attribute__ ((__unused__)) PyObject *_wrap_delete_MultiValueKeyMaker(PyObject *, PyObject *args) {
57492 PyObject *resultobj = 0;
57493 Xapian::MultiValueKeyMaker *arg1 = (Xapian::MultiValueKeyMaker *) 0 ;
57496 PyObject *swig_obj[1] ;
57497 if (!args) goto fail;
57498 swig_obj[0] = args;
57499 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[32], 0x1 | 0, 0);
57500 if (!(res1 >= 0)) {
57501 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_MultiValueKeyMaker" "', argument " "1"" of type '" "Xapian::MultiValueKeyMaker *""'"); goto fail; } while(0);
57503 arg1 = reinterpret_cast< Xapian::MultiValueKeyMaker * >(argp1);
57505 SWIG_Python_Thread_Allow _swig_thread_allow;
57510 _swig_thread_allow.end();
57511 Xapian::SetPythonException();
57515 _swig_thread_allow.end();
57517 resultobj = SWIG_Py_Void();
57522 static __attribute__ ((__unused__)) PyObject *MultiValueKeyMaker_swigregister(PyObject *, PyObject *args) {
57524 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
57525 SWIG_TypeNewClientData(swig_types[32], SwigPyClientData_New(obj));
57526 return SWIG_Py_Void();
57528 static __attribute__ ((__unused__)) PyObject *MultiValueKeyMaker_swiginit(PyObject *, PyObject *args) {
57529 return SWIG_Python_InitShadowInstance(args);
57531 static __attribute__ ((__unused__)) PyObject *_wrap_delete_Sorter(PyObject *, PyObject *args) {
57532 PyObject *resultobj = 0;
57533 Xapian::Sorter *arg1 = (Xapian::Sorter *) 0 ;
57536 PyObject *swig_obj[1] ;
57537 if (!args) goto fail;
57538 swig_obj[0] = args;
57539 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[49], 0x1 | 0, 0);
57540 if (!(res1 >= 0)) {
57541 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_Sorter" "', argument " "1"" of type '" "Xapian::Sorter *""'"); goto fail; } while(0);
57543 arg1 = reinterpret_cast< Xapian::Sorter * >(argp1);
57545 SWIG_Python_Thread_Allow _swig_thread_allow;
57550 _swig_thread_allow.end();
57551 Xapian::SetPythonException();
57555 _swig_thread_allow.end();
57557 resultobj = SWIG_Py_Void();
57562 static __attribute__ ((__unused__)) PyObject *Sorter_swigregister(PyObject *, PyObject *args) {
57564 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
57565 SWIG_TypeNewClientData(swig_types[49], SwigPyClientData_New(obj));
57566 return SWIG_Py_Void();
57568 static __attribute__ ((__unused__)) PyObject *_wrap_new_MultiValueSorter(PyObject *, PyObject *args) {
57569 PyObject *resultobj = 0;
57570 Xapian::MultiValueSorter *result = 0 ;
57571 if (!SWIG_Python_UnpackTuple(args,"new_MultiValueSorter",0,0,0)) goto fail;
57573 SWIG_Python_Thread_Allow _swig_thread_allow;
57576 result = (Xapian::MultiValueSorter *)new Xapian::MultiValueSorter();
57578 _swig_thread_allow.end();
57579 Xapian::SetPythonException();
57583 _swig_thread_allow.end();
57585 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[33], ((0x1 << 1) | 0x1) | 0);
57590 static __attribute__ ((__unused__)) PyObject *_wrap_MultiValueSorter_add__SWIG_0(PyObject *, int nobjs, PyObject **swig_obj) {
57591 PyObject *resultobj = 0;
57592 Xapian::MultiValueSorter *arg1 = (Xapian::MultiValueSorter *) 0 ;
57593 Xapian::valueno arg2 ;
57597 unsigned int val2 ;
57601 if ((nobjs < 3) || (nobjs > 3)) goto fail;
57602 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[33], 0 | 0, 0);
57603 if (!(res1 >= 0)) {
57604 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MultiValueSorter_add" "', argument " "1"" of type '" "Xapian::MultiValueSorter *""'"); goto fail; } while(0);
57606 arg1 = reinterpret_cast< Xapian::MultiValueSorter * >(argp1);
57607 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
57608 if (!(ecode2 >= 0)) {
57609 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "MultiValueSorter_add" "', argument " "2"" of type '" "Xapian::valueno""'"); goto fail; } while(0);
57611 arg2 = static_cast< Xapian::valueno >(val2);
57612 ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
57613 if (!(ecode3 >= 0)) {
57614 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "MultiValueSorter_add" "', argument " "3"" of type '" "bool""'"); goto fail; } while(0);
57616 arg3 = static_cast< bool >(val3);
57618 SWIG_Python_Thread_Allow _swig_thread_allow;
57621 (arg1)->add(arg2,arg3);
57623 _swig_thread_allow.end();
57624 Xapian::SetPythonException();
57628 _swig_thread_allow.end();
57630 resultobj = SWIG_Py_Void();
57635 static __attribute__ ((__unused__)) PyObject *_wrap_MultiValueSorter_add__SWIG_1(PyObject *, int nobjs, PyObject **swig_obj) {
57636 PyObject *resultobj = 0;
57637 Xapian::MultiValueSorter *arg1 = (Xapian::MultiValueSorter *) 0 ;
57638 Xapian::valueno arg2 ;
57641 unsigned int val2 ;
57643 if ((nobjs < 2) || (nobjs > 2)) goto fail;
57644 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[33], 0 | 0, 0);
57645 if (!(res1 >= 0)) {
57646 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "MultiValueSorter_add" "', argument " "1"" of type '" "Xapian::MultiValueSorter *""'"); goto fail; } while(0);
57648 arg1 = reinterpret_cast< Xapian::MultiValueSorter * >(argp1);
57649 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
57650 if (!(ecode2 >= 0)) {
57651 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "MultiValueSorter_add" "', argument " "2"" of type '" "Xapian::valueno""'"); goto fail; } while(0);
57653 arg2 = static_cast< Xapian::valueno >(val2);
57655 SWIG_Python_Thread_Allow _swig_thread_allow;
57660 _swig_thread_allow.end();
57661 Xapian::SetPythonException();
57665 _swig_thread_allow.end();
57667 resultobj = SWIG_Py_Void();
57672 static __attribute__ ((__unused__)) PyObject *_wrap_MultiValueSorter_add(PyObject *self, PyObject *args) {
57675 if (!(argc = SWIG_Python_UnpackTuple(args,"MultiValueSorter_add",0,3,argv))) goto fail;
57678 return _wrap_MultiValueSorter_add__SWIG_1(self, argc, argv);
57681 return _wrap_MultiValueSorter_add__SWIG_0(self, argc, argv);
57684 SWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'MultiValueSorter_add'.\n"
57685 " Possible C/C++ prototypes are:\n"
57686 " add(Xapian::MultiValueSorter *,Xapian::valueno,bool)\n"
57687 " add(Xapian::MultiValueSorter *,Xapian::valueno)\n");
57690 static __attribute__ ((__unused__)) PyObject *_wrap_delete_MultiValueSorter(PyObject *, PyObject *args) {
57691 PyObject *resultobj = 0;
57692 Xapian::MultiValueSorter *arg1 = (Xapian::MultiValueSorter *) 0 ;
57695 PyObject *swig_obj[1] ;
57696 if (!args) goto fail;
57697 swig_obj[0] = args;
57698 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[33], 0x1 | 0, 0);
57699 if (!(res1 >= 0)) {
57700 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_MultiValueSorter" "', argument " "1"" of type '" "Xapian::MultiValueSorter *""'"); goto fail; } while(0);
57702 arg1 = reinterpret_cast< Xapian::MultiValueSorter * >(argp1);
57704 SWIG_Python_Thread_Allow _swig_thread_allow;
57709 _swig_thread_allow.end();
57710 Xapian::SetPythonException();
57714 _swig_thread_allow.end();
57716 resultobj = SWIG_Py_Void();
57721 static __attribute__ ((__unused__)) PyObject *MultiValueSorter_swigregister(PyObject *, PyObject *args) {
57723 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
57724 SWIG_TypeNewClientData(swig_types[33], SwigPyClientData_New(obj));
57725 return SWIG_Py_Void();
57727 static __attribute__ ((__unused__)) PyObject *MultiValueSorter_swiginit(PyObject *, PyObject *args) {
57728 return SWIG_Python_InitShadowInstance(args);
57730 static __attribute__ ((__unused__)) PyObject *_wrap_new_ValueSetMatchDecider(PyObject *, PyObject *args) {
57731 PyObject *resultobj = 0;
57732 Xapian::valueno arg1 ;
57734 unsigned int val1 ;
57738 PyObject *swig_obj[2] ;
57739 Xapian::ValueSetMatchDecider *result = 0 ;
57740 if (!SWIG_Python_UnpackTuple(args,"new_ValueSetMatchDecider",2,2,swig_obj)) goto fail;
57741 ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
57742 if (!(ecode1 >= 0)) {
57743 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_ValueSetMatchDecider" "', argument " "1"" of type '" "Xapian::valueno""'"); goto fail; } while(0);
57745 arg1 = static_cast< Xapian::valueno >(val1);
57746 ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
57747 if (!(ecode2 >= 0)) {
57748 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_ValueSetMatchDecider" "', argument " "2"" of type '" "bool""'"); goto fail; } while(0);
57750 arg2 = static_cast< bool >(val2);
57752 SWIG_Python_Thread_Allow _swig_thread_allow;
57755 result = (Xapian::ValueSetMatchDecider *)new Xapian::ValueSetMatchDecider(arg1,arg2);
57757 _swig_thread_allow.end();
57758 Xapian::SetPythonException();
57762 _swig_thread_allow.end();
57764 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[63], ((0x1 << 1) | 0x1) | 0);
57769 static __attribute__ ((__unused__)) PyObject *_wrap_ValueSetMatchDecider_add_value(PyObject *, PyObject *args) {
57770 PyObject *resultobj = 0;
57771 Xapian::ValueSetMatchDecider *arg1 = (Xapian::ValueSetMatchDecider *) 0 ;
57772 std::string *arg2 = 0 ;
57776 PyObject *swig_obj[2] ;
57777 if (!SWIG_Python_UnpackTuple(args,"ValueSetMatchDecider_add_value",2,2,swig_obj)) goto fail;
57778 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[63], 0 | 0, 0);
57779 if (!(res1 >= 0)) {
57780 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "ValueSetMatchDecider_add_value" "', argument " "1"" of type '" "Xapian::ValueSetMatchDecider *""'"); goto fail; } while(0);
57782 arg1 = reinterpret_cast< Xapian::ValueSetMatchDecider * >(argp1);
57784 std::string *ptr = (std::string *)0;
57785 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
57786 if (!(res2 >= 0)) {
57787 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "ValueSetMatchDecider_add_value" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
57790 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "ValueSetMatchDecider_add_value" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
57795 SWIG_Python_Thread_Allow _swig_thread_allow;
57798 (arg1)->add_value((std::string const &)*arg2);
57800 _swig_thread_allow.end();
57801 Xapian::SetPythonException();
57805 _swig_thread_allow.end();
57807 resultobj = SWIG_Py_Void();
57808 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
57811 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
57814 static __attribute__ ((__unused__)) PyObject *_wrap_ValueSetMatchDecider_remove_value(PyObject *, PyObject *args) {
57815 PyObject *resultobj = 0;
57816 Xapian::ValueSetMatchDecider *arg1 = (Xapian::ValueSetMatchDecider *) 0 ;
57817 std::string *arg2 = 0 ;
57821 PyObject *swig_obj[2] ;
57822 if (!SWIG_Python_UnpackTuple(args,"ValueSetMatchDecider_remove_value",2,2,swig_obj)) goto fail;
57823 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[63], 0 | 0, 0);
57824 if (!(res1 >= 0)) {
57825 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "ValueSetMatchDecider_remove_value" "', argument " "1"" of type '" "Xapian::ValueSetMatchDecider *""'"); goto fail; } while(0);
57827 arg1 = reinterpret_cast< Xapian::ValueSetMatchDecider * >(argp1);
57829 std::string *ptr = (std::string *)0;
57830 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
57831 if (!(res2 >= 0)) {
57832 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "ValueSetMatchDecider_remove_value" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
57835 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "ValueSetMatchDecider_remove_value" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
57840 SWIG_Python_Thread_Allow _swig_thread_allow;
57843 (arg1)->remove_value((std::string const &)*arg2);
57845 _swig_thread_allow.end();
57846 Xapian::SetPythonException();
57850 _swig_thread_allow.end();
57852 resultobj = SWIG_Py_Void();
57853 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
57856 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
57859 static __attribute__ ((__unused__)) PyObject *_wrap_delete_ValueSetMatchDecider(PyObject *, PyObject *args) {
57860 PyObject *resultobj = 0;
57861 Xapian::ValueSetMatchDecider *arg1 = (Xapian::ValueSetMatchDecider *) 0 ;
57864 PyObject *swig_obj[1] ;
57865 if (!args) goto fail;
57866 swig_obj[0] = args;
57867 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[63], 0x1 | 0, 0);
57868 if (!(res1 >= 0)) {
57869 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_ValueSetMatchDecider" "', argument " "1"" of type '" "Xapian::ValueSetMatchDecider *""'"); goto fail; } while(0);
57871 arg1 = reinterpret_cast< Xapian::ValueSetMatchDecider * >(argp1);
57873 SWIG_Python_Thread_Allow _swig_thread_allow;
57878 _swig_thread_allow.end();
57879 Xapian::SetPythonException();
57883 _swig_thread_allow.end();
57885 resultobj = SWIG_Py_Void();
57890 static __attribute__ ((__unused__)) PyObject *ValueSetMatchDecider_swigregister(PyObject *, PyObject *args) {
57892 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
57893 SWIG_TypeNewClientData(swig_types[63], SwigPyClientData_New(obj));
57894 return SWIG_Py_Void();
57896 static __attribute__ ((__unused__)) PyObject *ValueSetMatchDecider_swiginit(PyObject *, PyObject *args) {
57897 return SWIG_Python_InitShadowInstance(args);
57899 static __attribute__ ((__unused__)) PyObject *_wrap_new_Compactor(PyObject *, PyObject *args) {
57900 PyObject *resultobj = 0;
57901 PyObject *arg1 = (PyObject *) 0 ;
57902 PyObject *swig_obj[1] ;
57903 Xapian::Compactor *result = 0 ;
57904 if (!args) goto fail;
57905 swig_obj[0] = args;
57906 arg1 = swig_obj[0];
57908 SWIG_Python_Thread_Allow _swig_thread_allow;
57911 if ( arg1 != (&_Py_NoneStruct) ) {
57912 result = (Xapian::Compactor *)new SwigDirector_Compactor(arg1);
57914 result = (Xapian::Compactor *)new Xapian::Compactor();
57917 _swig_thread_allow.end();
57918 Xapian::SetPythonException();
57922 _swig_thread_allow.end();
57924 resultobj = SWIG_Python_NewPointerObj(const_cast< void * >(static_cast< const void * >(result)), swig_types[3], ((0x1 << 1) | 0x1) | 0);
57929 static __attribute__ ((__unused__)) PyObject *_wrap_delete_Compactor(PyObject *, PyObject *args) {
57930 PyObject *resultobj = 0;
57931 Xapian::Compactor *arg1 = (Xapian::Compactor *) 0 ;
57934 PyObject *swig_obj[1] ;
57935 if (!args) goto fail;
57936 swig_obj[0] = args;
57937 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[3], 0x1 | 0, 0);
57938 if (!(res1 >= 0)) {
57939 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "delete_Compactor" "', argument " "1"" of type '" "Xapian::Compactor *""'"); goto fail; } while(0);
57941 arg1 = reinterpret_cast< Xapian::Compactor * >(argp1);
57943 SWIG_Python_Thread_Allow _swig_thread_allow;
57948 _swig_thread_allow.end();
57949 Xapian::SetPythonException();
57953 _swig_thread_allow.end();
57955 resultobj = SWIG_Py_Void();
57960 static __attribute__ ((__unused__)) PyObject *_wrap_Compactor_set_block_size(PyObject *, PyObject *args) {
57961 PyObject *resultobj = 0;
57962 Xapian::Compactor *arg1 = (Xapian::Compactor *) 0 ;
57968 PyObject *swig_obj[2] ;
57969 if (!SWIG_Python_UnpackTuple(args,"Compactor_set_block_size",2,2,swig_obj)) goto fail;
57970 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[3], 0 | 0, 0);
57971 if (!(res1 >= 0)) {
57972 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Compactor_set_block_size" "', argument " "1"" of type '" "Xapian::Compactor *""'"); goto fail; } while(0);
57974 arg1 = reinterpret_cast< Xapian::Compactor * >(argp1);
57975 ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
57976 if (!(ecode2 >= 0)) {
57977 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Compactor_set_block_size" "', argument " "2"" of type '" "size_t""'"); goto fail; } while(0);
57979 arg2 = static_cast< size_t >(val2);
57981 SWIG_Python_Thread_Allow _swig_thread_allow;
57984 (arg1)->set_block_size(arg2);
57986 _swig_thread_allow.end();
57987 Xapian::SetPythonException();
57991 _swig_thread_allow.end();
57993 resultobj = SWIG_Py_Void();
57998 static __attribute__ ((__unused__)) PyObject *_wrap_Compactor_set_renumber(PyObject *, PyObject *args) {
57999 PyObject *resultobj = 0;
58000 Xapian::Compactor *arg1 = (Xapian::Compactor *) 0 ;
58006 PyObject *swig_obj[2] ;
58007 if (!SWIG_Python_UnpackTuple(args,"Compactor_set_renumber",2,2,swig_obj)) goto fail;
58008 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[3], 0 | 0, 0);
58009 if (!(res1 >= 0)) {
58010 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Compactor_set_renumber" "', argument " "1"" of type '" "Xapian::Compactor *""'"); goto fail; } while(0);
58012 arg1 = reinterpret_cast< Xapian::Compactor * >(argp1);
58013 ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
58014 if (!(ecode2 >= 0)) {
58015 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Compactor_set_renumber" "', argument " "2"" of type '" "bool""'"); goto fail; } while(0);
58017 arg2 = static_cast< bool >(val2);
58019 SWIG_Python_Thread_Allow _swig_thread_allow;
58022 (arg1)->set_renumber(arg2);
58024 _swig_thread_allow.end();
58025 Xapian::SetPythonException();
58029 _swig_thread_allow.end();
58031 resultobj = SWIG_Py_Void();
58036 static __attribute__ ((__unused__)) PyObject *_wrap_Compactor_set_multipass(PyObject *, PyObject *args) {
58037 PyObject *resultobj = 0;
58038 Xapian::Compactor *arg1 = (Xapian::Compactor *) 0 ;
58044 PyObject *swig_obj[2] ;
58045 if (!SWIG_Python_UnpackTuple(args,"Compactor_set_multipass",2,2,swig_obj)) goto fail;
58046 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[3], 0 | 0, 0);
58047 if (!(res1 >= 0)) {
58048 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Compactor_set_multipass" "', argument " "1"" of type '" "Xapian::Compactor *""'"); goto fail; } while(0);
58050 arg1 = reinterpret_cast< Xapian::Compactor * >(argp1);
58051 ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
58052 if (!(ecode2 >= 0)) {
58053 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Compactor_set_multipass" "', argument " "2"" of type '" "bool""'"); goto fail; } while(0);
58055 arg2 = static_cast< bool >(val2);
58057 SWIG_Python_Thread_Allow _swig_thread_allow;
58060 (arg1)->set_multipass(arg2);
58062 _swig_thread_allow.end();
58063 Xapian::SetPythonException();
58067 _swig_thread_allow.end();
58069 resultobj = SWIG_Py_Void();
58074 static __attribute__ ((__unused__)) PyObject *_wrap_Compactor_set_compaction_level(PyObject *, PyObject *args) {
58075 PyObject *resultobj = 0;
58076 Xapian::Compactor *arg1 = (Xapian::Compactor *) 0 ;
58077 Xapian::Compactor::compaction_level arg2 ;
58082 PyObject *swig_obj[2] ;
58083 if (!SWIG_Python_UnpackTuple(args,"Compactor_set_compaction_level",2,2,swig_obj)) goto fail;
58084 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[3], 0 | 0, 0);
58085 if (!(res1 >= 0)) {
58086 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Compactor_set_compaction_level" "', argument " "1"" of type '" "Xapian::Compactor *""'"); goto fail; } while(0);
58088 arg1 = reinterpret_cast< Xapian::Compactor * >(argp1);
58089 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
58090 if (!(ecode2 >= 0)) {
58091 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "Compactor_set_compaction_level" "', argument " "2"" of type '" "Xapian::Compactor::compaction_level""'"); goto fail; } while(0);
58093 arg2 = static_cast< Xapian::Compactor::compaction_level >(val2);
58095 SWIG_Python_Thread_Allow _swig_thread_allow;
58098 (arg1)->set_compaction_level(arg2);
58100 _swig_thread_allow.end();
58101 Xapian::SetPythonException();
58105 _swig_thread_allow.end();
58107 resultobj = SWIG_Py_Void();
58112 static __attribute__ ((__unused__)) PyObject *_wrap_Compactor_set_destdir(PyObject *, PyObject *args) {
58113 PyObject *resultobj = 0;
58114 Xapian::Compactor *arg1 = (Xapian::Compactor *) 0 ;
58115 std::string *arg2 = 0 ;
58119 PyObject *swig_obj[2] ;
58120 if (!SWIG_Python_UnpackTuple(args,"Compactor_set_destdir",2,2,swig_obj)) goto fail;
58121 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[3], 0 | 0, 0);
58122 if (!(res1 >= 0)) {
58123 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Compactor_set_destdir" "', argument " "1"" of type '" "Xapian::Compactor *""'"); goto fail; } while(0);
58125 arg1 = reinterpret_cast< Xapian::Compactor * >(argp1);
58127 std::string *ptr = (std::string *)0;
58128 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
58129 if (!(res2 >= 0)) {
58130 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Compactor_set_destdir" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
58133 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Compactor_set_destdir" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
58138 SWIG_Python_Thread_Allow _swig_thread_allow;
58141 (arg1)->set_destdir((std::string const &)*arg2);
58143 _swig_thread_allow.end();
58144 Xapian::SetPythonException();
58148 _swig_thread_allow.end();
58150 resultobj = SWIG_Py_Void();
58151 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
58154 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
58157 static __attribute__ ((__unused__)) PyObject *_wrap_Compactor_add_source(PyObject *, PyObject *args) {
58158 PyObject *resultobj = 0;
58159 Xapian::Compactor *arg1 = (Xapian::Compactor *) 0 ;
58160 std::string *arg2 = 0 ;
58164 PyObject *swig_obj[2] ;
58165 if (!SWIG_Python_UnpackTuple(args,"Compactor_add_source",2,2,swig_obj)) goto fail;
58166 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[3], 0 | 0, 0);
58167 if (!(res1 >= 0)) {
58168 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Compactor_add_source" "', argument " "1"" of type '" "Xapian::Compactor *""'"); goto fail; } while(0);
58170 arg1 = reinterpret_cast< Xapian::Compactor * >(argp1);
58172 std::string *ptr = (std::string *)0;
58173 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
58174 if (!(res2 >= 0)) {
58175 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Compactor_add_source" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
58178 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Compactor_add_source" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
58183 SWIG_Python_Thread_Allow _swig_thread_allow;
58186 (arg1)->add_source((std::string const &)*arg2);
58188 _swig_thread_allow.end();
58189 Xapian::SetPythonException();
58193 _swig_thread_allow.end();
58195 resultobj = SWIG_Py_Void();
58196 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
58199 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
58202 static __attribute__ ((__unused__)) PyObject *_wrap_Compactor_compact(PyObject *, PyObject *args) {
58203 PyObject *resultobj = 0;
58204 Xapian::Compactor *arg1 = (Xapian::Compactor *) 0 ;
58207 PyObject *swig_obj[1] ;
58208 if (!args) goto fail;
58209 swig_obj[0] = args;
58210 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[3], 0 | 0, 0);
58211 if (!(res1 >= 0)) {
58212 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Compactor_compact" "', argument " "1"" of type '" "Xapian::Compactor *""'"); goto fail; } while(0);
58214 arg1 = reinterpret_cast< Xapian::Compactor * >(argp1);
58216 SWIG_Python_Thread_Allow _swig_thread_allow;
58221 _swig_thread_allow.end();
58222 Xapian::SetPythonException();
58226 _swig_thread_allow.end();
58228 resultobj = SWIG_Py_Void();
58233 static __attribute__ ((__unused__)) PyObject *_wrap_Compactor_set_status(PyObject *, PyObject *args) {
58234 PyObject *resultobj = 0;
58235 Xapian::Compactor *arg1 = (Xapian::Compactor *) 0 ;
58236 std::string *arg2 = 0 ;
58237 std::string *arg3 = 0 ;
58242 PyObject *swig_obj[3] ;
58243 Swig::Director *director = 0;
58244 bool upcall = false;
58245 if (!SWIG_Python_UnpackTuple(args,"Compactor_set_status",3,3,swig_obj)) goto fail;
58246 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[3], 0 | 0, 0);
58247 if (!(res1 >= 0)) {
58248 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Compactor_set_status" "', argument " "1"" of type '" "Xapian::Compactor *""'"); goto fail; } while(0);
58250 arg1 = reinterpret_cast< Xapian::Compactor * >(argp1);
58252 std::string *ptr = (std::string *)0;
58253 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
58254 if (!(res2 >= 0)) {
58255 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Compactor_set_status" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
58258 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Compactor_set_status" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
58263 std::string *ptr = (std::string *)0;
58264 res3 = SWIG_anystring_as_ptr(&(swig_obj[2]), &ptr);
58265 if (!(res3 >= 0)) {
58266 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (-1)) ? res3 : -5)), "in method '" "Compactor_set_status" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while(0);
58269 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Compactor_set_status" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while(0);
58273 director = dynamic_cast<Swig::Director*>(arg1);
58274 upcall = (director && (director->swig_get_self()==swig_obj[0]));
58279 (arg1)->Xapian::Compactor::set_status((std::string const &)*arg2,(std::string const &)*arg3);
58281 (arg1)->set_status((std::string const &)*arg2,(std::string const &)*arg3);
58284 Xapian::SetPythonException();
58288 } catch (Swig::DirectorException&) {
58291 resultobj = SWIG_Py_Void();
58292 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
58293 if (((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3;
58296 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
58297 if (((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3;
58300 static __attribute__ ((__unused__)) PyObject *_wrap_Compactor_resolve_duplicate_metadata(PyObject *, PyObject *args) {
58301 PyObject *resultobj = 0;
58302 Xapian::Compactor *arg1 = (Xapian::Compactor *) 0 ;
58303 std::string *arg2 = 0 ;
58305 std::string *arg4 ;
58313 PyObject *swig_obj[4] ;
58314 Swig::Director *director = 0;
58315 bool upcall = false;
58316 std::string result;
58317 if (!SWIG_Python_UnpackTuple(args,"Compactor_resolve_duplicate_metadata",4,4,swig_obj)) goto fail;
58318 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[3], 0 | 0, 0);
58319 if (!(res1 >= 0)) {
58320 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "Compactor_resolve_duplicate_metadata" "', argument " "1"" of type '" "Xapian::Compactor *""'"); goto fail; } while(0);
58322 arg1 = reinterpret_cast< Xapian::Compactor * >(argp1);
58324 std::string *ptr = (std::string *)0;
58325 res2 = SWIG_anystring_as_ptr(&(swig_obj[1]), &ptr);
58326 if (!(res2 >= 0)) {
58327 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (-1)) ? res2 : -5)), "in method '" "Compactor_resolve_duplicate_metadata" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
58330 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "Compactor_resolve_duplicate_metadata" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0);
58334 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
58335 if (!(ecode3 >= 0)) {
58336 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "Compactor_resolve_duplicate_metadata" "', argument " "3"" of type '" "size_t""'"); goto fail; } while(0);
58338 arg3 = static_cast< size_t >(val3);
58339 res4 = SWIG_Python_ConvertPtrAndOwn(swig_obj[3], &argp4, swig_types[77], 0 | 0, 0);
58340 if (!(res4 >= 0)) {
58341 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (-1)) ? res4 : -5)), "in method '" "Compactor_resolve_duplicate_metadata" "', argument " "4"" of type '" "std::string const []""'"); goto fail; } while(0);
58343 arg4 = reinterpret_cast< std::string * >(argp4);
58344 director = dynamic_cast<Swig::Director*>(arg1);
58345 upcall = (director && (director->swig_get_self()==swig_obj[0]));
58350 result = (arg1)->Xapian::Compactor::resolve_duplicate_metadata((std::string const &)*arg2,arg3,(std::string const (*))arg4);
58352 result = (arg1)->resolve_duplicate_metadata((std::string const &)*arg2,arg3,(std::string const (*))arg4);
58355 Xapian::SetPythonException();
58359 } catch (Swig::DirectorException&) {
58362 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
58363 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
58366 if (((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2;
58369 static __attribute__ ((__unused__)) PyObject *_wrap_disown_Compactor(PyObject *, PyObject *args) {
58370 PyObject *resultobj = 0;
58371 Xapian::Compactor *arg1 = (Xapian::Compactor *) 0 ;
58374 PyObject *swig_obj[1] ;
58375 if (!args) goto fail;
58376 swig_obj[0] = args;
58377 res1 = SWIG_Python_ConvertPtrAndOwn(swig_obj[0], &argp1, swig_types[3], 0 | 0, 0);
58378 if (!(res1 >= 0)) {
58379 do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (-1)) ? res1 : -5)), "in method '" "disown_Compactor" "', argument " "1"" of type '" "Xapian::Compactor *""'"); goto fail; } while(0);
58381 arg1 = reinterpret_cast< Xapian::Compactor * >(argp1);
58383 SWIG_Python_Thread_Allow _swig_thread_allow;
58385 Swig::Director *director = dynamic_cast<Swig::Director *>(arg1);
58386 if (director) director->swig_disown();
58388 _swig_thread_allow.end();
58390 resultobj = SWIG_Py_Void();
58395 static __attribute__ ((__unused__)) PyObject *Compactor_swigregister(PyObject *, PyObject *args) {
58397 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return __null;
58398 SWIG_TypeNewClientData(swig_types[3], SwigPyClientData_New(obj));
58399 return SWIG_Py_Void();
58401 static __attribute__ ((__unused__)) PyObject *Compactor_swiginit(PyObject *, PyObject *args) {
58402 return SWIG_Python_InitShadowInstance(args);
58404 static PyMethodDef SwigMethods[] = {
58405 { (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, 0x0008, __null},
58406 { (char *)"delete_SwigPyIterator", (PyCFunction)_wrap_delete_SwigPyIterator, 0x0008, __null},
58407 { (char *)"SwigPyIterator_value", (PyCFunction)_wrap_SwigPyIterator_value, 0x0008, __null},
58408 { (char *)"SwigPyIterator_incr", _wrap_SwigPyIterator_incr, 0x0001, __null},
58409 { (char *)"SwigPyIterator_decr", _wrap_SwigPyIterator_decr, 0x0001, __null},
58410 { (char *)"SwigPyIterator_distance", _wrap_SwigPyIterator_distance, 0x0001, __null},
58411 { (char *)"SwigPyIterator_equal", _wrap_SwigPyIterator_equal, 0x0001, __null},
58412 { (char *)"SwigPyIterator_copy", (PyCFunction)_wrap_SwigPyIterator_copy, 0x0008, __null},
58413 { (char *)"SwigPyIterator_next", (PyCFunction)_wrap_SwigPyIterator_next, 0x0008, __null},
58414 { (char *)"SwigPyIterator___next__", (PyCFunction)_wrap_SwigPyIterator___next__, 0x0008, __null},
58415 { (char *)"SwigPyIterator_previous", (PyCFunction)_wrap_SwigPyIterator_previous, 0x0008, __null},
58416 { (char *)"SwigPyIterator_advance", _wrap_SwigPyIterator_advance, 0x0001, __null},
58417 { (char *)"SwigPyIterator___eq__", _wrap_SwigPyIterator___eq__, 0x0001, __null},
58418 { (char *)"SwigPyIterator___ne__", _wrap_SwigPyIterator___ne__, 0x0001, __null},
58419 { (char *)"SwigPyIterator___iadd__", _wrap_SwigPyIterator___iadd__, 0x0001, __null},
58420 { (char *)"SwigPyIterator___isub__", _wrap_SwigPyIterator___isub__, 0x0001, __null},
58421 { (char *)"SwigPyIterator___add__", _wrap_SwigPyIterator___add__, 0x0001, __null},
58422 { (char *)"SwigPyIterator___sub__", _wrap_SwigPyIterator___sub__, 0x0001, __null},
58423 { (char *)"SwigPyIterator_swigregister", SwigPyIterator_swigregister, 0x0001, __null},
58424 { (char *)"Error_get_type", (PyCFunction)_wrap_Error_get_type, 0x0008, (char *)"\n"
58425 "The type of this error (e.g. \"DocNotFoundError\".).\n"
58427 "const char* Xapian::Error::get_type() const \n"
58429 { (char *)"Error_get_msg", (PyCFunction)_wrap_Error_get_msg, 0x0008, (char *)"\n"
58430 "Message giving details of the error, intended for human consumption.\n"
58432 "const std::string& Xapian::Error::get_msg() const \n"
58434 { (char *)"Error_get_context", (PyCFunction)_wrap_Error_get_context, 0x0008, (char *)"\n"
58435 "Optional context information.\n"
58437 "const std::string& Xapian::Error::get_context() const\n"
58439 "This context is intended for use by Xapian::ErrorHandler (for example\n"
58440 "so it can know which remote server is unreliable and report the\n"
58441 "problem and remove that server from those being searched). But it's\n"
58442 "typically a plain-text string, and so also fit for human consumption.\n"
58445 { (char *)"Error_get_error_string", (PyCFunction)_wrap_Error_get_error_string, 0x0008, (char *)"\n"
58446 "Returns any system error string associated with this exception.\n"
58448 "const char* Xapian::Error::get_error_string() const\n"
58450 "The system error string may come from errno, h_errno (on UNIX), or\n"
58451 "GetLastError() (on MS Windows). If there is no associated system error\n"
58452 "string, NULL is returned. \n"
58454 { (char *)"Error___str__", (PyCFunction)_wrap_Error___str__, 0x0008, __null},
58455 { (char *)"delete_Error", (PyCFunction)_wrap_delete_Error, 0x0008, __null},
58456 { (char *)"Error_swigregister", Error_swigregister, 0x0001, __null},
58457 { (char *)"delete_LogicError", (PyCFunction)_wrap_delete_LogicError, 0x0008, __null},
58458 { (char *)"LogicError_swigregister", LogicError_swigregister, 0x0001, __null},
58459 { (char *)"delete_RuntimeError", (PyCFunction)_wrap_delete_RuntimeError, 0x0008, __null},
58460 { (char *)"RuntimeError_swigregister", RuntimeError_swigregister, 0x0001, __null},
58461 { (char *)"new_AssertionError", _wrap_new_AssertionError, 0x0001, (char *)"\n"
58462 "Construct from message and errno value.\n"
58464 "Xapian::AssertionError::AssertionError(const std::string &msg_, int\n"
58467 { (char *)"delete_AssertionError", (PyCFunction)_wrap_delete_AssertionError, 0x0008, __null},
58468 { (char *)"AssertionError_swigregister", AssertionError_swigregister, 0x0001, __null},
58469 { (char *)"AssertionError_swiginit", AssertionError_swiginit, 0x0001, __null},
58470 { (char *)"new_InvalidArgumentError", _wrap_new_InvalidArgumentError, 0x0001, (char *)"\n"
58471 "Construct from message and errno value.\n"
58473 "Xapian::InvalidArgumentError::InvalidArgumentError(const std::string\n"
58474 "&msg_, int errno_) \n"
58476 { (char *)"delete_InvalidArgumentError", (PyCFunction)_wrap_delete_InvalidArgumentError, 0x0008, __null},
58477 { (char *)"InvalidArgumentError_swigregister", InvalidArgumentError_swigregister, 0x0001, __null},
58478 { (char *)"InvalidArgumentError_swiginit", InvalidArgumentError_swiginit, 0x0001, __null},
58479 { (char *)"new_InvalidOperationError", _wrap_new_InvalidOperationError, 0x0001, (char *)"\n"
58480 "Construct from message and errno value.\n"
58482 "Xapian::InvalidOperationError::InvalidOperationError(const std::string\n"
58483 "&msg_, int errno_) \n"
58485 { (char *)"delete_InvalidOperationError", (PyCFunction)_wrap_delete_InvalidOperationError, 0x0008, __null},
58486 { (char *)"InvalidOperationError_swigregister", InvalidOperationError_swigregister, 0x0001, __null},
58487 { (char *)"InvalidOperationError_swiginit", InvalidOperationError_swiginit, 0x0001, __null},
58488 { (char *)"new_UnimplementedError", _wrap_new_UnimplementedError, 0x0001, (char *)"\n"
58489 "Construct from message and errno value.\n"
58491 "Xapian::UnimplementedError::UnimplementedError(const std::string\n"
58492 "&msg_, int errno_) \n"
58494 { (char *)"delete_UnimplementedError", (PyCFunction)_wrap_delete_UnimplementedError, 0x0008, __null},
58495 { (char *)"UnimplementedError_swigregister", UnimplementedError_swigregister, 0x0001, __null},
58496 { (char *)"UnimplementedError_swiginit", UnimplementedError_swiginit, 0x0001, __null},
58497 { (char *)"new_DatabaseError", _wrap_new_DatabaseError, 0x0001, (char *)"\n"
58498 "Construct from message and errno value.\n"
58500 "Xapian::DatabaseError::DatabaseError(const std::string &msg_, int\n"
58503 { (char *)"delete_DatabaseError", (PyCFunction)_wrap_delete_DatabaseError, 0x0008, __null},
58504 { (char *)"DatabaseError_swigregister", DatabaseError_swigregister, 0x0001, __null},
58505 { (char *)"DatabaseError_swiginit", DatabaseError_swiginit, 0x0001, __null},
58506 { (char *)"new_DatabaseCorruptError", _wrap_new_DatabaseCorruptError, 0x0001, (char *)"\n"
58507 "Construct from message and errno value.\n"
58509 "Xapian::DatabaseCorruptError::DatabaseCorruptError(const std::string\n"
58510 "&msg_, int errno_) \n"
58512 { (char *)"delete_DatabaseCorruptError", (PyCFunction)_wrap_delete_DatabaseCorruptError, 0x0008, __null},
58513 { (char *)"DatabaseCorruptError_swigregister", DatabaseCorruptError_swigregister, 0x0001, __null},
58514 { (char *)"DatabaseCorruptError_swiginit", DatabaseCorruptError_swiginit, 0x0001, __null},
58515 { (char *)"new_DatabaseCreateError", _wrap_new_DatabaseCreateError, 0x0001, (char *)"\n"
58516 "Construct from message and errno value.\n"
58518 "Xapian::DatabaseCreateError::DatabaseCreateError(const std::string\n"
58519 "&msg_, int errno_) \n"
58521 { (char *)"delete_DatabaseCreateError", (PyCFunction)_wrap_delete_DatabaseCreateError, 0x0008, __null},
58522 { (char *)"DatabaseCreateError_swigregister", DatabaseCreateError_swigregister, 0x0001, __null},
58523 { (char *)"DatabaseCreateError_swiginit", DatabaseCreateError_swiginit, 0x0001, __null},
58524 { (char *)"new_DatabaseLockError", _wrap_new_DatabaseLockError, 0x0001, (char *)"\n"
58525 "Construct from message and errno value.\n"
58527 "Xapian::DatabaseLockError::DatabaseLockError(const std::string &msg_,\n"
58530 { (char *)"delete_DatabaseLockError", (PyCFunction)_wrap_delete_DatabaseLockError, 0x0008, __null},
58531 { (char *)"DatabaseLockError_swigregister", DatabaseLockError_swigregister, 0x0001, __null},
58532 { (char *)"DatabaseLockError_swiginit", DatabaseLockError_swiginit, 0x0001, __null},
58533 { (char *)"new_DatabaseModifiedError", _wrap_new_DatabaseModifiedError, 0x0001, (char *)"\n"
58534 "Construct from message and errno value.\n"
58536 "Xapian::DatabaseModifiedError::DatabaseModifiedError(const std::string\n"
58537 "&msg_, int errno_) \n"
58539 { (char *)"delete_DatabaseModifiedError", (PyCFunction)_wrap_delete_DatabaseModifiedError, 0x0008, __null},
58540 { (char *)"DatabaseModifiedError_swigregister", DatabaseModifiedError_swigregister, 0x0001, __null},
58541 { (char *)"DatabaseModifiedError_swiginit", DatabaseModifiedError_swiginit, 0x0001, __null},
58542 { (char *)"new_DatabaseOpeningError", _wrap_new_DatabaseOpeningError, 0x0001, (char *)"\n"
58543 "Construct from message and errno value.\n"
58545 "Xapian::DatabaseOpeningError::DatabaseOpeningError(const std::string\n"
58546 "&msg_, int errno_) \n"
58548 { (char *)"delete_DatabaseOpeningError", (PyCFunction)_wrap_delete_DatabaseOpeningError, 0x0008, __null},
58549 { (char *)"DatabaseOpeningError_swigregister", DatabaseOpeningError_swigregister, 0x0001, __null},
58550 { (char *)"DatabaseOpeningError_swiginit", DatabaseOpeningError_swiginit, 0x0001, __null},
58551 { (char *)"new_DatabaseVersionError", _wrap_new_DatabaseVersionError, 0x0001, (char *)"\n"
58552 "Construct from message and errno value.\n"
58554 "Xapian::DatabaseVersionError::DatabaseVersionError(const std::string\n"
58555 "&msg_, int errno_) \n"
58557 { (char *)"delete_DatabaseVersionError", (PyCFunction)_wrap_delete_DatabaseVersionError, 0x0008, __null},
58558 { (char *)"DatabaseVersionError_swigregister", DatabaseVersionError_swigregister, 0x0001, __null},
58559 { (char *)"DatabaseVersionError_swiginit", DatabaseVersionError_swiginit, 0x0001, __null},
58560 { (char *)"new_DocNotFoundError", _wrap_new_DocNotFoundError, 0x0001, (char *)"\n"
58561 "Construct from message and errno value.\n"
58563 "Xapian::DocNotFoundError::DocNotFoundError(const std::string &msg_,\n"
58566 { (char *)"delete_DocNotFoundError", (PyCFunction)_wrap_delete_DocNotFoundError, 0x0008, __null},
58567 { (char *)"DocNotFoundError_swigregister", DocNotFoundError_swigregister, 0x0001, __null},
58568 { (char *)"DocNotFoundError_swiginit", DocNotFoundError_swiginit, 0x0001, __null},
58569 { (char *)"new_FeatureUnavailableError", _wrap_new_FeatureUnavailableError, 0x0001, (char *)"\n"
58570 "Construct from message and errno value.\n"
58572 "Xapian::FeatureUnavailableError::FeatureUnavailableError(const\n"
58573 "std::string &msg_, int errno_) \n"
58575 { (char *)"delete_FeatureUnavailableError", (PyCFunction)_wrap_delete_FeatureUnavailableError, 0x0008, __null},
58576 { (char *)"FeatureUnavailableError_swigregister", FeatureUnavailableError_swigregister, 0x0001, __null},
58577 { (char *)"FeatureUnavailableError_swiginit", FeatureUnavailableError_swiginit, 0x0001, __null},
58578 { (char *)"new_InternalError", _wrap_new_InternalError, 0x0001, (char *)"\n"
58579 "Construct from message and errno value.\n"
58581 "Xapian::InternalError::InternalError(const std::string &msg_, int\n"
58584 { (char *)"delete_InternalError", (PyCFunction)_wrap_delete_InternalError, 0x0008, __null},
58585 { (char *)"InternalError_swigregister", InternalError_swigregister, 0x0001, __null},
58586 { (char *)"InternalError_swiginit", InternalError_swiginit, 0x0001, __null},
58587 { (char *)"new_NetworkError", _wrap_new_NetworkError, 0x0001, (char *)"\n"
58588 "Construct from message and errno value.\n"
58590 "Xapian::NetworkError::NetworkError(const std::string &msg_, int\n"
58593 { (char *)"delete_NetworkError", (PyCFunction)_wrap_delete_NetworkError, 0x0008, __null},
58594 { (char *)"NetworkError_swigregister", NetworkError_swigregister, 0x0001, __null},
58595 { (char *)"NetworkError_swiginit", NetworkError_swiginit, 0x0001, __null},
58596 { (char *)"new_NetworkTimeoutError", _wrap_new_NetworkTimeoutError, 0x0001, (char *)"\n"
58597 "Construct from message and errno value.\n"
58599 "Xapian::NetworkTimeoutError::NetworkTimeoutError(const std::string\n"
58600 "&msg_, int errno_) \n"
58602 { (char *)"delete_NetworkTimeoutError", (PyCFunction)_wrap_delete_NetworkTimeoutError, 0x0008, __null},
58603 { (char *)"NetworkTimeoutError_swigregister", NetworkTimeoutError_swigregister, 0x0001, __null},
58604 { (char *)"NetworkTimeoutError_swiginit", NetworkTimeoutError_swiginit, 0x0001, __null},
58605 { (char *)"new_QueryParserError", _wrap_new_QueryParserError, 0x0001, (char *)"\n"
58606 "Construct from message and errno value.\n"
58608 "Xapian::QueryParserError::QueryParserError(const std::string &msg_,\n"
58611 { (char *)"delete_QueryParserError", (PyCFunction)_wrap_delete_QueryParserError, 0x0008, __null},
58612 { (char *)"QueryParserError_swigregister", QueryParserError_swigregister, 0x0001, __null},
58613 { (char *)"QueryParserError_swiginit", QueryParserError_swiginit, 0x0001, __null},
58614 { (char *)"new_SerialisationError", _wrap_new_SerialisationError, 0x0001, (char *)"\n"
58615 "Construct from message and errno value.\n"
58617 "Xapian::SerialisationError::SerialisationError(const std::string\n"
58618 "&msg_, int errno_) \n"
58620 { (char *)"delete_SerialisationError", (PyCFunction)_wrap_delete_SerialisationError, 0x0008, __null},
58621 { (char *)"SerialisationError_swigregister", SerialisationError_swigregister, 0x0001, __null},
58622 { (char *)"SerialisationError_swiginit", SerialisationError_swiginit, 0x0001, __null},
58623 { (char *)"new_RangeError", _wrap_new_RangeError, 0x0001, (char *)"\n"
58624 "Construct from message and errno value.\n"
58626 "Xapian::RangeError::RangeError(const std::string &msg_, int errno_) \n"
58628 { (char *)"delete_RangeError", (PyCFunction)_wrap_delete_RangeError, 0x0008, __null},
58629 { (char *)"RangeError_swigregister", RangeError_swigregister, 0x0001, __null},
58630 { (char *)"RangeError_swiginit", RangeError_swiginit, 0x0001, __null},
58631 { (char *)"version_string", (PyCFunction)_wrap_version_string, 0x0004, __null},
58632 { (char *)"major_version", (PyCFunction)_wrap_major_version, 0x0004, __null},
58633 { (char *)"minor_version", (PyCFunction)_wrap_minor_version, 0x0004, __null},
58634 { (char *)"revision", (PyCFunction)_wrap_revision, 0x0004, __null},
58635 { (char *)"new_PositionIterator", _wrap_new_PositionIterator, 0x0001, (char *)"\n"
58636 "Copying is allowed.\n"
58638 "Xapian::PositionIterator::PositionIterator(const PositionIterator &o)\n"
58640 "The internals are reference counted, so copying is also cheap. \n"
58642 { (char *)"delete_PositionIterator", (PyCFunction)_wrap_delete_PositionIterator, 0x0008, (char *)"\n"
58645 "Xapian::PositionIterator::~PositionIterator() \n"
58647 { (char *)"PositionIterator_get_termpos", (PyCFunction)_wrap_PositionIterator_get_termpos, 0x0008, __null},
58648 { (char *)"PositionIterator_next", (PyCFunction)_wrap_PositionIterator_next, 0x0008, __null},
58649 { (char *)"PositionIterator_equals", _wrap_PositionIterator_equals, 0x0001, __null},
58650 { (char *)"PositionIterator_skip_to", _wrap_PositionIterator_skip_to, 0x0001, (char *)"\n"
58651 "Advance the iterator to the specified termpos.\n"
58653 "void Xapian::PositionIterator::skip_to(Xapian::termpos pos)\n"
58655 "If the specified termpos isn't in the list, position ourselves on the\n"
58656 "first termpos after it (or at_end() if no greater term positions are\n"
58659 { (char *)"PositionIterator___str__", (PyCFunction)_wrap_PositionIterator___str__, 0x0008, (char *)"\n"
58660 "Return a string describing this object.\n"
58662 "std::string Xapian::PositionIterator::get_description() const \n"
58664 { (char *)"PositionIterator___eq__", _wrap_PositionIterator___eq__, 0x0001, __null},
58665 { (char *)"PositionIterator___ne__", _wrap_PositionIterator___ne__, 0x0001, __null},
58666 { (char *)"PositionIterator_swigregister", PositionIterator_swigregister, 0x0001, __null},
58667 { (char *)"PositionIterator_swiginit", PositionIterator_swiginit, 0x0001, __null},
58668 { (char *)"delete_PostingIterator", (PyCFunction)_wrap_delete_PostingIterator, 0x0008, (char *)"\n"
58671 "Xapian::PostingIterator::~PostingIterator() \n"
58673 { (char *)"new_PostingIterator", _wrap_new_PostingIterator, 0x0001, (char *)"\n"
58674 "Copying is allowed.\n"
58676 "Xapian::PostingIterator::PostingIterator(const PostingIterator &other)\n"
58678 "The internals are reference counted, so copying is also cheap. \n"
58680 { (char *)"PostingIterator_skip_to", _wrap_PostingIterator_skip_to, 0x0001, (char *)"\n"
58681 "Advance the iterator to the specified docid.\n"
58683 "void Xapian::PostingIterator::skip_to(Xapian::docid did)\n"
58685 "If the specified docid isn't in the list, position ourselves on the\n"
58686 "first document after it (or at_end() if no greater docids are\n"
58689 { (char *)"PostingIterator_get_doclength", (PyCFunction)_wrap_PostingIterator_get_doclength, 0x0008, (char *)"\n"
58690 "Get the length of the document at the current position in the\n"
58693 "Xapian::termcount Xapian::PostingIterator::get_doclength() const\n"
58695 "This information may be stored in the postlist, in which case this\n"
58696 "lookup should be extremely fast (indeed, not require further disk\n"
58697 "access). If the information is not present in the postlist, it will be\n"
58698 "retrieved from the database, at a greater performance cost. \n"
58700 { (char *)"PostingIterator_get_wdf", (PyCFunction)_wrap_PostingIterator_get_wdf, 0x0008, (char *)"\n"
58701 "Get the within document frequency of the document at the current\n"
58702 "position in the postlist.\n"
58704 "Xapian::termcount Xapian::PostingIterator::get_wdf() const \n"
58706 { (char *)"PostingIterator_positionlist_begin", (PyCFunction)_wrap_PostingIterator_positionlist_begin, 0x0008, (char *)"\n"
58707 "Return PositionIterator pointing to start of positionlist for current\n"
58710 "PositionIterator Xapian::PostingIterator::positionlist_begin() const\n"
58713 { (char *)"PostingIterator_positionlist_end", (PyCFunction)_wrap_PostingIterator_positionlist_end, 0x0008, (char *)"\n"
58714 "Return PositionIterator pointing to end of positionlist for current\n"
58717 "PositionIterator Xapian::PostingIterator::positionlist_end() const \n"
58719 { (char *)"PostingIterator___str__", (PyCFunction)_wrap_PostingIterator___str__, 0x0008, (char *)"\n"
58720 "Return a string describing this object.\n"
58722 "std::string Xapian::PostingIterator::get_description() const \n"
58724 { (char *)"PostingIterator___eq__", _wrap_PostingIterator___eq__, 0x0001, __null},
58725 { (char *)"PostingIterator___ne__", _wrap_PostingIterator___ne__, 0x0001, __null},
58726 { (char *)"PostingIterator_get_docid", (PyCFunction)_wrap_PostingIterator_get_docid, 0x0008, __null},
58727 { (char *)"PostingIterator_next", (PyCFunction)_wrap_PostingIterator_next, 0x0008, __null},
58728 { (char *)"PostingIterator_equals", _wrap_PostingIterator_equals, 0x0001, __null},
58729 { (char *)"PostingIterator_swigregister", PostingIterator_swigregister, 0x0001, __null},
58730 { (char *)"PostingIterator_swiginit", PostingIterator_swiginit, 0x0001, __null},
58731 { (char *)"__eq__", _wrap___eq__, 0x0001, __null},
58732 { (char *)"__ne__", _wrap___ne__, 0x0001, __null},
58733 { (char *)"new_TermIterator", _wrap_new_TermIterator, 0x0001, (char *)"\n"
58734 "Copying is allowed.\n"
58736 "Xapian::TermIterator::TermIterator(const TermIterator &other)\n"
58738 "The internals are reference counted, so copying is also cheap. \n"
58740 { (char *)"delete_TermIterator", (PyCFunction)_wrap_delete_TermIterator, 0x0008, (char *)"\n"
58743 "Xapian::TermIterator::~TermIterator() \n"
58745 { (char *)"TermIterator_get_term", (PyCFunction)_wrap_TermIterator_get_term, 0x0008, __null},
58746 { (char *)"TermIterator_next", (PyCFunction)_wrap_TermIterator_next, 0x0008, __null},
58747 { (char *)"TermIterator_equals", _wrap_TermIterator_equals, 0x0001, __null},
58748 { (char *)"TermIterator_skip_to", _wrap_TermIterator_skip_to, 0x0001, (char *)"\n"
58749 "Advance the iterator to the specified term.\n"
58751 "void Xapian::TermIterator::skip_to(const std::string &tname)\n"
58753 "If the specified term isn't in the list, position ourselves on the\n"
58754 "first term after it (or at_end() if no greater terms are present). \n"
58756 { (char *)"TermIterator_get_wdf", (PyCFunction)_wrap_TermIterator_get_wdf, 0x0008, (char *)"\n"
58757 "Return the wdf of the current term (if meaningful).\n"
58759 "Xapian::termcount Xapian::TermIterator::get_wdf() const\n"
58761 "The wdf (within document frequency) is the number of occurences of a\n"
58762 "term in a particular document. \n"
58764 { (char *)"TermIterator_get_termfreq", (PyCFunction)_wrap_TermIterator_get_termfreq, 0x0008, (char *)"\n"
58765 "Return the term frequency of the current term (if meaningful).\n"
58767 "Xapian::doccount Xapian::TermIterator::get_termfreq() const\n"
58769 "The term frequency is the number of documents which a term indexes. \n"
58771 { (char *)"TermIterator_positionlist_begin", (PyCFunction)_wrap_TermIterator_positionlist_begin, 0x0008, (char *)"\n"
58772 "Return PositionIterator pointing to start of positionlist for current\n"
58775 "PositionIterator Xapian::TermIterator::positionlist_begin() const \n"
58777 { (char *)"TermIterator_positionlist_end", (PyCFunction)_wrap_TermIterator_positionlist_end, 0x0008, (char *)"\n"
58778 "Return PositionIterator pointing to end of positionlist for current\n"
58781 "PositionIterator Xapian::TermIterator::positionlist_end() const \n"
58783 { (char *)"TermIterator___str__", (PyCFunction)_wrap_TermIterator___str__, 0x0008, (char *)"\n"
58784 "Return a string describing this object.\n"
58786 "std::string Xapian::TermIterator::get_description() const \n"
58788 { (char *)"TermIterator___eq__", _wrap_TermIterator___eq__, 0x0001, __null},
58789 { (char *)"TermIterator___ne__", _wrap_TermIterator___ne__, 0x0001, __null},
58790 { (char *)"TermIterator_swigregister", TermIterator_swigregister, 0x0001, __null},
58791 { (char *)"TermIterator_swiginit", TermIterator_swiginit, 0x0001, __null},
58792 { (char *)"new_ValueIterator", _wrap_new_ValueIterator, 0x0001, (char *)"\n"
58793 "Default constructor.\n"
58795 "Xapian::ValueIterator::ValueIterator()\n"
58797 "Creates an uninitialised iterator, which can't be used before being\n"
58798 "assigned to, but is sometimes syntactically convenient. \n"
58800 { (char *)"delete_ValueIterator", (PyCFunction)_wrap_delete_ValueIterator, 0x0008, (char *)"\n"
58803 "Xapian::ValueIterator::~ValueIterator() \n"
58805 { (char *)"ValueIterator_get_value", (PyCFunction)_wrap_ValueIterator_get_value, 0x0008, __null},
58806 { (char *)"ValueIterator_next", (PyCFunction)_wrap_ValueIterator_next, 0x0008, __null},
58807 { (char *)"ValueIterator_equals", _wrap_ValueIterator_equals, 0x0001, __null},
58808 { (char *)"ValueIterator_get_docid", (PyCFunction)_wrap_ValueIterator_get_docid, 0x0008, (char *)"\n"
58809 "Return the docid at the current position.\n"
58811 "Xapian::docid Xapian::ValueIterator::get_docid() const\n"
58813 "If we're iterating over values of a document, this method will throw\n"
58814 "Xapian::InvalidOperationError. \n"
58816 { (char *)"ValueIterator_get_valueno", (PyCFunction)_wrap_ValueIterator_get_valueno, 0x0008, (char *)"\n"
58817 "Return the value slot number for the current position.\n"
58819 "Xapian::valueno Xapian::ValueIterator::get_valueno() const\n"
58821 "If the iterator is over all values in a slot, this returns that slot's\n"
58822 "number. If the iterator is over the values in a particular document,\n"
58823 "it returns the number of each slot in turn. \n"
58825 { (char *)"ValueIterator_skip_to", _wrap_ValueIterator_skip_to, 0x0001, (char *)"\n"
58826 "Advance the iterator to document id or value slot docid_or_slot.\n"
58828 "void Xapian::ValueIterator::skip_to(Xapian::docid docid_or_slot)\n"
58830 "If this iterator is over values in a document, then this method\n"
58831 "advances the iterator to value slot docid_or_slot, or the first slot\n"
58832 "after it if there is no value in slot slot.\n"
58834 "If this iterator is over values in a particular slot, then this method\n"
58835 "advances the iterator to document id docid_or_slot, or the first\n"
58836 "document id after it if there is no value in the slot we're iterating\n"
58837 "over for document docid_or_slot.\n"
58839 "Note: The \"two-faced\" nature of this method is due to how C++\n"
58840 "overloading works. Xapian::docid and Xapian::valueno are both typedefs\n"
58841 "for the same unsigned integer type, so overloading can't distinguish\n"
58844 { (char *)"ValueIterator_check", _wrap_ValueIterator_check, 0x0001, (char *)"\n"
58845 "Check if the specified docid occurs.\n"
58847 "bool Xapian::ValueIterator::check(Xapian::docid docid)\n"
58849 "The caller is required to ensure that the specified document id did\n"
58850 "actually exists in the database.\n"
58852 "This method acts like skip_to() if that can be done at little extra\n"
58853 "cost, in which case it then returns true. This is how brass and chert\n"
58854 "databases behave because they store values in streams which allow for\n"
58855 "an efficient implementation of skip_to().\n"
58857 "Otherwise it simply checks if a particular docid is present. If it is,\n"
58858 "it returns true. If it isn't, it returns false, and leaves the\n"
58859 "position unspecified (and hence the result of calling methods which\n"
58860 "depends on the current position, such as get_docid(), are also\n"
58861 "unspecified). In this state, next() will advance to the first matching\n"
58862 "position after document did, and skip_to() will act as it would if the\n"
58863 "position was the first matching position after document did.\n"
58865 "Currently the inmemory, flint, and remote backends behave in the\n"
58866 "latter way because they don't support streamed values and so skip_to()\n"
58867 "must check each document it skips over which is significantly slower.\n"
58870 { (char *)"ValueIterator___str__", (PyCFunction)_wrap_ValueIterator___str__, 0x0008, (char *)"\n"
58871 "Return a string describing this object.\n"
58873 "std::string Xapian::ValueIterator::get_description() const \n"
58875 { (char *)"ValueIterator___eq__", _wrap_ValueIterator___eq__, 0x0001, __null},
58876 { (char *)"ValueIterator___ne__", _wrap_ValueIterator___ne__, 0x0001, __null},
58877 { (char *)"ValueIterator_swigregister", ValueIterator_swigregister, 0x0001, __null},
58878 { (char *)"ValueIterator_swiginit", ValueIterator_swiginit, 0x0001, __null},
58879 { (char *)"new_Document", _wrap_new_Document, 0x0001, (char *)"\n"
58880 "Make a new empty Document.\n"
58882 "Xapian::Document::Document() \n"
58884 { (char *)"delete_Document", (PyCFunction)_wrap_delete_Document, 0x0008, (char *)"\n"
58887 "Xapian::Document::~Document() \n"
58889 { (char *)"Document_get_value", _wrap_Document_get_value, 0x0001, (char *)"\n"
58890 "Get value by number.\n"
58892 "std::string Xapian::Document::get_value(Xapian::valueno valueno) const\n"
58894 "Returns an empty string if no value with the given number is present\n"
58895 "in the document.\n"
58900 "valueno: The number of the value. \n"
58902 { (char *)"Document_add_value", _wrap_Document_add_value, 0x0001, (char *)"\n"
58903 "Add a new value.\n"
58905 "void Xapian::Document::add_value(Xapian::valueno valueno, const\n"
58906 "std::string &value)\n"
58908 "The new value will replace any existing value with the same number (or\n"
58909 "if the new value is empty, it will remove any existing value with the\n"
58912 { (char *)"Document_remove_value", _wrap_Document_remove_value, 0x0001, (char *)"\n"
58913 "Remove any value with the given number.\n"
58915 "void Xapian::Document::remove_value(Xapian::valueno valueno) \n"
58917 { (char *)"Document_clear_values", (PyCFunction)_wrap_Document_clear_values, 0x0008, (char *)"\n"
58918 "Remove all values associated with the document.\n"
58920 "void Xapian::Document::clear_values() \n"
58922 { (char *)"Document_get_data", (PyCFunction)_wrap_Document_get_data, 0x0008, (char *)"\n"
58923 "Get data stored in the document.\n"
58925 "std::string Xapian::Document::get_data() const\n"
58927 "This is a potentially expensive operation, and shouldn't normally be\n"
58928 "used in a match decider functor. Put data for use by match deciders in\n"
58929 "a value instead. \n"
58931 { (char *)"Document_set_data", _wrap_Document_set_data, 0x0001, (char *)"\n"
58932 "Set data stored in the document.\n"
58934 "void Xapian::Document::set_data(const std::string &data) \n"
58936 { (char *)"Document_add_posting", _wrap_Document_add_posting, 0x0001, (char *)"\n"
58937 "Add an occurrence of a term at a particular position.\n"
58939 "void Xapian::Document::add_posting(const std::string &tname,\n"
58940 "Xapian::termpos tpos, Xapian::termcount wdfinc=1)\n"
58942 "Multiple occurrences of the term at the same position are represented\n"
58943 "only once in the positional information, but do increase the wdf.\n"
58945 "If the term is not already in the document, it will be added to it.\n"
58950 "tname: The name of the term.\n"
58952 "tpos: The position of the term.\n"
58954 "wdfinc: The increment that will be applied to the wdf for this term.\n"
58957 { (char *)"Document_add_term", _wrap_Document_add_term, 0x0001, (char *)"\n"
58958 "Add a term to the document, without positional information.\n"
58960 "void Xapian::Document::add_term(const std::string &tname,\n"
58961 "Xapian::termcount wdfinc=1)\n"
58963 "Any existing positional information for the term will be left\n"
58969 "tname: The name of the term.\n"
58971 "wdfinc: The increment that will be applied to the wdf for this term\n"
58974 { (char *)"Document_add_boolean_term", _wrap_Document_add_boolean_term, 0x0001, (char *)"\n"
58975 "Add a boolean filter term to the document.\n"
58977 "void Xapian::Document::add_boolean_term(const std::string &term)\n"
58979 "This method adds term to the document with wdf of 0 - this is\n"
58980 "generally what you want for a term used for boolean filtering as the\n"
58981 "wdf of such terms is ignored, and it doesn't make sense for them to\n"
58982 "contribute to the document's length.\n"
58984 "If the specified term already indexes this document, this method has\n"
58987 "It is exactly the same as add_term(term, 0).\n"
58989 "This method was added in Xapian 1.0.18.\n"
58994 "term: The term to add. \n"
58996 { (char *)"Document_remove_posting", _wrap_Document_remove_posting, 0x0001, (char *)"\n"
58997 "Remove a posting of a term from the document.\n"
58999 "void Xapian::Document::remove_posting(const std::string &tname,\n"
59000 "Xapian::termpos tpos, Xapian::termcount wdfdec=1)\n"
59002 "Note that the term will still index the document even if all\n"
59003 "occurrences are removed. To remove a term from a document completely,\n"
59004 "use remove_term().\n"
59009 "tname: The name of the term.\n"
59011 "tpos: The position of the term.\n"
59013 "wdfdec: The decrement that will be applied to the wdf when removing\n"
59014 "this posting. The wdf will not go below the value of 0.\n"
59019 "Xapian::InvalidArgumentError: will be thrown if the term is not at\n"
59020 "the position specified in the position list for this term in this\n"
59023 "Xapian::InvalidArgumentError: will be thrown if the term is not in\n"
59026 { (char *)"Document_remove_term", _wrap_Document_remove_term, 0x0001, (char *)"\n"
59027 "Remove a term and all postings associated with it.\n"
59029 "void Xapian::Document::remove_term(const std::string &tname)\n"
59034 "tname: The name of the term.\n"
59039 "Xapian::InvalidArgumentError: will be thrown if the term is not in\n"
59042 { (char *)"Document_clear_terms", (PyCFunction)_wrap_Document_clear_terms, 0x0008, (char *)"\n"
59043 "Remove all terms (and postings) from the document.\n"
59045 "void Xapian::Document::clear_terms() \n"
59047 { (char *)"Document_termlist_count", (PyCFunction)_wrap_Document_termlist_count, 0x0008, (char *)"\n"
59048 "The length of the termlist - i.e.\n"
59050 "Xapian::termcount Xapian::Document::termlist_count() const\n"
59052 "the number of different terms which index this document. \n"
59054 { (char *)"Document_termlist_begin", (PyCFunction)_wrap_Document_termlist_begin, 0x0008, (char *)"\n"
59055 "Iterator for the terms in this document.\n"
59057 "TermIterator Xapian::Document::termlist_begin() const \n"
59059 { (char *)"Document_termlist_end", (PyCFunction)_wrap_Document_termlist_end, 0x0008, (char *)"\n"
59060 "Equivalent end iterator for termlist_begin().\n"
59062 "TermIterator Xapian::Document::termlist_end() const \n"
59064 { (char *)"Document_values_count", (PyCFunction)_wrap_Document_values_count, 0x0008, (char *)"\n"
59065 "Count the values in this document.\n"
59067 "Xapian::termcount Xapian::Document::values_count() const \n"
59069 { (char *)"Document_values_begin", (PyCFunction)_wrap_Document_values_begin, 0x0008, (char *)"\n"
59070 "Iterator for the values in this document.\n"
59072 "ValueIterator Xapian::Document::values_begin() const \n"
59074 { (char *)"Document_values_end", (PyCFunction)_wrap_Document_values_end, 0x0008, (char *)"\n"
59075 "Equivalent end iterator for values_begin().\n"
59077 "ValueIteratorEnd_ Xapian::Document::values_end() const \n"
59079 { (char *)"Document_get_docid", (PyCFunction)_wrap_Document_get_docid, 0x0008, (char *)"\n"
59080 "Get the document id which is associated with this document (if any).\n"
59082 "docid Xapian::Document::get_docid() const\n"
59084 "NB If multiple databases are being searched together, then this will\n"
59085 "be the document id in the individual database, not the merged\n"
59088 "If this document came from a database, return the document id in that\n"
59089 "database. Otherwise, return 0 (in Xapian 1.0.22/1.2.4 or later; prior\n"
59090 "to this the returned value was uninitialised). \n"
59092 { (char *)"Document_serialise", (PyCFunction)_wrap_Document_serialise, 0x0008, (char *)"\n"
59093 "Serialise document into a string.\n"
59095 "std::string Xapian::Document::serialise() const\n"
59097 "The document representation may change between Xapian releases: even\n"
59098 "between minor versions. However, it is guaranteed not to change if the\n"
59099 "remote database protocol has not changed between releases. \n"
59101 { (char *)"Document_unserialise", (PyCFunction)_wrap_Document_unserialise, 0x0008, __null},
59102 { (char *)"Document___str__", (PyCFunction)_wrap_Document___str__, 0x0008, (char *)"\n"
59103 "Return a string describing this object.\n"
59105 "std::string Xapian::Document::get_description() const \n"
59107 { (char *)"Document_swigregister", Document_swigregister, 0x0001, __null},
59108 { (char *)"Document_swiginit", Document_swiginit, 0x0001, __null},
59109 { (char *)"new_PostingSource", (PyCFunction)_wrap_new_PostingSource, 0x0008, __null},
59110 { (char *)"delete_PostingSource", (PyCFunction)_wrap_delete_PostingSource, 0x0008, (char *)"\n"
59112 "Xapian::PostingSource::~PostingSource() \n"
59114 { (char *)"PostingSource_get_termfreq_min", (PyCFunction)_wrap_PostingSource_get_termfreq_min, 0x0008, (char *)"\n"
59115 "A lower bound on the number of documents this object can return.\n"
59117 "virtual Xapian::doccount Xapian::PostingSource::get_termfreq_min()\n"
59120 "Xapian will always call init() on a PostingSource before calling this\n"
59121 "for the first time. \n"
59123 { (char *)"PostingSource_get_termfreq_est", (PyCFunction)_wrap_PostingSource_get_termfreq_est, 0x0008, (char *)"\n"
59124 "An estimate of the number of documents this object can return.\n"
59126 "virtual Xapian::doccount Xapian::PostingSource::get_termfreq_est()\n"
59129 "It must always be true that:\n"
59131 "get_termfreq_min() <= get_termfreq_est() <= get_termfreq_max()\n"
59133 "Xapian will always call init() on a PostingSource before calling this\n"
59134 "for the first time. \n"
59136 { (char *)"PostingSource_get_termfreq_max", (PyCFunction)_wrap_PostingSource_get_termfreq_max, 0x0008, (char *)"\n"
59137 "An upper bound on the number of documents this object can return.\n"
59139 "virtual Xapian::doccount Xapian::PostingSource::get_termfreq_max()\n"
59142 "Xapian will always call init() on a PostingSource before calling this\n"
59143 "for the first time. \n"
59145 { (char *)"PostingSource_get_maxweight", (PyCFunction)_wrap_PostingSource_get_maxweight, 0x0008, (char *)"\n"
59146 "Return the currently set upper bound on what get_weight() can return.\n"
59148 "Xapian::weight Xapian::PostingSource::get_maxweight() const \n"
59150 { (char *)"PostingSource_get_weight", (PyCFunction)_wrap_PostingSource_get_weight, 0x0008, (char *)"\n"
59151 "Return the weight contribution for the current document.\n"
59153 "virtual Xapian::weight Xapian::PostingSource::get_weight() const\n"
59155 "This default implementation always returns 0, for convenience when\n"
59156 "implementing \"weight-less\" PostingSource subclasses.\n"
59158 "This method may assume that it will only be called when there is a\n"
59159 "\"current document\". In detail: Xapian will always call init() on a\n"
59160 "PostingSource before calling this for the first time. It will also\n"
59161 "only call this if the PostingSource reports that it is pointing to a\n"
59162 "valid document (ie, it will not call it before calling at least one of\n"
59163 "next(), skip_to() or check(), and will ensure that the PostingSource\n"
59164 "is not at the end by calling at_end()). \n"
59166 { (char *)"PostingSource_get_docid", (PyCFunction)_wrap_PostingSource_get_docid, 0x0008, (char *)"\n"
59167 "Return the current docid.\n"
59169 "virtual Xapian::docid Xapian::PostingSource::get_docid() const =0\n"
59171 "This method may assume that it will only be called when there is a\n"
59172 "\"current document\". See get_weight() for details.\n"
59174 "Note: in the case of a multi-database search, the returned docid\n"
59175 "should be in the single subdatabase relevant to this posting source.\n"
59176 "See the init() method for details. \n"
59178 { (char *)"PostingSource_next", _wrap_PostingSource_next, 0x0001, (char *)"\n"
59179 "Advance the current position to the next matching document.\n"
59181 "virtual void Xapian::PostingSource::next(Xapian::weight min_wt)=0\n"
59183 "The PostingSource starts before the first entry in the list, so next()\n"
59184 "must be called before any methods which need the context of the\n"
59185 "current position.\n"
59187 "Xapian will always call init() on a PostingSource before calling this\n"
59188 "for the first time.\n"
59193 "min_wt: The minimum weight contribution that is needed (this is just\n"
59194 "a hint which subclasses may ignore). \n"
59196 { (char *)"PostingSource_skip_to", _wrap_PostingSource_skip_to, 0x0001, (char *)"\n"
59197 "Advance to the specified docid.\n"
59199 "virtual void Xapian::PostingSource::skip_to(Xapian::docid did,\n"
59200 "Xapian::weight min_wt)\n"
59202 "If the specified docid isn't in the list, position ourselves on the\n"
59203 "first document after it (or at_end() if no greater docids are\n"
59206 "If the current position is already the specified docid, this method\n"
59207 "will leave the position unmodified.\n"
59209 "If the specified docid is earlier than the current position, the\n"
59210 "behaviour is unspecified. A sensible behaviour would be to leave the\n"
59211 "current position unmodified, but it is also reasonable to move to the\n"
59212 "specified docid.\n"
59214 "The default implementation calls next() repeatedly, which works but\n"
59215 "skip_to() can often be implemented much more efficiently.\n"
59217 "Xapian will always call init() on a PostingSource before calling this\n"
59218 "for the first time.\n"
59220 "Note: in the case of a multi-database search, the docid specified is\n"
59221 "the docid in the single subdatabase relevant to this posting source.\n"
59222 "See the init() method for details.\n"
59227 "min_wt: The minimum weight contribution that is needed (this is just\n"
59228 "a hint which subclasses may ignore). \n"
59230 { (char *)"PostingSource_check", _wrap_PostingSource_check, 0x0001, (char *)"\n"
59231 "Check if the specified docid occurs.\n"
59233 "virtual bool Xapian::PostingSource::check(Xapian::docid did,\n"
59234 "Xapian::weight min_wt)\n"
59236 "The caller is required to ensure that the specified document id did\n"
59237 "actually exists in the database. If it does, it must move to that\n"
59238 "document id, and return true. If it does not, it may either:\n"
59240 "return true, having moved to a definite position (including\n"
59241 "\"at_end\"), which must be the same position as skip_to() would have\n"
59246 "return false, having moved to an \"indeterminate\" position, such that\n"
59247 "a subsequent call to next() or skip_to() will move to the next\n"
59248 "matching position after did.\n"
59250 "Generally, this method should act like skip_to() and return true if\n"
59251 "that can be done at little extra cost.\n"
59253 "Otherwise it should simply check if a particular docid is present,\n"
59254 "returning true if it is, and false if it isn't.\n"
59256 "The default implementation calls skip_to() and always returns true.\n"
59258 "Xapian will always call init() on a PostingSource before calling this\n"
59259 "for the first time.\n"
59261 "Note: in the case of a multi-database search, the docid specified is\n"
59262 "the docid in the single subdatabase relevant to this posting source.\n"
59263 "See the init() method for details. \n"
59265 { (char *)"PostingSource_at_end", (PyCFunction)_wrap_PostingSource_at_end, 0x0008, (char *)"\n"
59266 "Return true if the current position is past the last entry in this\n"
59269 "virtual bool Xapian::PostingSource::at_end() const =0\n"
59271 "At least one of next(), skip_to() or check() will be called before\n"
59272 "this method is first called. \n"
59274 { (char *)"PostingSource_name", (PyCFunction)_wrap_PostingSource_name, 0x0008, (char *)"\n"
59275 "Name of the posting source class.\n"
59277 "virtual std::string Xapian::PostingSource::name() const\n"
59279 "This is used when serialising and unserialising posting sources; for\n"
59280 "example, for performing remote searches.\n"
59282 "If the subclass is in a C++ namespace, the namespace should be\n"
59283 "included in the name, using \"::\" as a separator. For example, for a\n"
59284 "PostingSource subclass called \"FooPostingSource\" in the \"Xapian\"\n"
59285 "namespace the result of this call should be\n"
59286 "\"Xapian::FooPostingSource\".\n"
59288 "This should only be implemented if serialise() and unserialise() are\n"
59289 "also implemented. The default implementation returns an empty string.\n"
59291 "If this returns an empty string, Xapian will assume that serialise()\n"
59292 "and unserialise() are not implemented. \n"
59294 { (char *)"PostingSource_init", _wrap_PostingSource_init, 0x0001, (char *)"\n"
59295 "Set this PostingSource to the start of the list of postings.\n"
59297 "virtual void Xapian::PostingSource::init(const Database &db)=0\n"
59299 "This is called automatically by the matcher prior to each query being\n"
59302 "If a PostingSource is used for multiple searches, init() will\n"
59303 "therefore be called multiple times, and must handle this by using the\n"
59304 "database passed in the most recent call.\n"
59309 "db: The database which the PostingSource should iterate through.\n"
59311 "Note: the database supplied to this method must not be modified: in\n"
59312 "particular, the reopen() method should not be called on it.\n"
59314 "Note: in the case of a multi-database search, a separate PostingSource\n"
59315 "will be used for each database (the separate PostingSources will be\n"
59316 "obtained using clone()), and each PostingSource will be passed one of\n"
59317 "the sub-databases as the db parameter here. The db parameter will\n"
59318 "therefore always refer to a single database. All docids passed to, or\n"
59319 "returned from, the PostingSource refer to docids in that single\n"
59320 "database, rather than in the multi- database. \n"
59322 { (char *)"PostingSource___str__", (PyCFunction)_wrap_PostingSource___str__, 0x0008, (char *)"\n"
59323 "Return a string describing this object.\n"
59325 "virtual std::string Xapian::PostingSource::get_description() const\n"
59327 "This default implementation returns a generic answer. This default it\n"
59328 "provided to avoid forcing those deriving their own PostingSource\n"
59329 "subclass from having to implement this (they may not care what\n"
59330 "get_description() gives for their subclass). \n"
59332 { (char *)"disown_PostingSource", (PyCFunction)_wrap_disown_PostingSource, 0x0008, __null},
59333 { (char *)"PostingSource_swigregister", PostingSource_swigregister, 0x0001, __null},
59334 { (char *)"PostingSource_swiginit", PostingSource_swiginit, 0x0001, __null},
59335 { (char *)"new_ValuePostingSource", (PyCFunction)_wrap_new_ValuePostingSource, 0x0008, (char *)"\n"
59336 "Construct a ValuePostingSource.\n"
59338 "Xapian::ValuePostingSource::ValuePostingSource(Xapian::valueno slot_)\n"
59343 "slot_: The value slot to read values from. \n"
59345 { (char *)"delete_ValuePostingSource", (PyCFunction)_wrap_delete_ValuePostingSource, 0x0008, __null},
59346 { (char *)"ValuePostingSource_swigregister", ValuePostingSource_swigregister, 0x0001, __null},
59347 { (char *)"ValuePostingSource_swiginit", ValuePostingSource_swiginit, 0x0001, __null},
59348 { (char *)"new_ValueWeightPostingSource", (PyCFunction)_wrap_new_ValueWeightPostingSource, 0x0008, (char *)"\n"
59349 "Construct a ValueWeightPostingSource.\n"
59351 "Xapian::ValueWeightPostingSource::ValueWeightPostingSource(Xapian::valueno\n"
59357 "slot_: The value slot to read values from. \n"
59359 { (char *)"delete_ValueWeightPostingSource", (PyCFunction)_wrap_delete_ValueWeightPostingSource, 0x0008, __null},
59360 { (char *)"ValueWeightPostingSource_swigregister", ValueWeightPostingSource_swigregister, 0x0001, __null},
59361 { (char *)"ValueWeightPostingSource_swiginit", ValueWeightPostingSource_swiginit, 0x0001, __null},
59362 { (char *)"new_DecreasingValueWeightPostingSource", _wrap_new_DecreasingValueWeightPostingSource, 0x0001, (char *)"\n"
59363 "Xapian::DecreasingValueWeightPostingSource::DecreasingValueWeightPostingSource(Xapian::valueno\n"
59364 "slot_, Xapian::docid range_start_=0, Xapian::docid range_end_=0) \n"
59366 { (char *)"delete_DecreasingValueWeightPostingSource", (PyCFunction)_wrap_delete_DecreasingValueWeightPostingSource, 0x0008, __null},
59367 { (char *)"DecreasingValueWeightPostingSource_swigregister", DecreasingValueWeightPostingSource_swigregister, 0x0001, __null},
59368 { (char *)"DecreasingValueWeightPostingSource_swiginit", DecreasingValueWeightPostingSource_swiginit, 0x0001, __null},
59369 { (char *)"new_ValueMapPostingSource", (PyCFunction)_wrap_new_ValueMapPostingSource, 0x0008, (char *)"\n"
59370 "Construct a ValueWeightPostingSource.\n"
59372 "Xapian::ValueMapPostingSource::ValueMapPostingSource(Xapian::valueno\n"
59378 "slot_: The value slot to read values from. \n"
59380 { (char *)"ValueMapPostingSource_add_mapping", _wrap_ValueMapPostingSource_add_mapping, 0x0001, (char *)"\n"
59383 "void Xapian::ValueMapPostingSource::add_mapping(const std::string\n"
59384 "&key, double weight)\n"
59389 "key: The key looked up from the value slot.\n"
59391 "weight: The weight to give this key. \n"
59393 { (char *)"ValueMapPostingSource_clear_mappings", (PyCFunction)_wrap_ValueMapPostingSource_clear_mappings, 0x0008, (char *)"\n"
59394 "Clear all mappings.\n"
59396 "void Xapian::ValueMapPostingSource::clear_mappings() \n"
59398 { (char *)"ValueMapPostingSource_set_default_weight", _wrap_ValueMapPostingSource_set_default_weight, 0x0001, (char *)"\n"
59399 "Set a default weight for document values not in the map.\n"
59401 "void Xapian::ValueMapPostingSource::set_default_weight(double wt) \n"
59403 { (char *)"delete_ValueMapPostingSource", (PyCFunction)_wrap_delete_ValueMapPostingSource, 0x0008, __null},
59404 { (char *)"ValueMapPostingSource_swigregister", ValueMapPostingSource_swigregister, 0x0001, __null},
59405 { (char *)"ValueMapPostingSource_swiginit", ValueMapPostingSource_swiginit, 0x0001, __null},
59406 { (char *)"new_FixedWeightPostingSource", (PyCFunction)_wrap_new_FixedWeightPostingSource, 0x0008, (char *)"\n"
59407 "Construct a FixedWeightPostingSource.\n"
59409 "Xapian::FixedWeightPostingSource::FixedWeightPostingSource(Xapian::weight\n"
59415 "wt: The fixed weight to return. \n"
59417 { (char *)"delete_FixedWeightPostingSource", (PyCFunction)_wrap_delete_FixedWeightPostingSource, 0x0008, __null},
59418 { (char *)"FixedWeightPostingSource_swigregister", FixedWeightPostingSource_swigregister, 0x0001, __null},
59419 { (char *)"FixedWeightPostingSource_swiginit", FixedWeightPostingSource_swiginit, 0x0001, __null},
59420 { (char *)"new_MSet", _wrap_new_MSet, 0x0001, (char *)"\n"
59421 "Copying is allowed (and is cheap).\n"
59423 "Xapian::MSet::MSet(const MSet &other) \n"
59425 { (char *)"delete_MSet", (PyCFunction)_wrap_delete_MSet, 0x0008, (char *)"\n"
59426 "Destroy a Xapian::MSet.\n"
59428 "Xapian::MSet::~MSet() \n"
59430 { (char *)"MSet_fetch", _wrap_MSet_fetch, 0x0001, (char *)"\n"
59431 "Fetch all the items in the MSet.\n"
59433 "void Xapian::MSet::fetch() const \n"
59435 { (char *)"MSet_convert_to_percent", _wrap_MSet_convert_to_percent, 0x0001, (char *)"\n"
59436 "Return the percentage score for a particular item.\n"
59438 "Xapian::percent Xapian::MSet::convert_to_percent(const MSetIterator\n"
59441 { (char *)"MSet_get_termfreq", _wrap_MSet_get_termfreq, 0x0001, (char *)"\n"
59442 "Return the term frequency of the given query term.\n"
59444 "Xapian::doccount Xapian::MSet::get_termfreq(const std::string &tname)\n"
59450 "tname: The term to look for.\n"
59452 "This is sometimes more efficient than asking the database directly for\n"
59453 "the term frequency - in particular, if the term was in the query, its\n"
59454 "frequency will usually be cached in the MSet. \n"
59456 { (char *)"MSet_get_termweight", _wrap_MSet_get_termweight, 0x0001, (char *)"\n"
59457 "Return the term weight of the given query term.\n"
59459 "Xapian::weight Xapian::MSet::get_termweight(const std::string &tname)\n"
59465 "tname: The term to look for.\n"
59470 "Xapian::InvalidArgumentError: is thrown if the term was not in the\n"
59473 { (char *)"MSet_get_firstitem", (PyCFunction)_wrap_MSet_get_firstitem, 0x0008, (char *)"\n"
59474 "The index of the first item in the result which was put into the MSet.\n"
59476 "Xapian::doccount Xapian::MSet::get_firstitem() const\n"
59478 "This corresponds to the parameter \"first\" specified in\n"
59479 "Xapian::Enquire::get_mset(). A value of 0 corresponds to the highest\n"
59480 "result being the first item in the MSet. \n"
59482 { (char *)"MSet_get_matches_lower_bound", (PyCFunction)_wrap_MSet_get_matches_lower_bound, 0x0008, (char *)"\n"
59483 "A lower bound on the number of documents in the database which match\n"
59486 "Xapian::doccount Xapian::MSet::get_matches_lower_bound() const\n"
59488 "This figure takes into account collapsing of duplicates, and weighting\n"
59491 "This number is usually considerably less than the actual number of\n"
59492 "documents which match the query. \n"
59494 { (char *)"MSet_get_matches_estimated", (PyCFunction)_wrap_MSet_get_matches_estimated, 0x0008, (char *)"\n"
59495 "An estimate for the number of documents in the database which match\n"
59498 "Xapian::doccount Xapian::MSet::get_matches_estimated() const\n"
59500 "This figure takes into account collapsing of duplicates, and weighting\n"
59503 "This value is returned because there is sometimes a request to display\n"
59504 "such information. However, our experience is that presenting this\n"
59505 "value to users causes them to worry about the large number of results,\n"
59506 "rather than how useful those at the top of the result set are, and is\n"
59507 "thus undesirable. \n"
59509 { (char *)"MSet_get_matches_upper_bound", (PyCFunction)_wrap_MSet_get_matches_upper_bound, 0x0008, (char *)"\n"
59510 "An upper bound on the number of documents in the database which match\n"
59513 "Xapian::doccount Xapian::MSet::get_matches_upper_bound() const\n"
59515 "This figure takes into account collapsing of duplicates, and weighting\n"
59518 "This number is usually considerably greater than the actual number of\n"
59519 "documents which match the query. \n"
59521 { (char *)"MSet_get_uncollapsed_matches_lower_bound", (PyCFunction)_wrap_MSet_get_uncollapsed_matches_lower_bound, 0x0008, (char *)"\n"
59522 "A lower bound on the number of documents in the database which would\n"
59523 "match the query if collapsing wasn't used.\n"
59525 "Xapian::doccount Xapian::MSet::get_uncollapsed_matches_lower_bound()\n"
59528 { (char *)"MSet_get_uncollapsed_matches_estimated", (PyCFunction)_wrap_MSet_get_uncollapsed_matches_estimated, 0x0008, (char *)"\n"
59529 "A estimate of the number of documents in the database which would\n"
59530 "match the query if collapsing wasn't used.\n"
59532 "Xapian::doccount Xapian::MSet::get_uncollapsed_matches_estimated()\n"
59535 { (char *)"MSet_get_uncollapsed_matches_upper_bound", (PyCFunction)_wrap_MSet_get_uncollapsed_matches_upper_bound, 0x0008, (char *)"\n"
59536 "A upper bound on the number of documents in the database which would\n"
59537 "match the query if collapsing wasn't used.\n"
59539 "Xapian::doccount Xapian::MSet::get_uncollapsed_matches_upper_bound()\n"
59542 { (char *)"MSet_get_max_possible", (PyCFunction)_wrap_MSet_get_max_possible, 0x0008, (char *)"\n"
59543 "The maximum possible weight in the MSet.\n"
59545 "Xapian::weight Xapian::MSet::get_max_possible() const\n"
59547 "This weight is likely not to be attained in the set of results, but\n"
59548 "represents an upper bound on the weight which a document could attain\n"
59549 "for the given query. \n"
59551 { (char *)"MSet_get_max_attained", (PyCFunction)_wrap_MSet_get_max_attained, 0x0008, (char *)"\n"
59552 "The greatest weight which is attained by any document in the database.\n"
59554 "Xapian::weight Xapian::MSet::get_max_attained() const\n"
59556 "If firstitem == 0 and the primary ordering is by relevance, this is\n"
59557 "the weight of the first entry in the MSet.\n"
59559 "If no documents are found by the query, this will be 0.\n"
59561 "Note that calculation of max_attained requires calculation of at least\n"
59562 "one result item - therefore, if no items were requested when the query\n"
59563 "was performed (by specifying maxitems = 0 in\n"
59564 "Xapian::Enquire::get_mset()), this value will be 0. \n"
59566 { (char *)"MSet_size", (PyCFunction)_wrap_MSet_size, 0x0008, (char *)"\n"
59567 "The number of items in this MSet.\n"
59569 "Xapian::doccount Xapian::MSet::size() const \n"
59571 { (char *)"MSet_empty", (PyCFunction)_wrap_MSet_empty, 0x0008, (char *)"\n"
59572 "Test if this MSet is empty.\n"
59574 "bool Xapian::MSet::empty() const \n"
59576 { (char *)"MSet_begin", (PyCFunction)_wrap_MSet_begin, 0x0008, (char *)"\n"
59577 "Iterator for the items in this MSet.\n"
59579 "MSetIterator Xapian::MSet::begin() const \n"
59581 { (char *)"MSet_end", (PyCFunction)_wrap_MSet_end, 0x0008, (char *)"\n"
59582 "End iterator corresponding to begin().\n"
59584 "MSetIterator Xapian::MSet::end() const \n"
59586 { (char *)"MSet_back", (PyCFunction)_wrap_MSet_back, 0x0008, (char *)"\n"
59587 "Iterator pointing to the last element of this MSet.\n"
59589 "MSetIterator Xapian::MSet::back() const \n"
59591 { (char *)"MSet__get_hit_internal", _wrap_MSet__get_hit_internal, 0x0001, (char *)"\n"
59592 "Get an item from the MSet.\n"
59594 "The supplied index is relative to the start of the MSet, not the absolute rank\n"
59597 { (char *)"MSet_get_document_percentage", _wrap_MSet_get_document_percentage, 0x0001, __null},
59598 { (char *)"MSet_get_document", _wrap_MSet_get_document, 0x0001, __null},
59599 { (char *)"MSet_get_docid", _wrap_MSet_get_docid, 0x0001, __null},
59600 { (char *)"MSet___str__", (PyCFunction)_wrap_MSet___str__, 0x0008, (char *)"\n"
59601 "Return a string describing this object.\n"
59603 "std::string Xapian::MSet::get_description() const \n"
59605 { (char *)"MSet_items_get", (PyCFunction)_wrap_MSet_items_get, 0x0008, __null},
59606 { (char *)"MSet___cmp__", _wrap_MSet___cmp__, 0x0001, __null},
59607 { (char *)"MSet_swigregister", MSet_swigregister, 0x0001, __null},
59608 { (char *)"MSet_swiginit", MSet_swiginit, 0x0001, __null},
59609 { (char *)"new_MSetIterator", _wrap_new_MSetIterator, 0x0001, (char *)"\n"
59610 "Copying is allowed (and is cheap).\n"
59612 "Xapian::MSetIterator::MSetIterator(const MSetIterator &other) \n"
59614 { (char *)"delete_MSetIterator", (PyCFunction)_wrap_delete_MSetIterator, 0x0008, __null},
59615 { (char *)"MSetIterator_get_docid", (PyCFunction)_wrap_MSetIterator_get_docid, 0x0008, __null},
59616 { (char *)"MSetIterator_next", (PyCFunction)_wrap_MSetIterator_next, 0x0008, __null},
59617 { (char *)"MSetIterator_prev", (PyCFunction)_wrap_MSetIterator_prev, 0x0008, __null},
59618 { (char *)"MSetIterator_equals", _wrap_MSetIterator_equals, 0x0001, __null},
59619 { (char *)"MSetIterator_get_document", (PyCFunction)_wrap_MSetIterator_get_document, 0x0008, (char *)"\n"
59620 "Get a Xapian::Document object for the current position.\n"
59622 "Xapian::Document Xapian::MSetIterator::get_document() const\n"
59624 "This method returns a Xapian::Document object which provides the\n"
59625 "information about the document pointed to by the MSetIterator.\n"
59627 "If the underlying database has suitable support, using this call\n"
59628 "(rather than asking the database for a document based on its document\n"
59629 "ID) will enable the system to ensure that the correct data is\n"
59630 "returned, and that the document has not been deleted or changed since\n"
59631 "the query was performed.\n"
59633 "A Xapian::Document object containing the document data.\n"
59638 "Xapian::DocNotFoundError: The document specified could not be found\n"
59639 "in the database. \n"
59641 { (char *)"MSetIterator_get_rank", (PyCFunction)_wrap_MSetIterator_get_rank, 0x0008, (char *)"\n"
59642 "Get the rank of the document at the current position.\n"
59644 "Xapian::doccount Xapian::MSetIterator::get_rank() const\n"
59646 "The rank is the position that this document is at in the ordered list\n"
59647 "of results of the query. The result is 0-based - i.e. the top-ranked\n"
59648 "document has a rank of 0. \n"
59650 { (char *)"MSetIterator_get_weight", (PyCFunction)_wrap_MSetIterator_get_weight, 0x0008, (char *)"\n"
59651 "Get the weight of the document at the current position.\n"
59653 "Xapian::weight Xapian::MSetIterator::get_weight() const \n"
59655 { (char *)"MSetIterator_get_collapse_key", (PyCFunction)_wrap_MSetIterator_get_collapse_key, 0x0008, (char *)"\n"
59656 "Get the collapse key for this document.\n"
59658 "std::string Xapian::MSetIterator::get_collapse_key() const \n"
59660 { (char *)"MSetIterator_get_collapse_count", (PyCFunction)_wrap_MSetIterator_get_collapse_count, 0x0008, (char *)"\n"
59661 "Get an estimate of the number of documents that have been collapsed\n"
59664 "Xapian::doccount Xapian::MSetIterator::get_collapse_count() const\n"
59666 "The estimate will always be less than or equal to the actual number of\n"
59667 "other documents satisfying the match criteria with the same collapse\n"
59668 "key as this document.\n"
59670 "This method may return 0 even though there are other documents with\n"
59671 "the same collapse key which satisfying the match criteria. However if\n"
59672 "this method returns non-zero, there definitely are other such\n"
59673 "documents. So this method may be used to inform the user that there\n"
59674 "are \"at least N other matches in this group\", or to control whether\n"
59675 "to offer a \"show other documents in this group\" feature (but note\n"
59676 "that it may not offer it in every case where it would show other\n"
59679 { (char *)"MSetIterator_get_percent", (PyCFunction)_wrap_MSetIterator_get_percent, 0x0008, (char *)"\n"
59680 "This returns the weight of the document as a percentage score.\n"
59682 "Xapian::percent Xapian::MSetIterator::get_percent() const\n"
59684 "The return value will be an integer in the range 0 to 100: 0 meaning\n"
59685 "that the item did not match the query at all.\n"
59687 "The intention is that the highest weighted document will get 100 if it\n"
59688 "matches all the weight-contributing terms in the query. However,\n"
59689 "currently it may get a lower percentage score if you use a\n"
59690 "MatchDecider and the sorting is primarily by value. In this case, the\n"
59691 "percentage for a particular document may vary depending on the first,\n"
59692 "max_size, and checkatleast parameters passed to Enquire::get_mset()\n"
59693 "(this bug is hard to fix without having to apply the MatchDecider to\n"
59694 "potentially many more documents, which is potentially costly). \n"
59696 { (char *)"MSetIterator___str__", (PyCFunction)_wrap_MSetIterator___str__, 0x0008, (char *)"\n"
59697 "Return a string describing this object.\n"
59699 "std::string Xapian::MSetIterator::get_description() const \n"
59701 { (char *)"MSetIterator___eq__", _wrap_MSetIterator___eq__, 0x0001, __null},
59702 { (char *)"MSetIterator___ne__", _wrap_MSetIterator___ne__, 0x0001, __null},
59703 { (char *)"MSetIterator_swigregister", MSetIterator_swigregister, 0x0001, __null},
59704 { (char *)"MSetIterator_swiginit", MSetIterator_swiginit, 0x0001, __null},
59705 { (char *)"new_ESet", _wrap_new_ESet, 0x0001, (char *)"\n"
59706 "Copying is allowed (and is cheap).\n"
59708 "Xapian::ESet::ESet(const ESet &other) \n"
59710 { (char *)"delete_ESet", (PyCFunction)_wrap_delete_ESet, 0x0008, (char *)"\n"
59713 "Xapian::ESet::~ESet() \n"
59715 { (char *)"ESet_get_ebound", (PyCFunction)_wrap_ESet_get_ebound, 0x0008, (char *)"\n"
59716 "A lower bound on the number of terms which are in the full set of\n"
59717 "results of the expand.\n"
59719 "Xapian::termcount Xapian::ESet::get_ebound() const\n"
59721 "This will be greater than or equal to size() \n"
59723 { (char *)"ESet_size", (PyCFunction)_wrap_ESet_size, 0x0008, (char *)"\n"
59724 "The number of terms in this E-Set.\n"
59726 "Xapian::termcount Xapian::ESet::size() const \n"
59728 { (char *)"ESet_empty", (PyCFunction)_wrap_ESet_empty, 0x0008, (char *)"\n"
59729 "Test if this E-Set is empty.\n"
59731 "bool Xapian::ESet::empty() const \n"
59733 { (char *)"ESet_begin", (PyCFunction)_wrap_ESet_begin, 0x0008, (char *)"\n"
59734 "Iterator for the terms in this E-Set.\n"
59736 "ESetIterator Xapian::ESet::begin() const \n"
59738 { (char *)"ESet_end", (PyCFunction)_wrap_ESet_end, 0x0008, (char *)"\n"
59739 "End iterator corresponding to begin().\n"
59741 "ESetIterator Xapian::ESet::end() const \n"
59743 { (char *)"ESet_back", (PyCFunction)_wrap_ESet_back, 0x0008, (char *)"\n"
59744 "Iterator pointing to the last element of this E-Set.\n"
59746 "ESetIterator Xapian::ESet::back() const \n"
59748 { (char *)"ESet___str__", (PyCFunction)_wrap_ESet___str__, 0x0008, (char *)"\n"
59749 "Return a string describing this object.\n"
59751 "std::string Xapian::ESet::get_description() const \n"
59753 { (char *)"ESet_items_get", (PyCFunction)_wrap_ESet_items_get, 0x0008, __null},
59754 { (char *)"ESet_swigregister", ESet_swigregister, 0x0001, __null},
59755 { (char *)"ESet_swiginit", ESet_swiginit, 0x0001, __null},
59756 { (char *)"new_ESetIterator", _wrap_new_ESetIterator, 0x0001, (char *)"\n"
59757 "Copying is allowed (and is cheap).\n"
59759 "Xapian::ESetIterator::ESetIterator(const ESetIterator &other) \n"
59761 { (char *)"delete_ESetIterator", (PyCFunction)_wrap_delete_ESetIterator, 0x0008, __null},
59762 { (char *)"ESetIterator_get_term", (PyCFunction)_wrap_ESetIterator_get_term, 0x0008, __null},
59763 { (char *)"ESetIterator_next", (PyCFunction)_wrap_ESetIterator_next, 0x0008, __null},
59764 { (char *)"ESetIterator_prev", (PyCFunction)_wrap_ESetIterator_prev, 0x0008, __null},
59765 { (char *)"ESetIterator_equals", _wrap_ESetIterator_equals, 0x0001, __null},
59766 { (char *)"ESetIterator_get_weight", (PyCFunction)_wrap_ESetIterator_get_weight, 0x0008, (char *)"\n"
59767 "Get the weight of the term at the current position.\n"
59769 "Xapian::weight Xapian::ESetIterator::get_weight() const \n"
59771 { (char *)"ESetIterator___str__", (PyCFunction)_wrap_ESetIterator___str__, 0x0008, (char *)"\n"
59772 "Return a string describing this object.\n"
59774 "std::string Xapian::ESetIterator::get_description() const \n"
59776 { (char *)"ESetIterator___eq__", _wrap_ESetIterator___eq__, 0x0001, __null},
59777 { (char *)"ESetIterator___ne__", _wrap_ESetIterator___ne__, 0x0001, __null},
59778 { (char *)"ESetIterator_swigregister", ESetIterator_swigregister, 0x0001, __null},
59779 { (char *)"ESetIterator_swiginit", ESetIterator_swiginit, 0x0001, __null},
59780 { (char *)"new_RSet", _wrap_new_RSet, 0x0001, (char *)"\n"
59781 "Default constructor.\n"
59783 "Xapian::RSet::RSet() \n"
59785 { (char *)"delete_RSet", (PyCFunction)_wrap_delete_RSet, 0x0008, (char *)"\n"
59788 "Xapian::RSet::~RSet() \n"
59790 { (char *)"RSet_size", (PyCFunction)_wrap_RSet_size, 0x0008, (char *)"\n"
59791 "The number of documents in this R-Set.\n"
59793 "Xapian::doccount Xapian::RSet::size() const \n"
59795 { (char *)"RSet_empty", (PyCFunction)_wrap_RSet_empty, 0x0008, (char *)"\n"
59796 "Test if this R-Set is empty.\n"
59798 "bool Xapian::RSet::empty() const \n"
59800 { (char *)"RSet_add_document", _wrap_RSet_add_document, 0x0001, (char *)"\n"
59801 "Add a document to the relevance set.\n"
59803 "void Xapian::RSet::add_document(const Xapian::MSetIterator &i) \n"
59805 { (char *)"RSet_remove_document", _wrap_RSet_remove_document, 0x0001, (char *)"\n"
59806 "Remove a document from the relevance set.\n"
59808 "void Xapian::RSet::remove_document(const Xapian::MSetIterator &i) \n"
59810 { (char *)"RSet_contains", _wrap_RSet_contains, 0x0001, (char *)"\n"
59811 "Test if a given document in the relevance set.\n"
59813 "bool Xapian::RSet::contains(const Xapian::MSetIterator &i) const \n"
59815 { (char *)"RSet___str__", (PyCFunction)_wrap_RSet___str__, 0x0008, (char *)"\n"
59816 "Return a string describing this object.\n"
59818 "std::string Xapian::RSet::get_description() const \n"
59820 { (char *)"RSet_swigregister", RSet_swigregister, 0x0001, __null},
59821 { (char *)"RSet_swiginit", RSet_swiginit, 0x0001, __null},
59822 { (char *)"MatchDecider___call__", _wrap_MatchDecider___call__, 0x0001, __null},
59823 { (char *)"delete_MatchDecider", (PyCFunction)_wrap_delete_MatchDecider, 0x0008, (char *)"\n"
59826 "virtual Xapian::MatchDecider::~MatchDecider() \n"
59828 { (char *)"new_MatchDecider", (PyCFunction)_wrap_new_MatchDecider, 0x0008, __null},
59829 { (char *)"disown_MatchDecider", (PyCFunction)_wrap_disown_MatchDecider, 0x0008, __null},
59830 { (char *)"MatchDecider_swigregister", MatchDecider_swigregister, 0x0001, __null},
59831 { (char *)"MatchDecider_swiginit", MatchDecider_swiginit, 0x0001, __null},
59832 { (char *)"ExpandDecider___call__", _wrap_ExpandDecider___call__, 0x0001, __null},
59833 { (char *)"delete_ExpandDecider", (PyCFunction)_wrap_delete_ExpandDecider, 0x0008, (char *)"\n"
59834 "Virtual destructor, because we have virtual methods.\n"
59836 "virtual Xapian::ExpandDecider::~ExpandDecider() \n"
59838 { (char *)"new_ExpandDecider", (PyCFunction)_wrap_new_ExpandDecider, 0x0008, __null},
59839 { (char *)"disown_ExpandDecider", (PyCFunction)_wrap_disown_ExpandDecider, 0x0008, __null},
59840 { (char *)"ExpandDecider_swigregister", ExpandDecider_swigregister, 0x0001, __null},
59841 { (char *)"ExpandDecider_swiginit", ExpandDecider_swiginit, 0x0001, __null},
59842 { (char *)"new_Enquire", (PyCFunction)_wrap_new_Enquire, 0x0008, (char *)"\n"
59843 "Create a Xapian::Enquire object.\n"
59845 "Xapian::Enquire::Enquire(const Database &database, ErrorHandler\n"
59846 "*errorhandler_=0)\n"
59848 "This specification cannot be changed once the Xapian::Enquire is\n"
59849 "opened: you must create a new Xapian::Enquire object to access a\n"
59850 "different database, or set of databases.\n"
59852 "The database supplied must have been initialised (ie, must not be the\n"
59853 "result of calling the Database::Database() constructor). If you need\n"
59854 "to handle a situation where you have no index gracefully, a database\n"
59855 "created with InMemory::open() can be passed here, which represents a\n"
59856 "completely empty database.\n"
59861 "database: Specification of the database or databases to use.\n"
59863 "errorhandler_: A pointer to the error handler to use. Ownership of\n"
59864 "the object pointed to is not assumed by the Xapian::Enquire object -\n"
59865 "the user should delete the Xapian::ErrorHandler object after the\n"
59866 "Xapian::Enquire object is deleted. To use no error handler, this\n"
59867 "parameter should be 0.\n"
59872 "Xapian::InvalidArgumentError: will be thrown if an initialised\n"
59873 "Database object is supplied. \n"
59875 { (char *)"delete_Enquire", (PyCFunction)_wrap_delete_Enquire, 0x0008, (char *)"\n"
59876 "Close the Xapian::Enquire object.\n"
59878 "Xapian::Enquire::~Enquire() \n"
59880 { (char *)"Enquire_set_query", _wrap_Enquire_set_query, 0x0001, (char *)"\n"
59881 "Set the query to run.\n"
59883 "void Xapian::Enquire::set_query(const Xapian::Query &query,\n"
59884 "Xapian::termcount qlen=0)\n"
59889 "query: the new query to run.\n"
59891 "qlen: the query length to use in weight calculations - by default the\n"
59892 "sum of the wqf of all terms is used. \n"
59894 { (char *)"Enquire_get_query", (PyCFunction)_wrap_Enquire_get_query, 0x0008, (char *)"\n"
59895 "Get the query which has been set.\n"
59897 "const Xapian::Query& Xapian::Enquire::get_query() const\n"
59899 "This is only valid after set_query() has been called.\n"
59904 "Xapian::InvalidArgumentError: will be thrown if query has not yet\n"
59907 { (char *)"Enquire_add_matchspy", _wrap_Enquire_add_matchspy, 0x0001, (char *)"\n"
59908 "Add a matchspy.\n"
59910 "void Xapian::Enquire::add_matchspy(MatchSpy *spy)\n"
59912 "This matchspy will be called with some of the documents which match\n"
59913 "the query, during the match process. Exactly which of the matching\n"
59914 "documents are passed to it depends on exactly when certain\n"
59915 "optimisations occur during the match process, but it can be controlled\n"
59916 "to some extent by setting the checkatleast parameter to get_mset().\n"
59918 "In particular, if there are enough matching documents, at least the\n"
59919 "number specified by checkatleast will be passed to the matchspy. This\n"
59920 "means that you can force the matchspy to be shown all matching\n"
59921 "documents by setting checkatleast to the number of documents in the\n"
59927 "spy: The MatchSpy subclass to add. The caller must ensure that this\n"
59928 "remains valid while the Enquire object remains active, or until\n"
59929 "clear_matchspies() is called. \n"
59931 { (char *)"Enquire_clear_matchspies", (PyCFunction)_wrap_Enquire_clear_matchspies, 0x0008, (char *)"\n"
59932 "Remove all the matchspies.\n"
59934 "void Xapian::Enquire::clear_matchspies() \n"
59936 { (char *)"Enquire_set_weighting_scheme", _wrap_Enquire_set_weighting_scheme, 0x0001, (char *)"\n"
59937 "Set the weighting scheme to use for queries.\n"
59939 "void Xapian::Enquire::set_weighting_scheme(const Weight &weight_)\n"
59944 "weight_: the new weighting scheme. If no weighting scheme is\n"
59945 "specified, the default is BM25 with the default parameters. \n"
59947 { (char *)"Enquire_set_collapse_key", _wrap_Enquire_set_collapse_key, 0x0001, (char *)"\n"
59948 "Set the collapse key to use for queries.\n"
59950 "void Xapian::Enquire::set_collapse_key(Xapian::valueno collapse_key,\n"
59951 "Xapian::doccount collapse_max=1)\n"
59956 "collapse_key: value number to collapse on - at most one MSet entry\n"
59957 "with each particular value will be returned (default is\n"
59958 "Xapian::BAD_VALUENO which means no collapsing).\n"
59960 "collapse_max: Max number of items with the same key to leave after\n"
59961 "collapsing (default 1).\n"
59963 "The MSet returned by get_mset() will have only the \"best\" (at most)\n"
59964 "collapse_max entries with each particular value of collapse_key\n"
59965 "(\"best\" being highest ranked - i.e. highest weight or highest\n"
59968 "An example use might be to create a value for each document containing\n"
59969 "an MD5 hash of the document contents. Then duplicate documents from\n"
59970 "different sources can be eliminated at search time by collapsing with\n"
59971 "collapse_max = 1 (it's better to eliminate duplicates at index time,\n"
59972 "but this may not be always be possible - for example the search may be\n"
59973 "over more than one Xapian database).\n"
59975 "Another use is to group matches in a particular category (e.g. you\n"
59976 "might collapse a mailing list search on the Subject: so that there's\n"
59977 "only one result per discussion thread). In this case you can use\n"
59978 "get_collapse_count() to give the user some idea how many other results\n"
59979 "there are. And if you index the Subject: as a boolean term as well as\n"
59980 "putting it in a value, you can offer a link to a non-collapsed search\n"
59981 "restricted to that thread using a boolean filter. \n"
59983 { (char *)"Enquire_set_docid_order", _wrap_Enquire_set_docid_order, 0x0001, (char *)"\n"
59984 "Set the direction in which documents are ordered by document id in the\n"
59987 "void Xapian::Enquire::set_docid_order(docid_order order)\n"
59989 "This order only has an effect on documents which would otherwise have\n"
59990 "equal rank. For a weighted probabilistic match with no sort value,\n"
59991 "this means documents with equal weight. For a boolean match, with no\n"
59992 "sort value, this means all documents. And if a sort value is used,\n"
59993 "this means documents with equal sort value (and also equal weight if\n"
59994 "ordering on relevance after the sort).\n"
59999 "order: This can be: Xapian::Enquire::ASCENDING docids sort in\n"
60000 "ascending order (default)\n"
60002 "Xapian::Enquire::DESCENDING docids sort in descending order\n"
60004 "Xapian::Enquire::DONT_CARE docids sort in whatever order is most\n"
60005 "efficient for the backend\n"
60007 "Note: If you add documents in strict date order, then a boolean search\n"
60008 "- i.e. set_weighting_scheme(Xapian::BoolWeight()) - with\n"
60009 "set_docid_order(Xapian::Enquire::DESCENDING) is a very efficient way\n"
60010 "to perform \"sort by date, newest first\". \n"
60012 { (char *)"Enquire_set_cutoff", _wrap_Enquire_set_cutoff, 0x0001, (char *)"\n"
60013 "Set the percentage and/or weight cutoffs.\n"
60015 "void Xapian::Enquire::set_cutoff(Xapian::percent percent_cutoff,\n"
60016 "Xapian::weight weight_cutoff=0)\n"
60021 "percent_cutoff: Minimum percentage score for returned documents. If a\n"
60022 "document has a lower percentage score than this, it will not appear in\n"
60023 "the MSet. If your intention is to return only matches which contain\n"
60024 "all the terms in the query, then it's more efficient to use\n"
60025 "Xapian::Query::OP_AND instead of Xapian::Query::OP_OR in the query\n"
60026 "than to use set_cutoff(100). (default 0 => no percentage cut-off).\n"
60028 "weight_cutoff: Minimum weight for a document to be returned. If a\n"
60029 "document has a lower score that this, it will not appear in the MSet.\n"
60030 "It is usually only possible to choose an appropriate weight for cutoff\n"
60031 "based on the results of a previous run of the same query; this is thus\n"
60032 "mainly useful for alerting operations. The other potential use is with\n"
60033 "a user specified weighting scheme. (default 0 => no weight cut-off).\n"
60036 { (char *)"Enquire_set_sort_by_relevance", (PyCFunction)_wrap_Enquire_set_sort_by_relevance, 0x0008, (char *)"\n"
60037 "Set the sorting to be by relevance only.\n"
60039 "void Xapian::Enquire::set_sort_by_relevance()\n"
60041 "This is the default. \n"
60043 { (char *)"Enquire_set_sort_by_value", _wrap_Enquire_set_sort_by_value, 0x0001, (char *)"\n"
60045 "Xapian::Enquire::set_sort_by_value(Xapian::valueno sort_key) \n"
60047 { (char *)"Enquire_set_sort_by_value_then_relevance", _wrap_Enquire_set_sort_by_value_then_relevance, 0x0001, (char *)"\n"
60049 "Xapian::Enquire::set_sort_by_value_then_relevance(Xapian::valueno\n"
60052 { (char *)"Enquire_set_sort_by_relevance_then_value", _wrap_Enquire_set_sort_by_relevance_then_value, 0x0001, (char *)"\n"
60054 "Xapian::Enquire::set_sort_by_relevance_then_value(Xapian::valueno\n"
60057 { (char *)"Enquire_set_sort_by_key", _wrap_Enquire_set_sort_by_key, 0x0001, (char *)"\n"
60059 "Xapian::Enquire::set_sort_by_key(Xapian::KeyMaker *sorter) \n"
60061 { (char *)"Enquire_set_sort_by_key_then_relevance", _wrap_Enquire_set_sort_by_key_then_relevance, 0x0001, (char *)"\n"
60063 "Xapian::Enquire::set_sort_by_key_then_relevance(Xapian::KeyMaker\n"
60066 { (char *)"Enquire_set_sort_by_relevance_then_key", _wrap_Enquire_set_sort_by_relevance_then_key, 0x0001, (char *)"\n"
60068 "Xapian::Enquire::set_sort_by_relevance_then_key(Xapian::KeyMaker\n"
60071 { (char *)"Enquire_get_mset", _wrap_Enquire_get_mset, 0x0001, (char *)"\n"
60073 "Xapian::Enquire::get_mset(Xapian::doccount first, Xapian::doccount\n"
60074 "maxitems, const RSet *omrset, const MatchDecider *mdecider=0) const \n"
60076 { (char *)"Enquire_get_eset", _wrap_Enquire_get_eset, 0x0001, (char *)"\n"
60077 "Get the expand set for the given rset.\n"
60079 "ESet Xapian::Enquire::get_eset(Xapian::termcount maxitems, const RSet\n"
60080 "&omrset, const Xapian::ExpandDecider *edecider) const\n"
60085 "maxitems: the maximum number of items to return.\n"
60087 "omrset: the relevance set to use when performing the expand\n"
60090 "edecider: a decision functor to use to decide whether a given term\n"
60091 "should be put in the ESet\n"
60093 "An ESet object containing the results of the expand.\n"
60098 "Xapian::InvalidArgumentError: See class documentation. \n"
60100 { (char *)"Enquire_get_matching_terms_begin", _wrap_Enquire_get_matching_terms_begin, 0x0001, (char *)"\n"
60101 "Get terms which match a given document, by match set item.\n"
60103 "TermIterator Xapian::Enquire::get_matching_terms_begin(const\n"
60104 "MSetIterator &it) const\n"
60106 "This method returns the terms in the current query which match the\n"
60107 "given document.\n"
60109 "If the underlying database has suitable support, using this call\n"
60110 "(rather than passing a Xapian::docid) will enable the system to ensure\n"
60111 "that the correct data is returned, and that the document has not been\n"
60112 "deleted or changed since the query was performed.\n"
60117 "it: The iterator for which to retrieve the matching terms.\n"
60119 "An iterator returning the terms which match the document. The terms\n"
60120 "will be returned (as far as this makes any sense) in the same order as\n"
60121 "the terms in the query. Terms will not occur more than once, even if\n"
60122 "they do in the query.\n"
60127 "Xapian::InvalidArgumentError: See class documentation.\n"
60129 "Xapian::DocNotFoundError: The document specified could not be found\n"
60130 "in the database. \n"
60132 { (char *)"Enquire_get_matching_terms_end", _wrap_Enquire_get_matching_terms_end, 0x0001, (char *)"\n"
60133 "End iterator corresponding to get_matching_terms_begin().\n"
60135 "TermIterator Xapian::Enquire::get_matching_terms_end(const\n"
60136 "MSetIterator &) const \n"
60138 { (char *)"Enquire_get_matching_terms", _wrap_Enquire_get_matching_terms, 0x0001, __null},
60139 { (char *)"Enquire___str__", (PyCFunction)_wrap_Enquire___str__, 0x0008, (char *)"\n"
60140 "Return a string describing this object.\n"
60142 "std::string Xapian::Enquire::get_description() const \n"
60144 { (char *)"Enquire_swigregister", Enquire_swigregister, 0x0001, __null},
60145 { (char *)"Enquire_swiginit", Enquire_swiginit, 0x0001, __null},
60146 { (char *)"new_Registry", _wrap_new_Registry, 0x0001, (char *)"\n"
60147 "Default constructor.\n"
60149 "Xapian::Registry::Registry()\n"
60151 "The registry will contain all standard subclasses of user-subclassable\n"
60154 { (char *)"delete_Registry", (PyCFunction)_wrap_delete_Registry, 0x0008, (char *)"Xapian::Registry::~Registry() "},
60155 { (char *)"Registry_register_weighting_scheme", _wrap_Registry_register_weighting_scheme, 0x0001, (char *)"\n"
60156 "Register a weighting scheme.\n"
60158 "void Xapian::Registry::register_weighting_scheme(const Xapian::Weight\n"
60161 { (char *)"Registry_get_weighting_scheme", _wrap_Registry_get_weighting_scheme, 0x0001, (char *)"\n"
60162 "Get the weighting scheme given a name.\n"
60164 "const Xapian::Weight* Xapian::Registry::get_weighting_scheme(const\n"
60165 "std::string &name) const\n"
60167 "The returned weighting scheme is owned by the registry object.\n"
60169 "Returns NULL if the weighting scheme could not be found. \n"
60171 { (char *)"Registry_register_posting_source", _wrap_Registry_register_posting_source, 0x0001, (char *)"\n"
60172 "Register a user-defined posting source class.\n"
60174 "void Xapian::Registry::register_posting_source(const\n"
60175 "Xapian::PostingSource &source) \n"
60177 { (char *)"Registry_get_posting_source", _wrap_Registry_get_posting_source, 0x0001, (char *)"\n"
60178 "Get a posting source given a name.\n"
60180 "const Xapian::PostingSource*\n"
60181 "Xapian::Registry::get_posting_source(const std::string &name) const\n"
60183 "The returned posting source is owned by the registry object.\n"
60185 "Returns NULL if the posting source could not be found. \n"
60187 { (char *)"Registry_register_match_spy", _wrap_Registry_register_match_spy, 0x0001, (char *)"\n"
60188 "Register a user-defined match spy class.\n"
60190 "void Xapian::Registry::register_match_spy(const Xapian::MatchSpy &spy)\n"
60193 { (char *)"Registry_get_match_spy", _wrap_Registry_get_match_spy, 0x0001, (char *)"\n"
60194 "Get a match spy given a name.\n"
60196 "const Xapian::MatchSpy* Xapian::Registry::get_match_spy(const\n"
60197 "std::string &name) const\n"
60199 "The returned match spy is owned by the registry object.\n"
60201 "Returns NULL if the match spy could not be found. \n"
60203 { (char *)"Registry_swigregister", Registry_swigregister, 0x0001, __null},
60204 { (char *)"Registry_swiginit", Registry_swiginit, 0x0001, __null},
60205 { (char *)"delete_Weight", (PyCFunction)_wrap_delete_Weight, 0x0008, (char *)"\n"
60206 "Virtual destructor, because we have virtual methods.\n"
60208 "virtual Xapian::Weight::~Weight() \n"
60210 { (char *)"Weight_name", (PyCFunction)_wrap_Weight_name, 0x0008, (char *)"\n"
60211 "Return the name of this weighting scheme.\n"
60213 "virtual std::string Xapian::Weight::name() const\n"
60215 "This name is used by the remote backend. It is passed along with the\n"
60216 "serialised parameters to the remote server so that it knows which\n"
60217 "class to create.\n"
60219 "Return the full namespace-qualified name of your class here - if your\n"
60220 "class is called FooWeight, return \"FooWeight\" from this method (\n"
60221 "Xapian::BM25Weight returns \"Xapian::BM25Weight\" here).\n"
60223 "If you don't want to support the remote backend, you can use the\n"
60224 "default implementation which simply returns an empty string. \n"
60226 { (char *)"Weight_get_sumpart", _wrap_Weight_get_sumpart, 0x0001, (char *)"\n"
60227 "Calculate the weight contribution for this object's term to a\n"
60230 "virtual Xapian::weight Xapian::Weight::get_sumpart(Xapian::termcount\n"
60231 "wdf, Xapian::termcount doclen) const =0\n"
60233 "The parameters give information about the document which may be used\n"
60234 "in the calculations:\n"
60239 "wdf: The within document frequency of the term in the document.\n"
60241 "doclen: The document's length (unnormalised). \n"
60243 { (char *)"Weight_get_maxpart", (PyCFunction)_wrap_Weight_get_maxpart, 0x0008, (char *)"\n"
60244 "Return an upper bound on what get_sumpart() can return for any\n"
60247 "virtual Xapian::weight Xapian::Weight::get_maxpart() const =0\n"
60249 "This information is used by the matcher to perform various\n"
60250 "optimisations, so strive to make the bound as tight as possible. \n"
60252 { (char *)"Weight_get_sumextra", _wrap_Weight_get_sumextra, 0x0001, (char *)"\n"
60253 "Calculate the term-independent weight component for a document.\n"
60255 "virtual Xapian::weight Xapian::Weight::get_sumextra(Xapian::termcount\n"
60256 "doclen) const =0\n"
60258 "The parameter gives information about the document which may be used\n"
60259 "in the calculations:\n"
60264 "doclen: The document's length (unnormalised). \n"
60266 { (char *)"Weight_get_maxextra", (PyCFunction)_wrap_Weight_get_maxextra, 0x0008, (char *)"\n"
60267 "Return an upper bound on what get_sumextra() can return for any\n"
60270 "virtual Xapian::weight Xapian::Weight::get_maxextra() const =0\n"
60272 "This information is used by the matcher to perform various\n"
60273 "optimisations, so strive to make the bound as tight as possible. \n"
60275 { (char *)"Weight_get_sumpart_needs_doclength_", (PyCFunction)_wrap_Weight_get_sumpart_needs_doclength_, 0x0008, __null},
60276 { (char *)"Weight_get_sumpart_needs_wdf_", (PyCFunction)_wrap_Weight_get_sumpart_needs_wdf_, 0x0008, __null},
60277 { (char *)"Weight_swigregister", Weight_swigregister, 0x0001, __null},
60278 { (char *)"new_BoolWeight", (PyCFunction)_wrap_new_BoolWeight, 0x0004, (char *)"\n"
60279 "Construct a BoolWeight.\n"
60281 "Xapian::BoolWeight::BoolWeight() \n"
60283 { (char *)"delete_BoolWeight", (PyCFunction)_wrap_delete_BoolWeight, 0x0008, __null},
60284 { (char *)"BoolWeight_swigregister", BoolWeight_swigregister, 0x0001, __null},
60285 { (char *)"BoolWeight_swiginit", BoolWeight_swiginit, 0x0001, __null},
60286 { (char *)"new_BM25Weight", _wrap_new_BM25Weight, 0x0001, (char *)"Xapian::BM25Weight::BM25Weight() "},
60287 { (char *)"delete_BM25Weight", (PyCFunction)_wrap_delete_BM25Weight, 0x0008, __null},
60288 { (char *)"BM25Weight_swigregister", BM25Weight_swigregister, 0x0001, __null},
60289 { (char *)"BM25Weight_swiginit", BM25Weight_swiginit, 0x0001, __null},
60290 { (char *)"new_TradWeight", _wrap_new_TradWeight, 0x0001, (char *)"\n"
60291 "Construct a TradWeight.\n"
60293 "Xapian::TradWeight::TradWeight(double k=1.0)\n"
60298 "k: A non-negative parameter controlling how influential within-\n"
60299 "document- frequency (wdf) and document length are. k=0 means that wdf\n"
60300 "and document length don't affect the weights. The larger k1 is, the\n"
60301 "more they do. (default 1) \n"
60303 { (char *)"delete_TradWeight", (PyCFunction)_wrap_delete_TradWeight, 0x0008, __null},
60304 { (char *)"TradWeight_swigregister", TradWeight_swigregister, 0x0001, __null},
60305 { (char *)"TradWeight_swiginit", TradWeight_swiginit, 0x0001, __null},
60306 { (char *)"new_MatchSpy", (PyCFunction)_wrap_new_MatchSpy, 0x0008, __null},
60307 { (char *)"delete_MatchSpy", (PyCFunction)_wrap_delete_MatchSpy, 0x0008, (char *)"\n"
60308 "Virtual destructor, because we have virtual methods.\n"
60310 "virtual Xapian::MatchSpy::~MatchSpy() \n"
60312 { (char *)"MatchSpy___call__", _wrap_MatchSpy___call__, 0x0001, __null},
60313 { (char *)"MatchSpy_name", (PyCFunction)_wrap_MatchSpy_name, 0x0008, (char *)"\n"
60314 "Return the name of this match spy.\n"
60316 "virtual std::string Xapian::MatchSpy::name() const\n"
60318 "This name is used by the remote backend. It is passed with the\n"
60319 "serialised parameters to the remote server so that it knows which\n"
60320 "class to create.\n"
60322 "Return the full namespace-qualified name of your class here - if your\n"
60323 "class is called MyApp::FooMatchSpy, return \"MyApp::FooMatchSpy\" from\n"
60326 "If you don't want to support the remote backend in your match spy, you\n"
60327 "can use the default implementation which simply throws\n"
60328 "Xapian::UnimplementedError. \n"
60330 { (char *)"MatchSpy_merge_results", _wrap_MatchSpy_merge_results, 0x0001, (char *)"\n"
60331 "Unserialise some results, and merge them into this matchspy.\n"
60333 "virtual void Xapian::MatchSpy::merge_results(const std::string &s)\n"
60335 "The order in which results are merged should not be significant, since\n"
60336 "this order is not specified (and will vary depending on the speed of\n"
60337 "the search in each sub-database).\n"
60339 "If you don't want to support the remote backend in your match spy, you\n"
60340 "can use the default implementation which simply throws\n"
60341 "Xapian::UnimplementedError. \n"
60343 { (char *)"MatchSpy___str__", (PyCFunction)_wrap_MatchSpy___str__, 0x0008, (char *)"\n"
60344 "Return a string describing this object.\n"
60346 "virtual std::string Xapian::MatchSpy::get_description() const\n"
60348 "This default implementation returns a generic answer, to avoid forcing\n"
60349 "those deriving their own MatchSpy subclasses from having to implement\n"
60350 "this (they may not care what get_description() gives for their\n"
60353 { (char *)"disown_MatchSpy", (PyCFunction)_wrap_disown_MatchSpy, 0x0008, __null},
60354 { (char *)"MatchSpy_swigregister", MatchSpy_swigregister, 0x0001, __null},
60355 { (char *)"MatchSpy_swiginit", MatchSpy_swiginit, 0x0001, __null},
60356 { (char *)"new_ValueCountMatchSpy", _wrap_new_ValueCountMatchSpy, 0x0001, (char *)"\n"
60357 "Construct a MatchSpy which counts the values in a particular slot.\n"
60359 "Xapian::ValueCountMatchSpy::ValueCountMatchSpy(Xapian::valueno slot_)\n"
60362 { (char *)"ValueCountMatchSpy_get_total", (PyCFunction)_wrap_ValueCountMatchSpy_get_total, 0x0008, (char *)"\n"
60363 "Return the total number of documents tallied.\n"
60365 "size_t Xapian::ValueCountMatchSpy::get_total() const \n"
60367 { (char *)"ValueCountMatchSpy_values_begin", (PyCFunction)_wrap_ValueCountMatchSpy_values_begin, 0x0008, (char *)"\n"
60368 "Get an iterator over the values seen in the slot.\n"
60370 "TermIterator Xapian::ValueCountMatchSpy::values_begin() const\n"
60372 "Items will be returned in ascending alphabetical order.\n"
60374 "During the iteration, the frequency of the current value can be\n"
60375 "obtained with the get_termfreq() method on the iterator. \n"
60377 { (char *)"ValueCountMatchSpy_values_end", (PyCFunction)_wrap_ValueCountMatchSpy_values_end, 0x0008, (char *)"\n"
60378 "End iterator corresponding to values_begin().\n"
60380 "TermIterator Xapian::ValueCountMatchSpy::values_end() const \n"
60382 { (char *)"ValueCountMatchSpy_top_values_begin", _wrap_ValueCountMatchSpy_top_values_begin, 0x0001, (char *)"\n"
60383 "Get an iterator over the most frequent values seen in the slot.\n"
60385 "TermIterator Xapian::ValueCountMatchSpy::top_values_begin(size_t\n"
60386 "maxvalues) const\n"
60388 "Items will be returned in descending order of frequency. Values with\n"
60389 "the same frequency will be returned in ascending alphabetical order.\n"
60391 "During the iteration, the frequency of the current value can be\n"
60392 "obtained with the get_termfreq() method on the iterator.\n"
60397 "maxvalues: The maximum number of values to return. \n"
60399 { (char *)"ValueCountMatchSpy_top_values_end", _wrap_ValueCountMatchSpy_top_values_end, 0x0001, (char *)"\n"
60400 "End iterator corresponding to top_values_begin().\n"
60402 "TermIterator Xapian::ValueCountMatchSpy::top_values_end(size_t) const\n"
60405 { (char *)"delete_ValueCountMatchSpy", (PyCFunction)_wrap_delete_ValueCountMatchSpy, 0x0008, __null},
60406 { (char *)"ValueCountMatchSpy_swigregister", ValueCountMatchSpy_swigregister, 0x0001, __null},
60407 { (char *)"ValueCountMatchSpy_swiginit", ValueCountMatchSpy_swiginit, 0x0001, __null},
60408 { (char *)"Database_add_database", _wrap_Database_add_database, 0x0001, (char *)"\n"
60409 "Add an existing database (or group of databases) to those accessed by\n"
60412 "void Xapian::Database::add_database(const Database &database)\n"
60417 "database: the database(s) to add. \n"
60419 { (char *)"delete_Database", (PyCFunction)_wrap_delete_Database, 0x0008, (char *)"\n"
60420 "Destroy this handle on the database.\n"
60422 "virtual Xapian::Database::~Database()\n"
60424 "If there are no copies of this object remaining, the database(s) will\n"
60427 { (char *)"new_Database", _wrap_new_Database, 0x0001, (char *)"\n"
60428 "Copying is allowed.\n"
60430 "Xapian::Database::Database(const Database &other)\n"
60432 "The internals are reference counted, so copying is cheap. \n"
60434 { (char *)"Database_reopen", (PyCFunction)_wrap_Database_reopen, 0x0008, (char *)"\n"
60435 "Re-open the database.\n"
60437 "void Xapian::Database::reopen()\n"
60439 "This re-opens the database(s) to the latest available version(s). It\n"
60440 "can be used either to make sure the latest results are returned, or to\n"
60441 "recover from a Xapian::DatabaseModifiedError.\n"
60443 "Calling reopen() on a database which has been closed (with close())\n"
60444 "will always raise a Xapian::DatabaseError. \n"
60446 { (char *)"Database_close", (PyCFunction)_wrap_Database_close, 0x0008, (char *)"\n"
60447 "Close the database.\n"
60449 "virtual void Xapian::Database::close()\n"
60451 "This closes the database and releases all file handles held by the\n"
60454 "This is a permanent close of the database: calling reopen() after\n"
60455 "closing a database will not reopen it, and will raise an exception.\n"
60457 "Calling close() on a database which is already closed has no effect\n"
60458 "(and doesn't raise an exception).\n"
60460 "After this call, calls made to methods of the database (other than\n"
60461 "close() or the destructor), or to objects associated with the database\n"
60462 "will behave in one of the following ways (but which behaviour happens\n"
60463 "may vary between releases, and between database backends):\n"
60465 "raise a Xapian::DatabaseError indicating that the database is closed.\n"
60467 "behave exactly as they would have done if the database had not been\n"
60468 "closed (by using cached data).\n"
60470 "To summarise - you should not rely on the exception being raised, or\n"
60471 "the normal result being available, but if you do get a result, it will\n"
60474 { (char *)"Database___str__", (PyCFunction)_wrap_Database___str__, 0x0008, (char *)"\n"
60475 "Return a string describing this object.\n"
60477 "virtual std::string Xapian::Database::get_description() const \n"
60479 { (char *)"Database_postlist_begin", _wrap_Database_postlist_begin, 0x0001, (char *)"\n"
60480 "An iterator pointing to the start of the postlist for a given term.\n"
60482 "PostingIterator Xapian::Database::postlist_begin(const std::string\n"
60485 "If the term name is the empty string, the iterator returned will list\n"
60486 "all the documents in the database. Such an iterator will always return\n"
60487 "a WDF value of 1, since there is no obvious meaning for this quantity\n"
60490 { (char *)"Database_postlist_end", _wrap_Database_postlist_end, 0x0001, (char *)"\n"
60491 "Corresponding end iterator to postlist_begin().\n"
60493 "PostingIterator Xapian::Database::postlist_end(const std::string &)\n"
60496 { (char *)"Database_termlist_begin", _wrap_Database_termlist_begin, 0x0001, (char *)"\n"
60497 "An iterator pointing to the start of the termlist for a given\n"
60500 "TermIterator Xapian::Database::termlist_begin(Xapian::docid did) const\n"
60503 { (char *)"Database_termlist_end", _wrap_Database_termlist_end, 0x0001, (char *)"\n"
60504 "Corresponding end iterator to termlist_begin().\n"
60506 "TermIterator Xapian::Database::termlist_end(Xapian::docid) const \n"
60508 { (char *)"Database_positionlist_begin", _wrap_Database_positionlist_begin, 0x0001, (char *)"\n"
60509 "An iterator pointing to the start of the position list for a given\n"
60510 "term in a given document.\n"
60512 "PositionIterator Xapian::Database::positionlist_begin(Xapian::docid\n"
60513 "did, const std::string &tname) const \n"
60515 { (char *)"Database_positionlist_end", _wrap_Database_positionlist_end, 0x0001, (char *)"\n"
60516 "Corresponding end iterator to positionlist_begin().\n"
60518 "PositionIterator Xapian::Database::positionlist_end(Xapian::docid,\n"
60519 "const std::string &) const \n"
60521 { (char *)"Database_allterms_begin", _wrap_Database_allterms_begin, 0x0001, (char *)"\n"
60522 "An iterator which runs across all terms with a given prefix.\n"
60524 "TermIterator Xapian::Database::allterms_begin(const std::string\n"
60527 "This is functionally similar to getting an iterator with\n"
60528 "allterms_begin() and then calling skip_to(prefix) on that iterator to\n"
60529 "move to the start of the prefix, but is more convenient (because it\n"
60530 "detects the end of the prefixed terms), and may be more efficient than\n"
60531 "simply calling skip_to() after opening the iterator, particularly for\n"
60532 "remote databases.\n"
60537 "prefix: The prefix to restrict the returned terms to. \n"
60539 { (char *)"Database_allterms_end", _wrap_Database_allterms_end, 0x0001, (char *)"\n"
60540 "Corresponding end iterator to allterms_begin(prefix).\n"
60542 "TermIterator Xapian::Database::allterms_end(const std::string &) const\n"
60545 { (char *)"Database_get_doccount", (PyCFunction)_wrap_Database_get_doccount, 0x0008, (char *)"\n"
60546 "Get the number of documents in the database.\n"
60548 "Xapian::doccount Xapian::Database::get_doccount() const \n"
60550 { (char *)"Database_get_lastdocid", (PyCFunction)_wrap_Database_get_lastdocid, 0x0008, (char *)"\n"
60551 "Get the highest document id which has been used in the database.\n"
60553 "Xapian::docid Xapian::Database::get_lastdocid() const \n"
60555 { (char *)"Database_get_avlength", (PyCFunction)_wrap_Database_get_avlength, 0x0008, (char *)"\n"
60556 "Get the average length of the documents in the database.\n"
60558 "Xapian::doclength Xapian::Database::get_avlength() const \n"
60560 { (char *)"Database_get_termfreq", _wrap_Database_get_termfreq, 0x0001, (char *)"\n"
60561 "Get the number of documents in the database indexed by a given term.\n"
60563 "Xapian::doccount Xapian::Database::get_termfreq(const std::string\n"
60566 { (char *)"Database_term_exists", _wrap_Database_term_exists, 0x0001, (char *)"\n"
60567 "Check if a given term exists in the database.\n"
60569 "bool Xapian::Database::term_exists(const std::string &tname) const\n"
60571 "Return true if and only if the term exists in the database. This is\n"
60572 "the same as (get_termfreq(tname) != 0), but will often be more\n"
60575 { (char *)"Database_get_collection_freq", _wrap_Database_get_collection_freq, 0x0001, (char *)"\n"
60576 "Return the total number of occurrences of the given term.\n"
60578 "Xapian::termcount Xapian::Database::get_collection_freq(const\n"
60579 "std::string &tname) const\n"
60581 "This is the sum of the number of occurrences of the term in each\n"
60582 "document it indexes: i.e., the sum of the within document frequencies\n"
60588 "tname: The term whose collection frequency is being requested. \n"
60590 { (char *)"Database_get_value_freq", _wrap_Database_get_value_freq, 0x0001, (char *)"\n"
60591 "Return the frequency of a given value slot.\n"
60593 "Xapian::doccount Xapian::Database::get_value_freq(Xapian::valueno\n"
60596 "This is the number of documents which have a (non-empty) value stored\n"
60602 "valno: The value slot to examine.\n"
60607 "UnimplementedError: The frequency of the value isn't available for\n"
60608 "this database type. \n"
60610 { (char *)"Database_get_value_lower_bound", _wrap_Database_get_value_lower_bound, 0x0001, (char *)"\n"
60611 "Get a lower bound on the values stored in the given value slot.\n"
60613 "std::string Xapian::Database::get_value_lower_bound(Xapian::valueno\n"
60616 "If there are no values stored in the given value slot, this will\n"
60617 "return an empty string.\n"
60619 "If the lower bound isn't available for the given database type, this\n"
60620 "will return the lowest possible bound - the empty string.\n"
60625 "valno: The value slot to examine. \n"
60627 { (char *)"Database_get_value_upper_bound", _wrap_Database_get_value_upper_bound, 0x0001, (char *)"\n"
60628 "Get an upper bound on the values stored in the given value slot.\n"
60630 "std::string Xapian::Database::get_value_upper_bound(Xapian::valueno\n"
60633 "If there are no values stored in the given value slot, this will\n"
60634 "return an empty string.\n"
60639 "valno: The value slot to examine.\n"
60644 "UnimplementedError: The upper bound of the values isn't available for\n"
60645 "this database type. \n"
60647 { (char *)"Database_get_doclength_lower_bound", (PyCFunction)_wrap_Database_get_doclength_lower_bound, 0x0008, (char *)"\n"
60648 "Get a lower bound on the length of a document in this DB.\n"
60650 "Xapian::termcount Xapian::Database::get_doclength_lower_bound() const\n"
60652 "This bound does not include any zero-length documents. \n"
60654 { (char *)"Database_get_doclength_upper_bound", (PyCFunction)_wrap_Database_get_doclength_upper_bound, 0x0008, (char *)"\n"
60655 "Get an upper bound on the length of a document in this DB.\n"
60657 "Xapian::termcount Xapian::Database::get_doclength_upper_bound() const\n"
60660 { (char *)"Database_get_wdf_upper_bound", _wrap_Database_get_wdf_upper_bound, 0x0001, (char *)"\n"
60661 "Get an upper bound on the wdf of term term.\n"
60663 "Xapian::termcount Xapian::Database::get_wdf_upper_bound(const\n"
60664 "std::string &term) const \n"
60666 { (char *)"Database_valuestream_begin", _wrap_Database_valuestream_begin, 0x0001, (char *)"\n"
60667 "Return an iterator over the value in slot slot for each document.\n"
60669 "ValueIterator Xapian::Database::valuestream_begin(Xapian::valueno\n"
60672 { (char *)"Database_valuestream_end", _wrap_Database_valuestream_end, 0x0001, (char *)"\n"
60673 "Return end iterator corresponding to valuestream_begin().\n"
60675 "ValueIteratorEnd_ Xapian::Database::valuestream_end(Xapian::valueno)\n"
60678 { (char *)"Database_get_doclength", _wrap_Database_get_doclength, 0x0001, (char *)"\n"
60679 "Get the length of a document.\n"
60681 "Xapian::termcount Xapian::Database::get_doclength(Xapian::docid did)\n"
60684 { (char *)"Database_keep_alive", (PyCFunction)_wrap_Database_keep_alive, 0x0008, (char *)"\n"
60685 "Send a \"keep-alive\" to remote databases to stop them timing out.\n"
60687 "void Xapian::Database::keep_alive()\n"
60689 "Has no effect on non-remote databases. \n"
60691 { (char *)"Database_get_document", _wrap_Database_get_document, 0x0001, (char *)"\n"
60692 "Get a document from the database, given its document id.\n"
60694 "Xapian::Document Xapian::Database::get_document(Xapian::docid did)\n"
60697 "This method returns a Xapian::Document object which provides the\n"
60698 "information about a document.\n"
60703 "did: The document id of the document to retrieve.\n"
60705 "A Xapian::Document object containing the document data\n"
60710 "Xapian::DocNotFoundError: The document specified could not be found\n"
60711 "in the database. \n"
60713 { (char *)"Database_get_spelling_suggestion", _wrap_Database_get_spelling_suggestion, 0x0001, (char *)"\n"
60714 "Suggest a spelling correction.\n"
60716 "std::string Xapian::Database::get_spelling_suggestion(const\n"
60717 "std::string &word, unsigned max_edit_distance=2) const\n"
60722 "word: The potentially misspelled word.\n"
60724 "max_edit_distance: Only consider words which are at most\n"
60725 "max_edit_distance edits from word. An edit is a character insertion,\n"
60726 "deletion, or the transposition of two adjacent characters (default is\n"
60729 { (char *)"Database_spellings_begin", (PyCFunction)_wrap_Database_spellings_begin, 0x0008, (char *)"\n"
60730 "An iterator which returns all the spelling correction targets.\n"
60732 "Xapian::TermIterator Xapian::Database::spellings_begin() const\n"
60734 "This returns all the words which are considered as targets for the\n"
60735 "spelling correction algorithm. The frequency of each word is available\n"
60736 "as the term frequency of each entry in the returned iterator. \n"
60738 { (char *)"Database_spellings_end", (PyCFunction)_wrap_Database_spellings_end, 0x0008, (char *)"\n"
60739 "Corresponding end iterator to spellings_begin().\n"
60741 "Xapian::TermIterator Xapian::Database::spellings_end() const \n"
60743 { (char *)"Database_synonyms_begin", _wrap_Database_synonyms_begin, 0x0001, (char *)"\n"
60744 "An iterator which returns all the synonyms for a given term.\n"
60746 "Xapian::TermIterator Xapian::Database::synonyms_begin(const\n"
60747 "std::string &term) const\n"
60752 "term: The term to return synonyms for. \n"
60754 { (char *)"Database_synonyms_end", _wrap_Database_synonyms_end, 0x0001, (char *)"\n"
60755 "Corresponding end iterator to synonyms_begin(term).\n"
60757 "Xapian::TermIterator Xapian::Database::synonyms_end(const std::string\n"
60760 { (char *)"Database_synonym_keys_begin", _wrap_Database_synonym_keys_begin, 0x0001, (char *)"\n"
60761 "An iterator which returns all terms which have synonyms.\n"
60763 "Xapian::TermIterator Xapian::Database::synonym_keys_begin(const\n"
60764 "std::string &prefix=std::string()) const\n"
60769 "prefix: If non-empty, only terms with this prefix are returned. \n"
60771 { (char *)"Database_synonym_keys_end", _wrap_Database_synonym_keys_end, 0x0001, (char *)"\n"
60772 "Corresponding end iterator to synonym_keys_begin(prefix).\n"
60774 "Xapian::TermIterator Xapian::Database::synonym_keys_end(const\n"
60775 "std::string &=std::string()) const \n"
60777 { (char *)"Database_get_metadata", _wrap_Database_get_metadata, 0x0001, (char *)"\n"
60778 "Get the user-specified metadata associated with a given key.\n"
60780 "std::string Xapian::Database::get_metadata(const std::string &key)\n"
60783 "User-specified metadata allows you to store arbitrary information in\n"
60784 "the form of (key,tag) pairs. See WritableDatabase::set_metadata() for\n"
60785 "more information.\n"
60787 "When invoked on a Xapian::Database object representing multiple\n"
60788 "databases, currently only the metadata for the first is considered but\n"
60789 "this behaviour may change in the future.\n"
60791 "If there is no piece of metadata associated with the specified key, an\n"
60792 "empty string is returned (this applies even for backends which don't\n"
60793 "support metadata).\n"
60795 "Empty keys are not valid, and specifying one will cause an exception.\n"
60800 "key: The key of the metadata item to access.\n"
60802 "The retrieved metadata item's value.\n"
60807 "Xapian::InvalidArgumentError: will be thrown if the key supplied is\n"
60810 { (char *)"Database__metadata_keys_begin", _wrap_Database__metadata_keys_begin, 0x0001, (char *)"\n"
60811 "An iterator which returns all user-specified metadata keys.\n"
60813 "Xapian::TermIterator Xapian::Database::metadata_keys_begin(const\n"
60814 "std::string &prefix=std::string()) const\n"
60816 "When invoked on a Xapian::Database object representing multiple\n"
60817 "databases, currently only the metadata for the first is considered but\n"
60818 "this behaviour may change in the future.\n"
60820 "If the backend doesn't support metadata, then this method returns an\n"
60821 "iterator which compares equal to that returned by metadata_keys_end().\n"
60826 "prefix: If non-empty, only keys with this prefix are returned.\n"
60831 "Xapian::UnimplementedError: will be thrown if the backend implements\n"
60832 "user-specified metadata, but doesn't implement iterating its keys\n"
60833 "(currently this happens for the InMemory backend). \n"
60835 { (char *)"Database__metadata_keys_end", _wrap_Database__metadata_keys_end, 0x0001, (char *)"\n"
60836 "Corresponding end iterator to metadata_keys_begin().\n"
60838 "Xapian::TermIterator Xapian::Database::metadata_keys_end(const\n"
60839 "std::string &=std::string()) const \n"
60841 { (char *)"Database_get_uuid", (PyCFunction)_wrap_Database_get_uuid, 0x0008, (char *)"\n"
60842 "Get a UUID for the database.\n"
60844 "std::string Xapian::Database::get_uuid() const\n"
60846 "The UUID will persist for the lifetime of the database.\n"
60848 "Replicas (eg, made with the replication protocol, or by copying all\n"
60849 "the database files) will have the same UUID. However, copies (made\n"
60850 "with copydatabase, or xapian-compact) will have different UUIDs.\n"
60852 "If the backend does not support UUIDs or this database has no\n"
60853 "subdatabases, the UUID will be empty.\n"
60855 "If this database has multiple sub-databases, the UUID string will\n"
60856 "contain the UUIDs of all the sub-databases. \n"
60858 { (char *)"Database_swigregister", Database_swigregister, 0x0001, __null},
60859 { (char *)"Database_swiginit", Database_swiginit, 0x0001, __null},
60860 { (char *)"delete_WritableDatabase", (PyCFunction)_wrap_delete_WritableDatabase, 0x0008, (char *)"\n"
60861 "Destroy this handle on the database.\n"
60863 "virtual Xapian::WritableDatabase::~WritableDatabase()\n"
60865 "If there are no copies of this object remaining, the database will be\n"
60866 "closed. If there are any transactions in progress these will be\n"
60867 "aborted as if cancel_transaction had been called. \n"
60869 { (char *)"new_WritableDatabase", _wrap_new_WritableDatabase, 0x0001, (char *)"\n"
60870 "Copying is allowed.\n"
60872 "Xapian::WritableDatabase::WritableDatabase(const WritableDatabase\n"
60875 "The internals are reference counted, so copying is cheap. \n"
60877 { (char *)"WritableDatabase_commit", (PyCFunction)_wrap_WritableDatabase_commit, 0x0008, (char *)"\n"
60878 "Commit any pending modifications made to the database.\n"
60880 "void Xapian::WritableDatabase::commit()\n"
60882 "For efficiency reasons, when performing multiple updates to a database\n"
60883 "it is best (indeed, almost essential) to make as many modifications as\n"
60884 "memory will permit in a single pass through the database. To ensure\n"
60885 "this, Xapian batches up modifications.\n"
60887 "This method may be called at any time to commit any pending\n"
60888 "modifications to the database.\n"
60890 "If any of the modifications fail, an exception will be thrown and the\n"
60891 "database will be left in a state in which each separate addition,\n"
60892 "replacement or deletion operation has either been fully performed or\n"
60893 "not performed at all: it is then up to the application to work out\n"
60894 "which operations need to be repeated.\n"
60896 "It's not valid to call commit() within a transaction.\n"
60898 "Beware of calling commit() too frequently: this will make indexing\n"
60899 "take much longer.\n"
60901 "Note that commit() need not be called explicitly: it will be called\n"
60902 "automatically when the database is closed, or when a sufficient number\n"
60903 "of modifications have been made. By default, this is every 10000\n"
60904 "documents added, deleted, or modified. This value is rather\n"
60905 "conservative, and if you have a machine with plenty of memory, you can\n"
60906 "improve indexing throughput dramatically by setting\n"
60907 "XAPIAN_FLUSH_THRESHOLD in the environment to a larger value.\n"
60912 "Xapian::DatabaseError: will be thrown if a problem occurs while\n"
60913 "modifying the database.\n"
60915 "Xapian::DatabaseCorruptError: will be thrown if the database is in a\n"
60916 "corrupt state. \n"
60918 { (char *)"WritableDatabase_flush", (PyCFunction)_wrap_WritableDatabase_flush, 0x0008, (char *)"\n"
60919 "Pre-1.1.0 name for commit().\n"
60921 "void Xapian::WritableDatabase::flush()\n"
60923 "Use commit() instead in new code. This alias may be deprecated in the\n"
60926 { (char *)"WritableDatabase_begin_transaction", _wrap_WritableDatabase_begin_transaction, 0x0001, (char *)"\n"
60927 "Begin a transaction.\n"
60929 "void Xapian::WritableDatabase::begin_transaction(bool flushed=true)\n"
60931 "In Xapian a transaction is a group of modifications to the database\n"
60932 "which are linked such that either all will be applied simultaneously\n"
60933 "or none will be applied at all. Even in the case of a power failure,\n"
60934 "this characteristic should be preserved (as long as the filesystem\n"
60935 "isn't corrupted, etc).\n"
60937 "A transaction is started with begin_transaction() and can either be\n"
60938 "committed by calling commit_transaction() or aborted by calling\n"
60939 "cancel_transaction().\n"
60941 "By default, a transaction implicitly calls commit() before and after\n"
60942 "so that the modifications stand and fall without affecting\n"
60943 "modifications before or after.\n"
60945 "The downside of these implicit calls to commit() is that small\n"
60946 "transactions can harm indexing performance in the same way that\n"
60947 "explicitly calling commit() frequently can.\n"
60949 "If you're applying atomic groups of changes and only wish to ensure\n"
60950 "that each group is either applied or not applied, then you can prevent\n"
60951 "the automatic commit() before and after the transaction by starting\n"
60952 "the transaction with begin_transaction(false). However, if\n"
60953 "cancel_transaction is called (or if commit_transaction isn't called\n"
60954 "before the WritableDatabase object is destroyed) then any changes\n"
60955 "which were pending before the transaction began will also be\n"
60958 "Transactions aren't currently supported by the InMemory backend.\n"
60963 "Xapian::UnimplementedError: will be thrown if transactions are not\n"
60964 "available for this database type.\n"
60966 "Xapian::InvalidOperationError: will be thrown if this is called at an\n"
60967 "invalid time, such as when a transaction is already in progress. \n"
60969 { (char *)"WritableDatabase_commit_transaction", (PyCFunction)_wrap_WritableDatabase_commit_transaction, 0x0008, (char *)"\n"
60970 "Complete the transaction currently in progress.\n"
60972 "void Xapian::WritableDatabase::commit_transaction()\n"
60974 "If this method completes successfully and this is a flushed\n"
60975 "transaction, all the database modifications made during the\n"
60976 "transaction will have been committed to the database.\n"
60978 "If an error occurs, an exception will be thrown, and none of the\n"
60979 "modifications made to the database during the transaction will have\n"
60980 "been applied to the database.\n"
60982 "In all cases the transaction will no longer be in progress.\n"
60987 "Xapian::DatabaseError: will be thrown if a problem occurs while\n"
60988 "modifying the database.\n"
60990 "Xapian::DatabaseCorruptError: will be thrown if the database is in a\n"
60993 "Xapian::InvalidOperationError: will be thrown if a transaction is not\n"
60994 "currently in progress.\n"
60996 "Xapian::UnimplementedError: will be thrown if transactions are not\n"
60997 "available for this database type. \n"
60999 { (char *)"WritableDatabase_cancel_transaction", (PyCFunction)_wrap_WritableDatabase_cancel_transaction, 0x0008, (char *)"\n"
61000 "Abort the transaction currently in progress, discarding the pending\n"
61001 "modifications made to the database.\n"
61003 "void Xapian::WritableDatabase::cancel_transaction()\n"
61005 "If an error occurs in this method, an exception will be thrown, but\n"
61006 "the transaction will be cancelled anyway.\n"
61011 "Xapian::DatabaseError: will be thrown if a problem occurs while\n"
61012 "modifying the database.\n"
61014 "Xapian::DatabaseCorruptError: will be thrown if the database is in a\n"
61017 "Xapian::InvalidOperationError: will be thrown if a transaction is not\n"
61018 "currently in progress.\n"
61020 "Xapian::UnimplementedError: will be thrown if transactions are not\n"
61021 "available for this database type. \n"
61023 { (char *)"WritableDatabase_add_document", _wrap_WritableDatabase_add_document, 0x0001, (char *)"\n"
61024 "Add a new document to the database.\n"
61026 "Xapian::docid Xapian::WritableDatabase::add_document(const\n"
61027 "Xapian::Document &document)\n"
61029 "This method adds the specified document to the database, returning a\n"
61030 "newly allocated document ID. Automatically allocated document IDs come\n"
61031 "from a per-database monotonically increasing counter, so IDs from\n"
61032 "deleted documents won't be reused.\n"
61034 "If you want to specify the document ID to be used, you should call\n"
61035 "replace_document() instead.\n"
61037 "Note that changes to the database won't be immediately committed to\n"
61038 "disk; see commit() for more details.\n"
61040 "As with all database modification operations, the effect is atomic:\n"
61041 "the document will either be fully added, or the document fails to be\n"
61042 "added and an exception is thrown (possibly at a later time when\n"
61043 "commit() is called or the database is closed).\n"
61048 "document: The new document to be added.\n"
61050 "The document ID of the newly added document.\n"
61055 "Xapian::DatabaseError: will be thrown if a problem occurs while\n"
61056 "writing to the database.\n"
61058 "Xapian::DatabaseCorruptError: will be thrown if the database is in a\n"
61059 "corrupt state. \n"
61061 { (char *)"WritableDatabase_delete_document", _wrap_WritableDatabase_delete_document, 0x0001, (char *)"\n"
61062 "Delete any documents indexed by a term from the database.\n"
61064 "void Xapian::WritableDatabase::delete_document(const std::string\n"
61067 "This method removes any documents indexed by the specified term from\n"
61070 "A major use is for convenience when UIDs from another system are\n"
61071 "mapped to terms in Xapian, although this method has other uses (for\n"
61072 "example, you could add a \"deletion date\" term to documents at index\n"
61073 "time and use this method to delete all documents due for deletion on a\n"
61074 "particular date).\n"
61079 "unique_term: The term to remove references to.\n"
61084 "Xapian::DatabaseError: will be thrown if a problem occurs while\n"
61085 "writing to the database.\n"
61087 "Xapian::DatabaseCorruptError: will be thrown if the database is in a\n"
61088 "corrupt state. \n"
61090 { (char *)"WritableDatabase_replace_document", _wrap_WritableDatabase_replace_document, 0x0001, (char *)"\n"
61091 "Replace any documents matching a term.\n"
61093 "Xapian::docid Xapian::WritableDatabase::replace_document(const\n"
61094 "std::string &unique_term, const Xapian::Document &document)\n"
61096 "This method replaces any documents indexed by the specified term with\n"
61097 "the specified document. If any documents are indexed by the term, the\n"
61098 "lowest document ID will be used for the document, otherwise a new\n"
61099 "document ID will be generated as for add_document.\n"
61101 "One common use is to allow UIDs from another system to easily be\n"
61102 "mapped to terms in Xapian. Note that this method doesn't automatically\n"
61103 "add unique_term as a term, so you'll need to call\n"
61104 "document.add_term(unique_term) first when using replace_document() in\n"
61107 "Another possible use is to allow groups of documents to be marked for\n"
61108 "later deletion - for example, you could add a \"deletion date\" term\n"
61109 "to documents at index time and use this method to easily and\n"
61110 "efficiently delete all documents due for deletion on a particular\n"
61113 "Note that changes to the database won't be immediately committed to\n"
61114 "disk; see commit() for more details.\n"
61116 "As with all database modification operations, the effect is atomic:\n"
61117 "the document(s) will either be fully replaced, or the document(s) fail\n"
61118 "to be replaced and an exception is thrown (possibly at a later time\n"
61119 "when commit() is called or the database is closed).\n"
61124 "unique_term: The \"unique\" term.\n"
61126 "document: The new document.\n"
61128 "The document ID that document was given.\n"
61133 "Xapian::DatabaseError: will be thrown if a problem occurs while\n"
61134 "writing to the database.\n"
61136 "Xapian::DatabaseCorruptError: will be thrown if the database is in a\n"
61137 "corrupt state. \n"
61139 { (char *)"WritableDatabase_add_spelling", _wrap_WritableDatabase_add_spelling, 0x0001, (char *)"\n"
61140 "Add a word to the spelling dictionary.\n"
61142 "void Xapian::WritableDatabase::add_spelling(const std::string &word,\n"
61143 "Xapian::termcount freqinc=1) const\n"
61145 "If the word is already present, its frequency is increased.\n"
61150 "word: The word to add.\n"
61152 "freqinc: How much to increase its frequency by (default 1). \n"
61154 { (char *)"WritableDatabase_remove_spelling", _wrap_WritableDatabase_remove_spelling, 0x0001, (char *)"\n"
61155 "Remove a word from the spelling dictionary.\n"
61157 "void Xapian::WritableDatabase::remove_spelling(const std::string\n"
61158 "&word, Xapian::termcount freqdec=1) const\n"
61160 "The word's frequency is decreased, and if would become zero or less\n"
61161 "then the word is removed completely.\n"
61166 "word: The word to remove.\n"
61168 "freqdec: How much to decrease its frequency by (default 1). \n"
61170 { (char *)"WritableDatabase_add_synonym", _wrap_WritableDatabase_add_synonym, 0x0001, (char *)"\n"
61171 "Add a synonym for a term.\n"
61173 "void Xapian::WritableDatabase::add_synonym(const std::string &term,\n"
61174 "const std::string &synonym) const\n"
61176 "If synonym is already a synonym for term, then no action is taken. \n"
61178 { (char *)"WritableDatabase_remove_synonym", _wrap_WritableDatabase_remove_synonym, 0x0001, (char *)"\n"
61179 "Remove a synonym for a term.\n"
61181 "void Xapian::WritableDatabase::remove_synonym(const std::string &term,\n"
61182 "const std::string &synonym) const\n"
61184 "If synonym isn't a synonym for term, then no action is taken. \n"
61186 { (char *)"WritableDatabase_clear_synonyms", _wrap_WritableDatabase_clear_synonyms, 0x0001, (char *)"\n"
61187 "Remove all synonyms for a term.\n"
61189 "void Xapian::WritableDatabase::clear_synonyms(const std::string &term)\n"
61192 "If term has no synonyms, no action is taken. \n"
61194 { (char *)"WritableDatabase_set_metadata", _wrap_WritableDatabase_set_metadata, 0x0001, (char *)"\n"
61195 "Set the user-specified metadata associated with a given key.\n"
61197 "void Xapian::WritableDatabase::set_metadata(const std::string &key,\n"
61198 "const std::string &value)\n"
61200 "This method sets the metadata value associated with a given key. If\n"
61201 "there is already a metadata value stored in the database with the same\n"
61202 "key, the old value is replaced. If you want to delete an existing item\n"
61203 "of metadata, just set its value to the empty string.\n"
61205 "User-specified metadata allows you to store arbitrary information in\n"
61206 "the form of (key,tag) pairs.\n"
61208 "There's no hard limit on the number of metadata items, or the size of\n"
61209 "the metadata values. Metadata keys have a limited length, which\n"
61210 "depends on the backend. We recommend limiting them to 200 bytes. Empty\n"
61211 "keys are not valid, and specifying one will cause an exception.\n"
61213 "Metadata modifications are committed to disk in the same way as\n"
61214 "modifications to the documents in the database are: i.e.,\n"
61215 "modifications are atomic, and won't be committed to disk immediately\n"
61216 "(see commit() for more details). This allows metadata to be used to\n"
61217 "link databases with versioned external resources by storing the\n"
61218 "appropriate version number in a metadata item.\n"
61220 "You can also use the metadata to store arbitrary extra information\n"
61221 "associated with terms, documents, or postings by encoding the termname\n"
61222 "and/or document id into the metadata key.\n"
61227 "key: The key of the metadata item to set.\n"
61229 "value: The value of the metadata item to set.\n"
61234 "Xapian::DatabaseError: will be thrown if a problem occurs while\n"
61235 "writing to the database.\n"
61237 "Xapian::DatabaseCorruptError: will be thrown if the database is in a\n"
61240 "Xapian::InvalidArgumentError: will be thrown if the key supplied is\n"
61243 "Xapian::UnimplementedError: will be thrown if the database backend in\n"
61244 "use doesn't support user- specified metadata. \n"
61246 { (char *)"WritableDatabase___str__", (PyCFunction)_wrap_WritableDatabase___str__, 0x0008, (char *)"\n"
61247 "Return a string describing this object.\n"
61249 "std::string Xapian::WritableDatabase::get_description() const \n"
61251 { (char *)"WritableDatabase_swigregister", WritableDatabase_swigregister, 0x0001, __null},
61252 { (char *)"WritableDatabase_swiginit", WritableDatabase_swiginit, 0x0001, __null},
61253 { (char *)"open_stub", (PyCFunction)_wrap_open_stub, 0x0008, (char *)"\n"
61254 "Construct a WritableDatabase object for a stub database file.\n"
61256 "WritableDatabase Xapian::Auto::open_stub(const std::string &file, int\n"
61259 "The stub database file must contain serialised parameters for exactly\n"
61265 "file: pathname of the stub database file. \n"
61267 { (char *)"brass_open", _wrap_brass_open, 0x0001, (char *)"\n"
61268 "Construct a Database object for update access to a Brass database.\n"
61270 "WritableDatabase Xapian::Brass::open(const std::string &dir, int\n"
61271 "action, int block_size=8192)\n"
61276 "dir: pathname of the directory containing the database.\n"
61278 "action: determines handling of existing/non-existing database:\n"
61279 "Xapian::DB_CREATE fail if database already exist, otherwise create new\n"
61282 "Xapian::DB_CREATE_OR_OPEN open existing database, or create new\n"
61283 "database if none exists.\n"
61285 "Xapian::DB_CREATE_OR_OVERWRITE overwrite existing database, or create\n"
61286 "new database if none exists.\n"
61288 "Xapian::DB_OPEN open existing database, failing if none exists.\n"
61290 "block_size: the Btree blocksize to use (in bytes), which must be a\n"
61291 "power of two between 2048 and 65536 (inclusive). The default (also\n"
61292 "used if an invalid value if passed) is 8192 bytes. This parameter is\n"
61293 "ignored when opening an existing database. \n"
61295 { (char *)"chert_open", _wrap_chert_open, 0x0001, (char *)"\n"
61296 "Construct a Database object for update access to a Chert database.\n"
61298 "WritableDatabase Xapian::Chert::open(const std::string &dir, int\n"
61299 "action, int block_size=8192)\n"
61304 "dir: pathname of the directory containing the database.\n"
61306 "action: determines handling of existing/non-existing database:\n"
61307 "Xapian::DB_CREATE fail if database already exist, otherwise create new\n"
61310 "Xapian::DB_CREATE_OR_OPEN open existing database, or create new\n"
61311 "database if none exists.\n"
61313 "Xapian::DB_CREATE_OR_OVERWRITE overwrite existing database, or create\n"
61314 "new database if none exists.\n"
61316 "Xapian::DB_OPEN open existing database, failing if none exists.\n"
61318 "block_size: the Btree blocksize to use (in bytes), which must be a\n"
61319 "power of two between 2048 and 65536 (inclusive). The default (also\n"
61320 "used if an invalid value if passed) is 8192 bytes. This parameter is\n"
61321 "ignored when opening an existing database. \n"
61323 { (char *)"flint_open", _wrap_flint_open, 0x0001, (char *)"\n"
61324 "Construct a Database object for update access to a Flint database.\n"
61326 "WritableDatabase Xapian::Flint::open(const std::string &dir, int\n"
61327 "action, int block_size=8192)\n"
61332 "dir: pathname of the directory containing the database.\n"
61334 "action: determines handling of existing/non-existing database:\n"
61335 "Xapian::DB_CREATE fail if database already exist, otherwise create new\n"
61338 "Xapian::DB_CREATE_OR_OPEN open existing database, or create new\n"
61339 "database if none exists.\n"
61341 "Xapian::DB_CREATE_OR_OVERWRITE overwrite existing database, or create\n"
61342 "new database if none exists.\n"
61344 "Xapian::DB_OPEN open existing database, failing if none exists.\n"
61346 "block_size: the Btree blocksize to use (in bytes), which must be a\n"
61347 "power of two between 2048 and 65536 (inclusive). The default (also\n"
61348 "used if an invalid value if passed) is 8192 bytes. This parameter is\n"
61349 "ignored when opening an existing database. \n"
61351 { (char *)"inmemory_open", (PyCFunction)_wrap_inmemory_open, 0x0004, (char *)"\n"
61352 "Construct a WritableDatabase object for a new, empty InMemory\n"
61355 "WritableDatabase Xapian::InMemory::open()\n"
61357 "Only a writable InMemory database can be created, since a read-only\n"
61358 "one would always remain empty. \n"
61360 { (char *)"remote_open", _wrap_remote_open, 0x0001, (char *)"\n"
61361 "Construct a Database object for read-only access to a remote database\n"
61362 "accessed via a program.\n"
61364 "Database Xapian::Remote::open(const std::string &program, const\n"
61365 "std::string &args, Xapian::timeout timeout=10000)\n"
61367 "Access to the remote database is done by running an external program\n"
61368 "and communicating with it on stdin/stdout.\n"
61373 "program: the external program to run.\n"
61375 "args: space-separated list of arguments to pass to program.\n"
61377 "timeout: timeout in milliseconds. If this timeout is exceeded for any\n"
61378 "individual operation on the remote database then\n"
61379 "Xapian::NetworkTimeoutError is thrown. A timeout of 0 means don't\n"
61380 "timeout. (Default is 10000ms, which is 10 seconds). \n"
61382 { (char *)"remote_open_writable", _wrap_remote_open_writable, 0x0001, (char *)"\n"
61383 "Construct a WritableDatabase object for update access to a remote\n"
61384 "database accessed via a program.\n"
61386 "WritableDatabase Xapian::Remote::open_writable(const std::string\n"
61387 "&program, const std::string &args, Xapian::timeout timeout=0)\n"
61389 "Access to the remote database is done by running an external program\n"
61390 "and communicating with it on stdin/stdout.\n"
61395 "program: the external program to run.\n"
61397 "args: space-separated list of arguments to pass to program.\n"
61399 "timeout: timeout in milliseconds. If this timeout is exceeded for any\n"
61400 "individual operation on the remote database then\n"
61401 "Xapian::NetworkTimeoutError is thrown. (Default is 0, which means\n"
61402 "don't timeout). \n"
61404 { (char *)"delete_Query", (PyCFunction)_wrap_delete_Query, 0x0008, (char *)"\n"
61407 "Xapian::Query::~Query() \n"
61409 { (char *)"Query_get_length", (PyCFunction)_wrap_Query_get_length, 0x0008, (char *)"\n"
61410 "Get the length of the query, used by some ranking formulae.\n"
61412 "Xapian::termcount Xapian::Query::get_length() const\n"
61414 "This value is calculated automatically - if you want to override it\n"
61415 "you can pass a different value to Enquire::set_query(). \n"
61417 { (char *)"Query_get_terms_begin", (PyCFunction)_wrap_Query_get_terms_begin, 0x0008, (char *)"\n"
61418 "Return a Xapian::TermIterator returning all the terms in the query, in\n"
61419 "order of termpos.\n"
61421 "TermIterator Xapian::Query::get_terms_begin() const\n"
61423 "If multiple terms have the same term position, their order is\n"
61424 "unspecified. Duplicates (same term and termpos) will be removed. \n"
61426 { (char *)"Query_get_terms_end", (PyCFunction)_wrap_Query_get_terms_end, 0x0008, (char *)"\n"
61427 "Return a Xapian::TermIterator to the end of the list of terms in the\n"
61430 "TermIterator Xapian::Query::get_terms_end() const \n"
61432 { (char *)"Query_empty", (PyCFunction)_wrap_Query_empty, 0x0008, (char *)"\n"
61433 "Test if the query is empty (i.e.\n"
61435 "bool Xapian::Query::empty() const\n"
61437 "was constructed using the default ctor or with an empty iterator\n"
61440 { (char *)"Query_serialise", (PyCFunction)_wrap_Query_serialise, 0x0008, (char *)"\n"
61441 "Serialise query into a string.\n"
61443 "std::string Xapian::Query::serialise() const\n"
61445 "The query representation may change between Xapian releases: even\n"
61446 "between minor versions. However, it is guaranteed not to change unless\n"
61447 "the remote database protocol has also changed between releases. \n"
61449 { (char *)"Query_unserialise", _wrap_Query_unserialise, 0x0001, __null},
61450 { (char *)"Query___str__", (PyCFunction)_wrap_Query___str__, 0x0008, (char *)"\n"
61451 "Return a string describing this object.\n"
61453 "std::string Xapian::Query::get_description() const \n"
61455 { (char *)"new_Query", _wrap_new_Query, 0x0001, (char *)"\n"
61456 "Construct an external source query.\n"
61458 "Xapian::Query::Query(Xapian::PostingSource *external_source)\n"
61460 "An attempt to clone the posting source will be made immediately, so if\n"
61461 "the posting source supports clone(), the source supplied may be safely\n"
61462 "deallocated after this call. If the source does not support clone(),\n"
61463 "the caller must ensure that the posting source remains valid until the\n"
61464 "Query is deallocated.\n"
61469 "external_source: The source to use in the query. \n"
61471 { (char *)"Query_swigregister", Query_swigregister, 0x0001, __null},
61472 { (char *)"Query_swiginit", Query_swiginit, 0x0001, __null},
61473 { (char *)"Stopper___call__", _wrap_Stopper___call__, 0x0001, __null},
61474 { (char *)"delete_Stopper", (PyCFunction)_wrap_delete_Stopper, 0x0008, (char *)"\n"
61475 "Class has virtual methods, so provide a virtual destructor.\n"
61477 "virtual Xapian::Stopper::~Stopper() \n"
61479 { (char *)"Stopper___str__", (PyCFunction)_wrap_Stopper___str__, 0x0008, (char *)"\n"
61480 "Return a string describing this object.\n"
61482 "virtual std::string Xapian::Stopper::get_description() const \n"
61484 { (char *)"new_Stopper", (PyCFunction)_wrap_new_Stopper, 0x0008, __null},
61485 { (char *)"disown_Stopper", (PyCFunction)_wrap_disown_Stopper, 0x0008, __null},
61486 { (char *)"Stopper_swigregister", Stopper_swigregister, 0x0001, __null},
61487 { (char *)"Stopper_swiginit", Stopper_swiginit, 0x0001, __null},
61488 { (char *)"new_SimpleStopper", (PyCFunction)_wrap_new_SimpleStopper, 0x0004, (char *)"\n"
61489 "Initialise from a pair of iterators.\n"
61491 "Xapian::SimpleStopper::SimpleStopper(Iterator begin, Iterator end) \n"
61493 { (char *)"SimpleStopper_add", _wrap_SimpleStopper_add, 0x0001, (char *)"\n"
61494 "Add a single stop word.\n"
61496 "void Xapian::SimpleStopper::add(const std::string &word) \n"
61498 { (char *)"delete_SimpleStopper", (PyCFunction)_wrap_delete_SimpleStopper, 0x0008, __null},
61499 { (char *)"SimpleStopper_swigregister", SimpleStopper_swigregister, 0x0001, __null},
61500 { (char *)"SimpleStopper_swiginit", SimpleStopper_swiginit, 0x0001, __null},
61501 { (char *)"delete_ValueRangeProcessor", (PyCFunction)_wrap_delete_ValueRangeProcessor, 0x0008, (char *)"\n"
61504 "virtual Xapian::ValueRangeProcessor::~ValueRangeProcessor() \n"
61506 { (char *)"ValueRangeProcessor___call__", _wrap_ValueRangeProcessor___call__, 0x0001, __null},
61507 { (char *)"new_ValueRangeProcessor", (PyCFunction)_wrap_new_ValueRangeProcessor, 0x0008, __null},
61508 { (char *)"disown_ValueRangeProcessor", (PyCFunction)_wrap_disown_ValueRangeProcessor, 0x0008, __null},
61509 { (char *)"ValueRangeProcessor_swigregister", ValueRangeProcessor_swigregister, 0x0001, __null},
61510 { (char *)"ValueRangeProcessor_swiginit", ValueRangeProcessor_swiginit, 0x0001, __null},
61511 { (char *)"new_StringValueRangeProcessor", _wrap_new_StringValueRangeProcessor, 0x0001, (char *)"\n"
61514 "Xapian::StringValueRangeProcessor::StringValueRangeProcessor(Xapian::valueno\n"
61515 "valno_, const std::string &str_, bool prefix_=true)\n"
61520 "valno_: The value number to return from operator().\n"
61522 "str_: A string to look for to recognise values as belonging to this\n"
61525 "prefix_: Flag specifying whether to check for str_ as a prefix or a\n"
61528 { (char *)"delete_StringValueRangeProcessor", (PyCFunction)_wrap_delete_StringValueRangeProcessor, 0x0008, __null},
61529 { (char *)"StringValueRangeProcessor_swigregister", StringValueRangeProcessor_swigregister, 0x0001, __null},
61530 { (char *)"StringValueRangeProcessor_swiginit", StringValueRangeProcessor_swiginit, 0x0001, __null},
61531 { (char *)"new_DateValueRangeProcessor", _wrap_new_DateValueRangeProcessor, 0x0001, (char *)"\n"
61534 "Xapian::DateValueRangeProcessor::DateValueRangeProcessor(Xapian::valueno\n"
61535 "valno_, const std::string &str_, bool prefix_=true, bool\n"
61536 "prefer_mdy_=false, int epoch_year_=1970)\n"
61541 "valno_: The value number to return from operator().\n"
61543 "str_: A string to look for to recognise values as belonging to this\n"
61546 "prefix_: Whether to look for the string at the start or end of the\n"
61547 "values. If true, the string is a prefix; if false, the string is a\n"
61548 "suffix (default: true).\n"
61550 "prefer_mdy_: Should ambiguous dates be interpreted as month/day/year\n"
61551 "rather than day/month/year? (default: false)\n"
61553 "epoch_year_: Year to use as the epoch for dates with 2 digit years\n"
61554 "(default: 1970, so 1/1/69 is 2069 while 1/1/70 is 1970).\n"
61556 "The string supplied in str_ is used by operator() to decide whether\n"
61557 "the pair of strings supplied to it constitute a valid range. If\n"
61558 "prefix_ is true, the first value in a range must begin with str_ (and\n"
61559 "the second value may optionally begin with str_); if prefix_ is false,\n"
61560 "the second value in a range must end with str_ (and the first value\n"
61561 "may optionally end with str_).\n"
61563 "If str_ is empty, the setting of prefix_ is irrelevant, and no special\n"
61564 "strings are required at the start or end of the strings defining the\n"
61567 "The remainder of both strings defining the endpoints must be valid\n"
61570 "For example, if str_ is \"created:\" and prefix_ is true, and the\n"
61571 "range processor has been added to the queryparser, the queryparser\n"
61572 "will accept \"created:1/1/2000..31/12/2001\". \n"
61574 { (char *)"delete_DateValueRangeProcessor", (PyCFunction)_wrap_delete_DateValueRangeProcessor, 0x0008, __null},
61575 { (char *)"DateValueRangeProcessor_swigregister", DateValueRangeProcessor_swigregister, 0x0001, __null},
61576 { (char *)"DateValueRangeProcessor_swiginit", DateValueRangeProcessor_swiginit, 0x0001, __null},
61577 { (char *)"new_NumberValueRangeProcessor", _wrap_new_NumberValueRangeProcessor, 0x0001, (char *)"\n"
61580 "Xapian::NumberValueRangeProcessor::NumberValueRangeProcessor(Xapian::valueno\n"
61581 "valno_, const std::string &str_, bool prefix_=true)\n"
61586 "valno_: The value number to return from operator().\n"
61588 "str_: A string to look for to recognise values as belonging to this\n"
61591 "prefix_: Whether to look for the string at the start or end of the\n"
61592 "values. If true, the string is a prefix; if false, the string is a\n"
61593 "suffix (default: true).\n"
61595 "The string supplied in str_ is used by operator() to decide whether\n"
61596 "the pair of strings supplied to it constitute a valid range. If\n"
61597 "prefix_ is true, the first value in a range must begin with str_ (and\n"
61598 "the second value may optionally begin with str_); if prefix_ is false,\n"
61599 "the second value in a range must end with str_ (and the first value\n"
61600 "may optionally end with str_).\n"
61602 "If str_ is empty, the setting of prefix_ is irrelevant, and no special\n"
61603 "strings are required at the start or end of the strings defining the\n"
61606 "The remainder of both strings defining the endpoints must be valid\n"
61607 "floating point numbers. (FIXME: define format recognised).\n"
61609 "For example, if str_ is \"$\" and prefix_ is true, and the range\n"
61610 "processor has been added to the queryparser, the queryparser will\n"
61611 "accept \"$10..50\" or \"$10..$50\", but not \"10..50\" or \"10..$50\"\n"
61612 "as valid ranges. If str_ is \"kg\" and prefix_ is false, the\n"
61613 "queryparser will accept \"10..50kg\" or \"10kg..50kg\", but not\n"
61614 "\"10..50\" or \"10kg..50\" as valid ranges. \n"
61616 { (char *)"delete_NumberValueRangeProcessor", (PyCFunction)_wrap_delete_NumberValueRangeProcessor, 0x0008, __null},
61617 { (char *)"NumberValueRangeProcessor_swigregister", NumberValueRangeProcessor_swigregister, 0x0001, __null},
61618 { (char *)"NumberValueRangeProcessor_swiginit", NumberValueRangeProcessor_swiginit, 0x0001, __null},
61619 { (char *)"new_QueryParser", (PyCFunction)_wrap_new_QueryParser, 0x0004, (char *)"\n"
61620 "Default constructor.\n"
61622 "Xapian::QueryParser::QueryParser() \n"
61624 { (char *)"delete_QueryParser", (PyCFunction)_wrap_delete_QueryParser, 0x0008, (char *)"\n"
61627 "Xapian::QueryParser::~QueryParser() \n"
61629 { (char *)"QueryParser_set_stemmer", _wrap_QueryParser_set_stemmer, 0x0001, (char *)"\n"
61630 "Set the stemmer.\n"
61632 "void Xapian::QueryParser::set_stemmer(const Xapian::Stem &stemmer)\n"
61634 "This sets the stemming algorithm which will be used by the query\n"
61635 "parser. Note that the stemming algorithm will only be used according\n"
61636 "to the stemming strategy set by set_stemming_strategy(), which\n"
61637 "defaults to STEM_NONE. Therefore, to use a stemming algorithm, you\n"
61638 "will also need to call set_stemming_strategy() with a value other than\n"
61641 { (char *)"QueryParser_set_stemming_strategy", _wrap_QueryParser_set_stemming_strategy, 0x0001, (char *)"\n"
61642 "Set the stemming strategy.\n"
61644 "void Xapian::QueryParser::set_stemming_strategy(stem_strategy\n"
61647 "This controls how the query parser will apply the stemming algorithm.\n"
61648 "The default value is STEM_NONE. The possible values are:\n"
61650 "STEM_NONE: Don't perform any stemming.\n"
61652 "STEM_SOME: Search for stemmed forms of terms except for those which\n"
61653 "start with a capital letter, or are followed by certain characters\n"
61654 "(currently: (/@<>=*[{\" ), or are used with operators which need\n"
61655 "positional information. Stemmed terms are prefixed with 'Z'.\n"
61657 "STEM_ALL: Search for stemmed forms of all words (note: no 'Z' prefix\n"
61660 "Note that the stemming algorithm is only applied to words in\n"
61661 "probabilistic fields - boolean filter terms are never stemmed. \n"
61663 { (char *)"QueryParser_set_stopper", _wrap_QueryParser_set_stopper, 0x0001, (char *)"\n"
61664 "Set the stopper.\n"
61666 "void Xapian::QueryParser::set_stopper(const Stopper *stop=NULL) \n"
61668 { (char *)"QueryParser_set_default_op", _wrap_QueryParser_set_default_op, 0x0001, (char *)"\n"
61669 "Set the default operator.\n"
61671 "void Xapian::QueryParser::set_default_op(Query::op default_op)\n"
61673 "This operator is used to combine non-filter query items when no\n"
61674 "explicit operator is used.\n"
61676 "The most useful values for this are OP_OR (the default) and OP_AND.\n"
61677 "OP_NEAR and OP_PHRASE can also be useful.\n"
61679 "So for example, 'weather forecast' is parsed as if it were 'weather OR\n"
61680 "forecast' by default. \n"
61682 { (char *)"QueryParser_get_default_op", (PyCFunction)_wrap_QueryParser_get_default_op, 0x0008, (char *)"\n"
61683 "Get the current default operator.\n"
61685 "Query::op Xapian::QueryParser::get_default_op() const \n"
61687 { (char *)"QueryParser_set_database", _wrap_QueryParser_set_database, 0x0001, (char *)"\n"
61688 "Specify the database being searched.\n"
61690 "void Xapian::QueryParser::set_database(const Database &db)\n"
61692 "The database is used for wildcard expansion (FLAG_WILDCARD and\n"
61693 "FLAG_PARTIAL), spelling correction (FLAG_SPELLING_CORRECTION), and\n"
61694 "synonyms (FLAG_SYNONYM, FLAG_AUTO_SYNONYMS, and\n"
61695 "FLAG_AUTO_MULTIWORD_SYNONYMS). \n"
61697 { (char *)"QueryParser_parse_query", _wrap_QueryParser_parse_query, 0x0001, (char *)"\n"
61700 "Query Xapian::QueryParser::parse_query(const std::string\n"
61701 "&query_string, unsigned flags=FLAG_DEFAULT, const std::string\n"
61702 "&default_prefix=std::string())\n"
61707 "query_string: A free-text query as entered by a user\n"
61709 "flags: Zero or more Query::feature_flag specifying what features the\n"
61710 "QueryParser should support. Combine multiple values with bitwise-or\n"
61711 "(|) (default FLAG_DEFAULT).\n"
61713 "default_prefix: The default term prefix to use (default none). For\n"
61714 "example, you can pass \"A\" when parsing an \"Author\" field.\n"
61719 "If: the query string can't be parsed, then Xapian::QueryParserError\n"
61720 "is thrown. You can get an English error message to report to the user\n"
61721 "by catching it and calling get_msg() on the caught exception. The\n"
61722 "current possible values (in case you want to translate them) are:\n"
61724 "Unknown range operation\n"
61728 "Syntax: <expression> AND <expression>\n"
61730 "Syntax: <expression> AND NOT <expression>\n"
61732 "Syntax: <expression> NOT <expression>\n"
61734 "Syntax: <expression> OR <expression>\n"
61736 "Syntax: <expression> XOR <expression> \n"
61738 { (char *)"QueryParser_add_prefix", _wrap_QueryParser_add_prefix, 0x0001, (char *)"\n"
61739 "Add a probabilistic term prefix.\n"
61741 "void Xapian::QueryParser::add_prefix(const std::string &field, const\n"
61742 "std::string &prefix)\n"
61746 "This allows the user to search for author:Orwell which will be\n"
61747 "converted to a search for the term \"Aorwell\".\n"
61749 "Multiple fields can be mapped to the same prefix. For example, you can\n"
61750 "make title: and subject: aliases for each other.\n"
61752 "As of 1.0.4, you can call this method multiple times with the same\n"
61753 "value of field to allow a single field to be mapped to multiple\n"
61754 "prefixes. Multiple terms being generated for such a field, and\n"
61755 "combined with Xapian::Query::OP_OR.\n"
61757 "If any prefixes are specified for the empty field name (i.e. you call\n"
61758 "this method with an empty string as the first parameter) these\n"
61759 "prefixes will be used for terms without a field specifier. If you do\n"
61760 "this and also specify the default_prefix parameter to parse_query(),\n"
61761 "then the default_prefix parameter will override.\n"
61763 "If the prefix parameter is empty, then \"field:word\" will produce the\n"
61764 "term \"word\" (and this can be one of several prefixes for a\n"
61765 "particular field, or for terms without a field specifier).\n"
61767 "If you call add_prefix() and add_boolean_prefix() for the same value\n"
61768 "of field, a Xapian::InvalidOperationError exception will be thrown.\n"
61770 "In 1.0.3 and earlier, subsequent calls to this method with the same\n"
61771 "value of field had no effect.\n"
61776 "field: The user visible field name\n"
61778 "prefix: The term prefix to map this to \n"
61780 { (char *)"QueryParser_add_boolean_prefix", _wrap_QueryParser_add_boolean_prefix, 0x0001, (char *)"\n"
61782 "Xapian::QueryParser::add_boolean_prefix(const std::string &field,\n"
61783 "const std::string &prefix) \n"
61785 { (char *)"QueryParser_stoplist_begin", (PyCFunction)_wrap_QueryParser_stoplist_begin, 0x0008, (char *)"\n"
61786 "Iterate over terms omitted from the query as stopwords.\n"
61788 "TermIterator Xapian::QueryParser::stoplist_begin() const \n"
61790 { (char *)"QueryParser_stoplist_end", (PyCFunction)_wrap_QueryParser_stoplist_end, 0x0008, (char *)"TermIterator Xapian::QueryParser::stoplist_end() const "},
61791 { (char *)"QueryParser_unstem_begin", _wrap_QueryParser_unstem_begin, 0x0001, (char *)"\n"
61792 "Iterate over unstemmed forms of the given (stemmed) term used in the\n"
61795 "TermIterator Xapian::QueryParser::unstem_begin(const std::string\n"
61798 { (char *)"QueryParser_unstem_end", _wrap_QueryParser_unstem_end, 0x0001, (char *)"\n"
61800 "Xapian::QueryParser::unstem_end(const std::string &) const \n"
61802 { (char *)"QueryParser_add_valuerangeprocessor", _wrap_QueryParser_add_valuerangeprocessor, 0x0001, (char *)"\n"
61803 "Register a ValueRangeProcessor.\n"
61806 "Xapian::QueryParser::add_valuerangeprocessor(Xapian::ValueRangeProcessor\n"
61809 { (char *)"QueryParser_get_corrected_query_string", (PyCFunction)_wrap_QueryParser_get_corrected_query_string, 0x0008, (char *)"\n"
61810 "Get the spelling-corrected query string.\n"
61812 "std::string Xapian::QueryParser::get_corrected_query_string() const\n"
61814 "This will only be set if FLAG_SPELLING_CORRECTION is specified when\n"
61815 "QueryParser::parse_query() was last called.\n"
61817 "If there were no corrections, an empty string is returned. \n"
61819 { (char *)"QueryParser___str__", (PyCFunction)_wrap_QueryParser___str__, 0x0008, (char *)"\n"
61820 "Return a string describing this object.\n"
61822 "std::string Xapian::QueryParser::get_description() const \n"
61824 { (char *)"QueryParser_swigregister", QueryParser_swigregister, 0x0001, __null},
61825 { (char *)"QueryParser_swiginit", QueryParser_swiginit, 0x0001, __null},
61826 { (char *)"sortable_serialise", (PyCFunction)_wrap_sortable_serialise, 0x0008, __null},
61827 { (char *)"sortable_unserialise", (PyCFunction)_wrap_sortable_unserialise, 0x0008, __null},
61828 { (char *)"delete_StemImplementation", (PyCFunction)_wrap_delete_StemImplementation, 0x0008, (char *)"\n"
61829 "Virtual destructor.\n"
61831 "virtual Xapian::StemImplementation::~StemImplementation() \n"
61833 { (char *)"StemImplementation___call__", _wrap_StemImplementation___call__, 0x0001, __null},
61834 { (char *)"StemImplementation___str__", (PyCFunction)_wrap_StemImplementation___str__, 0x0008, (char *)"\n"
61835 "Return a string describing this object.\n"
61837 "virtual std::string Xapian::StemImplementation::get_description()\n"
61840 { (char *)"new_StemImplementation", (PyCFunction)_wrap_new_StemImplementation, 0x0008, __null},
61841 { (char *)"disown_StemImplementation", (PyCFunction)_wrap_disown_StemImplementation, 0x0008, __null},
61842 { (char *)"StemImplementation_swigregister", StemImplementation_swigregister, 0x0001, __null},
61843 { (char *)"StemImplementation_swiginit", StemImplementation_swiginit, 0x0001, __null},
61844 { (char *)"new_Stem", _wrap_new_Stem, 0x0001, (char *)"\n"
61845 "Construct a Xapian::Stem object with a user-provided stemming\n"
61848 "Xapian::Stem::Stem(StemImplementation *p)\n"
61850 "You can subclass Xapian::StemImplementation to implement your own\n"
61851 "stemming algorithm (or to wrap a third-party algorithm) and then wrap\n"
61852 "your implementation in a Xapian::Stem object to pass to the Xapian\n"
61855 "The StemImplementation object is reference counted, and so will be\n"
61856 "automatically deleted by the Xapian::Stem wrapper when no longer\n"
61859 { (char *)"delete_Stem", (PyCFunction)_wrap_delete_Stem, 0x0008, (char *)"\n"
61862 "Xapian::Stem::~Stem() \n"
61864 { (char *)"Stem___call__", _wrap_Stem___call__, 0x0001, __null},
61865 { (char *)"Stem___str__", (PyCFunction)_wrap_Stem___str__, 0x0008, (char *)"\n"
61866 "Return a string describing this object.\n"
61868 "std::string Xapian::Stem::get_description() const \n"
61870 { (char *)"Stem_get_available_languages", (PyCFunction)_wrap_Stem_get_available_languages, 0x0004, __null},
61871 { (char *)"Stem_swigregister", Stem_swigregister, 0x0001, __null},
61872 { (char *)"Stem_swiginit", Stem_swiginit, 0x0001, __null},
61873 { (char *)"new_TermGenerator", (PyCFunction)_wrap_new_TermGenerator, 0x0004, (char *)"\n"
61874 "Default constructor.\n"
61876 "Xapian::TermGenerator::TermGenerator() \n"
61878 { (char *)"delete_TermGenerator", (PyCFunction)_wrap_delete_TermGenerator, 0x0008, (char *)"\n"
61881 "Xapian::TermGenerator::~TermGenerator() \n"
61883 { (char *)"TermGenerator_set_stemmer", _wrap_TermGenerator_set_stemmer, 0x0001, (char *)"\n"
61884 "Set the Xapian::Stem object to be used for generating stemmed terms.\n"
61886 "void Xapian::TermGenerator::set_stemmer(const Xapian::Stem &stemmer)\n"
61889 { (char *)"TermGenerator_set_stopper", _wrap_TermGenerator_set_stopper, 0x0001, (char *)"\n"
61890 "Set the Xapian::Stopper object to be used for identifying stopwords.\n"
61892 "void Xapian::TermGenerator::set_stopper(const Xapian::Stopper\n"
61895 "Stemmed forms of stopwords aren't indexed, but unstemmed forms still\n"
61896 "are so that searches for phrases including stop words still work. \n"
61898 { (char *)"TermGenerator_set_document", _wrap_TermGenerator_set_document, 0x0001, (char *)"\n"
61899 "Set the current document.\n"
61901 "void Xapian::TermGenerator::set_document(const Xapian::Document &doc)\n"
61904 { (char *)"TermGenerator_get_document", (PyCFunction)_wrap_TermGenerator_get_document, 0x0008, (char *)"\n"
61905 "Get the current document.\n"
61907 "const Xapian::Document& Xapian::TermGenerator::get_document() const \n"
61909 { (char *)"TermGenerator_set_database", _wrap_TermGenerator_set_database, 0x0001, (char *)"\n"
61910 "Set the database to index spelling data to.\n"
61912 "void Xapian::TermGenerator::set_database(const\n"
61913 "Xapian::WritableDatabase &db) \n"
61915 { (char *)"TermGenerator_set_flags", _wrap_TermGenerator_set_flags, 0x0001, (char *)"\n"
61918 "flags Xapian::TermGenerator::set_flags(flags toggle, flags\n"
61921 "The new value of flags is: (flags & mask) ^ toggle\n"
61923 "To just set the flags, pass the new flags in toggle and the default\n"
61924 "value for mask.\n"
61929 "toggle: Flags to XOR.\n"
61931 "mask: Flags to AND with first.\n"
61933 "The old flags setting. \n"
61935 { (char *)"TermGenerator_index_text", _wrap_TermGenerator_index_text, 0x0001, (char *)"\n"
61936 "Index some text in a std::string.\n"
61938 "void Xapian::TermGenerator::index_text(const std::string &text,\n"
61939 "Xapian::termcount weight=1, const std::string &prefix=std::string())\n"
61944 "weight: The wdf increment (default 1).\n"
61946 "prefix: The term prefix to use (default is no prefix). \n"
61948 { (char *)"TermGenerator_index_text_without_positions", _wrap_TermGenerator_index_text_without_positions, 0x0001, (char *)"\n"
61949 "Index some text in a std::string without positional information.\n"
61951 "void Xapian::TermGenerator::index_text_without_positions(const\n"
61952 "std::string &text, Xapian::termcount weight=1, const std::string\n"
61953 "&prefix=std::string())\n"
61955 "Just like index_text, but no positional information is generated. This\n"
61956 "means that the database will be significantly smaller, but that phrase\n"
61957 "searching and NEAR won't be supported. \n"
61959 { (char *)"TermGenerator_increase_termpos", _wrap_TermGenerator_increase_termpos, 0x0001, (char *)"\n"
61960 "Increase the termpos used by index_text by delta.\n"
61962 "void Xapian::TermGenerator::increase_termpos(Xapian::termcount\n"
61965 "This can be used to prevent phrase searches from spanning two\n"
61966 "unconnected blocks of text (e.g. the title and body text). \n"
61968 { (char *)"TermGenerator_get_termpos", (PyCFunction)_wrap_TermGenerator_get_termpos, 0x0008, (char *)"\n"
61969 "Get the current term position.\n"
61971 "Xapian::termcount Xapian::TermGenerator::get_termpos() const \n"
61973 { (char *)"TermGenerator_set_termpos", _wrap_TermGenerator_set_termpos, 0x0001, (char *)"\n"
61974 "Set the current term position.\n"
61976 "void Xapian::TermGenerator::set_termpos(Xapian::termcount termpos) \n"
61978 { (char *)"TermGenerator___str__", (PyCFunction)_wrap_TermGenerator___str__, 0x0008, (char *)"\n"
61979 "Return a string describing this object.\n"
61981 "std::string Xapian::TermGenerator::get_description() const \n"
61983 { (char *)"TermGenerator_swigregister", TermGenerator_swigregister, 0x0001, __null},
61984 { (char *)"TermGenerator_swiginit", TermGenerator_swiginit, 0x0001, __null},
61985 { (char *)"KeyMaker___call__", _wrap_KeyMaker___call__, 0x0001, __null},
61986 { (char *)"delete_KeyMaker", (PyCFunction)_wrap_delete_KeyMaker, 0x0008, (char *)"\n"
61987 "Virtual destructor, because we have virtual methods.\n"
61989 "virtual Xapian::KeyMaker::~KeyMaker() \n"
61991 { (char *)"new_KeyMaker", (PyCFunction)_wrap_new_KeyMaker, 0x0008, __null},
61992 { (char *)"disown_KeyMaker", (PyCFunction)_wrap_disown_KeyMaker, 0x0008, __null},
61993 { (char *)"KeyMaker_swigregister", KeyMaker_swigregister, 0x0001, __null},
61994 { (char *)"KeyMaker_swiginit", KeyMaker_swiginit, 0x0001, __null},
61995 { (char *)"new_MultiValueKeyMaker", (PyCFunction)_wrap_new_MultiValueKeyMaker, 0x0004, (char *)"\n"
61996 "Xapian::MultiValueKeyMaker::MultiValueKeyMaker(Iterator begin,\n"
61999 { (char *)"MultiValueKeyMaker_add_value", _wrap_MultiValueKeyMaker_add_value, 0x0001, (char *)"\n"
62001 "Xapian::MultiValueKeyMaker::add_value(Xapian::valueno valno, bool\n"
62002 "reverse=false) \n"
62004 { (char *)"delete_MultiValueKeyMaker", (PyCFunction)_wrap_delete_MultiValueKeyMaker, 0x0008, __null},
62005 { (char *)"MultiValueKeyMaker_swigregister", MultiValueKeyMaker_swigregister, 0x0001, __null},
62006 { (char *)"MultiValueKeyMaker_swiginit", MultiValueKeyMaker_swiginit, 0x0001, __null},
62007 { (char *)"delete_Sorter", (PyCFunction)_wrap_delete_Sorter, 0x0008, __null},
62008 { (char *)"Sorter_swigregister", Sorter_swigregister, 0x0001, __null},
62009 { (char *)"new_MultiValueSorter", (PyCFunction)_wrap_new_MultiValueSorter, 0x0004, (char *)"\n"
62010 "Xapian::MultiValueSorter::MultiValueSorter(Iterator begin, Iterator\n"
62013 { (char *)"MultiValueSorter_add", _wrap_MultiValueSorter_add, 0x0001, (char *)"\n"
62015 "Xapian::MultiValueSorter::add(Xapian::valueno valno, bool\n"
62018 { (char *)"delete_MultiValueSorter", (PyCFunction)_wrap_delete_MultiValueSorter, 0x0008, __null},
62019 { (char *)"MultiValueSorter_swigregister", MultiValueSorter_swigregister, 0x0001, __null},
62020 { (char *)"MultiValueSorter_swiginit", MultiValueSorter_swiginit, 0x0001, __null},
62021 { (char *)"new_ValueSetMatchDecider", _wrap_new_ValueSetMatchDecider, 0x0001, (char *)"\n"
62022 "Construct a ValueSetMatchDecider.\n"
62024 "Xapian::ValueSetMatchDecider::ValueSetMatchDecider(Xapian::valueno\n"
62025 "slot, bool inclusive_)\n"
62030 "slot: The value slot number to look in.\n"
62032 "inclusive_: If true, match decider accepts documents which have a\n"
62033 "value in the specified slot which is a member of the test set; if\n"
62034 "false, match decider accepts documents which do not have a value in\n"
62035 "the specified slot. \n"
62037 { (char *)"ValueSetMatchDecider_add_value", _wrap_ValueSetMatchDecider_add_value, 0x0001, (char *)"\n"
62038 "Add a value to the test set.\n"
62040 "void Xapian::ValueSetMatchDecider::add_value(const std::string &value)\n"
62045 "value: The value to add to the test set. \n"
62047 { (char *)"ValueSetMatchDecider_remove_value", _wrap_ValueSetMatchDecider_remove_value, 0x0001, (char *)"\n"
62048 "Remove a value from the test set.\n"
62050 "void Xapian::ValueSetMatchDecider::remove_value(const std::string\n"
62056 "value: The value to remove from the test set. \n"
62058 { (char *)"delete_ValueSetMatchDecider", (PyCFunction)_wrap_delete_ValueSetMatchDecider, 0x0008, __null},
62059 { (char *)"ValueSetMatchDecider_swigregister", ValueSetMatchDecider_swigregister, 0x0001, __null},
62060 { (char *)"ValueSetMatchDecider_swiginit", ValueSetMatchDecider_swiginit, 0x0001, __null},
62061 { (char *)"new_Compactor", (PyCFunction)_wrap_new_Compactor, 0x0008, (char *)"Xapian::Compactor::Compactor() "},
62062 { (char *)"delete_Compactor", (PyCFunction)_wrap_delete_Compactor, 0x0008, (char *)"\n"
62064 "Xapian::Compactor::~Compactor() \n"
62066 { (char *)"Compactor_set_block_size", _wrap_Compactor_set_block_size, 0x0001, (char *)"\n"
62067 "Set the block size to use for tables in the output database.\n"
62069 "void Xapian::Compactor::set_block_size(size_t block_size)\n"
62071 "Valid block sizes are currently powers of two between 2048 and 65536,\n"
62072 "with the default being 8192, but the valid sizes and default may\n"
62073 "change in the future. \n"
62075 { (char *)"Compactor_set_renumber", _wrap_Compactor_set_renumber, 0x0001, (char *)"\n"
62076 "Set whether to preserve existing document id values.\n"
62078 "void Xapian::Compactor::set_renumber(bool renumber)\n"
62080 "The default is true, which means that document ids will be renumbered\n"
62081 "- currently by applying the same offset to all the document ids in a\n"
62082 "particular source database.\n"
62084 "If false, then the document ids must be unique over all source\n"
62085 "databases. Currently the ranges of document ids in each source must\n"
62086 "not overlap either, though this restriction may be removed in the\n"
62089 { (char *)"Compactor_set_multipass", _wrap_Compactor_set_multipass, 0x0001, (char *)"\n"
62090 "Set whether to merge postlists in multiple passes.\n"
62092 "void Xapian::Compactor::set_multipass(bool multipass)\n"
62094 "Default is false. If set to true and merging more than 3 databases,\n"
62095 "merge the postlists in multiple passes, which is generally faster but\n"
62096 "requires more disk space for temporary files. \n"
62098 { (char *)"Compactor_set_compaction_level", _wrap_Compactor_set_compaction_level, 0x0001, (char *)"\n"
62099 "Set the compaction level.\n"
62101 "void Xapian::Compactor::set_compaction_level(compaction_level\n"
62104 "Values are: Xapian::Compactor::STANDARD - Don't split items\n"
62107 "Xapian::Compactor::FULL - Split items whenever it saves space (the\n"
62110 "Xapian::Compactor::FULLER - Allow oversize items to save more space.\n"
62112 "FULLER isn't recommended if you ever plan to update the compacted\n"
62115 { (char *)"Compactor_set_destdir", _wrap_Compactor_set_destdir, 0x0001, (char *)"\n"
62116 "Set where to write the output.\n"
62118 "void Xapian::Compactor::set_destdir(const std::string &destdir)\n"
62120 "This can be the same as an input if that input is a stub database (in\n"
62121 "which case it will be updated atomically). \n"
62123 { (char *)"Compactor_add_source", _wrap_Compactor_add_source, 0x0001, (char *)"\n"
62124 "Add a source database.\n"
62126 "void Xapian::Compactor::add_source(const std::string &srcdir) \n"
62128 { (char *)"Compactor_compact", (PyCFunction)_wrap_Compactor_compact, 0x0008, (char *)"\n"
62129 "Perform the actual compaction/merging operation.\n"
62131 "void Xapian::Compactor::compact() \n"
62133 { (char *)"Compactor_set_status", _wrap_Compactor_set_status, 0x0001, (char *)"\n"
62134 "Update progress.\n"
62136 "virtual void Xapian::Compactor::set_status(const std::string &table,\n"
62137 "const std::string &status)\n"
62139 "Subclass this method if you want to get progress updates during\n"
62140 "compaction. This is called for each table first with empty status, And\n"
62141 "then one or more times with non-empty status.\n"
62143 "The default implementation does nothing. \n"
62145 { (char *)"Compactor_resolve_duplicate_metadata", _wrap_Compactor_resolve_duplicate_metadata, 0x0001, (char *)"\n"
62146 "Resolve multiple user metadata entries with the same key.\n"
62148 "virtual std::string\n"
62149 "Xapian::Compactor::resolve_duplicate_metadata(const std::string &key,\n"
62150 "size_t num_tags, const std::string tags[])\n"
62152 "When merging, if the same user metadata key is set in more than one\n"
62153 "input, then this method is called to allow this to be resolving in an\n"
62154 "appropriate way.\n"
62156 "The default implementation just returns tags[0].\n"
62158 "For multipass this will currently get called multiple times for the\n"
62159 "same key if there are duplicates to resolve in each pass, but this may\n"
62160 "change in the future. \n"
62162 { (char *)"disown_Compactor", (PyCFunction)_wrap_disown_Compactor, 0x0008, __null},
62163 { (char *)"Compactor_swigregister", Compactor_swigregister, 0x0001, __null},
62164 { (char *)"Compactor_swiginit", Compactor_swiginit, 0x0001, __null},
62165 { __null, __null, 0, __null }
62167 static void *_p_Xapian__WritableDatabaseTo_p_Xapian__Database(void *x, int *) {
62168 return (void *)((Xapian::Database *) ((Xapian::WritableDatabase *) x));
62170 static void *_p_Xapian__ValueSetMatchDeciderTo_p_Xapian__MatchDecider(void *x, int *) {
62171 return (void *)((Xapian::MatchDecider *) ((Xapian::ValueSetMatchDecider *) x));
62173 static void *_p_Xapian__NetworkTimeoutErrorTo_p_Xapian__NetworkError(void *x, int *) {
62174 return (void *)((Xapian::NetworkError *) ((Xapian::NetworkTimeoutError *) x));
62176 static void *_p_Xapian__MultiValueSorterTo_p_Xapian__Sorter(void *x, int *) {
62177 return (void *)((Xapian::Sorter *) ((Xapian::MultiValueSorter *) x));
62179 static void *_p_Xapian__SorterTo_p_Xapian__KeyMaker(void *x, int *) {
62180 return (void *)((Xapian::KeyMaker *) ((Xapian::Sorter *) x));
62182 static void *_p_Xapian__MultiValueSorterTo_p_Xapian__KeyMaker(void *x, int *) {
62183 return (void *)((Xapian::KeyMaker *) (Xapian::Sorter *) ((Xapian::MultiValueSorter *) x));
62185 static void *_p_Xapian__MultiValueKeyMakerTo_p_Xapian__KeyMaker(void *x, int *) {
62186 return (void *)((Xapian::KeyMaker *) ((Xapian::MultiValueKeyMaker *) x));
62188 static void *_p_Xapian__AssertionErrorTo_p_Xapian__LogicError(void *x, int *) {
62189 return (void *)((Xapian::LogicError *) ((Xapian::AssertionError *) x));
62191 static void *_p_Xapian__InvalidOperationErrorTo_p_Xapian__LogicError(void *x, int *) {
62192 return (void *)((Xapian::LogicError *) ((Xapian::InvalidOperationError *) x));
62194 static void *_p_Xapian__UnimplementedErrorTo_p_Xapian__LogicError(void *x, int *) {
62195 return (void *)((Xapian::LogicError *) ((Xapian::UnimplementedError *) x));
62197 static void *_p_Xapian__InvalidArgumentErrorTo_p_Xapian__LogicError(void *x, int *) {
62198 return (void *)((Xapian::LogicError *) ((Xapian::InvalidArgumentError *) x));
62200 static void *_p_Xapian__DecreasingValueWeightPostingSourceTo_p_Xapian__ValueWeightPostingSource(void *x, int *) {
62201 return (void *)((Xapian::ValueWeightPostingSource *) ((Xapian::DecreasingValueWeightPostingSource *) x));
62203 static void *_p_Xapian__ValueWeightPostingSourceTo_p_Xapian__ValuePostingSource(void *x, int *) {
62204 return (void *)((Xapian::ValuePostingSource *) ((Xapian::ValueWeightPostingSource *) x));
62206 static void *_p_Xapian__DecreasingValueWeightPostingSourceTo_p_Xapian__ValuePostingSource(void *x, int *) {
62207 return (void *)((Xapian::ValuePostingSource *) (Xapian::ValueWeightPostingSource *) ((Xapian::DecreasingValueWeightPostingSource *) x));
62209 static void *_p_Xapian__ValueMapPostingSourceTo_p_Xapian__ValuePostingSource(void *x, int *) {
62210 return (void *)((Xapian::ValuePostingSource *) ((Xapian::ValueMapPostingSource *) x));
62212 static void *_p_Xapian__ValuePostingSourceTo_p_Xapian__PostingSource(void *x, int *) {
62213 return (void *)((Xapian::PostingSource *) ((Xapian::ValuePostingSource *) x));
62215 static void *_p_Xapian__ValueWeightPostingSourceTo_p_Xapian__PostingSource(void *x, int *) {
62216 return (void *)((Xapian::PostingSource *) (Xapian::ValuePostingSource *) ((Xapian::ValueWeightPostingSource *) x));
62218 static void *_p_Xapian__DecreasingValueWeightPostingSourceTo_p_Xapian__PostingSource(void *x, int *) {
62219 return (void *)((Xapian::PostingSource *) (Xapian::ValuePostingSource *)(Xapian::ValueWeightPostingSource *) ((Xapian::DecreasingValueWeightPostingSource *) x));
62221 static void *_p_Xapian__ValueMapPostingSourceTo_p_Xapian__PostingSource(void *x, int *) {
62222 return (void *)((Xapian::PostingSource *) (Xapian::ValuePostingSource *) ((Xapian::ValueMapPostingSource *) x));
62224 static void *_p_Xapian__FixedWeightPostingSourceTo_p_Xapian__PostingSource(void *x, int *) {
62225 return (void *)((Xapian::PostingSource *) ((Xapian::FixedWeightPostingSource *) x));
62227 static void *_p_Xapian__BoolWeightTo_p_Xapian__Weight(void *x, int *) {
62228 return (void *)((Xapian::Weight *) ((Xapian::BoolWeight *) x));
62230 static void *_p_Xapian__TradWeightTo_p_Xapian__Weight(void *x, int *) {
62231 return (void *)((Xapian::Weight *) ((Xapian::TradWeight *) x));
62233 static void *_p_Xapian__BM25WeightTo_p_Xapian__Weight(void *x, int *) {
62234 return (void *)((Xapian::Weight *) ((Xapian::BM25Weight *) x));
62236 static void *_p_Xapian__ValueCountMatchSpyTo_p_Xapian__MatchSpy(void *x, int *) {
62237 return (void *)((Xapian::MatchSpy *) ((Xapian::ValueCountMatchSpy *) x));
62239 static void *_p_Xapian__SimpleStopperTo_p_Xapian__Stopper(void *x, int *) {
62240 return (void *)((Xapian::Stopper *) ((Xapian::SimpleStopper *) x));
62242 static void *_p_Xapian__DatabaseVersionErrorTo_p_Xapian__DatabaseOpeningError(void *x, int *) {
62243 return (void *)((Xapian::DatabaseOpeningError *) ((Xapian::DatabaseVersionError *) x));
62245 static void *_p_Xapian__DatabaseVersionErrorTo_p_Xapian__DatabaseError(void *x, int *) {
62246 return (void *)((Xapian::DatabaseError *) (Xapian::DatabaseOpeningError *) ((Xapian::DatabaseVersionError *) x));
62248 static void *_p_Xapian__DatabaseLockErrorTo_p_Xapian__DatabaseError(void *x, int *) {
62249 return (void *)((Xapian::DatabaseError *) ((Xapian::DatabaseLockError *) x));
62251 static void *_p_Xapian__DatabaseModifiedErrorTo_p_Xapian__DatabaseError(void *x, int *) {
62252 return (void *)((Xapian::DatabaseError *) ((Xapian::DatabaseModifiedError *) x));
62254 static void *_p_Xapian__DatabaseOpeningErrorTo_p_Xapian__DatabaseError(void *x, int *) {
62255 return (void *)((Xapian::DatabaseError *) ((Xapian::DatabaseOpeningError *) x));
62257 static void *_p_Xapian__DatabaseCreateErrorTo_p_Xapian__DatabaseError(void *x, int *) {
62258 return (void *)((Xapian::DatabaseError *) ((Xapian::DatabaseCreateError *) x));
62260 static void *_p_Xapian__DatabaseCorruptErrorTo_p_Xapian__DatabaseError(void *x, int *) {
62261 return (void *)((Xapian::DatabaseError *) ((Xapian::DatabaseCorruptError *) x));
62263 static void *_p_Xapian__DocNotFoundErrorTo_p_Xapian__RuntimeError(void *x, int *) {
62264 return (void *)((Xapian::RuntimeError *) ((Xapian::DocNotFoundError *) x));
62266 static void *_p_Xapian__DatabaseLockErrorTo_p_Xapian__RuntimeError(void *x, int *) {
62267 return (void *)((Xapian::RuntimeError *) (Xapian::DatabaseError *) ((Xapian::DatabaseLockError *) x));
62269 static void *_p_Xapian__NetworkTimeoutErrorTo_p_Xapian__RuntimeError(void *x, int *) {
62270 return (void *)((Xapian::RuntimeError *) (Xapian::NetworkError *) ((Xapian::NetworkTimeoutError *) x));
62272 static void *_p_Xapian__FeatureUnavailableErrorTo_p_Xapian__RuntimeError(void *x, int *) {
62273 return (void *)((Xapian::RuntimeError *) ((Xapian::FeatureUnavailableError *) x));
62275 static void *_p_Xapian__DatabaseCreateErrorTo_p_Xapian__RuntimeError(void *x, int *) {
62276 return (void *)((Xapian::RuntimeError *) (Xapian::DatabaseError *) ((Xapian::DatabaseCreateError *) x));
62278 static void *_p_Xapian__InternalErrorTo_p_Xapian__RuntimeError(void *x, int *) {
62279 return (void *)((Xapian::RuntimeError *) ((Xapian::InternalError *) x));
62281 static void *_p_Xapian__DatabaseModifiedErrorTo_p_Xapian__RuntimeError(void *x, int *) {
62282 return (void *)((Xapian::RuntimeError *) (Xapian::DatabaseError *) ((Xapian::DatabaseModifiedError *) x));
62284 static void *_p_Xapian__DatabaseErrorTo_p_Xapian__RuntimeError(void *x, int *) {
62285 return (void *)((Xapian::RuntimeError *) ((Xapian::DatabaseError *) x));
62287 static void *_p_Xapian__DatabaseOpeningErrorTo_p_Xapian__RuntimeError(void *x, int *) {
62288 return (void *)((Xapian::RuntimeError *) (Xapian::DatabaseError *) ((Xapian::DatabaseOpeningError *) x));
62290 static void *_p_Xapian__RangeErrorTo_p_Xapian__RuntimeError(void *x, int *) {
62291 return (void *)((Xapian::RuntimeError *) ((Xapian::RangeError *) x));
62293 static void *_p_Xapian__SerialisationErrorTo_p_Xapian__RuntimeError(void *x, int *) {
62294 return (void *)((Xapian::RuntimeError *) ((Xapian::SerialisationError *) x));
62296 static void *_p_Xapian__DatabaseVersionErrorTo_p_Xapian__RuntimeError(void *x, int *) {
62297 return (void *)((Xapian::RuntimeError *) (Xapian::DatabaseError *)(Xapian::DatabaseOpeningError *) ((Xapian::DatabaseVersionError *) x));
62299 static void *_p_Xapian__NetworkErrorTo_p_Xapian__RuntimeError(void *x, int *) {
62300 return (void *)((Xapian::RuntimeError *) ((Xapian::NetworkError *) x));
62302 static void *_p_Xapian__DatabaseCorruptErrorTo_p_Xapian__RuntimeError(void *x, int *) {
62303 return (void *)((Xapian::RuntimeError *) (Xapian::DatabaseError *) ((Xapian::DatabaseCorruptError *) x));
62305 static void *_p_Xapian__QueryParserErrorTo_p_Xapian__RuntimeError(void *x, int *) {
62306 return (void *)((Xapian::RuntimeError *) ((Xapian::QueryParserError *) x));
62308 static void *_p_Xapian__StringValueRangeProcessorTo_p_Xapian__ValueRangeProcessor(void *x, int *) {
62309 return (void *)((Xapian::ValueRangeProcessor *) ((Xapian::StringValueRangeProcessor *) x));
62311 static void *_p_Xapian__DateValueRangeProcessorTo_p_Xapian__ValueRangeProcessor(void *x, int *) {
62312 return (void *)((Xapian::ValueRangeProcessor *) (Xapian::StringValueRangeProcessor *) ((Xapian::DateValueRangeProcessor *) x));
62314 static void *_p_Xapian__NumberValueRangeProcessorTo_p_Xapian__ValueRangeProcessor(void *x, int *) {
62315 return (void *)((Xapian::ValueRangeProcessor *) (Xapian::StringValueRangeProcessor *) ((Xapian::NumberValueRangeProcessor *) x));
62317 static void *_p_Xapian__DateValueRangeProcessorTo_p_Xapian__StringValueRangeProcessor(void *x, int *) {
62318 return (void *)((Xapian::StringValueRangeProcessor *) ((Xapian::DateValueRangeProcessor *) x));
62320 static void *_p_Xapian__NumberValueRangeProcessorTo_p_Xapian__StringValueRangeProcessor(void *x, int *) {
62321 return (void *)((Xapian::StringValueRangeProcessor *) ((Xapian::NumberValueRangeProcessor *) x));
62323 static void *_p_Xapian__DocNotFoundErrorTo_p_Xapian__Error(void *x, int *) {
62324 return (void *)((Xapian::Error *) (Xapian::RuntimeError *) ((Xapian::DocNotFoundError *) x));
62326 static void *_p_Xapian__DatabaseLockErrorTo_p_Xapian__Error(void *x, int *) {
62327 return (void *)((Xapian::Error *) (Xapian::RuntimeError *)(Xapian::DatabaseError *) ((Xapian::DatabaseLockError *) x));
62329 static void *_p_Xapian__LogicErrorTo_p_Xapian__Error(void *x, int *) {
62330 return (void *)((Xapian::Error *) ((Xapian::LogicError *) x));
62332 static void *_p_Xapian__DatabaseCreateErrorTo_p_Xapian__Error(void *x, int *) {
62333 return (void *)((Xapian::Error *) (Xapian::RuntimeError *)(Xapian::DatabaseError *) ((Xapian::DatabaseCreateError *) x));
62335 static void *_p_Xapian__FeatureUnavailableErrorTo_p_Xapian__Error(void *x, int *) {
62336 return (void *)((Xapian::Error *) (Xapian::RuntimeError *) ((Xapian::FeatureUnavailableError *) x));
62338 static void *_p_Xapian__NetworkTimeoutErrorTo_p_Xapian__Error(void *x, int *) {
62339 return (void *)((Xapian::Error *) (Xapian::RuntimeError *)(Xapian::NetworkError *) ((Xapian::NetworkTimeoutError *) x));
62341 static void *_p_Xapian__InternalErrorTo_p_Xapian__Error(void *x, int *) {
62342 return (void *)((Xapian::Error *) (Xapian::RuntimeError *) ((Xapian::InternalError *) x));
62344 static void *_p_Xapian__DatabaseModifiedErrorTo_p_Xapian__Error(void *x, int *) {
62345 return (void *)((Xapian::Error *) (Xapian::RuntimeError *)(Xapian::DatabaseError *) ((Xapian::DatabaseModifiedError *) x));
62347 static void *_p_Xapian__UnimplementedErrorTo_p_Xapian__Error(void *x, int *) {
62348 return (void *)((Xapian::Error *) (Xapian::LogicError *) ((Xapian::UnimplementedError *) x));
62350 static void *_p_Xapian__DatabaseErrorTo_p_Xapian__Error(void *x, int *) {
62351 return (void *)((Xapian::Error *) (Xapian::RuntimeError *) ((Xapian::DatabaseError *) x));
62353 static void *_p_Xapian__RuntimeErrorTo_p_Xapian__Error(void *x, int *) {
62354 return (void *)((Xapian::Error *) ((Xapian::RuntimeError *) x));
62356 static void *_p_Xapian__DatabaseOpeningErrorTo_p_Xapian__Error(void *x, int *) {
62357 return (void *)((Xapian::Error *) (Xapian::RuntimeError *)(Xapian::DatabaseError *) ((Xapian::DatabaseOpeningError *) x));
62359 static void *_p_Xapian__RangeErrorTo_p_Xapian__Error(void *x, int *) {
62360 return (void *)((Xapian::Error *) (Xapian::RuntimeError *) ((Xapian::RangeError *) x));
62362 static void *_p_Xapian__DatabaseVersionErrorTo_p_Xapian__Error(void *x, int *) {
62363 return (void *)((Xapian::Error *) (Xapian::RuntimeError *)(Xapian::DatabaseError *)(Xapian::DatabaseOpeningError *) ((Xapian::DatabaseVersionError *) x));
62365 static void *_p_Xapian__InvalidOperationErrorTo_p_Xapian__Error(void *x, int *) {
62366 return (void *)((Xapian::Error *) (Xapian::LogicError *) ((Xapian::InvalidOperationError *) x));
62368 static void *_p_Xapian__AssertionErrorTo_p_Xapian__Error(void *x, int *) {
62369 return (void *)((Xapian::Error *) (Xapian::LogicError *) ((Xapian::AssertionError *) x));
62371 static void *_p_Xapian__SerialisationErrorTo_p_Xapian__Error(void *x, int *) {
62372 return (void *)((Xapian::Error *) (Xapian::RuntimeError *) ((Xapian::SerialisationError *) x));
62374 static void *_p_Xapian__NetworkErrorTo_p_Xapian__Error(void *x, int *) {
62375 return (void *)((Xapian::Error *) (Xapian::RuntimeError *) ((Xapian::NetworkError *) x));
62377 static void *_p_Xapian__DatabaseCorruptErrorTo_p_Xapian__Error(void *x, int *) {
62378 return (void *)((Xapian::Error *) (Xapian::RuntimeError *)(Xapian::DatabaseError *) ((Xapian::DatabaseCorruptError *) x));
62380 static void *_p_Xapian__InvalidArgumentErrorTo_p_Xapian__Error(void *x, int *) {
62381 return (void *)((Xapian::Error *) (Xapian::LogicError *) ((Xapian::InvalidArgumentError *) x));
62383 static void *_p_Xapian__QueryParserErrorTo_p_Xapian__Error(void *x, int *) {
62384 return (void *)((Xapian::Error *) (Xapian::RuntimeError *) ((Xapian::QueryParserError *) x));
62386 static swig_type_info _swigt__p_Xapian__AssertionError = {"_p_Xapian__AssertionError", "Xapian::AssertionError *", 0, 0, (void*)0, 0};
62387 static swig_type_info _swigt__p_Xapian__BM25Weight = {"_p_Xapian__BM25Weight", "Xapian::BM25Weight *", 0, 0, (void*)0, 0};
62388 static swig_type_info _swigt__p_Xapian__BoolWeight = {"_p_Xapian__BoolWeight", "Xapian::BoolWeight *", 0, 0, (void*)0, 0};
62389 static swig_type_info _swigt__p_Xapian__Compactor = {"_p_Xapian__Compactor", "Xapian::Compactor *", 0, 0, (void*)0, 0};
62390 static swig_type_info _swigt__p_Xapian__Database = {"_p_Xapian__Database", "Xapian::Database *", 0, 0, (void*)0, 0};
62391 static swig_type_info _swigt__p_Xapian__DatabaseCorruptError = {"_p_Xapian__DatabaseCorruptError", "Xapian::DatabaseCorruptError *", 0, 0, (void*)0, 0};
62392 static swig_type_info _swigt__p_Xapian__DatabaseCreateError = {"_p_Xapian__DatabaseCreateError", "Xapian::DatabaseCreateError *", 0, 0, (void*)0, 0};
62393 static swig_type_info _swigt__p_Xapian__DatabaseError = {"_p_Xapian__DatabaseError", "Xapian::DatabaseError *", 0, 0, (void*)0, 0};
62394 static swig_type_info _swigt__p_Xapian__DatabaseLockError = {"_p_Xapian__DatabaseLockError", "Xapian::DatabaseLockError *", 0, 0, (void*)0, 0};
62395 static swig_type_info _swigt__p_Xapian__DatabaseModifiedError = {"_p_Xapian__DatabaseModifiedError", "Xapian::DatabaseModifiedError *", 0, 0, (void*)0, 0};
62396 static swig_type_info _swigt__p_Xapian__DatabaseOpeningError = {"_p_Xapian__DatabaseOpeningError", "Xapian::DatabaseOpeningError *", 0, 0, (void*)0, 0};
62397 static swig_type_info _swigt__p_Xapian__DatabaseVersionError = {"_p_Xapian__DatabaseVersionError", "Xapian::DatabaseVersionError *", 0, 0, (void*)0, 0};
62398 static swig_type_info _swigt__p_Xapian__DateValueRangeProcessor = {"_p_Xapian__DateValueRangeProcessor", "Xapian::DateValueRangeProcessor *", 0, 0, (void*)0, 0};
62399 static swig_type_info _swigt__p_Xapian__DecreasingValueWeightPostingSource = {"_p_Xapian__DecreasingValueWeightPostingSource", "Xapian::DecreasingValueWeightPostingSource *", 0, 0, (void*)0, 0};
62400 static swig_type_info _swigt__p_Xapian__DocNotFoundError = {"_p_Xapian__DocNotFoundError", "Xapian::DocNotFoundError *", 0, 0, (void*)0, 0};
62401 static swig_type_info _swigt__p_Xapian__Document = {"_p_Xapian__Document", "Xapian::Document *", 0, 0, (void*)0, 0};
62402 static swig_type_info _swigt__p_Xapian__ESet = {"_p_Xapian__ESet", "Xapian::ESet *", 0, 0, (void*)0, 0};
62403 static swig_type_info _swigt__p_Xapian__ESetIterator = {"_p_Xapian__ESetIterator", "Xapian::ESetIterator *", 0, 0, (void*)0, 0};
62404 static swig_type_info _swigt__p_Xapian__Enquire = {"_p_Xapian__Enquire", "Xapian::Enquire *", 0, 0, (void*)0, 0};
62405 static swig_type_info _swigt__p_Xapian__Error = {"_p_Xapian__Error", "Xapian::Error *", 0, 0, (void*)0, 0};
62406 static swig_type_info _swigt__p_Xapian__ExpandDecider = {"_p_Xapian__ExpandDecider", "Xapian::ExpandDecider *", 0, 0, (void*)0, 0};
62407 static swig_type_info _swigt__p_Xapian__FeatureUnavailableError = {"_p_Xapian__FeatureUnavailableError", "Xapian::FeatureUnavailableError *", 0, 0, (void*)0, 0};
62408 static swig_type_info _swigt__p_Xapian__FixedWeightPostingSource = {"_p_Xapian__FixedWeightPostingSource", "Xapian::FixedWeightPostingSource *", 0, 0, (void*)0, 0};
62409 static swig_type_info _swigt__p_Xapian__InternalError = {"_p_Xapian__InternalError", "Xapian::InternalError *", 0, 0, (void*)0, 0};
62410 static swig_type_info _swigt__p_Xapian__InvalidArgumentError = {"_p_Xapian__InvalidArgumentError", "Xapian::InvalidArgumentError *", 0, 0, (void*)0, 0};
62411 static swig_type_info _swigt__p_Xapian__InvalidOperationError = {"_p_Xapian__InvalidOperationError", "Xapian::InvalidOperationError *", 0, 0, (void*)0, 0};
62412 static swig_type_info _swigt__p_Xapian__KeyMaker = {"_p_Xapian__KeyMaker", "Xapian::KeyMaker *", 0, 0, (void*)0, 0};
62413 static swig_type_info _swigt__p_Xapian__LogicError = {"_p_Xapian__LogicError", "Xapian::LogicError *", 0, 0, (void*)0, 0};
62414 static swig_type_info _swigt__p_Xapian__MSet = {"_p_Xapian__MSet", "Xapian::MSet *", 0, 0, (void*)0, 0};
62415 static swig_type_info _swigt__p_Xapian__MSetIterator = {"_p_Xapian__MSetIterator", "Xapian::MSetIterator *", 0, 0, (void*)0, 0};
62416 static swig_type_info _swigt__p_Xapian__MatchDecider = {"_p_Xapian__MatchDecider", "Xapian::MatchDecider *", 0, 0, (void*)0, 0};
62417 static swig_type_info _swigt__p_Xapian__MatchSpy = {"_p_Xapian__MatchSpy", "Xapian::MatchSpy *", 0, 0, (void*)0, 0};
62418 static swig_type_info _swigt__p_Xapian__MultiValueKeyMaker = {"_p_Xapian__MultiValueKeyMaker", "Xapian::MultiValueKeyMaker *", 0, 0, (void*)0, 0};
62419 static swig_type_info _swigt__p_Xapian__MultiValueSorter = {"_p_Xapian__MultiValueSorter", "Xapian::MultiValueSorter *", 0, 0, (void*)0, 0};
62420 static swig_type_info _swigt__p_Xapian__NetworkError = {"_p_Xapian__NetworkError", "Xapian::NetworkError *", 0, 0, (void*)0, 0};
62421 static swig_type_info _swigt__p_Xapian__NetworkTimeoutError = {"_p_Xapian__NetworkTimeoutError", "Xapian::NetworkTimeoutError *", 0, 0, (void*)0, 0};
62422 static swig_type_info _swigt__p_Xapian__NumberValueRangeProcessor = {"_p_Xapian__NumberValueRangeProcessor", "Xapian::NumberValueRangeProcessor *", 0, 0, (void*)0, 0};
62423 static swig_type_info _swigt__p_Xapian__PositionIterator = {"_p_Xapian__PositionIterator", "Xapian::PositionIterator *", 0, 0, (void*)0, 0};
62424 static swig_type_info _swigt__p_Xapian__PostingIterator = {"_p_Xapian__PostingIterator", "Xapian::PostingIterator *", 0, 0, (void*)0, 0};
62425 static swig_type_info _swigt__p_Xapian__PostingSource = {"_p_Xapian__PostingSource", "Xapian::PostingSource *", 0, 0, (void*)0, 0};
62426 static swig_type_info _swigt__p_Xapian__Query = {"_p_Xapian__Query", "Xapian::Query *", 0, 0, (void*)0, 0};
62427 static swig_type_info _swigt__p_Xapian__QueryParser = {"_p_Xapian__QueryParser", "Xapian::QueryParser *", 0, 0, (void*)0, 0};
62428 static swig_type_info _swigt__p_Xapian__QueryParserError = {"_p_Xapian__QueryParserError", "Xapian::QueryParserError *", 0, 0, (void*)0, 0};
62429 static swig_type_info _swigt__p_Xapian__RSet = {"_p_Xapian__RSet", "Xapian::RSet *", 0, 0, (void*)0, 0};
62430 static swig_type_info _swigt__p_Xapian__RangeError = {"_p_Xapian__RangeError", "Xapian::RangeError *", 0, 0, (void*)0, 0};
62431 static swig_type_info _swigt__p_Xapian__Registry = {"_p_Xapian__Registry", "Xapian::Registry *", 0, 0, (void*)0, 0};
62432 static swig_type_info _swigt__p_Xapian__RuntimeError = {"_p_Xapian__RuntimeError", "Xapian::RuntimeError *", 0, 0, (void*)0, 0};
62433 static swig_type_info _swigt__p_Xapian__SerialisationError = {"_p_Xapian__SerialisationError", "Xapian::SerialisationError *", 0, 0, (void*)0, 0};
62434 static swig_type_info _swigt__p_Xapian__SimpleStopper = {"_p_Xapian__SimpleStopper", "Xapian::SimpleStopper *", 0, 0, (void*)0, 0};
62435 static swig_type_info _swigt__p_Xapian__Sorter = {"_p_Xapian__Sorter", "Xapian::Sorter *", 0, 0, (void*)0, 0};
62436 static swig_type_info _swigt__p_Xapian__Stem = {"_p_Xapian__Stem", "Xapian::Stem *", 0, 0, (void*)0, 0};
62437 static swig_type_info _swigt__p_Xapian__StemImplementation = {"_p_Xapian__StemImplementation", "Xapian::StemImplementation *", 0, 0, (void*)0, 0};
62438 static swig_type_info _swigt__p_Xapian__Stopper = {"_p_Xapian__Stopper", "Xapian::Stopper *", 0, 0, (void*)0, 0};
62439 static swig_type_info _swigt__p_Xapian__StringValueRangeProcessor = {"_p_Xapian__StringValueRangeProcessor", "Xapian::StringValueRangeProcessor *", 0, 0, (void*)0, 0};
62440 static swig_type_info _swigt__p_Xapian__TermGenerator = {"_p_Xapian__TermGenerator", "Xapian::TermGenerator *", 0, 0, (void*)0, 0};
62441 static swig_type_info _swigt__p_Xapian__TermIterator = {"_p_Xapian__TermIterator", "Xapian::TermIterator *", 0, 0, (void*)0, 0};
62442 static swig_type_info _swigt__p_Xapian__TradWeight = {"_p_Xapian__TradWeight", "Xapian::TradWeight *", 0, 0, (void*)0, 0};
62443 static swig_type_info _swigt__p_Xapian__UnimplementedError = {"_p_Xapian__UnimplementedError", "Xapian::UnimplementedError *", 0, 0, (void*)0, 0};
62444 static swig_type_info _swigt__p_Xapian__ValueCountMatchSpy = {"_p_Xapian__ValueCountMatchSpy", "Xapian::ValueCountMatchSpy *", 0, 0, (void*)0, 0};
62445 static swig_type_info _swigt__p_Xapian__ValueIterator = {"_p_Xapian__ValueIterator", "Xapian::ValueIterator *", 0, 0, (void*)0, 0};
62446 static swig_type_info _swigt__p_Xapian__ValueMapPostingSource = {"_p_Xapian__ValueMapPostingSource", "Xapian::ValueMapPostingSource *", 0, 0, (void*)0, 0};
62447 static swig_type_info _swigt__p_Xapian__ValuePostingSource = {"_p_Xapian__ValuePostingSource", "Xapian::ValuePostingSource *", 0, 0, (void*)0, 0};
62448 static swig_type_info _swigt__p_Xapian__ValueRangeProcessor = {"_p_Xapian__ValueRangeProcessor", "Xapian::ValueRangeProcessor *", 0, 0, (void*)0, 0};
62449 static swig_type_info _swigt__p_Xapian__ValueSetMatchDecider = {"_p_Xapian__ValueSetMatchDecider", "Xapian::ValueSetMatchDecider *", 0, 0, (void*)0, 0};
62450 static swig_type_info _swigt__p_Xapian__ValueWeightPostingSource = {"_p_Xapian__ValueWeightPostingSource", "Xapian::ValueWeightPostingSource *", 0, 0, (void*)0, 0};
62451 static swig_type_info _swigt__p_Xapian__Weight = {"_p_Xapian__Weight", "Xapian::Weight *", 0, 0, (void*)0, 0};
62452 static swig_type_info _swigt__p_Xapian__WritableDatabase = {"_p_Xapian__WritableDatabase", "Xapian::WritableDatabase *", 0, 0, (void*)0, 0};
62453 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
62454 static swig_type_info _swigt__p_compaction_level = {"_p_compaction_level", "compaction_level *", 0, 0, (void*)0, 0};
62455 static swig_type_info _swigt__p_docid_order = {"_p_docid_order", "docid_order *", 0, 0, (void*)0, 0};
62456 static swig_type_info _swigt__p_double = {"_p_double", "Xapian::doclength *|double *|Xapian::weight *", 0, 0, (void*)0, 0};
62457 static swig_type_info _swigt__p_feature_flag = {"_p_feature_flag", "feature_flag *", 0, 0, (void*)0, 0};
62458 static swig_type_info _swigt__p_first_type = {"_p_first_type", "first_type *", 0, 0, (void*)0, 0};
62459 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};
62460 static swig_type_info _swigt__p_op = {"_p_op", "op *", 0, 0, (void*)0, 0};
62461 static swig_type_info _swigt__p_second_type = {"_p_second_type", "second_type *", 0, 0, (void*)0, 0};
62462 static swig_type_info _swigt__p_std__invalid_argument = {"_p_std__invalid_argument", "std::invalid_argument *", 0, 0, (void*)0, 0};
62463 static swig_type_info _swigt__p_std__string = {"_p_std__string", "std::string *", 0, 0, (void*)0, 0};
62464 static swig_type_info _swigt__p_stem_strategy = {"_p_stem_strategy", "stem_strategy *", 0, 0, (void*)0, 0};
62465 static swig_type_info _swigt__p_swig__SwigPyIterator = {"_p_swig__SwigPyIterator", "swig::SwigPyIterator *", 0, 0, (void*)0, 0};
62466 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};
62467 static swig_type_info *swig_type_initial[] = {
62468 &_swigt__p_Xapian__AssertionError,
62469 &_swigt__p_Xapian__BM25Weight,
62470 &_swigt__p_Xapian__BoolWeight,
62471 &_swigt__p_Xapian__Compactor,
62472 &_swigt__p_Xapian__Database,
62473 &_swigt__p_Xapian__DatabaseCorruptError,
62474 &_swigt__p_Xapian__DatabaseCreateError,
62475 &_swigt__p_Xapian__DatabaseError,
62476 &_swigt__p_Xapian__DatabaseLockError,
62477 &_swigt__p_Xapian__DatabaseModifiedError,
62478 &_swigt__p_Xapian__DatabaseOpeningError,
62479 &_swigt__p_Xapian__DatabaseVersionError,
62480 &_swigt__p_Xapian__DateValueRangeProcessor,
62481 &_swigt__p_Xapian__DecreasingValueWeightPostingSource,
62482 &_swigt__p_Xapian__DocNotFoundError,
62483 &_swigt__p_Xapian__Document,
62484 &_swigt__p_Xapian__ESet,
62485 &_swigt__p_Xapian__ESetIterator,
62486 &_swigt__p_Xapian__Enquire,
62487 &_swigt__p_Xapian__Error,
62488 &_swigt__p_Xapian__ExpandDecider,
62489 &_swigt__p_Xapian__FeatureUnavailableError,
62490 &_swigt__p_Xapian__FixedWeightPostingSource,
62491 &_swigt__p_Xapian__InternalError,
62492 &_swigt__p_Xapian__InvalidArgumentError,
62493 &_swigt__p_Xapian__InvalidOperationError,
62494 &_swigt__p_Xapian__KeyMaker,
62495 &_swigt__p_Xapian__LogicError,
62496 &_swigt__p_Xapian__MSet,
62497 &_swigt__p_Xapian__MSetIterator,
62498 &_swigt__p_Xapian__MatchDecider,
62499 &_swigt__p_Xapian__MatchSpy,
62500 &_swigt__p_Xapian__MultiValueKeyMaker,
62501 &_swigt__p_Xapian__MultiValueSorter,
62502 &_swigt__p_Xapian__NetworkError,
62503 &_swigt__p_Xapian__NetworkTimeoutError,
62504 &_swigt__p_Xapian__NumberValueRangeProcessor,
62505 &_swigt__p_Xapian__PositionIterator,
62506 &_swigt__p_Xapian__PostingIterator,
62507 &_swigt__p_Xapian__PostingSource,
62508 &_swigt__p_Xapian__Query,
62509 &_swigt__p_Xapian__QueryParser,
62510 &_swigt__p_Xapian__QueryParserError,
62511 &_swigt__p_Xapian__RSet,
62512 &_swigt__p_Xapian__RangeError,
62513 &_swigt__p_Xapian__Registry,
62514 &_swigt__p_Xapian__RuntimeError,
62515 &_swigt__p_Xapian__SerialisationError,
62516 &_swigt__p_Xapian__SimpleStopper,
62517 &_swigt__p_Xapian__Sorter,
62518 &_swigt__p_Xapian__Stem,
62519 &_swigt__p_Xapian__StemImplementation,
62520 &_swigt__p_Xapian__Stopper,
62521 &_swigt__p_Xapian__StringValueRangeProcessor,
62522 &_swigt__p_Xapian__TermGenerator,
62523 &_swigt__p_Xapian__TermIterator,
62524 &_swigt__p_Xapian__TradWeight,
62525 &_swigt__p_Xapian__UnimplementedError,
62526 &_swigt__p_Xapian__ValueCountMatchSpy,
62527 &_swigt__p_Xapian__ValueIterator,
62528 &_swigt__p_Xapian__ValueMapPostingSource,
62529 &_swigt__p_Xapian__ValuePostingSource,
62530 &_swigt__p_Xapian__ValueRangeProcessor,
62531 &_swigt__p_Xapian__ValueSetMatchDecider,
62532 &_swigt__p_Xapian__ValueWeightPostingSource,
62533 &_swigt__p_Xapian__Weight,
62534 &_swigt__p_Xapian__WritableDatabase,
62536 &_swigt__p_compaction_level,
62537 &_swigt__p_docid_order,
62539 &_swigt__p_feature_flag,
62540 &_swigt__p_first_type,
62543 &_swigt__p_second_type,
62544 &_swigt__p_std__invalid_argument,
62545 &_swigt__p_std__string,
62546 &_swigt__p_stem_strategy,
62547 &_swigt__p_swig__SwigPyIterator,
62548 &_swigt__p_unsigned_int,
62550 static swig_cast_info _swigc__p_Xapian__AssertionError[] = { {&_swigt__p_Xapian__AssertionError, 0, 0, 0},{0, 0, 0, 0}};
62551 static swig_cast_info _swigc__p_Xapian__BM25Weight[] = { {&_swigt__p_Xapian__BM25Weight, 0, 0, 0},{0, 0, 0, 0}};
62552 static swig_cast_info _swigc__p_Xapian__BoolWeight[] = { {&_swigt__p_Xapian__BoolWeight, 0, 0, 0},{0, 0, 0, 0}};
62553 static swig_cast_info _swigc__p_Xapian__Compactor[] = { {&_swigt__p_Xapian__Compactor, 0, 0, 0},{0, 0, 0, 0}};
62554 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}};
62555 static swig_cast_info _swigc__p_Xapian__DatabaseCorruptError[] = { {&_swigt__p_Xapian__DatabaseCorruptError, 0, 0, 0},{0, 0, 0, 0}};
62556 static swig_cast_info _swigc__p_Xapian__DatabaseCreateError[] = { {&_swigt__p_Xapian__DatabaseCreateError, 0, 0, 0},{0, 0, 0, 0}};
62557 static swig_cast_info _swigc__p_Xapian__DatabaseError[] = { {&_swigt__p_Xapian__DatabaseVersionError, _p_Xapian__DatabaseVersionErrorTo_p_Xapian__DatabaseError, 0, 0}, {&_swigt__p_Xapian__DatabaseLockError, _p_Xapian__DatabaseLockErrorTo_p_Xapian__DatabaseError, 0, 0}, {&_swigt__p_Xapian__DatabaseModifiedError, _p_Xapian__DatabaseModifiedErrorTo_p_Xapian__DatabaseError, 0, 0}, {&_swigt__p_Xapian__DatabaseOpeningError, _p_Xapian__DatabaseOpeningErrorTo_p_Xapian__DatabaseError, 0, 0}, {&_swigt__p_Xapian__DatabaseError, 0, 0, 0}, {&_swigt__p_Xapian__DatabaseCreateError, _p_Xapian__DatabaseCreateErrorTo_p_Xapian__DatabaseError, 0, 0}, {&_swigt__p_Xapian__DatabaseCorruptError, _p_Xapian__DatabaseCorruptErrorTo_p_Xapian__DatabaseError, 0, 0},{0, 0, 0, 0}};
62558 static swig_cast_info _swigc__p_Xapian__DatabaseLockError[] = { {&_swigt__p_Xapian__DatabaseLockError, 0, 0, 0},{0, 0, 0, 0}};
62559 static swig_cast_info _swigc__p_Xapian__DatabaseModifiedError[] = { {&_swigt__p_Xapian__DatabaseModifiedError, 0, 0, 0},{0, 0, 0, 0}};
62560 static swig_cast_info _swigc__p_Xapian__DatabaseOpeningError[] = { {&_swigt__p_Xapian__DatabaseVersionError, _p_Xapian__DatabaseVersionErrorTo_p_Xapian__DatabaseOpeningError, 0, 0}, {&_swigt__p_Xapian__DatabaseOpeningError, 0, 0, 0},{0, 0, 0, 0}};
62561 static swig_cast_info _swigc__p_Xapian__DatabaseVersionError[] = { {&_swigt__p_Xapian__DatabaseVersionError, 0, 0, 0},{0, 0, 0, 0}};
62562 static swig_cast_info _swigc__p_Xapian__DateValueRangeProcessor[] = { {&_swigt__p_Xapian__DateValueRangeProcessor, 0, 0, 0},{0, 0, 0, 0}};
62563 static swig_cast_info _swigc__p_Xapian__DecreasingValueWeightPostingSource[] = { {&_swigt__p_Xapian__DecreasingValueWeightPostingSource, 0, 0, 0},{0, 0, 0, 0}};
62564 static swig_cast_info _swigc__p_Xapian__DocNotFoundError[] = { {&_swigt__p_Xapian__DocNotFoundError, 0, 0, 0},{0, 0, 0, 0}};
62565 static swig_cast_info _swigc__p_Xapian__Document[] = { {&_swigt__p_Xapian__Document, 0, 0, 0},{0, 0, 0, 0}};
62566 static swig_cast_info _swigc__p_Xapian__ESet[] = { {&_swigt__p_Xapian__ESet, 0, 0, 0},{0, 0, 0, 0}};
62567 static swig_cast_info _swigc__p_Xapian__ESetIterator[] = { {&_swigt__p_Xapian__ESetIterator, 0, 0, 0},{0, 0, 0, 0}};
62568 static swig_cast_info _swigc__p_Xapian__Enquire[] = { {&_swigt__p_Xapian__Enquire, 0, 0, 0},{0, 0, 0, 0}};
62569 static swig_cast_info _swigc__p_Xapian__Error[] = { {&_swigt__p_Xapian__DocNotFoundError, _p_Xapian__DocNotFoundErrorTo_p_Xapian__Error, 0, 0}, {&_swigt__p_Xapian__DatabaseLockError, _p_Xapian__DatabaseLockErrorTo_p_Xapian__Error, 0, 0}, {&_swigt__p_Xapian__LogicError, _p_Xapian__LogicErrorTo_p_Xapian__Error, 0, 0}, {&_swigt__p_Xapian__NetworkTimeoutError, _p_Xapian__NetworkTimeoutErrorTo_p_Xapian__Error, 0, 0}, {&_swigt__p_Xapian__DatabaseCreateError, _p_Xapian__DatabaseCreateErrorTo_p_Xapian__Error, 0, 0}, {&_swigt__p_Xapian__FeatureUnavailableError, _p_Xapian__FeatureUnavailableErrorTo_p_Xapian__Error, 0, 0}, {&_swigt__p_Xapian__InternalError, _p_Xapian__InternalErrorTo_p_Xapian__Error, 0, 0}, {&_swigt__p_Xapian__DatabaseModifiedError, _p_Xapian__DatabaseModifiedErrorTo_p_Xapian__Error, 0, 0}, {&_swigt__p_Xapian__UnimplementedError, _p_Xapian__UnimplementedErrorTo_p_Xapian__Error, 0, 0}, {&_swigt__p_Xapian__RangeError, _p_Xapian__RangeErrorTo_p_Xapian__Error, 0, 0}, {&_swigt__p_Xapian__RuntimeError, _p_Xapian__RuntimeErrorTo_p_Xapian__Error, 0, 0}, {&_swigt__p_Xapian__DatabaseError, _p_Xapian__DatabaseErrorTo_p_Xapian__Error, 0, 0}, {&_swigt__p_Xapian__DatabaseOpeningError, _p_Xapian__DatabaseOpeningErrorTo_p_Xapian__Error, 0, 0}, {&_swigt__p_Xapian__InvalidOperationError, _p_Xapian__InvalidOperationErrorTo_p_Xapian__Error, 0, 0}, {&_swigt__p_Xapian__AssertionError, _p_Xapian__AssertionErrorTo_p_Xapian__Error, 0, 0}, {&_swigt__p_Xapian__DatabaseVersionError, _p_Xapian__DatabaseVersionErrorTo_p_Xapian__Error, 0, 0}, {&_swigt__p_Xapian__SerialisationError, _p_Xapian__SerialisationErrorTo_p_Xapian__Error, 0, 0}, {&_swigt__p_Xapian__Error, 0, 0, 0}, {&_swigt__p_Xapian__NetworkError, _p_Xapian__NetworkErrorTo_p_Xapian__Error, 0, 0}, {&_swigt__p_Xapian__InvalidArgumentError, _p_Xapian__InvalidArgumentErrorTo_p_Xapian__Error, 0, 0}, {&_swigt__p_Xapian__DatabaseCorruptError, _p_Xapian__DatabaseCorruptErrorTo_p_Xapian__Error, 0, 0}, {&_swigt__p_Xapian__QueryParserError, _p_Xapian__QueryParserErrorTo_p_Xapian__Error, 0, 0},{0, 0, 0, 0}};
62570 static swig_cast_info _swigc__p_Xapian__ExpandDecider[] = { {&_swigt__p_Xapian__ExpandDecider, 0, 0, 0},{0, 0, 0, 0}};
62571 static swig_cast_info _swigc__p_Xapian__FeatureUnavailableError[] = { {&_swigt__p_Xapian__FeatureUnavailableError, 0, 0, 0},{0, 0, 0, 0}};
62572 static swig_cast_info _swigc__p_Xapian__FixedWeightPostingSource[] = { {&_swigt__p_Xapian__FixedWeightPostingSource, 0, 0, 0},{0, 0, 0, 0}};
62573 static swig_cast_info _swigc__p_Xapian__InternalError[] = { {&_swigt__p_Xapian__InternalError, 0, 0, 0},{0, 0, 0, 0}};
62574 static swig_cast_info _swigc__p_Xapian__InvalidArgumentError[] = { {&_swigt__p_Xapian__InvalidArgumentError, 0, 0, 0},{0, 0, 0, 0}};
62575 static swig_cast_info _swigc__p_Xapian__InvalidOperationError[] = { {&_swigt__p_Xapian__InvalidOperationError, 0, 0, 0},{0, 0, 0, 0}};
62576 static swig_cast_info _swigc__p_Xapian__KeyMaker[] = { {&_swigt__p_Xapian__Sorter, _p_Xapian__SorterTo_p_Xapian__KeyMaker, 0, 0}, {&_swigt__p_Xapian__MultiValueSorter, _p_Xapian__MultiValueSorterTo_p_Xapian__KeyMaker, 0, 0}, {&_swigt__p_Xapian__KeyMaker, 0, 0, 0}, {&_swigt__p_Xapian__MultiValueKeyMaker, _p_Xapian__MultiValueKeyMakerTo_p_Xapian__KeyMaker, 0, 0},{0, 0, 0, 0}};
62577 static swig_cast_info _swigc__p_Xapian__LogicError[] = { {&_swigt__p_Xapian__AssertionError, _p_Xapian__AssertionErrorTo_p_Xapian__LogicError, 0, 0}, {&_swigt__p_Xapian__InvalidOperationError, _p_Xapian__InvalidOperationErrorTo_p_Xapian__LogicError, 0, 0}, {&_swigt__p_Xapian__UnimplementedError, _p_Xapian__UnimplementedErrorTo_p_Xapian__LogicError, 0, 0}, {&_swigt__p_Xapian__LogicError, 0, 0, 0}, {&_swigt__p_Xapian__InvalidArgumentError, _p_Xapian__InvalidArgumentErrorTo_p_Xapian__LogicError, 0, 0},{0, 0, 0, 0}};
62578 static swig_cast_info _swigc__p_Xapian__MSet[] = { {&_swigt__p_Xapian__MSet, 0, 0, 0},{0, 0, 0, 0}};
62579 static swig_cast_info _swigc__p_Xapian__MSetIterator[] = { {&_swigt__p_Xapian__MSetIterator, 0, 0, 0},{0, 0, 0, 0}};
62580 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}};
62581 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}};
62582 static swig_cast_info _swigc__p_Xapian__MultiValueKeyMaker[] = { {&_swigt__p_Xapian__MultiValueKeyMaker, 0, 0, 0},{0, 0, 0, 0}};
62583 static swig_cast_info _swigc__p_Xapian__MultiValueSorter[] = { {&_swigt__p_Xapian__MultiValueSorter, 0, 0, 0},{0, 0, 0, 0}};
62584 static swig_cast_info _swigc__p_Xapian__NetworkError[] = { {&_swigt__p_Xapian__NetworkError, 0, 0, 0}, {&_swigt__p_Xapian__NetworkTimeoutError, _p_Xapian__NetworkTimeoutErrorTo_p_Xapian__NetworkError, 0, 0},{0, 0, 0, 0}};
62585 static swig_cast_info _swigc__p_Xapian__NetworkTimeoutError[] = { {&_swigt__p_Xapian__NetworkTimeoutError, 0, 0, 0},{0, 0, 0, 0}};
62586 static swig_cast_info _swigc__p_Xapian__NumberValueRangeProcessor[] = { {&_swigt__p_Xapian__NumberValueRangeProcessor, 0, 0, 0},{0, 0, 0, 0}};
62587 static swig_cast_info _swigc__p_Xapian__PositionIterator[] = { {&_swigt__p_Xapian__PositionIterator, 0, 0, 0},{0, 0, 0, 0}};
62588 static swig_cast_info _swigc__p_Xapian__PostingIterator[] = { {&_swigt__p_Xapian__PostingIterator, 0, 0, 0},{0, 0, 0, 0}};
62589 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__FixedWeightPostingSource, _p_Xapian__FixedWeightPostingSourceTo_p_Xapian__PostingSource, 0, 0},{0, 0, 0, 0}};
62590 static swig_cast_info _swigc__p_Xapian__Query[] = { {&_swigt__p_Xapian__Query, 0, 0, 0},{0, 0, 0, 0}};
62591 static swig_cast_info _swigc__p_Xapian__QueryParser[] = { {&_swigt__p_Xapian__QueryParser, 0, 0, 0},{0, 0, 0, 0}};
62592 static swig_cast_info _swigc__p_Xapian__QueryParserError[] = { {&_swigt__p_Xapian__QueryParserError, 0, 0, 0},{0, 0, 0, 0}};
62593 static swig_cast_info _swigc__p_Xapian__RSet[] = { {&_swigt__p_Xapian__RSet, 0, 0, 0},{0, 0, 0, 0}};
62594 static swig_cast_info _swigc__p_Xapian__RangeError[] = { {&_swigt__p_Xapian__RangeError, 0, 0, 0},{0, 0, 0, 0}};
62595 static swig_cast_info _swigc__p_Xapian__Registry[] = { {&_swigt__p_Xapian__Registry, 0, 0, 0},{0, 0, 0, 0}};
62596 static swig_cast_info _swigc__p_Xapian__RuntimeError[] = { {&_swigt__p_Xapian__DocNotFoundError, _p_Xapian__DocNotFoundErrorTo_p_Xapian__RuntimeError, 0, 0}, {&_swigt__p_Xapian__DatabaseLockError, _p_Xapian__DatabaseLockErrorTo_p_Xapian__RuntimeError, 0, 0}, {&_swigt__p_Xapian__NetworkTimeoutError, _p_Xapian__NetworkTimeoutErrorTo_p_Xapian__RuntimeError, 0, 0}, {&_swigt__p_Xapian__FeatureUnavailableError, _p_Xapian__FeatureUnavailableErrorTo_p_Xapian__RuntimeError, 0, 0}, {&_swigt__p_Xapian__DatabaseCreateError, _p_Xapian__DatabaseCreateErrorTo_p_Xapian__RuntimeError, 0, 0}, {&_swigt__p_Xapian__InternalError, _p_Xapian__InternalErrorTo_p_Xapian__RuntimeError, 0, 0}, {&_swigt__p_Xapian__DatabaseModifiedError, _p_Xapian__DatabaseModifiedErrorTo_p_Xapian__RuntimeError, 0, 0}, {&_swigt__p_Xapian__DatabaseError, _p_Xapian__DatabaseErrorTo_p_Xapian__RuntimeError, 0, 0}, {&_swigt__p_Xapian__RangeError, _p_Xapian__RangeErrorTo_p_Xapian__RuntimeError, 0, 0}, {&_swigt__p_Xapian__RuntimeError, 0, 0, 0}, {&_swigt__p_Xapian__DatabaseOpeningError, _p_Xapian__DatabaseOpeningErrorTo_p_Xapian__RuntimeError, 0, 0}, {&_swigt__p_Xapian__SerialisationError, _p_Xapian__SerialisationErrorTo_p_Xapian__RuntimeError, 0, 0}, {&_swigt__p_Xapian__DatabaseVersionError, _p_Xapian__DatabaseVersionErrorTo_p_Xapian__RuntimeError, 0, 0}, {&_swigt__p_Xapian__NetworkError, _p_Xapian__NetworkErrorTo_p_Xapian__RuntimeError, 0, 0}, {&_swigt__p_Xapian__DatabaseCorruptError, _p_Xapian__DatabaseCorruptErrorTo_p_Xapian__RuntimeError, 0, 0}, {&_swigt__p_Xapian__QueryParserError, _p_Xapian__QueryParserErrorTo_p_Xapian__RuntimeError, 0, 0},{0, 0, 0, 0}};
62597 static swig_cast_info _swigc__p_Xapian__SerialisationError[] = { {&_swigt__p_Xapian__SerialisationError, 0, 0, 0},{0, 0, 0, 0}};
62598 static swig_cast_info _swigc__p_Xapian__SimpleStopper[] = { {&_swigt__p_Xapian__SimpleStopper, 0, 0, 0},{0, 0, 0, 0}};
62599 static swig_cast_info _swigc__p_Xapian__Sorter[] = { {&_swigt__p_Xapian__Sorter, 0, 0, 0}, {&_swigt__p_Xapian__MultiValueSorter, _p_Xapian__MultiValueSorterTo_p_Xapian__Sorter, 0, 0},{0, 0, 0, 0}};
62600 static swig_cast_info _swigc__p_Xapian__Stem[] = { {&_swigt__p_Xapian__Stem, 0, 0, 0},{0, 0, 0, 0}};
62601 static swig_cast_info _swigc__p_Xapian__StemImplementation[] = { {&_swigt__p_Xapian__StemImplementation, 0, 0, 0},{0, 0, 0, 0}};
62602 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}};
62603 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}};
62604 static swig_cast_info _swigc__p_Xapian__TermGenerator[] = { {&_swigt__p_Xapian__TermGenerator, 0, 0, 0},{0, 0, 0, 0}};
62605 static swig_cast_info _swigc__p_Xapian__TermIterator[] = { {&_swigt__p_Xapian__TermIterator, 0, 0, 0},{0, 0, 0, 0}};
62606 static swig_cast_info _swigc__p_Xapian__TradWeight[] = { {&_swigt__p_Xapian__TradWeight, 0, 0, 0},{0, 0, 0, 0}};
62607 static swig_cast_info _swigc__p_Xapian__UnimplementedError[] = { {&_swigt__p_Xapian__UnimplementedError, 0, 0, 0},{0, 0, 0, 0}};
62608 static swig_cast_info _swigc__p_Xapian__ValueCountMatchSpy[] = { {&_swigt__p_Xapian__ValueCountMatchSpy, 0, 0, 0},{0, 0, 0, 0}};
62609 static swig_cast_info _swigc__p_Xapian__ValueIterator[] = { {&_swigt__p_Xapian__ValueIterator, 0, 0, 0},{0, 0, 0, 0}};
62610 static swig_cast_info _swigc__p_Xapian__ValueMapPostingSource[] = { {&_swigt__p_Xapian__ValueMapPostingSource, 0, 0, 0},{0, 0, 0, 0}};
62611 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},{0, 0, 0, 0}};
62612 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}};
62613 static swig_cast_info _swigc__p_Xapian__ValueSetMatchDecider[] = { {&_swigt__p_Xapian__ValueSetMatchDecider, 0, 0, 0},{0, 0, 0, 0}};
62614 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}};
62615 static swig_cast_info _swigc__p_Xapian__Weight[] = { {&_swigt__p_Xapian__BoolWeight, _p_Xapian__BoolWeightTo_p_Xapian__Weight, 0, 0}, {&_swigt__p_Xapian__TradWeight, _p_Xapian__TradWeightTo_p_Xapian__Weight, 0, 0}, {&_swigt__p_Xapian__Weight, 0, 0, 0}, {&_swigt__p_Xapian__BM25Weight, _p_Xapian__BM25WeightTo_p_Xapian__Weight, 0, 0},{0, 0, 0, 0}};
62616 static swig_cast_info _swigc__p_Xapian__WritableDatabase[] = { {&_swigt__p_Xapian__WritableDatabase, 0, 0, 0},{0, 0, 0, 0}};
62617 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
62618 static swig_cast_info _swigc__p_compaction_level[] = { {&_swigt__p_compaction_level, 0, 0, 0},{0, 0, 0, 0}};
62619 static swig_cast_info _swigc__p_docid_order[] = { {&_swigt__p_docid_order, 0, 0, 0},{0, 0, 0, 0}};
62620 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
62621 static swig_cast_info _swigc__p_feature_flag[] = { {&_swigt__p_feature_flag, 0, 0, 0},{0, 0, 0, 0}};
62622 static swig_cast_info _swigc__p_first_type[] = { {&_swigt__p_first_type, 0, 0, 0},{0, 0, 0, 0}};
62623 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
62624 static swig_cast_info _swigc__p_op[] = { {&_swigt__p_op, 0, 0, 0},{0, 0, 0, 0}};
62625 static swig_cast_info _swigc__p_second_type[] = { {&_swigt__p_second_type, 0, 0, 0},{0, 0, 0, 0}};
62626 static swig_cast_info _swigc__p_std__invalid_argument[] = { {&_swigt__p_std__invalid_argument, 0, 0, 0},{0, 0, 0, 0}};
62627 static swig_cast_info _swigc__p_std__string[] = { {&_swigt__p_std__string, 0, 0, 0},{0, 0, 0, 0}};
62628 static swig_cast_info _swigc__p_stem_strategy[] = { {&_swigt__p_stem_strategy, 0, 0, 0},{0, 0, 0, 0}};
62629 static swig_cast_info _swigc__p_swig__SwigPyIterator[] = { {&_swigt__p_swig__SwigPyIterator, 0, 0, 0},{0, 0, 0, 0}};
62630 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
62631 static swig_cast_info *swig_cast_initial[] = {
62632 _swigc__p_Xapian__AssertionError,
62633 _swigc__p_Xapian__BM25Weight,
62634 _swigc__p_Xapian__BoolWeight,
62635 _swigc__p_Xapian__Compactor,
62636 _swigc__p_Xapian__Database,
62637 _swigc__p_Xapian__DatabaseCorruptError,
62638 _swigc__p_Xapian__DatabaseCreateError,
62639 _swigc__p_Xapian__DatabaseError,
62640 _swigc__p_Xapian__DatabaseLockError,
62641 _swigc__p_Xapian__DatabaseModifiedError,
62642 _swigc__p_Xapian__DatabaseOpeningError,
62643 _swigc__p_Xapian__DatabaseVersionError,
62644 _swigc__p_Xapian__DateValueRangeProcessor,
62645 _swigc__p_Xapian__DecreasingValueWeightPostingSource,
62646 _swigc__p_Xapian__DocNotFoundError,
62647 _swigc__p_Xapian__Document,
62648 _swigc__p_Xapian__ESet,
62649 _swigc__p_Xapian__ESetIterator,
62650 _swigc__p_Xapian__Enquire,
62651 _swigc__p_Xapian__Error,
62652 _swigc__p_Xapian__ExpandDecider,
62653 _swigc__p_Xapian__FeatureUnavailableError,
62654 _swigc__p_Xapian__FixedWeightPostingSource,
62655 _swigc__p_Xapian__InternalError,
62656 _swigc__p_Xapian__InvalidArgumentError,
62657 _swigc__p_Xapian__InvalidOperationError,
62658 _swigc__p_Xapian__KeyMaker,
62659 _swigc__p_Xapian__LogicError,
62660 _swigc__p_Xapian__MSet,
62661 _swigc__p_Xapian__MSetIterator,
62662 _swigc__p_Xapian__MatchDecider,
62663 _swigc__p_Xapian__MatchSpy,
62664 _swigc__p_Xapian__MultiValueKeyMaker,
62665 _swigc__p_Xapian__MultiValueSorter,
62666 _swigc__p_Xapian__NetworkError,
62667 _swigc__p_Xapian__NetworkTimeoutError,
62668 _swigc__p_Xapian__NumberValueRangeProcessor,
62669 _swigc__p_Xapian__PositionIterator,
62670 _swigc__p_Xapian__PostingIterator,
62671 _swigc__p_Xapian__PostingSource,
62672 _swigc__p_Xapian__Query,
62673 _swigc__p_Xapian__QueryParser,
62674 _swigc__p_Xapian__QueryParserError,
62675 _swigc__p_Xapian__RSet,
62676 _swigc__p_Xapian__RangeError,
62677 _swigc__p_Xapian__Registry,
62678 _swigc__p_Xapian__RuntimeError,
62679 _swigc__p_Xapian__SerialisationError,
62680 _swigc__p_Xapian__SimpleStopper,
62681 _swigc__p_Xapian__Sorter,
62682 _swigc__p_Xapian__Stem,
62683 _swigc__p_Xapian__StemImplementation,
62684 _swigc__p_Xapian__Stopper,
62685 _swigc__p_Xapian__StringValueRangeProcessor,
62686 _swigc__p_Xapian__TermGenerator,
62687 _swigc__p_Xapian__TermIterator,
62688 _swigc__p_Xapian__TradWeight,
62689 _swigc__p_Xapian__UnimplementedError,
62690 _swigc__p_Xapian__ValueCountMatchSpy,
62691 _swigc__p_Xapian__ValueIterator,
62692 _swigc__p_Xapian__ValueMapPostingSource,
62693 _swigc__p_Xapian__ValuePostingSource,
62694 _swigc__p_Xapian__ValueRangeProcessor,
62695 _swigc__p_Xapian__ValueSetMatchDecider,
62696 _swigc__p_Xapian__ValueWeightPostingSource,
62697 _swigc__p_Xapian__Weight,
62698 _swigc__p_Xapian__WritableDatabase,
62700 _swigc__p_compaction_level,
62701 _swigc__p_docid_order,
62703 _swigc__p_feature_flag,
62704 _swigc__p_first_type,
62707 _swigc__p_second_type,
62708 _swigc__p_std__invalid_argument,
62709 _swigc__p_std__string,
62710 _swigc__p_stem_strategy,
62711 _swigc__p_swig__SwigPyIterator,
62712 _swigc__p_unsigned_int,
62714 static swig_const_info swig_const_table[] = {
62715 {0, 0, 0, 0.0, 0, 0}};
62718 static __attribute__ ((__unused__)) void
62719 SWIG_InitializeModule(void *clientdata) {
62721 swig_module_info *module_head, *iter;
62723 clientdata = clientdata;
62724 if (swig_module.next==0) {
62725 swig_module.type_initial = swig_type_initial;
62726 swig_module.cast_initial = swig_cast_initial;
62727 swig_module.next = &swig_module;
62732 module_head = SWIG_Python_GetModule();
62733 if (!module_head) {
62734 SWIG_Python_SetModule(&swig_module);
62735 module_head = &swig_module;
62740 if (iter==&swig_module) {
62745 } while (iter!= module_head);
62747 swig_module.next = module_head->next;
62748 module_head->next = &swig_module;
62750 if (init == 0) return;
62751 for (i = 0; i < swig_module.size; ++i) {
62752 swig_type_info *type = 0;
62753 swig_type_info *ret;
62754 swig_cast_info *cast;
62755 if (swig_module.next != &swig_module) {
62756 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
62759 if (swig_module.type_initial[i]->clientdata) {
62760 type->clientdata = swig_module.type_initial[i]->clientdata;
62763 type = swig_module.type_initial[i];
62765 cast = swig_module.cast_initial[i];
62766 while (cast->type) {
62768 if (swig_module.next != &swig_module) {
62769 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
62772 if (type == swig_module.type_initial[i]) {
62776 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
62777 if (!ocast) ret = 0;
62782 type->cast->prev = cast;
62783 cast->next = type->cast;
62789 swig_module.types[i] = type;
62791 swig_module.types[i] = 0;
62793 static __attribute__ ((__unused__)) void
62794 SWIG_PropagateClientData(void) {
62796 swig_cast_info *equiv;
62797 static int init_run = 0;
62798 if (init_run) return;
62800 for (i = 0; i < swig_module.size; i++) {
62801 if (swig_module.types[i]->clientdata) {
62802 equiv = swig_module.types[i]->cast;
62804 if (!equiv->converter) {
62805 if (equiv->type && !equiv->type->clientdata)
62806 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
62808 equiv = equiv->next;
62815 typedef struct swig_globalvar {
62817 PyObject *(*get_attr)(void);
62818 int (*set_attr)(PyObject *);
62819 struct swig_globalvar *next;
62821 typedef struct swig_varlinkobject {
62822 Py_ssize_t ob_refcnt; struct _typeobject *ob_type;
62823 swig_globalvar *vars;
62824 } swig_varlinkobject;
62825 static __attribute__ ((__unused__)) PyObject *
62826 swig_varlink_repr(swig_varlinkobject *) {
62827 return PyString_FromString("<Swig global variables>");
62829 static __attribute__ ((__unused__)) PyObject *
62830 swig_varlink_str(swig_varlinkobject *v) {
62831 PyObject *str = PyString_FromString("(");
62832 swig_globalvar *var;
62833 for (var = v->vars; var; var=var->next) {
62834 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
62835 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
62837 PyString_ConcatAndDel(&str,PyString_FromString(")"));
62840 static __attribute__ ((__unused__)) int
62841 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int ) {
62843 PyObject *str = swig_varlink_str(v);
62844 fprintf(fp,"Swig global variables ");
62845 fprintf(fp,"%s\n", tmp = SWIG_Python_str_AsChar(str));
62847 if ( --((PyObject*)(str))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(str)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(str))));
62850 static __attribute__ ((__unused__)) void
62851 swig_varlink_dealloc(swig_varlinkobject *v) {
62852 swig_globalvar *var = v->vars;
62854 swig_globalvar *n = var->next;
62860 static __attribute__ ((__unused__)) PyObject *
62861 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
62862 PyObject *res = __null;
62863 swig_globalvar *var = v->vars;
62865 if (strcmp(var->name,n) == 0) {
62866 res = (*var->get_attr)();
62871 if (res == __null && !PyErr_Occurred()) {
62872 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
62876 static __attribute__ ((__unused__)) int
62877 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
62879 swig_globalvar *var = v->vars;
62881 if (strcmp(var->name,n) == 0) {
62882 res = (*var->set_attr)(p);
62887 if (res == 1 && !PyErr_Occurred()) {
62888 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
62892 static __attribute__ ((__unused__)) PyTypeObject*
62893 swig_varlink_type(void) {
62894 static char varlink__doc__[] = "Swig var link object";
62895 static PyTypeObject varlink_type;
62896 static int type_init = 0;
62898 const PyTypeObject tmp
62902 (char *)"swigvarlink",
62903 sizeof(swig_varlinkobject),
62905 (destructor) swig_varlink_dealloc,
62906 (printfunc) swig_varlink_print,
62907 (getattrfunc) swig_varlink_getattr,
62908 (setattrfunc) swig_varlink_setattr,
62910 (reprfunc) swig_varlink_repr,
62916 (reprfunc) swig_varlink_str,
62926 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
62929 varlink_type = tmp;
62930 varlink_type.ob_type = &PyType_Type;
62933 return &varlink_type;
62935 static __attribute__ ((__unused__)) PyObject *
62936 SWIG_Python_newvarlink(void) {
62937 swig_varlinkobject *result = ( (swig_varlinkobject *) PyObject_Init( (PyObject *) PyObject_Malloc( ( (swig_varlink_type())->tp_basicsize ) ), (swig_varlink_type())) );
62941 return ((PyObject*) result);
62943 static __attribute__ ((__unused__)) void
62944 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
62945 swig_varlinkobject *v = (swig_varlinkobject *) p;
62946 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
62948 size_t size = strlen(name)+1;
62949 gv->name = (char *)malloc(size);
62951 strncpy(gv->name,name,size);
62952 gv->get_attr = get_attr;
62953 gv->set_attr = set_attr;
62954 gv->next = v->vars;
62959 static __attribute__ ((__unused__)) PyObject *
62960 SWIG_globals(void) {
62961 static PyObject *_SWIG_globals = 0;
62962 if (!_SWIG_globals) _SWIG_globals = SWIG_Python_newvarlink();
62963 return _SWIG_globals;
62965 static __attribute__ ((__unused__)) void
62966 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
62969 for (i = 0; constants[i].type; ++i) {
62970 switch(constants[i].type) {
62972 obj = SWIG_Python_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype, 0);
62975 obj = SWIG_Python_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
62982 PyDict_SetItemString(d, constants[i].name, obj);
62983 if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj))));
62987 static __attribute__ ((__unused__)) void
62988 SWIG_Python_FixMethods(PyMethodDef *methods,
62989 swig_const_info *const_table,
62990 swig_type_info **types,
62991 swig_type_info **types_initial) {
62993 for (i = 0; methods[i].ml_name; ++i) {
62994 const char *c = methods[i].ml_doc;
62995 if (c && (c = strstr(c, "swig_ptr: "))) {
62997 swig_const_info *ci = 0;
62998 const char *name = c + 10;
62999 for (j = 0; const_table[j].type; ++j) {
63000 if (strncmp(const_table[j].name, name,
63001 strlen(const_table[j].name)) == 0) {
63002 ci = &(const_table[j]);
63007 size_t shift = (ci->ptype) - types;
63008 swig_type_info *ty = types_initial[shift];
63009 size_t ldoc = (c - methods[i].ml_doc);
63010 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
63011 char *ndoc = (char*)malloc(ldoc + lptr + 10);
63014 void *ptr = (ci->type == 4) ? ci->pvalue : 0;
63016 strncpy(buff, methods[i].ml_doc, ldoc);
63018 strncpy(buff, "swig_ptr: ", 10);
63020 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
63021 methods[i].ml_doc = ndoc;
63030 __attribute__ ((visibility("default")))
63032 init_xapian(void) {
63034 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
63035 m = Py_InitModule4_64((char *) "_xapian", SwigMethods, (char *)__null, (PyObject *)__null, 1013);
63036 d = PyModule_GetDict(m);
63037 SWIG_InitializeModule(0);
63038 SWIG_Python_InstallConstants(d, swig_const_table);
63039 SWIG_Python_SetConstant(d, "BAD_VALUENO",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(Xapian::BAD_VALUENO)));
63040 SWIG_Python_SetConstant(d, "MSET_DID",SWIG_From_int(static_cast< int >(0)));
63041 SWIG_Python_SetConstant(d, "MSET_WT",SWIG_From_int(static_cast< int >(1)));
63042 SWIG_Python_SetConstant(d, "MSET_RANK",SWIG_From_int(static_cast< int >(2)));
63043 SWIG_Python_SetConstant(d, "MSET_PERCENT",SWIG_From_int(static_cast< int >(3)));
63044 SWIG_Python_SetConstant(d, "MSET_DOCUMENT",SWIG_From_int(static_cast< int >(4)));
63045 SWIG_Python_SetConstant(d, "ESET_TNAME",SWIG_From_int(static_cast< int >(0)));
63046 SWIG_Python_SetConstant(d, "ESET_WT",SWIG_From_int(static_cast< int >(1)));
63047 SWIG_Python_SetConstant(d, "Enquire_ASCENDING",SWIG_From_int(static_cast< int >(Xapian::Enquire::ASCENDING)));
63048 SWIG_Python_SetConstant(d, "Enquire_DESCENDING",SWIG_From_int(static_cast< int >(Xapian::Enquire::DESCENDING)));
63049 SWIG_Python_SetConstant(d, "Enquire_DONT_CARE",SWIG_From_int(static_cast< int >(Xapian::Enquire::DONT_CARE)));
63050 SWIG_Python_SetConstant(d, "Enquire_INCLUDE_QUERY_TERMS",SWIG_From_int(static_cast< int >(Xapian::Enquire::INCLUDE_QUERY_TERMS)));
63051 SWIG_Python_SetConstant(d, "Enquire_USE_EXACT_TERMFREQ",SWIG_From_int(static_cast< int >(Xapian::Enquire::USE_EXACT_TERMFREQ)));
63052 SWIG_Python_SetConstant(d, "DB_CREATE_OR_OPEN",SWIG_From_int(static_cast< int >(Xapian::DB_CREATE_OR_OPEN)));
63053 SWIG_Python_SetConstant(d, "DB_CREATE",SWIG_From_int(static_cast< int >(Xapian::DB_CREATE)));
63054 SWIG_Python_SetConstant(d, "DB_CREATE_OR_OVERWRITE",SWIG_From_int(static_cast< int >(Xapian::DB_CREATE_OR_OVERWRITE)));
63055 SWIG_Python_SetConstant(d, "DB_OPEN",SWIG_From_int(static_cast< int >(Xapian::DB_OPEN)));
63056 SWIG_Python_SetConstant(d, "Query_OP_AND",SWIG_From_int(static_cast< int >(Xapian::Query::OP_AND)));
63057 SWIG_Python_SetConstant(d, "Query_OP_OR",SWIG_From_int(static_cast< int >(Xapian::Query::OP_OR)));
63058 SWIG_Python_SetConstant(d, "Query_OP_AND_NOT",SWIG_From_int(static_cast< int >(Xapian::Query::OP_AND_NOT)));
63059 SWIG_Python_SetConstant(d, "Query_OP_XOR",SWIG_From_int(static_cast< int >(Xapian::Query::OP_XOR)));
63060 SWIG_Python_SetConstant(d, "Query_OP_AND_MAYBE",SWIG_From_int(static_cast< int >(Xapian::Query::OP_AND_MAYBE)));
63061 SWIG_Python_SetConstant(d, "Query_OP_FILTER",SWIG_From_int(static_cast< int >(Xapian::Query::OP_FILTER)));
63062 SWIG_Python_SetConstant(d, "Query_OP_NEAR",SWIG_From_int(static_cast< int >(Xapian::Query::OP_NEAR)));
63063 SWIG_Python_SetConstant(d, "Query_OP_PHRASE",SWIG_From_int(static_cast< int >(Xapian::Query::OP_PHRASE)));
63064 SWIG_Python_SetConstant(d, "Query_OP_VALUE_RANGE",SWIG_From_int(static_cast< int >(Xapian::Query::OP_VALUE_RANGE)));
63065 SWIG_Python_SetConstant(d, "Query_OP_SCALE_WEIGHT",SWIG_From_int(static_cast< int >(Xapian::Query::OP_SCALE_WEIGHT)));
63066 SWIG_Python_SetConstant(d, "Query_OP_ELITE_SET",SWIG_From_int(static_cast< int >(Xapian::Query::OP_ELITE_SET)));
63067 SWIG_Python_SetConstant(d, "Query_OP_VALUE_GE",SWIG_From_int(static_cast< int >(Xapian::Query::OP_VALUE_GE)));
63068 SWIG_Python_SetConstant(d, "Query_OP_VALUE_LE",SWIG_From_int(static_cast< int >(Xapian::Query::OP_VALUE_LE)));
63069 SWIG_Python_SetConstant(d, "Query_OP_SYNONYM",SWIG_From_int(static_cast< int >(Xapian::Query::OP_SYNONYM)));
63070 SWIG_Python_SetConstant(d, "QueryParser_FLAG_BOOLEAN",SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_BOOLEAN)));
63071 SWIG_Python_SetConstant(d, "QueryParser_FLAG_PHRASE",SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_PHRASE)));
63072 SWIG_Python_SetConstant(d, "QueryParser_FLAG_LOVEHATE",SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_LOVEHATE)));
63073 SWIG_Python_SetConstant(d, "QueryParser_FLAG_BOOLEAN_ANY_CASE",SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_BOOLEAN_ANY_CASE)));
63074 SWIG_Python_SetConstant(d, "QueryParser_FLAG_WILDCARD",SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_WILDCARD)));
63075 SWIG_Python_SetConstant(d, "QueryParser_FLAG_PURE_NOT",SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_PURE_NOT)));
63076 SWIG_Python_SetConstant(d, "QueryParser_FLAG_PARTIAL",SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_PARTIAL)));
63077 SWIG_Python_SetConstant(d, "QueryParser_FLAG_SPELLING_CORRECTION",SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_SPELLING_CORRECTION)));
63078 SWIG_Python_SetConstant(d, "QueryParser_FLAG_SYNONYM",SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_SYNONYM)));
63079 SWIG_Python_SetConstant(d, "QueryParser_FLAG_AUTO_SYNONYMS",SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_AUTO_SYNONYMS)));
63080 SWIG_Python_SetConstant(d, "QueryParser_FLAG_AUTO_MULTIWORD_SYNONYMS",SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_AUTO_MULTIWORD_SYNONYMS)));
63081 SWIG_Python_SetConstant(d, "QueryParser_FLAG_DEFAULT",SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_DEFAULT)));
63082 SWIG_Python_SetConstant(d, "QueryParser_STEM_NONE",SWIG_From_int(static_cast< int >(Xapian::QueryParser::STEM_NONE)));
63083 SWIG_Python_SetConstant(d, "QueryParser_STEM_SOME",SWIG_From_int(static_cast< int >(Xapian::QueryParser::STEM_SOME)));
63084 SWIG_Python_SetConstant(d, "QueryParser_STEM_ALL",SWIG_From_int(static_cast< int >(Xapian::QueryParser::STEM_ALL)));
63085 SWIG_Python_SetConstant(d, "TermGenerator_FLAG_SPELLING",SWIG_From_int(static_cast< int >(Xapian::TermGenerator::FLAG_SPELLING)));
63086 SWIG_Python_SetConstant(d, "Compactor_STANDARD",SWIG_From_int(static_cast< int >(Xapian::Compactor::STANDARD)));
63087 SWIG_Python_SetConstant(d, "Compactor_FULL",SWIG_From_int(static_cast< int >(Xapian::Compactor::FULL)));
63088 SWIG_Python_SetConstant(d, "Compactor_FULLER",SWIG_From_int(static_cast< int >(Xapian::Compactor::FULLER)));
63089 PyEval_InitThreads();