Integration of OCCT 6.5.0 from SVN
[occt.git] / src / IntTools / IntTools_CurveRangeSampleMapHasher.lxx
1 // File:        IntTools_CurveRangeSampleMapHasher.lxx
2 // Created:     Fri Oct 14 21:00:44 2005
3 // Author:      Mikhail KLOKOV
4 //              <mkk@kurox>
5
6 inline Standard_Integer IntTools_CurveRangeSampleMapHasher::HashCode(const IntTools_CurveRangeSample& K,
7                                                                      const Standard_Integer Upper) {
8   return (K.GetDepth() % Upper);
9 }
10         
11 inline Standard_Boolean IntTools_CurveRangeSampleMapHasher::IsEqual(const IntTools_CurveRangeSample& S1,
12                                                                     const IntTools_CurveRangeSample& S2) {
13   return S1.IsEqual(S2);
14 }