Skip to main content
FRAMES NO FRAMES

Class IlcIntSelect

Definition file: ilcp/cpext.h
Include file: <ilcp/cpext.h>
Map of IlcIntSelectIlcIntSelectIlcIntSelect
The handle class for value selectors.

CP Optimizer lets you control the order in which the values in the domain of a constrained variable are tried during the search for a solution.

This class is the handle class of the object that chooses the value to try when the constrained variable under consideration is a constrained integer variable (that is, an instance of IlcIntVar).

An object of this handle class uses the virtual member function IlcIntSelectI::select from its implementation class to choose a value in the domain of the constrained integer variable under consideration during the search for a solution.

See Also:

Method Summary
public IlcIntSelectI *getImpl() const
public IlcIntSelect(IlcIntSelectI * impl=0)
public IlcIntSelect(IlcCPEngine solver, IlcEvalInt function)
Method Detail

IlcIntSelect

public IlcIntSelect(IlcIntSelectI * impl=0)

This constructor creates a handle object from a pointer to an implementation object. If the implementation object is zero, you must initialize the handle before using it.


IlcIntSelect

public IlcIntSelect(IlcCPEngine solver, IlcEvalInt function)

This constructor creates a new integer selector from an evaluation function. The implementation object of the newly created handle is an instance of the class IlcIntSelectEvalI constructed with the evaluation function indicated by the argument function.


getImpl

public IlcIntSelectI * getImpl() const

This member function returns a pointer to the implementation object of the invoking handle.