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

Go to the source code of this file.

Data Structures

struct  Less< T >
 

Macros

#define TEST(src)    test_sort (__LINE__, src, 0, (T*)0, ppred, stable, alloc)
 

Functions

 _RWSTD_NAMESPACE (std)
 
template<class T , class Predicate >
void test_sort (int line, const char *src, const std::size_t N, const T *, const Predicate *ppred, bool stable, bool alloc)
 
template<class T , class Predicate >
void test_sort (const std::size_t N, const T *, const Predicate *ppred, bool stable, bool alloc)
 
template<class T >
void test_sort (const std::size_t N, const T *, bool stable, bool alloc)
 
int main (int argc, char *argv[])
 

Variables

int rw_opt_nloops = 256
 
int rw_opt_no_sort
 
int rw_opt_no_stable_sort
 
int rw_opt_no_predicate
 
int rw_opt_no_complexity
 

Macro Definition Documentation

◆ TEST

#define TEST (   src)     test_sort (__LINE__, src, 0, (T*)0, ppred, stable, alloc)

Function Documentation

◆ _RWSTD_NAMESPACE()

_RWSTD_NAMESPACE ( std  )

25.sort.cpp - test exercising lib.sort and lib.stable.sort

$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-2006 Rogue Wave Software.

Definition at line 39 of file 25.sort.cpp.

◆ main()

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

Definition at line 405 of file 25.sort.cpp.

◆ test_sort() [1/3]

template<class T >
void test_sort ( const std::size_t  N,
const T *  ,
bool  stable,
bool  alloc 
)

Definition at line 358 of file 25.sort.cpp.

◆ test_sort() [2/3]

template<class T , class Predicate >
void test_sort ( const std::size_t  N,
const T *  ,
const Predicate *  ppred,
bool  stable,
bool  alloc 
)

Definition at line 282 of file 25.sort.cpp.

◆ test_sort() [3/3]

template<class T , class Predicate >
void test_sort ( int  line,
const char *  src,
const std::size_t  N,
const T *  ,
const Predicate *  ppred,
bool  stable,
bool  alloc 
)

Definition at line 102 of file 25.sort.cpp.

Variable Documentation

◆ rw_opt_nloops

int rw_opt_nloops = 256

Definition at line 273 of file 25.sort.cpp.

◆ rw_opt_no_complexity

int rw_opt_no_complexity

Definition at line 277 of file 25.sort.cpp.

◆ rw_opt_no_predicate

int rw_opt_no_predicate

Definition at line 276 of file 25.sort.cpp.

◆ rw_opt_no_sort

int rw_opt_no_sort

Definition at line 274 of file 25.sort.cpp.

◆ rw_opt_no_stable_sort

int rw_opt_no_stable_sort

Definition at line 275 of file 25.sort.cpp.