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

clucene.sourceforge.net