Changed: Minor changes
This commit is contained in:
parent
68c163ef16
commit
ab58c8c6cb
4 changed files with 4 additions and 4 deletions
|
@ -239,7 +239,7 @@ public:
|
||||||
|
|
||||||
CHashCode() {}
|
CHashCode() {}
|
||||||
|
|
||||||
enum { bucket_size = 4, min_buckets = 8, };
|
enum { bucket_size = 4, min_buckets = 8 };
|
||||||
|
|
||||||
size_t operator () ( const TDataSetRow &index ) const { return index.getHashCode(); }
|
size_t operator () ( const TDataSetRow &index ) const { return index.getHashCode(); }
|
||||||
|
|
||||||
|
|
|
@ -62,7 +62,7 @@ class CDBStringUpdater : public NLMISC::CSingleton<CDBStringUpdater>
|
||||||
// hasher for the identifier
|
// hasher for the identifier
|
||||||
struct THashDBStringLeaf
|
struct THashDBStringLeaf
|
||||||
{
|
{
|
||||||
enum { bucket_size = 4, min_buckets = 8, };
|
enum { bucket_size = 4, min_buckets = 8 };
|
||||||
size_t operator()(const TBDStringLeaf &stringLeaf) const
|
size_t operator()(const TBDStringLeaf &stringLeaf) const
|
||||||
{
|
{
|
||||||
return ((size_t)stringLeaf.ClientDB>>4) ^ ((size_t)stringLeaf.Node>>4);
|
return ((size_t)stringLeaf.ClientDB>>4) ^ ((size_t)stringLeaf.Node>>4);
|
||||||
|
|
|
@ -50,7 +50,7 @@ extern CGenericXmlMsgHeaderManager GenericMsgManager;
|
||||||
|
|
||||||
struct CServiceIdHash
|
struct CServiceIdHash
|
||||||
{
|
{
|
||||||
enum { bucket_size = 4, min_buckets = 8, };
|
enum { bucket_size = 4, min_buckets = 8 };
|
||||||
size_t operator () ( const NLNET::TServiceId &sid ) const { return sid.get(); }
|
size_t operator () ( const NLNET::TServiceId &sid ) const { return sid.get(); }
|
||||||
bool operator()(const NLNET::TServiceId &left, const NLNET::TServiceId &right) const { return left < right; }
|
bool operator()(const NLNET::TServiceId &left, const NLNET::TServiceId &right) const { return left < right; }
|
||||||
};
|
};
|
||||||
|
|
|
@ -43,7 +43,7 @@ public:
|
||||||
|
|
||||||
struct CUint32Hash
|
struct CUint32Hash
|
||||||
{
|
{
|
||||||
enum { bucket_size = 4, min_buckets = 8, };
|
enum { bucket_size = 4, min_buckets = 8 };
|
||||||
size_t operator () (const uint32 &i) const { return i; }
|
size_t operator () (const uint32 &i) const { return i; }
|
||||||
bool operator()(const uint32 left, const uint32 right) const { return left < right; }
|
bool operator()(const uint32 left, const uint32 right) const { return left < right; }
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue