7 #include "qnstgraphicsentity.h"
23 const QMap<QString, QString> &props = (QMap<QString,QString>()));
95 static std::map <Qnst::EntityType, QString> iconFromTypeMap;
96 static std::map <QString, Qnst::EntityType> typeFromExtMap;
97 static std::map <QString, Qnst::EntityType> typeFromStr;
98 static std::map <Qnst::EntityType, QString> strFromType;
99 static std::map <Qnst::EntityType, QString> prefixIdFromType;
100 static std::map <QString, Qnst::BindType> bindTypeFromRoleStr;
101 static std::map <Qnst::BindType, QString> strFromBindType;
107 template <
typename T,
typename U>
111 std::map<T, U> m_map;
125 operator std::map<T, U>()
134 template<
typename K,
typename V>
135 std::pair<V, K> flip_pair(
const std::pair<K, V>& p)
137 return std::make_pair(p.second, p.first);
144 template <
typename K,
typename V>
145 std::map <K, V> invert_map (
const std::map <V, K> &in)
148 std::transform(in.begin(), in.end(),
149 std::inserter(out, out.begin()),