ObjFW
Public Member Functions
<OFFastEnumeration> Protocol Reference

A protocol for fast enumeration. More...

#import <OFEnumerator.h>

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

List of all members.

Public Member Functions

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

Detailed Description

A protocol for fast enumeration.

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


Member Function Documentation

- (int) countByEnumeratingWithState: (of_fast_enumeration_state_t *)  state
objects: (id *)  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:
 All Classes Functions Variables Properties