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

Go to the source code of this file.

Data Structures

struct  minus< T >
 
struct  conv_to_T< T >
 
struct  Accumulator
 
struct  AdjacentDiffBase
 
struct  AdjacentDiff< InputIterator, OutputIterator >
 

Functions

template<class T >
const minus< T > & operator- (const minus< T > &lhs, const minus< T > &rhs)
 
 _RWSTD_NAMESPACE (std)
 
UserClass operator- (const UserClass &lhs, const UserClass &rhs)
 
void test_adjacent_difference (const std::size_t N, const AdjacentDiffBase &alg, bool binop, bool same_seq)
 
template<class InputIterator , class OutputIterator >
void gen_adjacent_difference_test (const std::size_t N, const InputIterator &, const OutputIterator &, bool binop)
 
template<class InputIterator >
void gen_adjacent_difference_test (const std::size_t N, const InputIterator &it, bool binop)
 
void gen_adjacent_difference_test (const std::size_t N, bool binop)
 
int main (int argc, char *argv[])
 

Variables

int rw_opt_nloops = 64
 
int rw_opt_no_binary_op
 
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  )

Definition at line 54 of file 26.adjacent.diff.cpp.

◆ gen_adjacent_difference_test() [1/3]

void gen_adjacent_difference_test ( const std::size_t  N,
bool  binop 
)

Definition at line 329 of file 26.adjacent.diff.cpp.

◆ gen_adjacent_difference_test() [2/3]

template<class InputIterator , class OutputIterator >
void gen_adjacent_difference_test ( const std::size_t  N,
const InputIterator &  ,
const OutputIterator &  ,
bool  binop 
)

Definition at line 293 of file 26.adjacent.diff.cpp.

◆ gen_adjacent_difference_test() [3/3]

template<class InputIterator >
void gen_adjacent_difference_test ( const std::size_t  N,
const InputIterator &  it,
bool  binop 
)

Definition at line 309 of file 26.adjacent.diff.cpp.

◆ main()

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

Definition at line 385 of file 26.adjacent.diff.cpp.

◆ operator-() [1/2]

template<class T >
const minus< T > & operator- ( const minus< T > &  lhs,
const minus< T > &  rhs 
)

Definition at line 49 of file 26.adjacent.diff.cpp.

◆ operator-() [2/2]

UserClass operator- ( const UserClass &  lhs,
const UserClass &  rhs 
)

Definition at line 79 of file 26.adjacent.diff.cpp.

◆ test_adjacent_difference()

void test_adjacent_difference ( const std::size_t  N,
const AdjacentDiffBase &  alg,
bool  binop,
bool  same_seq 
)

Definition at line 182 of file 26.adjacent.diff.cpp.

Variable Documentation

◆ rw_opt_nloops

int rw_opt_nloops = 64

Definition at line 282 of file 26.adjacent.diff.cpp.

◆ rw_opt_no_bidir_iter

int rw_opt_no_bidir_iter

Definition at line 287 of file 26.adjacent.diff.cpp.

◆ rw_opt_no_binary_op

int rw_opt_no_binary_op

Definition at line 283 of file 26.adjacent.diff.cpp.

◆ rw_opt_no_fwd_iter

int rw_opt_no_fwd_iter

Definition at line 286 of file 26.adjacent.diff.cpp.

◆ rw_opt_no_input_iter

int rw_opt_no_input_iter

Definition at line 284 of file 26.adjacent.diff.cpp.

◆ rw_opt_no_output_iter

int rw_opt_no_output_iter

Definition at line 285 of file 26.adjacent.diff.cpp.

◆ rw_opt_no_rnd_iter

int rw_opt_no_rnd_iter

Definition at line 288 of file 26.adjacent.diff.cpp.