Expression binding source collects expression value sources and executes operations on the values to produce a read result. More...
#include <kanzi/core.ui/binding/expression_binding_source.hpp>
Public Types | |
typedef vector< BindingExpressionOpCode > | BindingOperationContainer |
Container for binding expressions. | |
typedef vector< AbstractExpressionValueSourceSharedPtr > | ValueSourceContainer |
Container for expression value source create info. | |
Public Member Functions | |
BindingOperationContainer::iterator | beginBindingOperations () |
Gets an iterator to the beginning of binding operations. | |
BindingOperationContainer::const_iterator | beginBindingOperations () const |
Gets an iterator to the beginning of binding operations. | |
ValueSourceContainer::const_iterator | beginDataSources () const |
Gets an iterator to the beginning of create infos for data source expression value sources. | |
AbstractBinding::BindingProcessorContainer::iterator | beginOperationProcessors () |
Gets an iterator to the beginning of binding operation processors. | |
AbstractBinding::BindingProcessorContainer::const_iterator | beginOperationProcessors () const |
Gets an iterator to the beginning of binding operation processors. | |
ValueSourceContainer::const_iterator | beginValueSources () const |
Gets an iterator to the beginning of create infos for expression value sources. | |
BindingOperationContainer::iterator | endBindingOperations () |
Gets an iterator to the end of binding operations. | |
BindingOperationContainer::const_iterator | endBindingOperations () const |
Gets an iterator to the end of binding operations. | |
ValueSourceContainer::const_iterator | endDataSources () const |
Gets an iterator to the end of create infos for data source expression value sources. | |
AbstractBinding::BindingProcessorContainer::iterator | endOperationProcessors () |
Gets an iterator to the end of binding operation processors. | |
AbstractBinding::BindingProcessorContainer::const_iterator | endOperationProcessors () const |
Gets an iterator to the end of binding operation processors. | |
ValueSourceContainer::const_iterator | endValueSources () const |
Gets an iterator to the end of create infos for expression value sources. | |
Variant * | getTemporaryRegister (size_t idx) |
Accesses temporary register. | |
const Variant * | getTemporaryRegister (size_t idx) const |
Accesses temporary register. | |
bool | hasFixedOperations () const |
Tells if the source contains fixed operations. | |
bool | isCurrentValueRequired () const |
Tells if current value is required. | |
Variant * | resolveRegister (BindingExpressionArgumentType argumentType) |
Resolve register by index. | |
Public Member Functions inherited from kanzi::BindingSource | |
BindingSourceRuntimePtr | createRuntime () |
Creates binding source runtime. | |
virtual | ~BindingSource () |
Destructor. | |
Protected Member Functions | |
BindingSourceRuntimePtr | createRuntimeOverride () override |
BindingSource::createRuntime implementation. | |
ExpressionBindingSource (const BindingOperationContainer operations, const AbstractBinding::BindingProcessorContainer operationProcessors, const ValueSourceContainer &valueSources, const ValueSourceContainer &dataSources, const vector< Variant > &constantRegisters, size_t temporaryCount) | |
Constructor. | |
Protected Member Functions inherited from kanzi::BindingSource | |
BindingSource () | |
Constructor. | |
Protected Attributes | |
ValueSourceContainer | m_dataSources |
Data source expression value sources. | |
bool | m_hasFixedOperations |
Tells whether or not the binding contains fixed operations. | |
bool | m_isCurrentValueRequired |
Tells if current value is required. | |
AbstractBinding::BindingProcessorContainer | m_operationProcessors |
Binding operation processors that you can refer to from individual binding ops. | |
BindingOperationContainer | m_operations |
Binding operations. | |
vector< Variant > | m_registers [2] |
Registers for the expression binding source. | |
ValueSourceContainer | m_valueSources |
Expression value sources. | |
Expression binding source collects expression value sources and executes operations on the values to produce a read result.
typedef vector<AbstractExpressionValueSourceSharedPtr> kanzi::ExpressionBindingSource::ValueSourceContainer |
Container for expression value source create info.
Container for binding expressions.
|
protected |
Constructor.
operations | Binding operations. |
operationProcessors | Binding processors for the binding operations. |
valueSources | Binding expression value sources for the expression binding source. |
dataSources | Binding expression data sources for the expression binding source. |
constantRegisters | Constant registers. |
temporaryCount | Number of temporary registers. |
|
static |
Creates an expression binding source.
operations | Binding operations. |
operationProcessors | Binding processors for the binding operations. |
valueSources | Binding expression value sources for the expression binding source. |
dataSources | Binding expression data sources for the expression binding source. |
constantRegisters | Constant registers. |
temporaryCount | Number of temporary registers. |
|
inlinestatic |
Creates an expression binding source.
No operation binding processors are specified.
operations | Binding operations. |
valueSources | Binding expression value sources for the expression binding source. |
dataSources | Binding expression data sources for the expression binding source. |
constantRegisters | Constant registers. |
temporaryCount | Number of temporary registers. |
|
inlinestatic |
Creates an expression binding source.
No operation binding processors or data sources are specified.
operations | Binding operations. |
valueSources | Binding expression value sources for the expression binding source. |
constantRegisters | Constant registers. |
temporaryCount | Number of temporary registers. |
|
static |
Creates an object property binding source.
Creates one WRITE directive.
path | Path to object. |
propertyType | Property type to listen to. |
field | Property field to read. |
|
inline |
Gets an iterator to the beginning of create infos for expression value sources.
|
inline |
Gets an iterator to the end of create infos for expression value sources.
|
inline |
Gets an iterator to the beginning of create infos for data source expression value sources.
|
inline |
Gets an iterator to the end of create infos for data source expression value sources.
|
inline |
Gets an iterator to the beginning of binding operations.
|
inline |
Gets an iterator to the beginning of binding operations.
|
inline |
Gets an iterator to the end of binding operations.
|
inline |
Gets an iterator to the end of binding operations.
|
inline |
Gets an iterator to the beginning of binding operation processors.
|
inline |
Gets an iterator to the beginning of binding operation processors.
|
inline |
Gets an iterator to the end of binding operation processors.
|
inline |
Gets an iterator to the end of binding operation processors.
|
inline |
Accesses temporary register.
idx | Index. |
Accesses temporary register.
idx | Index. |
|
inline |
Tells if current value is required.
If current value is required, the binding can only be executed when the value has been provided.
|
inline |
Tells if the source contains fixed operations.
Fixed operations imply manual execution, and will not trigger the binding when source value changes.
Variant * kanzi::ExpressionBindingSource::resolveRegister | ( | BindingExpressionArgumentType | argumentType | ) |
Resolve register by index.
argumentType | Argument to resolve. |
|
overrideprotectedvirtual |
BindingSource::createRuntime implementation.
Implements kanzi::BindingSource.
|
protected |
Binding operations.
|
protected |
Binding operation processors that you can refer to from individual binding ops.
This is separate from the normal binding processors.
|
protected |
Registers for the expression binding source.
Index 0 are the temporary registers, index 1 are the constant registers.
|
protected |
Expression value sources.
|
protected |
Data source expression value sources.
|
protected |
Tells if current value is required.
|
protected |
Tells whether or not the binding contains fixed operations.