libzypp 17.38.1
zypp Namespace Reference

Namespaces

namespace  sat
 Libsolv interface
namespace  internal
namespace  media
namespace  env
 Namespace intended to collect all environment variables we use.
namespace  exception_detail
namespace  externalprogram
namespace  detail
namespace  base
namespace  gettext
namespace  gzstream_detail
namespace  iostr
 Iostream related utilities.
namespace  io
namespace  debug
namespace  log
namespace  str
 Provide print[f] and sprint[f] functions based on JoinFormat.
namespace  iomanip
namespace  _logtoolsdetail
namespace  rw_pointer
 Don't forgett to provide versions for PtrType and constPtrType, esp.
namespace  strv
namespace  xmlout
namespace  filesystem
 Types and functions for filesystem operations.
namespace  kvmap
namespace  parser
namespace  json
namespace  xml
namespace  hotfix1050625
namespace  url
 Url details namespace.
namespace  callback

Classes

class  AutoDispose
 Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose handle to it is destroyed or reset. More...
class  AutoDispose< void >
struct  Deferred
class  AutoFD
 AutoDispose<int> calling ::close More...
class  AutoFILE
 AutoDispose<FILE*> calling ::fclose More...
struct  AutoFREE
struct  AutoFREE< void >
class  CleanerThread
class  DefaultIntegral
 Integral type with defined initial value when default constructed. More...
class  DtorReset
 Assign a vaiable a certain value when going out of scope. More...
class  Errno
 Convenience errno wrapper. More...
class  Exception
 Base class for Exception. More...
class  InputStream
 Helper to create and pass std::istream. More...
class  Iterable
struct  GetPairFirst
 Functor taking a std::pair returning std::pair.first. More...
struct  GetPairSecond
 Functor taking a std::pair returning std::pair.second . More...
struct  MapKVIteratorTraits
 Traits for std::map key and value iterators. More...
class  SpinLock
class  LogThread
class  LogClient
struct  MLSep
 Helper to produce not-NL-terminated multi line output. More...
struct  NullDeleter
 shared_ptr custom deleter doing nothing. More...
struct  RW_pointer
 Wrapper for const correct access via Smart pointer types. More...
struct  RWCOW_pointer
 RW_pointer supporting 'copy on write' functionality. More...
class  C_Str
 Convenience char* constructible from std::string and char*, it maps (char*)0 to an empty string. More...
class  UserRequestException
 Base for exceptions caused by explicit user request. More...
class  ByteArray
class  UByteArray
class  ByteCount
 Store and operate with byte count. More...
struct  CheckSumException
class  CheckSum
class  ContentType
 Mime type like 'type/subtype' classification of content. More...
class  Date
 Store and operate on date (time_t). More...
class  DateFormatException
class  Digest
 Compute Message Digests (MD5, SHA1 etc). More...
class  ExternalProgram
 Execute a program and give access to its io An object of this class encapsulates the execution of an external program. More...
class  ExternalProgramWithStderr
 ExternalProgram extended to offer reading programs stderr. More...
class  ExternalProgramWithSeperatePgid
 ExternalProgram extended to change the progress group ID after forking. More...
class  WatchFile
 Remember a files attributes to detect content changes. More...
struct  KVMap
 A map of (key,value) strings. More...
class  OriginEndpoint
 Represents a single, configurable network endpoint, combining a URL with specific access settings. More...
class  MirroredOrigin
 Manages a data source characterized by an authoritative URL and a list of mirror URLs. More...
class  MirroredOriginSet
 A smart container that manages a collection of MirroredOrigin objects, automatically grouping endpoints and preserving the insertion order of their schemes. More...
class  OnMediaLocation
 Describes a resource file located on a medium. More...
class  PluginFrame
 Command frame for communication with PluginScript. More...
class  PluginFrameException
 Base class for PluginFrame Exception. More...
class  ShutdownLock
 Attempts to create a lock to prevent the system from going into hibernate/shutdown. More...
class  ShutdownLockCommit
class  ProgressData
 Maintain [min,max] and counter (value) for progress counting. More...
class  CombinedProgressData
 Progress callback from another progress. More...
class  Url
 Url manipulation class. More...
class  FileCheckException
class  CheckSumCheckException
class  SignatureCheckException
class  MediaConfigPrivate
class  MediaConfig
class  PathInfo
 Wrapper class for ::stat/::lstat. More...
class  Pathname
 Pathname. More...

Typedefs

using OnScopeExit = AutoDispose<void>
using FdStreamBuf = detail::SimpleStreamBuf<detail::FdStreamBufImpl>
using ifgzstream = detail::fXstream<std::istream, gzstream_detail::fgzstreambuf>
 istream reading gzip files as well as plain files.
using ofgzstream = detail::fXstream<std::ostream, gzstream_detail::fgzstreambuf>
 ostream writing gzip files.
using TriBool = boost::logic::tribool
 3-state boolean logic (true, false and indeterminate).
using ifzckstream = detail::fXstream<std::istream,detail::ZChunkStreamBuf>
 istream reading zchunk files.
