Qt 4.8
Public Functions | Public Variables | List of all members
QHashNode< Key, T > Struct Template Reference

#include <qhash.h>

Public Functions

 QHashNode (const Key &key0)
 
 QHashNode (const Key &key0, const T &value0)
 
bool same_key (uint h0, const Key &key0)
 

Public Variables

uint h
 
Key key
 
QHashNodenext
 
value
 

Detailed Description

template<class Key, class T>
struct QHashNode< Key, T >

Definition at line 216 of file qhash.h.

Constructors and Destructors

◆ QHashNode() [1/2]

template<class Key, class T>
QHashNode< Key, T >::QHashNode ( const Key &  key0)
inline

Definition at line 223 of file qhash.h.

223 : key(key0) {} // ### remove in 5.0
Key key
Definition: qhash.h:220

◆ QHashNode() [2/2]

template<class Key, class T>
QHashNode< Key, T >::QHashNode ( const Key &  key0,
const T &  value0 
)
inline

Definition at line 224 of file qhash.h.

224 : key(key0), value(value0) {}
Key key
Definition: qhash.h:220
T value
Definition: qhash.h:221

Functions

◆ same_key()

template<class Key, class T>
bool QHashNode< Key, T >::same_key ( uint  h0,
const Key &  key0 
)
inline

Definition at line 225 of file qhash.h.

Referenced by QHash< QExplicitlySharedDataPointer, QHash >::findNode().

225 { return h0 == h && key0 == key; }
Key key
Definition: qhash.h:220
uint h
Definition: qhash.h:219

Properties

◆ h

template<class Key, class T>
uint QHashNode< Key, T >::h

◆ key

template<class Key, class T>
Key QHashNode< Key, T >::key

◆ next

template<class Key, class T>
QHashNode* QHashNode< Key, T >::next

◆ value

template<class Key, class T>
T QHashNode< Key, T >::value

The documentation for this struct was generated from the following file: