Salome HOME
Merging with WPdev
[modules/geom.git] / src / NMTDS / NMTDS_PassKey.cdl
1 -- Copyright (C) 2006 SAMTECH 
2 -- 
3 -- This library is free software; you can redistribute it and/or
4 -- modify it under the terms of the GNU Lesser General Public
5 -- License as published by the Free Software Foundation; either 
6 -- version 2.1 of the License.
7 -- 
8 -- This library is distributed in the hope that it will be useful 
9 -- but WITHOUT ANY WARRANTY; without even the implied warranty of 
10 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
11 -- Lesser General Public License for more details.
12 --
13 -- You should have received a copy of the GNU Lesser General Public  
14 -- License along with this library; if not, write to the Free Software 
15 -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 --
17 -- See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 -- 
19 -- File:        NMTDS_PassKey.cdl
20 -- Created:     
21 -- Author:      Peter KURNEV
22 --              <pkv@irinox>
23
24 class PassKey from NMTDS 
25
26         ---Purpose: 
27
28 uses
29     Shape from TopoDS, 
30     ListOfInteger from TColStd   
31          
32 --raises
33
34 is 
35     Create  
36         returns PassKey from NMTDS; 
37      
38     Assign(me:out;  
39             Other : PassKey from NMTDS) 
40         returns PassKey from NMTDS; 
41     ---C++: alias operator =
42     ---C++: return & 
43 --    
44     SetIds(me:out; 
45             aI1 :Integer from Standard;    
46             aI2 :Integer from Standard);  
47              
48     NbMax(me) 
49         returns Integer  from Standard; 
50          
51     Clear(me:out); 
52      
53     Compute(me:out); 
54      
55     IsEqual(me; 
56             aOther:PassKey from NMTDS) 
57         returns Boolean from Standard;                       
58
59     Key(me) 
60         returns Address from Standard;  
61          
62     HashCode(me; 
63             Upper : Integer  from Standard)  
64         returns Integer from Standard;           
65      
66  
67     Ids(me; 
68             aI1 :out Integer from Standard;    
69             aI2 :out Integer from Standard);
70      
71     Dump(me); 
72
73 fields 
74  
75     myNbIds: Integer from Standard is protected;  
76     myNbMax: Integer from Standard is protected; 
77     mySum  : Integer from Standard is protected;   
78     myIds  : Integer from Standard [2] is protected; 
79
80 end PassKey;