morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::model::ModelKeyTraits< Model > Struct Template Reference

The key type of a model, when one has been declared for it. More...

#include <model_key.hpp>

Detailed Description

template<typename Model>
struct morph::model::ModelKeyTraits< Model >

The key type of a model, when one has been declared for it.

Specialised by BRIDGE_MODEL_KEY (and BRIDGE_MODEL_KEY_FROM_RESULT); BRIDGE_KEY_FROM emits only ActionKeyTraits and deliberately leaves this alone, since the model's key type is already established by its one BRIDGE_MODEL_KEY line. The primary template is deliberately empty: a model with neither this specialisation nor a nested alias is simply unkeyed.

Template Parameters
ModelConcrete model type.

Definition at line 94 of file model_key.hpp.


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