13 #include <solv/queue.h>
31 : _pimpl( new struct ::_Queue )
43 {
return(
_pimpl->count == 0 ); }
49 {
return _pimpl->elements; }
77 { ::queue_empty( *
this ); }
89 { ::queue_push(
_pimpl, val_r ); }
92 { return ::queue_pop(
_pimpl ); }
95 { ::queue_unshift(
_pimpl, val_r ); }
98 { return ::queue_shift(
_pimpl ); }
110 str <<
" " <<
Solvable(*it) << endl;
117 const struct ::_Queue * l = lhs;
118 const struct ::_Queue * r = rhs;
119 return( l == r || ( l->count == r->count && ::memcmp( l->elements, r->elements, l->count ) == 0 ) );
void remove(value_type val_r)
Remove all occurances of val_r from the queue.
A Solvable object within the sat Pool.
std::ostream & operator<<(std::ostream &str, const LocaleSupport &obj)
detail::IdType value_type
bool operator==(const Map &lhs, const Map &rhs)
struct::_Queue * _pimpl
Pointer to implementation.
value_type last() const
Return the last Id in the queue or 0 if empty.
#define for_(IT, BEG, END)
Convenient for-loops using iterator.
const_iterator find(value_type val_r) const
Return iterator to the 1st occurance of val_r or end.
const_iterator end() const
void push(value_type val_r)
Push a value to the end off the Queue.
const_iterator begin() const
value_type pop_front()
Pop and return the 1st Id from the queue or 0 if empty.
void push_front(value_type val_r)
Push a value to the beginning off the Queue.
const value_type * const_iterator
std::ostream & dumpOn(std::ostream &str, const LocaleSupport &obj)
std::ostream & dumpRangeLine(std::ostream &str, _Iterator begin, _Iterator end)
Print range defined by iterators (single line style).
Libsolv Id queue wrapper.
void clear()
Clear the queue.
Queue()
Default ctor: empty Queue.
value_type first() const
Return the 1st Id in the queue or 0 if empty.
value_type pop()
Pop and return the last Id from the queue or 0 if empty.