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
QDuplicateTracker< T, Prealloc > Class Template Reference

#include <qduplicatetracker_p.h>

+ Collaboration diagram for QDuplicateTracker< T, Prealloc >:

Public Member Functions

 QDuplicateTracker ()=default
 
 QDuplicateTracker (qsizetype n)
 
void reserve (qsizetype n)
 
bool hasSeen (const T &s)
 
bool hasSeen (T &&s)
 
template<typename C >
void appendTo (C &c) const &
 
template<typename C >
void appendTo (C &c) &&
 
void clear ()
 

Static Public Attributes

static constexpr bool uses_pmr
 

Detailed Description

template<typename T, size_t Prealloc = 32>
class QDuplicateTracker< T, Prealloc >

Definition at line 30 of file qduplicatetracker_p.h.

Constructor & Destructor Documentation

◆ QDuplicateTracker() [1/2]

template<typename T , size_t Prealloc = 32>
QDuplicateTracker< T, Prealloc >::QDuplicateTracker ( )
default

◆ QDuplicateTracker() [2/2]

template<typename T , size_t Prealloc = 32>
QDuplicateTracker< T, Prealloc >::QDuplicateTracker ( qsizetype n)
inlineexplicit

Definition at line 80 of file qduplicatetracker_p.h.

Member Function Documentation

◆ appendTo() [1/2]

template<typename T , size_t Prealloc = 32>
template<typename C >
void QDuplicateTracker< T, Prealloc >::appendTo ( C & c) &&
inline

Definition at line 106 of file qduplicatetracker_p.h.

References QDuplicateTracker< T, Prealloc >::appendTo(), QSet< T >::begin(), QSet< T >::empty(), and QDuplicateTracker< T, Prealloc >::uses_pmr.

+ Here is the call graph for this function:

◆ appendTo() [2/2]

template<typename T , size_t Prealloc = 32>
template<typename C >
void QDuplicateTracker< T, Prealloc >::appendTo ( C & c) const &
inline

Definition at line 99 of file qduplicatetracker_p.h.

Referenced by QDuplicateTracker< T, Prealloc >::appendTo().

+ Here is the caller graph for this function:

◆ clear()

template<typename T , size_t Prealloc = 32>
void QDuplicateTracker< T, Prealloc >::clear ( )
inline

Definition at line 116 of file qduplicatetracker_p.h.

References QSet< T >::clear().

+ Here is the call graph for this function:

◆ hasSeen() [1/2]

template<typename T , size_t Prealloc = 32>
bool QDuplicateTracker< T, Prealloc >::hasSeen ( const T & s)
inline

Definition at line 89 of file qduplicatetracker_p.h.

Referenced by QTestTable::newData(), and QDirListingPrivate::pushDirectory().

+ Here is the caller graph for this function:

◆ hasSeen() [2/2]

template<typename T , size_t Prealloc = 32>
bool QDuplicateTracker< T, Prealloc >::hasSeen ( T && s)
inline

Definition at line 93 of file qduplicatetracker_p.h.

◆ reserve()

template<typename T , size_t Prealloc = 32>
void QDuplicateTracker< T, Prealloc >::reserve ( qsizetype n)
inline

Definition at line 88 of file qduplicatetracker_p.h.

References QSet< T >::reserve().

+ Here is the call graph for this function:

Member Data Documentation

◆ uses_pmr

template<typename T , size_t Prealloc = 32>
constexpr bool QDuplicateTracker< T, Prealloc >::uses_pmr
inlinestaticconstexpr
Initial value:
=
false

Definition at line 72 of file qduplicatetracker_p.h.

Referenced by QDuplicateTracker< T, Prealloc >::appendTo().


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