Overview
| Comment: | Add a warning about mutating objects in a set. |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
7da3f6be091da9b0a1050c5ff8bc739b |
| User & Date: | js on 2012-12-02 16:43:39 |
| Other Links: | manifest | tags |
Context
|
2012-12-02
| ||
| 16:43 | OFMethod: Add one more NULL check. (check-in: ab13f1d324 user: js tags: trunk) | |
| 16:43 | Add a warning about mutating objects in a set. (check-in: 7da3f6be09 user: js tags: trunk) | |
|
2012-12-01
| ||
| 18:08 | OFDictionary_hashtable: Store in OFMapTable. (check-in: 1abbb97747 user: js tags: trunk) | |
Changes
Modified src/OFSet.h from [45f4477f95] to [2a615a7348].
| ︙ | |||
32 33 34 35 36 37 38 39 40 41 42 43 44 45 | 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | + + + |
#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 abstract class for an unordered set of unique objects.
*
* @warning Do not mutate objects that are in a set! Changing the hash of
* objects in a set breaks the internal representation of the set!
*/
@interface OFSet: OFObject <OFCollection, OFCopying, OFMutableCopying,
OFSerialization>
/*!
* @brief Creates a new set.
*
* @return A new, autoreleased set
|
| ︙ |