Changed: Minor changes
This commit is contained in:
parent
771d6f7358
commit
3dad90c23f
4 changed files with 4 additions and 4 deletions
|
@ -61,7 +61,7 @@ public:
|
||||||
class CClassIdHashMapTraits
|
class CClassIdHashMapTraits
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
enum { bucket_size = 4, min_buckets = 8, };
|
enum { bucket_size = 4, min_buckets = 8 };
|
||||||
inline size_t operator() ( const CClassId& classId ) const
|
inline size_t operator() ( const CClassId& classId ) const
|
||||||
{
|
{
|
||||||
return ((((uint64)classId >> 32)|0xFFFFFFFF) ^ (((uint64)classId|0xFFFFFFFF) & 0xFFFFFFFF));
|
return ((((uint64)classId >> 32)|0xFFFFFFFF) ^ (((uint64)classId|0xFFFFFFFF) & 0xFFFFFFFF));
|
||||||
|
|
|
@ -575,7 +575,7 @@ public:
|
||||||
// Traits for hash_map using CEntityId
|
// Traits for hash_map using CEntityId
|
||||||
struct CEntityIdHashMapTraits
|
struct CEntityIdHashMapTraits
|
||||||
{
|
{
|
||||||
enum { bucket_size = 4, min_buckets = 8, };
|
enum { bucket_size = 4, min_buckets = 8 };
|
||||||
CEntityIdHashMapTraits() { }
|
CEntityIdHashMapTraits() { }
|
||||||
size_t operator() (const NLMISC::CEntityId &id ) const
|
size_t operator() (const NLMISC::CEntityId &id ) const
|
||||||
{
|
{
|
||||||
|
|
|
@ -248,7 +248,7 @@ private :
|
||||||
class CSheetIdHashMapTraits
|
class CSheetIdHashMapTraits
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
enum { bucket_size = 4, min_buckets = 8, };
|
enum { bucket_size = 4, min_buckets = 8 };
|
||||||
inline size_t operator() ( const CSheetId& sheetId ) const
|
inline size_t operator() ( const CSheetId& sheetId ) const
|
||||||
{
|
{
|
||||||
return sheetId.asInt() >> 5;
|
return sheetId.asInt() >> 5;
|
||||||
|
|
|
@ -39,7 +39,7 @@ typedef const std::string *TStringId;
|
||||||
// Traits for hash_map using CStringId
|
// Traits for hash_map using CStringId
|
||||||
struct CStringIdHashMapTraits
|
struct CStringIdHashMapTraits
|
||||||
{
|
{
|
||||||
enum { bucket_size = 4, min_buckets = 8, };
|
enum { bucket_size = 4, min_buckets = 8 };
|
||||||
CStringIdHashMapTraits() { }
|
CStringIdHashMapTraits() { }
|
||||||
size_t operator() (const NLMISC::TStringId &stringId) const
|
size_t operator() (const NLMISC::TStringId &stringId) const
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue