File: classXapian_1_1ValuePostingSource.html

package info (click to toggle)
xapian-core 1.4.3-2%2Bdeb9u3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 21,412 kB
  • sloc: cpp: 113,868; ansic: 8,723; sh: 4,433; perl: 836; makefile: 566; tcl: 317; python: 40
file content (982 lines) | stat: -rw-r--r-- 75,524 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Xapian: API Documentation: Xapian::ValuePostingSource Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#ffffff">
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceXapian.html">Xapian</a></li><li class="navelem"><a class="el" href="classXapian_1_1ValuePostingSource.html">ValuePostingSource</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="classXapian_1_1ValuePostingSource-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Xapian::ValuePostingSource Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A posting source which generates weights from a value slot.  
 <a href="classXapian_1_1ValuePostingSource.html#details">More...</a></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for Xapian::ValuePostingSource:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classXapian_1_1ValuePostingSource__inherit__graph.png" border="0" usemap="#Xapian_1_1ValuePostingSource_inherit__map" alt="Inheritance graph"/></div>
<map name="Xapian_1_1ValuePostingSource_inherit__map" id="Xapian_1_1ValuePostingSource_inherit__map">
<area shape="rect" id="node4" href="classXapian_1_1LatLongDistancePostingSource.html" title="Posting source which returns a weight based on geospatial distance. " alt="" coords="623,5,835,47"/>
<area shape="rect" id="node5" href="classXapian_1_1ValueMapPostingSource.html" title="A posting source which looks up weights in a map using values as the key. " alt="" coords="623,71,836,98"/>
<area shape="rect" id="node6" href="classXapian_1_1ValueWeightPostingSource.html" title="A posting source which reads weights from a value slot. " alt="" coords="635,123,823,164"/>
<area shape="rect" id="node2" href="classXapian_1_1PostingSource.html" title="Base class which provides an &quot;external&quot; source of postings. " alt="" coords="184,71,339,98"/>
<area shape="rect" id="node7" href="classXapian_1_1DecreasingValueWeightPostingSource.html" title="Read weights from a value which is known to decrease as docid increases. " alt="" coords="884,123,1095,164"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:accbffc6b7f573e9a41fc234a410a1ec3"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1ValuePostingSource.html#accbffc6b7f573e9a41fc234a410a1ec3">ValuePostingSource</a> (<a class="el" href="namespaceXapian.html#a94a899651fa920c72ffa9635bde630ea">Xapian::valueno</a> slot_)</td></tr>
<tr class="memdesc:accbffc6b7f573e9a41fc234a410a1ec3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct a <a class="el" href="classXapian_1_1ValuePostingSource.html" title="A posting source which generates weights from a value slot. ">ValuePostingSource</a>.  <a href="#accbffc6b7f573e9a41fc234a410a1ec3">More...</a><br /></td></tr>
<tr class="separator:accbffc6b7f573e9a41fc234a410a1ec3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa952a93fa1c80f8f8ee5b7e59b87d147"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceXapian.html#a9bbd62a8e56ea4619e4e59afb32aced6">Xapian::doccount</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1ValuePostingSource.html#aa952a93fa1c80f8f8ee5b7e59b87d147">get_termfreq_min</a> () const</td></tr>
<tr class="memdesc:aa952a93fa1c80f8f8ee5b7e59b87d147"><td class="mdescLeft">&#160;</td><td class="mdescRight">A lower bound on the number of documents this object can return.  <a href="#aa952a93fa1c80f8f8ee5b7e59b87d147">More...</a><br /></td></tr>
<tr class="separator:aa952a93fa1c80f8f8ee5b7e59b87d147"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a518d58643220e417e9affda5170b1096"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceXapian.html#a9bbd62a8e56ea4619e4e59afb32aced6">Xapian::doccount</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1ValuePostingSource.html#a518d58643220e417e9affda5170b1096">get_termfreq_est</a> () const</td></tr>
<tr class="memdesc:a518d58643220e417e9affda5170b1096"><td class="mdescLeft">&#160;</td><td class="mdescRight">An estimate of the number of documents this object can return.  <a href="#a518d58643220e417e9affda5170b1096">More...</a><br /></td></tr>
<tr class="separator:a518d58643220e417e9affda5170b1096"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5264a143aef0e447260adc70ce225a43"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceXapian.html#a9bbd62a8e56ea4619e4e59afb32aced6">Xapian::doccount</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1ValuePostingSource.html#a5264a143aef0e447260adc70ce225a43">get_termfreq_max</a> () const</td></tr>
<tr class="memdesc:a5264a143aef0e447260adc70ce225a43"><td class="mdescLeft">&#160;</td><td class="mdescRight">An upper bound on the number of documents this object can return.  <a href="#a5264a143aef0e447260adc70ce225a43">More...</a><br /></td></tr>
<tr class="separator:a5264a143aef0e447260adc70ce225a43"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a560f89bad687164dd139f9025d2bb1db"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1ValuePostingSource.html#a560f89bad687164dd139f9025d2bb1db">next</a> (double min_wt)</td></tr>
<tr class="memdesc:a560f89bad687164dd139f9025d2bb1db"><td class="mdescLeft">&#160;</td><td class="mdescRight">Advance the current position to the next matching document.  <a href="#a560f89bad687164dd139f9025d2bb1db">More...</a><br /></td></tr>
<tr class="separator:a560f89bad687164dd139f9025d2bb1db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a27b5b12089a98975ad29bbcd0922556e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1ValuePostingSource.html#a27b5b12089a98975ad29bbcd0922556e">skip_to</a> (<a class="el" href="namespaceXapian.html#ad8f7a78bc920532b7d2baa3281b33e2f">Xapian::docid</a> min_docid, double min_wt)</td></tr>
<tr class="memdesc:a27b5b12089a98975ad29bbcd0922556e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Advance to the specified docid.  <a href="#a27b5b12089a98975ad29bbcd0922556e">More...</a><br /></td></tr>
<tr class="separator:a27b5b12089a98975ad29bbcd0922556e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab222fd63a80cb7c329b8ab4cc27405b8"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1ValuePostingSource.html#ab222fd63a80cb7c329b8ab4cc27405b8">check</a> (<a class="el" href="namespaceXapian.html#ad8f7a78bc920532b7d2baa3281b33e2f">Xapian::docid</a> min_docid, double min_wt)</td></tr>
<tr class="memdesc:ab222fd63a80cb7c329b8ab4cc27405b8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check if the specified docid occurs.  <a href="#ab222fd63a80cb7c329b8ab4cc27405b8">More...</a><br /></td></tr>
<tr class="separator:ab222fd63a80cb7c329b8ab4cc27405b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a53d851ba1e75670c28c9508921273dc0"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1ValuePostingSource.html#a53d851ba1e75670c28c9508921273dc0">at_end</a> () const</td></tr>
<tr class="memdesc:a53d851ba1e75670c28c9508921273dc0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return true if the current position is past the last entry in this list.  <a href="#a53d851ba1e75670c28c9508921273dc0">More...</a><br /></td></tr>
<tr class="separator:a53d851ba1e75670c28c9508921273dc0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad9a4ca847b1a444a42f76ac7b1c27752"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceXapian.html#ad8f7a78bc920532b7d2baa3281b33e2f">Xapian::docid</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1ValuePostingSource.html#ad9a4ca847b1a444a42f76ac7b1c27752">get_docid</a> () const</td></tr>
<tr class="memdesc:ad9a4ca847b1a444a42f76ac7b1c27752"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the current docid.  <a href="#ad9a4ca847b1a444a42f76ac7b1c27752">More...</a><br /></td></tr>
<tr class="separator:ad9a4ca847b1a444a42f76ac7b1c27752"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a764328b2a7085e24393a94eb1d2b91e0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1ValuePostingSource.html#a764328b2a7085e24393a94eb1d2b91e0">init</a> (const <a class="el" href="classXapian_1_1Database.html">Database</a> &amp;db_)</td></tr>
<tr class="memdesc:a764328b2a7085e24393a94eb1d2b91e0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set this <a class="el" href="classXapian_1_1PostingSource.html" title="Base class which provides an &quot;external&quot; source of postings. ">PostingSource</a> to the start of the list of postings.  <a href="#a764328b2a7085e24393a94eb1d2b91e0">More...</a><br /></td></tr>
<tr class="separator:a764328b2a7085e24393a94eb1d2b91e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6d4b124a53e83bfd2bcd3a5322273f57"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classXapian_1_1Database.html">Xapian::Database</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1ValuePostingSource.html#a6d4b124a53e83bfd2bcd3a5322273f57">get_database</a> () const</td></tr>
<tr class="memdesc:a6d4b124a53e83bfd2bcd3a5322273f57"><td class="mdescLeft">&#160;</td><td class="mdescRight">The database we're reading values from.  <a href="#a6d4b124a53e83bfd2bcd3a5322273f57">More...</a><br /></td></tr>
<tr class="separator:a6d4b124a53e83bfd2bcd3a5322273f57"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae5245e693baae3871fc289af32637f15"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceXapian.html#a94a899651fa920c72ffa9635bde630ea">Xapian::valueno</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1ValuePostingSource.html#ae5245e693baae3871fc289af32637f15">get_slot</a> () const</td></tr>
<tr class="memdesc:ae5245e693baae3871fc289af32637f15"><td class="mdescLeft">&#160;</td><td class="mdescRight">The slot we're reading values from.  <a href="#ae5245e693baae3871fc289af32637f15">More...</a><br /></td></tr>
<tr class="separator:ae5245e693baae3871fc289af32637f15"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad64852538c6a36e3099ff75fe8d74ab3"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1ValuePostingSource.html#ad64852538c6a36e3099ff75fe8d74ab3">get_value</a> () const</td></tr>
<tr class="memdesc:ad64852538c6a36e3099ff75fe8d74ab3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read current value.  <a href="#ad64852538c6a36e3099ff75fe8d74ab3">More...</a><br /></td></tr>
<tr class="separator:ad64852538c6a36e3099ff75fe8d74ab3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeae75a9b595b361b3e6c28be23048014"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1ValuePostingSource.html#aeae75a9b595b361b3e6c28be23048014">done</a> ()</td></tr>
<tr class="memdesc:aeae75a9b595b361b3e6c28be23048014"><td class="mdescLeft">&#160;</td><td class="mdescRight">End the iteration.  <a href="#aeae75a9b595b361b3e6c28be23048014">More...</a><br /></td></tr>
<tr class="separator:aeae75a9b595b361b3e6c28be23048014"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8bb798e2c4cbc9184befb750410e7398"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1ValuePostingSource.html#a8bb798e2c4cbc9184befb750410e7398">get_started</a> () const</td></tr>
<tr class="memdesc:a8bb798e2c4cbc9184befb750410e7398"><td class="mdescLeft">&#160;</td><td class="mdescRight">Flag indicating if we've started (true if we have).  <a href="#a8bb798e2c4cbc9184befb750410e7398">More...</a><br /></td></tr>
<tr class="separator:a8bb798e2c4cbc9184befb750410e7398"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a32e275c815ab07a5e2c2fb02da9f1928"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1ValuePostingSource.html#a32e275c815ab07a5e2c2fb02da9f1928">set_termfreq_min</a> (<a class="el" href="namespaceXapian.html#a9bbd62a8e56ea4619e4e59afb32aced6">Xapian::doccount</a> termfreq_min_)</td></tr>
<tr class="memdesc:a32e275c815ab07a5e2c2fb02da9f1928"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set a lower bound on the term frequency.  <a href="#a32e275c815ab07a5e2c2fb02da9f1928">More...</a><br /></td></tr>
<tr class="separator:a32e275c815ab07a5e2c2fb02da9f1928"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7851aeed5774dbdd6b5692828730e3fc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1ValuePostingSource.html#a7851aeed5774dbdd6b5692828730e3fc">set_termfreq_est</a> (<a class="el" href="namespaceXapian.html#a9bbd62a8e56ea4619e4e59afb32aced6">Xapian::doccount</a> termfreq_est_)</td></tr>
<tr class="memdesc:a7851aeed5774dbdd6b5692828730e3fc"><td class="mdescLeft">&#160;</td><td class="mdescRight">An estimate of the term frequency.  <a href="#a7851aeed5774dbdd6b5692828730e3fc">More...</a><br /></td></tr>
<tr class="separator:a7851aeed5774dbdd6b5692828730e3fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acfdc1178868ae3600c3aeb291c450b32"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1ValuePostingSource.html#acfdc1178868ae3600c3aeb291c450b32">set_termfreq_max</a> (<a class="el" href="namespaceXapian.html#a9bbd62a8e56ea4619e4e59afb32aced6">Xapian::doccount</a> termfreq_max_)</td></tr>
<tr class="memdesc:acfdc1178868ae3600c3aeb291c450b32"><td class="mdescLeft">&#160;</td><td class="mdescRight">An upper bound on the term frequency.  <a href="#acfdc1178868ae3600c3aeb291c450b32">More...</a><br /></td></tr>
<tr class="separator:acfdc1178868ae3600c3aeb291c450b32"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classXapian_1_1PostingSource"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classXapian_1_1PostingSource')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classXapian_1_1PostingSource.html">Xapian::PostingSource</a></td></tr>
<tr class="memitem:a82e85d6113d9c8e72cbbf4b3362f3fd6 inherit pub_methods_classXapian_1_1PostingSource"><td class="memItemLeft" align="right" valign="top"><a id="a82e85d6113d9c8e72cbbf4b3362f3fd6"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1PostingSource.html#a82e85d6113d9c8e72cbbf4b3362f3fd6">PostingSource</a> ()</td></tr>
<tr class="memdesc:a82e85d6113d9c8e72cbbf4b3362f3fd6 inherit pub_methods_classXapian_1_1PostingSource"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allow subclasses to be instantiated. <br /></td></tr>
<tr class="separator:a82e85d6113d9c8e72cbbf4b3362f3fd6 inherit pub_methods_classXapian_1_1PostingSource"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7201a6a189625b17f501561dcc3ea8a1 inherit pub_methods_classXapian_1_1PostingSource"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1PostingSource.html#a7201a6a189625b17f501561dcc3ea8a1">set_maxweight</a> (double max_weight)</td></tr>
<tr class="memdesc:a7201a6a189625b17f501561dcc3ea8a1 inherit pub_methods_classXapian_1_1PostingSource"><td class="mdescLeft">&#160;</td><td class="mdescRight">Specify an upper bound on what <a class="el" href="classXapian_1_1PostingSource.html#a3922b7e3572eea6d3e39fc26cc7fed7a" title="Return the weight contribution for the current document. ">get_weight()</a> will return from now on.  <a href="classXapian_1_1PostingSource.html#a7201a6a189625b17f501561dcc3ea8a1">More...</a><br /></td></tr>
<tr class="separator:a7201a6a189625b17f501561dcc3ea8a1 inherit pub_methods_classXapian_1_1PostingSource"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1a447843283a8ef88b3d4662c97c87b4 inherit pub_methods_classXapian_1_1PostingSource"><td class="memItemLeft" align="right" valign="top"><a id="a1a447843283a8ef88b3d4662c97c87b4"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1PostingSource.html#a1a447843283a8ef88b3d4662c97c87b4">get_maxweight</a> () const</td></tr>
<tr class="memdesc:a1a447843283a8ef88b3d4662c97c87b4 inherit pub_methods_classXapian_1_1PostingSource"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the currently set upper bound on what <a class="el" href="classXapian_1_1PostingSource.html#a3922b7e3572eea6d3e39fc26cc7fed7a" title="Return the weight contribution for the current document. ">get_weight()</a> can return. <br /></td></tr>
<tr class="separator:a1a447843283a8ef88b3d4662c97c87b4 inherit pub_methods_classXapian_1_1PostingSource"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3922b7e3572eea6d3e39fc26cc7fed7a inherit pub_methods_classXapian_1_1PostingSource"><td class="memItemLeft" align="right" valign="top">virtual double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1PostingSource.html#a3922b7e3572eea6d3e39fc26cc7fed7a">get_weight</a> () const</td></tr>
<tr class="memdesc:a3922b7e3572eea6d3e39fc26cc7fed7a inherit pub_methods_classXapian_1_1PostingSource"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the weight contribution for the current document.  <a href="classXapian_1_1PostingSource.html#a3922b7e3572eea6d3e39fc26cc7fed7a">More...</a><br /></td></tr>
<tr class="separator:a3922b7e3572eea6d3e39fc26cc7fed7a inherit pub_methods_classXapian_1_1PostingSource"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab41013bf3d3dc7d433430a69466b8582 inherit pub_methods_classXapian_1_1PostingSource"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classXapian_1_1PostingSource.html">PostingSource</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1PostingSource.html#ab41013bf3d3dc7d433430a69466b8582">clone</a> () const</td></tr>
<tr class="memdesc:ab41013bf3d3dc7d433430a69466b8582 inherit pub_methods_classXapian_1_1PostingSource"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clone the posting source.  <a href="classXapian_1_1PostingSource.html#ab41013bf3d3dc7d433430a69466b8582">More...</a><br /></td></tr>
<tr class="separator:ab41013bf3d3dc7d433430a69466b8582 inherit pub_methods_classXapian_1_1PostingSource"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6cbbe96a7bb0d2a8c9de3d5d8b99675d inherit pub_methods_classXapian_1_1PostingSource"><td class="memItemLeft" align="right" valign="top">virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1PostingSource.html#a6cbbe96a7bb0d2a8c9de3d5d8b99675d">name</a> () const</td></tr>
<tr class="memdesc:a6cbbe96a7bb0d2a8c9de3d5d8b99675d inherit pub_methods_classXapian_1_1PostingSource"><td class="mdescLeft">&#160;</td><td class="mdescRight">Name of the posting source class.  <a href="classXapian_1_1PostingSource.html#a6cbbe96a7bb0d2a8c9de3d5d8b99675d">More...</a><br /></td></tr>
<tr class="separator:a6cbbe96a7bb0d2a8c9de3d5d8b99675d inherit pub_methods_classXapian_1_1PostingSource"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ad6b98d6b5e79a37b7a1d7874725894 inherit pub_methods_classXapian_1_1PostingSource"><td class="memItemLeft" align="right" valign="top">virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1PostingSource.html#a0ad6b98d6b5e79a37b7a1d7874725894">serialise</a> () const</td></tr>
<tr class="memdesc:a0ad6b98d6b5e79a37b7a1d7874725894 inherit pub_methods_classXapian_1_1PostingSource"><td class="mdescLeft">&#160;</td><td class="mdescRight">Serialise object parameters into a string.  <a href="classXapian_1_1PostingSource.html#a0ad6b98d6b5e79a37b7a1d7874725894">More...</a><br /></td></tr>
<tr class="separator:a0ad6b98d6b5e79a37b7a1d7874725894 inherit pub_methods_classXapian_1_1PostingSource"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6aa8602abb801a2a366a6328d36ba4a9 inherit pub_methods_classXapian_1_1PostingSource"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classXapian_1_1PostingSource.html">PostingSource</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1PostingSource.html#a6aa8602abb801a2a366a6328d36ba4a9">unserialise</a> (const std::string &amp;serialised) const</td></tr>
<tr class="memdesc:a6aa8602abb801a2a366a6328d36ba4a9 inherit pub_methods_classXapian_1_1PostingSource"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create object given string serialisation returned by <a class="el" href="classXapian_1_1PostingSource.html#a0ad6b98d6b5e79a37b7a1d7874725894" title="Serialise object parameters into a string. ">serialise()</a>.  <a href="classXapian_1_1PostingSource.html#a6aa8602abb801a2a366a6328d36ba4a9">More...</a><br /></td></tr>
<tr class="separator:a6aa8602abb801a2a366a6328d36ba4a9 inherit pub_methods_classXapian_1_1PostingSource"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4cadf2ff56f9e456e1f5a6b684cdb128 inherit pub_methods_classXapian_1_1PostingSource"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classXapian_1_1PostingSource.html">PostingSource</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1PostingSource.html#a4cadf2ff56f9e456e1f5a6b684cdb128">unserialise_with_registry</a> (const std::string &amp;serialised, const <a class="el" href="classXapian_1_1Registry.html">Registry</a> &amp;registry) const</td></tr>
<tr class="memdesc:a4cadf2ff56f9e456e1f5a6b684cdb128 inherit pub_methods_classXapian_1_1PostingSource"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create object given string serialisation returned by <a class="el" href="classXapian_1_1PostingSource.html#a0ad6b98d6b5e79a37b7a1d7874725894" title="Serialise object parameters into a string. ">serialise()</a>.  <a href="classXapian_1_1PostingSource.html#a4cadf2ff56f9e456e1f5a6b684cdb128">More...</a><br /></td></tr>
<tr class="separator:a4cadf2ff56f9e456e1f5a6b684cdb128 inherit pub_methods_classXapian_1_1PostingSource"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8a619b261e7d9db7cb7ccef9869afac8 inherit pub_methods_classXapian_1_1PostingSource"><td class="memItemLeft" align="right" valign="top">virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1PostingSource.html#a8a619b261e7d9db7cb7ccef9869afac8">get_description</a> () const</td></tr>
<tr class="memdesc:a8a619b261e7d9db7cb7ccef9869afac8 inherit pub_methods_classXapian_1_1PostingSource"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return a string describing this object.  <a href="classXapian_1_1PostingSource.html#a8a619b261e7d9db7cb7ccef9869afac8">More...</a><br /></td></tr>
<tr class="separator:a8a619b261e7d9db7cb7ccef9869afac8 inherit pub_methods_classXapian_1_1PostingSource"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a24d51135b279b59bccb37d42bc2062f1 inherit pub_methods_classXapian_1_1PostingSource"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classXapian_1_1PostingSource.html">PostingSource</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1PostingSource.html#a24d51135b279b59bccb37d42bc2062f1">release</a> ()</td></tr>
<tr class="memdesc:a24d51135b279b59bccb37d42bc2062f1 inherit pub_methods_classXapian_1_1PostingSource"><td class="mdescLeft">&#160;</td><td class="mdescRight">Start reference counting this object.  <a href="classXapian_1_1PostingSource.html#a24d51135b279b59bccb37d42bc2062f1">More...</a><br /></td></tr>
<tr class="separator:a24d51135b279b59bccb37d42bc2062f1 inherit pub_methods_classXapian_1_1PostingSource"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a15a62840bd29a630b8641722c2b8cbf8 inherit pub_methods_classXapian_1_1PostingSource"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classXapian_1_1PostingSource.html">PostingSource</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1PostingSource.html#a15a62840bd29a630b8641722c2b8cbf8">release</a> () const</td></tr>
<tr class="memdesc:a15a62840bd29a630b8641722c2b8cbf8 inherit pub_methods_classXapian_1_1PostingSource"><td class="mdescLeft">&#160;</td><td class="mdescRight">Start reference counting this object.  <a href="classXapian_1_1PostingSource.html#a15a62840bd29a630b8641722c2b8cbf8">More...</a><br /></td></tr>
<tr class="separator:a15a62840bd29a630b8641722c2b8cbf8 inherit pub_methods_classXapian_1_1PostingSource"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a3bbef981fa3fac528dfee36248e55f44"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classXapian_1_1Database.html">Xapian::Database</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1ValuePostingSource.html#a3bbef981fa3fac528dfee36248e55f44">db</a></td></tr>
<tr class="memdesc:a3bbef981fa3fac528dfee36248e55f44"><td class="mdescLeft">&#160;</td><td class="mdescRight">The database we're reading values from.  <a href="#a3bbef981fa3fac528dfee36248e55f44">More...</a><br /></td></tr>
<tr class="separator:a3bbef981fa3fac528dfee36248e55f44"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac6102f72ea311d470d083859838bf9d8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceXapian.html#a94a899651fa920c72ffa9635bde630ea">Xapian::valueno</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1ValuePostingSource.html#ac6102f72ea311d470d083859838bf9d8">slot</a></td></tr>
<tr class="memdesc:ac6102f72ea311d470d083859838bf9d8"><td class="mdescLeft">&#160;</td><td class="mdescRight">The slot we're reading values from.  <a href="#ac6102f72ea311d470d083859838bf9d8">More...</a><br /></td></tr>
<tr class="separator:ac6102f72ea311d470d083859838bf9d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a650c27f6c7891bb2e0f4d96c6f743e04"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classXapian_1_1ValueIterator.html">Xapian::ValueIterator</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1ValuePostingSource.html#a650c27f6c7891bb2e0f4d96c6f743e04">value_it</a></td></tr>
<tr class="memdesc:a650c27f6c7891bb2e0f4d96c6f743e04"><td class="mdescLeft">&#160;</td><td class="mdescRight">Value stream iterator.  <a href="#a650c27f6c7891bb2e0f4d96c6f743e04">More...</a><br /></td></tr>
<tr class="separator:a650c27f6c7891bb2e0f4d96c6f743e04"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adc20089597b9ff9993526bd95d2fb653"><td class="memItemLeft" align="right" valign="top">bool &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1ValuePostingSource.html#adc20089597b9ff9993526bd95d2fb653">started</a></td></tr>
<tr class="memdesc:adc20089597b9ff9993526bd95d2fb653"><td class="mdescLeft">&#160;</td><td class="mdescRight">Flag indicating if we've started (true if we have).  <a href="#adc20089597b9ff9993526bd95d2fb653">More...</a><br /></td></tr>
<tr class="separator:adc20089597b9ff9993526bd95d2fb653"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad04e70cdc505898beef5911130322746"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceXapian.html#a9bbd62a8e56ea4619e4e59afb32aced6">Xapian::doccount</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1ValuePostingSource.html#ad04e70cdc505898beef5911130322746">termfreq_min</a></td></tr>
<tr class="memdesc:ad04e70cdc505898beef5911130322746"><td class="mdescLeft">&#160;</td><td class="mdescRight">A lower bound on the term frequency.  <a href="#ad04e70cdc505898beef5911130322746">More...</a><br /></td></tr>
<tr class="separator:ad04e70cdc505898beef5911130322746"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3bcadb7f9aace4bf1b577b4318451df2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceXapian.html#a9bbd62a8e56ea4619e4e59afb32aced6">Xapian::doccount</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1ValuePostingSource.html#a3bcadb7f9aace4bf1b577b4318451df2">termfreq_est</a></td></tr>
<tr class="memdesc:a3bcadb7f9aace4bf1b577b4318451df2"><td class="mdescLeft">&#160;</td><td class="mdescRight">An estimate of the term frequency.  <a href="#a3bcadb7f9aace4bf1b577b4318451df2">More...</a><br /></td></tr>
<tr class="separator:a3bcadb7f9aace4bf1b577b4318451df2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a897f7b589182ce1ca88ed027570b2d4e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceXapian.html#a9bbd62a8e56ea4619e4e59afb32aced6">Xapian::doccount</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1ValuePostingSource.html#a897f7b589182ce1ca88ed027570b2d4e">termfreq_max</a></td></tr>
<tr class="memdesc:a897f7b589182ce1ca88ed027570b2d4e"><td class="mdescLeft">&#160;</td><td class="mdescRight">An upper bound on the term frequency.  <a href="#a897f7b589182ce1ca88ed027570b2d4e">More...</a><br /></td></tr>
<tr class="separator:a897f7b589182ce1ca88ed027570b2d4e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A posting source which generates weights from a value slot. </p>
<p>This is a base class for classes which generate weights using values stored in the specified slot. For example, <a class="el" href="classXapian_1_1ValueWeightPostingSource.html" title="A posting source which reads weights from a value slot. ">ValueWeightPostingSource</a> uses sortable_unserialise to convert values directly to weights.</p>
<p>The upper bound on the weight returned is set to DBL_MAX. Subclasses should call <a class="el" href="classXapian_1_1PostingSource.html#a7201a6a189625b17f501561dcc3ea8a1" title="Specify an upper bound on what get_weight() will return from now on. ">set_maxweight()</a> in their <a class="el" href="classXapian_1_1ValuePostingSource.html#a764328b2a7085e24393a94eb1d2b91e0" title="Set this PostingSource to the start of the list of postings. ">init()</a> methods after calling <a class="el" href="classXapian_1_1ValuePostingSource.html#a764328b2a7085e24393a94eb1d2b91e0" title="Set this PostingSource to the start of the list of postings. ">ValuePostingSource::init()</a> if they know a tighter bound on the weight. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="accbffc6b7f573e9a41fc234a410a1ec3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#accbffc6b7f573e9a41fc234a410a1ec3">&#9670;&nbsp;</a></span>ValuePostingSource()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Xapian::ValuePostingSource::ValuePostingSource </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceXapian.html#a94a899651fa920c72ffa9635bde630ea">Xapian::valueno</a>&#160;</td>
          <td class="paramname"><em>slot_</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Construct a <a class="el" href="classXapian_1_1ValuePostingSource.html" title="A posting source which generates weights from a value slot. ">ValuePostingSource</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">slot_</td><td>The value slot to read values from. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a53d851ba1e75670c28c9508921273dc0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a53d851ba1e75670c28c9508921273dc0">&#9670;&nbsp;</a></span>at_end()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool Xapian::ValuePostingSource::at_end </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Return true if the current position is past the last entry in this list. </p>
