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

lemur::utility::HashFreqVector Class Reference

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

#include <FreqVector.hpp>

Inheritance diagram for lemur::utility::HashFreqVector:

lemur::utility::FreqVector lemur::utility::CSet< FreqCount, int > lemur::utility::ISet< FreqCount > lemur::utility::PSet< FreqCount > List of all members.

Public Member Functions

 HashFreqVector ()
 HashFreqVector (const lemur::api::Index &index, lemur::api::DOCID_T docID)
 Construct a document frequency vector based on the counts stored in an index.

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

lemur::utility::HashFreqVector::HashFreqVector  )  [inline]
 

lemur::utility::HashFreqVector::HashFreqVector const lemur::api::Index index,
lemur::api::DOCID_T  docID
 

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

virtual lemur::utility::HashFreqVector::~HashFreqVector  )  [inline, virtual]
 


Member Function Documentation

virtual bool lemur::utility::HashFreqVector::find lemur::api::DOCID_T  ind,
int &  freq
const [virtual]
 

virtual bool lemur::utility::HashFreqVector::hasMore  )  const [inline, virtual]
 

Implements lemur::utility::FreqVector.

virtual void lemur::utility::HashFreqVector::nextFreq lemur::api::DOCID_T id,
int &  freq
const [virtual]
 

virtual int lemur::utility::HashFreqVector::size  )  const [inline, virtual]
 

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

Implements lemur::utility::FreqVector.

virtual void lemur::utility::HashFreqVector::startIteration  )  const [inline, virtual]
 

Implements lemur::utility::FreqVector.


Member Data Documentation

int lemur::utility::HashFreqVector::i [mutable, protected]
 


The documentation for this class was generated from the following files:
Generated on Tue Jun 15 11:03:07 2010 for Lemur by doxygen 1.3.4