39#ifndef Foam_LPtrList_H
40#define Foam_LPtrList_H
51template<
class LListBase,
class T>
class LPtrList;
53template<
class LListBase,
class T>
60template<
class LListBase,
class T>
72template<
class LListBase,
class T>
75 public LList<LListBase, T*>
163 const T&
last()
const
211 return *(this->
get());
253 return *(this->
get());
291 return *(this->
get());
329 return *(this->
get());
347 return LListBase::template iterator_first<base_iterator>();
353 return LListBase::template iterator_first<const_base_iterator>();
359 return LListBase::template iterator_last<base_iterator>();
365 return LListBase::template iterator_last<const_base_iterator>();
384 return LListBase::template iterator_end<iterator>();
390 return LListBase::template iterator_end<const_iterator>();
396 return LListBase::template iterator_rend<reverse_iterator>();
402 return LListBase::template iterator_rend<const_reverse_iterator>();
420 friend Istream&
operator>> <LListBase,
T>
426 friend Ostream& operator<< <LListBase, T>
Forward iterator with non-const access.
iterator()=default
Default construct (end iterator)
this_type::reference reference
this_type::pointer pointer
A helper class when constructing from an Istream or dictionary.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Template class for non-intrusive linked lists.
void prepend(const T * &elem)
Add copy at front of list.
reference last()
The last entry in the list.
reference first()
The first entry in the list.
An STL-conforming const_iterator.
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)
const_iterator(const_base_iterator iter)
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_reference operator*() const
An STL-conforming iterator.
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
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 non-intrusive linked PtrLists.
typename LListBase::iterator base_iterator
LPtrList(LPtrList &&lst)
Move construct.
const iterator & end()
End of list for forward iterators.
T & first()
The first entry in the list.
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_iterator cbegin() const
Iterator to first item in list with const access.
bool eraseHead()
Remove the head element from the list and delete the pointer.
const const_iterator & cend() const
End of list for forward iterators.
const T * const_pointer
Const pointer for LPtrList::value_type objects.
LPtrList(const LPtrList &lst)
Copy construct by using 'clone()' for each element.
void operator=(const LPtrList< LListBase, T > &lst)
Copy assign by using 'clone()' for each element.
T * pointer
Pointer for LPtrList::value_type objects.
const T & last() const
The last entry in the list (const access)
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 LPtrList::value_type objects.
const T & first() const
The first entry in the list (const access)
LPtrList(T *item)
Construct and add initial item pointer.
const const_reverse_iterator & crend() const
End of list for reverse iterators.
LList< LListBase, T * > parent_type
The parent list storage.
void transfer(LPtrList< LListBase, T > &lst)
void clear()
Clear the contents of the list.
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.
LPtrList()=default
Default construct.
T & last()
The last entry in the list.
const_reverse_iterator rbegin() const
Iterator to last item in list with const access.
const T & const_reference
Const reference for LPtrList::value_type objects.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A const_iterator for iterating across on values.
edgeFaceCirculator cbegin() const
friend forceSuSp operator*(const forceSuSp &susp1, const forceSuSp &susp2)
Addition.
OBJstream os(runTime.globalPath()/outputName)