Previous: Exchanging Data Packets in a Multithreaded Program, Up: Miscellaneous Topics [Contents][Index]
The QSMM framework contains the implementation of functionality of STL
You can use the implementation in your C programs to create mapping objects without the need to rewrite the programs in C++, which may substantially increase their complexity.
The behavior of the current implementation differs from the behavior of STL
multimap templates in the following.
qsmm_map_erase, which corresponds to the method
multimaptemplates, may call a key comparison function for the key of a key-value pair being removed and that key must be a valid object. Therefore, when removing a key-value pair from a map or a multimap, the key of the pair must be uninitialized and/or destroyed after calling the function
qsmm_map_erase, not before.
multimaptemplate does not provide storing key-value pairs with the same key in order, in which they were added to a multimap.
Datatypes and functions of the implementation are declared in header file qsmm/map.h, which is installed in a directory for C header files set by the configure script.
|• Creating Maps and Iterators|
|• Operations on Maps|
|• Operations on Iterators|
|• Example of Using a Mapping Object|