Overview
Comment: | OFEnumerator: Make allObjects a method
allObjects is mutating the state of the enumerator, so should not be a |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
003c44826932079720742e4d6c95f8a5 |
User & Date: | js on 2018-11-17 22:53:51 |
Other Links: | manifest | tags |
Context
2018-11-17
| ||
22:59 | Various minor style improvements check-in: b090b5ce92 user: js tags: trunk | |
22:53 | OFEnumerator: Make allObjects a method check-in: 003c448269 user: js tags: trunk | |
22:46 | Improve property name consistency check-in: 4ec7e46c8a user: js tags: trunk | |
Changes
Modified src/OFEnumerator.h from [d92879f5f9] to [1cb50952e0].
︙ | ︙ | |||
42 43 44 45 46 47 48 | * * @brief A class which provides methods to enumerate through collections. */ @interface OFEnumerator OF_GENERIC(ObjectType): OFObject #if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN) # define ObjectType id #endif | < < < < < > > > > > > > | 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | * * @brief A class which provides methods to enumerate through collections. */ @interface OFEnumerator OF_GENERIC(ObjectType): OFObject #if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN) # define ObjectType id #endif /*! * @brief Returns the next object or `nil` if there is none left. * * @return The next object or `nil` if there is none left */ - (nullable ObjectType)nextObject; /*! * @brief Returns an array of all remaining objects in the collection. * * @return An array of all remaining objects in the collection. */ - (OFArray OF_GENERIC(ObjectType) *)allObjects; /*! * @brief Resets the enumerator, so the next call to nextObject returns the * first object again. */ - (void)reset; #if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN) # undef ObjectType |
︙ | ︙ |