Overview | Group | Tree | Graph | Index | Concepts |
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:
IloAny, IloAnyVarArray, IloExtractable, IloModel
Constructor Summary | |
---|---|
public | IloAnyVar() |
public | IloAnyVar(IloAnyVar::ImplClass *) |
public | IloAnyVar(const IloEnv, const IloAnyArray, const char *) |
Method Summary | |
---|---|
public IloAnyVar::ImplClass * | getImpl() |
public void | getPossibleValues(IloAnyArray) |
public void | setPossibleValues(const IloAnyArray) |
Inherited Methods from IloExtractable |
---|
end, getEnv, getId, getImpl, getName, getObject, setName, setObject |
Constructor Detail |
---|
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 |
---|
This member function accesses the possible values of the invoking
enumerated variable and puts those values into its parameter
values
.
This member function sets values
as the domain of the
invoking enumerated variable.