Lucene++ - a full-featured, c++ search engine
API Documentation
Utility template class to handle hash maps that can be safely copied and shared. More...
#include <HashMap.h>
Inheritance diagram for Lucene::HashMap< KEY, VALUE, HASH, EQUAL >:Public Types | |
| typedef HashMap< KEY, VALUE, HASH, EQUAL > | this_type |
| typedef std::pair< KEY, VALUE > | key_value |
| typedef boost::unordered_map< KEY, VALUE, HASH, EQUAL > | map_type |
| typedef map_type::iterator | iterator |
| typedef map_type::const_iterator | const_iterator |
| typedef KEY | key_type |
| typedef VALUE | value_type |
Public Member Functions | |
| virtual | ~HashMap () |
| 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 |
| map_type & | operator= (const map_type &other) |
| void | put (const KEY &key, const VALUE &value) |
| template<class ITER > | |
| void | putAll (ITER first, ITER last) |
| template<class ITER > | |
| void | remove (ITER pos) |
| template<class ITER > | |
| ITER | remove (ITER first, ITER last) |
| bool | remove (const KEY &key) |
| iterator | find (const KEY &key) |
| VALUE | get (const KEY &key) const |
| bool | contains (const KEY &key) const |
| VALUE & | operator[] (const KEY &key) |
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 () |
Protected Attributes | |
| boost::shared_ptr< map_type > | mapContainer |
Protected Attributes inherited from Lucene::LuceneSync | |
| SynchronizePtr | objectLock |
| LuceneSignalPtr | objectSignal |
Utility template class to handle hash maps that can be safely copied and shared.
| typedef map_type::const_iterator Lucene::HashMap< KEY, VALUE, HASH, EQUAL >::const_iterator |
| typedef map_type::iterator Lucene::HashMap< KEY, VALUE, HASH, EQUAL >::iterator |
| typedef KEY Lucene::HashMap< KEY, VALUE, HASH, EQUAL >::key_type |
| typedef std::pair<KEY, VALUE> Lucene::HashMap< KEY, VALUE, HASH, EQUAL >::key_value |
| typedef boost::unordered_map<KEY, VALUE, HASH, EQUAL> Lucene::HashMap< KEY, VALUE, HASH, EQUAL >::map_type |
| typedef HashMap<KEY, VALUE, HASH, EQUAL> Lucene::HashMap< KEY, VALUE, HASH, EQUAL >::this_type |
| typedef VALUE Lucene::HashMap< KEY, VALUE, HASH, EQUAL >::value_type |
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
Referenced by Lucene::HashMap< KEY, VALUE, HASH, EQUAL >::begin(), Lucene::HashMap< KEY, VALUE, HASH, EQUAL >::clear(), Lucene::HashMap< KEY, VALUE, HASH, EQUAL >::contains(), Lucene::HashMap< KEY, VALUE, HASH, EQUAL >::empty(), Lucene::HashMap< KEY, VALUE, HASH, EQUAL >::end(), Lucene::HashMap< KEY, VALUE, HASH, EQUAL >::find(), Lucene::HashMap< KEY, VALUE, HASH, EQUAL >::get(), Lucene::HashMap< KEY, VALUE, HASH, EQUAL >::newInstance(), Lucene::WeakHashMap< KEY, VALUE, HASH, EQUAL >::newInstance(), Lucene::HashMap< KEY, VALUE, HASH, EQUAL >::operator bool(), Lucene::HashMap< KEY, VALUE, HASH, EQUAL >::operator!(), Lucene::HashMap< KEY, VALUE, HASH, EQUAL >::operator=(), Lucene::HashMap< KEY, VALUE, HASH, EQUAL >::operator[](), Lucene::HashMap< KEY, VALUE, HASH, EQUAL >::remove(), Lucene::HashMap< KEY, VALUE, HASH, EQUAL >::reset(), and Lucene::HashMap< KEY, VALUE, HASH, EQUAL >::size().