ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/Search/trunk/Searcher.hpp
(Generate patch)

Comparing:
trunk/Search/Searcher.h (file contents), Revision 194 by douglas, 2003-07-11T00:54:47-07:00 vs.
trunk/Search/Searcher.hpp (file contents), Revision 348 by Douglas Thrift, 2004-05-26T17:44:17-07:00

# Line 1 | Line 1
1   /* ============================================================================
2   * Douglas Thrift's Search Engine License
3   *
4 < * Copyright (C) 2002-2003, Douglas Thrift. All Rights Reserved.
4 > * Copyright (C) 2002-2004, Douglas Thrift. All Rights Reserved.
5   * Redistribution and use in source and binary forms, with or without
6   * modification, are permitted provided that the following conditions are met:
7   *
# Line 46 | Line 46
46   //
47   // Douglas Thrift
48   //
49 < // $Id: Searcher.h,v 1.3 2003/07/11 07:54:47 douglas Exp $
49 > // $Id$
50  
51 < #ifndef _Searcher_h_
52 < #define _Searcher_h_
51 > #ifndef _Searcher_hpp_
52 > #define _Searcher_hpp_
53  
54 < #include "Search.h"
55 < #include "Page.h"
56 < #include "URL.h"
57 < #include "Ranker.h"
54 > #include "Search.hpp"
55 > #include "Page.hpp"
56 > #include "URL.hpp"
57 > #include "Ranker.hpp"
58  
59   typedef multiset<Ranker, greater<Ranker> > MultiSet;
60   typedef multiset<Ranker, greater<Ranker> >::iterator MultiSetIterator;
# Line 67 | Line 67 | private:
67          MultiSet pages;
68          set<string> common;
69          vector<string> commonUsed;
70 <        bool and_;
71 <        bool or_;
70 >        bool and_, or_;
71          string ignore;
72 <        clock_t start;
74 <        clock_t finish;
72 >        clock_t start, finish;
73          void search(Page& page);
74          void setQuery();
75          void setCommon();
# Line 92 | Line 90 | public:
90          double time() { return double(finish - start) / double(CLOCKS_PER_SEC); }
91   };
92  
93 < #endif // _Searcher_h_
93 > #endif // _Searcher_hpp_

Comparing:
trunk/Search/Searcher.h (property svn:eol-style), Revision 194 by douglas, 2003-07-11T00:54:47-07:00 vs.
trunk/Search/Searcher.hpp (property svn:eol-style), Revision 348 by Douglas Thrift, 2004-05-26T17:44:17-07:00

# Line 0 | Line 1
1 + native

Comparing:
trunk/Search/Searcher.h (property svn:keywords), Revision 194 by douglas, 2003-07-11T00:54:47-07:00 vs.
trunk/Search/Searcher.hpp (property svn:keywords), Revision 348 by Douglas Thrift, 2004-05-26T17:44:17-07:00

# Line 0 | Line 1
1 + Id

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines