SMTK  @SMTK_VERSION@
Simulation Modeling Tool Kit
Public Attributes | List of all members
smtk::extension::qtDescriptivePhraseModel::Internal Class Reference

Private storage for qtDescriptivePhraseModel. More...

Collaboration diagram for smtk::extension::qtDescriptivePhraseModel::Internal:
[legend]

Public Attributes

std::map< unsigned int, view::WeakDescriptivePhrasePtrptrs
 Store a map of weak pointers to phrases by their phrase IDs. More...
 

Detailed Description

Private storage for qtDescriptivePhraseModel.

Member Data Documentation

◆ ptrs

std::map<unsigned int, view::WeakDescriptivePhrasePtr> smtk::extension::qtDescriptivePhraseModel::Internal::ptrs

Store a map of weak pointers to phrases by their phrase IDs.

We hold a strong pointer to the phrase-model in qtDescriptivePhraseModel::m_model. The phrase-model owns the root of the descriptive phrase hierarchy. This map is a reverse lookup of pointers to subphrases by integer handles that Qt can associate with QModelIndex entries.

This all exists because Qt is lame and cannot associate shared pointers with QModelIndex entries.


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