Move SetDefaultTimeout to wxProtocol and set it to 60 seconds for both wxHTTP and wxFTP
Move SetPassword and SetUser implementations to wxProtocol to avoid code redundancy Make const-correct various getters Reorganize wxFTP docs Move wxStringToStringHashMap to hashmap.h and document its existance git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58137 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
This is a simple, type-safe, and reasonably efficient hash map class,
|
||||
whose interface is a subset of the interface of STL containers.
|
||||
In particular, the interface is modeled after std::map, and the various,
|
||||
non-standard, std::hash_map.
|
||||
non-standard, std::hash_map (http://www.cppreference.com/wiki/stl/map/start).
|
||||
|
||||
Example:
|
||||
@code
|
||||
@@ -73,11 +73,11 @@
|
||||
@endcode
|
||||
The HASH_T and KEY_EQ_T are the types used for the hashing function and
|
||||
key comparison. wxWidgets provides three predefined hashing functions:
|
||||
wxIntegerHash for integer types ( int, long, short, and their unsigned counterparts ),
|
||||
wxStringHash for strings ( wxString, wxChar*, char* ), and wxPointerHash for
|
||||
@c wxIntegerHash for integer types ( int, long, short, and their unsigned counterparts ),
|
||||
@c wxStringHash for strings ( wxString, wxChar*, char* ), and @c wxPointerHash for
|
||||
any kind of pointer.
|
||||
Similarly three equality predicates: wxIntegerEqual, wxStringEqual,
|
||||
wxPointerEqual are provided.
|
||||
Similarly three equality predicates: @c wxIntegerEqual, @c wxStringEqual,
|
||||
@c wxPointerEqual are provided.
|
||||
Using this you could declare a hash map mapping int values to wxString like this:
|
||||
|
||||
@code
|
||||
@@ -151,6 +151,13 @@
|
||||
it + 3, it1 - it2.
|
||||
|
||||
|
||||
@section hashmap_predef Predefined hashmap types
|
||||
|
||||
wxWidgets defines the following hashmap types:
|
||||
- wxLongToLongHashMap (uses long both for keys and values)
|
||||
- wxStringToStringHashMap (uses wxString both for keys and values)
|
||||
|
||||
|
||||
@library{wxbase}
|
||||
@category{containers}
|
||||
*/
|
||||
|
Reference in New Issue
Block a user