OpenFOAM logo
Open Source CFD Toolkit

LPtrList Class Template Reference

Inheritance diagram for LPtrList:

Inheritance graph
[legend]
Collaboration diagram for LPtrList:

Collaboration graph
[legend]
List of all members.

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


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
Istreamoperator>> (Istream &, LPtrList< LListBase, T > &)
Ostreamoperator (Ostream &, const LPtrList< LListBase, T > &)

Member Typedef Documentation

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.

typedef LListBase::const_iterator LListBase_const_iterator
 

Reimplemented from LList< LListBase, T * >.

Definition at line 224 of file LPtrList.H.

typedef LListBase::iterator LListBase_iterator
 

Reimplemented from LList< LListBase, T * >.

Definition at line 189 of file LPtrList.H.

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.


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

void clear  ) 
 

Remove the specified element from the list and delete it.

Reimplemented from LList< LListBase, T * >.

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

bool eraseHead  ) 
 

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

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& first  )  [inline]
 

Return the first entry added.

Reimplemented from LList< LListBase, T * >.

Definition at line 133 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.

T& last  )  [inline]
 

Return the last entry added.

Reimplemented from LList< LListBase, T * >.

Definition at line 145 of file LPtrList.H.

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

Assign copy.


Friends And Related Function Documentation

friend class const_iterator [friend]
 

Reimplemented from LList< LListBase, T * >.

Definition at line 97 of file LPtrList.H.

friend class iterator [friend]
 

Reimplemented from LList< LListBase, T * >.

Definition at line 94 of file LPtrList.H.

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

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


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