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

ILList< LListBase, T > Class Template Reference

Template class for intrusive linked lists. More...

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

List of all members.


Public Member Functions

 ILList ()
 Null construct.
 ILList (T *a)
 Construct given initial T.
 ILList (Istream &)
 Construct from Istream.
 ILList (const ILList< LListBase, T > &)
 Construct as copy.
template<class CloneArg >
 ILList (const ILList< LListBase, T > &lst, const CloneArg &cloneArg)
 Copy constructor with additional argument for clone.
template<class INew >
 ILList (Istream &, const INew &)
 Construct from Istream using given Istream constructor class.
 ~ILList ()
bool eraseHead ()
 Remove the head element specified from the list and delete it.
bool erase (T *p)
 Remove the specified element from the list and delete it.
void clear ()
 Clear the contents of the list.
void transfer (ILList< LListBase, T > &)
 Transfer the contents of the argument into this List.
void operator= (const ILList< LListBase, T > &)

Friends

Istream & operator>> (Istream &, ILList< LListBase, T > &)
 Read List from Istream, discarding contents of existing List.

Detailed Description

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

Template class for intrusive linked lists.

Source files

Definition at line 60 of file ILList.H.


Constructor & Destructor Documentation

ILList (  )  [inline]

Null construct.

Definition at line 76 of file ILList.H.

ILList ( T *  a  )  [inline]

Construct given initial T.

Definition at line 80 of file ILList.H.

ILList ( Istream &  is  )  [inline]

Construct from Istream.

Definition at line 134 of file ILListIO.C.

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

Construct as copy.

Definition at line 23 of file ILList.C.

ILList ( const ILList< LListBase, T > &  lst,
const CloneArg &  cloneArg 
) [inline]

Copy constructor with additional argument for clone.

Definition at line 43 of file ILList.C.

ILList ( Istream &  is,
const INew &  iNew 
) [inline]

Construct from Istream using given Istream constructor class.

Definition at line 127 of file ILListIO.C.

~ILList (  )  [inline]

Definition at line 66 of file ILList.C.


Member Function Documentation

bool eraseHead (  )  [inline]

Remove the head element specified from the list and delete it.

Definition at line 75 of file ILList.C.

References ILList< LListBase, T >::clear().

Referenced by ILList< LListBase, T >::transfer().

Here is the call graph for this function:

Here is the caller graph for this function:

bool erase ( T *  p  )  [inline]

Remove the specified element from the list and delete it.

Definition at line 90 of file ILList.C.

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

Transfer the contents of the argument into this List.

and annull the argument list.

Definition at line 119 of file ILList.C.

References ILList< LListBase, T >::eraseHead().

Referenced by ILList< LListBase, T >::operator=().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 129 of file ILList.C.

References ILList< LListBase, T >::clear(), and ILList< LListBase, T >::transfer().

Here is the call graph for this function:


Friends And Related Function Documentation

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

Read List from Istream, discarding contents of existing List.


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