- void Destroy() { m_map.clear(); } \
- void Put(long key, eltype *data) { DoPut(key, (void*)data); } \
- eltype *Get(long key) const { return (eltype*)DoGet(key); } \
- eltype *Delete(long key) { return (eltype*)DoDelete(key); } \
+ void Destroy() { Clear(); } \
+ void Put(long key, eltype *data) { DoPut(key, key, (void*)data); } \
+ void Put(long hash, long key, eltype *data) \
+ { DoPut(key, hash, (void*)data); } \
+ eltype *Get(long key) const { return (eltype*)DoGet(key, key); } \
+ eltype *Get(long hash, long key) const \
+ { return (eltype*)DoGet(key, hash); } \
+ eltype *Delete(long key) { return (eltype*)DoDelete(key, key); } \
+ eltype *Delete(long hash, long key) \
+ { return (eltype*)DoDelete(key, hash); } \
+ protected: \
+ virtual void DoDeleteContents( wxHashTableBase_Node* node ) \
+ { delete (eltype*)node->GetData(); } \
+ \
+ DECLARE_NO_COPY_CLASS(hashclass) \