#include <IndriTermInfoList.hpp>
Inheritance diagram for indri::index::BagList:
Public Member Functions | |
BagList (const class TermList *list) | |
~BagList () | |
void | startIteration () const |
Prepare iteration. | |
bool | hasMore () const |
Has more entries. | |
lemur::api::TermInfo * | nextEntry () const |
Get a pointer to the next entry (pointer to a local static memory), so do not delete it. | |
virtual int | size () |
Gets the number of entries in this list. | |
virtual lemur::api::TermInfo * | operator[] (int index) const |
lemur::api::TermInfo * | getElement (lemur::api::TermInfo *elem, lemur::api::POS_T position) const |
Set element from position, returns pointer to the element. | |
lemur::api::POS_T | beginPosition () const |
Position at beginning of list. | |
lemur::api::POS_T | endPosition () const |
Position at end of list. | |
lemur::api::POS_T | nextPosition (lemur::api::POS_T position) const |
Advance to next position. | |
Private Attributes | |
const class TermList * | _list |
std::vector< std::pair< lemur::api::TERMID_T, int > > | _termCounts |
lemur::api::TermInfo | _info |
int | _position |
|
|
|
|
|
Position at beginning of list.
Implements lemur::api::TermInfoList. |
|
Position at end of list.
Implements lemur::api::TermInfoList. |
|
Set element from position, returns pointer to the element.
Implements lemur::api::TermInfoList. |
|
Has more entries.
Implements lemur::api::TermInfoList. |
|
Get a pointer to the next entry (pointer to a local static memory), so do not delete it.
Implements lemur::api::TermInfoList. |
|
Advance to next position.
Implements lemur::api::TermInfoList. |
|
indexed access to the list. Also sets the iterator to the next item after or to the end if invalid. Implements lemur::api::TermInfoList. |
|
Gets the number of entries in this list.
Implements lemur::api::TermInfoList. |
|
Prepare iteration.
Implements lemur::api::TermInfoList. |
|
|
|
|
|
|
|
|