33#include <NDEVR/ResourceListener.h>
37 class Resource final :
public ResourceBase
49 void set(
const T& info,
bool check_equal =
true)
58 void set(T&& info,
bool check_equal =
true)
64 std::swap(m_value, info);
85 return value == m_value;
Definition ResourceListener.h:40
void refreshListeners()
Definition ResourceListener.cpp:62
Resource(const Resource< T > &value)=delete
Resource(const T &value)
Definition Resource.h:40
T & getModifiable()
Definition Resource.h:77
const T & get() const
Definition Resource.h:67
virtual ~Resource()
Definition Resource.h:47
bool isEqualTo(const T &value) const
Definition Resource.h:83
void set(T &&info, bool check_equal=true)
Definition Resource.h:58
Resource< T > & operator=(const Resource< T > &)=delete
void getCopy(T ©) const
Definition Resource.h:72
void set(const T &info, bool check_equal=true)
Definition Resource.h:49