---
name: "__gnu_parallel::DRandomShufflingGlobalData"
section: "3cxx"
platform: "linux"
package: "libstdc++6-4.4-doc"
version: "4.4.7-2"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/__gnu_parallel::DRandomShufflingGlobalData/3cxx"
---

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

## NAME

\_\_gnu\_parallel::DRandomShufflingGlobalData\< RandomAccessIterator \> -

## SYNOPSIS

### 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**\

## 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 52 of file random\_shuffle.h.

## Constructor & Destructor Documentation

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

Constructor.

Definition at line 83 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 74 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 67 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 77 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 80 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 59 of file random\_shuffle.h.

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

Start indexes of the threads' chunks.

Definition at line 70 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 62 of file random\_shuffle.h.

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

## Author

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