1 package Search
::Xapian
::MSetIterator
;
10 our @ISA = qw(DynaLoader);
12 # Preloaded methods go here.
14 # In a new thread, copy objects of this class to unblessed, undef values.
17 use overload
'++' => sub { $_[0]->inc() },
18 '--' => sub { $_[0]->dec() },
19 '=' => sub { $_[0]->clone() },
20 'eq' => sub { $_[0]->equal($_[1]) },
21 'ne' => sub { $_[0]->nequal($_[1]) },
22 '==' => sub { $_[0]->equal($_[1]) },
23 '!=' => sub { $_[0]->nequal($_[1]) },
28 my $class = ref( $self );
29 my $copy = new2
( $self );
38 if( scalar(@_) == 0 ) {
40 } elsif( scalar(@_) == 1 and ref( $_[1] ) eq $class ) {
46 Carp
::carp
( "USAGE: $class->new(), $class->new(\$iterator)" );
49 bless $iterator, $class;