Generated on Mon Aug 25 11:35:48 2008 for Gecode by doxygen 1.5.6

Money Class Reference
[Scripts for problems]

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 50 of file money.cc.


Public Member Functions

 Money (const Options &opt)
 Actual model.
virtual void print (std::ostream &os)
 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 58 of file money.cc.

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

Constructor for cloning s.

Definition at line 81 of file money.cc.


Member Function Documentation

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

Print solution.

Reimplemented from Example.

Definition at line 76 of file money.cc.

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

Copy during cloning.

Implements Gecode::Space.

Definition at line 86 of file money.cc.


Member Data Documentation

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

Number of letters.

Definition at line 53 of file money.cc.

IntVarArray Money::le [protected]

Array of letters.

Definition at line 55 of file money.cc.


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