b311480e |
1 | // Created by: Peter KURNEV |
973c2be1 |
2 | // Copyright (c) 2010-2014 OPEN CASCADE SAS |
4e57c75e |
3 | // Copyright (c) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE |
4 | // Copyright (c) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, |
5 | // EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS |
b311480e |
6 | // |
973c2be1 |
7 | // This file is part of Open CASCADE Technology software library. |
b311480e |
8 | // |
d5f74e42 |
9 | // This library is free software; you can redistribute it and/or modify it under |
10 | // the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
11 | // by the Free Software Foundation, with special exception defined in the file |
12 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
13 | // distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
14 | // |
973c2be1 |
15 | // Alternatively, this file may be used under the terms of Open CASCADE |
16 | // commercial license or contractual agreement. |
b311480e |
17 | |
4e57c75e |
18 | #include <BOPDS_PassKey.hxx> |
7fd59977 |
19 | |
20 | //======================================================================= |
21 | //function : HashCode |
22 | //purpose : |
23 | //======================================================================= |
4e57c75e |
24 | inline |
25 | Standard_Integer BOPDS_PassKeyMapHasher::HashCode(const BOPDS_PassKey& aPK, |
26 | const Standard_Integer Upper) |
7fd59977 |
27 | { |
4e57c75e |
28 | return aPK.HashCode(Upper); |
7fd59977 |
29 | } |
30 | //======================================================================= |
31 | //function :IsEqual |
32 | //purpose : |
33 | //======================================================================= |
4e57c75e |
34 | inline |
35 | Standard_Boolean BOPDS_PassKeyMapHasher::IsEqual(const BOPDS_PassKey& aPK1, |
36 | const BOPDS_PassKey& aPK2) |
7fd59977 |
37 | { |
4e57c75e |
38 | return aPK1.IsEqual(aPK2); |
7fd59977 |
39 | } |