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

LPtrList Class Template Reference

Inheritance diagram for LPtrList:

Inheritance graph
[legend]
Collaboration diagram for LPtrList:

Collaboration graph
[legend]
List of all members.

Detailed Description

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

Definition at line 78 of file LPtrList.H.


Public Types

typedef T & reference
 Type that can be used for storing into LPtrList::value_type.
typedef T & const_reference
 Type that can be used for storing into constant.
typedef LListBase::iterator LListBase_iterator
typedef LListBase::const_iterator LListBase_const_iterator

Public Member Functions

 LPtrList ()
 Null construct.
 LPtrList (T *a)
 Construct given initial T.
template<class INew>
 LPtrList (Istream &, const INew &)
 Construct from Istream using given Istream constructor class.
 LPtrList (Istream &)
 Construct from Istream using default Istream constructor class.
 LPtrList (const LPtrList &)
 Construct as copy.
 ~LPtrList ()
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.
bool eraseHead ()
 Remove the head element specified from the list and delete it.
void clear ()
 Remove the specified element from the list and delete it.
void operator= (const LPtrList< LListBase, T > &)
 Assign copy.

Friends

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

Classes

class  const_iterator
class  iterator

Member Typedef Documentation

typedef T& reference

Type that can be used for storing into LPtrList::value_type.

objects.

Reimplemented from LList< LListBase, T * >.

Definition at line 178 of file LPtrList.H.

typedef T& const_reference

Type that can be used for storing into constant.

LPtrList::value_type objects.

Reimplemented from LList< LListBase, T * >.

Definition at line 184 of file LPtrList.H.

Reimplemented from LList< LListBase, T * >.

Definition at line 189 of file LPtrList.H.

Reimplemented from LList< LListBase, T * >.

Definition at line 224 of file LPtrList.H.


Constructor & Destructor Documentation

LPtrList (  )  [inline]

Null construct.

Definition at line 103 of file LPtrList.H.

LPtrList ( T *  a  )  [inline]

Construct given initial T.

Definition at line 107 of file LPtrList.H.

LPtrList ( Istream &  ,
const INew &   
)

Construct from Istream using given Istream constructor class.

LPtrList ( Istream &   ) 

Construct from Istream using default Istream constructor class.

LPtrList ( const LPtrList< LListBase, T > &   ) 

Construct as copy.

~LPtrList (  ) 


Member Function Documentation

T& first (  )  [inline]

Return the first entry added.

Reimplemented from LList< LListBase, T * >.

Definition at line 133 of file LPtrList.H.

const T& first (  )  const [inline]

Return const access to the first entry added.

Reimplemented from LList< LListBase, T * >.

Definition at line 139 of file LPtrList.H.

T& last (  )  [inline]

Return the last entry added.

Reimplemented from LList< LListBase, T * >.

Definition at line 145 of file LPtrList.H.

const T& last (  )  const [inline]

Return const access to the last entry added.

Reimplemented from LList< LListBase, T * >.

Definition at line 151 of file LPtrList.H.

bool eraseHead (  ) 

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

void clear (  ) 

Remove the specified element from the list and delete it.

Reimplemented from LList< LListBase, T * >.

Reimplemented in DictionaryBase< Foam::DLPtrList< T >, T >.

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

Assign copy.


Friends And Related Function Documentation

friend class iterator [friend]

Reimplemented from LList< LListBase, T * >.

Definition at line 93 of file LPtrList.H.

friend class const_iterator [friend]

Reimplemented from LList< LListBase, T * >.

Definition at line 96 of file LPtrList.H.

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

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


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