using ofzckstream = detail::fXstream<std::ostream,detail::ZChunkStreamBuf>
 ostream writing zchunk files.
using ManagedFile = AutoDispose<const Pathname>
 A Pathname plus associated cleanup code to be executed when path is no longer needed.

Functions

 DEFINE_PTR_TYPE (KeyRing)
template<class Tp, Tp TInitial>
std::string asString (const DefaultIntegral< Tp, TInitial > &obj)
std::ostream & operator<< (std::ostream &str, const Exception &obj)
std::ostream & operator<< (std::ostream &str, const std::exception_ptr &excptPtr) ZYPP_API
 Log a std::excepion_ptr.
std::ostream & operator<< (std::ostream &str, const InputStream &obj)
template<class TFilter, class TContainer>
filter_iterator< TFilter, typename TContainer::const_iterator > make_filter_begin (TFilter f, const TContainer &c)
 Convenience to create filter_iterator from container::begin().
template<class TFilter, class TContainer>
filter_iterator< TFilter, typename TContainer::const_iterator > make_filter_begin (const TContainer &c)
 Convenience to create filter_iterator from container::begin().
template<class TFilter, class TContainer>
filter_iterator< TFilter, typename TContainer::const_iterator > make_filter_end (TFilter f, const TContainer &c)
 Convenience to create filter_iterator from container::end().
template<class TFilter, class TContainer>
filter_iterator< TFilter, typename TContainer::const_iterator > make_filter_end (const TContainer &c)
 Convenience to create filter_iterator from container::end().
template<class TMap>
MapKVIteratorTraits< TMap >::Key_const_iterator make_map_key_begin (const TMap &map_r)
 Convenience to create the key iterator from container::begin().
template<class TMap>
MapKVIteratorTraits< TMap >::Key_const_iterator make_map_key_end (const TMap &map_r)
 Convenience to create the key iterator from container::end().
template<class TMap>
MapKVIteratorTraits< TMap >::Value_const_iterator make_map_value_begin (const TMap &map_r)
 Convenience to create the value iterator from container::begin().
template<class TMap>
MapKVIteratorTraits< TMap >::Value_const_iterator make_map_value_end (const TMap &map_r)
 Convenience to create the value iterator from container::end().
template<class TMap>
MapKVIteratorTraits< TMap >::Key_const_iterator make_map_key_lower_bound (const TMap &map_r, const typename TMap::key_type &key_r)
 Convenience to create the key iterator from container::lower_bound().
template<class TMap>
MapKVIteratorTraits< TMap >::Key_const_iterator make_map_key_upper_bound (const TMap &map_r, const typename TMap::key_type &key_r)
 Convenience to create the key iterator from container::upper_bound().
template<class TMap>
MapKVIteratorTraits< TMap >::Value_const_iterator make_map_value_lower_bound (const TMap &map_r, const typename TMap::key_type &key_r)
 Convenience to create the value iterator from container::lower_bound().
template<class TMap>
MapKVIteratorTraits< TMap >::Value_const_iterator make_map_value_upper_bound (const TMap &map_r, const typename TMap::key_type &key_r)
 Convenience to create the value iterator from container::upper_bound().
template<class TMap>
Iterable< typename MapKVIteratorTraits< TMap >::Key_const_iteratormake_map_key_Iterable (const TMap &map_r)
 Convenience to create an Iterable over the container keys.
template<class TMap>
Iterable< typename MapKVIteratorTraits< TMap >::Value_const_iterator > make_map_value_Iterable (const TMap &map_r)
 Convenience to create an Iterable over the container values.
constexpr std::string_view ZYPP_MAIN_THREAD_NAME ("Zypp-main")
std::ostream & operator<< (std::ostream &str, MLSep &obj)
template<class TIterator>
std::ostream & dumpRange (std::ostream &str, TIterator begin, TIterator end, const std::string &intro="{", const std::string &pfx="\n ", const std::string &sep="\n ", const std::string &sfx="\n", const std::string &extro="}")
 Print range defined by iterators (multiline style).
template<class TIterator>
std::ostream & dumpRangeLine (std::ostream &str, TIterator begin, TIterator end)
 Print range defined by iterators (single line style).
template<class TContainer>
std::ostream & dumpRangeLine (std::ostream &str, const TContainer &cont)
template<class TIterator>
iomanip::RangeLine< TIterator > rangeLine (TIterator begin, TIterator end)
 Iomanip printing dumpRangeLine style.
template<class TContainer>
auto rangeLine (const TContainer &cont) -> decltype(rangeLine(cont.begin(), cont.end()))
template<class Tp>
std::ostream & operator<< (std::ostream &str, const Iterable< Tp > &obj)
template<class Tp>
detail::Dump< Tp > dump (const Tp &obj_r)
std::ostream & hexdumpOn (std::ostream &outs, const unsigned char *ptr, size_t size)
 hexdump data on stream
