Kanzi  3.9.4
Kanzi Engine API
kanzi::ConstraintBindingProcessorRuntime< T > Struct Template Reference

Holds the runtime state of a ConstraintBindingProcessor. More...

#include <kanzi/core.ui/binding/constraint_binding_processor_runtime.hpp>

Inheritance diagram for kanzi::ConstraintBindingProcessorRuntime< T >:
[legend]

Static Public Member Functions

static unique_ptr< ConstraintBindingProcessorRuntime< T > > create (ConstraintBindingProcessor &processor)
 Creates an ConstraintBindingProcessorRuntime. More...
 

Protected Member Functions

void attachOverride (AbstractBindingRuntime &bindingRuntime, BindingLookupContext &lookupContext) override
 BindingProcessorRuntime::attachOverride() implementation. More...
 
 ConstraintBindingProcessorRuntime (ConstraintBindingProcessor &processor)
 Constructor. More...
 
void detachOverride () override
 BindingProcessorRuntime::detachOverride() implementation. More...
 
bool validateOverride (Variant &value) override
 BindingProcessorRuntime::validateOverride() implementation. More...
 
- Protected Member Functions inherited from kanzi::BindingProcessorRuntime
 BindingProcessorRuntime (BindingProcessor &processor)
 Constructor. More...
 

Protected Attributes

Nodem_node
 The node who's change flag is set on validate. More...
 
optional< Tm_value
 Last value from the validator. Used to detect change. More...
 
- Protected Attributes inherited from kanzi::BindingProcessorRuntime
AbstractBindingRuntimem_bindingRuntime
 The binding runtime containing the BindingProcessorRuntime. More...
 
BindingLookupContextm_lookupContext
 Binding lookup context for the processor. More...
 
BindingProcessorm_processor
 The processor whose runtime state is held by the BindingProcessorRuntime. More...
 

Additional Inherited Members

- Public Member Functions inherited from kanzi::BindingProcessorRuntime
void attach (AbstractBindingRuntime &bindingRuntime, BindingLookupContext &lookupContext)
 Called when the binding source or target runtime containing the processor runtime is being attached. More...
 
void detach ()
 Called when the binding source or target runtime containing the processor runtime is being detached. More...
 
AbstractBindingRuntimegetBindingRuntime () const
 Gets the binding runtime. More...
 
BindingProcessorgetProcessor () const
 Gets the binding processor. More...
 
bool validate (Variant &value)
 Returns true if the BindingProcessorRuntime has a valid state. More...
 
virtual ~BindingProcessorRuntime ()=default
 Destructor. More...
 

Detailed Description

template<typename T>
struct kanzi::ConstraintBindingProcessorRuntime< T >

Holds the runtime state of a ConstraintBindingProcessor.

Since
Kanzi 3.9.3

Constructor & Destructor Documentation

◆ ConstraintBindingProcessorRuntime()

template<typename T >
kanzi::ConstraintBindingProcessorRuntime< T >::ConstraintBindingProcessorRuntime ( ConstraintBindingProcessor processor)
inlineexplicitprotected

Constructor.

Parameters
processorThe ConstraintBindingProcessor who's runtime state is held by the created ConstraintBindingProcessorRuntime.

Member Function Documentation

◆ create()

template<typename T >
static unique_ptr<ConstraintBindingProcessorRuntime<T> > kanzi::ConstraintBindingProcessorRuntime< T >::create ( ConstraintBindingProcessor processor)
inlinestatic

Creates an ConstraintBindingProcessorRuntime.

Parameters
processorThe ConstraintBindingProcessor who's runtime state is held by the created ConstraintBindingProcessorRuntime.
Returns
A ConstraintBindingProcessorRuntime instance.

◆ attachOverride()

template<typename T >
void kanzi::ConstraintBindingProcessorRuntime< T >::attachOverride ( AbstractBindingRuntime bindingRuntime,
BindingLookupContext lookupContext 
)
inlineoverrideprotectedvirtual

◆ detachOverride()

template<typename T >
void kanzi::ConstraintBindingProcessorRuntime< T >::detachOverride ( )
inlineoverrideprotectedvirtual

◆ validateOverride()

template<typename T >
bool kanzi::ConstraintBindingProcessorRuntime< T >::validateOverride ( Variant value)
inlineoverrideprotectedvirtual

Member Data Documentation

◆ m_node

template<typename T >
Node* kanzi::ConstraintBindingProcessorRuntime< T >::m_node
protected

The node who's change flag is set on validate.

◆ m_value

template<typename T >
optional<T> kanzi::ConstraintBindingProcessorRuntime< T >::m_value
protected

Last value from the validator. Used to detect change.


The documentation for this struct was generated from the following file: