Skip to main content
FRAMES NO FRAMES

Class IloMapIndexArray

Definition file: ilopl/ilomapi.h
Map of IloMapIndexArrayIloMapIndexArrayIloMapIndexArray
A class providing access to the index of IloTupleMap.

This class allows you to manipulate indices to access instances of IloTupleMap. Here is an example:

 IloMapIndexArray indices(env);
 indices.add("Monday");
 indices.add(2);
 tuples.get(indices, tuple);
 
Method Summary
public voidadd(IloTuple index)
public voidadd(IloNum index)
public voidadd(IloInt index)
public voidadd(const char * index)
public voidclear()
public IloIntgetSize() const
public IloMapIndexArray(IloDefaultArrayI * i=0)
public IloMapIndexArray(const IloEnv env, IloInt n=0)
Method Detail

IloMapIndexArray

public IloMapIndexArray(IloDefaultArrayI * i=0)

Creates an empty IloMapIndexArray class.


IloMapIndexArray

public IloMapIndexArray(const IloEnv env, IloInt n=0)

Constructor for the IloMapIndexArray


add

public void add(IloTuple index)

This member function adds index to the invoking IloMapIndexArray.

Parameters:

index
The element to be added.

add

public void add(IloNum index)

This member function adds index to the invoking IloMapIndexArray.

Parameters:

index
The element to be added.

add

public void add(IloInt index)

This member function adds index to the invoking IloMapIndexArray.

Parameters:

index
The element to be added.

add

public void add(const char * index)

This member function adds index to the invoking IloMapIndexArray.

Parameters:

index
The element to be added.

clear

public void clear()

This member function removes all the elements from the invoking array. In other words, it produces an empty array.


getSize

public IloInt getSize() const

This member function returns an integer specifying the size of the invoking array. An empty array has size 0 (zero).