17 #ifndef __STDC_LIMIT_MACROS
18 # define __STDC_LIMIT_MACROS
20 #ifndef __STDC_CONSTANT_MACROS
21 # define __STDC_CONSTANT_MACROS
27 #import "OFCollection.h"
28 #import "OFSerialization.h"
33 typedef void (^of_set_enumeration_block_t)(
id object, BOOL *stop);
34 typedef BOOL (^of_set_filter_block_t)(
id object);
55 + (instancetype)setWithSet: (
OFSet*)set;
63 + (instancetype)setWithArray: (
OFArray*)array;
71 + (instancetype)setWithObjects: (
id)firstObject, ...;
80 + (instancetype)setWithObjects: (
id const*)objects
89 - initWithSet: (
OFSet*)set;
97 - initWithArray: (
OFArray*)array;
105 - initWithObjects: (
id)firstObject, ...;
114 - initWithObjects: (
id const*)objects
115 count: (
size_t)count;
125 - initWithObject: (
id)firstObject
126 arguments: (va_list)arguments;
133 - (BOOL)isSubsetOfSet: (
OFSet*)set;
142 - (BOOL)intersectsSet: (
OFSet*)set;
144 #ifdef OF_HAVE_BLOCKS
150 - (void)enumerateObjectsUsingBlock: (of_set_enumeration_block_t)block;
159 - (
OFSet*)filteredSetUsingBlock: (of_set_filter_block_t)block;
163 #import "OFMutableSet.h"