00001 /* positionlist.h 00002 * 00003 * ----START-LICENCE---- 00004 * Copyright 1999,2000,2001 BrightStation PLC 00005 * Copyright 2003,2004 Olly Betts 00006 * 00007 * This program is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU General Public License as 00009 * published by the Free Software Foundation; either version 2 of the 00010 * License, or (at your option) any later version. 00011 * 00012 * This program is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU General Public License 00018 * along with this program; if not, write to the Free Software 00019 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 00020 * USA 00021 */ 00022 00023 #ifndef OM_HGUARD_POSITIONLIST_H 00024 #define OM_HGUARD_POSITIONLIST_H 00025 00026 #include <xapian/types.h> 00027 #include <xapian/error.h> 00028 #include <xapian/positioniterator.h> 00029 00030 using namespace std; 00031 00033 class Xapian::PositionIterator::Internal : public Xapian::Internal::RefCntBase 00034 { 00035 private: 00037 Internal(const Internal &); 00038 00040 void operator=(const Internal &); 00041 public: 00043 Internal() { } 00044 00046 virtual ~Internal() { } 00047 00052 virtual Xapian::termcount get_size() const = 0; 00053 00055 virtual Xapian::termpos get_position() const = 0; 00056 00062 virtual void next() = 0; 00063 00069 virtual void skip_to(Xapian::termpos termpos) = 0; 00070 00073 virtual bool at_end() const = 0; 00074 00080 Xapian::termcount index; 00081 }; 00082 00083 typedef Xapian::PositionIterator::Internal PositionList; 00084 00085 #endif /* OM_HGUARD_POSITIONLIST_H */