18OF_ASSUME_NONNULL_BEGIN
29#if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN)
39+ (instancetype)setWithCapacity: (
size_t)capacity;
46- (instancetype)
init OF_DESIGNATED_INITIALIZER;
55- (instancetype)initWithCapacity: (
size_t)capacity OF_DESIGNATED_INITIALIZER;
62- (void)addObject: (ObjectType)object;
69- (void)removeObject: (ObjectType)object;
76- (void)minusSet: (
OFSet OF_GENERIC(ObjectType) *)set;
84- (void)intersectSet: (
OFSet OF_GENERIC(ObjectType) *)set;
91- (void)unionSet: (
OFSet OF_GENERIC(ObjectType) *)set;
102#if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN)
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:187
instancetype init()
Initializes an already allocated OFMutableSet to be empty.
Definition OFMutableSet.m:110
void makeImmutable()
Converts the mutable set to an immutable set.
Definition OFMutableSet.m:198
An abstract class for an unordered set of unique objects.
Definition OFSet.h:65