15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
*/
#include <stdarg.h>
#import "OFObject.h"
#import "OFCollection.h"
@class OFMutableDictionary_hashtable;
@class OFArray;
#ifdef OF_HAVE_BLOCKS
typedef void (^of_set_enumeration_block_t)(id object, BOOL *stop);
typedef BOOL (^of_set_filter_block_t)(id object);
#endif
/**
* \brief An unordered set of unique objects.
*/
@interface OFSet: OFObject <OFCollection, OFCopying, OFMutableCopying>
{
OFMutableDictionary_hashtable *dictionary;
}
/**
* \brief Returns a new, autoreleased set.
*
* \return A new, autoreleased set
*/
+ set;
|
<
<
<
<
<
|
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
*/
#include <stdarg.h>
#import "OFObject.h"
#import "OFCollection.h"
@class OFArray;
#ifdef OF_HAVE_BLOCKS
typedef void (^of_set_enumeration_block_t)(id object, BOOL *stop);
typedef BOOL (^of_set_filter_block_t)(id object);
#endif
/**
* \brief An unordered set of unique objects.
*/
@interface OFSet: OFObject <OFCollection, OFCopying, OFMutableCopying>
/**
* \brief Returns a new, autoreleased set.
*
* \return A new, autoreleased set
*/
+ set;
|
131
132
133
134
135
136
137
138
139
|
*
* \param block A block which determines if the object should be in the new set
* \return A new, autoreleased OFSet
*/
- (OFSet*)filteredSetUsingBlock: (of_set_filter_block_t)block;
#endif
@end
#import "OFMutableSet.h"
|
>
>
>
|
126
127
128
129
130
131
132
133
134
135
136
137
|
*
* \param block A block which determines if the object should be in the new set
* \return A new, autoreleased OFSet
*/
- (OFSet*)filteredSetUsingBlock: (of_set_filter_block_t)block;
#endif
@end
@interface OFSet_placeholder: OFSet
@end
#import "OFMutableSet.h"
|