#include <DocInfoList.hpp>
Inheritance diagram for lemur::api::DocInfoList:
Public Member Functions | |
DocInfoList () | |
virtual | ~DocInfoList () |
virtual void | startIteration () const =0 |
prepare iteration | |
virtual bool | hasMore () const =0 |
test if there's any entry | |
virtual DocInfo * | nextEntry () const =0 |
fetch the next entry, return a pointer to a local static memory, so do not delete it | |
iterator & | begin () const |
iterator & | end () const |
Protected Member Functions | |
virtual DocInfo * | newElement () const |
Create new element of this list type for the iterator. | |
virtual DocInfo * | getElement (DocInfo *elem, POS_T position) const =0 |
Set element from position, returns pointer to the element. | |
virtual void | assignElement (DocInfo *to, DocInfo *from) const |
virtual POS_T | beginPosition () const =0 |
Position at beginning of list. | |
virtual POS_T | endPosition () const =0 |
Position at end of list. | |
virtual POS_T | nextPosition (POS_T position) const =0 |
Advance to next position. | |
Protected Attributes | |
DocInfoList::iterator | itbegin |
DocInfoList::iterator | itend |
Friends | |
class | iterator |
This is an abstract class that represents the doc entries in term index, i.e., the doc ID and the frequency of a term in the document.
|
|
|
|
|
Copy values from one Element to another Subclasses must cast from DocInfo if not using DocInfo elements Reimplemented in lemur::index::InvFPDocList. |
|
|
|
Position at beginning of list.
Implemented in lemur::index::InvDocList. |
|
|
|
Position at end of list.
Implemented in lemur::index::InvDocList. |
|
Set element from position, returns pointer to the element.
Implemented in lemur::index::InvDocList, and lemur::index::InvFPDocList. |
|
test if there's any entry
Implemented in lemur::index::InvDocList. |
|
Create new element of this list type for the iterator.
Reimplemented in lemur::index::InvFPDocList. |
|
fetch the next entry, return a pointer to a local static memory, so do not delete it
Implemented in lemur::index::InvDocList, and lemur::index::InvFPDocList. |
|
Advance to next position.
Implemented in lemur::index::InvDocList, and lemur::index::InvFPDocList. |
|
prepare iteration
Implemented in lemur::index::InvDocList. |
|
|
|
|
|
|