libzypp  17.37.18
zyppng Namespace Reference

Namespaces

 constants
 
 detail
 
 internal
 
 operators
 
 rpc
 
 str
 

Classes

class  AbstractDirectSpawnEngine
 
class  AbstractEventSource
 
class  AbstractEventSourcePrivate
 
class  AbstractSpawnEngine
 
class  AsyncDataSource
 
class  AsyncDataSourcePrivate
 
class  AsyncOp
 
class  AsyncOpBase
 
class  AsyncOpNotReadyException
 
class  AsyncQueue
 
class  AsyncQueueBase
 
class  AsyncQueueWatch
 
class  AsyncQueueWatchPrivate
 
class  AttachedMediaInfo
 
struct  AutoDisconnect
 
class  Base
 
class  BasePrivate
 
class  BasicState
 
class  BooleanChoiceRequest
 
class  CancelNotImplementedException
 
class  Context
 
class  CurlMultiPartDataReceiver
 
class  CurlMultiPartHandler
 The CurlMultiPartHandler class. More...
 
class  EventDispatcher
 
class  EventDispatcherPrivate
 
class  EventLoop
 
class  EventLoopPrivate
 
class  expected
 
class  expected< void, E >
 
class  ForkSpawnEngine
 
struct  function_traits
 
struct  function_traits< F, std::void_t< decltype(&F::operator())> >
 
struct  function_traits< R(&)(Args...)>
 
struct  function_traits< R(*)(Args...)>
 
struct  function_traits< R(Args...)>
 
struct  function_traits< R(C::*)(Args...) const >
 
struct  function_traits< R(C::*)(Args...)>
 
struct  function_traits< R(C::*)>
 
struct  GAbstractEventSource
 
struct  GLibTimerSource
 
struct  GlibWaitPIDData
 
struct  GUnixPollFD
 
class  HeaderValue
 
class  HeaderValueMap
 
class  InvalidMessageReceivedException
 
class  IOBuffer
 
class  IODevice
 
class  IODeviceOStreamBuf
 
class  IODevicePrivate
 
struct  is_instance_of
 
struct  is_instance_of< Templ, Templ< Args... > >
 
class  LazyMediaHandle
 
class  ListChoiceRequest
 
class  MemSignal
 
class  MemSignal< SignalHost, ReturnType(Arguments...)>
 
class  myerror_t
 
struct  NestedAsyncOpMixin
 
class  NetworkRequest
 
class  NetworkRequestDispatcherPrivate
 
class  NetworkRequestError
 The NetworkRequestError class Represents a error that occured in. More...
 
class  NetworkRequestErrorPrivate
 
class  NetworkRequestPrivate
 
class  NotFoundException
 
struct  Pipe
 
class  Process
 
class  ProcessPrivate
 
class  ProgressObserver
 
class  ProgressObserverPrivate
 
class  Provide
 
class  ProvideFileSpec
 
class  ProvideMediaHandle
 
class  ProvideMediaSpec
 
class  ProvideRes
 
class  ProvideSpecBasePrivate
 
struct  RangeDesc
 
struct  remove_smart_ptr
 
struct  remove_smart_ptr< std::shared_ptr< T > >
 
struct  remove_smart_ptr< std::unique_ptr< T > >
 
class  ShowMessageRequest
 
class  Signal
 
class  Signal< R(T...)>
 
class  SignalProxy
 
class  SignalProxy< R(T...)>
 Hides the signals emit function from external code. More...
 
class  SimpleState
 
class  SockAddr
 
class  Socket
 
class  SocketNotifier
 
class  SocketNotifierPrivate
 
class  SocketPrivate
 
class  Statemachine
 This defines the actual StateMachine. More...
 
class  StompFrameStream
 
struct  ThreadData
 
class  Timer
 The Timer class provides repetitive and single-shot timers. More...
 
class  TimerPrivate
 
struct  Transition
 
class  UnixSignalSource
 
class  UnixSignalSourcePrivate
 
class  UnixSockAddr
 
class  UserInterface
 
class  UserInterfacePrivate
 
class  UserRequest
 
class  Wakeup
 
class  ZckError
 
class  ZckLoader
 

Typedefs

using KeyRing = zypp::KeyRing
 
using KeyRingRef = zypp::KeyRing_Ptr
 
template<typename OpType >
using MaybeAsyncContextRef = std::conditional_t< detail::is_async_op_v< OpType >, ContextRef, ContextRef >
 
using ProvideRes = Provide::Res
 
template<typename T >
using AsyncOpRef = std::shared_ptr< AsyncOp< T > >
 
template<class Type >
using MaybeAwaitable = Type
 
using connection = sigc::connection
 
using trackable = sigc::trackable
 
template<class R , class... T>
using SignalProxyBase = sigc::signal< R(T...)>
 
template<typename T >
using Ref = std::shared_ptr< T >
 
template<typename T >
using WeakRef = std::weak_ptr< T >
 
using ByteArray = zypp::ByteArray
 
using UByteArray = zypp::UByteArray
 
using IdString = zypp::IdString
 
using IdStringSet = zypp::IdStringSet
 
using Url = zypp::Url
 
template<typename T >
using has_call_operator = decltype(&T::operator())
 
template<typename T >
using remove_smart_ptr_t = typename remove_smart_ptr< T >::type
 
using UserData = zypp::callback::UserData
 
using ContentType = zypp::ContentType
 
using AuthData = zypp::media::AuthData
 
using AuthData_Ptr = zypp::media::AuthData_Ptr
 
using NetworkAuthData = zypp::media::CurlAuthData
 
using NetworkAuthData_Ptr = zypp::media::CurlAuthData_Ptr
 
using TransferSettings = zypp::media::TransferSettings
 

Enumerations

enum  { DefChunkSize = 4096 }
 
enum  { DefIoDeviceBufChunkSize = 16384 }
 
enum  UserRequestType : uint {
  UserRequestType::Message, UserRequestType::ListChoice, UserRequestType::BooleanChoice, UserRequestType::KeyTrust,
  UserRequestType::Custom = 512
}
 

Functions

 ZYPP_FWD_DECL_TYPE_WITH_REFS (EventDispatcher)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (NetworkRequestDispatcher)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (NetworkRequest)
 
 ZYPP_IMPL_PRIVATE_CONSTR (Context)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (Context)
 
template<typename T >
auto joinPipeline (ContextRef ctx, T &&val)
 
 IMPL_PTR_TYPE (AttachedMediaInfo)
 
 ZYPP_IMPL_PRIVATE_CONSTR (Provide)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (Provide)
 
 DEFINE_PTR_TYPE (AttachedMediaInfo)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (AsyncOpBase)
 
template<typename T , bool isAsync = ZYPP_IS_ASYNC>
std::conditional_t< isAsync, AsyncOpRef< T >, T > makeReadyResult (T &&result)
 
template<typename Obj , typename Functor , std::enable_if_t< std::is_base_of_v< Base, Obj >||std::is_base_of_v< BasePrivate, Obj >, bool > = true>
decltype(auto) base_slot (Obj *o, Functor &&f)
 
template<typename Obj , typename Functor , std::enable_if_t< std::is_base_of_v< Base, Obj >||std::is_base_of_v< BasePrivate, Obj >, bool > = true>
decltype(auto) base_slot (Obj &o, Functor &&f)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (UnixSignalSource)
 
static int readMask ()
 
static int writeMask ()
 
static int excpMask ()
 
static int evModeToMask (int mode)
 
static int gioConditionToEventTypes (const GIOCondition rEvents, const int requestedEvs)
 
static gboolean eventLoopIdleFunc (gpointer user_data)
 Called when the event loop is idle, here we run cleanup tasks and call later() callbacks of the user. More...
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (EventLoop)
 
bool blockAllSignalsForCurrentThread ()
 
bool blockSignalsForCurrentThread (const std::vector< int > &sigs)
 
bool trySocketConnection (int &sockFD, const SockAddr &addr, uint64_t timeout)
 
void renumberFd (int origfd, int newfd)
 
int64_t bytesAvailableOnFD (int fd)
 
std::string strerr_cxx (const int err=-1)
 
template<typename Fun , typename RestartCb , typename... Args>
auto eintrSafeCallEx (const Fun &function, const RestartCb &restartCb, Args &&... args)
 
template<typename Fun , typename... Args>
auto eintrSafeCall (Fun &&function, Args &&... args)
 
ThreadDatathreadData ()
 
constexpr bool DefaultStateCondition (true)
 
constexpr std::nullptr_t DefaultStateTransition (nullptr)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (Timer)
 
 ZYPP_IMPL_PRIVATE (UnixSignalSource)
 
