Template class for non-intrusive linked PtrLists. More...
Data Structures | |
class | const_iterator |
An STL-conforming const_iterator. More... | |
class | iterator |
An STL-conforming iterator. More... | |
Public Types | |
typedef T & | reference |
Type that can be used for storing into LPtrList::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 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 &) | |
Construct as copy. More... | |
~LPtrList () | |
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... | |
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 > &) |
Assign copy. More... | |
Private Member Functions | |
template<class INew > | |
void | read (Istream &, const INew &) |
Read from Istream using given Istream constructor class. More... | |
Friends | |
class | iterator |
class | const_iterator |
Istream & | operator>> (Istream &, LPtrList< LListBase, T > &) |
Ostream & | operator (Ostream &, const LPtrList< LListBase, T > &) |
Template class for non-intrusive linked PtrLists.
Definition at line 47 of file LPtrList.H.
Type that can be used for storing into LPtrList::value_type.
objects.
Definition at line 170 of file LPtrList.H.
typedef T& const_reference |
Type that can be used for storing into constant.
LPtrList::value_type objects.
Definition at line 174 of file LPtrList.H.
typedef LListBase::iterator LListBase_iterator |
Definition at line 179 of file LPtrList.H.
typedef LListBase::const_iterator LListBase_const_iterator |
Definition at line 212 of file LPtrList.H.
|
inline |
Null construct.
Definition at line 94 of file LPtrList.H.
Construct given initial T.
Definition at line 98 of file LPtrList.H.
Construct from Istream using given Istream constructor class.
Definition at line 143 of file LPtrListIO.C.
~LPtrList | ( | ) |
Destructor.
Definition at line 45 of file LPtrList.C.
Read from Istream using given Istream constructor class.
Definition at line 35 of file LPtrListIO.C.
|
inline |
Return the first entry added.
Definition at line 123 of file LPtrList.H.
|
inline |
Return const access to the first entry added.
Definition at line 129 of file LPtrList.H.
|
inline |
Return the last entry added.
Definition at line 135 of file LPtrList.H.
|
inline |
Return const access to the last entry added.
Definition at line 141 of file LPtrList.H.
bool eraseHead | ( | ) |
Remove the head element from the list and delete the pointer.
Definition at line 54 of file LPtrList.C.
void clear | ( | ) |
Clear the contents of the list.
Definition at line 70 of file LPtrList.C.
Transfer the contents of the argument into this List.
and annul the argument list.
Definition at line 83 of file LPtrList.C.
Assign copy.
Definition at line 93 of file LPtrList.C.
|
friend |
Definition at line 84 of file LPtrList.H.
|
friend |
Definition at line 87 of file LPtrList.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.