#include <InvTermList.hpp>
Inheritance diagram for InvTermList:
Public Methods | |
InvTermList () | |
~InvTermList () | |
void | startIteration () const |
prepare iteration | |
bool | hasMore () const |
has more entries | |
TermInfo * | nextEntry () const |
Get a pointer to the next entry (pointer to a local static memory). | |
COUNT_T | docLength () const |
Get the length of this document. | |
COUNT_T | termCount () const |
Get the number of terms in this document. | |
DOCID_T | docID () const |
Get the docid this list is for. | |
bool | binRead (ifstream &infile) |
Protected Methods | |
virtual TermInfo * | getElement (TermInfo *elem, POS_T position) const |
set element from position, returns pointer to the element | |
virtual POS_T | beginPosition () const |
position at beginning of list | |
virtual POS_T | endPosition () const |
position at end of list | |
virtual POS_T | nextPosition (POS_T position) const |
advance position |
|
|
|
|
|
position at beginning of list
Implements TermInfoList. |
|
Read in a TermInfoList object from a file Assumes the following format: DOCID DOCLENGTH TID TERM_COUNT .. |
|
Get the docid this list is for.
|
|
Get the length of this document.
|
|
position at end of list
Implements TermInfoList. |
|
set element from position, returns pointer to the element
Implements TermInfoList. |
|
has more entries
Implements TermInfoList. |
|
Get a pointer to the next entry (pointer to a local static memory).
Implements TermInfoList. |
|
advance position
Implements TermInfoList. |
|
prepare iteration
Implements TermInfoList. |
|
Get the number of terms in this document.
|