![]() |
pl-nk v0.4.5
Plonk|Plink|Plank are a set of cross-platform C/C++ frameworks for audio software development
|
A simple map. More...
Functions | |
| PlankResult | pl_SimpleMap_ContainsKey (PlankSimpleMapRef p, const PlankLL key, PlankB *flag) |
| Determines whether the map already contains a specified key. | |
| PlankResult | pl_SimpleMap_SetKey (PlankSimpleMapRef p, const PlankLL key, PlankP data) |
| Sets a key to associate with a pointer. | |
| PlankResult | pl_SimpleMap_GetKey (PlankSimpleMapRef p, const PlankLL key, PlankP *data) |
| Get a pointer associated with the specified key. | |
| PlankResult | pl_SimpleMap_RemoveKey (PlankSimpleMapRef p, const PlankLL key, PlankP *data) |
| Get a pointer associated with the specified key and remove it from the map. | |
A simple map.
A simple queue.
Data elements are stored against 64-bit integer keys.
| PlankResult pl_SimpleMap_ContainsKey | ( | PlankSimpleMapRef | p, |
| const PlankLL | key, | ||
| PlankB * | flag | ||
| ) |
Determines whether the map already contains a specified key.
| p | The map object. |
| key | The key to use. |
| flag | On return will contain if the map contains the specified key. |
| PlankResult pl_SimpleMap_GetKey | ( | PlankSimpleMapRef | p, |
| const PlankLL | key, | ||
| PlankP * | data | ||
| ) |
Get a pointer associated with the specified key.
| p | The map object. |
| key | The key to use. |
| data | On return will contain the pointer associated with the key (or PLANK_NULL if the map doesn't contain the key. |
| PlankResult pl_SimpleMap_RemoveKey | ( | PlankSimpleMapRef | p, |
| const PlankLL | key, | ||
| PlankP * | data | ||
| ) |
Get a pointer associated with the specified key and remove it from the map.
| p | The map object. |
| key | The key to use. |
| data | On return will contain the pointer associated with the key (or PLANK_NULL if the map doesn't contain the key. It is the caller's resposibility to free this pointer if necessary. |
| PlankResult pl_SimpleMap_SetKey | ( | PlankSimpleMapRef | p, |
| const PlankLL | key, | ||
| PlankP | data | ||
| ) |
Sets a key to associate with a pointer.
If a pointer is already associated with the key and the free function has been set (with pl_SimpleMap_SetFreeElementDataFunction()) then the old pointer will be deallocated before setting the new one.
| p | The map object. |
| key | The key to use. |
| data | The pointer to asscoiate with the key (map be PLANK_NULL). |
1.7.4