projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add some "USE" defs that were missing.
[wxWidgets.git]
/
include
/
wx
/
hash.h
diff --git
a/include/wx/hash.h
b/include/wx/hash.h
index a223f99968399bc8e973a155383b3be72bc3a125..4634f96313b6f3d25a5d81d575619295655f81e8 100644
(file)
--- 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);
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 Destroy(void); // Robert Roebling
bool Create(int the_key_type = wxKEY_INTEGER, int size = 1000);
@@
-59,30
+64,30
@@
class WXDLLEXPORT wxHashTable: public wxObject
// key and value are NOT necessarily the same
void Put(long key, long value, wxObject *object);
// key and value are NOT necessarily the same
void Put(long key, long value, wxObject *object);
- void Put(long key, const
c
har *value, wxObject *object);
+ void Put(long key, const
wxC
har *value, wxObject *object);
// key and value are the same
void Put(long value, wxObject *object);
// key and value are the same
void Put(long value, wxObject *object);
- void Put(const
c
har *value, wxObject *object);
+ void Put(const
wxC
har *value, wxObject *object);
// key and value not the same
wxObject *Get(long key, long value) const;
// key and value not the same
wxObject *Get(long key, long value) const;
- wxObject *Get(long key, const
c
har *value) const;
+ wxObject *Get(long key, const
wxC
har *value) const;
// key and value are the same
wxObject *Get(long value) const;
// key and value are the same
wxObject *Get(long value) const;
- wxObject *Get(const
c
har *value) const;
+ wxObject *Get(const
wxC
har *value) const;
// Deletes entry and returns data if found
wxObject *Delete(long key);
// Deletes entry and returns data if found
wxObject *Delete(long key);
- wxObject *Delete(const
c
har *key);
+ wxObject *Delete(const
wxC
har *key);
wxObject *Delete(long key, int value);
wxObject *Delete(long key, int value);
- wxObject *Delete(long key, const
c
har *value);
+ wxObject *Delete(long key, const
wxC
har *value);
// Construct your own integer key from a string, e.g. in case
// you need to combine it with something
// Construct your own integer key from a string, e.g. in case
// you need to combine it with something
- long MakeKey(const
c
har *string) const;
+ long MakeKey(const
wxC
har *string) const;
// Way of iterating through whole hash table (e.g. to delete everything)
// Not necessary, of course, if you're only storing pointers to
// Way of iterating through whole hash table (e.g. to delete everything)
// Not necessary, of course, if you're only storing pointers to