FirteX-高性能全文索引和检索平台API Documentation |
00001 // 00002 // Copyright(C) 2005--2006 Institute of Computing Tech, Chinese Academy of Sciences. 00003 // All rights reserved. 00004 // This file is part of FirteX (www.firtex.org) 00005 // 00006 // Use of the FirteX is subject to the terms of the software license set forth in 00007 // the LICENSE file included with this software, and also available at 00008 // http://www.firtex.org/license.html 00009 // 00010 // Author : 郭瑞杰(GuoRuijie) 00011 // Email : ruijieguo@software.ict.ac.cn 00012 // Created : 2006/7/17 00013 // 00014 #ifndef _TERMITERATOR_H 00015 #define _TERMITERATOR_H 00016 00017 #if _MSC_VER > 1000 00018 #pragma once 00019 #endif // _MSC_VER > 1000 00020 00021 #include "Term.h" 00022 00023 namespace firtex 00024 { 00025 namespace index 00026 { 00027 class CTermIterator 00028 { 00029 public: 00030 00031 CTermIterator(void) 00032 { 00033 } 00034 00035 virtual ~CTermIterator(void) 00036 { 00037 } 00038 public: 00043 virtual bool next() = 0; 00044 00050 virtual bool skipTo(const CTerm* target) = 0; 00051 00055 virtual const CTerm* term() = 0; 00056 00060 virtual freq_t docFreq() = 0; 00061 }; 00062 } 00063 } 00064 00065 #endif
http://www.firtex.org http://www.sourceforge.net/projects/firtex