/third_party/icu/icu4c/source/common/ |
D | capi_helper.h | 14 template<typename CType, typename CPPType, int32_t kMagic> 20 static const CPPType* validate(const CType* input, UErrorCode& status); 25 static CPPType* validate(CType* input, UErrorCode& status); 30 const CType* exportConstForC() const; 35 CType* exportForC(); 50 template<typename CType, typename CPPType, int32_t kMagic> 52 IcuCApiHelper<CType, CPPType, kMagic>::validate(const CType* input, UErrorCode& status) { in validate() 61 if (static_cast<const IcuCApiHelper<CType, CPPType, kMagic>*>(impl)->fMagic != kMagic) { in validate() 68 template<typename CType, typename CPPType, int32_t kMagic> 70 IcuCApiHelper<CType, CPPType, kMagic>::validate(CType* input, UErrorCode& status) { in validate() [all …]
|
/third_party/node/deps/icu-small/source/common/ |
D | capi_helper.h | 14 template<typename CType, typename CPPType, int32_t kMagic> 20 static const CPPType* validate(const CType* input, UErrorCode& status); 25 static CPPType* validate(CType* input, UErrorCode& status); 30 const CType* exportConstForC() const; 35 CType* exportForC(); 50 template<typename CType, typename CPPType, int32_t kMagic> 52 IcuCApiHelper<CType, CPPType, kMagic>::validate(const CType* input, UErrorCode& status) { in validate() 61 if (static_cast<const IcuCApiHelper<CType, CPPType, kMagic>*>(impl)->fMagic != kMagic) { in validate() 68 template<typename CType, typename CPPType, int32_t kMagic> 70 IcuCApiHelper<CType, CPPType, kMagic>::validate(CType* input, UErrorCode& status) { in validate() [all …]
|
/third_party/skia/third_party/externals/icu/source/common/ |
D | capi_helper.h | 14 template<typename CType, typename CPPType, int32_t kMagic> 20 static const CPPType* validate(const CType* input, UErrorCode& status); 25 static CPPType* validate(CType* input, UErrorCode& status); 30 const CType* exportConstForC() const; 35 CType* exportForC(); 50 template<typename CType, typename CPPType, int32_t kMagic> 52 IcuCApiHelper<CType, CPPType, kMagic>::validate(const CType* input, UErrorCode& status) { in validate() 61 if (static_cast<const IcuCApiHelper<CType, CPPType, kMagic>*>(impl)->fMagic != kMagic) { in validate() 68 template<typename CType, typename CPPType, int32_t kMagic> 70 IcuCApiHelper<CType, CPPType, kMagic>::validate(CType* input, UErrorCode& status) { in validate() [all …]
|
/third_party/skia/third_party/externals/dawn/generator/templates/ |
D | webgpu_cpp.cpp | 28 {% set CType = as_cType(type.name) %} 32 static_assert(sizeof({{CppType}}) == sizeof({{CType}}), "sizeof mismatch for {{CppType}}"); 33 … static_assert(alignof({{CppType}}) == alignof({{CType}}), "alignof mismatch for {{CppType}}"); 42 {% set CType = as_cType(type.name) + "Flags" %} 46 static_assert(sizeof({{CppType}}) == sizeof({{CType}}), "sizeof mismatch for {{CppType}}"); 47 … static_assert(alignof({{CppType}}) == alignof({{CType}}), "alignof mismatch for {{CppType}}"); 66 {% set CType = as_cType(type.name) %} 70 static_assert(sizeof({{CppType}}) == sizeof({{CType}}), "sizeof mismatch for {{CppType}}"); 71 … static_assert(alignof({{CppType}}) == alignof({{CType}}), "alignof mismatch for {{CppType}}"); 74 static_assert(offsetof({{CppType}}, nextInChain) == offsetof({{CType}}, nextInChain), [all …]
|
D | api_cpp.h | 67 template<typename Derived, typename CType> 71 ObjectBase(CType handle): mHandle(handle) { 124 CType Get() const { 127 CType Release() { 128 CType result = mHandle; 132 static Derived Acquire(CType handle) { 139 CType mHandle = nullptr; 173 {% set CType = as_cType(type.name) %} 174 class {{CppType}} : public ObjectBase<{{CppType}}, {{CType}}> { 184 friend ObjectBase<{{CppType}}, {{CType}}>; [all …]
|
/third_party/flutter/skia/src/sksl/ |
D | SkSLCPPUniformCTypes.cpp | 116 Layout::CType ctype, const std::vector<String>& skslTypes, const String& setUniformFormat, in UniformCTypeMapper() 131 static UniformCTypeMapper REGISTER(Layout::CType ctype, const std::vector<String>& skslTypes, in REGISTER() 138 static UniformCTypeMapper REGISTER(Layout::CType ctype, const std::vector<String>& skslTypes, in REGISTER() 150 REGISTER(Layout::CType::kSkRect, { "half4", "float4", "double4" }, in get_mappers() 155 REGISTER(Layout::CType::kSkIRect, { "int4", "short4", "byte4" }, in get_mappers() 160 REGISTER(Layout::CType::kSkPMColor4f, { "half4", "float4", "double4" }, in get_mappers() 164 REGISTER(Layout::CType::kSkVector4, { "half4", "float4", "double4" }, in get_mappers() 169 REGISTER(Layout::CType::kSkPoint, { "half2", "float2", "double2" } , in get_mappers() 173 REGISTER(Layout::CType::kSkIPoint, { "int2", "short2", "byte2" }, in get_mappers() 177 REGISTER(Layout::CType::kSkMatrix, { "half3x3", "float3x3", "double3x3" }, in get_mappers() [all …]
|
D | SkSLCPPUniformCTypes.h | 36 UniformCTypeMapper(Layout::CType ctype, const std::vector<String>& skslTypes, in UniformCTypeMapper() 42 UniformCTypeMapper(Layout::CType ctype, const std::vector<String>& skslTypes, in UniformCTypeMapper() 61 Layout::CType ctype() const { in ctype() 116 UniformCTypeMapper(Layout::CType ctype, const std::vector<String>& skslTypes, 120 Layout::CType fCType;
|
D | SkSLHCodeGenerator.cpp | 32 Layout::CType ctype = ParameterCType(context, type, layout); in ParameterType() 33 if (ctype != Layout::CType::kDefault) { in ParameterType() 39 Layout::CType HCodeGenerator::ParameterCType(const Context& context, const Type& type, in ParameterCType() 41 if (layout.fCType != Layout::CType::kDefault) { in ParameterCType() 47 return Layout::CType::kFloat; in ParameterCType() 51 return Layout::CType::kInt32; in ParameterCType() 53 return Layout::CType::kSkPoint; in ParameterCType() 57 return Layout::CType::kSkIPoint; in ParameterCType() 61 return Layout::CType::kSkIRect; in ParameterCType() 63 return Layout::CType::kSkRect; in ParameterCType() [all …]
|
/third_party/flutter/skia/third_party/externals/dawn/generator/templates/ |
D | apicpp.cpp | 21 {% set CType = as_cType(type.name) %} 23 static_assert(sizeof({{CppType}}) == sizeof({{CType}}), "sizeof mismatch for {{CppType}}"); 24 … static_assert(alignof({{CppType}}) == alignof({{CType}}), "alignof mismatch for {{CppType}}"); 35 {% set CType = as_cType(type.name) %} 37 static_assert(sizeof({{CppType}}) == sizeof({{CType}}), "sizeof mismatch for {{CppType}}"); 38 … static_assert(alignof({{CppType}}) == alignof({{CType}}), "alignof mismatch for {{CppType}}"); 41 static_assert(offsetof({{CppType}}, nextInChain) == offsetof({{CType}}, nextInChain), 46 … static_assert(offsetof({{CppType}}, {{memberName}}) == offsetof({{CType}}, {{memberName}}), 54 {% set CType = as_cType(type.name) %} 56 static_assert(sizeof({{CppType}}) == sizeof({{CType}}), "sizeof mismatch for {{CppType}}"); [all …]
|
D | apicpp.h | 64 template<typename Derived, typename CType> 68 ObjectBase(CType handle): mHandle(handle) { 114 CType Get() const { 117 CType Release() { 118 CType result = mHandle; 122 static Derived Acquire(CType handle) { 129 CType mHandle = nullptr; 161 {% set CType = as_cType(type.name) %} 162 class {{CppType}} : public ObjectBase<{{CppType}}, {{CType}}> { 172 friend ObjectBase<{{CppType}}, {{CType}}>; [all …]
|
/third_party/flutter/skia/src/sksl/ir/ |
D | SkSLLayout.h | 81 enum class CType { enum 151 static const char* CTypeToStr(CType ctype) { in CTypeToStr() 153 case CType::kDefault: in CTypeToStr() 155 case CType::kFloat: in CTypeToStr() 157 case CType::kInt32: in CTypeToStr() 159 case CType::kSkRect: in CTypeToStr() 161 case CType::kSkIRect: in CTypeToStr() 163 case CType::kSkPMColor4f: in CTypeToStr() 165 case CType::kSkPMColor: in CTypeToStr() 167 case CType::kSkVector4: in CTypeToStr() [all …]
|
/third_party/flutter/skia/third_party/externals/dawn/generator/templates/dawn_native/ |
D | api_structs.cpp | 21 {% set CType = as_cType(type.name) %} 23 static_assert(sizeof({{CppType}}) == sizeof({{CType}}), "sizeof mismatch for {{CppType}}"); 24 … static_assert(alignof({{CppType}}) == alignof({{CType}}), "alignof mismatch for {{CppType}}"); 27 static_assert(offsetof({{CppType}}, nextInChain) == offsetof({{CType}}, nextInChain), 32 … static_assert(offsetof({{CppType}}, {{memberName}}) == offsetof({{CType}}, {{memberName}}),
|
/third_party/skia/third_party/externals/dawn/generator/templates/dawn_native/ |
D | wgpu_structs.cpp | 37 {% set CType = as_cType(type.name) %} 39 static_assert(sizeof({{CppType}}) == sizeof({{CType}}), "sizeof mismatch for {{CppType}}"); 40 … static_assert(alignof({{CppType}}) == alignof({{CType}}), "alignof mismatch for {{CppType}}"); 43 static_assert(offsetof({{CppType}}, nextInChain) == offsetof({{CType}}, nextInChain), 48 … static_assert(offsetof({{CppType}}, {{memberName}}) == offsetof({{CType}}, {{memberName}}),
|
/third_party/flutter/skia/src/gpu/effects/ |
D | GrSkSLFP.cpp | 96 static SkSL::Layout::CType get_ctype(const SkSL::Context& context, const SkSL::Variable& v) { in get_ctype() 97 SkSL::Layout::CType result = v.fModifiers.fLayout.fCType; in get_ctype() 98 if (result == SkSL::Layout::CType::kDefault) { in get_ctype() 100 result = SkSL::Layout::CType::kFloat; in get_ctype() 102 result = SkSL::Layout::CType::kSkRect; in get_ctype() 104 result = SkSL::Layout::CType::kSkPMColor; in get_ctype() 106 result = SkSL::Layout::CType::kInt32; in get_ctype() 108 result = SkSL::Layout::CType::kBool; in get_ctype() 110 return SkSL::Layout::CType::kDefault; in get_ctype() 223 case SkSL::Layout::CType::kSkPMColor: { in onSetData() [all …]
|
/third_party/icu/icu4c/source/i18n/ |
D | formattedval_impl.h | 220 #define UPRV_FORMATTED_VALUE_CAPI_NO_IMPLTYPE_AUTO_IMPL(CType, ImplType, HelperType, Prefix) \ argument 221 U_CAPI CType* U_EXPORT2 \ 234 Prefix ## _resultAsValue (const CType* uresult, UErrorCode* ec) { \ 240 Prefix ## _closeResult (CType* uresult) { \ 256 #define UPRV_FORMATTED_VALUE_CAPI_AUTO_IMPL(CPPType, CType, ImplType, HelperType, Prefix, MagicNumb… argument 259 typedef IcuCApiHelper<CType, ImplType, MagicNumber> HelperType; \ 271 UPRV_FORMATTED_VALUE_CAPI_NO_IMPLTYPE_AUTO_IMPL(CType, ImplType, HelperType, Prefix)
|
/third_party/skia/src/c/ |
D | sk_c_from_to.h | 8 static bool find_sk(CType from, SKType* to) { in find_sk() 20 static bool find_c(SKType from, CType* to) { in find_c() 32 #undef CType
|
/third_party/flutter/skia/src/c/ |
D | sk_c_from_to.h | 8 static bool find_sk(CType from, SKType* to) { in find_sk() 20 static bool find_c(SKType from, CType* to) { in find_c() 32 #undef CType
|
/third_party/node/deps/icu-small/source/i18n/ |
D | formattedval_impl.h | 258 #define UPRV_FORMATTED_VALUE_CAPI_NO_IMPLTYPE_AUTO_IMPL(CType, ImplType, HelperType, Prefix) \ argument 259 U_CAPI CType* U_EXPORT2 \ 272 Prefix ## _resultAsValue (const CType* uresult, UErrorCode* ec) { \ 278 Prefix ## _closeResult (CType* uresult) { \ 294 #define UPRV_FORMATTED_VALUE_CAPI_AUTO_IMPL(CPPType, CType, ImplType, HelperType, Prefix, MagicNumb… argument 297 typedef IcuCApiHelper<CType, ImplType, MagicNumber> HelperType; \ 309 UPRV_FORMATTED_VALUE_CAPI_NO_IMPLTYPE_AUTO_IMPL(CType, ImplType, HelperType, Prefix)
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
D | formattedval_impl.h | 257 #define UPRV_FORMATTED_VALUE_CAPI_NO_IMPLTYPE_AUTO_IMPL(CType, ImplType, HelperType, Prefix) \ argument 258 U_CAPI CType* U_EXPORT2 \ 271 Prefix ## _resultAsValue (const CType* uresult, UErrorCode* ec) { \ 277 Prefix ## _closeResult (CType* uresult) { \ 293 #define UPRV_FORMATTED_VALUE_CAPI_AUTO_IMPL(CPPType, CType, ImplType, HelperType, Prefix, MagicNumb… argument 296 typedef IcuCApiHelper<CType, ImplType, MagicNumber> HelperType; \ 308 UPRV_FORMATTED_VALUE_CAPI_NO_IMPLTYPE_AUTO_IMPL(CType, ImplType, HelperType, Prefix)
|
/third_party/protobuf/src/google/protobuf/ |
D | wire_format_lite.h | 256 template <typename CType, enum FieldType DeclaredType> 258 CType* value); 263 template <typename CType, enum FieldType DeclaredType> 266 RepeatedField<CType>* value); 270 template <typename CType, enum FieldType DeclaredType> 273 RepeatedField<CType>* value); 280 template <typename CType, enum FieldType DeclaredType> 282 const uint8* buffer, CType* value); 287 template <typename CType, enum FieldType DeclaredType> 289 io::CodedInputStream* input, RepeatedField<CType>* value); [all …]
|
/third_party/boost/libs/tti/test/ |
D | test_has_type_ct_compile.cpp | 28 …BOOST_MPL_ASSERT((BOOST_TTI_HAS_TYPE_GEN(CType)<AType::BType,boost::is_same<AType::BType::CType,_>… in main() 29 …BOOST_MPL_ASSERT((BOOST_TTI_HAS_TYPE_GEN(AnotherIntegerType)<AType::BType::CType,boost::is_same<in… in main()
|
D | test_mem_type_compile.cpp | 17 …tti::valid_member_type<BOOST_TTI_MEMBER_TYPE_GEN(AnotherIntegerType)<AType::BType::CType>::type>)); in main() 21 …lid_member_type<BOOST_TTI_MEMBER_TYPE_GEN(CType)<AType::BType,MarkerType>::type,BOOST_TTI_MEMBER_T… in main()
|
D | test_has_union.cpp | 18 BOOST_TEST(!BOOST_TTI_HAS_UNION_GEN(CType)<AType::BType>::value); in main() 19 BOOST_TEST(!BOOST_TTI_HAS_UNION_GEN(AnotherIntegerType)<AType::BType::CType>::value); in main() 23 BOOST_TEST(BOOST_TTI_HAS_UNION_GEN(CTypeUnion)<AType::BType::CType>::value); in main()
|
D | test_has_class.cpp | 18 BOOST_TEST(BOOST_TTI_HAS_CLASS_GEN(CType)<AType::BType>::value); in main() 19 BOOST_TEST(!BOOST_TTI_HAS_CLASS_GEN(AnotherIntegerType)<AType::BType::CType>::value); in main() 28 BOOST_TEST(!BOOST_TTI_HAS_CLASS_GEN(CTypeUnion)<AType::BType::CType>::value); in main()
|
D | test_has_type_ct.cpp | 21 …BOOST_TEST((BOOST_TTI_HAS_TYPE_GEN(CType)<AType::BType,boost::is_same<AType::BType::CType,_> >::va… in main() 22 …BOOST_TEST((BOOST_TTI_HAS_TYPE_GEN(AnotherIntegerType)<AType::BType::CType,boost::is_same<int,_> >… in main()
|