FRAMES NO FRAMES

Class IloPredicate<>

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

The IloPredicate template class is the base class for all predicates. A predicate is a class that implements a test on an object (using operator()), and returns an IloBool value. Such classes can be used (along with classes of IloComparator) to parameterize selectors used in goal-based search.

Predicates can easily be built by using the ILOPREDICATE0 macros or by composing existing predicates and evaluators.

For more information, see Selectors.

See Also:

Method Summary
public IloBooloperator()(IloObject o, IloAny nu=0) const
Method Detail

operator()

public IloBool operator()(IloObject o, IloAny nu=0) const

This operator implements the test of an instance of class IloObject that may use a user-given context nu. If the predicate is a composite predicate (see operators on predicates), the context is also passed to components (predicates and evaluators) involved in the computation of the composite predicate.