IlsHashKeyManager
 
IlsHashKeyManager
Category 
Modeling class
Inheritance Path 
IlsHashKeyManager
Description 
This class is used with set-relations. Objects added to a set are stored together with their associated key in a C++ array, called a hash code table, and are indexed using an integer. The class IlsHashKeyManager contains functions that convert the key type used to store objects in a set to an integer.
Libraries 
<server> and <mvcomp>
Header File 
#include <ilserver/model.h>
Synopsis 
class IlsHashKeyManager
{
public:
static long Hash(int key, int size);
static long Hash(long key, int size);
static long Hash(unsigned long key, int size);
static long Hash(const char* key, int size);
static long Hash(char* key, int size);
static long Hash(void* key, int size);
static IlsBoolean Match(char, char);
static IlsBoolean Match(int, int);
static IlsBoolean Match(unsigned char, unsigned char);
static IlsBoolean Match(short, short);
static IlsBoolean Match(unsigned short, unsigned short);
static IlsBoolean Match(unsigned int, unsigned int);
static IlsBoolean Match(long, long);
static IlsBoolean Match(unsigned long, unsigned long);
static IlsBoolean Match(float, float);
static IlsBoolean Match(double, double);
static IlsBoolean Match(const char*, const char*);
static IlsBoolean Match(char*, char*);
static IlsBoolean Match(const void*, const void*);
static IlsBoolean Match(void*, void*);
};
*The static member functions IlsHashKeyManager::Hash are automatically called by Rogue Wave® Server. They return a long integer—contained between 0 and the size of the array minus 1 included—obtained from hashing the first argument.
*The static member functions IlsHashKeyManager::Match compare the keys specified and return IlsTrue if both arguments are identical. If the arguments are
of type const char*, then the comparison applies to character strings.
See Also 
IlsOwnsSet, IlsUsesSet

Version 5.8
Copyright © 2014, Rogue Wave Software, Inc. All Rights Reserved.