Fix build with xapian-core < 1.4.10
[xapian.git] / search-xapian / XS / PostingIterator.xs
blob530ff0361c8f2307bc530c378fefbb15adad11cd
1 MODULE = Search::Xapian         PACKAGE = Search::Xapian::PostingIterator
3 PROTOTYPES: ENABLE
5 PostingIterator *
6 new1()
7     CODE:
8         RETVAL = new PostingIterator();
9     OUTPUT:
10         RETVAL
12 PostingIterator *
13 new2(other)
14     PostingIterator *   other
15     CODE:
16         RETVAL = new PostingIterator(*other);
17     OUTPUT:
18         RETVAL
20 void
21 PostingIterator::DESTROY()
23 void
24 PostingIterator::inc()
25     CODE:
26         ++(*THIS);
28 bool
29 PostingIterator::equal1(that)
30     PostingIterator *   that
31     CODE:
32         RETVAL = ((*THIS) == (*that));
33     OUTPUT:
34         RETVAL
36 bool
37 PostingIterator::nequal1(that)
38     PostingIterator *   that
39     CODE:
40         RETVAL = ((*THIS) != (*that));
41     OUTPUT:
42         RETVAL
44 docid
45 PostingIterator::get_docid()
46     CODE:
47         RETVAL = THIS->operator*();
48     OUTPUT:
49         RETVAL
51 doclength
52 PostingIterator::get_doclength()
53     CODE:
54         RETVAL = THIS->get_doclength();
55     OUTPUT:
56         RETVAL
58 termcount
59 PostingIterator::get_wdf()
60     CODE:
61         RETVAL = THIS->get_wdf();
62     OUTPUT:
63         RETVAL
65 string
66 PostingIterator::get_description()
68 PositionIterator *
69 PostingIterator::positionlist_begin()
70     CODE:
71         RETVAL = new PositionIterator(THIS->positionlist_begin());
72     OUTPUT:
73         RETVAL
75 PositionIterator *
76 PostingIterator::positionlist_end()
77     CODE:
78         RETVAL = new PositionIterator(THIS->positionlist_end());
79     OUTPUT:
80         RETVAL
82 void
83 PostingIterator::skip_to(docid pos)