summaryrefslogtreecommitdiffhomepage
path: root/options/value.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-09-06 20:11:30 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-09-08 17:50:12 +0200
commit48929d7c87b7c809d9e94b5e7c6175ee300cb227 (patch)
tree6651559469ccaddac7c348ba70b2ff40164e33f2 /options/value.cpp
parentaf4860aca9ba4afd333f6ab979df88798b0ec0c2 (diff)
options/value: move from header
Diffstat (limited to 'options/value.cpp')
-rw-r--r--options/value.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/options/value.cpp b/options/value.cpp
new file mode 100644
index 00000000..77f8d501
--- /dev/null
+++ b/options/value.cpp
@@ -0,0 +1,20 @@
+#include "value.hpp"
+
+
+namespace options {
+
+base_value::base_value(bundle b, const QString& name, base_value::comparator cmp, std::type_index type_idx) :
+ b(b),
+ self_name(name),
+ cmp(cmp),
+ type_index(type_idx)
+{
+ b->on_value_created(name, this);
+}
+
+base_value::~base_value()
+{
+ b->on_value_destructed(self_name, this);
+}
+
+}