0024023: Revamp the OCCT Handle -- ambiguity
[occt.git] / src / BOPTools / BOPTools_Set.cdl
1 -- Created by: Peter KURNEV
2 -- Copyright (c) 1999-2014 OPEN CASCADE SAS
3 --
4 -- This file is part of Open CASCADE Technology software library.
5 --
6 -- This library is free software; you can redistribute it and/or modify it under
7 -- the terms of the GNU Lesser General Public License version 2.1 as published
8 -- by the Free Software Foundation, with special exception defined in the file
9 -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10 -- distribution for complete text of the license and disclaimer of any warranty.
11 --
12 -- Alternatively, this file may be used under the terms of Open CASCADE
13 -- commercial license or contractual agreement.
14
15 class Set from BOPTools 
16
17  ---Purpose: 
18
19 uses  
20     ShapeEnum from TopAbs,
21     Shape from TopoDS,
22     ListOfShape from BOPCol,
23     BaseAllocator from BOPCol 
24     
25 --raises
26
27 is 
28     Create 
29      returns Set from BOPTools;  
30     ---C++: alias "Standard_EXPORT virtual ~BOPTools_Set();"  
31     
32     Create (theAllocator: BaseAllocator from BOPCol) 
33         returns Set from BOPTools; 
34     
35     Assign(me:out;  
36             Other : Set from BOPTools) 
37         returns Set from BOPTools; 
38     ---C++: alias operator =
39     ---C++: return &   
40     
41     Clear(me:out) 
42         is protected; 
43     
44     Shape(me) 
45         returns Shape from TopoDS; 
46     ---C++: return const & 
47     
48     Add(me:out; 
49             theS:Shape from TopoDS; 
50             theType: ShapeEnum from TopAbs);  
51     
52     NbShapes(me) 
53         returns Integer from Standard; 
54     
55     IsEqual(me; 
56             aOther:Set from BOPTools) 
57         returns Boolean from Standard;   
58     
59     HashCode(me; 
60             Upper : Integer  from Standard)  
61         returns Integer from Standard;     
62     
63 fields   
64     myAllocator : BaseAllocator from BOPCol is protected; 
65     myShapes    : ListOfShape from BOPCol is protected;   
66     myShape     : Shape from TopoDS is protected; 
67     myNbShapes  : Integer from Standard is protected;
68     mySum       : Integer from Standard is protected; 
69     myUpper     : Integer from Standard is protected; 
70     
71 end Set;