NO FRAMES

Class IloAnyVar

Definition file: ilconcert/iloany.h
A class to represent an enumerated variable.

An instance of this class offers a convenient way to represent an enumerated variable in Concert Technology.

Most member functions in this class contain assert statements. For an explanation of the macro NDEBUG (a way to turn on or turn off these assert statements), see the concept Assert and NDEBUG.

See Also:

Constructor Summary
public IloAnyVar()
public IloAnyVar(IloAnyVar::ImplClass *)
public IloAnyVar(const IloEnv, const IloAnyArray, const char *)
Method Summary
public IloAnyVar::ImplClass *getImpl()
public voidgetPossibleValues(IloAnyArray)
public voidsetPossibleValues(const IloAnyArray)
Inherited Methods from IloExtractable
end, getEnv, getId, getImpl, getName, getObject, setName, setObject
Constructor Detail

IloAnyVar

public IloAnyVar()
This constructor creates an empty handle. You must initialize it before you use it.

IloAnyVar

public IloAnyVar(IloAnyVar::ImplClass * impl)
This constructor creates a handle object from a pointer to an implementation object.

IloAnyVar

public IloAnyVar(const IloEnv env, const IloAnyArray array, const char * name)

This constructor creates a constrained enumerated variable from the values in array and makes the variable part of the environment indicated by env. By default, its name is indicated by the empty string, but you can indicate a name of your own choice.


Method Detail

getImpl

public IloAnyVar::ImplClass * getImpl()
This member function returns a pointer to the implementation object of the invoking handle.

getPossibleValues

public void getPossibleValues(IloAnyArray values)

This member function accesses the possible values of the invoking enumerated variable and puts those values into its parameter values.


setPossibleValues

public void setPossibleValues(const IloAnyArray values)

This member function sets values as the domain of the invoking enumerated variable.