Eliminate TermList::at_end()
commit8af24b64198c35b416899eef088c70fce1f2c706
authorOlly Betts <olly@survex.com>
Fri, 8 Dec 2023 19:46:30 +0000 (9 08:46 +1300)
committerOlly Betts <olly@survex.com>
Sat, 9 Dec 2023 01:13:45 +0000 (9 14:13 +1300)
treef1911e67236305f9fd24dafd830477b2371cd166
parente492dc7bc0009660b689c079b3cb10aadba84b03
Eliminate TermList::at_end()

Instead have next() and skip_to() signal that the end has been
reached by `return this;` (with another non-NULL pointer signifying
a prune and NULL indicating the normal "success" situation).

This is a bit faster, and simplifies the code overall.
57 files changed:
xapian-core/api/database.cc
xapian-core/api/documenttermlist.cc
xapian-core/api/documenttermlist.h
xapian-core/api/matchspy.cc
xapian-core/api/queryinternal.cc
xapian-core/api/termiterator.cc
xapian-core/api/termlist.h
xapian-core/api/vectortermlist.cc
xapian-core/api/vectortermlist.h
xapian-core/backends/alltermslist.h
xapian-core/backends/databaseinternal.cc
xapian-core/backends/documentinternal.cc
xapian-core/backends/glass/glass_alltermslist.cc
xapian-core/backends/glass/glass_alltermslist.h
xapian-core/backends/glass/glass_database.cc
xapian-core/backends/glass/glass_metadata.cc
xapian-core/backends/glass/glass_metadata.h
xapian-core/backends/glass/glass_spelling.cc
xapian-core/backends/glass/glass_spelling.h
xapian-core/backends/glass/glass_spellingwordslist.cc
xapian-core/backends/glass/glass_spellingwordslist.h
xapian-core/backends/glass/glass_synonym.cc
xapian-core/backends/glass/glass_synonym.h
xapian-core/backends/glass/glass_termlist.cc
xapian-core/backends/glass/glass_termlist.h
xapian-core/backends/honey/honey_alltermslist.cc
xapian-core/backends/honey/honey_alltermslist.h
xapian-core/backends/honey/honey_database.cc
xapian-core/backends/honey/honey_metadata.cc
xapian-core/backends/honey/honey_metadata.h
xapian-core/backends/honey/honey_spelling.cc
xapian-core/backends/honey/honey_spelling.h
xapian-core/backends/honey/honey_spellingwordslist.cc
xapian-core/backends/honey/honey_spellingwordslist.h
xapian-core/backends/honey/honey_synonym.cc
xapian-core/backends/honey/honey_synonym.h
xapian-core/backends/honey/honey_termlist.cc
xapian-core/backends/honey/honey_termlist.h
xapian-core/backends/inmemory/inmemory_alltermslist.cc
xapian-core/backends/inmemory/inmemory_alltermslist.h
xapian-core/backends/inmemory/inmemory_database.cc
xapian-core/backends/inmemory/inmemory_database.h
xapian-core/backends/multi/multi_alltermslist.cc
xapian-core/backends/multi/multi_alltermslist.h
xapian-core/backends/multi/multi_termlist.cc
xapian-core/backends/multi/multi_termlist.h
xapian-core/backends/remote/remote_alltermslist.cc
xapian-core/backends/remote/remote_alltermslist.h
xapian-core/backends/remote/remote_keylist.cc
xapian-core/backends/remote/remote_keylist.h
xapian-core/backends/remote/remote_termlist.cc
xapian-core/backends/remote/remote_termlist.h
xapian-core/cluster/cluster.cc
xapian-core/expand/esetinternal.cc
xapian-core/expand/ortermlist.cc
xapian-core/expand/ortermlist.h
xapian-core/weight/weightinternal.cc