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

Go to the source code of this file.

Classes

struct  QMapNodeBase
 
struct  QMapNode< K, T >
 
class  QMapIterator< K, T >
 
class  QMapConstIterator< K, T >
 
class  QMapPrivateBase
 
class  QMapPrivate< Key, T >
 
class  QMap< Key, T >
 

Functions

template<class Key , class T >
QDataStreamoperator>> (QDataStream &s, QMap< Key, T > &m)
 
template<class Key , class T >
QDataStreamoperator<< (QDataStream &s, const QMap< Key, T > &m)
 

Function Documentation

template<class Key , class T >
QDataStream& operator<< ( QDataStream s,
const QMap< Key, T > &  m 
)
inline

Definition at line 597 of file qmap.h.

597  {
598  s << (Q_UINT32)m.count();
600  for( ; it != m.end(); ++it )
601  s << it.key() << it.data();
602  return s;
603 }
uint count() const
Definition: qmap.h:541
Iterator end()
Definition: qmap.h:523
Iterator begin()
Definition: qmap.h:522
const K & key() const
Definition: qmap.h:213
unsigned int Q_UINT32
Definition: qglobal.h:420
const T & data() const
Definition: qmap.h:214
static QCString * s
Definition: config.cpp:1042
template<class Key , class T >
QDataStream& operator>> ( QDataStream s,
QMap< Key, T > &  m 
)
inline

Definition at line 583 of file qmap.h.

583  {
584  m.clear();
585  Q_UINT32 c;
586  s >> c;
587  for( Q_UINT32 i = 0; i < c; ++i ) {
588  Key k; T t;
589  s >> k >> t;
590  m.insert( k, t );
591  }
592  return s;
593 }
void clear()
Definition: qmap.h:565
Iterator insert(const Key &key, const T &value)
Definition: qmap.h:545
unsigned int Q_UINT32
Definition: qglobal.h:420
static QCString * s
Definition: config.cpp:1042