Home
last modified time | relevance | path

Searched refs:Elem (Results 1 – 25 of 73) sorted by relevance

123

/external/golang-protobuf/proto/
Dclone.go50 out := reflect.New(in.Type().Elem())
52 mergeStruct(out.Elem(), in.Elem())
74 mergeStruct(out.Elem(), in.Elem())
136 if out.IsNil() || out.Elem().Type() != in.Elem().Type() {
137 out.Set(reflect.New(in.Elem().Elem().Type())) // interface -> *T -> T -> new(T)
139 mergeAny(out.Elem(), in.Elem(), false, nil)
148 elemKind := in.Type().Elem().Kind()
153 val = reflect.New(in.Type().Elem().Elem())
168 out.Set(reflect.New(in.Elem().Type()))
170 mergeAny(out.Elem(), in.Elem(), true, nil)
[all …]
Dequal.go87 v1, v2 = v1.Elem(), v2.Elem()
121 f1, f2 = f1.Elem(), f2.Elem()
177 e1, e2 := v1.Elem(), v2.Elem()
205 return equalAny(v1.Elem(), v2.Elem(), prop)
207 if v1.Type().Elem().Kind() == reflect.Uint8 {
Dtext_parser.go426 if typ.Elem().Kind() == reflect.String {
431 if typ.Elem().Kind() != reflect.Ptr {
506 v := reflect.New(mt.Elem())
507 if pe := p.readStruct(v.Elem(), terminator); pe != nil {
554 ext = reflect.New(typ).Elem()
556 ext = reflect.New(typ.Elem()).Elem()
593 nv := reflect.New(oop.Type.Elem())
594 dst = nv.Elem().Field(0)
615 key := reflect.New(dst.Type().Key()).Elem()
616 val := reflect.New(dst.Type().Elem()).Elem()
[all …]
Dextensions.go146 var extendableProtoType = reflect.TypeOf((*extendableProto)(nil)).Elem()
147 var extendableProtoV1Type = reflect.TypeOf((*extendableProtoV1)(nil)).Elem()
162 return t.Kind() == reflect.Slice && t.Elem().Kind() != reflect.Uint8
283 x.Elem().Set(reflect.ValueOf(e.value))
321 x.Elem().Set(reflect.ValueOf(e.value))
427 value := reflect.New(t).Elem()
428 value.Set(reflect.New(value.Type().Elem()))
433 value.Elem().SetInt(int64(sf.value.(int32)))
435 value.Elem().Set(reflect.ValueOf(sf.value))
454 value := reflect.New(t).Elem()
[all …]
Ddecode.go430 return p.unmarshalType(typ.Elem(), GetProperties(typ.Elem()), true, base)
452 err = p.unmarshalType(typ.Elem(), GetProperties(typ.Elem()), false, base)
821 if mptr.Elem().IsNil() {
822 mptr.Elem().Set(reflect.MakeMap(mptr.Type().Elem()))
824 v := mptr.Elem() // map[K]V
828 keyptr := reflect.New(reflect.PtrTo(p.mtype.Key())).Elem() // addressable *K
833 switch p.mtype.Elem().Kind() {
841 valptr = reflect.New(reflect.PtrTo(p.mtype.Elem())).Elem() // addressable *V
842 valptr.Set(reflect.New(valptr.Type().Elem()))
846 valptr = reflect.New(reflect.PtrTo(p.mtype.Elem())).Elem() // addressable *V
[all …]
Dpointer_reflect.go91 return p.v.Elem()
94 return p.v.Elem().FieldByIndex(f)
206 t := p.v.Type().Elem()
236 p.v.Elem().SetInt(int64(int32(x)))
241 elem := p.v.Elem()
312 t := p.v.Type().Elem()
354 t := p.v.Type().Elem()
389 elem := p.v.Elem()
451 t := p.v.Type().Elem()
Dlib.go557 v = v.Elem()
605 f.Set(reflect.New(ft.Elem()))
607 f.Elem().SetInt(int64(dv.(int32)))
743 if ft.Elem().Kind() == reflect.Struct {
750 switch ft.Elem().Kind() {
758 if ft.Elem().Kind() == reflect.Ptr {
771 sf = &scalarField{kind: ft.Elem().Kind()}
779 switch ft.Elem().Kind() {
828 return nil, false, fmt.Errorf("proto: unhandled def kind %v", ft.Elem().Kind())
Dproperties.go339 var protoMessageType = reflect.TypeOf((*Message)(nil)).Elem()
383 switch t2 := t1.Elem(); t2.Kind() {
416 p.stype = t1.Elem()
431 switch t2 := t1.Elem(); t2.Kind() {
517 switch t3 := t2.Elem(); t3.Kind() {
522 p.stype = t2.Elem()
536 switch t2.Elem().Kind() {
538 fmt.Fprintf(os.Stderr, "proto: no slice elem oenc for %T -> %T -> %T\n", t1, t2, t2.Elem())
556 vtype := p.mtype.Elem()
589 marshalerType = reflect.TypeOf((*Marshaler)(nil)).Elem()
[all …]
Dencode.go253 err = p.enc_len_struct(GetProperties(t.Elem()), base, &state)
274 err = p.enc_struct(GetProperties(t.Elem()), base)
301 n = size_struct(GetProperties(t.Elem()), base)
1140 v := structPointer_NewAt(base, p.field, p.mtype).Elem() // map[K]V
1173 v := structPointer_NewAt(base, p.field, p.mtype).Elem() // map[K]V
1199 keycopy = reflect.New(mapType.Key()).Elem() // addressable K
1200 keyptr := reflect.New(reflect.PtrTo(keycopy.Type())).Elem() // addressable *K
1205 switch mapType.Elem().Kind() {
1209 valcopy = reflect.ValueOf(&dummy).Elem() // addressable []byte
1214 valcopy = reflect.New(mapType.Elem()).Elem() // addressable V
[all …]
/external/deqp/framework/delibs/decpp/
DdeArrayUtil.hpp33 template <int LastElementIndex, int Size, typename Elem>
34 const Elem& getSizedArrayElement (const Elem (&array)[Size], typename de::meta::EnableIf<int, LastE… in getSizedArrayElement()
41 template <int Size, typename Elem>
42 const Elem& getArrayElement (const Elem (&array)[Size], int offset) in getArrayElement()
/external/parameter-framework/asio-1.10.6/include/asio/detail/
Dbuffer_sequence_adapter.hpp229 template <typename Buffer, typename Elem>
230 class buffer_sequence_adapter<Buffer, boost::array<Elem, 2> >
235 const boost::array<Elem, 2>& buffer_sequence) in buffer_sequence_adapter() argument
258 static bool all_empty(const boost::array<Elem, 2>& buffer_sequence) in all_empty() argument
264 static void validate(const boost::array<Elem, 2>& buffer_sequence) in validate() argument
270 static Buffer first(const boost::array<Elem, 2>& buffer_sequence) in first() argument
282 template <typename Buffer, typename Elem>
283 class buffer_sequence_adapter<Buffer, std::array<Elem, 2> >
288 const std::array<Elem, 2>& buffer_sequence) in buffer_sequence_adapter() argument
311 static bool all_empty(const std::array<Elem, 2>& buffer_sequence) in all_empty() argument
[all …]
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/
Dmove.pass.cpp51 template <class Elem>
53 using Tup = std::tuple<Elem>; in test_sfinae()
65 static_assert(std::is_constructible<Tup, Elem&&>::value, ""); in test_sfinae()
66 static_assert(!std::is_constructible<Tup, Elem const&>::value, ""); in test_sfinae()
67 static_assert(!std::is_constructible<Tup, Elem&>::value, ""); in test_sfinae()
78 static_assert(std::is_constructible<Tup, Tag, Alloc, Elem&&>::value, ""); in test_sfinae()
79 static_assert(!std::is_constructible<Tup, Tag, Alloc, Elem const&>::value, ""); in test_sfinae()
80 static_assert(!std::is_constructible<Tup, Tag, Alloc, Elem &>::value, ""); in test_sfinae()
/external/golang-protobuf/jsonpb/
Djsonpb.go153 s := reflect.ValueOf(v).Elem()
204 x := kind.Elem().Elem().Field(0)
271 sv := value.Elem().Elem() // interface -> *T -> T
343 v := reflect.ValueOf(any).Elem()
356 msg := reflect.New(mt.Elem()).Interface().(proto.Message)
438 if v.Kind() == reflect.Slice && v.Type().Elem().Kind() != reflect.Uint8 {
482 valStr = strconv.Itoa(int(v.Elem().Int()))
603 return u.unmarshalValue(reflect.ValueOf(pb).Elem(), inputValue, nil)
647 target.Set(reflect.New(targetType.Elem()))
649 return u.unmarshalValue(target.Elem(), inputValue, prop)
[all …]
/external/skqp/src/xml/
DSkXMLWriter.h42 struct Elem { struct
43 Elem(const char name[], size_t len) in Elem() function
52 void doEnd(Elem* elem); argument
54 Elem* getEnd();
56 SkTDArray<Elem*> fElems;
DSkXMLWriter.cpp56 void SkXMLWriter::doEnd(Elem* elem) { in doEnd()
66 Elem** elem = fElems.push(); in doStart()
67 *elem = new Elem(name, length); in doStart()
71 SkXMLWriter::Elem* SkXMLWriter::getEnd() { in getEnd()
72 Elem* elem; in getEnd()
214 Elem* elem = fElems.top(); in onAddText()
227 Elem* elem = getEnd(); in onEndElement()
283 Elem* elem = this->getEnd(); in onEndElement()
/external/skia/src/xml/
DSkXMLWriter.h42 struct Elem { struct
43 Elem(const char name[], size_t len) in Elem() argument
52 void doEnd(Elem* elem); argument
54 Elem* getEnd();
56 SkTDArray<Elem*> fElems;
DSkXMLWriter.cpp56 void SkXMLWriter::doEnd(Elem* elem) { in doEnd()
66 Elem** elem = fElems.push(); in doStart()
67 *elem = new Elem(name, length); in doStart()
71 SkXMLWriter::Elem* SkXMLWriter::getEnd() { in getEnd()
72 Elem* elem; in getEnd()
214 Elem* elem = fElems.top(); in onAddText()
227 Elem* elem = getEnd(); in onEndElement()
283 Elem* elem = this->getEnd(); in onEndElement()
/external/eigen/unsupported/Eigen/CXX11/src/ThreadPool/
DRunQueue.h56 Elem* e = &array_[front & kMask]; in PushFront()
71 Elem* e = &array_[(front - 1) & kMask]; in PopFront()
88 Elem* e = &array_[(back - 1) & kMask]; in PushBack()
107 Elem* e = &array_[back & kMask]; in PopBack()
131 Elem* e = &array_[mid & kMask]; in PopBackHalf()
183 struct Elem { struct
202 Elem array_[kSize]; argument
/external/llvm/lib/IR/
DLLVMContextImpl.cpp110 FoldingSetIterator<AttributeImpl> Elem = I++; in ~LLVMContextImpl() local
111 delete &*Elem; in ~LLVMContextImpl()
117 FoldingSetIterator<AttributeSetImpl> Elem = I++; in ~LLVMContextImpl() local
118 delete &*Elem; in ~LLVMContextImpl()
124 FoldingSetIterator<AttributeSetNode> Elem = I++; in ~LLVMContextImpl() local
125 delete &*Elem; in ~LLVMContextImpl()
/external/parameter-framework/asio-1.10.6/include/asio/impl/
Dread.hpp230 template <typename AsyncReadStream, typename Elem,
232 class read_op<AsyncReadStream, boost::array<Elem, 2>,
237 read_op(AsyncReadStream& stream, const boost::array<Elem, 2>& buffers, in read_op() argument
272 typename asio::detail::dependent_type<Elem, in operator ()()
305 boost::array<Elem, 2> buffers_;
312 template <typename AsyncReadStream, typename Elem,
314 class read_op<AsyncReadStream, std::array<Elem, 2>,
319 read_op(AsyncReadStream& stream, const std::array<Elem, 2>& buffers, in read_op() argument
354 typename asio::detail::dependent_type<Elem, in operator ()()
387 std::array<Elem, 2> buffers_;
Dwrite.hpp303 template <typename AsyncWriteStream, typename Elem,
305 class write_op<AsyncWriteStream, boost::array<Elem, 2>,
310 write_op(AsyncWriteStream& stream, const boost::array<Elem, 2>& buffers, in write_op() argument
345 typename asio::detail::dependent_type<Elem, in operator ()()
378 boost::array<Elem, 2> buffers_;
385 template <typename AsyncWriteStream, typename Elem,
387 class write_op<AsyncWriteStream, std::array<Elem, 2>,
392 write_op(AsyncWriteStream& stream, const std::array<Elem, 2>& buffers, in write_op() argument
427 typename asio::detail::dependent_type<Elem, in operator ()()
460 std::array<Elem, 2> buffers_;
/external/tensorflow/tensorflow/compiler/xla/service/
Dtuple_points_to_analysis.h125 tree_.ForEachElement([&fn](const ShapeIndex& index, const Elem& elem) { in ForEachElement()
131 tree_.ForEachMutableElement([&fn](const ShapeIndex& index, Elem* elem) { in ForEachMutableElement()
138 [&fn](const ShapeIndex& index, const Elem& elem) { in ForEachElementWithStatus()
144 struct Elem { struct
148 ShapeTree<Elem> tree_; argument
/external/llvm/unittests/Linker/
DLinkModulesTest.cpp116 Value *Elem = Init->getOperand(0); in TEST_F() local
117 ASSERT_TRUE(isa<BlockAddress>(Elem)); in TEST_F()
118 EXPECT_EQ(cast<BlockAddress>(Elem)->getFunction(), in TEST_F()
120 EXPECT_EQ(cast<BlockAddress>(Elem)->getBasicBlock()->getParent(), in TEST_F()
123 Elem = Init->getOperand(1); in TEST_F()
124 ASSERT_TRUE(isa<BlockAddress>(Elem)); in TEST_F()
125 EXPECT_EQ(cast<BlockAddress>(Elem)->getFunction(), in TEST_F()
127 EXPECT_EQ(cast<BlockAddress>(Elem)->getBasicBlock()->getParent(), in TEST_F()
/external/abi-compliance-checker/modules/Internals/
DCallConv.pm628 my ($SInfo, $Algn, $Size, $Elem) = @_;
636 return pushStack_Offset($SInfo, $Offset, $Size, $Elem);
641 my ($SInfo, $Offset, $Size, $Elem) = @_;
644 "Elem" => $Elem
1265 foreach my $Elem (keys(%{$SInfo->{"Reg"}}))
1267 my $Reg = $SInfo->{"Reg"}{$Elem};
1268 if($Elem eq ".result_ptr")
1273 elsif(index($Elem, ".result")==0) {
1298 foreach my $Elem (keys(%{$SInfo->{"Reg"}}))
1300 my $Reg = $SInfo->{"Reg"}{$Elem};
[all …]
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DCheckerContext.h52 #define REGISTER_SET_WITH_PROGRAMSTATE(Name, Elem) \ argument
53 REGISTER_TRAIT_WITH_PROGRAMSTATE(Name, llvm::ImmutableSet<Elem>)
66 #define REGISTER_LIST_WITH_PROGRAMSTATE(Name, Elem) \ argument
67 REGISTER_TRAIT_WITH_PROGRAMSTATE(Name, llvm::ImmutableList<Elem>)

123