Expand description
Enumerator types for Foundation.
Corresponds to Foundation/NSEnumerator.hpp.
§C++ Equivalent
namespace NS {
struct FastEnumerationState {
unsigned long state;
Object** itemsPtr;
unsigned long* mutationsPtr;
unsigned long extra[5];
} _NS_PACKED;
class FastEnumeration : public Referencing<FastEnumeration> {
public:
NS::UInteger countByEnumerating(FastEnumerationState* pState, Object** pBuffer, NS::UInteger len);
};
template <class _ObjectType>
class Enumerator : public Referencing<Enumerator<_ObjectType>, FastEnumeration> {
public:
_ObjectType* nextObject();
class Array* allObjects();
};
}Structs§
- Enumerator
- An enumerator for a collection.
- Fast
Enumeration - An object that supports fast enumeration.
- Fast
Enumeration State - Fast enumeration state structure.