libzypp 17.37.10

zyppng::detail::RedoWhileImpl< Task, Pred, std::enable_if_t< is_async_op< remove_smart_ptr_t< typename function_traits< Task >::return_type > >::value > > Struct Template Reference

`#include <zypp-core/zyppng/pipelines/redo.h>`

Inheritance diagram for zyppng::detail::RedoWhileImpl< Task, Pred, std::enable_if_t< is_async_op< remove_smart_ptr_t< typename function_traits< Task >::return_type > >::value > >:

## Public Types
using | FunRet = remove_smart_ptr_t<typename function_traits<Task>::return_type>
using | OutType = typename FunRet::value_type
Public Types inherited from zyppng::AsyncOp< remove_smart_ptr_t< function_traits< Task >::return_type >::value_type >
using | value_type
using | Ptr
Public Types inherited from zyppng::Base
using | Ptr = std::shared_ptr<Base>
using | WeakPtr = std::weak_ptr<Base>

## Public Member Functions
template<typename T, typename P>
| RedoWhileImpl (T &&t, P &&p)
template<typename InType>
void | operator() (InType &&arg)
Public Member Functions inherited from zyppng::AsyncOp< remove_smart_ptr_t< function_traits< Task >::return_type >::value_type >
| AsyncOp ()=default
AsyncOp & | operator= (const AsyncOp &other)=delete
| ~AsyncOp () override
void | setReady (value_type &&val)
bool | isReady () const
void | onReady (Fun &&cb)
value_type & | get ()
Public Member Functions inherited from zyppng::AsyncOpBase
virtual bool | canCancel ()
virtual void | cancel ()
SignalProxy< void()> | sigStarted ()
SignalProxy< void(const std::string &, int, int)> | sigProgress ()
SignalProxy< void()> | sigReady ()
Public Member Functions inherited from zyppng::Base
| Base ()
virtual | ~Base ()
WeakPtr | parent () const
void | addChild (const Base::Ptr &child)
void | removeChild (const Ptr &child)
const std::unordered_set< Ptr > & | children () const
std::thread::id | threadId () const
template<typename T>
std::vector< std::weak_ptr< T > > | findChildren () const
template<typename T>
std::shared_ptr< T > | shared_this () const
template<typename T>
std::shared_ptr< T > | shared_this ()
template<typename T>
std::weak_ptr< T > | weak_this () const
template<typename T>
std::weak_ptr< T > | weak_this ()
template<typename SenderFunc, typename ReceiverFunc>
auto | connect (SenderFunc &&sFun, typename internal::MemberFunction< ReceiverFunc >::ClassType &recv, ReceiverFunc &&rFunc)
template<typename SenderFunc, typename ReceiverFunc, typename ... Tracker>
std::enable_if_t< std::is_member_function_pointer_v< SenderFunc >, connection > | connectFunc (SenderFunc &&sFun, ReceiverFunc &&rFunc, const Tracker &...trackers)

## Static Public Member Functions
template<typename T, typename P>
static auto | create (T &&t, P &&p)
Static Public Member Functions inherited from zyppng::Base
template<typename Obj, typename Functor>
static decltype(auto) | make_base_slot (Obj *o, Functor &&f)
template<typename SenderFunc, typename ReceiverFunc>
static auto | connect (typename internal::MemberFunction< SenderFunc >::ClassType &s, SenderFunc &&sFun, typename internal::MemberFunction< ReceiverFunc >::ClassType &recv, ReceiverFunc &&rFunc)
template<typename SenderFunc, typename ReceiverFunc, typename ... Tracker>
static auto | connectFunc (typename internal::MemberFunction< SenderFunc >::ClassType &s, SenderFunc &&sFun, ReceiverFunc &&rFunc, const Tracker &...trackers)

## Private Attributes
std::shared_ptr< AsyncOp< OutType > > | _asyncRes
Task | _task
Pred | _pred

## Additional Inherited Members
Protected Member Functions inherited from zyppng::Base
| Base (BasePrivate &dd)
Protected Attributes inherited from zyppng::AsyncOpBase
Signal< void()> | _sigStarted
Signal< void()> | _sigReady
Signal< void(const std::string &, int, int)> | _sigProgress
Protected Attributes inherited from zyppng::Base
std::unique_ptr< BasePrivate > | d_ptr

## Detailed Description

template<typename Task, typename Pred>
struct zyppng::detail::RedoWhileImpl< Task, Pred, std::enable_if_t< is_async_op< remove_smart_ptr_t< typename function_traits< Task >::return_type > >::value > >

Definition at line 98 of file redo.h.

## Member Typedef Documentation

## ◆ FunRet

template<typename Task, typename Pred>

using zyppng::detail::RedoWhileImpl< Task, Pred, std::enable_if_t< is_async_op< remove_smart_ptr_t< typename function_traits< Task >::return_type > >::value > >::FunRet = remove_smart_ptr_t<typename function_traits<Task>::return_type>

Definition at line 100 of file redo.h.

## ◆ OutType

template<typename Task, typename Pred>

using zyppng::detail::RedoWhileImpl< Task, Pred, std::enable_if_t< is_async_op< remove_smart_ptr_t< typename function_traits< Task >::return_type > >::value > >::OutType = typename FunRet::value_type

Definition at line 103 of file redo.h.

## Constructor & Destructor Documentation

## ◆ RedoWhileImpl()

template<typename Task, typename Pred>
template<typename T, typename P>

zyppng::detail::RedoWhileImpl< Task, Pred, std::enable_if_t< is_async_op< remove_smart_ptr_t< typename function_traits< Task >::return_type > >::value > >::RedoWhileImpl | ( | T && | t,
|  | P && | p )
| inline

Definition at line 106 of file redo.h.

## Member Function Documentation

## ◆ operator()()

template<typename Task, typename Pred>
template<typename InType>

void zyppng::detail::RedoWhileImpl< Task, Pred, std::enable_if_t< is_async_op< remove_smart_ptr_t< typename function_traits< Task >::return_type > >::value > >::operator() | ( | InType && | arg | ) |
| inline

Definition at line 111 of file redo.h.

## ◆ create()

template<typename Task, typename Pred>
template<typename T, typename P>

auto zyppng::detail::RedoWhileImpl< Task, Pred, std::enable_if_t< is_async_op< remove_smart_ptr_t< typename function_traits< Task >::return_type > >::value > >::create | ( | T && | t,
|  | P && | p )
| inline static

Definition at line 124 of file redo.h.

## Member Data Documentation

## ◆ _asyncRes

template<typename Task, typename Pred>

std::shared_ptr<AsyncOp<OutType> > zyppng::detail::RedoWhileImpl< Task, Pred, std::enable_if_t< is_async_op< remove_smart_ptr_t< typename function_traits< Task >::return_type > >::value > >::_asyncRes
| private

Definition at line 129 of file redo.h.

## ◆ _task

template<typename Task, typename Pred>

Task zyppng::detail::RedoWhileImpl< Task, Pred, std::enable_if_t< is_async_op< remove_smart_ptr_t< typename function_traits< Task >::return_type > >::value > >::_task
| private

Definition at line 131 of file redo.h.

## ◆ _pred

template<typename Task, typename Pred>

Pred zyppng::detail::RedoWhileImpl< Task, Pred, std::enable_if_t< is_async_op< remove_smart_ptr_t< typename function_traits< Task >::return_type > >::value > >::_pred
| private

Definition at line 132 of file redo.h.

The documentation for this struct was generated from the following file:

- zypp-core/zyppng/pipelines/redo.h