12
13
14
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
* Public License, either version 2 or 3, which can be found in the file
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#import "OFSet.h"
/**
* \brief An abstract class for a mutable unordered set of unique objects.
*/
@interface OFMutableSet: OFSet
/**
* \brief Adds the specified object to the set.
*
* \param object The object to add to the set
*/
- (void)addObject: (id)object;
/**
* \brief Removes the specified object from the set.
*
* \param object The object to remove from the set
*/
- (void)removeObject: (id)object;
/**
* \brief Removes all objects from the receiver that are in the specified set.
*
* \param set The set whose objects will be removed from the receiver
*/
- (void)minusSet: (OFSet*)set;
/**
* \brief Removes all objects from the receiver that are not in the specified
* set.
*
* \param set The set to intersect
*/
- (void)intersectSet: (OFSet*)set;
/**
* \brief Creates a union of the receiver and the specified set.
*
* \param set The set to create the union with
*/
- (void)unionSet: (OFSet*)set;
/**
* \brief Converts the mutable set to an immutable set.
*/
- (void)makeImmutable;
@end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12
13
14
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
* Public License, either version 2 or 3, which can be found in the file
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#import "OFSet.h"
/*!
* @brief An abstract class for a mutable unordered set of unique objects.
*/
@interface OFMutableSet: OFSet
/*!
* @brief Adds the specified object to the set.
*
* @param object The object to add to the set
*/
- (void)addObject: (id)object;
/*!
* @brief Removes the specified object from the set.
*
* @param object The object to remove from the set
*/
- (void)removeObject: (id)object;
/*!
* @brief Removes all objects from the receiver that are in the specified set.
*
* @param set The set whose objects will be removed from the receiver
*/
- (void)minusSet: (OFSet*)set;
/*!
* @brief Removes all objects from the receiver that are not in the specified
* set.
*
* @param set The set to intersect
*/
- (void)intersectSet: (OFSet*)set;
/*!
* @brief Creates a union of the receiver and the specified set.
*
* @param set The set to create the union with
*/
- (void)unionSet: (OFSet*)set;
/*!
* @brief Converts the mutable set to an immutable set.
*/
- (void)makeImmutable;
@end
|