Kanzi 3.9.10
kanzi::BindingToken Class Reference

Helper class that manages the lifetime of the runtime binding owned by a Node or a RenderPass, by removing the owned binding on the destruction of that Node or the RenderPass. More...

#include <kanzi/ui/node/concept/activity/binding_token.hpp>

Public Member Functions

 BindingToken ()=default
 Default constructor.
 
 BindingToken (BindingHostConceptSharedPtr host, BindingRuntimeHandle binding)
 Constructor.
 
void removeBinding ()
 Removes the stored runtime binding.
 
void setHostAndBinding (BindingHostConceptSharedPtr host, BindingRuntimeHandle binding)
 Sets the runtime binding.
 
 ~BindingToken ()
 Destructor.
 

Detailed Description

Helper class that manages the lifetime of the runtime binding owned by a Node or a RenderPass, by removing the owned binding on the destruction of that Node or the RenderPass.

Since
Kanzi 3.9.0

Constructor & Destructor Documentation

◆ BindingToken() [1/2]

kanzi::BindingToken::BindingToken ( BindingHostConceptSharedPtr host,
BindingRuntimeHandle binding )
inlineexplicit

Constructor.

Parameters
hostThe Node or the RenderPass that owns the runtime binding.
bindingThe runtime binding handler that this function removes on destruction of the Node or the RenderPass, that owns the runtime binding.
Since
Kanzi 3.9.7 changed AbstractBindingRuntimeSharedPtr to BindingRuntimeHandle.

◆ BindingToken() [2/2]

kanzi::BindingToken::BindingToken ( )
explicitdefault

Default constructor.

◆ ~BindingToken()

kanzi::BindingToken::~BindingToken ( )
inline

Destructor.

Member Function Documentation

◆ setHostAndBinding()

void kanzi::BindingToken::setHostAndBinding ( BindingHostConceptSharedPtr host,
BindingRuntimeHandle binding )
inline

Sets the runtime binding.

Parameters
hostThe Node or the RenderPass that owns the runtime binding.
bindingThe runtime binding that this function removes on destruction of the Node or the RenderPass, that owns the runtime binding.
Since
Kanzi 3.9.7 changed AbstractBindingRuntimeSharedPtr to BindingRuntimeHandle.

◆ removeBinding()

void kanzi::BindingToken::removeBinding ( )
inline

Removes the stored runtime binding.


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