A simple class that stores Strings as char[]'s in a hash table. Note that this is not a general purpose class. For example, it cannot remove items from the set, nor does it resize its hash table to be smaller, etc. It is designed to be quick to test if a char[] is in the set without the necessity of converting it to a String first.
More...
#include <CharArraySet.h>
A simple class that stores Strings as char[]'s in a hash table. Note that this is not a general purpose class. For example, it cannot remove items from the set, nor does it resize its hash table to be smaller, etc. It is designed to be quick to test if a char[] is in the set without the necessity of converting it to a String first.
◆ CharArraySet() [1/3]
Lucene::CharArraySet::CharArraySet |
( |
bool |
ignoreCase | ) |
|
◆ CharArraySet() [2/3]
Lucene::CharArraySet::CharArraySet |
( |
HashSet< String > |
entries, |
|
|
bool |
ignoreCase |
|
) |
| |
Create set from a set of strings.
◆ CharArraySet() [3/3]
Lucene::CharArraySet::CharArraySet |
( |
Collection< String > |
entries, |
|
|
bool |
ignoreCase |
|
) |
| |
Create set from a collection of strings.
◆ ~CharArraySet()
virtual Lucene::CharArraySet::~CharArraySet |
( |
| ) |
|
|
virtual |
◆ _getClassName()
static String Lucene::CharArraySet::_getClassName |
( |
| ) |
|
|
inlinestatic |
◆ add() [1/2]
virtual bool Lucene::CharArraySet::add |
( |
CharArray |
text | ) |
|
|
virtual |
Add this char[] into the set.
◆ add() [2/2]
virtual bool Lucene::CharArraySet::add |
( |
const String & |
text | ) |
|
|
virtual |
Add this String into the set.
◆ begin()
HashSet< String >::iterator Lucene::CharArraySet::begin |
( |
| ) |
|
◆ contains() [1/2]
virtual bool Lucene::CharArraySet::contains |
( |
const String & |
text | ) |
|
|
virtual |
◆ contains() [2/2]
virtual bool Lucene::CharArraySet::contains |
( |
const wchar_t * |
text, |
|
|
int32_t |
offset, |
|
|
int32_t |
length |
|
) |
| |
|
virtual |
True if the length chars of text starting at offset are in the set.
◆ end()
HashSet< String >::iterator Lucene::CharArraySet::end |
( |
| ) |
|
◆ getClassName()
virtual String Lucene::CharArraySet::getClassName |
( |
| ) |
|
|
inlinevirtual |
◆ isEmpty()
virtual bool Lucene::CharArraySet::isEmpty |
( |
| ) |
|
|
virtual |
◆ shared_from_this()
boost::shared_ptr< CharArraySet > Lucene::CharArraySet::shared_from_this |
( |
| ) |
|
|
inline |
◆ size()
virtual int32_t Lucene::CharArraySet::size |
( |
| ) |
|
|
virtual |
◆ entries
HashSet<String> Lucene::CharArraySet::entries |
|
protected |
◆ ignoreCase
bool Lucene::CharArraySet::ignoreCase |
|
protected |
The documentation for this class was generated from the following file: