Home
last modified time | relevance | path

Searched refs:Key (Results 1 – 22 of 22) sorted by relevance

/art/libartbase/base/
Dhash_map.h30 template <class Key, class Value>
31 size_t operator()(const std::pair<Key, Value>& pair) const { in operator()
34 template <class Key>
35 size_t operator()(const Key& key) const { in operator()
38 template <class Key, class Value>
39 bool operator()(const std::pair<Key, Value>& a, const std::pair<Key, Value>& b) const { in operator()
42 template <class Key, class Value, class Element>
43 bool operator()(const std::pair<Key, Value>& a, const Element& element) const { in operator()
51 template <typename Key, typename Value>
54 void MakeEmpty(std::pair<Key, Value>& item) const { in MakeEmpty() argument
[all …]
Dtracking_safe_map.h25 template<class Key, class T, AllocatorTag kTag, class Compare = std::less<Key>>
27 Key, T, Compare, TrackingAllocator<std::pair<const Key, T>, kTag>> {
Darena_containers.h77 template <typename Key,
79 typename EmptyFn = DefaultEmptyFn<std::pair<Key, Value>>,
80 typename HashFn = DefaultHashFn<Key>,
81 typename Pred = DefaultPred<Key>>
82 using ArenaHashMap = HashMap<Key,
87 ArenaAllocatorAdapter<std::pair<Key, Value>>>;
89 template <typename Key,
91 typename Hash = std::hash<Key>,
93 using ArenaUnorderedMap = std::unordered_map<Key,
97 ArenaAllocatorAdapter<std::pair<const Key, Value>>>;
Dvariant_map_test.cc37 using Key = FruitMapKey<TValue>; typedef
39 static const Key<int> Apple;
40 static const Key<double> Orange;
41 static const Key<std::string> Label;
44 const FruitMap::Key<int> FruitMap::Apple;
45 const FruitMap::Key<double> FruitMap::Orange;
46 const FruitMap::Key<std::string> FruitMap::Label;
Dscoped_arena_containers.h75 template <typename Key,
77 typename EmptyFn = DefaultMapEmptyFn<Key, Value>,
78 typename HashFn = DefaultHashFn<Key>,
79 typename Pred = DefaultPred<Key>>
80 using ScopedArenaHashMap = HashMap<Key,
85 ScopedArenaAllocatorAdapter<std::pair<Key, Value>>>;
Dmem_map.cc53 template<class Key, class T, AllocatorTag kTag, class Compare = std::less<Key>>
55 std::multimap<Key, T, Compare, TrackingAllocator<std::pair<const Key, T>, kTag>>;
Dvariant_map.h216 using Key = TKey<TValue>; member
/art/compiler/utils/
Ddedupe_set-inl.h66 DCHECK(key.Key() != nullptr);
67 alloc_.Destroy(key.Key());
76 DCHECK(it->Key() != nullptr);
77 return it->Key();
123 const T* Key() const {
128 return Key() == nullptr;
161 DCHECK(lhs.Key() != nullptr);
162 DCHECK(rhs.Key() != nullptr);
164 return lhs.Key() == rhs.Key();
169 DCHECK(lhs.Key() != nullptr);
[all …]
/art/runtime/
Druntime_options.h44 #define DECLARE_KEY(Type, Name) static const Key<Type> Name
71 using Key = RuntimeArgumentMapKey<TValue>; member
74 #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key<Type> (Name);
Druntime_options.cc34 #define RUNTIME_OPTIONS_KEY(Type, Name, ...) const RuntimeArgumentMap::Key<Type> RuntimeArgumentMap…
Dparsed_options.h48 using RuntimeParser = CmdlineParser<RuntimeArgumentMap, RuntimeArgumentMap::Key>;
Druntime_options.def27 // <<Type>> <<Key Name>> <<Default Value>>
Dparsed_options.cc61 using RuntimeParser = CmdlineParser<RuntimeArgumentMap, RuntimeArgumentMap::Key>;
/art/tools/ahat/src/main/com/android/ahat/heapdump/
DDiff.java85 private static class Key { class in Diff
105 private Key(AhatInstance inst) { in Key() method in Diff.Key
118 public static Key keyFor(AhatInstance inst) { in keyFor()
119 return new Key(inst); in keyFor()
124 if (!(other instanceof Key)) { in equals()
127 Key o = (Key)other; in equals()
198 Map<Key, InstanceListPair> byKey = new HashMap<Key, InstanceListPair>(); in instances()
200 Key key = Key.keyFor(inst); in instances()
209 Key key = Key.keyFor(inst); in instances()
/art/compiler/driver/
Dcompiler_options_map.h36 using Key = KeyType<TValue>; member
39 #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key<Type> (Name);
Dcompiler_options_map.def27 // <<Type>> <<Key Name>> (<<Default Value>>)
/art/dex2oat/
Ddex2oat_options.h68 using Key = Dex2oatArgumentMapKey<TValue>; member
71 #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key<Type> (Name);
Ddex2oat_options.cc46 const Dex2oatArgumentMap::Key<Type> Dex2oatArgumentMap::Name {__VA_ARGS__};
53 using Parser = CmdlineParser<Dex2oatArgumentMap, Dex2oatArgumentMap::Key>;
Ddex2oat_options.def27 // <<Type>> <<Key Name>> <<Default Value>>
Ddex2oat.cc1244 const Dex2oatArgumentMap::Key<T>& key, in AssignIfExists()
1251 const Dex2oatArgumentMap::Key<std::string>& key, in AssignIfExists()
1259 const Dex2oatArgumentMap::Key<std::vector<std::string>>& key, in AssignIfExists()
1271 const Dex2oatArgumentMap::Key<T>& key, in AssignTrueIfExists()
1279 const Dex2oatArgumentMap::Key<std::string>& key, in AssignIfExists()
/art/runtime/gc/allocator/
Drosalloc.h711 template<class Key, AllocatorTag kTag, class Compare = std::less<Key>>
712 using AllocationTrackingSet = std::set<Key, Compare, TrackingAllocator<Key, kTag>>;
/art/cmdline/
DREADME.md28 static const Key<int> Apple;
29 static const Key<double> Orange;
30 static const Key<bool> Help;
35 using FruitParser = CmdlineParser<FruitVariantMap, FruitVariantMap::Key>;