Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef CARTOGRAPHER_METRICS_GAUGE_H_
00018 #define CARTOGRAPHER_METRICS_GAUGE_H_
00019
00020 #include <map>
00021 #include <vector>
00022
00023 namespace cartographer {
00024 namespace metrics {
00025
00026 class Gauge {
00027 public:
00028
00029 static Gauge* Null();
00030
00031 virtual ~Gauge() = default;
00032 virtual void Increment() = 0;
00033 virtual void Increment(double by_value) = 0;
00034 virtual void Decrement() = 0;
00035 virtual void Decrement(double by_value) = 0;
00036 virtual void Set(double value) = 0;
00037 };
00038
00039 }
00040 }
00041
00042 #endif // CARTOGRAPHER_METRICS_GAUGE_H_