Lucene++ - a full-featured, c++ search engine
API Documentation
include
CharArraySet.h
Go to the documentation of this file.
1
// Copyright (c) 2009-2014 Alan Wright. All rights reserved.
3
// Distributable under the terms of either the Apache License (Version 2.0)
4
// or the GNU Lesser General Public License.
6
7
#ifndef CHARARRAYSET_H
8
#define CHARARRAYSET_H
9
10
#include "
LuceneObject.h
"
11
12
namespace
Lucene
{
13
17
class
LPPAPI
CharArraySet
:
public
LuceneObject
{
18
public
:
19
CharArraySet
(
bool
ignoreCase);
20
22
CharArraySet
(
HashSet<String>
entries,
bool
ignoreCase);
23
25
CharArraySet
(
Collection<String>
entries,
bool
ignoreCase);
26
27
virtual
~
CharArraySet
();
28
29
LUCENE_CLASS
(
CharArraySet
);
30
31
protected
:
32
HashSet<String>
entries;
33
bool
ignoreCase
;
34
35
public
:
36
virtual
bool
contains(
const
String& text);
37
39
virtual
bool
contains(
const
wchar_t
* text, int32_t offset, int32_t length);
40
42
virtual
bool
add(
const
String& text);
43
45
virtual
bool
add(CharArray text);
46
47
virtual
int32_t size();
48
virtual
bool
isEmpty();
49
50
HashSet<String>::iterator
begin();
51
HashSet<String>::iterator
end();
52
};
53
54
}
55
56
#endif
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition:
LuceneObject.h:24
Lucene::Collection< String >
Lucene
Definition:
AbstractAllTermDocs.h:12
Lucene::CharArraySet
A simple class that stores Strings as char[]'s in a hash table. Note that this is not a general purpo...
Definition:
CharArraySet.h:17
Lucene::LuceneObject
Base class for all Lucene classes.
Definition:
LuceneObject.h:31
Lucene::CharArraySet::ignoreCase
bool ignoreCase
Definition:
CharArraySet.h:33
Lucene::HashSet< String >
LuceneObject.h
clucene.sourceforge.net