51 template<
class LListBase,
class T>
54 template<
class LListBase,
class T>
66 template<
class LListBase,
class T>
112 return static_cast<T*
>(LListBase::first());
118 return static_cast<const T*
>(LListBase::first());
124 return static_cast<T*
>(LListBase::last());
128 const T*
last()
const 130 return static_cast<const T*
>(LListBase::last());
139 return static_cast<T*
>(LListBase::removeHead());
145 return static_cast<T*
>(LListBase::remove(
p));
151 return static_cast<T*
>(LListBase::remove(it));
188 public LListBase_iterator
194 iterator(LListBase_iterator baseIter)
196 LListBase_iterator(baseIter)
214 LListBase_iterator::operator++();
221 return LListBase::begin();
226 return static_cast<const iterator&
>(LListBase::end());
237 public LListBase_const_iterator
245 LListBase_const_iterator(baseIter)
251 LListBase_const_iterator(baseIter)
260 static_cast<const T&
> 271 LListBase_const_iterator::operator++();
278 return LListBase::cbegin();
288 return LListBase::begin();
302 public LListBase::const_reverse_iterator
310 typename LListBase::const_reverse_iterator baseIter
322 static_cast<const T&
> 333 LListBase::const_reverse_iterator::operator++();
340 return LListBase::crbegin();
352 return LListBase::rbegin();
375 friend Ostream& operator<< <LListBase, T>
const const_iterator & cend() const
Template class for intrusive linked lists.
const_reverse_iterator rbegin() const
const T & const_reference
Type that can be used for storing into constant.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
bool operator==(const UILList< LListBase, T > &) const
Equality operation on ULists of the same type.
LListBase::iterator LListBase_iterator
T * last()
Return the last entry.
An STL-conforming const_iterator.
LListBase::const_iterator LListBase_const_iterator
iterator(LListBase_iterator baseIter)
Construct from base iterator.
const_iterator cbegin() const
tmp< fvMatrix< Type > > operator*(const volScalarField::Internal &, const fvMatrix< Type > &)
friend class const_reverse_iterator
An STL-conforming iterator.
bool operator!=(const UILList< LListBase, T > &) const
The opposite of the equality operation. Takes linear time.
const const_reverse_iterator & rend() const
const_reverse_iterator crbegin() const
T value_type
Type of values the DLList contains.
T & reference
Type that can be used for storing into DLList::value_type.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
An STL-conforming const_reverse_iterator.
label size_type
The type that can represent the size of a DLList.
T * first()
Return the first entry.
T * removeHead()
Remove and return head.
const const_reverse_iterator & crend() const
void operator=(const UILList< LListBase, T > &)
Assignment operator.
friend class const_iterator