From ea318d1431c89e647598c510c4245c6571aa5f46 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 26 Jan 2012 23:32:43 -0600 Subject: Update to latest tqt3 automated conversion --- doc/html/qptrlistiterator.html | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'doc/html/qptrlistiterator.html') diff --git a/doc/html/qptrlistiterator.html b/doc/html/qptrlistiterator.html index 15485115b..dc98f3c9b 100644 --- a/doc/html/qptrlistiterator.html +++ b/doc/html/qptrlistiterator.html @@ -34,7 +34,7 @@ body { background: #ffffff; color: black; }

The TQPtrListIterator class provides an iterator for TQPtrList collections. More... -

#include <qptrlist.h> +

#include <ntqptrlist.h>

Inherited by TQObjectListIterator and TQStrListIterator.

List of all member functions.

Public Members

@@ -61,19 +61,19 @@ TQPtrList collections. The TQPtrListIterator class provides an iterator for -TQPtrList collections. +TQPtrList collections.

Define a template instance TQPtrListIterator<X> to create a list iterator that operates on TQPtrList<X> (list of X*). -

The following example is similar to the example in the TQPtrList class documentation, but it uses TQPtrListIterator. The class Employee is +

The following example is similar to the example in the TQPtrList class documentation, but it uses TQPtrListIterator. The class Employee is defined there.

-    TQPtrList<Employee> list;
+    TQPtrList<Employee> list;
 
-    list.append( new Employee("John", "Doe", 50000) );
-    list.append( new Employee("Jane", "Williams", 80000) );
-    list.append( new Employee("Tom", "Jones", 60000) );
+    list.append( new Employee("John", "Doe", 50000) );
+    list.append( new Employee("Jane", "Williams", 80000) );
+    list.append( new Employee("Tom", "Jones", 60000) );
 
     TQPtrListIterator<Employee> it( list );
     Employee *employee;
@@ -93,17 +93,17 @@ defined there.
     

Using a list iterator is a more robust way of traversing the list -than using the TQPtrList member functions first(), next(), current(), etc., as many iterators can +than using the TQPtrList member functions first(), next(), current(), etc., as many iterators can traverse the same list independently.

An iterator has its own current list item and can get the next and previous list items. It doesn't modify the list in any way.

When an item is removed from the list, all iterators that point to -that item are updated to point to TQPtrList::current() instead to +that item are updated to point to TQPtrList::current() instead to avoid dangling references. -

See also TQPtrList, Collection Classes, and Non-GUI Classes. +

See also TQPtrList, Collection Classes, and Non-GUI Classes.


Member Function Documentation

-

TQPtrListIterator::TQPtrListIterator ( const TQPtrList<type> & list ) +

TQPtrListIterator::TQPtrListIterator ( const TQPtrList<type> & list )

Constructs an iterator for list. The current iterator item is -- cgit v1.2.1