1 -- Created by: Peter KURNEV
2 -- Copyright (c) 2010-2014 OPEN CASCADE SAS
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
7 -- This file is part of Open CASCADE Technology software library.
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
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.
15 -- Alternatively, this file may be used under the terms of Open CASCADE
16 -- commercial license or contractual agreement.
18 class PassKey from BOPDS
21 -- The class BOPDS_PassKey is to provide
22 -- possibility to map objects that
23 -- have a set of integer IDs as a base
27 ListOfInteger from BOPCol,
29 BaseAllocator from BOPCol
35 returns PassKey from BOPDS;
37 ---C++: alias "virtual ~BOPDS_PassKey();"
42 Create (theAllocator: BaseAllocator from BOPCol)
43 returns PassKey from BOPDS;
47 --- theAllocator - the allocator to manage the memory
50 Create(Other:PassKey from BOPDS)
51 returns PassKey from BOPDS;
53 ---C++: alias "BOPDS_PassKey& operator =(const BOPDS_PassKey& Other);"
60 --- Clear the contents
63 theI1 :Integer from Standard);
67 --- Sets one Id <theI1>
70 theI1 :Integer from Standard;
71 theI2 :Integer from Standard);
75 --- Sets two Id <theI1>,<theI2>
78 theI1 :Integer from Standard;
79 theI2 :Integer from Standard;
80 theI3 :Integer from Standard);
84 --- Sets three Id <theI1>,<theI2>,<theI3>
86 theI1 :Integer from Standard;
87 theI2 :Integer from Standard;
88 theI3 :Integer from Standard;
89 theI4 :Integer from Standard);
93 --- Sets four Id <theI1>,<theI2>,<theI3>,<theI4>
95 theLI:ListOfInteger from BOPCol);
98 --- Sets the list of Id <theLI>
101 returns Integer from Standard;
105 --- Returns the number of Ids>
108 theOther:PassKey from BOPDS)
109 returns Boolean from Standard;
113 --- Returns true if the PassKey is equal to <the theOther>
116 theUpper : Integer from Standard)
117 returns Integer from Standard;
121 --- Returns hash code
124 theIndex: Integer from Standard)
125 returns Integer from Standard;
129 --- Returns Id of index <theIndex>
132 theI1 :out Integer from Standard;
133 theI2 :out Integer from Standard);
137 --- Returns the first two Ids <theI1>,<theI2>
140 aHex:Integer from Standard=0);
143 theSize:Integer from Standard)
144 returns PInteger from BOPCol
149 myAllocator : BaseAllocator from BOPCol is protected;
150 myNbIds: Integer from Standard is protected;
151 mySum : Integer from Standard is protected;
152 myPtr : PInteger from BOPCol is protected;