Kanzi  3.9.5
Kanzi Engine API
kanzi::BindingHostConcept Class Reference

BindingHostConcept specifies an interface for adding and removing bindings to the binding host. More...

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

Inheritance diagram for kanzi::BindingHostConcept:
[legend]

Public Types

using BindingHostConceptSharedPtr = shared_ptr< BindingHostConcept >
 Binding host concept shared pointer type. More...
 
using BindingRuntimeConstIterator = BindingRuntimeContainer::const_iterator
 Const iterator for binding runtimes. More...
 
using BindingRuntimeContainer = vector< AbstractBindingRuntimeSharedPtr >
 Container for binding runtimes. More...
 
using BindingRuntimeIterator = BindingRuntimeContainer::iterator
 Iterator for binding runtimes. More...
 

Public Member Functions

BindingRuntimeConstIterator beginBindingRuntimes () const
 Returns an iterator to the beginning of binding runtimes. More...
 
BindingRuntimeConstIterator endBindingRuntimes () const
 Returns an iterator to the end of binding runtimes. More...
 
AbstractBindingRuntimeSharedPtr getBindingRuntime (size_t idx)
 Gets binding by index. More...
 
size_t getBindingRuntimeCount () const
 Gets the number of binding runtimes added to this node. More...
 
void removeAllBindings ()
 Removes all binding runtimes. More...
 
void removeBinding (AbstractBindingRuntime &bindingRuntime)
 Removes a binding runtime added earlier. More...
 
void removeBindingsWithOwner (shared_ptr< void > owner)
 Removes all binding runtimes with the specified owner. More...
 

Protected Member Functions

void attachBindings ()
 Attach all bindings stored in this object. More...
 
void detachBindings ()
 Detach bindings. More...
 

Protected Attributes

BindingRuntimeContainer m_bindingRuntimes
 Bindings in this object. More...
 

Detailed Description

BindingHostConcept specifies an interface for adding and removing bindings to the binding host.

Besides providing the interface, BindingHostConcept contains the binding runtimes.

Since
Kanzi.3.7.0

Member Typedef Documentation

◆ BindingRuntimeContainer

◆ BindingRuntimeIterator

using kanzi::BindingHostConcept::BindingRuntimeIterator = BindingRuntimeContainer::iterator

Iterator for binding runtimes.

◆ BindingRuntimeConstIterator

using kanzi::BindingHostConcept::BindingRuntimeConstIterator = BindingRuntimeContainer::const_iterator

Const iterator for binding runtimes.

◆ BindingHostConceptSharedPtr

Binding host concept shared pointer type.

Member Function Documentation

◆ removeBinding()

void kanzi::BindingHostConcept::removeBinding ( AbstractBindingRuntime bindingRuntime)

Removes a binding runtime added earlier.

Parameters
bindingRuntimeBinding runtime to remove.

◆ removeBindingsWithOwner()

void kanzi::BindingHostConcept::removeBindingsWithOwner ( shared_ptr< void >  owner)

Removes all binding runtimes with the specified owner.

Parameters
ownerOwner of the binding runtime.

◆ removeAllBindings()

void kanzi::BindingHostConcept::removeAllBindings ( )

Removes all binding runtimes.

◆ beginBindingRuntimes()

BindingRuntimeConstIterator kanzi::BindingHostConcept::beginBindingRuntimes ( ) const

Returns an iterator to the beginning of binding runtimes.

Returns
Const iterator to the beginning of binding runtimes.

◆ endBindingRuntimes()

BindingRuntimeConstIterator kanzi::BindingHostConcept::endBindingRuntimes ( ) const

Returns an iterator to the end of binding runtimes.

Returns
Const iterator to the end of binding runtimes.

◆ getBindingRuntime()

AbstractBindingRuntimeSharedPtr kanzi::BindingHostConcept::getBindingRuntime ( size_t  idx)

Gets binding by index.

Parameters
idxIndex of binding to retrieve.
Returns
Binding at index.

◆ getBindingRuntimeCount()

size_t kanzi::BindingHostConcept::getBindingRuntimeCount ( ) const

Gets the number of binding runtimes added to this node.

Returns
Number of bindings currently in the binding host.

◆ attachBindings()

void kanzi::BindingHostConcept::attachBindings ( )
protected

Attach all bindings stored in this object.

◆ detachBindings()

void kanzi::BindingHostConcept::detachBindings ( )
protected

Detach bindings.

Member Data Documentation

◆ m_bindingRuntimes

BindingRuntimeContainer kanzi::BindingHostConcept::m_bindingRuntimes
protected

Bindings in this object.


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