172 template<
class...
Args>
325 template<
class...
Args>
Declaration of singly linked lists and iterators.
The parameterized class Queue<E> implements list-based queues.
Queue()
Constructs an empty queue.
const_reference bottom() const
Returns a reference to the back element.
Queue(const Queue< E > &Q)
Constructs a queue that is a copy of Q.
iterator backIterator()
Returns an iterator to the last element of the queue.
const_iterator cbegin() const
Returns a const iterator to the first element of the queue.
Queue(std::initializer_list< E > initList)
Constructs a queue and appends the elements in initList to it.
const_iterator begin() const
Returns a const iterator to the first element of the queue.
iterator end()
Returns an iterator to one-past-last element of the queue.
iterator begin()
Returns an iterator to the first element of the queue.
int size() const
Returns the number of elements in the queue.
E & reference
Provides a reference to an element stored in a queue.
const E & const_reference
Provides a reference to a const element stored in a queue for reading and performing const operations...
void clear()
Makes the queue empty.
const_iterator backIterator() const
Returns a const iterator to the last element of the queue.
E pop()
Removes front element and returns it.
iterator emplace(Args &&... args)
Adds a new element at the end of the queue.
reference top()
Returns a reference to the front element.
Queue(Queue< E > &&Q)
Constructs a queue containing the elements of Q (move semantics).
const_iterator end() const
Returns a const iterator to one-past-last element of the queue.
const_iterator cend() const
Returns a const iterator to one-past-last element of the queue.
bool empty() const
Returns true iff the queue is empty.
Queue< E > & operator=(const Queue< E > &Q)
Assignment operator.
const_reference top() const
Returns a reference to the front element.
iterator append(const E &x)
Adds x at the end of queue.
reference bottom()
Returns a reference to the back element.
Queue< E > & operator=(Queue< E > &&Q)
Assignment operator (move semantics).
const SList< E > & getList() const
Conversion to const SList.
E value_type
Represents the data type stored in a queue element.
Implementation of list-based queues.
void clear()
Makes the queue empty.
reference top()
Returns a reference to the front element.
iterator end()
Returns an iterator to one-past-last element of the queue.
const_iterator cend() const
Returns a const iterator to one-past-last element of the queue.
iterator emplace(Args &&... args)
Adds a new element at the end of the queue.
bool empty() const
Returns true iff the queue is empty.
const E & const_reference
Provides a reference to a const element stored in a queue for reading and performing const operations...
iterator append(const E &x)
Adds x at the end of queue.
E pop()
Removes front element and returns it.
iterator begin()
Returns an iterator to the first element of the queue.
QueuePure(std::initializer_list< E > initList)
Constructs a queue and appends the elements in initList to it.
reference bottom()
Returns a reference to the back element.
E & reference
Provides a reference to an element stored in a queue.
QueuePure()
Constructs an empty queue.
QueuePure< E > & operator=(QueuePure< E > &&Q)
Assignment operator (move semantics).
const_iterator end() const
Returns a const iterator to one-past-last element of the queue.
QueuePure< E > & operator=(const QueuePure< E > &Q)
Assignment operator.
const_iterator cbegin() const
Returns a const iterator to the first element of the queue.
QueuePure(QueuePure< E > &&Q)
Constructs a queue containing the elements of Q (move semantics).
const_reference bottom() const
Returns a reference to the back element.
QueuePure(const QueuePure< E > &Q)
Constructs a queue that is a copy of Q.
iterator backIterator()
Returns an iterator to the last element of the queue.
E value_type
Represents the data type stored in a queue element.
const SListPure< E > & getListPure() const
Conversion to const SListPure.
const_iterator backIterator() const
Returns a const iterator to the last element of the queue.
const_reference top() const
Returns a reference to the front element.
const_iterator begin() const
Returns a const iterator to the first element of the queue.
Singly linked lists (maintaining the length of the list).
iterator emplaceBack(Args &&... args)
Adds a new element at the end of the list.
void clear()
Removes all elements from the list.
int size() const
Returns the number of elements in the list.
void popFront()
Removes the first element from the list.
SList< E > & operator=(const SList< E > &L)
Assignment operator.
SListIterator< E > pushBack(const E &x)
Adds element x at the end of the list.
Encapsulates a pointer to an ogdf::SList element.
iterator backIterator()
Returns an iterator to the last element of the list.
void clear()
Removes all elements from the list.
iterator end()
Returns an iterator to one-past-last element of the list.
const_iterator cbegin() const
Returns a const iterator to the first element of the list.
const_iterator cend() const
Returns a const iterator to one-past-last element of the list.
bool empty() const
Returns true iff the list is empty.
iterator emplaceBack(Args &&... args)
Adds a new element at the end of the list.
SListPure< E > & operator=(const SListPure< E > &L)
Assignment operator.
const_reference front() const
Returns a reference to the first element.
const_reference back() const
Returns a reference to the last element.
iterator begin()
Returns an iterator to the first element of the list.
iterator pushBack(const E &x)
Adds element x at the end of the list.
void popFront()
Removes the first element from the list.
#define OGDF_NEW_DELETE
Makes the class use OGDF's memory allocator.
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.
std::ostream & operator<<(std::ostream &os, const ogdf::Array< E, INDEX > &a)
Prints array a to output stream os.
void print(std::ostream &os, const Array< E, INDEX > &a, char delim=' ')
Prints array a to output stream os using delimiter delim.