/external/libcxx/test/libcxx/containers/associative/ |
D | tree_key_value_traits.pass.cpp | 21 typedef std::__tree_key_value_types<Tp> Traits; in testKeyValueTrait() typedef 22 static_assert((std::is_same<Traits::key_type, int>::value), ""); in testKeyValueTrait() 23 static_assert((std::is_same<Traits::__node_value_type, Tp>::value), ""); in testKeyValueTrait() 24 static_assert((std::is_same<Traits::__container_value_type, Tp>::value), ""); in testKeyValueTrait() 25 static_assert(Traits::__is_map == false, ""); in testKeyValueTrait() 29 typedef std::__tree_key_value_types<Tp> Traits; in testKeyValueTrait() typedef 30 static_assert((std::is_same<Traits::key_type, Tp>::value), ""); in testKeyValueTrait() 31 static_assert((std::is_same<Traits::__node_value_type, Tp>::value), ""); in testKeyValueTrait() 32 static_assert((std::is_same<Traits::__container_value_type, Tp>::value), ""); in testKeyValueTrait() 33 static_assert(Traits::__is_map == false, ""); in testKeyValueTrait() [all …]
|
/external/libcxx/test/libcxx/containers/unord/ |
D | key_value_traits.pass.cpp | 21 typedef std::__hash_key_value_types<Tp> Traits; in testKeyValueTrait() typedef 22 static_assert((std::is_same<Traits::key_type, int>::value), ""); in testKeyValueTrait() 23 static_assert((std::is_same<Traits::__node_value_type, Tp>::value), ""); in testKeyValueTrait() 24 static_assert((std::is_same<Traits::__container_value_type, Tp>::value), ""); in testKeyValueTrait() 25 static_assert(Traits::__is_map == false, ""); in testKeyValueTrait() 29 typedef std::__hash_key_value_types<Tp> Traits; in testKeyValueTrait() typedef 30 static_assert((std::is_same<Traits::key_type, Tp>::value), ""); in testKeyValueTrait() 31 static_assert((std::is_same<Traits::__node_value_type, Tp>::value), ""); in testKeyValueTrait() 32 static_assert((std::is_same<Traits::__container_value_type, Tp>::value), ""); in testKeyValueTrait() 33 static_assert(Traits::__is_map == false, ""); in testKeyValueTrait() [all …]
|
/external/v8/include/ |
D | v8-util.h | 161 template <typename K, typename V, typename Traits> 169 size_t Size() { return Traits::Size(&impl_); } 174 bool IsWeak() { return Traits::kCallbackType != kNotWeak; } 180 return Local<V>::New(isolate_, FromVal(Traits::Get(&impl_, key))); 187 return Traits::Get(&impl_, key) != kPersistentContainerNotFound; 196 return SetReturnValueFromVal(&returnValue, Traits::Get(&impl_, key)); 206 reinterpret_cast<internal::Object**>(FromVal(Traits::Get(&impl_, key)))); 216 reinterpret_cast<internal::Object**>(FromVal(Traits::Get(&impl_, key))), 224 return Release(Traits::Remove(&impl_, key)).Pass(); 232 typedef typename Traits::Iterator It; [all …]
|
/external/skia/src/core/ |
D | SkTTopoSort.h | 14 template <typename T, typename Traits = T> 17 SkASSERT(!Traits::IsTempMarked(graph[i])); in SkTTopoSort_CheckAllUnmarked() 18 SkASSERT(!Traits::WasOutput(graph[i])); in SkTTopoSort_CheckAllUnmarked() 22 template <typename T, typename Traits = T> 25 SkASSERT(!Traits::IsTempMarked(graph[i])); in SkTTopoSort_CleanExit() 26 SkASSERT(Traits::WasOutput(graph[i])); in SkTTopoSort_CleanExit() 33 template <typename T, typename Traits = T> 35 if (Traits::IsTempMarked(node)) { in SkTTopoSort_Visit() 42 if (!Traits::WasOutput(node)) { in SkTTopoSort_Visit() 45 Traits::SetTempMark(node); in SkTTopoSort_Visit() [all …]
|
/external/libmojo/mojo/public/cpp/bindings/lib/ |
D | serialization_util.h | 34 typename Traits, 36 typename std::enable_if<HasIsNullMethod<Traits>::value>::type* = nullptr> 38 return Traits::IsNull(input); in CallIsNullIfExists() 42 typename Traits, 44 typename std::enable_if<!HasIsNullMethod<Traits>::value>::type* = nullptr> 61 typename Traits, 63 typename std::enable_if<HasSetToNullMethod<Traits>::value>::type* = nullptr> 65 Traits::SetToNull(output); in CallSetToNullIfExists() 69 template <typename Traits, 71 typename std::enable_if<!HasSetToNullMethod<Traits>::value>::type* = [all …]
|
D | map_serialization.h | 24 using Traits = MapTraits<UserType>; variable 26 decltype(Traits::GetBegin(std::declval<MaybeConstUserType&>())); 29 : input_(input), iter_(Traits::GetBegin(input_)) {} in MapReaderBase() 32 size_t GetSize() const { return Traits::GetSize(input_); } in GetSize() 48 using Traits = typename Base::Traits; variable 53 const typename Traits::Key& GetNext() { in GetNext() 54 const typename Traits::Key& key = Traits::GetKey(this->iter_); in GetNext() 55 Traits::AdvanceIterator(this->iter_); in GetNext() 65 using Traits = typename Base::Traits; variable 72 decltype(Traits::GetValue(std::declval<MaybeConstIterator&>())); [all …]
|
D | array_serialization.h | 27 template <typename Traits, 30 HasGetBeginMethod<Traits, MaybeConstUserType>::value> 34 template <typename Traits, typename MaybeConstUserType> 35 class ArrayIterator<Traits, MaybeConstUserType, true> { 38 CallGetBeginIfExists<Traits>(std::declval<MaybeConstUserType&>())); 41 : input_(input), iter_(CallGetBeginIfExists<Traits>(input)) {} in ArrayIterator() 44 size_t GetSize() const { return Traits::GetSize(input_); } in GetSize() 47 decltype(Traits::GetValue(std::declval<IteratorType&>())); 49 auto& value = Traits::GetValue(iter_); in GetNext() 50 Traits::AdvanceIterator(iter_); in GetNext() [all …]
|
D | string_serialization.h | 23 using Traits = StringTraits<UserType>; 27 if (CallIsNullIfExists<Traits>(input)) 30 void* custom_context = CustomContextHelper<Traits>::SetUp(input, context); 32 CallWithContext(Traits::GetSize, input, custom_context)); 39 if (CallIsNullIfExists<Traits>(input)) { 44 void* custom_context = CustomContextHelper<Traits>::GetNext(context); 47 CallWithContext(Traits::GetSize, input, custom_context), buffer); 50 CallWithContext(Traits::GetData, input, custom_context), 51 CallWithContext(Traits::GetSize, input, custom_context)); 55 CustomContextHelper<Traits>::TearDown(input, custom_context); [all …]
|
/external/swiftshader/third_party/subzero/src/ |
D | IceTargetLoweringX86Base.h | 39 template <typename Traits> class BoolFolding; 62 using Traits = TraitsType; 63 using ConcreteTarget = typename Traits::ConcreteTarget; 64 using InstructionSetEnum = typename Traits::InstructionSet; 66 using BrCond = typename Traits::Cond::BrCond; 67 using CmppsCond = typename Traits::Cond::CmppsCond; 69 using X86Address = typename Traits::Address; 70 using X86Operand = typename Traits::X86Operand; 71 using X86OperandMem = typename Traits::X86OperandMem; 72 using SegmentRegisters = typename Traits::X86OperandMem::SegmentRegisters; [all …]
|
D | IceTargetLoweringX8664.cpp | 64 dflt, swapS, X8664::Traits::Cond::C1, X8664::Traits::Cond::C2, swapV, \ 65 X8664::Traits::Cond::pred \ 76 { X8664::Traits::Cond::C_32 } \ 88 X8664::Traits::Cond::C1_64, X8664::Traits::Cond::C2_64, \ 89 X8664::Traits::Cond::C3_64 \ 116 TargetX86Base<X8664::Traits>::TypeToRegisterSet = {{}}; 120 TargetX86Base<X8664::Traits>::TypeToRegisterSetUnfiltered = {{}}; 124 TargetX86Base<X8664::Traits>::Traits::RegisterSet::Reg_NUM> 125 TargetX86Base<X8664::Traits>::RegisterAliases = {{}}; 128 FixupKind TargetX86Base<X8664::Traits>::PcRelFixup = [all …]
|
D | IceMemory.h | 54 template <typename T, typename Traits> struct sz_allocator { 67 sz_allocator(const sz_allocator<U, Traits> &) in sz_allocator() 88 template <class U> struct rebind { typedef sz_allocator<U, Traits> other; }; 95 typename Traits::allocator_type current() { in current() 96 if (!Traits::cache_allocator) { in current() 98 return Traits::current(); in current() 101 Current = Traits::current(); in current() 103 assert(Current == Traits::current()); in current() 106 static void init() { Traits::init(); } in init() 108 typename Traits::allocator_type Current; [all …]
|
D | IceTargetLoweringX8632.cpp | 72 dflt, swapS, X8632::Traits::Cond::C1, X8632::Traits::Cond::C2, swapV, \ 73 X8632::Traits::Cond::pred \ 84 { X8632::Traits::Cond::C_32 } \ 96 X8632::Traits::Cond::C1_64, X8632::Traits::Cond::C2_64, \ 97 X8632::Traits::Cond::C3_64 \ 129 TargetX86Base<X8632::Traits>::TypeToRegisterSet = {{}}; 133 TargetX86Base<X8632::Traits>::TypeToRegisterSetUnfiltered = {{}}; 137 TargetX86Base<X8632::Traits>::Traits::RegisterSet::Reg_NUM> 138 TargetX86Base<X8632::Traits>::RegisterAliases = {{}}; 141 FixupKind TargetX86Base<X8632::Traits>::PcRelFixup = [all …]
|
D | IceTargetLoweringX86BaseImpl.h | 94 template <typename Traits> class BoolFoldingEntry { 117 template <typename Traits> class BoolFolding { 158 CfgUnorderedMap<SizeT, BoolFoldingEntry<Traits>> Producers; 161 template <typename Traits> 162 BoolFoldingEntry<Traits>::BoolFoldingEntry(Inst *I) 163 : Instr(I), IsComplex(BoolFolding<Traits>::hasComplexLowering(I)) {} 165 template <typename Traits> 166 typename BoolFolding<Traits>::BoolFoldingProducerKind 167 BoolFolding<Traits>::getProducerKind(const Inst *Instr) { 169 if (Traits::Is64Bit || Instr->getSrc(0)->getType() != IceType_i64) [all …]
|
/external/libcxx/test/std/input.output/iostream.format/quoted.manip/ |
D | quoted.pass.cpp | 23 template <class CharT, class Traits> 24 bool is_skipws ( const std::basic_istream<CharT, Traits>& is ) { in is_skipws() 28 template <class CharT, class Traits = std::char_traits<CharT>> 30 std::basic_string<CharT, Traits> str(p); in both_ways() 33 std::basic_stringstream<CharT, Traits> ss; in both_ways() 40 template <class CharT, class Traits = std::char_traits<CharT>> 42 std::basic_stringstream<CharT, Traits> ss; in round_trip() 46 std::basic_string<CharT, Traits> s; in round_trip() 53 template <class CharT, class Traits = std::char_traits<CharT>> 55 std::basic_stringstream<CharT, Traits> ss; in round_trip_ws() [all …]
|
/external/libchrome/base/ |
D | scoped_generic.h | 54 template<typename T, typename Traits> 63 struct Data : public Traits { 65 Data(const T& in, const Traits& other) : Traits(other), generic(in) {} in Data() 71 typedef Traits traits_type; 85 ScopedGeneric(ScopedGeneric<T, Traits>&& rvalue) in ScopedGeneric() 94 ScopedGeneric& operator=(ScopedGeneric<T, Traits>&& rvalue) { 114 swap(static_cast<Traits&>(data_), static_cast<Traits&>(other.data_)); in swap() 140 Traits& get_traits() { return data_; } in get_traits() 141 const Traits& get_traits() const { return data_; } in get_traits() 164 template<class T, class Traits> [all …]
|
/external/libchrome/base/mac/ |
D | scoped_nsobject.h | 85 using Traits = internal::ScopedNSProtocolTraits<NST>; 89 NST object = Traits::InvalidValue(), 91 : ScopedTypeRef<NST, Traits>(object, policy) {} 93 explicit scoped_nsprotocol(NST object = Traits::InvalidValue()) 94 : ScopedTypeRef<NST, Traits>(object, base::scoped_policy::RETAIN) {} 98 : ScopedTypeRef<NST, Traits>(that) {} in scoped_nsprotocol() 102 : ScopedTypeRef<NST, Traits>(that_as_subclass) {} in scoped_nsprotocol() 105 : ScopedTypeRef<NST, Traits>(that) {} in scoped_nsprotocol() 108 ScopedTypeRef<NST, Traits>::operator=(that); 113 void reset(NST object = Traits::InvalidValue(), [all …]
|
D | scoped_typeref.h | 51 template<typename T, typename Traits = ScopedTypeRefTraits<T>> 57 __unsafe_unretained T object = Traits::InvalidValue(), 61 object_ = Traits::Retain(object_); in object_() 64 ScopedTypeRef(const ScopedTypeRef<T, Traits>& that) in ScopedTypeRef() 67 object_ = Traits::Retain(object_); in ScopedTypeRef() 75 object_ = Traits::Retain(object_); in ScopedTypeRef() 78 ScopedTypeRef(ScopedTypeRef<T, Traits>&& that) : object_(that.object_) { in ScopedTypeRef() 79 that.object_ = Traits::InvalidValue(); in ScopedTypeRef() 84 Traits::Release(object_); in ~ScopedTypeRef() 87 ScopedTypeRef& operator=(const ScopedTypeRef<T, Traits>& that) { [all …]
|
/external/llvm/include/llvm/ADT/ |
D | IntervalMap.h | 559 template <typename KeyT, typename ValT, unsigned N, typename Traits> 578 assert((i == 0 || Traits::stopLess(stop(i - 1), x)) && in findFrom() 580 while (i != Size && Traits::stopLess(stop(i), x)) ++i; in findFrom() 593 assert((i == 0 || Traits::stopLess(stop(i - 1), x)) && in safeFind() 595 while (Traits::stopLess(stop(i), x)) ++i; in safeFind() 607 return Traits::startLess(x, start(i)) ? NotFound : value(i); in safeLookup() 622 template <typename KeyT, typename ValT, unsigned N, typename Traits> 623 unsigned LeafNode<KeyT, ValT, N, Traits>:: 627 assert(!Traits::stopLess(b, a) && "Invalid interval"); in insertFrom() 630 assert((i == 0 || Traits::stopLess(stop(i - 1), a))); in insertFrom() [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/ADT/ |
D | IntervalMap.h | 538 template <typename KeyT, typename ValT, unsigned N, typename Traits> 557 assert((i == 0 || Traits::stopLess(stop(i - 1), x)) && in findFrom() 559 while (i != Size && Traits::stopLess(stop(i), x)) ++i; in findFrom() 572 assert((i == 0 || Traits::stopLess(stop(i - 1), x)) && in safeFind() 574 while (Traits::stopLess(stop(i), x)) ++i; in safeFind() 586 return Traits::startLess(x, start(i)) ? NotFound : value(i); in safeLookup() 601 template <typename KeyT, typename ValT, unsigned N, typename Traits> 602 unsigned LeafNode<KeyT, ValT, N, Traits>:: 606 assert(!Traits::stopLess(b, a) && "Invalid interval"); in insertFrom() 609 assert((i == 0 || Traits::stopLess(stop(i - 1), a))); in insertFrom() [all …]
|
/external/libcxx/test/std/experimental/filesystem/class.path/path.member/path.native.obs/ |
D | string_alloc.pass.cpp | 55 using Traits = std::char_traits<CharT>; in doShortStringTest() typedef 56 using AStr = std::basic_string<CharT, Traits, MAlloc>; in doShortStringTest() 58 AStr s = p.string<CharT, Traits, MAlloc>(); in doShortStringTest() 65 using Traits = std::char_traits<CharT>; in doShortStringTest() typedef 66 using AStr = std::basic_string<CharT, Traits, MAlloc>; in doShortStringTest() 71 AStr s = p.string<CharT, Traits, MAlloc>(a); in doShortStringTest() 96 using Traits = std::char_traits<CharT>; in doLongStringTest() typedef 97 using AStr = std::basic_string<CharT, Traits, MAlloc>; in doLongStringTest() 99 AStr s = p.string<CharT, Traits, MAlloc>(); in doLongStringTest() 106 using Traits = std::char_traits<CharT>; in doLongStringTest() typedef [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/Transforms/Utils/ |
D | SSAUpdaterImpl.h | 27 typedef SSAUpdaterTraits<UpdaterT> Traits; typedef 28 typedef typename Traits::BlkT BlkT; 29 typedef typename Traits::ValT ValT; 30 typedef typename Traits::PhiT PhiT; 76 ValT V = Traits::GetUndefVal(BB, Updater); in GetValue() 107 Traits::FindPredecessorBlocks(Info->BB, &Preds); in BuildBlockList() 174 for (typename Traits::BlkSucc_iterator SI = in BuildBlockList() 175 Traits::BlkSucc_begin(Info->BB), in BuildBlockList() 176 E = Traits::BlkSucc_end(Info->BB); SI != E; ++SI) { in BuildBlockList() 234 Pred->AvailableVal = Traits::GetUndefVal(Pred->BB, Updater); in FindDominators() [all …]
|
/external/clang/unittests/AST/ |
D | CommentParser.cpp | 42 Traits(Allocator, CommentOptions()) { in CommentParserTest() 51 CommandTraits Traits; member in clang::comments::__anon5b254c8e0111::CommentParserTest 61 Lexer L(Allocator, Diags, Traits, Begin, Source, Source + strlen(Source)); in parseString() 63 Sema S(Allocator, SourceMgr, Diags, Traits, /*PP=*/ nullptr); in parseString() 64 Parser P(L, S, Allocator, SourceMgr, Diags, Traits); in parseString() 69 FC->dump(llvm::errs(), &Traits, &SourceMgr); in parseString() 161 const CommandTraits &Traits, in HasBlockCommandAt() argument 170 StringRef ActualName = BCC->getCommandName(Traits); in HasBlockCommandAt() 183 const CommandTraits &Traits, in HasParamCommandAt() argument 195 StringRef ActualCommandName = PCC->getCommandName(Traits); in HasParamCommandAt() [all …]
|
/external/libmojo/mojo/public/tools/bindings/generators/cpp_templates/ |
D | struct_serialization_declaration.tmpl | 34 using Traits = StructTraits<{{mojom_type}}, UserType>; 38 if (CallIsNullIfExists<Traits>(input)) 41 void* custom_context = CustomContextHelper<Traits>::SetUp(input, context); 45 struct, "CallWithContext(Traits::%s, input, custom_context)", 54 if (CallIsNullIfExists<Traits>(input)) { 59 void* custom_context = CustomContextHelper<Traits>::GetNext(context); 63 "CallWithContext(Traits::%s, input, custom_context)", "result", 67 CustomContextHelper<Traits>::TearDown(input, custom_context); 74 return CallSetToNullIfExists<Traits>(output); 77 return Traits::Read(data_view, output);
|
/external/eigen/Eigen/src/Core/products/ |
D | GeneralBlockPanelKernel.h | 95 typedef gebp_traits<LhsScalar,RhsScalar> Traits; typedef 106 typedef typename Traits::ResScalar ResScalar; 108 kdiv = KcFactor * (Traits::mr * sizeof(LhsScalar) + Traits::nr * sizeof(RhsScalar)), 109 ksub = Traits::mr * Traits::nr * sizeof(ResScalar), 111 mr = Traits::mr, 112 nr = Traits::nr 163 typedef typename Traits::ResScalar ResScalar; 166 k_div = KcFactor * (Traits::mr * sizeof(LhsScalar) + Traits::nr * sizeof(RhsScalar)), 167 k_sub = Traits::mr * Traits::nr * sizeof(ResScalar) 211 if(remaining_l1 >= Index(Traits::nr*sizeof(RhsScalar))*k) [all …]
|
/external/llvm/include/llvm/Transforms/Utils/ |
D | SSAUpdaterImpl.h | 38 typedef SSAUpdaterTraits<UpdaterT> Traits; typedef 39 typedef typename Traits::BlkT BlkT; 40 typedef typename Traits::ValT ValT; 41 typedef typename Traits::PhiT PhiT; 87 ValT V = Traits::GetUndefVal(BB, Updater); in GetValue() 118 Traits::FindPredecessorBlocks(Info->BB, &Preds); in BuildBlockList() 185 for (typename Traits::BlkSucc_iterator SI = in BuildBlockList() 186 Traits::BlkSucc_begin(Info->BB), in BuildBlockList() 187 E = Traits::BlkSucc_end(Info->BB); SI != E; ++SI) { in BuildBlockList() 245 Pred->AvailableVal = Traits::GetUndefVal(Pred->BB, Updater); in FindDominators() [all …]
|