aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/ValueBroker.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-03 15:09:05 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-03 15:09:05 +0100
commita2607bffb1c0f8699021b1b4b3e54fa372e3ed0a (patch)
tree6ce416f4be55b9d8e3f73d6556450ee86f18774e /src/crepe/ValueBroker.h
parent83ce876b4c1b12c3654413515840f5f71907ea6c (diff)
more WIP savemanager
Diffstat (limited to 'src/crepe/ValueBroker.h')
-rw-r--r--src/crepe/ValueBroker.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/crepe/ValueBroker.h b/src/crepe/ValueBroker.h
index 9d30a2e..c3359a1 100644
--- a/src/crepe/ValueBroker.h
+++ b/src/crepe/ValueBroker.h
@@ -10,14 +10,13 @@ public:
virtual void set(const T &);
virtual const T & get();
- typedef std::function<void(T & value, const T & target)> setter_t;
- typedef std::function<const T & (T & value)> getter_t;
+ typedef std::function<void(const T & target)> setter_t;
+ typedef std::function<const T & ()> getter_t;
private:
- T & value;
setter_t setter;
getter_t getter;
public:
- ValueBroker(T &, const setter_t &, const getter_t &);
+ ValueBroker(const setter_t &, const getter_t &);
ValueBroker(T &);
};