QtCore/qmap.h File Reference

qmap.h File Reference
#include <QtCore/qatomic.h>
#include <QtCore/qiterator.h>
#include <QtCore/qlist.h>
#include <map>
#include <new>

Classes

struct  QMapData
 
struct  QMapData::Node
 
struct  QMapNode< Key, T >
 
struct  QMapPayloadNode< Key, T >
 
class  QMap< Key, T >
 
class  QMap< Key, T >::iterator
 
class  QMap< Key, T >::const_iterator
 
class  QMultiMap< Key, T >
 

Functions

template<class Key >
bool qMapLessThanKey (const Key &key1, const Key &key2)
 
template<class Ptr >
bool qMapLessThanKey (Ptr *key1, Ptr *key2)
 
template<class Ptr >
bool qMapLessThanKey (const Ptr *key1, const Ptr *key2)
 

Function Documentation

bool qMapLessThanKey ( const Key &  key1,
const Key &  key2 
)
inline

Definition at line 105 of file qmap.h.

106 {
107  return key1 < key2;
108 }
bool qMapLessThanKey ( Ptr *  key1,
Ptr *  key2 
)
inline

Definition at line 110 of file qmap.h.

111 {
112  Q_ASSERT(sizeof(quintptr) == sizeof(Ptr *));
113  return quintptr(key1) < quintptr(key2);
114 }
bool qMapLessThanKey ( const Ptr *  key1,
const Ptr *  key2 
)
inline

Definition at line 116 of file qmap.h.

117 {
118  Q_ASSERT(sizeof(quintptr) == sizeof(const Ptr *));
119  return quintptr(key1) < quintptr(key2);
120 }

Go to the source code of this file.