CJKTokenIterator Class Reference

#include <cjk-tokenizer.h>

Collaboration diagram for CJKTokenIterator:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 CJKTokenIterator (const std::string &s)
 CJKTokenIterator (const Xapian::Utf8Iterator &it_)
 CJKTokenIterator ()
const std::string & operator* () const
CJKTokenIteratoroperator++ ()
unsigned get_length () const
 Get the length of the current token in Unicode characters.

Private Attributes

Xapian::Utf8Iterator it
Xapian::Utf8Iterator p
unsigned len
std::string current_token

Friends

bool operator== (const CJKTokenIterator &, const CJKTokenIterator &)


Detailed Description

Definition at line 51 of file cjk-tokenizer.h.


Constructor & Destructor Documentation

CJKTokenIterator::CJKTokenIterator ( const std::string &  s  )  [inline]

Definition at line 61 of file cjk-tokenizer.h.

CJKTokenIterator::CJKTokenIterator ( const Xapian::Utf8Iterator it_  )  [inline]

Definition at line 64 of file cjk-tokenizer.h.

CJKTokenIterator::CJKTokenIterator (  )  [inline]

Definition at line 67 of file cjk-tokenizer.h.


Member Function Documentation

unsigned CJKTokenIterator::get_length (  )  const [inline]

Get the length of the current token in Unicode characters.

Definition at line 75 of file cjk-tokenizer.h.

References len.

const string & CJKTokenIterator::operator* (  )  const

Definition at line 99 of file cjk-tokenizer.cc.

References Xapian::Unicode::append_utf8(), Assert, current_token, it, len, and p.

CJKTokenIterator & CJKTokenIterator::operator++ (  ) 

Definition at line 112 of file cjk-tokenizer.cc.

References Xapian::Unicode::append_utf8(), Assert, current_token, it, len, NGRAM_SIZE, and p.


Friends And Related Function Documentation

bool operator== ( const CJKTokenIterator a,
const CJKTokenIterator b 
) [friend]

Definition at line 81 of file cjk-tokenizer.h.


Member Data Documentation

std::string CJKTokenIterator::current_token [mutable, private]

Definition at line 58 of file cjk-tokenizer.h.

Referenced by operator*(), and operator++().

Definition at line 52 of file cjk-tokenizer.h.

Referenced by operator*(), operator++(), and operator==().

unsigned CJKTokenIterator::len [mutable, private]

Definition at line 56 of file cjk-tokenizer.h.

Referenced by get_length(), operator*(), and operator++().

Definition at line 54 of file cjk-tokenizer.h.

Referenced by operator*(), and operator++().


The documentation for this class was generated from the following files:

Documentation for Xapian (version 1.2.9).
Generated on 10 May 2012 by Doxygen 1.5.9.