00001 /************************************************************************* 00002 > File Name: src/hash_map_voxel.cpp 00003 > Author: 吴乃亮 00004 > Mail: wunailiang@gmail.com 00005 > Created Time: Mon 28 Apr 2014 09:07:43 AM CST 00006 ************************************************************************/ 00007 00008 #include"unordered_map_voxel.h" //不需要排序的话最好用这个hash_map 00009 00010 size_t hash_value(const unordered_map_voxel &v) 00011 { 00012 size_t seed =0; 00013 boost::hash_combine(seed, boost::hash_value(v.x())); 00014 boost::hash_combine(seed, boost::hash_value(v.y())); 00015 boost::hash_combine(seed, boost::hash_value(v.z())); 00016 return seed; 00017 }