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

Method info

examples/qcp.cpp:98–103  ·  view source on GitHub ↗

Access info at position \a i and \a j

Source from the content-addressed store, hash-verified

96 const int* data;
97 /// Access info at position \a i and \a j
98 int info(int i, int j) const {
99 int n = data[0];
100 assert((i >= 0) && (i < n));
101 assert((j >= 0) && (j < n));
102 return data[1 + (i * n) + j];
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++)

Callers 2

serializeMethod · 0.80
sendNodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected