X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FHash.hh;fp=src%2FMoof%2FHash.hh;h=0000000000000000000000000000000000000000;hp=e97ee254ec140fb04fdc8542bec83e754dddc9d8;hb=0b8dbc2d02c7f78d273ad9cfdf05c927c648ffd1;hpb=6c47a7028f7c72fabc40f417aa41111c28de8a84 diff --git a/src/Moof/Hash.hh b/src/Moof/Hash.hh deleted file mode 100644 index e97ee25..0000000 --- a/src/Moof/Hash.hh +++ /dev/null @@ -1,44 +0,0 @@ - -/*] Copyright (c) 2009-2010, Charles McGarvey [************************** -**] All rights reserved. -* -* vi:ts=4 sw=4 tw=75 -* -* Distributable under the terms and conditions of the 2-clause BSD license; -* see the file COPYING for a complete text of the license. -* -**************************************************************************/ - -#ifndef _MOOF_HASH_HH_ -#define _MOOF_HASH_HH_ - -#include - -#include - - -namespace Mf { - - -struct getHash -{ - // generic hash function - unsigned operator()(const void* key, int len, - unsigned seed = -1) const; - - inline unsigned operator()(const std::string& val) const - { - return (*this)(val.data(), val.length()); - } - - inline unsigned operator()(int val) const - { - return val; - } -}; - - -} // namespace Mf - -#endif // _MOOF_HASH_HH_ -