Generated on Wed Nov 1 15:04:51 2006 for Gecode by doxygen 1.4.5

Partition Class Reference
[Example scripts (models)]

Inherits Example.

List of all members.


Detailed Description

Example: partition numbers into two groups

Definition at line 29 of file partition.cc.

Public Member Functions

 Partition (const Options &opt)
 Actual model.
 Partition (bool share, Partition &s)
 Constructor used during cloning s.
virtual Spacecopy (bool share)
 Copying during cloning.
virtual void print (void)
 Print solution.

Protected Attributes

IntVarArray x
 First group of numbers.
IntVarArray y
 Second group of numbers.


Constructor & Destructor Documentation

Partition::Partition const Options opt  )  [inline]
 

Actual model.

Definition at line 37 of file partition.cc.

Partition::Partition bool  share,
Partition s
[inline]
 

Constructor used during cloning s.

Definition at line 79 of file partition.cc.


Member Function Documentation

virtual Space* Partition::copy bool  share  )  [inline, virtual]
 

Copying during cloning.

Implements Gecode::Space.

Definition at line 85 of file partition.cc.

virtual void Partition::print void   )  [inline, virtual]
 

Print solution.

Reimplemented from Example.

Definition at line 90 of file partition.cc.


Member Data Documentation

IntVarArray Partition::x [protected]
 

First group of numbers.

Definition at line 32 of file partition.cc.

IntVarArray Partition::y [protected]
 

Second group of numbers.

Definition at line 34 of file partition.cc.


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