Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Macros | Enumerations | Functions
26.gslice.array.cassign.cpp File Reference
#include <cstdlib>
#include <valarray>
#include <rw_driver.h>
#include <rw_printf.h>
Include dependency graph for 26.gslice.array.cassign.cpp:

Go to the source code of this file.

Macros

#define OP(start, lengths, strides, lhs, rhs, res)    test_op_assign ((T*)0, op, tname, opname, __LINE__, start, lengths, strides, lhs, rhs, res)
 
#define TEST(T)   test_op_assign ((const T*)0, #T)
 

Enumerations

enum  {
  inx_mul_assign , inx_div_assign , inx_mod_assign , inx_add_assign ,
  inx_sub_assign , inx_xor_assign , inx_and_assign , inx_or_assign ,
  inx_shl_assign , inx_shr_assign , n_assign_ops
}
 

Functions

void test_op_assign (void *, void(std::gslice_array< std::size_t >::*op_assign)(const std::valarray< std::size_t > &) const, const char *tname, const char *opname, int line, std::size_t start, const char *length_str, const char *stride_str, const char *lhs_str, const char *rhs_str, const char *res_str)
 
template<class T >
void test_mul_assign (const T *, const char *tname, const char *opname)
 
template<class T >
void test_div_assign (const T *, const char *tname, const char *opname)
 
template<class T >
void test_mod_assign (const T *, const char *tname, const char *opname)
 
template<class T >
void test_add_assign (const T *, const char *tname, const char *opname)
 
template<class T >
void test_sub_assign (const T *, const char *tname, const char *opname)
 
template<class T >
void test_xor_assign (const T *, const char *tname, const char *opname)
 
template<class T >
void test_and_assign (const T *, const char *tname, const char *opname)
 
template<class T >
void test_or_assign (const T *, const char *tname, const char *opname)
 
template<class T >
void test_shl_assign (const T *, const char *tname, const char *opname)
 
template<class T >
void test_shr_assign (const T *, const char *tname, const char *opname)
 
template<class T >
void test_op_assign (const T *, const char *tname)
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

◆ OP

#define OP (   start,
  lengths,
  strides,
  lhs,
  rhs,
  res 
)     test_op_assign ((T*)0, op, tname, opname, __LINE__, start, lengths, strides, lhs, rhs, res)

Definition at line 149 of file 26.gslice.array.cassign.cpp.

◆ TEST

#define TEST (   T)    test_op_assign ((const T*)0, #T)

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
inx_mul_assign 
inx_div_assign 
inx_mod_assign 
inx_add_assign 
inx_sub_assign 
inx_xor_assign 
inx_and_assign 
inx_or_assign 
inx_shl_assign 
inx_shr_assign 
n_assign_ops 

Definition at line 428 of file 26.gslice.array.cassign.cpp.

Function Documentation

◆ main()

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

Definition at line 530 of file 26.gslice.array.cassign.cpp.

◆ test_add_assign()

template<class T >
void test_add_assign ( const T *  ,
const char *  tname,
const char *  opname 
)

Definition at line 240 of file 26.gslice.array.cassign.cpp.

◆ test_and_assign()

template<class T >
void test_and_assign ( const T *  ,
const char *  tname,
const char *  opname 
)

Definition at line 321 of file 26.gslice.array.cassign.cpp.

◆ test_div_assign()

template<class T >
void test_div_assign ( const T *  ,
const char *  tname,
const char *  opname 
)

Definition at line 186 of file 26.gslice.array.cassign.cpp.

◆ test_mod_assign()

template<class T >
void test_mod_assign ( const T *  ,
const char *  tname,
const char *  opname 
)

Definition at line 213 of file 26.gslice.array.cassign.cpp.

◆ test_mul_assign()

template<class T >
void test_mul_assign ( const T *  ,
const char *  tname,
const char *  opname 
)

Definition at line 154 of file 26.gslice.array.cassign.cpp.

◆ test_op_assign() [1/2]

template<class T >
void test_op_assign ( const T *  ,
const char *  tname 
)

Definition at line 446 of file 26.gslice.array.cassign.cpp.

◆ test_op_assign() [2/2]

void test_op_assign ( void *  ,
void(std::gslice_array< std::size_t >::*)(const std::valarray< std::size_t > &) const  op_assign,
const char *  tname,
const char *  opname,
int  line,
std::size_t  start,
const char *  length_str,
const char *  stride_str,
const char *  lhs_str,
const char *  rhs_str,
const char *  res_str 
)

Definition at line 80 of file 26.gslice.array.cassign.cpp.

◆ test_or_assign()

template<class T >
void test_or_assign ( const T *  ,
const char *  tname,
const char *  opname 
)

Definition at line 348 of file 26.gslice.array.cassign.cpp.

◆ test_shl_assign()

template<class T >
void test_shl_assign ( const T *  ,
const char *  tname,
const char *  opname 
)

Definition at line 375 of file 26.gslice.array.cassign.cpp.

◆ test_shr_assign()

template<class T >
void test_shr_assign ( const T *  ,
const char *  tname,
const char *  opname 
)

Definition at line 402 of file 26.gslice.array.cassign.cpp.

◆ test_sub_assign()

template<class T >
void test_sub_assign ( const T *  ,
const char *  tname,
const char *  opname 
)

Definition at line 267 of file 26.gslice.array.cassign.cpp.

◆ test_xor_assign()

template<class T >
void test_xor_assign ( const T *  ,
const char *  tname,
const char *  opname 
)

Definition at line 294 of file 26.gslice.array.cassign.cpp.