|
xapian-core
1.4.30
|
A position list in a inmemory database. More...
#include <inmemory_positionlist.h>
Inheritance diagram for InMemoryPositionList:
Collaboration diagram for InMemoryPositionList:Public Member Functions | |
| InMemoryPositionList () | |
| Default constructor. More... | |
| InMemoryPositionList (bool) | |
| Construct an empty InMemoryPositionList. More... | |
| InMemoryPositionList (const OmDocumentTerm::term_positions &positions_) | |
| Construct, fill list with data, and move the position to the start. More... | |
| void | set_data (const OmDocumentTerm::term_positions &positions_) |
| Fill list with data, and move the position to the start. More... | |
| Xapian::termcount | get_approx_size () const |
| Gets size of position list. More... | |
| Xapian::termpos | get_position () const |
| Gets current position. More... | |
| bool | next () |
| Move to the next item in the list. More... | |
| bool | skip_to (Xapian::termpos termpos) |
| Move to the next item in the list. 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 | |
| InMemoryPositionList (const InMemoryPositionList &) | |
| Copying is not allowed. More... | |
| void | operator= (const InMemoryPositionList &) |
| Assignment is not allowed. More... | |
Private Attributes | |
| vector< Xapian::termpos > | positions |
| The list of positions. More... | |
| vector< Xapian::termpos >::const_iterator | mypos |
| Position of iteration through positions. More... | |
| bool | iterating_in_progress |
| True if we have started iterating. 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... | |
A position list in a inmemory database.
Definition at line 36 of file inmemory_positionlist.h.
|
private |
Copying is not allowed.
|
inline |
Default constructor.
Definition at line 56 of file inmemory_positionlist.h.
|
inlineexplicit |
Construct an empty InMemoryPositionList.
Definition at line 59 of file inmemory_positionlist.h.
|
explicit |
Construct, fill list with data, and move the position to the start.
Definition at line 30 of file inmemory_positionlist.cc.
|
virtual |
Gets size of position list.
Implements Xapian::PositionIterator::Internal.
Definition at line 45 of file inmemory_positionlist.cc.
References positions.
|
virtual |
Gets current position.
Implements Xapian::PositionIterator::Internal.
Definition at line 51 of file inmemory_positionlist.cc.
References Assert, iterating_in_progress, mypos, and positions.
|
virtual |
Move to the next item in the list.
Either next() or skip_to() must be called before any other methods.
Implements Xapian::PositionIterator::Internal.
Definition at line 59 of file inmemory_positionlist.cc.
References Assert, iterating_in_progress, mypos, and positions.
|
private |
Assignment is not allowed.
| void InMemoryPositionList::set_data | ( | const OmDocumentTerm::term_positions & | positions_ | ) |
Fill list with data, and move the position to the start.
Definition at line 37 of file inmemory_positionlist.cc.
References iterating_in_progress, mypos, and positions.
Referenced by InMemoryPostList::read_position_list().
|
virtual |
Move to the next item in the list.
Either next() or skip_to() must be called before any other methods.
Implements Xapian::PositionIterator::Internal.
Definition at line 71 of file inmemory_positionlist.cc.
References iterating_in_progress, mypos, and positions.
|
private |
True if we have started iterating.
Definition at line 46 of file inmemory_positionlist.h.
Referenced by get_position(), next(), set_data(), and skip_to().
|
private |
Position of iteration through positions.
Definition at line 43 of file inmemory_positionlist.h.
Referenced by get_position(), next(), set_data(), and skip_to().
|
private |
The list of positions.
Definition at line 40 of file inmemory_positionlist.h.
Referenced by get_approx_size(), get_position(), next(), set_data(), and skip_to().