39 #ifndef Foam_LPtrList_H 40 #define Foam_LPtrList_H 51 template<
class LListBase,
class T>
class LPtrList;
53 template<
class LListBase,
class T>
60 template<
class LListBase,
class T>
72 template<
class LListBase,
class T>
75 public LList<LListBase, T*>
163 const T&
back()
const 193 public parent_type::iterator
199 parent_type::iterator(iter)
210 return *(this->
get());
230 public parent_type::const_iterator
252 return *(this->
get());
271 class reverse_iterator
273 public parent_type::reverse_iterator
279 parent_type::reverse_iterator(iter)
290 return *(this->
get());
311 public parent_type::const_reverse_iterator
317 parent_type::const_reverse_iterator(iter)
328 return *(this->
get());
346 return LListBase::template iterator_first<base_iterator>();
352 return LListBase::template iterator_first<const_base_iterator>();
358 return LListBase::template iterator_last<base_iterator>();
364 return LListBase::template iterator_last<const_base_iterator>();
383 return LListBase::template iterator_end<iterator>();
389 return LListBase::template iterator_end<const_iterator>();
395 return LListBase::template iterator_rend<reverse_iterator>();
401 return LListBase::template iterator_rend<const_reverse_iterator>();
405 inline const const_iterator&
end()
const 419 friend Istream&
operator>> <LListBase,
T>
const_iterator cbegin() const
Iterator to first item in list with const access.
iterator begin()
Iterator to first item in list with non-const access.
reference operator*() const
A const_reverse_iterator, for base classes that support reverse iteration.
reference front()
The first entry in the list.
const_reverse_iterator crbegin() const
Iterator to last item in list with const access.
T & reference
Reference for LPtrList::value_type objects.
const_reference operator*() const
Template class for non-intrusive linked lists.
T & first()
The first entry in the list.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
reverse_iterator rbegin()
Iterator to last item in list with non-const access.
typename LListBase::const_iterator const_base_iterator
pointer operator->() const
void operator=(const LPtrList< LListBase, T > &lst)
Copy assign by using 'clone()' for each element.
const_pointer operator->() const
An STL-conforming const_iterator.
T * pointer
Pointer for LPtrList::value_type objects.
~LPtrList()
Destructor. Calls clear()
reference operator*() const
const T & const_reference
Const reference for LPtrList::value_type objects.
T & last()
The last entry in the list.
Template class for non-intrusive linked PtrLists.
An STL-conforming iterator.
const_iterator(const_base_iterator iter)
tmp< faMatrix< Type > > operator*(const areaScalarField::Internal &, const faMatrix< Type > &)
reverse_iterator(base_iterator iter)
const reverse_iterator & rend()
End of list for reverse iterators.
T & back()
The last entry in the list.
void push_front(const T * &elem)
Add copy at front of list.
reference operator()() const
pointer operator->() const
An Ostream is an abstract base class for all output systems (streams, files, token lists...
T & front()
The first entry in the list.
A reverse_iterator, for base classes that support reverse iteration.
OBJstream os(runTime.globalPath()/outputName)
typename LListBase::iterator base_iterator
const_pointer operator->() const
constexpr auto cbegin(const C &c) -> decltype(c.begin())
Return const_iterator to the beginning of the container c.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
const iterator & end()
End of list for forward iterators.
const const_reverse_iterator & crend() const
End of list for reverse iterators.
const const_iterator & cend() const
End of list for forward iterators.
void clear()
Clear the contents of the list.
LPtrList()=default
Default construct.
const_reference operator()() const
const_reference operator*() const
const_reference operator()() const
A helper class when constructing from an Istream or dictionary.
const_reverse_iterator(const_base_iterator iter)
iterator(base_iterator iter)
void transfer(LPtrList< LListBase, T > &lst)
Transfer the contents of the argument into this List and annul the argument list. ...
const T * const_pointer
Const pointer for LPtrList::value_type objects.
LList< LListBase, T * > parent_type
The parent list storage.
reference back()
The last entry in the list.
reference operator()() const
void pop_front(label n=1)
Remove first element(s) from the list (deletes pointers)