include/xapian/types.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
00007  * modify it under the terms of the GNU General Public License as
00008  * published by the Free Software Foundation; either version 2 of the
00009  * License, or (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_TYPES_H
00022 #define XAPIAN_INCLUDED_TYPES_H
00023 
00024 namespace Xapian {
00025 
00031 typedef unsigned doccount;
00032 
00038 typedef int doccount_diff; /* FIXME: can overflow with more than 2^31 docs. */
00039 
00045 typedef unsigned docid;
00046 
00052 typedef double doclength;
00053 
00055 typedef int percent;
00056 
00061 typedef unsigned termcount;
00062 
00068 typedef int termcount_diff; /* FIXME: can overflow with more than 2^31 terms. */
00069 
00072 typedef unsigned termpos;
00073 
00079 typedef int termpos_diff; /* FIXME: can overflow. */
00080 
00086 typedef unsigned timeout;
00087 
00092 typedef unsigned valueno;
00093 
00099 typedef int valueno_diff; /* FIXME: can overflow. */
00100 
00102 typedef double weight;
00103 
00105 const valueno BAD_VALUENO = static_cast<valueno>(-1);
00106 
00107 }
00108 
00109 #endif /* XAPIAN_INCLUDED_TYPES_H */

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