ObjFW
Classes | Typedefs
OFMapTable.h File Reference
#import "OFObject.h"
#import "OFEnumerator.h"

Go to the source code of this file.

Classes

struct  of_map_table_functions_t
 A struct describing the functions to be used by the map table. More...
 
class  OFMapTable
 A class similar to OFDictionary, but providing more options how keys and values should be retained, released, compared and hashed. More...
 
class  OFMapTableEnumerator
 A class which provides methods to enumerate through an OFMapTable's keys or values. More...
 

Typedefs

typedef void(^ of_map_table_enumeration_block_t) (void *key, void *value, bool *stop)
 A block for enumerating an OFMapTable. More...
 
typedef void *OF_NONNULL(^ of_map_table_replace_block_t) (void *key, void *value)
 A block for replacing values in an OFMapTable. More...
 

Typedef Documentation

typedef void(^ of_map_table_enumeration_block_t) (void *key, void *value, bool *stop)

A block for enumerating an OFMapTable.

Parameters
keyThe current key
valueThe current value
stopA pointer to a variable that can be set to true to stop the enumeration
typedef void* OF_NONNULL(^ of_map_table_replace_block_t) (void *key, void *value)

A block for replacing values in an OFMapTable.

Parameters
keyThe key of the value to replace
valueThe value to replace
Returns
The value to replace the value with