@@ -18,10 +18,12 @@ @class OFEnumerator; @class OFArray; /*! + * @protocol OFEnumerating OFEnumerator.h ObjFW/OFEnumerator.h + * * @brief A protocol for getting an enumerator for the object. */ @protocol OFEnumerating /*! * @brief Returns an OFEnumerator to enumerate through all objects of the @@ -31,10 +33,12 @@ */ - (OFEnumerator*)objectEnumerator; @end /*! + * @class OFEnumerator OFEnumerator.h ObjFW/OFEnumerator.h + * * @brief A class which provides methods to enumerate through collections. */ @interface OFEnumerator: OFObject /*! * @brief Returns the next object. @@ -64,13 +68,15 @@ * this as well. */ #define of_fast_enumeration_state_t NSFastEnumerationState #ifndef NSINTEGER_DEFINED /*! + * @struct of_fast_enumeration_state_t OFEnumerator.h ObjFW/OFEnumerator.h + * * @brief State information for fast enumerations. */ -typedef struct of_fast_enumeration_state_t { +typedef struct { /// Arbitrary state information for the enumeration unsigned long state; /// Pointer to a C array of objects to return __unsafe_unretained id *itemsPtr; /// Arbitrary state information to detect mutations @@ -79,10 +85,12 @@ unsigned long extra[5]; } of_fast_enumeration_state_t; #endif /*! + * @protocol OFFastEnumeration OFEnumerator.h ObjFW/OFEnumerator.h + * * @brief A protocol for fast enumeration. * * The OFFastEnumeration protocol needs to be implemented by all classes * supporting fast enumeration. */