mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
Integration of OCCT 6.5.0 from SVN
This commit is contained in:
15
src/Transfer/Transfer_FindHasher.cxx
Executable file
15
src/Transfer/Transfer_FindHasher.cxx
Executable file
@@ -0,0 +1,15 @@
|
||||
#include <Transfer_FindHasher.ixx>
|
||||
|
||||
|
||||
Standard_Integer Transfer_FindHasher::HashCode
|
||||
(const Handle(Transfer_Finder)& K, const Standard_Integer Upper)
|
||||
{
|
||||
return ((K->GetHashCode() - 1) % Upper) + 1;
|
||||
}
|
||||
|
||||
Standard_Boolean Transfer_FindHasher::IsEqual
|
||||
(const Handle(Transfer_Finder)& K1, const Handle(Transfer_Finder)& K2)
|
||||
{
|
||||
if (K1.IsNull()) return Standard_False;
|
||||
return K1->Equates(K2);
|
||||
}
|
Reference in New Issue
Block a user