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
qalgorithms.h File Reference

(e69d80e14d24001f93442ab59b8babb7e9df0092)

#include <QtCore/qglobal.h>
+ Include dependency graph for qalgorithms.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  QAlgorithmsPrivate
 
namespace  QtPrivate
 \macro QT_NO_KEYWORDS >
 

Macros

#define QT_POPCOUNT_CONSTEXPR   constexpr
 
#define QT_POPCOUNT_RELAXED_CONSTEXPR   constexpr
 

Functions

template<typename ForwardIterator >
QT_BEGIN_NAMESPACE Q_OUTOFLINE_TEMPLATE void qDeleteAll (ForwardIterator begin, ForwardIterator end)
 
template<typename Container >
void qDeleteAll (const Container &c)
 
Q_DECL_CONST_FUNCTION QT_POPCOUNT_CONSTEXPR uint qPopulationCount (quint32 v) noexcept
 
Q_DECL_CONST_FUNCTION QT_POPCOUNT_CONSTEXPR uint qPopulationCount (quint8 v) noexcept
 
Q_DECL_CONST_FUNCTION QT_POPCOUNT_CONSTEXPR uint qPopulationCount (quint16 v) noexcept
 
Q_DECL_CONST_FUNCTION QT_POPCOUNT_CONSTEXPR uint qPopulationCount (quint64 v) noexcept
 
Q_DECL_CONST_FUNCTION QT_POPCOUNT_CONSTEXPR uint qPopulationCount (long unsigned int v) noexcept
 
constexpr uint QtPrivate::qConstexprCountTrailingZeroBits (quint32 v) noexcept
 
constexpr uint QtPrivate::qConstexprCountTrailingZeroBits (quint64 v) noexcept
 
constexpr uint QtPrivate::qConstexprCountTrailingZeroBits (quint8 v) noexcept
 
constexpr uint QtPrivate::qConstexprCountTrailingZeroBits (quint16 v) noexcept
 
constexpr uint QtPrivate::qConstexprCountTrailingZeroBits (unsigned long v) noexcept
 
constexpr uint qCountTrailingZeroBits (quint32 v) noexcept
 
constexpr uint qCountTrailingZeroBits (quint8 v) noexcept
 
constexpr uint qCountTrailingZeroBits (quint16 v) noexcept
 
constexpr uint qCountTrailingZeroBits (quint64 v) noexcept
 
constexpr uint qCountTrailingZeroBits (unsigned long v) noexcept
 
QT_POPCOUNT_RELAXED_CONSTEXPR uint qCountLeadingZeroBits (quint32 v) noexcept
 
QT_POPCOUNT_RELAXED_CONSTEXPR uint qCountLeadingZeroBits (quint8 v) noexcept
 
QT_POPCOUNT_RELAXED_CONSTEXPR uint qCountLeadingZeroBits (quint16 v) noexcept
 
QT_POPCOUNT_RELAXED_CONSTEXPR uint qCountLeadingZeroBits (quint64 v) noexcept
 
QT_POPCOUNT_RELAXED_CONSTEXPR uint qCountLeadingZeroBits (unsigned long v) noexcept
 

Macro Definition Documentation

◆ QT_POPCOUNT_CONSTEXPR

#define QT_POPCOUNT_CONSTEXPR   constexpr

Definition at line 195 of file qalgorithms.h.

◆ QT_POPCOUNT_RELAXED_CONSTEXPR

#define QT_POPCOUNT_RELAXED_CONSTEXPR   constexpr

Definition at line 196 of file qalgorithms.h.

Function Documentation

◆ qCountLeadingZeroBits() [1/5]

QT_POPCOUNT_RELAXED_CONSTEXPR uint qCountLeadingZeroBits ( quint16 v)
inlinenoexcept

Definition at line 399 of file qalgorithms.h.

References qPopulationCount().

+ Here is the call graph for this function:

◆ qCountLeadingZeroBits() [2/5]

QT_POPCOUNT_RELAXED_CONSTEXPR uint qCountLeadingZeroBits ( quint32 v)
inlinenoexcept

Definition at line 368 of file qalgorithms.h.

References qPopulationCount().

Referenced by QRandomGenerator::bounded(), QHashPrivate::GrowthPolicy::bucketsForCapacity(), QLocale::formattedDataSize(), QV4::MathObject::method_clz32(), pow2Log2(), qCountLeadingZeroBits(), QByteArray::qstricmp(), qt_is_ascii(), and QKtxHandler::read().

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

◆ qCountLeadingZeroBits() [3/5]

