Overview
Comment: | Remove -[containsObjectIdenticalTo:] from OFCopying.
It is still implemented by all classes implementing OFCollection so far, This is required to add OFCountedSet later, which can't support it. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
8ff55bf218d58db0795fd804464b9980 |
User & Date: | js on 2011-07-17 16:38:47 |
Other Links: | manifest | tags |
Context
2011-07-18
| ||
03:01 | Fix reference counting for blocks. check-in: dbd79d0747 user: js tags: trunk | |
2011-07-17
| ||
16:38 | Remove -[containsObjectIdenticalTo:] from OFCopying. check-in: 8ff55bf218 user: js tags: trunk | |
16:25 | Update PLATFORMS. check-in: 938574d7fe user: js tags: trunk | |
Changes
Modified src/OFArray.h from [a17707039e] to [80d0f51e0b].
︙ | ︙ | |||
177 178 179 180 181 182 183 184 185 186 187 188 189 190 | * * \param object The object whose index is returned * \return The index of the first object that has the same aaddress as * the specified object or OF_INVALID_INDEX if it was not found */ - (size_t)indexOfObjectIdenticalTo: (id)object; /** * \brief Returns the first object of the array or nil. * * The returned object is <i>not</i> retained and autoreleased for performance * reasons! * * \return The first object of the array or nil | > > > > > > > > > > | 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 | * * \param object The object whose index is returned * \return The index of the first object that has the same aaddress as * the specified object or OF_INVALID_INDEX if it was not found */ - (size_t)indexOfObjectIdenticalTo: (id)object; /** * \brief Checks whether the array contains an object with the specified * address. * * \param object The object which is checked for being in the array * \return A boolean whether the array contains an object with the specified * address. */ - (BOOL)containsObjectIdenticalTo: (id)object; /** * \brief Returns the first object of the array or nil. * * The returned object is <i>not</i> retained and autoreleased for performance * reasons! * * \return The first object of the array or nil |
︙ | ︙ |
Modified src/OFCollection.h from [ee176f4168] to [5cef34a803].
︙ | ︙ | |||
31 32 33 34 35 36 37 | */ - (size_t)count; /** * \brief Checks whether the collection contains an object equal to the * specified object. * | | < < < < < < < < < < | 31 32 33 34 35 36 37 38 39 40 41 42 | */ - (size_t)count; /** * \brief Checks whether the collection contains an object equal to the * specified object. * * \param object The object which is checked for being in the collection * \return A boolean whether the collection contains the specified object */ - (BOOL)containsObject: (id)object; @end |
Modified src/OFDictionary.h from [7b779a5fa3] to [8a0c697234].
︙ | ︙ | |||
159 160 161 162 163 164 165 166 167 168 169 170 171 172 | * reasons! * * \param key The key whose object should be returned * \return The object for the given key or nil if the key was not found */ - (id)objectForKey: (id <OFCopying>)key; /** * \brief Returns an OFEnumerator to enumerate through the dictionary's keys. * * \return An OFEnumerator to enumerate through the dictionary's keys */ - (OFEnumerator*)keyEnumerator; | > > > > > > > > > > | 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 | * reasons! * * \param key The key whose object should be returned * \return The object for the given key or nil if the key was not found */ - (id)objectForKey: (id <OFCopying>)key; /** * \brief Checks whether the dictionary contains an object with the specified * address. * * \param object The object which is checked for being in the dictionary * \return A boolean whether the dictionary contains an object with the * specified address. */ - (BOOL)containsObjectIdenticalTo: (id)object; /** * \brief Returns an OFEnumerator to enumerate through the dictionary's keys. * * \return An OFEnumerator to enumerate through the dictionary's keys */ - (OFEnumerator*)keyEnumerator; |
︙ | ︙ |
Modified src/OFDictionary.m from [b3a725a15f] to [58ee7d242e].
︙ | ︙ | |||
598 599 600 601 602 603 604 | ![[dict objectForKey: data[i]->key] isEqual: data[i]->object]) return NO; return YES; } | | | | | | 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 | ![[dict objectForKey: data[i]->key] isEqual: data[i]->object]) return NO; return YES; } - (BOOL)containsObject: (id)object { uint32_t i; if (count == 0) return NO; for (i = 0; i < size; i++) if (data[i] != NULL && data[i] != DELETED && [data[i]->object isEqual: object]) return YES; return NO; } - (BOOL)containsObjectIdenticalTo: (id)object { uint32_t i; if (count == 0) return NO; for (i = 0; i < size; i++) if (data[i] != NULL && data[i] != DELETED && data[i]->object == object) return YES; return NO; } - (int)countByEnumeratingWithState: (of_fast_enumeration_state_t*)state objects: (id*)objects |
︙ | ︙ |
Modified src/OFList.h from [7e6619efad] to [c4c264f1d5].
︙ | ︙ | |||
122 123 124 125 126 127 128 129 130 131 132 133 134 135 | /** * \brief Removes the object with the specified list object from the list. * * \param listObject The list object returned by append / prepend */ - (void)removeListObject: (of_list_object_t*)listObject; /** * \brief Returns the first object of the list or nil. * * The returned object is <i>not</i> retained and autoreleased for performance * reasons! * * \return The first object of the list or nil | > > > > > > > > > | 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 | /** * \brief Removes the object with the specified list object from the list. * * \param listObject The list object returned by append / prepend */ - (void)removeListObject: (of_list_object_t*)listObject; /** * \brief Checks whether the list contains an object with the specified address. * * \param object The object which is checked for being in the list * \return A boolean whether the list contains an object with the specified * address. */ - (BOOL)containsObjectIdenticalTo: (id)object; /** * \brief Returns the first object of the list or nil. * * The returned object is <i>not</i> retained and autoreleased for performance * reasons! * * \return The first object of the list or nil |
︙ | ︙ |