Lucene++ - a full-featured, c++ search engine
API Documentation
Utility template class to handle weak keyed maps. More...
#include <HashMap.h>
Public Types | |
| typedef WeakHashMap< 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 |
| Public Types inherited from Lucene::HashMap< KEY, VALUE, HASH, EQUAL > | |
| 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 | |
| void | removeWeak () |
| VALUE | get (const KEY &key) |
| Public Member Functions inherited from Lucene::HashMap< KEY, VALUE, HASH, EQUAL > | |
| 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. | |
| 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 () |
| Static Public Member Functions inherited from Lucene::HashMap< KEY, VALUE, HASH, EQUAL > | |
| static this_type | newInstance () |
Additional Inherited Members | |
| Protected Attributes inherited from Lucene::HashMap< KEY, VALUE, HASH, EQUAL > | |
| boost::shared_ptr< map_type > | mapContainer |
| Protected Attributes inherited from Lucene::LuceneSync | |
| SynchronizePtr | objectLock |
| LuceneSignalPtr | objectSignal |
Utility template class to handle weak keyed maps.
| typedef map_type::iterator Lucene::WeakHashMap< KEY, VALUE, HASH, EQUAL >::iterator |
| typedef std::pair<KEY, VALUE> Lucene::WeakHashMap< KEY, VALUE, HASH, EQUAL >::key_value |
| typedef boost::unordered_map<KEY, VALUE, HASH, EQUAL> Lucene::WeakHashMap< KEY, VALUE, HASH, EQUAL >::map_type |
| typedef WeakHashMap<KEY, VALUE, HASH, EQUAL> Lucene::WeakHashMap< KEY, VALUE, HASH, EQUAL >::this_type |
|
inline |
|
inlinestatic |
|
inline |
Referenced by get().