1 // Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 #ifndef _NMTDS_InterfPool_HeaderFile
23 #define _NMTDS_InterfPool_HeaderFile
25 #ifndef _NMTDS_MapOfPassKeyBoolean_HeaderFile
26 #include <NMTDS_MapOfPassKeyBoolean.hxx>
28 #ifndef _NMTDS_ListOfPassKeyBoolean_HeaderFile
29 #include <NMTDS_ListOfPassKeyBoolean.hxx>
31 #ifndef _Standard_Integer_HeaderFile
32 #include <Standard_Integer.hxx>
34 #ifndef _BOPTools_CArray1OfSSInterference_HeaderFile
35 #include <BOPTools_CArray1OfSSInterference.hxx>
37 #ifndef _BOPTools_CArray1OfESInterference_HeaderFile
38 #include <BOPTools_CArray1OfESInterference.hxx>
40 #ifndef _BOPTools_CArray1OfVSInterference_HeaderFile
41 #include <BOPTools_CArray1OfVSInterference.hxx>
43 #ifndef _BOPTools_CArray1OfEEInterference_HeaderFile
44 #include <BOPTools_CArray1OfEEInterference.hxx>
46 #ifndef _BOPTools_CArray1OfVEInterference_HeaderFile
47 #include <BOPTools_CArray1OfVEInterference.hxx>
49 #ifndef _BOPTools_CArray1OfVVInterference_HeaderFile
50 #include <BOPTools_CArray1OfVVInterference.hxx>
52 #ifndef _Standard_Boolean_HeaderFile
53 #include <Standard_Boolean.hxx>
55 #ifndef _NMTDS_InterfType_HeaderFile
56 #include <NMTDS_InterfType.hxx>
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;
68 #ifndef _Standard_HeaderFile
69 #include <Standard.hxx>
71 #ifndef _Standard_Macro_HeaderFile
72 #include <Standard_Macro.hxx>
76 class NMTDS_InterfPool {
80 void* operator new(size_t,void* anAddress)
84 void* operator new(size_t size)
86 return Standard::Allocate(size);
88 void operator delete(void *anAddress)
90 if (anAddress) Standard::Free((Standard_Address&)anAddress);
96 Standard_EXPORT NMTDS_InterfPool();
97 Standard_EXPORT virtual ~NMTDS_InterfPool();
100 Standard_EXPORT Standard_Boolean Add(const NMTDS_PassKeyBoolean& aPKB,const NMTDS_InterfType aType) ;
103 Standard_EXPORT Standard_Boolean Add(const Standard_Integer aInd1,const Standard_Integer aInd2,const NMTDS_InterfType aType) ;
106 Standard_EXPORT Standard_Boolean Add(const Standard_Integer aInd1,const Standard_Integer aInd2,const Standard_Boolean bFlag,const NMTDS_InterfType aType) ;
109 Standard_EXPORT Standard_Boolean Contains(const NMTDS_PassKeyBoolean& aPKB) const;
112 Standard_EXPORT Standard_Boolean Contains(const Standard_Integer aInd1,const Standard_Integer aInd2) const;
115 Standard_EXPORT const NMTDS_ListOfPassKeyBoolean& Get() const;
118 Standard_EXPORT const NMTDS_ListOfPassKeyBoolean& Get(const NMTDS_InterfType aType) const;
121 Standard_EXPORT const NMTDS_ListOfPassKeyBoolean& Get(const Standard_Integer aInd) const;
124 Standard_EXPORT const NMTDS_ListOfPassKeyBoolean& Get(const Standard_Integer aInd,const NMTDS_InterfType aType) const;
127 //! Returns the reference to array Of F/F interferences <br>
128 Standard_EXPORT BOPTools_CArray1OfSSInterference& SSInterferences() ;
131 //! Returns the reference to array Of E/F interferences <br>
132 Standard_EXPORT BOPTools_CArray1OfESInterference& ESInterferences() ;
135 //! Returns the reference to array Of V/F interferences <br>
136 Standard_EXPORT BOPTools_CArray1OfVSInterference& VSInterferences() ;
139 //! Returns the reference to arrray Of E/E interferences <br>
140 Standard_EXPORT BOPTools_CArray1OfEEInterference& EEInterferences() ;
143 //! Returns the reference to arrray Of V/E interferences <br>
144 Standard_EXPORT BOPTools_CArray1OfVEInterference& VEInterferences() ;
147 //! Returns the reference to arrray Of V/V interferences <br>
148 Standard_EXPORT BOPTools_CArray1OfVVInterference& VVInterferences() ;
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;
189 // other Inline functions and methods (like "C++: function call" methods)