FirteX-高性能全文索引和检索平台API Documentation |
#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 () |
| CToken * | next () |
| 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 |
|
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
扩充容器空间
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
http://www.firtex.org http://www.sourceforge.net/projects/firtex