FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

PtrList< T >::iterator Class Reference

An STL-conforming iterator. More...

#include <src/OpenFOAM/containers/Lists/PtrList/PtrList.H>


Detailed Description

template<class T>
class Foam::PtrList< T >::iterator

An STL-conforming iterator.

Definition at line 240 of file PtrList.H.

List of all members.

Public Types

typedef T &  Tref

Public Member Functions

 iterator (T **)
 Construct for a given PtrList entry.
bool  operator== (const iterator &) const
bool  operator!= (const iterator &) const
Tref  operator* ()
Tref  operator() ()
iterator  operator++ ()
iterator  operator++ (int)
iterator  operator-- ()
iterator  operator-- (int)
iterator  operator+= (label)
iterator  operator-= (label)
T &  operator[] (label)
bool  operator< (const iterator &) const
bool  operator> (const iterator &) const
bool  operator<= (const iterator &) const
bool  operator>= (const iterator &) const

Friends

iterator  operator+ (const iterator &, label)
iterator  operator+ (label, const iterator &)
iterator  operator- (const iterator &, label)
label  operator- (const iterator &, const iterator &)

Member Typedef Documentation

typedef T& Tref

Definition at line 254 of file PtrList.H.


Constructor & Destructor Documentation

iterator ( T **   ptr  ) [inline]

Construct for a given PtrList entry.

Definition at line 141 of file PtrListI.H.


Member Function Documentation

bool operator== ( const iterator &   iter  ) const [inline]

Definition at line 147 of file PtrListI.H.

bool operator!= ( const iterator &   iter  ) const [inline]

Definition at line 153 of file PtrListI.H.

T & operator* (  ) [inline]

Definition at line 159 of file PtrListI.H.

T & operator() (  ) [inline]

Definition at line 165 of file PtrListI.H.

References Foam::operator*().

Foam::PtrList< T >::iterator operator++ (  ) [inline]

Definition at line 172 of file PtrListI.H.

Foam::PtrList< T >::iterator operator++ ( int    ) [inline]

Definition at line 180 of file PtrListI.H.

Foam::PtrList< T >::iterator operator-- (  ) [inline]

Definition at line 189 of file PtrListI.H.

Foam::PtrList< T >::iterator operator-- ( int    ) [inline]

Definition at line 197 of file PtrListI.H.

Foam::PtrList< T >::iterator operator+= ( label   n  ) [inline]

Definition at line 206 of file PtrListI.H.

Foam::PtrList< T >::iterator operator-= ( label   n  ) [inline]

Definition at line 230 of file PtrListI.H.

T & operator[] ( label   n  ) [inline]

Definition at line 255 of file PtrListI.H.

bool operator< ( const iterator &   iter  ) const [inline]

Definition at line 261 of file PtrListI.H.

bool operator> ( const iterator &   iter  ) const [inline]

Definition at line 267 of file PtrListI.H.

bool operator<= ( const iterator &   iter  ) const [inline]

Definition at line 273 of file PtrListI.H.

bool operator>= ( const iterator &   iter  ) const [inline]

Definition at line 279 of file PtrListI.H.


Friends And Related Function Documentation

iterator operator+ ( const iterator &   ,
label    
) [friend]
iterator operator+ ( label   ,
const iterator &    
) [friend]
iterator operator- ( const iterator &   ,
label    
) [friend]
label operator- ( const iterator &   ,
const iterator &    
) [friend]

The documentation for this class was generated from the following files:
  • src/OpenFOAM/containers/Lists/PtrList/PtrList.H
  • src/OpenFOAM/containers/Lists/PtrList/PtrListI.H