#include <token.h>
Inherits PhraseHunter::Token.
Inheritance diagram for PhraseHunter::EmptyToken:
Public Member Functions | |
unsigned int | corpusFrequency () const |
Always returns 0. | |
bool | isEmpty () const |
Always returns true. | |
unsigned int | numTokens () const |
Always returns 0. | |
Static Public Member Functions | |
static TokenPtr | instance () |
Return instance() anywhere you would otherwise return NULL for a TokenPtr. | |
Protected Member Functions | |
bool | boolean_test () const |
Private Member Functions | |
EmptyToken () | |
Static Private Attributes | |
static TokenPtr | s_inst |
Definition at line 100 of file token.h.
bool PhraseHunter::EmptyToken::boolean_test | ( | ) | const [inline, protected] |
static TokenPtr PhraseHunter::EmptyToken::instance | ( | ) | [inline, static] |
Return instance() anywhere you would otherwise return NULL for a TokenPtr.
Definition at line 111 of file token.h.
References s_inst.
Referenced by PhraseHunter::Phrase::getAdjacent(), PhraseHunter::CorpusToken::loadFromCorpus(), PhraseHunter::LightCorpusToken::search(), PhraseHunter::SearchEngine::searchPhrase(), and PhraseHunter::SearchEngine::searchToken().
unsigned int PhraseHunter::EmptyToken::corpusFrequency | ( | ) | const [inline, virtual] |
bool PhraseHunter::EmptyToken::isEmpty | ( | ) | const [inline, virtual] |
unsigned int PhraseHunter::EmptyToken::numTokens | ( | ) | const [inline, virtual] |
TokenPtr PhraseHunter::EmptyToken::s_inst [static, private] |