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

An STL-conforming const_iterator. More...

Public Types

typedef const TTref
 

Public Member Functions

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

Friends

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

Detailed Description

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

An STL-conforming const_iterator.

Definition at line 342 of file PtrList.H.

Member Typedef Documentation

typedef const T& Tref

Definition at line 360 of file PtrList.H.

Constructor & Destructor Documentation

const_iterator ( const T *const *  ptr)
inline

Construct for a given PtrList entry.

Definition at line 377 of file PtrListI.H.

const_iterator ( const iterator iter)
inline

Construct from an iterator.

Definition at line 384 of file PtrListI.H.

Member Function Documentation

bool operator== ( const const_iterator iter) const
inline

Definition at line 392 of file PtrListI.H.

bool operator!= ( const const_iterator iter) const
inline

Definition at line 402 of file PtrListI.H.

const T & operator* ( )
inline

Definition at line 411 of file PtrListI.H.

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

Here is the caller graph for this function:

const T & operator() ( )
inline

Definition at line 418 of file PtrListI.H.

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

Here is the call graph for this function:

Definition at line 426 of file PtrListI.H.

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

Definition at line 435 of file PtrListI.H.

Definition at line 445 of file PtrListI.H.

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

Definition at line 454 of file PtrListI.H.

Definition at line 464 of file PtrListI.H.

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

Here is the call graph for this function:

Definition at line 491 of file PtrListI.H.

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

Here is the call graph for this function:

const T & operator[] ( label  n)
inline

Definition at line 519 of file PtrListI.H.

References n.

bool operator< ( const const_iterator iter) const
inline

Definition at line 527 of file PtrListI.H.

bool operator> ( const const_iterator iter) const
inline

Definition at line 537 of file PtrListI.H.

bool operator<= ( const const_iterator iter) const
inline

Definition at line 547 of file PtrListI.H.

bool operator>= ( const const_iterator iter) const
inline

Definition at line 557 of file PtrListI.H.

Friends And Related Function Documentation

const_iterator operator+ ( const const_iterator ,
label   
)
friend
const_iterator operator+ ( label  ,
const const_iterator  
)
friend
const_iterator operator- ( const const_iterator ,
label   
)
friend
label operator- ( const const_iterator ,
const const_iterator  
)
friend

The documentation for this class was generated from the following files: