Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Data Structures | Functions | Variables
25.random.shuffle.cpp File Reference
#include <algorithm>
#include <cstring>
#include <rw_alg_test.h>
#include <rw_value.h>
#include <rw_driver.h>
Include dependency graph for 25.random.shuffle.cpp:

Go to the source code of this file.

Data Structures

struct  Convertible< DifferenceType >
 
struct  RandomGenerator< DifferenceType >
 

Functions

 _RWSTD_NAMESPACE (std)
 
template<class DifferenceType , class T >
void operator+ (Convertible< DifferenceType >, T)
 
template<class DifferenceType , class T >
void operator+ (T, Convertible< DifferenceType >)
 
int sequence_generator ()
 
template<class T , class Iterator , class RandomNumberGenerator >
void test_random_shuffle (const int line, const std::size_t N, const Iterator &it, const RandomNumberGenerator *, const T *, bool rnd_gen)
 
void test_random_shuffle (const int line)
 
int main (int argc, char *argv[])
 

Variables

int sequence_start
 
int rw_opt_nloops = 1024
 
int rw_opt_no_random
 
int rw_opt_no_random_generator
 
int rw_opt_no_rand_test
 

Function Documentation

◆ _RWSTD_NAMESPACE()

_RWSTD_NAMESPACE ( std  )

25.random.shuffle.cpp - test exercising 25.2.11 [lib.alg.random.shuffle]

$Id$

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 1994-2008 Rogue Wave Software, Inc.

Definition at line 37 of file 25.random.shuffle.cpp.

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 379 of file 25.random.shuffle.cpp.

◆ operator+() [1/2]

template<class DifferenceType , class T >
void operator+ ( Convertible< DifferenceType >  ,
T   
)

◆ operator+() [2/2]

template<class DifferenceType , class T >
void operator+ ( T  ,
Convertible< DifferenceType >   
)

◆ sequence_generator()

int sequence_generator ( )

Definition at line 131 of file 25.random.shuffle.cpp.

◆ test_random_shuffle() [1/2]

void test_random_shuffle ( const int  line)

Definition at line 227 of file 25.random.shuffle.cpp.

◆ test_random_shuffle() [2/2]

template<class T , class Iterator , class RandomNumberGenerator >
void test_random_shuffle ( const int  line,
const std::size_t  N,
const Iterator &  it,
const RandomNumberGenerator *  ,
const T *  ,
bool  rnd_gen 
)

Definition at line 140 of file 25.random.shuffle.cpp.

Variable Documentation

◆ rw_opt_nloops

int rw_opt_nloops = 1024

Definition at line 327 of file 25.random.shuffle.cpp.

◆ rw_opt_no_rand_test

int rw_opt_no_rand_test

Definition at line 330 of file 25.random.shuffle.cpp.

◆ rw_opt_no_random

int rw_opt_no_random

Definition at line 328 of file 25.random.shuffle.cpp.

◆ rw_opt_no_random_generator

int rw_opt_no_random_generator

Definition at line 329 of file 25.random.shuffle.cpp.

◆ sequence_start

int sequence_start

Definition at line 129 of file 25.random.shuffle.cpp.