Skip to main content
FRAMES NO FRAMES

Class IloDataCollection

Definition file: ilconcert/ilocollection.h
Map of IloDataCollectionIloDataCollectionIloDiscreteDataCollectionIloDataCollection
A class used to represent a data collection.

This abstract class represents a data collection. Different types of domain exist:

Basic type: IloInteger interval or enumeration (any enumeration of objects, such as string or Boolean).

Multi-valued types: set (list of basic type values with no redundancy).

Method Summary
public voiddisplay(ostream & os) const
public voidend()
public IloEnvgetEnv()
public const char *getName() const
public IloBoolisIntRange() const
public IloBoolisIntSet() const
public IloBoolisNumRange() const
public IloBoolisNumSet() const
public IloBoolisSymbolSet() const
public IloBoolisTupleSet() const
public static voidsort(IloNumArray & array)
public static voidsort(IloNumArray & array, IloInt min, IloInt max)
public static voidsort(IloIntArray & array)
public static voidsort(IloIntArray & array, IloInt min, IloInt max)
Method Detail

display

public void display(ostream & os) const

Outputs the domain.


end

public void end()

This member function deletes the invoking data domain. That is, it frees all the resources used by the invoking object. After a call to this member function, you cannot use the invoking extractable object again.


getEnv

public IloEnv getEnv()

This member function returns the current environment.

Returns:

The current environment.

getName

public const char * getName() const

This member function returns the name of the collection.

Returns:

The name of the collection.

isIntRange

public IloBool isIntRange() const

This member function checks whether the domain is a range of integer values.

See Also:

Returns:

IloTrue if the given domain is a range of integer values.

isIntSet

public IloBool isIntSet() const

This member function checks whether the domain is a set of integer values.

See Also:

Returns:

IloTrue if the given domain is a set of integer values.

isNumRange

public IloBool isNumRange() const

This member function checks whether the domain is a range of numeric values.

Returns:

IloTrue if the given domain is a range of numeric values.

isNumSet

public IloBool isNumSet() const

This member function checks whether the domain is a set of numeric values.

See Also:

Returns:

IloTrue if the given domain is a set of numeric values.

isSymbolSet

public IloBool isSymbolSet() const

This member function checks whether the domain is a set of string values.

See Also:

Returns:

IloTrue if the given domain is a set of string values.

isTupleSet

public IloBool isTupleSet() const

This member function checks whether the domain is a set of IloTuple.

See Also:

Returns:

IloTrue if the given domain is a set of IloTuple values.

sort

public static void sort(IloNumArray & array)

This member function allows you to sort an IloNumArray.

Parameters:

array
The IloNumArray to be sorted.

sort

public static void sort(IloNumArray & array, IloInt min, IloInt max)

This member function allows you to sort an IloNumArray and set the minimum index and maximum index in the array for the sort.

Parameters:

array
The IloNumArray to be sorted.
min
The minimum index in the array for the sort.
max
The maximum index in the array for the sort.

sort

public static void sort(IloIntArray & array)

This member function allows you to sort an IloIntArray.

Parameters:

array
The IloIntArray to be sorted.

sort

public static void sort(IloIntArray & array, IloInt min, IloInt max)

This member function allows you to sort an IloIntArray and set min and max values for the sort.

Parameters:

array
The IloIntArray to be sorted.
min
The minimum index in the array for the sort.
max
The maximum index in the array for the sort.