OpenFOAM logo
Open Source CFD Toolkit

LList Class Template Reference

Inheritance diagram for LList:

Inheritance graph
[legend]
Collaboration diagram for LList:

Collaboration graph
[legend]
List of all members.

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


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 ()
 Return and remove head.
void clear ()
 Delete contents of list.
void operator= (const LList< LListBase, T > &)

Friends

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

Member Typedef Documentation

typedef const T& const_reference
 

Type that can be used for storing into constant.

LList::value_type objects.

Reimplemented in LPtrList, LPtrList< DLListBase, T >, LPtrList< SLListBase, T >, and LPtrList< SLListBase, reaction >.

Definition at line 213 of file LList.H.

typedef LListBase::const_iterator LListBase_const_iterator
 

Reimplemented in LPtrList, LPtrList< DLListBase, T >, LPtrList< SLListBase, T >, and LPtrList< SLListBase, reaction >.

Definition at line 264 of file LList.H.

typedef LListBase::iterator LListBase_iterator
 

Reimplemented in LPtrList, LPtrList< DLListBase, T >, LPtrList< SLListBase, T >, and LPtrList< SLListBase, reaction >.

Definition at line 221 of file LList.H.

typedef T& reference
 

Type that can be used for storing into value_type.

objects.

Reimplemented in LPtrList, LPtrList< DLListBase, T >, LPtrList< SLListBase, T >, and LPtrList< SLListBase, reaction >.

Definition at line 207 of file LList.H.

typedef label size_type
 

The type that can represent the size of a LList.

Definition at line 216 of file LList.H.

typedef T value_type
 

Type of values the LList contains.

Definition at line 201 of file LList.H.


Constructor & Destructor Documentation

LList  )  [inline]
 

Null construct.

Definition at line 116 of file LList.H.

LList 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

void append const T &  a  )  [inline]
 

Add at tail of list.

Definition at line 175 of file LList.H.

void clear  ) 
 

Delete contents of list.

Reimplemented in LPtrList, DictionaryBase< DLList< T * >, T >, DictionaryBase< DLPtrList< T >, T >, LPtrList< DLListBase, T >, LPtrList< SLListBase, T >, and LPtrList< SLListBase, reaction >.

const T& first  )  const [inline]
 

Return const access to the first entry added.

Reimplemented in LPtrList, LPtrList< DLListBase, T >, LPtrList< SLListBase, T >, and LPtrList< SLListBase, reaction >.

Definition at line 148 of file LList.H.

T& first  )  [inline]
 

Return the first entry added.

Reimplemented in LPtrList, LPtrList< DLListBase, T >, LPtrList< SLListBase, T >, and LPtrList< SLListBase, reaction >.

Definition at line 142 of file LList.H.

void insert const T &  a  )  [inline]
 

Add at head of list.

Definition at line 169 of file LList.H.

const T& last  )  const [inline]
 

Return const access to the last entry added.

Reimplemented in LPtrList, LPtrList< DLListBase, T >, LPtrList< SLListBase, T >, and LPtrList< SLListBase, reaction >.

Definition at line 160 of file LList.H.

T& last  )  [inline]
 

Return the last entry added.

Reimplemented in LPtrList, LPtrList< DLListBase, T >, LPtrList< SLListBase, T >, and LPtrList< SLListBase, reaction >.

Definition at line 154 of file LList.H.

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

T removeHead  )  [inline]
 

Return and remove head.

Definition at line 181 of file LList.H.


Friends And Related Function Documentation

friend class const_iterator [friend]
 

Reimplemented in LPtrList, LPtrList< DLListBase, T >, LPtrList< SLListBase, T >, and LPtrList< SLListBase, reaction >.

Definition at line 94 of file LList.H.

friend class iterator [friend]
 

Reimplemented in LPtrList, LPtrList< DLListBase, T >, LPtrList< SLListBase, T >, and LPtrList< SLListBase, reaction >.

Definition at line 91 of file LList.H.

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

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


The documentation for this class was generated from the following file:
For further information go to www.openfoam.org