Generated on Wed Nov 1 15:04:51 2006 for Gecode by doxygen 1.4.5

Money Class Reference
[Example scripts (models)]

Inherits Example.

List of all members.


Detailed Description

Example: SEND+MORE=MONEY puzzle

Well-known cryptoarithmetic puzzle. Henry Dudeney, Strand Magazine, July 1924.

Definition at line 34 of file money.cc.

Public Member Functions

 Money (const Options &opt)
 Actual model.
virtual void print (void)
 Print solution.
 Money (bool share, Money &s)
 Constructor for cloning s.
virtual Spacecopy (bool share)
 Copy during cloning.

Protected Attributes

IntVarArray le
 Array of letters.

Static Protected Attributes

static const int nl = 8
 Number of letters.


Constructor & Destructor Documentation

Money::Money const Options opt  )  [inline]
 

Actual model.

Definition at line 42 of file money.cc.

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

Constructor for cloning s.

Definition at line 68 of file money.cc.


Member Function Documentation

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

Print solution.

Reimplemented from Example.

Definition at line 60 of file money.cc.

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

Copy during cloning.

Implements Gecode::Space.

Definition at line 73 of file money.cc.


Member Data Documentation

const int Money::nl = 8 [static, protected]
 

Number of letters.

Definition at line 37 of file money.cc.

IntVarArray Money::le [protected]
 

Array of letters.

Definition at line 39 of file money.cc.


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