69 lines
1.5 KiB
C++
Executable File
69 lines
1.5 KiB
C++
Executable File
#include <stdlib.h>
|
|
#include <iostream>
|
|
#include <string>
|
|
|
|
// add
|
|
#include "VTReductionAddIntI.h"
|
|
#include "VTReductionAddIntII.h"
|
|
|
|
// generic
|
|
#include "VTReductionGenericI.h"
|
|
#include "VTReductionGenericII.h"
|
|
#include "VTReductionGenericLongII.h"
|
|
|
|
using std::string;
|
|
using std::cout;
|
|
using std::endl;
|
|
|
|
/*----------------------------------------------------------------------*\
|
|
|* Declaration *|
|
|
\*---------------------------------------------------------------------*/
|
|
|
|
static void add();
|
|
static void generic();
|
|
|
|
/*----------------------------------------------------------------------*\
|
|
|* Implementation *|
|
|
\*---------------------------------------------------------------------*/
|
|
|
|
int mainTest() {
|
|
// activer ci-dessous seulement le TP voulu (pas tous)
|
|
|
|
add();
|
|
//generic();
|
|
|
|
return EXIT_SUCCESS;
|
|
}
|
|
|
|
/*--------------------------------------*\
|
|
|* private *|
|
|
\*-------------------------------------*/
|
|
|
|
/**
|
|
* activer ci-dessous la version souhaiter
|
|
*/
|
|
void add() {
|
|
VTReductionAddIntI test1;
|
|
VTReductionAddIntII test2;
|
|
|
|
// test1.run();
|
|
test2.run();
|
|
}
|
|
|
|
/**
|
|
* activer ci-dessous la version souhaiter
|
|
*/
|
|
void generic() {
|
|
VTReductionGenericI test1;
|
|
VTReductionGenericII test2;
|
|
VTReductionGenericLongII test3;
|
|
|
|
test1.run();
|
|
// test2.run();
|
|
// test3.run();
|
|
}
|
|
|
|
/*----------------------------------------------------------------------*\
|
|
|* End *|
|
|
\*---------------------------------------------------------------------*/
|