|
xapian-core
2.0.0
|
PositionList from an InMemory DB or a Document object. More...
#include <inmemory_positionlist.h>
Inheritance diagram for InMemoryPositionList:
Collaboration diagram for InMemoryPositionList:Public Member Functions | |
| InMemoryPositionList () | |
| Construct with an empty position list. More... | |
| InMemoryPositionList (Xapian::VecCOW< Xapian::termpos > &&positions_) | |
| Move construct with positional data. More... | |
| InMemoryPositionList (const Xapian::VecCOW< Xapian::termpos > &positions_) | |
| Construct with copied positional data. More... | |
| void | assign (Xapian::VecCOW< Xapian::termpos > &&positions_) |
| Move assign positional data. More... | |
| void | assign (const Xapian::VecCOW< Xapian::termpos > &positions_) |
| Assign copied positional data. More... | |
| Xapian::termcount | get_approx_size () const |
| Return approximate size of this positionlist. More... | |
| Xapian::termpos | back () const |
| Return the final entry in 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 Member Functions | |
| void | operator= (const InMemoryPositionList &)=delete |
| Don't allow assignment. More... | |
| InMemoryPositionList (const InMemoryPositionList &)=delete | |
| Don't allow copying. More... | |
Private Attributes | |
| Xapian::VecCOW< Xapian::termpos > | positions |
| Sorted list of term positions. More... | |
| size_t | index = size_t(-1) |
| Current index into positions. 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... | |
PositionList from an InMemory DB or a Document object.
Definition at line 28 of file inmemory_positionlist.h.
|
privatedelete |
Don't allow copying.
|
inline |
Construct with an empty position list.
Used to construct the InMemoryPositionList embedded in each InMemoryPostList.
Definition at line 50 of file inmemory_positionlist.h.
|
inlineexplicit |
Move construct with positional data.
Definition at line 54 of file inmemory_positionlist.h.
|
inlineexplicit |
Construct with copied positional data.
Definition at line 59 of file inmemory_positionlist.h.
|
inline |
Assign copied positional data.
Definition at line 69 of file inmemory_positionlist.h.
References Xapian::Vec< T, COW, UNIQUEPTR, typename >::copy(), index, and positions.
|
inline |
Move assign positional data.
Definition at line 63 of file inmemory_positionlist.h.
References index, and positions.
Referenced by InMemoryPostList::read_position_list().
|
virtual |
Return the final entry in this positionlist.
Implements Xapian::PositionIterator::Internal.
Definition at line 38 of file inmemory_positionlist.cc.
|
virtual |
Return approximate size of this positionlist.
Implements Xapian::PositionIterator::Internal.
Definition at line 32 of file inmemory_positionlist.cc.
|
virtual |
Return the current position.
Implements Xapian::PositionIterator::Internal.
Definition at line 44 of file inmemory_positionlist.cc.
References AssertRel.
|
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 51 of file inmemory_positionlist.cc.
References AssertRel, and UNSIGNED_OVERFLOW_OK.
|
privatedelete |
Don't allow assignment.
|
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 60 of file inmemory_positionlist.cc.
|
private |
Current index into positions.
Or size_t(-1) if we've not yet started.
Definition at line 36 of file inmemory_positionlist.h.
Referenced by assign().
|
private |
Sorted list of term positions.
Definition at line 30 of file inmemory_positionlist.h.
Referenced by assign().