/foundation/distributeddatamgr/kv_store/frameworks/common/ |
H A D | traits.h | 23 template<class Tp, class... Types> 26 template<class Tp, class... Types> 27 inline constexpr size_t index_of_v = index_of<Tp, Types...>::value; 33 // If there is one in the ...Types, that is equal to T. same_index_of_v is the index. 34 // If there is no one in the ...Types, that is equal to T. same_index_of_v is sizeof ...(Types) 35 template<class T, class... Types> 36 inline constexpr size_t same_index_of_v = index_of<T, Types...>::value; 38 // There is one in the ...Types, that is equal to T. If not, the same_in_v will be false. 39 template<class T, class... Types> [all...] |
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/mock/include/ |
H A D | traits.h | 23 template<typename Tp, typename... Types> 26 template<typename Tp, typename... Types> 27 inline constexpr size_t index_of_v = index_of<Tp, Types...>::value; 33 // If there is one in the ...Types, that is equal to T. same_index_of_v is the index. 34 // If there is no one in the ...Types, that is equal to T. same_index_of_v is sizeof ...(Types) 35 template<typename T, typename... Types> 36 inline constexpr size_t same_index_of_v = index_of<T, Types...>::value; 38 // There is one in the ...Types, that is equal to T. If not, the same_in_v will be false. 39 template<typename T, typename... Types> [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/include/cloud/ |
H A D | cloud_db_types.h | 67 template<typename Tp, typename... Types> 70 template<typename Tp, typename... Types> 71 inline static constexpr size_t index_of_v = index_of<Tp, Types...>::value; 77 template<typename... Types> 79 static constexpr size_t value = sizeof...(Types); 82 template<typename T, typename... Types> 84 static constexpr size_t value = index_of_v<T, Types...>; 87 template<typename... Types> 88 static variant_size_of<Types...> variant_size_test(const std::variant<Types [all...] |
/foundation/distributeddatamgr/relational_store/interfaces/inner_api/rdb/include/ |
H A D | value_object.h | 48 template<typename Tp, typename... Types> 51 template<typename Tp, typename... Types> 52 inline static constexpr size_t index_of_v = index_of<Tp, Types...>::value; 58 template<typename... Types> 60 static constexpr size_t value = sizeof...(Types); 63 template<typename T, typename... Types> 65 static constexpr size_t value = index_of_v<T, Types...>; 68 template<typename... Types> 69 static variant_size_of<Types...> variant_size_test(const std::variant<Types [all...] |
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/common/include/ |
H A D | js_sendable_utils.h | 51 template<typename... Types> 52 napi_value Convert2Sendable(napi_env env, const std::variant<Types...> &value); 60 template<typename T, typename First, typename... Types> 67 return GetSendableValue<T, Types...>(env, value); in GetSendableValue() 91 template<typename... Types> 92 napi_value JSUtils::Convert2Sendable(napi_env env, const std::variant<Types...> &value) in Convert2Sendable() 94 return GetSendableValue<decltype(value), Types...>(env, value); in Convert2Sendable()
|
H A D | js_utils.h | 94 template<typename... Types> 95 int32_t Convert2Value(napi_env env, napi_value jsValue, std::variant<Types...> &value); 132 template<typename... Types> 133 napi_value Convert2JSValue(napi_env env, const std::variant<Types...> &value); 156 template<typename T, typename First, typename... Types> 165 return GetCPPValue<T, Types...>(env, jsValue, value); in GetCPPValue() 174 template<typename T, typename First, typename... Types> 181 return GetJSValue<T, Types...>(env, value); in GetJSValue() 326 template<typename... Types> 327 int32_t JSUtils::Convert2Value(napi_env env, napi_value jsValue, std::variant<Types [all...] |
/foundation/distributeddatamgr/preferences/frameworks/js/napi/common/include/ |
H A D | js_common_utils.h | 66 template<typename... Types> 67 int32_t Convert2NativeValue(napi_env env, napi_value jsValue, std::variant<Types...> &value); 92 template<typename... Types> napi_value Convert2JSValue(napi_env env, const std::variant<Types...> &value); 102 template<typename T, typename First, typename... Types> int32_t GetCPPValue(napi_env env, napi_value jsValue, T &value) in GetCPPValue() 110 return GetCPPValue<T, Types...>(env, jsValue, value); in GetCPPValue() 118 template<typename T, typename First, typename... Types> napi_value GetJSValue(napi_env env, const T &value) in GetJSValue() 124 return GetJSValue<T, Types...>(env, value); in GetJSValue() 155 template<typename... Types> 156 int32_t JSUtils::Convert2NativeValue(napi_env env, napi_value jsValue, std::variant<Types [all...] |
H A D | js_sendable_utils.h | 53 template<typename... Types> 54 int32_t ConvertFromSendable(napi_env env, napi_value jsValue, std::variant<Types...> &value); 75 template<typename... Types> 76 napi_value ConvertToSendable(napi_env env, const std::variant<Types...> &value); 87 template<typename T, typename First, typename... Types> 96 return GetCPPValue<T, Types...>(env, jsValue, value); in GetCPPValue() 105 template<typename T, typename First, typename... Types> 112 return GetSendableValue<T, Types...>(env, value); in GetSendableValue() 144 template<typename... Types> 145 int32_t Utils::ConvertFromSendable(napi_env env, napi_value jsValue, std::variant<Types [all...] |
/foundation/multimedia/av_session/utils/include/ |
H A D | avsession_sysevent.h | 65 template<typename... Types> 66 static int HiSysWriteFault(const std::string& eventName, Types... keyValues) in HiSysWriteFault() 72 template<typename... Types> 73 static int HiSysWriteStatistic(const std::string& eventName, Types... keyValues) in HiSysWriteStatistic() 79 template<typename... Types> 80 static int HiSysWriteSecurity(const std::string& eventName, Types... keyValues) in HiSysWriteSecurity() 86 template<typename... Types> 87 static int HiSysWriteBehavior(const std::string& eventName, Types... keyValues) in HiSysWriteBehavior()
|
/foundation/ai/ai_engine/services/common/utils/encdec/include/ |
H A D | encdec_facade.h | 53 template<typename Type, typename... Types> 54 static int ProcessEncode(DataInfo &dataInfo, const Type &arg, const Types &...args) in ProcessEncode() 90 template<typename Type, typename... Types> 91 static int ProcessDecode(const DataInfo &dataInfo, Type &arg, Types &...args) in ProcessDecode()
|
H A D | data_encoder.h | 71 template<typename Type, typename... Types> 72 int RecursiveEncode(const Type &arg, const Types &...args) in RecursiveEncode()
|
H A D | data_decoder.h | 53 template<typename Type, typename... Types> 54 int RecursiveDecode(Type &arg, Types &...args) in RecursiveDecode()
|
/foundation/arkui/ace_engine/frameworks/bridge/common/utils/ |
H A D | function_traits.h | 43 template<typename C, typename R, typename Tuple, typename... Types> 44 auto CallMemberFunction(C* instance, R (C::*func)(Types...), Tuple&& tup) in CallMemberFunction() 46 return CallMemberFunction(instance, func, std::forward<Tuple>(tup), std::make_index_sequence<sizeof...(Types)> {}); in CallMemberFunction() 55 template<typename R, typename Tuple, typename... Types> 56 auto CallStaticMemberFunction(R (*func)(Types...), Tuple&& tup) in CallStaticMemberFunction() 58 return CallStaticMemberFunction(func, std::forward<Tuple>(tup), std::make_index_sequence<sizeof...(Types)> {}); in CallStaticMemberFunction()
|
/foundation/arkui/napi/interfaces/inner_api/cjffi/native/ |
H A D | cj_lambda.h | 56 template <typename... Types> 57 static inline void* GetElementAddr(std::tuple<Types...> const& tup, size_t idx) in GetElementAddr() 59 return TupleRuntimeHelper<sizeof...(Types)>::GetElementAddr(tup, idx); in GetElementAddr() 62 template <typename... Types> 63 static inline void* GetElementAddr(std::tuple<Types...>& tup, size_t idx) in GetElementAddr() 65 return TupleRuntimeHelper<sizeof...(Types)>::GetElementAddr(tup, idx); in GetElementAddr()
|
/foundation/multimedia/av_codec/services/services/codec/server/post_processing/ |
H A D | utils.h | 38 template<typename... Types> 40 using Array = std::tuple<Types...>; 45 static constexpr size_t size = sizeof...(Types);
|
/foundation/graphic/graphic_3d/lume/LumeRender/src/gles/ |
H A D | spirv_cross_helper_structs_gles.h | 56 enum class Types { INVALID = 0, BOOL, UINT32, INT32, FLOAT }; class 57 Types constantType = Types::INVALID;
|
/foundation/distributeddatamgr/data_share/frameworks/native/common/include/ |
H A D | datashare_valuebucket_convert.h | 46 template<typename T, typename... Types>
47 static bool Convert(T&& input, std::variant<Types...>& output)
in Convert() 49 return GetItem<T, decltype(output), Types...>(std::move(input), output);
in Convert()
|
/foundation/distributeddatamgr/data_object/frameworks/jskitsimpl/include/common/ |
H A D | js_util.h | 105 template<typename T, typename First, typename... Types> 114 return GetValues<T, Types...>(env, jsValue, value); in GetValues() 117 template<typename... Types> 118 static napi_status GetValue(napi_env env, napi_value jsValue, std::variant<Types...> &value) in GetValue() 129 return GetValues<decltype(value), Types...>(env, jsValue, value); in GetValue()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/ |
H A D | inner_event_report.h | 64 template<typename... Types> 66 HiSysEventType type, Types... keyValues);
|
/foundation/graphic/graphic_3d/lume/metaobject/test/src/ |
H A D | test_data_helpers.h | 43 using Types = ::testing::Types<T...>;
|
/foundation/ability/ability_runtime/interfaces/inner_api/dataobs_manager/include/ |
H A D | dataobs_utils.h | 144 template<typename T, typename... Types> 145 bool Marshal(MessageParcel &parcel, const T &first, const Types &...others); 147 template<typename T, typename... Types> 148 bool Unmarshal(MessageParcel &parcel, T &first, Types &...others); 307 template<typename T, typename... Types> 308 bool DataObsUtils::Marshal(MessageParcel &parcel, const T &first, const Types &...others) in Marshal() 316 template<typename T, typename... Types> 317 bool DataObsUtils::Unmarshal(MessageParcel &parcel, T &first, Types &...others) in Unmarshal()
|
/foundation/graphic/graphic_3d/lume/LumeBinaryCompile/LumeShaderCompiler/src/ |
H A D | spirv_cross_helpers_gles.cpp | 294 if ((type == SpecConstantInfo::Types::BOOL) || (type == SpecConstantInfo::Types::UINT32)) {
in DefineForSpec() 298 } else if (type == SpecConstantInfo::Types::INT32) {
in DefineForSpec() 302 } else if (type == SpecConstantInfo::Types::FLOAT) {
in DefineForSpec() 377 t.constantType = SpecConstantInfo::Types::BOOL;
in CreateSpecInfos() 379 t.constantType = SpecConstantInfo::Types::UINT32;
in CreateSpecInfos() 381 t.constantType = SpecConstantInfo::Types::INT32;
in CreateSpecInfos() 383 t.constantType = SpecConstantInfo::Types::FLOAT;
in CreateSpecInfos()
|
H A D | spirv_cross_helper_structs_gles.h | 174 enum class Types { INVALID = 0, BOOL, UINT32, INT32, FLOAT };
class 175 Types constantType = Types::INVALID;
|
/foundation/distributeddatamgr/preferences/frameworks/native/src/ |
H A D | preferences_impl.cpp | 268 template<typename T, typename First, typename... Types> 277 return GetPrefValue<T, Types...>(element, value); in GetPrefValue() 280 template<typename... Types> 281 bool Convert2PrefValue(const Element &element, std::variant<Types...> &value) in Convert2PrefValue() 283 return GetPrefValue<decltype(value), Types...>(element, value); in Convert2PrefValue() 367 template<typename T, typename First, typename... Types> void GetElement(Element &elem, const T &value) in GetElement() 373 return GetElement<T, Types...>(elem, value); in GetElement() 376 template<typename... Types> void Convert2Element(Element &elem, const std::variant<Types...> &value) in Convert2Element() 378 return GetElement<decltype(value), Types in Convert2Element() [all...] |
/foundation/multimodalinput/input/intention/dfx/include/ |
H A D | cooperate_hisysevent.h | 69 template<typename... Types> 71 OHOS::HiviewDFX::HiSysEvent::EventType eventType, Types... paras);
|