libzypp  17.1.1
zypp::sat::FileConflicts Class Reference

Libsolv queue representing file conflicts. More...

#include <FileConflicts.h>

Inheritance diagram for zypp::sat::FileConflicts:

Classes

class  Conflict
 A file conflict. More...
 

Public Types

typedef Conflict value_type
 
typedef const value_typeconst_iterator
 
typedef unsigned size_type
 

Public Member Functions

size_type size () const
 
const_iterator begin () const
 
const_iterator end () const
 

Static Private Attributes

static constexpr size_type queueBlockSize = 6
 

Friends

bool operator== (const FileConflicts &lhs, const FileConflicts &rhs)
 

Related Functions

(Note that these are not member functions.)

std::ostream & operator<< (std::ostream &str, const FileConflicts &obj)
 
std::ostream & dumpAsXmlOn (std::ostream &str, const FileConflicts &obj)
 
bool operator== (const FileConflicts &lhs, const FileConflicts &rhs)
 
bool operator!= (const FileConflicts &lhs, const FileConflicts &rhs)
 

Additional Inherited Members

- Private Types inherited from zypp::sat::Queue
typedef unsigned size_type
 
typedef detail::IdType value_type
 
typedef const value_typeconst_iterator
 
- Private Member Functions inherited from zypp::sat::Queue
 Queue ()
 Default ctor: empty Queue. More...
 
 ~Queue ()
 Dtor. More...
 
bool empty () const
 
size_type size () const
 
const_iterator begin () const
 
const_iterator end () const
 
const_iterator find (value_type val_r) const
 Return iterator to the 1st occurance of val_r or end. More...
 
bool contains (value_type val_r) const
 Return whether the Queue contais at lest one element with value val_r. More...
 
value_type first () const
 Return the 1st Id in the queue or 0 if empty. More...
 
value_type last () const
 Return the last Id in the queue or 0 if empty. More...
 
const value_typeat (size_type idx_r) const
 Return the Id at idx_r in the queue. More...
 
value_typeat (size_type idx_r)
 Return the Id at idx_r in the queue. More...
 
const value_typeoperator[] (size_type idx_r) const
 Return the Id at idx_r in the queue (no range check) More...
 
value_typeoperator[] (size_type idx_r)
 Return the Id at idx_r in the queue (no range check) More...
 
void clear ()
 Clear the queue. More...
 
void remove (value_type val_r)
 Remove all occurances of val_r from the queue. More...
 
void push (value_type val_r)
 Push a value to the end off the Queue. More...
 
void push_back (value_type val_r)
 
void pushUnique (value_type val_r)
 Push a value if it's not yet in the Queue. More...
 
value_type pop ()
 Pop and return the last Id from the queue or 0 if empty. More...
 
value_type pop_back ()
 
void push_front (value_type val_r)
 Push a value to the beginning off the Queue. More...
 
value_type pop_front ()
 Pop and return the 1st Id from the queue or 0 if empty. More...
 
 operator detail::CQueue * ()
 libsolv backdoor More...
 
 operator const detail::CQueue * () const
 < libsolv backdoor More...
 

Detailed Description

Libsolv queue representing file conflicts.

Definition at line 30 of file FileConflicts.h.

Member Typedef Documentation

◆ value_type

Definition at line 59 of file FileConflicts.h.

◆ const_iterator

Definition at line 60 of file FileConflicts.h.

◆ size_type

typedef unsigned zypp::sat::Queue::size_type

Definition at line 37 of file Queue.h.

Member Function Documentation

◆ size()

size_type zypp::sat::FileConflicts::size ( ) const
inline

Definition at line 63 of file FileConflicts.h.

◆ begin()

const_iterator zypp::sat::FileConflicts::begin ( ) const
inline

Definition at line 64 of file FileConflicts.h.

◆ end()

const_iterator zypp::sat::FileConflicts::end ( ) const
inline

Definition at line 65 of file FileConflicts.h.

Friends And Related Function Documentation

◆ operator== [1/2]

bool operator== ( const FileConflicts lhs,
const FileConflicts rhs 
)
friend

◆ operator<<()

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

Stream output

Definition at line 109 of file FileConflicts.cc.

◆ dumpAsXmlOn()

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

XML output

Definition at line 132 of file FileConflicts.cc.

◆ operator==() [2/2]

bool operator== ( const FileConflicts lhs,
const FileConflicts rhs 
)
related

Definition at line 85 of file FileConflicts.h.

◆ operator!=()

bool operator!= ( const FileConflicts lhs,
const FileConflicts rhs 
)
related

Definition at line 89 of file FileConflicts.h.

Member Data Documentation

◆ queueBlockSize

constexpr size_type zypp::sat::FileConflicts::queueBlockSize = 6
staticprivate

Definition at line 33 of file FileConflicts.h.


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