std::unique_ptr< zyppng::AbstractSpawnEngineengineFromEnv ()
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (IODevice)
 
 ZYPP_DECLARE_OPERATORS_FOR_FLAGS (IODevice::OpenMode)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (Process)
 
template<class Transformation , class DefaultType , class Predicate >
auto firstOf (Transformation &&transformFunc, DefaultType &&def, Predicate &&predicate=detail::ContinueUntilValidPredicate())
 
template<typename ... Excpt>
bool containsOneOfException (const std::exception_ptr &exceptionPtr)
 
template<typename Excpt >
bool containsException (const std::exception_ptr &exceptionPtr)
 
template<typename T , typename SignalGetter >
auto await (SignalGetter &&sigGet)
 
template<typename Type , typename Err = std::exception_ptr>
static expected< std::decay_t< Type >, Err > make_expected_success (Type &&t)
 
template<typename T , typename E , typename Function , typename ResultType = detail::mbind_cb_result_t<Function, T>>
ResultType and_then (const expected< T, E > &exp, Function &&f)
 
template<typename T , typename E , typename Function , typename ResultType = detail::mbind_cb_result_t<Function, T>>
ResultType and_then (expected< T, E > &&exp, Function &&f)
 
template<typename T , typename E , typename Function , typename ResultType = detail::mbind_cb_result_t<Function, E>>
ResultType or_else (const expected< T, E > &exp, Function &&f)
 
template<typename T , typename E , typename Function , typename ResultType = detail::mbind_cb_result_t<Function, E>>
ResultType or_else (expected< T, E > &&exp, Function &&f)
 
template<template< class, class... > class Container, typename T , typename E , typename ... CArgs>
std::enable_if_t<!std::is_same_v< void, T >, expected< Container< T >, E > > collect (Container< expected< T, E >, CArgs... > &&in)
 
template<template< class, class... > class Container, typename T , typename E , typename ... CArgs>
std::enable_if_t< std::is_same_v< void, T >, expected< T, E > > collect (Container< expected< T, E >, CArgs... > &&in)
 
template<typename T , typename E , typename Function >
expected< T, E > inspect (expected< T, E > exp, Function &&f)
 
template<typename T , typename E , typename Function >
expected< T, E > inspect_err (expected< T, E > exp, Function &&f)
 
template<template< class, class... > class Container, typename Msg , typename Transformation , typename Ret = std::result_of_t<Transformation(Msg)>, typename ... CArgs>
auto transform_collect (Container< Msg, CArgs... > &&in, Transformation &&f)
 
template<typename Fun >
auto lift (Fun &&func)
 
template<typename F , typename ... Args, typename Ret = std::invoke_result_t<F, Args...>, typename Exp = expected<Ret, std::exception_ptr>>
Exp mtry (F &&f, Args &&...args)
 
template<typename Task , typename Pred >
auto redo_while (Task &&todo, Pred &&until)
 
template<template< class, class... > class Container, typename Msg , typename Transformation , typename Ret = std::result_of_t<Transformation(Msg)>, typename ... CArgs>
Container< Ret > transform (Container< Msg, CArgs... > &&val, Transformation &&transformation)
 
template<template< class, class... > class Container, typename Msg , typename Transformation , typename Ret = std::result_of_t<Transformation(Msg)>, typename ... CArgs>
Container< Ret > transform (const Container< Msg, CArgs... > &val, Transformation &&transformation)
 
auto waitFor ()
 
auto join ()
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (StompFrameStream)
 
 ZYPP_IMPL_PRIVATE_CONSTR_ARGS (ProgressObserver, const std::string &label, int steps)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (ProgressObserver)
 
 ZYPP_IMPL_PRIVATE_CONSTR (UserInterface)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (UserInterface)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (UserRequest)
 
 ZYPP_IMPL_PRIVATE_CONSTR_ARGS (ShowMessageRequest, std::string message, MType mType, UserData data)
 
 ZYPP_IMPL_PRIVATE_CONSTR_ARGS (ListChoiceRequest, std::string label, std::vector< Choice > answers, index_type defaultAnswer, UserData userData)
 
 ZYPP_IMPL_PRIVATE_CONSTR_ARGS (BooleanChoiceRequest, std::string label, const bool defaultAnswer, UserData userData)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (ShowMessageRequest)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (ListChoiceRequest)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (BooleanChoiceRequest)
 
