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

lemur::utility::FreqVector Class Reference

Abstract class that represents a frequency vector accessible through an integer key. More...

#include <FreqVector.hpp>

Inheritance diagram for lemur::utility::FreqVector:

lemur::utility::FloatFreqVector lemur::utility::HashFreqVector List of all members.

Public Member Functions

virtual bool find (lemur::api::TERMID_T ind, int &freq) const =0
 Find the frequency of a word identified by the index "ind".

virtual void startIteration () const =0
virtual bool hasMore () const =0
virtual void nextFreq (lemur::api::TERMID_T &id, int &freq) const =0
 Fetch the next frequency entry.

virtual int size () const =0

Detailed Description

Abstract class that represents a frequency vector accessible through an integer key.


Member Function Documentation

virtual bool lemur::utility::FreqVector::find lemur::api::TERMID_T  ind,
int &  freq
const [pure virtual]
 

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

Implemented in lemur::utility::FloatFreqVector.

virtual bool lemur::utility::FreqVector::hasMore  )  const [pure virtual]
 

Implemented in lemur::utility::FloatFreqVector, and lemur::utility::HashFreqVector.

virtual void lemur::utility::FreqVector::nextFreq lemur::api::TERMID_T id,
int &  freq
const [pure virtual]
 

Fetch the next frequency entry.

Implemented in lemur::utility::FloatFreqVector.

virtual int lemur::utility::FreqVector::size  )  const [pure virtual]
 

Implemented in lemur::utility::FloatFreqVector, and lemur::utility::HashFreqVector.

virtual void lemur::utility::FreqVector::startIteration  )  const [pure virtual]
 

Implemented in lemur::utility::FloatFreqVector, and lemur::utility::HashFreqVector.


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