Updated wxHashTable::Next documentation to use wxHashTable::Node*

for the return type (which currently is just a typedef for wxNode*).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24393 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon
2003-11-02 15:32:24 +00:00
parent 49462b9b65
commit 7057f62a37
2 changed files with 8 additions and 5 deletions

View File

@@ -112,13 +112,14 @@ explicitly (for instance when combining two data values to form a key).
\membersection{wxHashTable::Next}
\func{wxNode *}{Next}{\void}
\func{wxHashTable::Node *}{Next}{\void}
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}. This function
returns a {\bf wxNode} pointer (or NULL if there are no more nodes). See the
description for \helpref{wxNode}{wxnode}. The user will probably only wish to use the
{\bf wxNode::Data} function to retrieve the data; the node may also be deleted.
returns a {\bf wxHashTable::Node} pointer (or NULL if there are no more nodes).
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}

View File

@@ -447,6 +447,9 @@ private:
class WXDLLIMPEXP_BASE wxHashTable : public wxObject
{
public:
typedef wxNode Node;
typedef wxNode* compatibility_iterator;
int n;
int current_position;
wxNode *current_node;
@@ -523,7 +526,6 @@ public:
// Returns number of nodes
size_t GetCount() const { return m_count; }
typedef wxNode* compatibility_iterator;
private:
size_t m_count; // number of elements in the hashtable
bool m_deleteContents;