21 #ifndef _XN_STRINGS_HASH_H 22 #define _XN_STRINGS_HASH_H 45 static XnInt32
Compare(
const XnChar*
const& key1,
const XnChar*
const& key2)
47 return strcmp(key1, key2);
65 XnChar* pcKey = (XnChar*)Value;
76 return (
const XnChar*
const&)Value;
81 return (
const XnChar*&)Value;
89 #define XN_DECLARE_STRINGS_HASH_WITH_TRANSLATOR_DECL(decl, ValueType, ClassName, ValueTranslator) \ 90 XN_DECLARE_HASH_DECL(decl, const XnChar*, ValueType, ClassName, XnStringsKeyTranslator, ValueTranslator, XnStringsKeyManager) \ 96 #define XN_DECLARE_STRINGS_HASH_WITH_TRANSLATOR(ValueType, ClassName, ValueTranslator) \ 97 XN_DECLARE_STRINGS_HASH_WITH_TRANSLATOR_DECL(, ValueType, ClassName, ValueTranslator) 103 #define XN_DECLARE_STRINGS_HASH_DECL(decl, ValueType, ClassName) \ 104 XN_DECLARE_DEFAULT_VALUE_TRANSLATOR_DECL(decl, ValueType, XN_DEFAULT_TRANSLATOR_NAME(ClassName)) \ 105 XN_DECLARE_STRINGS_HASH_WITH_TRANSLATOR_DECL(decl, ValueType, ClassName, XN_DEFAULT_TRANSLATOR_NAME(ClassName)) \ 111 #define XN_DECLARE_STRINGS_HASH(ValueType, ClassName) \ 112 XN_DECLARE_STRINGS_HASH_DECL(, ValueType, ClassName) 117 #endif //_XN_STRINGS_HASH_H static XnInt32 Compare(const XnChar *const &key1, const XnChar *const &key2)
Definition: XnStringsHash.h:45
static XnValue CreateValueCopy(const XnChar *const &orig)
Definition: XnStringsHash.h:54
static XnValue GetAsValue(const XnChar *const &orig)
Definition: XnStringsHash.h:69
static void FreeValue(XnValue &Value)
Definition: XnStringsHash.h:63
Definition: XnStringsHash.h:51
XN_C_API XnUInt32 XN_C_DECL xnOSStrLen(const XnChar *cpStr)
void * XnValue
Definition: XnDataTypes.h:35
static XnHashValue Hash(const XnChar *const &key)
Definition: XnStringsHash.h:36
XN_C_API void XN_C_DECL xnOSFree(const void *pMemBlock)
Definition: XnStringsHash.h:33
XN_C_API void *XN_C_DECL xnOSMalloc(const XnSizeT nAllocSize)
XN_C_API XnStatus XN_C_DECL xnOSStrCopy(XnChar *cpDestString, const XnChar *cpSrcString, const XnUInt32 nDestLength)
#define XN_DECLARE_STRINGS_HASH(ValueType, ClassName)
Definition: XnStringsHash.h:111
XnUInt8 XnHashValue
Definition: XnHash.h:45
static const XnChar *const & GetFromValue(const XnValue &Value)
Definition: XnStringsHash.h:74
static const XnChar *& GetFromValue(XnValue &Value)
Definition: XnStringsHash.h:79
XN_C_API XnStatus XN_C_DECL xnOSStrCRC32(const XnChar *cpString, XnUInt32 *nCRC32)