<p>At least one of <em><a class="el" href="classXapian_1_1ValuePostingSource.html#a560f89bad687164dd139f9025d2bb1db" title="Advance the current position to the next matching document. ">next()</a></em>, <em><a class="el" href="classXapian_1_1ValuePostingSource.html#a27b5b12089a98975ad29bbcd0922556e" title="Advance to the specified docid. ">skip_to()</a></em> or <em><a class="el" href="classXapian_1_1ValuePostingSource.html#ab222fd63a80cb7c329b8ab4cc27405b8" title="Check if the specified docid occurs. ">check()</a></em> will be called before this method is first called. </p>

<p>Implements <a class="el" href="classXapian_1_1PostingSource.html#a98831c9fdea1599f588cd9fef51bbeb5">Xapian::PostingSource</a>.</p>

</div>
</div>
<a id="ab222fd63a80cb7c329b8ab4cc27405b8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab222fd63a80cb7c329b8ab4cc27405b8">&#9670;&nbsp;</a></span>check()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool Xapian::ValuePostingSource::check </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceXapian.html#ad8f7a78bc920532b7d2baa3281b33e2f">Xapian::docid</a>&#160;</td>
          <td class="paramname"><em>did</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>min_wt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Check if the specified docid occurs. </p>
<p>The caller is required to ensure that the specified document id <em>did</em> actually exists in the database. If it does, it must move to that document id, and return true. If it does not, it may either:</p>
<ul>
<li>return true, having moved to a definite position (including "at_end"), which must be the same position as <a class="el" href="classXapian_1_1ValuePostingSource.html#a27b5b12089a98975ad29bbcd0922556e" title="Advance to the specified docid. ">skip_to()</a> would have moved to.</li>
</ul>
<p>or</p>
<ul>
<li>return false, having moved to an "indeterminate" position, such that a subsequent call to <a class="el" href="classXapian_1_1ValuePostingSource.html#a560f89bad687164dd139f9025d2bb1db" title="Advance the current position to the next matching document. ">next()</a> or <a class="el" href="classXapian_1_1ValuePostingSource.html#a27b5b12089a98975ad29bbcd0922556e" title="Advance to the specified docid. ">skip_to()</a> will move to the next matching position after <em>did</em>.</li>
</ul>
<p>Generally, this method should act like <a class="el" href="classXapian_1_1ValuePostingSource.html#a27b5b12089a98975ad29bbcd0922556e" title="Advance to the specified docid. ">skip_to()</a> and return true if that can be done at little extra cost.</p>
<p>Otherwise it should simply check if a particular docid is present, returning true if it is, and false if it isn't.</p>
<p>The default implementation calls <a class="el" href="classXapian_1_1ValuePostingSource.html#a27b5b12089a98975ad29bbcd0922556e" title="Advance to the specified docid. ">skip_to()</a> and always returns true.</p>
<p><a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library. ">Xapian</a> will always call <a class="el" href="classXapian_1_1ValuePostingSource.html#a764328b2a7085e24393a94eb1d2b91e0" title="Set this PostingSource to the start of the list of postings. ">init()</a> on a <a class="el" href="classXapian_1_1PostingSource.html" title="Base class which provides an &quot;external&quot; source of postings. ">PostingSource</a> before calling this for the first time.</p>
<p>Note: in the case of a multi-database search, the docid specified is the docid in the single subdatabase relevant to this posting source. See the <em><a class="el" href="classXapian_1_1ValuePostingSource.html#a764328b2a7085e24393a94eb1d2b91e0" title="Set this PostingSource to the start of the list of postings. ">init()</a></em> method for details.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">did</td><td>The document id to check. </td></tr>
    <tr><td class="paramname">min_wt</td><td>The minimum weight contribution that is needed (this is just a hint which subclasses may ignore). </td></tr>
  </table>
  </dd>
</dl>

<p>Reimplemented from <a class="el" href="classXapian_1_1PostingSource.html#a964696f90b6485bf3c931ccf4546a273">Xapian::PostingSource</a>.</p>

<p>Reimplemented in <a class="el" href="classXapian_1_1DecreasingValueWeightPostingSource.html#a7e4738f89c9ff109acd8a6d6ed0e71c0">Xapian::DecreasingValueWeightPostingSource</a>.</p>

</div>
</div>
<a id="aeae75a9b595b361b3e6c28be23048014"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeae75a9b595b361b3e6c28be23048014">&#9670;&nbsp;</a></span>done()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Xapian::ValuePostingSource::done </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>End the iteration. </p>
<p>Calls to <a class="el" href="classXapian_1_1ValuePostingSource.html#a53d851ba1e75670c28c9508921273dc0" title="Return true if the current position is past the last entry in this list. ">at_end()</a> will return true after calling this method.</p>
<p>Added in 1.2.23 and 1.3.5. </p>

</div>
</div>
<a id="a6d4b124a53e83bfd2bcd3a5322273f57"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6d4b124a53e83bfd2bcd3a5322273f57">&#9670;&nbsp;</a></span>get_database()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classXapian_1_1Database.html">Xapian::Database</a> Xapian::ValuePostingSource::get_database </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The database we're reading values from. </p>
<p>Added in 1.2.23 and 1.3.5. </p>

</div>
</div>
<a id="ad9a4ca847b1a444a42f76ac7b1c27752"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad9a4ca847b1a444a42f76ac7b1c27752">&#9670;&nbsp;</a></span>get_docid()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceXapian.html#ad8f7a78bc920532b7d2baa3281b33e2f">Xapian::docid</a> Xapian::ValuePostingSource::get_docid </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Return the current docid. </p>
<p>This method may assume that it will only be called when there is a "current document". See <em><a class="el" href="classXapian_1_1PostingSource.html#a3922b7e3572eea6d3e39fc26cc7fed7a" title="Return the weight contribution for the current document. ">get_weight()</a></em> for details.</p>
<p>Note: in the case of a multi-database search, the returned docid should be in the single subdatabase relevant to this posting source. See the <em><a class="el" href="classXapian_1_1ValuePostingSource.html#a764328b2a7085e24393a94eb1d2b91e0" title="Set this PostingSource to the start of the list of postings. ">init()</a></em> method for details. </p>

<p>Implements <a class="el" href="classXapian_1_1PostingSource.html#a7b1bd1fcd07d69204f70155588ae544a">Xapian::PostingSource</a>.</p>

</div>
</div>
<a id="ae5245e693baae3871fc289af32637f15"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae5245e693baae3871fc289af32637f15">&#9670;&nbsp;</a></span>get_slot()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceXapian.html#a94a899651fa920c72ffa9635bde630ea">Xapian::valueno</a> Xapian::ValuePostingSource::get_slot </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The slot we're reading values from. </p>
<p>Added in 1.2.23 and 1.3.5. </p>

</div>
</div>
<a id="a8bb798e2c4cbc9184befb750410e7398"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8bb798e2c4cbc9184befb750410e7398">&#9670;&nbsp;</a></span>get_started()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool Xapian::ValuePostingSource::get_started </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Flag indicating if we've started (true if we have). </p>
<p>Added in 1.2.23 and 1.3.5. </p>

</div>
</div>
<a id="a518d58643220e417e9affda5170b1096"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a518d58643220e417e9affda5170b1096">&#9670;&nbsp;</a></span>get_termfreq_est()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceXapian.html#a9bbd62a8e56ea4619e4e59afb32aced6">Xapian::doccount</a> Xapian::ValuePostingSource::get_termfreq_est </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>An estimate of the number of documents this object can return. </p>
<p>It must always be true that:</p>
<p><a class="el" href="classXapian_1_1ValuePostingSource.html#aa952a93fa1c80f8f8ee5b7e59b87d147" title="A lower bound on the number of documents this object can return. ">get_termfreq_min()</a> &lt;= <a class="el" href="classXapian_1_1ValuePostingSource.html#a518d58643220e417e9affda5170b1096" title="An estimate of the number of documents this object can return. ">get_termfreq_est()</a> &lt;= <a class="el" href="classXapian_1_1ValuePostingSource.html#a5264a143aef0e447260adc70ce225a43" title="An upper bound on the number of documents this object can return. ">get_termfreq_max()</a></p>
<p><a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library. ">Xapian</a> will always call <a class="el" href="classXapian_1_1ValuePostingSource.html#a764328b2a7085e24393a94eb1d2b91e0" title="Set this PostingSource to the start of the list of postings. ">init()</a> on a <a class="el" href="classXapian_1_1PostingSource.html" title="Base class which provides an &quot;external&quot; source of postings. ">PostingSource</a> before calling this for the first time. </p>

