Lucene++ - a full-featured, c++ search engine
API Documentation


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 
30 
31 protected:
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 
52 };
53 
54 }
55 
56 #endif
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Lucene::Collection< String >
Lucene::CharArraySet::isEmpty
virtual bool isEmpty()
Lucene::CharArraySet::CharArraySet
CharArraySet(Collection< String > entries, bool ignoreCase)
Create set from a collection of strings.
Lucene::CharArraySet::size
virtual int32_t size()
Lucene::CharArraySet::entries
HashSet< String > entries
Definition: CharArraySet.h:29
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::contains
virtual bool contains(const wchar_t *text, int32_t offset, int32_t length)
True if the length chars of text starting at offset are in the set.
Lucene::CharArraySet::ignoreCase
bool ignoreCase
Definition: CharArraySet.h:33
Lucene::HashSet< String >
Lucene::CharArraySet::add
virtual bool add(CharArray text)
Add this char[] into the set.
Lucene::CharArraySet::CharArraySet
CharArraySet(bool ignoreCase)
Lucene::CharArraySet::contains
virtual bool contains(const String &text)
Lucene::CharArraySet::begin
HashSet< String >::iterator begin()
Lucene::CharArraySet::end
HashSet< String >::iterator end()
Lucene::CharArraySet::~CharArraySet
virtual ~CharArraySet()
Lucene::CharArraySet::CharArraySet
CharArraySet(HashSet< String > entries, bool ignoreCase)
Create set from a set of strings.
Lucene::CharArraySet::add
virtual bool add(const String &text)
Add this String into the set.
LuceneObject.h

clucene.sourceforge.net