#include <tokencontext.h>
Public Member Functions | |
DocID | docID () |
void | setDocID (DocID docID) |
void | setPosition (IdxPos position) |
void | setTokenLength (size_t tokenLength) |
IdxPos | position () |
size_t | tokenLength () |
bool | empty () |
void | setLeftContext (schma::UnicodePtr leftContext) |
void | setToken (schma::UnicodePtr token) |
void | setRightContext (schma::UnicodePtr rightContext) |
schma::UnicodePtr | leftContext () |
schma::UnicodePtr | rightContext () |
schma::UnicodePtr | token () |
Static Public Member Functions | |
static TokenContextPtr | emptyContext (DocID, IdxPos, size_t) |
Private Member Functions | |
TokenContext () | |
Private Attributes | |
schma::UnicodePtr | m_leftContext |
schma::UnicodePtr | m_token |
schma::UnicodePtr | m_rightContext |
DocID | m_docID |
IdxPos | m_position |
size_t | m_tokenLength |
Definition at line 31 of file tokencontext.h.
PhraseHunter::TokenContext::TokenContext | ( | ) | [inline, private] |
Definition at line 102 of file tokencontext.h.
TokenContextPtr PhraseHunter::TokenContext::emptyContext | ( | DocID | , | |
IdxPos | , | |||
size_t | ||||
) | [static] |
Definition at line 25 of file tokencontext.cpp.
Referenced by PhraseHunter::ContextReader::context().
DocID PhraseHunter::TokenContext::docID | ( | ) | [inline] |
void PhraseHunter::TokenContext::setDocID | ( | DocID | docID | ) | [inline] |
void PhraseHunter::TokenContext::setPosition | ( | IdxPos | position | ) | [inline] |
void PhraseHunter::TokenContext::setTokenLength | ( | size_t | tokenLength | ) | [inline] |
IdxPos PhraseHunter::TokenContext::position | ( | ) | [inline] |
size_t PhraseHunter::TokenContext::tokenLength | ( | ) | [inline] |
bool PhraseHunter::TokenContext::empty | ( | ) | [inline] |
void PhraseHunter::TokenContext::setLeftContext | ( | schma::UnicodePtr | leftContext | ) | [inline] |
void PhraseHunter::TokenContext::setToken | ( | schma::UnicodePtr | token | ) | [inline] |
void PhraseHunter::TokenContext::setRightContext | ( | schma::UnicodePtr | rightContext | ) | [inline] |
schma::UnicodePtr PhraseHunter::TokenContext::leftContext | ( | ) | [inline] |
schma::UnicodePtr PhraseHunter::TokenContext::rightContext | ( | ) | [inline] |
schma::UnicodePtr PhraseHunter::TokenContext::token | ( | ) | [inline] |
Definition at line 94 of file tokencontext.h.
Referenced by empty(), leftContext(), and setLeftContext().
DocID PhraseHunter::TokenContext::m_docID [private] |
IdxPos PhraseHunter::TokenContext::m_position [private] |
size_t PhraseHunter::TokenContext::m_tokenLength [private] |