Kanzi  3.9.9
Kanzi Engine C++ API
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 (BindingHostConceptSharedPtr host, BindingRuntimeHandle binding)
 Constructor. More...
 
 BindingToken ()=default
 Default constructor. More...
 
void removeBinding ()
 Removes the stored runtime binding. More...
 
void setHostAndBinding (BindingHostConceptSharedPtr host, BindingRuntimeHandle binding)
 Sets the runtime binding. More...
 
 ~BindingToken ()
 Destructor. More...
 

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

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.
kanzi::BindingToken::BindingToken ( )
explicitdefault

Default constructor.

kanzi::BindingToken::~BindingToken ( )
inline

Destructor.

Member Function Documentation

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.
void kanzi::BindingToken::removeBinding ( )
inline

Removes the stored runtime binding.


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