ObjFW
Loading...
Searching...
No Matches
Classes | Typedefs
OFMapTable.h File Reference
import "OFObject.h"
import "OFEnumerator.h"

Go to the source code of this file.

Classes

struct  OFMapTableFunctions
 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(^ OFMapTableEnumerationBlock) (void *key, void *object, bool *stop)
 A block for enumerating an OFMapTable.
 
typedef void *(^ OFMapTableReplaceBlock) (void *key, void *object)
 A block for replacing objects in an OFMapTable.
 

Typedef Documentation

◆ OFMapTableEnumerationBlock

typedef void(^ OFMapTableEnumerationBlock) (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

◆ OFMapTableReplaceBlock

typedef void *(^ OFMapTableReplaceBlock) (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