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

Reads in a vector from stream s.

Definition at line 483 of file qptrvector.h.

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

00484 {
00485     FXuint mysize;
00486     s >> mysize;
00487     i.clear();
00488     for(uint n=0; n<mysize; n++)
00489     {
00490         type *item;
00491         FXERRHM(item=new type);
00492         s >> *item;
00493         i.append(item);
00494     }
00495     return s;
00496 }


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