static const std::string & defaultAgentString ()
 
 ZYPP_IMPL_PRIVATE (NetworkRequestError)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (ProvideMediaSpec)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (ProvideFileSpec)
 
std::ostream & operator<< (std::ostream &str, const ProvideFileSpec &obj)
 
std::ostream & dumpOn (std::ostream &str, const ProvideFileSpec &obj)
 

Variables

constexpr bool ZYPP_IS_ASYNC = false
 
static GSourceFuncs abstractEventSourceFuncs
 
static GSourceFuncs glibTimerSourceFuncs
 
template<template< class ... > class Templ, class Type >
constexpr bool is_instance_of_v = is_instance_of<Templ,Type>::value
 
constexpr auto MAX_CMDLEN = 256
 
constexpr auto MAX_HDRLEN = 8 * 1024
 
constexpr auto MAX_BODYLEN = 1024 * 1024
 
constexpr std::string_view CurlNativeErrorCodeDescKey = "nativeErrorCodeDesc"
 
constexpr std::string_view CurlNativeErrorDescKey = "nativeErrorDesc"
 

Typedef Documentation

◆ KeyRing

using zyppng::KeyRing = typedef zypp::KeyRing

Definition at line 24 of file context.h.

◆ KeyRingRef

using zyppng::KeyRingRef = typedef zypp::KeyRing_Ptr

Definition at line 25 of file context.h.

◆ MaybeAsyncContextRef

template<typename OpType >
using zyppng::MaybeAsyncContextRef = typedef std::conditional_t<detail::is_async_op_v<OpType>, ContextRef, ContextRef>

Definition at line 52 of file context.h.

◆ ProvideRes

Definition at line 153 of file provide.h.

◆ AsyncOpRef

template<typename T >
using zyppng::AsyncOpRef = typedef std::shared_ptr<AsyncOp<T> >

Definition at line 255 of file asyncop.h.

◆ MaybeAwaitable

template<class Type >
using zyppng::MaybeAwaitable = typedef Type

Definition at line 299 of file asyncop.h.

◆ connection

using zyppng::connection = typedef sigc::connection

Definition at line 180 of file signals.h.

◆ trackable

using zyppng::trackable = typedef sigc::trackable

Definition at line 181 of file signals.h.

◆ SignalProxyBase

template<class R , class... T>
using zyppng::SignalProxyBase = typedef sigc::signal<R(T...)>

Definition at line 185 of file signals.h.

◆ Ref

template<typename T >
using zyppng::Ref = typedef std::shared_ptr<T>

Definition at line 110 of file zyppglobal.h.

◆ WeakRef

template<typename T >
using zyppng::WeakRef = typedef std::weak_ptr<T>

Definition at line 113 of file zyppglobal.h.

◆ ByteArray

Definition at line 21 of file bytearray.h.

◆ UByteArray

Definition at line 22 of file bytearray.h.

◆ IdString

using zyppng::IdString = typedef zypp::IdString

Definition at line 16 of file idstring.h.

◆ IdStringSet

using zyppng::IdStringSet = typedef zypp::IdStringSet

Definition at line 17 of file idstring.h.

◆ Url

using zyppng::Url = typedef zypp::Url

Definition at line 15 of file url.h.

◆ has_call_operator

template<typename T >
using zyppng::has_call_operator = typedef decltype (&T::operator())

Definition at line 69 of file function_traits.h.

◆ remove_smart_ptr_t

template<typename T >
using zyppng::remove_smart_ptr_t = typedef typename remove_smart_ptr<T>::type

Definition at line 133 of file type_traits.h.

◆ UserData

Definition at line 18 of file userrequest.h.

◆ ContentType

Definition at line 19 of file userrequest.h.

◆ AuthData

Definition at line 21 of file authdata.h.

◆ AuthData_Ptr

Definition at line 22 of file authdata.h.

◆ NetworkAuthData

Definition at line 24 of file authdata.h.

◆ NetworkAuthData_Ptr

Definition at line 25 of file authdata.h.

◆ TransferSettings

Definition at line 20 of file transfersettings.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
DefChunkSize 

Definition at line 7 of file iobuffer.cc.

◆ anonymous enum

anonymous enum
Enumerator
DefIoDeviceBufChunkSize 

Definition at line 31 of file iodevice_p.h.

◆ UserRequestType

enum zyppng::UserRequestType : uint
strong
Enumerator
Message 
ListChoice 
BooleanChoice 
KeyTrust 
Custom 

Definition at line 34 of file userrequest.h.

Function Documentation

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [1/20]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( EventDispatcher  )

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [2/20]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( NetworkRequestDispatcher  )

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [3/20]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( NetworkRequest  )

◆ ZYPP_IMPL_PRIVATE_CONSTR() [1/3]

zyppng::ZYPP_IMPL_PRIVATE_CONSTR ( Context  )

Definition at line 14 of file context.cc.

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [4/20]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( Context  )

◆ joinPipeline()

template<typename T >
auto zyppng::joinPipeline ( ContextRef  ctx,
T &&  val 
)

Definition at line 55 of file context.h.

◆ IMPL_PTR_TYPE()

zyppng::IMPL_PTR_TYPE ( AttachedMediaInfo  )

◆ ZYPP_IMPL_PRIVATE_CONSTR() [2/3]

zyppng::ZYPP_IMPL_PRIVATE_CONSTR ( Provide  )

Definition at line 156 of file provide.cc.

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [5/20]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( Provide  )

◆ DEFINE_PTR_TYPE()

zyppng::DEFINE_PTR_TYPE ( AttachedMediaInfo  )

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [6/20]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( AsyncOpBase  )

◆ makeReadyResult()

template<typename T , bool isAsync = ZYPP_IS_ASYNC>
std::conditional_t<isAsync, AsyncOpRef<T>, T> zyppng::makeReadyResult ( T &&  result)

Is isAsync is true returns a AsyncOpRef that is always ready, containing the result as its final value, otherwise the value passed to the function is just forwarded.

Definition at line 309 of file asyncop.h.

◆ base_slot() [1/2]

template<typename Obj , typename Functor , std::enable_if_t< std::is_base_of_v< Base, Obj >||std::is_base_of_v< BasePrivate, Obj >, bool > = true>
decltype(auto) zyppng::base_slot ( Obj *  o,
Functor &&  f 
)
inline

Definition at line 181 of file base.h.

◆ base_slot() [2/2]

template<typename Obj , typename Functor , std::enable_if_t< std::is_base_of_v< Base, Obj >||std::is_base_of_v< BasePrivate, Obj >, bool > = true>
decltype(auto) zyppng::base_slot ( Obj &  o,
Functor &&  f 
)
inline

Definition at line 189 of file base.h.

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [7/20]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( UnixSignalSource  )

◆ readMask()

static int zyppng::readMask ( )
inlinestatic

Definition at line 13 of file eventdispatcher_glib.cc.

◆ writeMask()

static int zyppng::writeMask ( )
inlinestatic

Definition at line 17 of file eventdispatcher_glib.cc.

◆ excpMask()

static int zyppng::excpMask ( )
inlinestatic

Definition at line 21 of file eventdispatcher_glib.cc.

◆ evModeToMask()

static int zyppng::evModeToMask ( int  mode)
inlinestatic

Definition at line 25 of file eventdispatcher_glib.cc.

◆ gioConditionToEventTypes()

static int zyppng::gioConditionToEventTypes ( const GIOCondition  rEvents,
const int  requestedEvs 
)
inlinestatic

Definition at line 39 of file eventdispatcher_glib.cc.

◆ eventLoopIdleFunc()

static gboolean zyppng::eventLoopIdleFunc ( gpointer  user_data)
static

Called when the event loop is idle, here we run cleanup tasks and call later() callbacks of the user.

Definition at line 231 of file eventdispatcher_glib.cc.

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [8/20]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( EventLoop  )

◆ blockAllSignalsForCurrentThread()

bool zyppng::blockAllSignalsForCurrentThread ( )

Definition at line 15 of file linuxhelpers.cc.

◆ blockSignalsForCurrentThread()

bool zyppng::blockSignalsForCurrentThread ( const std::vector< int > &  sigs)

Definition at line 23 of file linuxhelpers.cc.

◆ trySocketConnection()

bool zyppng::trySocketConnection ( int &  sockFD,
const SockAddr addr,
uint64_t  timeout 
)

Definition at line 34 of file linuxhelpers.cc.

◆ renumberFd()

void zyppng::renumberFd ( int  origfd,
int  newfd 
)

