Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

include/om/omexpanddecider.h

00001 /* omexpanddecider.h
00002  *
00003  * ----START-LICENCE----
00004  * Copyright 1999,2000,2001 BrightStation PLC
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307
00019  * USA
00020  * -----END-LICENCE-----
00021  */
00022 
00023 #ifndef OM_HGUARD_OMEXPANDDECIDER_H
00024 #define OM_HGUARD_OMEXPANDDECIDER_H
00025 
00026 #include "om/omenquire.h"
00027 #include <set>
00028 
00032 class OmExpandDeciderFilterTerms : public OmExpandDecider {
00033     public:
00037         OmExpandDeciderFilterTerms(OmTermIterator terms,
00038                                    OmTermIterator termsend);
00039 
00040         virtual int operator()(const om_termname &tname) const;
00041     private:
00042         std::set<om_termname> tset;
00043 };
00044 
00048 class OmExpandDeciderAnd : public OmExpandDecider {
00049     public:
00054         OmExpandDeciderAnd(const OmExpandDecider *left_,
00055                            const OmExpandDecider *right_);
00056 
00057         virtual int operator()(const om_termname &tname) const;
00058 
00059     private:
00060         const OmExpandDecider *left;
00061         const OmExpandDecider *right;
00062 };
00063 
00064 #endif /* OM_HGUARD_OMEXPANDDECIDER_H */
00065 

Documentation for Xapian (version 0.5.4).
Generated on 16 Oct 2002 by Doxygen 1.2.15.