Logo Search packages:      
Sourcecode: scummvm version File versions  Download package

template<class Key, class Val, class HashFunc, class EqualFunc>
Common::HashMap< Key, Val, HashFunc, EqualFunc >::HashMap ( const HM_t map  )  [inline]

Copy constructor, creates a full copy of the given hashmap. We must provide a custom copy constructor as we use pointers to heap buffers for the internal storage.

Definition at line 314 of file hashmap.h.

References Common::HashMap< Key, Val, HashFunc, EqualFunc >::assign().

                                                               :
      _defaultVal() {
#ifdef DEBUG_HASH_COLLISIONS
      _collisions = 0;
      _lookups = 0;
      _dummyHits = 0;
#endif
      assign(map);
}


Generated by  Doxygen 1.6.0   Back to index