PhraseHunter::TokenContext Class Reference

Class that holds one specific context to a Token. More...

#include <tokencontext.h>

List of all members.

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


Detailed Description

Class that holds one specific context to a Token.

Definition at line 31 of file tokencontext.h.


Constructor & Destructor Documentation

PhraseHunter::TokenContext::TokenContext (  )  [inline, private]

Definition at line 102 of file tokencontext.h.


Member Function Documentation

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]

Definition at line 36 of file tokencontext.h.

References m_docID.

void PhraseHunter::TokenContext::setDocID ( DocID  docID  )  [inline]

Definition at line 41 of file tokencontext.h.

References m_docID.

void PhraseHunter::TokenContext::setPosition ( IdxPos  position  )  [inline]

Definition at line 45 of file tokencontext.h.

References m_position.

void PhraseHunter::TokenContext::setTokenLength ( size_t  tokenLength  )  [inline]

Definition at line 49 of file tokencontext.h.

References m_tokenLength.

IdxPos PhraseHunter::TokenContext::position (  )  [inline]

Definition at line 53 of file tokencontext.h.

References m_position.

size_t PhraseHunter::TokenContext::tokenLength (  )  [inline]

Definition at line 57 of file tokencontext.h.

References m_tokenLength.

bool PhraseHunter::TokenContext::empty (  )  [inline]

Definition at line 62 of file tokencontext.h.

References m_leftContext.

void PhraseHunter::TokenContext::setLeftContext ( schma::UnicodePtr  leftContext  )  [inline]

Definition at line 67 of file tokencontext.h.

References m_leftContext.

void PhraseHunter::TokenContext::setToken ( schma::UnicodePtr  token  )  [inline]

Definition at line 71 of file tokencontext.h.

References m_token.

void PhraseHunter::TokenContext::setRightContext ( schma::UnicodePtr  rightContext  )  [inline]

Definition at line 75 of file tokencontext.h.

References m_rightContext.

schma::UnicodePtr PhraseHunter::TokenContext::leftContext (  )  [inline]

Definition at line 80 of file tokencontext.h.

References m_leftContext.

schma::UnicodePtr PhraseHunter::TokenContext::rightContext (  )  [inline]

Definition at line 84 of file tokencontext.h.

References m_rightContext.

schma::UnicodePtr PhraseHunter::TokenContext::token (  )  [inline]

Definition at line 88 of file tokencontext.h.

References m_token.


Member Data Documentation

schma::UnicodePtr PhraseHunter::TokenContext::m_leftContext [private]

Definition at line 94 of file tokencontext.h.

Referenced by empty(), leftContext(), and setLeftContext().

schma::UnicodePtr PhraseHunter::TokenContext::m_token [private]

Definition at line 95 of file tokencontext.h.

Referenced by setToken(), and token().

schma::UnicodePtr PhraseHunter::TokenContext::m_rightContext [private]

Definition at line 96 of file tokencontext.h.

Referenced by rightContext(), and setRightContext().

DocID PhraseHunter::TokenContext::m_docID [private]

Definition at line 98 of file tokencontext.h.

Referenced by docID(), and setDocID().

IdxPos PhraseHunter::TokenContext::m_position [private]

Definition at line 99 of file tokencontext.h.

Referenced by position(), and setPosition().

size_t PhraseHunter::TokenContext::m_tokenLength [private]

Definition at line 100 of file tokencontext.h.

Referenced by setTokenLength(), and tokenLength().


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