morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::ui::detail::ModelAlias Struct Reference

One model alias at run time: the instance it names, and the channel bound to it. More...

#include <interpreter.hpp>

Public Attributes

ModelDecl const * decl = nullptr
 The declaration.
InstanceMode mode = InstanceMode::Private
 Private, Shared, Keyed or Borrowed, the default resolved through the catalog.
reactive::Computed< std::string > * token = nullptr
 The instance token: what the cache key holds for the instance; empty while unbound (a null key).
std::shared_ptr< ModelChannel > channel
 The channel of the token it was last bound for.
std::string boundToken
 That token.

Detailed Description

One model alias at run time: the instance it names, and the channel bound to it.

Definition at line 1494 of file interpreter.hpp.

Member Data Documentation

◆ decl

ModelDecl const* morph::ui::detail::ModelAlias::decl = nullptr

The declaration.

Definition at line 1496 of file interpreter.hpp.

◆ mode

InstanceMode morph::ui::detail::ModelAlias::mode = InstanceMode::Private

Private, Shared, Keyed or Borrowed, the default resolved through the catalog.

Definition at line 1498 of file interpreter.hpp.

◆ token

reactive::Computed<std::string>* morph::ui::detail::ModelAlias::token = nullptr

The instance token: what the cache key holds for the instance; empty while unbound (a null key).

Definition at line 1500 of file interpreter.hpp.

◆ channel

std::shared_ptr<ModelChannel> morph::ui::detail::ModelAlias::channel

The channel of the token it was last bound for.

Definition at line 1502 of file interpreter.hpp.

◆ boundToken

std::string morph::ui::detail::ModelAlias::boundToken

That token.

Definition at line 1504 of file interpreter.hpp.


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