Home
last modified time | relevance | path

Searched refs:MapKey (Results 1 – 25 of 54) sorted by relevance

123

/external/protobuf/src/google/protobuf/
Dmap_field.cc157 : TypeDefinedMapFieldBase<MapKey, MapValueRef>(arena), in DynamicMapField()
164 for (Map<MapKey, MapValueRef>::iterator iter = map_.begin(); in ~DynamicMapField()
174 Map<MapKey, MapValueRef>* map = &const_cast<DynamicMapField*>(this)->map_; in Clear()
175 for (Map<MapKey, MapValueRef>::iterator iter = map->begin(); in Clear()
189 bool DynamicMapField::ContainsMapKey(const MapKey& map_key) const { in ContainsMapKey()
190 const Map<MapKey, MapValueRef>& map = GetMap(); in ContainsMapKey()
191 Map<MapKey, MapValueRef>::const_iterator iter = map.find(map_key); in ContainsMapKey()
228 bool DynamicMapField::InsertOrLookupMapValue(const MapKey& map_key, in InsertOrLookupMapValue()
232 Map<MapKey, MapValueRef>* map = MutableMap(); in InsertOrLookupMapValue()
233 Map<MapKey, MapValueRef>::iterator iter = map->find(map_key); in InsertOrLookupMapValue()
[all …]
Dmap_field.h58 class MapKey; variable
90 virtual bool ContainsMapKey(const MapKey& map_key) const = 0;
91 virtual bool InsertOrLookupMapValue(const MapKey& map_key,
97 virtual bool DeleteMapValue(const MapKey& map_key) = 0;
250 bool ContainsMapKey(const MapKey& map_key) const override;
251 bool InsertOrLookupMapValue(const MapKey& map_key, MapValueRef* val) override;
252 bool DeleteMapValue(const MapKey& map_key) override;
325 : public TypeDefinedMapFieldBase<MapKey, MapValueRef> {
332 bool ContainsMapKey(const MapKey& map_key) const override;
333 bool InsertOrLookupMapValue(const MapKey& map_key, MapValueRef* val) override;
[all …]
Dmap_field_inl.h50 T UnwrapMapKey(const MapKey& map_key);
52 inline int32 UnwrapMapKey<int32>(const MapKey& map_key) {
56 inline uint32 UnwrapMapKey<uint32>(const MapKey& map_key) {
60 inline int64 UnwrapMapKey<int64>(const MapKey& map_key) {
64 inline uint64 UnwrapMapKey<uint64>(const MapKey& map_key) {
68 inline bool UnwrapMapKey<bool>(const MapKey& map_key) {
72 inline std::string UnwrapMapKey<std::string>(const MapKey& map_key) {
78 inline void SetMapKey(MapKey* map_key, const T& value);
80 inline void SetMapKey<int32>(MapKey* map_key, const int32& value) {
84 inline void SetMapKey<uint32>(MapKey* map_key, const uint32& value) {
[all …]
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/jsontype/deftyping/
DTestDefaultForMaps.java17 static class MapKey { class in TestDefaultForMaps
20 public MapKey(String k) { key = k; } in MapKey() method in TestDefaultForMaps.MapKey
29 return new MapKey(key); in deserializeKey()
35 @JsonDeserialize(keyAs=MapKey.class, keyUsing=MapKeyDeserializer.class)
36 public Map<MapKey,List<Object>> map;
84 holder.map = new HashMap<MapKey,List<Object>>(); in testJackson428()
87 holder.map.put(new MapKey("key"), ints); in testJackson428()
105 assertEquals(MapKey.class, key.getClass()); in testJackson428()
/external/dagger2/java/dagger/internal/codegen/
DMapKeyProcessingStep.java25 import dagger.MapKey;
69 return ImmutableSet.<Class<? extends Annotation>>of(MapKey.class); in annotations()
79 MapKey mapkey = mapKeyAnnotationType.getAnnotation(MapKey.class); in process()
/external/llvm-project/llvm/lib/BinaryFormat/
DMsgPackDocument.cpp115 DocNode MapKey; member
129 function_ref<int(DocNode *DestNode, DocNode SrcNode, DocNode MapKey)> in readFromBlob()
192 Stack.back().MapKey = Node; in readFromBlob()
206 DocNode MapKey = !Stack.empty() && !Stack.back().MapKey.isEmpty() in readFromBlob() local
207 ? Stack.back().MapKey in readFromBlob()
209 MergeResult = Merger(DestNode, Node, MapKey); in readFromBlob()
/external/dagger2/javatests/dagger/functional/
DBooleanKey.java19 import dagger.MapKey;
21 @MapKey(unwrapValue = true)
DCharKey.java19 import dagger.MapKey;
21 @MapKey(unwrapValue = true)
DByteKey.java19 import dagger.MapKey;
21 @MapKey(unwrapValue = true)
DShortKey.java19 import dagger.MapKey;
21 @MapKey(unwrapValue = true)
DNestedAnnotationContainer.java19 import dagger.MapKey;
23 @MapKey(unwrapValue = false)
DNumberClassKey.java19 import dagger.MapKey;
21 @MapKey(unwrapValue = true)
DUnwrappedAnnotationKey.java19 import dagger.MapKey;
22 @MapKey(unwrapValue = true)
DWrappedAnnotationKey.java19 import dagger.MapKey;
23 @MapKey(unwrapValue = false)
/external/dagger2/java/dagger/android/
DAndroidInjectionKey.java21 import dagger.MapKey;
34 @MapKey
/external/dagger2/java/dagger/multibindings/
DLongKey.java22 import dagger.MapKey;
31 @MapKey
DIntKey.java22 import dagger.MapKey;
31 @MapKey
DStringKey.java22 import dagger.MapKey;
31 @MapKey
DClassKey.java22 import dagger.MapKey;
36 @MapKey
/external/guice/core/src/com/google/inject/internal/
DProvidesMethodScanner.java24 import com.google.inject.multibindings.MapKey;
121 MapKey mapKey = annotation.annotationType().getAnnotation(MapKey.class); in findMapKeyAnnotation()
152 if (!mapKeyAnnotation.annotationType().getAnnotation(MapKey.class).unwrapValue()) { in typeAndValueOfMapKey()
/external/guice/core/test/com/google/inject/multibindings/
DProvidesIntoTest.java203 @MapKey(unwrapValue = true)
209 @MapKey(unwrapValue = false)
253 @MapKey(unwrapValue = true)
282 @MapKey(unwrapValue = false)
403 @MapKey(unwrapValue = true)
431 @MapKey(unwrapValue = true)
/external/llvm-project/llvm/unittests/BinaryFormat/
DMsgPackDocumentTest.cpp48 [](DocNode *DestNode, DocNode SrcNode, DocNode MapKey) { in TEST() argument
84 [](DocNode *DestNode, DocNode SrcNode, DocNode MapKey) { in TEST() argument
128 [](DocNode *DestNode, DocNode SrcNode, DocNode MapKey) { in TEST() argument
152 /*Multi=*/false, [](DocNode *Dest, DocNode Src, DocNode MapKey) { in TEST() argument
159 if (MapKey.isString() && MapKey.getString() == "foz" && in TEST()
/external/dagger2/java/dagger/internal/codegen/binding/
DMapKeys.java37 import dagger.MapKey;
73 return getAnnotatedAnnotations(bindingElement, MapKey.class); in getMapKeys()
84 MapKey mapKeyAnnotation = mapKey.getAnnotationType().asElement().getAnnotation(MapKey.class); in unwrapValue()
/external/dagger2/java/dagger/internal/codegen/validation/
DMapKeyValidator.java21 import dagger.MapKey;
47 } else if (element.getAnnotation(MapKey.class).unwrapValue()) { in validate()
/external/dagger2/javatests/dagger/functional/multibindings/
DComplexMapKeysInDifferentOrderTest.java24 import dagger.MapKey;
37 @MapKey(unwrapValue = false)

123