X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fc2171bd4c660b8554dae2a1cbf34ff09f3032a6..245b9db51823e59bd61f0d7c0c69b419495cf0b7:/docs/latex/wx/hash.tex?ds=sidebyside diff --git a/docs/latex/wx/hash.tex b/docs/latex/wx/hash.tex index 7c40c94995..83ba35780e 100644 --- a/docs/latex/wx/hash.tex +++ b/docs/latex/wx/hash.tex @@ -15,12 +15,16 @@ key. +\wxheading{Library} + +\helpref{wxBase}{librarieslist} + \wxheading{Example} Below is an example of using a hash table. \begin{verbatim} - wxHashTable table(KEY_STRING); + wxHashTable table(wxKEY_STRING); wxPoint *point = new wxPoint(100, 200); table.Put("point 1", point); @@ -51,20 +55,20 @@ the size of the hash table. \latexignore{\rtfignore{\wxheading{Members}}} -\membersection{wxHashTable::wxHashTable} +\membersection{wxHashTable::wxHashTable}\label{wxhashtablector} \func{}{wxHashTable}{\param{unsigned int}{ key\_type}, \param{int}{ size = 1000}} Constructor. {\it key\_type} is one of wxKEY\_INTEGER, or wxKEY\_STRING, and indicates what sort of keying is required. {\it size} is optional. -\membersection{wxHashTable::\destruct{wxHashTable}} +\membersection{wxHashTable::\destruct{wxHashTable}}\label{wxhashtabledtor} \func{}{\destruct{wxHashTable}}{\void} Destroys the hash table. -\membersection{wxHashTable::BeginFind} +\membersection{wxHashTable::BeginFind}\label{wxhashtablebeginfind} \func{void}{BeginFind}{\void} @@ -72,13 +76,13 @@ The counterpart of {\it Next}. If the application wishes to iterate through all the data in the hash table, it can call {\it BeginFind} and then loop on {\it Next}. -\membersection{wxHashTable::Clear} +\membersection{wxHashTable::Clear}\label{wxhashtableclear} \func{void}{Clear}{\void} Clears the hash table of all nodes (but as usual, doesn't delete user data). -\membersection{wxHashTable::Delete} +\membersection{wxHashTable::Delete}\label{wxhashtabledelete} \func{wxObject *}{Delete}{\param{long}{ key}} @@ -86,7 +90,7 @@ Clears the hash table of all nodes (but as usual, doesn't delete user data). Deletes entry in hash table and returns the user's data (if found). -\membersection{wxHashTable::DeleteContents} +\membersection{wxHashTable::DeleteContents}\label{wxhashtabledeletecontents} \func{void}{DeleteContents}{\param{bool}{ flag}} @@ -94,7 +98,7 @@ If set to true data stored in hash table will be deleted when hash table object is destroyed. -\membersection{wxHashTable::Get} +\membersection{wxHashTable::Get}\label{wxhashtableget} \func{wxObject *}{Get}{\param{long}{ key}} @@ -103,14 +107,14 @@ is destroyed. Gets data from the hash table, using an integer or string key (depending on which has table constructor was used). -\membersection{wxHashTable::MakeKey} +\membersection{wxHashTable::MakeKey}\label{wxhashtablemakekey} \func{long}{MakeKey}{\param{const wxString\& }{string}} Makes an integer key out of a string. An application may wish to make a key explicitly (for instance when combining two data values to form a key). -\membersection{wxHashTable::Next} +\membersection{wxHashTable::Next}\label{wxhashtablenext} \func{wxHashTable::Node *}{Next}{\void} @@ -121,7 +125,7 @@ The return value is functionally equivalent to \textbf{wxNode} but might not be implemented as a \textbf{wxNode}. The user will probably only wish to use the \textbf{GetData} method to retrieve the data; the node may also be deleted. -\membersection{wxHashTable::Put} +\membersection{wxHashTable::Put}\label{wxhashtableput} \func{void}{Put}{\param{long}{ key}, \param{wxObject *}{object}} @@ -131,7 +135,7 @@ Inserts data into the hash table, using an integer or string key (depending on w has table constructor was used). The key string is copied and stored by the hash table implementation. -\membersection{wxHashTable::GetCount} +\membersection{wxHashTable::GetCount}\label{wxhashtablegetcount} \constfunc{size\_t}{GetCount}{\void}