std::ostream & hexdumpOn (std::ostream &outs, const char *ptr, size_t size)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
template<typename T, typename... Args>
intrusive_ptr< T > make_intrusive (Args &&... __args)
template<class Tp>
std::string asUserString (const Tp &val_r)
 Request a human readable (translated) string representation of Tp [Tp.asUserString()] Classes may implement a default as member function.
 declException (IgnoreRequestException, IGNORE)
 declException (SkipRequestException, SKIP)
 declException (RetryRequestException, RETRY)
 declException (AbortRequestException, ABORT)
std::ostream & operator<< (std::ostream &str, const CheckSum &obj)
std::ostream & dumpAsXmlOn (std::ostream &str, const CheckSum &obj)
std::ostream & dumpAsXmlOn (std::ostream &str, const Date &obj, const std::string &name_r)
bool IamRoot ()
bool IamNotRoot ()
Pathname myTmpDir () ZYPP_API
 Global access to the zypp.TMPDIR (created on demand, deleted when libzypp is unloaded).
template<typename KVMapOpts>
std::ostream & operator<< (std::ostream &str, const KVMap< KVMapOpts > &obj)
std::ostream & operator<< (std::ostream &str, const OriginEndpoint &url)
bool operator< (const OriginEndpoint &lhs, const OriginEndpoint &rhs)
 needed for std::set
bool operator== (const OriginEndpoint &lhs, const OriginEndpoint &rhs)
 needed for find, two OriginEndpoint's are equal when the Urls match, currently settings are not compared
bool operator!= (const OriginEndpoint &lhs, const OriginEndpoint &rhs)
 needed for find, two OriginEndpoint's are equal when the Urls match, currently settings are not compared
std::ostream & operator<< (std::ostream &str, const MirroredOrigin &origin)
std::ostream & operator<< (std::ostream &str, const MirroredOriginSet &origin)
std::ostream & operator<< (std::ostream &str, const OnMediaLocation &obj)
std::ostream & dumpOn (std::ostream &str, const OnMediaLocation &obj)
std::ostream & operator<< (std::ostream &str, const PluginFrame &obj)
bool operator== (const PluginFrame &lhs, const PluginFrame &rhs)
std::string asString (const TriBool &val_r, const std::string &istr_r=std::string(), const std::string &tstr_r=std::string(), const std::string &fstr_r=std::string())
bool tri2bool (const TriBool &val_r, bool default_r)
 Convert TriBool to bool returning default_r if indeterminate.
std::ostream & operator<< (std::ostream &str, const ProgressData &obj)
ProgressData makeProgressData (const InputStream &input_r)
std::ostream & operator<< (std::ostream &str, const Url &url)
bool operator< (const Url &lhs, const Url &rhs) ZYPP_API
 needed for std::set
bool operator== (const Url &lhs, const Url &rhs) ZYPP_API
 needed for find
bool operator!= (const Url &lhs, const Url &rhs)
template<>
zyppng::HeaderValue::value_typerwcowClone< zyppng::HeaderValue::value_type > (const zyppng::HeaderValue::value_type *rhs)
template<class Tp>
std::ostream & operator<< (std::ostream &str, const AutoDispose< Tp > &obj)
 Stream output of the Tp object.
std::ostream & operator<< (std::ostream &str, const Errno &obj)
 Stream output.
std::ostream & operator<< (std::ostream &str, const Exception &obj) ZYPP_API
 Stream output.
std::ostream & operator<< (std::ostream &str, const InputStream &obj)
 Stream output.
template<class TIterator>
Iterable< TIterator > makeIterable (TIterator &&begin_r, TIterator &&end_r)
 convenient construction.
template<class TIterator>
Iterable< TIterator > makeIterable (std::pair< TIterator, TIterator > &&range_r)
 convenient construction.
template<class D, class DPtr>
std::ostream & operator<< (std::ostream &str, const RW_pointer< D, DPtr > &obj)
 Stream output.
template<class D, class DPtr>
bool operator== (const RW_pointer< D, DPtr > &lhs, const RW_pointer< D, DPtr > &rhs)
template<class D, class DPtr>
bool operator== (const RW_pointer< D, DPtr > &lhs, const typename DPtr::PtrType &rhs)
template<class D, class DPtr>
bool operator== (const typename DPtr::PtrType &lhs, const RW_pointer< D, DPtr > &rhs)
template<class D, class DPtr>
bool operator== (const RW_pointer< D, DPtr > &lhs, const typename DPtr::constPtrType &rhs)
template<class D, class DPtr>
bool operator== (const typename DPtr::constPtrType &lhs, const RW_pointer< D, DPtr > &rhs)
template<class D, class DPtr>
bool operator== (const RW_pointer< D, DPtr > &lhs, std::nullptr_t)
template<class D, class DPtr>
bool operator== (std::nullptr_t, const RW_pointer< D, DPtr > &rhs)
template<class D, class DPtr>
bool operator!= (const RW_pointer< D, DPtr > &lhs, const RW_pointer< D, DPtr > &rhs)
template<class D, class DPtr>
bool operator!= (const RW_pointer< D, DPtr > &lhs, const typename DPtr::PtrType &rhs)
template<class D, class DPtr>
bool operator!= (const typename DPtr::PtrType &lhs, const RW_pointer< D, DPtr > &rhs)
template<class D, class DPtr>
bool operator!= (const RW_pointer< D, DPtr > &lhs, const typename DPtr::constPtrType &rhs)
template<class D, class DPtr>
bool operator!= (const typename DPtr::constPtrType &lhs, const RW_pointer< D, DPtr > &rhs)
template<class D, class DPtr>
bool operator!= (const RW_pointer< D, DPtr > &lhs, std::nullptr_t)
template<class D, class DPtr>
bool operator!= (std::nullptr_t, const RW_pointer< D, DPtr > &rhs)
template<class D>
D * rwcowClone (const D *rhs)
 Clone the underlying object.
