Add PositionList::back() method
commitb6c54f85cc4c2013a2f3eb41f76f7b0559ac840f
authorOlly Betts <olly@survex.com>
Wed, 10 Oct 2018 23:30:04 +0000 (11 12:30 +1300)
committerOlly Betts <olly@survex.com>
Wed, 10 Oct 2018 23:35:20 +0000 (11 12:35 +1300)
tree5666d7c51ffbd1116cd41418115f741a1de84f48
parent2b18844f6d3f433c8f963ecf45f33cba3ba26a05
Add PositionList::back() method

This internal-only method provides direct O(1) access to the final
entry in a position list.  Currently nothing uses it, but for example
it should be useful for optimising positional matching.
xapian-core/backends/glass/glass_positionlist.cc
xapian-core/backends/glass/glass_positionlist.h
xapian-core/backends/honey/honey_positionlist.cc
xapian-core/backends/honey/honey_positionlist.h
xapian-core/backends/inmemory/inmemory_positionlist.cc
xapian-core/backends/inmemory/inmemory_positionlist.h
xapian-core/backends/positionlist.h
xapian-core/matcher/orpositionlist.cc
xapian-core/matcher/orpositionlist.h