Template class for intrusive linked lists. More...
#include <OpenFOAM/UILList.H>
Template class for intrusive linked lists.
Definition at line 67 of file UILList.H.
Classes | |
class | const_iterator |
An STL-conforming const_iterator. More...
| |
class | iterator |
An STL-conforming iterator. More...
| |
Public Types | |
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 |
Public Member Functions | |
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 | |
class | iterator |
class | const_iterator |
Ostream & | operator (Ostream &, const UILList< LListBase, T > &) |
typedef T value_type |
typedef T& reference |
Type that can be used for storing into DLList::value_type.
objects.
typedef const T& const_reference |
Type that can be used for storing into constant.
DLList::value_type objects.
typedef label size_type |
typedef LListBase::iterator LListBase_iterator |
typedef LListBase::const_iterator LListBase_const_iterator |
T* first | ( | ) | [inline]
|
Return the first entry.
Definition at line 104 of file UILList.H.
Referenced by UILList< DLListBase, ParcelType >::first().
T* last | ( | ) | [inline]
|
Return the last entry.
Definition at line 116 of file UILList.H.
Referenced by UILList< DLListBase, ParcelType >::last().
T* removeHead | ( | ) | [inline]
|
Remove and return head.
Definition at line 131 of file UILList.H.
Referenced by UILList< DLListBase, ParcelType >::removeHead().
T* remove | ( | T * | p ) | [inline]
|
Remove and return element.
Definition at line 137 of file UILList.H.
Referenced by UILList< DLListBase, ParcelType >::remove().
T* remove | ( | iterator & | it ) | [inline]
|
The opposite of the equality operation. Takes linear time.
Definition at line 84 of file UILList.C.
References Foam::operator==().
friend class iterator [friend]
|
Reimplemented in 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 >, and Cloud< BasicReactingParcel< ThermoType > >.
friend class const_iterator [friend]
|
Reimplemented in 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 >, and Cloud< BasicReactingParcel< ThermoType > >.