~ubuntu-branches/ubuntu/feisty/strigi/feisty-backports

« back to all changes in this revision

Viewing changes to src/streamindexer/querybitset.h

  • Committer: Bazaar Package Importer
  • Author(s): Fathi Boudra
  • Date: 2006-11-12 19:23:58 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20061112192358-bopz8iu9cr8bosyc
Tags: 0.3.9-1
* New upstream release
* Remove patch to inotify support option, merged upstream
* Add poppler-utils and wv as Depends
* Include utils.mk to rules
* Add deepfind, deepgrep, luceneindexer and xmlindexer to
  strigi-daemon.install
* Update strigi-daemon.lintian-overrides for 0.3.9 version

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef QUERYBITSET_H
2
 
#define QUERYBITSET_H
3
 
 
4
 
#include <map>
5
 
#include <string>
6
 
 
7
 
namespace jstreams {
8
 
 
9
 
class QueryBitset {
10
 
private:
11
 
    class Private;
12
 
    Private* p;
13
 
    int count;
14
 
public:
15
 
    QueryBitset();
16
 
    QueryBitset(const QueryBitset&);
17
 
    ~QueryBitset();
18
 
    const QueryBitset&operator=(const QueryBitset&);
19
 
};
20
 
 
21
 
class IndexManager;
22
 
class QueryBitsetCache {
23
 
private:
24
 
    std::map<std::string, const QueryBitset> cache;
25
 
    IndexManager* manager;
26
 
public:
27
 
    QueryBitsetCache(IndexManager*);
28
 
    bool hasQueryBitSet(const std::string& query) const;
29
 
    const QueryBitset getBitset(const std::string& query);
30
 
    void clear();
31
 
};
32
 
 
33
 
}
34
 
 
35
 
#endif