Definition at line 50 of file linuxhelpers.cc.

◆ bytesAvailableOnFD()

int64_t zyppng::bytesAvailableOnFD ( int  fd)

Tries to use the FIONREAD ioctl to detect how many bytes are available on a file descriptor, this can fail and return 0 so just use it as a indicator on how many bytes are pending

Definition at line 62 of file linuxhelpers.cc.

◆ strerr_cxx()

std::string zyppng::strerr_cxx ( const int  err = -1)
inline

Definition at line 14 of file linuxhelpers_p.h.

◆ eintrSafeCallEx()

template<typename Fun , typename RestartCb , typename... Args>
auto zyppng::eintrSafeCallEx ( const Fun &  function,
const RestartCb &  restartCb,
Args &&...  args 
)

Extended version of eintrSafeCall

Calls a given function in a EINTR safe way. The restartCb is invoked after every time we have to restart function because of EINTR, it can be used to reset additional errors:

FILE *myFile;
// open file
// ...
eintrSafeCall( ::getline, [&](){ ::clearerr(myFile); }, myFile );

Definition at line 35 of file linuxhelpers_p.h.

◆ eintrSafeCall()

template<typename Fun , typename... Args>
auto zyppng::eintrSafeCall ( Fun &&  function,
Args &&...  args 
)

Definition at line 50 of file linuxhelpers_p.h.

◆ threadData()

ThreadData& zyppng::threadData ( )

◆ DefaultStateCondition()

constexpr bool zyppng::DefaultStateCondition ( true  )

◆ DefaultStateTransition()

constexpr std::nullptr_t zyppng::DefaultStateTransition ( nullptr  )

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [9/20]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( Timer  )

◆ ZYPP_IMPL_PRIVATE() [1/2]

zyppng::ZYPP_IMPL_PRIVATE ( UnixSignalSource  )

◆ engineFromEnv()

std::unique_ptr<zyppng::AbstractSpawnEngine> zyppng::engineFromEnv ( )

Definition at line 51 of file abstractspawnengine.cc.

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [10/20]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( IODevice  )

◆ ZYPP_DECLARE_OPERATORS_FOR_FLAGS()

zyppng::ZYPP_DECLARE_OPERATORS_FOR_FLAGS ( IODevice::OpenMode  )

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [11/20]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( Process  )

◆ firstOf()

template<class Transformation , class DefaultType , class Predicate >
auto zyppng::firstOf ( Transformation &&  transformFunc,
DefaultType &&  def,
Predicate &&  predicate = detail::ContinueUntilValidPredicate() 
)
inline

Definition at line 149 of file algorithm.h.

◆ containsOneOfException()

template<typename ... Excpt>
bool zyppng::containsOneOfException ( const std::exception_ptr &  exceptionPtr)

Checks if a given std::exception_ptr contains one of the given exception types in the template arguments:

expected<int> result = someFuncReturningExpected();
if ( !result && containsOneOfException<zypp::FileNotFoundException, SomeOtherException>( result.error() ) ) {
std::cout << "Contains either zypp::FileNotFoundException or SomeOtherException" << std::endl;
}

Detects exceptions by throwing and catching them, so always pass the specific exception types to check for..

Definition at line 187 of file algorithm.h.

◆ containsException()

template<typename Excpt >
bool zyppng::containsException ( const std::exception_ptr &  exceptionPtr)

Checks if a given std::exception_ptr contains the given exception type in the template type argument:

expected<int> result = someFuncReturningExpected();
if ( !result && containsException<zypp::FileNotFoundException>( result.error() ) ) {
std::cout << "Contains zypp::FileNotFoundException" << std::endl;
}

Definition at line 208 of file algorithm.h.

◆ await()

template<typename T , typename SignalGetter >
auto zyppng::await ( SignalGetter &&  sigGet)

Definition at line 64 of file await.h.

◆ make_expected_success()

template<typename Type , typename Err = std::exception_ptr>
static expected<std::decay_t<Type>,Err> zyppng::make_expected_success ( Type &&  t)
static

Definition at line 397 of file expected.h.

◆ and_then() [1/2]

template<typename T , typename E , typename Function , typename ResultType = detail::mbind_cb_result_t<Function, T>>
ResultType zyppng::and_then ( const expected< T, E > &  exp,
Function &&  f 
)

Definition at line 423 of file expected.h.

◆ and_then() [2/2]

