algorithm-visualizer
 All Classes
Tracer.h
1 #ifndef TRACER_H
2 #define TRACER_H
3 
4 #include "Commander.h"
5 
6 class Tracer : public Commander {
7 public:
8  static void delay(int lineNumber) {
9  command(nullptr, "delay", {lineNumber});
10  }
11 
12  static void delay() {
13  command(nullptr, "delay", {});
14  }
15 
16  Tracer(const string &title = "", const string &className = "Tracer") : Commander(
17  title.empty() ? arguments{} : arguments{title},
18  className) {
19  }
20 
21  void set() {
22  command("set", {});
23  }
24 
25  void reset() {
26  command("reset", {});
27  }
28 };
29 
30 #endif
Definition: Tracer.h:6
Definition: Commander.h:14