ADC Home > Reference Library > Reference > Darwin > Kernel Framework Reference

 


OSIterator

Inherits from:
Declared In:

Overview

Abstract super class for iterator classes.

Discussion

OSIterator is an abstract super class providing a consistent set of APIs for subclasses.



Functions

getNextObject

Returns a reference to the current object in the collection and advances the interator to the next object (a pure virtual member function to be overridden by the subclass).

isValid

Indicates a modification was made to the collection (a pure virtual member function to be overridden by the subclass).

reset

Resets the iterator to the beginning of the collection (a pure virtual member function to be overridden by the subclass).


getNextObject


Returns a reference to the current object in the collection and advances the interator to the next object (a pure virtual member function to be overridden by the subclass).

public

virtual OSObject *getNextObject() = 0;


isValid


Indicates a modification was made to the collection (a pure virtual member function to be overridden by the subclass).

public

virtual bool isValid() = 0;


reset


Resets the iterator to the beginning of the collection (a pure virtual member function to be overridden by the subclass).

public

virtual void reset() = 0;


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.

 

Last Updated: 2008-12-19