Public Types | Public Member Functions | Friends | List of all members
PtrList< T >::iterator Class Reference

An STL-conforming iterator. More...

Public Types

typedef TTref
 

Public Member Functions

 iterator (T **)
 Construct for a given PtrList entry. More...
 
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)
 
Toperator[] (label)
 
bool operator< (const iterator &) const
 
bool operator> (const iterator &) const
 
bool operator<= (const iterator &) const
 
bool operator>= (const iterator &) const
 

Friends

class const_iterator
 
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 281 of file PtrList.H.

Member Typedef Documentation

typedef T& Tref

Definition at line 297 of file PtrList.H.

Constructor & Destructor Documentation

iterator ( T **  ptr)
inline

Construct for a given PtrList entry.

Definition at line 197 of file PtrListI.H.

Member Function Documentation

bool operator== ( const iterator iter) const
inline

Definition at line 204 of file PtrListI.H.

bool operator!= ( const iterator iter) const
inline

Definition at line 211 of file PtrListI.H.

T & operator* ( )
inline

Definition at line 218 of file PtrListI.H.

Referenced by PtrList< T >::iterator::operator()().

Here is the caller graph for this function:

T & operator() ( )
inline

Definition at line 225 of file PtrListI.H.

References PtrList< T >::iterator::operator*().

Here is the call graph for this function:

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

Definition at line 233 of file PtrListI.H.

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

Definition at line 242 of file PtrListI.H.

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

Definition at line 252 of file PtrListI.H.

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

Definition at line 261 of file PtrListI.H.

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

Definition at line 271 of file PtrListI.H.

References n, and Foam::operator+().

Here is the call graph for this function:

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

Definition at line 298 of file PtrListI.H.

References n, Foam::operator-(), and Foam::T().

Here is the call graph for this function:

T & operator[] ( label  n)
inline

Definition at line 326 of file PtrListI.H.

References n.

bool operator< ( const iterator iter) const
inline

Definition at line 333 of file PtrListI.H.

bool operator> ( const iterator iter) const
inline

Definition at line 340 of file PtrListI.H.

bool operator<= ( const iterator iter) const
inline

Definition at line 347 of file PtrListI.H.

bool operator>= ( const iterator iter) const
inline

Definition at line 354 of file PtrListI.H.

Friends And Related Function Documentation

friend class const_iterator
friend

Definition at line 287 of file PtrList.H.

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: