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 objects should be retained, released, compared and hashed. More...
 
class  OFMapTableEnumerator
 A class which provides methods to enumerate through an OFMapTable's keys or objects. More...
 

Typedefs

typedef void(^ of_map_table_enumeration_block_t) (void *key, void *object, bool *stop)
 A block for enumerating an OFMapTable. More...
 
typedef void *_Nonnull(^ of_map_table_replace_block_t) (void *key, void *object)
 A block for replacing objects in an OFMapTable. More...
 

Typedef Documentation

◆ of_map_table_enumeration_block_t

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

A block for enumerating an OFMapTable.

Parameters
keyThe current key
objectThe current object
stopA pointer to a variable that can be set to true to stop the enumeration

◆ of_map_table_replace_block_t

typedef void* _Nonnull(^ of_map_table_replace_block_t) (void *key, void *object)

A block for replacing objects in an OFMapTable.

Parameters
keyThe key of the object to replace
objectThe object to replace
Returns
The object to replace the object with