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

Go to the source code of this file.

Data Structures

struct  incT< T >
 
struct  plusT< T >
 

Functions

 _RWSTD_NAMESPACE (std)
 
template<class InputIterator , class Unused , class OutputIterator >
OutputIterator invoke_transform (InputIterator first, InputIterator last, Unused, OutputIterator dest, incT< UserClass > fun)
 
template<class InputIterator1 , class InputIterator2 , class OutputIterator >
OutputIterator invoke_transform (InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, OutputIterator dest, plusT< UserClass > fun)
 
template<class T , class InputIterator1 , class InputIterator2 , class OutputIterator , class Function >
void test_transform (const T *ptr, const InputIterator1 &it1, const InputIterator2 &it2, const OutputIterator &out, const Function *, int same_seq)
 
template<class T , class InputIterator1 , class InputIterator2 , class OutputIterator , class Function >
void gen_test (const T *ptr, const InputIterator1 &it1, const InputIterator2 &it2, const OutputIterator &out, const Function *pfun, int tag1, int tag2, int tag3, int same_seq)
 
int main (int argc, char *argv[])
 

Variables

int rw_opt_nloops = 32
 
int rw_opt_no_unary_function
 
int rw_opt_no_binary_function
 
int rw_opt_no_input_iter
 
int rw_opt_no_output_iter
 
int rw_opt_no_fwd_iter
 
int rw_opt_no_bidir_iter
 
int rw_opt_no_rnd_iter
 

Function Documentation

◆ _RWSTD_NAMESPACE()

_RWSTD_NAMESPACE ( std  )

25.transform.cpp - test exercising 25.2.3 [lib.alg.transform]

$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 37 of file 25.transform.cpp.

◆ gen_test()

template<class T , class InputIterator1 , class InputIterator2 , class OutputIterator , class Function >
void gen_test ( const T *  ptr,
const InputIterator1 &  it1,
const InputIterator2 &  it2,
const OutputIterator &  out,
const Function *  pfun,
int  tag1,
int  tag2,
int  tag3,
int  same_seq 
)

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

◆ invoke_transform() [1/2]

template<class InputIterator , class Unused , class OutputIterator >
OutputIterator invoke_transform ( InputIterator  first,
InputIterator  last,
Unused  ,
OutputIterator  dest,
incT< UserClass >  fun 
)

Definition at line 137 of file 25.transform.cpp.

◆ invoke_transform() [2/2]

template<class InputIterator1 , class InputIterator2 , class OutputIterator >
OutputIterator invoke_transform ( InputIterator1  first1,
InputIterator1  last1,
InputIterator2  first2,
OutputIterator  dest,
plusT< UserClass >  fun 
)

Definition at line 146 of file 25.transform.cpp.

◆ main()

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

Definition at line 483 of file 25.transform.cpp.

◆ test_transform()

template<class T , class InputIterator1 , class InputIterator2 , class OutputIterator , class Function >
void test_transform ( const T *  ptr,
const InputIterator1 &  it1,
const InputIterator2 &  it2,
const OutputIterator &  out,
const Function *  ,
int  same_seq 
)

Definition at line 156 of file 25.transform.cpp.

Variable Documentation

◆ rw_opt_nloops

int rw_opt_nloops = 32

Definition at line 124 of file 25.transform.cpp.

◆ rw_opt_no_bidir_iter

int rw_opt_no_bidir_iter

Definition at line 130 of file 25.transform.cpp.

◆ rw_opt_no_binary_function

int rw_opt_no_binary_function

Definition at line 126 of file 25.transform.cpp.

◆ rw_opt_no_fwd_iter

int rw_opt_no_fwd_iter

Definition at line 129 of file 25.transform.cpp.

◆ rw_opt_no_input_iter

int rw_opt_no_input_iter

Definition at line 127 of file 25.transform.cpp.

◆ rw_opt_no_output_iter

int rw_opt_no_output_iter

Definition at line 128 of file 25.transform.cpp.

◆ rw_opt_no_rnd_iter

int rw_opt_no_rnd_iter

Definition at line 131 of file 25.transform.cpp.

◆ rw_opt_no_unary_function

int rw_opt_no_unary_function

Definition at line 125 of file 25.transform.cpp.