00001
00002
00003
00004
00005 #ifndef MEDIDA_SAMPLE_H_
00006 #define MEDIDA_SAMPLE_H_
00007
00008 #include <cstddef>
00009 #include <cstdint>
00010
00011 #include "medida/stats/snapshot.h"
00012
00013 namespace medida {
00014 namespace stats {
00015
00016 class Sample {
00017 public:
00018 virtual ~Sample() {};
00019 virtual void Clear() = 0;
00020 virtual std::uint64_t size() const = 0;
00021 virtual void Update(std::int64_t value) = 0;
00022 virtual Snapshot MakeSnapshot() const = 0;
00023 };
00024
00025 }
00026 }
00027
00028 #endif // MEDIDA_SAMPLE_H_