Classes | Functions
qvaluelist.h File Reference
#include "qshared.h"
#include "qdatastream.h"

Go to the source code of this file.

Classes

class  QValueListNode< T >
 
class  QValueListIterator< T >
 
class  QValueListConstIterator< T >
 
class  QValueListPrivate< T >
 
class  QValueList< T >
 

Functions

template<class T >
QDataStreamoperator>> (QDataStream &s, QValueList< T > &l)
 
template<class T >
QDataStreamoperator<< (QDataStream &s, const QValueList< T > &l)
 

Function Documentation

template<class T >
QDataStream& operator<< ( QDataStream s,
const QValueList< T > &  l 
)
inline

Definition at line 440 of file qvaluelist.h.

441 {
442  s << (Q_UINT32)l.count();
444  for( ; it != l.end(); ++it )
445  s << *it;
446  return s;
447 }
Iterator end()
Definition: qvaluelist.h:363
uint count() const
Definition: qvaluelist.h:394
unsigned int Q_UINT32
Definition: qglobal.h:420
Iterator begin()
Definition: qvaluelist.h:361
static QCString * s
Definition: config.cpp:1042
template<class T >
QDataStream& operator>> ( QDataStream s,
QValueList< T > &  l 
)
inline

Definition at line 425 of file qvaluelist.h.

426 {
427  l.clear();
428  Q_UINT32 c;
429  s >> c;
430  for( Q_UINT32 i = 0; i < c; ++i )
431  {
432  T t;
433  s >> t;
434  l.append( t );
435  }
436  return s;
437 }
Iterator append(const T &x)
Definition: qvaluelist.h:372
void clear()
Definition: qvaluelist.h:396
unsigned int Q_UINT32
Definition: qglobal.h:420
static QCString * s
Definition: config.cpp:1042