22OF_ASSUME_NONNULL_BEGIN
33#if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN)
43+ (instancetype)setWithCapacity: (
size_t)capacity;
50- (instancetype)
init OF_DESIGNATED_INITIALIZER;
59- (instancetype)initWithCapacity: (
size_t)capacity OF_DESIGNATED_INITIALIZER;
66- (void)addObject: (ObjectType)object;
73- (void)removeObject: (ObjectType)object;
80- (void)minusSet: (
OFSet OF_GENERIC(ObjectType) *)set;
88- (void)intersectSet: (
OFSet OF_GENERIC(ObjectType) *)set;
95- (void)unionSet: (
OFSet OF_GENERIC(ObjectType) *)set;
106#if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN)
An abstract class for a mutable unordered set of unique objects.
Definition OFMutableSet.h:33
void removeAllObjects()
Removes all objects from the set.
Definition OFMutableSet.m:191
instancetype init()
Initializes an already allocated OFMutableSet to be empty.
Definition OFMutableSet.m:114
void makeImmutable()
Converts the mutable set to an immutable set.
Definition OFMutableSet.m:202
An abstract class for an unordered set of unique objects.
Definition OFSet.h:69