|
xapian-core
2.0.0
|
Base-class for a position list in a glass database. More...
#include <glass_positionlist.h>
Inheritance diagram for GlassBasePositionList:
Collaboration diagram for GlassBasePositionList:Public Member Functions | |
| GlassBasePositionList () | |
| Default constructor. More... | |
| Xapian::termcount | get_approx_size () const |
| Returns size of position list. More... | |
| Xapian::termpos | back () const |
| Return the final entry in this positionlist. More... | |
| Xapian::termpos | get_position () const |
| Returns current position. More... | |
| bool | next () |
| Advance to the next term position in the list. More... | |
| bool | skip_to (Xapian::termpos termpos) |
| Advance to the first term position which is at least termpos. 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... | |
Protected Member Functions | |
| void | set_data (std::string_view data) |
| Set positional data and start to decode it. More... | |
Protected Member Functions inherited from Xapian::PositionIterator::Internal | |
| Internal () | |
| Only constructable as a base class for derived classes. More... | |
Protected Attributes | |
| BitReader | rd |
| Interpolative decoder. More... | |
| Xapian::termpos | current_pos |
| Current entry. More... | |
| Xapian::termpos | last |
| Last entry. More... | |
| Xapian::termcount | size |
| Number of entries. More... | |
| bool | have_started |
| Have we started iterating yet? More... | |
Private Member Functions | |
| GlassBasePositionList (const GlassBasePositionList &)=delete | |
| Copying is not allowed. More... | |
| GlassBasePositionList & | operator= (const GlassBasePositionList &)=delete |
| Assignment is not allowed. More... | |
Additional Inherited Members | |
Public Attributes inherited from Xapian::Internal::intrusive_base | |
| unsigned | _refs |
| Reference count. More... | |
Base-class for a position list in a glass database.
Definition at line 35 of file glass_positionlist.h.
|
privatedelete |
Copying is not allowed.
|
inline |
Default constructor.
Definition at line 67 of file glass_positionlist.h.
|
virtual |
Return the final entry in this positionlist.
Implements Xapian::PositionIterator::Internal.
Definition at line 140 of file glass_positionlist.cc.
|
virtual |
Returns size of position list.
Implements Xapian::PositionIterator::Internal.
Definition at line 133 of file glass_positionlist.cc.
|
virtual |
Returns current position.
Either next() or skip_to() must have been called before this method can be called.
Implements Xapian::PositionIterator::Internal.
Definition at line 147 of file glass_positionlist.cc.
|
virtual |
Advance to the next term position in the list.
Implements Xapian::PositionIterator::Internal.
Definition at line 155 of file glass_positionlist.cc.
|
privatedelete |
Assignment is not allowed.
|
protected |
Set positional data and start to decode it.
| data | The positional data. Must stay valid while this object is using it. |
Definition at line 95 of file glass_positionlist.cc.
References LOGCALL_VOID, pos, and unpack_uint().
|
virtual |
Advance to the first term position which is at least termpos.
Implements Xapian::PositionIterator::Internal.
Definition at line 170 of file glass_positionlist.cc.
References LOGCALL.
|
protected |
Current entry.
Definition at line 47 of file glass_positionlist.h.
|
protected |
Have we started iterating yet?
Definition at line 56 of file glass_positionlist.h.
|
protected |
Last entry.
Definition at line 50 of file glass_positionlist.h.
|
protected |
Interpolative decoder.
Definition at line 44 of file glass_positionlist.h.
|
protected |
Number of entries.
Definition at line 53 of file glass_positionlist.h.