template<typename T , typename E , typename Function , typename ResultType = detail::mbind_cb_result_t<Function, T>>
ResultType zyppng::and_then ( expected< T, E > &&  exp,
Function &&  f 
)

Definition at line 443 of file expected.h.

◆ or_else() [1/2]

template<typename T , typename E , typename Function , typename ResultType = detail::mbind_cb_result_t<Function, E>>
ResultType zyppng::or_else ( const expected< T, E > &  exp,
Function &&  f 
)

Definition at line 463 of file expected.h.

◆ or_else() [2/2]

template<typename T , typename E , typename Function , typename ResultType = detail::mbind_cb_result_t<Function, E>>
ResultType zyppng::or_else ( expected< T, E > &&  exp,
Function &&  f 
)

Definition at line 480 of file expected.h.

◆ collect() [1/2]

template<template< class, class... > class Container, typename T , typename E , typename ... CArgs>
std::enable_if_t<!std::is_same_v<void, T>, expected<Container<T>,E> > zyppng::collect ( Container< expected< T, E >, CArgs... > &&  in)

Collects all values from a Container of expected values, returning the contained values or the first error encountered as a expected<Container<T>>

Definition at line 501 of file expected.h.

◆ collect() [2/2]

template<template< class, class... > class Container, typename T , typename E , typename ... CArgs>
std::enable_if_t<std::is_same_v<void, T>, expected<T, E> > zyppng::collect ( Container< expected< T, E >, CArgs... > &&  in)

Specialization of collect working on a Container of expected<void> values, returning either success or the error encountered.

Definition at line 519 of file expected.h.

◆ inspect()

template<typename T , typename E , typename Function >
expected<T, E> zyppng::inspect ( expected< T, E >  exp,
Function &&  f 
)

Definition at line 531 of file expected.h.

◆ inspect_err()

template<typename T , typename E , typename Function >
expected<T, E> zyppng::inspect_err ( expected< T, E >  exp,
Function &&  f 
)

Definition at line 544 of file expected.h.

◆ transform_collect()

template<template< class, class... > class Container, typename Msg , typename Transformation , typename Ret = std::result_of_t<Transformation(Msg)>, typename ... CArgs>
auto zyppng::transform_collect ( Container< Msg, CArgs... > &&  in,
Transformation &&  f 
)

This is logically the same as

, but the inner loop will stop waiting / transforming as soon as a error is encountered and returns the error right away.

Definition at line 666 of file expected.h.

◆ lift()

template<typename Fun >
auto zyppng::lift ( Fun &&  func)

Definition at line 74 of file lift.h.

◆ mtry()

template<typename F , typename ... Args, typename Ret = std::invoke_result_t<F, Args...>, typename Exp = expected<Ret, std::exception_ptr>>
Exp zyppng::mtry ( F &&  f,
Args &&...  args 
)

Definition at line 28 of file mtry.h.

◆ redo_while()

template<typename Task , typename Pred >
auto zyppng::redo_while ( Task &&  todo,
Pred &&  until 
)

Definition at line 142 of file redo.h.

◆ transform() [1/2]

template<template< class, class... > class Container, typename Msg , typename Transformation , typename Ret = std::result_of_t<Transformation(Msg)>, typename ... CArgs>
Container<Ret> zyppng::transform ( Container< Msg, CArgs... > &&  val,
Transformation &&  transformation 
)

Definition at line 31 of file transform.h.

◆ transform() [2/2]

template<template< class, class... > class Container, typename Msg , typename Transformation , typename Ret = std::result_of_t<Transformation(Msg)>, typename ... CArgs>
Container<Ret> zyppng::transform ( const Container< Msg, CArgs... > &  val,
Transformation &&  transformation 
)

Definition at line 43 of file transform.h.

◆ waitFor()

auto zyppng::waitFor ( )
inline

Returns a async operation that waits for all async operations which are passed to it and collects their results, forwarding them as one

Definition at line 129 of file wait.h.

◆ join()

auto zyppng::join ( )
inline

Definition at line 133 of file wait.h.

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [12/20]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( StompFrameStream  )

◆ ZYPP_IMPL_PRIVATE_CONSTR_ARGS() [1/4]

zyppng::ZYPP_IMPL_PRIVATE_CONSTR_ARGS ( ProgressObserver  ,
const std::string &  label,
int  steps 
)

Definition at line 136 of file progressobserver.cc.

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [13/20]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( ProgressObserver  )

◆ ZYPP_IMPL_PRIVATE_CONSTR() [3/3]

zyppng::ZYPP_IMPL_PRIVATE_CONSTR ( UserInterface  )

Definition at line 17 of file userinterface.cc.

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [14/20]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( UserInterface  )

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [15/20]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( UserRequest  )

◆ ZYPP_IMPL_PRIVATE_CONSTR_ARGS() [2/4]

zyppng::ZYPP_IMPL_PRIVATE_CONSTR_ARGS ( ShowMessageRequest  ,
std::string  message,
MType  mType,
UserData  data 
)

Definition at line 32 of file userrequest.cc.

◆ ZYPP_IMPL_PRIVATE_CONSTR_ARGS() [3/4]

zyppng::ZYPP_IMPL_PRIVATE_CONSTR_ARGS ( ListChoiceRequest  ,
std::string  label,
std::vector< Choice >  answers,
index_type  defaultAnswer,
UserData  userData 
)

Definition at line 53 of file userrequest.cc.

◆ ZYPP_IMPL_PRIVATE_CONSTR_ARGS() [4/4]

zyppng::ZYPP_IMPL_PRIVATE_CONSTR_ARGS ( BooleanChoiceRequest  ,
std::string  label,
const bool  defaultAnswer,
UserData  userData 
)

Definition at line 93 of file userrequest.cc.

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [16/20]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( ShowMessageRequest  )

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [17/20]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( ListChoiceRequest  )

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [18/20]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( BooleanChoiceRequest  )

◆ defaultAgentString()

static const std::string& zyppng::defaultAgentString ( )
static

Definition at line 31 of file networkrequestdispatcher.cc.

◆ ZYPP_IMPL_PRIVATE() [2/2]

zyppng::ZYPP_IMPL_PRIVATE ( NetworkRequestError  )

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [19/20]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( ProvideMediaSpec  )

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [20/20]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( ProvideFileSpec  )

◆ operator<<()

std::ostream& zyppng::operator<< ( std::ostream &  str,
const ProvideFileSpec obj 
)

Definition at line 310 of file providespec.cc.

◆ dumpOn()

std::ostream& zyppng::dumpOn ( std::ostream &  str,
const ProvideFileSpec obj 
)

Definition at line 313 of file providespec.cc.

Variable Documentation

◆ ZYPP_IS_ASYNC

constexpr bool zyppng::ZYPP_IS_ASYNC = false

Definition at line 301 of file asyncop.h.

◆ abstractEventSourceFuncs

GSourceFuncs zyppng::abstractEventSourceFuncs
static
Initial value:
= {
GAbstractEventSource::prepare,
GAbstractEventSource::check,
GAbstractEventSource::dispatch,
nullptr,
nullptr,
nullptr
}

Definition at line 54 of file eventdispatcher_glib.cc.

◆ glibTimerSourceFuncs

GSourceFuncs zyppng::glibTimerSourceFuncs
static
Initial value:
= {
GLibTimerSource::prepare,
GLibTimerSource::check,
GLibTimerSource::dispatch,
nullptr,
nullptr,
nullptr
}

Definition at line 163 of file eventdispatcher_glib.cc.

◆ is_instance_of_v

template<template< class ... > class Templ, class Type >
constexpr bool zyppng::is_instance_of_v = is_instance_of<Templ,Type>::value

Definition at line 120 of file type_traits.h.

◆ MAX_CMDLEN

constexpr auto zyppng::MAX_CMDLEN = 256

Definition at line 19 of file stompframestream.cc.

◆ MAX_HDRLEN

constexpr auto zyppng::MAX_HDRLEN = 8 * 1024

Definition at line 20 of file stompframestream.cc.

◆ MAX_BODYLEN

constexpr auto zyppng::MAX_BODYLEN = 1024 * 1024

Definition at line 21 of file stompframestream.cc.

◆ CurlNativeErrorCodeDescKey

constexpr std::string_view zyppng::CurlNativeErrorCodeDescKey = "nativeErrorCodeDesc"

Definition at line 20 of file networkrequesterror.cc.

◆ CurlNativeErrorDescKey

constexpr std::string_view zyppng::CurlNativeErrorDescKey = "nativeErrorDesc"

Definition at line 21 of file networkrequesterror.cc.