Lucene++ - a full-featured, c++ search engine
API Documentation
Utility template class to handle hash set collections that can be safely copied and shared. More...
#include <HashSet.h>
Public Types | |
typedef HashSet< TYPE, HASH, EQUAL > | this_type |
typedef boost::unordered_set< TYPE, HASH, EQUAL > | set_type |
typedef set_type::iterator | iterator |
typedef set_type::const_iterator | const_iterator |
typedef TYPE | value_type |
Public Member Functions | |
virtual | ~HashSet () |
void | reset () |
int32_t | size () const |
bool | empty () const |
void | clear () |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
operator bool () const | |
bool | operator! () const |
set_type & | operator= (const set_type &other) |
bool | add (const TYPE &type) |
template<class ITER > | |
void | addAll (ITER first, ITER last) |
bool | remove (const TYPE &type) |
iterator | find (const TYPE &type) |
bool | contains (const TYPE &type) const |
![]() | |
virtual | ~LuceneSync () |
virtual SynchronizePtr | getSync () |
Return this object synchronize lock. | |
virtual LuceneSignalPtr | getSignal () |
Return this object signal. | |
virtual void | lock (int32_t timeout=0) |
Lock this object using an optional timeout. | |
virtual void | unlock () |
Unlock this object. | |
virtual bool | holdsLock () |
Returns true if this object is currently locked by current thread. | |
virtual void | wait (int32_t timeout=0) |
Wait for signal using an optional timeout. | |
virtual void | notifyAll () |
Notify all threads waiting for signal. | |
Static Public Member Functions | |
static this_type | newInstance () |
template<class ITER > | |
static this_type | newInstance (ITER first, ITER last) |
Protected Attributes | |
boost::shared_ptr< set_type > | setContainer |
![]() | |
SynchronizePtr | objectLock |
LuceneSignalPtr | objectSignal |
Utility template class to handle hash set collections that can be safely copied and shared.
typedef set_type::const_iterator Lucene::HashSet< TYPE, HASH, EQUAL >::const_iterator |
typedef set_type::iterator Lucene::HashSet< TYPE, HASH, EQUAL >::iterator |
typedef boost::unordered_set<TYPE, HASH, EQUAL> Lucene::HashSet< TYPE, HASH, EQUAL >::set_type |
typedef HashSet<TYPE, HASH, EQUAL> Lucene::HashSet< TYPE, HASH, EQUAL >::this_type |
typedef TYPE Lucene::HashSet< TYPE, HASH, EQUAL >::value_type |
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
Referenced by Lucene::HashSet< TYPE, HASH, EQUAL >::add(), Lucene::HashSet< TYPE, HASH, EQUAL >::addAll(), Lucene::HashSet< TYPE, HASH, EQUAL >::begin(), Lucene::HashSet< TYPE, HASH, EQUAL >::begin(), Lucene::HashSet< TYPE, HASH, EQUAL >::clear(), Lucene::HashSet< TYPE, HASH, EQUAL >::contains(), Lucene::HashSet< TYPE, HASH, EQUAL >::empty(), Lucene::HashSet< TYPE, HASH, EQUAL >::end(), Lucene::HashSet< TYPE, HASH, EQUAL >::end(), Lucene::HashSet< TYPE, HASH, EQUAL >::find(), Lucene::HashSet< TYPE, HASH, EQUAL >::newInstance(), Lucene::HashSet< TYPE, HASH, EQUAL >::newInstance(), Lucene::HashSet< TYPE, HASH, EQUAL >::operator bool(), Lucene::HashSet< TYPE, HASH, EQUAL >::operator!(), Lucene::HashSet< TYPE, HASH, EQUAL >::operator=(), Lucene::HashSet< TYPE, HASH, EQUAL >::remove(), Lucene::HashSet< TYPE, HASH, EQUAL >::reset(), and Lucene::HashSet< TYPE, HASH, EQUAL >::size().