MCPcopy Create free account
hub / github.com/Gecode/gecode / HammingOptions

Method HammingOptions

examples/hamming.cpp:57–64  ·  view source on GitHub ↗

Initialize options for example with name \a s

Source from the content-addressed store, hash-verified

55public:
56 /// Initialize options for example with name \a s
57 HammingOptions(const char* s, unsigned int bits0,
58 unsigned int distance0, unsigned int size0)
59 : Options(s),
60 _bits("bits","word size in bits",bits0),
61 _distance("distance","minimum distance",distance0),
62 _size("size","number of symbols",size0) {
63 add(_bits); add(_distance); add(_size);
64 }
65
66 /// Return number of bits
67 unsigned int bits(void) const { return _bits.value(); }

Callers

nothing calls this directly

Calls 1

addFunction · 0.85

Tested by

no test coverage detected