xapian-core
1.4.27
|
Abstract base class for iterating term positions in a document. More...
#include <positionlist.h>
Public Member Functions | |
virtual | ~Internal () |
We have virtual methods and want to be able to delete derived classes using a pointer to the base class, so we need a virtual destructor. More... | |
virtual Xapian::termcount | get_approx_size () const =0 |
Return approximate size of this positionlist. More... | |
virtual Xapian::termpos | get_position () const =0 |
Return the current position. More... | |
virtual bool | next ()=0 |
Advance to the next entry in the positionlist. More... | |
virtual bool | skip_to (Xapian::termpos termpos)=0 |
Skip forward to the specified position. More... | |
Public Member Functions inherited from Xapian::Internal::intrusive_base | |
intrusive_base () | |
Construct with no references. More... | |
Protected Member Functions | |
Internal () | |
Only constructable as a base class for derived classes. More... | |
Private Member Functions | |
void | operator= (const Internal &)=delete |
Don't allow assignment. More... | |
Internal (const Internal &)=delete | |
Don't allow copying. More... | |
Additional Inherited Members | |
Public Attributes inherited from Xapian::Internal::intrusive_base | |
unsigned | _refs |
Reference count. More... | |
Abstract base class for iterating term positions in a document.
Definition at line 31 of file positionlist.h.
|
privatedelete |
Don't allow copying.
|
inlineprotected |
Only constructable as a base class for derived classes.
Definition at line 41 of file positionlist.h.
|
inlinevirtual |
We have virtual methods and want to be able to delete derived classes using a pointer to the base class, so we need a virtual destructor.
Definition at line 47 of file positionlist.h.
References get_approx_size(), get_position(), next(), and skip_to().
|
pure virtual |
Return approximate size of this positionlist.
Implemented in GlassPositionList, ChertPositionList, InMemoryPositionList, and OrPositionList.
Referenced by ~Internal().
|
pure virtual |
Return the current position.
Implemented in GlassPositionList, ChertPositionList, InMemoryPositionList, and OrPositionList.
Referenced by OrPositionList::next(), Cmp::operator()(), Xapian::PositionIterator::operator*(), OrPositionList::skip_to(), NearPostList::test_doc(), PhrasePostList::test_doc(), ExactPhrasePostList::test_doc(), and ~Internal().
|
pure virtual |
Advance to the next entry in the positionlist.
The list starts before the first entry, so next() or skip_to() must be called before get_position().
Implemented in GlassPositionList, ChertPositionList, InMemoryPositionList, and OrPositionList.
Referenced by OrPositionList::next(), Xapian::PositionIterator::operator++(), Xapian::PositionIterator::PositionIterator(), NearPostList::test_doc(), and ~Internal().
|
privatedelete |
Don't allow assignment.
|
pure virtual |
Skip forward to the specified position.
If the specified position isn't in the list, position ourselves on the first entry after it.
Implemented in GlassPositionList, ChertPositionList, InMemoryPositionList, and OrPositionList.
Referenced by OrPositionList::skip_to(), Xapian::PositionIterator::skip_to(), NearPostList::test_doc(), and ~Internal().