Generated on Thu Nov 2 14:49:41 2006 for Gecode/J by doxygen 1.5.0

org.gecode.VarArray< Var extends GecodeVar > Class Reference
[Setting up scriptsInteger variablesSet variables]

List of all members.

Detailed Description

Array of variables.

This class manages a collection of variables and presents them as an array. The class has many different constructors for automatically instantiating the variables. The following list shows the different kinds:

The class is parametrised on the type of variables used.

Definition at line 59 of file VarArray.java.

Public Member Functions

 VarArray ()
 Construct empty array.
 VarArray (int size)
 Construct empty array with inital capacity.
boolean assigned ()
 Test wheter all variables in this array are assigned.
void swap (int a, int b)
 Swap positions a and b.
String toString ()

Package Functions

 SuppressWarnings ("unchecked") public< C extends Iterable< Var >> VarArray(JavaSpace newHome
 Create copies of the elements of va in newHome and add them into this array.
VarArray (JavaSpace home, Class<?extends Var > type, A[] as, B[] bs)

Package Attributes

boolean share


Constructor & Destructor Documentation

org.gecode.VarArray< Var extends GecodeVar >.VarArray (  ) 

Construct empty array.

Definition at line 62 of file VarArray.java.

org.gecode.VarArray< Var extends GecodeVar >.VarArray ( int  size  ) 

Construct empty array with inital capacity.

Definition at line 68 of file VarArray.java.

B org.gecode.VarArray< Var extends GecodeVar >.VarArray ( JavaSpace  home,
Class<?extends Var >  type,
A[]  as,
B[]  bs 
) [package]

Definition at line 217 of file VarArray.java.


Member Function Documentation

org.gecode.VarArray< Var extends GecodeVar >.SuppressWarnings ( "unchecked"   )  [package]

Create copies of the elements of va in newHome and add them into this array.

boolean org.gecode.VarArray< Var extends GecodeVar >.assigned (  ) 

Test wheter all variables in this array are assigned.

Definition at line 243 of file VarArray.java.

void org.gecode.VarArray< Var extends GecodeVar >.swap ( int  a,
int  b 
)

Swap positions a and b.

Definition at line 252 of file VarArray.java.

String org.gecode.VarArray< Var extends GecodeVar >.toString (  ) 

Definition at line 258 of file VarArray.java.


Member Data Documentation

boolean org.gecode.VarArray< Var extends GecodeVar >.share [package]

Definition at line 76 of file VarArray.java.


The documentation for this class was generated from the following file: