FRAMES NO FRAMES

Class IloSelector<,>

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

The IloSelector template class is the base class for all selectors. A selector IloSelector<IloObject,IloContainer> is a class that implements the selection of an object of type IloObject from a container of type IloContainer.

Selectors can easily be built with the ILOSELECTOR0 macros or by defining an instance of IloBestSelector which is a combination of a visitor, a predicate, and a comparator.

For more information, see Selectors.

See Also:

Method Summary
public IloBoolselect(IloObject & selected, const IloContainer & collection) const

Selects an object from a collection.

Method Detail

select

public IloBool select(IloObject & selected, const IloContainer & collection) const
Selects an object from a collection.

This member function selects an instance of IloObject from the given IloContainer handled by the selector. If no object can be selected, IloFalse is returned and the argument selected is not assigned. If an object is selected, IloTrue is returned and selected contains the selected object.