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);
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