|
morph 0.1.0
Asynchronous bridge between GUI thread and business models
|
The interpreter's view of the bridge: binds a model by its type id, privately or to a shared instance. More...
#include <interpreter.hpp>
Public Member Functions | |
| Dispatcher (Dispatcher const &)=delete | |
| Dispatcher & | operator= (Dispatcher const &)=delete |
| Dispatcher (Dispatcher &&)=delete | |
| Dispatcher & | operator= (Dispatcher &&)=delete |
| virtual std::shared_ptr< ModelChannel > | bind (std::string const &typeId, bridge::BindSharing sharing, std::string const &instanceKey)=0 |
| Binds a model. | |
The interpreter's view of the bridge: binds a model by its type id, privately or to a shared instance.
Definition at line 94 of file interpreter.hpp.
|
nodiscardpure virtual |
Binds a model.
| typeId | The model's registered type id. |
| sharing | Private, or shared. |
| instanceKey | For a shared binding, the instance key; empty for the model's shared singleton. |
Implemented in morph::ui::BridgeDispatcher, and morph::ui::QueueingDispatcher.