template<class D, class DPtr>
std::ostream & operator<< (std::ostream &str, const RWCOW_pointer< D, DPtr > &obj)
 Stream output.
template<class D, class DPtr>
bool operator== (const RWCOW_pointer< D, DPtr > &lhs, const RWCOW_pointer< D, DPtr > &rhs)
template<class D, class DPtr>
bool operator== (const RWCOW_pointer< D, DPtr > &lhs, const typename DPtr::PtrType &rhs)
template<class D, class DPtr>
bool operator== (const typename DPtr::PtrType &lhs, const RWCOW_pointer< D, DPtr > &rhs)
template<class D, class DPtr>
bool operator== (const RWCOW_pointer< D, DPtr > &lhs, const typename DPtr::constPtrType &rhs)
template<class D, class DPtr>
bool operator== (const typename DPtr::constPtrType &lhs, const RWCOW_pointer< D, DPtr > &rhs)
template<class D, class DPtr>
bool operator== (const RWCOW_pointer< D, DPtr > &lhs, std::nullptr_t)
template<class D, class DPtr>
bool operator== (std::nullptr_t, const RWCOW_pointer< D, DPtr > &rhs)
template<class D, class DPtr>
bool operator!= (const RWCOW_pointer< D, DPtr > &lhs, const RWCOW_pointer< D, DPtr > &rhs)
template<class D, class DPtr>
bool operator!= (const RWCOW_pointer< D, DPtr > &lhs, const typename DPtr::PtrType &rhs)
template<class D, class DPtr>
bool operator!= (const typename DPtr::PtrType &lhs, const RWCOW_pointer< D, DPtr > &rhs)
template<class D, class DPtr>
bool operator!= (const RWCOW_pointer< D, DPtr > &lhs, const typename DPtr::constPtrType &rhs)
template<class D, class DPtr>
bool operator!= (const typename DPtr::constPtrType &lhs, const RWCOW_pointer< D, DPtr > &rhs)
template<class D, class DPtr>
bool operator!= (const RWCOW_pointer< D, DPtr > &lhs, std::nullptr_t)
template<class D, class DPtr>
bool operator!= (std::nullptr_t, const RWCOW_pointer< D, DPtr > &rhs)
std::ostream & operator<< (std::ostream &str, const C_Str &obj)
 Stream output.
std::ostream & operator<< (std::ostream &str, const ByteCount &obj)
 Stream output.
bool operator== (const CheckSum &lhs, const CheckSum &rhs)
bool operator!= (const CheckSum &lhs, const CheckSum &rhs)
std::ostream & operator<< (std::ostream &str, const CheckSum &obj)
 Stream output.
std::ostream & dumpAsXmlOn (std::ostream &str, const CheckSum &obj)
 XML output.
bool operator== (const CheckSum &lhs, const CheckSum &rhs)
bool operator!= (const CheckSum &lhs, const CheckSum &rhs)
std::ostream & operator<< (std::ostream &str, const ContentType &obj)
 Stream output.
bool operator== (const ContentType &lhs, const ContentType &rhs)
bool operator!= (const ContentType &lhs, const ContentType &rhs)
bool operator< (const ContentType &lhs, const ContentType &rhs)
bool operator<= (const ContentType &lhs, const ContentType &rhs)
bool operator> (const ContentType &lhs, const ContentType &rhs)
bool operator>= (const ContentType &lhs, const ContentType &rhs)
std::ostream & operator<< (std::ostream &str, const Date &obj)
 Stream output.
std::ostream & dumpAsXmlOn (std::ostream &str, const Date &obj, const std::string &name_r="date") ZYPP_API
 XML output.
std::ostream & operator<< (std::ostream &str, const OnMediaLocation &obj)
 Stream output.
std::ostream & dumOn (std::ostream &str, const OnMediaLocation &obj)
 Verbose stream output.
std::ostream & operator<< (std::ostream &str, const PluginFrame &obj)
 Stream output for logging.
std::ostream & dumpOn (std::ostream &str, const PluginFrame &obj)
 Stream output writing all data for logging (no throw).
std::istream & operator>> (std::istream &str, PluginFrame &obj)
 Construct from stream.
bool operator== (const PluginFrame &lhs, const PluginFrame &rhs)
 Comparison based on content.
