Public Types | Public Member Functions | Friends | List of all members
UPtrList< 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 UPtrList 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::UPtrList< T >::const_iterator

An STL-conforming const_iterator.

Definition at line 302 of file UPtrList.H.

Member Typedef Documentation

typedef const T& Tref

Definition at line 320 of file UPtrList.H.

Constructor & Destructor Documentation

const_iterator ( const T *const *  ptr)
inline

Construct for a given UPtrList entry.

Definition at line 305 of file UPtrListI.H.

const_iterator ( const iterator iter)
inline

Construct from an iterator.

Definition at line 312 of file UPtrListI.H.

Member Function Documentation

bool operator== ( const const_iterator iter) const
inline

Definition at line 320 of file UPtrListI.H.

bool operator!= ( const const_iterator iter) const
inline

Definition at line 330 of file UPtrListI.H.

const T & operator* ( )
inline

Definition at line 339 of file UPtrListI.H.

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

Here is the caller graph for this function:

const T & operator() ( )
inline

Definition at line 346 of file UPtrListI.H.

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

Here is the call graph for this function:

Definition at line 354 of file UPtrListI.H.

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

Definition at line 363 of file UPtrListI.H.

Definition at line 373 of file UPtrListI.H.

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

Definition at line 382 of file UPtrListI.H.

Definition at line 392 of file UPtrListI.H.

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

Here is the call graph for this function:

Definition at line 419 of file UPtrListI.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 447 of file UPtrListI.H.

References n.

bool operator< ( const const_iterator iter) const
inline

Definition at line 455 of file UPtrListI.H.

bool operator> ( const const_iterator iter) const
inline

Definition at line 465 of file UPtrListI.H.

bool operator<= ( const const_iterator iter) const
inline

Definition at line 475 of file UPtrListI.H.

bool operator>= ( const const_iterator iter) const
inline

Definition at line 485 of file UPtrListI.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: