Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

InvTermList Class Reference

#include <InvTermList.hpp>

Inheritance diagram for InvTermList:

TermInfoList List of all members.

Public Methods

 InvTermList ()
 ~InvTermList ()
void startIteration ()
 prepare iteration

bool hasMore ()
 has more entries

TermInfonextEntry ()
 Get a pointer to the next entry (pointer to a local static memory).

int docLength ()
 Get the length of this document.

int termCount ()
 Get the number of terms in this document.

int docID ()
 Get the docid this list is for.

bool binRead (ifstream &infile)

Detailed Description

This is a class that represents the term entries in doc index, to be used with InvFPIndex i.e., the ID and frequency of all terms in a document.


Constructor & Destructor Documentation

InvTermList::InvTermList  
 

InvTermList::~InvTermList  
 


Member Function Documentation

bool InvTermList::binRead ifstream &    infile
 

Read in a TermInfoList object from a file Assumes the following format: DOCID DOCLENGTH TID TERM_COUNT ..

int InvTermList::docID   [inline]
 

Get the docid this list is for.

int InvTermList::docLength   [inline]
 

Get the length of this document.

bool InvTermList::hasMore   [virtual]
 

has more entries

Implements TermInfoList.

TermInfo * InvTermList::nextEntry   [virtual]
 

Get a pointer to the next entry (pointer to a local static memory).

Implements TermInfoList.

void InvTermList::startIteration   [virtual]
 

prepare iteration

Implements TermInfoList.

int InvTermList::termCount   [inline]
 

Get the number of terms in this document.


The documentation for this class was generated from the following files:
Generated on Tue Nov 25 11:27:12 2003 for Lemur Toolkit by doxygen1.2.18