libcmutils 0.6.5
Multi-platform C99 utility library
Loading...
Searching...
No Matches
CMUTIL_MapPair Struct Reference

Key-value pair for CMUTIL_Map. More...

Data Fields

const char *(* GetKey )(const CMUTIL_MapPair *pair)
 Retrieves the key from a given CMUTIL_MapPair instance.
 
void *(* GetValue )(const CMUTIL_MapPair *pair)
 Retrieves the value from a given CMUTIL_MapPair instance.
 

Detailed Description

Key-value pair for CMUTIL_Map.

Field Documentation

◆ GetKey

const char *(* CMUTIL_MapPair::GetKey) (const CMUTIL_MapPair *pair)

Retrieves the key from a given CMUTIL_MapPair instance.

This function pointer is used to obtain the key associated with a CMUTIL_MapPair object. The key is represented as a constant character string and provides a means to identify the pair in the map structure.

Parameters
pairA pointer to the CMUTIL_MapPair instance from which the key will be retrieved.
Returns
A constant character pointer representing the key associated with the given CMUTIL_MapPair.

◆ GetValue

void *(* CMUTIL_MapPair::GetValue) (const CMUTIL_MapPair *pair)

Retrieves the value from a given CMUTIL_MapPair instance.

This function pointer is used to get the value associated with a CMUTIL_MapPair object. The value is represented as a void pointer and provides the data associated with the pair in the map structure.

Parameters
pairA pointer to the CMUTIL_MapPair instance from which the value will be retrieved.
Returns
A void pointer representing the value associated with the given CMUTIL_MapPair.

The documentation for this struct was generated from the following file: