Access info at position \a i and \a j
| 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++) |