-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathBaseArray1DTracer.h
45 lines (34 loc) · 979 Bytes
/
BaseArray1DTracer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef CPP_BASEARRAY1DTRACER_H
#define CPP_BASEARRAY1DTRACER_H
#include "Array2DTracer.h"
class BaseArray1DTracer : public Array2DTracer {
public:
BaseArray1DTracer(const string &title = "", const string &className = "BaseArray1DTracer") : Array2DTracer(title,
className) {
}
void set(const json &array1d) {
command("set", {array1d});
}
void patch(int x, const json &v) {
command("patch", {x, v});
}
void patch(int x) {
command("patch", {x});
}
void depatch(int x) {
command("depatch", {x});
}
void select(int sx, int ex) {
command("select", {sx, ex});
}
void select(int x) {
command("select", {x});
}
void deselect(int sx, int ex) {
command("deselect", {sx, ex});
}
void deselect(int x) {
command("deselect", {x});
}
};
#endif