47 std::map<int, std::function<void()>> m_bindingEvalFunctions;
94 for (
auto &[
id, func] : m_d->m_bindingEvalFunctions)
99 template<
typename BindingType>
100 int insert(BindingType *binding)
102 m_d->m_bindingEvalFunctions.insert({ ++(m_d->m_currentId),
103 [=]() { binding->evaluate(); } });
104 return m_d->m_currentId;
109 m_d->m_bindingEvalFunctions.erase(
id);
112 std::shared_ptr<Private> m_d{ std::make_shared<Private>() };
114 template<
typename T,
typename UpdaterT>
A BindingEvaluator provides a mechanism to control the exact time when a KDBindings::Binding is reeva...
BindingEvaluator & operator=(const BindingEvaluator &) noexcept=default
BindingEvaluator(BindingEvaluator &&other) noexcept=delete
BindingEvaluator()=default
BindingEvaluator & operator=(BindingEvaluator &&other) noexcept=delete
BindingEvaluator(const BindingEvaluator &) noexcept=default
A combination of a root Node with an evaluator.
The main namespace of the KDBindings library.