1 // Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
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.
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.
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
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #ifndef _NMTDS_InterfPool_HeaderFile
\r
21 #define _NMTDS_InterfPool_HeaderFile
\r
23 #ifndef _Standard_HeaderFile
\r
24 #include <Standard.hxx>
\r
26 #ifndef _Standard_Macro_HeaderFile
\r
27 #include <Standard_Macro.hxx>
\r
30 #ifndef _NMTDS_MapOfPairBoolean_HeaderFile
\r
31 #include <NMTDS_MapOfPairBoolean.hxx>
\r
33 #ifndef _NMTDS_ListOfPairBoolean_HeaderFile
\r
34 #include <NMTDS_ListOfPairBoolean.hxx>
\r
36 #ifndef _Standard_Integer_HeaderFile
\r
37 #include <Standard_Integer.hxx>
\r
39 #ifndef _BOPTools_CArray1OfSSInterference_HeaderFile
\r
40 #include <BOPTools_CArray1OfSSInterference.hxx>
\r
42 #ifndef _BOPTools_CArray1OfESInterference_HeaderFile
\r
43 #include <BOPTools_CArray1OfESInterference.hxx>
\r
45 #ifndef _BOPTools_CArray1OfVSInterference_HeaderFile
\r
46 #include <BOPTools_CArray1OfVSInterference.hxx>
\r
48 #ifndef _BOPTools_CArray1OfEEInterference_HeaderFile
\r
49 #include <BOPTools_CArray1OfEEInterference.hxx>
\r
51 #ifndef _BOPTools_CArray1OfVEInterference_HeaderFile
\r
52 #include <BOPTools_CArray1OfVEInterference.hxx>
\r
54 #ifndef _BOPTools_CArray1OfVVInterference_HeaderFile
\r
55 #include <BOPTools_CArray1OfVVInterference.hxx>
\r
57 #ifndef _Standard_Boolean_HeaderFile
\r
58 #include <Standard_Boolean.hxx>
\r
60 #ifndef _NMTDS_InterfType_HeaderFile
\r
61 #include <NMTDS_InterfType.hxx>
\r
63 class NMTDS_PairBoolean;
\r
64 class NMTDS_ListOfPairBoolean;
\r
65 class BOPTools_CArray1OfSSInterference;
\r
66 class BOPTools_CArray1OfESInterference;
\r
67 class BOPTools_CArray1OfVSInterference;
\r
68 class BOPTools_CArray1OfEEInterference;
\r
69 class BOPTools_CArray1OfVEInterference;
\r
70 class BOPTools_CArray1OfVVInterference;
\r
74 class NMTDS_InterfPool {
\r
77 void* operator new(size_t,void* anAddress)
\r
81 void* operator new(size_t size)
\r
83 return Standard::Allocate(size);
\r
85 void operator delete(void *anAddress)
\r
87 if (anAddress) Standard::Free((Standard_Address&)anAddress);
\r
91 Standard_EXPORT NMTDS_InterfPool();
\r
92 Standard_EXPORT virtual ~NMTDS_InterfPool();
\r
94 Standard_EXPORT Standard_Boolean Add(const NMTDS_PairBoolean& aPKB,const NMTDS_InterfType aType) ;
\r
96 Standard_EXPORT Standard_Boolean Add(const Standard_Integer aInd1,const Standard_Integer aInd2,const NMTDS_InterfType aType) ;
\r
98 Standard_EXPORT Standard_Boolean Add(const Standard_Integer aInd1,const Standard_Integer aInd2,const Standard_Boolean bFlag,const NMTDS_InterfType aType) ;
\r
100 Standard_EXPORT Standard_Boolean Contains(const NMTDS_PairBoolean& aPKB) const;
\r
102 Standard_EXPORT Standard_Boolean Contains(const Standard_Integer aInd1,const Standard_Integer aInd2) const;
\r
104 Standard_EXPORT const NMTDS_ListOfPairBoolean& Get() const;
\r
106 Standard_EXPORT const NMTDS_ListOfPairBoolean& Get(const NMTDS_InterfType aType) const;
\r
108 Standard_EXPORT const NMTDS_ListOfPairBoolean& Get(const Standard_Integer aInd) const;
\r
110 Standard_EXPORT const NMTDS_ListOfPairBoolean& Get(const Standard_Integer aInd,const NMTDS_InterfType aType) const;
\r
112 //! Returns the reference to array Of F/F interferences <br>
\r
113 Standard_EXPORT BOPTools_CArray1OfSSInterference& SSInterferences() ;
\r
115 //! Returns the reference to array Of E/F interferences <br>
\r
116 Standard_EXPORT BOPTools_CArray1OfESInterference& ESInterferences() ;
\r
118 //! Returns the reference to array Of V/F interferences <br>
\r
119 Standard_EXPORT BOPTools_CArray1OfVSInterference& VSInterferences() ;
\r
121 //! Returns the reference to arrray Of E/E interferences <br>
\r
122 Standard_EXPORT BOPTools_CArray1OfEEInterference& EEInterferences() ;
\r
124 //! Returns the reference to arrray Of V/E interferences <br>
\r
125 Standard_EXPORT BOPTools_CArray1OfVEInterference& VEInterferences() ;
\r
127 //! Returns the reference to arrray Of V/V interferences <br>
\r
128 Standard_EXPORT BOPTools_CArray1OfVVInterference& VVInterferences() ;
\r
130 Standard_EXPORT void Purge() ;
\r
140 NMTDS_MapOfPairBoolean myTable[6];
\r
141 NMTDS_ListOfPairBoolean myList;
\r
142 Standard_Integer myMaxInd;
\r
143 BOPTools_CArray1OfSSInterference mySSInterferences;
\r
144 BOPTools_CArray1OfESInterference myESInterferences;
\r
145 BOPTools_CArray1OfVSInterference myVSInterferences;
\r
146 BOPTools_CArray1OfEEInterference myEEInterferences;
\r
147 BOPTools_CArray1OfVEInterference myVEInterferences;
\r
148 BOPTools_CArray1OfVVInterference myVVInterferences;
\r
163 // other Inline functions and methods (like "C++: function call" methods)
\r