# Hamming Class Reference

[Example scripts (models)]

Example: Generating Hamming codes More...

## 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 Space * | copy (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 86 of file hamming.cpp.

## Constructor & Destructor Documentation

Hamming::Hamming | ( | const HammingOptions & | opt |
) | ` [inline]` |

Actual model.

Definition at line 92 of file hamming.cpp.

Hamming::Hamming | ( | Hamming & | s |
) | ` [inline]` |

Constructor for copying *s*.

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

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

Copy during cloning.

Definition at line 127 of file hamming.cpp.

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

- examples/hamming.cpp