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


Loading...
Searching...
No Matches
CharArraySet.h
Go to the documentation of this file.
1
2// 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
12namespace Lucene {
13
17class LPPAPI CharArraySet : public LuceneObject {
18public:
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
31protected:
34
35public:
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
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
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
CharArraySet(bool ignoreCase)
HashSet< String >::iterator begin()
CharArraySet(Collection< String > entries, bool ignoreCase)
Create set from a collection of strings.
virtual bool contains(const String &text)
bool ignoreCase
Definition CharArraySet.h:33
HashSet< String >::iterator end()
HashSet< String > entries
Definition CharArraySet.h:32
virtual int32_t size()
virtual bool add(CharArray text)
Add this char[] into the set.
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.
virtual bool isEmpty()
virtual bool add(const String &text)
Add this String into the set.
CharArraySet(HashSet< String > entries, bool ignoreCase)
Create set from a set of strings.
Utility template class to handle collections that can be safely copied and shared.
Definition Collection.h:17
Utility template class to handle hash set collections that can be safely copied and shared.
Definition HashSet.h:17
set_type::iterator iterator
Definition HashSet.h:21
Base class for all Lucene classes.
Definition LuceneObject.h:31
Definition AbstractAllTermDocs.h:12

clucene.sourceforge.net