/foundation/graphic/graphic_3d/lume/metaobject/include/meta/api/ |
H A D | iteration.h | 38 template<typename Iterable, typename Func> 40 const BASE_NS::shared_ptr<Iterable>& c, Func&& func, TraversalType traversal = TraversalType::NO_HIERARCHY) in ForEachUnique() 44 [f = BASE_NS::forward<Func>(func)](Internal::IterationArgType<Func>& arg) { in ForEachUnique() 59 template<typename Iterable, typename Func> 61 const BASE_NS::shared_ptr<Iterable>& c, Func&& func, TraversalType traversal = TraversalType::NO_HIERARCHY) 65 [f = BASE_NS::forward<Func>(func)](const Internal::IterationArgType<Func>& arg) { 81 template<typename Iterable, typename Func> 83 const BASE_NS::shared_ptr<Iterable>& c, Func [all...] |
H A D | make_callback.h | 28 template<typename Callable, typename Func, typename Signature = typename Callable::FunctionType> 31 template<typename Callable, typename Func, typename R, typename... ARG> 32 class Callback<Callable, Func, R(ARG...)> : public IntroduceInterfaces<Callable> { 34 Callback(Func f) : func_(BASE_NS::move(f)) {} in Callback() 37 Func func_; 50 template<typename CallableType, typename Func> 51 auto MakeCallback(Func f) in MakeCallback() 53 return typename CallableType::Ptr(new Callback<CallableType, Func>(BASE_NS::move(f))); in MakeCallback() 59 template<typename CallableType, typename Func, typename... Args> 60 auto MakeCallback(Func [all...] |
H A D | deferred_callback.h | 29 template<typename Func> 34 QueueTask(Func func) : func_(BASE_NS::move(func)) {} in QueueTask() 43 Func func_; 46 template<typename Func, typename Interface, typename Signature = typename Interface::FunctionType> 52 template<typename Func, typename Interface, typename... Args> 53 class DeferredCallable<Func, Interface, void(Args...)> : public IntroduceInterfaces<Interface> { 68 DeferredCallable(Func func, const ITaskQueue::Ptr& q) in DeferredCallable() 69 : control_(new ControlBlock<Func>(BASE_NS::move(func))), queue_(q) in DeferredCallable() 93 BASE_NS::shared_ptr<ControlBlock<Func>> control_; 102 template<typename CallableInterface, typename Func, [all...] |
H A D | event_handler.h | 75 template<typename EventType, typename Func, 76 typename = EnableIfCanInvokeWithArguments<Func, typename EventType::FunctionType>> 77 EventHandler(const Event<EventType>& event, Func func, const ITaskQueue::Ptr& queue = nullptr) in EventHandler() 82 template<typename EventType, typename Func, 83 typename = EnableIfCanInvokeWithArguments<Func, typename EventType::FunctionType>> 158 template<typename EventType, typename Func, 159 typename = EnableIfCanInvokeWithArguments<Func, typename EventType::FunctionType>> 160 bool Subscribe(const Event<EventType>& event, Func func, const ITaskQueue::Ptr& queue = nullptr) in Subscribe() 168 template<typename EventType, typename Func, 169 typename = EnableIfCanInvokeWithArguments<Func, typenam [all...] |
H A D | timer.h | 48 template<typename Func> 49 Timer(const TimeSpan& interval, Func func, TimerType type, const ITaskQueue::Ptr& queue) in Timer() 57 template<typename Func> 58 Timer(const TimeSpan& interval, Func func, TimerType type, const BASE_NS::Uid& queueId) in Timer() 78 template<typename Func> 79 bool Start(const TimeSpan& interval, Func func, TimerType type, const ITaskQueue::Ptr& queue) in Start() 111 template<typename Func> 112 bool Start(const TimeSpan& interval, Func func, TimerType type, const BASE_NS::Uid& queueId) in Start() 172 template<typename Func> 173 inline ITaskQueue::Token SingleShotTimer(const TimeSpan& interval, Func fun [all...] |
H A D | future.h | 30 template<typename Func> 36 ContinuationFunction(Func func) : func_(BASE_NS::move(func)) {} in ContinuationFunction() 50 Func func_; 57 template<typename Func> 58 IFutureContinuation::Ptr CreateContinuation(Func func) in CreateContinuation() 99 template<typename Func, typename = EnableIfCanInvokeWithArguments<Func, IFutureContinuation::FunctionType>> 100 auto Then(Func func, const BASE_NS::shared_ptr<ITaskQueue>& queue) in Then() 104 template<typename Func, typename = EnableIfCanInvokeWithArguments<Func, ContinuationTypedFuntionTyp in Then() [all...] |
H A D | task.h | 30 template<typename Func> 33 QueueWaitableTask(Func func) : func_(BASE_NS::move(func)) {} in QueueWaitableTask() 47 Func func_; 53 template<typename Func> 54 ITaskQueueWaitableTask::Ptr CreateWaitableTask(Func func) in CreateWaitableTask()
|
H A D | task_queue.h | 29 template<typename Func> 30 auto CreateFutureFromResultFunction(Func func) in CreateFutureFromResultFunction() 39 template<typename Func> 40 auto AddFutureTaskOrRunDirectly(const ITaskQueue::Ptr& queue, Func func) in AddFutureTaskOrRunDirectly()
|
H A D | call_context.h | 236 template<typename Func, size_t... Index> 238 const ICallContext::Ptr& context, Func func, BASE_NS::array_view<IAny::Ptr> argView, IndexSequence<Index...>) in Call() 256 template<typename Func, size_t... Index> 257 static bool Call(const ICallContext::Ptr& context, Func func, IndexSequence<Index...> ind) 272 template<typename Func, size_t... Index> 273 static bool Call(const ICallContext::Ptr& context, Func func, 308 template<typename Func> 309 bool CallFunction(const ICallContext::Ptr& context, Func func) 311 return CallFunction(context, &func, &Func::operator());
|
H A D | function.h | 31 template<typename Obj, typename Func> 68 BASE_NS::string n, BASE_NS::weak_ptr<BASE_NS::remove_const_t<Obj>> obj, Func f, Internal::FContext* context) in DefaultFunction() 78 Func func_; 102 template<typename Func, typename = EnableIfBindFunction<Func>> 103 IFunction::Ptr CreateBindFunction(Func func) in CreateBindFunction() 118 template<typename Func, typename... Args> 119 IFunction::Ptr CreateBindFunctionSafe(Func func, Args&&... args) in CreateBindFunctionSafe()
|
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/api/internal/ |
H A D | iteration_types.h | 27 template<typename Func> 41 template<template<typename> class Intf, typename Func> 42 class IterationCallable : public IntroduceInterfaces<Intf<IterationArgType<Func>>> { 44 IterationCallable(Func f) : func_(BASE_NS::move(f)) {} in IterationCallable() 47 Func func_; 49 using ArgType = typename IntroduceInterfaces<Intf<IterationArgType<Func>>>::ArgType; 64 template<typename Func> 65 auto MakeIterationCallable(Func f) in MakeIterationCallable() 67 return ICallable::Ptr(new IterationCallable<IIterableCallable, Func>(BASE_NS::move(f))); in MakeIterationCallable() 69 template<typename Func> [all...] |
H A D | iteration.h | 28 template<template<typename> class InterableCallable, typename Iterable, typename Func> 29 IterationResult IterateImpl(const Iterable& ite, Func&& func, IterateStrategy is) in IterateImpl() 35 return CallIterate<InterableCallable>(ite, BASE_NS::forward<Func>(func), is); in IterateImpl() 50 template<typename Iterable, typename Func, typename = DisableIfCallable<Func>> 51 IterationResult Iterate(const BASE_NS::shared_ptr<Iterable>& c, Func&& func, IterateStrategy is) in Iterate() 53 return IterateImpl<IIterableCallable>(interface_pointer_cast<IIterable>(c), BASE_NS::forward<Func>(func), is); in Iterate() 62 template<typename Iterable, typename Func, typename = DisableIfCallable<Func>> 63 IterationResult ConstIterate(const BASE_NS::shared_ptr<Iterable>& c, Func [all...] |
H A D | breadth_first_iteration.h | 34 template<template<typename> class InterableCallable, typename Iterable, typename Func> 35 IterationResult BreadthFirstOrderIterate(const Iterable& i, Func& func, IterateStrategy is) in BreadthFirstOrderIterate() 41 using ParamType = IterationForwardArgType<Func>; in BreadthFirstOrderIterate()
|
H A D | depth_first_iteration.h | 24 template<template<typename> class InterableCallable, typename Iterable, typename Func> 25 IterationResult DepthFirstOrderIterate(const Iterable& i, Func& func, IterateStrategy is) in DepthFirstOrderIterate() 31 auto f = [&](IterationForwardArgType<Func> arg) { in DepthFirstOrderIterate()
|
/foundation/ai/intelligent_voice_framework/utils/ |
H A D | scope_guard.h | 22 template <typename Func> 25 explicit ScopeGuard(Func &&f) : func_(std::forward<Func>(f)), active_(true) in ScopeGuard() 59 Func func_; 70 template <typename Func> 71 inline ScopeGuard<Func> operator+(ScopeGuardOnExit, Func &&fn) in operator +() 73 return ScopeGuard<Func>(std::forward<Func>(fn)); in operator +()
|
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/api/property/ |
H A D | array_property_event_handler.h | 49 template<typename Func, typename = EnableIfCanInvokeWithArguments<Func, FunctionType>> 50 bool Subscribe(const Property& property, Func func, const ITaskQueue::Ptr& queue = nullptr) 59 template<typename Func, typename = EnableIfCanInvokeWithArguments<Func, FunctionType>> 60 bool Subscribe(const Property& property, Func func, const BASE_NS::Uid& queueId)
|
H A D | property_event_handler.h | 54 template<typename Func, typename = EnableIfCanInvokeWithArguments<Func, typename EventType::FunctionType>> 55 bool Subscribe(const IProperty::ConstPtr& property, Func func, const ITaskQueue::Ptr& queue = nullptr) in Subscribe() 60 template<typename Func, typename = EnableIfCanInvokeWithArguments<Func, typename EventType::FunctionType>> 61 bool Subscribe(const IProperty::ConstPtr& property, Func func, const BASE_NS::Uid& queueId) in Subscribe()
|
/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/ |
H A D | task_utils.h | 26 template<typename Func, typename... Args> 27 decltype(auto) MakeTask(Func&& f, Args&&... args) in MakeTask() 30 BASE_NS::forward<Func>(f), BASE_NS::forward<Args>(args)...); in MakeTask()
|
/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/event/ |
H A D | wifi_direct_event_template_dispatcher.h | 27 using Func = std::function<void(Content&)>; 28 WifiDirectEventTemplateDispatcher(WifiDirectEventQueue *queue, PrevDispatcher *prev, Func &&func) in WifiDirectEventTemplateDispatcher() 29 : queue_(queue), prev_(prev), func_(std::forward<Func>(func)), chained_(false) in WifiDirectEventTemplateDispatcher() 74 Func func_;
|
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/base/ |
H A D | interface_traits.h | 124 template<typename Func, typename Type> 125 using EnableIfProperBindFunction = decltype(BASE_NS::declval<void(const Type&)>()(BASE_NS::declval<Func>()())); 130 template<typename Func> 131 using EnableIfBindFunction = decltype(CallTestFunc(BASE_NS::declval<Func>()())); 133 template<typename Func, typename InvokeType, typename = void> 138 template<typename Func, typename Ret, typename... Args> 139 struct CanInvokeWithArgumentsImpl<Func, Ret(Args...), 140 decltype(BASE_NS::declval<Func>()(BASE_NS::declval<Args>()...), void())> { 148 template<typename Func, typename InvokeType> 149 constexpr bool CanInvokeWithArguments_v = CanInvokeWithArgumentsImpl<Func, InvokeTyp [all...] |
/foundation/resourceschedule/ffrt/src/sched/ |
H A D | task_client_adapter.h | 77 #define REG_FUNC(func) using func##Type = decltype(func)*; func##Type func##Func = nullptr 109 #define LOAD_FUNC(func) func##Func = reinterpret_cast<func##Type>(dlsym(handle_1, #func)); \ in Load() 110 if (func##Func != nullptr) { \ in Load() 113 func##Func = reinterpret_cast<func##Type>(dlsym(handle_2, #func)); \ in Load() 114 if (func##Func == nullptr) { \ in Load()
|
/foundation/graphic/graphic_2d/frameworks/opengl_wrapper/src/GLES3/ |
H A D | gles3.cpp | 25 template<typename Func = void*> 26 Func GetEglApi(const char* procname) in GetEglApi() 37 return reinterpret_cast<Func>(func); in GetEglApi()
|
/foundation/CastEngine/castengine_cast_framework/common/include/private/ |
H A D | cast_stub_helper.h | 30 using className##Func = int32_t (className::*)(MessageParcel &, MessageParcel &); \ 31 std::map<uint32_t, className##Func> taskMap_
|
/foundation/ability/dmsfwk/services/dtbabilitymgr/include/ |
H A D | distributed_ability_manager_stub.h | 49 using Func = int32_t(DistributedAbilityManagerStub::*)(MessageParcel& data, MessageParcel& reply); 50 std::map<uint32_t, Func> funcsMap_;
|
/foundation/multimedia/camera_framework/services/deferred_processing_service/include/base/ |
H A D | dps.h | 33 template <typename Command, typename Func, typename... Args> 34 int32_t SendCommandHelp(Func&& func, Args&& ...args) in SendCommandHelp()
|