X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9d2f3c71d83c52fc4db6c8041de533562816b1d6..af07f1749c51e4c94032466776fa5a8dc6322635:/include/wx/hash.h diff --git a/include/wx/hash.h b/include/wx/hash.h index ec71b9b8c1..e5450054f0 100644 --- a/include/wx/hash.h +++ b/include/wx/hash.h @@ -41,6 +41,11 @@ class WXDLLEXPORT wxHashTable: public wxObject wxHashTable(int the_key_type = wxKEY_INTEGER, int size = 1000); ~wxHashTable(void); + // copy ctor and assignment operator + wxHashTable(const wxHashTable& table) { DoCopy(table); } + wxHashTable& operator=(const wxHashTable& table) { Clear(); DoCopy(table); return *this; } + void DoCopy(const wxHashTable& table); + void Destroy(void); // Robert Roebling bool Create(int the_key_type = wxKEY_INTEGER, int size = 1000); @@ -94,6 +99,12 @@ class WXDLLEXPORT wxHashTable: public wxObject void DeleteContents(bool flag); void Clear(void); + // Returns number of nodes + size_t GetCount() const { return m_count; } + + private: + size_t m_count; // number of elements in the hashtable + bool m_deleteContents; }; #endif