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

SLListBase Class Reference

Base singly-linked list. More...

Inheritance diagram for SLListBase:
Collaboration diagram for SLListBase:

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

 SLListBase ()
 Null construct.
 SLListBase (link *)
 Construct given initial entry.
 ~SLListBase ()
label size () const
 Return number of elements in list.
bool empty () const
 Return true if the list is empty.
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.
void transfer (SLListBase &)
 Transfer the contents of the argument into this List.
iterator begin ()
const iterator & end ()
const_iterator cbegin () const
const const_iterator & cend () const
const_iterator begin () const
const const_iterator & end () const

Friends

class iterator
class const_iterator

Detailed Description

Base singly-linked list.

Source files

Definition at line 46 of file SLListBase.H.


Constructor & Destructor Documentation

SLListBase (  )  [inline]

Null construct.

Definition at line 38 of file SLListBaseI.H.

SLListBase ( link *  a  )  [inline]

Construct given initial entry.

Definition at line 45 of file SLListBaseI.H.

~SLListBase (  )  [inline]

Definition at line 54 of file SLListBaseI.H.


Member Function Documentation

Foam::label size (  )  const [inline]

Return number of elements in list.

Definition at line 60 of file SLListBaseI.H.

Referenced by Foam::polyMeshZipUpCells(), and PtrList< T >::read().

Here is the caller graph for this function:

bool empty (  )  const [inline]

Return true if the list is empty.

Definition at line 66 of file SLListBaseI.H.

void insert ( SLListBase::link *  a  ) 

Add at head of list.

Definition at line 37 of file SLListBase.C.

void append ( SLListBase::link *  a  ) 

Add at tail of list.

Definition at line 54 of file SLListBase.C.

void transfer ( SLListBase &  lst  )  [inline]

Transfer the contents of the argument into this List.

and annull the argument list.

Definition at line 131 of file SLListBaseI.H.

Foam::SLListBase::iterator begin (  )  [inline]

Definition at line 218 of file SLListBaseI.H.

Referenced by PtrList< T >::read().

Here is the caller graph for this function:

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

Definition at line 232 of file SLListBaseI.H.

Referenced by PtrList< T >::read().

Here is the caller graph for this function:

Foam::SLListBase::const_iterator cbegin (  )  const [inline]

Definition at line 318 of file SLListBaseI.H.

Referenced by SLListBase::end().

Here is the caller graph for this function:

const Foam::SLListBase::const_iterator & cend (  )  const [inline]

Definition at line 332 of file SLListBaseI.H.

Foam::SLListBase::const_iterator begin (  )  const [inline]

Definition at line 339 of file SLListBaseI.H.

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

Definition at line 346 of file SLListBaseI.H.

References SLListBase::cbegin().

Here is the call graph for this function:


Friends And Related Function Documentation


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/SLListBase.C
  • src/OpenFOAM/containers/LinkedLists/linkTypes/SLListBase/SLListBaseI.H
Copyright © 2000-2009 OpenCFD Ltd