MCPcopy Index your code
hub / github.com/agentic-labs/lsproxy / map

Class map

sample_project/cpp/cpp_classes/map.cpp:1–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1class map {
2public:
3 map() {
4 char t[8][8] = {
5 {0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0},
6 {0, 0, 0, 0, 1, 1, 1, 0}, {0, 0, 1, 0, 0, 0, 1, 0},
7 {0, 0, 1, 0, 0, 0, 1, 0}, {0, 0, 1, 1, 1, 1, 1, 0},
8 {0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0}
9 };
10 w = h = 8;
11 for( int r = 0; r < h; r++ )
12 for( int s = 0; s < w; s++ )
13 m[s][r] = t[r][s];
14 }
15 int operator() ( int x, int y ) { return m[x][y]; }
16 char m[8][8];
17 int w, h;
18};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected