Generated on Thu Mar 22 10:39:52 2012 for Gecode by doxygen 1.6.3

Partition Class Reference
[Example scripts (models)]

Example: partition numbers into two groups More...

List of all members.

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) const
 Print solution.

Protected Attributes

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

Detailed Description

Example: partition numbers into two groups

Definition at line 49 of file partition.cpp.


Constructor & Destructor Documentation

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

Actual model.

Definition at line 57 of file partition.cpp.

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

Constructor used during cloning s.

Definition at line 98 of file partition.cpp.


Member Function Documentation

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

Copying during cloning.

Definition at line 104 of file partition.cpp.

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

Print solution.

Reimplemented from Gecode::Driver::ScriptBase< BaseSpace >.

Definition at line 109 of file partition.cpp.


Member Data Documentation

First group of numbers.

Definition at line 52 of file partition.cpp.

Second group of numbers.

Definition at line 54 of file partition.cpp.


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