#include <token.h>
Inherits PhraseHunter::Token.
Inherited by PhraseHunter::CorpusToken, and PhraseHunter::LightCorpusToken.
Inheritance diagram for PhraseHunter::CorpusTokenBase:


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 |
Definition at line 123 of file token.h.
| PhraseHunter::CorpusTokenBase::CorpusTokenBase | ( | const char * | token, | |
| TokenID | id | |||
| ) | [inline, protected] |
| PhraseHunter::CorpusTokenBase::CorpusTokenBase | ( | schma::UnicodePtr | token, | |
| TokenID | id | |||
| ) | [inline, protected] |
| bool PhraseHunter::CorpusTokenBase::boolean_test | ( | ) | const [inline, protected] |
| 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.
TokenID PhraseHunter::CorpusTokenBase::m_id [protected] |
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().
1.5.1