git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5341
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void DeleteContents(bool flag);
void Clear(void);
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
+
n = 0;
hash_table = (wxList**) NULL;
Create(the_key_type, size);
n = 0;
hash_table = (wxList**) NULL;
Create(the_key_type, size);
/*
n = size;
current_position = -1;
/*
n = size;
current_position = -1;
hash_table[position] = new wxList (wxKEY_INTEGER);
hash_table[position]->Append (value, object);
hash_table[position] = new wxList (wxKEY_INTEGER);
hash_table[position]->Append (value, object);
}
void wxHashTable::Put (long key, const wxChar *value, wxObject * object)
}
void wxHashTable::Put (long key, const wxChar *value, wxObject * object)
hash_table[position] = new wxList (wxKEY_INTEGER);
hash_table[position]->Append (value, object);
hash_table[position] = new wxList (wxKEY_INTEGER);
hash_table[position]->Append (value, object);
}
void wxHashTable::Put (long key, wxObject * object)
}
void wxHashTable::Put (long key, wxObject * object)
hash_table[position] = new wxList (wxKEY_INTEGER);
hash_table[position]->Append (k, object);
hash_table[position] = new wxList (wxKEY_INTEGER);
hash_table[position]->Append (k, object);
}
void wxHashTable::Put (const wxChar *key, wxObject * object)
}
void wxHashTable::Put (const wxChar *key, wxObject * object)
hash_table[position] = new wxList (wxKEY_STRING);
hash_table[position]->Append (key, object);
hash_table[position] = new wxList (wxKEY_STRING);
hash_table[position]->Append (key, object);
}
wxObject *wxHashTable::Get (long key, long value) const
}
wxObject *wxHashTable::Get (long key, long value) const
{
wxObject *data = node->Data ();
delete node;
{
wxObject *data = node->Data ();
delete node;
{
wxObject *data = node->Data ();
delete node;
{
wxObject *data = node->Data ();
delete node;
{
wxObject *data = node->Data ();
delete node;
{
wxObject *data = node->Data ();
delete node;
{
wxObject *data = node->Data ();
delete node;
{
wxObject *data = node->Data ();
delete node;
if (hash_table[i])
hash_table[i]->Clear ();
}
if (hash_table[i])
hash_table[i]->Clear ();
}