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. | |
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.
|
inlineexplicit |
Constructor.
| host | The Node or the RenderPass that owns the runtime binding. |
| binding | The runtime binding handler that this function removes on destruction of the Node or the RenderPass, that owns the runtime binding. |
|
explicitdefault |
Default constructor.
|
inline |
Destructor.
|
inline |
Sets the runtime binding.
| host | The Node or the RenderPass that owns the runtime binding. |
| binding | The runtime binding that this function removes on destruction of the Node or the RenderPass, that owns the runtime binding. |
|
inline |
Removes the stored runtime binding.