Generated on Thu Mar 22 10:39:51 2012 for Gecode by doxygen 1.6.3

Hamming Class Reference
[Example scripts (models)]

Example: Generating Hamming codes More...

List of all members.

Public Member Functions

 Hamming (const HammingOptions &opt)
 Actual model.
virtual void print (std::ostream &os) const
 Print solution.
 Hamming (bool share, Hamming &s)
 Constructor for copying s.
virtual Spacecopy (bool share)
 Copy during cloning.

Detailed Description

Example: Generating Hamming codes

Generate a Hamming code that fits in b-bit words to code n symbols where the Hamming distance between every two symbol codes is at least d. The Hamming distance between two words is the number of bit positions where they differ.

Definition at line 90 of file hamming.cpp.


Constructor & Destructor Documentation

Hamming::Hamming ( const HammingOptions opt  )  [inline]

Actual model.

Definition at line 96 of file hamming.cpp.

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

Constructor for copying s.

Definition at line 120 of file hamming.cpp.


Member Function Documentation

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

Print solution.

Reimplemented from Gecode::Driver::ScriptBase< BaseSpace >.

Definition at line 113 of file hamming.cpp.

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

Copy during cloning.

Definition at line 125 of file hamming.cpp.


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