aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/util
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-07 18:57:04 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-07 18:57:04 +0100
commit9df087ede0b539ecbd2778236c7d1143362b384d (patch)
tree01a1c0c46da3a09137fcb9ca6e613fd1148f4df1 /src/crepe/util
parente36ea050972fcaaf3d85d672755bad4ebb2dcd80 (diff)
check code standard
Diffstat (limited to 'src/crepe/util')
-rw-r--r--src/crepe/util/Proxy.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/crepe/util/Proxy.h b/src/crepe/util/Proxy.h
index 65db04d..fbfed0c 100644
--- a/src/crepe/util/Proxy.h
+++ b/src/crepe/util/Proxy.h
@@ -4,10 +4,20 @@
namespace crepe {
+/**
+ * \brief Utility wrapper for \c ValueBroker
+ *
+ * This class can be used to to wrap a ValueBroker instance so it behaves like
+ * a regular variable.
+ *
+ * \tparam T Type of the underlying variable
+ */
template <typename T>
class Proxy {
public:
+ //! Set operator
Proxy & operator = (const T &);
+ //! Get operator
operator const T & ();
public: