Template class for non-intrusive linked PtrLists. More...
Public Member Functions | |
LPtrList () | |
Null construct. More... | |
LPtrList (T *a) | |
Construct given initial T. More... | |
template<class INew > | |
LPtrList (Istream &, const INew &) | |
Construct from Istream using given Istream constructor class. More... | |
LPtrList (Istream &) | |
Construct from Istream using default Istream constructor class. More... | |
LPtrList (const LPtrList &) | |
Copy constructor. More... | |
LPtrList (LPtrList &&) | |
Move constructor. More... | |
~LPtrList () | |
Destructor. More... | |
bool | eraseHead () |
Remove the head element from the list and delete the pointer. More... | |
void | clear () |
Clear the contents of the list. More... | |
void | transfer (LPtrList< LListBase, T > &) |
Transfer the contents of the argument into this List. More... | |
void | operator= (const LPtrList< LListBase, T > &) |
Assignment operator. More... | |
void | operator= (LPtrList< LListBase, T > &&) |
Move assignment operator. More... | |
Public Member Functions inherited from ULPtrList< LListBase, T > | |
ULPtrList () | |
Null construct. More... | |
ULPtrList (T *a) | |
Construct given initial T. More... | |
ULPtrList (const ULPtrList &) | |
Copy constructor. More... | |
ULPtrList (ULPtrList &&) | |
Move constructor. More... | |
T & | first () |
Return the first entry added. More... | |
const T & | first () const |
Return const access to the first entry added. More... | |
T & | last () |
Return the last entry added. More... | |
const T & | last () const |
Return const access to the last entry added. More... | |
void | operator= (const ULPtrList< LListBase, T > &) |
Assignment operator. More... | |
void | operator= (ULPtrList< LListBase, T > &&) |
Move assignment operator. More... | |
Public Member Functions inherited from LList< LListBase, T * > | |
LList () | |
Null construct. More... | |
LList (T * a) | |
Construct given initial T. More... | |
LList (Istream &) | |
Construct from Istream. More... | |
LList (const LList< LListBase, T * > &) | |
Copy constructor. More... | |
LList (LList< LListBase, T * > &&) | |
Move constructor. More... | |
LList (std::initializer_list< T * >) | |
Construct from an initialiser list. More... | |
~LList () | |
Destructor. More... | |
T * & | first () |
Return the first entry added. More... | |
const T * & | first () const |
Return const access to the first entry added. More... | |
T * & | last () |
Return the last entry added. More... | |
const T * & | last () const |
Return const access to the last entry added. More... | |
void | insert (const T * &a) |
Add at head of list. More... | |
void | append (const T * &a) |
Add at tail of list. More... | |
T * | removeHead () |
Remove and return head. More... | |
T * | remove (link *l) |
Remove and return element. More... | |
T * | remove (iterator &it) |
Remove and return element specified by iterator. More... | |
void | clear () |
Delete contents of list. More... | |
void | transfer (LList< LListBase, T * > &) |
Transfer the contents of the argument into this List. More... | |
void | operator= (const LList< LListBase, T * > &) |
Assignment operator. More... | |
void | operator= (LList< LListBase, T * > &&) |
Move assignment operator. More... | |
void | operator= (std::initializer_list< T * >) |
Assignment to an initialiser list. More... | |
iterator | begin () |
const_iterator | begin () const |
const iterator & | end () |
const const_iterator & | end () const |
const_iterator | cbegin () const |
const const_iterator & | cend () const |
Friends | |
Istream & | operator>> (Istream &, LPtrList< LListBase, T > &) |
Additional Inherited Members | |
Public Types inherited from ULPtrList< LListBase, T > | |
typedef T & | reference |
Type that can be used for storing into ULPtrList::value_type. More... | |
typedef T & | const_reference |
Type that can be used for storing into constant. More... | |
typedef LListBase::iterator | LListBase_iterator |
typedef LListBase::const_iterator | LListBase_const_iterator |
Public Types inherited from LList< LListBase, T * > | |
typedef T * | value_type |
Type of values the LList contains. More... | |
typedef T * & | reference |
Type that can be used for storing into value_type. More... | |
typedef const T * & | const_reference |
Type that can be used for storing into constant. More... | |
typedef label | size_type |
The type that can represent the size of a LList. More... | |
typedef LListBase::iterator | LListBase_iterator |
typedef LListBase::const_iterator | LListBase_const_iterator |
Template class for non-intrusive linked PtrLists.
Definition at line 62 of file LPtrList.H.
|
inline |
Null construct.
Definition at line 78 of file LPtrList.H.
Construct given initial T.
Definition at line 82 of file LPtrList.H.
Construct from Istream using given Istream constructor class.
Definition at line 142 of file LPtrListIO.C.
References Foam::blockMeshTools::read().
Construct from Istream using default Istream constructor class.
Definition at line 149 of file LPtrListIO.C.
References Foam::blockMeshTools::read().
Destructor.
Definition at line 59 of file LPtrList.C.
References clear().
bool eraseHead |
Remove the head element from the list and delete the pointer.
Definition at line 68 of file LPtrList.C.
References Foam::T().
void clear |
Clear the contents of the list.
Definition at line 84 of file LPtrList.C.
References clear().
Transfer the contents of the argument into this List.
and annul the argument list.
Definition at line 97 of file LPtrList.C.
References clear().
Assignment operator.
Definition at line 107 of file LPtrList.C.
References LList< LListBase, T >::begin(), clear(), Foam::clone(), and LList< LListBase, T >::end().
Move assignment operator.
Definition at line 124 of file LPtrList.C.