0025128: Memory leak in BOPDS_DS::Paves()
[occt.git] / src / BOPDS / BOPDS_DS.lxx
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 #include <BOPDS_PassKey.hxx>
16 //=======================================================================
17 //function : InterfVV
18 //purpose  : 
19 //=======================================================================
20 inline BOPDS_VectorOfInterfVV& BOPDS_DS::InterfVV()
21 {
22   return myInterfVV;
23 }
24 //=======================================================================
25 //function : InterfVE
26 //purpose  : 
27 //=======================================================================
28 inline BOPDS_VectorOfInterfVE& BOPDS_DS::InterfVE()
29 {
30   return myInterfVE;
31 }
32 //=======================================================================
33 //function : InterfVF
34 //purpose  : 
35 //=======================================================================
36 inline BOPDS_VectorOfInterfVF& BOPDS_DS::InterfVF()
37 {
38   return myInterfVF;
39 }//=======================================================================
40 //function : InterfEE
41 //purpose  : 
42 //=======================================================================
43 inline BOPDS_VectorOfInterfEE& BOPDS_DS::InterfEE()
44 {
45   return myInterfEE;
46 }
47 //=======================================================================
48 //function : InterfEF
49 //purpose  : 
50 //=======================================================================
51 inline BOPDS_VectorOfInterfEF& BOPDS_DS::InterfEF()
52 {
53   return myInterfEF;
54 }
55 //=======================================================================
56 //function : InterfFF
57 //purpose  : 
58 //=======================================================================
59 inline BOPDS_VectorOfInterfFF& BOPDS_DS::InterfFF()
60 {
61   return myInterfFF;
62 }
63 //=======================================================================
64 //function : InterfVZ
65 //purpose  : 
66 //=======================================================================
67 inline BOPDS_VectorOfInterfVZ& BOPDS_DS::InterfVZ()
68 {
69   return myInterfVZ;
70 }
71 //=======================================================================
72 //function : InterfEZ
73 //purpose  : 
74 //=======================================================================
75 inline BOPDS_VectorOfInterfEZ& BOPDS_DS::InterfEZ()
76 {
77   return myInterfEZ;
78 }
79 //=======================================================================
80 //function : InterfFZ
81 //purpose  : 
82 //=======================================================================
83 inline BOPDS_VectorOfInterfFZ& BOPDS_DS::InterfFZ()
84 {
85   return myInterfFZ;
86 }
87 //=======================================================================
88 //function : InterfZZ
89 //purpose  : 
90 //=======================================================================
91 inline BOPDS_VectorOfInterfZZ& BOPDS_DS::InterfZZ()
92 {
93   return myInterfZZ;
94 }
95 //=======================================================================
96 //function : NbInterfTypes
97 //purpose  : 
98 //=======================================================================
99 inline Standard_Integer BOPDS_DS::NbInterfTypes()
100 {
101   return 10;
102 }
103 //=======================================================================
104 //function : AddInterf
105 //purpose  : 
106 //=======================================================================
107 inline void BOPDS_DS::AddInterf(const Standard_Integer theI1,
108                                 const Standard_Integer theI2)
109 {
110   BOPDS_PassKey aPK;
111   //
112   aPK.SetIds(theI1, theI2);
113   myInterfTB.Add(aPK);
114 }
115 //=======================================================================
116 //function : HasInterf
117 //purpose  : 
118 //=======================================================================
119 inline Standard_Boolean BOPDS_DS::HasInterf
120   (const Standard_Integer theI1,
121    const Standard_Integer theI2)const
122 {
123   BOPDS_PassKey aPK;
124   //
125   aPK.SetIds(theI1, theI2);
126   return myInterfTB.Contains(aPK);
127 }
128 //=======================================================================
129 //function : Interferences
130 //purpose  : 
131 //=======================================================================
132 inline const BOPDS_MapOfPassKey& BOPDS_DS::Interferences()const
133 {
134   return myInterfTB;
135 }