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

Method find

examples/qcp.cpp:105–110  ·  view source on GitHub ↗

Find instance by name \a s

Source from the content-addressed store, hash-verified

103 }
104 /// Find instance by name \a s
105 static const int* find(const char* s) {
106 for (int i=0; name[i] != nullptr; i++)
107 if (!strcmp(s,name[i]))
108 return qcp[i];
109 return nullptr;
110 }
111 public:
112 /// Whether a valid specification has been found
113 bool valid(void) const {

Callers 2

is_test_name_matchingMethod · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by 2

is_test_name_matchingMethod · 0.36
mainFunction · 0.36