KDBindings API Documentation
1.0.95
|
Provides a convenience for old-school, immediate mode Bindings. More...
#include <binding.h>
Public Member Functions | |
Binding ()=delete | |
Binding (Binding &&other)=delete | |
Binding (Binding const &other)=delete | |
Binding (Private::Node< T > &&rootNode) | |
Construct a new Binding with an immediate mode evaluator. More... | |
virtual | ~Binding ()=default |
void | markDirty () override |
Binding & | operator= (Binding &&other)=delete |
Binding & | operator= (Binding const &other)=delete |
Public Member Functions inherited from KDBindings::Binding< T, BindingEvaluator > | |
Binding ()=delete | |
Binding (Binding &&other)=delete | |
Binding (Binding const &other)=delete | |
Binding (Private::Node< T > &&rootNode, BindingEvaluator const &evaluator) | |
Construct a new Binding with a specific evaluator. More... | |
~Binding () override | |
void | evaluate () |
T | get () const override |
Binding & | operator= (Binding &&other)=delete |
Binding & | operator= (Binding const &other)=delete |
void | setUpdateFunction (std::function< void(T &&)> const &updateFunction) override |
Public Member Functions inherited from KDBindings::PropertyUpdater< T > | |
PropertyUpdater ()=default | |
PropertyUpdater (PropertyUpdater &&other)=default | |
PropertyUpdater (PropertyUpdater const &other)=default | |
virtual | ~PropertyUpdater ()=default |
PropertyUpdater & | operator= (PropertyUpdater &&other)=default |
PropertyUpdater & | operator= (PropertyUpdater const &other)=default |
Additional Inherited Members | |
Protected Member Functions inherited from KDBindings::Binding< T, BindingEvaluator > | |
const bool * | dirtyVariable () const override |
Private::Dirtyable ** | parentVariable () override |
Protected Attributes inherited from KDBindings::Binding< T, BindingEvaluator > | |
int | m_bindingId |
BindingEvaluator | m_evaluator |
std::function< void(T &&)> | m_propertyUpdateFunction |
Private::Node< T > | m_rootNode |
Provides a convenience for old-school, immediate mode Bindings.
This works in conjunction with a do-nothing ImmediateBindingEvaluator class to update the result of the Binding immediately upon any of the dependent bindables (i.e. Property instances) notifying that they have changed. This can lead to a Property Binding being evaluated many times before the result is ever used in a typical GUI application.
T | The type of the value that the Binding expression evaluates to. |
|
inlineexplicit |
|
delete |
A Binding is not default constructible.
|
virtualdefault |
|
delete |
A Binding cannot be copy constructed.
|
delete |
A Binding can not be move constructed.
|
inlineoverride |
Definition at line 225 of file binding.h.
References KDBindings::Binding< T, EvaluatorT >::evaluate().
|
delete |
A Binding can not be move assigned.
|
delete |
A Binding cannot be copy assigned.