Lines Matching refs:KeyType
37 template <typename KeyType, typename MappedType> struct DefaultWeakGCMapFinalizerCallback {
38 static void* finalizerContextFor(KeyType key)
43 static KeyType keyForFinalizer(void* context, typename HandleTypes<MappedType>::ExternalType)
45 return reinterpret_cast<KeyType>(context);
49 template<typename KeyType, typename MappedType, typename FinalizerCallback = DefaultWeakGCMapFinalizerCallback<KeyType, MappedType>, typename HashArg = typename DefaultHash<KeyType>::Hash, typename KeyTraitsArg = HashTraits<KeyType> >
54 typedef HashMap<KeyType, HandleSlot, HashArg, KeyTraitsArg> MapType;
67 std::pair<KeyType, ExternalType> get() const { return std::make_pair(m_iterator->first, HandleTypes<MappedType>::getFromSlot(m_iterator->second)); }
68 std::pair<KeyType, HandleSlot> getSlot() const { return *m_iterator; }
95 bool contains(const KeyType& key) const
100 iterator find(const KeyType& key)
114 ExternalType get(const KeyType& key) const
119 HandleSlot getSlot(const KeyType& key) const
124 pair<iterator, bool> add(JSGlobalData& globalData, const KeyType& key, ExternalType value)
145 void set(JSGlobalData& globalData, const KeyType& key, ExternalType value)
158 ExternalType take(const KeyType& key)