aboutsummaryrefslogtreecommitdiff
path: root/src/doc/feature/proxy.dox
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-12-09 12:42:58 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-12-09 12:42:58 +0100
commite8e5412965f19d3966635a2c207d55ae1b12db51 (patch)
tree69ea4f5a6591e9f82e73651e6e728e0f7c003d65 /src/doc/feature/proxy.dox
parentb845376e270c060730d4f8b9b0946a63908871da (diff)
feature_savemgr
Diffstat (limited to 'src/doc/feature/proxy.dox')
-rw-r--r--src/doc/feature/proxy.dox38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/doc/feature/proxy.dox b/src/doc/feature/proxy.dox
new file mode 100644
index 0000000..02ed4a5
--- /dev/null
+++ b/src/doc/feature/proxy.dox
@@ -0,0 +1,38 @@
+// vim:ft=doxygen
+namespace crepe {
+/**
+
+\defgroup feature_proxy Proxy utility
+\ingroup feature
+\brief Use ValueBroker as if it were a regular variable
+
+\todo Long description
+
+\see ValueBroker
+\see Proxy
+
+\par Example
+
+```cpp
+#include <crepe/util/Proxy.h>
+#include <crepe/ValueBroker.h>
+
+int calculation(int value) {
+ return 3 * value;
+}
+
+void anywhere() {
+ crepe::ValueBroker<int> foo_handle;
+ crepe::Proxy foo = foo_handle;
+
+ // implicitly calls .set()
+ foo += 10;
+
+ // implicitly calls .get()
+ int out = calculation(foo);
+}
+
+```
+
+*/
+}