Salome HOME
Mantis issue 0020706: EDF 1263 GEOM: Suppress faces does notremove faces and adds...
[modules/geom.git] / src / NMTDS / NMTDS_InterfPool.hxx
1 //  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 //  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 //  This library is free software; you can redistribute it and/or
7 //  modify it under the terms of the GNU Lesser General Public
8 //  License as published by the Free Software Foundation; either
9 //  version 2.1 of the License.
10 //
11 //  This library is distributed in the hope that it will be useful,
12 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 //  Lesser General Public License for more details.
15 //
16 //  You should have received a copy of the GNU Lesser General Public
17 //  License along with this library; if not, write to the Free Software
18 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 //
20 //  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 #ifndef _NMTDS_InterfPool_HeaderFile
23 #define _NMTDS_InterfPool_HeaderFile
24
25 #ifndef _NMTDS_MapOfPassKeyBoolean_HeaderFile
26 #include <NMTDS_MapOfPassKeyBoolean.hxx>
27 #endif
28 #ifndef _NMTDS_ListOfPassKeyBoolean_HeaderFile
29 #include <NMTDS_ListOfPassKeyBoolean.hxx>
30 #endif
31 #ifndef _Standard_Integer_HeaderFile
32 #include <Standard_Integer.hxx>
33 #endif
34 #ifndef _BOPTools_CArray1OfSSInterference_HeaderFile
35 #include <BOPTools_CArray1OfSSInterference.hxx>
36 #endif
37 #ifndef _BOPTools_CArray1OfESInterference_HeaderFile
38 #include <BOPTools_CArray1OfESInterference.hxx>
39 #endif
40 #ifndef _BOPTools_CArray1OfVSInterference_HeaderFile
41 #include <BOPTools_CArray1OfVSInterference.hxx>
42 #endif
43 #ifndef _BOPTools_CArray1OfEEInterference_HeaderFile
44 #include <BOPTools_CArray1OfEEInterference.hxx>
45 #endif
46 #ifndef _BOPTools_CArray1OfVEInterference_HeaderFile
47 #include <BOPTools_CArray1OfVEInterference.hxx>
48 #endif
49 #ifndef _BOPTools_CArray1OfVVInterference_HeaderFile
50 #include <BOPTools_CArray1OfVVInterference.hxx>
51 #endif
52 #ifndef _Standard_Boolean_HeaderFile
53 #include <Standard_Boolean.hxx>
54 #endif
55 #ifndef _NMTDS_InterfType_HeaderFile
56 #include <NMTDS_InterfType.hxx>
57 #endif
58 class NMTDS_PassKeyBoolean;
59 class NMTDS_ListOfPassKeyBoolean;
60 class BOPTools_CArray1OfSSInterference;
61 class BOPTools_CArray1OfESInterference;
62 class BOPTools_CArray1OfVSInterference;
63 class BOPTools_CArray1OfEEInterference;
64 class BOPTools_CArray1OfVEInterference;
65 class BOPTools_CArray1OfVVInterference;
66
67
68 #ifndef _Standard_HeaderFile
69 #include <Standard.hxx>
70 #endif
71 #ifndef _Standard_Macro_HeaderFile
72 #include <Standard_Macro.hxx>
73 #endif
74
75
76 class NMTDS_InterfPool  {
77
78 public:
79
80     void* operator new(size_t,void* anAddress) 
81       {
82         return anAddress;
83       }
84     void* operator new(size_t size) 
85       { 
86         return Standard::Allocate(size); 
87       }
88     void  operator delete(void *anAddress) 
89       { 
90         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
91       }
92  // Methods PUBLIC
93  // 
94
95
96 Standard_EXPORT NMTDS_InterfPool();
97 Standard_EXPORT virtual ~NMTDS_InterfPool();
98
99
100 Standard_EXPORT   Standard_Boolean Add(const NMTDS_PassKeyBoolean& aPKB,const NMTDS_InterfType aType) ;
101
102
103 Standard_EXPORT   Standard_Boolean Add(const Standard_Integer aInd1,const Standard_Integer aInd2,const NMTDS_InterfType aType) ;
104
105
106 Standard_EXPORT   Standard_Boolean Add(const Standard_Integer aInd1,const Standard_Integer aInd2,const Standard_Boolean bFlag,const NMTDS_InterfType aType) ;
107
108
109 Standard_EXPORT   Standard_Boolean Contains(const NMTDS_PassKeyBoolean& aPKB) const;
110
111
112 Standard_EXPORT   Standard_Boolean Contains(const Standard_Integer aInd1,const Standard_Integer aInd2) const;
113
114
115 Standard_EXPORT  const NMTDS_ListOfPassKeyBoolean& Get() const;
116
117
118 Standard_EXPORT  const NMTDS_ListOfPassKeyBoolean& Get(const NMTDS_InterfType aType) const;
119
120
121 Standard_EXPORT  const NMTDS_ListOfPassKeyBoolean& Get(const Standard_Integer aInd) const;
122
123
124 Standard_EXPORT  const NMTDS_ListOfPassKeyBoolean& Get(const Standard_Integer aInd,const NMTDS_InterfType aType) const;
125
126
127 //! Returns the reference to array Of F/F interferences <br>
128 Standard_EXPORT   BOPTools_CArray1OfSSInterference& SSInterferences() ;
129
130
131 //! Returns the reference to array Of E/F interferences <br>
132 Standard_EXPORT   BOPTools_CArray1OfESInterference& ESInterferences() ;
133
134
135 //! Returns the reference to array Of V/F interferences <br>
136 Standard_EXPORT   BOPTools_CArray1OfVSInterference& VSInterferences() ;
137
138
139 //! Returns the reference to arrray Of E/E interferences <br>
140 Standard_EXPORT   BOPTools_CArray1OfEEInterference& EEInterferences() ;
141
142
143 //! Returns the reference to arrray Of  V/E interferences <br>
144 Standard_EXPORT   BOPTools_CArray1OfVEInterference& VEInterferences() ;
145
146
147 //! Returns the reference to arrray Of  V/V interferences <br>
148 Standard_EXPORT   BOPTools_CArray1OfVVInterference& VVInterferences() ;
149
150
151
152
153
154 protected:
155
156  // Methods PROTECTED
157  // 
158
159
160  // Fields PROTECTED
161  //
162 NMTDS_MapOfPassKeyBoolean myTable[6];
163 NMTDS_ListOfPassKeyBoolean myList;
164 Standard_Integer myMaxInd;
165 BOPTools_CArray1OfSSInterference mySSInterferences;
166 BOPTools_CArray1OfESInterference myESInterferences;
167 BOPTools_CArray1OfVSInterference myVSInterferences;
168 BOPTools_CArray1OfEEInterference myEEInterferences;
169 BOPTools_CArray1OfVEInterference myVEInterferences;
170 BOPTools_CArray1OfVVInterference myVVInterferences;
171
172
173 private: 
174
175  // Methods PRIVATE
176  // 
177
178
179  // Fields PRIVATE
180  //
181
182
183 };
184
185
186
187
188
189 // other Inline functions and methods (like "C++: function call" methods)
190 //
191
192
193 #endif