X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=WCudaMSE%2FBilatTools_Cuda%2Fsrc%2Fcore%2Fcudatools%2Fheader%2Fboth%2FIntervalF_GPU.h;fp=WCudaMSE%2FBilatTools_Cuda%2Fsrc%2Fcore%2Fcudatools%2Fheader%2Fboth%2FIntervalF_GPU.h;h=bb505542f7b4fb98c5220d13e1635049c8abd9a9;hb=8d08c12b29c2a14684f35c023ee39e694bb80d25;hp=0000000000000000000000000000000000000000;hpb=226de81f7e1f1fbf4ac79d0d089e8a05ec7159a0;p=GPU.git diff --git a/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/both/IntervalF_GPU.h b/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/both/IntervalF_GPU.h new file mode 100755 index 0000000..bb50554 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/both/IntervalF_GPU.h @@ -0,0 +1,75 @@ +#ifndef INTERVAL_F_CUDA_H_ +#define INTERVAL_F_CUDA_H_ + +#include "both_define.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +namespace gpu + { + class IntervalF + { + + /*--------------------------------------*\ + |* Constructeur *| + \*-------------------------------------*/ + + public: + + __BOTH__ + IntervalF(float a, float b) + { + this->a = a; + this->b = b; + } + + // constructeur copie automatique car pas pointeur dans + // IntervalF + +// // TODO dangereux +// __device__ __host__ +// IntervalF() +// { +// +// } + + /*--------------------------------------*\ + |* Methode *| + \*-------------------------------------*/ + + public: + + __BOTH__ + float getA(void) + { + return this->a; + } + + __BOTH__ + float getB(void) + { + return this->b; + } + + /*--------------------------------------*\ + |* Attribut *| + \*-------------------------------------*/ + + public: + + float a; + float b; + }; + + } +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/