Overview | Group | Tree | Graph | Index | Concepts |
For each basic type, Concert Technology defines a corresponding array class.
IloBoolVarArray
is the array class of the Boolean variable class for a
model. It is a handle class.
Instances of IloBoolVarArray
are extensible.
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 | IloBoolVarArray(IloDefaultArrayI *) |
public | IloBoolVarArray(const IloEnv, IloInt) |
public | IloBoolVarArray(const IloEnv, const IloNumColumnArray) |
public | IloBoolVarArray(const IloEnv, IloInt, const IloBoolVar, const IloBoolVar, ...) |
Method Summary | |
---|---|
public void | add(IloInt, const IloBoolVar) |
public void | add(const IloBoolVar) |
public void | add(const IloBoolVarArray) |
public IloBoolVar | operator[](IloInt) |
public IloBoolVar & | operator[](IloInt) |
Inherited Methods from IloIntVarArray |
---|
add, add, add, operator(), operator[], operator[], toNumVarArray |
Inherited Methods from IloIntExprArray |
---|
add, add, add, operator(), operator[], operator[] |
Inherited Methods from IloExtractableArray |
---|
add, add, add, endElements |
Constructor Detail |
---|
This constructor creates an empty extensible array of Boolean variables.
This constructor creates an extensible array of n
Boolean variables.
This constructor creates an extensible array of Boolean variables from a column array.
This constructor creates an extensible array of n
Boolean variables,
the elements of the new array take the corresponding values:
v0, v1, ..., v(n-1)
.
Method Detail |
---|
This member function appends x
to the invoking array of Boolean
variables; it appends x
more
times.
This member function appends the value x
to the invoking array.
This member function appends the variables in the array x
to the
invoking array.
This operator returns a reference to the extractable object located in the
invoking array at the position indicated by the index i
. Concert
Technology uses the const
operator
IloBoolVar operator[] (IloInt i) const;
on const
arrays.
This operator returns a reference to the extractable object located in the
invoking array at the position indicated by the index i
.