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

Golf Class Reference
[Example scripts (models)]

Inherits Example.

List of all members.


Detailed Description

Example: Golf tournament

Schedule a golf tournament. This is problem 010 from csplib.

Definition at line 59 of file golf.cc.

Public Member Functions

SetVar & group (int w, int g)
IntVar & groupInv (int w, int p)
 Golf (const Options &o)
 Golf (bool share, Golf &s)
virtual Space * copy (bool share)
 Copying member function.
virtual void print (void)

Public Attributes

int groups
int playersInGroup
int weeks
int players
SetVarArray groupsS
IntVarArray groupsSInv


Constructor & Destructor Documentation

Golf::Golf const Options o  )  [inline]
 

Definition at line 76 of file golf.cc.

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

Definition at line 184 of file golf.cc.


Member Function Documentation

SetVar& Golf::group int  w,
int  g
[inline]
 

Definition at line 69 of file golf.cc.

IntVar& Golf::groupInv int  w,
int  p
[inline]
 

Definition at line 72 of file golf.cc.

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

Copying member function.

Must create a new object using the constructor for cloning.

Implements Gecode::Space.

Definition at line 191 of file golf.cc.

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

Reimplemented from Example.

Definition at line 196 of file golf.cc.


Member Data Documentation

int Golf::groups
 

Definition at line 61 of file golf.cc.

int Golf::playersInGroup
 

Definition at line 62 of file golf.cc.

int Golf::weeks
 

Definition at line 63 of file golf.cc.

int Golf::players
 

Definition at line 64 of file golf.cc.

SetVarArray Golf::groupsS
 

Definition at line 66 of file golf.cc.

IntVarArray Golf::groupsSInv
 

Definition at line 67 of file golf.cc.


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