Lucene++ - a full-featured, c++ search engine
API Documentation
Utility template class to handle set based collections that can be safely copied and shared. More...
#include <Set.h>
Inheritance diagram for Lucene::Set< TYPE, LESS >:Public Types | |
| typedef Set< TYPE, LESS > | this_type |
| typedef std::set< TYPE, LESS, LuceneAllocator< TYPE > > | set_type |
| typedef set_type::iterator | iterator |
| typedef set_type::const_iterator | const_iterator |
| typedef TYPE | value_type |
Public Member Functions | |
| virtual | ~Set () |
| void | reset () |
| int32_t | size () const |
| bool | empty () const |
| void | clear () |
| iterator | begin () |
| iterator | end () |
| const_iterator | begin () const |
| const_iterator | end () const |
| 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 |
| bool | equals (const this_type &other) const |
| template<class PRED > | |
| bool | equals (const this_type &other, PRED comp) const |
| void | swap (this_type &other) |
| operator bool () const | |
| bool | operator! () const |
| bool | operator== (const this_type &other) |
| bool | operator!= (const this_type &other) |
Public Member Functions inherited from Lucene::LuceneSync | |
| virtual | ~LuceneSync () |
| virtual SynchronizePtr | getSync () |
| Return this object synchronize lock. More... | |
| virtual LuceneSignalPtr | getSignal () |
| Return this object signal. More... | |
| virtual void | lock (int32_t timeout=0) |
| Lock this object using an optional timeout. More... | |
| virtual void | unlock () |
| Unlock this object. More... | |
| virtual bool | holdsLock () |
| Returns true if this object is currently locked by current thread. More... | |
| virtual void | wait (int32_t timeout=0) |
| Wait for signal using an optional timeout. More... | |
| virtual void | notifyAll () |
| Notify all threads waiting for signal. More... | |
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 |
Protected Attributes inherited from Lucene::LuceneSync | |
| SynchronizePtr | objectLock |
| LuceneSignalPtr | objectSignal |
Utility template class to handle set based collections that can be safely copied and shared.
| typedef set_type::const_iterator Lucene::Set< TYPE, LESS >::const_iterator |
| typedef set_type::iterator Lucene::Set< TYPE, LESS >::iterator |
| typedef std::set< TYPE, LESS, LuceneAllocator<TYPE> > Lucene::Set< TYPE, LESS >::set_type |
| typedef Set<TYPE, LESS> Lucene::Set< TYPE, LESS >::this_type |
| typedef TYPE Lucene::Set< TYPE, LESS >::value_type |
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Referenced by Lucene::Set< LuceneObjectPtr * >::equals().
|
inline |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
Referenced by Lucene::Set< LuceneObjectPtr * >::add(), Lucene::Set< LuceneObjectPtr * >::addAll(), Lucene::Set< LuceneObjectPtr * >::begin(), Lucene::Set< LuceneObjectPtr * >::clear(), Lucene::Set< LuceneObjectPtr * >::contains(), Lucene::Set< LuceneObjectPtr * >::empty(), Lucene::Set< LuceneObjectPtr * >::end(), Lucene::Set< LuceneObjectPtr * >::equals(), Lucene::Set< LuceneObjectPtr * >::find(), Lucene::Set< LuceneObjectPtr * >::newInstance(), Lucene::Set< LuceneObjectPtr * >::operator bool(), Lucene::Set< LuceneObjectPtr * >::operator!(), Lucene::Set< LuceneObjectPtr * >::operator!=(), Lucene::Set< LuceneObjectPtr * >::operator==(), Lucene::Set< LuceneObjectPtr * >::remove(), Lucene::Set< LuceneObjectPtr * >::reset(), Lucene::Set< LuceneObjectPtr * >::size(), and Lucene::Set< LuceneObjectPtr * >::swap().