Home | History | Annotate | Download | only in src

Lines Matching defs:_Type

180 template <typename _Type> class task;
292 typedef _Ty _Type;
298 typedef _Unit_type _Type;
316 typedef _Ty _Type;
322 typedef _Ty _Type;
330 template <typename _Type>
333 typedef _Type _Value;
336 template <typename _Type>
337 struct _Unhat<_Type*>
339 typedef _Type _Value;
344 template <typename _Type, bool _IsValueTypeOrRefType = __is_valid_winrt_type(_Type)>
350 template <typename _Type>
351 struct _ValueTypeOrRefType<_Type, true>
353 typedef _Type _Value;
374 template <typename _Type>
377 typedef decltype(_ProgressTypeSelector(stdx::declval<_Type>())) _Value;
391 template <typename _Type>
394 static const bool _Value = std::is_base_of<ABI::Windows::Foundation::IAsyncInfo, typename _Unhat<_Type>::_Value>::value ||
395 std::is_same<_TypeSelectorAsyncAction, decltype(details::_AsyncOperationKindSelector(stdx::declval<_Type>()))>::value ||
396 std::is_same<_TypeSelectorAsyncOperation, decltype(details::_AsyncOperationKindSelector(stdx::declval<_Type>()))>::value ||
397 std::is_same<_TypeSelectorAsyncOperationWithProgress, decltype(details::_AsyncOperationKindSelector(stdx::declval<_Type>()))>::value ||
398 std::is_same<_TypeSelectorAsyncActionWithProgress, decltype(details::_AsyncOperationKindSelector(stdx::declval<_Type>()))>::value;
444 template <typename _Type, bool _IsAsync = _IsIAsyncInfo<_Type>::_Value>
447 typedef typename details::_UnwrapTaskType<_Type>::_Type
449 typedef decltype(_AsyncOperationKindSelector(stdx::declval<_Type>())) _AsyncKind;
450 typedef typename details::_NormalizeVoidToUnitType<_TaskRetType>::_Type _NormalizedTaskRetType;
456 template<typename _Type>
457 struct _TaskTypeTraits<_Type, true>
459 typedef decltype(_ReturnAsyncOperationKindSelector(stdx::declval<_Type>())) _TaskRetType;
460 typedef decltype(_GetUnwrappedType(stdx::declval<_Type>())) _TaskRetType_abi;
462 typedef decltype(_AsyncOperationKindSelector(stdx::declval<_Type>())) _AsyncKind;
1273 template<typename _Type>
1276 void Set(const _Type& _type)
1278 _Result = _type;
1281 _Type Get()
1286 _Type _Result;
1289 template<typename _Type>
1290 struct _ResultHolder<_Type*>
1292 void Set(_Type* const & _type)
1294 _M_Result = _type;
1297 _Type* Get()
1304 Agile<_Type*> _M_Result;
1310 template<typename _Type>
1311 struct _ResultHolder<std::vector<_Type*>>
1313 void Set(const std::vector<_Type*>& _type)
1315 _Result.reserve(_type.size());
1317 for (auto _PTask = _type.begin(); _PTask != _type.end(); ++_PTask)
1323 std::vector<_Type*> Get()
1326 std::vector<_Type*> _Return;
1337 std::vector< Agile<_Type*> > _Result;
1340 template<typename _Type>
1341 struct _ResultHolder<std::pair<_Type*, void*> >
1343 void Set(const std::pair<_Type*, size_t>& _type)
1345 _M_Result = _type;
1348 std::pair<_Type*, size_t> Get()
1353 std::pair<Agile<_Type*>, size_t> _M_Result;
1356 template<typename _Type>
1364 static _Type _GetValue(_Type _ObjInCtx, const _ContextCallback & /* _Ctx */, bool /* _RuntimeAggregate */)
1370 template<typename _Type, size_t N = 0, bool bIsArray = std::is_array<_Type>::value>
1374 template<typename _Type, size_t N>
1375 struct _MarshalHelper<_Type, N, true>
1377 static _Type* _Perform(_Type(&_ObjInCtx)[N], const _ContextCallback& _Ctx)
1379 static_assert(__is_valid_winrt_type(_Type*), "must be a WinRT array compatible type");
1392 _Hr = CoMarshalInterThreadInterfaceInStream(winrt_type<_Type>::getuuid(), _PUnk, &_PStream);
1399 _Type* _Proxy;
1403 _Hr = CoGetInterfaceAndReleaseStream(_PStream, winrt_type<_Type>::getuuid(), reinterpret_cast<void**>(&_Proxy));
1411 template<typename _Type>
1412 struct _MarshalHelper<_Type, 0, false>
1414 static _Type* _Perform(_Type* _ObjInCtx, const _ContextCallback& _Ctx)
1416 static_assert(std::is_base_of<IUnknown, _Type>::value || __is_valid_winrt_type(_Type), "must be a COM or WinRT type");
1428 IUnknown * _PUnk = winrt_type<_Type>::create(_ObjInCtx);
1429 _Hr = CoMarshalInterThreadInterfaceInStream(winrt_type<_Type>::getuuid(), _PUnk, &_PStream);
1436 _Type* _Proxy;
1440 _Hr = CoGetInterfaceAndReleaseStream(_PStream, winrt_type<_Type>::getuuid(), reinterpret_cast<void**>(&_Proxy));
1460 template<typename _Type>
1461 _Type* _Marshal(_Type* _ObjInCtx, const _ContextCallback& _Ctx)
1463 return _MarshalHelper<_Type>::_Perform(_ObjInCtx, _Ctx);
1466 template<typename _Type>
1469 static _Type _Get(_Type _ObjInCtx, const _ContextCallback& _Ctx)
1475 template<typename _Type>
1476 struct _InContext<_Type*>
1478 static _Type* _Get(_Type* _ObjInCtx, const _ContextCallback& _Ctx)
1489 return _Marshal<_Type>(_ObjInCtx, _Ctx);
1493 template<typename _Type>
1494 struct _ResultContext<_Type*>
1496 static _Type* _GetValue(_Type* _ObjInCtx, const _ContextCallback& _Ctx, bool /* _RuntimeAggregate */)
1498 return _InContext<_Type*>::_Get(_ObjInCtx, _Ctx);
1510 template<typename _Type>
1511 struct _ResultContext<std::vector<_Type*>>
1513 static std::vector<_Type*> _GetValue(std::vector<_Type*> _ObjInCtx, const _ContextCallback& _Ctx, bool _RuntimeAggregate)
1528 *_It = _Marshal<_Type>(*_It, _Ctx);
1547 template<typename _Type>
1548 struct _ResultContext<std::pair<_Type*, size_t>>
1550 static std::pair<_Type*, size_t> _GetValue(std::pair<_Type*, size_t> _ObjInCtx, const _ContextCallback& _Ctx, bool _RuntimeAggregate)
1563 return std::pair<_Type*, size_t>(_Marshal<_Type>(_ObjInCtx.first, _Ctx), _ObjInCtx.second);
2228 typedef std::shared_ptr<_Task_impl<_ReturnType>> _Type;
2230 static _Type _Make(Concurrency::details::_CancellationTokenState * _Ct, Concurrency::scheduler_ptr _Scheduler_arg) { return std::make_shared<_Task_impl<_ReturnType>>(_Ct, _Scheduler_arg); }
2232 static _Type _Make(Concurrency::details::_CancellationTokenState * _Ct) { return std::make_shared<_Task_impl<_ReturnType>>(_Ct); }
2435 _PPLTaskHandle(const typename _Task_ptr<_ReturnType>::_Type & _PTask) : _M_pTask(_PTask)
2511 typename _Task_ptr<_ReturnType>::_Type _M_pTask;
3164 static void _AsyncInit(const typename _Task_ptr<_ReturnType>::_Type & _OuterTask,
3201 _NormalizeVoidToUnitType<_Result_abi>::_Type results;
3210 const_cast<_Task_ptr<_ReturnType>::_Type &>(_OuterTask).reset();
3216 static void _AsyncInit(const typename _Task_ptr<_ReturnType>::_Type& _OuterTask, const task<_InternalReturnType> & _UnwrappedTask)
3592 typedef std::vector<typename _Task_ptr<_ResultType>::_Type> _TaskList;
3632 template <typename _Type>
3633 std::function<HRESULT(_Unit_type, _Type*)> _MakeUnitToTFunc(const std::function<HRESULT(_Type*)>& _Func)
3635 return [=](_Unit_type, _Type* retVal) -> HRESULT { HRESULT hr = _Func(retVal); return hr; };
3638 template <typename _Type>
3639 std::function<HRESULT(_Type, _Unit_type*)> _MakeTToUnitFunc(const std::function<HRESULT(_Type)>& _Func)
3641 return[=](_Type t, _Unit_type* retVal) -> HRESULT { HRESULT hr = _Func(t); *retVal = _Unit_type(); return hr; };
3928 void _RegisterTask(const typename details::_Task_ptr<_ResultType>::_Type & _TaskParam)
4062 void _RegisterTask(details::_Task_ptr<details::_Unit_type>::_Type _TaskParam)
4727 const typename details::_Task_ptr<_ReturnType>::_Type & _GetImpl() const
4735 void _SetImpl(const typename details::_Task_ptr<_ReturnType>::_Type & _Impl)
4744 void _SetImpl(typename details::_Task_ptr<_ReturnType>::_Type && _Impl)
4826 _InitialTaskHandle(const typename details::_Task_ptr<_ReturnType>::_Type & _TaskImpl, const _Function & _Function) : _M_function(_Function), _PPLTaskHandle(_TaskImpl)
5004 details::_PPLTaskHandle<typename details::_NormalizeVoidToUnitType<_ContinuationReturnType>::_Type,
5007 typedef typename details::_NormalizeVoidToUnitType<_ContinuationReturnType>::_Type _NormalizedContinuationReturnType;
5009 typename details::_Task_ptr<_ReturnType>::_Type _M_ancestorTaskImpl;
5012 _ContinuationTaskHandle(const typename details::_Task_ptr<_ReturnType>::_Type & _AncestorImpl,
5013 const typename details::_Task_ptr<_NormalizedContinuationReturnType>::_Type & _ContinuationImpl,
5016 details::_PPLTaskHandle<typename details::_NormalizeVoidToUnitType<_ContinuationReturnType>::_Type,
5472 typename details::_Task_ptr<_ReturnType>::_Type _M_Impl;
5980 const details::_Task_ptr<details::_Unit_type>::_Type & _GetImpl() const
5988 void _SetImpl(const details::_Task_ptr<details::_Unit_type>::_Type & _Impl)
5996 void _SetImpl(details::_Task_ptr<details::_Unit_type>::_Type && _Impl)
6143 typedef decltype(_FilterValidTaskType<_ReturnType>(stdx::declval<_Ty>(), 0)) _Type;
6179 auto create_task(_Ty _Param, task_options _TaskOptions = task_options()) -> task<typename details::_TaskTypeFromParam<_ReturnType, _Ty>::_Type>
6181 auto create_task(_Ty _Param) -> task<typename details::_TaskTypeFromParam<_ReturnType, _Ty>::_Type>
6184 static_assert(!std::is_same<typename details::_TaskTypeFromParam<_ReturnType, _Ty>::_Type, details::_BadArgType>::value,
6189 task<typename details::_TaskTypeFromParam<_ReturnType, _Ty>::_Type> _CreatedTask(_Param, _TaskOptions);
6191 task<typename details::_TaskTypeFromParam<_ReturnType, _Ty>::_Type> _CreatedTask(_Param);
6242 auto create_task(_Ty _Param, Concurrency::cancellation_token _Token) -> task<typename details::_TaskTypeFromParam<_ReturnType, _Ty>::_Type>
6244 static_assert(!std::is_same<typename details::_TaskTypeFromParam<_ReturnType, _Ty>::_Type, details::_BadArgType>::value,
6247 task<typename details::_TaskTypeFromParam<_ReturnType, _Ty>::_Type> _CreatedTask(_Param, _Token);
8014 template<typename _Type>
8038 _ResultHolder<std::vector<_Type> > _M_vector;
8039 _ResultHolder<_Type> _M_mergeVal;
8041 std::vector<_Type> _M_vector;
8043 _Type _M_mergeVal;
8049 template<typename _Type>
8050 struct _RunAllParam<std::vector<_Type> >
8067 std::vector<_ResultHolder<std::vector<_Type> > > _M_vector;