53template<
class LListBase,
class T>
class UILList;
55template<
class LListBase,
class T>
67template<
class LListBase,
class T>
143 const T*
last()
const
189 friend Ostream& operator<< <LListBase, T>
213 return static_cast<T*
>(base_iterator::get_node());
218 return *(this->
get());
263 return static_cast<const T*
>(const_base_iterator::get_node());
268 return *(this->
get());
307 return static_cast<T*
>(base_iterator::get_node());
312 return *(this->
get());
351 return static_cast<const T*
>(const_base_iterator::get_node());
356 return *(this->
get());
380 return LListBase::template iterator_first<base_iterator>();
386 return LListBase::template iterator_first<const_base_iterator>();
392 return LListBase::template iterator_last<base_iterator>();
398 return LListBase::template iterator_last<const_base_iterator>();
417 return LListBase::template iterator_end<iterator>();
423 return LListBase::template iterator_end<const_iterator>();
429 return LListBase::template iterator_rend<reverse_iterator>();
435 return LListBase::template iterator_rend<const_reverse_iterator>();
Forward iterator with non-const access.
T removeHead()
Remove and return first entry.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
unsigned int remove()
Remove and return the last element.
const_pointer operator->() const
const_reference operator()() const
const_pointer get() const
Return the address of the object being referenced.
const_iterator(base_iterator iter)
Construct from base iterator.
const_iterator & operator++()
const_iterator(const_base_iterator iter)
Construct from base const_iterator.
const_reference operator*() const
const_pointer operator->() const
const_reference operator()() const
const_reverse_iterator(const_base_iterator iter)
const_pointer get() const
Return the address of the object being referenced.
const_reverse_iterator & operator++()
const_reference operator*() const
reference operator()() const
reference operator*() const
pointer get() const
Return the address of the object being referenced.
iterator(base_iterator iter)
pointer operator->() const
reference operator()() const
reverse_iterator & operator++()
reference operator*() const
reverse_iterator(base_iterator iter)
pointer get() const
Return the address of the object being referenced.
pointer operator->() const
Template class for intrusive linked lists.
typename LListBase::iterator base_iterator
label size_type
The type that can represent the container size.
const iterator & end()
End of list for forward iterators.
label difference_type
The difference between iterator objects.
const T * last() const
The last entry in the list (const access)
UILList()=default
Default construct.
T value_type
Type of values stored.
const_iterator begin() const
Iterator to first item in list with const access.
const const_iterator & end() const
End of list for forward iterators.
typename LListBase::const_iterator const_base_iterator
const T * first() const
The first entry in the list (const access)
const_iterator cbegin() const
Iterator to first item in list with const access.
const const_iterator & cend() const
End of list for forward iterators.
const T * const_pointer
Const pointer for value_type.
void operator=(const UILList< LListBase, T > &lst)
Copy assignment.
T * pointer
Pointer for value_type.
const_reverse_iterator crbegin() const
Iterator to last item in list with const access.
const reverse_iterator & rend()
End of list for reverse iterators.
T & reference
Reference for value_type.
bool operator==(const UILList< LListBase, T > &lst) const
Equality. True both lists are element-wise equal.
const const_reverse_iterator & crend() const
End of list for reverse iterators.
T * remove(T *item)
Remove and return element.
T * first()
The first entry in the list.
bool operator!=(const UILList< LListBase, T > &lst) const
The opposite of the equality operation. Takes linear time.
Ostream & writeList(Ostream &os, const label shortLen=0) const
Write UILList with line-breaks when length exceeds shortLen.
reverse_iterator rbegin()
Iterator to last item in list with non-const access.
const const_reverse_iterator & rend() const
End of list for reverse iterators.
iterator begin()
Iterator to first item in list with non-const access.
T * last()
The last entry in the list.
T * removeHead()
Remove and return head.
UILList(T *item)
Construct and add initial item pointer.
T * remove(iterator &iter)
Remove and return item specified by iterator.
const_reverse_iterator rbegin() const
Iterator to last item in list with const access.
const T & const_reference
Const reference for value_type.
A const_iterator for iterating across on values.
edgeFaceCirculator cbegin() const
OBJstream os(runTime.globalPath()/outputName)