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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
CharArraySet.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2011 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  {
19  public:
20  CharArraySet(bool ignoreCase);
21 
23  CharArraySet(HashSet<String> entries, bool ignoreCase);
24 
26  CharArraySet(Collection<String> entries, bool ignoreCase);
27 
28  virtual ~CharArraySet();
29 
31 
32  protected:
33  HashSet<String> entries;
34  bool ignoreCase;
35 
36  public:
37  virtual bool contains(const String& text);
38 
40  virtual bool contains(const wchar_t* text, int32_t offset, int32_t length);
41 
43  virtual bool add(const String& text);
44 
46  virtual bool add(CharArray text);
47 
48  virtual int32_t size();
49  virtual bool isEmpty();
50 
53  };
54 }
55 
56 #endif

clucene.sourceforge.net