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

Method parse

contribs/quacode/examples/baker.cpp:77–82  ·  view source on GitHub ↗

Parse options from arguments \a argv (number is \a argc)

Source from the content-addressed store, hash-verified

75 }
76 /// Parse options from arguments \a argv (number is \a argc)
77 void parse(int& argc, char* argv[]) {
78 Options::parse(argc,argv);
79 if (argc < 2)
80 return;
81 n = atoi(argv[1]);
82 }
83 /// Return true if the strategy must be printed
84 bool printStrategy(void) const {
85 return _printStrategy.value();

Callers 1

mainFunction · 0.45

Calls 1

parseFunction · 0.85

Tested by

no test coverage detected