X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fclock-class.hpp;fp=src%2Fbin%2Flttng-sessiond%2Fclock-class.hpp;h=fd130fc186ff3a44a5cbbb69861d23ffa04e9025;hp=58adc8eac5192a605fd85bdd6b75edd677ddd027;hb=9d89db29f3bf6c826293350f8f1a8559ec906b24;hpb=1a12551012430c38186da14611dd4921e7319d20 diff --git a/src/bin/lttng-sessiond/clock-class.hpp b/src/bin/lttng-sessiond/clock-class.hpp index 58adc8eac..fd130fc18 100644 --- a/src/bin/lttng-sessiond/clock-class.hpp +++ b/src/bin/lttng-sessiond/clock-class.hpp @@ -32,21 +32,26 @@ public: 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; const nonstd::optional uuid; 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 */