Logo Search packages:      
Sourcecode: pwlib version File versions

PINDEX PObject::HashFunction (  )  const [virtual, inherited]

This function yields a hash value required by the PDictionary# class. A descendent class that is required to be the key of a dictionary should override this function. The precise values returned is dependent on the semantics of the class. For example, the PString# class overrides it to provide a hash function for distinguishing text strings.

The default behaviour is to return the value zero.

Returns:
hash function value for class instance.

Reimplemented in PURL, PChannel, POrdinalKey, and PRemoteConnection.

Definition at line 439 of file object.cxx.

{
  return 0;
}


Generated by  Doxygen 1.6.0   Back to index