version 1.19, 2005/02/05 22:59:23
|
version 1.20, 2005/08/10 19:42:49
|
|
|
| |
#include <Pegasus/Common/Config.h> | #include <Pegasus/Common/Config.h> |
#include <Pegasus/Common/String.h> | #include <Pegasus/Common/String.h> |
|
#include <Pegasus/Common/CIMObjectPath.h> |
#include <Pegasus/Common/Linkage.h> | #include <Pegasus/Common/Linkage.h> |
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
|
|
static Uint32 hash(Uint32 x) { return x + 13; } | static Uint32 hash(Uint32 x) { return x + 13; } |
}; | }; |
| |
|
PEGASUS_TEMPLATE_SPECIALIZATION struct HashFunc <CIMObjectPath> |
|
{ |
|
static Uint32 hash (const CIMObjectPath & path) |
|
{ |
|
return path.makeHashCode (); |
|
} |
|
}; |
|
|
/* | /* |
Hash function object that converts to lowercase. | Hash function object that converts to lowercase. |
| |
|
|
} | } |
}; | }; |
| |
|
PEGASUS_TEMPLATE_SPECIALIZATION struct EqualFunc <CIMObjectPath> |
|
{ |
|
static Boolean equal (const CIMObjectPath & x, const CIMObjectPath & y) |
|
{ |
|
return x.identical (y); |
|
} |
|
}; |
|
|
/* | /* |
Equal function object that can be used by HashTable to compare keys that | Equal function object that can be used by HashTable to compare keys that |
should be treated as case insensitive. | should be treated as case insensitive. |