|
xapian-core
1.4.30
|
#include <orpositionlist.h>
Inheritance diagram for OrPositionList:
Collaboration diagram for OrPositionList: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 pls.
Referenced by LeafPostList::gather_position_lists().
|
inline |
Definition at line 47 of file orpositionlist.h.
References current, Xapian::PostingIterator::Internal::gather_position_lists(), and pls.
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.
|
virtual |
Return the current position.
Implements Xapian::PositionIterator::Internal.
Definition at line 41 of file orpositionlist.cc.
|
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.
|
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().
|
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.
Referenced by gather().
|
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.
Referenced by add_poslist(), and gather().