Home
last modified time | relevance | path

Searched refs:KeyType (Results 1 – 25 of 61) sorted by relevance

123

/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/util/
DZHash.java26 public class ZHash<KeyType, ValueType> implements ZIndexable<KeyType> {
28 private HashMap<KeyType, ValueType> hash;
31 private ZLinkedList<KeyType> zlist;
34 hash = new HashMap<KeyType, ValueType>();
35 zlist = new ZLinkedList<KeyType>();
44 public ValueType get(KeyType key) { in get()
48 public List<KeyType> getKeysAsList() { in getKeysAsList()
58 public synchronized void addToTop(KeyType key, ValueType value) { in addToTop()
75 public synchronized void addToBottom(KeyType key, ValueType value) { in addToBottom()
86 public synchronized boolean moveToTop(KeyType element) { in moveToTop()
[all …]
/external/libchrome/base/containers/
Dmru_cache.h46 template <class KeyType, class ValueType, class CompareType>
48 typedef std::map<KeyType, ValueType, CompareType> Type;
52 template <class KeyType,
61 typedef std::pair<KeyType, PayloadType> value_type;
65 typedef typename MapType<KeyType,
95 iterator Put(const KeyType& key, Payload&& payload) { in Put()
116 iterator Get(const KeyType& key) { in Get()
129 iterator Peek(const KeyType& key) { in Peek()
136 const_iterator Peek(const KeyType& key) const { in Peek()
222 template <class KeyType,
[all …]
Dsmall_map.h136 template <typename KeyType, typename ValueType>
137 struct select_equal_key<std::map<KeyType, ValueType>, false> {
139 bool operator()(const KeyType& left, const KeyType& right) {
144 template <typename KeyType, typename ValueType>
145 struct select_equal_key<base::hash_map<KeyType, ValueType>, false> {
147 bool operator()(const KeyType& left, const KeyType& right) {
/external/tensorflow/tensorflow/core/kernels/lookup_tables/
Dgeneric_table_op_kernels.cc28 template <typename KeyType, typename ValueType>
37 IsValidDataType<KeyType>::value, absl::Span<const KeyType>,
38 absl::Span<const typename KeyType::value_type>>>;
57 template <typename SfinaeArg = KeyType>
61 return table->InsertOrAssign(keys.flat<KeyType>(), in TensorInsertHelper()
67 template <typename VariantSubType = KeyType>
83 template <typename KeyType, typename ValueType>
85 typename TensorInsertFactory<KeyType, ValueType>::Functor>;
87 template <typename KeyType, typename ValueType>
96 IsValidDataType<KeyType>::value, absl::Span<const KeyType>,
[all …]
Dfingerprint64_map_op_kernels.cc30 template <typename KeyType, typename ValueType>
32 : public virtual LookupInterface<ValueType*, const KeyType&>,
34 absl::Span<const KeyType>> {
36 using key_type = KeyType;
41 Status Lookup(const KeyType& key_to_find, ValueType* value) const override { in Lookup()
46 Status Lookup(absl::Span<const KeyType> keys, absl::Span<ValueType> values, in Lookup()
65 LookupHelper(const KeyType& key_to_find) const { in LookupHelper()
95 template <typename KeyType, typename ValueType>
98 Fingerprint64Map<KeyType, ValueType>>::Functor,
100 LookupInterface<ValueType*, const KeyType&>,
[all …]
/external/webrtc/webrtc/system_wrappers/source/
Dsort.cc80 template<typename KeyType>
82 KeyType key_;
170 template <typename KeyType>
172 bool operator()(const SortKey<KeyType>& sort_key_x,
173 const SortKey<KeyType>& sort_key_y) const {
178 template <typename KeyType>
180 KeyType operator()(const SortKey<KeyType>& sort_key,
205 template<typename KeyType>
207 SortKey<KeyType>*& ptr_sort_key,
209 ptr_sort_key = new(std::nothrow) SortKey<KeyType>[num_of_elements];
[all …]
/external/tensorflow/tensorflow/contrib/nearest_neighbor/kernels/
Dheap.h33 template <typename KeyType, typename DataType>
38 KeyType key;
42 Item(const KeyType& k, const DataType& d) : key(k), data(d) {} in Item()
47 void ExtractMin(KeyType* key, DataType* data) { in ExtractMin()
61 void InsertUnsorted(const KeyType& key, const DataType& data) { in InsertUnsorted()
71 void Insert(const KeyType& key, const DataType& data) { in Insert()
147 template <typename KeyType, typename DataType>
148 class SimpleHeap : public HeapBase<KeyType, DataType> {
150 void ReplaceTop(const KeyType& key, const DataType& data) { in ReplaceTop()
156 KeyType MinKey() { return this->v_[0].key; } in MinKey()
[all …]
/external/eigen/unsupported/Eigen/src/SparseExtra/
DRandomSetter.h21 typedef int KeyType; typedef
22 typedef std::map<KeyType,Scalar> Type;
27 static void setInvalidKey(Type&, const KeyType&) {} in setInvalidKey()
49 typedef int KeyType; typedef
50 typedef std::unordered_map<KeyType,Scalar> Type;
55 static void setInvalidKey(Type&, const KeyType&) {} in setInvalidKey()
66 typedef int KeyType; typedef
67 typedef google::dense_hash_map<KeyType,Scalar> Type;
72 static void setInvalidKey(Type& map, const KeyType& k) in setInvalidKey()
84 typedef int KeyType; typedef
[all …]
/external/bcc/src/cc/api/
DBPFTable.h38 template <class KeyType, class ValueType>
43 StatusTuple string_to_key(const std::string& key_str, KeyType* key) { in string_to_key()
51 StatusTuple key_to_string(const KeyType* key, std::string& key_str) { in key_to_string()
193 template <class KeyType, class ValueType>
194 class BPFHashTable : public BPFTableBase<KeyType, ValueType> {
197 : BPFTableBase<KeyType, ValueType>(desc) { in BPFHashTable()
206 virtual StatusTuple get_value(const KeyType& key, ValueType& value) { in get_value()
207 if (!this->lookup(const_cast<KeyType*>(&key), get_value_addr(value))) in get_value()
212 virtual StatusTuple update_value(const KeyType& key, const ValueType& value) { in update_value()
213 if (!this->update(const_cast<KeyType*>(&key), in update_value()
[all …]
DBPF.h123 template <class KeyType, class ValueType>
124 BPFHashTable<KeyType, ValueType> get_hash_table(const std::string& name) { in get_hash_table()
127 return BPFHashTable<KeyType, ValueType>(it->second); in get_hash_table()
128 return BPFHashTable<KeyType, ValueType>({}); in get_hash_table()
131 template <class KeyType, class ValueType>
132 BPFPercpuHashTable<KeyType, ValueType> get_percpu_hash_table( in get_percpu_hash_table()
136 return BPFPercpuHashTable<KeyType, ValueType>(it->second); in get_percpu_hash_table()
137 return BPFPercpuHashTable<KeyType, ValueType>({}); in get_percpu_hash_table()
/external/webrtc/webrtc/system_wrappers/test/TestSort/
DTestSort.cc24 template<typename KeyType>
27 KeyType key;
48 template<typename DataType, typename KeyType>
51 KeyType keyX = ((const DataType*)dataX)->key; in CompareKey()
52 KeyType keyY = ((const DataType*)dataY)->key; in CompareKey()
127 template<typename KeyType>
132 KeyType key[DataLength]; in RunSortTest()
133 KeyType keyRef[DataLength]; in RunSortTest()
134 LotsOfData<KeyType> data[DataLength]; in RunSortTest()
135 LotsOfData<KeyType> dataRef[DataLength]; in RunSortTest()
[all …]
/external/antlr/runtime/Cpp/include/
Dantlr3memory.hpp101 template<class KeyType, class ValueType>
102 class UnOrderedMapType : public std::map< KeyType, ValueType, std::less<KeyType>,
103 AllocatorType<std::pair<KeyType, ValueType> > >
107 template<class KeyType, class ValueType>
108 class OrderedMapType : public std::map< KeyType, ValueType, std::less<KeyType>,
109 AllocatorType<std::pair<KeyType, ValueType> > >
/external/swiftshader/third_party/PowerVR_SDK/Tools/
DPVRTMap.h18 template <typename KeyType, typename DataType>
63 PVRTuint32 GetIndexOf(const KeyType key) const in GetIndexOf()
103 DataType& operator[] (const KeyType key)
139 EPVRTError Remove(const KeyType key) in Remove()
181 bool Exists(const KeyType key) const in Exists()
190 CPVRTArray<KeyType> m_Keys; /*!< Array of all the keys. Indices match m_Data. */
/external/webrtc/talk/app/webrtc/
Ddtlsidentitystore.h79 rtc::KeyType key_type, in RequestIdentity()
109 rtc::KeyType key_type,
116 bool HasFreeIdentityForTesting(rtc::KeyType key_type) const;
120 rtc::KeyType key_type,
122 void OnIdentityGenerated(rtc::KeyType key_type,
131 IdentityResult(rtc::KeyType key_type, in IdentityResult()
135 rtc::KeyType key_type_;
Ddtlsidentitystore.cc59 WorkerTask(DtlsIdentityStoreImpl* store, rtc::KeyType key_type) in WorkerTask()
119 const rtc::KeyType key_type_;
142 rtc::KeyType key_type, in RequestIdentity()
164 rtc::KeyType key_type) const { in HasFreeIdentityForTesting()
170 rtc::KeyType key_type, in GenerateIdentity()
209 rtc::KeyType key_type, rtc::scoped_ptr<rtc::SSLIdentity> identity) { in OnIdentityGenerated()
/external/swiftshader/third_party/llvm-7.0/configs/common/lib/Target/ARM/
DARMGenSystemRegister.inc164 struct KeyType {
167 KeyType Key = { Name.upper() };
170 [](const IndexType &LHS, const KeyType &RHS) {
224 struct KeyType {
227 KeyType Key = { Encoding };
230 [](const IndexType &LHS, const KeyType &RHS) {
338 struct KeyType {
341 KeyType Key = { Name.upper() };
344 [](const IndexType &LHS, const KeyType &RHS) {
402 struct KeyType {
[all …]
/external/webrtc/webrtc/base/
Dsslidentity.h121 enum KeyType { KT_RSA, KT_ECDSA, KT_LAST, KT_DEFAULT = KT_RSA }; enum
138 explicit KeyParams(KeyType key_type = KT_DEFAULT);
156 KeyType type() const { return type_; } in type()
159 KeyType type_;
169 KeyType IntKeyTypeFamilyToKeyType(int key_type_family);
194 KeyType key_type) { in Generate()
/external/google-breakpad/src/processor/
Dstatic_map_unittest.cc42 typedef int KeyType; typedef
43 typedef google_breakpad::StaticMap< KeyType, ValueType > TestMap;
44 typedef std::map< KeyType, ValueType > StdMap;
107 sizeof(uint32_t) + kNumNodes * (sizeof(uint32_t) + sizeof(KeyType)); in TEST_F()
124 sizeof(uint32_t) + kNumNodes * (sizeof(uint32_t) + sizeof(KeyType)); in TEST_F()
129 KeyType* keys = reinterpret_cast<KeyType*>( in TEST_F()
174 sizeof(uint32_t) + sizeof(KeyType) + sizeof(ValueType); in SetUp()
240 void FindTester(int test_case, const KeyType &key) { in FindTester()
246 void LowerBoundTester(int test_case, const KeyType &key) { in LowerBoundTester()
252 void UpperBoundTester(int test_case, const KeyType &key) { in UpperBoundTester()
[all …]
/external/swiftshader/third_party/llvm-7.0/configs/common/lib/Target/AArch64/
DAArch64GenSystemOperands.inc1029 struct KeyType {
1032 KeyType Key = { Name.upper() };
1035 [](const IndexType &LHS, const KeyType &RHS) {
1070 struct KeyType {
1073 KeyType Key = { Encoding };
1076 [](const IndexType &LHS, const KeyType &RHS) {
1132 struct KeyType {
1135 KeyType Key = { Name.upper() };
1138 [](const IndexType &LHS, const KeyType &RHS) {
1171 struct KeyType {
[all …]
/external/vixl/test/
Dtest-invalset.cc36 typedef ptrdiff_t KeyType; typedef
43 Obj(KeyType key, ValType val) : key_(key), val_(val) {} in Obj()
44 KeyType key_;
63 static const KeyType kInvalidKey = PTRDIFF_MAX;
69 KeyType,
76 inline KeyType InvalSet<Obj,
78 KeyType,
87 KeyType,
90 kReclaimFactor>::SetKey(Obj* obj, KeyType key) { in SetKey()
/external/clang/test/SemaCXX/
DPR11358.cpp29 template <typename KeyType, typename ValueType>
30 void MapTest(hash_map<KeyType, ValueType> map) { in MapTest() argument
31 …for (hash_map<KeyType, ValueType>::const_iterator it = map.begin(); // expected-error{{missing 'ty… in MapTest()
/external/swiftshader/third_party/subzero/src/
DIceGlobalContext.cpp65 template <typename KeyType, class Enable = void> struct KeyCompare {};
67 template <typename KeyType>
68 struct KeyCompare<KeyType,
70 std::is_integral<KeyType>::value ||
71 std::is_same<KeyType, RelocatableTuple>::value>::type> {
72 bool operator()(const KeyType &Value1, const KeyType &Value2) const { in operator ()()
76 template <typename KeyType>
77 struct KeyCompare<KeyType, typename std::enable_if<
78 std::is_floating_point<KeyType>::value>::type> {
79 bool operator()(const KeyType &Value1, const KeyType &Value2) const { in operator ()()
[all …]
/external/tensorflow/tensorflow/core/kernels/
Dmap_stage_op.cc65 using KeyType = Tensor; typedef
67 using MapType = std::map<KeyType, Data, KeyTensorLess>;
73 using KeyType = Tensor; typedef
76 std::unordered_map<KeyType, Data, KeyTensorHash, KeyTensorEqual>;
89 using KeyType = typename MapTraits<Ordered, OptionalTuple>::KeyType; typedef in tensorflow::__anonf2748bbc0111::StagingMap
249 Status put_incomplete(const KeyType& key, const Tensor& indices, in put_incomplete()
326 Status put_complete(const KeyType& key, OptionalTuple* tuple) in put_complete()
345 Status put(KeyType* key, const Tensor* indices, OptionalTuple* tuple) { in put()
374 Status get(const KeyType* key, const Tensor* indices, Tuple* tuple) { in get()
396 Status pop(const KeyType* key, const Tensor* indices, Tuple* tuple) { in pop()
[all …]
/external/vixl/src/
Dinvalset-vixl.h77 class KeyType, \
78 KeyType INVALID_KEY, \
84 ElementType, N_PREALLOCATED_ELEMENTS, KeyType, INVALID_KEY, RECLAIM_FROM, \
97 static const KeyType kInvalidKey = INVALID_KEY;
124 KeyType GetMinElementKey();
127 static KeyType GetKey(const ElementType& element);
128 static void SetKey(ElementType* element, KeyType key);
131 typedef KeyType _KeyType;
201 KeyType cached_min_key_; // Valid iff `valid_cached_min_` is true.
252 typedef typename S::_KeyType KeyType; typedef
[all …]
/external/webrtc/talk/app/webrtc/java/src/org/webrtc/
DPeerConnection.java134 public enum KeyType { enum in PeerConnection
154 public KeyType keyType;
167 keyType = KeyType.ECDSA; in RTCConfiguration()

123