2016-06-15 03:32:35 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "common.hpp"
|
|
|
|
|
2016-11-19 05:22:44 +00:00
|
|
|
POLYBAR_NS
|
2016-06-15 03:32:35 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Base class for non copyable objects
|
|
|
|
*/
|
|
|
|
class non_copyable_mixin {
|
2022-01-22 19:35:37 +00:00
|
|
|
public:
|
|
|
|
non_copyable_mixin(const non_copyable_mixin&) = delete;
|
|
|
|
non_copyable_mixin& operator=(const non_copyable_mixin&) = delete;
|
|
|
|
|
2016-06-15 03:32:35 +00:00
|
|
|
protected:
|
2022-10-15 21:21:40 +00:00
|
|
|
non_copyable_mixin() = default;
|
|
|
|
~non_copyable_mixin() = default;
|
2016-06-15 03:32:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Base class for non movable objects
|
|
|
|
*/
|
|
|
|
class non_movable_mixin {
|
2022-01-22 19:35:37 +00:00
|
|
|
public:
|
|
|
|
non_movable_mixin(non_movable_mixin&&) = delete;
|
|
|
|
non_movable_mixin& operator=(non_movable_mixin&&) = delete;
|
|
|
|
|
2016-06-15 03:32:35 +00:00
|
|
|
protected:
|
2022-10-15 21:21:40 +00:00
|
|
|
non_movable_mixin() = default;
|
|
|
|
~non_movable_mixin() = default;
|
2016-06-15 03:32:35 +00:00
|
|
|
};
|
|
|
|
|
2016-11-19 05:22:44 +00:00
|
|
|
POLYBAR_NS_END
|