RADLib
RADical C++ application framework
RADUi::Binding Class Reference

RAII-style binding handle that keeps a bridge object alive until disconnected. More...

#include <RADUi.h>

Public Member Functions

 Binding ()=default
 Creates an empty, disconnected binding. More...
 
 Binding (std::shared_ptr< RADCore::RADObject > owner)
 Creates a binding that owns owner for the lifetime of the binding. More...
 
void disconnect ()
 Releases the owned bridge object and disconnects future delivery. More...
 
bool isConnected () const
 Returns true when this binding still owns a bridge object. More...
 

Detailed Description

RAII-style binding handle that keeps a bridge object alive until disconnected.

Constructor & Destructor Documentation

◆ Binding() [1/2]

RADUi::Binding::Binding ( )
default

Creates an empty, disconnected binding.

◆ Binding() [2/2]

RADUi::Binding::Binding ( std::shared_ptr< RADCore::RADObject owner)
explicit

Creates a binding that owns owner for the lifetime of the binding.

Member Function Documentation

◆ disconnect()

void RADUi::Binding::disconnect ( )

Releases the owned bridge object and disconnects future delivery.

◆ isConnected()

bool RADUi::Binding::isConnected ( ) const

Returns true when this binding still owns a bridge object.


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