diff options
Diffstat (limited to 'doc/man/man3/tqptrlist.3qt')
-rw-r--r-- | doc/man/man3/tqptrlist.3qt | 140 |
1 files changed, 70 insertions, 70 deletions
diff --git a/doc/man/man3/tqptrlist.3qt b/doc/man/man3/tqptrlist.3qt index 2b40eccc6..62f86d03d 100644 --- a/doc/man/man3/tqptrlist.3qt +++ b/doc/man/man3/tqptrlist.3qt @@ -1,5 +1,5 @@ '\" t -.TH QPtrList 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQPtrList 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- .\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the .\" license file included in the distribution for a complete license .\" statement. @@ -7,33 +7,33 @@ .ad l .nh .SH NAME -QPtrList \- Template class that provides a list +TQPtrList \- Template class that provides a list .SH SYNOPSIS -\fC#include <ntqptrlist.h>\fR +\fC#include <tqptrlist.h>\fR .PP -Inherits QPtrCollection. +Inherits TQPtrCollection. .PP Inherited by TQObjectList and QStrList. .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fBQPtrList\fR ()" +.BI "\fBTQPtrList\fR ()" .br .ti -1c -.BI "\fBQPtrList\fR ( const QPtrList<type> & list )" +.BI "\fBTQPtrList\fR ( const TQPtrList<type> & list )" .br .ti -1c -.BI "\fB~QPtrList\fR ()" +.BI "\fB~TQPtrList\fR ()" .br .ti -1c -.BI "QPtrList<type> & \fBoperator=\fR ( const QPtrList<type> & list )" +.BI "TQPtrList<type> & \fBoperator=\fR ( const TQPtrList<type> & list )" .br .ti -1c -.BI "bool \fBoperator==\fR ( const QPtrList<type> & list ) const" +.BI "bool \fBoperator==\fR ( const TQPtrList<type> & list ) const" .br .ti -1c -.BI "bool \fBoperator!=\fR ( const QPtrList<type> & list ) const" +.BI "bool \fBoperator!=\fR ( const TQPtrList<type> & list ) const" .br .ti -1c .BI "virtual uint \fBcount\fR () const" @@ -156,21 +156,21 @@ Inherited by TQObjectList and QStrList. .SS "Protected Members" .in +1c .ti -1c -.BI "virtual int \fBcompareItems\fR ( QPtrCollection::Item item1, QPtrCollection::Item item2 )" +.BI "virtual int \fBcompareItems\fR ( TQPtrCollection::Item item1, TQPtrCollection::Item item2 )" .br .ti -1c -.BI "virtual QDataStream & \fBread\fR ( QDataStream & s, QPtrCollection::Item & item )" +.BI "virtual QDataStream & \fBread\fR ( QDataStream & s, TQPtrCollection::Item & item )" .br .ti -1c -.BI "virtual QDataStream & \fBwrite\fR ( QDataStream & s, QPtrCollection::Item item ) const" +.BI "virtual QDataStream & \fBwrite\fR ( QDataStream & s, TQPtrCollection::Item item ) const" .br .in -1c .SH DESCRIPTION -The QPtrList class is a template class that provides a list. +The TQPtrList class is a template class that provides a list. .PP TQValueList is an STL-compatible alternative to this class. .PP -Define a template instance QPtrList<X> to create a list that operates on pointers to X (X*). +Define a template instance TQPtrList<X> to create a list that operates on pointers to X (X*). .PP The list class is indexable and has a current index and a current item. The first item corresponds to index position 0. The current index is -1 if the current item is 0. .PP @@ -216,7 +216,7 @@ Example: }; .br .br - QPtrList<Employee> list; + TQPtrList<Employee> list; .br list.setAutoDelete( TRUE ); // the list owns the objects .br @@ -270,13 +270,13 @@ The output is .br .fi .PP -QPtrList has several member functions for traversing the list, but using a QPtrListIterator can be more practical. Multiple list iterators may traverse the same list, independently of each other and of the current list item. +TQPtrList has several member functions for traversing the list, but using a TQPtrListIterator can be more practical. Multiple list iterators may traverse the same list, independently of each other and of the current list item. .PP In the example above we make the call setAutoDelete(TRUE). Enabling auto-deletion tells the list to delete items that are removed. The default is to not delete items when they are removed but this would cause a memory leak in the example because there are no other references to the list items. .PP -When inserting an item into a list only the pointer is copied, not the item itself, i.e. a shallow copy. It is possible to make the list copy all of the item's data (deep copy) when an item is inserted. insert(), inSort() and append() call the virtual function QPtrCollection::newItem() for the item to be inserted. Inherit a list and reimplement newItem() to have deep copies. +When inserting an item into a list only the pointer is copied, not the item itself, i.e. a shallow copy. It is possible to make the list copy all of the item's data (deep copy) when an item is inserted. insert(), inSort() and append() call the virtual function TQPtrCollection::newItem() for the item to be inserted. Inherit a list and reimplement newItem() to have deep copies. .PP -When removing an item from a list, the virtual function QPtrCollection::deleteItem() is called. QPtrList's default implementation is to delete the item if auto-deletion is enabled. +When removing an item from a list, the virtual function TQPtrCollection::deleteItem() is called. TQPtrList's default implementation is to delete the item if auto-deletion is enabled. .PP The virtual function compareItems() can be reimplemented to compare two list items. This function is called from all list functions that need to compare list items, for instance remove(const type*). If you only want to deal with pointers, there are functions that compare pointers instead, for instance removeRef(const type*). These functions are somewhat faster than those that call compareItems(). .PP @@ -284,21 +284,21 @@ List items are stored as \fCvoid*\fR in an internal QLNode, which also holds poi .PP The QStrList class defined in ntqstrlist.h is a list of \fCchar*\fR. It reimplements newItem(), deleteItem() and compareItems(). (But see QStringList for a list of Unicode QStrings.) .PP -See also QPtrListIterator, Collection Classes, and Non-GUI Classes. +See also TQPtrListIterator, Collection Classes, and Non-GUI Classes. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QPtrList::QPtrList ()" +.SH "TQPtrList::TQPtrList ()" Constructs an empty list. -.SH "QPtrList::QPtrList ( const QPtrList<type> & list )" +.SH "TQPtrList::TQPtrList ( const TQPtrList<type> & list )" Constructs a copy of \fIlist\fR. .PP Each item in \fIlist\fR is appended to this list. Only the pointers are copied (shallow copy). -.SH "QPtrList::~QPtrList ()" +.SH "TQPtrList::~TQPtrList ()" Removes all items from the list and destroys the list. .PP All list iterators that access this list will be reset. .PP See also setAutoDelete(). -.SH "void QPtrList::append ( const type * item )" +.SH "void TQPtrList::append ( const type * item )" Inserts the \fIitem\fR at the end of the list. .PP The inserted item becomes the current list item. This is equivalent to \fCinsert( count(), item )\fR. @@ -309,7 +309,7 @@ See also insert(), current(), and prepend(). .PP Examples: .)l customlayout/border.cpp, customlayout/card.cpp, customlayout/flow.cpp, grapher/grapher.cpp, listviews/listviews.cpp, listviews/listviews.h, and qwerty/qwerty.cpp. -.SH "type * QPtrList::at ( uint index )" +.SH "type * TQPtrList::at ( uint index )" Returns a pointer to the item at position \fIindex\fR in the list, or 0 if the index is out of range. .PP Sets the current list item to this item if \fIindex\fR is valid. The valid range is \fC0..(count() - 1)\fR inclusive. @@ -320,17 +320,17 @@ See also current(). .PP Examples: .)l customlayout/border.cpp, customlayout/card.cpp, customlayout/flow.cpp, dirview/dirview.cpp, mdi/application.cpp, and qwerty/qwerty.cpp. -.SH "int QPtrList::at () const" +.SH "int TQPtrList::at () const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns the index of the current list item. The returned value is -1 if the current item is 0. .PP See also current(). -.SH "bool QPtrCollection::autoDelete () const" +.SH "bool TQPtrCollection::autoDelete () const" Returns the setting of the auto-delete option. The default is FALSE. .PP See also setAutoDelete(). -.SH "void QPtrList::clear ()\fC [virtual]\fR" +.SH "void TQPtrList::clear ()\fC [virtual]\fR" Removes all items from the list. .PP The removed items are deleted if auto-deletion is enabled. @@ -339,8 +339,8 @@ All list iterators that access this list will be reset. .PP See also remove(), take(), and setAutoDelete(). .PP -Reimplemented from QPtrCollection. -.SH "int QPtrList::compareItems ( QPtrCollection::Item item1, QPtrCollection::Item item2 )\fC [virtual protected]\fR" +Reimplemented from TQPtrCollection. +.SH "int TQPtrList::compareItems ( TQPtrCollection::Item item1, TQPtrCollection::Item item2 )\fC [virtual protected]\fR" This virtual function compares two list items. .PP Returns: @@ -362,7 +362,7 @@ inSort() requires that compareItems() is implemented as described here. This function should not modify the list because some const functions call compareItems(). .PP The default implementation compares the pointers. -.SH "uint QPtrList::contains ( const type * item ) const" +.SH "uint TQPtrList::contains ( const type * item ) const" Returns the number of occurrences of \fIitem\fR in the list. .PP The compareItems() function is called when looking for the \fIitem\fR in the list. If compareItems() is not reimplemented, it is more efficient to call containsRef(). @@ -370,7 +370,7 @@ The compareItems() function is called when looking for the \fIitem\fR in the lis This function does not affect the current list item. .PP See also containsRef() and compareItems(). -.SH "uint QPtrList::containsRef ( const type * item ) const" +.SH "uint TQPtrList::containsRef ( const type * item ) const" Returns the number of occurrences of \fIitem\fR in the list. .PP Calling this function is much faster than contains() because contains() compares \fIitem\fR with each list item using compareItems(), whereas his function only compares the pointers. @@ -378,7 +378,7 @@ Calling this function is much faster than contains() because contains() compares This function does not affect the current list item. .PP See also contains(). -.SH "uint QPtrList::count () const\fC [virtual]\fR" +.SH "uint TQPtrList::count () const\fC [virtual]\fR" Returns the number of items in the list. .PP See also isEmpty(). @@ -386,12 +386,12 @@ See also isEmpty(). Examples: .)l customlayout/border.cpp, customlayout/card.cpp, customlayout/flow.cpp, dirview/dirview.cpp, grapher/grapher.cpp, mdi/application.cpp, and qwerty/qwerty.cpp. .PP -Reimplemented from QPtrCollection. -.SH "type * QPtrList::current () const" +Reimplemented from TQPtrCollection. +.SH "type * TQPtrList::current () const" Returns a pointer to the current list item. The current item may be 0 (implies that the current index is -1). .PP See also at(). -.SH "QLNode * QPtrList::currentNode () const" +.SH "QLNode * TQPtrList::currentNode () const" Returns a pointer to the current list node. .PP The node can be kept and removed later using removeNode(). The advantage is that the item can be removed directly without searching the list. @@ -399,7 +399,7 @@ The node can be kept and removed later using removeNode(). The advantage is that \fBWarning:\fR Do not call this function unless you are an expert. .PP See also removeNode(), takeNode(), and current(). -.SH "int QPtrList::find ( const type * item )" +.SH "int TQPtrList::find ( const type * item )" Finds the first occurrence of \fIitem\fR in the list. .PP If the item is found, the list sets the current item to point to the found item and returns the index of this item. If the item is not found, the list sets the current item to 0, the current index to -1, and returns -1. @@ -407,7 +407,7 @@ If the item is found, the list sets the current item to point to the found item The compareItems() function is called when searching for the item in the list. If compareItems() is not reimplemented, it is more efficient to call findRef(). .PP See also findNext(), findRef(), compareItems(), and current(). -.SH "int QPtrList::findNext ( const type * item )" +.SH "int TQPtrList::findNext ( const type * item )" Finds the next occurrence of \fIitem\fR in the list, starting from the current list item. .PP If the item is found, the list sets the current item to point to the found item and returns the index of this item. If the item is not found, the list sets the current item to 0, the current index to -1, and returns -1. @@ -415,7 +415,7 @@ If the item is found, the list sets the current item to point to the found item The compareItems() function is called when searching for the item in the list. If compareItems() is not reimplemented, it is more efficient to call findNextRef(). .PP See also find(), findNextRef(), compareItems(), and current(). -.SH "int QPtrList::findNextRef ( const type * item )" +.SH "int TQPtrList::findNextRef ( const type * item )" Finds the next occurrence of \fIitem\fR in the list, starting from the current list item. .PP If the item is found, the list sets the current item to point to the found item and returns the index of this item. If the item is not found, the list sets the current item to 0, the current index to -1, and returns -1. @@ -423,7 +423,7 @@ If the item is found, the list sets the current item to point to the found item Calling this function is much faster than findNext() because findNext() compares \fIitem\fR with each list item using compareItems(), whereas this function only compares the pointers. .PP See also findRef(), findNext(), and current(). -.SH "int QPtrList::findRef ( const type * item )" +.SH "int TQPtrList::findRef ( const type * item )" Finds the first occurrence of \fIitem\fR in the list. .PP If the item is found, the list sets the current item to point to the found item and returns the index of this item. If the item is not found, the list sets the current item to 0, the current index to -1, and returns -1. @@ -431,26 +431,26 @@ If the item is found, the list sets the current item to point to the found item Calling this function is much faster than find() because find() compares \fIitem\fR with each list item using compareItems(), whereas this function only compares the pointers. .PP See also findNextRef(), find(), and current(). -.SH "type * QPtrList::first ()" +.SH "type * TQPtrList::first ()" Returns a pointer to the first item in the list and makes this the current list item; returns 0 if the list is empty. .PP See also getFirst(), last(), next(), prev(), and current(). .PP Examples: .)l grapher/grapher.cpp, listviews/listviews.h, and showimg/showimg.cpp. -.SH "type * QPtrList::getFirst () const" +.SH "type * TQPtrList::getFirst () const" Returns a pointer to the first item in the list, or 0 if the list is empty. .PP This function does not affect the current list item. .PP See also first() and getLast(). -.SH "type * QPtrList::getLast () const" +.SH "type * TQPtrList::getLast () const" Returns a pointer to the last item in the list, or 0 if the list is empty. .PP This function does not affect the current list item. .PP See also last() and getFirst(). -.SH "void QPtrList::inSort ( const type * item )" +.SH "void TQPtrList::inSort ( const type * item )" Inserts the \fIitem\fR at its sorted position in the list. .PP The sort order depends on the virtual compareItems() function. All items must be inserted with inSort() to maintain the sorting order. @@ -462,7 +462,7 @@ The inserted item becomes the current list item. \fBWarning:\fR Using inSort() is slow. An alternative, especially if you have lots of items, is to simply append() or insert() them and then use sort(). inSort() takes up to O(n) compares. That means inserting n items in your list will need O(n^2) compares whereas sort() only needs O(n*log n) for the same task. So use inSort() only if you already have a presorted list and want to insert just a few additional items. .PP See also insert(), compareItems(), current(), and sort(). -.SH "bool QPtrList::insert ( uint index, const type * item )" +.SH "bool TQPtrList::insert ( uint index, const type * item )" Inserts the \fIitem\fR at position \fIindex\fR in the list. .PP Returns TRUE if successful, i.e. if \fIindex\fR is in range; otherwise returns FALSE. The valid range is 0 to count() (inclusively). The item is appended if \fIindex\fR == count(). @@ -472,15 +472,15 @@ The inserted item becomes the current list item. \fIitem\fR must not be 0. .PP See also append(), current(), and replace(). -.SH "bool QPtrList::isEmpty () const" +.SH "bool TQPtrList::isEmpty () const" Returns TRUE if the list is empty; otherwise returns FALSE. .PP See also count(). -.SH "type * QPtrList::last ()" +.SH "type * TQPtrList::last ()" Returns a pointer to the last item in the list and makes this the current list item; returns 0 if the list is empty. .PP See also getLast(), first(), next(), prev(), and current(). -.SH "type * QPtrList::next ()" +.SH "type * TQPtrList::next ()" Returns a pointer to the item succeeding the current item. Returns 0 if the current item is 0 or equal to the last item. .PP Makes the succeeding item current. If the current item before this function call was the last item, the current item will be set to 0. If the current item was 0, this function does nothing. @@ -489,15 +489,15 @@ See also first(), last(), prev(), and current(). .PP Examples: .)l grapher/grapher.cpp, listviews/listviews.h, and showimg/showimg.cpp. -.SH "bool QPtrList::operator!= ( const QPtrList<type> & list ) const" +.SH "bool TQPtrList::operator!= ( const TQPtrList<type> & list ) const" Compares this list with \fIlist\fR. Returns TRUE if the lists contain different data; otherwise returns FALSE. -.SH "QPtrList<type> & QPtrList::operator= ( const QPtrList<type> & list )" +.SH "TQPtrList<type> & TQPtrList::operator= ( const TQPtrList<type> & list )" Assigns \fIlist\fR to this list and returns a reference to this list. .PP This list is first cleared and then each item in \fIlist\fR is appended to this list. Only the pointers are copied (shallow copy) unless newItem() has been reimplemented. -.SH "bool QPtrList::operator== ( const QPtrList<type> & list ) const" +.SH "bool TQPtrList::operator== ( const TQPtrList<type> & list ) const" Compares this list with \fIlist\fR. Returns TRUE if the lists contain the same data; otherwise returns FALSE. -.SH "void QPtrList::prepend ( const type * item )" +.SH "void TQPtrList::prepend ( const type * item )" Inserts the \fIitem\fR at the start of the list. .PP The inserted item becomes the current list item. This is equivalent to \fCinsert( 0, item )\fR. @@ -505,19 +505,19 @@ The inserted item becomes the current list item. This is equivalent to \fCinsert \fIitem\fR must not be 0. .PP See also append(), insert(), and current(). -.SH "type * QPtrList::prev ()" +.SH "type * TQPtrList::prev ()" Returns a pointer to the item preceding the current item. Returns 0 if the current item is 0 or equal to the first item. .PP Makes the preceding item current. If the current item before this function call was the first item, the current item will be set to 0. If the current item was 0, this function does nothing. .PP See also first(), last(), next(), and current(). -.SH "QDataStream & QPtrList::read ( QDataStream & s, QPtrCollection::Item & item )\fC [virtual protected]\fR" +.SH "QDataStream & TQPtrList::read ( QDataStream & s, TQPtrCollection::Item & item )\fC [virtual protected]\fR" Reads a list item from the stream \fIs\fR and returns a reference to the stream. .PP The default implementation sets \fIitem\fR to 0. .PP See also write(). -.SH "bool QPtrList::remove ( uint index )" +.SH "bool TQPtrList::remove ( uint index )" Removes the item at position \fIindex\fR in the list. .PP Returns TRUE if successful, i.e. if \fIindex\fR is in range; otherwise returns FALSE. The valid range is \fC0..(count() - 1)\fR inclusive. @@ -529,7 +529,7 @@ The item after the removed item becomes the new current list item if the removed All list iterators that refer to the removed item will be set to point to the new current item. .PP See also take(), clear(), setAutoDelete(), current(), and removeRef(). -.SH "bool QPtrList::remove ()" +.SH "bool TQPtrList::remove ()" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Removes the current list item. @@ -543,7 +543,7 @@ The item after the removed item becomes the new current list item if the removed All list iterators that refer to the removed item will be set to point to the new current item. .PP See also take(), clear(), setAutoDelete(), current(), and removeRef(). -.SH "bool QPtrList::remove ( const type * item )" +.SH "bool TQPtrList::remove ( const type * item )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Removes the first occurrence of \fIitem\fR from the list. @@ -561,7 +561,7 @@ The item after the removed item becomes the new current list item if the removed All list iterators that refer to the removed item will be set to point to the new current item. .PP See also removeRef(), take(), clear(), setAutoDelete(), compareItems(), and current(). -.SH "bool QPtrList::removeFirst ()" +.SH "bool TQPtrList::removeFirst ()" Removes the first item from the list. Returns TRUE if successful, i.e. if the list isn't empty; otherwise returns FALSE. .PP The removed item is deleted if auto-deletion is enabled. @@ -571,7 +571,7 @@ The first item in the list becomes the new current list item. The current item i All list iterators that refer to the removed item will be set to point to the new current item. .PP See also removeLast(), setAutoDelete(), current(), and remove(). -.SH "bool QPtrList::removeLast ()" +.SH "bool TQPtrList::removeLast ()" Removes the last item from the list. Returns TRUE if successful, i.e. if the list isn't empty; otherwise returns FALSE. .PP The removed item is deleted if auto-deletion is enabled. @@ -581,7 +581,7 @@ The last item in the list becomes the new current list item. The current item is All list iterators that refer to the removed item will be set to point to the new current item. .PP See also removeFirst(), setAutoDelete(), and current(). -.SH "void QPtrList::removeNode ( QLNode * node )" +.SH "void TQPtrList::removeNode ( QLNode * node )" Removes the \fInode\fR from the list. .PP This node must exist in the list, otherwise the program may crash. @@ -595,7 +595,7 @@ All list iterators that refer to the removed item will be set to point to the it \fBWarning:\fR Do not call this function unless you are an expert. .PP See also takeNode(), currentNode(), remove(), and removeRef(). -.SH "bool QPtrList::removeRef ( const type * item )" +.SH "bool TQPtrList::removeRef ( const type * item )" Removes the first occurrence of \fIitem\fR from the list. .PP Returns TRUE if successful, i.e. if \fIitem\fR is in the list; otherwise returns FALSE. @@ -617,13 +617,13 @@ The item after the removed item becomes the new current list item if the removed All list iterators that refer to the removed item will be set to point to the new current item. .PP See also remove(), clear(), setAutoDelete(), and current(). -.SH "bool QPtrList::replace ( uint index, const type * item )" +.SH "bool TQPtrList::replace ( uint index, const type * item )" Replaces the item at position \fIindex\fR with the new \fIitem\fR. .PP Returns TRUE if successful, i.e. \fIindex\fR is in the range 0 to count()-1. .PP See also append(), current(), and insert(). -.SH "void QPtrCollection::setAutoDelete ( bool enable )" +.SH "void TQPtrCollection::setAutoDelete ( bool enable )" Sets the collection to auto-delete its contents if \fIenable\fR is TRUE and to never delete them if \fIenable\fR is FALSE. .PP If auto-deleting is turned on, all the items in a collection are deleted when the collection itself is deleted. This is convenient if the collection has the only pointer to the items. @@ -636,13 +636,13 @@ See also autoDelete(). .PP Examples: .)l grapher/grapher.cpp, scribble/scribble.cpp, and table/bigtable/main.cpp. -.SH "void QPtrList::sort ()" +.SH "void TQPtrList::sort ()" Sorts the list by the result of the virtual compareItems() function. .PP The heap sort algorithm is used for sorting. It sorts n items with O(n*log n) comparisons. This is the asymptotic optimal solution of the sorting problem. .PP See also inSort(). -.SH "type * QPtrList::take ( uint index )" +.SH "type * TQPtrList::take ( uint index )" Takes the item at position \fIindex\fR out of the list without deleting it (even if auto-deletion is enabled). .PP Returns a pointer to the item taken out of the list, or 0 if the index is out of range. The valid range is \fC0..(count() - 1)\fR inclusive. @@ -655,7 +655,7 @@ See also remove(), clear(), and current(). .PP Examples: .)l customlayout/border.cpp, customlayout/card.cpp, and customlayout/flow.cpp. -.SH "type * QPtrList::take ()" +.SH "type * TQPtrList::take ()" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Takes the current item out of the list without deleting it (even if auto-deletion is enabled). @@ -667,7 +667,7 @@ The item after the removed item becomes the new current list item if the removed All list iterators that refer to the taken item will be set to point to the new current item. .PP See also remove(), clear(), and current(). -.SH "type * QPtrList::takeNode ( QLNode * node )" +.SH "type * TQPtrList::takeNode ( QLNode * node )" Takes the \fInode\fR out of the list without deleting its item (even if auto-deletion is enabled). Returns a pointer to the item taken out of the list. .PP This node must exist in the list, otherwise the program may crash. @@ -679,11 +679,11 @@ All list iterators that refer to the taken item will be set to point to the item \fBWarning:\fR Do not call this function unless you are an expert. .PP See also removeNode() and currentNode(). -.SH "void QPtrList::toVector ( QGVector * vec ) const" +.SH "void TQPtrList::toVector ( QGVector * vec ) const" Stores all list items in the vector \fIvec\fR. .PP The vector must be of the same item type, otherwise the result will be undefined. -.SH "QDataStream & QPtrList::write ( QDataStream & s, QPtrCollection::Item item ) const\fC [virtual protected]\fR" +.SH "QDataStream & TQPtrList::write ( QDataStream & s, TQPtrCollection::Item item ) const\fC [virtual protected]\fR" Writes a list item, \fIitem\fR to the stream \fIs\fR and returns a reference to the stream. .PP The default implementation does nothing. @@ -691,7 +691,7 @@ The default implementation does nothing. See also read(). .SH "SEE ALSO" -.BR http://doc.trolltech.com/ntqptrlist.html +.BR http://doc.trolltech.com/tqptrlist.html .BR http://www.trolltech.com/faq/tech.html .SH COPYRIGHT Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the |