13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#import "OFObject.h"
@class OFEnumerator;
/*!
* @brief A protocol for getting an enumerator for the object.
*/
@protocol OFEnumerating
/*!
* @brief Returns an OFEnumerator to enumerate through all objects of the
|
>
|
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#import "OFObject.h"
@class OFEnumerator;
@class OFArray;
/*!
* @brief A protocol for getting an enumerator for the object.
*/
@protocol OFEnumerating
/*!
* @brief Returns an OFEnumerator to enumerate through all objects of the
|
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
/*!
* @brief Returns the next object.
*
* @return The next object
*/
- (id)nextObject;
/*!
* @brief Resets the enumerator, so the next call to nextObject returns the
* first object again.
*/
- (void)reset;
@end
|
>
>
>
>
>
>
>
|
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
/*!
* @brief Returns the next object.
*
* @return The next object
*/
- (id)nextObject;
/*!
* @brief Returns an array of all remaining objects in the collection.
*
* @return An array of all remaining objects in the collection
*/
- (OFArray*)allObjects;
/*!
* @brief Resets the enumerator, so the next call to nextObject returns the
* first object again.
*/
- (void)reset;
@end
|