MCPcopy Create free account
hub / github.com/AutonomousFieldRoboticsLab/SVIn / DummyStatsCollector

Class DummyStatsCollector

pose_graph/include/utils/Statistics.h:121–128  ·  view source on GitHub ↗

A class that has the statistics interface but does nothing. Swapping this in in place of the Statistics class (say with a typedef) eliminates the function calls.

Source from the content-addressed store, hash-verified

119// in place of the Statistics class (say with a typedef) eliminates the function
120// calls.
121class DummyStatsCollector {
122 public:
123 explicit DummyStatsCollector(size_t /*handle*/) {}
124 explicit DummyStatsCollector(std::string const& /*tag*/) {}
125 void AddSample(double /*sample*/) const {}
126 void IncrementOne() const {}
127 size_t GetHandle() const { return 0u; }
128};
129
130class StatsCollectorImpl {
131 public:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected