libept
0.5.25
Main Page
Namespaces
Classes
Files
File List
File Members
ept
textsearch
extraindexers.h
Go to the documentation of this file.
1
#ifndef EPT_TEXTSEARCH_EXTRAINDEXERS_H
2
#define EPT_TEXTSEARCH_EXTRAINDEXERS_H
3
9
/*
10
* Copyright (C) 2007 Enrico Zini <enrico@debian.org>
11
*
12
* This program is free software; you can redistribute it and/or modify
13
* it under the terms of the GNU General Public License as published by
14
* the Free Software Foundation; either version 2 of the License, or
15
* (at your option) any later version.
16
*
17
* This program is distributed in the hope that it will be useful,
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
* GNU General Public License for more details.
21
*
22
* You should have received a copy of the GNU General Public License
23
* along with this program; if not, write to the Free Software
24
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25
*/
26
27
#include <
ept/textsearch/textsearch.h
>
28
29
namespace
ept {
30
namespace
debtags {
31
class
Debtags;
32
}
33
namespace
textsearch {
34
35
struct
AptTagsExtraIndexer
:
public
TextSearch::ExtraIndexer
36
{
37
virtual
void
operator()
(Xapian::Document& doc,
const
apt::PackageRecord
& rec)
const
;
38
};
39
40
struct
DebtagsExtraIndexer
:
public
TextSearch::ExtraIndexer
41
{
42
const
debtags::Debtags
&
debtags
;
43
DebtagsExtraIndexer
(
const
debtags::Debtags
&
debtags
) : debtags(debtags) {}
44
virtual
void
operator()
(Xapian::Document& doc,
const
apt::PackageRecord
& rec)
const
;
45
};
46
47
}
48
}
49
50
// vim:set ts=4 sw=4:
51
#endif
ept::textsearch::DebtagsExtraIndexer
Definition:
extraindexers.h:40
ept::textsearch::DebtagsExtraIndexer::operator()
virtual void operator()(Xapian::Document &doc, const apt::PackageRecord &rec) const
Definition:
extraindexers.cc:44
ept::textsearch::TextSearch::ExtraIndexer
Definition:
textsearch.h:121
textsearch.h
ept::textsearch::AptTagsExtraIndexer::operator()
virtual void operator()(Xapian::Document &doc, const apt::PackageRecord &rec) const
Definition:
extraindexers.cc:35
ept::apt::PackageRecord
RecordParser specialised with access methods for common Debian package information.
Definition:
packagerecord.h:36
ept::debtags::Debtags
Access the on-disk Debtags tag database.
Definition:
debtags.h:75
ept::textsearch::AptTagsExtraIndexer
Definition:
extraindexers.h:35
ept::textsearch::DebtagsExtraIndexer::DebtagsExtraIndexer
DebtagsExtraIndexer(const debtags::Debtags &debtags)
Definition:
extraindexers.h:43
ept::textsearch::DebtagsExtraIndexer::debtags
const debtags::Debtags & debtags
Definition:
extraindexers.h:42
Generated on Tue Apr 7 2020 14:40:28 for libept by
1.8.6