<p>Implements <a class="el" href="classXapian_1_1PostingSource.html#a0d67eda5783f82951d6c56ad7ff4205b">Xapian::PostingSource</a>.</p>

</div>
</div>
<a id="a5264a143aef0e447260adc70ce225a43"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5264a143aef0e447260adc70ce225a43">&#9670;&nbsp;</a></span>get_termfreq_max()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceXapian.html#a9bbd62a8e56ea4619e4e59afb32aced6">Xapian::doccount</a> Xapian::ValuePostingSource::get_termfreq_max </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>An upper bound on the number of documents this object can return. </p>
<p><a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library. ">Xapian</a> will always call <a class="el" href="classXapian_1_1ValuePostingSource.html#a764328b2a7085e24393a94eb1d2b91e0" title="Set this PostingSource to the start of the list of postings. ">init()</a> on a <a class="el" href="classXapian_1_1PostingSource.html" title="Base class which provides an &quot;external&quot; source of postings. ">PostingSource</a> before calling this for the first time. </p>

<p>Implements <a class="el" href="classXapian_1_1PostingSource.html#a17de27c84a052c51d62ad498151a4cab">Xapian::PostingSource</a>.</p>

</div>
</div>
<a id="aa952a93fa1c80f8f8ee5b7e59b87d147"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa952a93fa1c80f8f8ee5b7e59b87d147">&#9670;&nbsp;</a></span>get_termfreq_min()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceXapian.html#a9bbd62a8e56ea4619e4e59afb32aced6">Xapian::doccount</a> Xapian::ValuePostingSource::get_termfreq_min </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>A lower bound on the number of documents this object can return. </p>
<p><a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library. ">Xapian</a> will always call <a class="el" href="classXapian_1_1ValuePostingSource.html#a764328b2a7085e24393a94eb1d2b91e0" title="Set this PostingSource to the start of the list of postings. ">init()</a> on a <a class="el" href="classXapian_1_1PostingSource.html" title="Base class which provides an &quot;external&quot; source of postings. ">PostingSource</a> before calling this for the first time. </p>

<p>Implements <a class="el" href="classXapian_1_1PostingSource.html#a5ecf450314e8b266eb9c8fae78e141d3">Xapian::PostingSource</a>.</p>

</div>
</div>
<a id="ad64852538c6a36e3099ff75fe8d74ab3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad64852538c6a36e3099ff75fe8d74ab3">&#9670;&nbsp;</a></span>get_value()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::string Xapian::ValuePostingSource::get_value </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Read current value. </p>
<p>Added in 1.2.23 and 1.3.5. </p>

</div>
</div>
<a id="a764328b2a7085e24393a94eb1d2b91e0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a764328b2a7085e24393a94eb1d2b91e0">&#9670;&nbsp;</a></span>init()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Xapian::ValuePostingSource::init </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classXapian_1_1Database.html">Database</a> &amp;&#160;</td>
          <td class="paramname"><em>db</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Set this <a class="el" href="classXapian_1_1PostingSource.html" title="Base class which provides an &quot;external&quot; source of postings. ">PostingSource</a> to the start of the list of postings. </p>
<p>This is called automatically by the matcher prior to each query being processed.</p>
<p>If a <a class="el" href="classXapian_1_1PostingSource.html" title="Base class which provides an &quot;external&quot; source of postings. ">PostingSource</a> is used for multiple searches, <em><a class="el" href="classXapian_1_1ValuePostingSource.html#a764328b2a7085e24393a94eb1d2b91e0" title="Set this PostingSource to the start of the list of postings. ">init()</a></em> will therefore be called multiple times, and must handle this by using the database passed in the most recent call.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">db</td><td>The database which the <a class="el" href="classXapian_1_1PostingSource.html" title="Base class which provides an &quot;external&quot; source of postings. ">PostingSource</a> should iterate through.</td></tr>
  </table>
  </dd>
</dl>
<p>Note: in the case of a multi-database search, a separate <a class="el" href="classXapian_1_1PostingSource.html" title="Base class which provides an &quot;external&quot; source of postings. ">PostingSource</a> will be used for each database (the separate PostingSources will be obtained using <em><a class="el" href="classXapian_1_1PostingSource.html#ab41013bf3d3dc7d433430a69466b8582" title="Clone the posting source. ">clone()</a></em>), and each <a class="el" href="classXapian_1_1PostingSource.html" title="Base class which provides an &quot;external&quot; source of postings. ">PostingSource</a> will be passed one of the sub-databases as the <em>db</em> parameter here. The <em>db</em> parameter will therefore always refer to a single database. All docids passed to, or returned from, the <a class="el" href="classXapian_1_1PostingSource.html" title="Base class which provides an &quot;external&quot; source of postings. ">PostingSource</a> refer to docids in that single database, rather than in the multi-database. </p>

<p>Implements <a class="el" href="classXapian_1_1PostingSource.html#a81d793170b496022488c15c3508979b5">Xapian::PostingSource</a>.</p>

<p>Reimplemented in <a class="el" href="classXapian_1_1ValueMapPostingSource.html#ae76de9cb534e96b7a0cc827d89eea8fc">Xapian::ValueMapPostingSource</a>, <a class="el" href="classXapian_1_1DecreasingValueWeightPostingSource.html#aabbd9d95d77e2aa947377c44d1bb733c">Xapian::DecreasingValueWeightPostingSource</a>, and <a class="el" href="classXapian_1_1ValueWeightPostingSource.html#ac3844351e28448d1de38fe089d626db4">Xapian::ValueWeightPostingSource</a>.</p>

