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

LList Class Template Reference

Inheritance diagram for LList:

Inheritance graph
[legend]
Collaboration diagram for LList:

Collaboration graph
[legend]
List of all members.

Detailed Description

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

Definition at line 81 of file LList.H.


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.
T removeHead ()
 Remove and return head.
T remove (link *l)
 Remove and return element.
T remove (iterator &it)
 Remove and return element specified by iterator.
void clear ()
 Delete contents of list.
void operator= (const LList< LListBase, T > &)

Friends

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

Classes

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

Member Typedef Documentation

typedef T value_type

Type of values the LList contains.

Definition at line 219 of file LList.H.

typedef label size_type

The type that can represent the size of a LList.

Definition at line 234 of file LList.H.


Constructor & Destructor Documentation

LList (  )  [inline]

Null construct.

Definition at line 116 of file LList.H.

LList ( T  a  )  [inline]

Construct given initial T.

Definition at line 120 of file LList.H.

LList ( Istream &   ) 

Construct from Istream.

LList ( const LList< LListBase, T > &   ) 

Construct as copy.

~LList (  ) 


Member Function Documentation

T& last (  )  [inline]

void insert ( const T &  a  )  [inline]

Add at head of list.

Definition at line 169 of file LList.H.

Referenced by LIFOStack::empty().

Here is the caller graph for this function:

void append ( const T &  a  )  [inline]

Add at tail of list.

Definition at line 175 of file LList.H.

Referenced by FIFOStack< Foam::word >::empty().

Here is the caller graph for this function:

T removeHead (  )  [inline]

Remove and return head.

Definition at line 181 of file LList.H.

Referenced by LIFOStack::push(), and FIFOStack< Foam::word >::push().

Here is the caller graph for this function:

T remove ( link *  l  )  [inline]

Remove and return element.

Definition at line 190 of file LList.H.

T remove ( iterator &  it  )  [inline]

Remove and return element specified by iterator.

Definition at line 199 of file LList.H.

void operator= ( const LList< LListBase, T > &   ) 


Friends And Related Function Documentation

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

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


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