18 OF_ASSUME_NONNULL_BEGIN
29 #if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN)
30 # define ObjectType id
39 + (instancetype)setWithCapacity: (
size_t)capacity;
48 - (instancetype)initWithCapacity: (
size_t)capacity;
55 - (void)addObject: (ObjectType)object;
62 - (void)removeObject: (ObjectType)object;
69 - (void)minusSet: (
OFSet OF_GENERIC(ObjectType) *)set;
77 - (void)intersectSet: (
OFSet OF_GENERIC(ObjectType) *)set;
84 - (void)unionSet: (
OFSet OF_GENERIC(ObjectType) *)set;
95 #if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN)
100 OF_ASSUME_NONNULL_END
An abstract class for a mutable unordered set of unique objects.
Definition: OFMutableSet.h:29
void removeAllObjects()
Removes all objects from the set.
Definition: OFMutableSet.m:197
void makeImmutable()
Converts the mutable set to an immutable set.
Definition: OFMutableSet.m:208
An abstract class for an unordered set of unique objects.
Definition: OFSet.h:66