mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-29 20:30:54 +00:00
Changed: Minor changes
--HG-- branch : develop
This commit is contained in:
parent
8b770d41ac
commit
88042cc28d
4 changed files with 4 additions and 4 deletions
|
@ -239,7 +239,7 @@ public:
|
|||
|
||||
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(); }
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@ class CDBStringUpdater : public NLMISC::CSingleton<CDBStringUpdater>
|
|||
// hasher for the identifier
|
||||
struct THashDBStringLeaf
|
||||
{
|
||||
enum { bucket_size = 4, min_buckets = 8, };
|
||||
enum { bucket_size = 4, min_buckets = 8 };
|
||||
size_t operator()(const TBDStringLeaf &stringLeaf) const
|
||||
{
|
||||
return ((size_t)stringLeaf.ClientDB>>4) ^ ((size_t)stringLeaf.Node>>4);
|
||||
|
|
|
@ -50,7 +50,7 @@ extern CGenericXmlMsgHeaderManager GenericMsgManager;
|
|||
|
||||
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(); }
|
||||
bool operator()(const NLNET::TServiceId &left, const NLNET::TServiceId &right) const { return left < right; }
|
||||
};
|
||||
|
|
|
@ -43,7 +43,7 @@ public:
|
|||
|
||||
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; }
|
||||
bool operator()(const uint32 left, const uint32 right) const { return left < right; }
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue