Non-intrusive singly-linked pointer list. More...
#include <OpenFOAM/SLPtrList.H>
Non-intrusive singly-linked pointer list.
Definition at line 48 of file SLPtrList.H.
Public Member Functions | |
SLPtrList () | |
Null construct. | |
SLPtrList (T *a) | |
Construct given initial T*. | |
template<class INew > | |
SLPtrList (Istream &is, const INew &inewt) | |
Construct from Istream using given Istream constructor class. | |
SLPtrList (Istream &is) | |
Construct from Istream. | |
![]() | |
LPtrList () | |
Null construct. | |
LPtrList (T *a) | |
Construct given initial T. | |
LPtrList (Istream &, const INew &) | |
Construct from Istream using given Istream constructor class. | |
LPtrList (Istream &) | |
Construct from Istream using default Istream constructor class. | |
LPtrList (const LPtrList &) | |
Construct as copy. | |
~LPtrList () | |
T & | first () |
Return the first entry added. | |
const T & | first () const |
Return const access to the first entry added. | |
T & | last () |
Return the last entry added. | |
const T & | last () const |
Return const access to the last entry added. | |
bool | eraseHead () |
Remove the head element from the list and delete the pointer. | |
void | clear () |
Clear the contents of the list. | |
void | transfer (LPtrList< SLListBase, T > &) |
Transfer the contents of the argument into this List. | |
void | operator= (const LPtrList< SLListBase, T > &) |
Assign copy. | |
![]() | |
LList () | |
Null construct. | |
LList (T *a) | |
Construct given initial T. | |
LList (Istream &) | |
Construct from Istream. | |
LList (const LList< SLListBase, T * > &) | |
Construct as copy. | |
~LList () | |
void | insert (const T *&a) |
Add at head of list. | |
void | append (const T *&a) |
Add at tail of list. | |
T * | removeHead () |
Remove and return head. | |
T * | remove (link *l) |
Remove and return element. | |
T * | remove (iterator &it) |
Remove and return element specified by iterator. | |
void | transfer (LList< SLListBase, T * > &) |
Transfer the contents of the argument into this List. | |
void | operator= (const LList< SLListBase, T * > &) |
![]() | |
SLListBase () | |
Null construct. | |
SLListBase (link *) | |
Construct given initial entry. | |
~SLListBase () | |
label | size () const |
Return number of elements in list. | |
bool | empty () const |
Return true if the list is empty. | |
void | insert (link *) |
Add at head of list. | |
void | append (link *) |
Add at tail of list. | |
void | transfer (SLListBase &) |
Transfer the contents of the argument into this List. | |
iterator | begin () |
const iterator & | end () |
const_iterator | cbegin () const |
const const_iterator & | cend () const |
const_iterator | begin () const |
const const_iterator & | end () const |
Additional Inherited Members | |
![]() | |
typedef T & | reference |
Type that can be used for storing into LPtrList::value_type. | |
typedef T & | const_reference |
Type that can be used for storing into constant. | |
typedef SLListBase::iterator | LListBase_iterator |
typedef SLListBase::const_iterator | LListBase_const_iterator |
![]() | |
typedef T * | value_type |
Type of values the LList contains. | |
typedef label | size_type |
The type that can represent the size of a LList. |
|
inline |
Null construct.
Definition at line 58 of file SLPtrList.H.
Construct given initial T*.
Definition at line 62 of file SLPtrList.H.
Construct from Istream using given Istream constructor class.
Definition at line 69 of file SLPtrList.H.
Construct from Istream.
Definition at line 75 of file SLPtrList.H.