Home | History | Annotate | Download | only in ADT

Lines Matching defs:KeyT

20 // parameters should inherit from ValueMapConfig<KeyT> to get default
38 template<typename KeyT, typename ValueT, typename Config, typename ValueInfoT>
41 template<typename DenseMapT, typename KeyT>
43 template<typename DenseMapT, typename KeyT>
49 template<typename KeyT>
62 static void onRAUW(const ExtraDataT & /*Data*/, KeyT /*Old*/, KeyT /*New*/) {}
64 static void onDelete(const ExtraDataT &/*Data*/, KeyT /*Old*/) {}
75 template<typename KeyT, typename ValueT, typename Config = ValueMapConfig<KeyT>,
78 friend class ValueMapCallbackVH<KeyT, ValueT, Config, ValueInfoT>;
79 typedef ValueMapCallbackVH<KeyT, ValueT, Config, ValueInfoT> ValueMapCVH;
88 typedef KeyT key_type;
90 typedef std::pair<KeyT, ValueT> value_type;
99 typedef ValueMapIterator<MapT, KeyT> iterator;
100 typedef ValueMapConstIterator<MapT, KeyT> const_iterator;
115 bool count(const KeyT &Val) const {
119 iterator find(const KeyT &Val) {
122 const_iterator find(const KeyT &Val) const {
128 ValueT lookup(const KeyT &Val) const {
135 std::pair<iterator, bool> insert(const std::pair<KeyT, ValueT> &KV) {
149 bool erase(const KeyT &Val) {
156 value_type& FindAndConstruct(const KeyT &Key) {
160 ValueT &operator[](const KeyT &Key) {
182 ValueMapCVH Wrap(KeyT key) const {
193 template<typename KeyT, typename ValueT, typename Config, typename ValueInfoT>
195 friend class ValueMap<KeyT, ValueT, Config, ValueInfoT>;
197 typedef ValueMap<KeyT, ValueT, Config, ValueInfoT> ValueMapT;
198 typedef typename llvm::remove_pointer<KeyT>::type KeySansPointerT;
202 ValueMapCallbackVH(KeyT Key, ValueMapT *Map)
207 KeyT Unwrap() const { return cast_or_null<KeySansPointerT>(getValPtr()); }
229 KeyT typed_new_key = cast<KeySansPointerT>(new_key);
247 template<typename KeyT, typename ValueT, typename Config, typename ValueInfoT>
248 struct DenseMapInfo<ValueMapCallbackVH<KeyT, ValueT, Config, ValueInfoT> > {
249 typedef ValueMapCallbackVH<KeyT, ValueT, Config, ValueInfoT> VH;
250 typedef DenseMapInfo<KeyT> PointerInfo;
267 template<typename DenseMapT, typename KeyT>
270 std::pair<KeyT, typename DenseMapT::mapped_type>,
283 const KeyT first;
286 operator std::pair<KeyT, ValueT>() const {
316 template<typename DenseMapT, typename KeyT>
319 std::pair<KeyT, typename DenseMapT::mapped_type>,
327 ValueMapConstIterator(ValueMapIterator<DenseMapT, KeyT> Other)
333 const KeyT first;
336 operator std::pair<KeyT, ValueT>() const {