template<class type, class allocator>
FXStream& FX::operator>> ( FXStream &  s,
QSortedList< type, allocator > &  i 
)

Reads in a list from stream s.

Definition at line 312 of file qsortedlist.h.

References FX::QPtrList< type, allocator >::append(), FX::QPtrList< type, allocator >::clear(), and FXERRHM.

00313 {
00314     QPtrList<type, allocator> &ii=(QPtrList<type, allocator> &) i;
00315     FXuint mysize;
00316     s >> mysize;
00317     i.clear();
00318     for(FXuint n=0; n<mysize; n++)
00319     {
00320         type *item;
00321         FXERRHM(item=new type);
00322         s >> *item;
00323         ii.append(item);
00324     }
00325     return s;
00326 }


(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:32:29 2009 for TnFOX by doxygen v1.4.7