Generated on Wed Feb 7 10:28:44 2018 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 (Hamming &s)
 Constructor for copying s.
virtual Spacecopy (void)
 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 ( Hamming s  )  [inline]

Constructor for copying s.

Definition at line 126 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 119 of file hamming.cpp.

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

Copy during cloning.

Definition at line 131 of file hamming.cpp.

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