n = 0;
hash_table = (wxList**) NULL;
Create(the_key_type, size);
+ m_count = 0;
/*
n = size;
current_position = -1;
hash_table[position] = new wxList (wxKEY_INTEGER);
hash_table[position]->Append (value, object);
+ m_count++;
}
void wxHashTable::Put (long key, const wxChar *value, wxObject * object)
hash_table[position] = new wxList (wxKEY_INTEGER);
hash_table[position]->Append (value, object);
+ m_count++;
}
void wxHashTable::Put (long key, wxObject * object)
hash_table[position] = new wxList (wxKEY_INTEGER);
hash_table[position]->Append (k, object);
+ m_count++;
}
void wxHashTable::Put (const wxChar *key, wxObject * object)
hash_table[position] = new wxList (wxKEY_STRING);
hash_table[position]->Append (key, object);
+ m_count++;
}
wxObject *wxHashTable::Get (long key, long value) const
{
wxObject *data = node->Data ();
delete node;
+ m_count--;
return data;
}
else
{
wxObject *data = node->Data ();
delete node;
+ m_count--;
return data;
}
else
{
wxObject *data = node->Data ();
delete node;
+ m_count--;
return data;
}
else
{
wxObject *data = node->Data ();
delete node;
+ m_count--;
return data;
}
else
if (hash_table[i])
hash_table[i]->Clear ();
}
+ m_count = 0;
}