</div>
</div>
<a id="a560f89bad687164dd139f9025d2bb1db"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a560f89bad687164dd139f9025d2bb1db">&#9670;&nbsp;</a></span>next()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Xapian::ValuePostingSource::next </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>min_wt</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Advance the current position to the next matching document. </p>
<p>The <a class="el" href="classXapian_1_1PostingSource.html" title="Base class which provides an &quot;external&quot; source of postings. ">PostingSource</a> starts before the first entry in the list, so <a class="el" href="classXapian_1_1ValuePostingSource.html#a560f89bad687164dd139f9025d2bb1db" title="Advance the current position to the next matching document. ">next()</a> must be called before any methods which need the context of the current position.</p>
<p><a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library. ">Xapian</a> will always call <a class="el" href="classXapian_1_1ValuePostingSource.html#a764328b2a7085e24393a94eb1d2b91e0" title="Set this PostingSource to the start of the list of postings. ">init()</a> on a <a class="el" href="classXapian_1_1PostingSource.html" title="Base class which provides an &quot;external&quot; source of postings. ">PostingSource</a> before calling this for the first time.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">min_wt</td><td>The minimum weight contribution that is needed (this is just a hint which subclasses may ignore). </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="classXapian_1_1PostingSource.html#a150c4c07ff4e959f448dd8cf840968e8">Xapian::PostingSource</a>.</p>

<p>Reimplemented in <a class="el" href="classXapian_1_1DecreasingValueWeightPostingSource.html#a6b4a3f76964292eb8a04d20059852f3b">Xapian::DecreasingValueWeightPostingSource</a>.</p>

</div>
</div>
<a id="a7851aeed5774dbdd6b5692828730e3fc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7851aeed5774dbdd6b5692828730e3fc">&#9670;&nbsp;</a></span>set_termfreq_est()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Xapian::ValuePostingSource::set_termfreq_est </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceXapian.html#a9bbd62a8e56ea4619e4e59afb32aced6">Xapian::doccount</a>&#160;</td>
          <td class="paramname"><em>termfreq_est_</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>An estimate of the term frequency. </p>
<p>Subclasses should set this if they are overriding the <a class="el" href="classXapian_1_1ValuePostingSource.html#a560f89bad687164dd139f9025d2bb1db" title="Advance the current position to the next matching document. ">next()</a>, <a class="el" href="classXapian_1_1ValuePostingSource.html#a27b5b12089a98975ad29bbcd0922556e" title="Advance to the specified docid. ">skip_to()</a> or <a class="el" href="classXapian_1_1ValuePostingSource.html#ab222fd63a80cb7c329b8ab4cc27405b8" title="Check if the specified docid occurs. ">check()</a> methods.</p>
<p>Added in 1.2.23 and 1.3.5. </p>

</div>
</div>
<a id="acfdc1178868ae3600c3aeb291c450b32"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acfdc1178868ae3600c3aeb291c450b32">&#9670;&nbsp;</a></span>set_termfreq_max()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Xapian::ValuePostingSource::set_termfreq_max </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceXapian.html#a9bbd62a8e56ea4619e4e59afb32aced6">Xapian::doccount</a>&#160;</td>
          <td class="paramname"><em>termfreq_max_</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>An upper bound on the term frequency. </p>
<p>Subclasses should set this if they are overriding the <a class="el" href="classXapian_1_1ValuePostingSource.html#a560f89bad687164dd139f9025d2bb1db" title="Advance the current position to the next matching document. ">next()</a>, <a class="el" href="classXapian_1_1ValuePostingSource.html#a27b5b12089a98975ad29bbcd0922556e" title="Advance to the specified docid. ">skip_to()</a> or <a class="el" href="classXapian_1_1ValuePostingSource.html#ab222fd63a80cb7c329b8ab4cc27405b8" title="Check if the specified docid occurs. ">check()</a> methods.</p>
<p>Added in 1.2.23 and 1.3.5. </p>

</div>
</div>
<a id="a32e275c815ab07a5e2c2fb02da9f1928"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a32e275c815ab07a5e2c2fb02da9f1928">&#9670;&nbsp;</a></span>set_termfreq_min()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Xapian::ValuePostingSource::set_termfreq_min </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceXapian.html#a9bbd62a8e56ea4619e4e59afb32aced6">Xapian::doccount</a>&#160;</td>
          <td class="paramname"><em>termfreq_min_</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Set a lower bound on the term frequency. </p>
<p>Subclasses should set this if they are overriding the <a class="el" href="classXapian_1_1ValuePostingSource.html#a560f89bad687164dd139f9025d2bb1db" title="Advance the current position to the next matching document. ">next()</a>, <a class="el" href="classXapian_1_1ValuePostingSource.html#a27b5b12089a98975ad29bbcd0922556e" title="Advance to the specified docid. ">skip_to()</a> or <a class="el" href="classXapian_1_1ValuePostingSource.html#ab222fd63a80cb7c329b8ab4cc27405b8" title="Check if the specified docid occurs. ">check()</a> methods to return fewer documents.</p>
<p>Added in 1.2.23 and 1.3.5. </p>

</div>
</div>
<a id="a27b5b12089a98975ad29bbcd0922556e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a27b5b12089a98975ad29bbcd0922556e">&#9670;&nbsp;</a></span>skip_to()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Xapian::ValuePostingSource::skip_to </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceXapian.html#ad8f7a78bc920532b7d2baa3281b33e2f">Xapian::docid</a>&#160;</td>
          <td class="paramname"><em>did</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>min_wt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Advance to the specified docid. </p>
<p>If the specified docid isn't in the list, position ourselves on the first document after it (or <a class="el" href="classXapian_1_1ValuePostingSource.html#a53d851ba1e75670c28c9508921273dc0" title="Return true if the current position is past the last entry in this list. ">at_end()</a> if no greater docids are present).</p>
<p>If the current position is already the specified docid, this method will leave the position unmodified.</p>
<p>If the specified docid is earlier than the current position, the behaviour is unspecified. A sensible behaviour would be to leave the current position unmodified, but it is also reasonable to move to the specified docid.</p>
<p>The default implementation calls <a class="el" href="classXapian_1_1ValuePostingSource.html#a560f89bad687164dd139f9025d2bb1db" title="Advance the current position to the next matching document. ">next()</a> repeatedly, which works but <a class="el" href="classXapian_1_1ValuePostingSource.html#a27b5b12089a98975ad29bbcd0922556e" title="Advance to the specified docid. ">skip_to()</a> can often be implemented much more efficiently.</p>
<p><a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library. ">Xapian</a> will always call <a class="el" href="classXapian_1_1ValuePostingSource.html#a764328b2a7085e24393a94eb1d2b91e0" title="Set this PostingSource to the start of the list of postings. ">init()</a> on a <a class="el" href="classXapian_1_1PostingSource.html" title="Base class which provides an &quot;external&quot; source of postings. ">PostingSource</a> before calling this for the first time.</p>
<p>Note: in the case of a multi-database search, the docid specified is the docid in the single subdatabase relevant to this posting source. See the <em><a class="el" href="classXapian_1_1ValuePostingSource.html#a764328b2a7085e24393a94eb1d2b91e0" title="Set this PostingSource to the start of the list of postings. ">init()</a></em> method for details.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">did</td><td>The document id to advance to. </td></tr>
    <tr><td class="paramname">min_wt</td><td>The minimum weight contribution that is needed (this is just a hint which subclasses may ignore). </td></tr>
  </table>
  </dd>
