MONC
|
Puts a generic key-value pair into the map. More...
Private Member Functions | |
subroutine | map_put_generic (specificmap, key, data, memory_allocation_automatic) |
Puts a specific key-value pair into the map. More... | |
subroutine | hashmap_put_generic (specificmap, key, data, memory_allocation_automatic) |
Puts a specific key-value pair into the hashmap. More... | |
Puts a generic key-value pair into the map.
If the key is not already held in the map then the key-value pair will be added, otherwise the existing key-value pair will be modified to hold this updated value (keys must be unique) This has a time complexity of O(n) due to key look up
collection | The specific map involved |
key | The key to place in the map |
value | Pointer to the generic data value to place in the map |
memory_allocation_automatic | Whether the collections API should manage the freeing of memory |
Definition at line 305 of file collections.F90.
|
private |
Puts a specific key-value pair into the hashmap.
If the key is not already held in the hashmap then the key-value pair will be added, otherwise the existing key-value pair will be modified to hold this updated value (keys must be unique). This uses a hashing function for performance Do not call directly from external module, this is called via the appropriate interface
specificmap | The specific map involved |
key | The key to place in the map |
data | Pointer to the generic data value to place in the map |
memory_allocation_automatic | Whether the collections API should manage the freeing of memory |
Definition at line 1364 of file collections.F90.
|
private |
Puts a specific key-value pair into the map.
If the key is not already held in the map then the key-value pair will be added, otherwise the existing key-value pair will be modified to hold this updated value (keys must be unique) Do not call directly from external module, this is called via the appropriate interface
specificmap | The specific map involved |
key | The key to place in the map |
data | Pointer to the generic data value to place in the map |
memory_allocation_automatic | Whether the collections API should manage the freeing of memory |
Definition at line 725 of file collections.F90.