ObjFW
Instance Methods | List of all members
<OFFastEnumeration> Protocol Reference

A protocol for fast enumeration. More...

#import <ObjFW/OFEnumerator.h>

Inheritance diagram for <OFFastEnumeration>:
<OFCollection> OFMapTable OFArray OFDictionary OFList OFSet OFMutableArray OFMutableDictionary OFSortedList OFMutableSet OFCountedSet

Instance Methods

(int) - countByEnumeratingWithState:objects:count:
 A method which is called by the code produced by the compiler when doing a fast enumeration. More...
 

Detailed Description

A protocol for fast enumeration.

The OFFastEnumeration protocol needs to be implemented by all classes supporting fast enumeration.

Method Documentation

- (int) countByEnumeratingWithState: (of_fast_enumeration_state_t *)  state
objects: (id __unsafe_unretained OF_NONNULL *OF_NONNULL)  objects
count: (int)  count 

A method which is called by the code produced by the compiler when doing a fast enumeration.

Parameters
stateContext information for the enumeration
objectsA pointer to an array where to put the objects
countThe number of objects that can be stored at objects
Returns
The number of objects returned in objects or 0 when the enumeration finished.

The documentation for this protocol was generated from the following file: