File: IntTools_CurveRangeSampleMapHasher.lxx

package info (click to toggle)
opencascade 6.2-7
  • links: PTS
  • area: non-free
  • in suites: lenny
  • size: 444,652 kB
  • ctags: 256,750
  • sloc: cpp: 1,150,123; ansic: 225,762; tcl: 30,130; makefile: 12,619; sh: 7,958; xml: 3,981; lisp: 283; java: 212; csh: 203; perl: 15
file content (14 lines) | stat: -rw-r--r-- 498 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// File:	IntTools_CurveRangeSampleMapHasher.lxx
// Created:	Fri Oct 14 21:00:44 2005
// Author:	Mikhail KLOKOV
//		<mkk@kurox>

inline Standard_Integer IntTools_CurveRangeSampleMapHasher::HashCode(const IntTools_CurveRangeSample& K,
								     const Standard_Integer Upper) {
  return (K.GetDepth() % Upper);
}
	
inline Standard_Boolean IntTools_CurveRangeSampleMapHasher::IsEqual(const IntTools_CurveRangeSample& S1,
								    const IntTools_CurveRangeSample& S2) {
  return S1.IsEqual(S2);
}