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

A model alias. More...

#include <document.hpp>

Public Attributes

std::string name
 The alias.
std::string path
 The declaration's JSON Pointer.
std::string type
 The model's registered type id.
InstanceMode instance = InstanceMode::Default
 How the instance binds.
ExprPtr key
 The key expression of a Keyed instance.
std::string borrowedFrom
 The opener's alias of a Borrowed instance.

Detailed Description

A model alias.

Definition at line 155 of file document.hpp.

Member Data Documentation

◆ name

std::string morph::ui::ModelDecl::name

The alias.

Definition at line 157 of file document.hpp.

◆ path

std::string morph::ui::ModelDecl::path

The declaration's JSON Pointer.

Definition at line 159 of file document.hpp.

◆ type

std::string morph::ui::ModelDecl::type

The model's registered type id.

Definition at line 161 of file document.hpp.

◆ instance

InstanceMode morph::ui::ModelDecl::instance = InstanceMode::Default

How the instance binds.

Definition at line 163 of file document.hpp.

◆ key

ExprPtr morph::ui::ModelDecl::key

The key expression of a Keyed instance.

Definition at line 165 of file document.hpp.

◆ borrowedFrom

std::string morph::ui::ModelDecl::borrowedFrom

The opener's alias of a Borrowed instance.

Definition at line 167 of file document.hpp.


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