Salome HOME
Fix bug 15567: MakeFuse() for compounds of faces raises error.
[modules/geom.git] / src / NMTDS / NMTDS_Iterator.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_Iterator.cdl
20 -- Created:     Sun May 07 14:58:16 2006
21 -- Author:      Peter KURNEV
22 --              <peter@PREFEX>
23
24
25
26 class Iterator from NMTDS 
27
28         ---Purpose: 
29
30 uses  
31     DataMapOfIntegerListOfInteger from TColStd,
32     ShapeEnum from TopAbs, 
33     ShapesDataStructure  from NMTDS,
34     PShapesDataStructure from NMTDS,
35     ListOfPassKeyBoolean from NMTDS,
36     ListIteratorOfListOfPassKeyBoolean from NMTDS
37 --raises
38
39 is 
40     Create   
41         returns Iterator from NMTDS;
42     ---C++: alias "Standard_EXPORT virtual ~NMTDS_Iterator();" 
43     
44    
45     SetDS(me:out; 
46             pDS:PShapesDataStructure from NMTDS); 
47      
48     DS(me) 
49       returns ShapesDataStructure from NMTDS; 
50     ---C++:return const & 
51      
52     Initialize(me: out;  
53             aType1: ShapeEnum from TopAbs;
54             aType2: ShapeEnum from TopAbs); 
55     More(me)  
56         returns Boolean from Standard; 
57          
58     Next(me: out); 
59      
60     Current(me; aIndex1:out Integer from Standard;
61                 aIndex2:out Integer from Standard;
62                 aWithSubShape: out Boolean from Standard); 
63         
64     Prepare(me:out); 
65      
66     ExpectedLength(me) 
67         returns Integer from Standard;  
68          
69     SDVertices(me) 
70         returns DataMapOfIntegerListOfInteger from TColStd; 
71     ---C++:return const & 
72
73  
74 fields
75     myPDS      :PShapesDataStructure from NMTDS     is protected; 
76     myLists    :ListOfPassKeyBoolean from NMTDS [6] is protected;  
77     myIterator :ListIteratorOfListOfPassKeyBoolean from NMTDS is protected; 
78     myEmptyList:ListOfPassKeyBoolean from NMTDS is protected; 
79     myLength   :Integer from Standard is protected; 
80     --
81     myMVSD     :DataMapOfIntegerListOfInteger from TColStd is protected;     
82
83 end Iterator;