PhraseHunter::CorpusTokenBase Class Reference

Base class for all CorpusToken classes. More...

#include <token.h>

Inherits PhraseHunter::Token.

Inherited by PhraseHunter::CorpusToken, and PhraseHunter::LightCorpusToken.

Inheritance diagram for PhraseHunter::CorpusTokenBase:

Inheritance graph
[legend]
Collaboration diagram for PhraseHunter::CorpusTokenBase:

Collaboration graph
[legend]
List of all members.

Public Member Functions

TokenID id () const
 Returns the ID of this Token.
unsigned int corpusFrequency () const
 Return the number of times this Token occurs in the corpus.

Protected Member Functions

 CorpusTokenBase (const char *token, TokenID id)
 CorpusTokenBase (schma::UnicodePtr token, TokenID id)
bool boolean_test () const

Protected Attributes

TokenID m_id
unsigned int m_corpusfreq

Detailed Description

Base class for all CorpusToken classes.

Definition at line 123 of file token.h.


Constructor & Destructor Documentation

PhraseHunter::CorpusTokenBase::CorpusTokenBase ( const char *  token,
TokenID  id 
) [inline, protected]

Definition at line 126 of file token.h.

PhraseHunter::CorpusTokenBase::CorpusTokenBase ( schma::UnicodePtr  token,
TokenID  id 
) [inline, protected]

Definition at line 128 of file token.h.


Member Function Documentation

bool PhraseHunter::CorpusTokenBase::boolean_test (  )  const [inline, protected]

Definition at line 131 of file token.h.

References m_corpusfreq.

TokenID PhraseHunter::CorpusTokenBase::id (  )  const [inline, virtual]

Returns the ID of this Token.

Reimplemented from PhraseHunter::Token.

Definition at line 139 of file token.h.

References m_id.

unsigned int PhraseHunter::CorpusTokenBase::corpusFrequency (  )  const [inline, virtual]

Return the number of times this Token occurs in the corpus.

Implements PhraseHunter::Token.

Definition at line 141 of file token.h.

References m_corpusfreq.


Member Data Documentation

TokenID PhraseHunter::CorpusTokenBase::m_id [protected]

Definition at line 134 of file token.h.

Referenced by id().

unsigned int PhraseHunter::CorpusTokenBase::m_corpusfreq [protected]

Definition at line 135 of file token.h.

Referenced by boolean_test(), corpusFrequency(), PhraseHunter::CorpusToken::insertPositions(), PhraseHunter::CorpusToken::isEmpty(), and PhraseHunter::LightCorpusToken::LightCorpusToken().


The documentation for this class was generated from the following file:
Generated on Thu Dec 21 16:14:44 2006 for The Phrasehunter by  doxygen 1.5.1