Mission Base

Program Base Library Functions

int pblMapPutAll

( PblMap* map, PblMap* sourceMap )

Copies all of the mappings from the specified source map to this map.

Documentation

Copies all of the mappings from the specified source map to this map. These mappings will replace any mappings that this map had for any of the keys currently in the specified map.

For hash maps this method has a time complexity of O(M). For tree maps this method has a time complexity of O(M * Log N). With M being the number of elements in the source map and N being the number of elements in the target map.

Parameters:
map - The map to copy the entries to
sourceMap - The map to copy the entries from
Returns:
int rc == 0: Ok.
int rc < 0: An error, see pbl_errno:
PBL_ERROR_CONCURRENT_MODIFICATION - The source map was modified concurrently.
PBL_ERROR_OUT_OF_MEMORY - Out of memory.

Alphabetic index



This page was generated with the help of DOC++.