Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / BilatTools_CPP / src / core / tools / header / namespace_cpu / IndiceTools_CPU.h
diff --git a/WCudaMSE/BilatTools_CPP/src/core/tools/header/namespace_cpu/IndiceTools_CPU.h b/WCudaMSE/BilatTools_CPP/src/core/tools/header/namespace_cpu/IndiceTools_CPU.h
new file mode 100755 (executable)
index 0000000..89e2f3e
--- /dev/null
@@ -0,0 +1,53 @@
+#ifndef INDICE_TOOLS_CPU_H_\r
+#define INDICE_TOOLS_CPU_H_\r
+\r
+/*----------------------------------------------------------------------*\\r
+ |*                    Declaration                                     *|\r
+ \*---------------------------------------------------------------------*/\r
+\r
+/*--------------------------------------*\\r
+ |*            Public                  *|\r
+ \*-------------------------------------*/\r
+\r
+namespace cpu\r
+    {\r
+    class IndiceTools\r
+       {\r
+\r
+           /*--------------------------------------*\\r
+           |*          Constructor                 *|\r
+            \*--------------------------------------*/\r
+\r
+       public:\r
+\r
+           /*--------------------------------------*\\r
+           |*          Methodes                    *|\r
+            \*--------------------------------------*/\r
+\r
+       public:\r
+\r
+           /**\r
+            * s[0,W*H[ --> i[0,H[ j[0,W[\r
+            */\r
+           static void toIJ( int s, int W, int* ptri, int* ptrj);\r
+\r
+           /**\r
+            * i[0,H[ j[0,W[ --> s[0,W*H[\r
+            */\r
+           static  int toS(int W, int i, int j);\r
+\r
+\r
+           /*-------------------------------------*\\r
+            |*         Attributs                   *|\r
+            \*-------------------------------------*/\r
+\r
+       private:\r
+\r
+       };\r
+    }\r
+\r
+#endif \r
+\r
+/*----------------------------------------------------------------------*\\r
+ |*                    End                                             *|\r
+ \*---------------------------------------------------------------------*/\r