@@ -24,12 +24,10 @@ module stdlib_hashmap_wrappers
2424! ! Public procedures
2525 public :: &
2626 copy_key, &
27- copy_other, &
2827 fibonacci_hash, &
2928 fnv_1_hasher, &
3029 fnv_1a_hasher, &
3130 free_key, &
32- free_other, &
3331 get, &
3432 hasher_fun, &
3533 operator (==), &
@@ -40,8 +38,7 @@ module stdlib_hashmap_wrappers
4038
4139! ! Public types
4240 public :: &
43- key_type, &
44- other_type
41+ key_type
4542
4643! ! Public integers
4744 public :: &
@@ -76,20 +73,12 @@ pure function hasher_fun( key ) result(hash_value)
7673 end function hasher_fun
7774 end interface
7875
79- type :: other_type
80- ! ! Version: Experimental
81- ! !
82- ! ! A wrapper type for the other data's true type
83- ! private
84- class(* ), allocatable :: value
85- end type other_type
86-
76+
8777 interface get
8878
8979 module procedure get_char_key, &
9080 get_int8_key, &
91- get_int32_key, &
92- get_other
81+ get_int32_key
9382
9483 end interface get
9584
@@ -102,8 +91,7 @@ end function hasher_fun
10291
10392 module procedure set_char_key, &
10493 set_int8_key, &
105- set_int32_key, &
106- set_other
94+ set_int32_key
10795
10896 end interface set
10997
@@ -127,23 +115,6 @@ pure subroutine copy_key( old_key, new_key )
127115 end subroutine copy_key
128116
129117
130- subroutine copy_other ( other_in , other_out )
131- ! ! Version: Experimental
132- ! !
133- ! ! Copies the other data, other_in, to the variable, other_out
134- ! ! ([Specifications](../page/specs/stdlib_hashmaps.html#copy_other-returns-a-copy-of-the-other-data))
135- ! !
136- ! ! Arguments:
137- ! ! other_in - the input data
138- ! ! other_out - the output data
139- type (other_type), intent (in ) :: other_in
140- type (other_type), intent (out ) :: other_out
141-
142- allocate (other_out % value, source = other_in % value )
143-
144- end subroutine copy_other
145-
146-
147118 function equal_keys ( key1 , key2 ) result(test) ! Chase's tester
148119! ! Version: Experimental
149120! !
@@ -187,21 +158,6 @@ subroutine free_key( key )
187158 end subroutine free_key
188159
189160
190- subroutine free_other ( other )
191- ! ! Version: Experimental
192- ! !
193- ! ! Frees the memory in the other data
194- ! ! ([Specifications](../page/specs/stdlib_hashmaps.html#free_other-frees-the-memory-associated-with-other-data))
195- ! !
196- ! ! Arguments:
197- ! ! other - the other data
198- type (other_type), intent (inout ) :: other
199-
200- if ( allocated ( other % value) ) deallocate ( other % value )
201-
202- end subroutine free_other
203-
204-
205161 subroutine get_char_key ( key , value )
206162! ! Version: Experimental
207163! !
@@ -249,20 +205,6 @@ subroutine get_char_key( key, value )
249205
250206 end subroutine get_char_key
251207
252- subroutine get_other ( other , value )
253- ! ! Version: Experimental
254- ! !
255- ! ! Gets the contents of the other as a CLASS(*) string
256- ! ! Arguments:
257- ! ! other - the input other data
258- ! ! value - the contents of other mapped to a CLASS(*) variable
259- type (other_type), intent (in ) :: other
260- class(* ), allocatable , intent (out ) :: value
261-
262- allocate (value, source= other % value)
263-
264- end subroutine get_other
265-
266208
267209 subroutine get_int8_key ( key , value )
268210! ! Version: Experimental
@@ -310,21 +252,6 @@ subroutine set_char_key( key, value )
310252 end subroutine set_char_key
311253
312254
313- subroutine set_other ( other , value )
314- ! ! Version: Experimental
315- ! !
316- ! ! Sets the contents of the other data from a CLASS(*) variable
317- ! ! Arguments:
318- ! ! other - the output other data
319- ! ! value - the input CLASS(*) variable
320- type (other_type), intent (out ) :: other
321- class(* ), intent (in ) :: value
322-
323- allocate (other % value, source= value)
324-
325- end subroutine set_other
326-
327-
328255 subroutine set_int8_key ( key , value )
329256! ! Version: Experimental
330257! !
0 commit comments