bool operator!= (const PluginFrame &lhs, const PluginFrame &rhs)
 Comparison based on content.
std::ostream & operator<< (std::ostream &str, const ProgressData &obj)
 Stream output.
ProgressData makeProgressData (const InputStream &input_r)
 Setup from InputStream.
template<class TPair>
MapEntry< TPair > mapEntry (const TPair &pair_r)
 Convenience function to create MapEntry from std::pair.
template<class TMap>
DumpMap< TMap > dumpMap (const TMap &map_r)
 Convenience function to create DumpMap from std::map.
template<class TMap>
DumpKeys< TMap > dumpKeys (const TMap &map_r)
 Convenience function to create DumpKeys from std::map.
template<class TMap>
DumpValues< TMap > dumpValues (const TMap &map_r)
 Convenience function to create DumpValues from std::map.
const std::string & asString (const std::string &t)
 Global asString() that works with std::string too.
Default dumpAsXmlOn based on asString.
template<class Tp>
std::ostream & dumpAsXmlOn (std::ostream &str, const Tp &obj, const std::string &name_r)

Variables

template<class>
constexpr bool always_false_v = false

Typedef Documentation

◆ OnScopeExit

Simple way to run a function at scope exit:

bool wasBlocking = unblockFile( fd, true );
OnScopeExit cleanup( [wasBlocking, fd](){
if ( wasBlocking ) unblockFile( fd, false );
});
AutoDispose< void > OnScopeExit

Definition at line 276 of file AutoDispose.h.

◆ FdStreamBuf

◆ ifgzstream

istream reading gzip files as well as plain files.

Definition at line 157 of file gzstream.h.

◆ ofgzstream

ostream writing gzip files.

Definition at line 162 of file gzstream.h.

◆ ifzckstream

istream reading zchunk files.

Definition at line 69 of file zckstream.h.

◆ ofzckstream

ostream writing zchunk files.

Definition at line 74 of file zckstream.h.

◆ ManagedFile

A Pathname plus associated cleanup code to be executed when path is no longer needed.

Definition at line 27 of file ManagedFile.h.

Function Documentation

◆ DEFINE_PTR_TYPE()

zypp::DEFINE_PTR_TYPE ( KeyRing )

◆ asString() [1/3]

template<class Tp, Tp TInitial>
std::string zypp::asString ( const DefaultIntegral< Tp, TInitial > & obj)

Definition at line 98 of file defaultintegral.h.

◆ operator<<() [1/28]

std::ostream & zypp::operator<< ( std::ostream & str,
const Exception & obj )
related

Definition at line 216 of file Exception.cc.

◆ operator<<() [2/28]

std::ostream & zypp::operator<< ( std::ostream & str,
const std::exception_ptr & excptPtr )

Log a std::excepion_ptr.

Definition at line 219 of file Exception.cc.

◆ operator<<() [3/28]

std::ostream & zypp::operator<< ( std::ostream & str,
const InputStream & obj )
related

Definition at line 167 of file inputstream.cc.

◆ make_filter_begin() [1/2]

template<class TFilter, class TContainer>
filter_iterator< TFilter, typename TContainer::const_iterator > zypp::make_filter_begin ( TFilter f,
const TContainer & c )

Convenience to create filter_iterator from container::begin().

Definition at line 101 of file Iterator.h.

◆ make_filter_begin() [2/2]

template<class TFilter, class TContainer>
filter_iterator< TFilter, typename TContainer::const_iterator > zypp::make_filter_begin ( const TContainer & c)

Convenience to create filter_iterator from container::begin().

Definition at line 109 of file Iterator.h.

◆ make_filter_end() [1/2]

template<class TFilter, class TContainer>
filter_iterator< TFilter, typename TContainer::const_iterator > zypp::make_filter_end ( TFilter f,
const TContainer & c )

Convenience to create filter_iterator from container::end().

Definition at line 117 of file Iterator.h.

◆ make_filter_end() [2/2]

template<class TFilter, class TContainer>
filter_iterator< TFilter, typename TContainer::const_iterator > zypp::make_filter_end ( const TContainer & c)

Convenience to create filter_iterator from container::end().

Definition at line 125 of file Iterator.h.

◆ make_map_key_begin()

template<class TMap>
MapKVIteratorTraits< TMap >::Key_const_iterator zypp::make_map_key_begin ( const TMap & map_r)
inline

Convenience to create the key iterator from container::begin().

Definition at line 226 of file Iterator.h.

◆ make_map_key_end()

template<class TMap>
MapKVIteratorTraits< TMap >::Key_const_iterator zypp::make_map_key_end ( const TMap & map_r)
inline

Convenience to create the key iterator from container::end().

Definition at line 231 of file Iterator.h.

◆ make_map_value_begin()

template<class TMap>
MapKVIteratorTraits< TMap >::Value_const_iterator zypp::make_map_value_begin ( const TMap & map_r)
inline

Convenience to create the value iterator from container::begin().

Definition at line 236 of file Iterator.h.

◆ make_map_value_end()

