Lines Matching defs:KeyT

19 // parameters should inherit from ValueMapConfig<KeyT> to get default
46 template<typename KeyT, typename ValueT, typename Config>
48 template<typename DenseMapT, typename KeyT>
50 template<typename DenseMapT, typename KeyT>
56 template<typename KeyT, typename MutexT = sys::Mutex>
71 static void onRAUW(const ExtraDataT & /*Data*/, KeyT /*Old*/, KeyT /*New*/) {}
73 static void onDelete(const ExtraDataT &/*Data*/, KeyT /*Old*/) {}
84 template<typename KeyT, typename ValueT, typename Config =ValueMapConfig<KeyT>>
86 friend class ValueMapCallbackVH<KeyT, ValueT, Config>;
88 using ValueMapCVH = ValueMapCallbackVH<KeyT, ValueT, Config>;
98 using key_type = KeyT;
100 using value_type = std::pair<KeyT, ValueT>;
132 using iterator = ValueMapIterator<MapT, KeyT>;
133 using const_iterator = ValueMapConstIterator<MapT, KeyT>;
152 size_type count(const KeyT &Val) const {
156 iterator find(const KeyT &Val) {
159 const_iterator find(const KeyT &Val) const {
165 ValueT lookup(const KeyT &Val) const {
173 std::pair<iterator, bool> insert(const std::pair<KeyT, ValueT> &KV) {
178 std::pair<iterator, bool> insert(std::pair<KeyT, ValueT> &&KV) {
191 bool erase(const KeyT &Val) {
203 value_type& FindAndConstruct(const KeyT &Key) {
207 ValueT &operator[](const KeyT &Key) {
229 ValueMapCVH Wrap(KeyT key) const {
240 template <typename KeyT, typename ValueT, typename Config>
242 friend class ValueMap<KeyT, ValueT, Config>;
245 using ValueMapT = ValueMap<KeyT, ValueT, Config>;
246 using KeySansPointerT = typename std::remove_pointer<KeyT>::type;
250 ValueMapCallbackVH(KeyT Key, ValueMapT *Map)
258 KeyT Unwrap() const { return cast_or_null<KeySansPointerT>(getValPtr()); }
281 KeyT typed_new_key = cast<KeySansPointerT>(new_key);
297 template<typename KeyT, typename ValueT, typename Config>
298 struct DenseMapInfo<ValueMapCallbackVH<KeyT, ValueT, Config>> {
299 using VH = ValueMapCallbackVH<KeyT, ValueT, Config>;
310 return DenseMapInfo<KeyT>::getHashValue(Val.Unwrap());
313 static unsigned getHashValue(const KeyT &Val) {
314 return DenseMapInfo<KeyT>::getHashValue(Val);
321 static bool isEqual(const KeyT &LHS, const VH &RHS) {
326 template<typename DenseMapT, typename KeyT>
329 std::pair<KeyT, typename DenseMapT::mapped_type>,
343 const KeyT first;
348 operator std::pair<KeyT, ValueT>() const {
378 template<typename DenseMapT, typename KeyT>
381 std::pair<KeyT, typename DenseMapT::mapped_type>,
391 ValueMapConstIterator(ValueMapIterator<DenseMapT, KeyT> Other)
397 const KeyT first;
400 operator std::pair<KeyT, ValueT>() const {