Generated on Wed Jan 4 17:49:16 2006 for Gecode by doxygen 1.4.6

Packing Class Reference
[Example scripts (models)]

Inherits Example.

List of all members.


Detailed Description

Example: packing squares into a rectangle

Definition at line 81 of file packing.cc.

Public Member Functions

 Packing (const Options &opt)
 Actual model.
 Packing (bool share, Packing &s)
 Constructor for cloning s.
virtual Space * copy (bool share)
 Copy during cloning.
virtual void print (void)
 Print solution.

Protected Attributes

const PackingSpec & s
 Specification used.
IntVarArray x
 Array of x-coordinates of squares.
IntVarArray y
 Array of y-coordinates of squares.


Constructor & Destructor Documentation

Packing::Packing (  const Options &  opt  )  [inline]
 

Actual model.

Definition at line 91 of file packing.cc.

Packing::Packing (  bool  share,
Packing &  s
)  [inline]
 

Constructor for cloning s.

Definition at line 180 of file packing.cc.


Member Function Documentation

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

Copy during cloning.

Implements Gecode::Space.

Definition at line 186 of file packing.cc.

virtual void Packing::print (  void   )  [inline, virtual]
 

Print solution.

Reimplemented from Example.

Definition at line 191 of file packing.cc.


Member Data Documentation

const PackingSpec& Packing::s [protected]
 

Specification used.

Definition at line 84 of file packing.cc.

IntVarArray Packing::x [protected]
 

Array of x-coordinates of squares.

Definition at line 86 of file packing.cc.

IntVarArray Packing::y [protected]
 

Array of y-coordinates of squares.

Definition at line 88 of file packing.cc.


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