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

iterator Class Reference

An STL-conforming iterator. More...

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 &)

Detailed Description

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

An STL-conforming iterator.

Definition at line 249 of file PtrList.H.


Member Typedef Documentation

typedef T& Tref

Definition at line 263 of file PtrList.H.


Constructor & Destructor Documentation

iterator ( T **  ptr  )  [inline]

Construct for a given PtrList entry.

Definition at line 133 of file PtrListI.H.


Member Function Documentation

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

Definition at line 139 of file PtrListI.H.

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

Definition at line 145 of file PtrListI.H.

T & operator* (  )  [inline]

Definition at line 151 of file PtrListI.H.

Referenced by iterator::operator++().

Here is the caller graph for this function:

T & operator() (  )  [inline]

Definition at line 157 of file PtrListI.H.

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

Definition at line 164 of file PtrListI.H.

References iterator::operator*().

Here is the call graph for this function:

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

Definition at line 172 of file PtrListI.H.

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

Definition at line 181 of file PtrListI.H.

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

Definition at line 189 of file PtrListI.H.

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

Definition at line 198 of file PtrListI.H.

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

Definition at line 222 of file PtrListI.H.

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

Definition at line 247 of file PtrListI.H.

References T.

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

Definition at line 253 of file PtrListI.H.

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

Definition at line 259 of file PtrListI.H.

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

Definition at line 265 of file PtrListI.H.

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

Definition at line 271 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
Copyright © 2000-2009 OpenCFD Ltd