Generated on Thu Jul 6 07:06:58 2006 for Gecode by doxygen 1.4.7

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

SetVargroup (int w, int g)
IntVargroupInv (int w, int p)
 Golf (const Options &o)
 Golf (bool share, Golf &s)
virtual Spacecopy (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 190 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 197 of file golf.cc.

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

Reimplemented from Example.

Definition at line 202 of file golf.cc.


Member Data Documentation

Definition at line 61 of file golf.cc.

Definition at line 62 of file golf.cc.

Definition at line 63 of file golf.cc.

Definition at line 64 of file golf.cc.

Definition at line 66 of file golf.cc.

Definition at line 67 of file golf.cc.


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