QT_POPCOUNT_RELAXED_CONSTEXPR uint qCountLeadingZeroBits ( quint64 v)
inlinenoexcept

Definition at line 414 of file qalgorithms.h.

References qPopulationCount().

+ Here is the call graph for this function:

◆ qCountLeadingZeroBits() [4/5]

QT_POPCOUNT_RELAXED_CONSTEXPR uint qCountLeadingZeroBits ( quint8 v)
inlinenoexcept

Definition at line 385 of file qalgorithms.h.

References qPopulationCount().

+ Here is the call graph for this function:

◆ qCountLeadingZeroBits() [5/5]

QT_POPCOUNT_RELAXED_CONSTEXPR uint qCountLeadingZeroBits ( unsigned long v)
inlinenoexcept

Definition at line 431 of file qalgorithms.h.

References qCountLeadingZeroBits().

+ Here is the call graph for this function:

◆ qCountTrailingZeroBits() [1/5]

constexpr uint qCountTrailingZeroBits ( quint16 v)
inlineconstexprnoexcept

Definition at line 341 of file qalgorithms.h.

References QtPrivate::qConstexprCountTrailingZeroBits().

+ Here is the call graph for this function:

◆ qCountTrailingZeroBits() [2/5]

constexpr uint qCountTrailingZeroBits ( quint32 v)
inlineconstexprnoexcept

Definition at line 319 of file qalgorithms.h.

References QtPrivate::qConstexprCountTrailingZeroBits().

Referenced by QV4::Chunk::freeAll(), lowest_bit(), QV4::Chunk::lowestNonZeroBit(), qCountTrailingZeroBits(), QByteArray::qstricmp(), qt_is_ascii(), QtPrivate::qustrchr(), QV4::Chunk::sortIntoBins(), QV4::Chunk::sweep(), ucstrncmp(), and QXcbVirtualDesktop::visualForFormat().

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

◆ qCountTrailingZeroBits() [3/5]

constexpr uint qCountTrailingZeroBits ( quint64 v)
inlineconstexprnoexcept

Definition at line 352 of file qalgorithms.h.

References QtPrivate::qConstexprCountTrailingZeroBits().

+ Here is the call graph for this function:

◆ qCountTrailingZeroBits() [4/5]

constexpr uint qCountTrailingZeroBits ( quint8 v)
inlineconstexprnoexcept

Definition at line 330 of file qalgorithms.h.

References QtPrivate::qConstexprCountTrailingZeroBits().

+ Here is the call graph for this function:

◆ qCountTrailingZeroBits() [5/5]

constexpr uint qCountTrailingZeroBits ( unsigned long v)
inlineconstexprnoexcept

Definition at line 363 of file qalgorithms.h.

References qCountTrailingZeroBits().

+ Here is the call graph for this function:

◆ qDeleteAll() [1/2]

template<typename Container >
void qDeleteAll ( const Container & c)
inline

Definition at line 33 of file qalgorithms.h.

References qDeleteAll().

+ Here is the call graph for this function:

◆ qDeleteAll() [2/2]

template<typename ForwardIterator >
QT_BEGIN_NAMESPACE Q_OUTOFLINE_TEMPLATE void qDeleteAll ( ForwardIterator begin,
ForwardIterator end )

Definition at line 24 of file qalgorithms.h.

References begin().

Referenced by qDeleteAll().

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

◆ qPopulationCount() [1/5]

Q_DECL_CONST_FUNCTION QT_POPCOUNT_CONSTEXPR uint qPopulationCount ( long unsigned int v)
inlinenoexcept

Definition at line 258 of file qalgorithms.h.

References qPopulationCount().

+ Here is the call graph for this function:

◆ qPopulationCount() [2/5]

Q_DECL_CONST_FUNCTION QT_POPCOUNT_CONSTEXPR uint qPopulationCount ( quint16 v)
inlinenoexcept

Definition at line 228 of file qalgorithms.h.

References Q_UINT64_C.

◆ qPopulationCount() [3/5]

◆ qPopulationCount() [4/5]

Q_DECL_CONST_FUNCTION QT_POPCOUNT_CONSTEXPR uint qPopulationCount ( quint64 v)
inlinenoexcept

Definition at line 241 of file qalgorithms.h.

References Q_UINT64_C.

◆ qPopulationCount() [5/5]

Q_DECL_CONST_FUNCTION QT_POPCOUNT_CONSTEXPR uint qPopulationCount ( quint8 v)
inlinenoexcept

Definition at line 216 of file qalgorithms.h.

References Q_UINT64_C.