]> Creatis software - clitk.git/blobdiff - common/clitkCommon.h
itkv4 migration use itk::ThreadIdType
[clitk.git] / common / clitkCommon.h
index 51258e66fc3abd5c418dfc480bdba43debd32442..11a6255955e8b2185c25b49334bd64158d58a8dc 100644 (file)
 #  include <windows.h>
 #endif
 
+#if ITK_VERSION_MAJOR < 4
+namespace itk
+{
+  typedef unsigned int ThreadIdType;
+}
+#endif
+
 //--------------------------------------------------------------------
 namespace clitk {
 
@@ -227,6 +234,13 @@ namespace clitk {
   //--------------------------------------------------------------------
   void PrintMemoryUsed();
 
+  //--------------------------------------------------------------------
+  // Convert a map to a vector
+  template <typename M, typename V> 
+  void MapToVecFirst(const M & m, V & v);
+  template <typename M, typename V> 
+  void MapToVecSecond(const M & m, V & v);
+
 #include "clitkCommon.txx"
 
 } // end namespace