xapian-core
1.4.26
|
#include <orpositionlist.h>
Public Member Functions | |
OrPositionList () | |
PositionList * | gather (PostList *pl) |
void | add_poslist (PositionList *poslist) |
Xapian::termcount | get_approx_size () const |
Return approximate size of this positionlist. More... | |
Xapian::termpos | get_position () const |
Return the current position. More... | |
bool | next () |
Advance to the next entry in the positionlist. More... | |
bool | skip_to (Xapian::termpos termpos) |
Skip forward to the specified position. More... | |
Public Member Functions inherited from Xapian::PositionIterator::Internal | |
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... | |
Public Member Functions inherited from Xapian::Internal::intrusive_base | |
intrusive_base () | |
Construct with no references. More... | |
Private Attributes | |
std::vector< PositionList * > | pls |
The PositionList sub-objects. More... | |
std::vector< Xapian::termpos > | current |
Current positions of the subobjects. More... | |
Xapian::termpos | current_pos |
Current position of this object. More... | |
Additional Inherited Members | |
Public Attributes inherited from Xapian::Internal::intrusive_base | |
unsigned | _refs |
Reference count. More... | |
Protected Member Functions inherited from Xapian::PositionIterator::Internal | |
Internal () | |
Only constructable as a base class for derived classes. More... | |
Definition at line 31 of file orpositionlist.h.
|
inline |
Definition at line 45 of file orpositionlist.h.
|
inline |
Definition at line 56 of file orpositionlist.h.
References get_approx_size(), get_position(), next(), and skip_to().
Referenced by LeafPostList::gather_position_lists().
|
inline |
Definition at line 47 of file orpositionlist.h.
References Xapian::PostingIterator::Internal::gather_position_lists().
Referenced by OrPosPostList::read_position_list().
|
virtual |
Return approximate size of this positionlist.
Implements Xapian::PositionIterator::Internal.
Definition at line 30 of file orpositionlist.cc.
References LOGCALL, and RETURN.
Referenced by add_poslist().
|
virtual |
Return the current position.
Implements Xapian::PositionIterator::Internal.
Definition at line 41 of file orpositionlist.cc.
References LOGCALL, and RETURN.
Referenced by add_poslist().
|
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().
Implements Xapian::PositionIterator::Internal.
Definition at line 53 of file orpositionlist.cc.
References Xapian::PositionIterator::Internal::get_position(), LOGCALL, Xapian::PositionIterator::Internal::next(), and RETURN.
Referenced by add_poslist().
|
virtual |
Skip forward to the specified position.
If the specified position isn't in the list, position ourselves on the first entry after it.
Implements Xapian::PositionIterator::Internal.
Definition at line 85 of file orpositionlist.cc.
References Xapian::PositionIterator::Internal::get_position(), LOGCALL, RETURN, and Xapian::PositionIterator::Internal::skip_to().
Referenced by add_poslist().
|
private |
Current positions of the subobjects.
This will be empty when this position list hasn't yet started.
Definition at line 39 of file orpositionlist.h.
|
private |
Current position of this object.
Definition at line 42 of file orpositionlist.h.
|
private |
The PositionList sub-objects.
Definition at line 33 of file orpositionlist.h.