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< FreqCount, int > ISet< FreqCount > PSet< FreqCount > 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.

virtual 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".

Implements FreqVector.

virtual bool HashFreqVector::hasMore   [inline, virtual]
 

Implements FreqVector.

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

Fetch the next frequency entry.

Implements FreqVector.

virtual int HashFreqVector::size   [inline, virtual]
 

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

Implements FreqVector.

virtual void HashFreqVector::startIteration   [inline, virtual]
 

Implements FreqVector.


Member Data Documentation

int HashFreqVector::i [protected]
 


The documentation for this class was generated from the following files:
Generated on Fri Feb 6 07:12:00 2004 for LEMUR by doxygen1.2.16