common/alltermslist.h

Go to the documentation of this file.
00001 
00004 /* Copyright (C) 2007,2008 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_ALLTERMSLIST_H
00022 #define XAPIAN_INCLUDED_ALLTERMSLIST_H
00023 
00024 #include "termlist.h"
00025 
00027 class AllTermsList : public TermList {
00029     void operator=(const AllTermsList &);
00030 
00032     AllTermsList(const AllTermsList &);
00033 
00034   protected:
00036     AllTermsList() { }
00037 
00038   public:
00040     virtual Xapian::termcount get_approx_size() const;
00041 
00043     virtual std::string get_termname() const = 0;
00044 
00050     virtual Xapian::termcount get_wdf() const;
00051 
00053     virtual Xapian::doccount get_termfreq() const = 0;
00054 
00056     virtual Xapian::termcount get_collection_freq() const = 0;
00057 
00059     virtual TermList *next() = 0;
00060 
00066     virtual TermList *skip_to(const std::string &term) = 0;
00067 
00069     virtual bool at_end() const = 0;
00070 
00076     virtual Xapian::termcount positionlist_count() const;
00077 
00083     virtual Xapian::PositionIterator positionlist_begin() const;
00084 };
00085 
00086 #endif // XAPIAN_INCLUDED_ALLTERMSLIST_H

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