queryparser/termgenerator_internal.h

Go to the documentation of this file.
00001 
00004 /* Copyright (C) 2007 Olly Betts
00005  *
00006  * This program is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 2 of the License, or
00009  * (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
00019  */
00020 
00021 #ifndef XAPIAN_INCLUDED_TERMGENERATOR_INTERNAL_H
00022 #define XAPIAN_INCLUDED_TERMGENERATOR_INTERNAL_H
00023 
00024 #include <xapian/base.h>
00025 #include <xapian/database.h>
00026 #include <xapian/document.h>
00027 #include <xapian/termgenerator.h>
00028 #include <xapian/stem.h>
00029 
00030 namespace Xapian {
00031 
00032 class Stopper;
00033 
00034 class TermGenerator::Internal : public Xapian::Internal::RefCntBase {
00035     friend class TermGenerator;
00036     Stem stemmer;
00037     const Stopper * stopper;
00038     Document doc;
00039     termcount termpos;
00040     TermGenerator::flags flags;
00041     WritableDatabase db;
00042 
00043   public:
00044     Internal() : stopper(NULL), termpos(0),
00045         flags(TermGenerator::flags(0)) { }
00046     void index_text(Utf8Iterator itor,
00047                     termcount weight,
00048                     const std::string & prefix,
00049                     bool with_positions);
00050 };
00051 
00052 }
00053 
00054 #endif // XAPIAN_INCLUDED_TERMGENERATOR_INTERNAL_H

Documentation for Xapian (version 1.0.10).
Generated on 24 Dec 2008 by Doxygen 1.5.2.