---
name: "__gnu_parallel::DRandomShufflingGlobalData"
section: "3"
platform: "linux"
package: "libstdc++6-4.3-doc"
version: "4.3.2-1.1"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/__gnu_parallel::DRandomShufflingGlobalData"
---

# \_\_gnu\_parallel::DRandomShufflingGlobalData(3)

## NAME

\_\_gnu\_parallel::DRandomShufflingGlobalData -

## SYNOPSIS

## Detailed Description

### template\<typename RandomAccessIterator\> struct \_\_gnu\_parallel::DRandomShufflingGlobalData\< RandomAccessIterator \>

Data known to every thread participating in **\_\_gnu\_parallel::parallel\_random\_shuffle()**.

Definition at line 58 of file random\_shuffle.h.

### Public Types

typedef traits\_type::difference\_type **difference\_type**\
 typedef **std::iterator\_traits**\< RandomAccessIterator \> **traits\_type**\
 typedef traits\_type::value\_type **value\_type**\

### Public Member Functions

**DRandomShufflingGlobalData** (RandomAccessIterator &\_source)\

### Public Attributes

**thread\_index\_t** \* **bin\_proc**\
 difference\_type \*\* **dist**\
 int **num\_bins**\
 int **num\_bits**\
 RandomAccessIterator & **source**\
 difference\_type \* **starts**\
 value\_type \*\* **temporaries**\

## Constructor & Destructor Documentation

### template\<typename RandomAccessIterator\> \_\_gnu\_parallel::DRandomShufflingGlobalData\< RandomAccessIterator \>::DRandomShufflingGlobalData (RandomAccessIterator & \_source)` [inline]`

Constructor.

Definition at line 89 of file random\_shuffle.h.

## Member Data Documentation

### template\<typename RandomAccessIterator\> thread\_index\_t\* \_\_gnu\_parallel::DRandomShufflingGlobalData\< RandomAccessIterator \>::bin\_proc

Number of the thread that will further process the corresponding bin.

Definition at line 80 of file random\_shuffle.h.

Referenced by \_\_gnu\_parallel::parallel\_random\_shuffle\_drs().

### template\<typename RandomAccessIterator\> difference\_type\*\* \_\_gnu\_parallel::DRandomShufflingGlobalData\< RandomAccessIterator \>::dist

Two-dimensional array to hold the thread-bin distribution.

Dimensions (num\_threads + 1) x (num\_bins + 1).

Definition at line 73 of file random\_shuffle.h.

Referenced by \_\_gnu\_parallel::parallel\_random\_shuffle\_drs(), and \_\_gnu\_parallel::parallel\_random\_shuffle\_drs\_pu().

### template\<typename RandomAccessIterator\> int \_\_gnu\_parallel::DRandomShufflingGlobalData\< RandomAccessIterator \>::num\_bins

Number of bins to distribute to.

Definition at line 83 of file random\_shuffle.h.

Referenced by \_\_gnu\_parallel::parallel\_random\_shuffle\_drs(), and \_\_gnu\_parallel::parallel\_random\_shuffle\_drs\_pu().

### template\<typename RandomAccessIterator\> int \_\_gnu\_parallel::DRandomShufflingGlobalData\< RandomAccessIterator \>::num\_bits

Number of bits needed to address the bins.

Definition at line 86 of file random\_shuffle.h.

Referenced by \_\_gnu\_parallel::parallel\_random\_shuffle\_drs(), and \_\_gnu\_parallel::parallel\_random\_shuffle\_drs\_pu().

### template\<typename RandomAccessIterator\> RandomAccessIterator& \_\_gnu\_parallel::DRandomShufflingGlobalData\< RandomAccessIterator \>::source

Begin iterator of the source.

Definition at line 65 of file random\_shuffle.h.

### template\<typename RandomAccessIterator\> difference\_type\* \_\_gnu\_parallel::DRandomShufflingGlobalData\< RandomAccessIterator \>::starts

Start indexes of the threads' chunks.

Definition at line 76 of file random\_shuffle.h.

Referenced by \_\_gnu\_parallel::parallel\_random\_shuffle\_drs(), and \_\_gnu\_parallel::parallel\_random\_shuffle\_drs\_pu().

### template\<typename RandomAccessIterator\> value\_type\*\* \_\_gnu\_parallel::DRandomShufflingGlobalData\< RandomAccessIterator \>::temporaries

Temporary arrays for each thread.

Definition at line 68 of file random\_shuffle.h.

Referenced by \_\_gnu\_parallel::parallel\_random\_shuffle\_drs().

## Author

Generated automatically by Doxygen for libstdc++ from the source code.
