63 typedef QMap<QString, Mode::Ptr>::const_iterator const_iterator;
64 typedef QMap<QString, Mode::Ptr>::iterator iterator;
66 Mode::Ptr append(Mode::Ptr mode);
67 Mode::Ptr remove(Mode::Ptr mode);
70 Mode::Ptr get(
const QString &name)
const
72 if (m_modes.contains(name))
79 template <
typename _Tp> _Tp* getT(
const QString &name)
const
82 if (m_modes.contains(name))
84 Mode::Ptr p = m_modes[name];
87 ptr =
dynamic_cast<_Tp*
>(p.data());
94 const_iterator constBegin()
const
96 return m_modes.constBegin();
98 const_iterator constEnd()
const
100 return m_modes.constEnd();
105 return m_modes.begin();
109 return m_modes.end();
114 QMap<QString, Mode::Ptr> m_modes;