Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QRandomGenerator::SystemAndGlobalGenerators Struct Reference
Collaboration diagram for QRandomGenerator::SystemAndGlobalGenerators:

Classes

struct  ShortenedSystem
struct  PRNGLocker

Public Member Functions

constexpr SystemAndGlobalGenerators ()
void confirmLiteral ()
constexpr SystemAndGlobalGenerators ()
void confirmLiteral ()

Static Public Member Functions

static SystemAndGlobalGeneratorsself ()
static QRandomGenerator64system ()
static QRandomGenerator64globalNoInit ()
static void securelySeed (QRandomGenerator *rng)
static SystemAndGlobalGeneratorsself ()
static QRandomGenerator64system ()
static QRandomGenerator64globalNoInit ()
static void securelySeed (QRandomGenerator *rng)

Public Attributes

QBasicMutex globalPRNGMutex
struct QRandomGenerator::SystemAndGlobalGenerators::ShortenedSystem system_
SystemGenerator sys
struct { 
   uchar   data [sizeof(QRandomGenerator64)] 
global_

Detailed Description

Definition at line 310 of file qrandom.cpp.

Constructor & Destructor Documentation

◆ SystemAndGlobalGenerators() [1/2]

QRandomGenerator::SystemAndGlobalGenerators::SystemAndGlobalGenerators ( )
inlineconstexpr

Definition at line 330 of file qrandom.cpp.

References SystemAndGlobalGenerators().

Referenced by SystemAndGlobalGenerators(), and confirmLiteral().

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

◆ SystemAndGlobalGenerators() [2/2]

QRandomGenerator::SystemAndGlobalGenerators::SystemAndGlobalGenerators ( )
inlineconstexpr

Definition at line 330 of file qrandom.cpp.

Member Function Documentation

◆ confirmLiteral() [1/2]

void QRandomGenerator::SystemAndGlobalGenerators::confirmLiteral ( )
inline

Definition at line 334 of file qrandom.cpp.

References SystemAndGlobalGenerators().

Here is the call graph for this function:

◆ confirmLiteral() [2/2]

void QRandomGenerator::SystemAndGlobalGenerators::confirmLiteral ( )
inline

Definition at line 334 of file qrandom.cpp.

◆ globalNoInit() [1/2]

QRandomGenerator64 * QRandomGenerator::SystemAndGlobalGenerators::globalNoInit ( )
inlinestatic

Definition at line 359 of file qrandom.cpp.

References self().

Referenced by QRandomGenerator::QRandomGenerator(), QRandomGenerator::QRandomGenerator(), QRandomGenerator::QRandomGenerator(), QRandomGenerator64::global(), and QRandomGenerator::operator=().

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

◆ globalNoInit() [2/2]

QRandomGenerator64 * QRandomGenerator::SystemAndGlobalGenerators::globalNoInit ( )
inlinestatic

Definition at line 359 of file qrandom.cpp.

◆ securelySeed() [1/2]

void QRandomGenerator::SystemAndGlobalGenerators::securelySeed ( QRandomGenerator * rng)
inlinestatic

Definition at line 367 of file qrandom.cpp.

References MersenneTwister.

Referenced by QRandomGenerator64::global(), and QRandomGenerator64::securelySeeded().

Here is the caller graph for this function:

◆ securelySeed() [2/2]

void QRandomGenerator::SystemAndGlobalGenerators::securelySeed ( QRandomGenerator * rng)
inlinestatic

Definition at line 367 of file qrandom.cpp.

◆ self() [1/2]

SystemAndGlobalGenerators * QRandomGenerator::SystemAndGlobalGenerators::self ( )
inlinestatic

Definition at line 343 of file qrandom.cpp.

Referenced by QRandomGenerator::SystemAndGlobalGenerators::PRNGLocker::~PRNGLocker(), globalNoInit(), QRandomGenerator::SystemGenerator::self(), and system().

Here is the caller graph for this function:

◆ self() [2/2]

SystemAndGlobalGenerators * QRandomGenerator::SystemAndGlobalGenerators::self ( )
inlinestatic

Definition at line 343 of file qrandom.cpp.

◆ system() [1/2]

QRandomGenerator64 * QRandomGenerator::SystemAndGlobalGenerators::system ( )
inlinestatic

Definition at line 350 of file qrandom.cpp.

References self().

Referenced by QRandomGenerator64::system().

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

◆ system() [2/2]

QRandomGenerator64 * QRandomGenerator::SystemAndGlobalGenerators::system ( )
inlinestatic

Definition at line 350 of file qrandom.cpp.

Member Data Documentation

◆ data

uchar QRandomGenerator::SystemAndGlobalGenerators::data[sizeof(QRandomGenerator64)]

Definition at line 327 of file qrandom.cpp.

◆ [struct]

struct { ... } QRandomGenerator::SystemAndGlobalGenerators::global_

◆ globalPRNGMutex

QBasicMutex QRandomGenerator::SystemAndGlobalGenerators::globalPRNGMutex

Definition at line 323 of file qrandom.cpp.

◆ sys

SystemGenerator QRandomGenerator::SystemAndGlobalGenerators::sys

Definition at line 325 of file qrandom.cpp.

Referenced by QRandomGenerator::SystemGenerator::self().

◆ system_

struct QRandomGenerator::SystemAndGlobalGenerators::ShortenedSystem QRandomGenerator::SystemAndGlobalGenerators::system_

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