SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
Private storage for qtDescriptivePhraseModel. More...
Public Attributes | |
std::map< unsigned int, view::WeakDescriptivePhrasePtr > | ptrs |
Store a map of weak pointers to phrases by their phrase IDs. More... | |
Private storage for qtDescriptivePhraseModel.
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.