# Replace I T K Hash With S Y S I T K Hash

Bradley Lowekamp
2011-07-12
ENH: Replace itk::hash_thing with kwsys&apos; itksys::hash_thing

Previously there are three copies of these SGI STL derived container classes in ITK. We have removed the ones on ITK Common in favor of the KWSYS versions. This removes dedundent code, and delegates maintenance to libraries who's goal is to provide a cross platform enviroment.

This patch removed the itk::hash_map, itk::hash_set, and itk::hash_table. There nearly identical versions of these files in kwsys's itksys. Additionally, these are also common in current compilers, and the new c++ tr1 stl extensions is going to contain an unorder_map, unordered_set etc, which are hash tables.

#include "itk_hash_map.h"

typedef itk::hash_map< ValueType, HashType >;
#include "itksys/hash_map.hxx"

typedef itksys::hash_map< ValueType, HashType >;
I8d9a9beab32b0f6c897367d4b43cd16de884cfcc
Modules/Core/Common/include/itkEquivalencyTable.h Modules/Core/Common/include/itk_alloc.h Modules/Core/Common/include/itk_hash_map.h Modules/Core/Common/include/itk_hash_set.h Modules/Core/Common/include/itk_hashtable.h Modules/Core/Common/src/CMakeLists.txt Modules/Core/Common/src/itk_hashtable.cxx Modules/Core/Common/test/itkCommonHeaderTest.cxx Modules/Core/Common/test/itkHashTableTest.cxx Modules/Core/Mesh/include/itkAutomaticTopologyMeshSource.h Modules/Filtering/ImageStatistics/include/itkLabelStatisticsImageFilter.h Modules/Nonunit/Review/include/itkContourExtractor2DImageFilter.h Modules/Nonunit/Review/include/itkLabelGeometryImageFilter.h Modules/Numerics/Statistics/include/itkKdTreeBasedKmeansEstimator.h Modules/Numerics/Statistics/include/itkMembershipSample.h Modules/Segmentation/ConnectedComponents/include/itkRelabelComponentImageFilter.txx Modules/Segmentation/Watersheds/include/itkOneWayEquivalencyTable.h Modules/Segmentation/Watersheds/include/itkWatershedBoundary.h Modules/Segmentation/Watersheds/include/itkWatershedSegmentTable.h Modules/Segmentation/Watersheds/include/itkWatershedSegmentTreeGenerator.h Modules/Segmentation/Watersheds/include/itkWatershedSegmenter.h