Salome HOME
4th step
[tools/medcoupling.git] / src / RENUMBER_Swig / MEDRenumber.i
1 // Copyright (C) 2007-2015  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
20 %include "MEDRenumberCommon.i"
21
22 %pythoncode %{
23 def MEDCouplingDataArrayDoublenew(cls,*args):
24     import _MEDRenumber
25     return _MEDRenumber.DataArrayDouble____new___(cls,args)
26 def MEDCouplingDataArrayDoubleIadd(self,*args):
27     import _MEDRenumber
28     return _MEDRenumber.DataArrayDouble____iadd___(self, self, *args)
29 def MEDCouplingDataArrayDoubleIsub(self,*args):
30     import _MEDRenumber
31     return _MEDRenumber.DataArrayDouble____isub___(self, self, *args)
32 def MEDCouplingDataArrayDoubleImul(self,*args):
33     import _MEDRenumber
34     return _MEDRenumber.DataArrayDouble____imul___(self, self, *args)
35 def MEDCouplingDataArrayDoubleIdiv(self,*args):
36     import _MEDRenumber
37     return _MEDRenumber.DataArrayDouble____idiv___(self, self, *args)
38 def MEDCouplingDataArrayDoubleIpow(self,*args):
39     import _MEDRenumber
40     return _MEDRenumber.DataArrayDouble____ipow___(self, self, *args)
41 def MEDCouplingDataArrayIntnew(cls,*args):
42     import _MEDRenumber
43     return _MEDRenumber.DataArrayInt____new___(cls,args)
44 def MEDCouplingDataArrayIntIadd(self,*args):
45     import _MEDRenumber
46     return _MEDRenumber.DataArrayInt____iadd___(self, self, *args)
47 def MEDCouplingDataArrayIntIsub(self,*args):
48     import _MEDRenumber
49     return _MEDRenumber.DataArrayInt____isub___(self, self, *args)
50 def MEDCouplingDataArrayIntImul(self,*args):
51     import _MEDRenumber
52     return _MEDRenumber.DataArrayInt____imul___(self, self, *args)
53 def MEDCouplingDataArrayIntIdiv(self,*args):
54     import _MEDRenumber
55     return _MEDRenumber.DataArrayInt____idiv___(self, self, *args)
56 def MEDCouplingDataArrayIntImod(self,*args):
57     import _MEDRenumber
58     return _MEDRenumber.DataArrayInt____imod___(self, self, *args)
59 def MEDCouplingDataArrayIntIpow(self,*args):
60     import _MEDRenumber
61     return _MEDRenumber.DataArrayInt____ipow___(self, self, *args)
62 def MEDCouplingDataArrayDoubleTupleIadd(self,*args):
63     import _MEDRenumber
64     return _MEDRenumber.DataArrayDoubleTuple____iadd___(self, self, *args)
65 def MEDCouplingDataArrayDoubleTupleIsub(self,*args):
66     import _MEDRenumber
67     return _MEDRenumber.DataArrayDoubleTuple____isub___(self, self, *args)
68 def MEDCouplingDataArrayDoubleTupleImul(self,*args):
69     import _MEDRenumber
70     return _MEDRenumber.DataArrayDoubleTuple____imul___(self, self, *args)
71 def MEDCouplingDataArrayDoubleTupleIdiv(self,*args):
72     import _MEDRenumber
73     return _MEDRenumber.DataArrayDoubleTuple____idiv___(self, self, *args)
74 def MEDCouplingDataArrayIntTupleIadd(self,*args):
75     import _MEDRenumber
76     return _MEDRenumber.DataArrayIntTuple____iadd___(self, self, *args)
77 def MEDCouplingDataArrayIntTupleIsub(self,*args):
78     import _MEDRenumber
79     return _MEDRenumber.DataArrayIntTuple____isub___(self, self, *args)
80 def MEDCouplingDataArrayIntTupleImul(self,*args):
81     import _MEDRenumber
82     return _MEDRenumber.DataArrayIntTuple____imul___(self, self, *args)
83 def MEDCouplingDataArrayIntTupleIdiv(self,*args):
84     import _MEDRenumber
85     return _MEDRenumber.DataArrayIntTuple____idiv___(self, self, *args)
86 def MEDCouplingDataArrayIntTupleImod(self,*args):
87     import _MEDRenumber
88     return _MEDRenumber.DataArrayIntTuple____imod___(self, self, *args)
89 %}
90
91
92 %pythoncode %{
93 InterpKernelException.__reduce__=INTERPKERNELExceptionReduce
94 DataArrayDouble.__new__=classmethod(MEDCouplingDataArrayDoublenew)
95 DataArrayDouble.__iadd__=MEDCouplingDataArrayDoubleIadd
96 DataArrayDouble.__isub__=MEDCouplingDataArrayDoubleIsub
97 DataArrayDouble.__imul__=MEDCouplingDataArrayDoubleImul
98 DataArrayDouble.__idiv__=MEDCouplingDataArrayDoubleIdiv
99 DataArrayDouble.__ipow__=MEDCouplingDataArrayDoubleIpow
100
101 DataArrayInt.__new__=classmethod(MEDCouplingDataArrayIntnew)
102 DataArrayInt.__iadd__=MEDCouplingDataArrayIntIadd
103 DataArrayInt.__isub__=MEDCouplingDataArrayIntIsub
104 DataArrayInt.__imul__=MEDCouplingDataArrayIntImul
105 DataArrayInt.__idiv__=MEDCouplingDataArrayIntIdiv
106 DataArrayInt.__imod__=MEDCouplingDataArrayIntImod
107 DataArrayInt.__ipow__=MEDCouplingDataArrayIntIpow
108
109 DataArrayDoubleTuple.__iadd__=MEDCouplingDataArrayDoubleTupleIadd
110 DataArrayDoubleTuple.__isub__=MEDCouplingDataArrayDoubleTupleIsub
111 DataArrayDoubleTuple.__imul__=MEDCouplingDataArrayDoubleTupleImul
112 DataArrayDoubleTuple.__idiv__=MEDCouplingDataArrayDoubleTupleIdiv
113
114 DataArrayIntTuple.__iadd__=MEDCouplingDataArrayIntTupleIadd
115 DataArrayIntTuple.__isub__=MEDCouplingDataArrayIntTupleIsub
116 DataArrayIntTuple.__imul__=MEDCouplingDataArrayIntTupleImul
117 DataArrayIntTuple.__idiv__=MEDCouplingDataArrayIntTupleIdiv
118 DataArrayIntTuple.__imod__=MEDCouplingDataArrayIntTupleImod
119
120 del INTERPKERNELExceptionReduce
121 del MEDCouplingDataArrayDoublenew
122 del MEDCouplingDataArrayDoubleIadd
123 del MEDCouplingDataArrayDoubleIsub
124 del MEDCouplingDataArrayDoubleImul
125 del MEDCouplingDataArrayDoubleIdiv
126 del MEDCouplingDataArrayIntnew
127 del MEDCouplingDataArrayIntIadd
128 del MEDCouplingDataArrayIntIsub
129 del MEDCouplingDataArrayIntImul
130 del MEDCouplingDataArrayIntIdiv
131 del MEDCouplingDataArrayIntImod
132 del MEDCouplingDataArrayDoubleTupleIadd
133 del MEDCouplingDataArrayDoubleTupleIsub
134 del MEDCouplingDataArrayDoubleTupleImul
135 del MEDCouplingDataArrayDoubleTupleIdiv
136 del MEDCouplingDataArrayIntTupleIadd
137 del MEDCouplingDataArrayIntTupleIsub
138 del MEDCouplingDataArrayIntTupleImul
139 del MEDCouplingDataArrayIntTupleIdiv
140 del MEDCouplingDataArrayIntTupleImod
141 %}