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>
Detailed Description
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.
Constructor & Destructor Documentation
Lucene::CharArraySet::CharArraySet |
( |
bool |
ignoreCase | ) |
|
Lucene::CharArraySet::CharArraySet |
( |
HashSet< String > |
entries, |
|
|
bool |
ignoreCase |
|
) |
| |
Create set from a set of strings.
Lucene::CharArraySet::CharArraySet |
( |
Collection< String > |
entries, |
|
|
bool |
ignoreCase |
|
) |
| |
Create set from a collection of strings.
virtual Lucene::CharArraySet::~CharArraySet |
( |
| ) |
|
|
virtual |
Member Function Documentation
static String Lucene::CharArraySet::_getClassName |
( |
| ) |
|
|
inlinestatic |
virtual bool Lucene::CharArraySet::add |
( |
const String & |
text | ) |
|
|
virtual |
Add this String into the set.
virtual bool Lucene::CharArraySet::add |
( |
CharArray |
text | ) |
|
|
virtual |
Add this char[] into the set.
HashSet<String>::iterator Lucene::CharArraySet::begin |
( |
| ) |
|
virtual bool Lucene::CharArraySet::contains |
( |
const String & |
text | ) |
|
|
virtual |
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.
HashSet<String>::iterator Lucene::CharArraySet::end |
( |
| ) |
|
virtual String Lucene::CharArraySet::getClassName |
( |
| ) |
|
|
inlinevirtual |
virtual bool Lucene::CharArraySet::isEmpty |
( |
| ) |
|
|
virtual |
boost::shared_ptr< CharArraySet > Lucene::CharArraySet::shared_from_this |
( |
| ) |
|
|
inline |
virtual int32_t Lucene::CharArraySet::size |
( |
| ) |
|
|
virtual |
Field Documentation
HashSet<String> Lucene::CharArraySet::entries |
|
protected |
bool Lucene::CharArraySet::ignoreCase |
|
protected |
The documentation for this class was generated from the following file: