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

Method GolfOptions

examples/golf.cpp:52–60  ·  view source on GitHub ↗

Constructor

Source from the content-addressed store, hash-verified

50public:
51 /// Constructor
52 GolfOptions(void)
53 : Options("Golf"),
54 _w("w","number of weeks",9),
55 _g("g","number of groups",8),
56 _s("s","number of players per group",4) {
57 add(_w);
58 add(_g);
59 add(_s);
60 }
61 /// Return number of weeks
62 int w(void) const { return _w.value(); }
63 /// Return number of groups

Callers

nothing calls this directly

Calls 1

addFunction · 0.85

Tested by

no test coverage detected