@@ -88,6 +88,7 @@ end function hasher_fun
88
88
89
89
module procedure get_char_key, &
90
90
get_int8_key, &
91
+ get_int32_key, &
91
92
get_other
92
93
93
94
end interface get
@@ -278,6 +279,21 @@ subroutine get_int8_key( key, value )
278
279
end subroutine get_int8_key
279
280
280
281
282
+ subroutine get_int32_key ( key , value )
283
+ ! ! Version: Experimental
284
+ ! !
285
+ ! ! Gets the contents of the key as an INTEGER(INT8) vector
286
+ ! ! Arguments:
287
+ ! ! key - the input key
288
+ ! ! value - the contents of key mapped to an INTEGER(INT32) vector
289
+ type (key_type), intent (in ) :: key
290
+ integer (int32), allocatable , intent (out ) :: value(:)
291
+
292
+ value = transfer ( key % value, value )
293
+
294
+ end subroutine get_int8_key
295
+
296
+
281
297
subroutine set_char_key ( key , value )
282
298
! ! Version: Experimental
283
299
! !
@@ -309,21 +325,6 @@ subroutine set_other( other, value )
309
325
end subroutine set_other
310
326
311
327
312
- subroutine set_int32_key ( key , value )
313
- ! ! Version: Experimental
314
- ! !
315
- ! ! Sets the contents of the key from an INTEGER(INT8) vector
316
- ! ! Arguments:
317
- ! ! key - the output key
318
- ! ! value - the input INTEGER(INT32) vector
319
- type (key_type), intent (out ) :: key
320
- integer (int32), intent (in ) :: value(:)
321
-
322
- key % value = transfer (value, key % value)
323
-
324
- end subroutine set_int32_key
325
-
326
-
327
328
subroutine set_int8_key ( key , value )
328
329
! ! Version: Experimental
329
330
! !
@@ -339,6 +340,21 @@ subroutine set_int8_key( key, value )
339
340
end subroutine set_int8_key
340
341
341
342
343
+ subroutine set_int32_key ( key , value )
344
+ ! ! Version: Experimental
345
+ ! !
346
+ ! ! Sets the contents of the key from an INTEGER(INT8) vector
347
+ ! ! Arguments:
348
+ ! ! key - the output key
349
+ ! ! value - the input INTEGER(INT32) vector
350
+ type (key_type), intent (out ) :: key
351
+ integer (int32), intent (in ) :: value(:)
352
+
353
+ key % value = transfer (value, key % value)
354
+
355
+ end subroutine set_int32_key
356
+
357
+
342
358
pure function fnv_1_hasher ( key )
343
359
! ! Version: Experimental
344
360
! !
0 commit comments