Template class for intrusive linked lists. More...
#include <OpenFOAM/ILList.H>
Template class for intrusive linked lists.
Inheritance diagram for ILList< LListBase, T >:
Collaboration diagram for ILList< LListBase, T >:Public Member Functions | |
| ILList () | |
| Null construct. | |
| ILList (T *a) | |
| Construct given initial T. | |
| ILList (Istream &) | |
| Construct from Istream. | |
| ILList (const ILList< LListBase, T > &) | |
| Construct as copy. | |
| template<class CloneArg > | |
| ILList (const ILList< LListBase, T > &lst, const CloneArg &cloneArg) | |
| Copy constructor with additional argument for clone. | |
| template<class INew > | |
| ILList (Istream &, const INew &) | |
| Construct from Istream using given Istream constructor class. | |
| ~ILList () | |
| bool | eraseHead () |
| Remove the head element specified from the list and delete it. | |
| bool | erase (T *p) |
| Remove the specified element from the list and delete it. | |
| void | clear () |
| Clear the contents of the list. | |
| void | transfer (ILList< LListBase, T > &) |
| Transfer the contents of the argument into this List. | |
| void | operator= (const ILList< LListBase, T > &) |
Public Member Functions inherited from UILList< LListBase, T > | |
| UILList () | |
| Null construct. | |
| UILList (T *a) | |
| Construct given initial T. | |
| UILList (const UILList< LListBase, T > &) | |
| Construct as copy. | |
| T * | first () |
| Return the first entry. | |
| const T * | first () const |
| Return the first entry. | |
| T * | last () |
| Return the last entry. | |
| const T * | last () const |
| Return the last entry. | |
| T * | removeHead () |
| Remove and return head. | |
| T * | remove (T *p) |
| Remove and return element. | |
| T * | remove (iterator &it) |
| Remove and return specified by iterator. | |
| void | operator= (const UILList< LListBase, T > &) |
| bool | operator== (const UILList< LListBase, T > &) const |
| Equality operation on ULists of the same type. | |
| bool | operator!= (const UILList< LListBase, T > &) const |
| The opposite of the equality operation. Takes linear time. | |
Friends | |
| Istream & | operator>> (Istream &, ILList< LListBase, T > &) |
| Read List from Istream, discarding contents of existing List. | |
Additional Inherited Members | |
Public Types inherited from UILList< LListBase, T > | |
| typedef T | value_type |
| Type of values the DLList contains. | |
| typedef T & | reference |
| Type that can be used for storing into DLList::value_type. | |
| typedef const T & | const_reference |
| Type that can be used for storing into constant. | |
| typedef label | size_type |
| The type that can represent the size of a DLList. | |
| typedef LListBase::iterator | LListBase_iterator |
| typedef LListBase::const_iterator | LListBase_const_iterator |
Construct from Istream.
Definition at line 141 of file ILListIO.C.
Construct from Istream using given Istream constructor class.
Definition at line 134 of file ILListIO.C.
| bool eraseHead | ( | ) |
| bool erase | ( | T * | p | ) |
| void clear | ( | ) |
Clear the contents of the list.
Reimplemented in DsmcCloud< ParcelType >, dictionary, Cloud< ParticleType >, Cloud< BasicReactingMultiphaseParcel< ThermoType > >, Cloud< basicThermoParcel >, Cloud< indexedParticle >, Cloud< trackedParticle >, Cloud< ParcelType >, Cloud< parcel >, Cloud< basicKinematicParcel >, Cloud< solidParticle >, Cloud< CoalParcel< ThermoType > >, Cloud< molecule >, Cloud< passiveParticle >, Cloud< dsmcParcel >, Cloud< BasicReactingParcel< ThermoType > >, and DictionaryBase< IDLList< T >, T >.
Definition at line 114 of file ILList.C.
References clear().
Referenced by Foam::operator>>().