Overview | Group | Tree | Graph | Deprecated | Index | Concepts |
This class represents the domain of an integer range. It can be enumerated using an iterator. It is represented by a lower bound and an upper bound.
See Also:
Method Summary | |
---|---|
public IloInt | getFirst() const |
public IloIntRangeI * | getImpl() const |
public IloInt | getLast() const |
public IloInt | getLB() const |
public IloInt | getNext(IloInt value, IloInt n=1) const |
public IloInt | getNextC(IloInt value, IloInt n=1) const |
public IloInt | getPrevious(IloInt value, IloInt n=1) const |
public IloInt | getPreviousC(IloInt value, IloInt n=1) const |
public IloInt | getUB() const |
public | IloIntRange(IloIntRangeI * impl) |
public | IloIntRange(IloEnv env) |
public | IloIntRange(IloEnv env, IloInt min, IloInt max) |
public | IloIntRange(const IloIntRange & obj) |
Inherited Methods from IloIntCollection |
---|
getImpl, getValue, IloIntCollection |
Inherited Methods from IloDiscreteDataCollection |
---|
getImpl, getIndex, getIndex, getIndex, getIndex, getIndex, getSize, IloDiscreteDataCollection, IloDiscreteDataCollection, isOrdered, isReversed, isSorted, iterator |
Inherited Methods from IloDataCollection |
---|
display, end, getEnv, getName, isIntRange, isIntSet, isNumRange, isNumSet, isSymbolSet, isTupleSet, sort, sort, sort, sort |
Method Detail |
---|
Constructor from an implementation.
impl |
A pointer to the implementation object of this class.
|
Creates an IloIntRange
with infinite bounds.
env |
The environment within which to create the IloIntRange .
|
Creates a domain with the given bounds.
env |
The environment within which to create the domain.
|
min |
The minimum bound for the domain.
|
max |
The maximum bound for the domain.
|
Creates a domain from another domain.
obj |
The domain from which you want to create another domain.
|
Returns the first item of the collection.
See Also:
This member function returns a pointer to the implementation object of the invoking extractable object.
It is useful when you need to be sure that you are using the same copy of the object in more than one situation.
Returns the last item of the collection.
See Also:
Returns the lower bound of the domain.
This method returns the value next to a given argument in the set.
If the given value does not exist, it throws an exception.
If no value follows (that is, you are at the end of the set), it throws an exception.
See Also:
IloIntRange::getNextC, IloIntRange::getPreviousC for circular search , IloIntSet for an example
value |
The value you want to return the value next to.
|
n |
An offset to specify how many values to skip (n=0 corresponds to a return of the item itself).
|
This method returns the value next to the given argument in the set.
If the given value does not exist, it throws an exception.
If no value follows (that is, you are at the end of the set), it will give you the first value (circular search).
See Also:
IloIntRange::getNext, IloIntRange::getPrevious, IloIntSet for an example
value |
The value you want to return the next value for.
|
n |
An offset to specify how many values to skip (n=0 corresponds to a return of the item itself).
|
This method returns the value previous to the given argument in the set.
If the given value does not exist, it throws an exception.
If no value is previous (that is, you are at the beginning of the set), it throws an exception.
See Also:
IloIntRange::getNextC, IloIntRange::getPreviousC, IloIntSet for an example
value |
The value you want to return the previous value for.
|
n |
An offset to specify how many values to skip (n=0 corresponds to a return of the item itself).
|
This method returns the value previous to the given argument in the set.
If the given value does not exist, it throws an exception.
If no value is previous (that is, you are at the beginning of the set), it will give you the last value (circular search).
See Also:
IloIntSet for an example
value |
The value you want to return the previous value for.
|
n |
An offset to specify how many values to skip (n=0 corresponds to a return of the item itself).
|
Returns the upper bound of the domain.