X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fclock-class.hpp;h=8fc1cb4cd00972860d5e6df9b0e36f071df6510e;hb=28f23191dcbf047429d51950a337a57d7a3f866a;hp=3a4755d07cb08a682b57675e69546ee61af88b82;hpb=0220be14254fac4f7af642fd6630282b29776a70;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/clock-class.hpp b/src/bin/lttng-sessiond/clock-class.hpp index 3a4755d07..8fc1cb4cd 100644 --- a/src/bin/lttng-sessiond/clock-class.hpp +++ b/src/bin/lttng-sessiond/clock-class.hpp @@ -10,6 +10,7 @@ #include #include + #include #include @@ -30,6 +31,15 @@ class clock_class { public: using cycles_t = uint64_t; using scycles_t = int64_t; + using cuptr = std::unique_ptr; + + virtual ~clock_class() = default; + clock_class(const clock_class&) = delete; + clock_class(clock_class&&) = delete; + clock_class& operator=(clock_class&&) = delete; + clock_class& operator=(const clock_class&) = delete; + + virtual void accept(trace_class_visitor& visitor) const; const std::string name; const std::string description; @@ -37,15 +47,12 @@ public: const scycles_t offset; const cycles_t frequency; - virtual void accept(trace_class_visitor& visitor) const; - virtual ~clock_class() = default; - protected: clock_class(std::string name, - std::string description, - nonstd::optional uuid, - scycles_t offset, - cycles_t frequency); + std::string description, + nonstd::optional uuid, + scycles_t offset, + cycles_t frequency); }; } /* namespace trace */