OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

DLListBase Class Reference

Base doubly-linked list. More...

Inheritance diagram for DLListBase:
Collaboration diagram for DLListBase:

List of all members.


Classes

class  const_iterator
 An STL-conforming const_iterator. More...
class  iterator
 An STL-conforming iterator. More...
struct  link
 Link structure. More...

Public Member Functions

 DLListBase ()
 Null construct.
 DLListBase (link *)
 Construct given initial entry.
 ~DLListBase ()
label size () const
 Return number of elements in list.
bool empty () const
 Return true if the list is empty.
linkfirst ()
 Return first entry.
const linkfirst () const
 Return const access to first entry.
linklast ()
 Return last entry.
const linklast () const
 Return const access to last entry.
void insert (link *)
 Add at head of list.
void append (link *)
 Add at tail of list.
bool swapUp (link *)
 Swap this element with the one above unless it is at the top.
bool swapDown (link *)
 Swap this element with the one below unless it is at the bottom.
linkremoveHead ()
 Remove and return head.
linkremove (link *)
 Remove and return element.
linkremove (iterator &)
linkreplace (link *oldLink, link *newLink)
 Replace oldLink with newLink and return element.
linkreplace (iterator &oldIter, link *newLink)
 Replace oldIter with newLink and return element.
void clear ()
 Clear the list.
void transfer (DLListBase &)
 Transfer the contents of the argument into this List.
iterator begin ()
const iteratorend ()
const_iterator cbegin () const
const const_iteratorcend () const
const_iterator begin () const
const const_iteratorend () const

Friends

class iterator
class const_iterator

Detailed Description

Base doubly-linked list.

Source files

Definition at line 46 of file DLListBase.H.


Constructor & Destructor Documentation

DLListBase (  )  [inline]

Null construct.

Definition at line 29 of file DLListBaseI.H.

DLListBase ( link a  )  [inline]

Construct given initial entry.

Definition at line 37 of file DLListBaseI.H.

~DLListBase (  )  [inline]

Definition at line 50 of file DLListBaseI.H.


Member Function Documentation

bool empty (  )  const [inline]

Return true if the list is empty.

Definition at line 75 of file DLListBaseI.H.

void insert ( DLListBase::link a  ) 

Add at head of list.

Definition at line 40 of file DLListBase.C.

void append ( DLListBase::link a  ) 

Add at tail of list.

Definition at line 60 of file DLListBase.C.

References link::next_, and link::prev_.

Referenced by Cloud< ParticleType >::deleteParticle().

Here is the caller graph for this function:

bool swapUp ( DLListBase::link a  ) 

Swap this element with the one above unless it is at the top.

Definition at line 80 of file DLListBase.C.

References link::next_, and link::prev_.

bool swapDown ( DLListBase::link a  ) 

Swap this element with the one below unless it is at the bottom.

Definition at line 121 of file DLListBase.C.

Foam::DLListBase::link * replace ( DLListBase::link oldLink,
DLListBase::link newLink 
)

Replace oldLink with newLink and return element.

Definition at line 219 of file DLListBase.C.

Referenced by iterator::iterator().

Here is the caller graph for this function:

Foam::DLListBase::link * replace ( DLListBase::iterator oldIter,
DLListBase::link newLink 
) [inline]

Replace oldIter with newLink and return element.

Definition at line 163 of file DLListBaseI.H.

void clear (  )  [inline]

Clear the list.

Reimplemented in Cloud< ParticleType >, DsmcCloud< ParcelType >, dictionary, Cloud< BasicReactingMultiphaseParcel< ThermoType > >, Cloud< basicThermoParcel >, Cloud< molecule >, Cloud< CoalParcel< ThermoType > >, Cloud< trackedParticle >, Cloud< basicKinematicParcel >, Cloud< ParcelType >, Cloud< parcel >, Cloud< solidParticle >, Cloud< dsmcParcel >, Cloud< indexedParticle >, Cloud< passiveParticle >, Cloud< BasicReactingParcel< ThermoType > >, DsmcCloud< dsmcParcel >, DictionaryBase< DLPtrList< phase >, phase >, DictionaryBase< UIDLList< T >, T >, DictionaryBase< DLList< T * >, T >, DictionaryBase< DLPtrList< T >, T >, DictionaryBase< IDLList< T >, T >, ILList< DLListBase, trackedParticle >, ILList< DLListBase, CoalParcel< ThermoType > >, ILList< DLListBase, molecule >, ILList< DLListBase, dsmcParcel >, ILList< DLListBase, ParcelType >, ILList< DLListBase, passiveParticle >, ILList< DLListBase, basicThermoParcel >, ILList< DLListBase, BasicReactingMultiphaseParcel< ThermoType > >, ILList< DLListBase, basicKinematicParcel >, ILList< DLListBase, T >, ILList< DLListBase, indexedParticle >, ILList< DLListBase, BasicReactingParcel< ThermoType > >, ILList< DLListBase, parcel >, ILList< DLListBase, entry >, ILList< DLListBase, solidParticle >, ILList< DLListBase, ParticleType >, LList< DLListBase, autoPtr< regExp > >, LList< DLListBase, entry * >, LList< DLListBase, phase * >, LList< DLListBase, T >, LList< DLListBase, T * >, LPtrList< DLListBase, T >, and LPtrList< DLListBase, phase >.

Definition at line 133 of file DLListBaseI.H.

References Foam::abort(), Foam::FatalError, and FatalErrorIn.

Here is the call graph for this function:

void transfer ( DLListBase lst  )  [inline]

Transfer the contents of the argument into this List.

and annull the argument list.

Definition at line 141 of file DLListBaseI.H.


Friends And Related Function Documentation


The documentation for this class was generated from the following files:
  • src/OpenFOAM/containers/LinkedLists/linkTypes/DLListBase/DLListBase.H
  • src/OpenFOAM/containers/LinkedLists/linkTypes/DLListBase/DLListBase.C
  • src/OpenFOAM/containers/LinkedLists/linkTypes/DLListBase/DLListBaseI.H
Copyright © 2000-2009 OpenCFD Ltd