Overview | Maps object references into disjointed groups of potentially equilvalent references. |
Original class | CORBA::Object |
Intended Usage
This method is intended to be used by applications that manipulate large numbers of object references, for mapping object references into disjoint groups of potentially equivalent references. The hash value of an object reference does not change during the lifetime of the reference. The hash value of an object reference is not necessarily unique (another reference may have the same hash value). Different object references to the same remote object do not necessarily hash to the same value.
When invoked on a proxy object, this method does not result in a remote request to the server; all processing is done locally.
Syntax
virtual CORBA::ULong _hash (CORBA::ULong maximum) = 0;
Input parameters
Return values
Example
/*The following example is written in C++*/ #include "corba.h" #define HASH_MAX 10000 /* assume p is CORBA::Object pointer */ ::CORBA::ULong hash_ulong = 0; hash_ulong = p->_hash(HASH_MAX); ...