Logo Search packages:      
Sourcecode: maq version File versions

void hash_set_char::clear ( void   )  [inline]

clear the hash table, but do not free the memory

Reimplemented from __lh3_hash_base_class< char * >.

Definition at line 571 of file stdhash.hh.

References __lh3_hash_base_class< keytype_t >::clear(), __lh3_hash_base_class< char * >::flags, free(), and __lh3_hash_base_class< char * >::n_capacity.

Referenced by free().

                              {
            for (hashint_t i = 0; i != this->n_capacity; ++i)
                  if (!__lh3_isboth(this->flags, i)) {
				::free(this->keys[i]); this->keys[i] = 0;
                  }
            __lh3_hash_base_class<char*>::clear();    
      }


Generated by  Doxygen 1.6.0   Back to index