</dl>

<p>Reimplemented from <a class="el" href="classXapian_1_1PostingSource.html#acf18a9328d8e46c3a759a3a120009607">Xapian::PostingSource</a>.</p>

<p>Reimplemented in <a class="el" href="classXapian_1_1DecreasingValueWeightPostingSource.html#aa70bb8128fa24aa8940bb518c9c01905">Xapian::DecreasingValueWeightPostingSource</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a3bbef981fa3fac528dfee36248e55f44"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3bbef981fa3fac528dfee36248e55f44">&#9670;&nbsp;</a></span>db</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classXapian_1_1Database.html">Xapian::Database</a>&amp; Xapian::ValuePostingSource::db</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The database we're reading values from. </p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000004">Deprecated:</a></b></dt><dd>Use <em><a class="el" href="classXapian_1_1ValuePostingSource.html#a6d4b124a53e83bfd2bcd3a5322273f57" title="The database we&#39;re reading values from. ">get_database()</a></em> in preference. </dd></dl>

</div>
</div>
<a id="ac6102f72ea311d470d083859838bf9d8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac6102f72ea311d470d083859838bf9d8">&#9670;&nbsp;</a></span>slot</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceXapian.html#a94a899651fa920c72ffa9635bde630ea">Xapian::valueno</a>&amp; Xapian::ValuePostingSource::slot</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The slot we're reading values from. </p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000005">Deprecated:</a></b></dt><dd>Use <em><a class="el" href="classXapian_1_1ValuePostingSource.html#ae5245e693baae3871fc289af32637f15" title="The slot we&#39;re reading values from. ">get_slot()</a></em> in preference. </dd></dl>

</div>
</div>
<a id="adc20089597b9ff9993526bd95d2fb653"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adc20089597b9ff9993526bd95d2fb653">&#9670;&nbsp;</a></span>started</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool&amp; Xapian::ValuePostingSource::started</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Flag indicating if we've started (true if we have). </p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000007">Deprecated:</a></b></dt><dd>Use <em><a class="el" href="classXapian_1_1ValuePostingSource.html#a8bb798e2c4cbc9184befb750410e7398" title="Flag indicating if we&#39;ve started (true if we have). ">get_started()</a></em> in preference. </dd></dl>

</div>
</div>
<a id="a3bcadb7f9aace4bf1b577b4318451df2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3bcadb7f9aace4bf1b577b4318451df2">&#9670;&nbsp;</a></span>termfreq_est</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceXapian.html#a9bbd62a8e56ea4619e4e59afb32aced6">Xapian::doccount</a>&amp; Xapian::ValuePostingSource::termfreq_est</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>An estimate of the term frequency. </p>
<p>Subclasses should set this if they are overriding the <a class="el" href="classXapian_1_1ValuePostingSource.html#a560f89bad687164dd139f9025d2bb1db" title="Advance the current position to the next matching document. ">next()</a>, <a class="el" href="classXapian_1_1ValuePostingSource.html#a27b5b12089a98975ad29bbcd0922556e" title="Advance to the specified docid. ">skip_to()</a> or <a class="el" href="classXapian_1_1ValuePostingSource.html#ab222fd63a80cb7c329b8ab4cc27405b8" title="Check if the specified docid occurs. ">check()</a> methods.</p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000009">Deprecated:</a></b></dt><dd>Use <em><a class="el" href="classXapian_1_1ValuePostingSource.html#a7851aeed5774dbdd6b5692828730e3fc" title="An estimate of the term frequency. ">set_termfreq_est()</a></em> in preference. </dd></dl>

</div>
</div>
<a id="a897f7b589182ce1ca88ed027570b2d4e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a897f7b589182ce1ca88ed027570b2d4e">&#9670;&nbsp;</a></span>termfreq_max</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceXapian.html#a9bbd62a8e56ea4619e4e59afb32aced6">Xapian::doccount</a>&amp; Xapian::ValuePostingSource::termfreq_max</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>An upper bound on the term frequency. </p>
<p>Subclasses should set this if they are overriding the <a class="el" href="classXapian_1_1ValuePostingSource.html#a560f89bad687164dd139f9025d2bb1db" title="Advance the current position to the next matching document. ">next()</a>, <a class="el" href="classXapian_1_1ValuePostingSource.html#a27b5b12089a98975ad29bbcd0922556e" title="Advance to the specified docid. ">skip_to()</a> or <a class="el" href="classXapian_1_1ValuePostingSource.html#ab222fd63a80cb7c329b8ab4cc27405b8" title="Check if the specified docid occurs. ">check()</a> methods.</p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000010">Deprecated:</a></b></dt><dd>Use <em><a class="el" href="classXapian_1_1ValuePostingSource.html#acfdc1178868ae3600c3aeb291c450b32" title="An upper bound on the term frequency. ">set_termfreq_max()</a></em> in preference. </dd></dl>

</div>
</div>
<a id="ad04e70cdc505898beef5911130322746"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad04e70cdc505898beef5911130322746">&#9670;&nbsp;</a></span>termfreq_min</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceXapian.html#a9bbd62a8e56ea4619e4e59afb32aced6">Xapian::doccount</a>&amp; Xapian::ValuePostingSource::termfreq_min</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>A lower bound on the term frequency. </p>
<p>Subclasses should set this if they are overriding the <a class="el" href="classXapian_1_1ValuePostingSource.html#a560f89bad687164dd139f9025d2bb1db" title="Advance the current position to the next matching document. ">next()</a>, <a class="el" href="classXapian_1_1ValuePostingSource.html#a27b5b12089a98975ad29bbcd0922556e" title="Advance to the specified docid. ">skip_to()</a> or <a class="el" href="classXapian_1_1ValuePostingSource.html#ab222fd63a80cb7c329b8ab4cc27405b8" title="Check if the specified docid occurs. ">check()</a> methods to return fewer documents.</p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000008">Deprecated:</a></b></dt><dd>Use <em><a class="el" href="classXapian_1_1ValuePostingSource.html#a32e275c815ab07a5e2c2fb02da9f1928" title="Set a lower bound on the term frequency. ">set_termfreq_min()</a></em> in preference. </dd></dl>

</div>
</div>
<a id="a650c27f6c7891bb2e0f4d96c6f743e04"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a650c27f6c7891bb2e0f4d96c6f743e04">&#9670;&nbsp;</a></span>value_it</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classXapian_1_1ValueIterator.html">Xapian::ValueIterator</a>&amp; Xapian::ValuePostingSource::value_it</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Value stream iterator. </p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000006">Deprecated:</a></b></dt><dd>Use <em><a class="el" href="classXapian_1_1ValuePostingSource.html#ad64852538c6a36e3099ff75fe8d74ab3" title="Read current value. ">get_value()</a></em> in preference to *value_it, and other methods of <a class="el" href="classXapian_1_1ValuePostingSource.html" title="A posting source which generates weights from a value slot. ">ValuePostingSource</a> in preference to calling methods of value_it. </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>xapian/<a class="el" href="postingsource_8h.html">postingsource.h</a></li>
</ul>
</div><!-- contents -->
<hr>
<address><small>
Documentation for Xapian (version 1.4.3).<br>
Generated on Wed Jan 25 2017 by
<a href="http://www.doxygen.org/">Doxygen 1.8.13</a>.
</small></address>
</body>
</html>