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

LList< LListBase, T > Class Template Reference

Template class for non-intrusive linked lists. More...

Inheritance diagram for LList< LListBase, T >:
Collaboration diagram for LList< LListBase, T >:

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 Types

typedef T value_type
 Type of values the LList contains.
typedef T & reference
 Type that can be used for storing into 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 LList.
typedef LListBase::iterator LListBase_iterator
typedef LListBase::const_iterator LListBase_const_iterator

Public Member Functions

 LList ()
 Null construct.
 LList (T a)
 Construct given initial T.
 LList (Istream &)
 Construct from Istream.
 LList (const LList< LListBase, T > &)
 Construct as copy.
 ~LList ()
T & first ()
 Return the first entry added.
const T & first () const
 Return const access to the first entry added.
T & last ()
 Return the last entry added.
const T & last () const
 Return const access to the last entry added.
void insert (const T &a)
 Add at head of list.
void append (const T &a)
 Add at tail of list.
removeHead ()
 Remove and return head.
remove (link *l)
 Remove and return element.
remove (iterator &it)
 Remove and return element specified by iterator.
void clear ()
 Delete contents of list.
void transfer (LList< LListBase, T > &)
 Transfer the contents of the argument into this List.
void operator= (const LList< LListBase, T > &)

Friends

class iterator
class const_iterator
Istreamoperator>> (Istream &, LList< LListBase, T > &)
Ostreamoperator (Ostream &, const LList< LListBase, T > &)

Detailed Description

template<class LListBase, class T>
class Foam::LList< LListBase, T >

Template class for non-intrusive linked lists.

Source files

Definition at line 69 of file LList.H.


Member Typedef Documentation

typedef T value_type

Type of values the LList contains.

Definition at line 212 of file LList.H.

typedef label size_type

The type that can represent the size of a LList.

Definition at line 227 of file LList.H.


Constructor & Destructor Documentation

LList (  )  [inline]

Null construct.

Definition at line 104 of file LList.H.

LList ( a  )  [inline]

Construct given initial T.

Definition at line 108 of file LList.H.

LList ( Istream is  )  [inline]

Construct from Istream.

Definition at line 28 of file LListIO.C.

LList ( const LList< LListBase, T > &  lst  )  [inline]

Construct as copy.

Definition at line 27 of file LList.C.

~LList (  )  [inline]

Definition at line 39 of file LList.C.

References LList< LListBase, T >::append().

Here is the call graph for this function:


Member Function Documentation

const T& first (  )  const [inline]

T& last (  )  [inline]

const T& last (  )  const [inline]

void insert ( const T &  a  )  [inline]

Add at head of list.

Definition at line 157 of file LList.H.

Referenced by LList< DLListBase, T * >::append(), and Foam::polyMeshZipUpCells().

Here is the caller graph for this function:

void append ( const T &  a  )  [inline]

T removeHead (  )  [inline]

Remove and return head.

Definition at line 169 of file LList.H.

Referenced by Foam::polyMeshZipUpCells().

Here is the caller graph for this function:

T remove ( link l  )  [inline]

Remove and return element.

Definition at line 178 of file LList.H.

T remove ( iterator it  )  [inline]

Remove and return element specified by iterator.

Definition at line 187 of file LList.H.

void transfer ( LList< LListBase, T > &  lst  )  [inline]

Transfer the contents of the argument into this List.

and annull the argument list.

Definition at line 61 of file LList.C.

void operator= ( const LList< LListBase, T > &  lst  )  [inline]

Definition at line 71 of file LList.C.


Friends And Related Function Documentation

Istream& operator>> ( Istream ,
LList< LListBase, T > &   
) [friend]

Referenced by Foam::operator>>().

Ostream& operator ( Ostream ,
const LList< LListBase, T > &   
) [friend]


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