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, DOCID_T docID)
 Construct a document frequency vector based on the counts stored in an index.

virtual ~HashFreqVector ()
virtual bool find (DOCID_T ind, int &freq) const
virtual void startIteration () const
virtual bool hasMore () const
virtual void nextFreq (DOCID_T &id, int &freq) const
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,
DOCID_T    docID
) 
 

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

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


Member Function Documentation

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

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

Implements FreqVector.

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

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 Wed Nov 3 12:59:37 2004 for Lemur Toolkit by doxygen1.2.18