00001 00004 /* Copyright (C) 2009 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 #include <config.h> 00022 00023 #include "xapian/weight.h" 00024 00025 using namespace std; 00026 00027 namespace Xapian { 00028 00029 BoolWeight * 00030 BoolWeight::clone() const 00031 { 00032 return new BoolWeight; 00033 } 00034 00035 void 00036 BoolWeight::init(double) 00037 { 00038 // Nothing to do here. 00039 } 00040 00041 string 00042 BoolWeight::name() const 00043 { 00044 return "Xapian::BoolWeight"; 00045 } 00046 00047 string 00048 BoolWeight::serialise() const 00049 { 00050 // No parameters to serialise. 00051 return string(); 00052 } 00053 00054 BoolWeight * 00055 BoolWeight::unserialise(const string &) const 00056 { 00057 return new BoolWeight; 00058 } 00059 00060 Xapian::weight 00061 BoolWeight::get_sumpart(Xapian::termcount, Xapian::termcount) const 00062 { 00063 return 0; 00064 } 00065 00066 Xapian::weight 00067 BoolWeight::get_maxpart() const 00068 { 00069 return 0; 00070 } 00071 00072 Xapian::weight 00073 BoolWeight::get_sumextra(Xapian::termcount) const 00074 { 00075 return 0; 00076 } 00077 00078 Xapian::weight 00079 BoolWeight::get_maxextra() const 00080 { 00081 return 0; 00082 } 00083 00084 }