Correct typos, minor wording improvements

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30433 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Kevin Hock
2004-11-10 22:46:50 +00:00
parent db1d019338
commit d644ee7ee9

View File

@@ -2,7 +2,7 @@
This is a simple, type-safe, and reasonably efficient hash map class, This is a simple, type-safe, and reasonably efficient hash map class,
whose interface is a subset of the interface of STL containers. In whose interface is a subset of the interface of STL containers. In
particular, the interface is modelled after std::map, and the various, particular, the interface is modeled after std::map, and the various,
non standard, std::hash\_map. non standard, std::hash\_map.
\wxheading{Example} \wxheading{Example}
@@ -48,7 +48,7 @@ non standard, std::hash\_map.
CLASSNAME ); // name of the class CLASSNAME ); // name of the class
\end{verbatim} \end{verbatim}
Declares an hash map class named CLASSNAME, with {\tt wxString} keys Declares a hash map class named CLASSNAME, with {\tt wxString} keys
and VALUE\_T values. and VALUE\_T values.
\begin{verbatim} \begin{verbatim}
@@ -56,7 +56,7 @@ and VALUE\_T values.
CLASSNAME ); // name of the class CLASSNAME ); // name of the class
\end{verbatim} \end{verbatim}
Declares an hash map class named CLASSNAME, with {\tt void*} keys Declares a hash map class named CLASSNAME, with {\tt void*} keys
and VALUE\_T values. and VALUE\_T values.
\begin{verbatim} \begin{verbatim}
@@ -77,7 +77,7 @@ and their unsigned counterparts ), {\tt wxStringHash} for strings
Similarly three equality predicates: Similarly three equality predicates:
{\tt wxIntegerEqual}, {\tt wxStringEqual}, {\tt wxPointerEqual} are provided. {\tt wxIntegerEqual}, {\tt wxStringEqual}, {\tt wxPointerEqual} are provided.
Using this you could declare an hash map mapping {\tt int} values Using this you could declare a hash map mapping {\tt int} values
to {\tt wxString} like this: to {\tt wxString} like this:
\begin{verbatim} \begin{verbatim}
@@ -130,7 +130,7 @@ you used in the class declaration.
\twocolitem{wxHashMap::mapped\_type}{Type of the values stored in the hash map} \twocolitem{wxHashMap::mapped\_type}{Type of the values stored in the hash map}
\twocolitem{wxHashMap::value\_type}{Equivalent to \twocolitem{wxHashMap::value\_type}{Equivalent to
{\tt struct \{ key\_type first; mapped\_type second \};} } {\tt struct \{ key\_type first; mapped\_type second \};} }
\twocolitem{wxHashMap::iterator}{Used to enumerate all the elements in an hash \twocolitem{wxHashMap::iterator}{Used to enumerate all the elements in a hash
map; it is similar to a {\tt value\_type*}} map; it is similar to a {\tt value\_type*}}
\twocolitem{wxHashMap::const\_iterator}{Used to enumerate all the elements \twocolitem{wxHashMap::const\_iterator}{Used to enumerate all the elements
in a constant hash map; it is similar to a {\tt const value\_type*}} in a constant hash map; it is similar to a {\tt const value\_type*}}
@@ -189,7 +189,7 @@ This function returns only 0 or 1.
\constfunc{bool}{empty}{} \constfunc{bool}{empty}{}
Returns true if the hash map does not contain any element, false otherwise. Returns true if the hash map does not contain any elements, false otherwise.
\membersection{wxHashMap::end}\label{wxhashmapend} \membersection{wxHashMap::end}\label{wxhashmapend}
@@ -234,7 +234,7 @@ Inserts the given value in the hash map.
\func{mapped\_type\&}{operator[]}{\param{const key\_type\&}{ key}} \func{mapped\_type\&}{operator[]}{\param{const key\_type\&}{ key}}
Use it as an array subscript. The only difference is that if the Use the key as an array subscript. The only difference is that if the
given key is not present in the hash map, an element with the given key is not present in the hash map, an element with the
default {\tt value\_type()} is inserted in the table. default {\tt value\_type()} is inserted in the table.