17 #import "OFEnumerator.h"
19 OF_ASSUME_NONNULL_BEGIN
72 OF_SUBCLASSING_RESTRICTED
76 struct of_map_table_bucket *_Nonnull *_Nullable _buckets;
77 unsigned long _count, _capacity;
78 unsigned char _rotate;
79 unsigned long _mutations;
95 @property (readonly, nonatomic)
size_t count;
121 capacity: (
size_t)capacity;
123 - (instancetype)init OF_UNAVAILABLE;
148 capacity: (
size_t)capacity
149 OF_DESIGNATED_INITIALIZER;
157 - (nullable
void *)objectForKey: (
void *)key;
165 - (void)setObject: (nullable
void *)object forKey: (nullable
void *)key;
172 - (void)removeObjectForKey: (nullable
void *)key;
177 - (void)removeAllObjects;
186 - (bool)containsObject: (nullable
void *)object;
196 - (bool)containsObjectIdenticalTo: (nullable
void *)object;
214 #ifdef OF_HAVE_BLOCKS
220 - (void)enumerateKeysAndObjectsUsingBlock:
241 struct of_map_table_bucket *_Nonnull *_Nullable _buckets;
242 unsigned long _capacity, _mutations, *_Nullable _mutationsPtr;
243 unsigned long _position;
246 - (instancetype)init OF_UNAVAILABLE;
254 - (
void *_Nullable *_Nullable)nextObject;
257 OF_ASSUME_NONNULL_END
void *_Nullable(^ of_map_table_replace_block_t)(void *_Nullable key, void *_Nullable object)
A block for replacing objects in an OFMapTable.
Definition: OFMapTable.h:60
void(^ of_map_table_enumeration_block_t)(void *_Nullable key, void *_Nullable object, bool *stop)
A block for enumerating an OFMapTable.
Definition: OFMapTable.h:50
A class which provides methods to enumerate through an OFMapTable's keys or objects.
Definition: OFMapTable.h:240
A class similar to OFDictionary, but providing more options how keys and objects should be retained,...
Definition: OFMapTable.h:75
The root class for all other classes inside ObjFW.
Definition: OFObject.h:520
A protocol for the creation of copies.
Definition: OFObject.h:1187
A protocol for fast enumeration.
Definition: OFEnumerator.h:71
A struct describing the functions to be used by the map table.
Definition: OFMapTable.h:28
void *_Nullable(* _Nullable)(void *_Nullable object)
Definition: OFMapTable.h:30