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

SLListBase Class Reference

Inheritance diagram for SLListBase:

Inheritance graph
[legend]
Collaboration diagram for SLListBase:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 58 of file SLListBase.H.


Public Member Functions

 SLListBase ()
 Null construct.
 SLListBase (link *)
 Construct given initial entry.
 ~SLListBase ()
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.
link * removeHead ()
 Remove and return head.
link * remove (link *)
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

SLListBase (  )  [inline]

Null construct.

Definition at line 59 of file SLListBaseI.H.

SLListBase ( link *   )  [inline]

Construct given initial entry.

Definition at line 66 of file SLListBaseI.H.

~SLListBase (  )  [inline]

Definition at line 75 of file SLListBaseI.H.


Member Function Documentation

label size (  )  const [inline]

Return number of elements in list.

Definition at line 81 of file SLListBaseI.H.

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

Referenced by SLListBase::const_iterator::operator++(), and SLListBase::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.

link* remove ( link *   ) 

Referenced by SLListBase::clear().

Here is the caller graph for this function:

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

Definition at line 142 of file SLListBaseI.H.

SLListBase::iterator begin (  )  [inline]

Definition at line 215 of file SLListBaseI.H.

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

Definition at line 228 of file SLListBaseI.H.

SLListBase::const_iterator begin (  )  const [inline]

Definition at line 307 of file SLListBaseI.H.

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

Definition at line 320 of file SLListBaseI.H.


Friends And Related Function Documentation


Member Data Documentation

iterator endIter [static]

iterator returned by end()

Definition at line 212 of file SLListBase.H.

const_iterator returned by end()

Definition at line 254 of file SLListBase.H.


The documentation for this class was generated from the following files:
  • src/OpenFOAM/containers/LinkedLists/linkTypes/SLListBase/SLListBase.H
  • src/OpenFOAM/containers/LinkedLists/linkTypes/SLListBase/SLListBaseI.H
Copyright © 2000-2007 OpenCFD Ltd