summaryrefslogtreecommitdiffhomepage
path: root/options/value.cpp
blob: 77f8d5012dc7f1a7daff0ee23db9a97a80cf9ab3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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);
}

}