template<class TMap>
MapKVIteratorTraits< TMap >::Value_const_iterator zypp::make_map_value_end ( const TMap & map_r)
inline

Convenience to create the value iterator from container::end().

Definition at line 241 of file Iterator.h.

◆ make_map_key_lower_bound()

template<class TMap>
MapKVIteratorTraits< TMap >::Key_const_iterator zypp::make_map_key_lower_bound ( const TMap & map_r,
const typename TMap::key_type & key_r )
inline

Convenience to create the key iterator from container::lower_bound().

Definition at line 246 of file Iterator.h.

◆ make_map_key_upper_bound()

template<class TMap>
MapKVIteratorTraits< TMap >::Key_const_iterator zypp::make_map_key_upper_bound ( const TMap & map_r,
const typename TMap::key_type & key_r )
inline

Convenience to create the key iterator from container::upper_bound().

Definition at line 251 of file Iterator.h.

◆ make_map_value_lower_bound()

template<class TMap>
MapKVIteratorTraits< TMap >::Value_const_iterator zypp::make_map_value_lower_bound ( const TMap & map_r,
const typename TMap::key_type & key_r )
inline

Convenience to create the value iterator from container::lower_bound().

Definition at line 256 of file Iterator.h.

◆ make_map_value_upper_bound()

template<class TMap>
MapKVIteratorTraits< TMap >::Value_const_iterator zypp::make_map_value_upper_bound ( const TMap & map_r,
const typename TMap::key_type & key_r )
inline

Convenience to create the value iterator from container::upper_bound().

Definition at line 261 of file Iterator.h.

◆ make_map_key_Iterable()

template<class TMap>
Iterable< typename MapKVIteratorTraits< TMap >::Key_const_iterator > zypp::make_map_key_Iterable ( const TMap & map_r)
inline

Convenience to create an Iterable over the container keys.

Definition at line 267 of file Iterator.h.

◆ make_map_value_Iterable()

template<class TMap>
Iterable< typename MapKVIteratorTraits< TMap >::Value_const_iterator > zypp::make_map_value_Iterable ( const TMap & map_r)
inline

Convenience to create an Iterable over the container values.

Definition at line 272 of file Iterator.h.

◆ ZYPP_MAIN_THREAD_NAME()

std::string_view zypp::ZYPP_MAIN_THREAD_NAME ( "Zypp-main" )
constexpr

◆ operator<<() [4/28]

std::ostream & zypp::operator<< ( std::ostream & str,
MLSep & obj )
inline

Definition at line 343 of file LogTools.h.

◆ dumpRange()

template<class TIterator>
std::ostream & zypp::dumpRange ( std::ostream & str,
TIterator begin,
TIterator end,
const std::string & intro = "{",
const std::string & pfx = "\n  ",
const std::string & sep = "\n  ",
const std::string & sfx = "\n",
const std::string & extro = "}" )

Print range defined by iterators (multiline style).

intro [ pfx ITEM [ { sep ITEM }+ ] sfx ] extro

The defaults print the range enclosed in {}, one item per line indented by 2 spaces.

{
item1
item2
}
{} // on empty range

A comma separated list enclosed in () would be:

dumpRange( stream, begin, end, "(", "", ", ", "", ")" );
// or shorter:
dumpRangeLine( stream, begin, end );
std::ostream & dumpRangeLine(std::ostream &str, TIterator begin, TIterator end)
Print range defined by iterators (single line style).
Definition LogTools.h:427
std::ostream & dumpRange(std::ostream &str, TIterator begin, TIterator end, const std::string &intro="{", const std::string &pfx="\n ", const std::string &sep="\n ", const std::string &sfx="\n", const std::string &extro="}")
Print range defined by iterators (multiline style).
Definition LogTools.h:404
Note
Some special handling is required for printing std::maps. Therefore iomaipulators dumpMap, dumpKeys and dumpValues are provided.
std::map<string,int> m;
m["a"]=1;
m["b"]=2;
m["c"]=3;
dumpRange( DBG, dumpMap(m).begin(), dumpMap(m).end() ) << endl;
// {
// [a] = 1
// [b] = 2
// [c] = 3
// }
dumpRange( DBG, dumpKeys(m).begin(), dumpKeys(m).end() ) << endl;
// {
// a
// b
// c
// }
dumpRange( DBG, dumpValues(m).begin(), dumpValues(m).end() ) << endl;
// {
// 1
// 2
// 3
// }
dumpRangeLine( DBG, dumpMap(m).begin(), dumpMap(m).end() ) << endl;
// ([a] = 1, [b] = 2, [c] = 3)
dumpRangeLine( DBG, dumpKeys(m).begin(), dumpKeys(m).end() ) << endl;
// (a, b, c)
dumpRangeLine( DBG, dumpValues(m).begin(), dumpValues(m).end() ) << endl;
// (1, 2, 3)
#define DBG
Definition Logger.h:99
DumpKeys< TMap > dumpKeys(const TMap &map_r)
Convenience function to create DumpKeys from std::map.
Definition LogTools.h:641
DumpValues< TMap > dumpValues(const TMap &map_r)
Convenience function to create DumpValues from std::map.
Definition LogTools.h:686
DumpMap< TMap > dumpMap(const TMap &map_r)
Convenience function to create DumpMap from std::map.
Definition LogTools.h:596

Definition at line 404 of file LogTools.h.

◆ dumpRangeLine() [1/2]

template<class TIterator>
std::ostream & zypp::dumpRangeLine ( std::ostream & str,
TIterator begin,
TIterator end )

Print range defined by iterators (single line style).

See also
dumpRange

Definition at line 427 of file LogTools.h.

◆ dumpRangeLine() [2/2]

template<class TContainer>
std::ostream & zypp::dumpRangeLine ( std::ostream & str,
const TContainer & cont )

Definition at line 432 of file LogTools.h.

◆ rangeLine() [1/2]

template<class TIterator>
iomanip::RangeLine< TIterator > zypp::rangeLine ( TIterator begin,
TIterator end )

Iomanip printing dumpRangeLine style.

std::vector<int> c( { 1, 1, 2, 3, 5, 8 } );
std::cout << rangeLine(c) << std::endl;
-> (1, 1, 2, 3, 5, 8)
iomanip::RangeLine< TIterator > rangeLine(TIterator begin, TIterator end)
Iomanip printing dumpRangeLine style.
Definition LogTools.h:470

Definition at line 470 of file LogTools.h.

◆ rangeLine() [2/2]

template<class TContainer>
auto zypp::rangeLine ( const TContainer & cont) -> decltype(rangeLine(cont.begin(), cont.end()))

Definition at line 474 of file LogTools.h.

◆ operator<<() [5/28]

template<class Tp>
std::ostream & zypp::operator<< ( std::ostream & str,
const Iterable< Tp > & obj )

Definition at line 504 of file LogTools.h.

◆ dump()

template<class Tp>
detail::Dump< Tp > zypp::dump ( const Tp & obj_r)

Definition at line 757 of file LogTools.h.

◆ hexdumpOn() [1/2]

std::ostream & zypp::hexdumpOn ( std::ostream & outs,
const unsigned char * ptr,
size_t size )
inline

hexdump data on stream

hexdump 0000000333 bytes (0x0000014d):
0000: 0c 00 01 49 03 00 17 41 04 af 7c 75 5e 4c 2d f7 ...I...A..|u^L-.
0010: c9 c9 75 bf a8 41 37 2a d0 03 2c ff 96 d2 43 89 ..u..A7*..,...C.
0020: ...
unsigned short a

Definition at line 768 of file LogTools.h.

◆ hexdumpOn() [2/2]

std::ostream & zypp::hexdumpOn ( std::ostream & outs,
const char * ptr,
size_t size )
inline

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 793 of file LogTools.h.

◆ make_intrusive()

template<typename T, typename... Args>
intrusive_ptr< T > zypp::make_intrusive ( Args &&... __args)
inline

Definition at line 103 of file PtrTypes.h.

◆ asUserString()

template<class Tp>
std::string zypp::asUserString ( const Tp & val_r)

Request a human readable (translated) string representation of Tp [Tp.asUserString()] Classes may implement a default as member function.

Definition at line 41 of file String.h.

◆ declException() [1/4]

zypp::declException ( IgnoreRequestException ,
IGNORE  )

◆ declException() [2/4]

zypp::declException ( SkipRequestException ,
SKIP  )

◆ declException() [3/4]

zypp::declException ( RetryRequestException ,
RETRY  )

◆ declException() [4/4]

zypp::declException ( AbortRequestException ,
ABORT  )

◆ dumpAsXmlOn() [1/5]

template<class Tp>
std::ostream & zypp::dumpAsXmlOn ( std::ostream & str,
const Tp & obj,
const std::string & name_r )
inline

Definition at line 214 of file Xml.h.

◆ operator<<() [6/28]

std::ostream & zypp::operator<< ( std::ostream & str,
const CheckSum & obj )
related

Definition at line 183 of file CheckSum.cc.

◆ dumpAsXmlOn() [2/5]

std::ostream & zypp::dumpAsXmlOn ( std::ostream & str,
const CheckSum & obj )
related

Definition at line 193 of file CheckSum.cc.

◆ dumpAsXmlOn() [3/5]

std::ostream & zypp::dumpAsXmlOn ( std::ostream & str,
const Date & obj,
const std::string & name_r )
related

Definition at line 238 of file Date.cc.

◆ IamRoot()

bool zypp::IamRoot ( )
inline

Definition at line 41 of file PathInfo.h.

◆ IamNotRoot()

bool zypp::IamNotRoot ( )
inline

Definition at line 42 of file PathInfo.h.

◆ myTmpDir()

Pathname zypp::myTmpDir ( )

Global access to the zypp.TMPDIR (created on demand, deleted when libzypp is unloaded).

Definition at line 276 of file TmpPath.cc.

◆ operator<<() [7/28]

template<typename KVMapOpts>
std::ostream & zypp::operator<< ( std::ostream & str,
const KVMap< KVMapOpts > & obj )

Definition at line 199 of file kvmap.h.

◆ operator<<() [8/28]

ZYPP_API std::ostream & zypp::operator<< ( std::ostream & str,
const OriginEndpoint & url )

Definition at line 116 of file MirroredOrigin.cc.

◆ operator<() [1/3]

ZYPP_API bool zypp::operator< ( const OriginEndpoint & lhs,
const OriginEndpoint & rhs )

needed for std::set

Definition at line 121 of file MirroredOrigin.cc.

◆ operator==() [1/21]

ZYPP_API bool zypp::operator== ( const OriginEndpoint & lhs,
const OriginEndpoint & rhs )

needed for find, two OriginEndpoint's are equal when the Urls match, currently settings are not compared

Definition at line 126 of file MirroredOrigin.cc.

◆ operator!=() [1/20]

ZYPP_API bool zypp::operator!= ( const OriginEndpoint & lhs,
const OriginEndpoint & rhs )

needed for find, two OriginEndpoint's are equal when the Urls match, currently settings are not compared

Definition at line 131 of file MirroredOrigin.cc.

◆ operator<<() [9/28]

ZYPP_API std::ostream & zypp::operator<< ( std::ostream & str,
const MirroredOrigin & origin )

Definition at line 314 of file MirroredOrigin.cc.

◆ operator<<() [10/28]

ZYPP_API std::ostream & zypp::operator<< ( std::ostream & str,
const MirroredOriginSet & origin )

Definition at line 409 of file MirroredOrigin.cc.

◆ operator<<() [11/28]

std::ostream & zypp::operator<< ( std::ostream & str,
const OnMediaLocation & obj )
related

Definition at line 165 of file onmedialocation.cc.

◆ dumpOn() [1/2]

std::ostream & zypp::dumpOn ( std::ostream & str,
const OnMediaLocation & obj )

Definition at line 168 of file onmedialocation.cc.

◆ operator<<() [12/28]

std::ostream & zypp::operator<< ( std::ostream & str,
const PluginFrame & obj )
related

Definition at line 497 of file PluginFrame.cc.

◆ operator==() [2/21]

bool zypp::operator== ( const PluginFrame & lhs,
const PluginFrame & rhs )
related

Definition at line 500 of file PluginFrame.cc.

◆ asString() [2/3]

std::string zypp::asString ( const TriBool & val_r,
const std::string & istr_r = std::string(),
const std::string & tstr_r = std::string(),
const std::string & fstr_r = std::string() )
inline

Definition at line 44 of file TriBool.h.

◆ tri2bool()

bool zypp::tri2bool ( const TriBool & val_r,
bool default_r )
inline

Convert TriBool to bool returning default_r if indeterminate.

Definition at line 59 of file TriBool.h.

◆ operator<<() [13/28]

std::ostream & zypp::operator<< ( std::ostream & str,
const ProgressData & obj )
related

Definition at line 106 of file progressdata.cc.

◆ makeProgressData() [1/2]

ProgressData zypp::makeProgressData ( const InputStream & input_r)
related

Definition at line 124 of file progressdata.cc.

◆ operator<<() [14/28]

std::ostream & zypp::operator<< ( std::ostream & str,
const Url & url )

Definition at line 927 of file Url.cc.

◆ operator<() [2/3]

bool zypp::operator< ( const Url & lhs,
const Url & rhs )

needed for std::set

Definition at line 932 of file Url.cc.

◆ operator==() [3/21]

bool zypp::operator== ( const Url & lhs,
const Url & rhs )

needed for find

Definition at line 937 of file Url.cc.

◆ operator!=() [2/20]

bool zypp::operator!= ( const Url & lhs,
const Url & rhs )

Definition at line 942 of file Url.cc.

◆ rwcowClone< zyppng::HeaderValue::value_type >()

◆ mapEntry()

template<class TPair>
MapEntry< TPair > mapEntry ( const TPair & pair_r)
related

Convenience function to create MapEntry from std::pair.

Definition at line 544 of file LogTools.h.

◆ dumpMap()

template<class TMap>
DumpMap< TMap > dumpMap ( const TMap & map_r)
related

Convenience function to create DumpMap from std::map.

Definition at line 596 of file LogTools.h.

◆ dumpKeys()

template<class TMap>
DumpKeys< TMap > dumpKeys ( const TMap & map_r)
related

Convenience function to create DumpKeys from std::map.

Definition at line 641 of file LogTools.h.

◆ dumpValues()

template<class TMap>
DumpValues< TMap > dumpValues ( const TMap & map_r)
related

Convenience function to create DumpValues from std::map.

Definition at line 686 of file LogTools.h.

◆ asString() [3/3]

const std::string & zypp::str::asString ( const std::string & t)
inline

Global asString() that works with std::string too.

Definition at line 140 of file String.h.

Variable Documentation

◆ always_false_v

template<class>
bool zypp::always_false_v = false
inlineconstexpr

Definition at line 60 of file LogControl.cc.