MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / ActionCounter

Class ActionCounter

native/model/Graph.h:20–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18 typedef std::map<std::string, StatePtrSet> StatePtrStrMap;
19
20 struct ActionCounter {
21 private:
22
23 // Enum Act count
24 long actCount[ActionType::ActTypeSize];
25 long total;
26
27 public:
28 ActionCounter()
29 : actCount{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, total(0) {
30 }
31
32 void countAction(const ActivityStateActionPtr &action) {
33 actCount[action->getActionType()]++;
34 total++;
35 }
36
37 long getTotal() const { return total; }
38 };
39
40
41 class GraphListener {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected