[Xapian-discuss] Howto use the term iterator?

Olly Betts olly at survex.com
Fri Oct 3 15:11:10 BST 2008


On Fri, Oct 03, 2008 at 02:29:35PM +0100, John Wards wrote:
> On Fri, 2008-10-03 at 12:30 +0100, James Aylett wrote:
> > You have to use termlist_end(), as you've deduced. The Python bindings
> > (for instance) provide Pythonic iterators by storing the _end() as
> > well as initialising themselves to the _begin() so they can figure out
> > when to stop.
> 
> Right okay, thats easy enough then.
> 
> I might have a go at doing it at the weekend...

Cool.

If you can work out what the code should look like for one Xapian
iterator class, the others will presumably look very similar, and we can
probably use SWIG to do the boring mechanical work.

Cheers,
    Olly



More information about the Xapian-discuss mailing list