FRAMES NO FRAMES

Class IlcIntToIntExpFunctionI

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

This class is the implementation class for IlcIntToIntExpFunction, the class of the object that makes the association between an integer value and a constrained integer variable or expression.

The virtual member function getValue returns the constrained variable or expression associated with a given value. To define an association class, you have to derive this class, and overload the getValue virtual member function.

The following constraints and expressions use this kind of indirection: IlcSum, IlcMin, IlcMax, and IlcUnion.

See Also:

Constructor and Destructor Summary
public IlcIntToIntExpFunctionI()
public ~IlcIntToIntExpFunctionI()
Method Summary
public virtual IlcIntExpgetValue(IlcInt e)
Constructor and Destructor Detail

IlcIntToIntExpFunctionI

public IlcIntToIntExpFunctionI()

This constructor creates an implementation object.


~IlcIntToIntExpFunctionI

public ~IlcIntToIntExpFunctionI()

As this class is to be subclassed, a virtual destructor is provided


Method Detail

getValue

public virtual IlcIntExp getValue(IlcInt e)

This member function must return the constrained variable or expression associated with the integer element e.