Main Page   Namespace List   Class Hierarchy   Alphabetical List   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 (const 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) const
 Find the frequency of a word identified by the index "ind".

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

virtual int size () const
 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 const 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
const [virtual]
 

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

Implements FreqVector.

virtual bool HashFreqVector::hasMore   const [inline, virtual]
 

Implements FreqVector.

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

Fetch the next frequency entry.

Implements FreqVector.

virtual int HashFreqVector::size   const [inline, virtual]
 

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

Implements FreqVector.

virtual void HashFreqVector::startIteration   const [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 Jul 2 16:25:41 2004 for Lemur Toolkit by doxygen1.2.18