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

An instance of this class allows you to represent a set of columns of different types in Concert Technology.
| Method Summary | |
|---|---|
public IloInt | commit(IloTupleBuffer line, IloBool check=IloTrue) |
public void | displayRow(IloInt i, ostream & out) const |
public IloTuple | find(IloTupleBuffer buffer) |
public const char * | getColumnName(IloIntArray path) const |
public const char * | getColumnName(IloInt index) const |
public IloTupleSetI * | getImpl() const |
public IloInt | getIndex(IloTuple tuple) const |
public IloInt | getLength() const |
public const char * | getName() const |
public IloTupleSchema | getSchema() const |
public IloInt | getSize() const |
public | IloTupleSet(IloTupleSetI * impl) |
public | IloTupleSet(IloEnv env, IloTupleSchema const & schema) |
public IloBool | isIn(IloTupleBuffer buffer) |
public IloTupleIterator * | iterator() |
public IloTuple | makeFirst() const |
public IloTuple | makeLast() const |
public IloTuple | makeNext(IloTuple value, IloInt n=0) const |
public IloTuple | makeNextC(IloTuple value, IloInt n=0) const |
public IloTuple | makePrevious(IloTuple value, IloInt n=0) const |
public IloTuple | makePreviousC(IloTuple value, IloInt n=0) const |
public IloTuple | makeTuple(IloInt index) const |
public IloTupleBuffer | makeTupleBuffer(IloInt index=-1) const |
public void | setColumnName(IloIntArray path, const char * name) |
public void | setColumnName(IloInt index, const char * name) |
public void | setName(const char * name) |
Inherited Methods from IloTupleCollection |
|---|
getImpl, IloTupleCollection |
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 |
|---|
This constructor creates a handle object from a pointer to an implementation object.
| impl |
A pointer to the implementation object of this class.
|
This constructor creates a set of tuple based on schema.
| env |
The environment that this object belongs to.
|
| schema |
The tuple set schema.
|
Commits the buffer into the set; that is, it adds a new line if the index is -1, or sets the line otherwise.
| line |
The values of the tuple.
|
| check |
A flag to tell whether we must check for duplicates or not.
|
This member function is used to display an indexed row.
| i |
The index to the row you want to display.
|
| out |
The output stream.
|
This member function checks whether a given
IloTupleBuffer object is in the collection.
It returns a new tuple if the buffer exists in the collection, otherwise
it returns an empty handle.
| buffer |
The buffer you want to check.
|
This member function returns the name of a column.
| path |
The path to the column you want the name of.
|
This member function returns the name of a column.
| index |
The index of the column you want the name of.
|
This member function is useful when you need to be sure that you are using the same copy of the invoking extractable object in more than one situation.
This member function checks whether a given IloTuple is in
the collection. It will return the index if the tuple exists or -1 if the
tuple does not exist in the index.
You can give the whole values or only the key values in a buffer instance
of the tuple, or a tuple from another collection.
| tuple |
The tuple you want to check.
|
This member function returns the number of columns.
This member function used to retrieve the name of the tupleset.
This member function returns the schema of the tupleset.
This member function returns the number of lines.
This member function checks whether a given
IloTupleBuffer object is in the collection.
You can give the whole values or only the key values.
| buffer |
The buffer you want to check.
|
Returns an iterator on the IloTupleSet.
Creates the first tuple.
Creates the last tuple.
Creates the next tuple.
Returns the item in the collection that comes after value
and produces an execution error if item is the last item.
For this TupleSet:
(< a,b >, < a,c >, < a,d >, < a,e >, < a,f >)
makeNext( < a,e > ) returns < a,e > and
makeNext( < a,e >, 1 ) returns < a,f > and
makeNext( < a,e >, 3 ) returns an execution error.
| value |
The element in the set.
|
| n |
The offset to apply for the computation. An offset of 0 returns the same object.
|
A circular version of next.
Creates the next tuple.
Returns the item in the collection that comes after value
For this TupleSet:
( <a,b> <a,c> <a,d> <a,e> <a,f> )
makeNextC( <a,e> ) returns <a,e> and
makeNextC( <a,e> 1 ) returns <a,f> and
makeNextC( <a,e> 3 ) returns <a,c> .
| value |
The element in the set.
|
| n |
The offset to apply for the computation. An offset of 0 returns the same object.
|
Creates the previous tuple.
Returns the item in the collection that comes before value
and produces an execution error if item is the last item.
For this TupleSet:
( <a,b> <a,c> <a,d> <a,e> <a,f> )
makePrevious( <a,e> ) returns <a,e> and
makePrevious( <a,e> 1 ) returns <a,d> and
makePrevious( <a,e> 5 ) returns execution error.
| value |
The element in the set.
|
| n |
The offset to apply for the computation. An offset of 0 returns the same object.
|
A circular version of previous.
Creates the previous tuple.
Returns the item in the collection that comes before value
For this TupleSet:
( <a,b> <a,c> <a,d> <a,e> <a,f> )
makePreviousC( <a,e> ) returns <a,e> and
makePreviousC( <a,e> 1 ) returns <a,d> and
makePreviousC( <a,e> 4 ) returns <a,f>.
| value |
The element in the set.
|
| n |
The offset to apply for the computation. An offset of 0 returns the same object.
|
This member function is used to return an indexed tuple.
| index |
The index of the tuple you want to point to.
|
Edits the tuple to modify it, or create a new tuple.
| index |
The index of the tuple you want to edit; (index == -1) adds a new line.
|
This member function is used to set the name of a column.
| path |
The path to the column you want to set the name of.
|
This member function is used to set the name of a column.
| index |
The index of the column you want to set the name of.
|
This member function is used to set the name of the tupleset.
| name |
The name to be assigned to the tupleset.
|