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

HashFreqVector Class Reference

Representation of a frequency vector with a hash table. More...

#include <FreqVector.hpp>

Inheritance diagram for HashFreqVector:

FreqVector CSet ISet PSet List of all members.

Public Methods

 HashFreqVector ()
 HashFreqVector (Index &index,int docID)
 Construct a document frequency vector based on the counts stored in an index.

virtual ~HashFreqVector ()
virtual bool find (int ind,int &freq)
 Find the frequency of a word identified by the index "ind".

virtual void startIteration ()
virtual bool hasMore ()
virtual void nextFreq (int &id,int &freq)
 Fetch the next frequency entry.

virtual int size ()
 return the total number of non-zero elements in the vector.


Protected Attributes

int i

Detailed Description

Representation of a frequency vector with a hash table.


Constructor & Destructor Documentation

HashFreqVector::HashFreqVector ( ) [inline]
 

HashFreqVector::HashFreqVector ( Index & index,
int docID )
 

Construct a document frequency vector based on the counts stored in an index.

HashFreqVector::~HashFreqVector ( ) [inline, virtual]
 


Member Function Documentation

bool HashFreqVector::find ( int ind,
int & freq ) [virtual]
 

Find the frequency of a word identified by the index "ind".

Reimplemented from FreqVector.

bool HashFreqVector::hasMore ( ) [inline, virtual]
 

Reimplemented from FreqVector.

void HashFreqVector::nextFreq ( int & id,
int & freq ) [virtual]
 

Fetch the next frequency entry.

Reimplemented from FreqVector.

int HashFreqVector::size ( ) [inline, virtual]
 

return the total number of non-zero elements in the vector.

Reimplemented from FreqVector.

void HashFreqVector::startIteration ( ) [inline, virtual]
 

Reimplemented from FreqVector.


Member Data Documentation

int HashFreqVector::i [protected]
 


The documentation for this class was generated from the following files:
Generated at Fri Jul 26 18:22:48 2002 for LEMUR by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000