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

Method add

gecode/driver/options.cpp:139–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137
138
139 void
140 StringOption::add(int v, const char* o, const char* h) {
141 Value* n = new Value;
142 n->val = v;
143 n->opt = strdup(o);
144 n->help = strdup(h);
145 n->next = nullptr;
146 if (fst == nullptr) {
147 fst = n;
148 } else {
149 lst->next = n;
150 }
151 lst = n;
152 }
153 int
154 StringOption::parse(int argc, char* argv[]) {
155 if (char* a = argument(argc,argv)) {

Callers 6

modelMethod · 0.45
symmetryMethod · 0.45
propagationMethod · 0.45
branchingMethod · 0.45
searchMethod · 0.45
OptionsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected