Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / BilatTools_Cuda / src / core / cudatools / header / both / IntervalF_GPU.h
1 #ifndef INTERVAL_F_CUDA_H_
2 #define INTERVAL_F_CUDA_H_
3
4 #include "both_define.h"
5
6 /*----------------------------------------------------------------------*\
7 |* Declaration *|
8 \*---------------------------------------------------------------------*/
9
10 /*--------------------------------------*\
11 |* Public *|
12 \*-------------------------------------*/
13
14 namespace gpu
15 {
16 class IntervalF
17 {
18
19 /*--------------------------------------*\
20 |* Constructeur *|
21 \*-------------------------------------*/
22
23 public:
24
25 __BOTH__
26 IntervalF(float a, float b)
27 {
28 this->a = a;
29 this->b = b;
30 }
31
32 // constructeur copie automatique car pas pointeur dans
33 // IntervalF
34
35 // // TODO dangereux
36 // __device__ __host__
37 // IntervalF()
38 // {
39 //
40 // }
41
42 /*--------------------------------------*\
43 |* Methode *|
44 \*-------------------------------------*/
45
46 public:
47
48 __BOTH__
49 float getA(void)
50 {
51 return this->a;
52 }
53
54 __BOTH__
55 float getB(void)
56 {
57 return this->b;
58 }
59
60 /*--------------------------------------*\
61 |* Attribut *|
62 \*-------------------------------------*/
63
64 public:
65
66 float a;
67 float b;
68 };
69
70 }
71 #endif
72
73 /*----------------------------------------------------------------------*\
74 |* End *|
75 \*---------------------------------------------------------------------*/