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

The class IloSymbolSet is used to represent a collection of
string values with no duplicate.
See Also:
IloIntSet, IloNumSet, IloTupleSet
| Method Summary | |
|---|---|
public void | add(const char * elt) |
public IloBool | contains(const char * elt) const |
public void | display(ostream & out) const |
public IloSymbol | getNext(const char * value, IloInt n=1) const |
public IloSymbol | getNextC(const char * value, IloInt n=1) const |
public IloSymbol | getPrevious(const char * value, IloInt n=1) const |
public IloSymbol | getPreviousC(const char * value, IloInt n=1) const |
public IloBool | isSymbolSet() const |
public void | remove(const char * elt) |
public void | setIntersection(const char * elt) |
| Inner Class | |
|---|---|
| IloSymbolSet::Iterator | This class is an iterator that traverses the elements of a finite set of string values. |
| Method Detail |
|---|
This member function adds elt to the invoking set. By adds, we
mean that the invoking set becomes the union of its former elements and the new
elt. Concert does not take ownership of this string.
| elt |
the string that will be stored as an IloSymbol.
|
This member function returns
a Boolean value (zero or one) that specifies
whether elt is an element of the invoking set. The value one
specifies that the invoking set contains elt; the value zero
specifies that the invoking set does not contain elt.
| elt |
the string.
|
elt is an element of the invoking set. Displays the set
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 there is no next value, that is, if you are at the end of the set, it throws an exception.
See Also:
IloSymbolSet::getNextC, IloSymbolSet::getPreviousC for circular search.
| value |
A string.
|
| n |
An integer that specifies the position from which to find the next value.
|
IloSymbol containing the value next to the given argument.
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 there is no next value, that is, if you are at the end of the set, it returns the first value (circular search).
See Also:
IloSymbolSet::getNext, IloSymbolSet::getPrevious
| value |
A string.
|
| n |
An integer that specifies the position from which to find the next value.
|
IloSymbol containing the value next to the given argument.
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 there is no previous value, that is, if you are at the beginning of the set, it throws an exception.
See Also:
IloSymbolSet::getNextC, IloSymbolSet::getPreviousC for circular search.
| value |
A string.
|
| n |
An integer that specifies the position from which to find the previous value.
|
IloSymbol containing the value previous to the given argument.
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 there is no previous value, that is, if you are at the beginning of the set, it returns the last value (circular search).
See Also:
IloSymbolSet::getNext, IloSymbolSet::getPrevious
| value |
A string.
|
| n |
An integer that specifies the position from which to find the previous value.
|
IloSymbol containing the value previous to the given argument.
This member function checks whether the domain is a set of string values.
See Also:
IloTrue if the given domain is a set of string values.
This member function removes elt from the invoking set.
| elt |
the string you want to remove from the collection.
|
This member function changes the invoking set
so that it includes only the
element specified by elt.
In other words, the invoking set becomes
the intersection of its former elements with elt.
| elt |
a string.
|