Go to the documentation of this file.
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*>
165 const T&
last()
const
213 return *(this->
get());
255 return *(this->
get());
293 return *(this->
get());
331 return *(this->
get());
349 return LListBase::template iterator_first<base_iterator>();
355 return LListBase::template iterator_first<const_base_iterator>();
361 return LListBase::template iterator_last<base_iterator>();
367 return LListBase::template iterator_last<const_base_iterator>();
386 return LListBase::template iterator_end<iterator>();
392 return LListBase::template iterator_end<const_iterator>();
398 return LListBase::template iterator_rend<reverse_iterator>();
404 return LListBase::template iterator_rend<const_reverse_iterator>();
422 friend Istream&
operator>> <LListBase,
T>
428 friend Ostream& operator<< <LListBase, T>
srcOptions insert("case", fileName(rootDirSource/caseDirSource))
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.
typename LListBase::const_iterator const_base_iterator
const T & first() const
The first entry in the list (const access)
const const_reverse_iterator & rend() const
End of list for reverse iterators.
reference first()
The first entry in the list.
pointer get() const
Return the address of the object being referenced.
const T & last() const
The last entry in the list (const access)
const_reference operator*() const
const typedef T & const_reference
Const reference for LPtrList::value_type objects.
T & last()
The last entry in the list.
const const_iterator & end() const
End of list for forward iterators.
const_iterator(const_base_iterator iter)
pointer operator->() const
iterator(base_iterator iter)
pointer operator->() const
An STL-conforming const_iterator.
reference operator*() const
An STL-conforming iterator.
const_pointer operator->() const
T & reference
Reference for LPtrList::value_type objects.
const_reference operator()() const
reverse_iterator rbegin()
Iterator to last item in list with non-const access.
const_pointer operator->() const
typename LListBase::iterator base_iterator
const iterator & end()
End of list for forward iterators.
Template class for non-intrusive linked PtrLists.
Template class for non-intrusive linked lists.
void transfer(LPtrList< LListBase, T > &lst)
A helper class when constructing from an Istream or dictionary.
void operator=(const LPtrList< LListBase, T > &lst)
Copy assign by using 'clone()' for each element.
const reverse_iterator & rend()
End of list for reverse iterators.
reference operator*() const
T & first()
The first entry in the list.
const_reverse_iterator(const_base_iterator iter)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
LPtrList(T *item)
Construct and insert the initial T item.
const_reverse_iterator rbegin() const
Iterator to last item in list with const access.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
const typedef T * const_pointer
Const pointer for LPtrList::value_type objects.
const_pointer get() const
Return the address of the object being referenced.
const_reference operator()() const
An STL-conforming iterator.
const_reference operator*() const
OBJstream os(runTime.globalPath()/outputName)
const_reverse_iterator crbegin() const
Iterator to last item in list with const access.
const_pointer get() const
Return the address of the object being referenced.
T * pointer
Pointer for LPtrList::value_type objects.
bool eraseHead()
Remove the head element from the list and delete the pointer.
const_iterator(base_iterator iter)
const_iterator begin() const
Iterator to first item in list with const access.
LList< LListBase, T * > parent_type
The parent list storage.
reference operator*() const
constexpr auto cbegin(const C &c) -> decltype(c.begin())
Return const_iterator to the beginning of the container c.
const const_reverse_iterator & crend() const
End of list for reverse iterators.
pointer get() const
Return the address of the object being referenced.
const_reference operator*() const
reference last()
The last entry in the list.
const const_iterator & cend() const
End of list for forward iterators.
reference operator*() const
reference operator()() const
LPtrList()=default
Null construct.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
reference operator()() const
const_reference operator*() const
An STL-conforming const_iterator.
void clear()
Clear the contents of the list.
reverse_iterator(base_iterator iter)