FRAMES NO FRAMES

Class IloTranslator<,>

Definition file: ilsolver/iloselector.h
Include file: <ilsolver/iloselector.h>

The IloTranslator template class is the base class for all translators. A translator is a class that implements a translation from an object of class IloObjectIn into an object of class IloObjectOut (using operator()). Translators allow you to easily define new predicates and evaluators on instances of class IloObjectIn given a predicate/evaluator on instances of class IloObjectOut. To define a new class of translator, use the macro ILOTRANSLATOR.

For more information, see Selectors.

See Also:

Method Summary
public IloObjectOutoperator()(const IloObjectIn & o, IloAny nu=0) const

Translates object of type IloObjectIn into an object of type IloObjectOut.

Method Detail

operator()

public IloObjectOut operator()(const IloObjectIn & o, IloAny nu=0) const
Translates object of type IloObjectIn into an object of type IloObjectOut.

This operator translates o, an object of type IloObjectIn, into an object of type IloObjectOut. The parameter nu allows you to add an optional context.