(file) Return to HashTable.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/HashTable.h between version 1.11 and 1.12

version 1.11, 2001/07/10 22:31:13 version 1.12, 2001/12/13 14:53:59
Line 179 
Line 179 
         @param key void pointer to key.         @param key void pointer to key.
         @return pointer to bucket with that key or zero otherwise.         @return pointer to bucket with that key or zero otherwise.
     */     */
     const _BucketBase* lookup(Uint32 hashCode, const void* key);      const _BucketBase* lookup(Uint32 hashCode, const void* key) const;
  
     /*- Removes the bucket with the given key. This method uses the     /*- Removes the bucket with the given key. This method uses the
         _BucketBase::equal() method to compare keys.         _BucketBase::equal() method to compare keys.
Line 463 
Line 463 
         @param key key to be searched for         @param key key to be searched for
         @return true if hash table contains an entry with the given key.         @return true if hash table contains an entry with the given key.
     */     */
     Boolean contains(const K& key)      Boolean contains(const K& key) const
     {     {
         V value;         V value;
         return lookup(key, value);         return lookup(key, value);
Line 474 
Line 474 
         @param value output value.         @param value output value.
         @return true if found; false otherwise.         @return true if found; false otherwise.
     */     */
     Boolean lookup(const K& key, V& value);      Boolean lookup(const K& key, V& value) const;
  
     /** Removes the entry with the given key.     /** Removes the entry with the given key.
         @param key key of entry to be removed.         @param key key of entry to be removed.
Line 498 
Line 498 
 }; };
  
 template<class K, class V, class E, class H> template<class K, class V, class E, class H>
 inline Boolean HashTable<K, V, E, H>::lookup(const K& key, V& value)  inline Boolean HashTable<K, V, E, H>::lookup(const K& key, V& value) const
 { {
     _Bucket<K, V, E>* bucket     _Bucket<K, V, E>* bucket
         = (_Bucket<K, V, E>*)_rep.lookup(H::hash(key), &key);         = (_Bucket<K, V, E>*)_rep.lookup(H::hash(key), &key);


Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2