FRAMES NO FRAMES

ILORTTIN

public ILORTTIN(ILOTEMPLATECLASS_2, (IloDefaultVisitorI, IloObject, IloContainer), ILOTEMPLATECLASS_2, (IloVisitorI, IloObject, IloContainer), ILOGENTEMPLATE_2, (class IloObject, class IloContainer))
Definition file: ilsolver/iloselector.h
Include file: <ilsolver/iloselector.h>

This macro allows you to define a default visitor for a given object class tx and a given container class tc.

Within the code of this macro, the function void visit(tx object) allows you to specify each visited object.

Here is an example of the actual definition of the default visitor IloVisitor<IloIntVar,IloIntVarArray>:

 ILODEFAULTVISITOR(IloIntVar,IloIntVarArray,array) {
    const IloInt size = array.getSize();
    for (IloInt i=0; i<size; ++i)
        visit(array[i]);
 }
 

The following default visitors are already defined in Solver:

For more information, see Selectors.

See Also: