]> SALOME platform Git repositories - tools/medcoupling.git/blob - src/MEDLoader/Swig/MEDLoader.i
Salome HOME
Final cleanup
[tools/medcoupling.git] / src / MEDLoader / Swig / MEDLoader.i
1 // Copyright (C) 2007-2016  CEA/DEN, EDF R&D
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, or (at your option) any later version.
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 // Author : Anthony Geay (CEA/DEN)
20
21 %include "MEDLoaderCommon.i"
22
23 %pythoncode %{
24 def MEDCouplingDataArrayDoubleIadd(self,*args):
25     import _MEDLoader
26     return _MEDLoader.DataArrayDouble____iadd___(self, self, *args)
27 def MEDCouplingDataArrayDoubleIsub(self,*args):
28     import _MEDLoader
29     return _MEDLoader.DataArrayDouble____isub___(self, self, *args)
30 def MEDCouplingDataArrayDoubleImul(self,*args):
31     import _MEDLoader
32     return _MEDLoader.DataArrayDouble____imul___(self, self, *args)
33 def MEDCouplingDataArrayDoubleIdiv(self,*args):
34     import _MEDLoader
35     return _MEDLoader.DataArrayDouble____idiv___(self, self, *args)
36 def MEDCouplingDataArrayDoubleIpow(self,*args):
37     import _MEDLoader
38     return _MEDLoader.DataArrayDouble____ipow___(self, self, *args)
39 def MEDCouplingFieldDoubleIadd(self,*args):
40     import _MEDLoader
41     return _MEDLoader.MEDCouplingFieldDouble____iadd___(self, self, *args)
42 def MEDCouplingFieldDoubleIsub(self,*args):
43     import _MEDLoader
44     return _MEDLoader.MEDCouplingFieldDouble____isub___(self, self, *args)
45 def MEDCouplingFieldDoubleImul(self,*args):
46     import _MEDLoader
47     return _MEDLoader.MEDCouplingFieldDouble____imul___(self, self, *args)
48 def MEDCouplingFieldDoubleIdiv(self,*args):
49     import _MEDLoader
50     return _MEDLoader.MEDCouplingFieldDouble____idiv___(self, self, *args)
51 def MEDCouplingFieldDoubleIpow(self,*args):
52     import _MEDLoader
53     return _MEDLoader.MEDCouplingFieldDouble____ipow___(self, self, *args)
54 def MEDCouplingDataArrayFloatIadd(self,*args):
55     import _MEDLoader
56     return _MEDLoader.DataArrayFloat____iadd___(self, self, *args)
57 def MEDCouplingDataArrayFloatIsub(self,*args):
58     import _MEDLoader
59     return _MEDLoader.DataArrayFloat____isub___(self, self, *args)
60 def MEDCouplingDataArrayFloatImul(self,*args):
61     import _MEDLoader
62     return _MEDLoader.DataArrayFloat____imul___(self, self, *args)
63 def MEDCouplingDataArrayFloatIdiv(self,*args):
64     import _MEDLoader
65     return _MEDLoader.DataArrayFloat____idiv___(self, self, *args)
66 def MEDCouplingDataArrayIntIadd(self,*args):
67     import _MEDLoader
68     return _MEDLoader.DataArrayInt____iadd___(self, self, *args)
69 def MEDCouplingDataArrayIntIsub(self,*args):
70     import _MEDLoader
71     return _MEDLoader.DataArrayInt____isub___(self, self, *args)
72 def MEDCouplingDataArrayIntImul(self,*args):
73     import _MEDLoader
74     return _MEDLoader.DataArrayInt____imul___(self, self, *args)
75 def MEDCouplingDataArrayIntIdiv(self,*args):
76     import _MEDLoader
77     return _MEDLoader.DataArrayInt____idiv___(self, self, *args)
78 def MEDCouplingDataArrayIntImod(self,*args):
79     import _MEDLoader
80     return _MEDLoader.DataArrayInt____imod___(self, self, *args)
81 def MEDCouplingDataArrayIntIpow(self,*args):
82     import _MEDLoader
83     return _MEDLoader.DataArrayInt____ipow___(self, self, *args)
84 def MEDCouplingDataArrayDoubleTupleIadd(self,*args):
85     import _MEDLoader
86     return _MEDLoader.DataArrayDoubleTuple____iadd___(self, self, *args)
87 def MEDCouplingDataArrayDoubleTupleIsub(self,*args):
88     import _MEDLoader
89     return _MEDLoader.DataArrayDoubleTuple____isub___(self, self, *args)
90 def MEDCouplingDataArrayDoubleTupleImul(self,*args):
91     import _MEDLoader
92     return _MEDLoader.DataArrayDoubleTuple____imul___(self, self, *args)
93 def MEDCouplingDataArrayDoubleTupleIdiv(self,*args):
94     import _MEDLoader
95     return _MEDLoader.DataArrayDoubleTuple____idiv___(self, self, *args)
96 def MEDCouplingDataArrayIntTupleIadd(self,*args):
97     import _MEDLoader
98     return _MEDLoader.DataArrayIntTuple____iadd___(self, self, *args)
99 def MEDCouplingDataArrayIntTupleIsub(self,*args):
100     import _MEDLoader
101     return _MEDLoader.DataArrayIntTuple____isub___(self, self, *args)
102 def MEDCouplingDataArrayIntTupleImul(self,*args):
103     import _MEDLoader
104     return _MEDLoader.DataArrayIntTuple____imul___(self, self, *args)
105 def MEDCouplingDataArrayIntTupleIdiv(self,*args):
106     import _MEDLoader
107     return _MEDLoader.DataArrayIntTuple____idiv___(self, self, *args)
108 def MEDCouplingDataArrayIntTupleImod(self,*args):
109     import _MEDLoader
110     return _MEDLoader.DataArrayIntTuple____imod___(self, self, *args)
111 def ParaMEDMEMDenseMatrixIadd(self,*args):
112     import _MEDLoader
113     return _MEDLoader.DenseMatrix____iadd___(self, self, *args)
114 def ParaMEDMEMDenseMatrixIsub(self,*args):
115     import _MEDLoader
116     return _MEDLoader.DenseMatrix____isub___(self, self, *args)
117 %}
118
119 %include "MEDCouplingFinalize.i"
120
121 %pythoncode %{
122 MEDFileMeshesIterator.__next__ = MEDFileMeshesIterator.next
123 MEDFileAnyTypeFieldMultiTSIterator.__next__ = MEDFileAnyTypeFieldMultiTSIterator.next
124 MEDFileFieldsIterator.__next__ = MEDFileFieldsIterator.next
125 %}
126
127 %pythoncode %{
128 def MEDCouplingMEDFileUMeshReduce(self):
129   return MEDCouplingStdReduceFunct,(MEDFileUMesh,((),(self.__getstate__()),))
130 MEDFileUMesh.__reduce__=MEDCouplingMEDFileUMeshReduce
131 del MEDCouplingMEDFileUMeshReduce
132 def MEDCouplingMEDFileCMeshReduce(self):
133   return MEDCouplingStdReduceFunct,(MEDFileCMesh,((self.serialize(),),(self.__getstate__()),))
134 MEDFileCMesh.__reduce__=MEDCouplingMEDFileCMeshReduce
135 del MEDCouplingMEDFileCMeshReduce
136 def MEDCouplingMEDFileCurveLinearMeshReduce(self):
137   return MEDCouplingStdReduceFunct,(MEDFileCurveLinearMesh,((self.serialize(),),(self.__getstate__()),))
138 MEDFileCurveLinearMesh.__reduce__=MEDCouplingMEDFileCurveLinearMeshReduce
139 del MEDCouplingMEDFileCurveLinearMeshReduce
140 def MEDCouplingMEDFileDataReduce(self):
141   return MEDCouplingStdReduceFunct,(MEDFileData,((self.serialize(),),(self.__getstate__()),))
142 MEDFileData.__reduce__=MEDCouplingMEDFileDataReduce
143 del MEDCouplingMEDFileDataReduce
144 def MEDCouplingMEDFileMeshesReduce(self):
145   return MEDCouplingStdReduceFunct,(MEDFileMeshes,((self.serialize(),),(self.__getstate__()),))
146 MEDFileMeshes.__reduce__=MEDCouplingMEDFileMeshesReduce
147 del MEDCouplingMEDFileMeshesReduce
148 def MEDCouplingMEDFileFieldsReduce(self):
149   return MEDCouplingStdReduceFunct,(MEDFileFields,((self.serialize(),),(self.__getstate__()),))
150 MEDFileFields.__reduce__=MEDCouplingMEDFileFieldsReduce
151 del MEDCouplingMEDFileFieldsReduce
152 def MEDCouplingMEDFileField1TSReduce(self):
153   return MEDCouplingStdReduceFunct,(MEDFileField1TS,((self.serialize(),),(self.__getstate__()),))
154 MEDFileField1TS.__reduce__=MEDCouplingMEDFileField1TSReduce
155 del MEDCouplingMEDFileField1TSReduce
156 def MEDCouplingMEDFileFieldMultiTSReduce(self):
157   return MEDCouplingStdReduceFunct,(MEDFileFieldMultiTS,((self.serialize(),),(self.__getstate__()),))
158 MEDFileFieldMultiTS.__reduce__=MEDCouplingMEDFileFieldMultiTSReduce
159 del MEDCouplingMEDFileFieldMultiTSReduce
160 def MEDCouplingMEDFileIntField1TSReduce(self):
161   return MEDCouplingStdReduceFunct,(MEDFileIntField1TS,((self.serialize(),),(self.__getstate__()),))
162 MEDFileIntField1TS.__reduce__=MEDCouplingMEDFileIntField1TSReduce
163 def MEDCouplingMEDFileIntFieldMultiTSReduce(self):
164   return MEDCouplingStdReduceFunct,(MEDFileIntFieldMultiTS,((self.serialize(),),(self.__getstate__()),))
165 MEDFileIntFieldMultiTS.__reduce__=MEDCouplingMEDFileIntFieldMultiTSReduce
166 del MEDCouplingMEDFileIntFieldMultiTSReduce
167 def MEDCouplingMEDFileFloatField1TSReduce(self):
168   return MEDCouplingStdReduceFunct,(MEDFileFloatField1TS,((self.serialize(),),(self.__getstate__()),))
169 MEDFileFloatField1TS.__reduce__=MEDCouplingMEDFileFloatField1TSReduce
170 def MEDCouplingMEDFileFloatFieldMultiTSReduce(self):
171   return MEDCouplingStdReduceFunct,(MEDFileFloatFieldMultiTS,((self.serialize(),),(self.__getstate__()),))
172 MEDFileFloatFieldMultiTS.__reduce__=MEDCouplingMEDFileFloatFieldMultiTSReduce
173 del MEDCouplingMEDFileFloatFieldMultiTSReduce
174 def MEDCouplingMEDFileParametersReduce(self):
175   return MEDCouplingStdReduceFunct,(MEDFileParameters,((self.serialize(),),(self.__getstate__()),))
176 MEDFileParameters.__reduce__=MEDCouplingMEDFileParametersReduce
177 del MEDCouplingMEDFileParametersReduce
178 %}