An abstract class for an unordered set of unique objects.
More...
#import <OFSet.h>
List of all members.
Public Member Functions |
(id) | - initWithSet: |
| Initializes an already allocated set with the specified set.
|
(id) | - initWithArray: |
| Initializes an already allocated set with the specified array.
|
(id) | - initWithObjects: |
| Initializes an already allocated set with the specified objects.
|
(id) | - initWithObject:arguments: |
| Initializes an already allocated set with the specified object and va_list.
|
(BOOL) | - isSubsetOfSet: |
| Returns whether the receiver is a subset of the specified set.
|
(BOOL) | - intersectsSet: |
| Returns whether the receiver and the specified set have at least one object in common.
|
(void) | - enumerateObjectsUsingBlock: |
| Executes a block for each object in the set.
|
(OFSet *) | - filteredSetUsingBlock: |
| Creates a new set, only containing the objects for which the block returns YES.
|
Static Public Member Functions |
(id) | + set |
| Creates a new set.
|
(id) | + setWithSet: |
| Creates a new set with the specified set.
|
(id) | + setWithArray: |
| Creates a new set with the specified array.
|
(id) | + setWithObjects: |
| Creates a new set with the specified objects.
|
Detailed Description
An abstract class for an unordered set of unique objects.
Member Function Documentation
- (void) enumerateObjectsUsingBlock: |
|
(of_set_enumeration_block_t) |
block |
|
Executes a block for each object in the set.
- Parameters:
-
block | The block to execute for each object in the set |
- (OFSet *) filteredSetUsingBlock: |
|
(of_set_filter_block_t) |
block |
|
Creates a new set, only containing the objects for which the block returns YES.
- Parameters:
-
block | A block which determines if the object should be in the new set |
- Returns:
- A new, autoreleased OFSet
- (id) initWithArray: |
|
(OFArray*) |
array |
|
Initializes an already allocated set with the specified array.
- Parameters:
-
array | The array to initialize the set with |
- Returns:
- An initialized set with the specified array
- (id) initWithObject: |
|
(id) |
firstObject |
arguments: |
|
(va_list) |
arguments |
|
|
| |
Initializes an already allocated set with the specified object and va_list.
- Parameters:
-
firstObject | The first object for the set |
arguments | A va_list with the other objects |
- Returns:
- An initialized set with the specified object and va_list
- (id) initWithObjects: |
|
(id) |
firstObject |
, |
|
|
... |
|
|
| |
Initializes an already allocated set with the specified objects.
- Parameters:
-
firstObject | The first object for the set |
- Returns:
- An initialized set with the specified objects
- (id) initWithSet: |
|
(OFSet*) |
set |
|
Initializes an already allocated set with the specified set.
- Parameters:
-
set | The set to initialize the set with |
- Returns:
- An initialized set with the specified set
- (BOOL) intersectsSet: |
|
(OFSet*) |
set |
|
Returns whether the receiver and the specified set have at least one object in common.
- Returns:
- Whether the receiver and the specified set have at least one object in common
- (BOOL) isSubsetOfSet: |
|
(OFSet*) |
set |
|
Returns whether the receiver is a subset of the specified set.
- Returns:
- Whether the receiver is a subset of the specified set
Creates a new set.
- Returns:
- A new, autoreleased set
+ (id) setWithArray: |
|
(OFArray*) |
array |
|
Creates a new set with the specified array.
- Parameters:
-
array | The array to initialize the set with |
- Returns:
- A new, autoreleased set with the specified array
+ (id) setWithObjects: |
|
(id) |
firstObject |
, |
|
|
... |
|
|
| |
Creates a new set with the specified objects.
- Parameters:
-
firstObject | The first object for the set |
- Returns:
- A new, autoreleased set with the specified objects
+ (id) setWithSet: |
|
(OFSet*) |
set |
|
Creates a new set with the specified set.
- Parameters:
-
set | The set to initialize the set with |
- Returns:
- A new, autoreleased set with the specified set
The documentation for this class was generated from the following files: