51inline void save(Archive & ar,
const QHash<Key, Value> & t,
const unsigned int file_version)
53 Q_UNUSED(file_version);
54 long lCount = t.count();
55 ar << boost::serialization::make_nvp(
"count", lCount);
57 QHashIterator<Key, Value> itr(t);
61 std::pair<Key, Value> pair_key_value = std::make_pair(itr.key(), itr.value());
62 ar << boost::serialization::make_nvp(
"item", pair_key_value);
67inline void load(Archive & ar, QHash<Key, Value> & t,
const unsigned int file_version)
69 Q_UNUSED(file_version);
71 ar >> boost::serialization::make_nvp(
"count", lCount);
75 std::pair<Key, Value> pair_key_value;
77 for (
long l = 0; l < lCount; l++)
79 ar >> boost::serialization::make_nvp(
"item", pair_key_value);
80 t.insert(pair_key_value.first, pair_key_value.second);