7 #ifndef __core_AutoHashMap_h__ 8 #define __core_AutoHashMap_h__ 15 bool operator()(
const String &s1,
const String &s2)
const 23 FE_UWORD operator()(
const I32 &i)
const 31 FE_UWORD operator()(
const String &s)
const 34 const unsigned char *buffer = s.rawU8();
36 for(FE_UWORD i = 0; i < s.length(); i++)
38 hash = (hash << 3) + buffer[i];
48 FE_UWORD operator()(
const T t)
const 49 {
return reinterpret_cast<FE_UWORD
>(t); }
54 bool operator()(T t1, T t2)
const 58 template<
typename T,
typename U>
60 public HashMap< T, U, hash_auto<T>, eq_auto<T> > {};
63 class AutoHashMap< I32, U >:
64 public HashMap< I32, U, hash_int, eq_string > {};
67 class AutoHashMap< String, U >:
68 public HashMap< String, U, hash_string, eq_string > {};
kernel
Definition: namespace.dox:3