|
Open CASCADE Technology
6.5.4
|
ElemHasher defines HashCode for Element, which is : ask a
Element its HashCode ! Because this is the Element itself
which brings the HashCode for its Key
This class complies to the template given in TCollection by
MapHasher itself
#include <MoniTool_ElemHasher.hxx>
Static Public Member Functions | |
| static DEFINE_STANDARD_ALLOC Standard_Integer | HashCode (const Handle< MoniTool_Element > &K, const Standard_Integer Upper) |
| Returns a HashCode in the range <0,Upper> for a Element : asks the Element its HashCode then transforms it to be in the required range | |
| static Standard_Boolean | IsEqual (const Handle< MoniTool_Element > &K1, const Handle< MoniTool_Element > &K2) |
| Returns True if two keys are the same. The test does not work on the Elements themselves but by calling their methods Equates | |
| static DEFINE_STANDARD_ALLOC Standard_Integer MoniTool_ElemHasher::HashCode | ( | const Handle< MoniTool_Element > & | K, |
| const Standard_Integer | Upper | ||
| ) | [static] |
| static Standard_Boolean MoniTool_ElemHasher::IsEqual | ( | const Handle< MoniTool_Element > & | K1, |
| const Handle< MoniTool_Element > & | K2 | ||
| ) | [static] |
1.8.0