Open CASCADE Technology
7.4.0
|
FindHasher defines HashCode for Finder, which is : ask a Finder its HashCode ! Because this is the Finder itself which brings the HashCode for its Key. More...
#include <Transfer_FindHasher.hxx>
Static Public Member Functions | |
static Standard_Integer | HashCode (const Handle< Transfer_Finder > &theFinder, Standard_Integer theUpperBound) |
Returns hash code for the given finder, in the range [1, theUpperBound]. Asks the finder its hash code, then transforms it to be in the required range. More... | |
static Standard_Boolean | IsEqual (const Handle< Transfer_Finder > &K1, const Handle< Transfer_Finder > &K2) |
Returns True if two keys are the same. The test does not work on the Finders themselves but by calling their methods Equates. More... | |
FindHasher defines HashCode for Finder, which is : ask a Finder its HashCode ! Because this is the Finder itself which brings the HashCode for its Key.
This class complies to the template given in TCollection by MapHasher itself
|
static |
Returns hash code for the given finder, in the range [1, theUpperBound]. Asks the finder its hash code, then transforms it to be in the required range.
theFinder | the finder which hash code is to be computed |
theUpperBound | the upper bound of the range a computing hash code must be within |
|
static |
Returns True if two keys are the same. The test does not work on the Finders themselves but by calling their methods Equates.