|
5 | 5 |
|
6 | 6 | class Array2DTracer : Tracer { |
7 | 7 | public: |
8 | | - Array2DTracer(string title = ""); |
9 | | - |
10 | | - Array2DTracer set(json array2d); |
11 | | - |
12 | | - Array2DTracer set(); |
13 | | - |
14 | | - Array2DTracer reset(); |
15 | | - |
16 | | - Array2DTracer delay(); |
17 | | - |
18 | | - Array2DTracer patch(json x, json y, json v); |
19 | | - |
20 | | - Array2DTracer depatch(json x, json y); |
21 | | - |
22 | | - Array2DTracer select(json x, json y); |
23 | | - |
24 | | - Array2DTracer select(json sx, json sy, json ex, json ey); |
25 | | - |
26 | | - Array2DTracer selectRow(json x, json sy, json ey); |
27 | | - |
28 | | - Array2DTracer selectCol(json y, json sx, json ex); |
29 | | - |
30 | | - Array2DTracer deselect(json x, json y); |
31 | | - |
32 | | - Array2DTracer deselect(json sx, json sy, json ex, json ey); |
33 | | - |
34 | | - Array2DTracer deselectRow(json x, json sy, json ey); |
35 | | - |
36 | | - Array2DTracer deselectCol(json y, json sx, json ex); |
| 8 | + Array2DTracer(string title = "") : Tracer("Array2DTracer", title) { |
| 9 | + } |
| 10 | + |
| 11 | + Array2DTracer set(json array2d) { |
| 12 | + addTrace(key, "set", json::array({array2d})); |
| 13 | + return *this; |
| 14 | + } |
| 15 | + |
| 16 | + Array2DTracer set() { |
| 17 | + addTrace(key, "set", json::array({})); |
| 18 | + return *this; |
| 19 | + } |
| 20 | + |
| 21 | + Array2DTracer reset() { |
| 22 | + addTrace(key, "reset", json::array({})); |
| 23 | + return *this; |
| 24 | + } |
| 25 | + |
| 26 | + Array2DTracer delay() { |
| 27 | + addTrace(key, "delay", json::array({})); |
| 28 | + return *this; |
| 29 | + } |
| 30 | + |
| 31 | + Array2DTracer patch(json x, json y, json v) { |
| 32 | + addTrace(key, "patch", json::array({x, y, v})); |
| 33 | + return *this; |
| 34 | + } |
| 35 | + |
| 36 | + Array2DTracer depatch(json x, json y) { |
| 37 | + addTrace(key, "depatch", json::array({x, y})); |
| 38 | + return *this; |
| 39 | + } |
| 40 | + |
| 41 | + Array2DTracer select(json x, json y) { |
| 42 | + addTrace(key, "select", json::array({x, y})); |
| 43 | + return *this; |
| 44 | + } |
| 45 | + |
| 46 | + Array2DTracer select(json sx, json sy, json ex, json ey) { |
| 47 | + addTrace(key, "select", json::array({sx, sy, ex, ey})); |
| 48 | + return *this; |
| 49 | + } |
| 50 | + |
| 51 | + Array2DTracer selectRow(json x, json sy, json ey) { |
| 52 | + addTrace(key, "selectRow", json::array({x, sy, ey})); |
| 53 | + return *this; |
| 54 | + } |
| 55 | + |
| 56 | + Array2DTracer selectCol(json y, json sx, json ex) { |
| 57 | + addTrace(key, "selectCol", json::array({y, sx, ex})); |
| 58 | + return *this; |
| 59 | + } |
| 60 | + |
| 61 | + Array2DTracer deselect(json x, json y) { |
| 62 | + addTrace(key, "deselect", json::array({x, y})); |
| 63 | + return *this; |
| 64 | + } |
| 65 | + |
| 66 | + Array2DTracer deselect(json sx, json sy, json ex, json ey) { |
| 67 | + addTrace(key, "deselect", json::array({sx, sy, ex, ey})); |
| 68 | + return *this; |
| 69 | + } |
| 70 | + |
| 71 | + Array2DTracer deselectRow(json x, json sy, json ey) { |
| 72 | + addTrace(key, "deselectRow", json::array({x, sy, ey})); |
| 73 | + return *this; |
| 74 | + } |
| 75 | + |
| 76 | + Array2DTracer deselectCol(json y, json sx, json ex) { |
| 77 | + addTrace(key, "deselectCol", json::array({y, sx, ex})); |
| 78 | + return *this; |
| 79 | + } |
37 | 80 | }; |
38 | 81 |
|
39 | 82 | #endif |
0 commit comments