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

Method parse

examples/bibd.cpp:62–70  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

60 }
61 /// Parse options from arguments \a argv (number is \a argc)
62 void parse(int& argc, char* argv[]) {
63 Options::parse(argc,argv);
64 if (argc < 4)
65 return;
66 v = atoi(argv[1]);
67 k = atoi(argv[2]);
68 lambda = atoi(argv[3]);
69 derive();
70 }
71 /// Print help message
72 virtual void help(void) {
73 Options::help();

Callers 1

mainFunction · 0.45

Calls 1

parseFunction · 0.85

Tested by

no test coverage detected