| Overview | Group | Tree | Graph | Index | Concepts |

An instance of this class offers a convenient way to represent a set of enumerated values as a constrained variable in Concert Technology.
A constrained variable representing a set of enumerated values (that is, an
instance of IloAnySetVar) is defined in terms of two other sets: its
required elements and its possible elements. Its required elements are those that must
be in the set. Its possible elements are those that may be in the set. This class
offers member functions for accessing the required and possible elements of a set of
enumerated values.
The function IloCard offers you a way to constrain
the number of elements in a set variable. That is, IloCard constrains the
cardinality of a set variable.
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:
IloAnySet, IloAnySetVarArray, IloCard, IloEqIntersection, IloEqUnion, IloExtractable, IloMember, IloModel, IloNotMember, IloNullIntersect, IloSubset, IloSubsetEq
| Constructor Summary | |
|---|---|
public | IloAnySetVar() |
public | IloAnySetVar(IloAnySetVar::ImplClass *) |
public | IloAnySetVar(const IloEnv, const IloAnyArray, const char *) |
public | IloAnySetVar(const IloEnv, const IloAnyArray, const IloAnyArray, const char *) |
| Method Summary | |
|---|---|
public void | addPossible(IloAny) |
public void | addRequired(IloAny) |
public IloAnySetVar::ImplClass * | getImpl() |
public void | getPossibleSet(IloAnySet) |
public IloAnySet | getPossibleSet() |
public IloAnySet::Iterator | getPossibleSetIterator() |
public void | getRequiredSet(IloAnySet) |
public IloAnySet | getRequiredSet() |
public IloAnySet::Iterator | getRequiredSetIterator() |
public void | removePossible(IloAny) |
public void | removeRequired(IloAny) |
Inherited Methods from IloExtractable |
|---|
end, getEnv, getId, getImpl, getName, getObject, setName, setObject |
| Constructor Detail |
|---|
This constructor creates a constrained set variable from the values in
possible and makes the set variable part of the environment indicated
by env, where the set consists of enumerated values. By default, its
name is indicated by the empty string, but you can indicate a name of
your own choice.
With this constructor, you can indicate both the required and the
possible sets that characterize the instance of IloAnySetVar
that it creates. 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 adds elt to the set of possible elements of
the invoking set variable.
addPossible notifies Concert Technology algorithms about this
change of this invoking object. This member function adds elt to the set of required elements of
the invoking set variable.
addRequired notifies Concert Technology algorithms about this
change of this invoking object. This member function accesses the possible elements of the invoking set variable
and puts those elements into its parameter set.
This member function returns the possible elements of the invoking set variable.
This member function returns an IloAnySet::Iterator to traverse the possible elements of the invoking set variable.
This member function accesses the required elements of the invoking set variable
and puts those elements into its parameter set.
This member function returns the required elements of the invoking set variable.
This member function returns an IloAnySet::Iterator to traverse the required elements of the invoking set variable.
This member function removes elt as a possible element of the
invoking set variable.
removePossible notifies Concert Technology algorithms about
this change of this invoking object. This member function removes elt as a required element of the
invoking set variable.
removeRequired notifies Concert Technology algorithms about
this change of this invoking object.