FirteX-高性能全文索引和检索平台

API Documentation


首页 | 名字空间列表 | 类继承关系 | 组合类型列表 | $(BL\录(B | 文件列表 | 名字空间成员 | 组合类型成员 | 文件成员

firtex::analyzer::CTokens类参考

#include <Tokens.h>

所有成员的列表。

公有成员

 CTokens (void)
 CTokens (TokenType type)
 CTokens (TokenType type, int nMaxTokens)
 CTokens (TokenType type, char *buffer, size_t size)
 CTokens (const CTokens &clone)
virtual ~CTokens (void)
void startIterator ()
bool hasNext ()
CTokennext ()
TokenType getType ()
void setType (TokenType type)
size_t getCapacity ()
int getTokenNum ()
int getMaxTokens ()
void setMaxTokens (int nMaxTokens)
void clear ()
char * getBuffer ()
bool appendWord (termid_t tid)
bool appendDate (int64_t dt)
bool appendName ()
bool appendCompany ()
bool appendNum ()
bool appendAlpha ()
bool appendAlphaNum ()
bool appendURL ()

保护成员

void grow (size_t nNewCapacity=0)
void readString (string &s)
void writeString (const string &s)
int32_t readVInt ()
void writeVInt (int32_t i)

保护属性

TokenType m_type
char * m_buffer
size_t m_nCapacity
size_t m_nTokenPointer
int m_nTokenNum
int m_tokenSize
int m_nMaxTokens
int m_nIterator
size_t m_pCurTokenPointer
bool m_bOwn
vector< CToken * > m_tokens


构造及析构函数文档

firtex::analyzer::CTokens::CTokens void   ) 
 

firtex::analyzer::CTokens::CTokens TokenType  type  ) 
 

firtex::analyzer::CTokens::CTokens TokenType  type,
int  nMaxTokens
 

firtex::analyzer::CTokens::CTokens TokenType  type,
char *  buffer,
size_t  size
 

firtex::analyzer::CTokens::CTokens const CTokens clone  ) 
 

virtual firtex::analyzer::CTokens::~CTokens void   )  [virtual]
 


成员函数文档

bool firtex::analyzer::CTokens::appendAlpha  )  [inline]
 

bool firtex::analyzer::CTokens::appendAlphaNum  )  [inline]
 

bool firtex::analyzer::CTokens::appendCompany  )  [inline]
 

bool firtex::analyzer::CTokens::appendDate int64_t  dt  )  [inline]
 

bool firtex::analyzer::CTokens::appendName  )  [inline]
 

bool firtex::analyzer::CTokens::appendNum  )  [inline]
 

bool firtex::analyzer::CTokens::appendURL  )  [inline]
 

bool firtex::analyzer::CTokens::appendWord termid_t  tid  )  [inline]
 

void firtex::analyzer::CTokens::clear  ) 
 

char* firtex::analyzer::CTokens::getBuffer  )  [inline]
 

size_t firtex::analyzer::CTokens::getCapacity  )  [inline]
 

int firtex::analyzer::CTokens::getMaxTokens  )  [inline]
 

int firtex::analyzer::CTokens::getTokenNum  )  [inline]
 

TokenType firtex::analyzer::CTokens::getType  )  [inline]
 

void firtex::analyzer::CTokens::grow size_t  nNewCapacity = 0  )  [protected]
 

扩充容器空间

参数:
nNewCapacity 目标容量大小,如果为0 则自动按2的指数增长

bool firtex::analyzer::CTokens::hasNext  ) 
 

CToken* firtex::analyzer::CTokens::next  ) 
 

void firtex::analyzer::CTokens::readString string &  s  )  [protected]
 

int32_t firtex::analyzer::CTokens::readVInt  )  [protected]
 

void firtex::analyzer::CTokens::setMaxTokens int  nMaxTokens  ) 
 

void firtex::analyzer::CTokens::setType TokenType  type  )  [inline]
 

void firtex::analyzer::CTokens::startIterator  ) 
 

void firtex::analyzer::CTokens::writeString const string &  s  )  [protected]
 

void firtex::analyzer::CTokens::writeVInt int32_t  i  )  [protected]
 


成员数据文档

bool firtex::analyzer::CTokens::m_bOwn [protected]
 

char* firtex::analyzer::CTokens::m_buffer [protected]
 

size_t firtex::analyzer::CTokens::m_nCapacity [protected]
 

int firtex::analyzer::CTokens::m_nIterator [protected]
 

int firtex::analyzer::CTokens::m_nMaxTokens [protected]
 

int firtex::analyzer::CTokens::m_nTokenNum [protected]
 

size_t firtex::analyzer::CTokens::m_nTokenPointer [protected]
 

size_t firtex::analyzer::CTokens::m_pCurTokenPointer [protected]
 

vector<CToken*> firtex::analyzer::CTokens::m_tokens [protected]
 

int firtex::analyzer::CTokens::m_tokenSize [protected]
 

TokenType firtex::analyzer::CTokens::m_type [protected]
 


该类的文档由以下文件生成:

http://www.firtex.org http://www.sourceforge.net/projects/firtex