The IContainerControl::Iterator class applies a function to the container's objects. To perform a function on the objects of the container, derive a class from IContainerControl::Iterator and implement the behavior of IContainerControl::Iterator::applyTo. Next, call IContainerControl::allObjectsDo with an object of this class. allObjectsDo calls applyTo on each object until one of the following occurs:
Constructors & DestructorYou cannot construct objects of this class because it is an abstract base class.
![]() |
public:
virtual ~Iterator()
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
Iterator()
You can not construct objects of this class because it is an abstract base class.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
Filter BehaviorUse these members apply a behavior to all objects in a container.
![]() |
public:
virtual bool applyTo(IContainerObject* object) = 0
If the iteration is to continue, true is returned. If the iteration is to stop, false is returned.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |