Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QHashPrivate::Data< Node >::Bucket Struct Reference

#include <qhash.h>

+ Collaboration diagram for QHashPrivate::Data< Node >::Bucket:

Public Member Functions

 Bucket (Span *s, size_t i) noexcept
 
 Bucket (const Data *d, size_t bucket) noexcept
 
 Bucket (iterator it) noexcept
 
size_t toBucketIndex (const Data *d) const noexcept
 
iterator toIterator (const Data *d) const noexcept
 
void advanceWrapped (const Data *d) noexcept
 
void advance (const Data *d) noexcept
 
bool isUnused () const noexcept
 
size_t offset () const noexcept
 
NodenodeAtOffset (size_t offset)
 
Nodenode ()
 
Nodeinsert () const
 

Public Attributes

Spanspan
 
size_t index
 

Friends

bool operator== (Bucket lhs, Bucket rhs) noexcept
 
bool operator!= (Bucket lhs, Bucket rhs) noexcept
 

Detailed Description

template<typename Node>
struct QHashPrivate::Data< Node >::Bucket

Definition at line 465 of file qhash.h.

Constructor & Destructor Documentation

◆ Bucket() [1/3]

template<typename Node >
QHashPrivate::Data< Node >::Bucket::Bucket ( Span * s,
size_t i )
inlinenoexcept

Definition at line 469 of file qhash.h.

◆ Bucket() [2/3]

template<typename Node >
QHashPrivate::Data< Node >::Bucket::Bucket ( const Data * d,
size_t bucket )
inlinenoexcept

Definition at line 472 of file qhash.h.

◆ Bucket() [3/3]

template<typename Node >
QHashPrivate::Data< Node >::Bucket::Bucket ( iterator it)
inlinenoexcept

Definition at line 476 of file qhash.h.

Member Function Documentation

◆ advance()

template<typename Node >
void QHashPrivate::Data< Node >::Bucket::advance ( const Data * d)
inlinenoexcept

Definition at line 489 of file qhash.h.

References d.

◆ advanceWrapped()

template<typename Node >
void QHashPrivate::Data< Node >::Bucket::advanceWrapped ( const Data * d)
inlinenoexcept

Definition at line 485 of file qhash.h.

References d.

Referenced by QHashPrivate::Data< Node >::findBucket().

+ Here is the caller graph for this function:

◆ insert()

template<typename Node >
Node * QHashPrivate::Data< Node >::Bucket::insert ( ) const
inline

Definition at line 509 of file qhash.h.

◆ isUnused()

template<typename Node >
bool QHashPrivate::Data< Node >::Bucket::isUnused ( ) const
inlinenoexcept

Definition at line 493 of file qhash.h.

Referenced by QHash< Key, T >::erase(), and QMultiHash< Key, T >::erase().

+ Here is the caller graph for this function:

◆ node()

template<typename Node >
Node * QHashPrivate::Data< Node >::Bucket::node ( )
inline

Definition at line 505 of file qhash.h.

◆ nodeAtOffset()

template<typename Node >
Node & QHashPrivate::Data< Node >::Bucket::nodeAtOffset ( size_t offset)
inline

Definition at line 501 of file qhash.h.

Referenced by QHashPrivate::Data< Node >::findBucket().

+ Here is the caller graph for this function:

◆ offset()

template<typename Node >
size_t QHashPrivate::Data< Node >::Bucket::offset ( ) const
inlinenoexcept

Definition at line 497 of file qhash.h.

Referenced by QHashPrivate::Data< Node >::findBucket().

+ Here is the caller graph for this function:

◆ toBucketIndex()

template<typename Node >
size_t QHashPrivate::Data< Node >::Bucket::toBucketIndex ( const Data * d) const
inlinenoexcept

Definition at line 480 of file qhash.h.

References d, QHashPrivate::Data< Node >::Bucket::index, and QHashPrivate::SpanConstants::SpanShift.

Referenced by QHash< Key, T >::erase(), QMultiHash< Key, T >::erase(), and QHashPrivate::Data< Node >::Bucket::toIterator().

+ Here is the caller graph for this function:

◆ toIterator()

template<typename Node >
iterator QHashPrivate::Data< Node >::Bucket::toIterator ( const Data * d) const
inlinenoexcept

Definition at line 484 of file qhash.h.

References d, and QHashPrivate::Data< Node >::Bucket::toBucketIndex().

Referenced by QMultiHash< Key, T >::erase().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ operator!=

template<typename Node >
bool operator!= ( Bucket lhs,
Bucket rhs )
friend

Definition at line 519 of file qhash.h.

◆ operator==

template<typename Node >
bool operator== ( Bucket lhs,
Bucket rhs )
friend

Definition at line 515 of file qhash.h.

Member Data Documentation

◆ index

template<typename Node >
size_t QHashPrivate::Data< Node >::Bucket::index

Definition at line 467 of file qhash.h.

Referenced by QHashPrivate::Data< Node >::Bucket::toBucketIndex().

◆ span

template<typename Node >
Span* QHashPrivate::Data< Node >::Bucket::span

Definition at line 466 of file qhash.h.


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