@@ -171,7 +171,7 @@ def type_text(self, enable_count=False):
171
171
172
172
173
173
@Type .add_type ('INT_OUT' )
174
- class TypeBufferOut (Type ):
174
+ class TypeIntOut (Type ):
175
175
176
176
def type_text (self , enable_count = False ):
177
177
return 'int *'
@@ -183,6 +183,16 @@ def parameter(self, enable_count=False, **kwargs):
183
183
return f'int { self .name } []'
184
184
185
185
186
+ @Type .add_type ('INT_ARRAY' )
187
+ class TypeIntArray (Type ):
188
+
189
+ def type_text (self , enable_count = False ):
190
+ return 'const int *'
191
+
192
+ def parameter (self , enable_count = False , ** kwargs ):
193
+ return f'const int { self .name } []'
194
+
195
+
186
196
@Type .add_type ('OFFSET' )
187
197
class TypeOffset (Type ):
188
198
@@ -211,6 +221,16 @@ def type_text(self, enable_count=False):
211
221
return 'char ***'
212
222
213
223
224
+ @Type .add_type ('STRING_ARRAY' )
225
+ class TypeStringArray (Type ):
226
+
227
+ def type_text (self , enable_count = False ):
228
+ return 'char **'
229
+
230
+ def parameter (self , enable_count = False , ** kwargs ):
231
+ return f'char *{ self .name } []'
232
+
233
+
214
234
@Type .add_type ('DATATYPE' , abi_type = ['ompi' ])
215
235
class TypeDatatype (Type ):
216
236
@@ -585,6 +605,28 @@ def type_text(self, enable_count=False):
585
605
return f'{ type_name } *'
586
606
587
607
608
+ @Type .add_type ('INFO_ARRAY' , abi_type = ['ompi' ])
609
+ class TypeInfoArray (Type ):
610
+
611
+ def type_text (self , enable_count = False ):
612
+ return 'const MPI_Info *'
613
+
614
+ def parameter (self , enable_count = False , ** kwargs ):
615
+ return f'const MPI_Info { self .name } []'
616
+
617
+
618
+ @Type .add_type ('INFO_ARRAY' , abi_type = ['standard' ])
619
+ class TypeInfoArray (Type ):
620
+
621
+ def type_text (self , enable_count = False ):
622
+ type_name = self .mangle_name ('MPI_Info' )
623
+ return f'const { type_name } *'
624
+
625
+ def parameter (self , enable_count = False , ** kwargs ):
626
+ type_name = self .mangle_name ('MPI_Info' )
627
+ return f'const { type_name } { self .name } []'
628
+
629
+
588
630
@Type .add_type ('FILE' , abi_type = ['ompi' ])
589
631
class TypeFile (Type ):
590
632
0 commit comments