Update for 1.4.20
[xapian.git] / xapian-bindings / perl / Xapian / ValueIterator.pm
blob79ee4ba037e208a14f9d5eb4dc7b2803b0292180
1 package Xapian::ValueIterator;
3 =head1 NAME
5 Xapian::ValueIterator - Iterate over values in a slot.
7 =head1 DESCRIPTION
9 This object represents a stream of document values. It overloads C<++> for
10 advancing the iterator, or you can explicitly call the C<inc> method.
11 This class also overloads C<eq>, C<ne>, C<==>, and C<!=>.
13 =head2 Compatibility with Search::Xapian
15 Search::Xapian overloads <""> (stringification) on this class to call
16 the C<get_value> method. Call C<get_value> directly instead.
18 =head1 METHODS
20 =over 4
22 =item new
24 Constructor. Defaults to a uninitialized iterator.
26 =item clone
28 =item inc
30 Advance the iterator by one. (Called implicitly by C<++> overloading)
32 =item get_valueno
34 Return the number of the value slot at the current position.
36 =item get_value
38 Return the string in the value slot at current position.
40 =item get_description
42 Returns a string describing this object.
44 =item equal <valueiterator>
46 Checks if a valueiterator is the same as this valueiterator. Also overloaded as
47 the C<eq> and C<==> operators.
49 =item nequal <valueiterator>
51 Checks if a valueiterator is different from this valueiterator. Also overloaded
52 as the C<ne> and C<!=> operators.
54 =back
56 =head1 SEE ALSO
58 L<Xapian>,
59 L<Xapian::Document>
61 =cut