Generated on Mon Aug 25 11:35:48 2008 for Gecode by doxygen 1.5.6

Partition Class Reference
[Scripts for problems]

Inherits Example.

List of all members.


Detailed Description

Example: partition numbers into two groups

Definition at line 46 of file partition.cc.


Public Member Functions

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

Protected Attributes

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

Constructor & Destructor Documentation

Partition::Partition ( const SizeOptions opt  )  [inline]

Actual model.

Definition at line 54 of file partition.cc.

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

Constructor used during cloning s.

Definition at line 94 of file partition.cc.


Member Function Documentation

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

Copying during cloning.

Implements Gecode::Space.

Definition at line 100 of file partition.cc.

virtual void Partition::print ( std::ostream &  os  )  [inline, virtual]

Print solution.

Reimplemented from Example.

Definition at line 105 of file partition.cc.


Member Data Documentation

First group of numbers.

Definition at line 49 of file partition.cc.

Second group of numbers.

Definition at line 51 of file partition.cc.


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