OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

DLListBase Class Reference

Inheritance diagram for DLListBase:

Inheritance graph
[legend]
Collaboration diagram for DLListBase:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 58 of file DLListBase.H.


Public Member Functions

 DLListBase ()
 Null construct.
 DLListBase (link *)
 Construct given initial entry.
 ~DLListBase ()
label size () const
 Return number of elements in list.
link * first ()
 Return first entry.
const link * first () const
 Return const access to first entry.
link * last ()
 Return last entry.
const link * last () 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.
link * removeHead ()
 Remove and return head.
link * remove (link *)
 Remove and return element.
link * remove (iterator &)
void clear ()
 Clear the list.
iterator begin ()
const iterator & end ()
const_iterator begin () const
const const_iterator & end () const

Static Public Attributes

static iterator endIter
 iterator returned by end()
static const_iterator endConstIter
 const_iterator returned by end()

Friends

class iterator
class const_iterator

Classes

class  const_iterator
class  iterator
struct  link
 Link structure. More...

Constructor & Destructor Documentation

DLListBase (  )  [inline]

Null construct.

Definition at line 54 of file DLListBaseI.H.

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

DLListBase ( link *   )  [inline]

Construct given initial entry.

Definition at line 62 of file DLListBaseI.H.

~DLListBase (  )  [inline]

Definition at line 75 of file DLListBaseI.H.


Member Function Documentation

label size (  )  const [inline]

Return number of elements in list.

Definition at line 94 of file DLListBaseI.H.

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

Referenced by DLListBase::const_iterator::operator++(), and DLListBase::iterator::operator++().

Here is the call graph for this function:

Here is the caller graph for this function:

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.

link* remove ( link *   ) 

Remove and return element.

Referenced by DLListBase::clear().

Here is the caller graph for this function:

DLListBase::link * remove ( iterator &   )  [inline]

Definition at line 156 of file DLListBaseI.H.

DLListBase::iterator begin (  )  [inline]

Definition at line 231 of file DLListBaseI.H.

const DLListBase::iterator & end (  )  [inline]

Definition at line 244 of file DLListBaseI.H.

DLListBase::const_iterator begin (  )  const [inline]

Definition at line 323 of file DLListBaseI.H.

const DLListBase::const_iterator & end (  )  const [inline]

Definition at line 336 of file DLListBaseI.H.


Friends And Related Function Documentation


Member Data Documentation

iterator endIter [static]

iterator returned by end()

Definition at line 218 of file DLListBase.H.

const_iterator returned by end()

Definition at line 259 of file DLListBase.H.


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/DLListBaseI.H
Copyright © 2000-2007 OpenCFD Ltd