IApplicator

The classes IApplicator and IConstantApplicator define the interface for applicator objects. The redefinition of the function applyTo() defines the actions that are performed with the version of allElementsDo() that takes an applicator argument. Iteration stops when applyTo() returns false.


IApplicator - Member Functions and Data by Group

Apply To

The applyTo function.


[view class]
applyTo
public:
virtual bool applyTo(Element&) = 0
This functions applies a series of specified statements or a function to all elements of a collection for which you use the applicator. For example, myCollection.allElementsDo(myApplicator); causes the code in the applyTo() function that you code for your applicator object myApplicator to be applied to all elements of the collection myCollection.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


IApplicator - Inherited Member Functions and Data

Inherited Public Functions

Inherited Public Data

Inherited Protected Functions

Inherited Protected Data